repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
jwuttke/daquiri-qpx
source/core/util/color_bash.h
#pragma once #include <string> #include <sstream> enum BashColor { NONE = 0, BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE }; enum BashSpecial { RESET = 0, BRIGHT, DIM, UNDER, BLINK, REVERSE, HIDDEN }; inline std::string col(BashColor foreground = NONE, BashColor backgr...
JouniVatanen/NLP-and-Deep-Learning
src/unsupervised_class3/vae_tf.py
<filename>src/unsupervised_class3/vae_tf.py # https://deeplearningcourses.com/c/deep-learning-gans-and-variational-autoencoders # https://www.udemy.com/deep-learning-gans-and-variational-autoencoders from __future__ import print_function, division from builtins import range, input # Note: you may need to update your ve...
caufieldjh/ensmallen_graph
bindings/python/ensmallen_graph/datasets/__init__.py
<gh_stars>0 """Module with datasets."""
valitydev/fraudbusters-mg-connector
src/main/java/dev/vality/fraudbusters/mg/connector/domain/MgEventWrapper.java
package dev.vality.fraudbusters.mg.connector.domain; import dev.vality.damsel.payment_processing.InvoiceChange; import dev.vality.machinegun.eventsink.MachineEvent; import lombok.Builder; import lombok.Data; @Data @Builder public class MgEventWrapper { private InvoiceChange change; private MachineEvent event...
Abdelsalam-Abbas/rook_fork
pkg/ceph/mds/filesystem.go
/* Copyright 2016 The Rook Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to ...
othmaan/codesandbox-clien
src/sandbox/actions/index.js
<gh_stars>0 // @flow // All actions of the editor are defined here. The sandbox can send messages // like `source.files.rename` which the editor will see as an action to rename // a module. This will allow plugins to alter project content in the future import * as notifications from './notifications'; import * as edit...
lhzheng880828/VOIPCall
doc/libjitisi/sources/org/jitsi/impl/neomedia/jmfext/media/renderer/video/JAWTRenderer.java
<filename>doc/libjitisi/sources/org/jitsi/impl/neomedia/jmfext/media/renderer/video/JAWTRenderer.java package org.jitsi.impl.neomedia.jmfext.media.renderer.video; import com.lti.utils.UnsignedUtils; import java.lang.reflect.InvocationTargetException; import javax.media.Buffer; import javax.media.Format; import javax.m...
tobiaserich/oneglance
client/src/components/DarkFilter.js
import styled from "@emotion/styled"; const DarkFilter = styled.div` height: 100%; width: 100%; position: absolute; border-radius: 10px; background: #0000004d; `; export default DarkFilter;
hmcts/div-orchestration-service
src/main/java/uk/gov/hmcts/reform/divorce/orchestration/tasks/servicejourney/BailiffServiceDueDateSetterTask.java
<filename>src/main/java/uk/gov/hmcts/reform/divorce/orchestration/tasks/servicejourney/BailiffServiceDueDateSetterTask.java package uk.gov.hmcts.reform.divorce.orchestration.tasks.servicejourney; import lombok.extern.slf4j.Slf4j; import uk.gov.hmcts.reform.divorce.orchestration.framework.workflow.task.TaskContext; imp...
Koronen/stringer
spec/repositories/feed_repository_spec.rb
<reponame>Koronen/stringer<filename>spec/repositories/feed_repository_spec.rb require "spec_helper" require "support/active_record" app_require "repositories/feed_repository" describe FeedRepository do describe ".update_last_fetched" do let(:timestamp) { Time.now } it "saves the last_fetched timestamp" do ...
kevinkda/UnivCourse_Java
Undergraduate Courses/Front-end/Course Design/CourseDesign_201912/Project/JavaScriptCourseDesign/Project/Whac-A-Mole/test1/js/resources/images.js
/** * 图像资源列表 */ function getImageRes() { return [{ id : 'hammer', src : 'images/hammer.png' },{ id:"bg_hole", src:"images/bg_canvas.png" },{ id:"bg_holeHide", src:"images/bg_hole.png" },{ id:"mouse", src:"images/mouse.png" },{ id:"help", src:"images/help.png" },{ id:"star...
Jakegogo/concurrent
concur/src-dbcache/dbcache/test/SubEntity.java
package dbcache.test; import javax.persistence.Transient; import java.util.HashSet; import java.util.Set; /** * Created by Administrator on 2015/1/18. */ //@javax.persistence.Entity //@Table(name = "subEntity") public class SubEntity extends Entity { private String subName; @Transient private Set<Int...
dyorgio/radiance
substance/src/main/java/org/pushingpixels/substance/internal/utils/PairwiseButtonBackgroundDelegate.java
<gh_stars>0 /* * Copyright (c) 2005-2019 <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: * * o Redistributions of source code must retain the above copyright notice, * this list o...
wenfeifei/miniblink49
third_party/WebKit/Source/core/animation/animatable/AnimatableLengthBoxAndBool.cpp
/* * Copyright (C) 2013 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
dekieras/GLEANKernel
GLEANKernel/GLEANLib/Framework Classes/testheader.cpp
#include "Human_subprocessor.h"
opensingular/singular-apps
requirement/requirement-module/src/test/java/org/opensingular/requirement/module/service/ModuleServiceMock.java
<reponame>opensingular/singular-apps /* * * * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.com * * * * 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 Licen...
trivassi/VendooEpicodus
app/src/main/java/co/vendoo/vendooepicodus/util/ItemTouchHelperViewHolder.java
package co.vendoo.vendooepicodus.util; /** * Created by T on 12/20/16. */ public interface ItemTouchHelperViewHolder { void onItemSelected(); void onItemClear(); }
guilhermepe/SOLLUS
sollus3/src/main/java/com/guiper/repository/PortaRepository.java
package com.guiper.repository; import java.util.List; import org.springframework.data.repository.CrudRepository; import com.guiper.entities.Porta; /** * * @author guiper */ public interface PortaRepository extends CrudRepository<Porta, Integer>{ List<Porta> findByNome(String nome); List<Porta> findByE...
ImaginaryNumb3r/Hephaestus-Collections
src/collections/iteration/MatchSink.java
package collections.iteration; import java.util.function.Predicate; /** * @author Patrick * @since 19.01.2018 */ abstract class MatchSink<T, X extends Exception> extends TerminationSink<T, X> { protected final IterationPredicate<T, X> _predicate; protected long _index; public MatchSink(IteratorEx<T, ...
dtsimpson2/amf
build.sbt
import org.scalajs.core.tools.linker.ModuleKind import sbt.Keys.{libraryDependencies, resolvers} import sbtcrossproject.CrossPlugin.autoImport.crossProject import sbtsonar.SonarPlugin.autoImport.sonarProperties import scala.language.postfixOps import scala.sys.process._ import Versions.versions val ivyLocal = Resolve...
rageyboiii/test-boy
cogs/music.py
<reponame>rageyboiii/test-boy import asyncio import datetime import json import math import os import re from typing import List, Literal, Optional, Union import async_timeout import nextcord as discord import validators import wavelink from nextcord.ext import commands, menus from numpy import random from functions ...
baiheinet/scalable-form-platform
packages/scalable-form-antd-mobile/src/i18n/ko-kr.js
module.exports = { "xform.client.xform-antd-mobile.dateRange.xformDefaultEndDatePlaceholder": "끝 Date", "xform.client.xform-antd-mobile.dateRange.xformDefaultStartDatePlaceholder": "Start date", "xform.client.xform-antd-mobile.index.xformDefaultSubmitButtonLabel": "!! 만족해주신다니", "xform.client.xform-antd-...
Nightwish-cn/my_leetcode
code/381.cpp
#include <bits/stdc++.h> #define INF 2000000000 using namespace std; typedef long long ll; int read(){ int f = 1, x = 0; char c = getchar(); while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();} while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar(); return f * x; } struct TreeNod...
jokade/scalanative-gtk
tepl/src/main/scala/tepl/TeplTabGroup.scala
// Copyright (c) 2018. Distributed under the MIT License (see included LICENSE file). package tepl import glib.GList import scalanative.native._ import cobj._ /** * Interface for a group of [[TeplTab]]s. * * @see [[https://developer.gnome.org/tepl/stable/TeplTabGroup.html]] */ @CObj trait TeplTabGroup extends CO...
migijs/m
tests/diffadd7/test.js
<filename>tests/diffadd7/test.js var path = require('path'); var fs = require('fs'); module.exports = { 'init empty': function(browser) { browser .url('file://' + path.join(__dirname, 'index.html')) .waitForElementVisible('body', 1000) .assert.containsText('#test p[ref="1"]', '2') .assert...
michel-pi/xenforo-documentation
docs/2-1-0/d4/dec/class_x_f_1_1_entity_1_1_oembed.js
var class_x_f_1_1_entity_1_1_oembed = [ [ "_preSave", "d4/dec/class_x_f_1_1_entity_1_1_oembed.html#afe23830269d783eebc97de635fdebd10", null ], [ "getAbstractedJsonPath", "d4/dec/class_x_f_1_1_entity_1_1_oembed.html#ab8c66950699114e49781427e38968c59", null ], [ "getUrl", "d4/dec/class_x_f_1_1_entity_1_1_oemb...
iedadata/PetDB
ROOT/petdb/wrapper/AbbreviationsWrapper.java
<gh_stars>0 package petdb.wrapper; import java.util.*; import petdb.data.*; import petdb.query.*; import petdb.criteria.*; public class AbbreviationsWrapper extends Wrapper { static ControlQuery[] queries = new ControlQuery[8]; static boolean status = false; public static int Alteration = 0; public s...
wittech/libqimuikit-ios
QIMUIKit/Application/ViewController/Friend/QIMFriendTitleListCell.h
<reponame>wittech/libqimuikit-ios // // QIMFriendTitleListCell.h // qunarChatIphone // // Created by admin on 15/11/17. // // #import "QIMCommonUIFramework.h" @interface QIMFriendTitleListCell : UITableViewCell @property (nonatomic, strong) NSString *title; @property (nonatomic, strong) NSString *desc; @property ...
prantlf/requirejs-esm
src/transform.js
import { resolvePath as originalResolvePath } from './resolve-path' // import { parse } from 'acorn' import { parseModule } from 'meriyah' import { generate } from 'astring' import { SourceMapGenerator } from 'source-map' import convert from '@prantlf/convert-source-map' import { transformAst } from './transformer' ex...
Tobisaninfo/rewrite
api-tests/src/test/java/org/ocpsoft/rewrite/config/RelocatingConfigurationProvider3.java
<reponame>Tobisaninfo/rewrite package org.ocpsoft.rewrite.config; import org.ocpsoft.rewrite.servlet.config.Path; import org.ocpsoft.rewrite.servlet.config.SendStatus; /** * @author <a href="mailto:<EMAIL>"><NAME>, III</a> * */ public class RelocatingConfigurationProvider3 implements ConfigurationProvider<Object...
FIT-Mobility/dimo-tool-suite
server-converter-model/src/main/java/de/fraunhofer/fit/ips/model/template/helper/InnerNode.java
<reponame>FIT-Mobility/dimo-tool-suite<gh_stars>1-10 package de.fraunhofer.fit.ips.model.template.helper; import de.fraunhofer.fit.ips.model.template.MultilingualPlaintext; import java.util.List; /** * @author <NAME> <<EMAIL>> */ public interface InnerNode extends StructureBase { List<StructureBase> getChildre...
yeoman/yeoman-app
spec/components/prompts/input-spec.js
<reponame>yeoman/yeoman-app<gh_stars>1000+ import createComponent from '../../helpers/createComponent.js'; import InputPrompt from '../../../src/renderer/components/prompts/input.jsx'; describe('InputPrompt', function () { let tree; let renderOutput; let labelComponent; let inputComponent; beforeEach(functi...
johngreyland262/Stealth
src/explore/ExploreDestination.hpp
<reponame>johngreyland262/Stealth // Copyright (c) 2019 2020 The Stealth Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef _EXPLOREDESTINATION_H_ #define _EXPLOREDESTINATION_H_ 1 #include "serialize.h" #in...
josemafe7/IA-BusquedaLocal
aima-core/src/main/java/aima/core/search/uninformed/DepthFirstSearch.java
package aima.core.search.uninformed; import java.util.List; import aima.core.agent.Action; import aima.core.search.framework.Metrics; import aima.core.search.framework.Node; import aima.core.search.framework.NodeExpander; import aima.core.search.framework.QueueFactory; import aima.core.search.framework.SearchForActio...
strassek/chromiumos-platform2
cryptohome/proxy/cryptohome_proxy.cc
<filename>cryptohome/proxy/cryptohome_proxy.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 <base/command_line.h> #include <base/logging.h> #include <brillo/syslog_logging.h> #include "c...
GeorgiMateev/twitter-user-gender-classification
src/main/java/edu/fmi/genderclassify/weka/features/BaseFeaturesFactory.java
<reponame>GeorgiMateev/twitter-user-gender-classification package edu.fmi.genderclassify.weka.features; import edu.fmi.genderclassify.dataimport.Fields; import edu.fmi.genderclassify.utils.Conversion; import weka.core.Attribute; import java.util.*; /** * A factory for creating Attribute instances for the input (bas...
Scrappers-glitch/SS-Editor
src/main/java/com/ss/editor/ui/component/editor/state/EditorState.java
package com.ss.editor.ui.component.editor.state; import java.io.Serializable; /** * The interface for implementing a state container of Editor. * * @author JavaSaBr */ public interface EditorState extends Serializable { /** * Sets change handler. * * @param handle the change handler. */ ...
lxh888/openshop
client/web-admin/src/page/admin/adminUserEdit.js
av({ id: 'page-admin-adminUserEdit', include: ["src/common/content.js"], extend: ["common-content"], 'export': { template: "src/page/admin/adminUserEdit.html" }, 'import': function (e) { this.template(e.template); }, main: function () { this.data.admin_user_id = (function () { try { return av.router().anch...
zaikio/keyline-gem
lib/keyline/resources/production/order.rb
module Keyline::Production class Order include Jeweler::Resource attributes :reference, :custom_references, :custom_ofer_text, :due_at, :confirmed_at, :state singleton_associations :customer end end
AbyteofteA/MiteVox
engine/CodeSafety/src/ensureValue.h
<reponame>AbyteofteA/MiteVox #ifndef ENSUREVALUE_H #define ENSUREVALUE_H namespace safety { /// <summary> /// Ensures that the value is within the inclusive range of [rangeStart, rangeEnd]. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="value"></param> /// <param name="ra...
houzeyu2683/KMLT
BMSMT/network/v1/__model__.py
## ## Packages. import torch, torchvision import torch.nn as nn ## ## The [model] class. class model(torch.nn.Module): def __init__(self): super(model, self).__init__() pass self.layer = nn.Sequential( torchvision.models.resnet18(pretrained=True), ...
jdsjlzx/365browser
app/src/main/java/org/chromium/chrome/browser/preferences/SearchEngineAdapter.java
<reponame>jdsjlzx/365browser // 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. package org.chromium.chrome.browser.preferences; import android.content.Context; import android.content.Intent; import andro...
iotechn/unimall-App-H5
unimall-data/src/main/java/com/iotechn/unimall/data/mapper/AddressMapper.java
<filename>unimall-data/src/main/java/com/iotechn/unimall/data/mapper/AddressMapper.java package com.iotechn.unimall.data.mapper; import com.dobbinsoft.fw.support.mapper.IMapper; import com.iotechn.unimall.data.domain.AddressDO; /* @author kbq @date 2019/7/4 - 22:09 */ public interface AddressMapper extends IMapper<A...
marazmarci/belatheblob
core/src/hu/marazmarci/belatheblob/gui/HUD.java
package hu.marazmarci.belatheblob.gui; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.Pixmap.Format; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.TextureData; import com.badlogic.gdx.graphics.g2...
ging/ackuaria
common/mdb/eventsRegistry.js
<filename>common/mdb/eventsRegistry.js var db = require('./dataBase').db; var getEvent = exports.getEvent = function(id, callback) { "use strict"; db.events.findOne({ _id: db.ObjectId(id) }, function(err, event) { if (event === undefined) { console.log('Event ', id, ' not found...
jmolloy/pedigree
src/system/kernel/debugger/commands/LocksCommand.cc
<reponame>jmolloy/pedigree /* * Copyright (c) 2008 <NAME>, <NAME>, <NAME> * * Permission to use, copy, modify, and 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 PROV...
hanhlinux/skalibs
src/libstddjb/tai_unpack.c
<reponame>hanhlinux/skalibs<filename>src/libstddjb/tai_unpack.c /* ISC license. */ #include <skalibs/uint64.h> #include <skalibs/tai.h> void tai_unpack (char const *s, tai *t) { uint64_unpack_big(s, &t->x) ; }
cybergarage/CyberX3D4CC
include/cybergarage/x3d/Parser.h
/****************************************************************** * * CyberX3D for C++ * * Copyright (C) <NAME> 1996-2007 * * File: Parser.h * ******************************************************************/ #ifndef _CX3D_PARSER_H_ #define _CX3D_PARSER_H_ #include <cybergarage/x3d/CyberX3DConfig.h> #include <cyb...
stanfortonski/Procedural-Terrain-Generator-OpenGL
src/engine/buffer/RenderBuffer.hpp
<reponame>stanfortonski/Procedural-Terrain-Generator-OpenGL /* Copyright (c) 2020 by <NAME> */ #ifndef RENDER_BUFFER_HPP #define RENDER_BUFFER_HPP 1 #include <GL/glew.h> namespace Engine { class RenderBuffer { void clear(); void swap(const RenderBuffer & fb); protected: unsigned RBO = 0; unsign...
dugenkui03/nadel
src/main/java/graphql/nadel/engine/transformation/UnapplyResult.java
package graphql.nadel.engine.transformation; import graphql.Internal; import graphql.nadel.result.ExecutionResultNode; import graphql.util.TraversalControl; @Internal public class UnapplyResult { private final ExecutionResultNode node; private final TraversalControl traversalControl; public UnapplyResul...
lechium/iOS1351Headers
usr/libexec/CarPlay/CARHomeKitDoorStateCharacteristic.h
<reponame>lechium/iOS1351Headers // // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "CARHomeKitCharacteristic.h" @interface CARHomeKitDoorStateCharacteristic : CARHomeKitCharacteristic { } + (id...
teslabs/sdk-trusted-firmware-m
platform/ext/target/stm/common/stm32u5xx/bl2/stm32u5xx_hal_msp.c
<reponame>teslabs/sdk-trusted-firmware-m<filename>platform/ext/target/stm/common/stm32u5xx/bl2/stm32u5xx_hal_msp.c /** ****************************************************************************** * @file stm32u5xx_hal_msp.c * @author MCD Application Team * @brief HAL MSP module. **********************...
break-through/RL_Reading_Group
RLSurveyFigFiveJava/src/rl/agents/DynaQLearningAgent.java
package rl.agents; import rl.env.IEnvironment; import rl.env.RLException; import util.EqualDistribution; import util.Pair; import java.util.*; public final class DynaQLearningAgent<S, A> extends IQLearningAgent<S, A> { private final int k; public DynaQLearningAgent( IEnvironment<S, A> environment, ...
ace53thntu/cookie-sync-demo
src/pages/product/[slug].js
<gh_stars>0 import { useRouter } from "next/router"; import { useSelector } from "react-redux"; import { getProductsBySlug } from "../../common/shopUtils"; import { capitalizeFirstLetter } from "../../common/utils"; import LayoutOne from "../../components/layouts/LayoutOne"; import ProductDetailOne from "../../c...
tingelst/versor
scratch/projects/groups/xSpaceGroup3D.cpp
/* * ===================================================================================== * * Filename: xSpaceGroup3D.cpp * * Description: from allo * * Version: 1.0 * Created: 04/30/2015 15:30:13 * Revision: none * Compiler: gcc * * Author: <NAME> (), gmai...
OPSWAT/metadefender-menlo-integration
metadefender_menlo/api/responses/check_existing.py
<filename>metadefender_menlo/api/responses/check_existing.py<gh_stars>0 from metadefender_menlo.api.responses.base_response import BaseResponse class CheckExisting(BaseResponse): def __init__(self, allowedResponses=None): allowedResponses = [200, 500] super().__init__(allowedRespons...
KaffinPX/bedrock-protocol
src/rak.js
<reponame>KaffinPX/bedrock-protocol const { EventEmitter } = require('events') const Listener = require('jsp-raknet/listener') const EncapsulatedPacket = require('jsp-raknet/protocol/encapsulated_packet') const Reliability = require('jsp-raknet/protocol/reliability') const RakClient = require('jsp-raknet/client') const...
remyvhw/passwordsync-2
SLColorArt.h
<reponame>remyvhw/passwordsync-2<gh_stars>0 // // SLColorArt.h // ColorArt // // Created by <NAME> on 12/11/12. // // Copyright (C) 2012 Panic Inc. Code by <NAME>. All rights reserved. // // Redistribution and use, with or without modification, are permitted provided that the following conditions are met: // // - Re...
lfcabend/emvlib
src/main/scala/org/emv/tlv/Track2EquivalentData.scala
package org.emv.tlv import org.emv.tlv.EMVTLV._ import org.emv.tlv.EMVTLV.EMVTLVParser._ import org.lau.tlv.ber._ import scodec.bits.ByteVector /** * Created by lau on 2/17/17. */ case class Track2EquivalentData(override val value: ByteVector) extends EMVTLVLeaf with TemplateTag { override val t...
33cn/chat33-android
lib-basic/src/main/java/com/fuzamei/common/utils/AbstractConfigProperty.java
package com.fuzamei.common.utils; import android.content.Context; import com.fuzamei.commonlib.R; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; import java.util.Properties; /** * @author Mark * @since 2018/9/4 * Description: *...
loanselot1/IceSDK
third-party/bimg/3rdparty/astc-codec/src/decoder/test/footprint_test.cc
// Copyright 2018 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
vadimzalunin/crammer
src/junk/java/net/sf/block/Container.java
<reponame>vadimzalunin/crammer package net.sf.block; public class Container { public int length; public long contentId; public Block[] blocks; public Container[] containers; }
nwillc/scotty
src/test/java/features/database/ValueFeature.java
/* * Copyright (c) 2015, <EMAIL> * * 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 PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ...
gegeyang0124/react-native-lib-cus-com
ui/TitleBlockTarget.js
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import { View, } from 'react-native'; import { StyleSheetAdapt, Theme, } from "./../api/api"; import {TitleBlockList} from "./TitleBlockList"; import {ItemRowTitle} from "./ItemRowTitle"; import {TitleBlock} from "./TitleBlock"; im...
immune-gmbh/agent
internal/testing/generators.go
<filename>internal/testing/generators.go package testing import ( "encoding/base64" "math/big" "math/rand" ) func GenerateBigInt(rand *rand.Rand, bits uint) *big.Int { ret := big.NewInt(0) one := big.NewInt(1) bound := one.Lsh(one, bits) return ret.Rand(rand, bound) } func GenerateBytes(rand *rand.Rand, min, ...
graphcore/poplibs
lib/popops/DynamicSliceInternal.hpp
<filename>lib/popops/DynamicSliceInternal.hpp // Copyright (c) 2019 Graphcore Ltd. All rights reserved. #ifndef DYNAMIC_SLICE_INTERNAL_HPP #define DYNAMIC_SLICE_INTERNAL_HPP #include <iostream> #include <memory> #include <vector> namespace popops { namespace sliceInternal { // How to partition work across tiles. templ...
haizaar/crossbar-examples
iotcookbook/device/yun/ambientlight/ambientlight_yun.js
// // Copyright (C) Tavendo GmbH. Licensed under the MIT license. // // This program bridges Arduino Yun to WAMP / Crossbar.io over Firmata (https://github.com/firmata/protocol). // and sends the state of a Tinkerit LDR module as a PubSub event // // Firmata is a MIDI-based protocol for communication between MCUs and h...
zcdev/project3
client/src/components/CampaignComponents/MainDisplay/CharacterListItem.js
<reponame>zcdev/project3 import React from "react"; function CharacterListItem(props) { return ( <div id={props.character._id} onClick={() => props.addCharacterToCombatants(props.character)} className={props.id % 2 === 0 ? "character-list-item light" : "character-list-item dark"} ...
krisgrint/titus
packages/titus-db-manager/lambda.js
'use strict' const AWS = require('aws-sdk') const logger = require('pino')() function getSecret(secretName) { return new Promise((resolve, reject) => { const client = new AWS.SecretsManager() client.getSecretValue({ SecretId: secretName }, function (err, data) { if (err) { console.log(err) ...
dsilakov/opa-fm
Esm/ib/src/smi/sm/sm_congestion.c
<reponame>dsilakov/opa-fm /* BEGIN_ICS_COPYRIGHT2 **************************************** Copyright (c) 2015-2020, Intel Corporation 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 mus...
fossabot/jeak-framework
src/main/java/de/fearnixx/jeak/event/bot/BotEvent.java
package de.fearnixx.jeak.event.bot; import de.fearnixx.jeak.IBot; /** * Created by MarkL4YG on 09.06.17. */ public class BotEvent implements IBotEvent { private IBot bot; public BotEvent setBot(IBot bot) { this.bot = bot; return this; } @Override public IBot getBot() { ...
SimplyVC/panic
alerter/test/channels_manager/apis/test_slack_bot_api.py
<filename>alerter/test/channels_manager/apis/test_slack_bot_api.py import unittest from unittest.mock import patch from slack_sdk import WebClient from src.channels_manager.apis.slack_bot_api import SlackBotApi class TestSlackBotApi(unittest.TestCase): def setUp(self) -> None: self.test_bot_token = '<KE...
umanwizard/rust-krb5-src
krb5/src/lib/krb5/krb/auth_con.h
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ifndef KRB5_AUTH_CONTEXT #define KRB5_AUTH_CONTEXT #include "../rcache/memrcache.h" struct _krb5_auth_context { krb5_magic magic; krb5_address * remote_addr; krb5_address * remote_port; krb5_address * local_addr;...
sfqwo/keril
client/src/App.js
import { observer } from 'mobx-react-lite'; import React, { useContext, useEffect, useState } from 'react'; import { Spinner } from 'react-bootstrap'; import { BrowserRouter } from 'react-router-dom'; import { Context } from '.'; import AppRouter from './components/AppRouter'; import NavBar from './components/NavBar'; ...
jprinet/opentelemetry-java-instrumentation
instrumentation/apache-httpasyncclient-4.1/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/apachehttpasyncclient/HttpUriRequest.java
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.instrumentation.apachehttpasyncclient; import java.net.URI; import org.apache.http.client.methods.HttpRequestBase; final class HttpUriRequest extends HttpRequestBase { private final String metho...
ScalablyTyped/SlinkyTyped
a/activex-word/src/main/scala/typingsSlinky/activexWord/Word/EmailAuthor.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.activexWord.Word import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait EmailAuthor extends StObject { ...
ashendes/carbon-multitenancy
components/tenant-mgt/org.wso2.carbon.tenant.mgt.core/src/main/java/org/wso2/carbon/tenant/mgt/core/util/TenantCoreUtil.java
package org.wso2.carbon.tenant.mgt.core.util; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.osgi.framework.BundleContext; import org.osgi.util.tracker.ServiceTracker; import org.wso2.carbon.registry.core.Resource; import org.wso2.carbon.registry.core.exceptions.Registr...
jparams/object-creator
src/main/java/com/jparams/object/builder/provider/QueueProvider.java
<reponame>jparams/object-creator<filename>src/main/java/com/jparams/object/builder/provider/QueueProvider.java package com.jparams.object.builder.provider; import java.util.ArrayDeque; import java.util.Queue; import com.jparams.object.builder.Context; import com.jparams.object.builder.type.Type; public class QueuePr...
Essane/PartimeJob
src/main/java/com/essane/partimejob/service/EmployeeBookmarkedService.java
<filename>src/main/java/com/essane/partimejob/service/EmployeeBookmarkedService.java package com.essane.partimejob.service; import com.baomidou.mybatisplus.extension.service.IService; import com.essane.partimejob.domain.EmployeeBookmarked; import com.essane.partimejob.vo.EmployeeBookmarkedVo; import java.util.List; ...
ScalablyTyped/SlinkyTyped
a/antv__g2/src/main/scala/typingsSlinky/antvG2/mod/AxisTitle.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.antvG2.mod import typingsSlinky.antvG2.antvG2Strings.center import typingsSlinky.antvG2.antvG2Strings.end import typingsSlinky.antvG2.antvG2Strings.start import typingsSlinky.antvG2.mod.Styles.text import org.scalablytyped.runtime.StObject import scala.scalajs....
zhangkn/ToolUtility
_Modules/Services/Mqtt/MQService.h
<gh_stars>0 // // MessageService.h // fallen.ink // // Created by 李杰 on 2/9/15. // #import "_greats.h" #if __has_include(<MQTTSession/MQTTSession.h>) # define __has_MQTTSession 1 # import <MQTTSession/MQTTSession.h> #elif __has_include("MQTTSession.h") # define __has_MQTTSession 1 # import "MQTTSession.h" #...
SoftwareDev/mat-plot-lib
examples/api/joinstyle.py
#!/usr/bin/env python """ Illustrate the three different join styles """ import numpy as np import matplotlib.pyplot as plt def plot_angle(ax, x, y, angle, style): phi = angle/180*np.pi xx = [x+.5,x,x+.5*np.cos(phi)] yy = [y,y,y+.5*np.sin(phi)] ax.plot(xx, yy, lw=8, color='blue', solid_joinstyle=style...
dovotori/dovotori.github.io
public/shaders/diorama/shadow.js
import { uniformVertShadow, fragment, shadowLocations } from '../utils/shadow'; import { locations, getNaturalHeight, getNormale } from '../utils/terrain'; const vertex = ` attribute vec3 position; uniform mat4 projection; uniform mat4 model; uniform mat4 view; uniform mat3 normalMatrix; uniform float fogStart; unifo...
Darlingnotin/Antisocial_VR
script-archive/utilities/diagnostics/orbitingSound.js
// // orbitingSound.js // examples // // Created by <NAME> on December 4, 2014 // Copyright 2014 High Fidelity, Inc. // // An object playing a sound appears and circles you, changing brightness with the audio playing. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE o...
uvbs/FullSource
Source/Source/Tools/SceneEditor/DLG_MainTool.h
<reponame>uvbs/FullSource<filename>Source/Source/Tools/SceneEditor/DLG_MainTool.h //{{AFX_INCLUDES() #include "_frmframe.h" //}}AFX_INCLUDES #if !defined(AFX_DLG_MAINTOOL_H__476D6FAB_4F4F_4D6E_91AD_CA342B0AB5DC__INCLUDED_) #define AFX_DLG_MAINTOOL_H__476D6FAB_4F4F_4D6E_91AD_CA342B0AB5DC__INCLUDED_ #if _MSC_VER >...
jxg01713/zstack
header/src/main/java/org/zstack/header/zone/ZoneState.java
package org.zstack.header.zone; public enum ZoneState { Enabled, Disabled, }
Luligabi1/CoxinhaUtilities
src/main/java/me/luligabi/coxinhautilities/common/recipe/drying/DryingRecipeJsonFormat.java
<reponame>Luligabi1/CoxinhaUtilities package me.luligabi.coxinhautilities.common.recipe.drying; import com.google.gson.JsonObject; public class DryingRecipeJsonFormat { JsonObject ingredient; String outputItem; int dryingTime; }
chrismattmann/oodt
pushpull/src/main/java/org/apache/oodt/cas/pushpull/retrievalsystem/DownloadThreadEvaluator.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 may ...
hrxcodes/cbftp
src/localtransfer.h
<gh_stars>1-10 #pragma once #include <string> #include <fstream> #include "core/eventreceiver.h" #include "path.h" #define CHUNK 524288 class TransferMonitor; class FTPConn; class LocalTransfer : public Core::EventReceiver { public: LocalTransfer(); bool active() const; void openFile(bool); int getPort() c...
ibireme/yy_music_base
yy_music_base/ym_fifo.c
// // ym_buffer.c // yy_music // // Created by ibireme on 14-4-26. // Copyright (c) 2014 ibireme. All rights reserved. // #include "ym_fifo.h" #include "ym_util.h" #define YM_FIFO_INIT_COUNT 2048 #define YM_FIFO_FACTOR 16 struct _ym_fifo { void *mem; size_t item_total; size_t item_index; size_t i...
minluzhou/test1
redis/redis-console/src/test/java/com/ctrip/xpipe/redis/console/dao/OrganizationDaoTest.java
<filename>redis/redis-console/src/test/java/com/ctrip/xpipe/redis/console/dao/OrganizationDaoTest.java package com.ctrip.xpipe.redis.console.dao; import com.ctrip.xpipe.redis.console.AbstractConsoleIntegrationTest; import com.ctrip.xpipe.redis.console.model.OrganizationTbl; import org.junit.Assert; import org.junit.Te...
jufeng98/Java-master
spring-embed-arthas/src/main/java/org/javamaster/spring/embed/arthas/service/impl/UserServiceImpl.java
package org.javamaster.spring.embed.arthas.service.impl; import lombok.extern.slf4j.Slf4j; import org.javamaster.spring.embed.arthas.model.CreateUserReqVo; import org.javamaster.spring.embed.arthas.model.SysUser; import org.javamaster.spring.embed.arthas.service.UserService; import org.springframework.beans.BeanUtils;...
Julian-Theis/AVATAR
avatar/relgan/utils/utils.py
import numpy as np import tensorflow as tf import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import os import pprint from avatar.relgan.utils.text_process import * pp = pprint.PrettyPrinter() def generate_samples(sess, gen_x, batch_size, generated_num, output_file=None, get_code=True): # Ge...
ouankou/rose
projects/Rose-To-LLVM/src/rosetollvm/ConstantExpressionEvaluator.cpp
#include <rosetollvm/ConstantExpressionEvaluator.h> /** * */ ConstantValue ConstantExpressionEvaluator::getValueExpressionValue(SgValueExp *valExp) { ConstantValue subtreeVal; if (isSgCharVal(valExp)) { subtreeVal.setIntValue(isSgCharVal(valExp) -> get_value()); } else if (isSgIntVal(valExp))...
masud-technope/ACER-Replication-Package-ASE2017
corpus/class/eclipse.jdt.core/1490.java
<reponame>masud-technope/ACER-Replication-Package-ASE2017 package test.tags.others; /** * @author Zhao * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class X02 { }
tioga/notify-server
tioga-notify-kernel/src/test/java/org/tiogasolutions/notify/kernel/task/TaskGeneratorTest.java
package org.tiogasolutions.notify.kernel.task; import org.springframework.beans.factory.annotation.Autowired; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import org.tiogasolutions.notify.kernel.domain.DomainKernel; import org.tiogasolutions...
lu1995happy/Leetcode
Leetcode/556_nextGreaterElementIII.java
<gh_stars>0 import java.util.Arrays; public class nextGreaterElementIII { //At first, lets look at the edge cases - //If all digits sorted in descending order, then output is always “Not Possible”. For example, 4321. //If all digits are sorted in ascending order, then we need to swap last two digits. //For exampl...
cdsc-github/parade-ara-simulator
benchmarks/SimicsHeader.cpp
<reponame>cdsc-github/parade-ara-simulator #include "SimicsHeader.h" #include <stdint.h> #include <stdlib.h> #include "m5op.h" #define MAGIC_LWI_REGISTER 0xC000 #define MAGIC_LWI_CLEAR_INTERRUPT 0xC004 #define MAGIC_LWI_CHECK 0xC00C #define MAGIC_LCACC_RESERVE 0xC010 #define MAGIC_LCACC_REQUEST 0xC011 #define MAGIC_L...
Tavi3h/LeetCode
src/pers/tavish/solution/medium/BinaryTreeRightSideView.java
package pers.tavish.solution.medium; import java.util.LinkedList; import java.util.List; import java.util.Queue; import pers.tavish.struct.TreeNode; /* Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example:...
Zhoutall/stasis
src/stasis/operations/prepare.c
/*--- This software is copyrighted by the Regents of the University of California, and other parties. The following terms apply to all files associated with the software unless explicitly disclaimed in individual files. The authors hereby grant permission to use, copy, modify, distribute, and license this software and...