repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
kudocc/CCKit
CCKit/util/NSObject+CCKit.h
// // NSObject+CCKit.h // demo // // Created by KudoCC on 16/5/28. // Copyright © 2016年 KudoCC. All rights reserved. // #import <Foundation/Foundation.h> @interface NSObject (CCKit) - (id)cc_deepCopy; + (void)logMethodNames; @end
trevorcarlson/Graphite
contrib/orion/Buffer/WordlineUnit.cc
#include "WordlineUnit.h" #include "SRAM.h" #include "TechParameter.h" WordlineUnit::WordlineUnit( const string& wl_model_str_, const SRAM* sram_ptr_, const TechParameter* tech_param_ptr_ ) { if (wl_model_str_ == string("RW_WORDLINE")) { m_wl_model = RW_WORDLINE; } else if (wl_model_str_ == string("...
Mastergatto/cen64-rsp
Interface.h
/* ============================================================================ * Interface.h: Reality Shader Processor (RSP) Interface. * * RSPSIM: Reality Signal Processor SIMulator. * Copyright (C) 2013, <NAME>. * All rights reserved. * * This file is subject to the terms and conditions defined in * fi...
hdm/mac-tracker
data/js/8c/1f/64/7a/a0/00.36.js
macDetailCallback("8c1f647aa000/36",[{"d":"2022-02-09","t":"add","s":"ieee-oui36.csv","a":"133 12 Ave SE Calgary Alberta CA T2G 0Z9","c":"CA","o":"XSENSOR Technology Corp."}]);
ankitsumitg/python-projects
dnaSequence/test_candidateOverlapsTarget.py
""" Do Not Edit this file. You may and are encouraged to look at it for reference. """ import unittest import dnaSequencing class TestCandidateOverlapsTarget(unittest.TestCase): def test001_candidateOverlapsTargetExists(self): self.assertTrue('candidateOverlapsTarget' in dir(dnaSequencing), ...
brittsikora/clinical-timeline
src/defaults/index.js
import settings from './settings'; import syncSettings from './syncSettings'; import controls from './controls'; import syncControls from './syncControls'; export default { settings: settings, syncSettings: syncSettings, controls: controls, syncControls: syncControls };
reneelpetit/codestream-server
api_server/modules/streams/test/put_stream/message_to_team_test.js
<filename>api_server/modules/streams/test/put_stream/message_to_team_test.js 'use strict'; const MessageToStreamTest = require('./message_to_stream_test'); class MessageToTeamTest extends MessageToStreamTest { get description () { return 'members of the team should receive a message with the stream when a public ...
minimalsm/js-ipfs-repo
packages/ipfs-repo/test/options-test.js
/* eslint-env mocha */ import { expect } from 'aegir/utils/chai.js' import sinon from 'sinon' import tempDir from 'ipfs-utils/src/temp-dir.js' import rimraf from 'rimraf' import { createRepo } from '../src/index.js' import { loadCodec } from './fixtures/load-codec.js' import { createBackend } from './fixtures/create-b...
jazzfool/Xu
docs/html/search/all_f.js
var searchData= [ ['theme_97',['Theme',['../classxu_1_1_theme.html',1,'xu']]], ['type_98',['type',['../structxu_1_1_draw_command.html#a115fae8e0556a13e6542f899a35cd365',1,'xu::DrawCommand']]] ];
huerta2502/DAVPD
Davpd/Time.java
import javax.swing.JPanel; public class Time extends Thread { private boolean stop; private int s; private Contest contest; public Time(JPanel contest) { stop = false; this.contest = (Contest) contest; } @Override public void run(){ while(!stop){ try { ...
Diez-Canseco-Ramirez/bazil
util/edtls/client.go
package edtls import ( "crypto/subtle" "crypto/tls" "errors" "fmt" "net" "github.com/agl/ed25519" ) var ( // ErrNotEdTLS is returned if the TLS peer does not support edtls. ErrNotEdTLS = errors.New("peer does not support edtls") ) // WrongPublicKeyError is returned if the server public key did not // match....
uk-gov-mirror/ministryofjustice.disclosure-checker
app/errors/errors.rb
module Errors class ResultsNotFound < StandardError; end class InvalidSession < StandardError; end class ReportCompleted < StandardError; end end
spadapet/ff_game_library
source/ff.dx12/source/access.h
<gh_stars>0 #pragma once namespace ff::dx12 { class commands; class fence; class gpu_descriptor_allocator; class heap; class queue; class resource; ID3D12GraphicsCommandListX* get_command_list(const ff::dx12::commands& obj); ID3D12CommandAllocatorX* get_command_allocator(const ff::dx12...
billyfrost418/james-project
server/queue/queue-activemq/src/main/java/org/apache/james/queue/activemq/ActiveMQMailQueueItem.java
<filename>server/queue/queue-activemq/src/main/java/org/apache/james/queue/activemq/ActiveMQMailQueueItem.java /**************************************************************** * Licensed to the Apache Software Foundation (ASF) under one * * or more contributor license agreements. See the NOTICE file * * distribu...
RHINO-VIP/RHINO-VIP.github.io
docs/html/search/files_3.js
var searchData= [ ['main_2ecpp',['main.cpp',['../main_8cpp.html',1,'']]], ['main_5fip_5ftest_2ecpp',['main_ip_test.cpp',['../main__ip__test_8cpp.html',1,'']]], ['main_5fip_5ftest_5fread_2ecpp',['main_ip_test_read.cpp',['../main__ip__test__read_8cpp.html',1,'']]], ['message_2ecpp',['Message.cpp',['../Message_8cp...
kantega/Flyt-cms
modules/core/src/java/no/kantega/publishing/admin/taglib/PrintContentNavigatorTag.java
<gh_stars>1-10 /* * Copyright 2009 Kantega AS * * 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 applicab...
rpuntaie/c-examples
cpp/language_default_comparisons_8.cpp
<gh_stars>0 /* g++ --std=c++20 -pthread -o ../_build/cpp/language_default_comparisons_8.exe ./cpp/language_default_comparisons_8.cpp && (cd ../_build/cpp/;./language_default_comparisons_8.exe) https://en.cppreference.com/w/cpp/language/default_comparisons */ #include <compare> #include <string> struct Base { std::s...
node-dot-cpp/safe-memory
checker/test/instrument/fix_Z2_args.cpp
// RUN: %check_safememory_instrument --fix-only %s %t %p #include <safememory/safe_ptr.h> #include <safe_types.h> using namespace safememory; struct UnsafeType { int call(int i) { return i; } UnsafeType& operator<<(int) { return *this; } }; struct Bad { SafeType StMember; owning_ptr<SafeType> StPtr; ow...
mehdilaktaf/twitter-clone
client/components/Modal.js
<filename>client/components/Modal.js export default ({ onClose, children }) => ( <div> <div className="overlay" onClick={onClose} /> <div className="modal"> {children} </div> <style jsx>{` .overlay { background-color: rgba(65,65,85,0.5...
gwr3n/jsdp
jsdp/src/main/java/jsdp/app/inventory/capital/CF_StateSpace.java
package jsdp.app.inventory.capital; import java.util.ArrayList; import java.util.Iterator; import java.util.function.Function; import jsdp.sdp.Action; import jsdp.sdp.HashType; import jsdp.sdp.State; import jsdp.sdp.StateSpace; public class CF_StateSpace extends StateSpace<CF_StateDescriptor> { public CF_Stat...
LarmIg/Algoritmos-Python
CAPITULO 7/Exercicio C.py
<reponame>LarmIg/Algoritmos-Python<gh_stars>1-10 # Elaborar um programa que leia oito elementos numéricos inteiros em uma matriz A de uma dimensão do tipo vetor. Construir uma matriz B de mesma dimensão e tipo com os elementos da matriz A multiplicados por 5. Montar uma rotina de pesquisa binária, para pesquisar os el...
quanticc/sentry
src/main/java/top/quantic/sentry/service/FlowService.java
package top.quantic.sentry.service; import org.reflections.Reflections; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.context.event.ApplicationReadyEvent;...
phpyandong/opentaobao
model/bus/TaobaoBusBusnumberGetResultSet.go
<reponame>phpyandong/opentaobao package bus // TaobaoBusBusnumberGetResultSet type TaobaoBusBusnumberGetResultSet struct { // errCode BUSNUMBER_SEARCH_NOBUS 找不到班次 POWER_D权限问题 ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"` // errMsg ErrMsg string `json:"err_ms...
kmestry/PROBLEM_SOLVING_HACKERRANK_LEETCODE
src/com/geeksforgeeks/CountDigitsMaths.java
package com.geeksforgeeks; public class CountDigitsMaths { public static void main(String[] args) { int ans = new CountDigitsMaths().countDigitsLogarithmic(-2); System.out.println("ans = " + ans); int ans1 = new CountDigitsMaths().countDigits(-2121212187); System.out.println("ans ...
MikeFalowski/taurus
lib/taurus/test/__init__.py
<reponame>MikeFalowski/taurus #!/usr/bin/env python ############################################################################# ## # This file is part of Taurus ## # http://taurus-scada.org ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Taurus is free software: you can redistribute it and/or mo...
binghuang2018/aqml
io2/orca.py
#!/usr/bin/env python import re, os, sys import aqml.io2 as io2 import aqml.cheminfo as co import aqml.cheminfo.core as cc import numpy as np T, F = True, False uc = io2.Units() cardinal = {'vdz':2, 'vtz':3, 'vqz':4} bsts = ['aug-cc-pvdz', 'aug-cc-pvtz', 'aug-cc-pvqz', \ 'cc-pvdz', 'cc-pvtz', 'cc-pvqz', ...
cryptable/ejbca-rootca
ejbca_ce_6_15_3_0/modules/cesecore-common/src/org/cesecore/certificates/ca/ApprovalRequestType.java
<filename>ejbca_ce_6_15_3_0/modules/cesecore-common/src/org/cesecore/certificates/ca/ApprovalRequestType.java /************************************************************************* * * * EJBCA: The OpenSource Certificate Authority ...
raamatkeijo-test/rest-whois
app/models/domain.rb
class Domain include ActiveModel::Model STATUS_BLOCKED = 'Blocked'.freeze STATUS_RESERVED = 'Reserved'.freeze STATUS_DISCARDED = 'deleteCandidate'.freeze STATUS_AT_AUCTION = 'AtAuction'.freeze STATUS_PENDING_REGISTRATION = 'PendingRegistration'.freeze STATUS_DISPUTED = 'Disputed'.freeze INACTIVE_STATU...
samya-ak/sync-it
client/src/routes/Test.js
<reponame>samya-ak/sync-it const Test = () => { return <div>Test page</div>; }; export default Test;
SurveyTools/FlightLogger
src/com/vulcan/flightlogger/util/SystemUtils.java
package com.vulcan.flightlogger.util; import android.content.ContextWrapper; import android.content.pm.PackageInfo; import android.content.pm.PackageManager.NameNotFoundException; import android.util.Log; public class SystemUtils { public static String getVersionString(ContextWrapper contextWrapper) { try { ...
Golangltd/www.Xshooting.com.vender
vendor/src/github.com/LollipopGo/lollipopgo/network/tcp_server.go
<gh_stars>10-100 package network import ( "FenDZ/glog-master" "net" "sync" "time" "github.com/LollipopGo/lollipopgo/log" ) type TCPServer struct { Addr string MaxConnNum int PendingWriteNum int NewAgent func(*TCPConn) Agent ln net.Listener conns ConnSet mutex...
brightspace-bot/activities
scripts/remove_attest_from_project.js
import { readFileSync, writeFileSync } from 'fs'; //read in the package file const file_contents = JSON.parse(readFileSync('package.json')); if ('dependencies' in file_contents) { if ('attest' in file_contents.dependencies) { delete file_contents.dependencies.attest; } } writeFileSync('package.json', JSON.stringify...
sergey-shambir/cg_course_examples
chapter_1/lesson_03/DispatchEvent.cpp
#include "stdafx.h" #include "DispatchEvent.h" void sdl::DispatchEvent(const SDL_Event &event, IInputEventAcceptor &acceptor) { switch (event.type) { case SDL_KEYDOWN: acceptor.OnKeyDown(event.key); break; case SDL_KEYUP: acceptor.OnKeyUp(event.key); break; case SDL_...
vtex/react-jsonschema-table
src/components/endlessTable/views/Footer.react.js
<filename>src/components/endlessTable/views/Footer.react.js import React from 'react' import PropTypes from 'prop-types' import {FormattedMessage} from 'react-intl' const Footer = function(props) { return ( <div className="fixed bottom-0 f5 w-100 bt b--light-gray pa1 bg-navy"> {props.totalRows}&nbsp;...
davidraditya/OAI-Powder
cmake_targets/lte_build_oai/build/CMakeFiles/Rel14/NeighCellsPerBandclassCDMA2000.c
/* * Generated by asn1c-0.9.24 (http://lionet.info/asn1c) * From ASN.1 module "EUTRA-RRC-Definitions" * found in "fixed_grammar.asn" * `asn1c -gen-PER` */ #include "NeighCellsPerBandclassCDMA2000.h" static asn_TYPE_member_t asn_MBR_NeighCellsPerBandclassCDMA2000_1[] = { { ATF_NOFLAGS, 0, offsetof(struct Neigh...
abdelqader-alomari/amman-401d4-java
class-06/Demo/src/main/java/demo/SpaceShuttle.java
<reponame>abdelqader-alomari/amman-401d4-java<filename>class-06/Demo/src/main/java/demo/SpaceShuttle.java package demo; public class SpaceShuttle extends TransportMachine implements Flight { public SpaceShuttle(int doors) { super(doors); } public void goToMoon() { System.out.println("go to...
koladeg/Hire-dev
backend/node_modules/cloudinary/lib/utils/consts.js
const DEFAULT_RESPONSIVE_WIDTH_TRANSFORMATION = { width: "auto", crop: "limit", }; const DEFAULT_POSTER_OPTIONS = { format: 'jpg', resource_type: 'video', }; const DEFAULT_VIDEO_SOURCE_TYPES = ['webm', 'mp4', 'ogv']; const CONDITIONAL_OPERATORS = { "=": 'eq', "!=": 'ne', "<": 'lt', ">": 'gt', "<=":...
CosmoConsole/PhotonicCraft
1.7/src/main/java/email/com/gmail/cosmoconsole/forge/photoniccraft/block/BlockMerger.java
<gh_stars>0 package email.com.gmail.cosmoconsole.forge.photoniccraft.block; import java.util.Random; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import email.com.gmail.cosmoconsole.forge.photoniccraft.LaserDirection; import email.com.gmail.cosmoconsole.forge.photoniccraft.ModP...
alif-munim/restoration-bruh
middleware/verificationCheck.js
<gh_stars>1-10 const mongoose = require("mongoose"); const User = mongoose.model("User"); const bcrypt = require("bcryptjs"); exports.verificationCheck = (req, res, next) => { User.aggregate([ { $match: { $or: [{ email: req.body.email }, { username: req.body.email }], }, }, ...
hsxyl/CowPredict
src/main/java/com/example/demo/model/param/JudgeStatusParam.java
package com.example.demo.model.param; import lombok.Data; import java.time.LocalDateTime; import java.util.List; /** * @author xushenbao * @desc 添加描述 * @create 2020/1/12 */ @Data public class JudgeStatusParam { LocalDateTime beginTime; LocalDateTime endTime; List<Double> valueList; }
NavigoSolutions/dry-api
dry-api-core/src/main/java/com/navigo3/dryapi/core/util/CollectionUtils.java
<reponame>NavigoSolutions/dry-api package com.navigo3.dryapi.core.util; import java.util.Collection; import java.util.Iterator; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.BiConsumer; import java.util.function.BiFunction; import java.util.stream.Stream; public class CollectionUtils { ...
hypocrite30/LeetCode-Daily
src/1342. Number of Steps to Reduce a Number to Zero/Solution.java
<gh_stars>0 /* 1342. Number of Steps to Reduce a Number to Zero */ public class Solution { public int numberOfSteps(int num) { int res = 0; while (num > 0 && ++res > 0) num = num % 2 == 0 ? num / 2 : num - 1; return res; } }
gashirar/oci-cloud-controller-manager
vendor/github.com/oracle/oci-go-sdk/filestorage/update_mount_target_details.go
// Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. // Code generated. DO NOT EDIT. // File Storage Service API // // The API for the File Storage Service. // package filestorage import ( "github.com/oracle/oci-go-sdk/common" ) // UpdateMountTargetDetails The representation of UpdateMou...
unibrew/jbpm-work-items
rest-service-workitem/src/test/java/org/jbpm/contrib/demoservices/dto/PreBuildRequest.java
package org.jbpm.contrib.demoservices.dto; /** * @author <a href="mailto:<EMAIL>"><NAME></a> * @author <NAME> */ public class PreBuildRequest { //protected static ObjectMapper objectMapper = new ObjectMapper(); private Scm scm; private Request callback; private Request heartBeat; privat...
l1uy0ng/sf_bmp
app/src/main/java/com/k2/mobile/app/model/cache/FileNameGenerator.java
/* * Copyright (c) 2015. OPPO Co., Ltd. */ package com.k2.mobile.app.model.cache; /** * Author: wyouflf * Date: 14-5-16 * Time: 上午11:25 */ public interface FileNameGenerator { public String generate(String key); }
gee-forr/morpheus-cli
lib/morpheus/cli/monitoring_incidents_command.rb
require 'morpheus/cli/cli_command' require 'morpheus/cli/mixins/monitoring_helper' class Morpheus::Cli::MonitoringIncidentsCommand include Morpheus::Cli::CliCommand include Morpheus::Cli::MonitoringHelper set_command_name :'monitor-incidents' register_subcommands :list, :stats, :get, :history, :notifications,...
Devteamvietnam/iTap
src/main/java/com/devteam/core/util/dataformat/DataSerializer.java
package com.devteam.core.util.dataformat; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.Reader; import java.io.StringReader; import java.io.StringWrit...
bbejeck/ksql
ksql-metastore/src/main/java/io/confluent/ksql/metastore/model/StructuredDataSource.java
<gh_stars>1-10 /* * Copyright 2018 Confluent Inc. * * Licensed under the Confluent Community License (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.confluent.io/confluent-community-license * * Unless required by appl...
wraseman/wtp-optimization
src/wtp/save_wtp.cpp
/* save_wtp.c */ #include "wtp.h" int save_wtp(char *file_name, struct ProcessTrain *train, FILE *ferr) /* * Purpose: Save process train data to a data file.. * * Input: * file_name : The calling routine is responsibal for insuring that the * file name is valid... such as having a .wtp extension. *...
JackChan1999/boohee_v5.6
src/main/java/com/boohee/user/view/UserHeightView.java
<reponame>JackChan1999/boohee_v5.6 package com.boohee.user.view; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.widget.FrameLayout; import android.widget.LinearLayout; import android.widget.TextView; import com.boohee.model.User; import com.boohee....
Hork-Engine/Hork-Source
Source/Runtime/PunctualLightComponent.cpp
<gh_stars>10-100 /* Hork Engine Source Code MIT License Copyright (C) 2017-2022 <NAME>. This file is part of the Hork Engine Source Code. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software withou...
Kvazikot/VideoProjects
VideoCube/VideoCubeCV/libs/app7-master/3PartyLibs/qwt-6.1.4/doc/html/class_qwt_painter_command.js
<filename>VideoCube/VideoCubeCV/libs/app7-master/3PartyLibs/qwt-6.1.4/doc/html/class_qwt_painter_command.js var class_qwt_painter_command = [ [ "Type", "class_qwt_painter_command.html#a6619a454c4332c02412611467935b7ba", [ [ "Invalid", "class_qwt_painter_command.html#a6619a454c4332c02412611467935b7baa501f44c9c...
adolci/nagios-plugins
check_atlas_status.py
<gh_stars>0 #!/usr/bin/env python # vim:ts=4:sts=4:sw=4:et # # Author: <NAME> # Date: 2017-06-20 17:24:55 +0200 (Tue, 20 Jun 2017) # # https://github.com/harisekhon/nagios-plugins # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn # an...
PowerlessReimplemented/HarmonicsCore
src/main/java/powerlessri/harmonics/gui/widget/slot/ItemSlotPanel.java
<gh_stars>0 package powerlessri.harmonics.gui.widget.slot; import com.google.common.base.Preconditions; import net.minecraft.item.ItemStack; import powerlessri.harmonics.gui.debug.RenderEventDispatcher; import powerlessri.harmonics.gui.widget.AbstractContainer; import javax.annotation.Nonnull; import java.util.*; imp...
ParsIOT/Find_BLE
app/src/main/java/com/parsin/bletool/internal/Constants.java
<reponame>ParsIOT/Find_BLE<gh_stars>0 package com.parsin.bletool.internal; public class Constants { public static int DEFAULT_BAR = 60; private Constants() { } // public static double[] weightArr = {0.1995, 0.1760, 0.1210, 0.0648, 0.027, 0.005}; public static double[] weightArr = {0.1995, 0.1760,...
stoyanov7/SoftwareUniversity
JavaScriptCore/JavaScriptApplications/AJAX-and-jQuery-AJAX/03.Github-Repos/loadRepos.js
<reponame>stoyanov7/SoftwareUniversity function loadRepos() { let reposUl = $("#repos"); reposUl.html(""); let username = $("#username").val(); $.ajax({ method: "GET", url: `https://api.github.com/users/${username}/repos`, dataType: "json", error: () => { ...
janpio/prisma-engines
query-engine/connector-test-kit/src/test/scala/queries/filters/ListFilterSpec.scala
<filename>query-engine/connector-test-kit/src/test/scala/queries/filters/ListFilterSpec.scala package queries.filters import org.scalatest.{FlatSpec, Matchers} import util.ConnectorCapability.JoinRelationLinksCapability import util.ConnectorTag.PostgresConnectorTag import util._ // RS: Ported class ListFilterSpec ext...
roldanx/oskar
oskar-spark/src/main/java/org/opencb/oskar/spark/variant/analysis/wrappers/PlinkWrapper.java
<reponame>roldanx/oskar<gh_stars>1-10 package org.opencb.oskar.spark.variant.analysis.wrappers; import org.apache.commons.lang.StringUtils; import org.apache.spark.sql.SparkSession; import org.opencb.biodata.models.metadata.Individual; import org.opencb.biodata.models.metadata.Sample; import org.opencb.biodata.models....
AntoineJT/NazaraEngine
src/Nazara/Graphics/DeferredFogPass.cpp
<gh_stars>0 // Copyright (C) 2017 <NAME> // This file is part of the "Nazara Engine - Graphics module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Graphics/DeferredFogPass.hpp> #include <Nazara/Graphics/AbstractViewer.hpp> #include <Nazara/Graphics/SceneData.hpp> #inc...
bg1bgst333/Sample
designpattern/mvvm/mvvm/src/mvvm/member.h
<gh_stars>1-10 // 二重インクルード防止 #ifndef __MEMBER_H_ #define __MEMBER_H_ // ヘッダのインクルード // 独自のヘッダ #include "mediator.h" // interface_mediator // 前方宣言 class interface_mediator; // インターフェースinterface_member class interface_member{ // 公開メンバ public: // 公開メンバ関数 // コンストラクタとデストラクタ interface_member(){}; // コンストラ...
JoseHerminioCollas/rgb-client
src/goatstone/components/effect-select.js
/* EffectSelect : a component for selecting an effect from a series of choices */ import { h, input, label } from '@cycle/dom' function EffectSelect(sources) { const inputClassName = '.effect' // TODO should copy be another stream????? const copy = sources.copy const effects = [copy.effect.options.glow, copy....
henanewind/rpc
rpc-common/src/main/java/com/github/houbb/rpc/common/util/IpUtils.java
package com.github.houbb.rpc.common.util; /** * IP 工具類 * @since 0.2.0 */ public final class IpUtils { /** * 构建对应的 ip:port 结果 * @param ip 地址 * @param port 端口 * @return 结果 * @since 0.2.0 */ public static String ipPort(String ip, int port) { return ip+":"+port; } }
pedritoelcabra/busyville
src/js/game/classes/items/chainhat.js
<filename>src/js/game/classes/items/chainhat.js 'use strict'; var Head = require('./head'); var Randomizer = require('../randomizer'); var ChainHat = function () { Head.call(this); this.name = 'Chain Hat'; this.className = 'ChainHat'; this.graphic = 'chainhat'; }; ChainHat.prototype = Object.create(...
tue-robotics/ed
include/ed/variant.h
<filename>include/ed/variant.h #ifndef ED_VARIANT_H_ #define ED_VARIANT_H_ // Directly taken from http://stackoverflow.com/questions/5319216/implementing-a-variant-class #include <boost/shared_ptr.hpp> #include <string> namespace ed { template <typename T> struct TypeWrapper { typedef T TYPE; typedef const...
hsav20/RemoteDevice
kcdevice/src/main/java/ltd/kcdevice/view/SpeakerSetupView.java
<reponame>hsav20/RemoteDevice<filename>kcdevice/src/main/java/ltd/kcdevice/view/SpeakerSetupView.java package ltd.kcdevice.view; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.SeekBar; import ltd.advskin.MSKIN; impo...
TimCook1/trident
storage_drivers/ontap/api/rest/client/s_a_n/iscsi_service_delete_responses.go
// Code generated by go-swagger; DO NOT EDIT. package s_a_n // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" "github.com/go-openapi/strfmt" "github.com/netapp/trident/storage...
lisaong/Accera
accera/ir/include/exec/ExecutionPlanOps.h
//////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. ////////////////////////////////////////////////////////////////...
Anlon-Burke/vespa
searchlib/src/main/java/com/yahoo/searchlib/expression/StringResultNode.java
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.searchlib.expression; import com.yahoo.text.Utf8; import com.yahoo.vespa.objects.Deserializer; import com.yahoo.vespa.objects.ObjectVisitor; import com.yahoo.vespa.objects.Serializer; import java...
zviniciusricardo/orange-talents-03-template-casa-do-codigo
src/main/java/br/com/zupacademy/vinicius/casadocodigo/categoria/CategoriaForm.java
package br.com.zupacademy.vinicius.casadocodigo.categoria; import br.com.zupacademy.vinicius.casadocodigo.validator.UniqueValue; import javax.validation.constraints.NotBlank; public class CategoriaForm { @NotBlank @UniqueValue(domainClass = Categoria.class, fieldName = "nome") private String nome; @...
IhorPatychenko/report-engine
src/main/java/org/greports/utils/AnnotationsConverter.java
package org.greports.utils; import org.greports.annotations.Cell; import org.greports.annotations.CellGetter; import org.greports.annotations.CellValidator; import org.greports.annotations.Column; import org.greports.annotations.ColumnGetter; import org.greports.annotations.ColumnSetter; import org.greports.annotation...
muthukumaravel7/armnn
Documentation/class_test_elementwise_unary_layer_visitor.js
var class_test_elementwise_unary_layer_visitor = [ [ "TestElementwiseUnaryLayerVisitor", "class_test_elementwise_unary_layer_visitor.xhtml#ac8d328be621ddc72611dea42879027bf", null ], [ "VisitElementwiseUnaryLayer", "class_test_elementwise_unary_layer_visitor.xhtml#ab0de6425150b30ba857eae132efe5f58", null ] ];
adam-rocska/closure-templates-php
java/tests/com/google/template/soy/jssrc/internal/CanInitOutputVarVisitorTest.java
/* * Copyright 2015 Google 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 law or agreed to ...
Roenbaeck/sisula
sisulets/source/Variables.js
<reponame>Roenbaeck/sisula // local copies with additions and overrides (source level) source.VARIABLES = copyVariables(VARIABLES); if(source.variables && source.variables.length > 0) { var name, value; for(var v = 0; v < source.variables.length; v++) { name = source.variables[v]; value = source...
p4r4n01d/external_jbirdvegas_mGerrit
src/com/jbirdvegas/mgerrit/database/Changes.java
<reponame>p4r4n01d/external_jbirdvegas_mGerrit<gh_stars>1-10 package com.jbirdvegas.mgerrit.database; /* * Copyright (C) 2013 Android Open Kang Project (AOKP) * Author: <NAME> (P4R4N01D), 2013 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
Floritte/Game-Engine-Samples
smolengine/include/Core/Core.h
#pragma once #include "Memory.h" #include "Debug/DebugLog.h" namespace std { template<class F, class...Args> auto bind_front(F&& f, Args&&...args) { return[f = std::forward<F>(f), tup = std::make_tuple(std::forward<Args>(args)...)](auto&&... more_args) ->decltype(auto) { ...
dbiir/pard
pard-main/src/test/java/cn/edu/ruc/iir/pard/TestQueryHandler.java
package cn.edu.ruc.iir.pard; import cn.edu.ruc.iir.pard.executor.connector.PardResultSet; import cn.edu.ruc.iir.pard.scheduler.JobScheduler; import cn.edu.ruc.iir.pard.scheduler.TaskScheduler; import cn.edu.ruc.iir.pard.server.PardQueryHandler; import org.testng.annotations.Test; /** * pard * * @author guodong */...
deleidos/digitaledge-platform
parser-example-archetype/src/main/resources/archetype-resources/src/main/java/ExampleParser.java
package ${package}; import java.text.ParseException; import java.util.HashMap; import java.util.regex.Matcher; import java.util.regex.Pattern; import net.sf.json.JSONObject; import org.apache.log4j.Logger; import com.deleidos.rtws.core.framework.Description; import com.deleidos.rtws.core.framework.UserConfigured; i...
embeddery/stackrox
central/processbaseline/search/searcher_impl_test.go
package search import ( "context" "errors" "testing" "github.com/golang/mock/gomock" mockIndex "github.com/stackrox/rox/central/processbaseline/index/mocks" mockStore "github.com/stackrox/rox/central/processbaseline/store/mocks" "github.com/stackrox/rox/central/role/resources" "github.com/stackrox/rox/generat...
wahello/openshift-installer
terraform/alicloud/vendor/github.com/aliyun/terraform-provider-alicloud/alicloud/resource_alicloud_msc_sub_webhook.go
<filename>terraform/alicloud/vendor/github.com/aliyun/terraform-provider-alicloud/alicloud/resource_alicloud_msc_sub_webhook.go package alicloud import ( "fmt" "log" "regexp" "time" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" util "github.com/alibabacloud-go/tea-utils/service" "github.com/al...
milesgray/ImageFunctions
models/layers/activations/methods.py
<filename>models/layers/activations/methods.py import torch import torch.nn as nn import torch.nn.functional as F from torch import Tensor @torch.jit.script def mish(x): """ Applies the mish function element-wise: mish(x) = x * tanh(softplus(x)) = x * tanh(ln(1 + exp(x))) See additional documentation f...
perlausten/org.openntf.domino
domino/core/src/main/java/org/openntf/domino/logging/LogRecordAdditionalInfo.java
<filename>domino/core/src/main/java/org/openntf/domino/logging/LogRecordAdditionalInfo.java /** * Copyright © 2013-2021 The OpenNTF Domino API Team * * 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 L...
LesserGiraffe/BunnyHop
src/main/java/net/seapanda/bunnyhop/view/nodeselection/BhNodeSelectionService.java
/** * Copyright 2017 K.Koike * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
fernando-romulo-silva/myStudies
java/quarkus/understanding-quarkus/understanding-quarkus-chapter06-http/understanding-quarkus-chapter06-part01-jaxrs-exposing/src/main/java/org/agoncal/fascicle/quarkus/http/jaxrs/ex07/CustomerResource.java
package org.agoncal.fascicle.quarkus.http.jaxrs.ex07; import org.agoncal.fascicle.quarkus.http.jaxrs.Customer; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; /** * @author <NAME> http://www.antoniogoncalves.org -- *...
RetroFloppy/pfcviewer
src/pfc/cab/IntUtil.java
<reponame>RetroFloppy/pfcviewer /* * Copyright (c) 2002 <NAME>. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation ...
matheuslenke/FastFeet
frontend/src/pages/Problems/ProblemsItem/Actions/index.js
import React from 'react'; import { MdVisibility, MdDelete } from 'react-icons/md'; import { Container, ActionsList, Visualize, Delete } from './styles'; export default function Actions({ handleVisibleModal, problem, handleDelete }) { return ( <Container> <ActionsList> <Visualize onClick={handleVi...
inzamamulDU/log-anomaly-detection
deepgravewell/bgl/data_split.py
import os import random # window_size = 10 # future_step = 5 ratio = 0.8 with open('keys_with_time_8.txt', 'r') as f: all_lines = f.readlines() time_start = int(all_lines[0].strip().split()[-1]) time_end = int(all_lines[-1].strip().split()[-1]) time_interval = float(time_end - time_start) time_split = int(time_inter...
xeddmc/Cardshifter
cardshifter-server/src/main/java/com/cardshifter/server/model/ConnectionHandler.java
package com.cardshifter.server.model; public interface ConnectionHandler { void start(); void shutdown() throws Exception; }
jgraichen/msgr
lib/msgr/channel.rb
# frozen_string_literal: true module Msgr class Channel include Logging EXCHANGE_NAME = 'msgr' attr_reader :config, :channel def initialize(config, connection) @config = config @channel = connection.create_channel end def prefetch(count) @channel.prefetch count end ...
ethansaxenian/RosettaDecode
lang/C/literals-string-1.c
char ch = 'z';
heagoo/mkl-dnn
tests/benchdnn/softmax/softmax.hpp
<gh_stars>0 /******************************************************************************* * Copyright 2019 Intel Corporation * * 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://...
No-SF-Work/ayame
src/ir/values/instructions/TerminatorInst.java
package ir.values.instructions; import ir.types.FunctionType; import ir.types.PointerType; import ir.types.Type; import ir.types.Type.VoidType; import ir.values.BasicBlock; import ir.values.Function; import ir.values.Value; import ir.values.instructions.MemInst.GEPInst; import ir.values.instructions.MemInst.LoadInst; ...
ruhan-islam/ctf-archives
THC/2021/crypto/ECDSAFE/server.py
<reponame>ruhan-islam/ctf-archives #!/usr/local/bin/python3.8 from os import urandom from Crypto.Util.number import inverse from hashlib import sha256 from Crypto.Random import random import ecdsa from flag import FLAG class PRNG: def __init__(self,seed,m,flag): self.state = seed self.m = m self.counter = 0 ...
Hale-Chen/12306_h5
plugins/ckeditor/plugins/preview/lang/sk.js
<reponame>Hale-Chen/12306_h5<filename>plugins/ckeditor/plugins/preview/lang/sk.js CKEDITOR.plugins.setLang("preview", "sk", {preview: "Náhľad"});
sebalander/sebaPhD
calibration/plotIntrinCalibFit.py
<gh_stars>1-10 #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue May 2 17:26:31 2017 test intrinsic calibration paramters @author: sebalander """ # -*- coding: utf-8 -*- """ Created on Tue Jul 5 16:30:53 2016 calibrates intrinsic with diff distortion model @author: sebalander """ # %% import glo...
media-network/media-api
src/transformers/file.js
export default (file) => ({ key: file.key, contentType: file.contentType, contentLength: file.contentLength, expires: file.expires, isOrigin: file.isOrigin, lastModified: file.lastModified, lastSynchronized: file.lastSynchronized, originUrl: file.originUrl, preset: file.preset })
JiYuanFeng/MCTrans
mctrans/models/builder.py
from mmcv.utils import Registry, build_from_cfg from torch import nn NETWORKS = Registry('network') LOSSES = Registry('loss') MODEL = Registry('model') ENCODERS = Registry('encoder') DECODERS = Registry('decoder') CENTERS = Registry('center') HEADS = Registry('head') def build(cfg, registry, default_args=None): ...
zzgchina888/msdn-code-gallery-microsoft
Official Windows Platform Sample/Windows Phone 8.1 samples/[JavaScript]-Windows Phone 8.1 samples/Wallet QuickStart Sample/JavaScript/js/scenario3Update.js
//// Copyright (c) Microsoft Corporation. All rights reserved (function () { "use strict"; var page = WinJS.UI.Pages.define("/html/scenario3Update.html", { ready: function (element, options) { coffeePointsInput = document.getElementById("coffeePointsInput"); document.get...
buschtoens/ember-leaflet
tests/unit/helpers/point-test.js
import { point } from 'dummy/helpers/point'; import { module, test } from 'qunit'; /* global L */ module('Unit | Helper | point'); test('it works', function(assert) { let result = point([42.12312412431231, 41.12331213212, true]); assert.ok(result); assert.ok(result instanceof L.Point); assert.equal(result.x,...
zhs007/jarviscrawlercore
src/service/client.js
const messages = require('../../pbjs/result_pb'); const services = require('../../pbjs/result_grpc_pb'); const log = require('../log'); const grpc = require('grpc'); const TOKEN = '<KEY>'; /** * startTranslate * @param {string} servAddr - service addr * @param {string} srclang - source language * @param {string}...
eti-nne/dtk
src/dtkComposerSupport/dtkComposerNodeMetaVector3DArray.h
/* dtkComposerNodeMetaVector3DArray.h --- * * Author: <NAME> * Copyright (C) 2011 - <NAME>, Inria. * Created: Mon Aug 6 14:25:15 2012 (+0200) * Version: $Id: 53142aadb81daa940514db7dbdd4c8f5466a6ba7 $ * Last-Updated: Thu Aug 9 11:55:31 2012 (+0200) * By: sprinter * Update #: 3 */ /* Commenta...