repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
6un9-h0-Dan/swamp-eclipse-plugin
eclipseplugin/src/org/continuousassurance/swamp/eclipse/handlers/AboutSwampHandler.java
/* * Copyright 2016-2017 <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 to in writing, ...
VikThor997/Hobby
OpenCVPython/openCV-1.py
<gh_stars>0 import cv2 print(cv2.__version__) cam = cv2.VideoCapture(0) while True: ignore, frame = cam.read() grayFrame = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) cv2.imshow('my WEBcam',grayFrame) cv2.moveWindow('my WEBcam',0,0) if cv2.waitKey(1) & 0xff == ord('q'): break cam.release()
DamieFC/chromium
third_party/blink/renderer/core/inspector/inspector_highlight_test.cc
// Copyright 2021 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 "third_party/blink/renderer/core/inspector/inspector_highlight.h" #include "base/test/values_test_util.h" #include "testing/gmock/include/gmock/...
suzil/awsstepfuncs
docs/source/conf.py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
hlooalklampc/tss
generated/ZendEngine_2/optimizers/isscalar.zep.c
#ifdef HAVE_CONFIG_H #include "../../ext_config.h" #endif #include <php.h> #include "../../php_ext.h" #include "../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/memory.h" ZEPHIR_INIT_CLASS(Test_Optimizers_Is...
mcanoy/lodestar-backend
src/main/java/com/redhat/labs/lodestar/model/search/BsonSearch.java
<filename>src/main/java/com/redhat/labs/lodestar/model/search/BsonSearch.java package com.redhat.labs.lodestar.model.search; import static com.mongodb.client.model.Filters.and; import static com.mongodb.client.model.Filters.or; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Map...
Taschee/schafkopf
schafkopf/players/data/encodings.py
import numpy as np from schafkopf.game_modes import SOLO, WENZ, PARTNER_MODE, NO_GAME from schafkopf.suits import ACORNS, BELLS, LEAVES, HEARTS from schafkopf.helpers import sort_hand def encode_one_hot_card(card): index = card[0] * 4 + card[1] encoded_card = np.zeros(32) encoded_card[index] = 1 retur...
fgirse/commodore3
node_modules/@theme-ui/components/src/Badge.js
import React from 'react' import Box from './Box' export const Badge = React.forwardRef((props, ref) => ( <Box ref={ref} variant="primary" {...props} __themeKey="badges" __css={{ display: 'inline-block', verticalAlign: 'baseline', fontSize: 0, fontWeight: 'bold', whi...
l1ttleO/splatcraft-forge
src/main/java/com/cibernet/splatcraft/data/capabilities/saveinfo/SaveInfoCapability.java
<gh_stars>1-10 package com.cibernet.splatcraft.data.capabilities.saveinfo; import net.minecraft.nbt.CompoundNBT; import net.minecraft.server.MinecraftServer; import net.minecraft.util.Direction; import net.minecraft.world.World; import net.minecraftforge.common.capabilities.Capability; import net.minecraftforge.common...
joaomrcsmartins/MIEIC_AIAD_2020
Repast-3.1/RepastJ/src/uchicago/src/sim/analysis/ObjectData.java
/*$$ * Copyright (c) 1999, Trustees of the University of Chicago * 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 not...
pousse-cafe/pousse-cafe-source
src/test/resources/poussecafe/source/generation/generatedfull/process/Process1.java
package poussecafe.source.generation.generatedfull.process; import poussecafe.domain.Process; public interface Process1 extends Process { }
v-ya/local
av1/obu/frame_render_size.h
#ifndef _av1_obu_frame_render_size_h_ #define _av1_obu_frame_render_size_h_ #include "obu.h" typedef struct av1_frame_render_size_t { uint32_t frame_width; // [1, 65536] uint32_t frame_height; // [1, 65536] uint32_t render_width; // [1, 65536] uint32_t render_height; // [1, 65536] uint32_t superres_d...
FindYourGrind/esp32
components/cpp_utils/BLEAdvertising.cpp
<reponame>FindYourGrind/esp32<gh_stars>0 /* * BLEAdvertising.cpp * * This class encapsulates advertising a BLE Server. * Created on: Jun 21, 2017 * Author: kolban */ #include "sdkconfig.h" #if defined(CONFIG_BT_ENABLED) #include "BLEAdvertising.h" #include <esp_log.h> #include <esp_err.h> #include "BLEUtils...
Proskomma/diegesis
src/components/treeLeaves.js
const leaves1 = nodes => { const ret = []; for (const node of nodes) { if (node.children && node.children.length > 0) { for (const child of leaves1(node.children)) { if (!child.cv) { child.cv = node.cv } ret.push(child); ...
KeyWorksRW/ttBld
src/archive/convertdlg.h
///////////////////////////////////////////////////////////////////////////// // Name: CConvertDlg // Purpose: IDDDLG_CONVERT dialog handler // Author: <NAME> // Copyright: Copyright (c) 2019-2020 KeyWorks Software (<NAME>) // License: Apache License (see ../LICENSE) ////////////////////////////////////////...
WuzgXY-GitHub/Melon-Slabs
src/main/java/net/melon/slabs/mixin/ComposterMixin.java
<reponame>WuzgXY-GitHub/Melon-Slabs package net.melon.slabs.mixin; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.At; import org.spongepowere...
fche-tools/FCHE
src/main/java/entitybuilder/javabuilder/javavisitor/JavaEntityVisitor.java
<reponame>fche-tools/FCHE package entitybuilder.javabuilder.javavisitor; import entitybuilder.javabuilder.javaentity.ClassEntity; import entitybuilder.javabuilder.javaentity.InterfaceEntity; import entitybuilder.javabuilder.javaentity.MethodEntity; import entitybuilder.javabuilder.javaentity.VarEntity; import org.ant...
anticipasean/girakkafunc
func-core/src/main/java/cyclops/stream/spliterator/OnEmptySpliterator.java
<filename>func-core/src/main/java/cyclops/stream/spliterator/OnEmptySpliterator.java package cyclops.stream.spliterator; import java.util.Spliterator; import java.util.Spliterators; import java.util.function.Consumer; public class OnEmptySpliterator<T> extends Spliterators.AbstractSpliterator<T> implements CopyableS...
estools2/esmangle
test/compare/push-assignments-through-sequences-2.expected.js
!function(a){a={},f(),a.p=0}()
dtrajko/HazelGameEngineSeries
Vulkan/src/engine/Print.h
<reponame>dtrajko/HazelGameEngineSeries #pragma once #define GLFW_INCLUDE_VULKAN #include <GLFW/glfw3.h> #include "vulkan/SwapChain.h" #include <iostream> class Print { public: static void deviceExtensionSupport(std::vector<VkExtensionProperties> availableExtensions) { std::cout << std::endl; std::cout << ...
windystrife/UnrealEngine_NVIDIAGameWork
Engine/Source/ThirdParty/PhysX/APEX_1.4/common/include/ApexCollision.h
<gh_stars>1-10 /* * Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribu...
LayZhangGitHub/ZLBaseProject
ZLBaseProject/ZLBaseProject/Class/BaseProject/Base/View/BaseCollectionCell.h
<reponame>LayZhangGitHub/ZLBaseProject<filename>ZLBaseProject/ZLBaseProject/Class/BaseProject/Base/View/BaseCollectionCell.h // // BaseCollectionCell.h // ZLBaseProject // // Created by LayZhang on 2017/9/22. // Copyright © 2017年 Zhanglei. All rights reserved. // #import <UIKit/UIKit.h> @interface BaseCollectionC...
MikalaiMikalalai/ggrc-core
src/ggrc-client/js/components/issue/issue-main-content-wrapper/issue-main-content-wrapper.js
<reponame>MikalaiMikalalai/ggrc-core /* Copyright (C) 2020 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ import canComponent from 'can-component'; import canMap from 'can-map'; import {isAllowedFor} from '../../../permission'; export default canComponent.extend({ ta...
alexkarezin/iota-java
jota/src/main/java/org/iota/jota/builder/AbstractBuilder.java
<reponame>alexkarezin/iota-java package org.iota.jota.builder; import java.util.ArrayList; import java.util.List; import java.util.Properties; import org.iota.jota.config.Config; import org.iota.jota.config.types.EnvConfig; import org.iota.jota.config.types.IotaDefaultConfig; import org.iota.jota.config.types.Propert...
indykish/megam_api
lib/megam/core/subscriptions_collection.rb
module Megam class SubscriptionsCollection include Enumerable attr_reader :iterator def initialize @subscriptions = Array.new @subscriptions_by_name = Hash.new @insert_after_idx = nil end def all_subscriptions @subscriptions ...
niello/deusexmachina
DEM/Low/src/System/Win32/OSWindowWin32.h
#pragma once #if DEM_PLATFORM_WIN32 #include <System/OSWindow.h> #include <algorithm> #define WIN32_LEAN_AND_MEAN #include <windows.h> // Win32 operating system window implementation namespace DEM::Sys { typedef Ptr<class COSWindowWin32> POSWindowWin32; class COSWindowWin32 : public COSWindow { RTTI_CLASS_DECL(DEM...
nortix/lib.reviews
routes/teams.js
'use strict'; const escapeHTML = require('escape-html'); const TeamProvider = require('./handlers/team-provider'); const TeamJoinRequest = require('../models/team-join-request'); const getResourceErrorHandler = require('./handlers/resource-error-handler'); const render = require('./helpers/render'); const mlString = r...
Bhaskers-Blu-Org2/Network-Adapter-Class-Extension
netcx/translator/nxbouncebufferpool.hpp
<reponame>Bhaskers-Blu-Org2/Network-Adapter-Class-Extension // Copyright (C) Microsoft Corporation. All rights reserved. #pragma once #include <net/packet.h> #include <NxRingContext.hpp> class NxBounceBufferPool { public: NxBounceBufferPool( NET_RING_COLLECTION const & Rings, NET_EX...
nlowe/aws-sdk-go-v2
service/ssm/api_op_GetConnectionStatus.go
<gh_stars>0 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package ssm import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) // Please also see https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetConnectionStatusRequest type GetConnect...
tormath1/jclouds
apis/ec2/src/main/java/org/jclouds/ec2/domain/Subnet.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 ...
timgates42/bokeh
sphinx/source/docs/user_guide/examples/interaction_radio_button_group.py
<filename>sphinx/source/docs/user_guide/examples/interaction_radio_button_group.py from bokeh.io import output_file, show from bokeh.models import RadioButtonGroup output_file("radio_button_group.html") radio_button_group = RadioButtonGroup( labels=["Option 1", "Option 2", "Option 3"], active=0) show(radio_b...
hananaharonof/payment
db-master/src/main/java/org/hananaharonof/payment/DbMasterApplication.java
<gh_stars>0 package org.hananaharonof.payment; import lombok.extern.slf4j.Slf4j; import org.hananaharonof.payment.service.PaymentCrudService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplica...
bcleveland1022/opensphere
src/os/ol/control/mousepositioncontrol.js
<reponame>bcleveland1022/opensphere goog.provide('os.ol.control.MousePosition'); goog.require('goog.events.EventType'); goog.require('ol.ViewHint'); goog.require('ol.control.MousePosition'); goog.require('ol.coordinate'); goog.require('os.bearing'); goog.require('os.config.DisplaySettings'); goog.require('os.config.Se...
jo3-l/cp-practice
src/main/java/binarysearch/PeekableIterator.java
package binarysearch; public class PeekableIterator { private int idx = -1; private int[] nums; public PeekableIterator(int[] nums) { this.nums = nums; } public int peek() { return nums[idx + 1]; } public int next() { return nums[++idx]; } ...
ThePreviousOne/SVG-Android
svg-sample/src/main/java/com/github/megatronking/svg/sample/drawables/ic_android_red_17.java
package com.github.megatronking.svg.sample.drawables; import android.content.Context; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import com.github.megatronking.svg.support.SVGRenderer; /** * AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatic...
mitre-icarus/ICArUS-Challenge-Problem-Software-and-Data
src/main/java/org/mitre/icarus/cps/app/widgets/video/VideoControlPanel.java
<reponame>mitre-icarus/ICArUS-Challenge-Problem-Software-and-Data /* * NOTICE * This software was produced for the office of the Director of National Intelligence (ODNI) * Intelligence Advanced Research Projects Activity (IARPA) ICArUS program, * BAA number IARPA-BAA-10-04, under contract 2009-0917826-016, and is...
pia-foss/extension-chrome
src/js/chromesettings/webrtc.js
<filename>src/js/chromesettings/webrtc.js import ChromeSetting from '@chromesettings/chromesetting'; class WebRTCSetting extends ChromeSetting { constructor() { super(chrome.privacy.network.webRTCIPHandlingPolicy); // bindings this.init = this.init.bind(this); this.onChange = this.onChange.bind(this...
llnforest/jt808
src/main/java/org/yzh/framework/mvc/AbstractHandlerMapping.java
<gh_stars>1-10 package org.yzh.framework.mvc; import org.apache.commons.lang3.StringUtils; import org.yzh.framework.mvc.annotation.AsyncBatch; import org.yzh.framework.mvc.annotation.Mapping; import org.yzh.framework.mvc.handler.AsyncBatchHandler; import org.yzh.framework.mvc.handler.Handler; import org.yzh.framework....
CyberSys/coreclr-mono
src/pal/tests/palsuite/common/pal_stdclib.h
<reponame>CyberSys/coreclr-mono // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // /*============================================================================ ** ** Source: pal_stdlib.h ** ** Purpose: ** ** ...
fieldkit/cloud
server/api/records.go
package api import ( "context" "errors" "goa.design/goa/v3/security" records "github.com/fieldkit/cloud/server/api/gen/records" "github.com/fieldkit/cloud/server/backend/repositories" "github.com/fieldkit/cloud/server/common" serrors "github.com/fieldkit/cloud/server/common/errors" "github.com/fieldkit/clou...
martinmo/rolevm
rolevm-agent/src/main/java/rolevm/transform/IndyMethodAdapter.java
package rolevm.transform; import static org.objectweb.asm.Opcodes.ACONST_NULL; import static org.objectweb.asm.Opcodes.ASM5; import static org.objectweb.asm.Opcodes.H_INVOKESTATIC; import static org.objectweb.asm.Opcodes.INVOKEINTERFACE; import static org.objectweb.asm.Opcodes.INVOKEVIRTUAL; import static org.objectwe...
SunYe1234/PDFNetNew
headers/C/PDF/OCG/TRN_OCGConfig.h
<filename>headers/C/PDF/OCG/TRN_OCGConfig.h //--------------------------------------------------------------------------------------- // Copyright (c) 2001-2019 by PDFTron Systems Inc. All Rights Reserved. // Consult legal.txt regarding legal and license information. //-----------------------------------------------...
AresSys/AresOperator
cmd/observer/cmd.go
package observer import ( "context" "fmt" "net/http" "ares-operator/cmd/server" "ares-operator/conf" "ares-operator/observer" "ares-operator/observer/handler" "github.com/go-logr/logr" "github.com/spf13/cobra" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/manager" ) func NewOb...
jkandasa/kiali-qe-java
src/main/java/com/redhat/qe/kiali/model/Version.java
package com.redhat.qe.kiali.model; import lombok.Builder; import lombok.Data; import lombok.ToString; /** * @author <NAME> (jkandasa) */ @Data @Builder @ToString public class Version { private String name; private String version; }
lifenstein/fez-frontend
src/modules/Dashboard/index.js
export { default as Dashboard } from './containers/Dashboard';
ezmaxinc/eZmax-SDK-c
model/ezsigntemplatesignature_get_object_v1_response.h
/* * ezsigntemplatesignature_get_object_v1_response.h * * Response for GET /1/object/ezsigntemplatesignature/{pkiEzsigntemplatesignatureID} */ #ifndef _ezsigntemplatesignature_get_object_v1_response_H_ #define _ezsigntemplatesignature_get_object_v1_response_H_ #include <string.h> #include "../external/cJSON.h" #i...
Twon/Morpheus
libraries/core/core/cpu.test.cpp
#define CATCH_CONFIG_MAIN #include <algorithm> #include <string> #include <vector> #include <catch2/catch.hpp> #include <core/cpu.hpp> namespace morpheus::test { TEST_CASE("Cpu can be queried for processor info", "[morpheus.core.cpu]") { cpu processor; // Lists of CPU and Virtual Machine vendors from https:/...
YanAndreatta/Exercises-Java
ws-eclipse/Aula97/src/application/Program.java
package application; import java.util.Scanner; public class Program { public static void main(String[] args) { int a, b, c; Scanner t = new Scanner(System.in); a = t.nextInt(); b = t.nextInt(); int[][] mat = new int[a][b]; for (int i = 0; i < mat.length; i++) { // i = 0; i < mat.length ( 3 ); i++...
lipingzhu/Zero-determinant
axelrod/tests/unit/test_match.py
<filename>axelrod/tests/unit/test_match.py<gh_stars>0 # -*- coding: utf-8 -*- import unittest import axelrod from axelrod import Actions C, D = Actions.C, Actions.D class TestMatch(unittest.TestCase): def test_init(self): p1, p2 = axelrod.Cooperator(), axelrod.Cooperator() match = axelrod.Match...
brandnewbox/validates_accessibility
spec/validates_accessibility/warnings/h69_spec.rb
<gh_stars>0 RSpec.describe WarningValidator::Validator, "WCAG H69 Standards" do before do Document.validates_accessibility_of :body, only: [:h69] end # For each <object> element, note if there is nested content which provides # the text equivalent. it "should be valid if a document uses headers to separa...
liaoyuke/EECS542_Final_Project_VQA
code/concept_extraction/lib/en/parser/nltk_lite/corpora/names.py
# Natural Language Toolkit: Names Corpus Reader # # Copyright (C) 2001-2006 University of Pennsylvania # Author: <NAME> <<EMAIL>> # <NAME> <<EMAIL>> # URL: <http://nltk.sf.net> # For license information, see LICENSE.TXT """ Names Corpus, Version 1.3 (1994-03-29) Copyright (C) 1991 <NAME> Additions by <NAME> T...
igorski/efflux-tracker
src/model/validators/instrument-validator.js
/** * The MIT License (MIT) * * <NAME> 2016-2021 - https://www.igorski.nl * * 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 the rights...
dbastin/donkey
src/java/prod/org/burroloco/donkey/spit/http/KeyStores.java
package org.burroloco.donkey.spit.http; import edge.java.security.KeyStore; import org.burroloco.donkey.config.KeyStoreLocation; import org.burroloco.donkey.config.KeyStorePassword; public interface KeyStores { KeyStore nu(KeyStoreLocation l, KeyStorePassword p); }
6417/FridoWPI
src/test/java/ch/fridolins/fridowpi/Utils.java
<gh_stars>0 package ch.fridolins.fridowpi; import edu.wpi.first.wpilibj.DriverStation; import org.mockito.MockedStatic; import org.mockito.Mockito; public class Utils { public static void withRobotEnabled(Runnable function) { try (MockedStatic<DriverStation> utilities = Mockito.mockStatic(DriverStation.cl...
jkdubr/Proj4
Pod/Classes/Projection/MOBProjectionEPSG37224.h
<filename>Pod/Classes/Projection/MOBProjectionEPSG37224.h #import "MOBProjection.h" @interface MOBProjectionEPSG37224 : MOBProjection @end
wibeasley/jbc-2016
1408-wallaby/Default User/go thunder! (figure ate)/src/main.c
<reponame>wibeasley/jbc-2016<gh_stars>0 #include <kipr/botball.h> int move(int speed_left,int speed_right,int duration){ motor(0,speed_left); motor(2,speed_right); msleep(duration); return 0; } int main(){ move( 50, 50, 3667); // forward move( 30, -30, 1250); // pivot right move( 50, 50, 330...
TeamworkGuy2/JParserTools
src/twg2/parser/codeParser/codeStats/ParsedFileStats.java
package twg2.parser.codeParser.codeStats; import lombok.Getter; import twg2.collections.primitiveCollections.IntArrayList; import twg2.collections.primitiveCollections.IntList; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; /** * @author TeamworkGuy2 * @si...
gurylev-nikita/devtools-course-practice
modules/btree_out_search/src/btree.cpp
<reponame>gurylev-nikita/devtools-course-practice  // Copyright 2021 <NAME> #include <malloc.h> #include "include/btree.h" tnode* addtree(tnode* tree, int val) { if (tree == nullptr) { tree = new tnode; tree->value = val; tree->left = tree->right = nullptr; } else if (val < tree->value) { tree-...
ist-dresden/composum-assets
commons/bundle/src/main/java/com/composum/assets/commons/image/RenditionWriter.java
/* * copyright (c) 2015 IST GmbH Dresden, Germany * * This software may be modified and distributed under the terms of the MIT license. */ package com.composum.assets.commons.image; import com.composum.assets.commons.config.RenditionConfig; import com.composum.assets.commons.handle.AssetRendition; import org.slf4j...
837477/Python_Parallel
08_multi_processing/pipes.py
import os, sys import multiprocessing class ChildProcess(multiprocessing.Process): def __init__(self, pipein): super(ChildProcess, self).__init__() self.pipein = pipein def run(self): print("Attempting to pipein to pipe") self.pipein = os.fdopen(self.pipein, 'w') self.pipein.write("My Name is...
cviebig/lib-sql-text
include/sql/text/grammar/expr.hpp
<reponame>cviebig/lib-sql-text<gh_stars>1-10 #ifndef SQL_TEXT_GRAMMAR_EXPR_HPP #define SQL_TEXT_GRAMMAR_EXPR_HPP #include "sql/fusion/expr.hpp" #include <boost/optional.hpp> #include <boost/spirit/home/x3.hpp> namespace sql { namespace text { using boost::spirit::x3::rule; /////////////////////////////////...
ptwb3/metasploit-framework
modules/exploits/windows/fileformat/openoffice_ole.rb
<reponame>ptwb3/metasploit-framework ## # This module requires Metasploit: http://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class MetasploitModule < Msf::Exploit::Remote Rank = NormalRanking include Msf::Exploit::FILEFORMAT def initialize(in...
blackjyn/flex-sdk
modules/thirdparty/velocity/src/java/org/apache/flex/forks/velocity/test/TemplateTestSuite.java
<reponame>blackjyn/flex-sdk package org.apache.flex.forks.velocity.test; /* * Copyright 2001,2004 The Apache Software Foundation. * * 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 * *...
waltzofpearls/sawmill
vendor/github.com/basho/riak-go-client/crdt_commands.go
<gh_stars>0 package riak import ( "fmt" "reflect" "time" rpbRiakDT "github.com/basho/riak-go-client/rpb/riak_dt" rpbRiakKV "github.com/basho/riak-go-client/rpb/riak_kv" proto "github.com/golang/protobuf/proto" ) // UpdateCounter // DtUpdateReq // DtUpdateResp // UpdateCounterCommand is used to increment or de...
dotJEM/angular-lessons
src/assets/lib/bower/dotjem-angular-routing/dev/files.js
<gh_stars>0 if (exports) { var files = { 'src': [ 'src/prefix', 'build/src/common.js', 'build/src/route.js', 'build/src/stateTransition.js', 'build/src/state.js', 'build/src/resolve.js', 'build/src/template.js', ...
AlexandreMorinvil/music_paradigm
music_paradigm_web/src/store-helper/sound-generator.module-helper/default-state.js
<filename>music_paradigm_web/src/store-helper/sound-generator.module-helper/default-state.js const FIRST_AUDIO_RESSOURCE_NAME = 'audio-1'; const SECOND_AUDIO_RESSOURCE_NAME = 'audio-2'; function EMPTY_RESSOURCE_STATE() { return { // Loading information isLoading: false, // Content information fileName: '', ...
mosoft521/appfuse
web/gwt/src/main/java/org/appfuse/webapp/client/ui/users/active/ActiveUsersActivity.java
/** * */ package org.appfuse.webapp.client.ui.users.active; import java.util.List; import org.appfuse.webapp.client.application.Application; import org.appfuse.webapp.client.application.base.activity.AbstractBaseActivity; import org.appfuse.webapp.client.proxies.UserProxy; import org.appfuse.webapp.client.ui.home....
Francis777/agents
tf_agents/tf_agents_api_test.py
<gh_stars>1000+ # coding=utf-8 # Copyright 2020 The TF-Agents Authors. # # 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 ...
kongaraju/antkorp
3party/gtk+-3.12.1/gtk/a11y/gtkscrolledwindowaccessible.c
<filename>3party/gtk+-3.12.1/gtk/a11y/gtkscrolledwindowaccessible.c /* GTK+ - accessibility implementations * Copyright 2001, 2002, 2003 Sun Microsystems Inc. * * 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...
washad/ControlPyWeb
build/lib/controlpyweb/webio_module.py
from controlpyweb.errors import ControlPyWebAddressNotFoundError from controlpyweb.reader_writer import ReaderWriter import datetime from controlpyweb.io_definitions.single_io import SingleIO class WebIOModule(ReaderWriter): def __init__(self, url: str, demand_address_exists: bool = True): super().__ini...
Intro-to-Software-Team-9a/Estate-Plan-R
client/src/utils/format.js
<reponame>Intro-to-Software-Team-9a/Estate-Plan-R export function formatCurrency(amountInCents) { return `$${(amountInCents / 100).toFixed(2)}`; } export default formatCurrency;
ZHAOZhengyi-tgx/BE-Supporter_2016
BE_Supporter/MtnAlgo/MTNCALC/H/poly7_bnd.h
//The MIT License (MIT) // //Copyright (c) 2016 ZHAOZhengyi-tgx // //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 the rights //to use...
KingDragon08/Labi-Android
client/src/main/java/cn/wildfirechat/model/NullGroupInfo.java
package cn.wildfirechat.model; public class NullGroupInfo extends GroupInfo { public NullGroupInfo(String groupId) { this.target = groupId; this.name = "<" + groupId + ">"; } }
itaffy/antd-vue-admin-pro
src/project/system/api/param.js
import request from '@/api/index' // APP版本列表 export function appVersionList(params) { return request.get('/appversions', params) } // 添加APP版本 export function addAppVersion(params) { return request.post('/appversion', params) } // 编辑APP版本 export function editAppVersion(params, id) { return request.putJson('/ap...
tgoprince/menthor-editor
net.menthor.editor/src/net/menthor/editor/v2/ui/popupmenu/TabPopupMenu.java
package net.menthor.editor.v2.ui.popupmenu; /** * ============================================================================================ * Menthor Editor -- Copyright (c) 2015 * * This file is part of Menthor Editor. Menthor Editor is based on TinyUML and as so it is * distributed under the same li...
perfectmak/udacity-devops-capstone
frontend/src/components/TitleValueInfo.js
import React from 'react'; import Typography from '@material-ui/core/Typography'; import { makeStyles } from '@material-ui/styles'; const useStyles = makeStyles(theme => ({ root: { padding: theme.spacing(2), }, })); export const TitleValueInfo = ({ title, value }) => { const classes = useStyles(); return...
dxichen/beam
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/AssignWindowsParDoFnFactory.java
<reponame>dxichen/beam /* * 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 (...
perfectrecall/aws-sdk-cpp
aws-cpp-sdk-personalize/include/aws/personalize/model/RecommenderConfig.h
<reponame>perfectrecall/aws-sdk-cpp /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/personalize/Personalize_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSMap.h> #include <aws/core/utils/memory/stl/AWSString.h> #includ...
max-vorabhol-zipmex/express-app
packages/ui/src/helpers/depositHelper.js
const letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; const digits = '0123456789'; const all = letters + digits; const getRandomCharInSet = set => set.charAt(Math.floor(Math.random() * set.length)); // Reference is composed of 10 random characters among uppercase letters and digits. // Freshcanvas scrapper required that at...
kuuhaku86/design-patterns
Factory Method/Ruby/ILogger.rb
class ILogger def print(message) raise NotImplementedError end end
MicrohexHQ/nacl_contracts
src/shared/platform/win/time_win.cc
/* * Copyright (c) 2011 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // Make sure that winmm.lib is added to the linker's input. #pragma comment(lib, "winmm.lib") #include "native_client/src/include/portabi...
cbp44/hadatac
app/org/hadatac/data/loader/SpreadsheetFileRecord.java
<filename>app/org/hadatac/data/loader/SpreadsheetFileRecord.java package org.hadatac.data.loader; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Row; public class SpreadsheetFileRecord implements Record { Row row; public SpreadsheetFileRecord(Row row) { this.row = row; ...
Brest-Java-Course-2021-2/Aliaksandr-Remizau-Municipal-service
service-rest/src/test/java/com/epam/brest/service/rest/RepairServiceRestTest.java
<gh_stars>0 package com.epam.brest.service.rest; import com.epam.brest.model.Repair; import com.epam.brest.model.type.LevelOfDifficulty; import com.epam.brest.model.type.RepairType; import com.epam.brest.service.rest.config.ServiceRestTestConfig; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxm...
youyouqiu/hybrid-development
clbs/src/main/java/com/zw/api/controller/modules/SwaggerMediaController.java
<reponame>youyouqiu/hybrid-development<filename>clbs/src/main/java/com/zw/api/controller/modules/SwaggerMediaController.java<gh_stars>1-10 package com.zw.api.controller.modules; import com.zw.api.domain.MediaInfo; import com.zw.api.domain.ResultBean; import com.zw.api.service.SwaggerMediaService; import io.swagger.ann...
xwang1024/bomblab
lib/controller/index.js
<reponame>xwang1024/bomblab 'use strict'; exports.index = function(req, res, next) { res.redirect('/activity'); };
LaudateCorpus1/oneview-chef
spec/unit/resources/enclosure_group/create_if_missing_spec.rb
require_relative './../../../spec_helper' describe 'oneview_test::enclosure_group_create_if_missing' do let(:resource_name) { 'enclosure_group' } include_context 'chef context' it 'accepts a logical_interconnect_groups parameter' do expect_any_instance_of(OneviewSDK::EnclosureGroup).to receive(:add_logical_...
foxdonut/meiosis-examples
examples/custom-elements/hybrids/src/conditions/view.js
<reponame>foxdonut/meiosis-examples import { html } from "hybrids" import { bootstrap } from "../util" const conditionsOption = ({ state, id, actions, value, label }) => html` <label class="radio-inline"> <input type="radio" name="conditions" value=${value} checked=${state[id].sky === va...
phpyandong/opentaobao
model/product/TaobaoItemSellerGetResponse.go
package product import ( "encoding/xml" "github.com/bububa/opentaobao/model" ) /* 获取单个商品详细信息 APIResponse taobao.item.seller.get 获取单个商品的全部信息 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=itemapi" target="_blank">点击查看更多商品API说明</a></strong> */ type TaobaoItemSellerGetAPIResponse struc...
Dnmrk4/codewars-7kyu-part2
Remove duplication.js
<reponame>Dnmrk4/codewars-7kyu-part2<filename>Remove duplication.js /* Description: Write a function that accepts an array of number as parameter, and it returns array after removing all duplicated numbers. Example removeDuplication([1,2,3,2,4,6,2,6,7]) Output [1,3,4,7]. Here 2 ,6 are duplicated in array , so we shou...
motiver/motiver_fi
motiverFi/src/com/delect/motiver/server/jdo/MeasurementValue.java
<gh_stars>1-10 /******************************************************************************* * Copyright 2011 <NAME> * * This file is part of Motiver.fi. * Motiver.fi is licensed under one open source license and one commercial license. * * Commercial license: This is the appropriate option if you want...
ivansukach/protobuf
test/deterministic/deterministic_test.go
// Protocol Buffers for Go with Gadgets // // Copyright (c) 2018, The GoGo Authors. All rights reserved. // http://github.com/ivansukach/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistr...
katapultmedia/daedalus
source/renderer/app/ipc/loadAsset.js
<gh_stars>1000+ // @flow import { RendererIpcChannel } from './lib/RendererIpcChannel'; import { LOAD_ASSET_CHANNEL } from '../../../common/ipc/api'; import type { LoadAssetRendererRequest, LoadAssetMainResponse, } from '../../../common/ipc/api'; // IpcChannel<Incoming, Outgoing> export const loadAssetChannel: Ren...
isabella232/tessapi
3.05.02/search/files_c.js
var searchData= [ ['ndminx_2eh',['ndminx.h',['../a00548.html',1,'']]], ['neural_5fnet_2ecpp',['neural_net.cpp',['../a01220.html',1,'']]], ['neural_5fnet_2eh',['neural_net.h',['../a01223.html',1,'']]], ['neuron_2ecpp',['neuron.cpp',['../a01226.html',1,'']]], ['neuron_2eh',['neuron.h',['../a01229.html',1,'']]],...
d3fc0n6/TeamFortress2
tf2_src/game/server/tf/tf_projectile_energy_ball.cpp
<reponame>d3fc0n6/TeamFortress2 //========= Copyright Valve Corporation, All rights reserved. ============// // // TF Energy Ball // //============================================================================= #include "cbase.h" #include "tf_projectile_energy_ball.h" #include "soundent.h" #include "tf_fx.h" #include...
vicenteam/hyxt
guns-admin/src/main/java/com/stylefeng/guns/modular/main/service/IBaMedicalService.java
package com.stylefeng.guns.modular.main.service; import com.stylefeng.guns.modular.system.model.BaMedical; import com.baomidou.mybatisplus.service.IService; /** * <p> * 健康状态表 服务类 * </p> * * @author stylefeng * @since 2018-08-17 */ public interface IBaMedicalService extends IService<BaMedical> { }
tfg13/u-root
cmds/core/elvish/parse/error.go
<reponame>tfg13/u-root package parse import ( "bytes" "fmt" "github.com/u-root/u-root/cmds/core/elvish/util" ) // ErrorEntry represents one parse error. type ErrorEntry struct { Message string Context util.SourceRange } // Error stores multiple ErrorEntry's and can pretty print them. type Error struct { Entri...
weiliy/yoroi-frontend
packages/yoroi-extension/app/components/wallet/staking/dashboard-revamp/StakePool/StakePool.js
<reponame>weiliy/yoroi-frontend<filename>packages/yoroi-extension/app/components/wallet/staking/dashboard-revamp/StakePool/StakePool.js<gh_stars>0 // @flow import type { Node } from 'react'; import TwitterIcon from '../../../../../assets/images/social/revamp/twitter.inline.svg'; import TelegramIcon from '../../../../.....
DexSinis/NSXcode
NSXcode/Classes/Libs/SDAutoLayout/UITableView+SDAutoTableViewCellHeight.h
// // UITableView+SDAutoTableViewCellHeight.h // SDAutoLayout 测试 Demo // // Created by aier on 15/11/1. // Copyright © 2015年 gsd. All rights reserved. // /* ********************************************************************************* * ...
egotter/egotter
app/workers/create_greeting_good_evening_message_worker.rb
<gh_stars>10-100 class CreateGreetingGoodEveningMessageWorker include Sidekiq::Worker include ReportErrorHandler sidekiq_options queue: 'messaging', retry: 0, backtrace: false MESSAGE = <<~TEXT こんばんは。 TEXT def unique_key(uid, options = {}) uid end def unique_in(*args) 3.seconds end #...
basil/elastest-plugin
src/main/java/jenkins/plugins/elastest/action/ElasTestItemMenuAction.java
<reponame>basil/elastest-plugin<gh_stars>0 /* * The MIT License * * (C) Copyright 2017-2019 ElasTest (http://elastest.io/) * * 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 res...