repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
lechium/tvOS135Headers | System/Library/PrivateFrameworks/HomeKitDaemon.framework/HMDNetworkRouterFirewallRuleManagerBackingStoreCloudAccessoryModel.h | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, June 7, 2020 at 11:41:16 AM Mountain Standard Time
* Operating System: Version 13.4.5 (Build 17L562)
* Image Source: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by... |
onlyShadow/oa | src/main/java/com/clearnight/oa/sftp/dao/ISftpDao.java | package com.clearnight.oa.sftp.dao;
import java.util.List;
import java.util.Map;
import com.clearnight.oa.sftp.bean.Sftp;
public interface ISftpDao {
/**
* 添加sftp服务器
* @param sftp sftp服务器对象
*/
public void saveSftp(Sftp sftp);
/**
* 修改sftp服务器
* @param sftp sftp服务器对象
*/
public void update(Sftp sftp... |
CSS-Lletya/open633 | #633 - Server/src/com/rs/game/player/controllers/BorkControler.java | package com.rs.game.player.controllers;
import com.rs.game.Entity;
import com.rs.game.ForceTalk;
import com.rs.game.World;
import com.rs.game.WorldTile;
import com.rs.game.npc.NPC;
import com.rs.game.player.Player;
import com.rs.game.player.content.Magic;
public class BorkControler extends Controller {
public st... |
Caisin/hope | apps/admin/internal/data/sys_post.go | <reponame>Caisin/hope<filename>apps/admin/internal/data/sys_post.go
package data
import (
"context"
"github.com/go-kratos/kratos/v2/log"
v1 "hope/api/admin/syspost/v1"
"hope/apps/admin/internal/biz"
"hope/apps/admin/internal/data/ent"
"hope/apps/admin/internal/data/ent/predicate"
"hope/apps/admin/internal/data/... |
ameizi/elasticsearch | plugins/curiosity/_site/js/layout/services/layoutFactory.js | Curiosity.factory('layout', function($rootScope, context, moduleManager){
var layoutObj = {};
layoutObj.info = {};
layoutObj.info.workspaces = [];
layoutObj.info.currentWorkspace = {};
layoutObj.info.idx = 0;
layoutObj.info.turn = false;
layoutObj.init = function () {
context.registerModule("layout", layou... |
fdibernardo/PlusPrivacy | clients/android/PlusPrivacy/app/src/main/java/eu/operando/feedback/repository/FeedbackRepository.java | package eu.operando.feedback.repository;
import java.util.List;
import eu.operando.feedback.entity.DataStoreType;
import eu.operando.feedback.entity.FeedbackQuestionEntity;
import eu.operando.feedback.entity.FeedbackQuestionListEntity;
import eu.operando.feedback.entity.FeedbackSubmitEntitty;
/**
* Created by Matei... |
Sable/mclab-parser | src/Matlab/Recognizer/ChainOperator.java | <gh_stars>1-10
package Matlab.Recognizer;
enum ChainOperator
{
None,
Start,
Parenthesis,
CurlyBrace,
DotName,
DotExpression,
AtBase;
}
|
matthemsteger/df-companion | src/app/redux/modules/sharedSelectors/installs_generatedWorlds.js | import R from 'ramda';
import {createSelector} from './../../selectorUtilities';
import {selectGeneratedWorlds, selectPendingGeneratedWorlds, selectErroredGeneratedWorlds} from './../generatedWorlds';
import {selectActiveInstallId} from './../dwarfFortressInstalls';
const activeInstallFilter = (activeInstallId, worlds... |
jamhocken/aoc-2020 | day01/python/bk/solution.py | <reponame>jamhocken/aoc-2020
#!/usr/bin/env python3
# tag::starOne[]
def searchAnswer(Lines, startFromLine, searchedAmount):
currentLine = startFromLine
found = False
secondSummand=int(Lines[startFromLine])
while currentLine < len(Lines)+1:
firstSummand = int(Lines[currentLine-1])
curre... |
phpsystems/Gaffer | src/main/java/gaffer/accumulo/retrievers/impl/GraphElementWithStatisticsWithinSetRetriever.java | /**
* Copyright 2015 Crown Copyright
*
* 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... |
cristian-sulea/jatoo-ui | src/main/java/jatoo/ui/TextField.java | /*
* Copyright (C) <NAME> ( http://cristian.sulea.net )
*
* 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 requ... |
sosozhuang/rgw-client | core/src/main/java/io/ceph/rgw/client/exception/EmailExistsException.java | package io.ceph.rgw.client.exception;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.services.s3.model.S3Exception;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
* @author zhuangshuo
* Created by zhuangshuo ... |
johnny13/modV | src/modV-detectInstancesOf.js | <reponame>johnny13/modV<filename>src/modV-detectInstancesOf.js
module.exports = function(modV) {
modV.prototype.detectInstancesOf = function(name) {
let instances = [];
forIn(this.activeModules, key => {
let item = this.activeModules[key];
if(name === item.info.originalModuleName) {
instances.push(it... |
VUEngine/Capitan-Sevilla-3D | assets/images/Stages/Levels/Level1/Stage1/Building5/Converted/PlaygroundSignBlack.c | <reponame>VUEngine/Capitan-Sevilla-3D
//======================================================================
//
// PlaygroundSignBlack, 88x152@2,
// + 32 tiles (t|f reduced) not compressed
// + regular map (flat), not compressed, 11x19
// Total size: 512 + 420 = 932
//
// Exported by Cearn's GBA Image Transmogrifie... |
reidab/openconferenceware | spec/models/event_spec.rb | require File.dirname(__FILE__) + '/../spec_helper'
describe Event do
describe "when accepting proposals" do
fixtures :all
it "should accept proposals for future" do
events(:closed).accepting_proposals?.should be_false
end
it "should not accept proposals for past" do
events(:open).accept... |
TrustedBSD/sebsd | contrib/sebsd/libsemanage/src/users_policy.c | /* Copyright (C) 2005 Red Hat, Inc. */
struct semanage_user;
struct semanage_user_key;
typedef struct semanage_user_key record_key_t;
typedef struct semanage_user record_t;
#define DBASE_RECORD_DEFINED
#include "user_internal.h"
#include "handle.h"
#include "database.h"
int semanage_user_query(semanage_handle_t * ha... |
ps-george/Robotics-EIE3 | assignment_1/demo.py | <reponame>ps-george/Robotics-EIE3
import threading
import time
from src.robot import Robot
import brickpi
#Initialize the interface
interface=brickpi.Interface()
interface.initialize()
Robot = Robot(interface, pid_config_file="carpet_config.json")
Robot.travel_straight(40)
time.sleep(5)
Robot.travel_straight(-40)
ti... |
JimZhangSpace/BookReader | folioreader/src/main/java/com/folioreader/model/EditNoteEvent.java | package com.folioreader.model;
public class EditNoteEvent {
public HighlightImpl highLight;
public HighLight.HighLightAction type;
}
|
mtanti/deeplearningtutorial | tensorflow_v1/01_-_Introduction_to_Tensorflow/03_-_Tensor_expressions.py | import warnings
warnings.filterwarnings('ignore')
import tensorflow as tf
tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.ERROR)
g = tf.Graph()
with g.as_default():
a = tf.placeholder(tf.float32, [3], 'a') #Float vector of size 3 named 'a'.
one = tf.constant(1, tf.float32, [])
two = tf.constant(2,... |
iMokhles/MyTheosHeaders | include/Preferences/PSViewController.h | /**
* This header is generated by class-dump-z 0.1-11s.
* class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3.
*
* Source: /System/Library/PrivateFrameworks/Preferences.framework/Preferences
*/
#import <Foundation/NSObject.h>
#import "Preferences-Structs.h"
#import "PSBaseView.h"
@class PSRootCo... |
sho25/karaf | services/staticcm/src/main/java/org/apache/karaf/services/staticcm/Activator.java | <reponame>sho25/karaf
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright owners... |
Aodacat6/my-shop-server | shop-server-api/src/main/generated/com/onlythinking/shop/model/OtUserLogin.java | <reponame>Aodacat6/my-shop-server<gh_stars>10-100
package com.onlythinking.shop.model;
import com.onlythinking.commons.core.interceptor.CreatedTime;
import com.onlythinking.commons.core.interceptor.LastModifiedTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.... |
haizhenhan/Kepler | kernel/2.6.32/drivers/zorro/zorro.c | /*
* Zorro Bus Services
*
* Copyright (C) 1995-2003 <NAME>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for more details.
*/
#include <linux/module.h>
#include <linux/types.h>
#include <lin... |
knobik/guark | cmd/guark/utils/utils.go | <filename>cmd/guark/utils/utils.go
// Copyright 2020 <NAME>. All rights reserved.
// Use of this source code is governed by a MIT license.
package utils
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/guark/guark/utils"
"github.com/urfav... |
sopraf20-group09/frantic-server | src/test/java/ch/uzh/ifi/seal/soprafs20/entity/actions/GiftActionTest.java | <gh_stars>10-100
package ch.uzh.ifi.seal.soprafs20.entity.actions;
import ch.uzh.ifi.seal.soprafs20.constant.Color;
import ch.uzh.ifi.seal.soprafs20.constant.Type;
import ch.uzh.ifi.seal.soprafs20.constant.Value;
import ch.uzh.ifi.seal.soprafs20.entity.Card;
import ch.uzh.ifi.seal.soprafs20.entity.Chat;
import ch.uzh.... |
arthurpicht/meta | src/test/java/de/arthurpicht/meta/config/GeneralConfigTest.java | package de.arthurpicht.meta.config;
import de.arthurpicht.configuration.Configuration;
import de.arthurpicht.configuration.ConfigurationFactory;
import de.arthurpicht.configuration.ConfigurationFileNotFoundException;
import de.arthurpicht.meta.cli.target.Target;
import de.arthurpicht.meta.cli.target.Targets;
import de... |
AbdulConsole/Hacktoberfest2019-2 | Python/phone_email_finder.py | #Finding phone number and email in a string using REGEX
import pyperclip
import re
phoneregex = re.compile(r'''(
(\d{3}|(\d{3}\))?
(\s|-|\.)?
(\d{3})
(\s|-|\.)
(\d{4})
(\s*(ext|x|ext.)\s*(\d{2,5}))?
)''', re.VERBOSE)
emailregex = re.compile(r'''(
[a-zA-Z0-9._%+-]+
@+
[a-zA-Z0-9.-]+
[\.[a-zA-Z]{... |
lechium/tvOS142Headers | System/Library/PrivateFrameworks/VideoSubscriberAccountUI.framework/VSCredentialEntryPickerItem.h | <filename>System/Library/PrivateFrameworks/VideoSubscriberAccountUI.framework/VSCredentialEntryPickerItem.h
/*
* This header is generated by classdump-dyld 1.5
* on Tuesday, November 10, 2020 at 10:18:40 PM Mountain Standard Time
* Operating System: V... |
T1mzhou/LeetCode | code/114.flatten.cpp | <reponame>T1mzhou/LeetCode
class Solution {
public:
void flatten(TreeNode* root) {
if (root == nullptr) return;
flatten(root->left);
flatten(root->right);
if (nullptr == root->left) return;
TreeNode *p = root->left;
while(p->right) p = p->right;
p->right = ... |
prezi/spaghetti | spaghetti-core/src/main/java/com/prezi/spaghetti/ast/internal/VoidTypeReferenceInternal.java | package com.prezi.spaghetti.ast.internal;
import com.prezi.spaghetti.ast.VoidTypeReference;
public interface VoidTypeReferenceInternal extends VoidTypeReference, TypeReferenceInternal {
public static final VoidTypeReferenceInternal VOID = new DefaultVoidTypeReference(DefaultLocation.INTERNAL, 0);
}
|
TencentCloud/tencentcloud-sdk-java-intl-en | src/main/java/com/tencentcloudapi/mongodb/v20190725/models/SpecItem.java | <reponame>TencentCloud/tencentcloud-sdk-java-intl-en
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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... |
sharon1321/studio | va-server/visual-analytics/lib/error-handler.js | <reponame>sharon1321/studio
var log4js = require('log4js');
const ERRORCODES = {
NotCreateProject: 'You can not create more than 10 projects.',
NotCreateModel: 'You can not create more than 10 models in a project.',
NotCreateTemplate: 'You can not create more than 20 template in a library.',
AlreadyExi... |
labcodes/labstorybook | labsystem/src/Card/OutlineFilledCard.js | import React from "react";
import PropTypes from "prop-types";
import { CardContext } from "./contexts";
export default class OutlineFilledCard extends React.Component {
static propTypes = {
/** Components that will be rendered in the Outline Filled Card (CardImage, CardHeader, CardAction, etc.) */
children... |
isabelle-dr/gtfs-validator | core/src/main/java/org/mobilitydata/gtfsvalidator/notice/InvalidEmailNotice.java | <filename>core/src/main/java/org/mobilitydata/gtfsvalidator/notice/InvalidEmailNotice.java
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... |
Mrokkk/kernel | kernel/Cpu/StackFrame.cpp | #include "StackFrame.hpp"
#include "Segment.hpp"
namespace cpu
{
uint32_t StackFrame::clone(
const cpu::StackFrame& oldFrame,
uint32_t kernelStack,
uint32_t userStack)
{
auto offset = oldFrame.cs == cpu::Segment::UserCs
? sizeof(cpu::StackFrame)
: sizeof(cpu::StackFrame) - 2 * sizeof(u... |
paige-ingram/nwhacks2022 | node_modules/@fluentui/react-northstar/dist/dts/test/specs/components/Datepicker/navigateToNewDate-test.js | <filename>node_modules/@fluentui/react-northstar/dist/dts/test/specs/components/Datepicker/navigateToNewDate-test.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var date_time_utilities_1 = require("../../../../src/utils/date-time-utilities");
var navigateToNewDate_1 = require("../../../... |
Zenix27/data-structure-and-algorithms | leetcode/binary-search/search-a-2d-matrix.py | <reponame>Zenix27/data-structure-and-algorithms
'''
## Questions
### 74. [Search a 2D Matrix](https://leetcode.com/problems/search-a-2d-matrix/)
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The... |
Foltik/Shrimpa | app/models/Invite.js | var mongoose = require('mongoose');
var InviteSchema = mongoose.Schema({
code: {
type: String,
unique: true,
required: true
},
scope: {
type: [String],
required: true
},
issuer: {
type: String,
required: true
},
recipient: {
... |
KaranKaira/Questions-Algorithms | BackTracking/CombinationSum1.cpp | <filename>BackTracking/CombinationSum1.cpp
#include <bits/stdc++.h>
using namespace std;
void Util(vector<int> a,int cur_sum,vector<vector<int>>&res,vector<int> now,int i)
{
if(cur_sum<0) return ;
if(cur_sum == 0)
{
res.push_back(now);
return ;
}
while(i<a.size() && cur_sum - a[... |
lofunz/mieme | Reloaded/tags/MAME4droid.Reloaded.1.0.WIP/src/mame/includes/pgm.h | /*----------- defined in drivers/pgm.c -----------*/
extern UINT16 *pgm_mainram, *pgm_bg_videoram, *pgm_tx_videoram, *pgm_videoregs, *pgm_rowscrollram;
extern UINT8 *pgm_sprite_a_region;
extern size_t pgm_sprite_a_region_allocate;
/*----------- defined in machine/pgmcrypt.c -----------*/
void pgm_kov_decrypt(runn... |
swils/verifast | examples/preprocessor/mixed_macros.c | #define FOUR 4
#define FIVE 5
/*@
#define MACRO FOUR
@*/
void test0()
//@ requires true;
//@ ensures true;
{
int MACRO = 0;
int number2 = 4;
//@ assert number2 == MACRO;
}
/*@
#undef MACRO
@*/
#define MACRO FIVE
void test1()
//@ requires true;
//@ ensures true;
{
int num = MACRO;
//@ assert num == MACR... |
leegoonz/Maya-devkit | osx/devkit/plug-ins/hwApiTextureTest/hwApiTextureTestStrings.cpp | <reponame>leegoonz/Maya-devkit<filename>osx/devkit/plug-ins/hwApiTextureTest/hwApiTextureTestStrings.cpp
#include "hwApiTextureTestStrings.h"
#include <maya/MStringResource.h>
#include <maya/MString.h>
namespace hwApiTextureTestStrings
{
#define kPluginId "hwApiTextureTest"
// Common
const MStringResourceId kErr... |
d2rq/r2rml-kit | src/test/java/org/d2rq/lang/D2RQValidatorTest.java | package org.d2rq.lang;
import static org.junit.Assert.*;
import org.d2rq.D2RQException;
import org.d2rq.lang.ClassMap;
import org.d2rq.lang.D2RQValidator;
import org.d2rq.lang.Database;
import org.d2rq.lang.Mapping;
import org.junit.Before;
import org.junit.Test;
import com.hp.hpl.jena.rdf.model.Resource;
import com... |
harfol/harthb | common/transport/mqtt/src/main/java/org/thingsboard/server/transport/mqtt/util/EqualsTopicFilter.java | <gh_stars>1-10
package org.thingsboard.server.transport.mqtt.util;
import lombok.Data;
@Data
public class EqualsTopicFilter implements MqttTopicFilter {
private final String filter;
@Override
public boolean filter(String topic) {
return filter.equals(topic);
}
}
|
andrevka/james-project | server/blob/blob-cassandra/src/main/java/org/apache/james/blob/cassandra/CassandraDefaultBucketDAO.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 l... |
shuart/ephemeris | src/js/components/comp.stateDia.js | var test={
items:[
{uuid:"fefsfse", name:"Ajouter des besoins"},
{uuid:"555sfse", name:"Un besoin dépendant du précédent"},
{uuid:"444sfse", name:"Un autre besoin dépendant du précédent"},
{uuid:"789sfse", name:"Encore un besoin dépendant du précédent"},
{uuid:"999sfse", name:"Un sous sous besoin"... |
fengzhongye/pxview | src/common/helpers/i18n.js | <filename>src/common/helpers/i18n.js
import LocalizedStrings from 'react-native-localization';
import strings from '../constants/strings';
const i18n = new LocalizedStrings(strings);
export default i18n;
|
siweilxy/openjdkstudy | src/demo/share/java2d/J2DBench/src/j2dbench/tests/text/TextTests.java | <gh_stars>10-100
/*
* Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above co... |
sjj3086786/aliyun-openapi-java-sdk | aliyun-java-sdk-emr/src/main/java/com/aliyuncs/emr/model/v20160408/QueryAlarmRulesResponse.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
NetFoundry/ziti-sdk-golang | ziti/edge/impl/factory.go | /*
Copyright 2019 NetFoundry, 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... |
JigarJoshi/openapi-generator | samples/server/petstore/java-vertx-web/src/main/java/org/openapitools/vertxweb/server/api/StoreApiHandler.java | package org.openapitools.vertxweb.server.api;
import org.openapitools.vertxweb.server.model.Order;
import com.fasterxml.jackson.core.type.TypeReference;
import io.vertx.core.json.jackson.DatabindCodec;
import io.vertx.ext.web.openapi.RouterBuilder;
import io.vertx.ext.web.validation.RequestParameters;
import io.vertx... |
eugeneilyin/mdi-norm | es/SharpPictureInPicture.js | <filename>es/SharpPictureInPicture.js<gh_stars>1-10
import React from 'react';
import { Icon } from './Icon';
export var SharpPictureInPicture =
/*#__PURE__*/
function SharpPictureInPicture(props) {
return React.createElement(Icon, props, React.createElement("path", {
d: "M19 7h-8v6h8zm4-4H1v17.98h22zm-2 16.01H3V... |
bluzioo/GoingMerry | gm-incubator/design-pattern/src/main/java/demo/design/proxy/HelloProxy.java | <filename>gm-incubator/design-pattern/src/main/java/demo/design/proxy/HelloProxy.java
package demo.design.proxy;
/**
* 静态代理
*/
public class HelloProxy implements Hello {
private Hello hello;
HelloProxy() {
this.hello = new HelloImpl();
}
@Override
public void say(String name) {
... |
ravi013/maqetta | maqetta.core.client/WebContent/davinci/ui/ThemeSetsDialog.js | <filename>maqetta.core.client/WebContent/davinci/ui/ThemeSetsDialog.js
define(["dojo/_base/declare",
"davinci/ui/Dialog",
"dijit/_Widget",
"dijit/_Templated",
"davinci/workbench/Preferences",
"davinci/Workbench",
"davinci/library",
"dojo/text!./templates/ThemeSetsDialog.h... |
MatfOOP-I/primeri-knjiga-eckel-tij | src/p04/Overloading.java | package p04;
//: c04:Overloading.java
// Demonstration of both constructor
// and ordinary method overloading.
// From 'Thinking in Java, 3rd ed.' (c) <NAME> 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
import com.bruceeckel.simpletest.*;
import java.util.*;
class Tree {
int height;
Tree() {
... |
lechium/tvOS130Headers | System/Library/Frameworks/TVServices.framework/TVSWiFiNetworkConnectionOperation.h | <gh_stars>10-100
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 2:50:57 AM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /System/Library/Frameworks/TVServices.framework/TVServices
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2... |
geewit/gw-oltu | jose/jwe/src/main/java/io/geewit/oltu/jose/jwe/encryption/KeyEncryptMethod.java | package io.geewit.oltu.jose.jwe.encryption;
import io.geewit.oltu.jose.jwe.ContentEncryptionKey;
/**
* Common definition of OAuth key encryption method algorithm.
*
* @param <EK> the {@link EncryptingKey} type.
* @param <DK> the {@link DecryptingKey} type.
*/
public interface KeyEncryptMethod<EK extends Encrypti... |
strager/PhotonBox | PhotonBox/include/PhotonBox/core/system/SceneManager.h | <gh_stars>0
#ifndef SCENE_MANAGER_H
#define SCENE_MANAGER_H
class Scene;
#include <map>
#include "PhotonBox/resource/Scene.h"
#include "PhotonBox/core/ISystem.h"
class SceneManager : public ISystem
{
public:
static void addScene(const std::string name, Scene* scene);
static void loadScene(const std::string &name)... |
fourierjoe/ql-wt | micro-webs/web-surety/src/main/java/yhao/micro/web/surety/controller/security/open/OpenFileController.java | package yhao.micro.web.surety.controller.security.open;
import io.swagger.annotations.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import yhao.inf... |
Qualia91/goLearning | distributedsystems/main.go | /*Notes
4 of the characteristics
1) Service discovery
2) Load balancing
3) Distributed tracing and logging
4) Service monitoring
Types of DS:
1) Hub and Spoke (Centralized):
Hub sets up coordination and spoke interaction is done through hub
Good for load balancing and centralized tracing and logging
Bad for single... |
HESUPING/JmeshBLE-StaticLib | trunk/plf/bx2401/src/sys_integration/pin_share/pin_share.h | <filename>trunk/plf/bx2401/src/sys_integration/pin_share/pin_share.h<gh_stars>0
#ifndef PIN_SHARE_H_
#define PIN_SHARE_H_
#include <stdint.h>
#define FUNC_IO_0 0
#define FUNC_IO_1 1
#define FUNC_IO_2 2
#define FUNC_IO_3 3
#define FUNC_IO_4 4
#define FUNC_IO_5 5
#define FUNC_IO_6 6
#define FU... |
javawebers/yt-mybatis | src/main/java/com/github/yt/mybatis/dialect/impl/PostgresDialect.java | package com.github.yt.mybatis.dialect.impl;
import com.github.yt.mybatis.dialect.BaseDialect;
import com.github.yt.mybatis.query.QueryLikeType;
import com.github.yt.mybatis.util.EntityUtils;
import java.lang.reflect.Field;
/**
* Postgres 实现
*
* @author sheng
*/
public class PostgresDialect extends BaseDialect {
... |
zhangkn/iOS14Header | System/Library/PrivateFrameworks/GameCenterUI.framework/AKAppleIDAuthenticationDelegate.h | <gh_stars>1-10
/*
* This header is generated by classdump-dyld 1.0
* on Monday, September 28, 2020 at 5:55:15 PM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrame... |
DxChainNetwork/godx | storage/storageclient/storagehostmanager/interaction_test.go | <gh_stars>10-100
// Copyright 2019 DxChain, All rights reserved.
// Use of this source code is governed by an Apache
// License 2.0 that can be found in the LICENSE file.
package storagehostmanager
import (
"testing"
"time"
"github.com/DxChainNetwork/godx/p2p/enode"
"github.com/DxChainNetwork/godx/storage"
"git... |
franklongford/ImageCol | pyfibre/model/objects/tests/test_fibre.py | <gh_stars>1-10
from unittest import TestCase
import numpy as np
import pandas as pd
from pyfibre.model.objects.fibre import (
Fibre
)
from pyfibre.model.tools.metrics import FIBRE_METRICS
from pyfibre.tests.probe_classes.objects import ProbeFibre
class TestFibre(TestCase):
def setUp(self):
self.fi... |
lyonghwan/siemens-s7-plc | node_modules/iso-on-tcp/test/parser.spec.js | <reponame>lyonghwan/siemens-s7-plc
//@ts-check
/*
Copyright: (c) 2018-2020, ST-One Ltda.
GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
*/
const {
expect
} = require('chai');
const ISOOnTCPParser = require('../src/parser.js');
const constants = require('../src/consta... |
lanka97/bightstar_enterprise | Login/BrightS/src/brightstar/loginRecord.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package brightstar;
public class loginRecord {
public String userName;
public String time;
public String date;
pu... |
jayrulez/NazaraEngine | src/Nazara/Shader/Ast/AstUtils.cpp | <gh_stars>0
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (<EMAIL>)
// This file is part of the "Nazara Engine - Shader module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Shader/Ast/AstUtils.hpp>
#include <cassert>
#include <Nazara/Shader/Debug.hpp>
namespace Nz::Sh... |
goodmind/FlowDefinitelyTyped | flow-types/types/async-busboy_vx.x.x/flow_v0.25.x-/async-busboy.js | declare module "async-busboy" {
import typeof * as fs from "fs";
import typeof * as http from "http";
declare type Options = {
onFile: (
fieldname: string,
file: NodeJS.ReadableStream,
filename: string,
encoding: string,
mimetype: string
) => void
} & busboy.BusboyConfig;... |
SavioRamon/search-github | src/servicos/api.js |
const BASE_API = "https://api.github.com/search";
const porPagina = 20;
// basicFetch faz uma requisição padrão e retorna os dados
const basicFetch = async (url) => await fetch(url).then(dados => dados.json());
export const apiRequisicoes = {
async getRepositorios(textoPesquisa, pagina=0){
const url =
... |
Neusoft-Technology-Solutions/aws-sdk-cpp | aws-cpp-sdk-guardduty/source/model/InstanceDetails.cpp | <gh_stars>1-10
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/guardduty/model/InstanceDetails.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
name... |
quandhz/react | fixtures/dom/src/components/fixtures/error-handling/index.js | import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
const React = window.React;
const ReactDOM = window.ReactDOM;
function BadRender(props) {
props.doThrow();
}
class ErrorBoundary extends React.Component {
static defaultProps = {
buttonText: 'Trigger error',
};
state = {
... |
Christiaanvdm/django-bims | bims/models/shapefile_upload_session.py | <filename>bims/models/shapefile_upload_session.py
# coding=utf-8
"""Shapefile upload session model definition.
"""
from django.conf import settings
from django.utils import timezone
from django.db import models
from bims.models.shapefile import Shapefile
class ShapefileUploadSession(models.Model):
"""Shapefile ... |
ichengplus/python1024 | code/any1024com/automate/008video_finger.py | <reponame>ichengplus/python1024
'''
手指舞
需要提前安装好paddlehub的ace2p人体部分分割识别模型:
* hub install ace2p
Author: 程一初
'''
# coding=utf-8
import pathlib
import time
import numpy as np
import cv2
from PIL import Image
from moviepy.editor import VideoFileClip
import paddlehub as hub
path = pathlib.Path(
'~/dev/python/python102... |
MatheusFortes7/Codigos-Fonte | u00 Nivelamento/c/argumentos_main.c | <filename>u00 Nivelamento/c/argumentos_main.c
#include <stdio.h>
#include <stdlib.h>
//=============================================================================
// EXEMPLO DE UTILIZAÇÃO DOS ARGUMENTOS PASSADOS PARA O MAIN
int main(int argc, char *argv[]){
int i;
for (i = 0; i < argc; i++)
prin... |
ekzemplaro/data_base_language | voltdb/groovy/update/voltdb_update.java | // --------------------------------------------------------------------
/*
voltdb_update.java
Jul/09/2011
*/
// --------------------------------------------------------------------
import org.voltdb.VoltTable;
import org.voltdb.VoltTableRow;
import org.voltdb.client.ClientFactory;
import org.voltdb.client.Clien... |
amvb/GUCEF | tools/ProjectGen/plugins/ProjectGenDependsFilter/src/ProjectGenDependsFilter_CDependsFilter.cpp | /*
* ProjectGenerator: Tool to generate module/project files
* Copyright (C) 2002 - 2011. <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.... |
colohr/bxy | web/modules.js | const π = Math.PI;
(async function DefineModules(environment, ...x){
if('modules' in environment) return define_modules(environment.modules);
return await (async ([exporter], asyncs, ...inputs)=>await define_modules(exporter, ...(await Promise.all(asyncs)).concat(inputs)))(x.splice(0, 1), (x = x.map(i=>i instanceof P... |
RegOpz/RegOpzWebApp | src/components/Authentication/Subscribe.js | <reponame>RegOpz/RegOpzWebApp<filename>src/components/Authentication/Subscribe.js
import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import { bindActionCreators, dispatch } from 'redux';
import { actionAddUser, actionFetchUsers } from '../../a... |
brightparagon/chat-test | src/actions/actionTypes.js | /*
Define Action Type
*/
export const GET_MESSAGE = 'GET_MESSAGE';
export const ADD_MESSAGE = 'ADD_MESSAGE';
export const ADD_MESSAGE_REQUEST = 'ADD_MESSAGE_REQUEST';
export const SIGNIN_USER = 'SIGNIN_USER';
export const SIGNOUT_USER = 'SIGNOUT_USER';
|
SRCH2/srch2-ngn | test/core/unit/ForwardIndex_Performance_Test.cpp | /*
* Copyright (c) 2016, SRCH2
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
lechium/tvOS145Headers | System/Library/PrivateFrameworks/AVConference.framework/VCRateControlMediaController.h | <reponame>lechium/tvOS145Headers
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:07:27 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Lib... |
uluyol/heyp-agents | heyp/proto/ndjson-logger.h | #ifndef HEYP_PROTO_NDJSON_LOGGER_H_
#define HEYP_PROTO_NDJSON_LOGGER_H_
#include <cstdio>
#include <memory>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "heyp/log/spdlog.h"
#include "heyp/proto/fileio.h"
namespace heyp {
class NdjsonLogger {
public:
explicit NdjsonLogger(int fd); /... |
jalanb/portals | portals/wwits/groups/service_action/wo_actual_travel/schemas.py | from marshmallow import fields, post_load
from portals.wwits.apis.rest import BaseSchemaExcludeFields as Schema
from .models import ParmModel, WOActualTravelModel
class ParmSchema(Schema):
Version = fields.Str()
UserID = fields.Str()
Env = fields.Str()
Source = fields.Str()
Session = fields.Intege... |
wahello/openshift-installer | terraform/azurerm/vendor/github.com/hashicorp/terraform-provider-azurerm/internal/services/databricks/sdk/2021-04-01-preview/workspaces/model_encryptionentitiesdefinition.go | package workspaces
type EncryptionEntitiesDefinition struct {
ManagedServices *EncryptionV2 `json:"managedServices,omitempty"`
}
|
ahfeel/thrift | lib/rb/spec/httpclient_spec.rb | require File.dirname(__FILE__) + '/spec_helper'
require 'thrift/transport/httpclient'
class ThriftHTTPClientSpec < Spec::ExampleGroup
include Thrift
describe HTTPClient do
before(:each) do
@client = HTTPClient.new("http://my.domain.com/path/to/service")
end
it "should always be open" do
@... |
raybbb/yutu | Widgets/FrmUserList/GroupItem.cpp | #include "GroupItem.h"
CGroupItem::CGroupItem(QString &text, QString &key)
{
setText(text);
m_szKey = key;
}
CGroupItem::~CGroupItem()
{
}
|
tmtsoftware/tcs-vslice | tcs-vslice-poc/src/main/java/tmt/tcs/common/BaseFollowActor.java | <gh_stars>0
package tmt.tcs.common;
import akka.actor.AbstractActor;
import javacsw.services.pkg.ILocationSubscriberClient;
/**
* This is base class for all Follow Actor classes
*
*/
public abstract class BaseFollowActor extends AbstractActor implements AssemblyStateClient, ILocationSubscriberClient {
private A... |
seanrl/fast-classpath-scanner | src/test/java/com/xyz/fig/shape/Shape.java | <filename>src/test/java/com/xyz/fig/shape/Shape.java<gh_stars>1-10
package com.xyz.fig.shape;
import com.xyz.fig.Renderable;
public interface Shape extends Renderable {
}
|
Hat-Kid/jak-project | game/sound/common/synth.cpp | // Copyright: 2021 - 2022, Ziemas
// SPDX-License-Identifier: ISC
#include "synth.h"
#include <stdexcept>
namespace snd {
static s16 ApplyVolume(s16 sample, s32 volume) {
return (sample * volume) >> 15;
}
s16_output synth::tick() {
s16_output out{};
m_voices.remove_if([](std::shared_ptr<voice>& v) { return v-... |
TaranBarber/check-api | app/models/relationship.rb | class Relationship < ActiveRecord::Base
include CheckElasticSearch
belongs_to :source, class_name: 'ProjectMedia'
belongs_to :target, class_name: 'ProjectMedia'
serialize :relationship_type
validate :relationship_type_is_valid
before_update { raise ActiveRecord::ReadOnlyRecord }
after_create :incremen... |
aymerick/kowa | server/events.go | package server
import (
"encoding/json"
"log"
"net/http"
"github.com/aymerick/kowa/models"
)
type eventJSON struct {
Event models.Event `json:"event"`
}
// GET /events?site={site_id}
// GET /sites/{site_id}/events
func (app *Application) handleGetEvents(rw http.ResponseWriter, req *http.Request) {
site := app... |
sirivus/studioonline | unused/mine/packages/JavaBlend-1.3.7-DNA-3.00.42/src/org/cakelab/jdoxml/api/IUserDefined.java | package org.cakelab.jdoxml.api;
// XXX: not sure if this is supposed to mean "user defined section"
public interface IUserDefined extends ISection
{
String header();
} |
vincenttran-msft/azure-sdk-for-python | sdk/keyvault/azure-keyvault-certificates/tests/_test_case.py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import os
from azure.keyvault.certificates import ApiVersion
from azure.keyvault.certificates._shared.client_base import DEFAULT_VERSION
from devtools_testutils import ... |
patrikPu/patrikp_rpg | src/components/LoadSave/LoadSave.js | <filename>src/components/LoadSave/LoadSave.js
import React, { useState, useEffect } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { resetState, loadState } from '../../redux/actions/loadActions'
import loadAllSaves from './loadAllSaves'
import assignProperIcons from './as... |
raymanfx/seraphim | src/apps/frontend/common/QImageProvider/QImageProvider.h | #ifndef QIMAGEPROVIDER_H
#define QIMAGEPROVIDER_H
#include <QImage>
#include <QObject>
#include <QQuickImageProvider>
#include <cstring>
class QImageProvider : public QObject, public QQuickImageProvider {
Q_OBJECT
public:
explicit QImageProvider(QObject *parent = nullptr);
QPixmap requestPixmap(const QSt... |
sekikn/tez | tez-api/src/test/java/org/apache/tez/common/security/TestDAGAccessControls.java | <filename>tez-api/src/test/java/org/apache/tez/common/security/TestDAGAccessControls.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 ... |
gv2011/bcasn | src/test/java/com/github/gv2011/asn1/EnumeratedTest.java | package com.github.gv2011.asn1;
/*-
* #%L
* Vinz ASN.1
* %%
* Copyright (C) 2016 - 2017 Vinz (https://github.com/gv2011)
* %%
* Please note this should be read in the same way as the MIT license. (https://www.bouncycastle.org/licence.html)
*
* Copyright (c) 2000-2015 The Legion of the Bouncy Castle ... |
oxctdev/EmbeddedSocial-Android-SDK | EmbeddedSocialClient/sdk/src/main/java/com/microsoft/embeddedsocial/ui/util/FieldNotEmptyValidator.java | <gh_stars>1-10
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/
package com.microsoft.embeddedsocial.ui.util;
import com.microsoft.embeddedsocial.sdk.R;
import com.microsoft.embeddedsocial.ui.view.TextInput;... |
CelestialAmber/tobutobugirl-dx | data/bg/select.h | <filename>data/bg/select.h
#ifndef SELECT_MAP_H
#define SELECT_MAP_H
#define select_data_length 21U
#define select_tiles_width 20U
#define select_tiles_height 18U
#define select_tiles_offset 13U
const unsigned char select_data[] = {
255, 0, 231, 0, 195, 0, 129, 0, 129, 0, 195, 0, 231, 0, 255, 0,
25... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.