repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
heatd/edk2-platforms
Silicon/Intel/TigerlakeSiliconPkg/Include/Library/SataLib.h
/** @file Header file for SataLib. Copyright (c) 2021, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef _SATA_LIB_H_ #define _SATA_LIB_H_ #define SATA_1_CONTROLLER_INDEX 0 #define SATA_2_CONTROLLER_INDEX 1 #define SATA_3_CONT...
pengzhang/hm-framework
app/controllers/wechat/model/WechatRedpack.java
package controllers.wechat.model; import java.io.Serializable; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name="xml") public class WechatRedpack implements Serializable{ /** * 随机字符串,不长于32位。 微信支付API接口协议中包含字段nonce_str,主要保证签名不可预测。我们推荐生成随...
franklin18ru/Indigo
aboutUs/forms.py
<reponame>franklin18ru/Indigo from django import forms class ContactForm(forms.Form): name = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control validate', 'id': 'orangeForm-pass', 'placeholder': 'Vinsamlega skráið nafn hér.'}), max_length=100...
RohitAthithya/learntosolveit
languages/python/software_engineering_exceptions_testing.py
from urllib.error import URLError, HTTPError from io import StringIO print(isinstance(URLError("foo"), HTTPError)) print(isinstance(HTTPError("foo", "bar", "baz", "zap", StringIO()), URLError)) try: raise HTTPError("foo", "bar", "baz", "zap", StringIO()) except URLError: print("caught this exception") else: print(...
wateret/ONE_private
compiler/moco/service/src/Service/TFTypeInferenceRule.cpp
<gh_stars>0 /* * Copyright (c) 2019 Samsung Electronics Co., Ltd. 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 ...
npocmaka/Windows-Server-2003
windows/advcore/gdiplus/test/gpcfm/inc/environ.hxx
<filename>windows/advcore/gdiplus/test/gpcfm/inc/environ.hxx #ifndef _ENVIRON_HXX #define _ENVIRON_HXX #include <windows.h> #include <debug.hxx> #include <report.hxx> #include <common.hxx> #include <ntlog.h> class Environment { public: Environment(VOID) { // Determine if MMX is availab...
bunniescc/PocketSnacks
src/main/java/cc/bunnies/pocketsnacks/dao/FlavorDao.java
package cc.bunnies.pocketsnacks.dao; import org.apache.ibatis.annotations.Mapper; @Mapper public interface FlavorDao { }
seasonl2014/xueden-cloud-edu
moyu-common/moyu-common-core/src/main/java/cn/xueden/common/core/edu/domain/EduEnvironmenParam.java
package cn.xueden.common.core.edu.domain; import cn.xueden.common.core.web.domain.DataEntity; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModelProperty; import lombok.Data; /**功能描述:开发环境实体类 * @Auther:梁志杰 * @Date:2021/2/11 * @Description:cn.xueden.common.core.edu.domain * ...
wiltonlazary/snappydata
core/src/test/scala/org/apache/spark/sql/streaming/SnappyStoreSinkProviderSuite.scala
<filename>core/src/test/scala/org/apache/spark/sql/streaming/SnappyStoreSinkProviderSuite.scala /* * Copyright (c) 2017-2019 TIBCO Software 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 obta...
molicode/TextileChallenge
src/main/java/com/textile/challenge/pricecatalog/util/exceptions/ProductNotFoundException.java
package com.textile.challenge.pricecatalog.util.exceptions; /** * @author <NAME> */ public class ProductNotFoundException extends Exception { public ProductNotFoundException(String errorMessage) { super(errorMessage); } }
1aerostorm/golos
plugins/json_rpc/include/golos/plugins/json_rpc/plugin.hpp
#pragma once #include <appbase/application.hpp> #include <golos/plugins/json_rpc/utility.hpp> #include <fc/variant.hpp> #include <fc/io/json.hpp> #include <fc/reflect/variant.hpp> #include <fc/exception/exception.hpp> #include <boost/config.hpp> #include <boost/any.hpp> /** * This plugin holds bindings for all APIs...
mdonahue-godaddy/Go-for-DevOps
chapter/16/workflow/internal/service/executor/executor.go
<reponame>mdonahue-godaddy/Go-for-DevOps<filename>chapter/16/workflow/internal/service/executor/executor.go /* Package executor provides the Work type which is used to execute a pb.WorkReq. This package is the meat of the engine. To create a Work object, simply: work := executor.New(req, status} After creating a Wor...
camsys/transam_trans
db/data_migrations/20180404185731_cleanup_fta_funding_types.rb
class CleanupFtaFundingTypes < ActiveRecord::DataMigration def up fta_funding_types = [ {:active => 1, :name => 'Urbanized Area Formula Program', :code => 'UA', :description => 'UA -Urbanized Area Formula Program.'}, {:active => 1, :name => 'Other Federal funds', :code => 'OF', :d...
cnsuhao/DirectUI-6
DirectUI/Progress.h
<reponame>cnsuhao/DirectUI-6 #pragma once namespace DirectUI { class UILIB_API Progress : public Element { public: Progress(Progress const &); Progress(void); virtual ~Progress(void); Progress & operator=(Progress const &); static long __stdcall Create(Element *, unsigned long *, Element * *); static I...
bartveenstra/open-banking-gateway
opba-protocols/xs2a-protocol-tests/xs2a-bdd-sandbox/src/test/java/de/adorsys/opba/protocol/xs2a/tests/e2e/sandbox/SandboxE2EProtocolPisTest.java
package de.adorsys.opba.protocol.xs2a.tests.e2e.sandbox; import de.adorsys.opba.protocol.api.common.Approach; import de.adorsys.opba.protocol.xs2a.tests.e2e.JGivenConfig; import de.adorsys.opba.protocol.xs2a.tests.e2e.sandbox.servers.SandboxServers; import de.adorsys.opba.protocol.xs2a.tests.e2e.sandbox.servers.WebDri...
negz/xgql
internal/graph/resolvers/common_test.go
<filename>internal/graph/resolvers/common_test.go // Copyright 2021 Upbound 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 // //...
Jamesrkiv/jabref
src/main/java/org/jabref/gui/maintable/OpenExternalFileAction.java
package org.jabref.gui.maintable; import java.util.List; import org.jabref.gui.DialogService; import org.jabref.gui.Globals; import org.jabref.gui.StateManager; import org.jabref.gui.actions.ActionHelper; import org.jabref.gui.actions.SimpleCommand; import org.jabref.gui.externalfiletype.ExternalFileTypes; import org...
ericyl/EricylUtils
example/src/main/java/com/ericyl/example/event/JumpUtilsTabEvent.java
<reponame>ericyl/EricylUtils package com.ericyl.example.event; import android.support.annotation.IdRes; import com.ericyl.example.R; public class JumpUtilsTabEvent { @IdRes private int idRes; @IdRes private int tabIdRes; public JumpUtilsTabEvent() { } public JumpUtilsTabEvent(@IdRes i...
justFooln/proj
java/DesignPatterns/AbstractFactory/src/com/kineticsnw/EnemyShip.java
<reponame>justFooln/proj package com.kineticsnw; public abstract class EnemyShip { private String name; // Newly defined objects that represent weapon & engine // These can be changed easily by assigning new parts // in UFOEnemyShipFactory or UFOBossEnemyShipFactory ESWeapon weapon; ESEngine engine; ...
Ru-Xiang/x-deeplearning
xdl/test/data_io/packer/pack_cutoff_test.cc
<filename>xdl/test/data_io/packer/pack_cutoff_test.cc /* Copyright (C) 2016-2018 Alibaba Group Holding Limited 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...
thinline72/cayenne
cayenne-server/src/test/java/org/apache/cayenne/testdo/inheritance_vertical/auto/_IvSub3.java
<filename>cayenne-server/src/test/java/org/apache/cayenne/testdo/inheritance_vertical/auto/_IvSub3.java<gh_stars>0 package org.apache.cayenne.testdo.inheritance_vertical.auto; import org.apache.cayenne.exp.Property; import org.apache.cayenne.testdo.inheritance_vertical.IvRoot; /** * Class _IvSub3 was generated by Ca...
ScalablyTyped/SlinkyTyped
w/watson-developer-cloud/src/main/scala/typingsSlinky/watsonDeveloperCloud/visualRecognitionV3GeneratedMod/UpdateClassifierParams.scala
package typingsSlinky.watsonDeveloperCloud.visualRecognitionV3GeneratedMod import typingsSlinky.ibmCloudSdkCore.helperMod.FileObject import typingsSlinky.node.Buffer import typingsSlinky.node.NodeJS.ReadableStream import typingsSlinky.std.Map import org.scalablytyped.runtime.StObject import scala.scalajs.js import sca...
Ahdhn/lar-cc
test/py/largrid/test02.py
<reponame>Ahdhn/lar-cc """ Test file """ from larlib import * mod_1 = larSplit(1)(4), larGrid(4)(1) squares = larModelProduct([mod_1,mod_1]) VIEW(EXPLODE(1.2,1.2,1.2)(MKPOLS(squares))) cubes = larModelProduct([squares,mod_1]) VIEW(EXPLODE(1.2,1.2,1.2)(MKPOLS(cubes)))
HPCToolkit/hpctest
internal/notes/builtin-SAVE/packages/id3lib/package.py
<filename>internal/notes/builtin-SAVE/packages/id3lib/package.py ############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by <NA...
YiouZhu1010/container-service-extension
container_service_extension/minor_error_codes.py
<reponame>YiouZhu1010/container-service-extension # container-service-extension # Copyright (c) 2019 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause from enum import Enum from enum import unique @unique class MinorErrorCode(int, Enum): """Collection of error code and related messages.""...
dirkgermany/cloudstepper
userService/src/main/java/com/dam/user/rest/message/UserRequest.java
<gh_stars>0 package com.dam.user.rest.message; import com.dam.user.model.entity.User; public class UserRequest extends RestRequest { private User user = new User(); public UserRequest(String userName, String password, String requestorUserId) { super("CS 0.0.1"); user.setUserName(userName); user.setPass...
harbby/ashtarte
astarte-core/src/main/java/com/github/harbby/astarte/core/coders/SqlDateEncoder.java
/* * Copyright (C) 2018 The Astarte Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
Celebrate-future/deeplearning4j
deeplearning4j/deeplearning4j-core/src/test/java/org/deeplearning4j/datasets/iterator/DummyBlockDataSetIteratorTests.java
<reponame>Celebrate-future/deeplearning4j /* * ****************************************************************************** * * * * * * This program and the accompanying materials are made available under the * * terms of the Apache License, Version 2.0 which is available at * * https://www.apache.org/lic...
chenqixu/jstorm
jstorm-core/src/main/java/com/alibaba/jstorm/client/WorkerAssignment.java
<reponame>chenqixu/jstorm<gh_stars>1000+ /** * 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 Lic...
develar/chromedevtools
wip/protocol-model/generated/org/jetbrains/wip/protocol/dom/SetAttributeValue.java
// Generated source package org.jetbrains.wip.protocol.dom; /** * Sets attribute for an element with given id. */ public final class SetAttributeValue extends org.jetbrains.wip.protocol.WipRequest { /** * @param nodeId Id of the element to set attribute for. * @param name Attribute name. * @param value At...
drtrigon/sketchbook
hardware/AlhambraII/picorv32/cores/picorv32/Arduino.h
<reponame>drtrigon/sketchbook<filename>hardware/AlhambraII/picorv32/cores/picorv32/Arduino.h #ifndef Arduino_h #define Arduino_h #include <stdint.h> #include <stdbool.h> // picorv32: work-a-round; for size_t only - original Arduino.h does NOT have this! #include <cstddef> /*#ifdef __cplusplus extern "C"{ #endif voi...
react-vancouver/website
src/components/constructs/EventCard/EventCard.styles.js
<filename>src/components/constructs/EventCard/EventCard.styles.js import S from '@symbols'; const { calcSpace } = S; import { area, card } from '@blocks/interactive'; const base = { position: 'relative', }; export const rootStyles = () => [base, area, card]; export const headerStyles = { height: calcSpace(21), ...
sguazt/olio
webapp/rails/trunk/vendor/plugins/rspec/spec/spec/story/runner/plain_text_story_runner_spec.rb
<gh_stars>1-10 # # 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...
didim99/TSTU-new
app/src/main/java/ru/didim99/tstu/core/itheory/compression/HuffmanCompressor.java
<gh_stars>0 package ru.didim99.tstu.core.itheory.compression; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.util.Arrays; import ru.didim99.tstu.core.itheory.compression.utils.BitStream;...
muhdharun/Main
test/java/seedu/addressbook/logic/LogicTest.java
<gh_stars>0 package seedu.addressbook.logic; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import seedu.addressbook.commands.*; import seedu.addressbook.common.Messages; import seedu.addressbook.data.AddressBook; import seedu.addressbook.data.person.*; ...
zgmurder/system
src/lib/Client/models/statistics/trainer/TrainerStatistics.js
<gh_stars>0 import Parse from '../../../parse'; import parseUtils from '../../../../utils/parseUtils'; import { RoleName } from '../../../../Constants'; import Organization from '../../resource/Organization'; // 教练员数据统计 // const TrainerStatisticsSchema = new Schema({ // updateDate: { type: Date, required: true }, ...
palladius/gae-ferris-ricc
ferris/tests/test_controller.py
<gh_stars>1-10 from ferrisnose import AppEngineWebTest import wtforms import json from ferris.core.controller import Controller, route, route_with from ferris.core.json_util import DatastoreEncoder from google.appengine.ext import ndb # Decorators that make sure @route works correctly even for decorated functions def...
rudylee/expo
ios/Pods/boost-for-react-native/boost/metaparse/v1/next_char.hpp
#ifndef BOOST_METAPARSE_V1_NEXT_CHAR_HPP #define BOOST_METAPARSE_V1_NEXT_CHAR_HPP // Copyright <NAME> (<EMAIL>) 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <boost/metap...
sudheerDev/origin
mobile/src/components/disclaimer.js
<gh_stars>0 'use strict' import React from 'react' import { View, Text, StyleSheet } from 'react-native' const Disclaimer = props => ( <View style={styles.container}> <Text style={styles.text}>{props.children}</Text> </View> ) export default Disclaimer const styles = StyleSheet.create({ container: { f...
jscrdev/LeetCode-in-Java
src.save/main/java/g1201_1300/s1227_airplane_seat_assignment_probability/Solution.java
package g1201_1300.s1227_airplane_seat_assignment_probability; // #Medium #Dynamic_Programming #Math #Brainteaser #Probability_and_Statistics // #2022_03_12_Time_1_ms_(15.63%)_Space_41.7_MB_(12.95%) public class Solution { public double nthPersonGetsNthSeat(int n) { if (n == 1) { return 1.0D; ...
kumasento/deacon
src/com/custom_computing_ic/maxdeep/kernel/conv2d/lib/BinaryPackKernel.java
<reponame>kumasento/deacon package com.custom_computing_ic.maxdeep.kernel.conv2d.lib; import com.maxeler.maxcompiler.v2.kernelcompiler.Kernel; import com.maxeler.maxcompiler.v2.kernelcompiler.KernelParameters; import com.maxeler.maxcompiler.v2.kernelcompiler.types.base.DFEType; import com.maxeler.maxcompiler.v2.kernel...
sarvex/StyleCop
Tools/VisualStudioSDK/2013.RTM/VisualStudioIntegration/Common/Source/CPP/VSL/MockInterfaces/VSLMockIVsLibrary2Ex.h
/*************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. This code is licensed under the Visual Studio SDK license terms. THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARR...
simone-sanfratello/peekaboo-server
src/plugins/cors.js
<reponame>simone-sanfratello/peekaboo-server 'use strict' /** * @param {Fastify} - fastify instance */ const cors = function (fastify, settings) { fastify.register(require('fastify-cors'), settings.cors) } module.exports = cors
dinvlad/single_cell_portal_core
app/controllers/users/omniauth_callbacks_controller.rb
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController ### # # This is the OAuth2 endpoint for receiving callbacks from Google after successful authentication # ### def google_oauth2 # You need to implement the method below in your model (e.g. app/models/user.rb) @user = User.fr...
sxxlearn2rock/AgileJavaStudy
src/cn/sxx/agilejava/courseinfo/CourseSessionTest.java
<reponame>sxxlearn2rock/AgileJavaStudy<gh_stars>0 package cn.sxx.agilejava.courseinfo; import static org.junit.Assert.*; import java.util.Date; import org.junit.Before; import org.junit.Test; import cn.sxx.agilejava.studentinfo.Student; import cn.sxx.agilejava.util.DateUtil; public class CourseSessionTest extends...
cfsengineering/tigl
thirdparty/boost_1_67_0/boost/predef/make.h
<reponame>cfsengineering/tigl /* Copyright <NAME> 2008-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #include <boost/predef/detail/test.h> #ifndef BOOST_PREDEF_MAKE_H #define BOOST_PREDEF_MAKE_H /* Shorthands ...
ChenHuaYou/oldlinux-cpp-version
linux/lib/malloc.cc
<gh_stars>0 /* * malloc.c --- a general purpose kernel memory allocator for Linux. * * Written by <NAME> (<EMAIL>), 11/29/91 * * This routine is written to be as fast as possible, so that it * can be called from the interrupt level. * * Limitations: maximum size of memory we can allocate using this routine * ...
danbulant/node-x11
examples/windowmanager/wm.js
<reponame>danbulant/node-x11 var x11 = require('../../lib'); var EventEmitter = require('events').EventEmitter; var X, root, white; var events = x11.eventMask.Button1Motion|x11.eventMask.ButtonPress|x11.eventMask.ButtonRelease|x11.eventMask.SubstructureNotify|x11.eventMask.SubstructureRedirect|x11.eventMask.Exposure; ...
Apereo-Learning-Analytics-Initiative/Larissa
src/test/java/nl/uva/larissa/repository/couchdb/ITAgentQuery.java
<filename>src/test/java/nl/uva/larissa/repository/couchdb/ITAgentQuery.java<gh_stars>1-10 package nl.uva.larissa.repository.couchdb; import static org.junit.Assert.*; import java.net.MalformedURLException; import java.util.Arrays; import java.util.Date; import java.util.List; import nl.uva.larissa.CouchDbConnectorFa...
thomas-mueller/clipl
clipl/analysis_modules/scaleerrors.py
# -*- coding: utf-8 -*- import logging import clipl.utility.logger as logger log = logging.getLogger(__name__) import ROOT import clipl.analysisbase as analysisbase class ScaleErrors(analysisbase.AnalysisBase): """Scale errors of histograms.""" def __init__(self): super(ScaleErrors, self).__init__() def m...
sjj3086786/aliyun-openapi-java-sdk
aliyun-java-sdk-linkwan/src/main/java/com/aliyuncs/linkwan/transform/v20181230/ListOwnedJoinPermissionsResponseUnmarshaller.java
<filename>aliyun-java-sdk-linkwan/src/main/java/com/aliyuncs/linkwan/transform/v20181230/ListOwnedJoinPermissionsResponseUnmarshaller.java /* * 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 ...
ZMcursor/Daily
app/src/main/java/com/zmcursor/daily/UI/Activity/MainActivity.java
<filename>app/src/main/java/com/zmcursor/daily/UI/Activity/MainActivity.java package com.zmcursor.daily.UI.Activity; import android.content.Intent; import android.os.Bundle; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarDrawerToggle; import android.support.v7.app.AppCompatActivi...
BayShubar/new-latin
src/navigation/index.js
import React from 'react' import { createStackNavigator, createAppContainer, createBottomTabNavigator } from 'react-navigation' import { Ionicons } from '@expo/vector-icons'; import { ACTIVE_MAIN_COLOR, INACTIVE_MAIN_COLOR, BACKGROUND_MAIN_COLOR } from '../constants' import ArticlesScr...
oxelson/gempak
gempak/source/cgemlib/cap/cappsmarkint.c
#include "capcmn.h" void cap_psmarkint(PlacementSet placements, CMDObjectSet objects, float *bbox, int *found, float inf_bbox[4], int *iret) /***************************************************************************** * cap_psmarkint * * Marks all the placement objects that are intersected by the area given ...
bitcaster-io/bitcaster
src/bitcaster/dispatchers/handlers/twilio.py
<gh_stars>1-10 from logging import getLogger from django.utils.translation import gettext_lazy as _ from rest_framework import serializers from twilio.rest import Client from bitcaster.api.fields import PhoneNumberField from bitcaster.dispatchers.base import (CoreDispatcher, DispatcherOptions, ...
boltjs/bolt
projects/base/src/util/Globals.js
<reponame>boltjs/bolt<gh_stars>10-100 define( 'bolt.base.util.Globals', [ ], function () { var global = Function('return this')(); var get = function (parts, scope) { var r = scope; for (var i = 0; i < parts.length && r !== undefined; ++i) r = r[parts[i]]; return r; }; ...
tenbirds/PKMS
src/com/pkms/pkgmg/access/service/AccessService.java
package com.pkms.pkgmg.access.service; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Locale; import javax.annotation.Resource; import org.apache.log4j.Logger; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import o...
CloudBPM/SwinFlowCloud-CloudSide
fm/src/main/webapp/js/models/datetimeinput.js
/** * @author <NAME> created 2017-08 and last updated at 10:21 on 2019-03-05 */ function DateTimeInput() { this.id = null; this.parent = null; // parent Id this.currOwner = null; // form Id // basic properties this.title = "日期时间"; this.placeholder = "请输入占位描述..."; this.help = "我的帮助及提示"; // ...
ScalablyTyped/SlinkyTyped
m/maxim_mazurok__gapi_dot_client_dot_iap/src/main/scala/typingsSlinky/maximMazurokGapiClientIap/gapi/client/iap/ListIdentityAwareProxyClientsResponse.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.maximMazurokGapiClientIap.gapi.client.iap import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait ListIdentit...
nspotrepka/ofxPDSP
src/DSP/utility/LinToDB.h
// LinToDB.h // ofxPDSP // <NAME>, MIT License, 2016 #ifndef PDSP_UTIL_LINTODB_H_INCLUDED #define PDSP_UTIL_LINTODB_H_INCLUDED #include "../pdspCore.h" namespace pdsp{ /** @brief Converts linear values into dB values */ class LinToDB : public Formula { public: /** @brie...
lboobl/TinyIM
Code/Client/ClientUI/Source/SkinLib/SkinEdit.h
<filename>Code/Client/ClientUI/Source/SkinLib/SkinEdit.h #pragma once #include "SkinManager.h" // 不支持滚动条皮肤 // 图片背景支持不完整 // Edit控件必须是ES_MULTILINE风格,SetMarginsEx才能生效,ES_MULTILINE风格好像不能动态修改,只能在生成控件时指定 class CSkinEdit : public CWindowImpl<CSkinEdit, CEdit> { public: CSkinEdit(void); ~CSkinEdit(void); BEGIN_MSG_MAP_...
fmahebert/ufo
src/ufo/filters/DifferenceCheck.h
/* * (C) Copyright 2019 UCAR * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ #ifndef UFO_FILTERS_DIFFERENCECHECK_H_ #define UFO_FILTERS_DIFFERENCECHECK_H_ #include <memory> #include <ostream> #include <strin...
lingxiankong/patrole
patrole_tempest_plugin/tests/api/compute/test_server_consoles_rbac.py
# Copyright 2017 AT&T Corporation. # 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 r...
masker-Lee/explorer_es
src/main/java/com/nemtool/explorer/pojo/Accountmosaics.java
<reponame>masker-Lee/explorer_es package com.nemtool.explorer.pojo; import java.io.Serializable; public class Accountmosaics implements Serializable{ /** * */ private static final long serialVersionUID = 1L; private Integer id; private String address; private String mosaicid; private Long...
an9elkiss/api-super-manager
src/main/java/com/an9elkiss/api/manager/api/CodeReviewController.java
<filename>src/main/java/com/an9elkiss/api/manager/api/CodeReviewController.java package com.an9elkiss.api.manager.api; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEnti...
hugonoro/my-dessert
MyDessert/Tests/specs/dessertsService.spec.js
describe("app.dataServices", function () { "use strict"; var $rootScope, dessertsService, sessionService; // Fake route provider and inject needed dependencies beforeEach(function () { module('app', function ($provide) { specHelper.fakeRouteProvider($provide); }); ...
pm-deepak-dhage/prebid-server-java
src/main/java/org/prebid/server/handler/info/BidderDetailsHandler.java
<gh_stars>1-10 package org.prebid.server.handler.info; import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.TextNode; import io.netty.handler.codec.http.HttpHeaderValues; import io.netty.handler.codec.http.HttpResponseStatus; import io.vertx.core.Handler; import io.vertx.co...
play14team/play14-community-gatsby
src/components/Photos/PhotoGallery.js
<reponame>play14team/play14-community-gatsby import React from 'react' import {Link} from 'gatsby' import Lightbox from 'react-image-lightbox' import { GatsbyImage, getImage } from "gatsby-plugin-image" const PhotoGallery = (props) => { const [photoIndex, setPhotoIndex] = React.useState(0); const [isOpenImage,...
wuweiweiwu/babel
packages/babel-plugin-proposal-throw-expressions/test/fixtures/stupid-fixture-nesting-folder/function-sent-in-argument/output.js
<reponame>wuweiweiwu/babel function* test() { (function (e) { throw e; })(new Error(function.sent)); }
jfoley-yw/scrabble
dqn/dqn_scrabble_environment.py
import os from dqn.dqn_simulation import DQNSimulation from scrabbler.player import Player class DQNScrabbleObservation: def __init__(self, state, actions, action_mask): self.state = state self.actions = actions self.action_mask = action_mask # An MDP environment for Scrabble class DQNScra...
smagill/opensphere-desktop
open-sphere-base/core/src/main/java/io/opensphere/core/debug/package-info.java
/** * A set of classes used to help debug a running instance of the application. */ package io.opensphere.core.debug;
BoostryJP/ibet-Prime
app/model/schema/file.py
""" Copyright BOOSTRY 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 law or agreed to in writing, software distr...
uruzahe/carla
Co-Simulation/Sumo/sumo-1.7.0/src/microsim/MSEdgeControl.cpp
<reponame>uruzahe/carla /****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2001-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under ...
d0sadata/studio
contentcuration/contentcuration/frontend/shared/vuex/draggablePlugin/module/submodule/getters.js
<filename>contentcuration/contentcuration/frontend/shared/vuex/draggablePlugin/module/submodule/getters.js import { bitMaskToObject, DraggableIdentityHelper } from '../utils'; import { DraggableFlags } from 'shared/vuex/draggablePlugin/module/constants'; /** * @return {String|null} */ export function activeDraggable...
renzog6/sae-entiy
src/main/java/ar/nex/jpa/UsuarioEventoJpaController.java
/* * 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 ar.nex.jpa; import ar.nex.entity.UsuarioEvento; import java.io.Serializable; import javax.persistence.Query; import ...
bertptrs/adventofcode
2019/tests/test_day04.py
<gh_stars>10-100 import pytest from aoc2019.day04 import valid @pytest.mark.parametrize('number,strict,expected', [ (122345, False, True), (111123, False, True), (111111, False, True), (223450, False, False), (123789, False, False), (112233, True, True), (123444, True, False), (111122...
zealoussnow/chromium
chromeos/services/secure_channel/public/cpp/client/fake_client_channel.cc
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromeos/services/secure_channel/public/cpp/client/fake_client_channel.h" #include <vector> #include "base/callback.h" #include "base/memory/p...
fisherxu/external-dns
vendor/github.com/exoscale/egoscale/cmd/exo/cmd/serviceoffering.go
package cmd import ( "fmt" "os" "github.com/exoscale/egoscale" "github.com/exoscale/egoscale/cmd/exo/table" "github.com/spf13/cobra" ) // serviceofferingCmd represents the serviceoffering command var serviceofferingCmd = &cobra.Command{ Use: "serviceoffering", Short: "List available services offerings with ...
mcopik/perf-taint
benchmarks/milc/milc_qcd-7.8.1/clover_dynamical/update.c
/********** update.c *** for clover fermions *************************/ /* MIMD version 7 */ /* Update lattice. Improved method for 1-2 flavors: update U by (epsilon/2)*(1-Nf/2) compute PHI update U to epsilon/2 compute X update H, full step update U to next time needed This routine does not refresh the anti...
consoles/dsa4js
app/chapter3/3.2/30.js
<filename>app/chapter3/3.2/30.js const BST = require('../BST'); class BST30 extends BST { /** * 如果以该节点为根的子树中的所有节点都在min和max之间 * min,max的确分别是树中的最小和最大的节点并且BST的有序性对树中的所有键都成立返回true,否则返回false */ isOrdered(node, min, max) { if (!node) return true; if (min && node.key < min) return false; if (max && n...
HU-ACTS/sensor-module
src/MQTTController.cpp
<gh_stars>0 #include "MQTTController.hpp" extern const uint8_t aws_root_ca_pem_start[] asm("_binary_aws_root_ca_pem_start"); extern const uint8_t aws_root_ca_pem_end[] asm("_binary_aws_root_ca_pem_end"); extern const uint8_t certificate_pem_crt_start[] asm("_binary_certificate_pem_crt_start"); extern const uint8_t cer...
stealify/stealify
examples/bundle/repl/config.js
const files = [] const capabilities = [] const modules = [] module.exports = { files, modules, capabilities }
skobow/IDS-ConfigurationManager
src/main/java/de/fraunhofer/isst/configmanager/configmanagement/entities/config/CustomBroker.java
package de.fraunhofer.isst.configmanager.configmanagement.entities.config; import lombok.AccessLevel; import lombok.Data; import lombok.experimental.FieldDefaults; import javax.persistence.*; import java.net.URI; import java.util.List; /** * A custom broker entity, to be able to persist the broker in the intern dat...
hrist-dina/legenda
src/vue/store/products/getters.js
export default { itemsMap(state, getters) { let map = {} getters.all.forEach((item, i) => (map[item.id] = i)) return map }, one: (state, getters) => id => { const ind = getters.itemsMap[id] return getters.all[ind] }, all: state => state.items, itemsOrderMa...
mclaughlin6464/pearce
bin/mcmc/pearce_mcmc_xigg_jk.py
from pearce.emulator import OriginalRecipe, ExtraCrispy, SpicyBuffalo from pearce.mocks import cat_dict from pearce.inference import run_mcmc_iterator from scipy.optimize import minimize_scalar import numpy as np from os import path #training_file = '/u/ki/swmclau2/des/xi_cosmo_trainer/PearceRedMagicXiCosmoFixedNd.hdf...
stefb965/dapp
lib/dapp/dimg/dapp/command/stages/cleanup_local.rb
<gh_stars>0 module Dapp module Dimg module Dapp module Command module Stages module CleanupLocal def stages_cleanup_local lock_repo(option_repo, readonly: true) do raise ::Dapp::Error::Command, code: :stages_cleanup_required_option unless stages_cl...
DVSR1966/par4all
packages/PIPS/validation/Scilab/COLD-1.0.5.sub/stubs/src/scilab_rt_min_d0i2_d2.c
void scilab_rt_min_d0i2_d2(double in0, int sin10, int sin11, int in1[sin10][sin11], int sout00, int sout01, double out0[sout00][sout01]) { int i,j; double val0=0; if (in0) { for (i = 0; i < sin10; ++i) { for (j = 0; j < sin11; ++j) { val0 += in1[i][j]; } } for (i = 0 ; i...
pmundt/openPDS
openpds/tastypie_mongodb/resources.py
<filename>openpds/tastypie_mongodb/resources.py from bson import ObjectId from pymongo import MongoClient, ASCENDING, DESCENDING from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import reverse from django.conf import settings from tastypie.bundle import Bundle from tastypie.resour...
jelmd/snakeyaml
src/test/java/org/yaml/snakeyaml/issues/issue137/SupplementaryCharactersTest.java
<gh_stars>1-10 /** * Copyright (c) 2008, SnakeYAML * * 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...
chizidegit/douban-movie
dao/src/main/java/me/aaron/dao/api/retrofit/EmptyJsonConverterFactory.java
package me.aaron.dao.api.retrofit; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import okhttp3.RequestBody; import okhttp3.ResponseBody; import retrofit2.Converter; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; public class EmptyJsonConverterFactory extend...
ujoychou/eco
net/protocol/ProtocolFamily.h
<reponame>ujoychou/eco #ifndef ECO_NET_PROTOCOL_FAMILY_H #define ECO_NET_PROTOCOL_FAMILY_H /******************************************************************************* @ name @ function @ exception @ remark -------------------------------------------------------------------------------- @ history ver 1.0 @ ...
Pioneer-Robotics/FtcPioneer-RobotController
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Hardware/Timer.java
package org.firstinspires.ftc.teamcode.Hardware; public class Timer { //only use this for timer for cleaner look public void sleep(int milliseconds){ try { Thread.sleep(milliseconds); } catch (InterruptedException e){} } }
timfel/netbeans
java/java.hints/test/unit/data/org/netbeans/test/java/hints/CastOrMethodInvocation58494g.java
<reponame>timfel/netbeans package org.netbeans.test.java.hints; import org.netbeans.test.java.hints.pkg.CastOrMethodInvocation58494gUsee; /** * @author <NAME> */ public class CastOrMethodInvocation58494g extends CastOrMethodInvocation58494gUsee { public CastOrMethodInvocation58494g() { CastOrMethod...
badu/http
tport/tls_handshake_timeout_error.go
<gh_stars>1-10 /* * Copyright (c) 2018 The Go Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. */ package tport func (tlsHandshakeTimeoutError) Timeout() bool { return true } func (tlsHandshakeTimeoutError) Temporary() bool { return ...
bitcrystal/edk
Sample/Universal/Network/UefiPxeBc/Dxe/PxeBcMtftp.h
/*++ Copyright (c) 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribut...
timperrett/lift-in-action
chapter-9/src/main/scala/sample/comet/RockPaperScissors.scala
package sample.comet import scala.xml.Text import scala.collection.mutable.Map import net.liftweb.common.{Box,Full,Empty} import net.liftweb.actor.LiftActor import net.liftweb.util.Schedule import net.liftweb.util.Helpers._ import net.liftweb.http.{CometActor,SHtml} import net.liftweb.http.js.JsCmds.{SetHtml,Run} sea...
teeraporn39/google-cloud-java
google-api-grpc/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java
<reponame>teeraporn39/google-cloud-java<filename>google-api-grpc/proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/DeleteSshPublicKeyRequestOrBuilder.java // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/oslogin/v1/oslogin.proto package com.google.cloud.oslogin...
afbeals/CBRA
src/modules/error/__tests__/actions.testPartial.js
// External import { assert } from 'chai'; // Local import actions from '../actions'; import actionTypes from '../actionTypes'; // Constants const { CREATE_ERROR, CLEAR_ERROR } = actionTypes; const errorActionsTest = () => describe('Actions', () => { it('Should create an error', () => { const keyValue = ...
teddywest32/intellij-community
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/projectView/CCTreeStructureProvider.java
<gh_stars>0 package com.jetbrains.edu.coursecreator.projectView; import com.intellij.ide.projectView.ViewSettings; import com.intellij.ide.projectView.impl.nodes.PsiFileNode; import com.intellij.ide.util.treeView.AbstractTreeNode; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.io.FileUti...
ogunes-ebi/impc-production-tracker
impc_prod_tracker/core/src/main/java/org/gentar/organization/person/associations/PersonRoleWorkUnitRepository.java
<reponame>ogunes-ebi/impc-production-tracker package org.gentar.organization.person.associations; import org.gentar.organization.person.associations.PersonRoleWorkUnit; import org.springframework.data.repository.CrudRepository; public interface PersonRoleWorkUnitRepository extends CrudRepository<PersonRoleWorkUnit, L...