repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
chrisstaite/DMX_seven_segment
DMX Controller/seven_segment_array.h
<gh_stars>1-10 // // seven_segment_array.h // DMX Controller // // Created by <NAME> on 08/02/2017. // Copyright © 2017 <NAME>. All rights reserved. // #ifndef SEVEN_SEGMENT_ARRAY_H_ #define SEVEN_SEGMENT_ARRAY_H_ #include "seven_segment.h" namespace avr { class Pin; } // namespace avr namespace led { /// An ...
CDz1129/ZTuoExchange_framework
otc-core/src/main/java/cn/ztuo/bitrade/config/HttpSessionConfig.java
<filename>otc-core/src/main/java/cn/ztuo/bitrade/config/HttpSessionConfig.java package cn.ztuo.bitrade.config; import org.springframework.context.annotation.Bean; import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession; import org.springframework.session.web.http.CookieHttpSessi...
ruimo/store2
app/models/ChangeItemMetadata.scala
package models import java.sql.Connection import play.api.db.Database case class ChangeItemMetadataTable( itemMetadatas: Seq[ChangeItemMetadata] ) { def update(itemId: Long)(implicit conn: Connection) { itemMetadatas.foreach { _.update(itemId) } } } case class ChangeItemMetadata( metadataType:...
Soth1985/Thor
thor/code/Thor/Graphics/GraphicsRuntimeSharedComponent/ThGraphicsRuntimeSharedExport.h
<gh_stars>0 #pragma once #include <Thor/Framework/Common.h> #ifdef THOR_MS_WIN #ifdef THOR_GRAPHICS_RUNTIME_SHARED_EXPORT #define THOR_GRAPHICS_RUNTIME_SHARED_DLL __declspec(dllexport) #elif defined THOR_GRAPHICS_RUNTIME_SHARED_IMPORT #define THOR_GRAPHICS_RUNTIME_SHARED_DLL __declspec(dllimport) #els...
King0987654/windows2000
private/inet/mshtml/src/site/display/dispinterior.hxx
<gh_stars>10-100 //+--------------------------------------------------------------------------- // // Microsoft Internet Explorer // Copyright (C) Microsoft Corporation, 1997-1998 // // File: dispinterior.hxx // // Contents: Base class for interior (non-leaf) display nodes. // //-------------------...
DC-Melo/gradle_android_monkey_service
AndroidMonkeyRunningAdapter/src/main/java/com/github/monkey/runner/helper/SharedProperties.java
package com.github.monkey.runner.helper; import java.util.ArrayList; public class SharedProperties { private static ArrayList<Object> properties = new ArrayList<Object>(); private static SharedProperties instance = new SharedProperties(); public static SharedProperties getInstance() { return instance; } ...
south-coast-science/scs_philips_hue
src/scs_philips_hue/data/bridge/backup.py
""" Created on 28 Oct 2017 @author: <NAME> (<EMAIL>) example: {"status": "idle", "error_code": 0} """ from collections import OrderedDict from scs_core.data.json import JSONable # -------------------------------------------------------------------------------------------------------------------- class Backup(JSO...
rkhmelichek/docker-maven-plugin
src/main/java/io/fabric8/maven/docker/config/CopyConfiguration.java
package io.fabric8.maven.docker.config; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Properties; import org.apache.maven.plugins.annotations.Parameter; import io.fabric8.maven.docker.util.DeepCopy; public class CopyConfiguration implements Serializable { publ...
jmdisher/Cacophony
test/com/jeffdisher/cacophony/logic/TestGlobalPinCache.java
package com.jeffdisher.cacophony.logic; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import org.junit.Assert; import org.junit.Test; import com.jeffdisher.cacophony.data.local.v1.GlobalPinCache; import com.jeffdisher.cacophony.types.IpfsFile; public class TestGlobalPinCache { public ...
lulugyf/inospeech
app/src/main/java/com/laog/test1/inoreader/InoApi.java
package com.laog.test1.inoreader; import android.util.Log; import com.laog.test1.db.FeedItem; import com.laog.test1.db.FeedItemDao; import com.laog.test1.db.MN; import com.laog.test1.db.State; import com.laog.test1.util.TextUtil; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; i...
atveit/vespa
bundle-plugin/src/main/scala/com/yahoo/container/plugin/mojo/Artifacts.scala
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.container.plugin.mojo import org.apache.maven.artifact.Artifact import org.apache.maven.project.MavenProject import scala.collection.JavaConverters._ /** * @author tonytv */ obje...
neotracker/neotracker-wallet
src/wallet/shared/components/select/SelectCard.js
<filename>src/wallet/shared/components/select/SelectCard.js /* @flow */ import { Link as RRLink } from 'react-router-dom'; import React from 'react'; import classNames from 'classnames'; import { compose, getContext, pure, withHandlers, } from 'recompose'; import { connect } from 'react-redux'; import { create...
WUttts/laboratory
src/main/java/com/mafei/laboratory/system/entity/SysUser.java
package com.mafei.laboratory.system.entity; import lombok.Data; import javax.persistence.*; import java.io.Serializable; import java.util.Date; /** * 用户信息表 * @author wts */ @Entity @Data @Table(name = "sys_user") public class SysUser implements Serializable { private static final long serialVersionUID = 1L; ...
wombats-writing-code/fbw-platform-common
reducers/Result/__tests__/result.unit-spec.js
<reponame>wombats-writing-code/fbw-platform-common var _index=require('../index');var _index2=_interopRequireDefault(_index); var _getResults=require('../getResults'); var _getStudentResult=require('../getStudentResult'); var _createMission=require('../../edit-mission/createMission'); var _deleteMission=require('....
deeptexas-ai/test
Common/script/src/csv_adapter.h
<gh_stars>1-10 /** * \file csv_adapter.h * \brief csv脚本适配器类头文件 * * Copyright (c) 2019 * All rights reserved. * * \version 1.0 * \author jj */ #ifndef __CSV_ADAPTER_H__ #define __CSV_ADAPTER_H__ #include "csv_variant.h" #include "csv_row.h" #include <vector> #include "fileloader.h" #include "strutil.h" using namespac...
vunamhung/codebases
bonobos.com/components/text_tag.js
<reponame>vunamhung/codebases import React from "react" import PropTypes from "prop-types" import classNames from "classnames" import styles from "highline/styles/components/text_tag.module.css" class TextTag extends React.PureComponent { static propTypes = { checked: PropTypes.bool, children: PropTypes.node...
ricksjames/big-data-plugin
api/runtimeTest/src/test/java/org/pentaho/runtime/test/network/impl/GatewayConnectivityTestImplTest.java
/******************************************************************************* * * Pentaho Big Data * * Copyright (C) 2002-2017 by <NAME> : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the "License"...
guillaume-plantevin/VeeSeeVSTRack
plugins/community/repos/TheXOR/src/attenuator.cpp
#include "common.hpp" #include "attenuator.hpp" namespace rack_plugin_TheXOR { void Attenuator::step() { for(int k = 0; k < NUM_ATTENUATORS; k++) { if(outputs[OUT_1 + k].active) outputs[OUT_1 + k].value = inputs[IN_1 + k].value * params[ATT_1 + k].value; } } AttenuatorWidget::AttenuatorWidget(Attenuator *mod...
WolfSmartRAML/raml-dotnet-parser-2
source/Raml.Parser/node_modules/raml-1-0-parser/node_modules/webpack/test/js/devtool-eval/chunks/named-chunks/1.bundle.js
<filename>source/Raml.Parser/node_modules/raml-1-0-parser/node_modules/webpack/test/js/devtool-eval/chunks/named-chunks/1.bundle.js exports.ids = [1]; exports.modules = [ /* 0 */, /* 1 */ /*!****************************************!*\ !*** ./chunks/named-chunks/empty.js?a ***! \*************************************...
kaebmoo/simple-server
app/models/admin_access_control.rb
<filename>app/models/admin_access_control.rb class AdminAccessControl < ApplicationRecord belongs_to :admin belongs_to :access_controllable, polymorphic: true ACCESS_CONTROLLABLE_TYPE_FOR_ROLE = { analyst: 'FacilityGroup', supervisor: 'FacilityGroup', counsellor: 'FacilityGroup', organization_own...
reels-research/iOS-Private-Frameworks
HomeKitDaemon.framework/HMDCloudLegacyHomeDataRecord.h
<filename>HomeKitDaemon.framework/HMDCloudLegacyHomeDataRecord.h /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon */ @interface HMDCloudLegacyHomeDataRecord : HMDCloudRecord @property (nonatomic, retain) NSData *dataVersion2; + (id)legacyModelWithHomeD...
LetterN/Railcraft
src/main/java/mods/railcraft/world/item/CrowbarHandler.java
<filename>src/main/java/mods/railcraft/world/item/CrowbarHandler.java<gh_stars>1-10 package mods.railcraft.world.item; import java.util.Map; import com.google.common.collect.MapMaker; import mods.railcraft.RailcraftConfig; import mods.railcraft.advancements.criterion.RailcraftCriteriaTriggers; import mods.railcraft....
JacobsonMT/Gemma
gemma-core/src/main/java/ubic/gemma/core/analysis/expression/coexpression/links/LinkAnalysisConfig.java
<filename>gemma-core/src/main/java/ubic/gemma/core/analysis/expression/coexpression/links/LinkAnalysisConfig.java /* * The Gemma project * * Copyright (c) 2007 Columbia University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
Mindtribe/MTBuild
lib/mtbuild/toolchains/arm_none_eabi_gcc.rb
<reponame>Mindtribe/MTBuild module MTBuild require 'mtbuild/toolchains/gcc' Toolchain.register_toolchain(:arm_none_eabi_gcc, 'MTBuild::ToolchainArmNoneEabiGcc') # This ToolchainGcc subclass can build using arm-non-eabi-gcc class ToolchainArmNoneEabiGcc < ToolchainGcc def initialize(parent_configuration, ...
ParikhKadam/NeMo
tests/unit/core/neural_module/test_module_configuration_import.py
<gh_stars>1-10 # ! /usr/bin/python # -*- coding: utf-8 -*- # ============================================================================= # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance...
ScalablyTyped/SlinkyTyped
a/angular-loading-bar/src/main/scala/typingsSlinky/angularLoadingBar/mod.scala
<gh_stars>10-100 package typingsSlinky.angularLoadingBar import org.scalablytyped.runtime.Shortcut import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object mod extends Shortcut {...
waslm/spring-boot-blog
src/main/java/cn/njiuyag/springboot/blog/service/UserService.java
<reponame>waslm/spring-boot-blog<filename>src/main/java/cn/njiuyag/springboot/blog/service/UserService.java package cn.njiuyag.springboot.blog.service; import cn.njiuyag.springboot.blog.dto.input.UserInfoUpdateInputDTO; import cn.njiuyag.springboot.blog.framework.ErrorCode; import cn.njiuyag.springboot.blog.framework....
shuwenjin/dcwlt
dcwlt-common/dcwlt-common-pay/src/main/java/com/dcits/dcwlt/pay/api/domain/dcep/login/LoginReqDTO.java
package com.dcits.dcwlt.pay.api.domain.dcep.login; import com.alibaba.fastjson.annotation.JSONField; import com.dcits.dcwlt.pay.api.domain.dcep.DCEPReqBody; import com.dcits.dcwlt.pay.api.domain.ecny.ECNYReqBody; /** * * @Time 2021/01/08 * @Version 1.0 * Description:登录/退出请求报文 */ public class LoginReqDTO extends...
kef/hieos
src/xutil/src/com/vangent/hieos/xutil/metadata/structure/SQCodeOr.java
/* * This code is subject to the HIEOS License, Version 1.0 * * Copyright(c) 2008-2009 Vangent, Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, ei...
gknowles/dimapp
libs/net/httpmsg.cpp
<filename>libs/net/httpmsg.cpp // Copyright <NAME> 2016 - 2021. // Distributed under the Boost Software License, Version 1.0. // // httpmsg.cpp - dim http #include "pch.h" #pragma hdrstop using namespace std; using namespace Dim; /**************************************************************************** * * Tun...
centresource/aws-sdk-for-ruby
lib/aws/ec2/client/xml.rb
# Copyright 2011 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
yourtion/LeetCode
java/src/test/java/com/yourtion/leetcode/daily/m10/d06/SolutionTest.java
<filename>java/src/test/java/com/yourtion/leetcode/daily/m10/d06/SolutionTest.java package com.yourtion.leetcode.daily.m10.d06; import com.yourtion.leetcode.TestUtils; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.params.ParameterizedTest; import org.junit....
cflowe/ACE
TAO/tao/ImR_Client/ImR_Client.h
<reponame>cflowe/ACE // -*- C++ -*- //============================================================================= /** * @file ImR_Client.h * * $Id: ImR_Client.h 96760 2013-02-05 21:11:03Z stanleyk $ * * @author <NAME> <<EMAIL>> */ //======================================================================...
acidicMercury8/xray-1.6
src/utils/xrLC_Light/lc_net_global_data.h
#ifndef _NET_LC_GLOBAL_DATA_H_ #define _NET_LC_GLOBAL_DATA_H_ #include "net_global_data.h" namespace lc_net { template<> class net_global_data_impl<gl_cl_data> { public: void init() { data_init( ); } protected: void create_data_file (LPCSTR path); bool create_data (LPCSTR path); ...
ZottelvonUrvieh/TobyboT
src/extensions/core/timeFormated.js
<filename>src/extensions/core/timeFormated.js module.exports = { msToTimeDifferenceString: function (ms) { let d, h, m, s; s = Math.floor(ms / 1000); m = Math.floor(s / 60); s = s % 60; h = Math.floor(m / 60); m = m % 60; d = Math.floor(h / 24); h = h ...
DRK3/orb
pkg/protocolversion/versions/v1_0/client/client.go
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package client import ( "github.com/trustbloc/sidetree-core-go/pkg/compression" "github.com/trustbloc/sidetree-core-go/pkg/versions/1_0/operationparser" "github.com/trustbloc/sidetree-core-go/pkg/versions/1_0/txnp...
avesus/OpenFPGA
openfpga/src/utils/circuit_library_utils.h
/******************************************************************** * Header file for circuit_library_utils.cpp *******************************************************************/ #ifndef CIRCUIT_LIBRARY_UTILS_H #define CIRCUIT_LIBRARY_UTILS_H /******************************************************************** ...
faraz891/gitlabhq
app/services/auth/dependency_proxy_authentication_service.rb
<gh_stars>1-10 # frozen_string_literal: true module Auth class DependencyProxyAuthenticationService < BaseService AUDIENCE = 'dependency_proxy' HMAC_KEY = 'gitlab-dependency-proxy' DEFAULT_EXPIRE_TIME = 1.minute def execute(authentication_abilities:) return error('dependency proxy not enabled'...
ducklingcloud/dct
src/main/java/cn/vlabs/duckling/vwb/service/emailnotifier/dao/EmailSubscriberProviderImpl.java
/* * Copyright (c) 2008-2016 Computer Network Information Center (CNIC), Chinese Academy of Sciences. * * This file is part of Duckling 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 L...
abohomol/gifky
app/src/main/java/com/abohomol/gifky/repository/retrofit/GifResponse.java
package com.abohomol.gifky.repository.retrofit; class GifResponse { private GifResponseItem[] data; public GifResponseItem[] getData() { return data; } static class GifResponseItem { private String source_tld; private ImageList images; public String getSource() { ...
gitchander/miscellaneous
sort_algo/gnome.go
<reponame>gitchander/miscellaneous<filename>sort_algo/gnome.go package sort_algo import "sort" // Gnome sort // Гномья сортировка func GnomeSort(data sort.Interface) { n := data.Len() for i := 1; i < n; { if (i == 0) || !data.Less(i, i-1) { // [i-1] <= [i] i++ } else { data.Swap(i, i-1) i-- } } }
keerbin/cloudbreak
cloud-reactor-api/src/main/java/com/sequenceiq/cloudbreak/cloud/event/platform/GetPlatformNetworksResult.java
package com.sequenceiq.cloudbreak.cloud.event.platform; import com.sequenceiq.cloudbreak.cloud.event.CloudPlatformRequest; import com.sequenceiq.cloudbreak.cloud.event.CloudPlatformResult; import com.sequenceiq.cloudbreak.cloud.model.CloudNetworks; public class GetPlatformNetworksResult extends CloudPlatformResult<Cl...
EuroPython/djep
pyconde/sponsorship/urls.py
from django.conf.urls import url, patterns urlpatterns = patterns('pyconde.sponsorship.views', url(r'^$', 'list_sponsors', name='sponsorship_list'), url(r'^job_offers/$', 'job_offers_list_view', name='sponsorship_job_offers'), url(r'^send_job_offer/$', 'send_job_off...
kyoujuro/istio
security/pkg/nodeagent/plugin/providers/google/stsclient/stsclient_test.go
<gh_stars>1-10 // Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
obj-QED/Tailwind_Sass_Webpack
src/components/Nav.js
import React, { Component } from "react"; import { NavLink, Link } from "react-router-dom"; export default class Nav extends React.Component { constructor(props) { super(props); this.state = {}; } render() { return ( <div className="navigation hidden"> <div className="logo"> ...
lcsm29/project-euler
py/py_0393_migrating_ants.py
# Solution of; # Project Euler Problem 393: Migrating ants # https://projecteuler.net/problem=393 # # An n×n grid of squares contains n2 ants, one ant per square. All ants decide # to move simultaneously to an adjacent square (usually 4 possibilities, # except for ants on the edge of the grid or at the corners). We ...
ycj123/Research-Project
proFL-plugin-2.0.3/edu/emory/mathcs/backport/java/util/concurrent/locks/Lock.java
// // Decompiled by Procyon v0.5.36 // package edu.emory.mathcs.backport.java.util.concurrent.locks; import edu.emory.mathcs.backport.java.util.concurrent.TimeUnit; public interface Lock { void lock(); void lockInterruptibly() throws InterruptedException; boolean tryLock(); boolean t...
honza-kasik/creaper
commands/src/main/java/org/wildfly/extras/creaper/commands/foundation/online/CliFile.java
package org.wildfly.extras.creaper.commands.foundation.online; import com.google.common.base.Charsets; import com.google.common.base.Predicates; import com.google.common.collect.Iterables; import com.google.common.io.ByteSource; import org.wildfly.extras.creaper.core.CommandFailedException; import org.wildfly.extras.c...
HadrienCools/blog_gatsby
node_modules/react-md/es/Dividers/index.js
import Divider from './Divider'; export default Divider; import _Divider from './Divider'; export { _Divider as Divider };
malbouis/cmssw
RecoTracker/TkMSParametrization/interface/PixelRecoUtilities.h
#ifndef PixelRecoUtilities_H #define PixelRecoUtilities_H #include "DataFormats/GeometryVector/interface/GlobalVector.h" #include "MagneticField/Engine/interface/MagneticField.h" /** \namespace PixelRecoUtilities * Small utility funcions used during seed generation */ namespace PixelRecoUtilities { /** gives be...
redroseio/collect
collect_app/src/test/java/org/odk/collect/android/support/FakeLifecycleOwner.java
package com.redrosecps.collect.android.support; import androidx.annotation.NonNull; import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.LifecycleRegistry; public class FakeLifecycleOwner implements LifecycleOwner { private final LifecycleRegistry lifecycle = n...
ak-jena/webpack
node_modules/@spectrum-web-components/icons-ui/src/custom-tag.js
<reponame>ak-jena/webpack /* Copyright 2020 Adobe. All rights reserved. This file is licensed to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required...
JohnnRen/will-power
back_end/src/services/equipments/equipments.service.js
// Initializes the `equipments` service on path `/equipments` const createService = require('feathers-nedb'); const createModel = require('../../models/equipments.model'); const _patchDelta = require('../../utils/_patchDelta'); const makePatchAction = require('../../utils/makePatchAction'); const joinFind = require('.....
kayahr/wlandsuite
src/main/java/de/ailis/wlandsuite/game/parts/Answer.java
<gh_stars>1-10 /* * $Id$ * Copyright (C) 2006 <NAME> <<EMAIL>> * * 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,...
AlexKoukoulas2074245K/Genesis
source/engine/resources/ShaderLoader.h
///------------------------------------------------------------------------------------------------ /// ShaderLoader.h /// Genesis /// /// Created by <NAME> on 20/11/2019. ///------------------------------------------------------------------------------------------------ #ifndef ShaderLoader_h #define ShaderLoader_...
BipronathSaha/immudb
cmd/immutest/command/cmd.go
<filename>cmd/immutest/command/cmd.go<gh_stars>0 /* Copyright 2019-2020 vChain, 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 ...
uwsampl/libposit
src/cjd/impl.h
<filename>src/cjd/impl.h // SPDX-License-Identifier: MIT OR BSD-3-Clause #include "posit.h" // CAUTION: This header file is included in weird ways, DO NOT define any function // signatures or types here. This file should only contain the implementation name // and registration macros and should only include posit.h an...
dhenisdj/deep-object-reid
torchreid/engine/__init__.py
<reponame>dhenisdj/deep-object-reid<filename>torchreid/engine/__init__.py<gh_stars>1-10 from __future__ import print_function, absolute_import from .engine import Engine from .image import ImageSoftmaxEngine, ImageAMSoftmaxEngine, ImageTripletEngine from .video import VideoSoftmaxEngine, VideoTripletEngine from .build...
cc616/cuke-ui
components/pagination/__tests__/index.test.js
import Select from "../../select"; import React from "react"; import { render, shallow } from "enzyme"; import assert from "power-assert"; import toJson from "enzyme-to-json"; import Pagination from "../index"; import Button from "../../button"; import { ArrowLeftIcon, ArrowRightIcon, SuccessIcon } from "../../icon"; i...
edgar615/api-gateway
dispatch/src/main/java/com/github/edgar615/gateway/filter/ResponseReplaceFilter.java
package com.github.edgar615.gateway.filter; import com.google.common.collect.Multimap; import com.github.edgar615.gateway.core.dispatch.ApiContext; import com.github.edgar615.gateway.core.dispatch.Filter; import com.github.edgar615.gateway.core.dispatch.Result; import io.vertx.core.Future; import io.vertx.core.json.J...
dranawhite/study-java
study-tomcat/src/main/java/com/study/tomcat/lifecycle/Lifecycle.java
package com.study.tomcat.lifecycle; /** * * @author dranawhite * @version $Id: Lifecycle.java, v 0.1 2019-03-09 13:59 dranawhite Exp $$ */ public interface Lifecycle { void start(); void stop(); }
alect/Puzzledice
Tools/PuzzleMapEditor/src/puzzledice/PropertyChangePuzzleBlock.java
package puzzledice; import gui.PuzzleEditPanel; import gui.WindowMain; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; import java.util.List; import java.util.Map; import javax.swing.BoxLayout; import javax.swing.DefaultComboBoxModel; im...
hugeblank/Bagels_Baking
src/main/java/dev/elexi/hugeblank/bagels_baking/block/BasicCandleCakeBlock.java
<reponame>hugeblank/Bagels_Baking package dev.elexi.hugeblank.bagels_baking.block; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.block.CandleBlock; import net.minecraft.block.CandleCakeBlock; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.it...
nattangwiwat/Mayan-EDMS-recitation
mayan/apps/duplicates/migrations/0009_auto_20210124_0738.py
<gh_stars>100-1000 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('duplicates', '0008_auto_20201130_0847'), ] operations = [ migrations.RemoveField( model_name='duplicatebackendentry', name='datetime_added', ...
QlcChainOrg/winq-ios
Qlink/Main/Topup/GroupBuy/Cell/OngoingGroupCell.h
<gh_stars>1-10 // // OngoingGroupCell.h // Qlink // // Created by <NAME> on 2020/1/13. // Copyright © 2020 pan. All rights reserved. // #import "QBaseTableCell.h" NS_ASSUME_NONNULL_BEGIN @class GroupBuyListModel; static NSString *OngoingGroupCell_Reuse = @"OngoingGroupCell"; #define OngoingGroupCell_Height 60 ...
PhantomPowered/Proxy
proxy-api/src/main/java/com/github/phantompowered/proxy/api/location/Vector.java
/* * This class has been taken from the Bukkit API */ package com.github.phantompowered.proxy.api.location; import com.github.phantompowered.proxy.api.math.MathHelper; import org.jetbrains.annotations.NotNull; import java.io.Serializable; /** * Represents a mutable vector. Because the components of Vectors are mu...
sknebel/microformat-shiv
test/module-tests/text-test.js
/* Unit test for text */ assert = chai.assert; // Tests the private Modules.text object // Modules.text is unit tested as it has an interface access by other modules describe('Modules.text', function() { it('parse', function(){ var html = '\n <a href="http://glennjones.net">Glenn\<NAME> \n...
immutabl3/store
src/utils/indexOfCompare.js
<reponame>immutabl3/store<gh_stars>1-10 import compare from './compare.js'; export default (arr, item) => { let idx = 0; const len = arr.length; for (; idx < len; idx++) { if (compare(arr[idx], item)) return idx; } return -1; };
FuShaoLei/NewsProject
project-server/src/main/java/com/fushaolei/server/controller/CommentController.java
package com.fushaolei.server.controller; import com.alibaba.fastjson.JSON; import com.fushaolei.server.bean.BaseResponse; import com.fushaolei.server.bean.Comment; import com.fushaolei.server.bean.InsertComment; import com.fushaolei.server.constant.HttpConstant; import com.fushaolei.server.dao.CommentsDao; import org....
iamzken/aliyun-openapi-cpp-sdk
vs/src/model/BatchForbidVsStreamResult.cc
<reponame>iamzken/aliyun-openapi-cpp-sdk<filename>vs/src/model/BatchForbidVsStreamResult.cc<gh_stars>10-100 /* * 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 o...
top/octopus
core/service/model/response/response.go
package response import ( "net/http" "octopus/core/global" "github.com/gin-gonic/gin" ) type Response struct { Code int `json:"code"` Data interface{} `json:"data,omitempty"` Msg string `json:"msg"` } func Result(code int, data interface{}, msg string, c *gin.Context) { c.JSON(http.StatusOK, Re...
nick-nack-attack/utahexpungements.org
frontend/app/forms/special-bci/special-bci.pdf.component.js
<filename>frontend/app/forms/special-bci/special-bci.pdf.component.js import React from "react"; import RenderPage from "../render-page.component"; import PositionedString from "../pdf-rendering/positioned-string.component"; import PositionedCheckmark from "../pdf-rendering/positioned-checkmark.component"; import { g...
acidicMercury8/xray-1.0
sdk/boost_1_30_0/libs/math/special_functions/sinhc_test.hpp
<filename>sdk/boost_1_30_0/libs/math/special_functions/sinhc_test.hpp // unit test file sinhc.hpp for the special functions test suite // (C) Copyright <NAME> 2003. Permission to copy, use, modify, sell and // distribute this software is granted provided this copyright notice appears // in all copies. This soft...
vaginessa/irma
common/tests/__init__.py
import sys import os pardir = os.path.abspath(os.path.join(__file__, os.path.pardir)) sys.path.append(os.path.dirname(pardir))
sufrin/ThreadCSO
src/io/threadcso/lock/AndBarrier.scala
package io.threadcso.lock /** A `CombiningBarrier` with `e=true` and `op=_&&_` */ class AndBarrier(n: Int, name: String="AndBarrier") extends CombiningBarrier[Boolean](n, true, _ && _, name)
trngaje/mame-2003-plus-kaze
src/libretro-common/audio/dsp_filters/echo.c
/* Copyright (C) 2010-2020 The RetroArch team * * --------------------------------------------------------------------------------------- * The following license statement only applies to this file (echo.c). * --------------------------------------------------------------------------------------- * * Permission ...
tyekx/netcode
NetcodeAssetEditor/BonesPage.h
<filename>NetcodeAssetEditor/BonesPage.h<gh_stars>0 #pragma once #include "BonesPage.g.h" #include "DepthToMarginConverter.h" namespace winrt::NetcodeAssetEditor::implementation { struct BonesPage : BonesPageT<BonesPage> { bool firstNavigation; BonesPage(); void OnNavigatedTo(Windows...
IlyaKozlov/dedoc
dedoc/data_structures/annotation.py
<reponame>IlyaKozlov/dedoc from collections import OrderedDict from flask_restx import Api, Model, fields from dedoc.data_structures.serializable import Serializable class Annotation(Serializable): def __init__(self, start: int, end: int, name: str, value: str) -> None: """ Some kind of text in...
s3valkov/JavaBasic
05.SimpleLoops/src/LeftRightSum.java
<reponame>s3valkov/JavaBasic<filename>05.SimpleLoops/src/LeftRightSum.java import java.util.Scanner; public class LeftRightSum { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = Integer.parseInt(scanner.nextLine()); int leftSum = 0 ; ...
girishcx/one
src/fireedge/src/client/features/One/host/services.js
/* ------------------------------------------------------------------------- * * Copyright 2002-2021, OpenNebula Project, OpenNebula Systems * * * * Licensed under the Apache License, Version 2.0 (the "License"); you may * * n...
Anbang713/mini-mall
mall-sales/mall-sales-provider/src/main/java/com/autumn/mall/sales/controller/PaymentTypeController.java
<reponame>Anbang713/mini-mall<filename>mall-sales/mall-sales-provider/src/main/java/com/autumn/mall/sales/controller/PaymentTypeController.java /** * 版权所有 (C), 2019-2020, XXX有限公司 * 项目名:com.autumn.mall.sales.controller * 文件名: PaymentTypeController * 日期: 2020/3/15 16:50 * 说明: */ package com.autumn.mall.sales.contro...
Junhua91/tornesol
algo-study/src/main/java/com/junhua/algorithm/leetcode/datastructure/bit/PowerOfTwo.java
<filename>algo-study/src/main/java/com/junhua/algorithm/leetcode/datastructure/bit/PowerOfTwo.java<gh_stars>1-10 package com.junhua.algorithm.leetcode.datastructure.bit; /** * leetCode 231 */ public class PowerOfTwo { public static void main(String[] args) { System.out.println(isPowerOf2(4)); S...
PedroPadilhaPortella/Curso_Desenvolvimento_Web_JavaScript
JavaScript/Funções/ParametrosPadrão.js
<filename>JavaScript/Funções/ParametrosPadrão.js<gh_stars>1-10 //Primeio Método para gerar um valor padrão function product01(a, b, c){ a = a || 1; b = b || 1; c = c || 1; return a * b * c } console.log(product01(), product01(3), product01(2, 3, 4), product01(0, 0, 0)) //Métodos usando operadores ter...
naxadeve/MNE-Android
collect_app/src/main/java/org/odk/collect/android/mne/forms/PraticalActionForm.java
package org.odk.collect.android.mne.forms; import android.arch.persistence.room.Entity; import android.arch.persistence.room.PrimaryKey; @Entity(tableName = "practical_action_forms") public class PraticalActionForm { private String beneficiaryId; private String activityId; private String instanceId; ...
qinFamily/freeVM
enhanced/archive/classlib/java6/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/image/ImageDecoder.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...
didindinn/database-as-a-service
dbaas/physical/forms/disk_offerring.py
<reponame>didindinn/database-as-a-service from django import forms from django.core.validators import MinValueValidator from ..models import DiskOffering class DiskOfferingForm(forms.ModelForm): size_gb = forms.FloatField( label='Size GB', validators=[MinValueValidator(0.1)] ) class Meta: ...
joshiejack/Mirror-Mirror
src/main/java/joshie/mirror/api/elements/Band.java
package joshie.mirror.api.elements; import joshie.mirror.api.Ability; import joshie.mirror.api.Element; import net.minecraft.util.ResourceLocation; import java.util.HashMap; import java.util.Map; public class Band extends Element<Band> { public static final Map<ResourceLocation, Band> BANDS = new HashMap<>(); ...
wangrollin/leetcode-java
src/main/java/com/wangrollin/leetcode/n0_normal/p200/p210/problem217/Solution2.java
<reponame>wangrollin/leetcode-java<gh_stars>0 package com.wangrollin.leetcode.n0_normal.p200.p210.problem217; import java.util.*; /** * 存在重复元素 * * 给定一个整数数组,判断是否存在重复元素。 * 如果任何值在数组中出现至少两次,函数返回 true。如果数组中每个元素都不相同,则返回 false。 * * 示例 1: * 输入: [1,2,3,1] * 输出: true * * 示例 2: * 输入: [1,2,3,4] * 输出: false * * 示例3:...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/StoreKitUI.framework/SKUILibraryItemState.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/StoreKitUI.framework/StoreKitUI */ @interface SKUILibraryItemState : NSObject <NSCopying> { unsigned long long _avTypes; long long _availability; NSString * _bundleIdentifier; NSString * _bundleVersion; bool _highDefinit...
Schwarz-Hexe/YAMMS
skse/PapyrusCell.h
#pragma once class TESObjectCELL; class TESObjectREFR; class VMClassRegistry; namespace papyrusCell { void RegisterFuncs(VMClassRegistry* registry); UInt32 GetNumRefs(TESObjectCELL* thisCell, UInt32 formType); TESObjectREFR* GetNthRef(TESObjectCELL* thisCell, UInt32 index, UInt32 formType); }
jydata/MCP
mcp-server/src/main/java/com/jiuye/mcp/server/controller/home/HomePageController.java
package com.jiuye.mcp.server.controller.home; import com.alibaba.fastjson.JSON; import com.google.common.collect.Lists; import com.jiuye.mcp.param.constants.SystemConstant; import com.jiuye.mcp.response.Response; import com.jiuye.mcp.server.controller.BaseController; import com.jiuye.mcp.server.dao.meta.MetaDatarouteM...
unlimitedggames/gdxjam-ugg
core/src/com/ugg/gdxjam/model/ai/fsm/TripleEnemyState.java
package com.ugg.gdxjam.model.ai.fsm; import com.badlogic.gdx.ai.fsm.State; import com.badlogic.gdx.ai.msg.Telegram; import com.badlogic.gdx.ai.steer.Steerable; import com.badlogic.gdx.ai.steer.behaviors.Pursue; import com.badlogic.gdx.ai.steer.behaviors.Wander; import com.badlogic.gdx.math.Vector2; import com.ugg.gdxj...
cleverrchen77/LeetCode
src/FirstBadVersion.java
<reponame>cleverrchen77/LeetCode /** * 第一个错误的版本 * @author Administrator * */ /** * The isBadVersion API is defined in the parent class VersionControl. * boolean isBadVersion(int version); */ public class FirstBadVersion { public int firstBadVersion(int n) { int low=1; int high= n; int mid=0; while(low<=hi...
sidhu177/pythonprog
Breadth-First-Search.py
# -*- coding: utf-8 -*- """ Created on Sun Dec 2 01:51:49 2018 Taken from Data Structures and Algorithms using Python text book... """ def BFS(g,s,discovered): level = [s] while len(level)>0: next_level = [] for u in level: for e in g.incident_edges(u): ...
nattyco/fermatold
fermat-api/src/main/java/com/bitdubai/fermat_api/layer/dmp_transaction/incoming_device_user/IncomingDeviceUserManager.java
package com.bitdubai.fermat_api.layer.dmp_transaction.incoming_device_user; //import com.bitdubai.fermat_api.layer.crypto_module.actor_address_book.exceptions.ExampleException; /** * Created by loui on 22/02/15. */ public interface IncomingDeviceUserManager { // public void exampleMethod() throws ExampleExceptio...
Jasonandy/alpaca
alpaca-common/src/main/java/cn/ucaner/alpaca/framework/utils/tools/system/JvmInfo.java
<reponame>Jasonandy/alpaca /** * <html> * <body> * <P> Copyright 1994 JsonInternational</p> * <p> All rights reserved.</p> * <p> Created on 19941115</p> * <p> Created by Jason</p> * </body> * </html> */ package cn.ucaner.alpaca.framework.utils.tools.system; /** * @Package:cn.ucaner.alpaca.fr...
DonAnthonyLee/LBPanel_LBKit
src/libs/lbk/LBApplication.cpp
<filename>src/libs/lbk/LBApplication.cpp<gh_stars>1-10 /* -------------------------------------------------------------------------- * * Little Board Application Kit * Copyright (C) 2018, <NAME>, All Rights Reserved * * This software is a freeware; it may be used and distributed according to * the terms of The MI...
matthewlai93/KafkaSentinel
KafkaApp/node_modules/csv-parse/samples/fs_read.js
var fs = require('fs'); var parse = require('..'); var parser = parse({delimiter: ';'}, function(err, data){ console.log(data); }); fs.createReadStream(__dirname+'/fs_read.csv').pipe(parser);
inesmarca/2TP_SO
Kernel/exceptions.c
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com #include <consoleManager.h> #include <stdint.h> #include <lib.h> #include <exception.h> #include <time.h> #define ZERO_EXCEPTION_ID 0 #define INVALID_OPCODE_EXCEP...
BrunoCersozimo/Fundamentos-Javascript
fundamentos/numerosAlgunsCuidados.js
console.log(7 / 0.0001)//Qualquer número divido por 0 não gera um erro gera um infinity console.log("10" / 2)//javascript divide o 10 apesar dele estar entre aspas, ou seja, ser uma string console.log('3' + 2) // Diferente do exemplo acima, aqui o + vai concatenar o 3 e o 2. Exibindo o resultado 32 console.log("Show...