repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
augustoluiz/us-ms-java-gerenciador-usuarios
src/main/java/com/pibitaim/us/msjavagerenciadorusuarios/data/form/TelefonesUsuarioForm.java
package com.pibitaim.us.msjavagerenciadorusuarios.data.form; import lombok.Data; import lombok.Getter; import lombok.Setter; import javax.validation.constraints.NotNull; @Data public class TelefonesUsuarioForm { @NotNull private Long codigoCadastroTelefone; @NotNull private Long cpfCnpjUsuario; ...
Cristiyi/csxft
service/es_delete/es_delete_house_type_image.go
/** * @Description: * @File: es_delete_house_type_image * @Date: 2020/11/9 0009 17:52 */ package es_delete import "csxft/serializer" //删除户型图服务 type DeleteHouseTypeImageService struct { ProjectId int `form:"project_id" json:"project_id" binding:"required"` } //根据楼盘删除户型图服务 func (service *DeleteHouseTypeImageSe...
maciejg-git/vue-bootstrap-icons
dist-mdi/mdi/cog-transfer.js
import { h } from 'vue' export default { name: "CogTransfer", vendor: "Mdi", type: "", tags: ["cog","transfer"], render() { return h( "svg", {"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-name":"mdi-cog-transf...
vacaly/Alink
core/src/main/java/com/alibaba/alink/operator/batch/regression/DecisionTreeRegPredictBatchOp.java
package com.alibaba.alink.operator.batch.regression; import org.apache.flink.ml.api.misc.param.Params; import com.alibaba.alink.operator.common.tree.predictors.RandomForestModelMapper; import com.alibaba.alink.operator.batch.utils.ModelMapBatchOp; import com.alibaba.alink.params.regression.DecisionTreeRegPredictParam...
serghalak/otus_java_2020_03
L29-executors/src/main/java/ru/otus/executors/CompletableFutureDemo.java
package ru.otus.executors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; public class CompletableFutureDemo { private static final Logger logger = LoggerFactory.getLogge...
ModWU/DYHelper2
src/dyhelper/com/util/ImsiUtil.java
<reponame>ModWU/DYHelper2 package dyhelper.com.util; import android.content.Context; import android.telephony.TelephonyManager; import android.text.TextUtils; import java.lang.reflect.Field; import java.lang.reflect.Method; public class ImsiUtil { private Integer simId_1 = 0; private Integer simId_2 = 1; ...
ykyuen/dockerbeat
vendor/github.com/elastic/beats/filebeat/harvester/processor/timeout.go
<filename>vendor/github.com/elastic/beats/filebeat/harvester/processor/timeout.go package processor import ( "errors" "time" ) var ( errTimeout = errors.New("timeout") ) // timeoutProcessor will signal some configurable timeout error if no // new line can be returned in time. type timeoutProcessor struct { reade...
Libertus-Lab/Game-Pencil-Engine
src/pawgui/pawgui_theme_controller.cpp
<filename>src/pawgui/pawgui_theme_controller.cpp /* pawgui_theme_controller.cpp This file is part of: PawByte Ambitious Working GUI(PAWGUI) https://www.pawbyte.com/pawgui Copyright (c) 2014-2021 <NAME>, <NAME>. Copyright (c) 2014-2021 PawByte LLC. Copyright (c) 2014-2021 PawByte Ambitious Working GUI(PAWGUI) c...
gy2006/flow-platform-x
core/src/main/java/com/flowci/core/job/service/StepService.java
<reponame>gy2006/flow-platform-x<gh_stars>0 /* * Copyright 2018 flow.ci * * 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 r...
mojotti/near_buy
react-native/__tests__/reducers/AuthorizationReducer.test.js
import { authorizationReducer } from '../../src/redux/reducers/AuthorizationReducer'; const testUsername = 'testUsername'; const testToken = '<PASSWORD>Token'; const defaultState = { isLoggedIn: false, username: '', token: '', id: '' }; const loggedInState = { isLoggedIn: true, username: testUsername, to...
gamblor21/Adafruit_Learning_System_Guides
Chromakey_Light_Ring/code.py
# SPDX-FileCopyrightText: 2021 <NAME> @todbot and <NAME> for Adafruit Industries # SPDX-License-Identifier: MIT # QT Py encoder based on https://github.com/todbot/qtpy-knob # Retroreflective chromakey light ring # Mount a rotary encoder directly to an Adafruit QT Py, # add some neopixels...
amila1998/Research-Project-Management-Tool
client2/src/components/ForgotPassword/Forgot.js
<reponame>amila1998/Research-Project-Management-Tool const Forgot = () => { return ( <div className="resetpsaaword"> <form className="" novalidate> <div className=""> <label htmlFor="validationCustom03" className="form-label">Email</label> <input type="email" className="form-control" id="valida...
carter-gao/AutoTestFramework
common/api/baseTestCase.py
#!/usr/bin/env python # coding:utf-8 # @Author: Carter.Gao # @Email: <EMAIL> # @Date: 2019/9/23 20:36 # @IDE: PyCharm # @About: 接口测试用例基类 from time import time from unittest import TestCase from common.logger import Logger from common.dataFactory import FakeData from common.api.apiOperateExcel import Back...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/ScreenshotServices.framework/SSScreenCapturerPresentationOptions.h
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 12:26:14 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/ScreenshotServices.framework/ScreenshotServices * classdump-dyld is licensed under GP...
wanyufe/eks-anywhere
pkg/curatedpackages/mocks/installer.go
// Code generated by MockGen. DO NOT EDIT. // Source: pkg/curatedpackages/packagecontrollerclient.go // Package mocks is a generated GoMock package. package mocks import ( context "context" reflect "reflect" gomock "github.com/golang/mock/gomock" ) // MockChartInstaller is a mock of ChartInstaller interface. typ...
nicolasjinchereau/pizza-quest
source/game/RenderQueue.h
/*--------------------------------------------------------------------------------------------- * Copyright (c) <NAME>. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------------------------...
Will03/NVSM_pytorch
src/features/tokenize_bert.py
import pickle from pytorch_pretrained_bert import BertTokenizer from pathlib import Path from tqdm import tqdm from tokenize_documents import load_docs def tokenize_docs(documents, tokenizer): ''' Tokenises a list of documents. ''' tokenized_documents = [tokenizer.tokenize(doc) for doc in tqdm(docum...
campingrider/cforum_ex
assets/js/notifications/notification-updates.js
import { t } from "../modules/i18n"; import { alertInfo } from "../modules/alerts"; import { updateTitleInfos, setNewFavicon } from "../title_infos"; document.addEventListener("cf:userPrivate", event => { const channel = event.detail; channel.on("new_priv_message", data => { updateTitleInfos(); const ele...
shackra/godot
drivers/opus/celt/opus_custom_demo.c
<gh_stars>10-100 /* Copyright (c) 2007-2008 CSIRO Copyright (c) 2007-2009 Xiph.Org Foundation Written by <NAME> */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must re...
riccardo-forina/enmasse
iot/iot-device-registry-infinispan/src/main/java/io/enmasse/iot/registry/infinispan/cache/AdapterCredentialsCacheProvider.java
<gh_stars>0 /* * Copyright 2019, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.enmasse.iot.registry.infinispan.cache; import org.infinispan.client.hotrod.RemoteCache; import org.infinispan.configuration.cache.CacheMode; import or...
rmurray1717/graficas
src/client/components/Viewer/Extensions/Dynamic/Viewing.Extension.MetaProperties/MetaTreeView/MetaTreeDelegate.js
import ContextMenu from './MetaContextMenu' import MetaTreeNode from './MetaTreeNode' import { TreeDelegate } from 'TreeView' import sortBy from 'lodash/sortBy' export default class MetaTreeDelegate extends TreeDelegate { /// ////////////////////////////////////////////////////// // // /// ////////////////////...
ChainSQL/chainsqld
src/peersafe/protocol/STProposeSet.h
//------------------------------------------------------------------------------ /* This file is part of rippled: https://github.com/ripple/rippled Copyright (c) 2012, 2013 Ripple Labs Inc. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby ...
Arsenal821/incubator-pegasus
java-client/src/main/java/org/apache/pegasus/client/HashKeyData.java
<reponame>Arsenal821/incubator-pegasus<gh_stars>1000+ /* * 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 th...
tienph91/Aspose.Slides-for-Java
Examples/src/main/java/com/aspose/slides/examples/presentations/opening/GetFileFormat.java
package com.aspose.slides.examples.presentations.opening; import com.aspose.slides.IPresentationInfo; import com.aspose.slides.LoadFormat; import com.aspose.slides.PresentationFactory; import com.aspose.slides.examples.RunExamples; public class GetFileFormat { public static void main(String[] args) { ...
andre-becker/XLT
src/main/java/com/xceptance/xlt/report/util/XltChartTheme.java
<reponame>andre-becker/XLT package com.xceptance.xlt.report.util; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Font; import java.awt.GraphicsEnvironment; import java.awt.Paint; import java.awt.Stroke; import java.io.InputStream; import org.apache.commons.logging.Log; import org.apache.commons.l...
eyantra/Visual_Programming_for_Firebird_V
Codes/Java Code/codeblocks/src/workspace/WorkspaceEvent.java
package workspace; import codeblocks.Block; import codeblocks.BlockLink; public class WorkspaceEvent { //workspace-wide events //affects layout and content of workspace and at least two or more blocks public final static int PAGE_ADDED = 1; public final static int PAGE_REMOVED = 2; public final s...
if-pan-zpp/mdk
mdk/src/utils/ContactType.cpp
<reponame>if-pan-zpp/mdk #include "utils/ContactType.hpp" #include <unordered_map> using namespace mdk; using namespace std; ContactType::operator ContactTypeIdx const&() const { return code; } ContactType::ContactType(const std::string &name) { static unordered_map<string, ContactTypeIdx> conversions = { ...
antomy-gc/art-java
application-json/src/main/java/ru/art/json/descriptor/JsonEntityWriter.java
/* * ART Java * * Copyright 2019 ART * * 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 agr...
galrosenthal/Football-Workshop
src/main/java/Domain/Users/AssociationRepresentative.java
package Domain.Users; import Domain.EntityManager; import Domain.Exceptions.ExistsAlreadyException; import Domain.Exceptions.RoleExistsAlreadyException; import Domain.Financials.AssociationFinancialRecordLog; import Domain.Game.PointsPolicy; import Domain.Game.SchedulingPolicy; import Domain.Game.League; import Domain...
ozywuli/ember-truth-helpers
app/helpers/or.js
<gh_stars>100-1000 export { default, or } from 'ember-truth-helpers/helpers/or';
andrewisen/IFC.js-web-worker-example
examples/04/assets/js/indexed-db/indexed-db.js
/** * Assume IndexedDB is supported */ function IndexedDB() { const name = 'ifc-js'; const version = 1; const transactionName = 'three-scene'; var database; return { init: function (cb) { var request = indexedDB.open(name, version); request.onupgradeneeded = function (event) { var db...
mooshak-dcc/mooshak-2
home/data/configs/checks/team/resources/comp_err.java
class teste { public static void main(String args[]) { System.out.println("ola mundo\n") } }
simonjj22/libsafecrypto
src/utils/crypto/mersenne_twister/mt19937ar.h
#pragma once /* Period parameters */ #define N 624 #define M 397 typedef struct mt_state_t { unsigned long mt[N]; /* the array for the state vector */ int mti; /* mti==N+1 means mt[N] is not initialized */ } mt_state_t; extern void init_genrand(mt_state_t *ctx, unsigned long s); extern void init_by_array...
socialsoftware/edition
microfrontend/src/microfrontends/about/pages/Articles_es.js
import React from 'react' const Articles_es = () => { return( <div> <h4> <ul> <li><a href="#Q01Q">A. Art&iacute;culos sobre el <em>Archivo LdoD</em></a></li> <li><a href="#Q02Q">B. Tesis sobre el <em>Archivo LdoD</em></a></li> <li><a href="#Q03Q">C. Otros art&iacute;culos producidos por el equipo ...
kkcookies99/UAST
Dataset/Leetcode/test/9/475.py
class Solution: def XXX(self, intx): if intx < 0: return False else: return True if str(intx) == str(intx)[::-1] else False
mmienko/aws-cdk-scala
modules/appstream/src/main/scala/io/burkard/cdk/services/appstream/CfnImageBuilder.scala
<filename>modules/appstream/src/main/scala/io/burkard/cdk/services/appstream/CfnImageBuilder.scala package io.burkard.cdk.services.appstream import scala.collection.JavaConverters._ @scala.annotation.nowarn("cat=deprecation") @SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Nul...
blodstone/CCS590v2
collinsHead/fig/record/CommandProcessor.java
<reponame>blodstone/CCS590v2 package fig.record; import java.util.*; import fig.basic.*; import java.rmi.*; import java.rmi.server.*; /** * Responsible for sending some commands to the server. */ public class CommandProcessor { private RecordServerInterface server; private Receiver receiver; private boolean i...
radiovideo/content-validator-api
src/main/java/org/sitenv/contentvalidator/model/CCDAProcActProc.java
package org.sitenv.contentvalidator.model; import org.apache.log4j.Logger; import org.sitenv.contentvalidator.dto.ContentValidationResult; import org.sitenv.contentvalidator.dto.enums.ContentValidationResultLevel; import org.sitenv.contentvalidator.parsers.ParserUtilities; import java.util.ArrayList; import java.uti...
hsiangawang/whois
whois-nrtm/src/test/java/net/ripe/db/whois/nrtm/NrtmAclLimitHandlerTest.java
package net.ripe.db.whois.nrtm; import net.ripe.db.whois.query.QueryMessages; import net.ripe.db.whois.query.acl.AccessControlListManager; import org.jboss.netty.channel.Channel; import org.jboss.netty.channel.ChannelEvent; import org.jboss.netty.channel.ChannelFuture; import org.jboss.netty.channel.ChannelFutureListe...
rocious/omaha
third_party/lzma/v4_65/files/CPP/7zip/Archive/Common/InStreamWithCRC.h
<reponame>rocious/omaha<filename>third_party/lzma/v4_65/files/CPP/7zip/Archive/Common/InStreamWithCRC.h // InStreamWithCRC.h #ifndef __INSTREAMWITHCRC_H #define __INSTREAMWITHCRC_H #include "../../../Common/MyCom.h" #include "../../IStream.h" extern "C" { #include "../../../../C/7zCrc.h" } class CSequentialInStream...
voleking/ICPC
references/aoapc-book/BeginningAlgorithmContests/exercises/ch5/5.5.2/UVaOJ/457.cpp
#include<iostream> #include<cstring> using namespace std; int main() { int n; int dna[10]; int cell[42]; int tom[42]; cin >> n; for(int i=1;i<=n;i++) { memset(dna,0,sizeof(dna)); memset(cell,0,sizeof(cell)); memset(tom,0,sizeof(tom)); cell[20]=1; tom[20]=1; for(int j=0;j<10;j++) cin >> dna[j]; for(...
techthiyanes/malaya-speech
malaya_speech/model/classification.py
import numpy as np from malaya_speech.model.frame import Frame from malaya_speech.utils.padding import ( sequence_nd as padding_sequence_nd, sequence_1d, ) from malaya_speech.utils.activation import softmax from malaya_speech.model.abstract import Abstract class Speakernet(Abstract): def __init__( ...
EditApp/TaggingApp
out/shared/Component/Component.js
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; } Object.defineProperty(exports, "__esModule", { value: true }); var react_1 = __importDefault(require("react")); var styled_components_1 = __importDefault(require("style...
PNBenfica/Tipsters
src/js/components/sports/tipsOnThisEvent/ChatHeader.js
import React from "react"; export default class ChatHeader extends React.Component { render() { return ( <div class="panel-heading"> <h3 class="panel-title"><i class="fa fa-comments fa-fw"></i> Tips on this event</h3> </div> ); } }
CDFN/SpongeAPI
src/main/java/org/spongepowered/api/scheduler/ScheduledUpdateList.java
<filename>src/main/java/org/spongepowered/api/scheduler/ScheduledUpdateList.java /* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person o...
duchoang/aws-scala
core/src/test/scala/io/atlassian/aws/spec/ScalazProperties.scala
package io.atlassian.aws.spec import org.scalacheck.Prop.forAll import org.scalacheck.{ Arbitrary, Cogen, Properties } import scalaz._ /** * Scalacheck properties that should hold for instances of type classes defined in Scalaz Core. * Taken from scalaz-scalacheck-binding which currently is behind on scalacheck ve...
WhiteWolf21/fp-growth
mlxtend/mlxtend/data/tests/test_multiplexer.py
# <NAME> 2014-2020 # mlxtend Machine Learning Library Extensions # # Author: <NAME> <<EMAIL>> # # License: BSD 3 clause import numpy as np import sys from mlxtend.data import make_multiplexer_dataset from mlxtend.utils import assert_raises def test_defaults(): X, y = make_multiplexer_dataset() assert X.sh...
ZhuangweiKang/tods
tods/sk_interface/detection_algorithm/LSTMODetector_skinterface.py
<reponame>ZhuangweiKang/tods import numpy as np from ..base import BaseSKI from tods.detection_algorithm.LSTMODetect import LSTMODetectorPrimitive class LSTMODetectorSKI(BaseSKI): def __init__(self, **hyperparams): super().__init__(primitive=LSTMODetectorPrimitive, **hyperparams) self.fit_available = True self...
aws/cluster-api-provider-cloudstack
pkg/cloud/user_credentials.go
<gh_stars>1-10 /* Copyright 2022 The Kubernetes 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 ...
nanolith/rcpr
src/fiber/common/fiber_scheduler_resource_handle.c
/** * \file fiber/common/fiber_scheduler_resource_handle.c * * \brief Get the resource handle for a fiber_scheduler. * * \copyright 2021 <NAME>. Please see license.txt in this * distribution for the license terms under which this software is distributed. */ #include <rcpr/model_assert.h> #include "fiber_inter...
yungtiec/bkp
client/scenes/profile/components/ProfileHeader.js
import React, { Component } from "react"; import { Link, withRouter } from "react-router-dom"; import Avatar from "react-avatar"; import { PublicProfileNavbar, UserSettingsNavbar } from "./index"; export default ({ name, profileContext, isMyProfile, avatarUrl, getParams }) => { return ( <div className=...
Archiit19/The-JavaScript-Workshop
Lesson05/exercise-01/index.js
<reponame>Archiit19/The-JavaScript-Workshop<gh_stars>0 const i = 10; console.log(i); // -> 10 const f = function() { var i = 20; console.log(i); }; f(); // -> 20 console.log(i); // -> 10 if (true) { let i = 15; console.log(i); } // -> 15 console.log(i); // -> 10 i = 10; if (true) { ...
RomuloPy/Winc_Academy
JS/Opdrachten/opdracht_026/script.js
function squareAdd(num1, num2) { square = (num1 * num1) + (num2 * num2); square1 = (square * square); return square1; }; console.log(squareAdd(2, 3)); const squareAdd1 = function(num3, num4) { square2 = (num3 * num3) + (num4 * num4); square3 = (square2 * square2); return square3; }; console....
penehyba/thorntail-test-suite
microprofile/microprofile-openapi-1.0/src/main/java/org/wildfly/swarm/ts/microprofile/openapi/v10/MyResponse.java
<reponame>penehyba/thorntail-test-suite<gh_stars>1-10 package org.wildfly.swarm.ts.microprofile.openapi.v10; import java.io.Serializable; public class MyResponse implements Serializable { private String attribute1; private String attribute2; public MyResponse(String attribute1, String attribute2) { ...
leeeastwood/Haiway
framework/tests/test_array_reverse.js
<gh_stars>100-1000 a = [1,2,3].reverse(); b = [1,2,3,4].reverse(); c = []; c[3] = 42; c.reverse(); d = []; d[7] = "a"; d[3] = "b"; d.reverse(); av = a.length+":"+a.toString(); bv = b.length+":"+b.toString(); cv = c.length+":"+c.toString(); dv = d.length+":"+d.toString(); result = av=="3:3,2,1" && bv=="4:4,3,2,1" &&...
hvpaiva/java-padroes-projeto
prototype/src/main/java/com/hvpaiva/prototype/App.java
<filename>prototype/src/main/java/com/hvpaiva/prototype/App.java<gh_stars>0 package com.hvpaiva.prototype; import lombok.extern.java.Log; /** * Neste exemplo, temos uma classe Factory {@link Pedido} produzindo ofjetos por * meio de clones de outros existentes. Os objetos protótipos da fábrica são dados * como parâ...
SvenWollinger/SnipSniper
src/main/java/net/snipsniper/utils/FileUtils.java
<reponame>SvenWollinger/SnipSniper package net.snipsniper.utils; import net.snipsniper.LogManager; import net.snipsniper.utils.enums.LogLevel; import org.capturecoop.ccutils.utils.StringUtils; import java.awt.*; import java.io.*; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.fi...
rackerlabs/teeth-overlord
teeth_overlord/jobs/base.py
<filename>teeth_overlord/jobs/base.py """ Copyright 2013 Rackspace, 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...
netomi/uom
src/main/java/com/github/netomi/uom/unit/Prefixes.java
<filename>src/main/java/com/github/netomi/uom/unit/Prefixes.java /* * Copyright (c) 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/L...
6543-forks/jx
pkg/cmd/get/get_stream.go
package get import ( "strings" "github.com/jenkins-x/jx/v2/pkg/versionstream" "github.com/jenkins-x/jx/v2/pkg/cmd/helper" "github.com/jenkins-x/jx/v2/pkg/log" "github.com/jenkins-x/jx/v2/pkg/util" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/jenkins-x/jx/v2/pkg/cmd/opts" "github.com/jenki...
ContractI9/Conqueror
src/buildings/Stable.java
package buildings; import exceptions.BuildingInCoolDownException; import exceptions.MaxLevelException; import exceptions.MaxRecruitedException; import units.Cavalry; import units.Unit; public class Stable extends MilitaryBuilding { public Stable() { super(2500, 1500, 600); } @Override public ...
TizzyTTT/Item_Cabs
src/main/java/com/gm/wj/New_All/utils/MaxUse.java
package com.gm.wj.New_All.utils; public class MaxUse { String key; double value; public String getKey() { return key; } public void setKey(String key) { this.key = key; } public double getValue() { return value; } public void setValue(double value) { ...
WinsonZhou/winson-for-spring
winson-spring-bean-validator/src/main/java/com/winson/spring/bean/validator/SpringValidationDemo.java
package com.winson.spring.bean.validator; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.stereotype.Component; import org.springframework.validation.annotation.Validated; import javax.validation.V...
AdrianaDinca/training
ejb/src/main/java/victor/training/ejb/container/security/CustomSecurityAspect.java
package victor.training.ejb.container.security; import java.lang.reflect.Method; import javax.interceptor.AroundInvoke; import javax.interceptor.InvocationContext; public class CustomSecurityAspect { @AroundInvoke public Object customSecurityConcern(InvocationContext context) throws Exception { Method method =...
jiangxin/git-repo-go
cmd/test-sshinfo.go
// Copyright © 2019 Alibaba Co. Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
nistefan/cmssw
RecoVertex/BeamSpotProducer/test/classes.h
#include "RecoVertex/BeamSpotProducer/test/NtupleHelper.h" namespace RecoVertex_BeamSpotProducer_test { struct dictionary { }; }
arccode/factory
py/utils/log_utils.py
<reponame>arccode/factory # Copyright 2014 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Utilities for logging.""" import logging import os import sys import time from . import file_utils DEFAULT_LOG_FORMAT = '...
halcyoona/youtube-api
node_modules/must/lib/es6.js
<reponame>halcyoona/youtube-api<gh_stars>0 exports.setPrototypeOf = Object.setPrototypeOf || function(obj, prototype) { /* eslint no-proto: 0 */ obj.__proto__ = prototype return obj } exports.startsWith = String.prototype.startsWith ? Function.call.bind(String.prototype.startsWith) : function(haystack, needl...
KravchenkoAS/agrest
agrest-base/src/test/java/io/agrest/it/fixture/T2.java
<filename>agrest-base/src/test/java/io/agrest/it/fixture/T2.java package io.agrest.it.fixture; import java.util.Collection; import java.util.List; import java.util.Set; public class T2 { public static final String P_BOOLEANS = "booleans"; public static final String P_INTEGERS = "integers"; public static f...
songbinwei1/zstack
utils/src/main/java/org/zstack/utils/SHAUtils.java
package org.zstack.utils; import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * Created by lining on 2019/9/4. */ public class SHAUtils { public static String encrypt(String input, String algorithm) { ...
MikeThomsen/nifi-date-parser-bundle
chrono-java/src/test/java/com/wanasit/chrono/parser/jp/JPDateAgoFormatParserTest.java
package com.wanasit.chrono.parser.jp; import static org.junit.Assert.*; import org.junit.Test; import com.wanasit.chrono.Chrono; import com.wanasit.chrono.ParserTestAbstract; public class JPDateAgoFormatParserTest extends ParserTestAbstract { @Test public void testWithSingleDateExpression() { refDate = c...
dolsem/tilt
internal/k8s/ip.go
package k8s import ( "context" "fmt" "os/exec" "strings" "github.com/pkg/errors" ) // Some K8s environments expose a single IP for the whole cluster. type NodeIP string func DetectNodeIP(ctx context.Context, env Env) (NodeIP, error) { if env != EnvMinikube { return "", nil } // TODO(nick): Should this be...
UPBIoT/renode-iot
src/Infrastructure/src/Emulator/Cores/tlib/tcg/additional.c
/* * Copyright (c) 2010-2015 Antmicro Ltd <www.antmicro.com> * Copyright (c) 2011-2015 Realtime Embedded AB <www.rte.se> * * 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 restri...
wromansky/incubator-heron
heron/instance/tests/java/org/apache/heron/network/AbstractNetworkTest.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
DanGodfreyjr/FoxitWacomNotes
samples/docs/API_Reference/html/search/enums_8.js
var searchData= [ ['markup_5fannotation_5fstate',['MARKUP_ANNOTATION_STATE',['../group___annot_consts_p_d_f.html#gac511125eeb5ba47ccc2c14528af098fe',1,'MARKUP_ANNOTATION_STATE.js']]], ['mouseeventobjecttype',['MouseEventObjectType',['../group___viewer_constants.html#ga7f03b6b4873ad9b13aef3434e345de31',1,'mouseEvent...
Saber-Team/SOI
lib/plugin/uglifier.js
/** * The MIT License (MIT) * Copyright (c) 2016 Saber-Team * * @file uglifier插件, js压缩, 监听task的`compiled-resource`事件 * @author AceMood */ 'use strict'; const UglifyJS = require('uglify-js'); // default uglify config let defaultOptions = require('./uglifier.json'); class Uglifier { constructor(options) { ...
wittyGIrl/form
src/components/form/options/mixins/dataHidden.js
<reponame>wittyGIrl/form<gh_stars>0 import config from '../../../../config'; const data = { hidden: '', }; const dataOptions = { }; export {data, dataOptions};
abrander/imagemeta
bmff/bmff.go
<filename>bmff/bmff.go<gh_stars>10-100 /* Copyright 2021 <NAME> Copyright 2018 The go4 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 Un...
tkgwJeff/Clairvoyance
front-end/app/components/LoadingBlock/index.js
<reponame>tkgwJeff/Clairvoyance import CSSModules from 'react-css-modules' import styles from './styles.css' import Loading from 'components/Loading' class LoadingBlock extends React.Component { render() { const {user} = this.props if (user.status === 'loading') { return ( ...
mutilin/cpachecker-ldv
src/org/sosy_lab/cpachecker/cpa/value/symbolic/ConstraintsStrengthenOperator.java
<filename>src/org/sosy_lab/cpachecker/cpa/value/symbolic/ConstraintsStrengthenOperator.java<gh_stars>1-10 /* * CPAchecker is a tool for configurable software verification. * This file is part of CPAchecker. * * Copyright (C) 2007-2015 <NAME> * All rights reserved. * * Licensed under the Apache License, Vers...
amichard/tfrs
frontend/src/admin/compliance_reporting/DefaultCarbonIntensityDetailContainer.js
/* * Container component * All data handling & manipulation should be handled here. */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Tab, Tabs } from 'react-bootstrap'; import { defaultCarbonIntensities } from '../../actions/defaultCar...
PhamKien100398/react_client
client/src/service/user/question/questionAction.js
import * as QT from './questionType' import axios from 'axios' export const getExamQuestion = (id)=>{ return async dispatch =>{ const token = localStorage.getItem("jwtToken") const AuthStr = 'Bearer ' + token; dispatch(request_exam_question()); await axios.get("http://localhost:808...
learningtcc/dubbox
dubbo-solr/dubbo-solr-api/src/main/java/com/frank/search/transmitData/Request.java
package com.frank.search.transmitData; import java.io.Serializable; /** * * Created with IntelliJ IDEA. * User: frank * Date: 15-6-18 * Time: 下午7:14 * To change this template use File | Settings | File Templates. */ public interface Request<T> extends Cloneable, Serializable { /** * 获取 traceId * @return...
jiri-filipovic/KTT
source/compute_engine/opencl/opencl_buffer.h
#pragma once #include <algorithm> #include <cstring> #include <memory> #include <stdexcept> #include <string> #include <vector> #include "CL/cl.h" #include "opencl_event.h" #include "opencl_utility.h" #include "kernel_argument/kernel_argument.h" #include "enum/argument_access_type.h" #include "enum/argument_data_type....
IIiys/zadig
pkg/microservice/reaper/core/service/reaper/jmeter.go
<gh_stars>0 /* Copyright 2021 The KodeRover 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 to i...
yassinedoghri/marvel-jarvig
src/components/FlexSection.js
<reponame>yassinedoghri/marvel-jarvig import styled from "styled-components"; import media from "utils/media"; const FlexSection = styled.section` display: flex; flex-direction: column; padding: 0 ${props => props.theme.spaces.lg}em; max-width: 90em; ${media.desktop` padding: 0 ${props => props.theme.sp...
Fresher001/Competitive-Programming-2
Infoarena/Concurs.cpp
<gh_stars>10-100 #include <bits/stdc++.h> using namespace std; const int Nmax = 32e3 + 1; const int Mmax = 5e5 + 1; vector <int> G[Nmax]; int father[Nmax], size[Nmax], depth[Nmax], vis[Nmax], value[Nmax]; int start_node[Nmax], pos_in_path[Nmax], length_path[Nmax], path[Nmax]; int N, M, NumberPaths; void DFS( int n...
jforge/vaadin
uitest/src/main/java/com/vaadin/tests/layouts/gridlayout/GridLayoutWidthChange.java
package com.vaadin.tests.layouts.gridlayout; import com.vaadin.server.VaadinRequest; import com.vaadin.tests.components.AbstractReindeerTestUI; import com.vaadin.ui.Button; import com.vaadin.ui.CustomComponent; import com.vaadin.ui.GridLayout; import com.vaadin.ui.NativeButton; import com.vaadin.ui.VerticalLayout; imp...
Masmayer/nominal
client/src/main/java/common/agreement/Agreement.java
/* Nominal Application Agreement */ package common.agreement; import common.NominalMaster; import common.NominalObject; import java.sql.Timestamp; import java.util.ArrayList; public class Agreement extends NominalObject { // IDENTIFIER protected int id; protected Timestamp lastUpdated; protecte...
Wadjetz/innovalys-social-network
client/user/UsersApi.js
<filename>client/user/UsersApi.js import Qajax from 'qajax'; import { BASE_URL } from '../conf'; /** * Users Service who use server API for users */ class UsersApi { /** * Constructor * @param {string} url Api Base Url */ constructor(url) { this.url = url; } /** * Get all users * @retur...
ishine/neural_sp
neural_sp/models/modules/mocha/mocha_test.py
<gh_stars>100-1000 # Copyright 2021 Kyoto University (<NAME>) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Chunkwise attention in MoChA at test time.""" import logging import numpy as np import torch logger = logging.getLogger(__name__) def hard_chunkwise_attention(alpha, u, mask, chunk_size, H_c...
reels-research/iOS-Private-Frameworks
ITMLKit.framework/IKCSSDeclarationList.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/ITMLKit.framework/ITMLKit */ @interface IKCSSDeclarationList : NSObject <NSCopying> { IKMutableArray * _declarations; struct _NSRange { unsigned long long location; unsigned long long length; } _range; } @prope...
phunt/flume
src/java/com/cloudera/flume/master/MemoryBackedConfigStore.java
<reponame>phunt/flume /** * Licensed to Cloudera, Inc. under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Cloudera, Inc. licenses this file * to you under the Apache License, Version 2.0 (the * "License...
thinkful-ei-narwhal/penny-thoughts-client
src/components/ErrorPage/ErrorPage.js
<filename>src/components/ErrorPage/ErrorPage.js<gh_stars>1-10 import React, { Component } from 'react'; import {Link} from 'react-router-dom'; export default class ErrorPage extends Component { state = {error: null}; static getDerivedStateFormError(error) { return (error) } render() { if (this.state.e...
wangsenyuan/learn-go
src/codechef/easy/section10/section10/beausub/solution_test.go
package main import "testing" func runSample(t *testing.T, n int, k int, A []int, expect int) { res := solve(n, k, A) if res != expect { t.Errorf("Sample expect %d, but got %d", expect, res) } } func TestSample1(t *testing.T) { n, k := 4, 1 A := []int{1, 1, 2, 3} expect := 3 runSample(t, n, k, A, expect) }...
zhoujiagen/giant-data-analysis
data-management-infrastructure/infrastructure-apache-zookeeper/src/main/java/com/spike/giantdataanalysis/zookeeper/support/ZooKeepers.java
package com.spike.giantdataanalysis.zookeeper.support; import java.io.File; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.apache.zookeeper.CreateMode; import org.apache.zooke...
Andreas237/AndroidPolicyAutomation
ExtractedJars/Ibotta_com.ibotta.android/javafiles/com/google/android/gms/auth/account/WorkAccount.java
<reponame>Andreas237/AndroidPolicyAutomation // Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.android.gms.auth.account; import android.app.Activity; import android.content.Context; import com.go...
cwi-dis/igor
igor/std-plugins/philips/scripts/philips.py
<gh_stars>1-10 #!/usr/bin/env python3 import socket import struct import select import json import urllib.request, urllib.parse, urllib.error import sys DEBUG=False ORDER = [ ('192', '168', '1'), ('10', '0', '1'), ('10', '0', '2') ] JOINTSPACE_PORT=1925 VOODOO_PORT=2323 VOODOO_VERSION=0x03010401 VPMT...
cffbots/ESMValTool
esmvaltool/diag_scripts/radiation_budget/seasonal_radiation_budget.py
"""Write the global climatological seasonal radiation budget to a text file.""" import csv import logging import os import iris from esmvaltool.diag_scripts.shared import group_metadata, run_diagnostic SEASONS = {0: "djf", 1: "mam", 2: "jja", 3: "son"} def organise_seasonal_data(model_data): """Return the sea...
CavalryXD/APN6_Repo
net-next/drivers/net/dsa/sja1105/sja1105_spi.c
// SPDX-License-Identifier: BSD-3-Clause /* Copyright (c) 2016-2018, NXP Semiconductors * Copyright (c) 2018, Sensor-Technik Wiedemann GmbH * Copyright (c) 2018-2019, <NAME> <<EMAIL>> */ #include <linux/spi/spi.h> #include <linux/packing.h> #include "sja1105.h" #define SJA1105_SIZE_RESET_CMD 4 #define SJA1105_SIZE...