repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
abhishek-12355/netshell-libraries
utilities/src/main/java/com/netshell/libraries/utilities/strategy/Strategy.java
<reponame>abhishek-12355/netshell-libraries package com.netshell.libraries.utilities.strategy; /** * Created by Abhishek * on 5/22/2016. */ public interface Strategy { /** * It is recommended to override this method as empty name can cause issues. * * @return name of the validation strategy ...
RackHD/smi-lib-wiseman
src/main/java/com/sun/ws/management/server/reflective/ReflectiveRequestDispatcher.java
<gh_stars>0 /* * Copyright 2005 Sun Microsystems, 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 applicab...
TetrisIsCool/lightblocks
core/src/de/golfgl/lightblocks/backend/RankedPlayerDetails.java
package de.golfgl.lightblocks.backend; import com.badlogic.gdx.utils.JsonValue; public class RankedPlayerDetails extends PlayerDetails { public final int rank; RankedPlayerDetails(JsonValue fromJson) { super(fromJson); rank = fromJson.getInt("rank", 0); } }
godinj/EntityMod
src/main/java/entity/cards/Disturb.java
<gh_stars>0 package entity.cards; import com.megacrit.cardcrawl.actions.AbstractGameAction; import com.megacrit.cardcrawl.actions.common.ApplyPowerAction; import com.megacrit.cardcrawl.actions.common.DamageAction; import com.megacrit.cardcrawl.actions.common.GainBlockAction; import com.megacrit.cardcrawl.cards.DamageI...
snonux/dtail
internal/color/color.go
<filename>internal/color/color.go // Package color is used to prettify console output via ANSII terminal colors. package color import ( "fmt" ) // Color name. type Color string // Attribute of a color. type Attribute string // The possible color variations. const ( escape = "\x1b" reset = escape +...
gregbeech/scion
xenon-routing/lib/xenon/routing/security_directives.rb
require 'xenon/routing/route_directives' module Xenon module Routing module SecurityDirectives include RouteDirectives def authenticate(authenticator) extract_request(authenticator) do |user| if user yield user else reject :unauthorized, { scheme: ...
ameyac-msft/BlingFire
blingfirecompile.library/inc/FARegexpTreeSimplify_disj.h
<gh_stars>0 /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ #ifndef _FA_REGEXPTREESIMPLIFY_DISJ_H_ #define _FA_REGEXPTREESIMPLIFY_DISJ_H_ #include "FAConfig.h" #include "FAArray_cont_t.h" #include "FATopoSort_t.h" #include "FARegexpTreeTopoGraph.h" ...
ybt195/determined
master/pkg/searcher/sha_test.go
<gh_stars>0 package searcher import ( "testing" "github.com/determined-ai/determined/master/pkg/model" ) func TestSHASearcher(t *testing.T) { actual := model.SyncHalvingConfig{ Metric: defaultMetric, NumRungs: 4, TargetTrialSteps: 800, StepBudget: 480, Divisor: 4, Trai...
Droeftoeter/react-material-icons
src/editor/BorderStyle.js
<reponame>Droeftoeter/react-material-icons import React from 'react'; import BaseIcon from '../BaseIcon'; export default props => ( <BaseIcon { ...props } > <path d="M30 42h4v-4h-4v4zm8 0h4v-4h-4v4zm-24 0h4v-4h-4v4zm8 0h4v-4h-4v4zm16-8h4v-4h-4v4zm0-8h4v-4h-4v4zM6 6v36h4V10h32V6H6zm32 12h4v-4h-4...
ryanloney/openvino-1
src/core/reference/src/runtime/reference/multiclass_nms.cpp
<reponame>ryanloney/openvino-1<gh_stars>1-10 // Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "ngraph/op/multiclass_nms.hpp" #include <algorithm> #include <cmath> #include <numeric> #include <queue> #include <vector> #include "ngraph/runtime/reference/multiclass_nms.hpp...
ruuuubi/corsairs-client
Client/src/FindPath.h
#pragma once class CGameScene; class CCharacter; class CFindPath { public: CFindPath(long step,int range); void RenderPath(MPTerrain* pTerrain); S_BVECTOR<D3DXVECTOR3>& GetResultPath() {return _vecPathPoint;} int GetLength() { return _nLength; } bool Find( CGameScene* pScene...
pointlesssoft/godevs
pkg/simulation/abstract_simulator.go
/* * Copyright (c) 2021, <NAME>. * * 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, including without limitation the rights * to use, copy, modify, merge, publish, d...
demonCoder95/son-examples
vnfs/sonata-vtc-vnf-docker/pfring_web_api/vtc/PF_RING/drivers/ZC/intel/igb/igb-5.2.5-zc/src/e1000_i210.h
/******************************************************************************* Intel(R) Gigabit Ethernet Linux driver Copyright(c) 2007-2014 Intel Corporation. This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU General Public License, version ...
paladin74/terriajs
lib/ViewModels/LegendSectionViewModel.js
<gh_stars>1-10 'use strict'; /*global require*/ var defined = require('terriajs-cesium/Source/Core/defined'); var loadView = require('../Core/loadView'); var proxyCatalogItemUrl = require('../Models/proxyCatalogItemUrl'); var knockout = require('terriajs-cesium/Source/ThirdParty/knockout'); var LegendSectionViewModel...
bossm0n5t3r/BOJ
1244/main.cpp
#include <iostream> using namespace std; int N, numOfStudents, studentCode, num; int switchs[101]; void change(int studentCode, int num) { if (studentCode == 1) { for (int i = 1; i <= N / num; i++) switchs[num * i] = 1 - switchs[num * i]; } else { int start = num; int end = num; while (true) { ...
marksteward/BeatSaber-Quest-Codegen
include/GlobalNamespace/BitMask128.hpp
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include <stdint.h> #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: System.ValueType #include "System/ValueType.hpp" // Includ...
fkleedorfer/webofneeds
webofneeds/won-bot/src/main/java/won/bot/framework/eventbot/event/impl/crawl/CrawlCommandEvent.java
<gh_stars>10-100 /* * Copyright 2012 Research Studios Austria Forschungsges.m.b.H. 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...
j2fong/distributed-compliance-ledger
x/validator/keeper/validator.go
package keeper import ( "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/zigbee-alliance/distributed-compliance-ledger/x/validator/types" ) // SetValidator set a specific validator in the store from its index. func (k Keeper) SetValidator(ctx sdk.Context, validator t...
Tomcuzz/OctaHomeAutomation
OctaHomeProxmox/views.py
<filename>OctaHomeProxmox/views.py from django.http import HttpResponse, HttpResponseNotFound, Http404 from django.shortcuts import render from django.shortcuts import redirect from django.middleware.csrf import get_token from django.conf import settings import datetime from commands import * import sys from proxmoxer ...
kkcookies99/UAST
Dataset/Leetcode/valid/62/234.java
public int XXX(int m, int n) { int[][] memo = new int[m+1][n+1]; return help(m,n,memo); } int help(int m ,int n,int[][]memo){ //base case if(m==1 || n ==1) return 1; if(memo[m][n]!=0) return memo[m][n]; memo[m][n] = help(m-1,n,memo) + help(m,n-1,memo); ...
valgur/OCP
opencascade/Transfer_FindHasher.hxx
<reponame>valgur/OCP // Created on: 1994-11-04 // Created by: <NAME> // Copyright (c) 1994-1999 Mat<NAME> // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of t...
ShowingCloud/Cancri
app/views/admin/news_types/index.json.jbuilder
json.array!(@news_types) do |news_type| json.extract! news_type, :name json.url news_type_url(news_type, format: :json) end
suzyz/leetcode_practice
p174/p174.cpp
class Solution { public: int calculateMinimumHP(vector<vector<int>>& dungeon) { int n = dungeon.size(); if (n == 0) return 0; int m = dungeon[0].size(); if (m == 0) return 0; vector<int> f(m+1,0); f[m] = 1; for (int j = m-1; j >= 0;...
andriykislitsyn/macuitest
src/macuitest/lib/operating_system/memory_manager.py
import threading from typing import Dict from typing import List from typing import Optional import biplist from macuitest.lib import core class MemoryManager: """Interface to memory (RAM) information and manipulations on it.""" def __init__(self, executor): self._memory_slots: Optional[List[Dict[s...
physion/ovation-odata
src/ovation/odata/model/SourceModel.java
<gh_stars>1-10 package ovation.odata.model; import java.util.HashMap; import org.apache.log4j.Logger; import org.core4j.Func; import org.core4j.Func1; import ovation.Source; import com.google.common.collect.Maps; /** * presents Source data to the OData4J framework a * @author Ron */ public class ...
offline7LY/demo
java-core/j8/src/main/java/com/lx/demo/improvement/ComparatorDemo.java
package com.lx.demo.improvement; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.List; /** * @Description 大佬写点东西吧 * @auther lx7ly * @create 2019-10-23 下午6:59 */ public class ComparatorDemo { public static void main(String[] args) { final List<User> us...
Hyxogen/FdF
src/util/file_utils.h
/* ************************************************************************** */ /* */ /* :::::::: */ /* file_utils.h :+: :+: ...
kravtsun/mapbox-gl-native
include/mbgl/storage/file_source.hpp
#pragma once #include <mbgl/storage/response.hpp> #include <mbgl/storage/resource.hpp> #include <mbgl/util/noncopyable.hpp> #include <mbgl/util/async_request.hpp> #include <functional> #include <memory> namespace mbgl { class FileSource : private util::noncopyable { public: virtual ~FileSource() = default; ...
Tibi02/hannablog
wp-content/plugins/wp-ultimate-recipe-premium/premium/addons/template-editor/js/preview.js
jQuery(document).ready(function() { // Only keep first recipe jQuery('.wpurp-container').first().addClass('wpurp-container-keep'); // Indicate which elements are parent to the recipe jQuery('.wpurp-container-keep').parents().each(function() { jQuery(this).addClass('wpurp-container-keep-parent')...
gurumobile/RemoteControlGalileoExam
RemoteControlGalileo/AV Capture/Kernel/Hardware.h
<gh_stars>10-100 // // Copyright (c) 2013 <NAME>. All rights reserved. // // 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, including without limitation the rights // t...
jack-debug/Ares-1.0-Source-Leak
com/ares/mixin/MixinWorldProviderHell.java
<reponame>jack-debug/Ares-1.0-Source-Leak<gh_stars>1-10 package com.ares.mixin; import org.spongepowered.asm.mixin.injection.Constant; import org.spongepowered.asm.mixin.injection.ModifyConstant; import net.minecraftforge.fml.common.eventhandler.Event; import net.minecraftforge.common.MinecraftForge; import com.ares.e...
inkubux/MediaSpeed
src/lib/streamer/basic-streamer.js
import mime from 'mime'; import fs from 'fs'; import stream from 'stream'; export default class BasicStreamer { constructor() { this.streamPositions = null; this.status = 200; } prepareStream(rangeHeaders, media) { const mimeType = mime.lookup(media.filePath); this.media = ...
Floern/generic-bot-frame
src/main/java/com/floern/genericbot/frame/redunda/RedundaService.java
/* * Floern, <EMAIL>, 2017, MIT Licence */ package com.floern.genericbot.frame.redunda; import com.floern.genericbot.frame.net.GsonLoader; import com.floern.genericbot.frame.net.HttpPostUrlEncoded; import com.floern.genericbot.frame.redunda.model.Status; import org.apache.http.client.methods.HttpPost; i...
slowy07/ground-android
gnd/src/main/java/com/google/android/gnd/ui/home/BottomSheetDependentBehavior.java
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
netsec/pytan
EXAMPLES/POC/pytan-integrations/patch_tanium_portal/config.py
<filename>EXAMPLES/POC/pytan-integrations/patch_tanium_portal/config.py # configure me config = { 'pytan_dir': '/Users/jolsen/gh/pytan/lib', 'tanium_username': 'Tanium User', 'tanium_password': '<PASSWORD>', 'tanium_host': '172.16.31.128', 'max_data_age': 60, 'pct_complete_threshold': 98.00, ...
AllaMaevskaya/AliRoot
MUON/MUONshuttle/AliMUONTriggerDCSSubprocessor.cxx
<filename>MUON/MUONshuttle/AliMUONTriggerDCSSubprocessor.cxx<gh_stars>10-100 /************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALI...
junlon2006/camera_sdk
baytrail_sdk/version/release/baytrail/web/script/algShow.js
var UserNameLogin=$.cookie('UserNameLogin'); // var UserPassLogin=$.cookie('<PASSWORD>'); // var m_viewaudio= null; /************************************************* Function: Load_algViewer Description: 初始化智能展示界面 Input: 无 Output: 无 return: 无 *****************************...
bryancalisto/competitive_prog
codeo/Camino_mas_corto_tortuga/solution.py
# N, X, Y = list(map(lambda x: int(x), input().split(' '))) # print(min((Y-X) % N, (N-Y+X) % N)) # print(min(abs(Y-X) % N, abs(N-Y+X) % N)) def minMovs(N, X, Y): # N, X, Y = list(map(lambda x: int(x), input().split(' '))) # print(abs(N-max(Y, X) + min(Y, X)) % N) print(min((Y-X) % N, (N-Y+X) % N)) # p...
huaweicloud/huaweicloud-sdk-java-v3
services/cpts/src/main/java/com/huaweicloud/sdk/cpts/v1/model/ListVariablesResponse.java
package com.huaweicloud.sdk.cpts.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.huaweicloud.sdk.core.SdkResponse; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; /** Respo...
touxiong88/92_mediatek
packages/apps/CalendarImporter/tests/src/com/mediatek/calendarimporter/ShowPreviewActivityTest.java
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein is * confidential and proprietary to MediaTek Inc. and/or its licensors. Without * the prior written permission of MediaTek inc. and/or ...
savvasth96/fructose
src/main/java/fwcd/fructose/Option.java
package fwcd.fructose; import java.io.Serializable; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Optional; import java.util.Set; import java.util.function.Consumer; import java.util.function.Function;...
spencer-melnick/simple-render
src/rendering/shader.hpp
<filename>src/rendering/shader.hpp #pragma once #include <string_view> #include <vulkan/vulkan.hpp> namespace Rendering { class Shader { public: Shader(const std::string_view& sourcePath); ~Shader(); vk::ShaderModule& getShaderModule() { return m_s...
WowCZ/strac
semi/CNetTrain/liveDecode.py
<reponame>WowCZ/strac<filename>semi/CNetTrain/liveDecode.py<gh_stars>1-10 # outputs a decode file based on the live system output import sys, sutils, json def usage() : print "Usage:" print "python liveDecode.py dataroot dataset output_file" if len(sys.argv) != 4 : usage() sys.exit() dataroot...
gamobink/anura
src/tbs_bot.cpp
<reponame>gamobink/anura<gh_stars>0 /* Copyright (C) 2003-2014 by <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software f...
Doriko/tessell
user/src/main/java/org/tessell/dispatch/client/DispatchAsync.java
<filename>user/src/main/java/org/tessell/dispatch/client/DispatchAsync.java package org.tessell.dispatch.client; import org.tessell.dispatch.server.ActionDispatch; import org.tessell.dispatch.shared.Action; import org.tessell.dispatch.shared.Result; import com.google.gwt.user.client.rpc.AsyncCallback; /** * This is...
XiaoMi/linden
linden-core/src/test/java/com/xiaomi/linden/core/TestLindenDynamicField.java
<filename>linden-core/src/test/java/com/xiaomi/linden/core/TestLindenDynamicField.java<gh_stars>100-1000 // Copyright 2016 Xiaomi, 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 // ...
ViljoenFritz/nspack
lib/masterfiles/repositories/cargo_temperature_repo.rb
<filename>lib/masterfiles/repositories/cargo_temperature_repo.rb # frozen_string_literal: true module MasterfilesApp class CargoTemperatureRepo < BaseRepo build_for_select :cargo_temperatures, label: :temperature_code, value: :id, order_by: :temperat...
Adrninistrator/UnitTest
src/test/java/adrninistrator/test/testmock/static1/mock/defaultanswer/TestStMockDftAnsCallsRealMethodsA3.java
package adrninistrator.test.testmock.static1.mock.defaultanswer; import com.adrninistrator.static1.TestStaticPublicNonVoid2; import org.junit.Before; import org.mockito.internal.stubbing.answers.CallsRealMethods; import org.powermock.api.mockito.PowerMockito; /* 使用PowerMockito.mockStatic方法对类进行Mock,且指定默认An...
remz1337/ecj
contrib/lambda/ec/gp/lambda/app/churchNumerals/knownChurchNumerals/TrueSuccessor.java
/* Copyright 2014 by <NAME> Licensed under the Academic Free License version 3.0 See the file "LICENSE" for more information */ package ec.gp.lambda.app.churchNumerals.knownChurchNumerals; import java.io.Serializable; import ec.gp.GPNode; import ec.gp.lambda.*; //import ec.gp.lambda.LambdaIndividual; //import e...
luoshengming/MyReadings
books/java_cookbook_3e/src/main/java/gui_awt/ButtonDemo2c.java
package gui_awt; import java.applet.Applet; import java.awt.Button; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; /** * Demonstrate use of Button */ // BEGIN main public class ButtonDemo2c extends Applet { Button b; public void init() { add(b = new Button("A button")); ...
omarquina/moVirt
moVirt/src/main/java/org/ovirt/mobile/movirt/rest/dto/v4/Vm.java
package org.ovirt.mobile.movirt.rest.dto.v4; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.ovirt.mobile.movirt.model.enums.VmStatus; import org.ovirt.mobile.movirt.util.IdHelper; import org.ovirt.mobile.movirt.util.RestMapper; @JsonIgnoreProperties(ignoreUnknown = true) public class Vm ext...
hareshpatel/mage2.1.7
vendor/magento/module-catalog/view/adminhtml/web/component/image-size-field.js
/** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ define([ 'jquery', 'Magento_Ui/js/lib/validation/utils', 'Magento_Ui/js/form/element/abstract', 'Magento_Ui/js/lib/validation/validator' ], function ($, utils, Abstract, validator) { 'use str...
hohner36/hexchan-engine
src/imageboard/migrations/0010_auto_20190204_1314.py
# Generated by Django 2.1.5 on 2019-02-04 13:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('imageboard', '0009_auto_20190129_1529'), ] operations = [ migrations.AlterModelOptions( name='board', options={'ordering': [...
CaoYouXin/serveV2
apis/blog/src/blog/service/IUserFavourRuleService.java
<filename>apis/blog/src/blog/service/IUserFavourRuleService.java package blog.service; import blog.data.EIUserFavourRule; import rest.Service; import java.util.List; public interface IUserFavourRuleService extends Service { List<EIUserFavourRule> list(); EIUserFavourRule save(EIUserFavourRule userFavourRul...
jeorgedonato/spent-smart
client/src/components/Spinner/index.js
import React from 'react'; import styled from 'styled-components'; import SpinnerImg from '../spinner.gif'; const SpinnerStyle = styled.img` width: 200px; margin: auto; display: block; ` const Spinner = () => { return ( <> <SpinnerStyle src={SpinnerImg} alt="Loading..." /> </...
lihebi/emane
include/emane/packetinfo.h
<reponame>lihebi/emane /* * Copyright (c) 2013-2014 - Adjacent Link LLC, Bridgewater, New Jersey * Copyright (c) 2008 - DRS CenGen, LLC, Columbia, Maryland * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
Nyior/django-rest-paystack
paystack/services/webhook_service.py
import hashlib import hmac from django.conf import settings from rest_framework.exceptions import ValidationError from .customer_service import CustomerService from .transaction_service import TransactionService class WebhookService(object): def __init__(self, request) -> None: self.request = request ...
mF2C/COMPSsOLD
compss/runtime/resources/commons/src/main/java/es/bsc/compss/util/CloudManager.java
/* * Copyright 2002-2018 Barcelona Supercomputing Center (www.bsc.es) * * 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 ...
jasonlee529/code-challenge
src/main/java/cn/lee/hackerrank/algrithms/implementation/DesignerPDFViewer.java
<gh_stars>0 package cn.lee.hackerrank.algrithms.implementation; import java.util.Scanner; /** * https://www.hackerrank.com/challenges/designer-pdf-viewer/problem * <pre> * When you select a contiguous block of text in a PDF viewer, the selection is highlighted with a blue rectangle. In a new kind of PDF viewer...
kametic/go-odoo
tax_adjustments_wizard.go
package odoo import ( "fmt" ) // TaxAdjustmentsWizard represents tax.adjustments.wizard model. type TaxAdjustmentsWizard struct { LastUpdate *Time `xmlrpc:"__last_update,omptempty"` AdjustmentType *Selection `xmlrpc:"adjustment_type,omptempty"` Amount *Float `xmlrpc:"amount,omptempty...
p2pcommons/sdk-js
tests/example-key.js
exports.exampleKey1 = '4e01f6848573dcc0a712bd2482e6a3074310757448cd4a78fe219547fc2e484f' exports.exampleKey1V5 = '4e01f6848573dcc0a712bd2482e6a3074310757448cd4a78fe219547fc2e484f+5' exports.exampleKey1V123 = '4e01f6848573dcc0a712bd2482e6a3074310757448cd4a78fe219547fc2e484f+123' exports.exampleKey2 = '<KEY>' exp...
ant512/ReallyBadEggs
include/bmp/greenblockleftbmp.h
<gh_stars>0 #ifndef _GREENBLOCKLEFTBMP_H_ #define _GREENBLOCKLEFTBMP_H_ #include <bitmapwrapper.h> class GreenBlockLeftBmp : public WoopsiGfx::BitmapWrapper { public: GreenBlockLeftBmp(); }; #endif
nageshwarrao19/BUILD
BUILD_UserResearch/client/tests/directives-participant-invitation.spec.js
/*global chai, sinon, inject */ /*eslint no-unused-expressions:0 */ 'use strict'; var expect = chai.expect; var userResearchModule; describe('User Research>> Dependencies test for ParticipantInvitationDirectiveCtrl', function () { before(function () { userResearchModule = angular.module('UserResearch'); ...
mikewang/ruoyi-nriam
ruoyi-project/src/main/java/com/ruoyi/performance/mapper/PerAddscoreapplyMapper.java
<gh_stars>0 package com.ruoyi.performance.mapper; import com.ruoyi.performance.domain.PerAddscoreapply; import java.util.List; public interface PerAddscoreapplyMapper { List<PerAddscoreapply> selectPerAddscoreapply(PerAddscoreapply record); PerAddscoreapply selectPerAddscoreapplyById(Integer applyid); ...
jkdubr/Proj4
Pod/Classes/Projection/MOBProjectionEPSG6271.h
<gh_stars>1-10 #import "MOBProjection.h" @interface MOBProjectionEPSG6271 : MOBProjection @end
uktrade/enquiry-mgmt-tool
app/enquiries/tests/test_adobe_integration.py
<filename>app/enquiries/tests/test_adobe_integration.py<gh_stars>1-10 import datetime from unittest import mock from django.conf import settings from django.test import TestCase from django.utils import timezone from faker import Faker from freezegun import freeze_time import app.enquiries.ref_data as ref_data from a...
ololx/restful-data-storing-instances
active-jdbc/src/main/java/org/orm/patterns/instances/active/jdbc/ActiveJdbcApplication.java
package org.orm.patterns.instances.active.jdbc; import org.orm.patterns.instances.commons.CommonsApplication; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * The type ActiveJdbc configuration. */ @SpringBootApplication(scanBasePackageClas...
Kyle9021/trireme-lib
controller/pkg/ebpf/ebpf_linux.go
<reponame>Kyle9021/trireme-lib<gh_stars>100-1000 // +build !rhel6 package ebpf import ( "bytes" "encoding/binary" "os" "path/filepath" "strconv" "strings" "unsafe" bpflib "github.com/iovisor/gobpf/elf" "github.com/iovisor/gobpf/pkg/bpffs" provider "go.aporeto.io/enforcerd/trireme-lib/controller/pkg/aclprov...
pauljriley/ChuckNorrisJokes
app/src/main/java/uk/me/paulriley/chucknorrisjokes/views/endless/JokesAdapter.java
<filename>app/src/main/java/uk/me/paulriley/chucknorrisjokes/views/endless/JokesAdapter.java package uk.me.paulriley.chucknorrisjokes.views.endless; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup...
Sunrisepeak/Linux2.6-Reading
drivers/clk/mediatek/clk-mt8195-vdo0.c
<filename>drivers/clk/mediatek/clk-mt8195-vdo0.c // SPDX-License-Identifier: GPL-2.0-only // // Copyright (c) 2021 MediaTek Inc. // Author: <NAME> <<EMAIL>> #include "clk-gate.h" #include "clk-mtk.h" #include <dt-bindings/clock/mt8195-clk.h> #include <linux/clk-provider.h> #include <linux/platform_device.h> static c...
buraksaraloglu/whatwas
src/constants/routes.js
<gh_stars>1-10 export const HOME = '/'; export const DASHBOARD = '/dashboard'; export const SIGN_UP = '/signup'; export const SIGN_IN = '/signin'; export const NOTE = '/note';
kalexmills/proteus
query_mappers.go
<filename>query_mappers.go<gh_stars>100-1000 package proteus import ( "os" "github.com/rickar/props" ) type MapMapper map[string]string func (mm MapMapper) Map(name string) string { return mm[name] } type propFileMapper struct { properties *props.Properties } func (pm propFileMapper) Map(name string) string {...
Arcensoth/pyckaxe
pyckaxe/utils/io/json.py
<filename>pyckaxe/utils/io/json.py import asyncio import json from pathlib import Path from typing import Any, Dict from pyckaxe.lib.types import JsonValue __all__ = ( "load_json", "load_json_async", "dump_json", "dump_json_async", ) def load_json( path: Path, options: Dict[str, Any] = {}, )...
mateosss/monado
src/xrt/state_trackers/oxr/oxr_binding.c
<gh_stars>1-10 // Copyright 2018-2020, Collabora, Ltd. // SPDX-License-Identifier: BSL-1.0 /*! * @file * @brief Holds binding related functions. * @author <NAME> <<EMAIL>> * @ingroup oxr_main */ #include "util/u_misc.h" #include "xrt/xrt_compiler.h" #include "bindings/b_generated_bindings.h" #include "oxr_obje...
pajtimid/pod_sdkcore
SdkCore.framework/Headers/ArsdkFeatureArdrone3Accessorystate.h
/** Generated, do not edit ! */ #import <Foundation/Foundation.h> extern short const kArsdkFeatureArdrone3AccessorystateUid; struct arsdk_cmd; /** Accessory type */ typedef NS_ENUM(NSInteger, ArsdkFeatureArdrone3AccessorystateConnectedaccessoriesAccessoryType) { /** Unknown value from SdkCore. Only us...
xk11961677/sky-meteor
meteor-spring-boot-starter/src/main/java/com/sky/meteor/spring/AnnotationRegistrar.java
/* * The MIT License (MIT) * Copyright © 2019-2020 <sky> * * 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, including without limitation the rights * to use, copy, ...
nembrotorg/nembrot-api
db/migrate/20130908190027_change_pantographers_twitter_ids_to_bigint.rb
<reponame>nembrotorg/nembrot-api class ChangePantographersTwitterIdsToBigint < ActiveRecord::Migration def change remove_column :pantographers, :twitter_user_id add_column :pantographers, :twitter_user_id, :integer, limit: 8 end end
Qualia91/goLearning
patterns/microservices/reporting/doc.go
/*Providing Reporting. Solutions: - Reporting Service: Provides data for reporting by calling other services. Each service has a separate service that deals with reporting for that service. - Reporting Data Push App: Client services push reporting information to reporting service, then reporting service makes repo...
pcsanwald/kibana
src/ui/public/kbn_top_nav/__tests__/kbn_top_nav.js
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
only976/DesignPattern
src/main/java/Mould/BridgeTest.java
package Mould; import Color.*; import Shaped.*; /*Bridge模式测试*/ public class BridgeTest { public static void main(String[]args){ Mould mould1= new BigMould(new SphericalShaped(),new BlackColor()); Mould mould2=new MiddleMould(new SquareShaped(),new WhiteColor()); Mould mould3=new SmallMoul...
adeleporte/vrni-go-client
model_top_talker_sort_enum.go
/* * vRealize Network Insight API Reference * * vRealize Network Insight API Reference * * API version: 1.1.8 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package vrni // TopTalkerSortEnum the model 'TopTalkerSortEnum' type TopTalkerSortEnum string // List of TopTalkerSortEnum const ( ...
endlessbaum/UERANSIM
native/ngap-native/src/asn_generated/NGAP_NotificationControl.h
<filename>native/ngap-native/src/asn_generated/NGAP_NotificationControl.h /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NGAP-IEs" * found in "asn/NGAP-IEs.asn" * `asn1c -fcompound-names -findirect-choice -fno-include-deps -gen-PER -no-gen-OER -no-gen-example -D ngap -pdu=all` */ ...
kasoki/project-zombye
src/source/zombye/audio/sound_collection.cpp
#include <zombye/assets/asset.hpp> #include <zombye/assets/asset_loader.hpp> #include <zombye/assets/asset_manager.hpp> #include <zombye/assets/native_loader.hpp> #include <zombye/audio/audiohelper.hpp> #include <zombye/audio/sound_collection.hpp> #include <zombye/utils/logger.hpp> zombye::sound_collection::sound_coll...
ddalpange/tui.chart
test/models/bounds/circleLegendCalculator.spec.js
<reponame>ddalpange/tui.chart<gh_stars>1-10 /** * @fileoverview Test for circleLegendCalculator. * @author <NAME>. * FE Development Lab <<EMAIL>> */ 'use strict'; var circleLegendCalculator = require('../../../src/js/models/bounds/circleLegendCalculator'); var chartConst = require('../../../src/js/const')...
Konstyantin/Recent
resources/assets/src/components/Guest/index.js
export * from './Guest';
UQdeco2800/singularity-server
common/src/main/java/uq/deco2800/singularity/common/representations/coaster/state/NewPlayer.java
package uq.deco2800.singularity.common.representations.coaster.state; import com.fasterxml.jackson.annotation.JsonProperty; import org.hibernate.validator.constraints.NotEmpty; /** * Created by rcarrier on 20/10/2016. */ public class NewPlayer extends Update { @JsonProperty @NotEmpty private String name; @Jso...
sadupally/Dev
unisa-tools/unisa-booklistadmin/src/java/za/ac/unisa/lms/tools/booklistadmin/module/moduleImpl/BookSearcher_Publisher.java
package za.ac.unisa.lms.tools.booklistadmin.module.moduleImpl; import java.util.Iterator; import java.util.Vector; import java.util.List; import org.apache.struts.action.ActionMessages; import za.ac.unisa.lms.tools.booklistadmin.module.BookModule; import za.ac.unisa.lms.tools.booklistadmin.module.BookList; import za.ac...
FlashbackSRS/flashback
vendor/github.com/flimzy/kivik/session_test.go
package kivik import ( "context" "errors" "testing" "github.com/flimzy/diff" "github.com/flimzy/kivik/driver" ) type nonSessioner struct { driver.Client } type sessioner struct { driver.Client session *driver.Session err error } func (s *sessioner) Session(_ context.Context) (*driver.Session, error) {...
MarkDeMaria/origin
pkg/build/registry/test/buildconfig.go
<reponame>MarkDeMaria/origin package test import ( "sync" kapi "k8s.io/kubernetes/pkg/api" kapierrors "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/watch" "github.com/openshift/origin/pkg/build/api" ) type BuildConfigRegistry struct { Err error BuildConfigs *api.BuildConfigList Bu...
pftx/niolex-network-nio
network-name/src/main/java/org/apache/niolex/network/name/bean/AddressRegiSerializer.java
<reponame>pftx/niolex-network-nio /** * AddressRegiSerializer.java * * Copyright 2012 Niolex, Inc. * * Niolex 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: * * ht...
alipay/alipay-sdk-java-all
src/main/java/com/alipay/api/response/AlipayEbppInvoiceEnterpriseconsumeEnterpriseopenruleCreateResponse.java
<filename>src/main/java/com/alipay/api/response/AlipayEbppInvoiceEnterpriseconsumeEnterpriseopenruleCreateResponse.java package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.ebpp.invoice.enterpriseconsume.enterpriseope...
pupper68k/arcusandroid
arcusApp/app/src/main/java/arcus/app/subsystems/alarm/promonitoring/presenters/AlarmDeviceListPresenter.java
/* * Copyright 2019 Arcus 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 applicable law or a...
ckamtsikis/cmssw
CondFormats/JetMETObjects/src/JetCorrectionUncertainty.cc
#include "CondFormats/JetMETObjects/interface/JetCorrectionUncertainty.h" #include "CondFormats/JetMETObjects/interface/SimpleJetCorrectionUncertainty.h" #include "CondFormats/JetMETObjects/interface/JetCorrectorParameters.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "Math/PtEtaPhiE4D.h" #inclu...
jbritt1/content-build
src/site/stages/build/process-cms-exports/schemas/input/node-full_width_banner_alert.js
/* eslint-disable camelcase */ module.exports = { type: 'object', properties: { title: { $ref: 'GenericNestedString' }, created: { $ref: 'GenericNestedString' }, changed: { $ref: 'GenericNestedString' }, metatag: { $ref: 'RawMetaTags' }, path: { $ref: 'RawPath' }, status: { $ref: 'GenericNe...
jpalms/Team-Project
src/test/java/com/webcheckers/ui/PostResignGameRouteTest.java
package com.webcheckers.ui; import com.google.gson.Gson; import com.webcheckers.appl.GameManager; import com.webcheckers.model.Message; import com.webcheckers.model.Player; import com.webcheckers.model.TournamentScoreboard; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Tag; import org.junit.jup...
gjkamstra/go-hsdp-api
cartel/start_test.go
<gh_stars>10-100 package cartel import ( "net/http" "testing" "github.com/stretchr/testify/assert" ) func TestStart(t *testing.T) { var startResponse = `{"message": {"foo.dev": {"cartel": "Instance started"}}}` var _ = `{"message": "Instance cannot be started due to current state: running"}` teardown, err := ...
yanzastro/RAIL
rail/creation/engines/flowEngine.py
<gh_stars>0 """ This is the subclass of Engine that wraps a pzflow Flow so that it can used to generate synthetic data """ import numpy as np import qp from pzflow import Flow from rail.core.data import PqHandle, QPHandle, FlowHandle from rail.creation.engines import Engine, PosteriorEvaluator class FlowEngine(Eng...
mtunganati/oneops
oneops-admin/lib/chef/knife/cloud_sync.rb
require 'chef/knife/base_sync' class Chef class Knife class CloudSync < Chef::Knife include ::BaseSync banner "Loads cloud templates into OneOps\nUsage: \n circuit cloud [OPTIONS] [CLOUDS...]" option :all, :short => "-a", :long => "--all", ...
ptrmu/camsim
src/sfm/sfm_isam2.hpp
#ifndef _SFM_ISAM2_HPP #define _SFM_ISAM2_HPP #include "sfm_resectioning.hpp" namespace camsim { class SfmIsam2Impl; class SfmIsam2 { std::unique_ptr<SfmIsam2Impl> impl_; public: SfmIsam2(int key_marker_id, const gtsam::Pose3 &key_marker_f_world); ~SfmIsam2(); void add_measurements(int ca...
UniversityOfHelsinkiCS/grappa-front
src/studyfield/studyfield.actions.js
<reponame>UniversityOfHelsinkiCS/grappa-front export const STUDYFIELD_GET_ALL = "STUDYFIELD_GET_ALL"; export const STUDYFIELD_SAVE_ONE = "STUDYFIELD_SAVE_ONE"; export const STUDYFIELD_UPDATE_ONE = "STUDYFIELD_UPDATE_ONE"; export const STUDYFIELD_DELETE_ONE = "STUDYFIELD_DELETE_ONE"; export const getStudyfields = () =>...