repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
lookfwd/thornode
x/thorchain/types/type_event.go
package types import ( "fmt" "strconv" "gitlab.com/thorchain/thornode/common" "gitlab.com/thorchain/thornode/common/cosmos" ) // all event types support by THORChain const ( SwapEventType = `swap` StakeEventType = `stake` UnstakeEventType = `unstake` AddEventType = `add` PoolEventType = `po...
fgrid/iso20022
RejectionReason1Choice.go
<gh_stars>10-100 package iso20022 // Allows the sender of the rejection message to indicate only one rejection reason that applies to the entire rejected message. type RejectionReason1Choice struct { // Rejection reason that applies to the whole report. GlobalRejectionReason *Reason2 `xml:"GblRjctnRsn"` // Specif...
boosterconf/booster
spec/services/ticket_ordering_service_spec.rb
<reponame>boosterconf/booster require 'rails_helper' describe TicketOrderingService do describe "#" end
TomTranter/pybamm_pnm
post_scripts/animate_saved_data.py
<filename>post_scripts/animate_saved_data.py # -*- coding: utf-8 -*- """ Created on Thu Feb 6 08:46:59 2020 @author: Tom """ import pybamm import openpnm as op import matplotlib.pyplot as plt import ecm import os from scipy import io import numpy as np plt.style.use('default') plt.close("all") pybamm.set_logging...
alam8064/main
src/test/java/seedu/jelphabot/logic/parser/ReminderCommandParserTest.java
//@@author yapdianhao package seedu.jelphabot.logic.parser; import static seedu.jelphabot.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.jelphabot.logic.parser.CommandParserTestUtil.assertParseFailure; import static seedu.jelphabot.logic.parser.CommandParserTestUtil.assertParseSuccess; impor...
raintherrien/hammer
include/hammer/well.h
<filename>include/hammer/well.h<gh_stars>0 #ifndef HAMMER_WELL_H_ #define HAMMER_WELL_H_ #include <stdint.h> /* * Implementation of WELL512 by <NAME>, published in his paper: * Random Number Generation (2008) and released into the public domain. * http://lomont.org/papers/2008/Lomont_PRNG_2008.pdf */ #define WEL...
diguits/domainmodeldesigner
DomainModelDefinition/src/main/java/com/diguits/domainmodeldefinition/definitions/DomainModelDefinitionVisitorBase.java
<filename>DomainModelDefinition/src/main/java/com/diguits/domainmodeldefinition/definitions/DomainModelDefinitionVisitorBase.java package com.diguits.domainmodeldefinition.definitions; public class DomainModelDefinitionVisitorBase implements IEntityDefinitionVisitor { protected void visitBaseDef(BaseDef baseDef, Bas...
duannd/java-tutorials
java-core/src/main/java/com/duanndz/core/multithreading/ThreadJoinExample.java
<filename>java-core/src/main/java/com/duanndz/core/multithreading/ThreadJoinExample.java package com.duanndz.core.multithreading; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * duan.nguyen * Datetime 3/30/20 11:21 */ public class ThreadJoinExample { private static final Logger log = LoggerFact...
SanjanaB/gocd
config/config-api/src/main/java/com/thoughtworks/go/domain/PipelineGroups.java
<reponame>SanjanaB/gocd /* * Copyright 2017 ThoughtWorks, 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 ...
moktar/DesignPattern
designpattern/src/main/java/com/example/designpattern/behavioralpattern/statepattern/Management.java
<filename>designpattern/src/main/java/com/example/designpattern/behavioralpattern/statepattern/Management.java package com.example.designpattern.behavioralpattern.statepattern; import android.util.Log; public class Management implements Connection { @Override public void open() { Log.i("State: ","ope...
Presto412/Inaam-Admin-Management-UI
src/Components/realms/RealmHome.js
import { List } from "antd"; import React, { Component } from "react"; import { Link } from "react-router-dom"; const data = [ { label: "Users", link: "/users", }, { label: "Groups", link: "/groups", }, { label: "Coins", link: "/coins", }, ]; class RealmHome extends Component { m...
nachawati/zorba
src/runtime/update/update.h
/* * Copyright 2006-2016 zorba.io * * 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...
Nels885/csd_dashboard
dashboard/management/commands/sendemail.py
<gh_stars>0 from django.core.management.base import BaseCommand from django.core.management import call_command from django.utils import timezone from django.utils.html import strip_tags from django.core.mail import send_mail from django.template.loader import render_to_string from constance import config from squala...
antopen/alipay-sdk-python-all
alipay/aop/api/response/AlipayBossBaseProcessTicketQueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.BPOpenApiTicket import BPOpenApiTicket class AlipayBossBaseProcessTicketQueryResponse(AlipayResponse): def __init__(self): super(AlipayBossBaseProcessTic...
Isaac-Tait/Royal-Ridges-Camp
web/src/pages/PaintballPage/PaintballPage.js
<reponame>Isaac-Tait/Royal-Ridges-Camp import { MetaTags } from '@redwoodjs/web' const PaintballPage = () => { return ( <div> <MetaTags title="Paintball" description="Paintball at Royal Ridges Retreat is a blast" /> <div className="max-w-6xl mx-2 md:mx-auto text-xs md:text-base"...
signomix/signomix
src/main/java/com/signomix/out/utility/Counter.java
/** * Copyright (C) <NAME> 2018. * Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ package com.signomix.out.utility; import java.util.HashMap; import java.util.concurrent.atomic.AtomicLong; import org.cricketmsf.Adapter; import org.cricketmsf.Event; import org.cricketmsf...
Sable/MiX10
languages/Natlab/src/natlab/backends/x10/codegen/ArrayGetSet.java
<reponame>Sable/MiX10 package natlab.backends.x10.codegen; import java.util.ArrayList; import natlab.backends.x10.IRx10.ast.ArrayAccess; import natlab.backends.x10.IRx10.ast.ArraySetStmt; import natlab.backends.x10.IRx10.ast.AssignStmt; import natlab.backends.x10.IRx10.ast.DeclStmt; import natlab.backends.x10.IRx10.a...
codacy/bitbucket-scala-client
src/main/scala/com/codacy/client/bitbucket/v1/Issue.scala
package com.codacy.client.bitbucket.v1 import java.time.LocalDateTime import play.api.libs.functional.syntax._ import play.api.libs.json._ case class Issue( id: Long, status: String, priority: String, title: String, content: String, owner: String, created_on: LocalDateTime, kind: Stri...
tvelagapudi/lenstronomy
test/test_LensModel/test_Profiles/test_shift.py
<reponame>tvelagapudi/lenstronomy __author__ = 'sibirrer' from lenstronomy.LensModel.Profiles.alpha_shift import Shift import numpy as np import numpy.testing as npt import pytest class TestShift(object): """ tests the Gaussian methods """ def setup(self): self.shift = Shift() alph...
MIk201408/dawdler-series
dawdler/dawdler-client-plug/src/main/java/com/anywide/dawdler/clientplug/dynamicform/control/RadioControl.java
<reponame>MIk201408/dawdler-series /* * 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, Versi...
mykeylab/MYKEY-Client-SDK
Android/Sample/sdk/src/main/java/com/mykey/sdk/jni/MYKEYWalletJni.java
<gh_stars>1-10 package com.mykey.sdk.jni; import android.content.Context; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.TypeReference; import com.mykey.sdk.common.constants.ErrorCons; import com.mykey.sdk.common.util.LogUtil; import com.mykey.sdk.jni.entity.response.BaseJniResponse; import com.m...
veriKami/ePF_API_doc
ePF_API_doxy-0.2.x-dev/html/classep___s_p___osoba.js
<filename>ePF_API_doxy-0.2.x-dev/html/classep___s_p___osoba.js var classep___s_p___osoba = [ [ "__toString", "classep___s_p___osoba.html#a7516ca30af0db3cdbf9a7739b48ce91d", null ], [ "getDataStruct", "classep___s_p___osoba.html#a79dabf680e30ee6e62508a8df24ed243", null ], [ "stanowiska", "classep___s_p___oso...
ApacheSourceCode/kylin
core-cube/src/main/java/org/apache/kylin/cube/cuboid/algorithm/CuboidBenefitModel.java
<reponame>ApacheSourceCode/kylin /* * 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, Ver...
ismo-karkkainen/datalackey
src/StringValueMapper.cpp
<gh_stars>0 // // StringValueMapper.cpp // datalackey // // Created by <NAME> on 23.10.17. // Copyright © 2017 <NAME>. All rights reserved. // // Licensed under Universal Permissive License. See License.txt. #include "StringValueMapper.hpp" StringValueMapper::~StringValueMapper() { }
AlexanderWert/kibana
x-pack/test/api_integration/apis/management/index_management/templates.helpers.js
<filename>x-pack/test/api_integration/apis/management/index_management/templates.helpers.js<gh_stars>1-10 /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance wi...
iootclab/openjdk
openjdk11/test/jdk/sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java
/* * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
nelsonalayon/onvacationturismo
src/components/formulario.js
<reponame>nelsonalayon/onvacationturismo import React from 'react' // todos los campos de texto de este formulario son controlados, lo que significa que los datos que se guardan en state // no se repiten en los campos de texto sino que ustan la misma información (this.state.nombredelcampo). Si el state no // se in...
betfair/opentsp
cmd/collect-statse/aggregator/snapshot.go
// Copyright 2014 The Sporting Exchange Limited. All rights reserved. // Use of this source code is governed by a free license that can be // found in the LICENSE file. // Package aggregator creates data points based on statse messages. package aggregator import ( "fmt" "log" "sort" "strings" "time" "opentsp.o...
tadhglewis/manager
packages/manager/apps/dedicated/client/app/dedicated/server/servers/servers.controller.js
import get from 'lodash/get'; import reduce from 'lodash/reduce'; import set from 'lodash/set'; import snakeCase from 'lodash/snakeCase'; export default class ServersCtrl { /* @ngInject */ constructor( $q, $translate, ouiDatagridService, ) { this.$q = $q; this.$translate = $translate; thi...
zandegran/java-api-sdk
smartling-jobs-api/src/main/java/com/smartling/api/jobs/v3/pto/TranslationJobCustomFieldPTO.java
<gh_stars>1-10 package com.smartling.api.jobs.v3.pto; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor @Builder public class TranslationJobCustomFieldPTO { private String fieldUid; private String fieldNam...
jooyesle/jooyesle.github.io
poseMatch/js/monitor.js
<filename>poseMatch/js/monitor.js 'use strict'; class MonitoringData { constructor() {} toString() { return null; } } class SystemMonitoringData extends MonitoringData { constructor() { super(); this.cpuUsage = 0; this.memoryUsage = 0; } toString() { ret...
wongy91/cryptoexchange
lib/cryptoexchange/exchanges/therocktrading/market.rb
<gh_stars>0 module Cryptoexchange::Exchanges module Therocktrading class Market NAME = 'therocktrading' API_URL = 'https://www.therocktrading.com/api' end end end
DastanIqbal/DastanLib
dastanlib/src/main/java/com/dastanapps/dastanlib/views/captcha/TextCaptcha.java
<gh_stars>0 package com.dastanapps.dastanlib.views.captcha; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.Canvas; import android.graphics.LinearGradient; import android.graphics.Paint; import android.graphics.Shader; import java.io.CharArrayWriter; import jav...
kevinpetersavage/biodata
biodata-models/src/main/java/org/opencb/biodata/models/pedigree/Family.java
/* * <!-- * ~ Copyright 2015-2017 OpenCB * ~ * ~ 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 * ~ * ~ Unl...
zheng19851/pipeline-engine
pipeline-engine-api/src/main/java/com/runssnail/pipeline/api/BaseFactory.java
package com.runssnail.pipeline.api; import com.runssnail.pipeline.api.terminate.DefaultTerminateStrategyFactory; import com.runssnail.pipeline.api.terminate.TerminateStrategyFactory; /** * @author zhengwei * Created on 2020-09-12 */ public abstract class BaseFactory implements Lifecycle { /** * 中断策略工厂 ...
UjalaJha/DataStructures
S9_heap_sort.c
#include<stdio.h> void max_heapify(int a[], int i, int heapsize) { int tmp, largest; int l = (2 * i) + 1; int r = (2 * i) + 2; if ((l <= heapsize) && (a[l] > a[i])) largest = l; else largest = i; if ((r <= heapsize) && (a[r] > a[largest])) largest = r ; if (large...
suomenriistakeskus/oma-riista-web
src/main/java/fi/riista/feature/gamediary/GameSpeciesRepository.java
<reponame>suomenriistakeskus/oma-riista-web<gh_stars>10-100 package fi.riista.feature.gamediary; import fi.riista.feature.common.repository.BaseRepository; import java.util.List; import java.util.Optional; public interface GameSpeciesRepository extends BaseRepository<GameSpecies, Long> { Optional<GameSpecies> f...
bek0s/gbkf
src/gbkfit/utils/miscutils.py
import importlib.abc import importlib.util import os import pathlib def get_attr_from_file(file, attr): module_name = pathlib.Path(file).stem module_spec = importlib.util.spec_from_file_location(module_name, file) module = importlib.util.module_from_spec(module_spec) assert isinstance(module_spec.loa...
saurabhpro/Life-coding
src/data_structure/graph/bfs/MinimumHeightTree.java
package data_structure.graph.bfs; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import java.lang.reflect.Array; import java.util.*; public class MinimumHeightTree { MinimumHeightTree mht; List<Integer>[] g; @BeforeEach public voi...
fopnet/greedyAlgorithms
src/main/java/greedyAlgorithms/Java8/TesteJava8.java
<gh_stars>0 package greedyAlgorithms.Java8; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; class TesteJava8 { static List<String> places = new ArrayList<>(); // preparing our data public static List<String> getPlaces(){ places.add("Portugal, Lisboa"); places.add("...
giancastro/spatialpandas
spatialpandas/geometry/multipoint.py
import numpy as np from dask.dataframe.extensions import make_array_nonempty from pandas.core.dtypes.dtypes import register_extension_dtype from ..geometry._algorithms.intersection import multipoints_intersect_bounds from ..geometry.base import GeometryDtype from ..geometry.baselist import GeometryList, GeometryListAr...
S4NDER/room_quality_monitor
app/views/chart_by_device_types/_chart_by_device_type.json.jbuilder
<gh_stars>0 json.extract! chart_by_device_type, :id, :created_at, :updated_at json.url chart_by_device_type_url(chart_by_device_type, format: :json)
Phygon/aaf
examples2/axLib/AxStorageErrors.h
<reponame>Phygon/aaf<filename>examples2/axLib/AxStorageErrors.h #ifndef __AxStorageErrors_h__ #define __AxStorageErrors_h__ //=---------------------------------------------------------------------= // // $Id$ $Name$ // // The contents of this file are subject to the AAF SDK Public Source // License Agreement Version 2...
chusopr/cloudbreak
integration-test/src/main/java/com/sequenceiq/it/cloudbreak/newway/action/ProxyConfigCreateIfNotExistsAction.java
<reponame>chusopr/cloudbreak package com.sequenceiq.it.cloudbreak.newway.action; import static com.sequenceiq.it.cloudbreak.newway.log.Log.logJSON; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.sequenceiq.it.cloudbreak.newway.CloudbreakClient; import com.sequenceiq.it.cloudbreak.newway.ProxyCon...
CristiRO/Monalisa
src/lia/Monitor/ciena/osrp/tl1/TL1Util.java
/* * $Id: TL1Util.java 7419 2013-10-16 12:56:15Z ramiro $ * * Created on Oct 26, 2007 */ package lia.Monitor.ciena.osrp.tl1; import java.io.BufferedReader; import java.io.StringReader; import java.util.ArrayList; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; import lia.ut...
johndpope/echo
thirdparty/physx/PhysXSDK/Source/PvdRuntime/src/PxMetaDataPvdBinding.cpp
/* * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this so...
nettooe/aweip
aweip-base/src/com/aweip/entity/ComentArquivoIdeiaEntity.java
<reponame>nettooe/aweip package com.aweip.entity; import javax.persistence.Access; import javax.persistence.AccessType; import javax.persistence.Entity; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.Table; /** * The Class ComentArquivoIdeiaEntity. */...
lehaSVV2009/territories-frontend
src/PlayersControls/index.js
<reponame>lehaSVV2009/territories-frontend import React from "react"; import intl from "react-intl-universal"; import * as GameUtils from "territories-core"; import Button from "../libs/territories-ui/Button"; import { Container, Item } from "../libs/territories-ui/Grid"; import DicesWindow from "../DicesWindow"; impo...
Shashi-rk/azure-sdk-for-java
sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/IotAlertsClientImpl.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.security.implementation; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.az...
selva-ror/trado
spec/models/address_spec.rb
# == Schema Information # # Table name: addresses # # id :integer not null, primary key # first_name :string # last_name :string # company :string # address :string # city :string # county :string # postcode :string # country ...
phatblat/macOSPrivateFrameworks
PrivateFrameworks/PhotosGraph/PGGraphSocialGroupNode.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import <PhotosGraph/PGGraphNode.h> @class NSSet; @interface PGGraphSocialGroupNode : PGGraphNode { } + (id)sortedSocialGroupNodeForMomentNodes:(id)arg1; + (id)weightSortDescriptors; -...
rajat2502/design-system
packages/core/test/Step.js
<filename>packages/core/test/Step.js<gh_stars>1-10 import React from 'react' import Step from '../src/Step' const hasIcon = component => { const { container } = renderWithTheme(component) return container.querySelector('svg') } describe('Step', () => { test('renders without crashing', () => { const json = r...
willcassella/SinGE
Systems/BulletPhysics/private/DebugDrawer.h
<filename>Systems/BulletPhysics/private/DebugDrawer.h<gh_stars>1-10 // DebugDrawer.h #pragma once #include <Core/Math/Vec3.h> #include <Engine/Util/DebugDraw.h> #include <btBulletCollisionCommon.h> namespace sge { namespace bullet_physics { class DebugDrawer final : public btIDebugDraw { ...
0003088/libelektra-qt-gui-test
src/plugins/fstab/fstab.c
/*************************************************************************** fstab.c - Access the /etc/fstab file ------------------- begin : Mon Dec 26 2004 copyright : (C) 2004 by <NAME> email : <EMAIL> ******************...
WebicityBrowser/Webicity
src/main/java/everyos.browser.webicity.webribbon/everyos/browser/webicity/webribbon/ui/webui/rendering/box/ProxyBox.java
<reponame>WebicityBrowser/Webicity<filename>src/main/java/everyos.browser.webicity.webribbon/everyos/browser/webicity/webribbon/ui/webui/rendering/box/ProxyBox.java package everyos.browser.webicity.webribbon.ui.webui.rendering.box; import everyos.browser.webicity.webribbon.gui.WebPaintContext; import everyos.browser.w...
XSxiesi/qt
slidepuzzlewidget/sliderpuzzlewidget.h
#ifndef SLIDERPUZZLEWIDGET_H #define SLIDERPUZZLEWIDGET_H #include <QWidget> #include "ui_sliderpuzzlewidget.h" class SliderPuzzleWidget : public QWidget { Q_OBJECT public: SliderPuzzleWidget(QWidget *parent = 0); ~SliderPuzzleWidget(); private: void initForm(); private slots: void onUpdate...
PixelCatalyst/OurCraft
src/test/java/com/pixcat/voxel/SolidBlockTest.java
<gh_stars>1-10 package com.pixcat.voxel; import com.pixcat.core.FileManager; import com.pixcat.graphics.Texture; import com.pixcat.graphics.Window; import nl.jqno.equalsverifier.EqualsVerifier; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; import static org...
ppiecuch/godot
modules/gdextensions/sfxr/gdsfxr.cpp
/*************************************************************************/ /* gdsfxr.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
dharshanaw/carbon-device-mgt
components/device-mgt/org.wso2.carbon.device.mgt.v09.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/ConfigurationServiceImpl.java
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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.a...
aklish/elide-testing-framework
src/test/java/com/yahoo/elide/testing/framework/helpers/user/TestEntityFactory.java
/* * Copyright 2016 Yahoo Inc. * Licensed under the terms of the Apache License, Version 2. Please see LICENSE.txt in the project root for terms. */ package com.yahoo.elide.testing.framework.helpers.user; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com....
microsoftgraph/msgraph-beta-sdk-go
models/data_classification_service.go
package models import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) // DataClassificationService provides operations to manage the dataClassificationService singleton. type DataClassificationService struct { Entity // The c...
dmgerman/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeDecommissioningEvent.java
<filename>hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeDecommissioningEvent.java begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * Licensed to the Apache Software Fou...
muelli/scapi
src/java/edu/biu/scapi/interactiveMidProtocols/zeroKnowledge/ZKFromSigmaProver.java
/** * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * Copyright (c) 2012 - SCAPI (http://crypto.biu.ac.il/scapi) * This file is part of the SCAPI project. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Permission is hereby granted, free of charge, to any person ob...
ics-unisg/nassy
dcap/src/main/java/com/dcap/service/UserService.java
<reponame>ics-unisg/nassy package com.dcap.service; import com.dcap.domain.*; import com.dcap.repository.NotificationsInterface; import com.dcap.repository.StudyInterface; import com.dcap.repository.UsersInterface; import com.dcap.service.Exceptions.RepoExeption; import com.dcap.service.serviceInterfaces.SubjectServic...
meetzy/netty-websocket
src/main/java/com/xfmeet/websocket/db/domain/GroupUserInfoRepository.java
<gh_stars>1-10 package com.xfmeet.websocket.db.domain; import com.xfmeet.websocket.db.entity.GroupUserInfo; import com.xfmeet.websocket.db.support.BaseRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Optional; ...
jupiter-tools/spring-test-kafka
src/main/java/com/jupitertools/springtestkafka/KafkaTestContainers.java
<filename>src/main/java/com/jupitertools/springtestkafka/KafkaTestContainers.java package com.jupitertools.springtestkafka; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Container for repeatable ...
84KaliPleXon3/necrobrowser
core/zombie.go
package core import ( "fmt" "github.com/muraenateam/necrobrowser/zombie" "github.com/muraenateam/necrobrowser/zombie/dropbox" "github.com/muraenateam/necrobrowser/zombie/github" "github.com/muraenateam/necrobrowser/zombie/gsuite" "github.com/muraenateam/necrobrowser/zombie/owa" "github.com/muraenateam/necrobro...
Pecherskiy88/UpPeople
src/components/Users/Users.js
// Core import React, { Component } from "react"; import PropTypes from "prop-types"; import { Button, Col, Row, TabPane } from "reactstrap"; // Components import Tabs from "../shared/Tabs/Tabs"; import UsersTable from "./Table"; import UserCreateForm from "../User/CreateForm"; // HOC import withModal from "../hoc/with...
DirectXceriD/gridgain
modules/ml/src/test/java/org/apache/ignite/ml/tree/randomforest/data/impurity/MSEHistogramTest.java
/* * GridGain Community Edition Licensing * Copyright 2019 GridGain Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause * Restriction; you may not use this file except in compliance with the License. You may obtain a * c...
gublan24/umpleSPLFull
testbed/src-gen-umple/cruise/associations/specializations/Pp.java
/*PLEASE DO NOT EDIT THIS CODE*/ /*This code was generated using the UMPLE 1.31.1.5860.78bb27cc6 modeling language!*/ package cruise.associations.specializations; import java.util.*; // line 210 "../../../../src/TestHarnessAssociationSpecializations.ump" public class Pp { //------------------------ // MEMBER VAR...
protimient/Glyphs-Scripts
Anchors/alignBetweenNodes_Centre.py
# MenuTitle: Align Anchor Between Selected Nodes - Centre # -*- coding: utf-8 -*- __doc__ = """ Aligns the selected anchor centrally between the selected Nodes. """ Glyphs.clearLog() # Glyphs.showMacroWindow() current_selection = Glyphs.font.selectedLayers[0].selection try: anchor = [x for x in current_selection ...
srimadha/opencourseware-algo-6.006
algos/src/com/leetcode/hard/BurstBallons.java
<gh_stars>0 package com.leetcode.hard; /** * Created by Sri on 4/27/2019. * * https://leetcode.com/problems/burst-balloons/ * Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i you will...
zjukk/LeetCode-is-my-son
21-merge2List.cpp
#include <iostream> #include <string> #include <algorithm> #include <vector> #include <map> #include <limits> using namespace std; ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) { ListNode* ans = new ListNode(0); ListNode* res = ans; while (l1 != NULL && l2 != NULL) { if (l1...
kami-lang/madex-r8
src/test/java/com/android/tools/r8/ir/optimize/library/ObjectsToStringWithNullDefaultTest.java
// Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.android.tools.r8.ir.optimize.library; import static com.android.tools.r8.utils.codeinspector....
kubukoz/tapir
core/src/main/scala/sttp/tapir/generic/internal/Debug.scala
<reponame>kubukoz/tapir<gh_stars>0 package sttp.tapir.generic.internal object Debug { import scala.reflect.macros.blackbox private val macroDebugEnabled = System.getenv("TAPIR_LOG_GENERATED_CODE") == "true" def logGeneratedCode(c: blackbox.Context)(typeName: String, tree: c.universe.Tree): Unit = { import ...
ADFC-Hamburg/adfc-tempo30
js/tempo30/view/polizeireview_ermitteln_fehler_dialog.js
<gh_stars>1-10 define('tempo30/view/polizeireview_ermitteln_fehler_dialog', [ 'jquery', 'tempo30/model/version', 'bootstrap', 'bootstrap-dialog', 'gettext!tempo30', ], function ($, version, bootstrap, BootstrapDialog, gt) { 'use strict'; var url="https://www.hamburg.de/behoerdenfinder/hamb...
Ressmann/starthinker
examples/ga360_segmentology_example.py
########################################################################### # # Copyright 2021 Google LLC # # 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 # # https://www.apache.org/l...
louis-ver/CARMIN
carmin-server/server/resources/models/path.py
<reponame>louis-ver/CARMIN import os from pathlib import PurePath import mimetypes from server import app from flask_restful import request from marshmallow import Schema, fields, post_load, post_dump class Path(): """Path represents a filesystem resource (file or directory). Attributes: platform_pat...
slipstream/cimi-mf2c
jar-service/src/main/java/com/sixsq/slipstream/initialstartup/FileLoader.java
package com.sixsq.slipstream.initialstartup; import com.sixsq.slipstream.connector.ConnectorFactory; import com.sixsq.slipstream.exceptions.ConfigurationException; import com.sixsq.slipstream.persistence.Parameter; import com.sixsq.slipstream.persistence.ServiceConfiguration; import java.io.File; import java.io.IOExc...
yazad3/atlas
src/main/java/org/openstreetmap/atlas/geography/boundary/CountryBoundary.java
package org.openstreetmap.atlas.geography.boundary; import java.io.Serializable; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.stream.Collectors; import org.openstreetmap.atlas.geography.Located; import org.openstreetmap.atlas.geography.MultiPolygon; import org.openstreetmap....
i-want-a-plus/rn
RNIwap/src/reducers/professor.js
import * as types from '../actions/types'; import _ from 'lodash'; let initialState = { error: false, isPending: false, data: null }; export function professorSearch (state = initialState, action) { switch (action.type) { case `${types.PROFESSOR_SEARCH}_PENDING`: return Object.assign({}, state, { is...
PAChain/android
app/src/main/java/com/pachain/android/util/Toast.java
package com.pachain.android.util; import android.content.Context; import android.os.Handler; import android.os.Looper; public class Toast { private final Context context; private final Handler handler = new Handler(Looper.getMainLooper()); public Toast(final Context context) { this.context = cont...
anthonySchafrik/gift-giving-elephant
src/proxies/updateUser.js
import api from '../proxies/api'; export function updateUser(user) { return api.patch('/user', user); }
anon-submis1/nisq-analyzer
org.planqk.nisq.analyzer.core/src/main/java/org/planqk/nisq/analyzer/core/prioritization/promethee/PrometheeIIMethod.java
<reponame>anon-submis1/nisq-analyzer /******************************************************************************* * Copyright (c) 2021 University of Stuttgart * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * Licensed under the Apache License...
declarativitydotnet/p2
oni/stasis.c
#include "stasis.h" #include <stdlib.h> ONI_TUP_STAGE(stasis_init) { Tinit(); Tup_Push(ret,Val_Tup(tup,2)); // request return 0; } END_ONI_STAGE ONI_TUP_STAGE(stasis_deinit) { Tdeinit(); Tup_Push(ret,Val_Tup(tup,2)); // request return 0; } END_ONI_STAGE ONI_TUP_STAGE(stasis_begin) { int xid = Tbegin(); ...
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gcc.dg/pr47555.c
<reponame>best08618/asylo /* { dg-do compile } */ /* { dg-options "-O2" } */ #define FILL_BACK *ptrRGB++=0; *ptrRGB++=0; *ptrRGB++=0; void uncompact(unsigned char* ptrRGB, const unsigned int* ptrSrc, const unsigned char* ptrRGBcompact, int line, int nbPixLeft) { #define BIT_2_RGB32 ...
MoysheBenRabi/setp
java/src/mxp/message/MessageSerializationTest.java
/* * Copyright (c) 2009-2010 Tyrell Corporation. * * The contents of this file are subject to the Mozilla Public License * Version 1.1 (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.mozilla.org/MPL/ * * Software distribute...
nghiapt1112/microservices-libraries
email-utils/src/main/java/com/nghia/libraries/email/infrustructure/mail/Template.java
package com.nghia.libraries.email.infrustructure.mail; import org.springframework.stereotype.Component; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.TYPE) @Retention(Reten...
xwu99/oneCCL
src/common/event/impls/host_event.cpp
<reponame>xwu99/oneCCL<gh_stars>1-10 /* Copyright 2016-2020 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...
mrkienkptn/job-management-gui
src/pages/job_group/kanban/ColumnAdder.js
<reponame>mrkienkptn/job-management-gui import * as React from 'react'; import Button from '@mui/material/Button'; import AddIcon from '@mui/icons-material/Add'; import Popover from '@mui/material/Popover'; import TextField from '@mui/material/TextField'; import Card from '@mui/material/Card'; import CardActions from ...
Nohysiwe/FastAPIBlogBackend
PythonBlog/configs/constant/__init__.py
<reponame>Nohysiwe/FastAPIBlogBackend<gh_stars>1-10 from .articleConst import ArticleConst from .deleteConst import DeleteConst from .loginConst import LoginConst from .pathConst import PathConst from .statusConst import StatusConst from .userConst import UserConst __all__ = [ "ArticleConst", "DeleteConst", ...
haggi/OpenMaya
src/mayaToKray/src/kray/krayEnvironment.cpp
#include "kraysdk/symbol/bitmap.h" #include "../mtkr_common/mtkr_mayaObject.h" #include "../mtkr_common/mtkr_renderGlobals.h" #include "maya/MFnMesh.h" #include "maya/MItMeshPolygon.h" #include <maya/MPointArray.h> #include <maya/MFloatPointArray.h> #include <maya/MFloatArray.h> #include <maya/MFloatVectorArray.h> #in...
Vfuryx/fagin
app/responses/admin/admin_menus_list.go
package admin_responses import ( "fagin/app" "fagin/app/models/admin_menu" "fagin/pkg/response" ) type adminMenusList struct { ms []admin_menu.AdminMenu response.Collect } var _ response.Response = &adminMenusList{} func AdminMenusList(models ...admin_menu.AdminMenu) *adminMenusList { res := adminMenusList{ms...
golemiso/playframework
framework/src/play-test/src/main/scala/play/api/test/package.scala
/* * Copyright (C) 2009-2019 Lightbend Inc. <https://www.lightbend.com> */ package play.api /** * Contains test helpers. */ package object test { /** * Provided as an implicit by WithServer and WithBrowser. */ type Port = Int /** * A structural type indicating there is an application. */ type...
raviranjan1996/Java14
ProblemSolving/src/records/BreakingRecords.java
<reponame>raviranjan1996/Java14 package records; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.Scanner; import java.util.Set; public class BreakingRecords { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int n = s...
bukka/fpmi
fpmi/fpmi_php_trace.h
/* (c) 2007,2008 <NAME> */ #ifndef FPMI_PHP_TRACE_H #define FPMI_PHP_TRACE_H 1 struct fpmi_child_s; void fpmi_php_trace(struct fpmi_child_s *); #endif
misTrasteos/micro-integrator
components/business-adaptors/org.wso2.micro.integrator.business.messaging.hl7/src/main/java/org/wso2/micro.integrator/business/messaging/hl7/common/data/conf/HL7MessagePublisherConfig.java
/* * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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/li...
michaellperry/CorrespondenceAndroid
library/correspondence/src/com/updatecontrols/correspondence/strategy/SubscriptionStrategy.java
<reponame>michaellperry/CorrespondenceAndroid<filename>library/correspondence/src/com/updatecontrols/correspondence/strategy/SubscriptionStrategy.java package com.updatecontrols.correspondence.strategy; import com.updatecontrols.correspondence.CorrespondenceFact; public interface SubscriptionStrategy { Iterable<Cor...
ronpandolfi/Xi-cam
xicam/plugins/tomography/config.py
<gh_stars>10-100 __author__ = "<NAME>, <NAME>" __copyright__ = "Copyright 2016, CAMERA, LBL, ALS" __credits__ = ["<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>"] __license__ = "" __version__ = "1.2.1" __maintainer__ = "<NAME>" __email__ = "<EMAIL>" __status__ = "Beta" import os import numpy...
Mannan2812/azure-cli-extensions
src/confluent/azext_confluent/tests/latest/test_confluent_scenario.py
<gh_stars>1-10 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...