repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
OttoWinter/esphomeyaml | esphome/components/ota/ota_backend_arduino_esp32.cpp | <gh_stars>100-1000
#include "esphome/core/defines.h"
#ifdef USE_ESP32_FRAMEWORK_ARDUINO
#include "ota_backend_arduino_esp32.h"
#include "ota_component.h"
#include "ota_backend.h"
#include <Update.h>
namespace esphome {
namespace ota {
OTAResponseTypes ArduinoESP32OTABackend::begin(size_t image_size) {
bool ret = ... |
lisongwang/java-core | src/main/java/com/lisong/learn/core/reusing/Exercise14.java | package com.lisong.learn.core.reusing;
import static com.lisong.learn.core.util.Print.print;
/**
* Show the composition and inheritance
*/
public class Exercise14 {
public static void main(String[] args) {
Car car = new Car();
car.engine.start();
car.engine.service();
car.left.... |
das-praktische-schreinerlein/mycms-commons | dist/search-commons/model/forms/generic-searchform.js | <gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var generic_validator_util_1 = require("./generic-validator.util");
var GenericSearchFormFieldConfig = /** @class */ (function () {
function GenericSearchFormFieldConfig(datatype, validator) {
this._datatype = datatype;... |
jukanntenn/Cpp-Primer-Plus-6th-exercises | Chapter14/Exercise4/personmi.h | #ifndef PERSONMI_H_
#define PERSONMI_H_
#include <string>
using std::string;
class Person
{
private:
string first_name;
string last_name;
protected:
virtual void Data() const;
virtual void Get();
public:
Person(char *fn = "unset", char *ln = "unset") : first_name(fn), last_name(ln) {}
virtu... |
davidmallasen/Napol | Analizador/asint/ast/Programa.java | package asint.ast;
import asint.ast.ambitos.TablaSimbolos;
import asint.ast.sentencias.Sentencia;
import asint.ast.sentencias.TipoS;
import java.util.ArrayList;
import java.util.LinkedList;
/**
* Representa un programa Napol. Estara compuesto por una lista de sentencias.
* Estas seran las unidades independientes q... |
helloShen/leetcode | java/src/main/java/com/ciaoshen/leetcode/reorder_log_files/Solution5.java | <reponame>helloShen/leetcode
/**
* Leetcode - reorder_log_files
*/
package com.ciaoshen.leetcode.reorder_log_files;
import java.util.*;
import com.ciaoshen.leetcode.util.*;
/**
* log instance is defined in Solution interface
* this is how slf4j will work in this class:
* ==========================================... |
sandfox/planner | app/helpers/courses_helper.rb | <gh_stars>0
module CoursesHelper
def twitter_url_for(username)
"http://twitter.com/#{username}"
end
end
|
zzhmark/vaa3d_tools | hackathon/mBrainAligner/src/src_othertools/swc_registration/stps_inv_warp_swc/src/q_medianfilter.cpp | // q_medianfilter.cpp
#ifndef __Q_MEDIANFILTER_CPP__
#define __Q_MEDIANFILTER_CPP__
#include <math.h>
#include "../../v3d_main/basic_c_fun/basic_memory.cpp"
#include "../../v3d_main/basic_c_fun/v3d_basicdatatype.h"
template <class T> void median_filter(T* data1d,
long long *in_sz,
unsigned int Wx,
unsigned int ... |
BenZhao-forever/Ben-leetcode-practice | src/main/java/ListNode.java | class ListNode {
int val;
ListNode next;
ListNode() {}
ListNode(int val) { this.val = val; }
ListNode(int val, ListNode next) { this.val = val; this.next = next;}
public static ListNode create(int[] list) {
ListNode head = new ListNode();
ListNode temphead = head;
for (in... |
rrjha/dosp | xinu/device/nam/nammap.c | <filename>xinu/device/nam/nammap.c
/* nammap.c - nammap, namrepl, namcpy */
#include <xinu.h>
status namcpy(char *, char *, int32);
did32 namrepl(char *, char[]);
/*------------------------------------------------------------------------
* nammap - Using namespace, map name to new name and new device
*---------... |
UnusualAbsurd/adv-discord-bot | Applications/misc/userinfo.js | <reponame>UnusualAbsurd/adv-discord-bot<filename>Applications/misc/userinfo.js
const {
Client,
CommandInteraction,
MessageEmbed,
MessageActionRow,
MessageButton,
} = require("discord.js");
module.exports = {
name: "userinfo",
description: "Get information of a user!",
options: [
{
name: "user... |
swobspace/lackmus | app/views/signatures/index.json.jbuilder | <reponame>swobspace/lackmus<gh_stars>0
json.array!(@signatures) do |signature|
json.extract! signature, :id, :signature_id, :signature_info, :references, :action
json.url signature_url(signature, format: :json)
end
|
toventang/debezium-client | subscriber/subscriber.go | <filename>subscriber/subscriber.go<gh_stars>1-10
package subscriber
import (
"context"
"github.com/Shopify/sarama"
)
type Subscriber struct {
kafka sarama.ConsumerGroup
handler handler
opts Options
}
func NewSubscriber(opt ...Option) (Subscriber, error) {
opts := NewOptions(opt...)
subscriber := Subscri... |
badi91/iPlug2 | Examples/IPlugDrumSynth/IPlugDrumSynth_DSP.h | #pragma once
#include "Oscillator.h"
#include "ADSREnvelope.h"
#include <vector>
static constexpr int kNumDrums = 4;
static constexpr double kStartFreq = 300.; //Hz
static constexpr double kFreqDiff = 100.; //Hz
static constexpr double kPitchEnvRange = 100.; //Hz
static constexpr double kAmpDecayTime = 300; //Ms
stat... |
MKattaa/surveyless | src/components/ui/Slider.js | <reponame>MKattaa/surveyless
import 'rc-slider/assets/index.css';
import {Box} from 'rebass';
import RCSlider from 'rc-slider';
import React from 'react';
import Tooltip from 'rc-tooltip';
const Handle = RCSlider.Handle;
const handle = props => {
const {value, dragging, index, ...restProps} = props;
return (
... |
TheBiggerGuy/iridium-toolk | rtl-sdr/rtl-peak-hold.py | #!/usr/bin/env python
# vim: set ts=4 sw=4 tw=0 et pm=:
import sys
import math
import numpy
import os.path
import re
import getopt
import time
from functools import partial
import matplotlib.pyplot as plt
import threading
import time
def normalize(v):
m = max(v)
return [x/m for x in v]
class PeakHold(object):... |
youngzil/quickstart-framework | quickstart-design-pattern/src/test/java/org/quickstart/design/pattern/decorator/DecoratorZero.java | /**
* 项目名称:quickstart-design-pattern
* 文件名:DecoratorZero.java
* 版本信息:
* 日期:2018年1月26日
* Copyright yangzl Corporation 2018
* 版权所有 *
*/
package org.quickstart.design.pattern.decorator;
/**
* DecoratorZero
*
* @author:<EMAIL>
* @2018年1月26日 下午7:57:09
* @since 1.0
*/
// 下面定义三种装饰,这是第一个,第二个第三个功能依次细化,即装饰者的功能越来越... |
usenixatc2021/SoftRefresh_Scheduling | linsched-linsched-alpha/arch/m32r/include/asm/timex.h | #ifndef _ASM_M32R_TIMEX_H
#define _ASM_M32R_TIMEX_H
/*
* linux/include/asm-m32r/timex.h
*
* m32r architecture timex specifications
*/
#define CLOCK_TICK_RATE (CONFIG_BUS_CLOCK / CONFIG_TIMER_DIVIDE)
#define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */
#ifdef __KERNEL__
/*
* Standard way... |
jpbelang/raml-java-tools | pojo-to-raml/src/test/java/org/raml/pojotoraml/types/CollectionRamlTypeTest.java | package org.raml.pojotoraml.types;
import org.junit.Test;
import org.raml.pojotoraml.Fun;
import static org.junit.Assert.*;
/**
* Created. There, you have it.
*/
public class CollectionRamlTypeTest {
@Test
public void wrappingScalar() throws Exception {
CollectionRamlType collectionRamlType = Coll... |
touxiong88/92_mediatek | packages/apps/Weather3D/src/com/mediatek/weather3dwidget/Alarm.java | /* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein is
* confidential and proprietary to MediaTek Inc. and/or its licensors. Without
* the prior written permission of MediaTek inc. and/or ... |
Atomic-Reactor/Actinium-Plugins | actinium_modules/@atomic-reactor/actinium-media/plugin.js | const _ = require('underscore');
const ENUMS = require('./enums');
const pkg = require('./package');
const op = require('object-path');
const {
CloudHasCapabilities,
CloudRunOptions,
} = require(`${ACTINIUM_DIR}/lib/utils`);
const COLLECTION = ENUMS.COLLECTION;
const PLUGIN = {
ID: 'Media',
name: 'Me... |
simlt/myrobotlab | src/org/myrobotlab/service/InverseKinematics3D.java | package org.myrobotlab.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.myrobotlab.framework.Service;
import org.myrobotlab.framework.ServiceType;
import org.myrobotlab.genetic.GeneticAlgorithm;
import org.myrobotlab.genetic.Chromosome;
... |
tspence/lockstep-sdk-ruby | lib/lockstep_sdk/clients/provisioning_client.rb | #
# Lockstep Platform SDK for Ruby
#
# (c) 2021-2022 Lockstep, Inc.
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @author <NAME> <<EMAIL>>
# @copyright 2021-2022 Lockstep, Inc.
# @link https://github.com/Lockstep-Network/loc... |
nikulinn/angular-gulp | node_modules/popsicle/dist/plugins/common.js | <reponame>nikulinn/angular-gulp
"use strict";
var FormData = require("form-data");
var querystring_1 = require("querystring");
var index_1 = require("./is-host/index");
var form_1 = require("../form");
var JSON_MIME_REGEXP = /^application\/(?:[\w!#\$%&\*`\-\.\^~]*\+)?json$/i;
var URL_ENCODED_MIME_REGEXP = /^application... |
piougy/CzechIdMng | Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/eav/service/impl/IdmFormValueControllerRestTest.java | package eu.bcvsolutions.idm.core.eav.service.impl;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import com.google.common.collect.Lists;
import eu.bcvsolutions.idm.core.api.dto.AbstractDto;
impor... |
Blocks-Editor/blocks | src/editor/useCases.js | export const USE_CASES = [];
export const FOR_LEARNING_MOTOKO = addUseCase('learning Motoko');
export const FOR_BUILDING_API = addUseCase('building an API');
export const FOR_STORING_DATA = addUseCase('storing data');
export const FOR_TRANSACTIONS = addUseCase('transaction logic');
export const FOR_REUSABLE_LOGIC = ad... |
KenG98/magma | lte/gateway/c/oai/tasks/nas/emm/sap/emm_cnDef.h | <gh_stars>0
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the Ap... |
Bladez1753/lightning | common/billboard.h | <gh_stars>1000+
#ifndef LIGHTNING_COMMON_BILLBOARD_H
#define LIGHTNING_COMMON_BILLBOARD_H
#include "config.h"
#include <ccan/ccan/tal/tal.h>
#include <common/htlc.h>
char *billboard_message(const tal_t *ctx,
const bool funding_locked[NUM_SIDES],
const bool have_sigs[NUM_SIDES],
const bool shutdown_sent[NUM_SI... |
Tahul/flamingo | src/theme.js | <filename>src/theme.js
export const theme = {
borderRadius: {
xl: 'var(--f-borderRadius--xl)',
l: 'var(--f-borderRadius--l)',
m: 'var(--f-borderRadius--m)',
s: 'var(--f-borderRadius--s)',
},
breakPoint: {
sUp: '@media (min-width: 460px)',
s: '@media (max-width: 460px)',
m: '@media (min... |
mmienko/aws-cdk-scala | modules/ec2/src/main/scala/io/burkard/cdk/services/ec2/CfnVPCCidrBlockProps.scala | package io.burkard.cdk.services.ec2
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnVPCCidrBlockProps {
def apply(
vpcId: String,
amazonProvidedIpv6CidrBlock: Option[Boolean] = None,
ipv6Pool: Option[String] = None,
cid... |
jese1987/Dipper-Protocol | x/vm/types/keys.go | <filename>x/vm/types/keys.go<gh_stars>1-10
package types
const (
// ModuleName is the name of the vm module
ModuleName = "vm"
// StoreKey is the string store representation
StoreKey = ModuleName
CodeKey = StoreKey + "_code"
LogKey = StoreKey + "_log"
StoreDebugKey = StoreKey + "_debug"
// Quer... |
JaneMandy/CS | org/w3c/css/sac/Selector.java | <gh_stars>1-10
package org.w3c.css.sac;
public interface Selector {
short SAC_CONDITIONAL_SELECTOR = 0;
short SAC_ANY_NODE_SELECTOR = 1;
short SAC_ROOT_NODE_SELECTOR = 2;
short SAC_NEGATIVE_SELECTOR = 3;
short SAC_ELEMENT_NODE_SELECTOR = 4;
short SAC_TEXT_NODE_SELECTOR = 5;
short SAC_CDATA_SECTION... |
DaokoHu/itmp | src/main/java/com/huadi/itmp/core/lock/RedisLockFactory.java | package com.huadi.itmp.core.lock;
import org.springframework.data.redis.core.StringRedisTemplate;
import java.util.concurrent.locks.Lock;
/**
* @author meteor
*/
public class RedisLockFactory {
private StringRedisTemplate redisTemplate;
public RedisLockFactory(StringRedisTemplate redisTemplate) {
... |
adas2/swtpm_1.2 | libtpm/lib/tpmutil_libtpms.c | /********************************************************************************/
/* */
/* TPM LibTPMS Interface Functions */
/* Written by <NAME> */
/* IBM <NAME> Research Center */
/* $Id: tpmutil_libtpms.c 4752 2015-09-25 23:30:23Z kgoldman $ */
/* */
/* (c) Copyrig... |
treech/AndroidSdk | ui/src/main/java/io/github/treech/ui/widget/layout/linkage/LinkageScrollHandler.java | package io.github.treech.ui.widget.layout.linkage;
import android.view.View;
/**
* 子布局向 LinkageScrollLayout {@link LinkageScrollLayout} 提供的滚动处理实现接口
*
* @since 2020/3/11 5:46 PM
*/
public interface LinkageScrollHandler {
/**
* fling(抛,快速滑动后产生的动作) target with a velocity(速度)
*
* @param target
... |
ashishfarmer/rocm-caffe2 | caffe2/operators/negative_op_hip.cc | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
kabbi/zanzarah-tools | src/utils/paths.js | <gh_stars>10-100
exports.CommonPaths = {
Resources: 'Resources',
Pack: 'Pack',
Worlds: 'Pack/WORLDS',
ActorModels: 'Pack/MODELS/ACTORSEX',
BackdropModels: 'Pack/MODELS/BACKDROPS',
StaticModels: 'Pack/MODELS/MODELS',
Textures: 'Pack/TEXTURES',
ActorTextures: 'Pack/TEXTURES/ACTORSEX',
BackdropTextures: ... |
devibizsys/unip | srv_unip_pub/src/main/java/com/sa/unip/srv/counter/MobCountCounterHandler.java | /**
* iBizSys 5.0 机器人生产代码(不要直接修改当前代码)
* http://www.ibizsys.net
*/
package com.sa.unip.srv.counter;
import net.ibizsys.paas.demodel.IDataEntityModel;
import net.ibizsys.paas.demodel.DEModelGlobal;
import net.ibizsys.paas.ctrlhandler.CounterGlobal;
/**
* 移动端计数器计数器处理基类
*/
public class MobCountCounterHandler ... |
mattfoster/matplotlib | examples/pylab_examples/logo.py | <gh_stars>1-10
#!/usr/bin/env python
# This file generates the matplotlib web page logo
from pylab import *
# convert data to mV
x = 1000*0.1*fromstring(
file('../data/membrane.dat', 'rb').read(), float32)
# 0.0005 is the sample interval
t = 0.0005*arange(len(x))
figure(1, figsize=(7,1), dpi=100)
ax = subplot(111... |
letin97/EventApp | app/src/main/java/com/uit/letrongtin/eventapp/Interface/CheckItemClickListener.java | package com.uit.letrongtin.eventapp.Interface;
import android.view.View;
public interface CheckItemClickListener {
void onClick(View view, int position, boolean ischeck, String name);
}
|
Rillke/opencast | modules/common/src/main/java/org/opencastproject/util/data/Throwables.java | /**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the ... |
mikiec84/OpenSPIFe | gov.nasa.ensemble.common/src/gov/nasa/ensemble/common/mission/MissionTimeConstants.java | /*******************************************************************************
* Copyright 2014 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... |
jabdoa2/blitzmax | mod/pub.mod/glew.mod/glew_static.c |
#define GLEW_STATIC 1
#include "glew.c"
|
nerdmaennchen/qrqma | actions/print_statement.h | #pragma once
#include "context.h"
namespace qrqma {
namespace grammar {
struct print_expression;
}
namespace actions {
template<typename Rule>
struct action;
template <>
struct action<grammar::print_expression> {
static void apply(ContextP &context);
template <typename Input>
static void apply(const I... |
rahulyesantharao/tuplex | tuplex/codegen/include/CleanAstVisitor.h | <gh_stars>100-1000
//--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fas... |
msgmaxim/sapphire-platform-server | modules/follows/follows.controller.js | module.exports = {
/** user_follow */
setFollows: function(data, deleted, id, ts, callback) {
//console.log('dispatcher.js::setFollows - data', data)
// data can be null
if (data) {
//console.log('dispatcher.js::setFollows - has data')
// update user object
// so we need the username c... |
lordjoe/SparkAccumulators | src/main/java/com/lordjoe/distributed/spark/accumulators/IAccumulator.java | <gh_stars>0
package com.lordjoe.distributed.spark.accumulators;
import java.io.*;
/**
* com.lordjoe.distributed.spark.accumulators.IAccumulator
*
* interface marking the class as something which can be used as an accumulator \
* User: Steve
* Note it is normal for these classes to have
* 1)
* public static... |
ZTO-Express/test-case-app | test-case/src/main/java/com/zto/testcase/request/PmsRequest.java | <filename>test-case/src/main/java/com/zto/testcase/request/PmsRequest.java
package com.zto.testcase.request;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
impo... |
justshiv/weicoder | redis/src/main/java/com/weicoder/redis/base/BaseRedis.java | package com.weicoder.redis.base;
import java.util.List;
import com.weicoder.common.W.C;
import com.weicoder.common.lang.Bytes;
import com.weicoder.common.lang.Lists;
import com.weicoder.common.util.ThreadUtil;
import com.weicoder.common.zip.ZipEngine;
import com.weicoder.json.JsonEngine;
import com.weicoder.redis.Red... |
martin-ockajak/automorph | codec/jackson/src/main/scala/automorph/codec/json/JacksonWebRpc.scala | package automorph.codec.json
import automorph.protocol.webrpc.{Message, MessageError}
import com.fasterxml.jackson.core.{JsonGenerator, JsonParseException, JsonParser}
import com.fasterxml.jackson.databind.deser.std.StdDeserializer
import com.fasterxml.jackson.databind.module.SimpleModule
import com.fasterxml.jackson.... |
chaoannricardo/StudyNotes | III_DataEngineer_BDSE10/1902_Java/JavaWorkspace/JavaLab/src/Collection/TestHashMap.java | <filename>III_DataEngineer_BDSE10/1902_Java/JavaWorkspace/JavaLab/src/Collection/TestHashMap.java
package Collection;
import java.io.ObjectInputStream.GetField;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public class TestHashMa... |
Sol-0/sdk | pkg/registry/common/dnsresolve/nse_server_test.go | // Copyright (c) 2020-2021 Doc.ai and/or its affiliates.
//
// SPDX-License-Identifier: Apache-2.0
//
// 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/license... |
mccsssk2/SimVascularPM3_March2020 | SimVascular-master/Code/Source/sv4gui/Modules/Model/Common/sv4gui_ModelVtkMapper2D.cxx | <reponame>mccsssk2/SimVascularPM3_March2020<filename>SimVascular-master/Code/Source/sv4gui/Modules/Model/Common/sv4gui_ModelVtkMapper2D.cxx<gh_stars>0
/* Copyright (c) Stanford University, The Regents of the University of
* California, and others.
*
* All Rights Reserved.
*
* See Copyright-SimVascula... |
yangbajing/algorithm-study | algs4/src/main/java/edu/princeton/cs/algs4/Arbitrage.java | /**
* **************************************************************************** Compilation: javac
* Arbitrage.java Execution: java Arbitrage < input.txt Dependencies: EdgeWeightedDigraph.java
* DirectedEdge.java BellmanFordSP.java Data file: https://algs4.cs.princeton.edu/44sp/rates.txt
*
* <p>Arbitrage detect... |
Toromino/chromiumos-platform2 | croslog/cursor_util_test.cc | <reponame>Toromino/chromiumos-platform2
// Copyright 2020 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 "croslog/cursor_util.h"
#include <memory>
#include <string>
#include <utility>
#include "base/files/... |
shaochangbin/chromium-crosswalk | cc/output/overlay_candidate.cc | <reponame>shaochangbin/chromium-crosswalk
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "cc/output/overlay_candidate.h"
#include "ui/gfx/rect_conversions.h"
namespace cc {
OverlayCandidate... |
Krozark/Harpe-v1.0 | Harpe/harpe/execution/Socket/Socket/FuncWrapper.hpp | <filename>Harpe/harpe/execution/Socket/Socket/FuncWrapper.hpp
#ifndef NTW_FUNCWRAPPER
#define NTW_FUNCWRAPPER
#include <Socket/SocketSerialized.hpp>
#include <Socket/define.hpp>
namespace ntw
{
class FuncWrapper
{
public:
FuncWrapper() = delete;
FuncWrapper(const FuncWrapper&)... |
PerformanceHorizonGroup/JS-Browser-Driver | doc/doc.js | var documentor=require('documentor.js'),
api=new documentor.Api({
ns:{
name:'BrowserDriver API',
description:"..."
},
sourceFiles:[
// '../server/clientManager.js',
'../server/server.js',
'../client/browserDriver.js',
'../client/manager/manager.js'
],
sourceLoader:new documentor.FileSource... |
sezero/windows-sdk-headers | Include/10.0.15063.0/winrt/Windows.ApplicationModel.core.h | <reponame>sezero/windows-sdk-headers<gh_stars>1-10
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.01.0622 */
/* @@MIDL_FILE_HEADING( ) */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCND... |
Geeks-Z/PAT-Advanced-Level-Practice | PATA1022.cpp | /*
* @Descripttion: 参考https://blog.csdn.net/SYaoJun/article/details/87351227
* @version: 1.0
* @Author: Geeks_Z
* @Date: 2021-05-15 16:37:07
* @LastEditors: Geeks_Z
* @LastEditTime: 2021-05-15 17:11:25
*/
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <algorithm>
using namespace std... |
xyxiaoyou/snappy-store | tests/core/src/main/java/hydra/TestConfigComparison.java | <filename>tests/core/src/main/java/hydra/TestConfigComparison.java
/*
* Copyright (c) 2010-2015 Pivotal Software, Inc. 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 a... |
IceDragon200/rm-macl | lib/rm-macl/vxa-ext/rpg/base_item.rb | <filename>lib/rm-macl/vxa-ext/rpg/base_item.rb
#
# rm-macl/lib/rm-macl/vxa-ext/rpg/base_item.rb
# by IceDragon
module RPG #:nodoc:
class BaseItem
end
end
MACL.register('macl/vxa/rpg/base_item', '0.0.0') |
vzhd1701/enex2notion | enex2notion/note_parser/webclip_stages_common.py | <filename>enex2notion/note_parser/webclip_stages_common.py
from bs4 import Tag
BLOCK_TAGS = (
"div",
"h1",
"h2",
"h3",
"hr",
"ul",
"ol",
"en-media",
"img",
)
STANDALONE_TAGS = ("en-media", "img", "ol", "ul", "hr")
def rename_tags(root: Tag, tags_to_rename: list, new_name: str):
... |
jdeschamps/scifio | src/test/java/io/scif/img/cell/SCIFIOCellImgTest.java | /*
* #%L
* SCIFIO library for reading and converting scientific file formats.
* %%
* Copyright (C) 2011 - 2021 SCIFIO developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of so... |
demin-dmitriy/wine | dlls/winebus.sys/controller.h | /*
* Common controller functions and structures
*
* Copyright 2018 <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.1 of the License, or (at your option... |
jason-simmons/flutter_buildroot | mojo/edk/system/test/scoped_test_dir.h | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MOJO_EDK_SYSTEM_TEST_SCOPED_TEST_DIR_H_
#define MOJO_EDK_SYSTEM_TEST_SCOPED_TEST_DIR_H_
#include "base/files/scoped_temp_dir.h"
#include "mojo/ed... |
JLLeitschuh/myfaces-trinidad_20165019 | trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/ProgressStepsBean.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
*... |
yyao84/aws-athena-query-federation | athena-cloudwatch-metrics/src/test/java/com/amazonaws/athena/connectors/cloudwatch/metrics/TestUtils.java | <filename>athena-cloudwatch-metrics/src/test/java/com/amazonaws/athena/connectors/cloudwatch/metrics/TestUtils.java<gh_stars>100-1000
/*-
* #%L
* athena-cloudwatch-metrics
* %%
* Copyright (C) 2019 Amazon Web Services
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... |
glacier0315/evo-admin | evo-web-app/src/test/java/com/glacier/evo/app/sys/service/UserServiceTest.java | <filename>evo-web-app/src/test/java/com/glacier/evo/app/sys/service/UserServiceTest.java
package com.glacier.evo.app.sys.service;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org... |
steshaw/donkey | src/java/test/org/burroloco/butcher/util/dbunit/DefaultPrimaryKeyColumnFilter.java | <reponame>steshaw/donkey
package org.burroloco.butcher.util.dbunit;
import edge.org.dbunit.database.IDatabaseConnection;
import edge.org.dbunit.dataset.IDataSet;
import edge.org.dbunit.dataset.ITableMetaData;
import org.dbunit.database.DatabaseConfig;
import org.dbunit.dataset.Column;
import org.dbunit.dataset.filter.... |
elva2596/whitestorm.js | modules/whs-module-audio/src/index.js | <filename>modules/whs-module-audio/src/index.js
import {
PositionalAudio,
AudioListener,
AudioLoader
} from 'three';
export default class PositionalAudioModule {
constructor(params = {}) {
this.params = Object.assign({
loop: true
}, params);
this.audioListener = new AudioListener();
this... |
mengerzhuanyong/CommonPeopleFarmers | src/components/default/Overlay/Views/OverlayBase.js | 'use strict';
import React, { useMemo } from 'react';
import {
StyleSheet,
Animated,
View,
ViewPropTypes,
TouchableWithoutFeedback,
} from 'react-native';
import PropTypes from 'prop-types';
function OverlayBase(props) {
const { style, maskStyle, maskPointerEvents, onPressMask, children } = props;
const... |
allansrc/fuchsia | src/connectivity/bluetooth/core/bt-host/gap/low_energy_connection_request.cc | <reponame>allansrc/fuchsia<gh_stars>1-10
// Copyright 2020 The Fuchsia 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 "low_energy_connection_request.h"
namespace bt::gap::internal {
LowEnergyConnectionRequest::LowEnergyCo... |
iabd/modernmt | src/commons/src/main/java/eu/modernmt/config/xml/XMLConfigBuilder.java | package eu.modernmt.config.xml;
import eu.modernmt.config.ConfigException;
import eu.modernmt.config.NodeConfig;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
im... |
stormtheh4ck3r/python-for-android | python-modules/twisted/twisted/test/test_fdesc.py | # Copyright (c) 2007-2009 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.internet.fdesc}.
"""
import os, sys
import errno
try:
import fcntl
except ImportError:
skip = "not supported on this platform"
else:
from twisted.internet import fdesc
from twisted.python.util impor... |
gtalarico/revitpythonwrapper | rpw/__revit.py | """
The main rpw namespace and rpw.revit provide you with most of the imports will
need.
>>> from rpw import revit, db, ui
>>> db.Element(SomeElement)
>>> ui.Selection()
>>> revit.doc
>>> revit.uidoc.ActiveView
Revit Namespaces are also available:
>>> from rpw import DB, UI
>>> DB.ElementId(00000)
>>... |
bluemir/hive | app/utils/ErrorViews.java | <reponame>bluemir/hive
package utils;
import controllers.UserApp;
import models.Project;
import models.User;
import play.api.templates.Html;
import views.html.index.index;
/**
* The Enum Views.
*/
public enum ErrorViews {
Forbidden {
@Override
public Html render(String messageKey) {
... |
alexzacher/BMI-Body-Mass-Index-Calculator-APP | venv/lib/python3.7/site-packages/PyInstaller/hooks/hook-pywintypes.py | #-----------------------------------------------------------------------------
# Copyright (c) 2005-2020, PyInstaller Development Team.
#
# Distributed under the terms of the GNU General Public License (version 2
# or later) with exception for distributing the bootloader.
#
# The full license is in the file COPYING.txt... |
shivampandey0/build | solutions/arrays/05.js | <reponame>shivampandey0/build
// Find sum of two arrays.
// [3, 5, 2, 9, 4] = 3 + 5 + 2 + 9 + 4 = 23
// [6, 2, 8, 1, 3] = 6 + 2 + 8 + 1 + 3 = 20
// Final Output: 20 + 23 = 43
const getSum = (arr1,arr2) => {
let sum = 0;
for (const num of arr1) {
sum+=num;
}
for (const num of arr2) {
s... |
PaccMann/paccmann_chemistry | examples/train_vae.py | #!/usr/bin/env python3
"""Train TeacherVAE molecule generator."""
import argparse
import json
import logging
import os
import sys
from time import time
from paccmann_chemistry.utils import (
collate_fn, get_device, disable_rdkit_logging
)
from paccmann_chemistry.models.vae import (
StackGRUDecoder, StackGRUEnco... |
acety23/algorithms-sedgewick-wayne | src/chapter1/section4/Exercise16_ClosestPair.java | <gh_stars>1000+
package chapter1.section4;
import edu.princeton.cs.algs4.StdOut;
import java.util.Arrays;
/**
* Created by <NAME> on 9/30/16.
*/
public class Exercise16_ClosestPair {
public static void main(String[] args) {
double[] array1 = {-5.2, 9.4, 20, -10, 21.1, 40, 50, -20};
double[] ar... |
Matthelonianxl/deltacloud-core | clients/java/org.apache.deltacloud.client/src/org/apache/deltacloud/client/StateAware.java | <gh_stars>1-10
/*************************************************************************
*
* 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... |
f0rb/doyto-query | doyto-query-mongodb/src/main/java/win/doyto/query/mongodb/MongoDataAccess.java | /*
* Copyright © 2019-2022 <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 agreed t... |
adammillerio/vsphere-automation-sdk-python | com/vmware/vcenter/tokenservice_client.py | <reponame>adammillerio/vsphere-automation-sdk-python
# -*- coding: utf-8 -*-
#---------------------------------------------------------------------------
# Copyright 2020 VMware, Inc. All rights reserved.
# AUTO GENERATED FILE -- DO NOT MODIFY!
#
# vAPI stub file for package com.vmware.vcenter.tokenservice.
#--------... |
SharePointPro/spfx-40-fantastics-Sppro | lib/webparts/mediaPlayer/MediaPlayer.module.scss.js | <filename>lib/webparts/mediaPlayer/MediaPlayer.module.scss.js<gh_stars>1-10
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable */
require('./MediaPlayer.module.css');
var styles = {
carousel3D: 'carousel3D_b11555b1',
container: 'container_b11555b1',
row: 'row_b115... |
mortenpoulsen/kanbanik | kanbanik-web/src/main/java/com/googlecode/kanbanik/client/modules/editworkflow/projects/ProjectDeletingComponent.java | package com.googlecode.kanbanik.client.modules.editworkflow.projects;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.googlecode.kanbanik.client.Modules;
import com.googlecode.kanbanik.client.api.Dtos;
import com.googlecode.kanbanik.client.api.Dtos.ProjectDto;
import com.googlecode.kanbanik.client... |
kirkovg/university-microservices | public-transport-service/src/main/java/mk/ukim/finki/publictransport/repository/LineRepository.java | <reponame>kirkovg/university-microservices
package mk.ukim.finki.publictransport.repository;
import mk.ukim.finki.publictransport.domain.Line;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data repository for the Line entity.
*/
@SuppressWarnings(... |
linminglu/lanxi-mahjong-server | src/algorithm/hu_qingluanfeng.go | <reponame>linminglu/lanxi-mahjong-server
package algorithm
// 乱风胡检测
// 所有牌都为风牌(东南西北中发白),无需成胡牌型
// 碰杠牌要加入检测
func existLuanFeng(cards []byte) int64 {
for _, v := range cards {
if v != WILDCARD {
if v>>4 < FENG {
return 0
}
}
}
return HU_LUAN_FENG
}
// 清一色检测
func existOneSuit(cards []by... |
5GExchange/tads-network-protocols | src/main/java/es/tid/pce/pcep/constructs/P2MPEndpoints.java | <filename>src/main/java/es/tid/pce/pcep/constructs/P2MPEndpoints.java<gh_stars>0
package es.tid.pce.pcep.constructs;
import java.util.LinkedList;
import es.tid.pce.pcep.PCEPProtocolViolationException;
import es.tid.pce.pcep.objects.MalformedPCEPObjectException;
public class P2MPEndpoints extends PCEPConstru... |
ardeshir/gohazel | code-samples/enterprise/hidensity-cache/src/main/java/HiDensityCacheIteratorUsage.java | import com.hazelcast.cache.ICache;
import javax.cache.Cache;
import java.util.Iterator;
/**
* HiDensity cache {@link Iterator} usage example.
*
* You have to set your Hazelcast Enterprise license key to make this code sample work.
* Please have a look at {@link com.hazelcast.examples.helper.LicenseUtils} for deta... |
mihaicarabas/dragonfly | lib/libncp/ncpl_subr.c | /*
* Copyright (c) 1999, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
emrecosar/leetcode | 191-NumberOf1Bits/NumberOf1Bits.java | public class NumberOf1Bits {
// you need to treat n as an unsigned value
public int hammingWeight(int n) {
int ones = 0;
while (n != 0) {
ones = ones + (n & 1);
n = n >>> 1;
}
return ones;
}
}
|
lintonv/aws-sdk-cpp | aws-cpp-sdk-workdocs/source/model/FolderMetadata.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/workdocs/model/FolderMetadata.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
names... |
bherrmann7/jbum | fixed-src/com/thoughtworks/xstream/io/xml/DomDriver.java | <filename>fixed-src/com/thoughtworks/xstream/io/xml/DomDriver.java
package com.thoughtworks.xstream.io.xml;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.io.Writer;
... |
windystrife/UnrealEngine_NVIDIAGameWork | Engine/Source/Editor/AnimationModifiers/Public/AnimationModifier.h | <gh_stars>1-10
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Animation/AnimEnums.h"
#include "Animation/AnimCurveTypes.h"
#include "AnimationBlueprintLibrary.h"
#include "AnimationModifier.generated.h"
class USkeleton;
UCLASS(Blueprintable, Experimental, config = Editor, defau... |
FelisCatusKR/Baekjoon_Python3 | 1016.py | # 1016.py
import math
# 최솟값과 최댓값 입력
min, max = map(int, input().split())
# 제곱수 집합과 최솟값~최댓값 수 집합 생성
squareSet = set(pow(i, 2) for i in range(2, int(math.sqrt(max)) + 1))
numSet = set(range(min, max+1))
# 제곱수의 배수를 담은 집합 생성
tempSet = set()
for n in squareSet:
tempSet.update([n * i for i in range(min // n, max // n... |
Ying1131271533/www.caomaokj.com | public/static/mobile/js/common.js |
// token登录状态
function isToken(){
var jwt = storage('token');
if(jwt)
{
$.ajax({
type: "GET",
url: "https://www.caomaokj.com/index/login_api/isToken",
beforeSend: function(xhr) {
xhr.setRequestHeader("Authorization", jwt);
},
success: function(json) {
if(json.data.code == 0)
{
// ... |
mkawserm/hypcore | package/core/onlineusermemorymap.go | package core
import (
"sort"
"sync"
)
type OnlineUserMemoryMap struct {
UserMap map[string][]int
SocketIDToUserMap map[int]string
SocketIDToUserGroupMap map[int]string
UserMapLock *sync.RWMutex
}
func NewOnlineUserMemoryMap() *OnlineUserMemoryMap {
return &OnlineUserMemoryMap{
UserMap: ... |
xiaozhu36/alibaba-cloud-sdk-go | services/yundun-ds/struct_rule.go | package yundun_ds
//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
//dis... |
mythoss/midpoint | repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/embedded/REmbeddedReference.java | <gh_stars>0
/*
* Copyright (c) 2010-2020 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.repo.sql.data.common.embedded;
import static com.evolveum.midpoint.repo.sql.util.RUtil... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.