repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
hongxu-jia/s2n-tls
tests/cbmc/proofs/s2n_socket_read/s2n_socket_read_harness.c
<reponame>hongxu-jia/s2n-tls<filename>tests/cbmc/proofs/s2n_socket_read/s2n_socket_read_harness.c /* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */ /* SPDX-License-Identifier: Apache-2.0 */ /** * @file s2n_socket_read_harness.c * @brief Implements the proof harness for s2n_socket_read function...
haodeon/salt
salt/utils/yamllint.py
import logging import salt.utils.stringutils HAS_YAMLLINT = True try: from yamllint import linter from yamllint.config import YamlLintConfig except ImportError: HAS_YAMLLINT = False log = logging.getLogger(__name__) __virtualname__ = "yamllint" def __virtual__(): if HAS_YAMLLINT: return __...
Stratio/Sqoop
connector/connector-hdfs/src/test/java/org/apache/sqoop/connector/hdfs/TestToInitializer.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...
zyh825/hana-ui
demo/src/pages/document/seeds/Image/ExampleBase.js
import React, {Component} from 'react'; import {Image, Card} from 'hana-ui'; import ExampleBlock from 'demo/ExampleBlock'; const exampleSrc = 'https://t4.kn3.net/taringa/5/C/0/6/C/9/DogeDogOficial/59C.jpg'; /** * @en * Base * * Images with different size and shape. * * @cn * 基础 * * 不同尺寸、形状的图片。 */ export def...
synfron/ReshaperForBurp
src/main/java/synfron/reshaper/burp/ui/components/rules/thens/ThenComponent.java
<gh_stars>10-100 package synfron.reshaper.burp.ui.components.rules.thens; import synfron.reshaper.burp.core.rules.thens.Then; import synfron.reshaper.burp.ui.components.rules.RuleOperationComponent; import synfron.reshaper.burp.ui.models.rules.thens.ThenModel; import javax.swing.*; import javax.swing.border.CompoundB...
noisychannel/joshua
src/joshua/decoder/phrase/Note.java
<filename>src/joshua/decoder/phrase/Note.java package joshua.decoder.phrase; // PORT: done public class Note { public Object value; public String toString() { return value.toString(); } public Note() { } public Note(Object value) { this.value = value; } public Object get() { re...
yjling2019/KTListViewController
KTListViewController/Classes/Protocol/ViewProtocol/KTCollectionCellProtocol.h
<gh_stars>0 // // KTCollectionCellProtocol.h // KTListViewController // // Created by KOTU on 2021/12/10. // #import <Foundation/Foundation.h> #import "KTReuseViewProtocol.h" NS_ASSUME_NONNULL_BEGIN @protocol KTCollectionCellProtocol <KTReuseViewProtocol> @optional /// 单元格的size,根据model动态可变 /// @param model 数据源 ...
2JJ1/RoundBot
website/routes/api/stripe/index.js
<gh_stars>0 const router = require('express').Router() var bodyParser = require('body-parser') const inGuild = require('../../../my_modules/inguildapi') //Ensures that only admins of the guild can make the API call // /api/stripe router.use("/webhook", require('./webhook')) router.post("/subscribe", bodyParser.json()...
alchemy315/NoPFS
torch-test/mpich-3.4.3/modules/ucx/src/ucg/builtin/plan/builtin_plan.h
<gh_stars>0 /* * Copyright (C) Huawei Technologies Co., Ltd. 2019. ALL RIGHTS RESERVED. * See file LICENSE for terms. */ #ifndef UCG_BUILTIN_PLAN_H #define UCG_BUILTIN_PLAN_H #include <ucg/api/ucg_plan_component.h> #include <ucs/datastruct/mpool.inl> #include <ucp/core/ucp_types.h> /* for ucp_rsc_index_t */ #incl...
KwenaMashamaite/IME
include/IME/core/scene/GameObjectContainer.h
<reponame>KwenaMashamaite/IME<gh_stars>1-10 //////////////////////////////////////////////////////////////////////////////// // IME - Infinite Motion Engine // // Copyright (c) 2020-2021 <NAME> (<EMAIL>) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associate...
galeki/chito
plugins/highlight_search_word/lib/highlight_search_word.rb
module BlogHelperPlugin def highlight_search_word_in_blog_tail if !params[:s].blank? && @user.enable_highlight_search_word %Q~ <script type="text/javascript"> function hlw(){ highlightWord(document.getElementsByTagName("body")[0],"#{...
rizart/oidc-agent
test/src/utils/uriUtils/tc_extractParameterValueFromUri.h
<reponame>rizart/oidc-agent #ifndef TEST_UTILS_URIUTILS_EXTRACTPARAMETERVALUEFROMURI_H #define TEST_UTILS_URIUTILS_EXTRACTPARAMETERVALUEFROMURI_H #include <check.h> TCase* test_case_extractParameterValueFromUri(); #endif // TEST_UTILS_URIUTILS_EXTRACTPARAMETERVALUEFROMURI_H
wayfinder/Wayfinder-Server
Server/Shared/Items/include/PoiReviewItem.h
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condit...
microsoftgraph/msgraph-beta-sdk-java
src/main/java/com/microsoft/graph/models/DeliveryOptimizationBandwidthPercentage.java
// Template Source: BaseEntity.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -------------------------------------------...
ax3l/RAJA
include/camp/value/eval.hpp
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) 2016-19, Lawrence Livermore National Security, LLC // and RAJA project contributors. See the RAJA/COPYRIGHT file for details. // // SPDX-License-Identifier: (BSD-3-Clause) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
akb825/DeepSea
modules/Render/RenderOpenGL/src/AnyGL/AnyGLLoadGLX.c
<gh_stars>1-10 #include "AnyGL.h" #include "gl.h" #if ANYGL_LOAD == ANYGL_LOAD_GLX #include "glx.h" /* Generated by AnyGL. */ int AnyGL_updateGLVersion(void); int AnyGL_queryExtension(const char* name); void AnyGL_initDebug(void); void AnyGL_clearFunctionPointers(void); int AnyGL_load(void) { if (!ANYGL_SUPPORTED(g...
ebi-uniprot/unp.fw.taxonomy
taxonomy-restful/src/test/java/uk/ac/ebi/uniprot/taxonomyservice/restful/rest/response/builder/PageResponseBuilderTest.java
package uk.ac.ebi.uniprot.taxonomyservice.restful.rest.response.builder; import uk.ac.ebi.uniprot.taxonomyservice.restful.dataaccess.impl.FakeTaxonomyDataAccess; import uk.ac.ebi.uniprot.taxonomyservice.restful.domain.TaxonomyNode; import uk.ac.ebi.uniprot.taxonomyservice.restful.rest.response.ErrorMessage; import uk....
shduke/JavaFX-Game
src/Firing.java
import javafx.animation.KeyFrame; import javafx.animation.Timeline; import javafx.geometry.Point2D; import javafx.scene.Group; import javafx.scene.Node; import javafx.util.Duration; /** * Class that handles the firing of Projectiles * * @assumptions: Relies on other classes to make instances of it. * @dependancie...
mohdab98/cmps252_hw4.2
src/cmps252/HW4_2/UnitTesting/record_2221.java
package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import cmps252.HW4_2....
sawyern/Networking_Assistant
src/main/java/com/revature/networkingassistant/services/EventServices/GetEventService.java
<filename>src/main/java/com/revature/networkingassistant/services/EventServices/GetEventService.java package com.revature.networkingassistant.services.EventServices; import com.revature.networkingassistant.beans.Event.Event; import com.revature.networkingassistant.beans.Event.Location; import com.revature.networkingas...
codereba/bittrace
bitsafe/volume_name_map.h
<filename>bitsafe/volume_name_map.h /* * * Copyright 2010 <NAME>(weixin:AIChangeLife) * * This file is part of bittrace. * * bittrace 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, either vers...
Neusoft-Technology-Solutions/aws-sdk-cpp
aws-cpp-sdk-ec2/source/model/VpnStaticRouteSource.cpp
<reponame>Neusoft-Technology-Solutions/aws-sdk-cpp /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/ec2/model/VpnStaticRouteSource.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumP...
riban-bw/moksha
src/modules/conf_theme/e_int_config_wallpaper.c
<filename>src/modules/conf_theme/e_int_config_wallpaper.c #include "e.h" #include "e_mod_main.h" #define IMPORT_STRETCH 0 #define IMPORT_TILE 1 #define IMPORT_CENTER 2 #define IMPORT_SCALE_ASPECT_IN 3 #define IMPORT_SCALE_ASPECT_OUT 4 #define IMPORT_PAN 5 #define IMPORT_COL...
GlobalFinPrint/global_finprint
global_finprint/report/migrations/0003_auto_20170607_1725.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2017-06-07 17:25 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('report', '0002_auto_20170606_2120'), ] o...
dram/metasfresh
backend/de.metas.banking/de.metas.banking.base/src/test/java/de/metas/banking/service/impl/C_BankStatementLine_MockedInterceptor.java
<reponame>dram/metasfresh package de.metas.banking.service.impl; import org.adempiere.ad.modelvalidator.annotations.Interceptor; import org.compiere.model.I_C_BankStatementLine; import de.metas.banking.BankStatementId; import de.metas.banking.model.validator.C_BankStatementLine; import de.metas.banking.service.IBankS...
stereopickle/AVI_NF1_Children_App
nf_tumor_app/src/Containers/History/History.js
<gh_stars>1-10 import React, { Component } from 'react' import './History.css' import { connect } from 'react-redux' import HistoryGroup from './HistoryGroup' import {cleanupLogHistory} from '../../Redux/Actions/logHistory' class History extends Component { componentWillUnmount(){ this.props.cleanup()...
jprinet/opentelemetry-java-instrumentation
instrumentation/reactor/reactor-3.1/testing/src/main/java/io/opentelemetry/instrumentation/reactor/AbstractReactorCoreTest.java
<reponame>jprinet/opentelemetry-java-instrumentation /* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.instrumentation.reactor; import static io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions.attributeEntry; import static org.assertj.core.api.Asse...
rawheel/Tvshows-Listing-Desktop-App
pyqt-env/lib/python3.8/site-packages/qt5_applications/Qt/lib/QtMultimediaQuick.framework/Versions/5/Headers/qtmultimediaquickversion.h
<filename>pyqt-env/lib/python3.8/site-packages/qt5_applications/Qt/lib/QtMultimediaQuick.framework/Versions/5/Headers/qtmultimediaquickversion.h /* This file was generated by syncqt. */ #ifndef QT_QTMULTIMEDIAQUICK_VERSION_H #define QT_QTMULTIMEDIAQUICK_VERSION_H #define QTMULTIMEDIAQUICK_VERSION_STR "5.15.2" #define...
odwraca/nrf9160-dk-aws-fota-secure
scripts/profiler/data_collector.py
<gh_stars>1-10 # # Copyright (c) 2018 Nordic Semiconductor ASA # # SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic from rtt_nordic_profiler_host import RttNordicProfilerHost import sys import argparse import logging import signal import threading def main(): parser = argparse.ArgumentParser( desc...
jdannhausenbrun/mirage
library/src/test/java/com/climate/mirage/cache/disk/CompositeDiskCacheTest.java
package com.climate.mirage.cache.disk; import android.content.Context; import com.climate.mirage.BuildConfig; import com.climate.mirage.RobolectricTest; import junit.framework.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.robolectric.RuntimeEnvironment; impor...
ldang264/leetcodes
src/test/java/Q00450mTest.java
import org.junit.Assert; import org.junit.Test; import tool.TreeNode; import static org.junit.Assert.*; public class Q00450mTest { Q00450m q00450m = new Q00450m(); @Test public void deleteNode1() { TreeNode root = TreeNode.deserialize("[5,3,6,2,4,null,7]"); q00450m.deleteNode(root, 2); ...
jomof/CppBuildCacheWorkInProgress
agp-7.1.0-alpha01/tools/base/apkparser/analyzer/src/main/java/com/android/tools/apk/analyzer/internal/ZipArchive.java
/* * Copyright (C) 2018 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Inflectra/library-information-system
Web/gwt2.2/showcase/showcase/deferredjs/96E4B6E62C15C040D13F1300532D591C/23.cache.js
function Dvb(){} function zvb(){} function Fvb(){Avb=new Dvb;fC((cC(),bC),23);!!$stats&&$stats(YC(EYd,Cld,-1,-1));Avb.Nd();!!$stats&&$stats(YC(EYd,CId,-1,-1))} var FYd='AsyncLoader23',EYd='runCallbacks23';_=Dvb.prototype=zvb.prototype=new Ar;_.gC=function Evb(){return oab};_.Nd=function Gvb(){};_.cM={};var Avb=null;var...
bradleycamacho/newrelic-python-agent
newrelic/hooks/framework_flask.py
# Copyright 2010 New Relic, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
DynamoMTL/g-refinerycms
authentication/app/helpers/refinery/passwords_helper.rb
<filename>authentication/app/helpers/refinery/passwords_helper.rb module Refinery module PasswordsHelper end end
sleepergithub/cenit
app/models/setup/erb_template.rb
<filename>app/models/setup/erb_template.rb module Setup class ErbTemplate < Template include BulkableTransformation include SnippetCodeTemplate build_in_data_type.referenced_by(:namespace, :name) def code_extension if (ext = super).present? "#{ext}.erb" else 'erb' e...
biju74nair/appsforhere
public/js/sell/checkin.js
var Checkin = function (locationManager, invoiceManager) { this.locationManager = locationManager; this.invoiceManager = invoiceManager; this.columns = [ { property: 'imageTag', className: 'pph-itemPhoto', label: '<div class="glyphicon glyphicon-camera"></div>', ...
sunjc53yy/chromium
components/signin/core/browser/account_tracker_service.cc
<filename>components/signin/core/browser/account_tracker_service.cc // 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. #include "components/signin/core/browser/account_tracker_service.h" #include "base/de...
alandipert/llava
doc/old-demo-and-prototype/demo/Baz.java
<reponame>alandipert/llava<filename>doc/old-demo-and-prototype/demo/Baz.java /* Copyright (c) 1997 - 2004 <NAME> This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.0/ or send a letter to Creative Commons, 559 <NAME>,...
namics/eslint-config-defaults
test/es8/__tests__/feature-async-await.js
<filename>test/es8/__tests__/feature-async-await.js /* eslint require-jsdoc: 0*/ /* eslint no-unused-vars: 0*/ async function create() { const markup = await fetch('https://github.com/eslint/eslint'); }
comprakt/comprakt-fuzz-tests
output/e148fec64908401aaee39fcf616d0d67.java
<reponame>comprakt/comprakt-fuzz-tests<gh_stars>0 class HLyV { } class aLq_a { } class jGqWi99ANxbCe { } class tKhLvoPM_9B3B { public static void jNgHxZDQzn (String[] N2616) throws yVxQS { void y; boolean QHQK9CP; IJ3ILsHN06eq f7; new boolean[ -!null[ -oa4qpB5CA()[ C5awu[ new u...
AzusaChino/HelloWorld
java/little-batch/src/main/java/cn/az/project/batch/concurrent/DelegateThreadFactory.java
package cn.az.project.batch.concurrent; import org.springframework.lang.NonNull; import java.util.Map; import java.util.concurrent.ThreadFactory; /** * save thread * * @author <a href="mailto:<EMAIL>">az</a> * @see ThreadFactory * @since 2020-03-17 */ public class DelegateThreadFactory implements ThreadFactor...
mdhillmancmcl/TheWorldAvatar-CMCL-Fork
ontology-tools/CMCLOntoChemExp/src/main/java/com/cmclinnovations/ontochemexp/model/IInitPrimeConverter.java
<reponame>mdhillmancmcl/TheWorldAvatar-CMCL-Fork<filename>ontology-tools/CMCLOntoChemExp/src/main/java/com/cmclinnovations/ontochemexp/model/IInitPrimeConverter.java<gh_stars>10-100 package com.cmclinnovations.ontochemexp.model; /** * Declares the method that initialises all member variables * and class instances re...
Zeroami/YouLiao
commonlib/src/main/java/com/zeroami/commonlib/mvp/LBasePresenter.java
<gh_stars>0 package com.zeroami.commonlib.mvp; import android.os.Bundle; import com.zeroami.commonlib.rx.LSubscriptionManager; import com.zeroami.commonlib.utils.LL; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import rx.Subscription; /** * <p>作者:Zer...
asrlabncku/RAP
chainer/initializers/__init__.py
import numpy from chainer import initializer from chainer.initializers import constant from chainer.initializers import normal from chainer.initializers import orthogonal from chainer.initializers import uniform Identity = constant.Identity Constant = constant.Constant Zero = constant.Zero One = constant.One Normal ...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/GameCenterUI.framework/GKActivityProxyRemoteViewController.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/GameCenterUI.framework/GameCenterUI */ @interface GKActivityProxyRemoteViewController : GKRemoteViewController - (void)performActivityType:(id)arg1 withActivityItemsAndSharingInfo:(id)arg2; @end
ColonolNutty/Sims4CommunityLibrary
Scripts/sims4communitylib/dialogs/choose_objects_dialog.py
<reponame>ColonolNutty/Sims4CommunityLibrary<filename>Scripts/sims4communitylib/dialogs/choose_objects_dialog.py """ The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/lice...
sakuraiki/leetcode
problems/640_solve-the-equation/test-cases.js
<reponame>sakuraiki/leetcode module.exports = [{ input : ['x+5-3+x=6+x-2'], output : 'x=2' }, { input : ['x=x'], output : 'Infinite solutions' }, { input : ['2x=x'], output : 'x=0' }, { input : ['2x+3x-6x=x+2'], output : 'x=-1' }, { input : ['x=x+2'], output : 'No solution' }];
YegorKozlov/acs-aem-commons
bundle/src/main/java/com/adobe/acs/commons/sorter/impl/NodeNameSorter.java
<reponame>YegorKozlov/acs-aem-commons<filename>bundle/src/main/java/com/adobe/acs/commons/sorter/impl/NodeNameSorter.java /* * #%L * ACS AEM Commons Bundle * %% * Copyright (C) 2013 Adobe * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complianc...
jiekun/reset
0074-search-a-2d-matrix.go
// Write an efficient algorithm that searches for a value target in an m x n integer matrix matrix. This matrix has the following properties: // Integers in each row are sorted from left to right. // The first integer of each row is greater than the last integer of the previous row. // Example 1: // Input: matrix = ...
wrobelda/craft-blueprints-kde
libs/wcslib/wcslib.py
import info class subinfo(info.infoclass): def setTargets(self): self.targets['0.1'] = 'http://indilib.org/jdownloads/kstars/wcslib-515.tar.bz2' self.defaultTarget = '0.1' def setDependencies(self): self.runtimeDependencies["virtual/base"] = None from Package.CMakePackageBase impor...
nfogh/common-src-AMDTApplicationComponents
src/acSoftwareUpdaterWindow.cpp
<reponame>nfogh/common-src-AMDTApplicationComponents<gh_stars>1-10 //================================================================================== // Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file acSoftwareUpdaterWindow.cpp /// //=========...
vanducblue/java-basic
java-basic/src/test/java/day3/MultiplicationTable.java
<reponame>vanducblue/java-basic package day3; import java.util.Scanner; public class MultiplicationTable { public static void main(String[] args) { try { int num; Scanner sc = new Scanner(System.in); System.out.println("Enter Number: "); num = sc.nextInt(); ...
SergeyYakubov/asapo
receiver/src/receiver_data_server/net_server/rds_tcp_server.cpp
#include "rds_tcp_server.h" #include "../receiver_data_server_logger.h" #include "asapo/io/io_factory.h" #include "asapo/common/networking.h" namespace asapo { RdsTcpServer::RdsTcpServer(std::string address, const AbstractLogger* logger) : io__{GenerateDefaultIO()}, log__{logger}, address_{std::move(address)} {}...
gemologist/active_record-postgre_sql-composite
lib/activerecord-postgres-composite-types/oid/composite_type_4_1.rb
module ActiveRecord module ConnectionAdapters class PostgreSQLAdapter module OID class CompositeType < Type def initialize(composite_type_class) @composite_type_class = composite_type_class end # Casts value (which is a String) to an appropriate instance. def type_cast(value) ...
mldbai/mldb
rest/in_process_rest_connection.cc
/** in_process_rest_connection.cc -*- C++ -*- <NAME>, January 2015 Copyright (c) 2015 mldb.ai inc. All rights reserved. This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. */ #include "mldb/rest/in_process_rest_connection.h" #include <atomic> #in...
0xflotus/arcs
devtools/src/background.js
/** * @license * Copyright 2019 Google LLC. * 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/PATENTS.txt */ // Tab ...
xiayingfeng/ontop
mapping/core/src/main/java/it/unibz/inf/ontop/spec/mapping/parser/impl/TurtleOBDASQLTermVisitor.java
package it.unibz.inf.ontop.spec.mapping.parser.impl; import com.google.common.collect.ImmutableList; import it.unibz.inf.ontop.injection.OntopMappingSettings; import it.unibz.inf.ontop.model.template.Template; import it.unibz.inf.ontop.model.template.impl.BnodeTemplateFactory; import it.unibz.inf.ontop.model.template....
ikenox/Perl5-IDEA
tt2/src/com/perl5/lang/tt2/lexer/TemplateToolkitSyntaxElements.java
<filename>tt2/src/com/perl5/lang/tt2/lexer/TemplateToolkitSyntaxElements.java /* * Copyright 2015-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/...
japarado/blog
src/main/java/com/pam/blog/shared/dto/TagDto.java
package com.pam.blog.shared.dto; import lombok.Data; import java.util.List; @Data public class TagDto { public long id; public String name; public String description; public List<PostDto> posts; }
App-Procurement/service-api-requisition
src/main/java/com/synectiks/procurement/domain/Committee.java
<gh_stars>0 package com.synectiks.procurement.domain; import java.io.Serializable; import java.time.Instant; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import j...
datacentred/stronghold
test/unit/models/organization/organization_properties_test.rb
require 'test_helper' class TestOrganizationProperties < CleanTest def setup @compute = Product.make!(:compute) @storage = Product.make!(:storage) @colocation = Product.make!(:colocation) @organization = Organization.make! end def test_staff? staff_org = Organization.make!(reference: '...
FeiZhan/Algo-Collection
answers/lintcode/Flip Bits.cpp
<gh_stars>1-10 class Solution { public: /** *@param a, b: Two integer *return: An integer */ int bitSwapRequired(int a, int b) { // write your code here a ^= b; int count = 0; // if negative, while loop cannot end for (int i = 0; i < 32; ++ i) { count += a & 1; ...
oberasoftware/jasdb
jasdb_core/src/main/java/com/oberasoftware/jasdb/core/utils/conversion/ValueConverterUtil.java
<gh_stars>10-100 package com.oberasoftware.jasdb.core.utils.conversion; import com.oberasoftware.jasdb.api.exceptions.CoreConfigException; import com.oberasoftware.jasdb.core.utils.StringUtils; public class ValueConverterUtil { public static long convertToBytes(String memorySize) throws CoreConfigException { retur...
Ameesha2001/Ekyam-scl-maxo
src/contactus/apps.py
from django.apps import AppConfig class ContactusConfig(AppConfig): name = 'contactus'
luxms/dremio-oss
services/coordinator/src/main/java/com/dremio/service/coordinator/ExecutorSetService.java
<gh_stars>0 /* * Copyright (C) 2017-2019 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
Vyraax/VulkanLab
docs/html/classDestructionTester.js
var classDestructionTester = [ [ "DestructionTester", "classDestructionTester.html#ab9c828938509b32085ef1b30c0d724ba", null ], [ "~DestructionTester", "classDestructionTester.html#a608860705a88621d6bf57bc47b3d5d69", null ], [ "DestructionTester", "classDestructionTester.html#a40f59e229876a901711bf788b881ca2...
dram/metasfresh
backend/de.metas.rfq/src/main/java-gen/de/metas/rfq/model/I_RV_C_RfQ_UnAnswered.java
<filename>backend/de.metas.rfq/src/main/java-gen/de/metas/rfq/model/I_RV_C_RfQ_UnAnswered.java package de.metas.rfq.model; /** Generated Interface for RV_C_RfQ_UnAnswered * @author Adempiere (generated) */ @SuppressWarnings("javadoc") public interface I_RV_C_RfQ_UnAnswered { /** TableName=RV_C_RfQ_UnAnswere...
ScalablyTyped/SlinkyTyped
m/microsoft-graph/src/main/scala/typingsSlinky/microsoftGraph/mod/Windows10CustomConfiguration.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.microsoftGraph.mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait Windows10CustomConfiguration exten...
onyxbits/TradeTrax
src/main/java/de/onyxbits/tradetrax/pages/edit/UnitsEditor.java
<reponame>onyxbits/TradeTrax package de.onyxbits.tradetrax.pages.edit; import java.util.List; import org.apache.tapestry5.alerts.AlertManager; import org.apache.tapestry5.alerts.Duration; import org.apache.tapestry5.alerts.Severity; import org.apache.tapestry5.annotations.Component; import org.apache.tapestry5.annota...
InnovAnon-Inc/PP
RI/src/main/java/com/innovanon/rnd/ri/consumers/ObjectInitializer.java
/** * */ package com.innovanon.rnd.ri.consumers; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import java.util.function.Consumer; import java.util.stream.StreamSupport; import com.innovanon.rnd.ri.functions.YInstantiator; /** * @author gouldbergstein * */ public class ObjectInitia...
spatialcurrent/go-adaptive-functions
pkg/af/Concat.go
// ================================================================= // // Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved // Released as open source under the MIT License. See LICENSE file. // // ================================================================= package af import ( "reflect" "githu...
lewisc/spark-tk
regression-tests/sparktkregtests/testcases/scoretests/arimax_test.py
# vim: set encoding=utf-8 # Copyright (c) 2016 Intel Corporation  # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #       http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective
ace/tao/tests/Strategies/simple_test_i.h
// simple_test_i.h,v 1.1 2000/12/07 20:07:21 doccvs Exp // ============================================================================ // // = LIBRARY // TAO/tao/Strategies/tests/ // // = FILENAME // simple_test_i.h // // = AUTHOR // <NAME> <<EMAIL>> // // ========================================...
eitoball/thinreports-generator
test/unit/generator/pdf/document/test_draw_shape.rb
# coding: utf-8 require 'test/unit/helper' class ThinReports::Generator::PDF::TestDrawShape < MiniTest::Unit::TestCase include ThinReports::TestHelpers def setup @pdf = ThinReports::Generator::PDF::Document.new end def create_tblock_interface(format_config = {}) format = ThinReports::Core::Shape::Te...
3xter99/CRM371
client/src/components/ContractString/ContractString.js
<gh_stars>0 /* eslint-disable jsx-a11y/click-events-have-key-events */ import React, { useState } from 'react'; import IconButton from '@mui/material/IconButton'; import DeleteIcon from '@mui/icons-material/Delete'; import ListItemAvatar from '@mui/material/ListItemAvatar'; import Avatar from '@mui/material/Avatar'; im...
jmarino/gudhi-devel
src/Persistent_cohomology/concept/CoefficientField.h
/* This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT. * See file LICENSE or go to https://gudhi.inria.fr/licensing/ for full license details. * Author(s): <NAME> * * Copyright (C) 2014 Inria * * Modification(s): * - YYYY/MM Author: Descriptio...
veznidav/devextreme-reactive
packages/dx-grid-core/src/plugins/integrated-grouping/constants.js
export const GRID_GROUP_TYPE = 'group'; export const GRID_GROUP_CHECK = Symbol(`${GRID_GROUP_TYPE}_check`); export const GRID_GROUP_LEVEL_KEY = Symbol(`${GRID_GROUP_TYPE}_levelKey`); export const GRID_GROUP_COLLAPSED_ROWS = Symbol(`${GRID_GROUP_TYPE}_collapsedRows`);
liu3xing3long/MITK-2016.11
Modules/Simulation/mitkSimulationIO.cpp
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied w...
Yannic/chromium
chrome/browser/extensions/active_tab_apitest.cc
<filename>chrome/browser/extensions/active_tab_apitest.cc<gh_stars>10-100 // 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 <memory> #include "base/bind.h" #include "base/macros.h" #include ...
deerghayu/platform-client-sdk-java
build/src/main/java/com/mypurecloud/sdk/v2/model/WfmBuIntradayDataUpdateTopicBuIntradayDataGroup.java
package com.mypurecloud.sdk.v2.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; import com.mypurecloud.sdk.v2.model.WfmBuIntra...
sim642/simbot
plugins/choose.js
<reponame>sim642/simbot var request = require("request"); function ChoosePlugin(bot) { var self = this; self.name = "choose"; self.help = "Random chooser plugin"; self.depend = ["cmd"]; self.randomOrgApiKey = null; self.aggregate = false; self.aggregateTimeout = 2 * 1000; self.tieBreak = false; self.aggrega...
headwirecom/aem-ide-tooling-4-intellij
src/main/java/com/headwire/aem/tooling/intellij/eclipse/stub/IFolder.java
<reponame>headwirecom/aem-ide-tooling-4-intellij /* * 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 ...
marloncalvo/jabref
src/main/java/org/jabref/model/entry/field/SpecialField.java
<reponame>marloncalvo/jabref package org.jabref.model.entry.field; import java.util.ArrayList; import java.util.Arrays; import java.util.EnumSet; import java.util.HashMap; import java.util.List; import java.util.Optional; import java.util.Set; import org.jabref.model.entry.KeywordList; public enum SpecialField imple...
fabric8io/updatebot
updatebot-core/src/main/java/io/fabric8/updatebot/commands/CommandSupport.java
/* * Copyright 2016 Red Hat, Inc. * * Red Hat licenses this file to you 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 ...
xiexianbin/open-wechat-sdk
open-wechat-sdk/src/main/java/com/qikemi/wechat/api/utils/WechatProperties.java
<reponame>xiexianbin/open-wechat-sdk<filename>open-wechat-sdk/src/main/java/com/qikemi/wechat/api/utils/WechatProperties.java<gh_stars>0 package com.qikemi.wechat.api.utils; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import org.apache.log...
ecormaksin/library
src/test/java/library/application/scenario/ReturnsScenarioTest.java
package library.application.scenario; import library.ScenarioTest; import library.application.service.item.ItemQueryService; import library.application.service.loan.LoanQueryService; import library.domain.model.loan.LoanDate; import library.domain.model.loan.LoanRequest; import library.domain.model.material.item.ItemN...
DCNT-Hammer/dcnt
testHelper/dbInfo.go
package testHelper import ( "github.com/DCNT-Hammer/dcnt/common/directoryBlock/dbInfo" ) func CreateTestDirBlockInfo(prev *dbInfo.DirBlockInfo) *dbInfo.DirBlockInfo { dbi := dbInfo.NewDirBlockInfo() if prev == nil { dbi.DBHeight = 0 } else { dbi.DBHeight = prev.DBHeight + 1 } height := dbi.DBHeight dbi.DB...
guillaume-plantevin/VeeSeeVSTRack
plugins/community/repos/TheXOR/src/M581.hpp
<reponame>guillaume-plantevin/VeeSeeVSTRack #pragma once #include "common.hpp" #include <sstream> #include <iomanip> #include <algorithm> #include "M581Types.hpp" //////////////////// // module widgets //////////////////// namespace rack_plugin_TheXOR { struct M581; struct M581Widget : SequencerWidget { private: enu...
Nemo1369/libcds
cds/intrusive/free_list_tagged.h
/* This file is a part of libcds - Concurrent Data Structures library (C) Copyright <NAME> (<EMAIL>) 2006-2017 Source code repo: http://github.com/khizmax/libcds/ Download: http://sourceforge.net/projects/libcds/files/ Redistribution and use in source and binary forms, with or without modific...
cianclarke/fh-fhc
lib/cmd/common/ngui.js
<filename>lib/cmd/common/ngui.js module.exports = ngui; ngui.desc = "Check status, enable or disable FeedHenry version 3"; ngui.usage = "fhc ngui" + "\nfhc ngui enable - enable FH3 for the current user" + "\nfhc ngui disable - disable FH3 for the current user"; var util = require('util'); var user = require('./us...
truongpham17/carhub-service
src/module/rating/rating.validations.js
import Joi from 'joi'; export default { createRating: { body: { customer: Joi.string().required(), content: Joi.string(), ratingValue: Joi.number(), car: Joi.string().required(), }, options: { allowUnknownBody: false, }, }, updateRating: { body: { customer:...
naroate/MyFragmentRepo
renren_android_connect_demo/src/com/renren/api/connect/android/demo/activity/PayActivity.java
<filename>renren_android_connect_demo/src/com/renren/api/connect/android/demo/activity/PayActivity.java package com.renren.api.connect.android.demo.activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.LayoutInflater; import android.view.View; import android....
Dryja/epsagon-python
epsagon/constants.py
<reponame>Dryja/epsagon-python """General constants""" import os import time __version__ = '0.0.0' DEFAULT_REGION = 'us-east-1' REGION = os.getenv('AWS_REGION', DEFAULT_REGION) TRACE_COLLECTOR_URL = '{protocol}{region}.tc.epsagon.com' COLD_START = True COLD_START_TIME = time.time() DEBUG_MODE = ((os.getenv('EPSAGO...
computerphilosopher/cb-spider
api-runtime/grpc-runtime/stub/gogoproto/gogo.pb.go
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: gogo.proto package gogoproto import ( fmt "fmt" descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = pro...
Kajja/QAsite
webroot/u4_checkout/main.js
<filename>webroot/u4_checkout/main.js<gh_stars>0 $(document).ready(function(){ 'use strict'; $('#pay_form').validate({ rules: { name: { required: true }, card_num: { required: true, creditcard: true }, ...
shuli495/erlangshen
src/main/java/com/erlangshen/service/CodeService.java
package com.erlangshen.service; import com.erlangshen.model.bo.CodeBO; import com.fastjavaframework.base.BaseService; import com.fastjavaframework.exception.ThrowPrompt; import com.erlangshen.dao.CodeDao; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; /** * 字典表 * ...
Tiankx1003/Cfiles
ProjectC/src/chapter11/server/threadbuff.h
<reponame>Tiankx1003/Cfiles<gh_stars>0 /*threadbuff.h*/ #ifndef __THREAD_BUFF_H #define __THREAD_BUFF_H #include "globalapi.h" /*定义线程缓冲区的使用状态*/ #define BUFF_OCCUPIED 1 #define BUFF_FREED 0 /*线程缓冲区结构*/ typedef struct thread_buff_struct_t { /*线程缓冲区的索引号*/ int buff_index; /*保存对应线程的线程号*/ int tid; /*保存对应的客户机的IP地...
Attriumph/Place-Search-Service
PlaceSearch_Android/PlaceSearch_final/app/src/main/java/lingquan/firstApp/placesearch/fragment/PlaceFavoritesFragment.java
<gh_stars>10-100 package lingquan.firstApp.placesearch.fragment; import android.content.Context; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.V...
JujuDel/MNN
source/backend/coreml/execution/CoreMLArgMax.hpp
// // CoreMLArgMax.hpp // MNN // // Created by MNN on 2021/03/31. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef MNN_COREMLARGMAX_HPP #define MNN_COREMLARGMAX_HPP #include "CoreMLCommonExecution.hpp" #include "CoreMLBackend.hpp" namespace MNN { class CoreMLArgMax : public CoreMLCommonExecution { ...