repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
swobspace/mirthCompanion
spec/decorators/note_decorator_spec.rb
# frozen_string_literal: true require 'rails_helper' RSpec.describe NoteDecorator do end
zhongwei30/media
source/layers/core-lib/lib/stateMessage.js
<filename>source/layers/core-lib/lib/stateMessage.js<gh_stars>10-100 // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 const States = require('./states'); const Statuses = require('./statuses'); /** * @class StateMessage * @description state message object ...
gaoxinge/taichi
python/taichi/ui/constants.py
"""Key constants for :mod:`~taichi.ui` """ SHIFT = 'Shift' ALT = 'Alt' CTRL = 'Control' ESCAPE = 'Escape' RETURN = 'Return' TAB = 'Tab' BACKSPACE = 'BackSpace' SPACE = 'Space' UP = 'Up' DOWN = 'Down' LEFT = 'Left' RIGHT = 'Right' CAPSLOCK = 'CapsLock' LMB = 'LMB' MMB = 'MMB' RMB = 'RMB' # Event types PRESS = "Press" ...
docquantum/airavata
modules/commons/src/main/java/org/apache/airavata/common/utils/JSONUtil.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"); ...
Hunteerq/Bank
server/src/main/java/com/kmb/bank/config/LogicConfig.java
package com.kmb.bank.config; import com.kmb.bank.mapper.CurrenciesMapper; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.security.SecureRandom; import java.util.Random; @Configuration public class LogicConfig { @Bean public Curren...
DrizzleRisk/metasploit-framework
modules/exploits/windows/browser/ms07_017_ani_loadimage_chunksize.rb
## # This module requires Metasploit: http://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## class MetasploitModule < Msf::Exploit::Remote Rank = GreatRanking # # This module acts as an HTTP server # include Msf::Exploit::Remote::HttpServer::HTML include Msf::Ex...
intel/compute-benchmarks
source/benchmarks/api_overhead_benchmark/definitions/execute_command_list_with_fence_destroy.h
<reponame>intel/compute-benchmarks<filename>source/benchmarks/api_overhead_benchmark/definitions/execute_command_list_with_fence_destroy.h /* * Copyright (C) 2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #pragma once #include "framework/argument/basic_argument.h" #include "framework/test_case/test...
ubpd/kobocat
onadata/apps/restservice/__init__.py
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import SERVICE_KPI_HOOK = ("kpi_hook", "KPI Hook POST") SERVICE_CHOICES = ( SERVICE_KPI_HOOK, ) default_app_config = "onadata.apps.restservice.app.RestServiceConfig"
TamaraAbells/okuna-api
openbook_devices/views.py
<filename>openbook_devices/views.py # Create your views here. from django.db import transaction from rest_framework import status from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from openbook_moderation.permissions import IsNo...
CiscoDevNet/ydk-cpp
cisco-ios-xe/ydk/models/cisco_ios_xe/DS1_MIB.cpp
<gh_stars>10-100 #include <sstream> #include <iostream> #include <ydk/entity_util.hpp> #include "bundle_info.hpp" #include "generated_entity_lookup.hpp" #include "DS1_MIB.hpp" using namespace ydk; namespace cisco_ios_xe { namespace DS1_MIB { DS1MIB::DS1MIB() : dsx1configtable(std::make_shared<DS1MIB::Dsx1Co...
amanchadha/LeetCode
1441. Build an Array With Stack Operations/main.py
class Solution: def buildArray(self, target: List[int], n: int) -> List[str]: res = [] n = min(max(target), n) for i in range(1, n+1): if i in target: res += ["Push"] else: res += ["Push","Pop"] return res
stockbal/abap-search-tools-ui
com.devepos.adt.searchandanalysistools.ui/src/com/devepos/adt/saat/internal/search/SearchParameterFactory.java
package com.devepos.adt.saat.internal.search; import java.text.MessageFormat; import com.devepos.adt.base.ui.AdtBaseUIResources; import com.devepos.adt.base.ui.IAdtBaseImages; import com.devepos.adt.base.ui.project.IAbapProjectProvider; import com.devepos.adt.saat.internal.SearchAndAnalysisPlugin; import com.devepos....
urbanairship/datacube
src/main/java/com/urbanairship/datacube/metrics/Metrics.java
package com.urbanairship.datacube.metrics; import com.codahale.metrics.Counter; import com.codahale.metrics.Gauge; import com.codahale.metrics.Histogram; import com.codahale.metrics.JmxReporter; import com.codahale.metrics.Meter; import com.codahale.metrics.Metric; import com.codahale.metrics.MetricFilter; import com....
dimagilg/commcare-hq
corehq/util/workbook_reading/adapters/raw_data.py
<filename>corehq/util/workbook_reading/adapters/raw_data.py from corehq.util.workbook_reading import Cell, Worksheet from corehq.util.workbook_reading.exceptions import SpreadsheetFileInvalidError def make_worksheet(rows=None, title=None): rows = rows or [] row_lengths = [len(row) for row in rows] if any(...
jaspervz/phantom
phantom-finagle/src/test/scala/com/outworkers/phantom/finagle/query/prepared/PreparedUpdateQueryTest.scala
<gh_stars>0 /* * Copyright 2013 - 2019 Outworkers Ltd. * * 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 appli...
lborrel/Offline
Mu2eG4/inc/constructTargetPS.hh
<gh_stars>1-10 #ifndef Mu2eG4_constructTargetPS_hh #define Mu2eG4_constructTargetPS_hh // // Free function to create Production Target // // // Original author <NAME> // // G4 includes #include "Geant4/G4ThreeVector.hh" #include "Geant4/G4RotationMatrix.hh" namespace mu2e { class VolumeInfo; class SimpleConfig; ...
popldo/yggdrash
yggdrash-node/src/test/java/io/yggdrash/node/api/AdminApiImplTest.java
/* * Copyright 2018 Akashic 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
OpenSRP/opensrp-client-fp
reference-app/src/main/java/org/smartregister/sample/fp/app/FPApplication.java
package org.smartregister.sample.fp.app; import android.content.Intent; import androidx.annotation.NonNull; import com.evernote.android.job.JobManager; import org.smartregister.Context; import org.smartregister.CoreLibrary; import org.smartregister.commonregistry.CommonFtsObject; import org.smartregister.configurab...
chaohu/Daily-Learning
Foundation-of-CS/ics14_lab1-3/lab2/src/support.c
<gh_stars>10-100 /* * support.c - Helper functions for the bomb * * Copyright (c) 2004-2011, <NAME> and <NAME>, All rights reserved. * May not be used, modified, or copied without permission. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <ctype.h> #include <signal.h> ...
jasobrown/cockroach
pkg/sql/stats/table_statistic.pb.go
<reponame>jasobrown/cockroach<filename>pkg/sql/stats/table_statistic.pb.go // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: sql/stats/table_statistic.proto package stats import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" import github_com_cockroachdb_cockroach_pkg_sql_cata...
cirope/autocdh
client/templates/samples/concretes/helpers.js
var helpers = { additive: function () { var additiveId = AutoForm.getFieldValue('additiveId') var additive = additiveId && Additives.findOne(additiveId) return additive } } Template._concreteNew.helpers(helpers) Template._concreteEdit.helpers(helpers)
vmaligireddy/mangle
mangle-services/src/test/java/com/vmware/mangle/unittest/services/helpers/TaskHelperTest.java
<reponame>vmaligireddy/mangle<gh_stars>100-1000 /* * Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved. * * This product is licensed to you under the Apache License, Version 2.0 (the "License"). * You may not use this product except in compliance with the License. * * This product may include a number of s...
BlaatSchaapCode/MicroBlaat
demos/i2c/main.c
/* File: main.c Author: <NAME> License: MIT MIT License Copyright (c) 2017, 2018, 2019, 2020 <NAME> <<EMAIL>> 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, inc...
Su-Yeo/Capstone
HomeStay/src/test/java/com/homestay/korea/DataScheduling/InsertRoutineTest.java
package com.homestay.korea.DataScheduling; import java.io.IOException; import java.util.Calendar; import java.util.HashMap; import java.util.List; import java.util.Map; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.tes...
uk-gov-mirror/hmrc.for-frontend
app/connectors/HODConnector.scala
<gh_stars>1-10 /* * Copyright 2021 HM Revenue & Customs * * 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 appl...
indranil32/android-apidemos
app/src/main/java/io/appium/android/apis/graphics/spritetext/Projector.java
<filename>app/src/main/java/io/appium/android/apis/graphics/spritetext/Projector.java /* * Copyright (C) 2007 The Android Open Source Project * * 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...
terryky/tiny_gles_tracer
src/apis/egl/eglReleaseTexImage.c
<filename>src/apis/egl/eglReleaseTexImage.c #include <stdio.h> #include "GLEStrace.h" #define eglReleaseTexImage_ \ ((EGLBoolean (*)(EGLDisplay dpy, EGLSurface surface, EGLint buffer)) \ EGL_ENTRY_PTR(eglReleaseTexImage_Idx)) EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface sur...
rtatu/loft_app
src/component/General/Loader.js
<filename>src/component/General/Loader.js import React from "react"; import ReactDOM from "react-dom"; import "./loading.sass"; // ripple loading animation const Loading = () => { return ( <div id="loading"> <div className="lds-ripple"> <div></div> <div></div> </div> </div> ); ...
eddieh/webkit-webinspector
lib/WebInspectorUI/v7/SourceCode.js
/* * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
NNiazi/Wave-IOS-App
wave/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FIRGoogleAuthProvider.h
version https://git-lfs.github.com/spec/v1 oid sha256:2583c03568ef7e9ae66a0c8e71ae6e2a6b50bb322aacc8d07213fcb2ef38f756 size 1748
fpdjsns/Algorithm
leetcode/medium/622. Design Circular Queue.cpp
<filename>leetcode/medium/622. Design Circular Queue.cpp /** * problem : https://leetcode.com/problems/design-circular-queue/ * space complexity : O(k) */ class MyCircularQueue { vector<int> q; int left = 0; int right = -1; int cnt = 0; int size = 0; public: MyCircularQueue(int k) { ...
humberto-trujillo/Badminton_Shot_Classifier
Classifiers/GRT/ClassificationModules/GMM/GMM.h
/** @file @author <NAME> <<EMAIL>> */ /** GRT MIT License Copyright (c) <2012> <<NAME>, Media Lab, MIT> 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 lim...
dk-dev/balanced-dashboard
app/lib/file-readers/existing-customer-credit-creator.js
<filename>app/lib/file-readers/existing-customer-credit-creator.js import Customer from "balanced-dashboard/models/customer"; import CreditCreator from "./credit-creator"; import baseValidationsObject from "./base-validations"; import CreditCreatorFields from "./credit-creator-fields"; var ExistingCustomerCreditCreato...
changgang/steps
code/steps/header/model/wtg_models/wt_aerodynamic_model/aerdf.h
#ifndef AERDF_H #define AERDF_H #include "header/model/wtg_models/wt_aerodynamic_model/wt_aerodynamic_model.h" #include <cstdlib> class AERDF : public WT_AERODYNAMIC_MODEL { public: AERDF(STEPS& toolkit); AERDF(const AERDF& model); virtual ~AERDF(); virtual AERDF& operator=(const A...
kapeels/ohmage-server
src/org/ohmage/validator/UserValidators.java
/******************************************************************************* * Copyright 2012 The Regents of the University of California * * 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 Licens...
project-kotinos/TGDF___official-site
db/migrate/20190205113434_add_single_to_agenda_times.rb
# frozen_string_literal: true class AddSingleToAgendaTimes < ActiveRecord::Migration[5.1] def change add_column :agenda_times, :single, :bool end end
doktoric/test123
core/src/main/java/com/sequenceiq/cloudbreak/conf/AppConfig.java
<reponame>doktoric/test123 package com.sequenceiq.cloudbreak.conf; import static com.sequenceiq.cloudbreak.EnvironmentVariableConfig.CB_CONTAINER_THREADPOOL_CAPACITY_SIZE; import static com.sequenceiq.cloudbreak.EnvironmentVariableConfig.CB_CONTAINER_THREADPOOL_CORE_SIZE; import static com.sequenceiq.cloudbreak.Enviro...
dconnet/AgilityBook
src/Win/DlgRegNum.h
<reponame>dconnet/AgilityBook #pragma once /* * Copyright (c) <NAME>. All Rights Reserved. * * License: See License.txt */ /** * @file * @brief interface of the CDlgRegNum class * @author <NAME> * * Revision History * 2009-02-11 Ported to wxWidgets. * 2006-02-16 Cleaned up memory usage with smart pointers....
wangsun1983/Obotcha
external/mysql_connector/strings/my_strtoll10.c
<gh_stars>10-100 /* Copyright (C) 2003 MySQL AB 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 Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, ...
yangra/SoftUni
Java-DB-Fundamentals/DatabasesFrameworks-Hibernate&SpringData/11.JSONProcessing/car_dealer/src/main/java/softuni/services/api/SupplierService.java
package softuni.services.api; import softuni.dto.JsonImport.SupplierImportJsonDto; import softuni.dto.JsonImport.SupplierDto; import softuni.dto.JsonQuery.Query3.SupplierLocalDto; import java.util.List; public interface SupplierService { void saveSupplierDto(SupplierImportJsonDto supplierImportJsonDto); L...
ssshammi/real-time-3d-rendering-with-directx-and-hlsl
source/Library.Shared/RenderTarget.h
#pragma once #include "RTTI.h" #include <d3d11.h> #include <stack> #include <gsl\gsl> #include <vector> namespace Library { class RenderTarget : public RTTI { RTTI_DECLARATIONS(RenderTarget, RTTI) public: RenderTarget() = default; RenderTarget(const RenderTarget&) = delete; RenderTarget(RenderTarget&&) = ...
HighCWu/tpythonpp
examples/sdl_ode.py
import sdl SW = 800 SH = 240 def test(): w = world() print(w) w.setGravity( vec3(0,-9.81,0) ) b = body( w ) m = mass() m.setSphere( 2500.0, 0.05 ) b.setMass( m ) b.setPosition( vec3(SW/2,20,0) ) b.addTorque( vec3(10,0,0) ) b.setRotation( quat(0.5, 0.5, 0, 0) ) time = 0.0 dt = 0.3 while True: sdl.clear(...
jrmarino/ravensource
bucket_78/ghostscript/patches/patch-leptonica_src_environ.h
--- leptonica/src/environ.h.orig 2021-09-27 07:44:02 UTC +++ leptonica/src/environ.h @@ -172,7 +172,7 @@ typedef uintptr_t l_uintptr_t; * To use them on MacOS, which does not support these functions, set it to 0. *-------------------------------------------------------------------------*/ #if !defined(HAVE_CONFIG_...
muescha/website
app/models/authorization.rb
<gh_stars>10-100 class Authorization < ActiveRecord::Base #Authorization belongs to a user belongs_to :user validates_uniqueness_of :uid, :scope => :provider def self.create_authorization(auth, user = nil) auth_data = Authorization.extract_auth_data(auth) nick_data = Authorization.extract_nick_data(au...
bitigchi/MuditaOS
module-audio/Audio/encoder/EncoderWAV.cpp
// Copyright (c) 2017-2021, Mudit<NAME>.o. All rights reserved. // For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md #include "EncoderWAV.hpp" #include <log/log.hpp> namespace audio { EncoderWAV::EncoderWAV(const char *fileName, const Encoder::Format &frmt) : Encoder(fileName, frmt) { ...
JNeiger/robocup-firmware
firmware/robot2015/src-ctrl/modules/ControllerTaskThread.cpp
#include <RPCVariable.h> #include <rtos.h> #include <Console.hpp> #include <assert.hpp> #include <logger.hpp> #include "PidMotionController.hpp" #include "RtosTimerHelper.hpp" #include "fpga.hpp" #include "io-expander.hpp" #include "motors.hpp" #include "mpu-6050.hpp" #include "robot-devices.hpp" #include "task-signa...
fahadnasrullah109/KalturaClient-Android
KalturaClient/src/main/java/com/kaltura/client/services/BulkService.java
<gh_stars>0 // =================================================================================================== // _ __ _ _ // | |/ /__ _| | |_ _ _ _ _ __ _ // | ' </ _` | | _| || | '_/ _` | // |_|\_\__,_|_|\_...
danielfojt/DeltaPorts
ports/www/chromium-legacy/newport/files/patch-components_gcm__driver_gcm__client.h
<filename>ports/www/chromium-legacy/newport/files/patch-components_gcm__driver_gcm__client.h --- components/gcm_driver/gcm_client.h.orig 2019-10-21 19:06:29 UTC +++ components/gcm_driver/gcm_client.h @@ -86,6 +86,7 @@ class GCMClient { PLATFORM_CROS, PLATFORM_IOS, PLATFORM_ANDROID, + PLATFORM_BSD, ...
ROTARTSI82/Hephaestus
docs/search/variables_6.js
<gh_stars>0 var searchData= [ ['line_263',['line',['../df/d37/structhp_1_1code__location.html#a56988fba3ef3886bbf7b85593172567f',1,'hp::code_location']]], ['logging_5fenabled_264',['logging_enabled',['../d6/d7a/namespacehp.html#a2800114c14296c79f91dc7b7eb06cc11',1,'hp']]] ];
vlehtola/questmud
lib/wizards/torspo/areat/gnomes/hills12.c
<filename>lib/wizards/torspo/areat/gnomes/hills12.c inherit "room/room"; reset(arg) { if(!present("farmer")) { move_object(clone_object("/wizards/torspo/areat/gnomes/monsters/farmer1"), this_object()); } if(!present("pony")) { move_object(clone_object("/wizards/torspo/areat/gnomes/monsters/pony1"), this_obje...
dvorka/mindraider
mr7/src/main/java/com/emental/mindraider/ui/outline/OutlineSorterJPanel.java
<filename>mr7/src/main/java/com/emental/mindraider/ui/outline/OutlineSorterJPanel.java<gh_stars>1-10 /* =========================================================================== Copyright 2002-2010 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in co...
adligo/tests4j_tests.adligo.org
src/org/adligo/tests4j_tests/references_groups/Tests4J_SystemTrials_GwtReferenceGroup.java
package org.adligo.tests4j_tests.references_groups; public class Tests4J_SystemTrials_GwtReferenceGroup extends Tests4J_ReferenceGroupGwt { public static final Tests4J_SystemTrials_GwtReferenceGroup INSTANCE = new Tests4J_SystemTrials_GwtReferenceGroup(); private Tests4J_SystemTrials_GwtReferenceGroup() { super...
meepobrother/nger
dist/nger-core/lib/cli/option.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ims_decorator_1 = require("ims-decorator"); exports.OptionMetadataKey = 'OptionMetadataKey'; exports.Option = ims_decorator_1.makeDecorator(exports.OptionMetadataKey); function isOptionPropertyAst(ast) { return ast.metadataKey === ex...
martmists-gh/BDSP
include/il2cpp/Dpr/Battle/View/Systems/BattleViewUISystem/__c__DisplayClass204_0.h
<reponame>martmists-gh/BDSP #pragma once #include "il2cpp.h" void Dpr_Battle_View_Systems_BattleViewUISystem___c__DisplayClass204_0___ctor (Dpr_Battle_View_Systems_BattleViewUISystem___c__DisplayClass204_0_o* __this, const MethodInfo* method_info); void Dpr_Battle_View_Systems_BattleViewUISystem___c__DisplayClass204_...
keiichi-hikita/eclsdk
ecl/connectivity/exceptions.py
<gh_stars>1-10 """ Exception definitions for Interconnectivity. """ from ecl import exceptions class HttpException(exceptions.HttpException): api_error_key = 'reason' class NotFoundException(HttpException): pass
simonprast/wopi-engine
insurance/api/dev/urls.py
from django.urls import path from rest_framework.urlpatterns import format_suffix_patterns from . import api_views urlpatterns = [ # POST - request to calculate policy with given insurance data path('', api_views.CalculateInsurance.as_view()), ] urlpatterns = format_suffix_patterns(urlpatterns)
madhurisandbhor/ExpenseTracker
app/containers/HomePage/StatisticsContainer/index.js
/** * * StatisticsContainer * */ import React, { memo, useEffect, useState, useContext, useCallback, } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { withStyles } from '@material-ui/core'; import Card from '@material-ui/core/Card/Card'; import { connect...
ani03sha/Leetcoding
march-2021-leetocding-challenge/src/test/java/org/redquark/leetcoding/challenge/Problem21_ReorderedPowerOf2Test.java
package org.redquark.leetcoding.challenge; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; class Problem21_ReorderedPowerOf2Test { private final Problem21_ReorderedPowerOf2 testObject = new Problem21_Reorde...
bobbrow/cpp-docs
docs/atl-mfc-shared/codesnippet/CPP/ctime-class_4.cpp
CTime t = CTime::GetCurrentTime(); DBTIMESTAMP ts; t.GetAsDBTIMESTAMP(ts); // Retrieves the time in t into the ts structure
Bedford-Express-1023/1023-2022
src/main/java/frc/robot/subsystems/ClimberSubsystem.java
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.subsystems; import com.ctre.phoenix.motorcontrol.ControlMode; import com.ctre.phoenix.motorcontrol.ca...
hefen1/chromium
components/enhanced_bookmarks/bookmark_server_search_service.h
<gh_stars>0 // Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SEARCH_SERVICE_H_ #define COMPONENTS_ENHANCED_BOOKMARKS_BOOKMARK_SERVER_SEARCH_SERVICE_H...
alapontgr/Engine
Engine/Src/Common/GfShaderCompiler/GfShaderCache.h
<reponame>alapontgr/Engine #pragma once //////////////////////////////////////////////////////////////////////////////// // // Author: <NAME> (<EMAIL>) // File: GfShaderCache.h // // Copyright (c) 2021 (See README.md) // //////////////////////////////////////////////////////////////////////////////// #ifndef __GFSHADE...
balent/db-scheduler
db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/ExecutionTest.java
package com.github.kagkarlsson.scheduler; import com.github.kagkarlsson.scheduler.task.Execution; import com.github.kagkarlsson.scheduler.task.schedule.FixedDelay; import com.github.kagkarlsson.scheduler.task.helper.OneTimeTask; import com.github.kagkarlsson.scheduler.task.helper.RecurringTask; import java.time.Durat...
jakins94/Land-Of-Heroes-4
src/client/ItemHandler.js
import { pickupItem } from './Socket'; let itemList = [ // Name, sprite name ['Health potion', 'healthPotion'], ['Coins', 'coins'], ['Copper helmet', 'copperHelm'], ['Copper platelegs', 'copperLegs'], ['Copper shield', 'copperShield'], ['Copper platebody', 'copperBody'], ['Leather boots', ...
davesag/social-media-collector
src/content/facebook/utils/post/normaliseCommonData.js
<filename>src/content/facebook/utils/post/normaliseCommonData.js /* eslint-disable camelcase */ /** * Take the data injected into the feedscanner and return just the bits we need. * Note: we must get `id` and `client_token` elsewhere. * * @param {Object} data — the data as suppied to the feed scanner. * @retu...
the-wrench-io/thena
thena-core/thena-docdb-api/src/main/java/io/resys/thena/docdb/spi/repo/RepoQueryBuilder.java
<reponame>the-wrench-io/thena<filename>thena-core/thena-docdb-api/src/main/java/io/resys/thena/docdb/spi/repo/RepoQueryBuilder.java package io.resys.thena.docdb.spi.repo; /*- * #%L * thena-docdb-api * %% * Copyright (C) 2021 Copyright 2021 ReSys OÜ * %% * Licensed under the Apache License, Version 2.0 (the "Lice...
erikyryan/orientacao-a-objeto
4-excecoes/12.4-exceptions/src/App.java
public class App { public static void main(String[] args) throws Exception { try{ int a = 5 / 0; }catch(Exception e){ System.out.println(e.getMessage()); }finally{ System.out.println("Executando independente se há uma exceção"); } } }
barrasflorian/jeo
Common/src/jeo/common/structure/tree/node/AVLBinaryNode.java
<reponame>barrasflorian/jeo /* * The MIT License * * Copyright 2013-2015 <NAME>. * * 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...
max402/secure-token-service
sts-e2e-tests/src/test/java/de/adorsys/sts/tests/e2e/AdminControllerJpaTest.java
package de.adorsys.sts.tests.e2e; import de.adorsys.sts.tests.BaseEndpointTest; import de.adorsys.sts.tests.JpaPersistenceAutoConfiguration; import de.adorsys.sts.tests.Resource; import de.adorsys.sts.tests.config.WithAdminConfig; import de.adorsys.sts.tests.config.WithoutWebSecurityConfig; import lombok.SneakyThrows;...
sherry-pra/arcs
particles/Products/source/ManufacturerInfo.js
/** * @license * Copyright (c) 2017 Google Inc. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional IP rights grant found at * http://polymer.github.io...
CorentG/Pokecube-Issues-and-Wiki
src/main/java/pokecube/core/moves/zmoves/ZPower.java
<filename>src/main/java/pokecube/core/moves/zmoves/ZPower.java<gh_stars>10-100 package pokecube.core.moves.zmoves; import pokecube.core.interfaces.IPokemob; public interface ZPower { default boolean canZMove(final IPokemob pokemob, final String moveIn) { return false; } }
bartoszgolek/whattodofordinner
app/src/main/java/biz/golek/whattodofordinner/view/activities/PromptsActivity.java
<reponame>bartoszgolek/whattodofordinner package biz.golek.whattodofordinner.view.activities; import android.support.annotation.NonNull; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.ContextMenu; import android.view.MenuInflater;...
Kuangcp/JavaBase
hadoop/src/main/java/com/github/kuangcp/hdfs/hi/GeneralFileActionDemo.java
<reponame>Kuangcp/JavaBase package com.github.kuangcp.hdfs.hi; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.URI; import java.nio.charset.StandardCharsets; import java.util.Arrays; import ja...
dvoros/cb-cli
dataplane/api/model/datalake_prerequisite_v4_request.go
<filename>dataplane/api/model/datalake_prerequisite_v4_request.go<gh_stars>0 // Code generated by go-swagger; DO NOT EDIT. package model // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "strconv" strfmt "github.com/go-ope...
tanbinh123/microservice
eureka-client-admin/src/main/java/com/javaweb/web/service/DistrictService.java
package com.javaweb.web.service; import java.util.List; import com.javaweb.web.eo.roleRestrict.ProvinceCityDistrictResponse; import com.javaweb.web.eo.roleRestrict.RoleRestrictResponse; public interface DistrictService { List<ProvinceCityDistrictResponse> getDistrictList(String cityCode,RoleRestrictResponse roleR...
calheiros/super-box
app/src/main/java/com/jefferson/application/br/activity/VideoPlayerActivity.java
package com.jefferson.application.br.activity; import android.content.*; import android.content.pm.*; import android.media.*; import android.net.*; import android.os.*; import android.view.*; import android.widget.*; import com.jefferson.application.br.*; import java.io.*; import java.security.*; import java.util.*; ...
refatK/Mini-Capstone-Project
k9mail/src/main/java/com/fsck/k9/FollowUpNotificationsToSendNowService.java
package com.fsck.k9; import android.app.IntentService; import android.app.PendingIntent; import android.content.Intent; import android.support.v4.app.NotificationCompat; import android.support.v4.app.NotificationManagerCompat; import android.util.Log; import com.fsck.k9.activity.MessageReference; import com.fsck.k9.a...
ucsd-progsys/csolve-bak
tests/cpj/ckernels/unique_arr.c
//testing contextual types for object uniqueness #include <csolve.h> #include <stdlib.h> /* const int sz = 5; */ #define sz 5 typedef struct _obj obj; struct _obj { //int x; int FINAL REF(V >= 0) id; }; //int main(int argc, char ** argv) //{ // list * NNVALIDPTR * START ARRAY arr; // arr = malloc(sizeof(obj*...
isabelcosta/eui
src/components/button/button_toggle/index.js
<reponame>isabelcosta/eui<gh_stars>1-10 export { EuiButtonToggle } from './button_toggle';
ahoy-jon/dotty-cps-async
src/main/scala/cps/CpsMonad.scala
package cps import scala.quoted._ import scala.util.Try import scala.concurrent.duration._ trait CpsMonad[F[_]] { def pure[T](t:T):F[T] def map[A,B](fa:F[A])(f: A=>B):F[B] def flatMap[A,B](fa:F[A])(f: A=>F[B]):F[B] } trait CpsTryMonad[F[_]] extends CpsMonad[F] { def error[A](e: Throwable): F[A] ...
chigley/advent2021
day12/cave_system.go
package day12 import ( "fmt" "strings" ) type ( CaveSystem map[string]map[string]struct{} Caves map[string]struct{} ) func NewCaveSystem(in []string) (CaveSystem, error) { cs := make(CaveSystem) for _, l := range in { toks := strings.SplitN(l, "-", 2) if len(toks) != 2 { return nil, fmt.Errorf("da...
jainsakshi2395/linux
arch/powerpc/include/asm/probes.h
<filename>arch/powerpc/include/asm/probes.h /* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ASM_POWERPC_PROBES_H #define _ASM_POWERPC_PROBES_H #ifdef __KERNEL__ /* * Definitions common to probes files * * Copyright IBM Corporation, 2012 */ #include <linux/types.h> typedef u32 ppc_opcode_t; #define BREAKPO...
KaloyanBorisov/amazon-ecs-local-container-endpoints
local-container-endpoints/handlers/functional_tests/test_helper.go
<reponame>KaloyanBorisov/amazon-ecs-local-container-endpoints // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may // not use this file except in compliance with the License. A copy of the // License is located at // // ...
11Zero/DemoBCG
ToolKit/ReportControl/TrackControl/XTPTrackBlock.cpp
// XTPReportRecordTrack.cpp : implementation of the CXTPReportRecordTrackMod class. // // This file is a part of the XTREME REPORTCONTROL MFC class library. // (c)1998-2011 <NAME>, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHATSOEVER...
alysivji/github-adapter
migrations/versions/20200707_02-57-28__remove_redundant_columns.py
"""remove redundant columns Revision ID: 337517ec92c5 Revises: <KEY> Create Date: 2020-07-07 02:57:28.121225 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = "337517ec92c5" down_revision = "<KEY>" branch_labels = None de...
mhaseeb123/TECA
alg/teca_variant_array_operand.cxx
#include "teca_variant_array_operand.h" #include <cstdlib> #include <cerrno> namespace teca_variant_array_operand { // -------------------------------------------------------------------------- int resolver::get_constant(const char *s, p_teca_variant_array &c) { // match the length of the arrays already in the c...
wilsonjie/das
das-client/src/main/java/com/ppdai/das/core/TransactionServer.java
package com.ppdai.das.core; import java.sql.SQLException; import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentHashMap; import com.ppdai.das.client.Hints; import...
VladimirMetodiev/JavaByH.Schildt
src/chapter7/shapes/ColourTriangle.java
<filename>src/chapter7/shapes/ColourTriangle.java<gh_stars>0 package chapter7.shapes; public class ColourTriangle extends Triangle { private String colour = null; protected ColourTriangle(String colour, double height, double width) { super(height, width); this.colour = colour; } publi...
Rudracool/MothercareExtensionDevelopmentTool
ExtensionDevelopmentTools-21.2.0/gulpfile.js
<reponame>Rudracool/MothercareExtensionDevelopmentTool /*jshint esversion: 6 */ 'use strict'; const fs = require('fs'); const path = require('path'); const HelpDisplay = require('./gulp/extension-mechanism/HelpDisplay'); const gulp = require('gulp'); const nsArgs = require('ns-args'); nsArgs.addHiddenParam('product',...
gitabhishekdp/CppMicroServices
compendium/tools/SCRCodeGen/Util.hpp
<reponame>gitabhishekdp/CppMicroServices /*============================================================================= Library: CppMicroServices Copyright (c) The CppMicroServices developers. See the COPYRIGHT file at the top-level directory of this distribution and at https://github.com/CppMicroServices/Cp...
laboratoriobridge/res-api-public
src/main/java/br/ufsc/bridge/res/dab/domain/ResABCriticidadeEnum.java
<gh_stars>0 package br.ufsc.bridge.res.dab.domain; import lombok.AllArgsConstructor; import lombok.Getter; import br.ufsc.bridge.res.util.json.JsonPathValueConverter; @Getter @AllArgsConstructor public enum ResABCriticidadeEnum { BAIXO("Baixo", "at0102"), ALTO("Alto", "at0103"), INDETERMINADO("Indeterminado", "at...
chs6558/chs6558.github.io
node_modules/@styled-icons/material/Nfc/Nfc.esm.js
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var Nfc = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createElement(...
strassek/chromiumos-platform2
libhwsec/overalls/overalls_api.h
// Copyright 2019 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef LIBHWSEC_OVERALLS_OVERALLS_API_H_ #define LIBHWSEC_OVERALLS_OVERALLS_API_H_ #include "libhwsec/hwsec_export.h" #include "libhwsec/overalls/ove...
rupamliquiloans/fineract
integration-tests/src/test/java/org/apache/fineract/integrationtests/client/DocumentTest.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 m...
SmartDeveloperHub/sdh-org-harvester
harvester/src/main/java/org/smartdeveloperhub/harvester/org/backend/ProductPublisher.java
/** * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=# * This file is part of the Smart Developer Hub Project: * http://www.smartdeveloperhub.org/ * * Center for Open Middleware * http://www.centeropenmiddleware.com/ * #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-...
HappyKL/mindspore
mindspore/ccsrc/backend/session/ascend_control_parser.cc
/** * Copyright 2019 Huawei Technologies Co., Ltd * * 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...
jobechoi/bazel
src/tools/android/java/com/google/devtools/build/android/dexer/ZipEntryContent.java
// Copyright 2016 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
robdimsdale/project-euler
src/main/java/com/rmd/personal/projecteuler/P044.java
package com.rmd.personal.projecteuler; public class P044 implements Problem { @Override public String getDescription() { return "Pentagonal numbers are generated by the formula, Pn=n(3n−1)/2. The first ten pentagonal numbers " + "are:\n\n" + "1, 5, 12, 22, 35, 5...
casionone/linkis-0225
linkis-commons/linkis-storage/src/main/java/org/apache/linkis/storage/excel/XlsUtils.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 ...
priyamshah112/Project-Descripton-Blog
tech_project/lib/python2.7/site-packages/phonenumbers/shortdata/region_GG.py
"""Auto-generated file, do not edit by hand. GG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_GG = PhoneMetadata(id='GG', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[19]\\d{2,5}', possible_length=(3, 4, 5...