repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
realrespecter/PUBG-FULL-SDK | SDK/PUBG_SoundOptionWidget_functions.cpp | <reponame>realrespecter/PUBG-FULL-SDK<gh_stars>1-10
// PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_SoundOptionWidget_parameters.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Fu... |
enxbayr/CS490-eShop | eshop-admin/src/main/java/edu/miu/eshop/eshopadmin/service/TransactionHistServiceImpl.java | <reponame>enxbayr/CS490-eShop
package edu.miu.eshop.eshopadmin.service;
import edu.miu.eshop.eshopadmin.domain.TransactionHist;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.HttpHeaders;
import org.springframew... |
519430378qqcom/2017-04-21 | YoumiFramework/src/main/java/cn/youmi/framework/main/ContextProvider.java | <filename>YoumiFramework/src/main/java/cn/youmi/framework/main/ContextProvider.java
package cn.youmi.framework.main;
import android.app.Application;
import android.graphics.Bitmap.CompressFormat;
public class ContextProvider{
public static final int DISK_IMAGECACHE_SIZE = 1024 * 1024 * 10;
public static CompressFor... |
XPRIZE/GLEXP-Team-Manzalab | app/modules/user_interface/src/elements/path.js | <filename>app/modules/user_interface/src/elements/path.js<gh_stars>1-10
define([
'../utils/game/state_graphic',
'../utils/game/factories/movie_clip_anim_factory',
'../utils/game/box_type'
], function (
StateGraphic,
MovieClipAnimFactory,
BoxType
) {
'use strict';
// ##########################################... |
harshach/streamline-1 | streams/functions/src/main/java/com/hortonworks/streamline/streams/udf/Exists.java | <reponame>harshach/streamline-1
package com.hortonworks.streamline.streams.udf;
import com.hortonworks.streamline.streams.rule.UDF;
public class Exists implements UDF<Integer, Long> {
@Override
public Integer evaluate(Long input) {
if (input == null || input == 0) {
return 0;
}
... |
apache/uima-ruta | ruta-core-ext/src/test/java/org/apache/uima/ruta/block/DocumentBlockTest.java | <gh_stars>10-100
/*
* 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
*... |
Gussy/titanium_desktop | modules/ti.Database/ResultSet.h | /*
* Copyright (c) 2009-2010 Appcelerator, 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 requi... |
sammiler/GDStash_Pro | src/org/gdstash/db/DBFormula.java | /* */ package org.gdstash.db;
/* */
/* */ import java.sql.Connection;
/* */ import java.sql.PreparedStatement;
/* */ import java.sql.ResultSet;
/* */ import java.sql.SQLException;
/* */ import java.sql.Statement;
/* */ import java.util.LinkedList;
/* */ import java.util.List;
/* ... |
jonclothcat/OpenPype | openpype/hosts/photoshop/api/pipeline.py | <gh_stars>0
import os
from Qt import QtWidgets
import pyblish.api
import avalon.api
from avalon import pipeline, io
from openpype.api import Logger
from openpype.lib import register_event_callback
from openpype.pipeline import (
LegacyCreator,
register_loader_plugin_path,
deregister_loader_plugin_path,
)
... |
ScalablyTyped/SlinkyTyped | d/dojo/src/main/scala/typingsSlinky/dojo/contextMenuTabMod.scala | package typingsSlinky.dojo
import org.scalablytyped.runtime.TopLevel
import typingsSlinky.dojo.dojox.gantt.contextMenuTab
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@JSImport("dojox/gantt/contextMenuTab", JSImport.Namespace)
@js.native
object contextMenuTabMod extends Top... |
Kirishikesan/haiku | src/servers/app/Layer.cpp | /*
* Copyright 2015 <NAME> <<EMAIL>>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Layer.h"
#include "AlphaMask.h"
#include "BitmapHWInterface.h"
#include "DrawingEngine.h"
#include "DrawState.h"
#include "IntRect.h"
#include "PictureBoundingBoxPlayer.h"
#include "ServerBitmap.... |
Ligh7bringer/Hazel | Hazelnut/src/Panels/SceneHierarchyPanel.hpp | <filename>Hazelnut/src/Panels/SceneHierarchyPanel.hpp
#pragma once
#include "Hazel/Core/Core.hpp"
#include "Hazel/Renderer/Texture.hpp"
#include "Hazel/Scene/Entity.hpp"
#include "Hazel/Scene/Scene.hpp"
namespace Hazel
{
class SceneHierarchyPanel
{
public:
SceneHierarchyPanel() = default;
explicit SceneHierarchyPa... |
valitydev/newway | src/test/java/dev/vality/newway/IntegrationTest.java | package dev.vality.newway;
import dev.vality.damsel.domain.*;
import dev.vality.damsel.payment_processing.*;
import dev.vality.geck.common.util.TypeUtil;
import dev.vality.machinegun.eventsink.MachineEvent;
import dev.vality.machinegun.msgpack.Value;
import dev.vality.newway.config.PostgresqlSpringBootITest;
import de... |
straceX/Ectoplasm | linux-1.2.0/linux/arch/i386/kernel/setup.c | /*
* linux/arch/i386/kernel/setup.c
*
* Copyright (C) 1995 <NAME>
*/
/*
* This file handles the architecture-dependent parts of process handling..
*/
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include ... |
polarG/splunk-connect-for-snmp | test/common/test_humanbool.py | <reponame>polarG/splunk-connect-for-snmp
from unittest import TestCase
from splunk_connect_for_snmp.common.hummanbool import human_bool
class TestHumanBool(TestCase):
def test_human_bool_true(self):
self.assertTrue(human_bool("t"))
self.assertTrue(human_bool("T"))
self.assertTrue(human_bo... |
AjanShrestha/nfc | client/src/services/h2h/__tests__/epic.test.js | <filename>client/src/services/h2h/__tests__/epic.test.js
// npm packages
import {ActionsObservable} from 'redux-observable';
import {Observable} from 'rxjs/Observable';
// our packages
import H2HEpic from '../epic';
import {FETCH_DATA} from '../actionTypes';
import H2HData from './h2hData.json';
import {h2hLeagueAPI} ... |
npocmaka/Windows-Server-2003 | admin/dsutils/displayspecifierupgrade/test/test.cpp | <filename>admin/dsutils/displayspecifierupgrade/test/test.cpp
#include "headers.hxx"
#include "..\dspecup.hpp"
#include <windows.h>
void stepIt(long arg, void *vTotal)
{
long *total=(long *)vTotal;
printf("\r" "\r%ld",(*total)+=arg);
}
void totalSteps(long arg, void *vTotal)
{
l... |
npocmaka/Windows-Server-2003 | ds/security/protocols/msv_sspi/test/lib/hresult.cxx | <gh_stars>10-100
/*++
Copyright (c) 2001 Microsoft Corporation
All rights reserved.
Module Name:
hresult.cxx
Abstract:
auto log
Author:
<NAME> (LZhu) December 6, 2001
Revision History:
--*/
#include "precomp.hxx"
#pragma hdrstop
#include "hresult.hxx"
... |
Atomicwallet/lisk-sdk | framework/dist-node/node/utils/error_handlers.js | <reponame>Atomicwallet/lisk-sdk<gh_stars>1-10
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class CommonBlockError extends Error {
constructor(message, lastBlockID) {
super(message);
this.lastBlockID = lastBlockID.toString('hex');
}
}
exports.CommonBlockError = Com... |
hleclerc/Evel | src/Evel/Signal_WF.h | #pragma once
#include <functional>
#include "Signal.h"
namespace Evel {
/**
*/
class Signal_WF : public Signal {
public:
using TF_signal = std::function<void( Signal_WF *, int sig )>;
Signal_WF( const int *sigs, TF_signal &&f = {} );
TF_signal f_signal;
protected:
virtual void signal( int s );
};
... |
ExCaVI-Ulm/3D-XGuide | src/interaction/vtkInteractorStyleMy2D.h | #ifndef VTKINTERACTORSTYLEMY2D_H
#define VTKINTERACTORSTYLEMY2D_H
#include "vtkInteractorStyleTrackballCamera.h"
class vtkUnsignedCharArray;
/** Triggers a SelectionChangeEvent when the user clicks.
* reinterpret_cast<double*>(callData) holds the click
* position (x,y,z) in VTK world coordinates.
*/
class vtkI... |
LabKey/wnprc-modules | WNPRC_EHR/resources/web/wnprc_ehr/ext4/components/GestationCalculation.js | Ext4.define('WNPRC.ext.plugins.GestationCalculation', {
extend: 'Ext4.util.Observable',
alias: 'plugin.wnprc-gestationcalculation',
init: function(component) {
Ext.apply(component, {
validationDelay: 1000,
validationEvent: 'blur',
});
// The following actual... |
s1nisteR/JavaProjects | Lab7P2/src/lab7p2/Main.java | //FOR THE REMAINING PROBLEMS, B AND C
package lab7p2;
import java.util.ArrayList;
import java.util.Scanner;
class Account
{
private int id;
private double balance;
private double annualInterestRate;
Account()
{
this.id = 0;
this.balance = 0.0;
this.annualInterestRate = 0.... |
galezra/wix-style-react | src/SelectorList/SelectorList.private.uni.driver.js | import { selectorListUniDriverFactory } from './SelectorList.uni.driver';
import { loaderUniDriverFactory } from '../Loader/Loader.uni.driver';
import { searchUniDriverFactory } from '../Search/Search.uni.driver';
import { selectorUniDriverFactory } from '../Selector/Selector.uni.driver';
import { dataHooks } from './S... |
kruore/VRGame_LudensVR | LudensVR_Project_01/Intermediate/Build/Win64/UE4Editor/Inc/LudensVR_Project_01/HPComp.gen.cpp | <filename>LudensVR_Project_01/Intermediate/Build/Win64/UE4Editor/Inc/LudensVR_Project_01/HPComp.gen.cpp
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually!... |
rajeev02101987/arangodb | 3rdParty/boost/1.71.0/libs/yap/example/autodiff_example.cpp | // Copyright (C) 2016-2018 <NAME>
//
// 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 "autodiff.h"
#include <iostream>
#include <boost/yap/algorithm.hpp>
#include <boost/polymorphic_cast.hpp>
#include <... |
rucub100/graphalytics-platforms-dxram | src/main/java/science/atlarge/graphalytics/dxram/graph/data/BFSResult.java | <gh_stars>0
/*
* Copyright (C) 2017 <NAME>, Institute of Computer Science, Department Operating Systems
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (a... |
ali-sharif/avm | org.aion.avm.userlib/src/org/aion/avm/userlib/AionUtilities.java | <filename>org.aion.avm.userlib/src/org/aion/avm/userlib/AionUtilities.java
package org.aion.avm.userlib;
/**
* A collection of methods to facilitate contract development.
*/
public class AionUtilities {
/**
* Returns a new byte array of length 32 that right-aligns the input bytes by padding them on the lef... |
Minionguyjpro/Ghostly-Skills | sources/com/google/android/gms/dynamic/zaa.java | package com.google.android.gms.dynamic;
import android.app.Activity;
import android.os.Bundle;
import com.google.android.gms.dynamic.DeferredLifecycleHelper;
/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */
final class zaa implements DeferredLifecycleHelper.zaa {
private final /* synthetic *... |
finnishtransportagency/ksr | src/main/client/src/reducers/navigation/index.js | <filename>src/main/client/src/reducers/navigation/index.js
import { combineReducers } from 'redux';
import activeNav from './activeNav';
export default combineReducers({
activeNav,
});
|
dimddev/NetCatKS-CP | NetCatKS/Validators/api/implementers/validators/xml/__init__.py | <filename>NetCatKS/Validators/api/implementers/validators/xml/__init__.py
__author__ = 'dimd'
from NetCatKS.Validators.api.interfaces.message import IMessage
from NetCatKS.Validators.api.implementers.validators.default import BaseValidator
from zope.component import adapts
from zope.component import getGlobalSiteMana... |
shurun19851206/sso | hihsoft-sso/JavaSource/com/hihsoft/sso/business/service/impl/TaclUserinfoServiceImpl.java | <filename>hihsoft-sso/JavaSource/com/hihsoft/sso/business/service/impl/TaclUserinfoServiceImpl.java
/**
* Copyright (c) 2013-2015 www.javahih.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.hihsoft.sso.business.service.impl;
import java.sql.SQLException;
import java.u... |
mzohreva/PASS | pass-core/src/main/java/pass/core/model/VerificationCode.java | package pass.core.model;
import java.io.Serializable;
import java.util.Date;
import java.util.UUID;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import pass.core.comm... |
mbarlowvt/Hydrograph | hydrograph.ui/hydrograph.ui.propertywindow/src/main/java/hydrograph/ui/propertywindow/widgets/utility/FilterOperationClassUtility.java | /*******************************************************************************
* Copyright 2017 Capital One Services, LLC and Bitwise, 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... |
tsemaylo/DerivativeSolver | src/MathParser/src/Sin.cpp | <reponame>tsemaylo/DerivativeSolver
/* Licensed to <NAME> under the MIT license.
* Refer to the LICENSE.txt file in the project root for more information.
*/
/**
* @file Sin.cpp
*
* Implemntation of Sin class.
*
* @author agor
* @since 16.08.2017
*/
#include "Sin.h"
#include "Visitor.h"
#include "Tra... |
rchaput/homebrew-core | Formula/server-go.rb | <filename>Formula/server-go.rb
class ServerGo < Formula
desc "Server for OpenIoTHub"
homepage "https://github.com/OpenIoTHub/server-go"
url "https://github.com/OpenIoTHub/server-go.git",
tag: "v1.1.77",
revision: "1c096fa17a6b529bb0002c224c9b035df368f30e"
license "MIT"
livecheck do
url :... |
privatosan/RayStorm | srcAmiga/rsi/voxel.cpp | <reponame>privatosan/RayStorm
/***************
* MODUL: voxel
* NAME: voxel.cpp
* DESCRIPTION: Functions for voxels
* AUTHORS: <NAME>, <NAME>
* HISTORY:
* DATE NAME COMMENT
* 11.02.95 ah initial release
***************/
#ifndef TYPEDEFS_H
#include "typedefs.h"
#endif
#if... |
iondv/ion-old-java-version-20140819 | ion-web-admin/src/main/java/ion/web/admin/LoginController.java | package ion.web.admin;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class LoginController extends BasicController {
@RequestMap... |
kuolei/incubator-doris | fe/fe-core/src/main/java/org/apache/doris/analysis/PartitionKeyDesc.java | // 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... |
charliealpha094/Project_Data_Visualization | Chapter_16_Downloading_Data/Mapping_global_datasets_json/eq_explore_data2.py | <reponame>charliealpha094/Project_Data_Visualization
#Done by <NAME> (25/07/2020)
#Extracting magnitudes
import json
filename = 'data/eq_data_1_day_m1.json'
with open(filename) as f:
all_eq_data = json.load(f)
readable_file = 'data/readable_eq_data.json'
with open(readable_file, 'w') as f:
json.dump(all_eq... |
extact-io/rms | rms-client-ui-console/src/main/java/io/extact/rms/client/console/login/LoggedInAuditLog.java | package io.extact.rms.client.console.login;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.event.Observes;
import lombok.extern.slf4j.Slf4j;
import io.extact.rms.client.api.login.LoggedInEvent;
@ApplicationScoped
@Slf4j
public class LoggedInAuditLog {
void onLoggedInEve... |
bostick/Deadlock | Capsloc/src/main/java/com/brentonbostick/capsloc/geom/MutableAABB.java | <filename>Capsloc/src/main/java/com/brentonbostick/capsloc/geom/MutableAABB.java<gh_stars>0
package com.brentonbostick.capsloc.geom;
import java.io.Serializable;
import com.brentonbostick.capsloc.math.DMath;
import com.brentonbostick.capsloc.math.Point;
import com.brentonbostick.capsloc.ui.paint.RenderingContext;
pu... |
lxxhome/JsExamples | test/headers.js |
console.log(headers); |
LgcyNetwork/Cosmos | lgcy/common/src/main/java/org/tron/common/overlay/discover/node/Node.java | <filename>lgcy/common/src/main/java/org/tron/common/overlay/discover/node/Node.java
package org.tron.common.overlay.discover.node;
import java.io.Serializable;
import java.util.Random;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.... |
krypt/krypt | test/helper.rb | <reponame>krypt/krypt
begin
require 'simplecov'
SimpleCov.start
rescue LoadError
end
require 'krypt'
require 'test/unit'
require_relative 'resources'
|
curtcox/ScreenRecorder | src/main/java/com/neomemex/shared/Pad.java | package com.neomemex.shared;
public final class Pad {
public static String last(int digitCount,int number) {
String text = "0000" + number;
return text.substring(text.length() - digitCount);
}
}
|
ProjectEdenGG/Nexus | src/main/java/gg/projecteden/nexus/features/particles/effects/CircleEffect.java | <filename>src/main/java/gg/projecteden/nexus/features/particles/effects/CircleEffect.java
package gg.projecteden.nexus.features.particles.effects;
import com.google.common.util.concurrent.AtomicDouble;
import gg.projecteden.nexus.features.particles.ParticleUtils;
import gg.projecteden.nexus.features.particles.VectorUt... |
rupendrab/py_unstr_parse | csvreader.py | <filename>csvreader.py<gh_stars>0
#!/usr/bin/env python3.5
import csv
def read(f, cols):
r = csv.reader(f)
# r = csv.reader(f, delimiter='~')
for row in r:
print([row[col-1] for col in cols])
if __name__ == '__main__':
import sys
args = sys.argv[1:]
if (len(args) >= 1):
cols = [int(val) for val i... |
fstgerm/framework.js-modules | src/modules/history.js | /**
* history
* @author <NAME>
*/
(function ($, undefined) {
'use strict';
var STORAGE_KEY = 'history';
var scope = $('#site');
var sels = {
input: '.js-history-input'
};
var urls = [];
try {
urls = JSON.parse(App.storage.local.get(STORAGE_KEY) || []);
} catch (error) {
App.log(error);
}
var upda... |
asantoz/trino | plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/PartitionWithStatistics.java | <filename>plugin/trino-hive/src/main/java/io/trino/plugin/hive/metastore/PartitionWithStatistics.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
*
* http://www.apache.org/licen... |
elseboy/my-collection | java-utils/src/main/java/com/utils/tools/upload/pojo/SysFileDomain.java | package com.utils.tools.upload.pojo;
import lombok.Data;
import javax.persistence.Table;
@Data
@Table(name = "sys_file")
public class SysFileDomain {
private Long id;
private String fileName;
private String fileSuffix;
private Long fileSize;
private Integer fileType;
private String fi... |
joeleg/laconia | packages/laconia-adapter/src/KinesisJsonInputConverter.js | <filename>packages/laconia-adapter/src/KinesisJsonInputConverter.js
const { kinesis } = require("@laconia/event");
module.exports = class KinesisJsonInputConverter {
convert(event) {
return kinesis(event).records.map(r => r.jsonData);
}
};
|
NikolovV/C-Language | SoftUni/C Programming/C Conditional Statements-Homework/02-Bonus Score/main.c | /*
Write a program that applies bonus score to given score in the range [1...9]
by the following rules:
* If the score is between 1 and 3, the program multiplies it by 10.
* If the score is between 4 and 6, the program multiplies it by 100.
* If the score is between 7 and 9, the program multiplies it by 1000.
*... |
tedi21/SisypheReview | Sisyphe/cppbase/src/debugTypeInfo.hpp | /*
* debugTypeInfo.hpp
*
*
* @date 14-07-2020
* @author <NAME>
* @version 1.00
* cppBase generated by gensources.
*/
#ifndef _DEBUGTYPEINFO_HPP_
#define _DEBUGTYPEINFO_HPP_
#include <boost/shared_ptr.hpp>
#include <boost/container/vector.hpp>
#include "copy_ptr.h"
#include "config.hpp"
#include "convert.hpp"... |
brentcroft/gtd | gui-driver-adapter-swt/src/main/java/com/brentcroft/gtd/camera/SwtCameraObjectService.java | <reponame>brentcroft/gtd
package com.brentcroft.gtd.camera;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.Widget;
import com.brentcroft.gtd.adapter.model.GuiObject;
import com.b... |
frozenspider/maelstrom-downloader | src/test/scala/org/fs/mael/test/stub/StoringEventManager.scala | package org.fs.mael.test.stub
import org.fs.mael.core.event.EventManager
import org.fs.mael.core.event.EventSubscriber
import org.fs.mael.core.event.PriorityEvent
/** Event manager that accumulates events */
class StoringEventManager extends EventManager {
var events: IndexedSeq[PriorityEvent] = IndexedSeq.empty
... |
Marlon992058/111_portal | src/com/rc/portal/dao/impl/TGoodsBrokerageDAOImpl.java | <filename>src/com/rc/portal/dao/impl/TGoodsBrokerageDAOImpl.java
package com.rc.portal.dao.impl;
import java.sql.SQLException;
import java.util.List;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.rc.app.framework.webapp.model.page.PageManager;
import com.rc.app.framework.webapp.model.page.PageWraper;
impor... |
arvimal/100DaysofCode-Python | Day-095/us_to_uk_dates.py | <reponame>arvimal/100DaysofCode-Python<gh_stars>1-10
#!/usr/bin/env python3
"""
Convert dates from US format `MM-DD-YYYY` to
UK format `DD-MM-YYYY`.
"""
|
MikeBull94/svg-stockpile | gradle-plugin/src/integTest/java/com/mikebull94/stockpile/gradle/StockpilePluginTest.java | <filename>gradle-plugin/src/integTest/java/com/mikebull94/stockpile/gradle/StockpilePluginTest.java
package com.mikebull94.stockpile.gradle;
import com.google.common.collect.ImmutableList;
import com.mikebull94.stockpile.util.PathUtils;
import org.gradle.testkit.runner.GradleRunner;
import org.junit.Before;
import org... |
navikt/testnorge | apps/pdl-forvalter/src/main/java/no/nav/pdl/forvalter/config/ApplicationConfig.java | package no.nav.pdl.forvalter.config;
import no.nav.testnav.libs.servletcore.config.ApplicationCoreConfig;
import no.nav.testnav.libs.servletsecurity.config.SecureOAuth2ServerToServerConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Confi... |
Cory-jbpm/jbpm | jbpm-case-mgmt/jbpm-case-mgmt-impl/src/main/java/org/jbpm/casemgmt/impl/audit/CaseInstanceAuditEventListener.java | <reponame>Cory-jbpm/jbpm
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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
*
... |
cosmo-jana/numerics-physics-stuff | double_pendulum.py | <reponame>cosmo-jana/numerics-physics-stuff
# coding: utf-8
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
def rhs(y, t, m1, m2, l1, l2):
g = 9.81
theta1, theta2, dtheta1, dtheta2 = tuple(y)
beta = np.cos(theta1 - theta2)
M = m1 + m2
alpha = -(l1*l2*m2*dthet... |
amahussein/vespa | searchcore/src/vespa/searchcore/proton/documentmetastore/document_meta_store_versions.h | <filename>searchcore/src/vespa/searchcore/proton/documentmetastore/document_meta_store_versions.h
// Copyright 2017 <NAME>. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
namespace proton::documentmetastore {
constexpr uint32_t NO_DOCUMENT_SIZE_TRACKING_VERSION = 0u... |
DatabasKarlsson/MaxScale | system-test/auth_sqlmode_ansi.cpp | /**
* @file bug705.cpp regression case for bug 705 ("Authentication fails when the user connects to a database
* when the SQL mode includes ANSI_QUOTES")
*
* - use only one backend
* - derectly to backend SET GLOBAL sql_mode="ANSI"
* - restart MaxScale
* - check log for "Error : Loading database names for servic... |
twitchyliquid64/kcdb | src/github.com/nsf/sexp/node_test.go | package sexp
import (
"errors"
"reflect"
"regexp"
"strings"
"testing"
)
func must_contain(t *testing.T, err, what string) {
re := regexp.MustCompile(what)
if !re.MatchString(err) {
t.Errorf(`expected: "%s", got: "%s"`, what, err)
} else {
t.Logf(`ok: %s`, err)
}
}
func error_must_contain(t *testing.T, e... |
linasmk/appointments_scheduling_react | src/store/appointmentsReducer.js | <filename>src/store/appointmentsReducer.js
/* ============== Dependencies ================ */
import appointmentData from "../data/data";
/* =================================================
=========== APPOINTMENTS REDUCER ================
================================================= */
const appointmentsReducer... |
sho25/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/wal/WALSplitter.java | <filename>hbase-server/src/main/java/org/apache/hadoop/hbase/wal/WALSplitter.java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this ... |
speedfirst/leetcode | cpp/TrappingRainWater.cc | <gh_stars>0
namespace TrappingRainWater {
class Solution {
public:
int trap(int A[], int n) {
if (n == 0) return 0;
int area = 0;
int prevHeight = 0;
// scan from left to right
int curArea = 0;
for (int i = 0; i < n; i+... |
lmdelbahia/TFProtocol | tfprotocol/v2.4.1/src/com/nerox/client/connection/Easyproxy.java | package com.nerox.client.connection;
import java.net.*;
import java.util.HashMap;
public class Easyproxy {
public static HashMap<Proxy.Type, InetSocketAddress> parse_address(String address){
HashMap<Proxy.Type, InetSocketAddress> res = new HashMap<>();
String proto;
String user = "";
... |
fredryce/stocker | btplotting-master/btplotting/analyzer_tables/sharperatio.py | <filename>btplotting-master/btplotting/analyzer_tables/sharperatio.py
from ..helper.datatable import ColummDataType
def datatable(self):
cols = [['', ColummDataType.STRING], ['Value', ColummDataType.FLOAT]]
cols[0].append('Sharpe-Ratio')
a = self.get_analysis()
cols[1].append(a['sharperatio'])
re... |
igloo-project/artifact-listener | maven-artifact-notifier-core/src/main/java/fr/openwide/maven/artifact/notifier/core/business/project/model/ProjectVersionStatus.java | package fr.openwide.maven.artifact.notifier.core.business.project.model;
public enum ProjectVersionStatus {
IN_PROGRESS,
PUBLISHED_ON_MAVEN_CENTRAL
}
|
Criss-zhang/JavaStudy | src/package02/homework/Cart.java | package package02.homework;
public class Cart extends Car {
public double weight;
public int carLong;
public Cart(int wheels,double weight){
super(wheels);
this.weight = weight;
}
@Override
int getLong(int carLong) {
return carLong;
}
}
|
spunkmars/django-aops | aops/cmdb/forms/contacts.py | #coding=utf-8
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import string_concat
from libs.forms.common import newModelForm, newChoiceField
class ContactsForm(newModelForm):
name = forms.CharField(max_length=255, label=string_concat(_('Contact'),... |
Hics0000/Console-Based-Cpp-Programs | Lab-Assignments/Data-Structure-Lab/Assignment-6/Question-4.cpp | #include <bits/stdc++.h>
using namespace std;
class node
{
public:
int val;
int freq;
node *l, *r;
node()
{
l = r = NULL;
val = freq = 0;
}
node(int x)
{
val = x;
freq = 1;
l = r = NULL;
}
};
void in(node *r)
{
if (r == NULL)
retur... |
maze-runnar/modal-component | modal/node_modules/@storybook/ui/dist/libs/shortcut.js | "use strict";
require("core-js/modules/es.array.find");
require("core-js/modules/es.array.includes");
require("core-js/modules/es.array.join");
require("core-js/modules/es.array.map");
require("core-js/modules/es.object.define-property");
require("core-js/modules/es.regexp.exec");
require("core-js/modules/es.str... |
gKouros/my_arduino_sketches | libraries/ros_lib/stdr_msgs/ThermalSourceVector.h | #ifndef _ROS_stdr_msgs_ThermalSourceVector_h
#define _ROS_stdr_msgs_ThermalSourceVector_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "stdr_msgs/ThermalSource.h"
namespace stdr_msgs
{
class ThermalSourceVector : public ros::Msg
{
public:
uint8_t thermal_sou... |
pip-services-archive/pip-services-runtime-java | src/org/pipservices/runtime/cache/CacheEntry.java | <filename>src/org/pipservices/runtime/cache/CacheEntry.java
package org.pipservices.runtime.cache;
/**
* Holds cached value for in-memory cache.
*
* @author <NAME>
* @version 1.0
* @since 2016-06-09
*/
public class CacheEntry {
private long _created = System.currentTimeMillis();
private String _key;
private ... |
ghsecuritylab/esp_alexa_idf | components/nghttp/nghttp2/lib/nghttp2_hd_huffman.h | <gh_stars>100-1000
/*
* nghttp2 - HTTP/2 C Library
*
* Copyright (c) 2013 <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 ... |
stsnel/TESTAR_dev | testar/src/org/testar/statemodel/ConcreteStateTransition.java | <reponame>stsnel/TESTAR_dev
package org.testar.statemodel;
import org.testar.statemodel.persistence.Persistable;
public class ConcreteStateTransition implements Persistable {
// a transition is a trinity consisting of two states as endpoints and an action to tie these together
private ConcreteState sourceSta... |
dyle71/hcs-crypt | test/unit/symmetric_cipher/test_copy.cpp | <reponame>dyle71/hcs-crypt
/*
* This file is part of the headcode.space crypt.
*
* The 'LICENSE.txt' file in the project root holds the software license.
* Copyright (C) 2020-2021 headcode.space e.U.
* <NAME> <<EMAIL>>, https://www.headcode.space
*/
#include <gtest/gtest.h>
#include <headcode/crypt/crypt.hpp>
#... |
qinpastor/WeatherAppJS | node_modules/rc-table/lib/utils/fixUtil.js | <gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getCellFixedInfo = getCellFixedInfo;
function getCellFixedInfo(colStart, colEnd, columns, stickyOffsets) {
var startColumn = columns[colStart] || {};
var endColumn = columns[colEnd] || {};
var fixLeft;
var fixRi... |
ntdatjoker/wae-thesis | wae-thesis-model-api/src/main/java/wae/thesis/indiv/api/exception/ServiceNotFoundException.java | <reponame>ntdatjoker/wae-thesis
package wae.thesis.indiv.api.exception;
import wae.thesis.indiv.api.item.ErrorCode;
/**
* Created by <NAME>.
*/
public class ServiceNotFoundException extends CoreException {
public ServiceNotFoundException(String message, ErrorCode errorCode) {
super(message, errorCode)... |
avetisk/mineral-ui | packages/mineral-ui-icons/src/IconFormatShapes.js | <reponame>avetisk/mineral-ui<filename>packages/mineral-ui-icons/src/IconFormatShapes.js
/* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFormatShapes(props: IconProps) {... |
erikedwards4/dsp | c/ifft.kiss.c | //Does 1-D IFFT (inverse fast Fourier transform) of each vector in X along dim.
//The input X is complex-valued.
//The output Y has the same size as X, except along dim, where Y has length nfft.
//Y is real-valued for ifft_kiss_s and ifft_kiss_d,
//and complex-valued for ifft_kiss_c and ifft_kiss_z.
//In the former cas... |
mphan6/30-seconds-of-code | test/httpPut/httpPut.test.js | const expect = require('expect');
const httpPut = require('./httpPut.js');
test('httpPut is a Function', () => {
expect(httpPut).toBeInstanceOf(Function);
});
|
Samuel789/MediPi | MediPiPatient/MediPi/src/main/java/org/medipi/medication/ui/ShowMedicationsMenu.java | package org.medipi.medication.ui;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.geometry.Insets;
import javafx.scene.input.MouseEvent;
import org.medipi.MediPi;
import org.medipi.medication.MedicationManager;
import org.medipi.medication.model.Medication;
import org.medipi.medication.model.Schedule... |
tonioshikanlu/tubman-hack | sources/androidx/transition/Visibility.java | <filename>sources/androidx/transition/Visibility.java
package androidx.transition;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.content.res.XmlResourcePa... |
changwookyou/ckeditor5 | packages/ckeditor5-basic-styles/tests/code/codeui.js | /**
* @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* globals document */
import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
import CodeEditing from '../... |
r-neal-kelly/nkr | nkr_tests/maybe_t/src/maybe_t_user_defined_sp.cpp | <gh_stars>0
/*
Copyright 2021 r-neal-kelly
*/
#include "nkr/z_bool_t.h"
#include "nkr/z_intrinsics.h"
#include "nkr/z_maybe_t.h"
#include "nkr/z_utils.h"
#include "doctest.h"
namespace nkr {
TEST_SUITE("maybe_t<user_defined_p>")
{
#define nkr_ALL_PARAMS(QUALIFIER_p, UNIT_p) \
QUALIFIER_p... |
wobushiren79/VedioChat | app/src/main/java/com/huanmedia/videochat/pay/MyAccountPresenter.java | <reponame>wobushiren79/VedioChat<gh_stars>0
package com.huanmedia.videochat.pay;
import com.huanmedia.ilibray.utils.data.assist.Check;
import com.huanmedia.videochat.common.manager.UserManager;
import com.huanmedia.videochat.common.widget.dialog.HintDialog;
import com.huanmedia.videochat.repository.datasouce.impl.Main... |
tolorukooba/hedera-mirror-node | hedera-mirror-importer/src/main/java/com/hedera/mirror/importer/parser/record/transactionhandler/CryptoUpdateTransactionHandler.java | package com.hedera.mirror.importer.parser.record.transactionhandler;
/*-
*
* Hedera Mirror Node
*
* Copyright (C) 2019 - 2022 Hedera Hashgraph, 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 cop... |
Bytom-Community/Bytom-Ruby-SDK | lib/bytom/api/core_config.rb | module Bytom
class CoreConfig
attr_reader :client
private :client
def initialize(client)
@client = client
end
##
# Returns the information of current network node.
#
def net_info
client.make_request('/net-info', 'post', params: {})
end
def gas_rate
client.m... |
fnrizzi/pressio-demoapps | tests_py/3d_sedov_symmetry/weno3_nxnynz_equal/test_3d_sedov_weno3_nxnynz_equal.py | <filename>tests_py/3d_sedov_symmetry/weno3_nxnynz_equal/test_3d_sedov_weno3_nxnynz_equal.py<gh_stars>1-10
import pathlib, sys
file_path = pathlib.Path(__file__).parent.absolute()
import numpy as np
import time
import matplotlib.pyplot as plt
from numpy import linalg as LA
from matplotlib import cm
import pressiodemoa... |
mahendra-panchal/Hyperledger-Node_JS-Cli | node_modules/mock-couch/lib/convertViews.js | <filename>node_modules/mock-couch/lib/convertViews.js<gh_stars>10-100
/*jslint node: true, indent: 2 , nomen : true, evil : true */
'use strict';
var R = require('ramda'),
createMD5 = require('./createMD5'),
nl = /(?:\\r|\\n|\n|\r)/g;
module.exports = function (doc) {
if (doc.views && (!doc.id || (doc.id && doc... |
andreazammarchi3/OOP_Lab | OOP-Lab09/src/it/unibo/oop/lab/lambda/ex02/TestMusicGroup.java | package it.unibo.oop.lab.lambda.ex02;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import org.junit.Before;
import org.junit.Test;
import static java.util.stream.Collectors.toList;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.asse... |
DreiMu/Create | src/main/java/com/simibubi/create/content/contraptions/base/IRotate.java | package com.simibubi.create.content.contraptions.base;
import com.simibubi.create.content.contraptions.goggles.IHaveGoggleInformation;
import com.simibubi.create.content.contraptions.wrench.IWrenchable;
import com.simibubi.create.foundation.config.AllConfigs;
import com.simibubi.create.foundation.item.ItemDescription;... |
akiellor/selenium | third_party/gecko-2/win32/include/nsIProtocolProxyService2.h | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM e:/builds/moz2_slave/rel-2.0-xr-w32-bld/build/netwerk/base/public/nsIProtocolProxyService2.idl
*/
#ifndef __gen_nsIProtocolProxyService2_h__
#define __gen_nsIProtocolProxyService2_h__
#ifndef __gen_nsIProtocolProxyService_h__
#include "nsIProtocolProxyService... |
DataBooster/PyWebApi | Sample/UserApps/PowerBIPusher/pbi_authorization.py | <filename>Sample/UserApps/PowerBIPusher/pbi_authorization.py<gh_stars>1-10
# Sourced:
# https://github.com/microsoft/PowerBI-Developer-Samples/blob/master/Python/Embed%20for%20your%20customers/powerbiembedding/aadservice.py
#
import msal
from pbi_config import config
def get_accesstoken():
'''Returns AAD token usi... |
gauravgarg17/Compressonator | Compressonator/CMP_Framework/CMP_Framework.h | //=====================================================================
// Copyright (c) 2007-2016 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2004-2006 ATI Technologies Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associate... |
aliyun/aliyun-openapi-cpp-sdk | dms-enterprise/src/model/SearchTableRequest.cc | <reponame>aliyun/aliyun-openapi-cpp-sdk<filename>dms-enterprise/src/model/SearchTableRequest.cc
/*
* Copyright 2009-2017 Alibaba Cloud 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.