repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
onosfw/apis
onos/apis/dir_c033ff7368e78e32007d33ed3077bca6.js
<filename>onos/apis/dir_c033ff7368e78e32007d33ed3077bca6.js<gh_stars>0 var dir_c033ff7368e78e32007d33ed3077bca6 = [ [ "src", "dir_4b993e487eefba95ee4ce0c7cf007153.html", "dir_4b993e487eefba95ee4ce0c7cf007153" ] ];
BloomTech-Labs/niyon-fe
src/components/connections/Connections.test.js
import React from 'react'; import { shallow } from 'enzyme'; import toJSON from 'enzyme-to-json'; import Connections from './Connections' import findByTestAttr from '../../tests/utils' const setUp = (props = {}) => { const wrapper = shallow(<Connections { ...props } />) return wrapper } describe('<Connections /> ...
chenyang8094/alibabacloud-tairjedis-sdk
src/test/java/com/aliyun/tair/tests/tairts/TairTsTest.java
package com.aliyun.tair.tests.tairts; import com.aliyun.tair.tairts.params.ExtsAggregationParams; import com.aliyun.tair.tairts.params.ExtsAttributesParams; import com.aliyun.tair.tairts.params.ExtsDataPoint; import com.aliyun.tair.tairts.params.ExtsFilter; import com.aliyun.tair.tairts.results.ExtsDataPointResult; im...
armange/j-commons-thread
commons-reflection/src/test/java/br/com/armange/commons/reflection/stream/artifact/AbstractReflectionStreamBeanArtifact.java
<filename>commons-reflection/src/test/java/br/com/armange/commons/reflection/stream/artifact/AbstractReflectionStreamBeanArtifact.java /* * Copyright [2019] [<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 obta...
a327919006/-boot-sample
sample-dal/src/main/java/com/cn/boot/sample/dal/mapper/SysResourceMapper.java
<filename>sample-dal/src/main/java/com/cn/boot/sample/dal/mapper/SysResourceMapper.java package com.cn.boot.sample.dal.mapper; import com.cn.boot.sample.api.model.dto.system.SysResourceDTO; import com.cn.boot.sample.api.model.po.SysResource; import org.apache.ibatis.annotations.Param; import tk.mybatis.mapper.common.M...
hyy1115/react-framework-cli
src/pages/string/Rabinkarp/Rabinkarp.js
<filename>src/pages/string/Rabinkarp/Rabinkarp.js import React from 'react' class Rabinkarp extends React.Component { render() { return ( <div>Rabinkarp</div> ) } } export default Rabinkarp
jerv13/folio-rest
html/public/jfolio/_js/alerts.js
<reponame>jerv13/folio-rest angular.module('jfolio.alert', ['jfolio.exception']) .factory('Alerts', ['Exception', function(Exception) { var Alerts = function(scope) { var self = this; self.displayTime = 4000; self.alerts = []; self.thrown = []; ...
JamesCao2048/BlizzardData
Corpus/birt/5324.java
/******************************************************************************* * Copyright (c) 2004 Actuate Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is availabl...
chandlerprall/kibana
src/core_plugins/metrics/public/components/lib/sort_keyhandler.js
import { keyCodes } from '@elastic/eui'; export function createUpDownHandler(callback) { return (ev) => { if (ev.keyCode === keyCodes.UP) { ev.preventDefault(); callback('up'); } else if (ev.keyCode === keyCodes.DOWN) { ev.preventDefault(); callback('down'); } }; }
ynsingh/brihaspati2
WEB-INF/src/java/org/iitk/brihaspati/modules/actions/AddDepartment.java
<reponame>ynsingh/brihaspati2<gh_stars>0 package org.iitk.brihaspati.modules.actions; /* * @(#)AddDepartment.java * * Copyright (c) 2013 ETRG,IIT Kanpur. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the follow...
X-API/PayRunIO.Demo.UI
services/payInstructions/PensionPayInstruction.js
<filename>services/payInstructions/PensionPayInstruction.js<gh_stars>0 const BaseInstruction = require("./BaseInstruction"); const ApiWrapper = require("../../services/api-wrapper"); let apiWrapper = new ApiWrapper(); module.exports = class PensionPayInstruction extends BaseInstruction { get name() { retu...
dorba/tint
src/writer/spirv/builder_unary_op_expression_test.cc
// Copyright 2020 The Tint 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
YuriyAM/what-front
src/features/groups/edit-group/__tests__/mocks/mock-data.js
<reponame>YuriyAM/what-front export const id = 1; export const initialValues = { name: 'testName', startDate: '2021-05-16T00:00:00', finishDate: '2022-06-16T00:00:00', courseId: 9, mentor: '', student: '' }; export const studentGroupData = { data: { courseId: 9, finishDate: '2022-06-16T00:00:00', id: 1, ...
Alec-Sobeck/FPS-Game
src/utils/textureloader.h
<reponame>Alec-Sobeck/FPS-Game #ifndef TEXTURE_LOADER_H #define TEXTURE_LOADER_H #include <string> #include <memory> #include "render/texture.h" std::shared_ptr<Texture> getTexture(std::string); #endif
KSN2017/nodejs
src/components/PageComponents/SourcePointerPage.js
import React, { Component } from 'react' import SourcePointer from 'components/SourcePointer/SourcePointer' import { Heading, Text } from 'odeum-primitives' class SourcePointerPage extends Component { constructor(props) { super(props) this.state = { value: '' } } onSelectItem = (value) => { this.setSt...
leodr/chayns-js
src/chayns/calls/updateTapp.js
import {chaynsCall} from '../chaynsCall'; import {propTypes} from '../propTypes'; export function updateTapp(tappId) { return chaynsCall({ 'call': { 'action': 107, 'value': { 'tappID': tappId } }, 'app': { 'support': {'android'...
bruceasu/jSqlBox
core/src/main/java/com/github/drinkjava2/jsqlbox/ActiveRecord.java
/* * Copyright 2016 the original author or 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by * applicable law or agr...
vidma/kensu-py
kensu/client/models/model_metrics_pk.py
# coding: utf-8 """ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: beta Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems class ModelMetricsP...
nraptis/Metal_OpenGL_MobileGameEngine
Framework/[C++ Core]/[[Tools]]/ToolMenuSectionRow.hpp
<reponame>nraptis/Metal_OpenGL_MobileGameEngine // // ToolMenuSectionRow.hpp // DigMMMac // // Created by <NAME> on 7/4/18. // Copyright © 2018 Darkswarm LLC. All rights reserved. // #ifndef ToolMenuSectionRow_hpp #define ToolMenuSectionRow_hpp #include "FCanvas.hpp" #include "UIRoundedRect.hpp" #include "ToolMen...
smile0913/gitlabhq
spec/support/issuable_shared_examples.rb
<filename>spec/support/issuable_shared_examples.rb shared_examples 'cache counters invalidator' do it 'invalidates counter cache for assignees' do expect_any_instance_of(User).to receive(:invalidate_merge_request_cache_counts) described_class.new(project, user, {}).execute(merge_request) end end
mattjr/structured
vcgapps/OGF/cells/map_algos/map_approx.h
<filename>vcgapps/OGF/cells/map_algos/map_approx.h /* * OGF/Graphite: Geometry and Graphics Programming Library + Utilities * Copyright (C) 2000 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free So...
Anadian/CNO
include/cno_log.h
<filename>include/cno_log.h //cno_log.h #ifndef CNO_LOG_H #define CNO_LOG_H #ifdef __cplusplus extern "C" { #endif //__cplusplus #include "cno_build.h" // #if !defined(CNO_LOG_ENGINE) // #define CNO_LOG_ENGINE CNO_LOG_ENGINE_NONE // #endif //!defined(CNO_SETTINGS_LOG_ENGINE) // // #if CNO_LOG_ENGINE == CNO_LOG_ENG...
AsyncVoid/Industrial-Foregoing
src/main/java/com/buuz135/industrial/tile/magic/EnchantmentRefinerTile.java
<reponame>AsyncVoid/Industrial-Foregoing package com.buuz135.industrial.tile.magic; import com.buuz135.industrial.tile.CustomColoredItemHandler; import com.buuz135.industrial.tile.CustomElectricMachine; import com.buuz135.industrial.utils.WorkUtils; import net.minecraft.init.Items; import net.minecraft.item.EnumDyeCol...
developkits/cmb
Source/VTKExtensions/General/vtkModelLineSource.h
<filename>Source/VTKExtensions/General/vtkModelLineSource.h //========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warrant...
MarcBaldi/ZombieZite
src/main/scala/de/htwg/se/zombiezite/aview/gui/DPad.scala
package de.htwg.se.zombiezite.aview.gui import de.htwg.se.zombiezite.controller._ import scala.swing._ import scala.io.Source._ class DPad(c: Controller, log: Frame) extends GridPanel(5, 3) { contents += new Label contents += Button("Hoch") { c.move(c.actualPlayer, 0, 1) } contents += new Label contents += Bu...
hschwane/offline_production
PROPOSAL/private/PROPOSAL/propagation_utility/ContinuousRandomizer.cxx
#include "PROPOSAL/propagation_utility/ContinuousRandomizer.h" #include "PROPOSAL/propagation_utility/PropagationUtility.h" #include "PROPOSAL/propagation_utility/PropagationUtilityIntegral.h" #include "PROPOSAL/propagation_utility/PropagationUtilityInterpolant.h" #include "PROPOSAL/Constants.h" #include "PROPOSAL/L...
10088/swc
crates/swc/tests/tsc-references/parserES5ComputedPropertyName3_es5.2.minified.js
import _define_property from "@swc/helpers/lib/_define_property.js"; _define_property({}, e, function() {});
MedlockJ/onme
js/components/avatar.js
function initializeAvatar(component, params = {}) { if (!component) return; const torso = component.querySelector(".torso"); const leftArm = component.querySelector(".arm.left"); const rightArm = component.querySelector(".arm.right"); const leftLeg = component.querySelector(".leg.left"); const ...
gdeiassistant/GdeiAssistant
src/main/java/cn/gdeiassistant/Tools/SpringUtils/RedisDaoUtils.java
<filename>src/main/java/cn/gdeiassistant/Tools/SpringUtils/RedisDaoUtils.java package cn.gdeiassistant.Tools.SpringUtils; import cn.gdeiassistant.Enum.Module.CoreModuleEnum; import cn.gdeiassistant.Pojo.DelayTask.DelayTask; import cn.gdeiassistant.Pojo.DelayTask.SessionAttributeExpireDelayTaskElement; import org.sprin...
juanfelipe82193/opensap
sapui5-sdk-1.74.0/resources/sap/fe/macros/Contact.metadata.js
<reponame>juanfelipe82193/opensap /*! * SAP UI development toolkit for HTML5 (SAPUI5) (c) Copyright 2009-2017 SAP SE. All rights reserved */ sap.ui.define(["./MacroMetadata"],function(M){"use strict";var C=M.extend("sap.fe.macros.Contact",{name:"Contact",namespace:"sap.fe.macros",fragment:"sap.fe.macros....
anniyanvr/pipeline
internal/providers/azure/pke/workflow/create_vnet_activity.go
<filename>internal/providers/azure/pke/workflow/create_vnet_activity.go<gh_stars>1000+ // Copyright © 2019 <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.apac...
hi019/doublequote
pkg/http/collection_test.go
package http import ( "fmt" "net/http" "strings" "testing" "doublequote/pkg/domain" "doublequote/pkg/utils" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) func TestServer_handleCreateCollection(t *testing.T) { t.Run("OK", func(t *testing.T) { s := NewTestServer() s.Collection...
nickpnmrv/cumulocity-examples
tracker-agent/src/main/java/c8y/trackeragent/tracker/ConnectedTracker.java
<reponame>nickpnmrv/cumulocity-examples<filename>tracker-agent/src/main/java/c8y/trackeragent/tracker/ConnectedTracker.java<gh_stars>1-10 /* * Copyright (c) 2012-2020 Cumulocity GmbH * Copyright (c) 2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, * and/or its subsidiaries and/or it...
Yannic/chromium
components/metrics/call_stack_profile_metrics_provider.h
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_ #define COMPONENTS_METRICS_CALL_STACK_PROFILE_METRICS_PROVIDER_H_ #include <string> #i...
dongboyan77/quay
endpoints/api/test/test_endtoend_auth.py
import pytest from mock import patch from endpoints.api.search import EntitySearch, LinkExternalEntity from endpoints.api.test.shared import conduct_api_call from endpoints.test.shared import client_with_identity from test.test_ldap import mock_ldap from test.test_external_jwt_authn import fake_jwt from test.test_ke...
msk-mind/data-processing
.archive/dicom_to_delta.py
import click from pyspark.sql import SparkSession from luna.common.config import ConfigSet from luna.common.sparksession import SparkConfig from luna.common.custom_logger import init_logger import re, os # Run Script: python3 dicom_to_delta.py -h <hdfs> -a <radiology_dataset_path> log = init_logger() APP_CFG='APP_CFG...
SpikeLavender/jdk-resource-code
sun/security/util/NamedCurve.java
/* * Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.security.util; import java.io.IOException; import java.math.BigInteger; import java.secur...
Cassiobsk8/TestMod3
src/main/java/choonster/testmod3/init/ModPotions.java
package choonster.testmod3.init; import choonster.testmod3.TestMod3; import choonster.testmod3.potion.PotionTestMod3; import net.minecraft.potion.Potion; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net...
jiongjiongjiong/JavaBasic
src/com/zc/javabasic/designpatterns/factory/Client.java
package com.zc.javabasic.designpatterns.factory; /** * @description: * @author: Zhangc * @date: 2018-12-18 */ public class Client { public static void main(String[] args) { CarFactory factory = new LuxuryCarFactory(); Engine e = factory.createEngine(); e.run(); e.start(); ...
JandroK/Fire-Engine
Fire_Engine/Engine/Source/AssetsTab.h
#pragma once #include "Tab.h" #include <vector> #include "Globals.h" enum class AssetType { TEXTURE, FBX, FOLDER, OTHER }; class Asset { public: void Destroy(); AssetType type; const char* name; const char* folder; std::string fullPath; std::string libraryPath; bool remove = false; }; class Folder { publ...
blinky-z/DbBackupTool
src/main/java/com/blog/repositories/PlannedTasksRepository.java
<filename>src/main/java/com/blog/repositories/PlannedTasksRepository.java package com.blog.repositories; import com.blog.entities.task.PlannedTask; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; p...
choch-o/BudgetTrend-v1
app/components/Program.js
import React from 'react'; import Paper from 'material-ui/Paper'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; class Program extends React.Component { render() { const programStyle = { height: 136.3 } var value = this.prop...
deiwin/luncher-api
handler/offer_group_post_handler.go
package handler import ( "encoding/json" "net/http" "gopkg.in/mgo.v2" "gopkg.in/mgo.v2/bson" "github.com/Lunchr/luncher-api/db" "github.com/Lunchr/luncher-api/db/model" "github.com/Lunchr/luncher-api/facebook" "github.com/Lunchr/luncher-api/router" "github.com/Lunchr/luncher-api/session" "github.com/julien...
deliverst/midudev-express-api
src/middlewares/userExtractor.js
const jwt = require("jsonwebtoken"); module.exports = (req, res, next) => { const jwt = require("jsonwebtoken"); const authorization = req.get('authorization') let token = null if (authorization && authorization.toLowerCase().startsWith('bearer')) { token = authorization.substring(7) } ...
obibuffett/casTest
src/testSummary.cpp
<gh_stars>0 // The "Clean And Simple Test" (CAST) software framework, tools, and // documentation are distributed under the terms of the MIT license a // copy of which is included with this package (see the file "LICENSE" // in the CAST poject tree's root directory). CAST may be used for any // purpose, including comm...
vrushank-agrawal/opencv-x64-cmake
opencv/sources/samples/python/tutorial_code/ImgTrans/distance_transformation/imageSegmentation.py
from __future__ import print_function import cv2 as cv import numpy as np import argparse import random as rng rng.seed(12345) ## [load_image] # Load the image parser = argparse.ArgumentParser(description='Code for Image Segmentation with Distance Transform and Watershed Algorithm.\ Sample code showing...
ksowmya/cloudstack-1
plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtNetworkDef.java
<gh_stars>1-10 // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "Lic...
erintripp/duracloud
retrievaltool/src/test/java/org/duracloud/retrieval/mgmt/StatusManagerTest.java
<filename>retrievaltool/src/test/java/org/duracloud/retrieval/mgmt/StatusManagerTest.java<gh_stars>0 /* * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://duracloud.org/license/ */ ...
alexjoybc/bcparis-service
src/main/java/ca/bc/gov/iamp/bcparis/exception/message/InvalidMessageType.java
package ca.bc.gov.iamp.bcparis.exception.message; public class InvalidMessageType extends RuntimeException{ private static final long serialVersionUID = 4101415006761946564L; public InvalidMessageType(String message) { super(message); } }
windystrife/UnrealEngine_NVIDIAGameWork
Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Private/NiagaraNodeParameterMapGet.cpp
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "NiagaraNodeParameterMapGet.h" #include "EdGraphSchema_Niagara.h" #include "NiagaraEditorUtilities.h" #include "SNiagaraGraphNodeConvert.h" #include "NiagaraGraph.h" #include "NiagaraHlslTranslator.h" #include "ScopedTransaction.h" #include "SNiagar...
heyx3/heyx3RT
RT/RT/Headers/Material.h
#pragma once #include "FastRand.h" #include "Shape.h" #include "DataSerialization.h" namespace RT { //A way to calculate the color of a surface. class RT_API Material : public ISerializable { public: //When a ray is scattered off the surface of this material, //The ray should...
konradotto/TS
dbReports/iondb/media/resources/kendo/src/js/kendo.mobile.scroller.js
/* * Kendo UI Web v2012.3.1114 (http://kendoui.com) * Copyright 2012 Telerik AD. All rights reserved. * * Kendo UI Web commercial licenses may be obtained at * https://www.kendoui.com/purchase/license-agreement/kendo-ui-web-commercial.aspx * If you do not own a commercial license, this file shall be governed by the * G...
Bibliome/alvisnlp
alvisnlp-bibliome/src/main/java/fr/inra/maiage/bibliome/alvisnlp/bibliomefactory/modules/fasttext/FasttextClassifierTrain.java
package fr.inra.maiage.bibliome.alvisnlp.bibliomefactory.modules.fasttext; import java.io.IOException; import java.util.logging.Logger; import fr.inra.maiage.bibliome.alvisnlp.core.corpus.Corpus; import fr.inra.maiage.bibliome.alvisnlp.core.corpus.expressions.Expression; import fr.inra.maiage.bibliome.alvisnlp.core.c...
kef/hieos
src/xds/src/com/vangent/hieos/services/xds/registry/mu/validation/DeleteDocumentSetCommandValidator.java
/* * This code is subject to the HIEOS License, Version 1.0 * * Copyright(c) 2012 Vangent, Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ...
Stanislav-Rybonka/studentsdb
students/views/students.py
from django.contrib import messages from django.contrib.messages.views import SuccessMessageMixin from django.core.urlresolvers import reverse, reverse_lazy from django.utils.translation import ugettext as _ from django.views import generic from django.contrib.auth.mixins import LoginRequiredMixin from ..forms import ...
ScalablyTyped/SlinkyTyped
t/twilio-video/src/main/scala/typingsSlinky/twilioVideo/mod/package.scala
<reponame>ScalablyTyped/SlinkyTyped<filename>t/twilio-video/src/main/scala/typingsSlinky/twilioVideo/mod/package.scala package typingsSlinky.twilioVideo import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, J...
shannah/CN1WebRTCDemo
webrtc/src/com/codename1/webrtc/VideoTrackSettings.java
<reponame>shannah/CN1WebRTCDemo<filename>webrtc/src/com/codename1/webrtc/VideoTrackSettings.java /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.codename1.webrtc; import ...
nalind/machine-config-operator
cmd/machine-config-server/version.go
<reponame>nalind/machine-config-operator<filename>cmd/machine-config-server/version.go package main import ( "flag" "fmt" "github.com/openshift/machine-config-operator/pkg/version" "github.com/spf13/cobra" ) var ( versionCmd = &cobra.Command{ Use: "version", Short: "Print the version number of Machine Con...
dsofowote/KW-Tool
keywordTool/pubfiles/src/code/oms/124727/default.js
<gh_stars>0 integration.meta = { "sectionID" : "124727", "siteName" : "Schw�bische", "publisher" : "oms", "platform" : "desktop" }; integration.testParams = {}; integration.params = { 'mf_siteId' : '707280', "plr_UseCreativeSettings" : true, "plr_ContentW" : 1080, "plr_ContentType" : "PAGESKINEXPRESS", "plr_...
vladmelnikov/effector
src/react/useStore.js
<reponame>vladmelnikov/effector //@flow import {type Store, isStore, invariant} from 'effector' import {useReducer, useEffect} from 'react' export function useStore<State>(store: Store<State>): State { invariant( isStore(store), 'useStore: The argument must be Store, but you passed %s.', store, ) co...
Marslanali/fpga_vertex_6_gtx_Interface
vertex6_gtx_tx_component/simulation/functional/isim/top_test_bench.exe.sim/secureip/m_00000000001816741715_0182631664.c
<filename>vertex6_gtx_tx_component/simulation/functional/isim/top_test_bench.exe.sim/secureip/m_00000000001816741715_0182631664.c /**********************************************************************/ /* ____ ____ */ /* / /\/ / ...
cstom4994/SourceEngineRebuild
src/shadereditor/src/vgui_editor/perforcefileexplorer.cpp
<filename>src/shadereditor/src/vgui_editor/perforcefileexplorer.cpp<gh_stars>1-10 //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======// // // Purpose: Contains a list of files, determines their perforce status // // $NoKeywords: $ //============================================================...
OpenKGC/hypergraphdb
p2p/src/java/org/hypergraphdb/peer/HGDBOntology.java
<filename>p2p/src/java/org/hypergraphdb/peer/HGDBOntology.java<gh_stars>100-1000 /* * This file is part of the HyperGraphDB source distribution. This is copyrighted * software. For permitted uses, licensing options and redistribution, please see * the LicensingInformation file at the root level of the distributi...
1stmateusz/motech
platform/mds/mds-web/src/main/java/org/motechproject/mds/web/domain/RelationshipsUpdate.java
<reponame>1stmateusz/motech<filename>platform/mds/mds-web/src/main/java/org/motechproject/mds/web/domain/RelationshipsUpdate.java package org.motechproject.mds.web.domain; import java.util.ArrayList; import java.util.List; /** * Representation of the related instances, that have been added or removed on the UI. */ ...
lewnelson/node-userapi
test/app/ErrorHandlers/NotFoundTest.js
'use strict'; const NotFound = require('../../../app/ErrorHandlers/NotFound.js'); const expect = require('chai').expect; describe('NotFound error handler class tests', () => { it('should call logGenericError when log is called with notice log type and not_found message', () => { const notFound = new NotFound();...
devilesk/hero-calculator
src/js/herocalc/main.js
'use strict'; var core = {}; core.InventoryViewModel = require("./inventory/InventoryViewModel"); core.AbilityModel = require("./AbilityModel"); core.BuffViewModel = require("./BuffViewModel"); core.HeroModel = require("./hero/HeroModel"); core.CloneModel = require("./hero/CloneModel"); core.UnitModel = require("./her...
anyroadcom/anyprice
lib/pricing_definition/resources.rb
require 'pricing_definition/resources/definition' module PricingDefinition module Resources end end
kzx1025/spark_improve
core/target/java/org/apache/spark/deploy/history/HistoryServer$.java
<gh_stars>0 package org.apache.spark.deploy.history; // no position /** * The recommended way of starting and stopping a HistoryServer is through the scripts * start-history-server.sh and stop-history-server.sh. The path to a base log directory * is must be specified, while the requested UI port is optional. For exa...
g--o/JSCF
jscf/graphics/graphics.js
/** * @class * @classdesc graphics related management (mainly canvas) * @memberof Graphics * * @param {Number} canvasWidth the width of the canvas to be created. * @param {Number} canvasHeight the height of the canvas to be created. * * @note: If canvasWidth or canvasHeight is negative, then they get the * ...
bopopescu/MQUIC
src/net/base/sdch_manager.cc
<reponame>bopopescu/MQUIC // Copyright (c) 2012 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 "net/base/sdch_manager.h" #include <limits.h> #include <utility> #include "base/base64url.h" #include "base/logg...
RawadAlaryan/Design-Patterns
src/main/java/behavioralDesignPatterns/stateDesignPattern/projectVendingMachine/Main/Main.java
<reponame>RawadAlaryan/Design-Patterns package behavioralDesignPatterns.stateDesignPattern.projectVendingMachine.Main; import behavioralDesignPatterns.stateDesignPattern.projectVendingMachine.Context.VendingMachine; //State Design Pattern Vending Machine. //Vending Machine activated by Machine States (HasMoney, ...
dvaerum/r10k
lib/r10k/git/rugged.rb
<gh_stars>100-1000 require 'r10k/git' begin require 'rugged' rescue LoadError end module R10K module Git module Rugged require 'r10k/git/rugged/bare_repository' require 'r10k/git/rugged/working_repository' require 'r10k/git/rugged/cache' require 'r10k/git/rugged/thin_repository' en...
bbleds/note-organizer
client/src/components/Landing.js
import React from 'react' export default () => { return( <h1>Landing</h1> ) }
WaterKnight/wc3libs
src/net/moonlightflower/wc3libs/txt/Jass.java
<reponame>WaterKnight/wc3libs<filename>src/net/moonlightflower/wc3libs/txt/Jass.java<gh_stars>0 package net.moonlightflower.wc3libs.txt; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; im...
TheAdityaKedia/ISAAC
provider/sync-git/src/main/java/sh/isaac/provider/sync/git/SyncServiceGIT.java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * * You may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * d...
Tenebrar/codebase
hacker/challenges/crypto/the_lightest_touch.py
<filename>hacker/challenges/crypto/the_lightest_touch.py<gh_stars>1-10 from hacker.bytestreams import substrings from hacker.codes import BRAILLE from hacker.decoder import decode value = [ ' . . . . .. . . . . . . . . . .. .. . .. . . . . .. .. . ', '.. .. . . . .. . .. ...
lit-uriy/mtl4-mirror
libs/numeric/mtl/examples/nesting/blas_functor_auto.hpp
template <typename Backup> struct blas_mult_t : public Backup { template <typename MatrixA, typename MatrixB, typename MatrixC> void operator()(MatrixA const& a, MatrixB const& b, MatrixC& c) { blas_mult_ft<MatrixA, MatrixB, MatrixC, Backup>()(a, b, c); } };
niklasf/flexmark-java
flexmark/src/main/java/com/vladsch/flexmark/html/RendererBuilder.java
package com.vladsch.flexmark.html; import com.vladsch.flexmark.html.renderer.HeaderIdGeneratorFactory; import com.vladsch.flexmark.util.data.DataHolder; import org.jetbrains.annotations.NotNull; /** * Extension point for RenderingExtensions that only provide attributes, link resolvers or html id generators */ publi...
wensby/advent-of-code
python/2020_15_2.py
<gh_stars>0 import sys def solve(input): # setup starting conditions numbers = [int(x) for x in input.rstrip('\n').split(',')] finished_turns = 0 previous_number = None previous_number_previous_turn = None turn_by_number = {} previous_overwritten = None # go through starting numbers for i in range(l...
Dbevan/SunderingShadows
d/antioch/ruins/obj/hammer.c
//Added lore -Cythera 4/05 #include <std.h> #include <spell.h> #include <magic.h> #include "../ruins.h" inherit "/d/common/obj/weapon/warhammer"; void dest_effect(object targ); void more_burn(object targ); int num; object targ; void create() { ::create(); set_name("%^BOLD%^%^RED%^Crimson Hammer%^RESET%^"); set_sho...
nhsuk/pomi-data-etl
test/integration/downloadAndProcessFile.js
<reponame>nhsuk/pomi-data-etl const fs = require('fs'); const chai = require('chai'); const parse = require('csv-parse/lib/sync'); const nock = require('nock'); const downloadAndProcessFile = require('../../app/lib/downloadAndProcessFile'); const constants = require('../../app/lib/constants'); const fileUtils = requir...
tapis-project/notifications
lib/src/main/java/edu/utexas/tacc/tapis/notifications/exceptions/DuplicateEntityException.java
package edu.utexas.tacc.tapis.notifications.exceptions; public class DuplicateEntityException extends Exception { public DuplicateEntityException(String message) { super(message); } public DuplicateEntityException(String message, Throwable err) { super(message, err); } }
fourier11/interview
ctci/java/Chapter 10/Question10_3/Question.java
package Question10_3; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.Scanner; /** * 给定一个输入文件,包含40亿的非负整数,请设计一种算法,产生一个不在该文件中的整数。 */ public class Question { public static long numberOfInts = ((long) Integer.MAX_VALUE) + 1; public static byte[] bitfield =...
mbiarnes/kogito-cloud-operator
cmd/kogito/command/remove/infinispan.go
<filename>cmd/kogito/command/remove/infinispan.go // Copyright 2019 Red Hat, Inc. and/or its affiliates // // 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/li...
isaponsoft/libamtrs
include/amtrs/.inc/filesystem-vfs.hpp
/* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. * * Use of this source code is governed by a BSD-style license that * * can be found in the LICENSE file. */ #ifndef __libamtrs__filesystem__vfs__hpp #define __libamtrs__filesystem__vfs__hpp AMTRS_FILESYSTEM_NAM...
angeluriot/Magic_royal
sources/cards/creatures/blacks/SkeletonDragons.cpp
<reponame>angeluriot/Magic_royal #include "cards/creatures/blacks/SkeletonDragons.hpp" SkeletonDragons::SkeletonDragons(): Creature(get_full_power(), get_full_toughness(), get_capacities()) {} SkeletonDragons::~SkeletonDragons() {} std::string SkeletonDragons::get_full_type() const { return Creature::get_full_type(...
javadev/classic-cherries
src/test/java/org/paukov/editdistance/LongestCommonSubsequenceTest.java
<reponame>javadev/classic-cherries package org.paukov.editdistance; import static org.fest.assertions.Assertions.assertThat; import org.junit.Test; /** * Created by dpaukov on 3/23/18. */ public class LongestCommonSubsequenceTest { @Test public void calculate_democrat_republican() throws Exception { Strin...
Potentii/Kunlun-Core
libs/repository/model/synchronizer/core-model-synchronizer.js
<gh_stars>1-10 // *Requiring the needed modules: const ModelSynchronizer = require('module'); const { COLLECTIONS } = require('../meta'); /** * Model synchronization for the core database * @class * @augments ModelSynchronizer */ class CoreModelSynchronizer extends ModelSynchronizer{ constructor(){super()} ...
excellencejey/octoin
depends/x86_64-w64-mingw32/include/QtTest/qtestmouse.h
<reponame>excellencejey/octoin<gh_stars>10-100 /**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the QtTest module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial ...
Georepublic/valhalla
valhalla/baldr/signinfo.h
#ifndef VALHALLA_BALDR_SIGNINFO_H_ #define VALHALLA_BALDR_SIGNINFO_H_ #include <valhalla/baldr/sign.h> namespace valhalla { namespace baldr { /** * Interface class used to pass information about a sign. * Encapsulates the sign type and the associated text. */ class SignInfo { public: /** * Constructor. * ...
dsh225/Markdown2Html
src/component/MenuLeft/Theme.js
import React from "react"; import {Menu, Dropdown} from "antd"; import {observer, inject} from "mobx-react"; import {RIGHT_SYMBOL, TEMPLATE_NUM, MARKDOWN_THEME_ID, STYLE} from "../../utils/constant"; import {replaceStyle} from "../../utils/helper"; import TEMPLATE from "../../template/index"; import "./Theme.css"; imp...
Zenika/zenscaler
core/scaler/service.go
package scaler import ( "encoding/json" "fmt" "net/http" log "github.com/Sirupsen/logrus" "github.com/Zenika/zenscaler/core" "github.com/Zenika/zenscaler/core/tls" "github.com/docker/engine-api/client" "github.com/docker/engine-api/types" "golang.org/x/net/context" ) // ServiceScaler work with docker 1.12 s...
ramonlopz1/UDEMY---Fullstack-Web-Developer
exercicios-js/4 - Funcao/paramsVariaveis.js
//arguments é o valor interno de uma função, a quantidade de parâmetros que tem nela //toda função tem esse parâmetro: arguments function soma() { let soma = 0 for (i in arguments) { soma += arguments[i] } return soma } console.log(soma()) //zero parâmetros console.log(soma(1)) //apenas 1 parâ...
artkuli/openvino
src/inference/include/openvino/runtime/intel_auto/properties.hpp
// Copyright (C) 2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <openvino/runtime/properties.hpp> #include <string> namespace ov { /** * @brief Namespace with Intel AUTO specific properties */ namespace intel_auto { /** * @brief auto/multi device setting that enables perfo...
sxyy/appium-uiautomator2-server
app/src/main/java/io/appium/uiautomator2/utils/UiExpressionParser.java
<filename>app/src/main/java/io/appium/uiautomator2/utils/UiExpressionParser.java<gh_stars>1-10 /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * See the NOTICE file distributed with this work for additional * information regardi...
trentford/iem
scripts/util/poker2afos.py
"""Ingest the files kindly sent to me by poker""" from __future__ import print_function import glob import re import datetime import subprocess import os import pytz from pyiem.util import noaaport_text, get_dbconn from pyiem.nws.product import TextProduct BAD_CHARS = r"[^\n\r\001\003a-zA-Z0-9:\(\)\%\.,\s\*\-\?\|/><&...
uk-gov-mirror/ministryofjustice.laa-apply-for-legal-aid
app/validators/currency_validator.rb
class CurrencyValidator < ActiveModel::Validations::NumericalityValidator ONLY_2_DECIMALS_PATTERN = /(\A-?[0-9]+\z)|(\A-?[0-9]*\.[0-9]{,2}\z)/.freeze def validate_each(record, attr_name, value) clean_value = clean_numeric_value(value) super(record, attr_name, clean_value) return if record.errors[attr_n...
redi83vl/datatools-server
src/main/java/com/conveyal/datatools/editor/models/transit/StatusType.java
<reponame>redi83vl/datatools-server package com.conveyal.datatools.editor.models.transit; public enum StatusType { IN_PROGRESS, PENDING_APPROVAL, APPROVED, DISABLED; public int toInt () { switch (this) { case APPROVED: return 2; case IN_PROGRESS: ...
sigurasg/ghidra
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/fileinfo/FileAttributeTypeGroup.java
<reponame>sigurasg/ghidra /* ### * IP: GHIDRA * * 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 ...
Omnirobotic/godot
modules/scene_manager/include/rcl_interfaces/msg/parameter__rosidl_typesupport_connext_c.h
// generated from // rosidl_typesupport_connext_c/resource/msg__rosidl_typesupport_connext_c.h.em // generated code does not contain a copyright notice #ifndef RCL_INTERFACES__MSG__PARAMETER__ROSIDL_TYPESUPPORT_CONNEXT_C_H_ #define RCL_INTERFACES__MSG__PARAMETER__ROSIDL_TYPESUPPORT_CONNEXT_C_H_ #include "rosidl_gener...