repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
aws-samples/bcs-disaster-recovery-portal-common | main/java/aws/proserve/bcs/dr/vpc/VpcProject.java | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
package aws.proserve.bcs.dr.vpc;
import aws.proserve.bcs.dr.project.SubProject;
import java.util.List;
public class VpcProject extends SubProject<VpcItem> {
/**
* @apiNote need to override to pass the r... |
wfxiang08/curator | curator-x-rpc/src/main/java/org/apache/curator/x/rpc/connections/CuratorEntry.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... |
DragonJoker/Ashes | include/ashespp/Descriptor/DescriptorSetPool.hpp | /*
This file belongs to Ashes.
See LICENSE file in root folder.
*/
#ifndef ___AshesPP_DescriptorSetPool_HPP___
#define ___AshesPP_DescriptorSetPool_HPP___
#pragma once
#include "ashespp/Descriptor/DescriptorPool.hpp"
#include <vector>
namespace ashes
{
/**
*\brief
* Descriptor set pool helper.
*/
class Descript... |
trickMin/portal | gateway-api/src/main/java/org/hango/cloud/gdashboard/api/meta/swagger/SwaggerApiInfo.java | package org.hango.cloud.gdashboard.api.meta.swagger;
import org.hango.cloud.gdashboard.api.meta.ApiBody;
import org.hango.cloud.gdashboard.api.meta.ApiHeader;
import org.hango.cloud.gdashboard.api.meta.ApiInfo;
import org.hango.cloud.gdashboard.api.meta.ApiStatusCode;
import java.util.List;
public class SwaggerApiIn... |
Shehanka/RentLio-1 | RentLioCommon/src/com/chamodshehanka/rentLioCommon/services/custom/AdminService.java | package com.chamodshehanka.rentLioCommon.services.custom;
import com.chamodshehanka.rentLioCommon.dto.AdminDTO;
import com.chamodshehanka.rentLioCommon.observer.AdminObserver;
import com.chamodshehanka.rentLioCommon.services.SuperService;
import java.util.List;
/**
* @author chamodshehanka on 3/13/2018
* @project ... |
MarkOSIndustries/distroboy | parquet/src/main/java/com/markosindustries/distroboy/parquet/ParquetGroupInspector.java | <filename>parquet/src/main/java/com/markosindustries/distroboy/parquet/ParquetGroupInspector.java
package com.markosindustries.distroboy.parquet;
import java.util.AbstractList;
import java.util.List;
import java.util.function.BiFunction;
import java.util.function.Function;
import org.apache.parquet.example.data.Group;... |
lemkova/Yorozuya | library/ATF/_qry_case_load_guildbattle_totalrecord.hpp | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct _qry_case_load_guildbattle_totalrecord
{
unsigned int dwGuildSerial;
unsigned int dwTotWinCnt;
unsigned int d... |
MaxNoe/pyhexgrid | setup.py | <gh_stars>1-10
from setuptools import setup
setup(
name='pyhexgrid',
description='A numpy aware package for hexagonale grids',
url='http://github.com/maxnoe/pyhexgrid',
author='<NAME>',
author_email='<EMAIL>',
license='MIT',
packages=['hexgrid'],
version='0.1.1',
install_requires=[... |
whitespur/zheshiyigeniubidexiangmu | admin/src/main/java/com/github/misterchangray/controller/TickerController.java | <gh_stars>100-1000
package com.github.misterchangray.controller;
import com.github.misterchangray.common.ResultSet;
import com.github.misterchangray.common.utils.MapBuilder;
import com.github.misterchangray.controller.common.Const;
import com.github.misterchangray.controller.common.OrgsInfoEnum;
import com.github.mist... |
mirza-jahangeer/NCache-Samples | java/spring/src/main/java/com/alachisoft/ncache/springbootsample/bookstore/Book.java | package com.alachisoft.ncache.springbootsample.bookstore;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@org.hibernate.annotations.NamedQuery(name = "Book.findBookByIsbn",
query = "select b from Book b where b.isbn = ?1")
public class Book implements Serializable {
@Id
... |
usnationalarchives/catalog-source | OpaArchLib/src/main/java/gov/nara/opa/common/valueobject/annotation/tags/TagValueObjectHelper.java | <reponame>usnationalarchives/catalog-source
package gov.nara.opa.common.valueobject.annotation.tags;
import java.sql.Timestamp;
import java.util.Date;
import org.apache.commons.codec.digest.DigestUtils;
public class TagValueObjectHelper {
public static TagValueObject createTagForInsert(Integer accountId,
St... |
Testiduk/gitlabhq | app/models/terraform/state_version.rb | <filename>app/models/terraform/state_version.rb<gh_stars>1000+
# frozen_string_literal: true
module Terraform
class StateVersion < ApplicationRecord
include FileStoreMounter
belongs_to :terraform_state, class_name: 'Terraform::State', optional: false
belongs_to :created_by_user, class_name: 'User', opti... |
xloem/DIY-LAPTOP | SOFTWARE/A64-TERES/linux-a64/drivers/soc/allwinner/pm/mem_tmstmp.h | <reponame>xloem/DIY-LAPTOP
/*
*********************************************************************************************************
* LINUX-KERNEL
* AllWinner Linux Platform Develop Kits
* ... |
williamBoss/new_mtms_java | ruoyi-service-api/mtms-api/src/main/java/com/ruoyi/mtms/domain/PastMedicalHistory.java | package com.ruoyi.mtms.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.mtms.base.BaseEntity;
import io.swagger.annotations.ApiMode... |
scala-bones/db-prototyping | jdbc/src/it/scala/com/bones/si/jdbc/load/integration/LoadColumnTest.scala | package com.bones.si.jdbc.load.integration
import com.bones.si.jdbc.load.{DatabaseQuery, LoadColumn}
import com.bones.si.jdbc.{DataType, Nullable, YesNo}
import org.scalatest.matchers.must.Matchers
class LoadColumnTest extends IntegrationFixture with Matchers {
test("load public columns") { f =>
val query = Da... |
wahello/openshift-installer | terraform/aws/vendor/github.com/hashicorp/terraform-provider-aws/internal/service/ec2/transit_gateway_route_table_propagation.go | package ec2
import (
"fmt"
"log"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/ec2"
"github.com/hashicorp/aws-sdk-go-base/tfawserr"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/hashicorp/terraform... |
malu17/alx-higher_level_programming | 0x08-python-more_classes/test/6-main.py | <filename>0x08-python-more_classes/test/6-main.py
#!/usr/bin/python3
Rectangle = __import__('6-rectangle').Rectangle
my_rectangle_1 = Rectangle(2, 4)
my_rectangle_2 = Rectangle(2, 4)
print("{:d} instances of Rectangle".format(Rectangle.number_of_instances))
del my_rectangle_1
print("{:d} instances of Rectangle".format... |
ginosian/margin-crawler-parser | margin-entity-tools/margin-entity-tools-mongo/src/main/java/com/margin/entity/DummyMongoEntity.java | <reponame>ginosian/margin-crawler-parser
package com.margin.entity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
@Document(collection = "dummy")
@Get... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/SystemMigrationNetworking/SMNTimeCapsuleBrowser.h | <reponame>phatblat/macOSPrivateFrameworks
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
#import "NSNetServiceBrowserDelegate.h"
#import "NSNetServiceDelegate.h"
@class NSMutableArray, NSMutableDictionary, NSNet... |
nkapinos/chorus | spec/javascripts/views/multiple_selection_sidebar_menu_spec.js | <reponame>nkapinos/chorus
describe("chorus.views.MultipleSelectionSidebar", function() {
var dialogConstructor = chorus.dialogs.ChangePassword;
var method = 'enable';
var actionName = 'add_data';
var methodActionName = 'enable';
beforeEach(function() {
this.modalSpy = stubModals();
... |
divshot/deposit | lib/injector-comment-regex.js | <reponame>divshot/deposit
module.exports = function () {
return /inject:((?:[a-z][a-z]+))/i;
}; |
Dream5366/StS-DuelistMod | DuelistMod/src/main/java/duelistmod/powers/duelistPowers/CyberEltaninPower.java | <reponame>Dream5366/StS-DuelistMod
package duelistmod.powers.duelistPowers;
import com.badlogic.gdx.graphics.Texture;
import com.megacrit.cardcrawl.core.*;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.localization.PowerStrings;
import duelistmod.DuelistMod;
import duelistmod.a... |
hyukjae87/robovm-ios-bindings | parse/src/org/robovm/bindings/parse/PFQuery.java |
package org.robovm.bindings.parse;
import org.robovm.apple.foundation.NSArray;
import org.robovm.apple.foundation.NSError;
import org.robovm.apple.foundation.NSObject;
import org.robovm.objc.annotation.Block;
import org.robovm.objc.annotation.Method;
import org.robovm.objc.annotation.NativeClass;
import org.robovm.ob... |
TheSench/solr-streams-dsl | src/main/java/com/github/thesench/solr/dsl/stream/expr/evaluators/Sqrt.java | package com.github.thesench.solr.dsl.stream.expr.evaluators;
import com.github.thesench.solr.dsl.stream.expr.params.Field;
public class Sqrt {
private Sqrt() {}
/**
* @see <a href="https://solr.apache.org/guide/8_10/stream-evaluator-reference.html#sqrt">Stream Evaluator Reference: sqrt</a>
* @param... |
sonald/sos | user/libc/stdio.h | <gh_stars>10-100
#ifndef _SOS_STDIO_H
#define _SOS_STDIO_H
#include <types.h>
#include <stdarg.h>
int vprintf(const char* fmt, va_list args);
int printf(const char* fmt, ...);
#endif
|
didi/ALITA | alita-api/src/main/java/com/alita/service/impl/AlitaPageServiceImpl.java | <reponame>didi/ALITA<filename>alita-api/src/main/java/com/alita/service/impl/AlitaPageServiceImpl.java
package com.alita.service.impl;
import com.alita.common.bo.AlitaPageBO;
import com.alita.common.po.AlitaPage;
import com.alita.mysql.mapper.AlitaPageMapper;
import com.alita.service.AlitaPageService;
import com.baomi... |
JosephClay/StormJS | src/Extensions.js | <reponame>JosephClay/StormJS<gh_stars>1-10
// Extension ########################################################################
Events.extend = Cache.extend = AjaxCall.extend = DataContext.extend = Model.extend = Collection.extend = Comparator.extend = View.extend = Module.extend = Extend;
|
pleuvoir/sms-gateway | sms-channel-service/src/main/java/io/github/pleuvoir/message/dao/biz/MsgChannelDao.java | <gh_stars>1-10
package io.github.pleuvoir.message.dao.biz;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import io.github.pleuvoir.message.model.po.PubMsgChannelPO;
public interface MsgChannelDao extends BaseMapper<PubMsgChannelPO> {
}
|
gaudeon/games-jams-and-phasers-presentation | src/jam-01/js/states/JSONLevelState.js | var FruitNinja = FruitNinja || {};
FruitNinja.JSONLevelState = function () {
"use strict";
Phaser.State.call(this);
this.prefab_classes = {
};
};
FruitNinja.JSONLevelState.prototype = Object.create(Phaser.State.prototype);
FruitNinja.JSONLevelState.prototype.constructor = FruitNinja.JSONLevelStat... |
Prajna/mach | kernel/chips/audio_defs.h | <reponame>Prajna/mach
/*
* Mach Operating System
* Copyright (c) 1993 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all ... |
xexceed/rexOS | include/common/graphicscontext.h | <gh_stars>1-10
#ifndef __REXOS__COMMON__GRAPHICSCONTEXT_H
#define __REXOS__COMMON__GRAPHICSCONTEXT_H
#include <drivers/vga.h>
namespace rexos {
namespace common {
typedef drivers::VideoGraphicsArray GraphicsContext;
}
}
#endif
|
LeastAuthority/txkube | src/txkube/testing/test/__init__.py | <reponame>LeastAuthority/txkube<filename>src/txkube/testing/test/__init__.py
# Copyright Least Authority Enterprises.
# See LICENSE for details.
"""
Tests for ``txkube.testing``.
"""
|
cfogg/python-client | tests/models/test_token.py | """Split model tests module."""
from splitio.models import token
from splitio.models.grammar.condition import Condition
class TokenTests(object):
"""Token model tests."""
raw_false = {'pushEnabled': False}
def test_from_raw_false(self):
"""Test token model parsing."""
parsed = token.from... |
johan--/cartodb | lib/assets/test/spec/cartodb/common/url_shortener.spec.js | var $ = require('jquery');
var UrlShortener = require('../../../../javascripts/cartodb/common/url_shortener');
describe('common/url_shortener', function() {
beforeEach(function() {
cdb.config.set('bitly_key', 'hello');
cdb.config.set('bitly_login', 'hello');
this.urlShortener = new UrlShortener();
th... |
ooibc88/Hyperledger-Fabric- | ustore_home/include/proto/config.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: config.proto
#ifndef PROTOBUF_INCLUDED_config_2eproto
#define PROTOBUF_INCLUDED_config_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was generated by a newer version of... |
makaram99/cute-os | docs/html/search/all_4.js | <reponame>makaram99/cute-os
var searchData=
[
['error_5fbusy_30',['ERROR_BUSY',['../_s_t_d___t_y_p_e_s_8h.html#aa5a5124474a705e6cf7e43f113ac10fb',1,'STD_TYPES.h']]],
['error_5fillegal_5fparam_31',['ERROR_ILLEGAL_PARAM',['../_s_t_d___t_y_p_e_s_8h.html#afb1d42f0ea0b554fbc07047128e0b14b',1,'STD_TYPES.h']]],
['error_... |
athisun/ArrowPoint-Telemetry | src/main/java/com/prohelion/service/impl/MeasurementDataAggregator.java | package com.prohelion.service.impl;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.prohelion.model.MeasurementData;
public class MeasurementDataAggregator {
private static final Logger LOG = LoggerFactory.getLogger(MeasurementDataAggregator.class);
pub... |
RuiDTLima/diffuzz | evaluation/github_authmreloaded_unsafe/src/test/java/fr/xephi/authme/settings/SpawnLoaderTest.java | package fr.xephi.authme.settings;
import ch.jalu.injector.testing.BeforeInjecting;
import ch.jalu.injector.testing.DelayedInjectionRunner;
import ch.jalu.injector.testing.InjectDelayed;
import com.google.common.io.Files;
import fr.xephi.authme.TestHelper;
import fr.xephi.authme.initialization.DataFolder;
import fr.xep... |
mmongy/clij2 | src/main/java/net/haesleinhuepf/clij2/plugins/ReduceStack.java | <reponame>mmongy/clij2
package net.haesleinhuepf.clij2.plugins;
import net.haesleinhuepf.clij.clearcl.ClearCLBuffer;
import net.haesleinhuepf.clij.clearcl.interfaces.ClearCLImageInterface;
import net.haesleinhuepf.clij.macro.CLIJMacroPlugin;
import net.haesleinhuepf.clij.macro.CLIJOpenCLProcessor;
import net.haesleinh... |
tklebanoff/ComputeLibrary | documentation/classarm__compute_1_1_memory_group_resource_scope.js | var classarm__compute_1_1_memory_group_resource_scope =
[
[ "MemoryGroupResourceScope", "classarm__compute_1_1_memory_group_resource_scope.xhtml#a17a9e92a2c60aaa9e037faedc17e8be5", null ],
[ "MemoryGroupResourceScope", "classarm__compute_1_1_memory_group_resource_scope.xhtml#a4b173d900c8f147613ec73f6c3dbb31d", ... |
marcosolina/covidstatus | src/main/java/com/marco/javacovidstatus/services/interfaces/downloaders/CovidDataDownloader.java | package com.marco.javacovidstatus.services.interfaces.downloaders;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.springframework.http.HttpStatus;
import org.springframework.web.reactive.function.client.ClientResponse;
import or... |
c-jullien/lelisp | GELL/Cvirbitmap/virutil.c | <filename>GELL/Cvirbitmap/virutil.c
/* GELL 15.26: source file for the module: "virutil" */
/* translation done: "Tue Aug 24 93 10:48:45 " */
/* peephole-optimize-p: t */
/* optimize-local-labels-p: t */
#include "lelispc.h"
#include "virutil.h"
static Ptr GL... |
kunka/SoftRender | ui/Cube.cpp | //
// Created by huangkun on 26/03/2018.
//
#include "Cube.h"
#include <glad/glad.h>
static float vertices[] = {
-0.5f, -0.5f, -0.5f,
0.5f, -0.5f, -0.5f,
0.5f, 0.5f, -0.5f,
0.5f, 0.5f, -0.5f,
-0.5f, 0.5f, -0.5f,
-0.5f, -0.5f, -0.5f,
-0.5f, -0.5f, 0.5f,
... |
Nic30/pclass-vectorized | benchmarks/hash_table_cls.h | #pragma once
#include <unordered_map>
#include <map>
#include <stdint.h>
#include <vector>
#include <array>
#include <pcv/common/range.h>
/*
* RFC like classifier based on hash tables
* */
class HashTableBasedCls {
public:
using rule_id_t = uint32_t;
using priority_t = uint32_t;
using key_vec_t = std::array<uint1... |
paulwratt/cin-5.34.00 | cint/src/Type.cxx | /* /% C++ %/ */
/***********************************************************************
* cint (C/C++ interpreter)
************************************************************************
* Source file Type.cxx
************************************************************************
* Description:
* Extended Ru... |
inklesspen1scripter/ultramine_core | src/main/java/net/minecraft/block/BlockCactus.java | <reponame>inklesspen1scripter/ultramine_core
package net.minecraft.block;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.Cre... |
PacktPublishing/Mastering-Postgis | Chapter07/resources/ext-6.2.0-gpl/ext-6.2.0/templates/admin-dashboard/classic/src/view/charts/Charts.js | Ext.define('Admin.view.charts.Charts', {
extend: 'Ext.container.Container',
xtype: 'charts',
requires: [
'Admin.view.charts.Area',
'Admin.view.charts.Bar',
'Admin.view.charts.ChartsModel',
'Admin.view.charts.Gauge',
'Admin.view.charts.Pie3D',
'Admin.view.char... |
cadovid/Pandemia2019 | src/java/player/Player.java | <filename>src/java/player/Player.java<gh_stars>1-10
package player;
import java.util.*;
import java.io.BufferedReader;
import java.io.FileReader;
import city.City;
import card.*;
import _aux.Options;
import _aux.CustomTypes;
/*
Player class
Represents a player object. Contains relevant information about its st... |
phil-davis/robotframework | src/robot/utils/recommendations.py | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... |
trc492/Frc2011Logomotion | code/WPILib/CAN/can_proto.h | <gh_stars>0
//*****************************************************************************
//
// can_proto.h - Definitions for the CAN protocol used to communicate with the
// BDC motor controller.
//
// Copyright (c) 2008 Texas Instruments Incorporated. All rights reserved.
// TI Information - Selectiv... |
QuVideoDeveloper/QVEditorKit-iOS | QVEditorKit/FrameWork/Editor/QVMediCameraEngine.framework/Versions/A/Headers/QVMediCameraEngineUtils.h | //
// QVMediCameraEngineUtils.h
// QVMediCameraEngine
//
// Created by 徐新元 on 2020/4/21.
//
#import <Foundation/Foundation.h>
#import "QVMediCameraFaceBeatyModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface QVMediCameraEngineUtils : NSObject
+ (MRECT)ceDisplayPixelRectWithExportFrameSize:(MSIZE)ceExportFrameSize
... |
simonjjones/atc | engine/exec_engine_build_delegate_test.go | <gh_stars>1-10
package engine_test
import (
"errors"
"io"
"time"
"github.com/concourse/atc"
"github.com/concourse/atc/db"
. "github.com/concourse/atc/engine"
"github.com/concourse/atc/engine/fakes"
"github.com/concourse/atc/event"
"github.com/concourse/atc/exec"
"github.com/pivotal-golang/lager/lagertest"
... |
TMorozovsky/Generic_Tools_for_Frequent_Operations | gtfo_testing/static/are_addable.cpp | #include "gtfo/_impl/type_traits/are_addable.hpp"
#include "gtfo/_impl/type_traits/is_compound_addable.hpp"
#define GTFO_ARE_ADDABLE(t1,t2) ::gtfo::_tt::are_addable<t1,t2>::value
#define GTFO_IS_COMPOUND_ADDABLE(t1,t2) ::gtfo::_tt::is_compound_addable<t1,t2>::value
#ifdef __clang__
# define UNUSED __attribut... |
oanc/org.anc.lapps.oauth | org.anc.lapps.oauth.masc-server/src/main/java/org/anc/lapps/oauth/web/UserData.java | package org.anc.lapps.oauth.web;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* @author <NAME>
*/
public class UserData
{
protected String username;
protected String password1;
protected String password2;
protected String email;
protected List<String> roles;
protected Stri... |
miliracle/food-delivery | main.go | package main
import (
"fooddelivery/common"
"fooddelivery/component/appctx"
"fooddelivery/component/uploadprovider"
"fooddelivery/middleware"
"fooddelivery/module/image/imagetransport/ginimage"
"fooddelivery/module/restaurant/restauranttransport/ginrestaurent"
"fooddelivery/module/user/userstorage"
"fooddelive... |
EricRemmerswaal/tensorflow | tensorflow/python/kernel_tests/sparse_ops/sparse_tensor_dense_matmul_op_d9m_test.py | # Copyright 2021 The TensorFlow Authors. 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 required by applica... |
jingcao80/Elastos | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/inputmethodservice/KeyboardView.cpp | <reponame>jingcao80/Elastos
//=========================================================================
// Copyright (C) 2012 The Elastos Open Source 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... |
bosuyun/apaas-community | platform-process/src/main/java/com/bosuyun/platform/process/eventbus/message/DataOpMessage.java | <filename>platform-process/src/main/java/com/bosuyun/platform/process/eventbus/message/DataOpMessage.java
package com.bosuyun.platform.process.eventbus.message;
import com.bosuyun.platform.common.exception.BizzException;
import com.bosuyun.platform.common.misc.DataNode;
import com.bosuyun.platform.common.misc.DataNode... |
ak47wyh/paascloud-store | paascloud-common/paascloud-security-core/src/main/java/com/paascloud/security/core/social/weixin/connect/WeixinAccessGrant.java | /*
* Copyright (c) 2018. paascloud.net All Rights Reserved.
* 项目名称:paascloud快速搭建企业级分布式微服务平台
* 类名称:WeixinAccessGrant.java
* 创建人:刘兆明
* 联系方式:<EMAIL>
* 开源地址: https://github.com/paascloud
* 博客地址: http://blog.paascloud.net
* 项目官网: http://paascloud.net
*/
package com.paascloud.security.core.social.weixin.connect;
i... |
GMHDBJD/ticdc | engine/pkg/externalresource/resourcemeta/model/model.go | <filename>engine/pkg/externalresource/resourcemeta/model/model.go<gh_stars>10-100
// Copyright 2022 PingCAP, 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.apac... |
clouserw/olympia | apps/addons/management/commands/import_missing_gp_favorites.py | from getpass import getpass
from optparse import make_option
from time import time
from django.core.management.base import BaseCommand
from django.db import IntegrityError, connection as django_connection
import MySQLdb as mysql
from users.models import UserProfile
class Command(BaseCommand):
"""
Import fr... |
gsosad/Programacion-I | actividades/sesion1/albertogomez/actividad2/main.cpp | #include <iostream>
using namespace std;
class Mascota{
public:
//constructor
Mascota(string _nombre, string _especie, unsigned short int _edad)
{
nombre = _nombre;
especie = _especie;
edad = _edad;
}
//variables miembro (atributos)
string nombre;
string especie;
... |
morind/warp10-platform-dmn | warp10/src/main/java/io/warp10/script/functions/SORTBY.java | //
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
ebabel-eu/lion | packages/collapsible/index.js | <reponame>ebabel-eu/lion<filename>packages/collapsible/index.js
export { LionCollapsible } from './src/LionCollapsible.js';
|
vividos/OldStuff | C64/src/d64view/source/doctempl.cpp | <gh_stars>1-10
/*
d64view - a d64 disk image viewer
Copyright (c) 2002,2003,2016 <NAME>
*/
/*! \file doctempl.cpp
\brief custom document template
checking for already openend files
*/
// needed includes
#include "common.hpp"
#include "doctempl.hpp"
// d64view_doc_template methods
wxDocument* d64view_... |
WIZARD-CXY/pl | lintcode/binarytreezigzagtravesal.cpp | /**
* Definition of TreeNode:
* class TreeNode {
* public:
* int val;
* TreeNode *left, *right;
* TreeNode(int val) {
* this->val = val;
* this->left = this->right = NULL;
* }
* }
*/
class Solution {
/**
* @param root: The root of binary tree.
* @return: A lis... |
Amareshwari/incubator-lens | lens-ml-lib/src/main/java/org/apache/lens/ml/algo/spark/lr/LogisticRegressionAlgo.java | <reponame>Amareshwari/incubator-lens
/**
* 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... |
tiwariut/journal | routes/auth.js | <gh_stars>0
const express = require('express');
const validator = require('express-joi-validator');
const multer = require('multer');
const upload = multer({ dest: 'public/uploads/' });
const {
login,
logout,
getMe,
updateDetails,
updatePassword
} = require('../controllers/auth');
const {
loginSchema,
u... |
vuexp/vuexp | tests/e2e/pageObjects/components/searchBarPage.js | const checkScreenshot = require('../../commonCommands/checkScreenshotCommand');
module.exports = {
url: function() {
return this.api.launchUrl;
},
elements: {
searchBarBackground: '#searchbar__docs',
searchTextInputField: '.vxp-searchbar__search-input',
hintTextInputField: '#searchbar__hint__inpu... |
Greedylightning/LeetCode_Second | Array/ContainsDuplicate2.java | import java.util.Map;
class ContainsDuplicate2{
public boolean containsNearbyDuplicate(int[] nums, int k) {
Map<Integer, Integer> temp = new HashMap<Integer, Integer>();
for(int i = 0; i < nums.length; i++){
if(temp.containsKey(nums[i]) && Math.abs(i - temp.get(nums[i])) <= k) return t... |
r0hack/WavesGUI | src/modules/ui/directives/transaction/types/exchange/Exchange.js | (function () {
'use strict';
/**
* @param {User} user
* @param {app.utils} utils
* @return {Exchange}
*/
const controller = function (user, utils) {
class Exchange {
/**
* {object}
*/
props = null;
$postLink() {
... |
AlexTexis/platziCoursesFrontend | src/services/configurationFetch.js | <reponame>AlexTexis/platziCoursesFrontend
//abort suscription api fetch
const abortController = new AbortController()
export const configGet = () => ({
method : 'GET',
headers : new Headers({
'Content-Type' : 'application/json'
}),
signal : abortController.signal
})
export const configPost = (input) => ({... |
npocmaka/Windows-Server-2003 | admin/activec/designer/vb98ctls/mssnapr/mssnapr/tls.h | //=--------------------------------------------------------------------------=
// tls.h
//=--------------------------------------------------------------------------=
// Copyright (c) 1999, Microsoft Corp.
// All Rights Reserved
// Information Contained Herein Is Proprietary and Confidential.
//=-... |
rbourdon/rorybourdon | components/layout.js | import Head from "next/head";
import { ThemeContext } from "styled-components";
import { motion } from "framer-motion";
import { useContext } from "react";
function Layout({ children }) {
const theme = useContext(ThemeContext);
return (
<motion.div
style={{
backgroundColor: theme.primary_light,
... |
gdefacci/briscola | ddd-briscola-web/src/main/scala/com/github/gdefacci/briscola/presentation/game/GamePresentationAdapter.scala | package com.github.gdefacci.briscola.presentation.game
import com.github.gdefacci.briscola.{game => model}
import com.github.gdefacci.briscola.player.PlayerId
import com.github.gdefacci.briscola.web.util.PresentationAdapter
import com.github.gdefacci.briscola.presentation.player.PlayerRoutes
import com.github.gdefacci... |
r7h2/testing_01 | demos/z-rest-demo-02/z-rest-demo-02/src/main/java/com/example/zrestdemo02/controller/GreetingController.java | <gh_stars>0
package com.example.zrestdemo02.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spri... |
lajos-kiss/webauthn4j | webauthn4j-core/src/main/java/com/webauthn4j/data/SignatureAlgorithm.java | /*
* Copyright 2002-2018 the original author or 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 ap... |
naver/webgraphics | mozilla/gfx/vr/gfxVROculus050.h | <gh_stars>1-10
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef GFX_VR_OCULUS... |
Josecc/voila | src/components/Tutorial/Tutorial.js | <reponame>Josecc/voila<gh_stars>0
import React, { Component } from 'react';
import styles from './Tutorial.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Tutorial extends Component {
constructor(props){
super(props);
}
render() {
if(this.props.uploadTutorial){
... |
andreas-loeffler/Rummikub | src/main/scala/rummikub/model/StrategyComponents/strategyBaseImpl/StatePattern.scala | <filename>src/main/scala/rummikub/model/StrategyComponents/strategyBaseImpl/StatePattern.scala<gh_stars>0
package Rummikub.model.StrategyComponents.strategyBaseImpl
import Rummikub.model.StrategyComponents.StateInterface
object StatePattern extends StateInterface {
def handle(x: Boolean): Unit = {
x match {
... |
denise-sanders/mongosh | packages/java-shell/src/test/resources/literal/array.js | <gh_stars>100-1000
// before
db.coll.insertOne({"_id": 1, v: [1, 2, "hello \n world"]});
// command checkResultClass
[1, 2, "hello \n world"]
// command checkResultClass
db.coll.find().toArray()[0].v;
// clear
db.coll.drop();
|
mukeshkumargupta/data-structure-java-tutorials | src/com/interview/tree/CountGoodNodesinBinaryTree.java | <filename>src/com/interview/tree/CountGoodNodesinBinaryTree.java
package com.interview.tree;
/*
* https://leetcode.com/problems/count-good-nodes-in-binary-tree/
* Category: Medium, Must Do, dfs
* Hint: Here solved as dfs, try to solve post order traversal like how size of tree calculated
* https://www.youtube.com/... |
rydockman/YouPick | node_modules/@iconify-icons/clarity/src/certificate-solid.js | let data = {
"body": "<path d=\"M19 30H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v10.37a8.34 8.34 0 0 0-13.49 9.79l-.93 1.14zM7 12v1.6h17V12zm0 5.6h11V16H7zm0 7h10V23H7z\" class=\"clr-i-solid clr-i-solid-path-1\" fill=\"currentColor\"/><path d=\"M33.83 23.59a6.37 6.37 0 1 0-10.77 4.59l-1.94 2.37l.9 3.61l3.66-4.4... |
heitaoflower/Lumos | Lumos/src/Core/OS/FileSystem.cpp | <filename>Lumos/src/Core/OS/FileSystem.cpp
#include "lmpch.h"
#include "FileSystem.h"
namespace Lumos
{
bool (*FileSystem::FileExistsFunc)(const String&) = NULL;
bool (*FileSystem::FolderExistsFunc)(const String&) = NULL;
i64 (*FileSystem::GetFileSizeFunc)(const String&) = NULL;
u8* (*FileSystem::Rea... |
mistydew/RSSearch | depends/boost/intrusive/unordered_set.hpp | /////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright <NAME> 2004-2006.
// (C) Copyright <NAME> 2006-2014
//
// 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... |
mikiec84/figaro | Figaro/src/main/scala/com/cra/figaro/algorithm/structured/Bounds.scala | <gh_stars>100-1000
/*
* Bounds.scala
* Definition of lower and upper bounds.
*
* Created By: <NAME> (<EMAIL>)
* Creation Date: March 1, 2015
*
* Copyright 2017 <NAME> and Charles River Analytics, Inc.
* See http://www.cra.com or email <EMAIL> for information.
*
* See http://www.github.com/p2t2/figaro f... |
martinkro/tutorial-qt | Beautiful/Process/src/custompushbutton.cpp | <filename>Beautiful/Process/src/custompushbutton.cpp<gh_stars>1-10
#include "custompushbutton.h"
CustomPushButton::CustomPushButton(QWidget *parent)
: QPushButton(parent), m_bgpic("")
{
isPressed = false;
m_status = NORMAL;
}
/*
* Repaint the button according to different status.
*/
void CustomPushButton::paintEv... |
mschwartz/creative-engine | src/Controls/DesktopControls/DesktopControls.cpp | <gh_stars>0
#include "DesktopControls.h"
#ifdef CONTROLLER_SUPPORT
#include <SDL.h>
#endif
DesktopControls::DesktopControls() : ControlsBase() {
#ifdef CONTROLLER_SUPPORT
SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER | SDL_INIT_JOYSTICK | SDL_INIT_HAPTIC);
haptic = ENull;
ctrl = ENull;
for (TInt i = 0; i < SDL... |
zhouyium/AtCoder | HHKBPC2020/TaskD.cpp | //https://atcoder.jp/contests/hhkb2020/tasks/hhkb2020_c
//HHKB Programming Contest 2020
//D - Squares
//https://blog.csdn.net/justidle/article/details/109024249
/*数学题*/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int MO = 1e9+7;
int main() {
int t;
cin>>t;
while (t--) {
... |
windystrife/UnrealEngine_NVIDIAGameWork | Engine/Source/Runtime/Engine/Classes/DeviceProfiles/DeviceProfileManager.h | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
DeviceProfileManager.h: Declares the FDeviceProfileManager class.
=============================================================================*/
#pragma once
#include "CoreMi... |
sistcoop/asyubl | src/main/java/org/easyubl/utils/RepresentationToModel.java | <gh_stars>0
package org.easyubl.utils;
import org.openfact.common.util.MultivaluedHashMap;
import org.openfact.component.ComponentModel;
import org.openfact.components.utils.ComponentUtil;
import org.openfact.keys.KeyProvider;
import org.openfact.models.ComponentProvider;
import org.openfact.models.ModelException;
imp... |
yongmin86k/project__boomtown | client/src/components/ItemsGrid/index.js | import ItemsGrid from './ItemsGrid'
export default ItemsGrid; |
RobertTheNerd/sc2geeks | web-api/website/www.website/src/main/java/com/sc2geeks/front/ui/SearchUrlHelper.java | package com.sc2geeks.front.ui;
import api.sc2geeks.entity.*;
import com.sc2geeks.commons.web.UrlUTF8Encoder;
import com.sc2geeks.front.IRefinementInfoProvider;
import com.sc2geeks.front.RefinementSetting;
import com.sc2geeks.front.WebsiteConfig;
import org.apache.commons.lang3.StringUtils;
import java.util.*;
/**
*... |
samuelpordeus/ruby_detective | lib/ruby_detective/ui_generator.rb | require "erb"
module RubyDetective
class UIGenerator
def self.generate
# Variable used inside the template
classes_data_as_json = JSONBuilder.build
template_path = File.join(File.dirname(__FILE__), "../../views/template.html.erb")
erb_template = File.read(template_path)
ui_source_c... |
devon-ye/demos-parent | language/java/src/main/java/org/devon/clazz/reflect/ClassDemo02.java | package org.devon.clazz.reflect;
public class ClassDemo02 {
@SuppressWarnings("rawtypes")
public static void main(String[] args) {
Class c1 = int.class;
Class c2 = String.class;
Class c3 = Double.class;
Class c4 = double.class;
Class c5 = void.class;
Class c6 = args.getClass();
System.out.println("c1=... |
litecoin-foundation/forkmonitor | db/migrate/20190126162003_create_lags.rb | <reponame>litecoin-foundation/forkmonitor
# frozen_string_literal: true
class CreateLags < ActiveRecord::Migration[5.2]
def change
create_table :lags do |t|
t.references :node_a, references: :node, index: true
t.references :node_b, references: :node, index: true
t.timestamps
end
end
end
|
shakilakhtar/designpatterns | src/com/mycomp/dp/visitor/ex1/VisitorDemo.java | package com.mycomp.dp.visitor.ex1;
public class VisitorDemo {
static public void main(String[] args) {
Car car = new Car();
car.accept(new CarElementPrintVisitor());
car.accept(new CarElementDoVisitor());
}
}
|
hyanwong/eol | db/migrate/20130122175125_create_crop_activity.rb | <filename>db/migrate/20130122175125_create_crop_activity.rb
class CreateCropActivity < ActiveRecord::Migration
def self.up
Activity.find_or_create('crop')
end
def self.down
# Nothing to do.
end
end
|
Pratham82/Java-Programming | Day16/Multiplication.java | <reponame>Pratham82/Java-Programming
package Day16;
public class Multiplication {
public void Multi2Int(int A, int B){
System.out.println("Multiplication of two numbers: "+(A*B));
}
public void Multi2Float(float A, float B){
System.out.println("Multiplication of two floats: "+(A*B));
}
... |
Tomius/oglwrap | shader_source.h | <filename>shader_source.h
// Copyright (c) <NAME>
/** @file shader_source.h
@brief Implements GLSL shader source loading and manipulating facilities.
*/
#ifndef OGLWRAP_SHADER_SOURCE_H_
#define OGLWRAP_SHADER_SOURCE_H_
#include <string>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include "./conf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.