repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
coman3/zitadel | internal/repository/org/domain.go | <reponame>coman3/zitadel
package org
import (
"context"
"encoding/json"
"github.com/caos/zitadel/internal/eventstore"
"github.com/caos/zitadel/internal/crypto"
"github.com/caos/zitadel/internal/domain"
"github.com/caos/zitadel/internal/errors"
"github.com/caos/zitadel/internal/eventstore/repository"
)
const (... |
simpsonw/atmosphere | api/tests/base/test_version.py | """
Tests for base views (i.e. views shared between api versions)
"""
from rest_framework.test import APIRequestFactory
from rest_framework.test import APITestCase, force_authenticate
from api.base.views import VersionViewSet, DeployVersionViewSet
from api.tests.factories import UserFactory
class VersionTests(APITes... |
snoopdave/incubator-usergrid | stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/qakka/distributed/actors/QueueSender.java | <filename>stack/corepersistence/queue/src/main/java/org/apache/usergrid/persistence/qakka/distributed/actors/QueueSender.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
* regar... |
caroldf07/orange-talents-02-template-proposta | criacao-proposta/src/main/java/br/com/orangetalents/proposta/criarproposta/view/EnderecoRequest.java | <filename>criacao-proposta/src/main/java/br/com/orangetalents/proposta/criarproposta/view/EnderecoRequest.java
package br.com.orangetalents.proposta.criarproposta.view;
import br.com.orangetalents.proposta.criarproposta.model.Endereco;
import org.hibernate.validator.constraints.Length;
import javax.validation.constra... |
bijugs/hbase-1.1.2.2.6.3.22-1 | hbase-native-client/src/hbase/client/scan.cc | <gh_stars>10-100
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
*... |
alisle/ZeroTrust-Server | oauth/src/main/java/com/zerotrust/oauth/repository/ConfigRepository.java | <gh_stars>1-10
package com.zerotrust.oauth.repository;
import com.zerotrust.oauth.model.Config;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import java.util.List;
import java.util.UUID;
@SuppressWarnings("unused")
@Reposi... |
rockandsalt/conan-center-index | recipes/zbar/all/test_package/test_package.c | #include <stdio.h>
#include <stdlib.h>
#include <zbar.h>
zbar_image_scanner_t *scanner = NULL;
int main (int argc, char **argv)
{
/* create a reader */
scanner = zbar_image_scanner_create();
/* configure the reader */
zbar_image_scanner_set_config(scanner, 0, ZBAR_CFG_ENABLE, 1);
/* clean up *... |
EndlessCoff33/shipment_tracker | spec/models/events/jira_event_spec.rb | <filename>spec/models/events/jira_event_spec.rb
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe Events::JiraEvent do
describe '#approval?' do
context 'when the status changes from unapproved to approved' do
it 'returns true' do
expect(build(:jira_event, :approved).approval?).to... |
keshbach/Arcade | Source/UtilsNet/UiCtrlsNet/FileTypeItem.cpp | <reponame>keshbach/Arcade<gh_stars>1-10
/////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013-2014 <NAME>
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "FileTypeItem.h"
Common::Forms::FileTypeItem::FileTypeItem... |
ScaryBoxStudios/TheRoom | src/Asset/Properties/PropertiesLoader.cpp | <filename>src/Asset/Properties/PropertiesLoader.cpp
#include "PropertiesLoader.hpp"
#include <assert.h>
#include <cstring>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include "Properties.hpp"
// Parsing helper functions declarations
Properties::Id ParseId(const rapidjson::Value& v); /... |
Robbbert/messui | src/mame/drivers/bmjr.cpp | <gh_stars>10-100
// license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
Basic Master Jr (MB-6885) (c) 1982? Hitachi
preliminary driver by <NAME>
To enter the monitor: MON
To quit: E
TODO:
- Break key is unemulated (tie... |
lucasmrdt/50k-app | app/src/containers/index.js | import Level from './ConnectedLevel';
import TaskList from './ConnectedTaskList';
export * from './ConnectedFilter';
export {
Level,
TaskList,
};
|
huizhongyu/tempProject | app/src/main/java/cn/closeli/rtc/controller/PreviewActivity.java | <reponame>huizhongyu/tempProject
package cn.closeli.rtc.controller;
import android.app.admin.DevicePolicyManager;
import android.hardware.Camera;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.... |
CapnSpellcheck/aka-ios-beacon | AKABeacon/AKABeacon/Classes/AKANullability.h | //
// AKANullability.h
// AKACommons
//
// Created by <NAME> on 20.09.15.
// Copyright © 2015 <NAME> & AKA Sarl. All rights reserved.
//
@import Foundation;
@import UIKit;
#ifndef AKANullability_h
#define AKANullability_h
/* Rationale:
We decided to (progressively) use nullability annotations in all interface... |
Kaiofprates/orange-talents-02-template-casa-do-codigo | src/test/java/br/com/zup/desafio1/Category/CategoryFormTest.java | package br.com.zup.desafio1.Category;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
impo... |
VHAINNOVATIONS/Telepathology | Source/Java/CacheAPI/main/src/java/gov/va/med/imaging/storage/cache/impl/GroupPath.java | /**
*
*/
package gov.va.med.imaging.storage.cache.impl;
import java.util.List;
import gov.va.med.imaging.storage.cache.Group;
import gov.va.med.imaging.storage.cache.Region;
import gov.va.med.imaging.storage.cache.exceptions.CacheException;
/**
* @author VHAISWBECKEC
* A simple value object that contains refere... |
BernardoB95/Extrator_SPEDFiscal | Regs/Block_0/R0500.py | <filename>Regs/Block_0/R0500.py
from ..IReg import IReg
class R0500(IReg):
def __init__(self):
self._header = ['REG',
'DT_ALT',
'COD_NAT_CC',
'IND_CTA',
'NIVEL',
'COD_CTA',
... |
MatIvan/LaborCoast-GWT | src/ru/mativ/shared/exception/LoginFialException.java | <gh_stars>0
package ru.mativ.shared.exception;
import java.io.Serializable;
public class LoginFialException extends Exception implements Serializable {
private static final long serialVersionUID = 1699524107930422612L;
public LoginFialException() {
super();
}
public LoginFialException(String... |
eugeneilyin/mdi-norm | src/RoundRedeem.js | <filename>src/RoundRedeem.js
import React from 'react'
import { Icon } from './Icon'
import { k, x, ek, bas } from './fragments'
export const RoundRedeem = /*#__PURE__*/ props => <Icon {...props}>
<path d={ek + "m10 15H5" + k + "v-1h16v1" + x + "zm1-5" + bas}/>
</Icon>
|
KWStudios/Techguns-Deathmatch | src/main/java/org/kwstudios/play/ragemode/updater/Updater.java | <gh_stars>0
package org.kwstudios.play.ragemode.updater;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.... |
mankeyl/elasticsearch | server/src/main/java/org/elasticsearch/index/fielddata/NumericDoubleValues.java | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
mgpavlov/SoftUni | Java/Java Web/01.Java Web Development Basics - January 2019/11.Exam Preparation/ExamPrepII/examPrep2/src/main/java/exam/web/beans/HomeBean.java | package exam.web.beans;
import exam.domain.models.view.UserHomeViewModel;
import org.modelmapper.ModelMapper;
import exam.domain.models.service.UserServiceModel;
import exam.service.UserService;
import javax.annotation.PostConstruct;
import javax.enterprise.context.RequestScoped;
import javax.faces.context.FacesConte... |
yoshson/workbench | workbench/contacts/forms.py | <reponame>yoshson/workbench<filename>workbench/contacts/forms.py
from collections import OrderedDict
from django import forms
from django.conf import settings
from django.contrib import messages
from django.forms.models import inlineformset_factory
from django.template.defaultfilters import linebreaksbr
from django.ut... |
KevinLuo41/LeetCodeInPython | binary_tree_level_order_traversal_ii.py | <reponame>KevinLuo41/LeetCodeInPython
#!/usr/bin/env python
# encoding: utf-8
"""
binary_tree_level_order_traversal_ii.py
Created by Shengwei on 2014-07-29.
"""
# https://oj.leetcode.com/problems/binary-tree-level-order-traversal-ii/
# tags: medium, tree, traversal, reversed, bfs
"""
Given a binary tree, return the ... |
jiandequn/code | log_chart_manager/src/main/java/com/ppfuns/report/mapper/AppDetailPageAlbumContentTypeCountDayMapper.java | package com.ppfuns.report.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ppfuns.report.entity.AppDetailPageAlbumContentTypeCountDay;
/**
* 按日统计专辑详情页专辑类型访问(AppDetailPageAlbumContentTypeCountDay)表数据库访问层
*
* @author jdq
* @since 2021-07-28 16:22:17
*/
public interface AppDetailPageAlbumC... |
redhat-openstack/manila | manila/tests/api/views/test_scheduler_stats.py | # Copyright (c) 2015 <NAME>. 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 ap... |
sebastienbarbier/723e_react | src/app/reducers/report.reducer.js | <reponame>sebastienbarbier/723e_react
import { USER_LOGOUT, REPORT_SET_DATES, RESET } from "../constants";
import moment from "moment";
const initialState = {
dateBegin: moment.utc().startOf("year"),
dateEnd: moment.utc().endOf("year"),
title: null
};
function report(state = initialState, action) {
switch (a... |
Szeba25/hades | src/main/java/hu/szeba/hades/wizard/view/panels/TaskEditorPanel.java | <reponame>Szeba25/hades
package hu.szeba.hades.wizard.view.panels;
import hu.szeba.hades.main.meta.Languages;
import hu.szeba.hades.main.util.FileUtilities;
import hu.szeba.hades.main.util.GridBagSetter;
import hu.szeba.hades.main.view.components.DialogFactory;
import hu.szeba.hades.main.view.elements.MappedElement;
i... |
onhout/fishbowl | lib/fishbowl/connection.rb | require 'nokogiri'
module Fishbowl
class Connection
include Singleton
def self.connect()
raise Fishbowl::Errors::MissingHost if Fishbowl.configuration.host.nil?
@host = Fishbowl.configuration.host
@port = Fishbowl.configuration.port.nil? ? 28192 : Fishbowl.configuration.port
@conne... |
ujjwalgulecha/Coding | Project Euler/euler46.cpp | <reponame>ujjwalgulecha/Coding
<<<<<<< HEAD
#include<iostream>
#include<math.h>
#include<stdlib.h>
using namespace std;
int isprime(int x);
void gen(int *a);
int main()
{
int a[100000];
gen(a);
int i,j,x,flag=0;
float n;
for(x=1;;x+=2)
{
for(i=0;a[i]<x;i++)
{
n=sqrt((... |
huamichaelchen/deeplearning4j | deeplearning4j-core/src/main/java/org/deeplearning4j/nn/conf/layers/SubsamplingLayer.java | package org.deeplearning4j.nn.conf.layers;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.deeplearning4j.nn.conf.distribution.Distribution;
import org.deeplearning4j.nn.weights.WeightInit;
/**
* @author <NAME>
*/
@Data @NoArgsConstructor
public class SubsamplingLa... |
beetle2k/Metin2Client | source/EterLib/GrpColor.h | <gh_stars>10-100
#pragma once
class CGraphicColor
{
public:
CGraphicColor(const CGraphicColor& c_rSrcColor);
CGraphicColor(float r, float g, float b, float a);
CGraphicColor(DWORD color);
CGraphicColor();
~CGraphicColor();
void Clear();
void Set(float r, float g, float b, float a);
void Set(const ... |
ishandutta2007/fingerprint.ninja | app/components/SubmitButton/index.js | <filename>app/components/SubmitButton/index.js
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import loadingSpinner from 'static/loading.svg';
const Button = styled.button`
font-family: 'Montserrat', sans-serif;
background-color: rgba(0, 0, 0, 0);
width: 1... |
dejbug/cathy | lib/Edit.h | #pragma once
#include "Common.h"
#include "Child.h"
#include "Defines.h"
BEGIN_NAMESPACE (lib)
BEGIN_NAMESPACE (gui)
class Edit : public Child
{
public:
bool Attach (HWND parent, UINT cid);
public:
bool AppendText (LPCSTR text);
};
END_NAMESPACE (gui)
END_NAMESPACE (lib)
|
UECIT/ecds-schema | src/main/java/uk/nhs/nhsia/datastandards/ecds/impl/ClinicalDiagnosisGroupREADTypeImpl.java | <reponame>UECIT/ecds-schema<gh_stars>0
/*
* XML Type: ClinicalDiagnosisGroupREAD_Type
* Namespace: http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
* Java type: uk.nhs.nhsia.datastandards.ecds.ClinicalDiagnosisGroupREADType
*
* Automatically generated - do not modify.
*/
package uk.nhs.nhsia.datastandards.... |
lmayZhou/lms-cloud | lms-cloud-starters/lms-cloud-starter-canal/src/main/java/com/lmaye/cloud/starter/canal/patterns/FloatType.java | package com.lmaye.cloud.starter.canal.patterns;
import org.springframework.stereotype.Component;
/**
* -- Float Type
*
* @author <NAME>
* @date 2021/4/2 10:14
* @email <EMAIL>
*/
@Component
public class FloatType implements IType {
/**
* 获取类型名称
*
* @return String
*/
@Override
pub... |
eerimoq/async | tst/test_core_tcp_server.c | #include "nala.h"
#include "async.h"
#include "runtime_test.h"
TEST(call_all_functions)
{
struct async_t async;
struct async_tcp_server_t server;
struct async_tcp_server_client_t client;
async_init(&async);
runtime_test_set_async_mock();
async_set_runtime(&async, runtime_test_create());
... |
ParisMaroulakosSeferiadis/meteorological-stations-network | greedy algorithms & graph problems/A2.py | <reponame>ParisMaroulakosSeferiadis/meteorological-stations-network<filename>greedy algorithms & graph problems/A2.py
import networkx as nx
from matplotlib import pyplot as plt
import hellas_cities
G1= hellas_cities.get_cities_distances_80_graph()
nx.draw(G1, with_labels=True)
plt.show()
C1 = nx.connected_c... |
AnzerWall/inHere | java/inHere-java/src/main/java/com/inHere/entity/User.java | package com.inHere.entity;
import java.io.IOException;
import java.util.Date;
import java.util.List;
/**
* 用户实体
*/
public class User {
private String userId;
private String passwd;
private String saltKey;
private String userName;
private String headImg;
private String contactWay;
privat... |
d-tree-org/opensrp-client-chw | opensrp-chw/src/test/java/org/smartregister/chw/fragment/FamilyProfileDueFragmentTest.java | package org.smartregister.chw.fragment;
import android.view.View;
import androidx.fragment.app.FragmentActivity;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.powermock.reflect.Wh... |
shengjian-tech/opennft | blockchainplatform-nft/blockchainplatform-nft-service/src/main/java/net/shengjian/makerone/service/INFTComputeOrderService.java | <reponame>shengjian-tech/opennft
package net.shengjian.makerone.service;
import net.shengjian.makerone.dto.ComputeOrderDTO;
import net.shengjian.rpc.annotation.RpcServiceAnnotation;
import java.math.BigDecimal;
/**
* @descriptions: nft订单价格计算接口
* @author: YSK
* @date: 2021/12/24 16:11
* @version: 1.0
*/
@RpcServ... |
mbanasiewicz/mobile-sdk-ios | sdk/sourcefiles/Categories/NSPointerArray+ANCategory.h | <filename>sdk/sourcefiles/Categories/NSPointerArray+ANCategory.h
/* Copyright 2021 Xandr 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
Un... |
agenihorganization/opensplice | src/abstraction/os/posix/include/os_os_cond.h | /*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
dante7qx/microservice-tornado | tornado-sysmgr-api/src/main/java/com/tornado/sysmgr/api/dto/resp/IpRuleRespDTO.java | <filename>tornado-sysmgr-api/src/main/java/com/tornado/sysmgr/api/dto/resp/IpRuleRespDTO.java
package com.tornado.sysmgr.api.dto.resp;
import lombok.Data;
/**
* IP规则返回参数
*
* @author dante
*
*/
@Data
public class IpRuleRespDTO {
private Long id;
private String ip;
private String remark;
private Boolean activ... |
imranpopz/android_bootable_recovery-1 | libblkid/src/superblocks/silicon_raid.c | <filename>libblkid/src/superblocks/silicon_raid.c
/*
* Copyright (C) 2008 <NAME> <<EMAIL>>
* Copyright (C) 2005 <NAME> <<EMAIL>>
*
* Inspired by libvolume_id by
* <NAME> <<EMAIL>>
*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
*/
#include <stdio.h>
#include <... |
yiliangz/mass | framework/core/src/main/java/org/mass/framework/core/page/Page.java | <filename>framework/core/src/main/java/org/mass/framework/core/page/Page.java
package org.mass.framework.core.page;
import java.util.List;
/**
* Created by Allen on 2015/4/27.
*/
public interface Page<T> {
public Page nextPage();
public Page prevPage();
public List<T> getContent();
public boolea... |
kvaps/deckhouse | modules/040-control-plane-manager/hooks/audit_policy_basic_targets_generated.go | <reponame>kvaps/deckhouse<filename>modules/040-control-plane-manager/hooks/audit_policy_basic_targets_generated.go
// Code generated by "tools/audit_policy.go" DO NOT EDIT.
package hooks
var auditPolicyBasicNamespaces = []string{
"d8-ceph-csi",
"d8-cert-manager",
"d8-chrony",
"d8-cloud-instance-manager",
"d8-clou... |
mliceaga/letmework4U-frontend2 | src/app/main/documentation/material-ui-components/components/hidden/BreakpointDown.js | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import Hidden from '@material-ui/core/Hidden';
import withWidth from '@material-ui/core/withWidth';
import Typography from '@material-ui/core/Typography';
im... |
ankurshukla1993/IOT-test | coeey/com/google/android/gms/internal/zzaun.java | package com.google.android.gms.internal;
import android.content.Context;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Looper;
import android.support.annotation.Nullable;
import com.google.android.gms.auth.api.Auth.AuthCredentialsOptions;
import com.google.android... |
Toromino/chromiumos-platform2 | power_manager/powerd/policy/charge_controller.cc | // Copyright 2019 The Chromium OS 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 "power_manager/powerd/policy/charge_controller.h"
#include <algorithm>
#include <cmath>
#include <base/check.h>
#include <base/logging.h>
#i... |
wqk317/mi8_kernel_source | mi8/drivers/staging/qcacld-3.0/core/dp/htt/htt_fw_stats.c | /*
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS ... |
liwen-deepmotion/map_based_lidar_camera_calibration_tool | calibration_tool/trajectory/camera_config.py | # Author: <NAME> (<EMAIL>)
import json
import numpy as np
class CameraConfig(object):
def __init__(self):
self.fx = float()
self.fy = float()
self.cx = float()
self.cy = float()
self.w = int()
self.h = int()
def from_json_file(self, json_file_path: str):
... |
realvitya/fmcapi | fmcapi/api_objects/update_packages/__init__.py | <reponame>realvitya/fmcapi<filename>fmcapi/api_objects/update_packages/__init__.py
import logging
from .listapplicabledevices import ListApplicableDevices
from .listapplicabledevices import ApplicableDevices
from .upgradepackages import UpgradePackages
from .upgradepackages import UpgradePackage
from .upgradepackage im... |
clilystudio/NetBook | allsrc/com/ushaqi/zhuishushenqi/model/YLPayOrder.java | <gh_stars>1-10
package com.ushaqi.zhuishushenqi.model;
public class YLPayOrder
{
private boolean ok;
private YLPayOrder.PayOrder payOrder;
public YLPayOrder.PayOrder getPayOrder()
{
return this.payOrder;
}
public boolean isOk()
{
return this.ok;
}
public void setOk(boolean paramBoolean)
... |
MerHub/symfony | SprintMobiles/lib/impl/stubs/org/bouncycastle/crypto/params/DHKeyGenerationParameters.java | /**
*
* Classes for parameter objects for ciphers and generators.
*/
package org.bouncycastle.crypto.params;
public class DHKeyGenerationParameters extends org.bouncycastle.crypto.KeyGenerationParameters {
public DHKeyGenerationParameters(javabc.SecureRandom random, DHParameters params) {
}
public DHParamete... |
JiehangXie/PaddleSpeech | utils/remove_longshortdata.py | <gh_stars>1000+
#!/usr/bin/env python3
"""remove longshort data from manifest"""
import argparse
import logging
import jsonlines
from paddlespeech.s2t.utils.cli_utils import get_commandline_args
# manifest after format
# josnline like this
# {
# "input": [{"name": "input1", "shape": (100, 83), "feat": "xxx.ark:123... |
hoehnp/SpaceDesignTool | sta-src/Services/serviceDistanceRateUnit.cpp | <reponame>hoehnp/SpaceDesignTool
/*
This program is free software; you can redistribute it and/or modify it under
the terms of the European Union Public Licence - EUPL v.1.1 as published by
the European Commission.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without e... |
pyr-sh/keybase-notarybot | bot/vendor/github.com/pzduniak/unipdf/model/page.go | /*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
//
// Allow higher level manipulation of PDF files and pages.
// This can be continuously expanded to support more and more features.
// Generic handling can be done by defining elemen... |
willlunniss/andlytics | src/com/github/andlyticsproject/db/AppInfoTable.java | <filename>src/com/github/andlyticsproject/db/AppInfoTable.java<gh_stars>100-1000
package com.github.andlyticsproject.db;
import java.util.HashMap;
import android.net.Uri;
public class AppInfoTable {
public static final String DATABASE_TABLE_NAME = "appinfo";
public static final String UNIQUE_PACKAGE_NAMES = "appi... |
GirZ0n/SPBU-Homework-1 | Homework_4/Task_2/Task_2.c | <reponame>GirZ0n/SPBU-Homework-1
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include "phonebook.h"
extern const int maxStringSize;
void getName(char* name, char* firstName, char* secondName)
{
scanf("%s %s", firstName, secondName);
name[0] = '\0';
strcat(name, firstNam... |
chenpota/python | type-hints/example/12_decorator.py | <reponame>chenpota/python
import functools
from typing import TypeVar, cast
import decorator
#######################################
T = TypeVar('T')
def my_decorator(f: T) -> T:
@functools.wraps(f) # type: ignore
def wrapper(*args, **kwargs):
return f(*args, **kwargs) # type: ignore
return c... |
atul-vyshnav/2021_IBM_Code_Challenge_StockIT | src/StockIT-v2-release_source_from_JADX/sources/com/google/android/gms/internal/firebase_messaging/zza.java | package com.google.android.gms.internal.firebase_messaging;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
public class zza extends Handler {
private static volatile zzb zza;
public zza() {
}
public zza(Looper looper) {
super(looper);
}
public zza(Lo... |
Kwak-JunYoung/154Algoritm-5weeks | before/0214/7576.py | <reponame>Kwak-JunYoung/154Algoritm-5weeks<filename>before/0214/7576.py
from collections import deque
n, m = list(map(int, input().split()))
dx = [0, 0, 1, -1]
dy = [1, -1, 0, 0]
def bfs(graph):
queue = deque([])
for x in range(m):
for y in range(n):
if graph[x][y] == 1:
q... |
Limingming2/yoloo_topondemo | topon571_fix/Pods/Headers/Public/DoraemonKit/DoraemonCPUViewController.h | //
// DoraemonCPUViewController.h
// DoraemonKit-DoraemonKit
//
// Created by yixiang on 2018/1/12.
//
#import "DoraemonBaseViewController.h"
@interface DoraemonCPUViewController : DoraemonBaseViewController
@end
|
TirthrajRao/spurtV2 | models/customerwishlist.model.js | var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var customerwishlist = new Schema({
customer_id: {
type: mongoose.Schema.Types.ObjectId,
ref: 'customer'
},
product_id: {
type: mongoose.Schema.Types.ObjectId,
ref: 'product'
},
is_active: {
t... |
smart-cow/scow | cow-server/src/main/java/org/wiredwidgets/cow/server/transform/graph/bpmn20/Bpmn20ProcessBuilder.java | <filename>cow-server/src/main/java/org/wiredwidgets/cow/server/transform/graph/bpmn20/Bpmn20ProcessBuilder.java
/**
* Approved for Public Release: 10-4800. Distribution Unlimited.
* Copyright 2014 The MITRE Corporation,
* Licensed under the Apache License,
* Version 2.0 (the "License");
*
* You may not use this f... |
mosermw/nifi | nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster-web/src/main/java/org/apache/nifi/cluster/context/ClusterContext.java | <gh_stars>0
/*
* 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... |
JayMonari/java-personal | java-spring-blog/src/main/java/xyz/blog/thejaysics/service/AuthService.java | <gh_stars>0
package xyz.blog.thejaysics.service;
import java.util.Optional;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframew... |
wolfman199311/laravel_react.js | admin/src/pages/apps/Ecommerce/Checkout/Shipping.js | // flow
import React from 'react';
import { Row, Col, Button } from 'reactstrap';
import { AvForm, AvField } from 'availity-reactstrap-validation';
import { Link } from 'react-router-dom';
import Select from 'react-select';
import MaskedInput from 'react-text-mask';
import { countries } from './Data';
// Shipping
con... |
VGTsome/smartStorage | server/api/v1/smartStorageOrder.go | package v1
import (
"fmt"
"gin-vue-admin/global/response"
"gin-vue-admin/model"
"gin-vue-admin/model/request"
resp "gin-vue-admin/model/response"
"gin-vue-admin/service"
"strconv"
"github.com/gin-gonic/gin"
)
// @Tags SmartStorageOrder
// @Summary 创建SmartStorageOrder
// @Security ApiKeyAuth
// @accept applic... |
mail-suny-qq-com/Pncs-Server | pncs-smartbi/src/main/java/com/pactera/smartbi/sync/service/ISmartbiRoleService.java | <gh_stars>1-10
package com.pactera.smartbi.sync.service;
import com.pactera.core.base.service.IBaseService;
import com.pactera.core.message.Message;
import com.pactera.smartbi.sync.model.SmartbiRole;
/**
* 指标分类服务接口
*
* @author Suny
* @date 2020-04-01
*/
public interface ISmartbiRoleService extends IBaseService<S... |
jstastny-cz/appformer | uberfire-experimental/uberfire-experimental-client/src/test/java/org/uberfire/experimental/client/test/TestExperimentalFeatureDefRegistry.java | <reponame>jstastny-cz/appformer<filename>uberfire-experimental/uberfire-experimental-client/src/test/java/org/uberfire/experimental/client/test/TestExperimentalFeatureDefRegistry.java
/*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... |
smartdong/YXDExtension | YXDExtensionDemo/YXDExtensionDemo/YXDExtension/YXDFunctionExtension/YXDCache/YXDCache.h | <gh_stars>1-10
//
// YXDCache.h
// YXDExtensionDemo
//
// Copyright © 2015年 YangXudong. All rights reserved.
//
#import "YYCache.h"
@interface YXDCache : YYCache
@end
|
mukul1987/incubator-ratis | ratis-common/src/main/java/org/apache/ratis/datastream/DataStreamType.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 ... |
YanaPIIDXer/YanaPServer | docs/html/search/files_7.js | <reponame>YanaPIIDXer/YanaPServer
var searchData=
[
['packet_2eh',['Packet.h',['../_packet_8h.html',1,'']]],
['packetheader_2ecpp',['PacketHeader.cpp',['../_packet_header_8cpp.html',1,'']]],
['packetheader_2eh',['PacketHeader.h',['../_packet_header_8h.html',1,'']]],
['packetserializer_2ecpp',['PacketSerializer.... |
FirstLoveLife/Rider-Faiz | test/unique_ptr/hash/1.cc | <reponame>FirstLoveLife/Rider-Faiz
// { dg-do run { target c++11 } }
// 2010-06-11 <NAME> <<EMAIL>>
// Copyright (C) 2010-2018 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU ... |
UQ-RCC/qldarch-backend | src/net/qldarch/architect/WsArchitects.java | package net.qldarch.architect;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import net.qldarch.WsBase;
import net.qldarch.archobj.ArchObj;
import net.qldarch.db.Db;
import net.qldarch.db.Rsc;
import net.qldarch.... |
koders/cookster-backend | src/main/java/lv/cookster/rest/MeasurementService.java | package lv.cookster.rest;
import lv.cookster.entity.Measurement;
import javax.persistence.Query;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;
/**
* Created by Rihards on 11.01.2015
*/
@Path("/measurements")
public class Meas... |
stbly/gemp-swccg-public | gemp-swccg-logic/src/main/java/com/gempukku/swccgo/logic/modifiers/UsePoliticsForPowerModifier.java | package com.gempukku.swccgo.logic.modifiers;
import com.gempukku.swccgo.common.Filterable;
import com.gempukku.swccgo.game.PhysicalCard;
import com.gempukku.swccgo.logic.conditions.Condition;
/**
* A modifier that causes affected cards to use politics instead to determine power.
*/
public class UsePoliticsForPowerM... |
AnilKumarBejjanki/drools | kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/events/DecisionTableRulesMatchedEvent.java | /*
* Copyright 2016 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... |
uguraba/SI | si-modules/LWM2M_IPE_Server/leshan-server-core/src/main/java/org/eclipse/leshan/server/impl/SecurityRegistryImpl.java | /*******************************************************************************
* Copyright (c) 2013-2015 Sierra Wireless and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.... |
aspose-tasks/Aspose.Tasks-for-C | Examples/CPP/WorkingWithTaskLinks/GetPredecessorSuccessorTasks.cpp | <filename>Examples/CPP/WorkingWithTaskLinks/GetPredecessorSuccessorTasks.cpp
#include "GetPredecessorSuccessorTasks.h"
#include <Tsk.h>
#include <TaskLinkCollection.h>
#include <TaskLink.h>
#include <Task.h>
#include <system/type_info.h>
#include <system/string.h>
#include <system/shared_ptr.h>
#include <system/reflec... |
justinbarry/augur-copy | src/modules/reports/reducers/has-loaded-reports.js | import { UPDATE_HAS_LOADED_REPORTS, UPDATE_HAS_LOADED_MARKETS_TO_REPORT_ON } from 'modules/reports/actions/update-has-loaded-reports'
import { RESET_STATE } from 'modules/app/actions/reset-state'
const DEFAULT_STATE = { reports: false, marketsToReportOn: false }
export default function (hasLoadedReports = DEFAULT_STA... |
jameshfisher/rollup | test/chunking-form/samples/minify-internal-exports/_expected/es/generated-shared2.js | const shared1 = 'shared1';
const foo = 'foo1';
var shared2 = 'shared2';
const foo$1 = 'foo2';
export { shared2 as a, foo$1 as b, foo as f, shared1 as s };
|
avineshpvs/vldb2018-sherlock | ukpsummarizer-be/cplex/cpoptimizer/examples/src/java/Color.java | <reponame>avineshpvs/vldb2018-sherlock
// ---------------------------------------------------------------*- Java -*-
// File: ./examples/src/java/Color.java
// --------------------------------------------------------------------------
// Licensed Materials - Property of IBM
//
// 5724-Y48 5724-Y49 5724-Y54 5724-Y55 572... |
jchlanda/oneAPI-DirectProgramming | qtclustering-dpct/libdata.h | <filename>qtclustering-dpct/libdata.h
#ifndef _LIBDATA_H_
#define _LIBDATA_H_
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
float *generate_synthetic_data(float **rslt_mtrx, int **indr_mtrx, int *max_degree, float threshold, int N, int type);
#endif
|
jeffalder/newrelic-java-agent | newrelic-agent/src/main/java/com/newrelic/agent/profile/v2/TransactionProfileSessionImpl.java | <gh_stars>100-1000
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.profile.v2;
import java.io.IOException;
import java.io.Writer;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
... |
itsMatoosh/UnderNet-Android | shared/src/main/java/me/matoosh/undernet/p2p/router/data/message/tunnel/MessageTunnelState.java | package me.matoosh.undernet.p2p.router.data.message.tunnel;
/**
* Represents the state of a message tunnel.
*/
public enum MessageTunnelState {
NOT_ESTABLISHED, //The message tunnel hasn't been established yet (just an empty tunnel object)
ESTABLISHING, //The message tunnel is currently being established.
... |
vinooganesh/concourse | concourse-driver-java/src/main/java/com/cinchapi/concourse/util/Collections.java | <reponame>vinooganesh/concourse
/*
* Copyright (c) 2013-2021 Cinchapi 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 r... |
liuzyw/study-hello | study-util/src/main/java/com/study/util/sort/offer/FindSequence.java | package com.study.util.sort.offer;
/**
* Created on 2018-11-01
*
* @author liuzhaoyuan
*/
public class FindSequence {
public static void main(String[] args) {
find(15);
}
private static void find(int num) {
if ((num & 1) == 0) {
return;
}
int mid = num >>>... |
wangsenyuan/learn-go | src/codeforces/problems/set0/set004/d/solution.go | package main
import (
"bufio"
"bytes"
"fmt"
"os"
"sort"
)
func main() {
reader := bufio.NewReader(os.Stdin)
n, w, h := readThreeNums(reader)
envs := make([][]int, n)
for i := 0; i < n; i++ {
envs[i] = readNNums(reader, 2)
}
res := solve(n, w, h, envs)
var buf bytes.Buffer
buf.WriteString(fmt.Sprintf... |
ludwigfrank/site | src/theme/index.js | <reponame>ludwigfrank/site
import mapValues from 'lodash/mapValues'
import color from './color'
import React from 'react'
import typography from './typography'
import animation from './animation'
import spacing, { space, breakpoints } from './spacing'
import shadow from './shadow'
import { THEME_ACTIVE, THEME_DARK } fr... |
enthought/etsproxy | enthought/traits/ui/context_value.py | <filename>enthought/traits/ui/context_value.py
# proxy module
from traitsui.context_value import *
|
One-E2-Team/ISA | isabackend/src/main/java/rs/ac/uns/ftn/isa/onee2team/isabackend/repository/IWarehouseRepository.java | <filename>isabackend/src/main/java/rs/ac/uns/ftn/isa/onee2team/isabackend/repository/IWarehouseRepository.java
package rs.ac.uns.ftn.isa.onee2team.isabackend.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import or... |
MyNameIsYesgo/fivem | code/components/gta-net-five/src/ObjectIdManager.cpp | #include <StdInc.h>
#include <Hooking.h>
#include <NetBuffer.h>
#include <NetLibrary.h>
#include <GameInit.h>
#include <ICoreGameInit.h>
#include <nutsnbolts.h>
#include <CloneManager.h>
#include <MinHook.h>
static std::list<int> g_objectIds;
static std::set<int> g_usedObjectIds;
static std::set<int> g_stolenObjec... |
stnguyen90/buffalo-cli | cli/internal/plugins/pop/test/tester.go | <gh_stars>0
package test
import (
"bytes"
"context"
"io"
"io/ioutil"
"os"
"path/filepath"
"github.com/gobuffalo/buffalo-cli/v2/cli/cmds/test"
"github.com/gobuffalo/plugins"
"github.com/gobuffalo/pop/v5"
)
var _ plugins.Plugin = &Tester{}
var _ test.Argumenter = &Tester{}
var _ test.BeforeTester = &Tester{}
... |
TheCodeTherapy/mgzthree | examples/js/helpers/RectAreaLightHelper.js | <filename>examples/js/helpers/RectAreaLightHelper.js
/**
* Generated from 'examples/jsm/helpers/RectAreaLightHelper.js'
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('three')) :
typeof define === 'function' && define.amd ? define(['exports'... |
gitter-badger/FlexNeuART | scripts/misc/sample_queries.py | <filename>scripts/misc/sample_queries.py
#!/usr/bin/env python
#
# Copyright 2014+ Carnegie Mellon University
#
# 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/li... |
victor-gil-sepulveda/pyProCT | pyproct/clustering/evaluation/metrics/test/TestDaviesBouldin.py | """
Created on 12/06/2013
@author: victor
"""
import unittest
from pyproct.clustering.clustering import Clustering
from pyRMSD.condensedMatrix import CondensedMatrix
from pyproct.clustering.cluster import Cluster
import numpy
from pyproct.clustering.evaluation.metrics.test.data import squared_CH_table1
from pyproct.cl... |
digitalinteraction/openmovement | Firmware/WeighAX/Firmware/Common/Graphics/Display controller SSD1306.c | <reponame>digitalinteraction/openmovement
// Display driver for controller SSD1306 (similar to 1308)
// Written in a new format which will be used to control all page orientated displays in future
// <NAME> 08-12-11
#include "Compiler.h"
#include "GenericTypeDefs.h"
#include "TimeDelay.h"
#include "HardwareProfil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.