repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
mongocn/jcommerce
sandbox/web/src/main/java/com/jcommerce/gwt/client/panels/member/AddApply.java
package com.jcommerce.gwt.client.panels.member; import java.sql.Timestamp; import java.util.Date; import java.util.HashMap; import java.util.Map; import com.extjs.gxt.ui.client.Style.HorizontalAlignment; import com.extjs.gxt.ui.client.event.ButtonEvent; import com.extjs.gxt.ui.client.event.SelectionListener;...
CarlosRoGuerra/rpaas-operator
internal/web/blocks.go
// Copyright 2019 tsuru authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package web import ( "fmt" "net/http" "strings" "github.com/labstack/echo/v4" "github.com/tsuru/rpaas-operator/internal/pkg/rpaas" ) func deleteBlock(c ...
HeartCommunity/uiKit
packages/core/navigation-next/docs/examples/ui-components/GoToItem.js
<gh_stars>1-10 // @flow import React, { Component } from 'react'; import { colors } from '@findable/theme'; import IssuesIcon from '@findable/icon/glyph/issues'; import { JiraWordmark } from '@findable/logo'; import { BackItem, GoToItem, HeaderSection, Item, NavigationProvider, MenuSection, SectionHeadi...
helabed/GraphISEP_1
CConcLoadObject/CConcLoadObject.h
<gh_stars>0 /**** * CConcLoadObject.h * * Load object class for a typical CTrussPane class. * ****/ #define _H_CConcLoadObject /* Include this file only once */ #include <Global.h> #include "CAbstractObject.h" #include "TrussCommands.h" struct CConcLoadObject : CAbstractObject { /* Instance va...
5nefarious/icarous
Modules/ACCoRD/inc/WCV_tvar.h
/* * Copyright (c) 2015-2017 United States Government as represented by * the National Aeronautics and Space Administration. No copyright * is claimed in the United States under Title 17, U.S.Code. All Other * Rights Reserved. */ #ifndef WCV_TVAR_H_ #define WCV_TVAR_H_ #include "Detection3D.h" #include "Vect3.h"...
Rtoli-adam/springbootexamples
spring-boot-2.x-restful-api/src/main/java/cn/lijunkui/restful/basic/controller/UserController.java
<reponame>Rtoli-adam/springbootexamples package cn.lijunkui.restful.basic.controller; import java.util.ArrayList; import java.util.List; import javax.validation.Valid; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.http.Respon...
jjdcabasolo/another-moviedb-rip-off
src/utils/components/Tooltip.js
import React from 'react'; import PropTypes from 'prop-types'; import { Tooltip as MuiTooltip } from '@material-ui/core'; const Tooltip = ({ children, placement, title, visible, }) => (visible ? ( <MuiTooltip title={title} placement={placement}> {children} </MuiTooltip> ) : children); Too...
HerbrichCorporation/ZabellJS
library/simplicity/manager/context-manager.js
import {get, viewManager} from "./view-manager.js"; import MatContextMenu from "../components/modal/mat-context-menu.js"; export const contextManager = new class ContextManager { openContext(url, options) { let executor = (resolve, reject) => { viewManager.load("#" + url).then((view) => { ...
ut-osa/syncchar
linux-2.6.16-unmod/include/asm-arm/arch-at91rm9200/at91rm9200_usart.h
/* * include/asm-arm/arch-at91rm9200/at91rm9200_usart.h * * Copyright (C) 2005 <NAME> * Copyright (C) <NAME> * * USART registers. * Based on AT91RM9200 datasheet revision E. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publi...
uk-gov-mirror/hmcts.fpl-ccd-configuration
service/src/main/java/uk/gov/hmcts/reform/fpl/model/notify/payment/FailedPBANotificationData.java
<filename>service/src/main/java/uk/gov/hmcts/reform/fpl/model/notify/payment/FailedPBANotificationData.java<gh_stars>0 package uk.gov.hmcts.reform.fpl.model.notify.payment; import lombok.Builder; import lombok.Data; import uk.gov.hmcts.reform.fpl.model.notify.NotifyData; @Data @Builder public class FailedPBANotificat...
haseeAmarathunga/canner
src/hocs/components/pagination.js
// @flow import React, {Component, Fragment} from 'react'; import {Button, Icon} from 'antd'; import styled from 'styled-components'; const ButtonGroup = Button.Group; const Wrapper = styled.div` text-align: right; margin-top: ${props => props.marginTop}px; `; type Props = { nextPage: () => void, prevPage: () ...
fluorumlabs/disconnect-project
disconnect-classlib/src/main/java/js/web/permissions/PermissionDescriptor.java
<gh_stars>1-10 package js.web.permissions; import js.lang.Any; import org.teavm.jso.JSProperty; public interface PermissionDescriptor extends Any { @JSProperty PermissionName getName(); @JSProperty void setName(PermissionName device); }
freitassp/Java
Heranca/src/principal/Principal.java
<gh_stars>0 /* * 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 principal; /** * * @author Samuel */ public class Principal { public static void main(String[] args) {...
code-review-doctor/lite-frontend-1
unit_tests/exporter/applications/views/test_goods.py
import pytest from exporter.applications.views import goods def test_is_firearm_certificate_needed_has_section_five_certificate(): actual = goods.is_firearm_certificate_needed( application={ "organisation": {"documents": [{"document_type": "section-five-certificate", "is_expired": False}]} ...
Deng11Sc/publicManager
Category/UIView/UIView+Configure.h
// // UIView+Configure.h // MerryS // // Created by SongChang on 2018/1/8. // Copyright © 2018年 SongChang. All rights reserved. // #import <UIKit/UIKit.h> ///初始化UIView @interface UIView (Configure) -(void)cc_configure; @end ///初始化Label @interface UILabel (Configure) -(void)cc_configure; @end ///初始化UIBu...
humboldtux-tmp/buildingapis
exercises/11-alternative-mux/gorilla/helper_test.go
package main import ( "testing" "time" ) func TestCourseValidation(t *testing.T) { // table driven tests are awesome // use them every chance you get // to save typing! tests := []struct { Course Course Valid bool }{ {Course: Course{ ID: 1, Name: "<NAME>", Location: "Denver", St...
openbudgets/os-viewer
app/front/scripts/directives/visualizations/controls/breadcrumbs/index.js
<reponame>openbudgets/os-viewer 'use strict'; var ngModule = require('../../../../module'); ngModule.directive('breadcrumbs', [ 'Configuration', function(Configuration) { return { template: require('./template.html'), replace: true, restrict: 'E', scope: { breadcrumbs: '=' ...
ketnipz/property-tycoon
src/tycoon/ui/ui.js
/** * @namespace UI */
brauli0/social-blockly
backend/src/main/java/es/udc/paproject/backend/model/services/CommentServiceImpl.java
<gh_stars>0 package es.udc.paproject.backend.model.services; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import es.udc.paproject.backend...
tdprogramming/xfltools
bin/js-debug/org/apache/royale/html/Button.js
/** * Generated by Apache Royale Compiler from org\apache\royale\html\Button.as * org.apache.royale.html.Button * * @fileoverview * * @suppress {missingRequire|checkTypes|accessControls} */ goog.provide('org.apache.royale.html.Button'); /* Royale Dependency List: org.apache.royale.core.WrappedHTMLElement*/ goo...
implydata/jackson-databind
src/main/java/com/fasterxml/jackson/databind/type/SimpleType.java
<filename>src/main/java/com/fasterxml/jackson/databind/type/SimpleType.java package com.fasterxml.jackson.databind.type; import com.fasterxml.jackson.databind.JavaType; /** * Simple types are defined as anything other than one of recognized * container types (arrays, Collections, Maps). For our needs we * need not...
fossabot/jymfony
src/Component/VarExporter/fixtures/exported/wakeup.js
(() => { let o; return Jymfony.Component.VarExporter.Internal.Hydrator.hydrate( o = [ (new ReflectionClass("Jymfony.Component.VarExporter.Fixtures.MyWakeup")).newInstanceWithoutConstructor(), (new ReflectionClass("Jymfony.Component.VarExporter.Fixtures.MyWakeup")).newInstanceWith...
ducanhnguyen/cft4cpp-for-dummy
data-test/ducanh/coreutils-8.24/lib/faccessat.c
<reponame>ducanhnguyen/cft4cpp-for-dummy<gh_stars>0 /* Check the access rights of a file relative to an open directory. Copyright (C) 2009-2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
nfco/netforce
netforce_mfg/netforce_mfg/models/report_production_order.py
# Copyright (c) 2012-2015 Netforce Co. Ltd. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
slachiewicz/lightwave
vmafd/vmauthsvc/include/vmauthsvcerrorcode.h
<reponame>slachiewicz/lightwave /* * Copyright © 2012-2015 VMware, Inc. 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 ...
ivkalgin/openvino
src/bindings/python/src/pyopenvino/frontend/extensions.cpp
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <pybind11/functional.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/stl_bind.h> #include "extension/json_config.hpp" #include "manager.hpp" #include "openvino/frontend/exception.hpp" #includ...
GregChase/incubator-geode
gemfire-jgroups/src/main/java/com/gemstone/org/jgroups/protocols/PRINTMETHODS.java
<reponame>GregChase/incubator-geode<filename>gemfire-jgroups/src/main/java/com/gemstone/org/jgroups/protocols/PRINTMETHODS.java /** Notice of modification as required by the LGPL * This file was modified by Gemstone Systems Inc. on * $Date$ **/ // $Id: PRINTMETHODS.java,v 1.3 2004/03/30 06:47:21 belaban Exp $ pac...
pfroad/rocketmq-mysql
vendor/github.com/sevennt/rocketmq/producer_test.go
package rocketmq import ( "strconv" "testing" ) // dev-goProducerConsumerTest var group = "dev-goProducerConsumerTest" // goProducerConsumerTest var topic = "goProducerConsumerTest" var conf = &Config{ //Nameserver: "192.168.7.101:9876;192.168.7.102:9876;192.168.7.103:9876", Namesrv: "192.168.6.69:9876", ...
phakhruddin/allowance
app/controllers/advance.js
<gh_stars>1-10 exports.openMainWindow = function(_tab) { _tab.open($.advance_window); Ti.API.info("This is child widow advance.js" +JSON.stringify(_tab)); }; var someInfo = Alloy.Models.info; someInfo.fetch(); console.log("advance::checkInfo: json stringify: "+JSON.stringify(someInfo)); function checkInfo(){ va...
thienkimlove/time-machine
src/main/java/com/booking/replication/binlog/event/QueryEventType.java
package com.booking.replication.binlog.event; /** * Created by edmitriev on 8/1/17. */ public enum QueryEventType { BEGIN, COMMIT, DDLDEFINER, DDLTABLE, DDLTEMPORARYTABLE, DDLVIEW, PSEUDOGTID, ANALYZE, UNKNOWN; QueryEventType() { } }
prathamesh-sonpatki/jruby
spec/ruby/library/logger/severity_spec.rb
require File.expand_path('../../../spec_helper', __FILE__) require 'logger' describe "Logger::Severity" do it "defines Logger severity constants" do Logger::DEBUG.should == 0 Logger::INFO.should == 1 Logger::WARN.should == 2 Logger::ERROR.should == 3 Logger::FATAL.should == 4 Logger::UNKNOWN....
gematik-fue/hapi-fhir
examples/src/main/java/example/ServerMetadataExamples.java
package example; import ca.uhn.fhir.model.api.Tag; import ca.uhn.fhir.rest.annotation.Search; import org.hl7.fhir.r4.model.InstantType; import org.hl7.fhir.r4.model.Patient; import java.util.ArrayList; import java.util.List; public class ServerMetadataExamples { // START SNIPPET: serverMethod @Search publi...
CAt0mIcS/Ray
Ray/Graphics/Pipelines/Shader/DataAccess/RSampler2DUniform.cpp
#include "RSampler2DUniform.h" #include "../../RPipeline.h" #include "../../Shader/RShader.h" #include "RDescriptor.h" namespace At0::Ray { Sampler2DUniform::Sampler2DUniform( std::string_view name, ShaderStage stage, const Pipeline& pipeline) : m_Name(name) { RAY_MEXPECTS(pipeline.GetShader().GetReflection...
bcongdon/advent_of_code_2017
Day1-9/5.py
<reponame>bcongdon/advent_of_code_2017<filename>Day1-9/5.py<gh_stars>10-100 def first_jump_outside(jumps, mutator): c = 0 steps = 0 while c >= 0 and c < len(jumps): j = jumps[c] jumps[c] = mutator(j) steps += 1 c += j return steps if __name__ == '__main__': with open...
ChristianWilkie/Chronicle-Queue
src/main/java/net/openhft/chronicle/queue/QueueSystemProperties.java
<reponame>ChristianWilkie/Chronicle-Queue package net.openhft.chronicle.queue; import net.openhft.chronicle.core.Jvm; public final class QueueSystemProperties { private QueueSystemProperties() { } /** * Returns if Chronicle Queue shall assert certain index invariants on various * occasions thr...
kaykhuq/stream-on
app/containers/PackContainer/reducer.js
/* * * PackContainer reducer * */ import { fromJS } from 'immutable'; import { LOAD_PACK, SEARCH } from './constants'; const initialState = fromJS({ packs: {}, keyword: '', }); function packContainerReducer(state = initialState, action) { switch (action.type) { case LOAD_PACK: return state.se...
EBRD-ProzorroSale/openprocurement.auctions.core
openprocurement/auctions/core/plugins/awarding/v2/includeme.py
<reponame>EBRD-ProzorroSale/openprocurement.auctions.core<gh_stars>1-10 # -*- coding: utf-8 -*- from openprocurement.auctions.core.plugins.awarding.base.interfaces import ( IAwardManagerAdapter, ) def includeme(config): from .adapters import AwardManagerV2Adapter from .interfaces import IAwardV2 confi...
lytics/amphtml
src/amp-story-player/amp-story-entry-point/amp-story-entry-point-impl.js
/** * Copyright 2020 The AMP HTML 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 require...
Bhaskers-Blu-Org2/NFC-Class-Extension-Driver
Cx/NfcCxSCCommon.h
/*++ Copyright (c) Microsoft Corporation. All Rights Reserved Module Name: NfcCxSCCommon.h Abstract: SmartCard Common functions/types. Environment: User-mode Driver Framework --*/ #pragma once // ISO 7816-3 2006, Section 8.1 (TS byte + 32 characters) #define MAXIMUM_ATR_LENGTH 33 typedef NTSTATU...
zregvart/atlasmap-1
runtime/api/src/main/java/io/atlasmap/spi/AtlasModule.java
/** * Copyright (C) 2017 Red Hat, 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...
talend-spatial/talend-spatial
main/plugins/org.talend.sdi.designer.components.sextante/src/main/java/org/talend/sdi/designer/components/sextante/SextanteComponentsProvider.java
<reponame>talend-spatial/talend-spatial<filename>main/plugins/org.talend.sdi.designer.components.sextante/src/main/java/org/talend/sdi/designer/components/sextante/SextanteComponentsProvider.java // ============================================================================ // // Copyright (C) 2008 Camptocamp. - www.c...
maidiHaitai/haitaibrowser
chrome/browser/media/pepper_cdm_test_helper.cc
<reponame>maidiHaitai/haitaibrowser // Copyright 2016 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 "chrome/browser/media/pepper_cdm_test_helper.h" #include "base/command_line.h" #include "base/files/file_uti...
npocmaka/Windows-Server-2003
admin/wmi/wbem/providers/win32provider/providers/win32programgroupcontents.cpp
<reponame>npocmaka/Windows-Server-2003 //================================================================= // // Win32ProgramCollectionProgramGroup.cpp -- Win32_ProgramGroup to Win32_ProgramGroupORItem // // Copyright (c) 1998-2001 Microsoft Corporation, All Rights Reserved // // Revisions: 11/20/98 ...
fanscribed/fanscribed
fanscribed/urls.py
<reponame>fanscribed/fanscribed<filename>fanscribed/urls.py from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from .sitemaps import SITEMAPS admin.autodiscover(...
jarick/didji
client/src/actions/load.actions.js
import {SEND_LOAD, FAILED_LOAD, SUCCESS_LOAD} from '../contracts/load.contracts'; export const send = () => ({ type: SEND_LOAD }); export const success = () => ({ type: SUCCESS_LOAD }); export const failed = () => ({ type: FAILED_LOAD });
malkhamis-panw/gaia
automationtemplate.go
package gaia import ( "fmt" "github.com/globalsign/mgo/bson" "github.com/mitchellh/copystructure" "go.aporeto.io/elemental" ) // AutomationTemplateKindValue represents the possible values for attribute "kind". type AutomationTemplateKindValue string const ( // AutomationTemplateKindAction represents the value ...
Testiduk/gitlabhq
spec/lib/gitlab/ci/reports/security/vulnerability_reports_comparer_spec.rb
<filename>spec/lib/gitlab/ci/reports/security/vulnerability_reports_comparer_spec.rb # frozen_string_literal: true require 'spec_helper' RSpec.describe Gitlab::Ci::Reports::Security::VulnerabilityReportsComparer do let(:identifier) { build(:ci_reports_security_identifier) } let_it_be(:project) { create(:project,...
ethansaxenian/RosettaDecode
lang/C/queue-definition-3.c
int main() { int i, n; queue q = q_new(); for (i = 0; i < 100000000; i++) { n = rand(); if (n > RAND_MAX / 2) { // printf("+ %d\n", n); enqueue(q, n); } else { if (!dequeue(q, &n)) { // printf("empty\n"); continue; ...
niekert/TranslateQL
src/components/NavLink.js
<reponame>niekert/TranslateQL<gh_stars>0 import { NavLink } from 'react-router-dom'; import styled from 'styled-components'; import { prop } from 'styled-tools'; const StyledNavLink = styled(NavLink).attrs({ activeClassName: 'active', })` color: green; text-decoration: none; &.active { color: ${prop('them...
lygyuyun/SmartCity
app/src/main/java/com/tourcool/core/module/activity/BaseWebActivity.java
<reponame>lygyuyun/SmartCity package com.tourcool.core.module.activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.Color; import android.os.Bundle; import android.text.TextUtils; import android.util.TypedVal...
electricalwind/tuna
joern/src/main/java/ast/expressions/SizeofExpr.java
package ast.expressions; import ast.walking.ASTNodeVisitor; public class SizeofExpr extends Expression { public void accept(ASTNodeVisitor visitor) { visitor.visit(this); } }
josuerf/rf-online-gs-editor
src/containers/App/sagas/projectExport/serverBoxItemOutResolve.js
<filename>src/containers/App/sagas/projectExport/serverBoxItemOutResolve.js import { delay } from 'redux-saga'; import { put } from 'redux-saga/effects'; import gql from 'graphql-tag'; import path from 'path'; import { TOTAL_SIZE, BLOCK_SIZE, COUNT, COUNT_COLUMNS, } from '~/classes/constants'; import Struct fr...
Sushiwave/graphics-lib
src/GraphicsLib/Graphics/GPUResource/ShaderResource/Texture/Texture2D/D3D11/Components/RawTexture/D3D11RawTexture2D.cpp
<gh_stars>1-10 #include "D3D11RawTexture2D.hpp" #include <Graphics/Components/D3D11/Device/D3D11Device.hpp> #include <Graphics/GPUResource/Helper/D3D11/D3D11CreateFunctions.hpp> #include <GraphicsLib/Graphics/GPUState/GPUStateRecorder.hpp> #include <ThirdParty/DirectXTex/DirectXTex.h> #include <limits> #define MA...
vzhabiuk/sensei
clients/java/src/test/java/com/senseidb/test/client/TweetsTest.java
package com.senseidb.test.client; import com.senseidb.search.client.SenseiServiceProxy; import com.senseidb.search.client.req.FacetInit; import com.senseidb.search.client.req.FacetType; import com.senseidb.search.client.req.Selection; import com.senseidb.search.client.req.SenseiClientRequest; import org.junit.Test; p...
xiaobai/swift-lldb
packages/Python/lldbsuite/test/lang/swift/struct_change_rerun/TestSwiftStructChangeRerun.py
# TestSwiftStructChangeRerun.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swift.o...
adele-robots/fiona
SPARKS/VideoConsumerSpark/stdAfx.h
// stdafx.h: archivo de inclusión de los archivos de inclusión estándar del sistema // o archivos de inclusión específicos de un proyecto utilizados frecuentemente, // pero rara vez modificados // #pragma once #include "config.h" #ifndef _WIN32_WINNT // Permitir el uso de características específicas de Windows XP o...
juarezpaulino/coderemite
problemsets/UVA/12081.cpp
/** * * Author: <NAME>(coderemite) * Email: <EMAIL> * */ #include <cstdio> int main() { int i, j, k, n, m, *v = 314+new int[100000]; for (scanf("%d", &n); n-- && scanf("%d", &m); printf("%d\n", k)) for (*v=i=(k=1)-1; i++<m; ) { scanf("%d", v-i); for (j=i; j<=i; ++j) ...
boselor/slc
src/cv/common/MatrixOperator.cpp
// // Created by xiaoyong on 2021/1/1. // #include <cv/common/MatrixOperator.h> namespace slc{ MatrixOperator::MatrixOperator() {} MatrixOperator::~MatrixOperator() {} MatrixOperator MatrixOperator::load(cv::Mat matrix) { this->entity = matrix; return *this; } MatrixOperator Matri...
dupliaka/droolsjbpm-integration
kie-server-parent/kie-server-remote/kie-server-client/src/main/java/org/kie/server/client/admin/impl/CaseAdminServicesClientImpl.java
/* * Copyright 2015 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, softw...
gharia/kurento-java
kurento-integration-tests/kurento-test/src/main/java/org/kurento/test/base/ScalabilityTest.java
/* * (C) Copyright 2015 Kurento (http://kurento.org/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
Elidriel/diploma
admin/src/main/java/com/example/diploma/admin/controller/CatalogController.java
<reponame>Elidriel/diploma package com.example.diploma.admin.controller; import com.example.diploma.admin.service.CatalogService; import com.example.diploma.persistence.dto.admin.CatalogDto; import com.example.diploma.persistence.exeption.CatalogUrlExistsException; import lombok.AccessLevel; import lombok.RequiredArgs...
vnandwana/killbill-admin-ui
test/dummy/config/initializers/killbill_client.rb
<reponame>vnandwana/killbill-admin-ui<gh_stars>10-100 KillBillClient.url = ENV['KILLBILL_URL'] || 'http://127.0.0.1:8080' KillBillClient.read_timeout = (ENV['KILLBILL_READ_TIMEOUT'] || 60000).to_i KillBillClient.connection_timeout = (ENV['KILLBILL_CONNECTION_TIMEOUT'] || 60000).to_i
wultra/powerauth-client-core
PowerAuth/src/PowerAuth/crypto/PRNG.cpp
/* * Copyright 2021 <NAME>.r.o. * * 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 w...
ge-enrique-cano/uaa
server/src/main/java/org/cloudfoundry/identity/uaa/impl/config/AliasSupportingTypeDescription.java
package org.cloudfoundry.identity.uaa.impl.config; import org.yaml.snakeyaml.TypeDescription; import org.yaml.snakeyaml.introspector.Property; import java.util.HashMap; import java.util.Map; /** * Created by taitz. */ class AliasSupportingTypeDescription extends TypeDescription { private final Map<String, Pro...
zhuyadong/COS
CosStd/src/Functor.c
<reponame>zhuyadong/COS /** * C Object System * COS Functor * * Copyright 2006+ <NAME> <<EMAIL>> * * 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/licens...
logginghub/core
logginghub-server/src/main/java/com/logginghub/logging/transaction/EventReporter.java
package com.logginghub.logging.transaction; import com.logginghub.logging.DefaultLogEvent; import com.logginghub.logging.LogEvent; import com.logginghub.logging.LogEventBuilder; import com.logginghub.logging.transaction.configuration.EventReporterConfiguration; import com.logginghub.logging.transaction.configura...
readr-media/news-projecrs
src/components/PoliticalContribution/components/charts/data/index.js
<reponame>readr-media/news-projecrs export const DATA_ALL_ORDINAL_DONATES_FROM_LEGENDS = [ { type: 'square-icon', text: '營利事業', color: '#9e005d' }, { type: 'square-icon', text: '個人', color: '#000000' }, { type: 'square-icon', text: '政黨', color: '#636363' }, { type: ...
zj-dreamly/my-program-learning
java/io/src/main/java/com/github/zj/dreamly/socket/chatroom/library/box/AbsByteArrayReceivePacket.java
<filename>java/io/src/main/java/com/github/zj/dreamly/socket/chatroom/library/box/AbsByteArrayReceivePacket.java<gh_stars>10-100 package com.github.zj.dreamly.socket.chatroom.library.box; import com.github.zj.dreamly.socket.chatroom.library.core.ReceivePacket; import java.io.ByteArrayOutputStream; /** * 定义最基础的基于{@l...
Abhisheknishant/Flint
src/gui/main-frame.h
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */ #ifndef FLINT_GUI_MAIN_FRAME_H_ #define FLINT_GUI_MAIN_FRAME_H_ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wcast-qual" #include <wx/wx.h> #include <wx/aui/aui.h> #include <wx/filehistory.h> #pr...
kajsa/bson4jackson
src/main/java/de/undercouch/bson4jackson/types/JavaScript.java
package de.undercouch.bson4jackson.types; import java.util.Map; /** * Embedded JavaScript code with an optional scope (i.e. an embedded BSON document) * @author <NAME> */ public class JavaScript { /** * The actual code */ protected final String _code; /** * The scope (may be null) ...
juliocnsouzadev/eip
jms_labs/jms-log/jms1.1/src/share/javax/jms/TopicSession.java
<gh_stars>0 /* * @(#)TopicSession.java 1.40 02/04/10 * * Copyright 1997-2002 Sun Microsystems, Inc. All Rights Reserved. * * SUN PROPRIETARY/CONFIDENTIAL. * This software is the proprietary information of Sun Microsystems, Inc. * Use is subject to license terms. * */ package javax.jms; /** A <CODE>Topic...
jeonghoonkang/BerePi
apps/hue/512_hue_set.py
# -*- coding: utf-8 -*- # Author : jeonghoonkang, https://github.com/jeonghoonkang import httplib import time from time import strftime, localtime hue_uid = "c274b3c285d19cf3480c91439329147" restcmd = "/api"+hue_uid+"/lights" str = " " ip='10.255.255.65x' latest_time = "initial status" xhue = [10000,25000,46000,562...
simon04/radiance
substance/src/main/java/org/pushingpixels/substance/api/watermark/SubstanceWatermark.java
<reponame>simon04/radiance<filename>substance/src/main/java/org/pushingpixels/substance/api/watermark/SubstanceWatermark.java<gh_stars>1-10 /* * Copyright (c) 2005-2020 <NAME>. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
neonkingfr/netzhaut
src/lib/nhrenderer/Main/Renderer.h
<gh_stars>0 #ifndef NH_RENDERER_RENDERER_H #define NH_RENDERER_RENDERER_H #ifndef DOXYGEN_SHOULD_SKIP_THIS /** * netzhaut - Web Browser Engine * Copyright (C) 2020 The netzhaut Authors * Published under MIT */ #include "../Common/Types/Private.h" #endif /** @addtogroup lib_nhrenderer_structs * @{ */ ty...
allisonverdam/cubes
cubes/sql/query.py
<gh_stars>0 # -*- encoding=utf -*- """ cubes.sql.query ~~~~~~~~~~~~~~~ Star/snowflake schema query construction structures """ # Note for developers and maintainers # ----------------------------------- # # This module is to be remained implemented in a way that it does not use any # of the Cubes objects. It might u...
techkey/PTVS
Python/Tests/TestData/Coverage/Simple/test.py
<filename>Python/Tests/TestData/Coverage/Simple/test.py<gh_stars>100-1000 def f(): x = 1 def g(): if True: print('hi') else: print('bye') x = 2 pass return x f() f() g()
fredmorcos/attic
Projects/Graffer/0.2/grafer/ui/MainMenu.py
''' This file is part of Camarillo. Copyright (C) 2008 <NAME> <<EMAIL>> Camarillo 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 version 3 of the License, or (at your option) any later version. ...
npocmaka/Windows-Server-2003
drivers/storage/volsnap/vss/server/tests/multilayer/mlutil.cpp
<reponame>npocmaka/Windows-Server-2003 /* **++ ** ** Copyright (c) 2000-2001 Microsoft Corporation ** ** ** Module Name: ** ** mlutil.cpp ** ** ** Abstract: ** ** Utility functions for the VSML test. ** ** Author: ** ** <NAME> [aoltean] 03/05/2001 ** ** The sample is based on the Metasnap...
SaatCoffeeMUD/SAATCoffeeMUD
com/planet_ink/coffee_mud/Abilities/Skills/Skill_ResearchItem.java
package com.planet_ink.coffee_mud.Abilities.Skills; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import...
75py/My-pkgs
app/src/androidTest/java/com/nagopy/android/mypkgs/uiautomator/UITest.java
package com.nagopy.android.mypkgs.uiautomator; import android.os.Environment; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import android.support.test.uiautomator.UiDevice; import android.support.test.uiautomator.UiObject; import android.support.test.uiautomato...
AllenWilliamson/happo.io
src/loadUserConfig.js
import request from 'request-promise-native'; import requireRelative from 'require-relative'; import Logger from './Logger'; import WrappedError from './WrappedError'; import * as defaultConfig from './DEFAULTS'; function load(pathToConfigFile) { try { return Object.assign({}, defaultConfig, requireRelative(pat...
peopledoc/ml-versioning-tools
mlvtools/cmd.py
import logging import sys import traceback import os.path import argparse from argparse import ArgumentParser, Namespace from typing import Tuple, Any, List from mlvtools.conf.conf import get_conf_file_default_path, load_conf_or_default, MlVToolConf from mlvtools.exception import MlVToolException from mlvtools.helper...
xellio/myra-shell
api/domain.go
<filename>api/domain.go package api import ( "net/http" "github.com/Myra-Security-GmbH/myra-shell/api/vo" ) // // DomainList ... // func (a *myraAPI) DomainList(search string) ([]vo.DomainVO, error) { ret, err := a.request(http.MethodGet, "/domains/1?search="+search, nil) if err != nil { return []vo.DomainVO{...
codelieche/codelieche.com
apps/article/urls/api/main.py
# -*- coding:utf-8 -*- from django.urls import path, include urlpatterns = [ # 前缀:/api/v1/article/ # 文章分类 path('category/', include(arg=("article.urls.api.category", "article"), namespace="category")), # 文章标签 path('tag/', include(arg=("article.urls.api.tag", "article"), namespace="tag")), # 文章a...
rockandsalt/conan-center-index
recipes/libaom-av1/all/conanfile.py
<reponame>rockandsalt/conan-center-index from conans import ConanFile, tools, CMake from conans.errors import ConanInvalidConfiguration import os required_conan_version = ">=1.33.0" class LibaomAv1Conan(ConanFile): name = "libaom-av1" description = "AV1 Codec Library" topics = ("av1", "codec", "video", "...
bianapis/sd-branch-location-operations-v3
src/main/java/org/bian/dto/SDBranchLocationOperationsActivateInputModelBranchLocationOperationsServiceConfigurationRecord.java
<reponame>bianapis/sd-branch-location-operations-v3 package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.bian.dto.SDBranchLocationOperationsActi...
nocke/photocmd
src/app/main/tests/getapp.js
import { Application } from 'spectron' import { resolve } from 'app-root-path' export default () => ( new Application({ path: resolve('./node_modules/.bin/electron' + (process.platform === 'win32' ? '.cmd' : '')), args: [resolve('.')], startTimeout: 10000, waitTimeout: 10000, env: { ELECTRO...
joansmith2/basex
basex-core/src/main/java/org/basex/query/expr/ValueAccess.java
package org.basex.query.expr; import static org.basex.query.QueryText.*; import static org.basex.util.Token.*; import java.util.*; import org.basex.data.*; import org.basex.index.*; import org.basex.index.query.*; import org.basex.query.*; import org.basex.query.expr.path.*; import org.basex.query.func.*; import org...
zicla/Webzic
compass/src/main/java/com/logzc/webzic/compass/dao/UserDao.java
<reponame>zicla/Webzic<filename>compass/src/main/java/com/logzc/webzic/compass/dao/UserDao.java package com.logzc.webzic.compass.dao; import com.logzc.webzic.annotation.Repository; import com.logzc.webzic.compass.model.User; import com.logzc.webzic.orm.dao.Dao; /** * Created by lishuang on 2016/10/11. */ @Repositor...
Layton85/akordyukov
chapter_002/src/test/java/ru/job4j/chess/BoardTest.java
package ru.job4j.chess; import org.junit.Test; import ru.job4j.chess.figures.*; import static org.junit.Assert.*; /** * BoardTest. * * @author <NAME> (<EMAIL>) * @version $Id$ * @since 0.1 */ public class BoardTest { @Test public void whenMoveD5E4ThenCorrect() { Board board = new Board(); ...
isaoshiaoki/CursosAndroidDaUdemy
LIVRO.GOOGLE.5D/ZIPS/4ed-master/4ed-master/carros/Passo06-RecyclerView/Carros/app/src/main/java/br/com/livroandroid/carros/fragments/CarrosTabFragment.java
package br.com.livroandroid.carros.fragments; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import br.com.livroandroid.carros.R; import br.com.livroandroi...
moutainhigh/ses-server
ses-app/ses-mobile-rps/src/main/java/com/redescooter/ses/mobile/rps/dao/base/OpeInvoiceScooterDetailBMapper.java
package com.redescooter.ses.mobile.rps.dao.base; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.redescooter.ses.mobile.rps.dm.OpeInvoiceScooterDetailB; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OpeInvoiceScooterDetailBMapper extends BaseMapper<OpeInvoice...
wilsonleung-gep/dot-plot-viewer
js/seq_reader.js
/*global jQuery */ (function($) { "use strict"; var GEP = $.fn.GEP, SeqReader = (function () { var defaults = { eventPrefix: "seqReader", headerMarker: ">", headerWithDescription: /^>(\S+)\s+(.*)$/, headerWithoutDescription: /^>(\S+)/ }; function SeqReader(lines, cfg) { ...
spring2go/geekstore
src/main/java/io/geekstore/resolver/dataloader/CollectionChildrenDataLoader.java
/* * Copyright (c) 2020 GeekStore. * All rights reserved. */ package io.geekstore.resolver.dataloader; import io.geekstore.common.utils.BeanMapper; import io.geekstore.entity.CollectionEntity; import io.geekstore.mapper.CollectionEntityMapper; import io.geekstore.types.collection.Collection; import com.baomidou.my...
Ujjawalgupta42/Hacktoberfest2021-DSA
27. LeetCode Problems/DiameterofBinaryTree.cpp
<reponame>Ujjawalgupta42/Hacktoberfest2021-DSA<filename>27. LeetCode Problems/DiameterofBinaryTree.cpp // Problem Link : https://leetcode.com/problems/diameter-of-binary-tree/ /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(...
Mavennix/eltaj
src/pages/digital-signage.js
import React from 'react' import PrimaryDemoBanner from '../components/primary-demo-banner' import QmaticLogo from '../images/qmatic-logo-2.svg' import HeroImg from "../images/product-qmatic/digital-signage.png" import EltajImage from '../components/eltaj-image/eltaj-image' import EltajList from '../components/eltaj-li...
bagseye/mbdev
src/components/DashboardArea.js
<gh_stars>1-10 import React from "react"; import Layout from "./Layout"; import SEO from "./SEO"; import CardContainer from "./Cards/CardContainer"; import Card from "./Cards/Card"; import useAllAgency from "../hooks/use-all-agency"; const DashboardArea = () => { const agencyData = useAllAgency(); return ( <>...
h4091/OhMyBiliBili
app/src/main/java/com/hotbitmapgg/ohmybilibili/config/OhMyBiliBiliApp.java
package com.hotbitmapgg.ohmybilibili.config; import android.app.Application; import android.os.Environment; import com.hotbitmapgg.ohmybilibili.utils.FileUtils; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InvalidClassException;...
uniqueleon/frameworks
api/src/main/java/org/aztec/framework/api/rest/entity/WSMessageRequest.java
package org.aztec.framework.api.rest.entity; import java.util.List; import java.util.Map; public class WSMessageRequest { private String sourceId;//`source_id` varchar(20) comment NULL COMMENT '来源ID,发送消息的实体ID', //`content` text DEFAULT '' COMMENT '消息内容', private Integer msgType; private Object sourceObj...
tangtaoshadow/Propro-Server
src/main/java/com/westlake/air/propro/domain/bean/learner/ErrorStat.java
<gh_stars>1-10 package com.westlake.air.propro.domain.bean.learner; import com.westlake.air.propro.domain.bean.score.SimpleFeatureScores; import lombok.Data; import java.util.List; /** * Created by <NAME> * Time: 2018-06-13 21:34 */ @Data public class ErrorStat { List<SimpleFeatureScores> bestFeatureScoresL...