repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
KavithaSiva/jenkins-library
pkg/validation/validation.go
package validation import ( "errors" "fmt" "reflect" "strconv" "strings" "github.com/go-playground/locales/en" ut "github.com/go-playground/universal-translator" valid "github.com/go-playground/validator/v10" en_translations "github.com/go-playground/validator/v10/translations/en" ) type Translation struct ...
nate-eisner/braintree_android
SamsungPay/src/main/java/com/braintreepayments/api/SamsungPayInternalClient.java
package com.braintreepayments.api; import android.content.Context; import android.os.Bundle; import androidx.annotation.VisibleForTesting; import com.samsung.android.sdk.samsungpay.v2.PartnerInfo; import com.samsung.android.sdk.samsungpay.v2.SamsungPay; import com.samsung.android.sdk.samsungpay.v2.SpaySdk; import co...
vinz243/CompactdPlayer
app/src/main/java/io/compactd/player/adapter/AlbumsAdapter.java
package io.compactd.player.adapter; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.support.v4.util.Pair; import android.support.v7.widget.PopupMenu; import android.view.MenuItem; import android.view.View; import com.couchbase.lite.CouchbaseLiteExc...
dmgerman/camel
components/camel-jgroups/src/main/java/org/apache/camel/component/jgroups/cluster/JGroupsLockClusterService.java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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 ...
huisunan/epic4j
src/main/java/com/hsn/epic4j/core/exception/TimeException.java
<filename>src/main/java/com/hsn/epic4j/core/exception/TimeException.java package com.hsn.epic4j.core.exception; public class TimeException extends RuntimeException{ public TimeException(String message) { super(message); } }
kyuukimon/dormant-core
src/main/java/cn/com/dormant/service/core/misc/CommonValidator.java
<gh_stars>0 package cn.com.dormant.service.core.misc; import java.util.Collection; import java.util.Map; /** * <code>CommonUtils<code> * * @description: This class includes some common util validation methods and maybe called by lots of place in system * @author: <NAME>(<EMAIL>) * @creation: 2015/03/11 * @versi...
VU-libtech/OLE-INST
ole-app/olefs/src/main/java/org/kuali/ole/gl/businessobject/PendingBalancesMove.java
/* * Copyright 2006 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by appl...
cassproject/cass-npm
src/org/schema/CovidTestingFacility.js
const schema = {}; schema.MedicalClinic = require("./MedicalClinic.js"); /** * Schema.org/CovidTestingFacility * A CovidTestingFacility is a [[MedicalClinic]] where testing for the COVID-19 Coronavirus disease is available. If the facility is being made available from an established [[Pharmacy]], [[Hotel]], or ...
feminabi/stayOnTrak
src/components/ContactBar.js
<filename>src/components/ContactBar.js import React from 'react' import Link from 'gatsby-link' import '../stylesheets/components/contact-bar.scss' const ContactBar = () => { return ( <div className="contact-bar"> <h2>Reach out and get started today!</h2> <h3> Give us a call at <a href="tel...
zheyujie/Semantic-UI-React
docs/src/examples/elements/Input/Variations/InputExampleRightLabeledBasic.js
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleRightLabeledBasic = () => ( <Input label={{ basic: true, content: 'kg' }} labelPosition='right' placeholder='Enter weight...' /> ) export default InputExampleRightLabeledBasic
llHoYall/Cpp_Playground
playground/function/higher-order_function.cpp
<gh_stars>0 /******************************************************************************* * @brief Higher-order function in modern C++ * @author llHoYall <<EMAIL>> * @version v1.0 * @history * 2018.12.24 Created. ******************************************************************************/ /* Include Hea...
Dongshanxu/OnlinePK
OnlinePK-iOS/NLiteAVDemo/Utils/Category/UIControl+repeatclick.h
// // UIControl+repeatclick.h // NLiteAVDemo // // Created by Ease on 2020/11/10. // Copyright (c) 2021 NetEase, Inc. All rights reserved. // Use of this source code is governed by a MIT license that can be found in the LICENSE file #import <UIKit/UIKit.h> @interface UIControl (repeatclick) @property (nonatomic...
lwhsu/swift
benchmark/utils/LibProc/LibProcIncludeSystemHeader.h
<filename>benchmark/utils/LibProc/LibProcIncludeSystemHeader.h //===--- LibProcIncludeSystemHeader.h -------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2...
giko/teavm
teavm-samples/teavm-samples-storage/src/main/java/org/teavm/samples/storage/Application.java
<filename>teavm-samples/teavm-samples-storage/src/main/java/org/teavm/samples/storage/Application.java /* * Copyright 2015 <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 * ...
slliac/Ljus4Food
application/html/search/functions_3.js
var searchData= [ ['file_5fget_5fcontents_5fcurl_5feadam',['file_get_contents_curl_eadam',['../class_a_p_irequest.html#aa3376c3f771a5cb3ad5356d22674a5ad',1,'APIrequest']]], ['file_5fget_5fcontents_5fcurl_5fz',['file_get_contents_curl_z',['../class_a_p_irequest.html#a65f97cf2471736a6999cefebea218a03',1,'APIrequest']...
igorscosta/rest4mex
log4mex/src/main/java/org/aksw/mex/log4mex/Execution.java
/** * Copyright (C) 2014 - 2016, <NAME> * * This file is part of LOG4MEX. * * LOG4MEX 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 ve...
Nyarum/noterius
network/common/world_structs.go
package common type EntityEvent struct { EnityID uint32 EnityType uint8 EventID uint16 EventName string }
iamzken/aliyun-openapi-cpp-sdk
cas/src/model/DescribeOrderDetailResult.cc
<reponame>iamzken/aliyun-openapi-cpp-sdk<filename>cas/src/model/DescribeOrderDetailResult.cc<gh_stars>10-100 /* * Copyright 2009-2017 Alibaba Cloud 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 ...
Matt-Doyle/PythonError
src/pythonError/errorInterpreter/inputPhaser/InputParser.java
<reponame>Matt-Doyle/PythonError<gh_stars>0 package pythonError.errorInterpreter.inputPhaser; import pythonError.errorInterpreter.errorSearch.BoyerMoore; import pythonError.errorInterpreter.pythonInterpreter.Python; import java.util.ArrayList; import java.util.Arrays; import java.util.regex.Pattern; /** * Created b...
hervewenjie/mysql
storage/innobase/log/log0online.cc
/***************************************************************************** Copyright (c) 2011-2012 Percona Inc. All Rights Reserved. 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 ...
joelmahoney/discoverbps
app/helpers/admin/demand_data_helper.rb
module Admin::DemandDataHelper end
lilsweetcaligula/Online-Judges
hackerrank/algorithms/bit_manipulation/easy/flipping_bits/py/solution.py
<reponame>lilsweetcaligula/Online-Judges<filename>hackerrank/algorithms/bit_manipulation/easy/flipping_bits/py/solution.py #!/bin/python import ctypes testCount = int(raw_input()) for testId in range(testCount): value = int(raw_input()) flipped = ~value & 0xFFFFFFFF print flipped
shiniwat/sdl_ios
SmartDeviceLink/SDLSystemCapabilityType.h
<reponame>shiniwat/sdl_ios // // SDLSystemCapabilityType.h // SmartDeviceLink-iOS // // Created by <NAME> on 7/10/17. // Copyright © 2017 smartdevicelink. All rights reserved. // #import <Foundation/Foundation.h> #import "SDLEnum.h" /** The type of system capability to get more information on */ @interface SDL...
JACKCHEN96/Iceberg
src/main/java/com/iceberg/controller/UserInfoController.java
<filename>src/main/java/com/iceberg/controller/UserInfoController.java package com.iceberg.controller; import com.iceberg.entity.Privilege; import com.iceberg.entity.Role; import com.iceberg.entity.UserInfo; import com.iceberg.service.PrivilegeService; import com.iceberg.service.UserInfoService; import com.iceberg.uti...
bschade18/moviecity
client/src/components/movie/MovieVideos.js
import React from 'react'; import { youtubeUrl } from '../../config'; const MovieVideos = ({ videos }) => ( <div className="movie-videos"> <h1>Trailers & Clips</h1> <div className="movie-videos-container"> {videos.map((video) => ( <div className="m-3" key={video.id}> <p className="mov...
extnet/docs5.ext.net
d3/d77/class_ext_1_1_net_1_1_bool_array_json_converter.js
var class_ext_1_1_net_1_1_bool_array_json_converter = [ [ "CanConvert", "d3/d77/class_ext_1_1_net_1_1_bool_array_json_converter.html#a7190c8e8c79ab7f5ceba7e2566f33c18", null ], [ "ReadJson", "d3/d77/class_ext_1_1_net_1_1_bool_array_json_converter.html#abd4e57f49dd2ce5760255354b2ffb684", null ], [ "WriteJson...
nandor/genm-opt
passes/sccp/lattice.h
// This file if part of the llir-opt project. // Licensing information can be found in the LICENSE file. // (C) 2018 <NAME>. All rights reserved. #pragma once #include <optional> #include <llvm/ADT/APFloat.h> #include <llvm/ADT/APInt.h> #include <llvm/Support/raw_ostream.h> using APInt = llvm::APInt; using APFloat =...
Hoommus/iscaribot
src/main/java/features/commands/events/CommandEventBuilder.java
package features.commands.events; import model.entities.EnhancedGuild; import model.entities.EnhancedMember; import model.entities.EnhancedUser; import net.dv8tion.jda.core.JDA; import net.dv8tion.jda.core.entities.Member; import net.dv8tion.jda.core.entities.Message; import providers.EnhancedGuildsProvider; import pr...
magnuswstrom/solidbeans-core
src/main/java/com/solidbeans/core/security/jwt/spring/SecurityJwtRepository.java
<filename>src/main/java/com/solidbeans/core/security/jwt/spring/SecurityJwtRepository.java /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.solidbeans.core.security.jwt.spr...
vandsonlima/SSP
src/test/java/org/jasig/ssp/web/api/PersonProgramStatusControllerIntegrationTest.java
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in ...
zycgit/rsf
framework/src/main/java/net/hasor/rsf/container/ServiceDefine.java
/* * Copyright 2008-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
gitter-badger/ZeloEngine
Engine/Core/LuaScript/LuaScriptManager.cpp
<gh_stars>0 // LuaScriptManager.cpp // created on 2021/5/5 // author @zoloypzuo #include "ZeloPreCompiledHeader.h" #include "LuaScriptManager.h" #include "Core/Resource/ResourceManager.h" #include "Core/Plugin/Plugin.h" using namespace Zelo::Core::Resource; using namespace Zelo::Core::LuaScript; void LuaBind_Main(sol...
nroduit/jai-imageio-core
src/main/java/jj2000/j2k/util/MathUtil.java
<reponame>nroduit/jai-imageio-core /* * $RCSfile: MathUtil.java,v $ * $Revision: 1.1 $ * $Date: 2005-02-11 05:02:25 $ * $State: Exp $ * * Class: MathUtil * * Description: Utility mathematical methods * * * * COPYRIGHT: * * This software module was originally dev...
tidalwave-it/northernwind-rca-src
modules/CommonsUI/src/test/java/it/tidalwave/northernwind/frontend/filesystem/impl/ResourceFileNetBeansPlatformWritableFolderTest.java
/* * #%L * ********************************************************************************************************************* * * NorthernWind - lightweight CMS * http://northernwind.tidalwave.it - git clone <EMAIL>:tidalwave/northernwind-rca-src.git * %% * Copyright (C) 2013 - 2021 Tidalwave s.a.s. (http://t...
textbook/impasse
client/src/services/passwordService.integration.test.js
import { rest } from "msw"; import { setupServer } from "msw/node"; import { getPassword } from "./passwordService"; describe("service integration", () => { const password = "<PASSWORD>"; const server = setupServer( rest.get("/api", (req, res, ctx) => { return res(ctx.status(200), ctx.json({ password })); }...
krishnawork/Crm
node_modules/antd/es/date-picker/locale/lt_LT.js
<filename>node_modules/antd/es/date-picker/locale/lt_LT.js import _extends from "@babel/runtime/helpers/extends"; import CalendarLocale from "rc-picker/es/locale/lt_LT"; import TimePickerLocale from '../../time-picker/locale/lt_LT'; // Merge into a locale object var locale = { lang: _extends({ placeholder: 'Pasi...
gh-determined-ai/determined
harness/determined/launch/deepspeed.py
<gh_stars>0 """ deepspeed.py is the launch layer for DeepSpeedTrial in Determined. It launches the entrypoint script using DeepSpeed's launch process. """ import argparse import logging import os import pathlib import subprocess import sys import tempfile import time from typing import List from deepspeed.launcher.ru...
diko316/joqx
src/executor.js
<gh_stars>0 'use strict'; import { thenable } from "libcore"; export function promiseGuard(method) { function executor(helper, s1, s2, s3, s4, s5, s6, s7, s8) { if (thenable(s1)) { return s1.then(function (s1) { return method.call(helper, s1, s2, s3, s4, s5...
adamkorynta/opendcs
src/main/java/decodes/tsdb/alarm/xml/AlarmXioTags.java
<reponame>adamkorynta/opendcs /* * $Id$ * * Copyright 2017 Cove Software, LLC. All rights reserved. * * $Log$ * Revision 1.2 2019/05/10 18:35:26 mmaloney * dev * * Revision 1.1 2019/03/05 14:53:01 mmaloney * Checked in partial implementation of Alarm classes. * * Revision 1.3 2018/03/23 20:12:20 mma...
tonioshikanlu/tubman-hack
sources/androidx/core/os/HandlerKt.java
<gh_stars>1-10 package androidx.core.os; import android.os.Handler; import e.r; import e.x.b.a; import e.x.c.i; import kotlin.Metadata; @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\...
LucasLaLima/canvas
canvas_modules/common-canvas/locales/toolbar/locales/index.js
/* * Copyright 2017-2020 Elyra Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
rksk/carbon-identity-framework-1
components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/test/java/org/wso2/carbon/identity/application/authentication/framework/services/PostAuthenticationMgtServiceTest.java
<reponame>rksk/carbon-identity-framework-1 /* * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) 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://w...
PRETgroup/sann
MEMOCODE_2018_Benchmarks/AIBRO/neuron/main.h
<filename>MEMOCODE_2018_Benchmarks/AIBRO/neuron/main.h #ifndef MAIN_H #define MAIN_H #include <time.h> #include <stdlib.h> #include <stdio.h> void aibro_O_outA1(int); void aibro_O_outA2(int); void aibro_O_outA3(int); void aibro_O_outB1(int); void aibro_O_outB2(int); void aibro_O_outC(int); #endif
Afro-Don-San/opensrp-client-chw-hf
opensrp-chw-hf/src/main/java/org/smartregister/chw/hf/presenter/FpRegisterPresenter.java
package org.smartregister.chw.hf.presenter; import org.smartregister.chw.fp.contract.BaseFpRegisterContract; import org.smartregister.chw.fp.presenter.BaseFpRegisterPresenter; public class FpRegisterPresenter extends BaseFpRegisterPresenter { private BaseFpRegisterContract.Interactor interactor; public FpReg...
Guru2921/Laravel-React
resources/assets/js/pages/Dashboard/manage-listing/calendar/Calendar.js
<reponame>Guru2921/Laravel-React import React from 'react'; import Calendartitle from './calendartitle/Calendartitle'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom' class Calendar extends React.Component { render(){ return( <div className="manage-listing-content-w...
sPHENIX-Test/sPHENIX-Test
doxygen/da/d3c/G4__Tracking_8C.js
var G4__Tracking_8C = [ [ "enu_InttDeadMapType", "da/d3c/G4__Tracking_8C.html#a4249adf7aeced09f4b32c323628db438", [ [ "kInttNoDeadMap", "da/d3c/G4__Tracking_8C.html#a4249adf7aeced09f4b32c323628db438aaf0ee439ff059f6942c898cce8d7de0a", null ], [ "kIntt4PercentDeadMap", "da/d3c/G4__Tracking_8C.html#a4249ad...
codeka/ravaged-planets
include/game/entities/entity_debug.h
#pragma once #include <framework/vector.h> #include <framework/colour.h> namespace fw { namespace gui { class window; class widget; } namespace sg { class scenegraph; } } namespace ent { class entity_manager; /** These are the different flags that apply to a single entity. */ enum entity_debug_fl...
berlin-church/church-database
app/admin/option_answer.rb
ActiveAdmin.register OptionAnswer do menu parent: "Questionnaires" form do |f| inputs '' do input :question_option input :attendee, :collection => Attendee.joins(:member).order('members.first_name') end actions end permit_params :question_option_id, :member_id end
sweersr/visions
examples/data_analysis/categorical.py
<filename>examples/data_analysis/categorical.py import pandas.api.types as pdt import pandas as pd import numpy as np from typing import Sequence, List from visions import visions_string, visions_integer, visions_object from visions.core.model.relations import IdentityRelation, InferenceRelation from visions.core.mode...
Somtozech/Rocket.Chat.Electron
src/components/electron/Menu.js
<reponame>Somtozech/Rocket.Chat.Electron import { remote } from 'electron'; import React, { createContext, forwardRef, useCallback, useContext, useImperativeHandle, useRef, } from 'react'; import { useElementsRefValues } from '../../hooks/useElementsRefValues'; const MenuContext = createContext(() => {}); expo...
thumblemonks/riot
lib/riot/assertion_macros/exists.rb
<gh_stars>10-100 module Riot # Asserts that the result of the test is a non-nil value. This is useful in the case where you don't want # to translate the result of the test into a boolean value # # asserts("test") { "foo" }.exists # should("test") { 123 }.exists # asserts("test") { "" }.exists # a...
webOS-ports/configd
src/configd/setting/Setting.cpp
<reponame>webOS-ports/configd // Copyright (c) 2017-2020 LG Electronics, 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...
getsocial-im/getsocial-react-native-sdk
sdk7demo/common/MenuStyle.js
<filename>sdk7demo/common/MenuStyle.js<gh_stars>1-10 // @flow import {StyleSheet, Platform, Dimensions} from 'react-native'; const {width} = Dimensions.get('window'); export const MenuStyle = StyleSheet.create({ container: { flex: 1, paddingTop: Platform.OS === 'ios' ? 20 : 0, backgroundC...
jdekarske/astrobee
localization/imu_integration/include/imu_integration/imu_integrator_params.h
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with t...
o-ran-sc/ric-app-kpimon
asn1c_defs/all-defs/UE-ContextKeptIndicator.h
<reponame>o-ran-sc/ric-app-kpimon<filename>asn1c_defs/all-defs/UE-ContextKeptIndicator.h /* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "X2AP-IEs" * found in "../../asn_defs/asn1/x2ap-modified-15-05.asn" * `asn1c -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-...
qhl0505/dmd
dmd-admin/src/main/java/com/dmd/mall/dto/SmsFlashPromotionProduct.java
package com.dmd.mall.dto; import com.dmd.mall.model.PmsProduct; import com.dmd.mall.model.SmsFlashPromotionProductRelation; import lombok.Getter; import lombok.Setter; /** * 限时购及商品信息封装 * Created by macro on 2018/11/16. */ public class SmsFlashPromotionProduct extends SmsFlashPromotionProductRelation { @Getter ...
ScignScape-RZ/phcg
cpp/src/rz/rz-kauvir/rz-code-generators/rpi/rpi-output.h
// Copyright <NAME> 2019. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef RPI_OUTPUT__H #define RPI_OUTPUT__H #include "accessors.h" #include "flags.h" #include <QString> #inc...
usi-systems/cc
ns-allinone-3.35/ns-3.35/src/core/examples/main-test-sync.cc
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 University of Washington * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This pro...
crazyvalse/algorithms
src/11-binary-tree/11-binary-search-tree-n/02/m-98/or/01.test.js
const isValidBST = require('./01') const { arrayToTreeNode } = require('../../../utils') test('1', () => { const root = arrayToTreeNode([5, 1, 4, null, null, 3, 6]) expect(isValidBST(root)).toEqual(false) }) test('2', () => { const root = arrayToTreeNode([2, 1, 3]) expect(isValidBST(root)).toEqual(true) }) ...
smaclell/sharebibles-lite
actions/i18n.js
<filename>actions/i18n.js<gh_stars>1-10 import I18n from '../assets/i18n/i18n'; export default I18n; export const UPDATE_LOCALE = 'UPDATE_LOCALE'; export const updateLocale = (locale) => (dispatch) => { I18n.updateLocale(locale); dispatch({ type: UPDATE_LOCALE, locale, }); };
niki4/leetcode_go
easy/163_missing_ranges.go
package main import "fmt" func addRange(lower, upper int) string { if lower+2 == upper { // missed one num return fmt.Sprint(lower + 1) } else { return fmt.Sprintf("%d->%d", lower+1, upper-1) } } // Runtime: 0 ms, faster than 100.00% of Go // Memory Usage: 2 MB, less than 52.38% of Go // Time complexity : O(N...
mgsx-dev/gdx-kit
core/src/net/mgsx/game/plugins/editor/systems/BindingSystem.java
package net.mgsx.game.plugins.editor.systems; import com.badlogic.ashley.core.Engine; import com.badlogic.ashley.core.EntitySystem; import com.badlogic.gdx.utils.ObjectMap.Entry; import net.mgsx.game.core.EditorScreen; import net.mgsx.game.core.annotations.Editable; import net.mgsx.game.core.annotations.EditableSyste...
kaydoh/geoq
geoq/workflow/admin.py
<filename>geoq/workflow/admin.py # -*- coding: UTF-8 -*- from django.contrib import admin from .models import Role, Workflow, State, Transition, EventType, Event class RoleAdmin(admin.ModelAdmin): """ Role administration """ list_display = ['name', 'description'] search_fields = ['name', 'descripti...
98llm/tir-script-samples
Protheus_WebApp/Modules/SIGAPLS/PLSA090TESTCASE.py
import unittest import time from tir import Webapp from datetime import datetime DateSystem = datetime.today().strftime('%d/%m/%Y') class PLSA090(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() inst.oHelper.Setup("SIGAPLS", DateSystem, "T1", "M SP 01 ", "33") inst.oHelper.Progra...
NerdThings/Ngine
src/Graphics/Image.h
<filename>src/Graphics/Image.h /********************************************************************************************** * * Ngine - The 2D game engine. * * Copyright (C) 2019 NerdThings * * LICENSE: Apache License 2.0 * View: https://github.com/NerdThings/Ngine/blob/master/LICENSE * *********************...
sebastien-belin-adp/interlok-fx-installer
src/main/java/com/adaptris/installer/helpers/GradleBuildRunner.java
package com.adaptris.installer.helpers; import java.io.OutputStream; import java.nio.file.Path; import org.gradle.tooling.BuildLauncher; import org.gradle.tooling.GradleConnector; import org.gradle.tooling.events.ProgressListener; public class GradleBuildRunner { private static final String CLEAN_TASK = "clean"; ...
alby-corp/ultimate-pizza-manager
app/core/pipes/component-builder.pipe.js
import {Pipe} from "./pipe"; import { ActivatedGuardCheckerStep, ComponentFirerStep, ComponentRenderStep, OutletValidatorStep } from "../steps"; export class ComponentBuilderPipe extends Pipe { constructor(config) { super(config, [OutletValidatorStep, ActivatedGuardCheckerStep, ComponentRen...
Javabyh/Graduation_Project
byh-frarmwork/common-entitys/src/main/java/com/aiit/byh/service/common/entity/validate/Number.java
<filename>byh-frarmwork/common-entitys/src/main/java/com/aiit/byh/service/common/entity/validate/Number.java /** * @Title: Number.java * @Package com.aiit.byhc.basic.validation * @author sdwan * @date 2014-4-18 * @version V1.0 */ package com.aiit.byh.service.common.entity.validate; import javax.validation.Constrai...
andre-becker/neodymium-library
src/test/java/com/xceptance/neodymium/testclasses/context/cucumbercontextclear/CucumberContextSteps.java
package com.xceptance.neodymium.testclasses.context.cucumbercontextclear; import org.junit.Assert; import com.xceptance.neodymium.util.Neodymium; import com.xceptance.neodymium.util.NeodymiumConfiguration; import com.xceptance.neodymium.util.WebDriverUtils; import cucumber.api.Scenario; import cucumber.api.java.Afte...
LorenzBuehmann/SANSA-Stack
sansa-ml/sansa-ml-spark/src/main/scala/net/sansa_stack/ml/spark/featureExtraction/FeatureExtractingSparqlGenerator.scala
<filename>sansa-ml/sansa-ml-spark/src/main/scala/net/sansa_stack/ml/spark/featureExtraction/FeatureExtractingSparqlGenerator.scala package net.sansa_stack.ml.spark.featureExtraction import java.nio.charset.StandardCharsets import java.nio.file.{Files, Paths} import net.sansa_stack.ml.spark.utils.{ConfigResolver, SPAR...
SethuSenthil/Mobile-App
ImageRadioDemo/app/src/main/java/com/example/imageradiodemo/MainActivity.java
package com.example.imageradiodemo; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.ImageView; import android.widget.RadioGroup; import android.widget.Toast; public class MainActivity extends AppCompatActivity { ImageView imageView; RadioGroup radioGroup; @...
JOKERsamadd/bishe
febs-security/src/main/java/cn/net/zhipeng/security/domain/LoginType.java
package cn.net.zhipeng.security.domain; public enum LoginType { normal, sms, social; }
dszmaj/wikidpad
lib/gadfly/bindings.py
""" Rule bindings for sql grammar. :Author: <NAME> :Maintainers: http://gadfly.sf.net/ :Copyright: <NAME>, 1994 :Id: $Id: bindings.py,v 1.2 2008/10/26 14:41:01 <NAME> Exp $: """ import semantics def elt0(list, context): """return first member of reduction""" return list[0] def elt1(list, conte...
BuggMaker/aiMap
src/utils/index.js
import * as UtilObj from "./UtilObject"; export { UtilObj }; export { extend, merge, replace, copy, isInstanceOf } from "./UtilObject"; export * from "./UtilColor"; export * from "./Util"; export * from "./UtilFetch";
neko-kai/izumi-r2
distage/distage-roles/src/main/scala/com/github/pshirshov/izumi/distage/roles/impl/ScoptLauncherArgs.scala
<reponame>neko-kai/izumi-r2<filename>distage/distage-roles/src/main/scala/com/github/pshirshov/izumi/distage/roles/impl/ScoptLauncherArgs.scala package com.github.pshirshov.izumi.distage.roles.impl import java.io.File import com.github.pshirshov.izumi.distage.roles.impl.ScoptLauncherArgs.WriteReference import com.git...
Mynogs/Algorithm-Implementations
Counting_Sort/Java/rrivera1849/Counting_Sort.java
<filename>Counting_Sort/Java/rrivera1849/Counting_Sort.java /* * Written by: <NAME> * Last Updated: January 7, 2014 */ public class Counting_Sort { public static int[] countingSort(int[] array, int maxNumber){ int[] sorted = new int[array.length]; int[] workArray = new int[maxNumber + 1]; /* * Inspect ...
connorwyatt/AxonFramework
axon-server-connector/src/main/java/org/axonframework/axonserver/connector/util/GrpcObjectSerializer.java
/* * Copyright (c) 2018. AxonIQ * 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 ...
WhatDanDoes/silid
src/silid-server/spec/lib/checkPermissionsSpec.js
'use strict'; require('dotenv').config(); /** * 2021-7-12 * * The team-org stuff has been removed but the related tests are preserved here * as a _how-to_ for the future. * * Commented code is left in place for repurposing when consumer requirements * are more fully understood. */ const nock = require('nock')...
uporabnik1/VoltaDiscord-Musicbot
VoltaDiscordGlasba/commands/premor.js
<reponame>uporabnik1/VoltaDiscord-Musicbot exports.run = async(client, message) => { const channel = message.member.voice.channel; if (!channel) return message.channel.send('Za uporabo tega ukaza moraš biti v klicu!'); let queue = message.client.queue.get(message.guild.id) if(!queue) return message.chan...
markphip/testing
jira-dvcs-connector-pageobjects/src/main/java/com/atlassian/jira/plugins/dvcs/pageobjects/page/account/AccountControlsDialog.java
package com.atlassian.jira.plugins.dvcs.pageobjects.page.account; import com.atlassian.pageobjects.elements.ElementBy; import com.atlassian.pageobjects.elements.PageElement; import com.atlassian.pageobjects.elements.WebDriverElement; import com.atlassian.pageobjects.elements.WebDriverLocatable; import com.atlassian.pa...
jasper-yeh/VtkDotNet
Imaging/Sources/vtkImageGaussianSource.cxx
/*========================================================================= Program: Visualization Toolkit Module: vtkImageGaussianSource.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribut...
BoneyIsSpooky/Javacord
javacord-api/src/main/java/org/javacord/api/listener/server/role/RoleChangePermissionsListener.java
<reponame>BoneyIsSpooky/Javacord package org.javacord.api.listener.server.role; import org.javacord.api.event.server.role.RoleChangePermissionsEvent; import org.javacord.api.listener.GloballyAttachableListener; import org.javacord.api.listener.ObjectAttachableListener; import org.javacord.api.listener.server.ServerAtt...
shuigedeng/taotao-cloud-paren
taotao-cloud-java/taotao-cloud-javaee/src/main/java/com/taotao/cloud/java/javaee/s1/c4_spring/p3/java/aspect/MyAspect.java
package com.taotao.cloud.java.javaee.s1.c4_spring.p3.java.aspect; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.AfterThrowing; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.springframework.stereoty...
dander521/HuoXunCaiJing
huoxun/Mine/Authentication/City/Model/Province.h
// // Province.h // CustomLocationPicker // // Created by apple on 2017/1/4. // Copyright © 2017年 yuantuan. All rights reserved. // #import <Foundation/Foundation.h> #import "City.h" @interface Province : NSObject @property (nonatomic, strong) NSString *id; // id @property (nonatomic, strong) NSString *name; // ...
TingeOGinge/stroustrup_ppp
code_snippets/Chapter09/chapter.9.6.cpp
// // This is example code from Chapter 9.6 "Operator overloading" of // "Programming -- Principles and Practice Using C++" by <NAME> // #include <iostream> using namespace std; //------------------------------------------------------------------------------ enum Month { jan=1, feb, mar, apr, may, jun, jul, a...
Brendaneus/Railroad
test/factories.rb
FactoryBot.define do factory :archiving do title { "Test Archiving" } content { "Sample Content" } end factory :blog_post do title { "Test Blog Post" } content { "Sample Content" } end factory :comment do content { "Test Comment" } factory :blog_post_comment do association :post, factory: :blog_po...
ipelovski/emsbd
src/main/java/sasj/data/subject/SubjectService.java
package sasj.data.subject; import sasj.data.grade.Grade; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Optional; @Service public class SubjectService { @Autowired private SubjectRepository subjectRepository; @Autowired p...
TheCodeYu/os
tools/omake/tolsrc/tk5lgpl1/t5lzma0d/7zip/Common/FileStreams.h
// FileStreams.h #ifndef __FILESTREAMS_H #define __FILESTREAMS_H #ifdef WIN32 #include "../../Windows/FileIO.h" #else #include "../../Common/C_FileIO.h" #endif #include "../IStream.h" #include "../../Common/MyCom.h" class CInFileStream: public IInStream, public IStreamGetSize, public CMyUnknownImp { public: ...
mikolayek/ant-http
src/test/java/org/missinglink/http/client/HttpClientUriTest.java
/* * Copyright <NAME> and other contributors as noted. * * 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 requi...
fredmorcos/attic
Projects/Jov/jov_mediacenter/src/obj.h
#ifndef __MC_OBJ__ #define __MC_OBJ__ #include <SDL.h> #include <SDL_ttf.h> typedef struct { SDL_Texture *content_texture; SDL_Texture *box_texture; SDL_Texture *texture; SDL_Rect rect; } Obj; void obj_destroy_textures (Obj *o); SDL_bool obj_set_text (Obj *o, SDL_Renderer *rend, ...
andela/-ah-backend-thor
authors/apps/profiles/apps.py
<reponame>andela/-ah-backend-thor<filename>authors/apps/profiles/apps.py from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class ProfilesConfig(AppConfig): name = 'authors.apps.profiles' verbose_name = _('profiles') def ready(self): import authors.apps.prof...
HIT-SCIR-xuanxuan/OpenKS
openks/distributed/quick-start/openKS_distributed/base/mode.py
<filename>openks/distributed/quick-start/openKS_distributed/base/mode.py # Copyright (c) 2020 Room 525 Research Group, Zhejiang University. # All Rights Reserved. from __future__ import print_function __all__ = ['Mode'] class Mode: """ There are various mode for fleet, each of them is design...
konexios/moonstone
kronos-web/src/main/java/com/arrow/kronos/web/TelemetryListener.java
<reponame>konexios/moonstone package com.arrow.kronos.web; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.LongAdder; import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.StringUtils; import org.springframewor...
GhatnekarPreeti/ph-css
ph-css/src/main/java/com/helger/css/decl/CSSKeyframesBlock.java
/** * Copyright (C) 2014-2021 <NAME> (www.helger.com) * philip[at]helger[dot]com * * 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...
djewsbury/XLE
Assets/AssetServices.h
// Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #pragma once namespace Assets { class AssetSetManager; class CompileAndAsyncManager; class Services { public: static AssetSetManager& GetAssetSets...
gunten/gunten-commons
basic/src/main/java/io/bio/Constant.java
package io.bio; public class Constant { public static final int PORT = 9000; public static final String SERVER_IP = "127.0.0.1"; public static final int BUFFER_SIZE = 1024; public static final int CLIENT_NUM = 50; }
RamiresOliv/Todyynho-Junior
commands/embed.js
const Discord = require("discord.js"); const c = require("../config/config.json"); exports.run = async (client, message, args) => { await message.delete(); if (!message.member.hasPermission("ADMINISTRATOR")) return message.channel.send( `${message.author}, você não possui permissão para executar ess...
EPapadopoulou/SOCIETIES-Platform
context-management/css-context-monitor/src/main/java/org/societies/context/source/css/impl/CssCtxMonitor.java
/** * Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET * (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije * informacijske družbe in elektronsko poslovanje (SETCCE), INS...
uptonking/play-servlet-rest
src/main/java/com/github/datalking/util/web/RequestContextUtils.java
package com.github.datalking.util.web; import com.github.datalking.web.context.WebApplicationContext; import com.github.datalking.web.servlet.DispatcherServlet; import com.github.datalking.web.servlet.flash.FlashMap; import com.github.datalking.web.servlet.FlashMapManager; import javax.servlet.ServletContext; import ...
rstancioiu/uva-online-judge
Volume102/10267 - Graphical Editor/10267.cpp
// Author: <NAME> // Problem: http://uva.onlinejudge.org/external/102/10267.html #include <iostream> #include <string> #include <queue> #include <utility> #include <sstream> #define N 256 #define M 256 using namespace std; string v[M]; int visited[N][M]; int m,n; void initialize() { for(int i=0;i<n;++i) v[i]=""; ...