repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
JeppeSRC/Frodo | src/Frodo-core/graphics/texture/sampler.h | <reponame>JeppeSRC/Frodo<filename>src/Frodo-core/graphics/texture/sampler.h
#pragma once
#include <platforms/platform.h>
#include <core/enums.h>
#include <core/types.h>
namespace fd {
namespace graphics {
namespace texture {
class Sampler {
protected:
VkSampler sampler;
public:
Sampler(SamplerFilter ... |
sbhachu/Android | audio-player/app/src/main/java/com/sbhachu/audioplayer/presentation/view/GenreItemAdapterView.java | <reponame>sbhachu/Android
package com.sbhachu.audioplayer.presentation.view;
import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.sbhachu.audioplayer.R;
import com.sbhachu.audioplayer.data.model.media.Genre;
import org.androidannotations.annotations.EViewGrou... |
Auzqy/design-pattern-GOF23-study | src/main/java/top/auzqy/design/pattern/behavioral/chainofresponsibility/example2/Boss.java | <filename>src/main/java/top/auzqy/design/pattern/behavioral/chainofresponsibility/example2/Boss.java<gh_stars>1-10
package top.auzqy.design.pattern.behavioral.chainofresponsibility.example2;
/**
* description: 老板
* createTime: 2019-08-05 16:48
* @author zqy
*/
public class Boss extends Leader {
@Override
... |
openDSME/CometOS | src/communication/ipv6/coap/ResourceList.h | /*
* CometOS --- a component-based, extensible, tiny operating system
* for wireless networks
*
* Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
teddywest32/intellij-community | platform/core-impl/src/com/intellij/psi/impl/FakePsiElement.java | <gh_stars>0
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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... |
lechium/iOS1351Headers | System/Library/Frameworks/SafariServices.framework/SFFormAutoFillFrame.h | /*
* This header is generated by classdump-dyld 1.5
* on Friday, April 30, 2021 at 11:36:35 AM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/Frameworks/SafariServices.fra... |
moogacs/aws-sdk-go-v2 | service/grafana/api_op_DisassociateLicense.go | <reponame>moogacs/aws-sdk-go-v2
// Code generated by smithy-go-codegen DO NOT EDIT.
package grafana
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/grafana/types"
"github.com/aws/smithy-go/middleware... |
Sunrisepeak/Linux2.6-Reading | drivers/spi/spi-dw-dma.c | <gh_stars>10-100
// SPDX-License-Identifier: GPL-2.0-only
/*
* Special handling for DW DMA core
*
* Copyright (c) 2009, 2014 Intel Corporation.
*/
#include <linux/completion.h>
#include <linux/dma-mapping.h>
#include <linux/dmaengine.h>
#include <linux/irqreturn.h>
#include <linux/jiffies.h>
#include <linux/module... |
wallamejorge/WirelessSensorGas | rtl/wirelessUSBDrivers/Linux/2010_0709_RT2870_Linux_STA_v2.4.0.1/common/crypt_hmac.c | /*
*************************************************************************
* Ralink Tech Inc.
* 5F., No.36, Taiyuan St., Jhubei City,
* Hsinchu County 302,
* Taiwan, R.O.C.
*
* (c) Copyright 2002-2007, Ralink Technology, Inc.
*
* This program is free software; you can redistribute it and/or modify *
* it ... |
valoeghese/Zoesteria | src/main/java/valoeghese/valoeghesesbe/world/biomes/alpha3/macro/BiomeGrasslandsLakeless.java | package valoeghese.valoeghesesbe.world.biomes.alpha3.macro;
import valoeghese.valoeghesesbe.world.worldtype.ILakeRemover;
public class BiomeGrasslandsLakeless extends BiomeGrasslands implements ILakeRemover
{
public BiomeGrasslandsLakeless(BiomeProperties properties, Variant plainsType)
{
super(properties, plains... |
bowlofstew/vespa | clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/util/JSONObjectWrapperTest.java | <filename>clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/util/JSONObjectWrapperTest.java<gh_stars>0
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.clustercontroller.utils.util;
import junit.fr... |
copslock/broadcom_cpri | sdk-6.5.20/include/shared/swstate/layout/sw_state_dpp_soc_arad_pp_occupation_layout.h | /*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*
* DO NOT EDIT THIS FILE!
* This file is auto-generated.
* Edits to this file will be lost when it is regener... |
viewdy/phantomjs | src/qt/qtwebkit/Source/WebCore/Modules/filesystem/DOMFileSystemBase.cpp | <reponame>viewdy/phantomjs<filename>src/qt/qtwebkit/Source/WebCore/Modules/filesystem/DOMFileSystemBase.cpp
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:... |
lenxin/spring-security | oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/endpoint/OAuth2RefreshTokenGrantRequestTests.java | package org.springframework.security.oauth2.client.endpoint;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.junit.Before;
import org.junit.Test;
import org.springframework.security.oauth2.client.registration.ClientRegistration;
import org.springframework.security.oauth2.client.re... |
xformation/xformation-compliancemanager-service | compliancemanager-server/src/main/java/com/synectiks/process/server/plugin/MessageSummary.java | <reponame>xformation/xformation-compliancemanager-service
/*
* */
package com.synectiks.process.server.plugin;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import org.joda.time.Da... |
nanoxd/homebrew-cask | Casks/virustotaluploader.rb | <reponame>nanoxd/homebrew-cask
class Virustotaluploader < Cask
version '1.1'
sha256 'e757f8eb49592dfe67169a5582bcc3cca01c8ecc6634853398813a2aa92f24a7'
url 'https://www.virustotal.com/static/bin/VirusTotalUploader_1.1.dmg'
homepage 'https://www.virustotal.com/'
link 'VirusTotalUploader.app'
end
|
yerkortiz/Algorithm-Design-Notes | ayt-08/secuenciasSaltarinas.java | import java.util.*;
import java.lang.*;
public class Main {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
int n = stdin.nextInt();
int[] arr = new int[n];
boolean[] check = new boolean[n];
for(int i = 0; i < n; ++i)// leer elementos del arre... |
pa-mahe/cdap | cdap-watchdog/src/main/java/co/cask/cdap/metrics/store/DefaultMetricDatasetFactory.java | /*
* Copyright 2015-2017 <NAME>, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
redherd-project/redherd-framework | herd-server/models/rdhd-mdl-module_gateway.js | 'use strict';
const fs = require('fs');
const path = require('path');
class ModuleGateway
{
constructor(repo)
{
this.repo = repo;
}
// Specialized decorator
findByName(name)
{
let current = false;
fs.readdirSync(this.repo).forEach(f => {
if (path.extname(f)... |
fox91/himan | himan-plugins/source/auxiliary_plugin.cpp | /*
* auxiliary_plugin.cpp
*
*/
#include "auxiliary_plugin.h"
|
DaftMat/Draft-Engine | src/Engine/Geometry/Primitives/ParticleSystem/Particle.hpp | <reponame>DaftMat/Draft-Engine
/**
* Created by mathis on 06/05/2020.
*/
#ifndef DAFT_ENGINE_PARTICLE_HPP
#define DAFT_ENGINE_PARTICLE_HPP
#include <src/Engine/Geometry/MeshObject.hpp>
#include <src/Engine/Cameras/camera.h>
/** class for particles.
* billboard.
*/
class Particle : public MeshObject {
public:
... |
windows-development/Windows-classic-samples | Samples/Win7Samples/dataaccess/oledb/tablecopy/property.h | //-----------------------------------------------------------------------------
// Microsoft OLE DB TABLECOPY Sample
// Copyright (C) 1991-2000 Microsoft Corporation
//
// @doc
//
// @module PROPERTY.H
//
//-----------------------------------------------------------------------------
#ifndef _PROPERTY_H_
#def... |
aliostad/deep-learning-lang-detection | data/train/go/5c9bdd2d5fd87b2f7b443a78bd36cbbe01eb647edispatch.go | package resp
import (
"bytes"
"fmt"
"reflect"
"strings"
)
// Dispatch provides case-insensitivity support
type dispatch struct {
recv interface{}
recvValue reflect.Value
commands map[string]*reflect.Method
}
func normalizeMethodName(name string) string {
return strings.ToLower(name)
}
// newDispatch c... |
brayanmf/top-v13 | projects/sequelize-mysql/server.js | const express = require("express");
const {
sync,
createProduct,
getAllProjects,
deleteProject,
updateProject,
} = require("./modules/api");
const app = express();
// GET
app.get("/products", async (req, res) => {
await sync();
const projects = await getAllProjects();
res.json(projects);
});
// POST... |
lachrist/candlekeep | global/Array/prototype/pop.js | <gh_stars>1-10
Array.prototype.pop = function () {
var last = this[this.length-1];
this.length = this.length-1;
return last;
}
|
fszgmbh/primereact | src/__tests__/components/Button.test.js | import React from 'react';
import { render } from '@testing-library/react';
import { Button } from '../../components/button/Button';
describe('Button Component', () => {
test('should display the Button', () => {
const { container } = render(<Button />);
const buttonElement = container.firstChild;
expect(contai... |
ty-porter/hyde | hyde/token.py | from enum import Enum, auto, unique
@unique
class TokenType(Enum):
# Single-character tokens
LEFT_PAREN = auto()
RIGHT_PAREN = auto()
LEFT_BRACE = auto()
RIGHT_BRACE = auto()
COMMA = auto()
DOT = auto()
MINUS = auto()
PLUS = auto()
SEMICOLON = aut... |
Taig/schelm | core/src/main/scala/io/taig/schelm/Children.scala | <filename>core/src/main/scala/io/taig/schelm/Children.scala<gh_stars>1-10
package io.taig.schelm
import cats._
import cats.implicits._
import scala.collection.immutable.ListMap
sealed abstract class Children[A] extends Product with Serializable {
final def isEmpty: Boolean = this match {
case Children.Indexed(... |
Songpon74250/CodeTester-IDEA | CodeTester-IntelliJ-IDEA/src/main/java/de/fxnm/web/grabber/access_token/LoginTokenGrabber.java | <reponame>Songpon74250/CodeTester-IDEA<filename>CodeTester-IntelliJ-IDEA/src/main/java/de/fxnm/web/grabber/access_token/LoginTokenGrabber.java
package de.fxnm.web.grabber.access_token;
import com.google.gson.Gson;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;
import okhttp3.F... |
Bing1012/3 | src/pyscaffold/identification.py | """Internal library for manipulating, creating and dealing with names, or more generally
identifiers.
"""
import keyword
import re
from typing import Callable, Iterable, List, TypeVar
from .exceptions import InvalidIdentifier
T = TypeVar("T")
def is_valid_identifier(string: str) -> bool:
"""Check if string is ... |
fniederl/dswarm | persistence/src/test/java/org/dswarm/persistence/service/job/test/FilterServiceTest.java | /**
* Copyright (C) 2013 – 2016 SLUB Dresden & Avantgarde Labs GmbH (<<EMAIL>>)
*
* 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
... |
Amber-Williams/smartwaiter-server | api/controllers/subscriptions/actions.js | const { pubsub } = require('../../subscriptions'); // import pubsub object for subscriptions to work
const emit = (channel, options) => {
switch (channel) {
case 'onCustomerOrder':
return pubsub.publish('onCustomerOrder', {
onCustomerOrder: options,
});
case 'onCustomerConnection':
... |
taydy/go-leetcode | easy/9.go | <gh_stars>1-10
package easy
// https://leetcode-cn.com/problems/palindrome-number/
// 判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。
//
// 示例 1:
// 输入: 121
// 输出: true
//
// 示例 2:
// 输入: -121
// 输出: false
// 解释: 从左向右读, 为 -121 。 从右向左读, 为 121- 。因此它不是一个回文数。
//
// 示例 3:
// 输入: 10
// 输出: false
// 解释: 从右向左读, 为 01 。因此它... |
uit-plus/vspehere-jdk | src/main/java/com/vmware/vim25/ArrayOfOvfResourceMap.java | <filename>src/main/java/com/vmware/vim25/ArrayOfOvfResourceMap.java
package com.vmware.vim25;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotati... |
PraneethReddy-sc20prc/gralog | gralog-np-completeness/src/main/java/gralog/npcompleteness/algorithm/Clique.java | <gh_stars>10-100
/* This file is part of Gralog, Copyright (c) 2016-2018 LaS group, TU Berlin.
* License: https://www.gnu.org/licenses/gpl.html GPL version 3 or later. */
package gralog.npcompleteness.algorithm;
import gralog.structure.*;
import gralog.algorithm.*;
import gralog.progresshandler.ProgressHandler;
impor... |
kazuya-ddt/Fotoapparat-1.4.1-edit | fotoapparat/src/main/java/io/fotoapparat/lens/CaptureResultState.java | <filename>fotoapparat/src/main/java/io/fotoapparat/lens/CaptureResultState.java
package io.fotoapparat.lens;
/**
* The result of an attempt to capture a photo.
*/
public enum CaptureResultState {
/**
* The camera failed to capture a photo.
*/
FAILURE,
/**
* The camera succeeded to captur... |
henryxm/autumn | autumn-lib/src/main/java/cn/org/autumn/site/Factory.java | package cn.org.autumn.site;
import cn.org.autumn.utils.SpringContextUtils;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.core.annotation.Order;
import java.lang.reflect.Method;
impo... |
SimonAlong/Neo | src/main/java/com/simonalong/neo/tenant/TenantContextHolder.java | <reponame>SimonAlong/Neo<gh_stars>10-100
package com.simonalong.neo.tenant;
import com.alibaba.ttl.TransmittableThreadLocal;
import lombok.experimental.UtilityClass;
/**
* @author shizi
* @since 2021-05-06 14:09:40
*/
@UtilityClass
public class TenantContextHolder {
private final TransmittableThreadLocal<Stri... |
IceCubeOpenSource/USSR | python/asteria/matter.py | # -*- coding: utf-8 -*-
"""Module for Earth and stellar density models.
"""
import numpy as np
from astropy import units as u
from abc import ABC, abstractmethod
class Body(ABC):
"""Base class defining the interface for matter interactions."""
def __init__(self):
pass
@abstractmethod
d... |
vvteplygin/ignite | modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GeoSpatialIndex.java | <filename>modules/geospatial/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GeoSpatialIndex.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... |
Tatsh-archive/tynder | headers/3rdparty/ChipmunkMultiGrab.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class ChipmunkSpace, NSArray, NSMutableArray;
@interface ChipmunkMultiGrab : NSObject
{
ChipmunkSpace *_space;
NSMutableArray *_grabs;
float _smoothing... |
mnowotnik/fovris | src/Eval/JoinProjection.cc | <reponame>mnowotnik/fovris
#include "Eval/JoinProjection.h"
namespace fovris{
} // fovris
|
killerbee1998/webdev-lesson-files | l13/13-12.js | <gh_stars>1-10
//Evaluate these:
//#1
console.log([2] === [2]); //false
console.log({} === {} );//false
//#2 what is the value of property a for each object.
const object1 = { a: 5 };//4
const object2 = object1; //4
const object3 = object2; //4
const object4 = { a: 5}; //5
object1.a = 4;
console.log(object1.a);
conso... |
zipated/src | headless/public/util/in_memory_request_job.cc | <reponame>zipated/src
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "headless/public/util/in_memory_request_job.h"
#include "base/threading/thread_task_runner_handle.h"
#include "headless/pu... |
RobertLara/jInstagram | src/main/java/org/jinstagram/entity/common/ImageData.java | package org.jinstagram.entity.common;
import com.google.gson.annotations.SerializedName;
/**
* A class to denote the ImageData.
*
* @author <NAME>
* @version 1.0
*/
public class ImageData {
@SerializedName("height")
private int imageHeight;
@SerializedName("url")
private String imageUrl;
@SerializedName("... |
Saknet/SensorObservationFrontend | node_modules/edges-to-adjacency-list/test/test.js | <filename>node_modules/edges-to-adjacency-list/test/test.js
"use strict"
var tape = require("tape")
var e2a = require("../e2a")
tape("edges-to-adjacency-list", function(t) {
t.same(e2a([
[0,1],
[1,2],
[2,3]
]), [
[1],
[0,2],
[1,3],
[2]
])
t.end()
}) |
marrmartin/onesaitplatform-cloud | sources/services/config-services/src/main/java/com/minsait/onesait/platform/config/services/configuration/ConfigurationServiceImpl.java | /**
* Copyright Indra Soluciones Tecnologías de la Información, S.L.U.
* 2013-2019 SPAIN
*
* 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... |
gregstewart/hearthstone-tracker | app/scripts/actions/win-streak.js | <gh_stars>1-10
import * as types from '../constants/action-types';
export function updateWinStreak (winStreak) {
return {
type: types.UPDATE_WIN_STREAK,
winStreak
};
}
|
Spacebody/SPN-and-Image-Completion | Implementation/tests/spn/test_instance.cpp | <reponame>Spacebody/SPN-and-Image-Completion
#include <iostream>
#include "../../codes/spn/instance.hpp"
int main(int argc, char *argv[])
{
Instance inst;
std::cout << "Instance mean: " << inst.mean << std::endl;
std::cout << "Instance var: " << inst.std << std::endl;
return 0;
} |
kupl/starlab-benchmarks | Benchmarks_with_Safety_Bugs/C/inetutils-1.9.4/src/libtelnet/encrypt.h | <reponame>kupl/starlab-benchmarks<gh_stars>0
/*
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
Free Software Foundation, Inc.
This file is part of GNU Inetutils.
GNU Inetutils is free software: you can redistribute it and/... |
gianglaodai/file-manager | src/main/java/com/leo/prj/controller/TemplateController.java | package com.leo.prj.controller;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.spri... |
mschwartz/amos | kernel/Exec/BDevice.hpp | #ifndef BDEVICE_H
#define BDEVICE_H
#include <Exec/MessagePort.hpp>
class BDevice : public BNodePri {
public:
BDevice(const char *aNodeName);
~BDevice();
};
class DeviceList : public BListPri {
public:
DeviceList();
~DeviceList();
public:
void AddDevice(BDevice &aDevice);
BDevice *FindDevice(const char ... |
mahaplatform/mahaplatform.com | src/lib/admin/components/emojis/panel.js | <reponame>mahaplatform/mahaplatform.com
import categories from './categories'
import PropTypes from 'prop-types'
import React from 'react'
class Emojis extends React.Component {
static propTypes = {
changing: PropTypes.bool,
skinTone: PropTypes.string,
skinToneIndex: PropTypes.number,
status: PropTy... |
tomas-krupa/ansi_iso_accuracy_test | src/CSV/CSVIterator.hpp | /**
* @file CSVIterator.hpp
*
* @remarks https://stackoverflow.com/a/1120224
*
* @copyright Copyright (c) 2020 Innovatrics s.r.o. All rights reserved.
*
* @maintainer <NAME> <<EMAIL>>
* @created 20.08.2020
*
*/
#pragma once
#include "CSVRow.hpp"
class CSVIterator {
public:
using iterator_category = std... |
sjamboro/kogito-runtimes | quarkus/extensions/kogito-quarkus-serverless-workflow-extension/kogito-quarkus-serverless-workflow-integration-test/src/test/java/org/kie/kogito/quarkus/workflows/AbstractCallbackStateIT.java | /*
* Copyright 2022 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
*
* Unless required by a... |
NASA-PDS-Incubator/registry | src/main/java/gov/nasa/pds/registry/mgr/util/solr/SolrCursor.java | package gov.nasa.pds.registry.mgr.util.solr;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocumentList;
import org.apache.solr.common.params.CursorMarkParams;
public class S... |
addstone/JCEngine | src/main/java/pers/jc/util/JCLogger.java | package pers.jc.util;
import java.io.File;
import java.io.FileWriter;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.atomic.AtomicInteger;
public class JCLogger {
private static int level = 1;
public static final int LEVEL_DEB... |
Discord-Wiz/dyno-bot-master | dyno-bot-master/Dyno-premium/src/commands/Moderator/Ignored.js | <reponame>Discord-Wiz/dyno-bot-master
'use strict';
const Command = Loader.require('./core/structures/Command');
class Ignored extends Command {
constructor(...args) {
super(...args);
this.aliases = ['ignored'];
this.group = 'Moderator';
this.description = 'List channels and users where command... |
DongerZone/o3de | Gems/ScriptCanvas/Code/Include/ScriptCanvas/Libraries/Logic/Multiplexer.cpp | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "Multiplexer.h"
namespace ScriptCanvas
{
namespace Nodes
{
namespace Logic... |
safchain/contrail-controller | src/vnsw/agent/contrail/contrail_agent_init.h | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#ifndef vnsw_contrail_agent_init_hpp
#define vnsw_contrail_agent_init_hpp
class Agent;
class AgentParam;
// The class to drive agent initialization.
// Defines control parameters used to enable/disable agent features
class ContrailAgentInit {
... |
rmathis/openEQUELLA | autotest/Tests/src/main/java/com/tle/webtests/pageobject/remoterepo/sru/RemoteRepoViewSRUResultPage.java | <gh_stars>10-100
package com.tle.webtests.pageobject.remoterepo.sru;
import com.tle.webtests.framework.PageContext;
import com.tle.webtests.pageobject.remoterepo.RemoteRepoViewResultPage;
import org.openqa.selenium.By;
public class RemoteRepoViewSRUResultPage
extends RemoteRepoViewResultPage<RemoteRepoViewSRUResu... |
lisurui6/MIRTK | Modules/Registration/include/mirtk/IntensityCorrelationRatioYX.h | <gh_stars>100-1000
/*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2016 Imperial College London
* Copyright 2016 <NAME>
*
* 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
... |
furkanisitan/country-city-api | src/main/java/com/furkanisitan/core/exceptions/InvalidValueException.java | <reponame>furkanisitan/country-city-api
package com.furkanisitan.core.exceptions;
import lombok.Getter;
/**
* An exception representing that the specified value is not valid for field.
*/
@Getter
public class InvalidValueException extends RuntimeException {
private final String field;
private final String... |
keypad00/CRUD-API-DEALER-MOTOR | models/motor.js | /**
* motor Schema
*/
const mongoose = require('mongoose')
const Schema = mongoose.Schema
let motorSchema = new Schema ({
motor: String,
brand: String,
price: Number,
dealer: String,
created_at: {
type:Date,
default:Date.now
},
updated_at: {
type: Date,
de... |
henriquegemignani/PrimeWorldEditor | src/Core/Resource/Model/CBasicModel.h | #ifndef CBASICMODEL_H
#define CBASICMODEL_H
#include "SSurface.h"
#include "Core/Resource/CResource.h"
#include "Core/OpenGL/CVertexBuffer.h"
#include <Common/Math/CAABox.h>
class CBasicModel : public CResource
{
DECLARE_RESOURCE_TYPE(Model)
protected:
CAABox mAABox;
uint32 mVertexCount;
uint32 mTrian... |
gtri/typesafeconfig-extensions | factory/src/main/java/edu/gatech/gtri/typesafeconfigextensions/factory/PathSpecification.java | <gh_stars>1-10
/*
* Copyright 2013 Georgia Tech Applied Research Corporation
*
* 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
*
* Un... |
moritzhertler/TimeSheetGenerator | src/test/java/checker/MiLoGCheckerDayTimeBoundsTest.java | package checker;
import static org.junit.Assert.*;
import java.time.LocalDate;
import java.time.Month;
import java.time.YearMonth;
import java.util.Random;
import org.junit.Before;
import org.junit.Test;
import data.Employee;
import data.Entry;
import data.TimeSheet;
import data.Profession;
import data.TimeSpan;
im... |
mrjj/protobuf-jsonschema-validate | src/__tests__/enum alias.js | const {
validateData
} = require('../testsUtils');
describe('const', () => {
test('enum alias - const - valid', () => expect(
validateData('EnumAliasConst', 'TestEnumAlias_C')
).toBe(true));
test('enum alias - const - valid (alias)', () => expect(
validateData('EnumAliasConst', 'TestEnumAlias_GAMMA')
... |
Patrick-Luo-THR/libsbp | c/src/v4/string/null_terminated.c | <gh_stars>10-100
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <libsbp/internal/v4/string/null_terminated.h>
#include <libsbp/internal/v4/string/sbp_string.h>
#include <libsbp/internal/v4/string/sbp_strnlen.h>
static const sbp_string_params_t params = {
.valid = sbp_null_terminated_string_va... |
miathedev/BoostForArduino | src/boost_hana_fwd_remove.hpp | <reponame>miathedev/BoostForArduino
#include <boost/hana/fwd/remove.hpp>
|
srcejon/libacars | libacars/asn1/FANSPDCrevision.h | <reponame>srcejon/libacars<gh_stars>10-100
/*
* Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
* From ASN.1 module "FANSACTwoWayDataLinkCommunications"
* found in "../../../libacars.asn1/fans-cpdlc.asn1"
* `asn1c -fcompound-names -fincludes-quoted -gen-PER`
*/
#ifndef _FANSPDCrevision_H_
#define _FANSPDCr... |
joequant/scms | NScrypt/db/migrate/20150416105111_create_reputations.rb | <reponame>joequant/scms
class CreateReputations < ActiveRecord::Migration
def change
create_table :reputations do |t|
t.belongs_to :user, index: true
t.belongs_to :contract, index: true
t.string :category
t.string :subcategory
t.string :item
t.string :params
t.string :sta... |
matbentancur/pavlab6gr4 | Guasap/include/MensajeFactory.h | <reponame>matbentancur/pavlab6gr4
#ifndef MENSAJEFACTORY_H_INCLUDED
#define MENSAJEFACTORY_H_INCLUDED
#include <iostream>
#include "IMensajeController.h"
#include "MensajeController.h"
class MensajeFactory{
private:
static MensajeFactory* instancia;
MensajeFactory();
public:
... |
rbeucher/underworld2 | underworld/libUnderworld/StgDomain/libStgDomain/src/Init.c | /*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
Freeaqingme/ClueGetter | src/cluegetter/lua/lua.go | // ClueGetter - Does things with mail
//
// Copyright 2016 <NAME>, Freeaqingme.
//
// This Source Code Form is subject to the terms of the Apache License, Version 2.0.
// For its contents, please refer to the LICENSE file.
//
package lua
import (
"fmt"
"io/ioutil"
"strings"
"cluegetter/core"
"github.com/yuin/go... |
Ensembl/ensc-core | src/DataModel/TopLevelAssemblyMapper.h | /*
* Copyright [1999-2017] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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.o... |
triffon/oop-2019-20 | labs/5/Practice_13/solutions/Container.hpp | #pragma once
template <typename U>
class Container {
public:
Container() {}
virtual void push(U) = 0;
virtual U pop() = 0;
virtual U top() = 0;
virtual int size() = 0;
virtual bool empty() = 0;
};
|
skullbaselab/instructor_documents | Bootcamp-Prep-Online-master/scripts/8_assessment/w2d5/solution3/assessment.js | /******************************************************************************
** Write a function #divisibleByFivePairSum(array), that takes an array of numbers.
** It should return an array of all the pairs of indices whose sum is a multiple of five.
** Example
** divisibleByFivePairSum([1, 5, 2, 0, 4]) => [ [ 0, 4 ... |
pachecosamuel/Python-Exercises | beecrowd exercises/beecrowd-1115.py | <reponame>pachecosamuel/Python-Exercises
while(1):
par = [int(i) for i in input().split()]
x = par[0]
y = par[1]
if x == 0 or y == 0:
break
if x > 0:
if y > 0:
print("primeiro")
else:
print("quarto")
else:
if y > 0:
print("seg... |
ejc123/geotrellis | benchmark/src/main/scala/geotrellis/benchmark/AverageResample.scala | package geotrellis.benchmark
import geotrellis.raster.resample._
import com.google.caliper.Param
object AverageResample extends BenchmarkRunner(classOf[AverageResample])
class AverageResample extends ResampleBenchmark {
def resamp = Average
}
|
tie/td | tg/tl_notify_peer_gen.go | // Code generated by gotdgen, DO NOT EDIT.
package tg
import (
"context"
"errors"
"fmt"
"sort"
"strings"
"go.uber.org/multierr"
"github.com/gotd/td/bin"
"github.com/gotd/td/tdp"
"github.com/gotd/td/tgerr"
)
// No-op definition for keeping imports.
var (
_ = bin.Buffer{}
_ = context.Background()
_ = fmt... |
arc03/30-DaysOfCode-March-2021 | answers/VanshBaijal/Day 6/Question1.py | Candies = [int(x) for x in input("Enter the numbers with space: ").split()]
extraCandies=int(input("Enter the number of extra candies: "))
Output=[ ]
i=0
while(i<len(Candies)):
if(Candies[i]+extraCandies>=max(Candies)):
Output.append("True")
else:
Output.append("False")
i+=1
print(Output)
|
ezherdeva/responsible-ai-toolbox | responsibleai/responsibleai/_tools/shared/__init__.py | # Copyright (c) Microsoft Corporation
# Licensed under the MIT License.
"""ResponsibleAI package module."""
|
paulosalgado/cursos | clean-architecture-java-alura/src/test/java/tech/paulosalgado/escola/aplicacao/aluno/matricular/MatricularAlunoTest.java | package tech.paulosalgado.escola.aplicacao.aluno.matricular;
import org.junit.jupiter.api.Test;
import tech.paulosalgado.escola.dominio.aluno.CPF;
import tech.paulosalgado.escola.infra.aluno.RepositorioDeAlunosEmMemoria;
import static org.junit.jupiter.api.Assertions.assertEquals;
class MatricularAlunoTest {
@T... |
channne/tp | src/main/java/seedu/address/model/student/Student.java | package seedu.address.model.student;
import static seedu.address.commons.util.CollectionUtil.requireAllNonNull;
import java.util.Collections;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
import seedu.address.commons.core.index.Index;
import seedu.address.model.lab.Lab;
import seedu.addre... |
topxeq/qlang | lib/encoding/xml/xml.go | package xml
import (
"encoding/xml"
qlang "github.com/topxeq/qlang/spec"
)
// Exports is the export table of this module.
//
var Exports = map[string]interface{}{
"_name": "encoding/xml",
"Header": xml.Header,
"HTMLAutoClose": xml.HTMLAutoClose,
"HTMLEntity": xml.HTMLEntity,
"escape": xml.Escape,... |
DiegoALRP/ASOR-UCM--2021-22 | Examenes/Examen2019-ENE-Practico1/ejercicio3.c | <filename>Examenes/Examen2019-ENE-Practico1/ejercicio3.c
#include <stdio.h>
#include <string.h>
#include <errno.h>
//getaddrinfo
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
//getnameinfo
#include <sys/socket.h>
#include <netdb.h>
//socket, bind, recv, send
#include <sys/types.h> /* See NO... |
Testiduk/gitlabhq | app/models/instance_metadata.rb | <reponame>Testiduk/gitlabhq<filename>app/models/instance_metadata.rb<gh_stars>1000+
# frozen_string_literal: true
class InstanceMetadata
attr_reader :version, :revision, :kas
def initialize(version: Gitlab::VERSION, revision: Gitlab.revision)
@version = version
@revision = revision
@kas = ::InstanceMe... |
Go-oG/TextureMusic | app/src/main/java/wzp/com/texturemusic/bean/ThemeBean.java | package wzp.com.texturemusic.bean;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by Go_oG
* Description:主题实体类
* on 2017/12/26.
*/
public class ThemeBean implements Parcelable {
private Integer themeImgResId;
private Integer themeIndex;//主题索引
private Integer showThemeImgResId;
... |
genomeannotation/GAG | src/cds.py | <reponame>genomeannotation/GAG
#!/usr/bin/env python
# coding=utf-8
import copy
import src.translator as translate
from src.gene_part import *
class CDS(GenePart):
def __init__(self, identifier=None, indices=None,
score=None, phase=None, strand=None, parent_id=None, name=None):
super(CD... |
tiepvupsu/tabml | tabml/experiment_manager.py | import datetime
import re
import shutil
from pathlib import Path
from typing import Union
from tabml.config_helpers import parse_pipeline_config
class ExperimentManger:
"""Class managing folder structure of an experiment.
For each experiment, there will be one run_dir under exp_root_dir that contains
al... |
benwerd/unlock | unlock-app/src/components/creator/lock/AppStore.js | <gh_stars>1-10
import PropTypes from 'prop-types'
import React from 'react'
import styled from 'styled-components'
import UnlockPropTypes from '../../../propTypes'
import Svg from '../../interface/svg'
import Button from '../../interface/buttons/Button'
const Integration = ({ name, icon, href }) => (
<App>
<Butt... |
petewill/home-assistant | homeassistant/components/zha/core/channels/homeautomation.py | <gh_stars>1-10
"""
Home automation channels module for Zigbee Home Automation.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/zha/
"""
import logging
import zigpy.zcl.clusters.homeautomation as homeautomation
from homeassistant.helpers.dispatcher impo... |
JumpStartGeorgia/Georgian-Budget-API | app/view_models/csv_excel_converter.rb | class CsvExcelConverter
def initialize
end
def convert_csv(csv_filepath, output_path)
require 'spreadsheet'
book = Spreadsheet::Workbook.new
sheet1 = book.create_worksheet
header_format = Spreadsheet::Format.new(
:weight => :bold,
:horizontal_align => :center,
:locked => true
... |
kingname/SourceCodeOfBook | 第9章/program/generate_token.py | <gh_stars>100-1000
from selenium import webdriver
import time
service_args = ["--proxy=127.0.0.1:8080", '--ignore-ssl-errors=yes']
def run():
print('start to Token')
driver = webdriver.PhantomJS(service_args=service_args)
driver.get('http://xxxx')
time.sleep(5)
driver.close()
if __name__ == '__m... |
ampcpmgp/anki-pan | src/components/parts/Modal/Settings.stories.js | import { withKnobs, text } from '@storybook/addon-knobs'
import Settings from './Settings.svelte'
export default {
title: 'Modal/Settings',
component: Settings,
decorators: [withKnobs],
}
export const Main = () => ({
Component: Settings,
props: {
userId: text('userId', 'dummy-id'),
},
on: {
clic... |
EvilMog99/MOGEngine | src/modComponents/GameEntity.java | package modComponents;
import java.io.Serializable;
import java.util.Random;
import gameRunner.Dimension;
import gameRunner.GameData;
public class GameEntity implements Serializable
{
//for all entity types
private int entitysModID;
private int entityID_inMod;
private int entityMatterValue = 0;
... |
swj0418/Java_Course_Project | Statistical_Analysis/GUISource/portfolioFramework/PortfolioManagerFrame_Mother.java | <filename>Statistical_Analysis/GUISource/portfolioFramework/PortfolioManagerFrame_Mother.java
package portfolioFramework;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JInternalFrame;
import gray.Global;
public class PortfolioManagerFrame_Mother extends JInternalFrame{
... |
Fimbure/icebox-1 | third_party/virtualbox/src/VBox/Additions/x11/x11include/xorg-server-1.14.0/xkbsrv.h | /************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copie... |
coldenheart/123 | python/level1_single_api/9_amct/amct_caffe/faster_rcnn/src/init_paths_for_amct.py | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
"""
Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the Apache License Version 2.0.You may not use
this file except in compliance with the License.
This program ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.