repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
dBucik/OpenID-Connect-Java-Spring-Server
perun-oidc-server/src/main/java/cz/muni/ics/oidc/server/claims/PerunCustomClaimDefinition.java
package cz.muni.ics.oidc.server.claims; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; /** * Keeps definition of a custom user claim. * * Configuration declaring custom claims: * <ul> * <li><b>custom.claims</b> - coma separated list of...
mikelandy/HIPS
lib/sources/read_image.c
/* * Copyright (c) 1991 <NAME> * * Disclaimer: No guarantees of performance accompany this software, * nor is any responsibility assumed on the part of the authors. All the * software has been tested extensively and every effort has been made to * insure its reliability. */ /* * read_image.c - read an image ...
Kyle9021/trireme-lib
controller/internal/enforcer/applicationproxy/markedconn/mark_windows.go
// +build windows package markedconn import ( "net" "syscall" "go.aporeto.io/enforcerd/trireme-lib/utils/frontman" "go.uber.org/zap" ) func makeListenerConfig(mark int) net.ListenConfig { return net.ListenConfig{} } // ControlFunc used in the dialer. func ControlFunc(mark int, block bool, platformData *Platfo...
marko-hudomal/MJComipler
Final/MJCompiler/src/rs/ac/bg/etf/pp1/ast/MethodDeclarations.java
// generated with ast extension for cup // version 0.8 // 6/1/2019 3:51:16 package rs.ac.bg.etf.pp1.ast; public class MethodDeclarations extends MethodDeclList { private MethodDeclList MethodDeclList; private MethodDecl MethodDecl; public MethodDeclarations (MethodDeclList MethodDeclList, MethodDecl Me...
picacure/adc-tmd
server/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/expected/issue16.js
var a = 3250441966
anruky/Zeta
zds-server/src/main/java/com/ebay/dss/zds/rest/FooController.java
<gh_stars>10-100 package com.ebay.dss.zds.rest; import com.ebay.dss.zds.exception.ErrorCode; import com.ebay.dss.zds.exception.IllegalStatusException; import com.ebay.dss.zds.exception.InvalidInputException; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; ...
anddorua/biblio
js/views/bookAdd.js
/** * Created by Такси on 16.07.15. */ window.biblio = window.biblio || {}; window.biblio.views = window.biblio.views || {}; window.biblio.views.bookAdd = (function(){ var controller; var vmBook = {}; var bookHoldersTableSection; var submitHandler = function(){ controller.onSubmitBtnPressed()...
FogInTheFrog/intellij-scala
scala/scala-impl/test/org/jetbrains/plugins/scala/testingSupport/utest/scala2_12/utest_0_7_4/UTestSimpleTest_2_12_0_7_4.scala
<gh_stars>100-1000 package org.jetbrains.plugins.scala.testingSupport.utest.scala2_12.utest_0_7_4 import org.jetbrains.plugins.scala.testingSupport.utest.UTestNewSyntaxSimpleTest class UTestSimpleTest_2_12_0_7_4 extends UTestTestBase_2_12_0_7_4 with UTestNewSyntaxSimpleTest
biantiange/Treasure
Treasure/Java/src/Comment/controller/CommentAddServlet.java
<gh_stars>1-10 package Comment.controller; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.sql.Timestamp; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequ...
alliance-genome/agr_archive_initial_prototype
webapp/src/components/dataTable/index.js
<reponame>alliance-genome/agr_archive_initial_prototype<gh_stars>1-10 import LocalDataTable from './localDataTable'; import RemoteDataTable from './remoteDataTable'; export { LocalDataTable, RemoteDataTable };
icml2020submission6857/metarl
src/metarl/tf/policies/__init__.py
<gh_stars>1-10 """Policies for TensorFlow-based algorithms.""" from metarl.tf.policies.base import Policy from metarl.tf.policies.base import StochasticPolicy from metarl.tf.policies.categorical_cnn_policy import CategoricalCNNPolicy from metarl.tf.policies.categorical_gru_policy import CategoricalGRUPolicy from metarl...
dongkap/satpol-api-activity
satpol-activity/src/main/java/com/dongkap/activity/dao/ParameterI18nRepo.java
<gh_stars>0 package com.dongkap.activity.dao; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import com.dongkap.activity.entity.ParameterI18nEntity; public interface ParameterI18nRepo extends JpaRepository...
yakuizhao/intel-vaapi-driver
android/android_9/hardware/intel/img/hwcomposer/merrifield/common/base/Drm.h
/* // Copyright (c) 2014 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 required by applicable law o...
zengLH1981/mockneat
src/main/java/net/andreinc/mockneat/unit/misc/Creatures.java
<gh_stars>100-1000 package net.andreinc.mockneat.unit.misc; import net.andreinc.mockneat.MockNeat; import net.andreinc.mockneat.abstraction.MockUnitBase; import net.andreinc.mockneat.abstraction.MockUnitString; import net.andreinc.mockneat.types.enums.DictType; import java.util.function.Supplier; public class Creatu...
SyedThaseemuddin/MPLAB-Harmony-Reference-Apps
apps/sam_e54_cult/same54_sdcard_usb_audio_player/firmware/src/config/same54_cult/gfx/legato/generated/image/le_gen_image_music_icon2.c
<gh_stars>1-10 #include "gfx/legato/generated/le_gen_assets.h" /********************************* * Legato Image Asset * Name: music_icon2 * Size: 20x24 pixels * Mode: ARGB_8888 * Format: Raw ***********************************/ const uint8_t music_icon2_data[1920] = { 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x...
xiehuanx/learn-cloud
learn-upms-model/src/main/java/com/icedevcloud/miniapp/dto/user/NormalAndVipUserReqDto.java
<reponame>xiehuanx/learn-cloud<filename>learn-upms-model/src/main/java/com/icedevcloud/miniapp/dto/user/NormalAndVipUserReqDto.java package com.icedevcloud.miniapp.dto.user; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lomb...
tockri/hello-next
infra/src/main/scala/infra/jdbc/ExtraworkApplicationRepositoryOnDB.scala
<reponame>tockri/hello-next package infra.jdbc import domain.ExtraworkApplicationRepository import domain.model.{ExtraworkApplication, ExtraworkApplicationId, UserId} import org.joda.time.DateTime import scalikejdbc._ /** * */ class ExtraworkApplicationRepositoryOnDB extends RepositoryOnDB[ExtraworkApplication, E...
nilsthamm/hyrise
src/test/operators/operator_join_predicate_test.cpp
<filename>src/test/operators/operator_join_predicate_test.cpp #include "gtest/gtest.h" #include "expression/expression_functional.hpp" #include "logical_query_plan/mock_node.hpp" #include "operators/operator_join_predicate.hpp" using namespace opossum::expression_functional; // NOLINT namespace opossum { class Ope...
navono/MethaneKit
Modules/Graphics/Core/Sources/Methane/Graphics/Vulkan/ShaderVK.cpp
<reponame>navono/MethaneKit /****************************************************************************** Copyright 2019-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://ww...
TREGS4/Tek
Projet/Tools/queue/queue.h
#ifndef QUEUE #define QUEUE #include <stdlib.h> #include <err.h> typedef struct queue { // Value of an element. void *ptr; // Pointer to the next element. struct queue *next; } queue; // Pushes a new value onto a queue. // start = Starting address of the queue. // val = Value to push. // Returns the...
RobertClay/Paper1
minos/modules/depression.py
<reponame>RobertClay/Paper1 """ Module for implementation of BHPS depression data to daedalus frame. """ import pandas as pd import numpy as np import subprocess import os from pathlib import Path from vivarium.framework.utilities import rate_to_probability #from minos.RateTables.DepressionRateTable import Depressio...
gitskarios/Gitskarios
app/src/main/java/com/alorma/github/presenter/notifications/NotificationsPresenter.java
package com.alorma.github.presenter.notifications; import com.alorma.github.bean.NotificationsParent; import com.alorma.github.presenter.BaseRxPresenter; import com.alorma.github.presenter.View; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import jav...
sourceperl/sandbox
plot/cv_valve_check/show_cv.py
import csv import matplotlib.pyplot as plt import math # some functions def celsius_to_kelvin(deg_c): return deg_c + 273.15 def is_subsonic(p_up_bara, p_down_bara): return p_down_bara > p_up_bara / 2 def valve_flow(cv, p_up_bara, p_down_bara, position=100.0, t_deg_c=8.0, sg=0.64): # compute flow in li...
MrWOLFF24/expensa
backend-nodejs/api/models/tasksModel.js
'use strict' const moment = require('moment') const mysql = require('./../util/mysql') // get all tasks per user const getTasks = (clbk, id) => { const q = `SELECT task_id, task_name, task_description, task_done, task_date FROM tasks WHERE fk_us...
mises-iscte/ES-LIGE-2Sem-2022-Grupo-31
jfreechart-master/src/main/java/org/jfree/chart/swing/Overlay.java
<gh_stars>1-10 /* =========================================================== * JFreeChart : a free chart library for the Java(tm) platform * =========================================================== * * (C) Copyright 2000-2022, by <NAME> and Contributors. * * Project Info: http://www.jfree.org/jfreechart/inde...
zippy1978/stark
lang/codeGen/CodeGenBitcode.cpp
<reponame>zippy1978/stark<gh_stars>0 #include <llvm/Bitcode/BitcodeWriter.h> #include <llvm/Support/SourceMgr.h> #include <llvm/IRReader/IRReader.h> #include <llvm/Support/FormatVariadic.h> #include <llvm/Support/TargetRegistry.h> #include <llvm/Support/TargetSelect.h> #include <llvm/Target/TargetMachine.h> #include <l...
Joseph295/Coorabie
src/main/java/model/sinker/HttpSinker.java
<gh_stars>0 package model.sinker; import config.HttpConfig; public class HttpSinker implements Sinker<String> { private HttpConfig httpConfig; public HttpSinker(String path) { httpConfig = new HttpConfig(path); } @Override public boolean sink(String content) { return true; } }
fabsgc/TweedeFramework
Source/Framework/Core/Manager/TeRenderAPIManager.h
<reponame>fabsgc/TweedeFramework #pragma once #include "TeCorePrerequisites.h" #include "Utility/TeModule.h" #include "RenderAPI/TeRenderAPI.h" #include "RenderAPI/TeRenderAPIFactory.h" namespace te { /** Manager that handles render system start up. */ class TE_CORE_EXPORT RenderAPIManager : public Module<Re...
sourav025/algorithms-practices
UVA/IsItTree2.cpp
<gh_stars>0 #include<iostream> #include<cstdio> #include<set> #include<utility> using namespace std; set< pair<int,int> > st; int cnt; set<int> nodes; int main() { int cas=1,u,v; while( scanf("%d%d",&u,&v)==2&&v>=0&&u>=0 ) { if(u==0&&v==0){ printf("Case %d is not a tr...
sm453/MOpS
src/sweepc/include/swp_aggmodel_type.h
<filename>src/sweepc/include/swp_aggmodel_type.h /* Author(s): <NAME> (msc37) Project: sweep (population balance solver) Sourceforge: http://sourceforge.net/projects/mopssuite Copyright (C) 2008 <NAME>. File purpose: The AggModelType enumeration gives ID number for all the different ...
Pratham82/Java-Programming
Practice_Problems/Edabit_Practice_problems/Question_46.java
<reponame>Pratham82/Java-Programming<gh_stars>1-10 package Practice_Problems.Edabit_Practice_problems; /* Write a function that accepts base (decimal), height (decimal) and shape ("triangle", "parallelogram") as input and calculates the area of that shape. */ public class Question_46 { public static void main(Str...
kimjuyounglisa/radeon_compute_profiler
Src/sanalyze/CLAPIAnalyzer.h
<reponame>kimjuyounglisa/radeon_compute_profiler //============================================================================== // Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved. /// \author AMD Developer Tools Team /// \file /// \brief This file defines the CLAPIAnalyzer and CLAPIAnalyzerManage...
ajayns/zulip-mobile
src/topics/__tests__/topicsSelectors-test.js
import deepFreeze from 'deep-freeze'; import { getTopicsInActiveNarrow, getLastMessageTopic } from '../topicSelectors'; import { homeNarrow, streamNarrow } from '../../utils/narrow'; describe('getTopicsInActiveNarrow', () => { test('when no topics return an empty list', () => { const state = deepFreeze({ ...
misery/AusweisApp2
test/qt/core/paos/test_PaosMessage.cpp
<reponame>misery/AusweisApp2 /*! * \brief Unit tests for \ref PaosMessage * * \copyright Copyright (c) 2015-2018 Governikus GmbH & Co. KG, Germany */ #include "paos/PaosMessage.h" #include <QtCore> #include <QtTest> using namespace governikus; class test_PaosMessage : public QObject { Q_OBJECT private Q_SLO...
alvaroreis/xti
src/br/com/xti/poo/Funcionario.java
package br.com.xti.poo; public class Funcionario { private String nome; private double salario; private boolean ativo; public String getNome() { return this.nome; } public void setNome(final String nome) { this.nome = nome; } public boolean isAtivo() { return this.ativo; } public void setAtivo(fin...
martianworm17/java-codingbat
src/com/codingbat/warmup2/arraycount9/ArrayCount9.java
package com.codingbat.warmup2.arraycount9; public class ArrayCount9 { public static void main(String[] args) { System.out.println(arrayCount9(new int[]{1, 2, 9})); System.out.println(arrayCount9(new int[]{1, 9, 9})); System.out.println(arrayCount9(new int[]{1, 9, 9, 3, 9})); } pri...
belfinor/Helium
db/ldb/ldb_test.go
<reponame>belfinor/Helium package ldb // @author <NAME> <<EMAIL>> // @version 1.003 // @date 2018-07-04 import ( "testing" ) func TestDB(t *testing.T) { Close() Close() TestInit() key := []byte("test.key") val := []byte{1, 2, 3} Del(key) res := Get(key) if res != nil { t.Fatal("expecting nil val...
breeze-easy/thinking-in-java
object.14/src/Documentation1.java
<gh_stars>10-100 //: object/Documentation1.java /** A class comment */ public class Documentation1 { /** A field comment */ public int i; /** A method comment * a list: * <ol> * <li> a * <li> b * <li> c * </ol> */ public void f() {} } ///:~
buland-usgs/neic-traveltime
src/main/java/gov/usgs/traveltime/GenIndex.java
package gov.usgs.traveltime; /** * This generalized index interface allows computed sample points to be used like they were actual * arrays for bilinear interpolation. * * @author <NAME> */ public interface GenIndex { /** * Get the virtual array index from a value. * * @param value Generic value * ...
xmdas-link/kitty
rpc/proto/kittyrpc/kittyrpc.pb.go
<reponame>xmdas-link/kitty // Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/kittyrpc/kittyrpc.proto package go_micro_srv_kittyrpc import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal...
AkshayIyer12/hackerrank
queens_attack_2.js
<reponame>AkshayIyer12/hackerrank process.stdin.resume(); process.stdin.setEncoding('ascii'); var input_stdin = ""; var input_stdin_array = ""; var input_currentline = 0; process.stdin.on('data', function (data) { input_stdin += data; }); process.stdin.on('end', function () { input_stdin_array = input_stdin....
rceet/TencentOS-tiny
platform/vendor_bsp/nordic/nRF5_SDK_15.3.0/components/iot/coap/coap_option.h
/** * Copyright (c) 2014 - 2019, Nordic Semiconductor ASA * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, th...
auag92/n2dm
Asap-3.8.4/Projects/ParameterOptimization/fit_alloy.py
#!/usr/bin/env python #PBS -N EMT-alloys #PBS -m n #PBS -q long #PBS -l nodes=2:ppn=4:opteron4 import numpy as np from asap3.Tools.ParameterOptimization import ParameterPerformance from asap3.Tools.ParameterOptimization.Optimization import ParameterOptimization from asap3.Tools.ParameterOptimization.SearchParallel i...
gil0mendes/Infinity-OS
source/kernel/time.c
<filename>source/kernel/time.c /* * Copyright (C) 2010-2014 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED...
atosorigin/blueprint-fabric8
sandbox/process/process-fabric/src/main/java/io/fabric8/process/fabric/ContainerProcessManagerService.java
<reponame>atosorigin/blueprint-fabric8 /** * Copyright 2005-2014 Red Hat, Inc. * * Red Hat licenses this file to you under the Apache License, version * 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.o...
inrupt/artifact-generator
src/commandLineProcessor.js
#!/usr/bin/env node // Normally we'd only want to mock out local storage for testing, but in this // case we want to use our generated vocabularies that depend on // localStorage for runtime context (e.g. the currently selected language). // So since we want to use those vocabularies in our Node application here, // t...
myles-novick/ml-workflow
mlflow/src/app/routers/monitoring_router.py
from fastapi import APIRouter, Depends, status from schemas import GetDeploymentsResponse, GetLogsResponse from sqlalchemy.orm import Session, load_only from sqlalchemy.orm.exc import NoResultFound from shared.db.connection import SQLAlchemyClient from shared.db.sql import SQL from shared.models.splice_models import J...
emamanto/Soar
Core/CLI/src/cli_explain.h
<filename>Core/CLI/src/cli_explain.h<gh_stars>1-10 /* * cli_explain.h * * Created on: Dec 22, 2015 * Author: mazzin */ #ifndef CLI_EXPLAIN_H_ #define CLI_EXPLAIN_H_ #include "cli_Parser.h" #include "cli_Options.h" #include "misc.h" #include "sml_Events.h" namespace cli { class ExplainCommand : publi...
2bite/ARK-SDK
SDK/ARKSurvivalEvolved_DinoBlueprintBase_RootBoneName_Crab_functions.cpp
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_DinoBlueprintBase_RootBoneName_Crab_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //----------------------------------------------...
Disi77/AdventOfCode2021
day16/puzzle.py
<reponame>Disi77/AdventOfCode2021<filename>day16/puzzle.py class Packet(): def __init__(self, input_binary): self.input_binary = input_binary self.version = int(input_binary[:3], 2) self.type_id = int(input_binary[3:6], 2) self.subpackets_binary = "" self.subpackets = [] ...
Sjord/estatio
estatioapp/app/src/test/java/org/incode/module/communications/dom/impl/commchannel/CommunicationChannelType_ensureCompatible_Test.java
package org.incode.module.communications.dom.impl.commchannel; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import static org.junit.Assert.*; public class CommunicationChannelType_ensureCompatible_Test { @Rule public ExpectedException expectedException = ExpectedEx...
knightjdr/prohits-viz-2.0
src/state/post/save-image/save-actions.test.js
<filename>src/state/post/save-image/save-actions.test.js import * as actions from './save-actions'; describe('Save image', () => { it('should dispatch an action when there is an error', () => { const expectedAction = { type: actions.SAVE_ERROR, }; expect(actions.saveError()).toEqual(expectedAction)...
LukasBanana/ForkENGINE
sources/Video/RenderSystem/HWRenderer/OpenGL/HardwareBuffer/GLVertexBuffer.cpp
/* * OpenGL vertex buffer file * * This file is part of the "ForkENGINE" (Copyright (c) 2014 by <NAME>) * See "LICENSE.txt" for license information. */ #include "GLVertexBuffer.h" #include "..\GLParamMapper.h" #include "IO/Core/Log.h"//!!! namespace Fork { namespace Video { GLVertexBuffer::GLVertexBuffer()...
vprusa/gag-web
persistence/src/main/java/cz/muni/fi/gag/web/persistence/dao/impl/FingerDataLineDaoImpl.java
package cz.muni.fi.gag.web.persistence.dao.impl; import cz.muni.fi.gag.web.persistence.dao.FingerDataLineDao; import cz.muni.fi.gag.web.persistence.entity.FingerDataLine; import java.io.Serializable; import javax.enterprise.context.ApplicationScoped; /** * @author <NAME> * */ @ApplicationScoped public class Finger...
cnc-thesis-project/probecessor
methods/cluster/tls.py
def get_data(tls_port): print("TLS GET DATA") data = {} data["issuer"] = tls_port.get_property("issuer") return data def match(tls_data1, tls_data2): print("TLS MATCH") return tls_data1["issuer"] == tls_data2["issuer"]
ZhaoJianliuser/libice
test/test.h
<reponame>ZhaoJianliuser/libice<gh_stars>10-100 /* * Copyright (c) 2018 str2num. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. */ /** * @file test.h * @author str2num * @brief * **/ #if...
MSV-Project/IBAMR
ibtk/src/math/PoissonUtilities.h
// Filename: PoissonUtilities.h // Created on 24 Aug 2010 by <NAME> // // Copyright (c) 2002-2013, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source c...
lens-biophotonics/v3d_external
v3d_main/common_lib/mingw32/include/time.h
/* * time.h * This file has no copyright assigned and is placed in the Public Domain. * This file is a part of the mingw-runtime package. * No warranty is given; refer to the file DISCLAIMER within the package. * * Date and time functions and types. * */ #ifndef _TIME_H_ #define _TIME_H_ /* All the headers i...
pierredup/sentry
src/sentry/api/endpoints/setup_wizard.py
<reponame>pierredup/sentry from __future__ import absolute_import import logging from rest_framework.response import Response from sentry import ratelimits from sentry.cache import default_cache from sentry.api.base import Endpoint from sentry.api.serializers import serialize from django.utils.crypto import get_rando...
muizidn/couchbase-lite-ios
Objective-C/CBLQueryOrdering.h
<reponame>muizidn/couchbase-lite-ios // // CBLQueryOrdering.h // CouchbaseLite // // Copyright (c) 2017 Couchbase, Inc All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the Lice...
cryptofriend/incognito-chain
metadata/common.go
package metadata import ( "encoding/json" "fmt" "github.com/pkg/errors" ) func ParseMetadata(meta interface{}) (Metadata, error) { if meta == nil { return nil, nil } mtTemp := map[string]interface{}{} metaInBytes, err := json.Marshal(meta) if err != nil { return nil, err } err = json.Unmarshal(metaInB...
xcesco/Kripton
kripton-processor/src/test/java/sqlite/git104/AbstractBean.java
package sqlite.git104; import java.time.ZonedDateTime; import com.abubusoft.kripton.android.annotation.BindSqlColumn; public abstract class AbstractBean { protected final long id; @BindSqlColumn(nullable = false) protected ZonedDateTime updateTime; public AbstractBean(long id, ZonedDateTime updateT...
Personalhomeman/web-stories-wp
assets/src/edit-story/utils/getCaretCharacterOffsetWithin.js
/* * Copyright 2020 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
opengauss-mirror/DataStudio
code/datastudio/src/org.opengauss.mppdbide.view/src/org/opengauss/mppdbide/view/objectpropertywiew/ViewObjectPropertyTab.java
<gh_stars>0 /* * Copyright (c) 2022 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS...
epedropaulo/MyPython
03 - Estruturas Compostas/ex076.py
<gh_stars>0 Listagem = ('Lápis', 1.75, 'Borracha', 2, 'Caderno', 15.9, 'Estojo', 25, 'Transferidor', 4.2, 'Compasso', 9.99, 'Mochila', 120.32, 'Canetas', 22.3, 'Livro', 34.9) print('-' * 30) print(f'{"LISTAGEM DE P...
robclark/chromium
ui/base/native_theme/native_theme_base.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/native_theme/native_theme_base.h" #include <limits> #include "base/logging.h" #include "grit/gfx_resources.h" #include "third_part...
PasseRR/JavaLeetCode
src/main/java/com/gitee/passerr/leetcode/problem/lcof1/page2/Lcof55I.java
<filename>src/main/java/com/gitee/passerr/leetcode/problem/lcof1/page2/Lcof55I.java package com.gitee.passerr.leetcode.problem.lcof1.page2; import com.gitee.passerr.leetcode.TreeNode; /** * 输入一棵二叉树的根节点,求该树的深度。从根节点到叶节点依次经过的节点(含根、叶节点)形成树的一条路径,最长路径的长度为树的深度。 * <p> * 例如: * 给定二叉树 [3,9,20,null,null,15,7], * | 3 * |...
nmldiegues/jvm-stm
classpath-0.98/gnu/javax/print/ipp/attribute/supported/OperationsSupported.java
/* OperationsSupported.java -- Copyright (C) 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath 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 2, or (at you...
SunYe1234/PDFNetNew
headers/Impl/Convert.inl
<gh_stars>0 void SetFlattenContentImpl(TRN_Obj obj, enum Convert::FlattenFlag flatten, TRN_Obj* result); void SetFlattenThresholdImpl(TRN_Obj obj, enum Convert::FlattenThresholdFlag threshold, TRN_Obj* result); void SetOverprintImpl(TRN_Obj obj, enum PDFRasterizer::OverprintPreviewMode mode, TRN_Obj* result); inli...
hiljusti/codewars-solutions
javascript/a-no-more-bugs-trilogy-episode-3-make-a-player/solution.js
<reponame>hiljusti/codewars-solutions // https://www.codewars.com/kata/5630c850ed4343c1d0000083 let Player = function(name, position, age, dribbling, pass, shoot) { return {name, position, age, dribbling, pass, shoot}; };
jekyll-one-org/j1-template
packages/300_template_src/assets/themes/j1/adapter/js/bmd.js
--- regenerate: false --- {% capture cache %} {% comment %} # ----------------------------------------------------------------------------- # ~/assets/themes/j1/adapter/js/bmd.js # Liquid template to adapt Bootrap Material Design (BMD) # # Product/Info: # https://jekyll.one # Copyri...
ChunMengLu/Easy4JFinal
easy-core/src/main/java/net/dreamlu/easy/commons/searcher/ResourceMatcherSearcher.java
<reponame>ChunMengLu/Easy4JFinal<gh_stars>1-10 package net.dreamlu.easy.commons.searcher; import java.util.LinkedHashSet; import java.util.Set; import net.dreamlu.easy.commons.searcher.FileSearcher.FileEntry; import net.dreamlu.easy.commons.utils.Matcher; /** * 文件查找查找器 * 从classpath或者jar中查找 * @author L....
adilbenmoussa/apollo-client
packages/apollo-utilities/lib/util/stripSymbols.js
<filename>packages/apollo-utilities/lib/util/stripSymbols.js define(['require', 'exports'], function(require, exports) { 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function stripSymbols(data) { return JSON.parse(JSON.stringify(data)); } exports.stripSymbols = stripSymbols...
df-service-e2e-test/x_khu2_9th_stress_test_5
hazelcast/src/test/java/com/hazelcast/config/CacheEvictionConfigTest.java
<gh_stars>1-10 /* * Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * U...
gczuczy/sfticks
src/FG/DescObject.cc
#include "FG/DescObject.hh" #include "SFT/Exception.hh" #include "misc.hh" namespace FG { static std::map<std::string, uint32_t> g_stacksizes{ {"SS_ONE", 1}, {"SS_SMALL", 50}, {"SS_MEDIUM", 100}, {"SS_BIG", 200}, {"SS_HUGE", 500}, {"SS_FLUID", 0}, }; static std::map<std::string, EResou...
Keneral/aframeworks
support/v7/recyclerview/src/android/support/v7/widget/StaggeredGridLayoutManager.java
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
baininghan/wxadmin
src/main/java/com/fancye/wx/comm/model/base/BaseAdmin.java
<reponame>baininghan/wxadmin package com.fancye.wx.comm.model.base; import com.jfinal.plugin.activerecord.Model; import com.jfinal.plugin.activerecord.IBean; /** * Generated by JFinal, do not modify this file. */ @SuppressWarnings("serial") public abstract class BaseAdmin<M extends BaseAdmin<M>> extends Model<M> im...
phlahut/Wonder.js
lib/es6_global/src/service/primitive/job/JobService.js
import * as List from "../../../../../../node_modules/bs-platform/lib/es6/list.js"; import * as Pervasives from "../../../../../../node_modules/bs-platform/lib/es6/pervasives.js"; import * as Log$WonderLog from "../../../../../../node_modules/wonder-log/lib/es6_global/src/Log.js"; function handleGetNoneNoWorkerJob(n...
alphamatic/amp
dataflow/model/utils.py
""" Contain functions used by both `run_experiment.py` and `run_notebook.py` to run experiments. Import as: import dataflow.model.utils as dtfmodutil """ # TODO(gp): -> experiment_utils.py # TODO(gp): All these functions should be tested. The problem is that these functions # rely on results from experiments and th...
Kikehulk/ors-map-client
src/fragments/forms/map-form/components/place-and-directions/components/route-details/components/steps/i18n/steps.i18n.pt-br.js
<reponame>Kikehulk/ors-map-client export default { steps: { instruction: 'Instrução', on: 'em', step: 'passo', gotoStep: 'Ir para passo' } }
Semicheche/foa_frappe_docker
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/chapter/chapter.py
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.website.website_generator import WebsiteGenerator class Chapter(WebsiteGenerator): _website = frappe._dict( ...
AYCHCOM/Transporter
spec/factories/shopify/order.rb
FactoryBot.define do factory :shopify_order_hash, class: Hash do skip_create sequence(:name) { |n| "name-#{n}" } sequence(:email) { |n| "email-#{n}" } sequence(:financial_status) { |n| "financial-status-#{n}" } sequence(:fulfillment_status) { |n| "fulfillment-status-#{n}" } sequence(:currency...
TrojanVulgar/Netflix-App-tip
app/src/main/java/com/easyplex/EasyPlexApp.java
package com.easyplex; import android.app.Activity; import android.app.Application; import android.content.Context; import androidx.multidex.MultiDexApplication; import com.easyplex.di.AppInjector; import com.easyplex.util.Tools; import com.facebook.ads.AudienceNetworkAds; import com.google.android.gms.ads.MobileAds;...
damb/seiscomp3
src/sed/apps/scwfparam/util.cpp
<reponame>damb/seiscomp3<gh_stars>10-100 /*************************************************************************** * Copyright (C) by ETHZ/SED, GNS New Zealand, GeoScience Australia * * * * You can redistribute and/or modify this pro...
mrpapercut/wscript-malware-analyser
lib/common/Enumerator.js
'use strict'; /** * Enumerator.js * This Object spoofs the Scripting.FileSystemObject Enumerator Object * Properties and methods taken from Microsoft documentation * https://msdn.microsoft.com/en-us/library/x32bxwys(v=vs.100).aspx */ /** * An Enumerator is used on collections, as collections don't allow * dire...
AustinShalit/RobotBuilder
src/main/java/robotbuilder/data/CommandGroupEntry.java
<filename>src/main/java/robotbuilder/data/CommandGroupEntry.java package robotbuilder.data; import java.io.Serializable; import java.util.ArrayList; import lombok.Data; import lombok.NoArgsConstructor; import robotbuilder.MainFrame; import robotbuilder.data.properties.ParameterDescriptor; import robotbuilder.data.p...
timower/libnsfb-reMarkable
src/surface/x.c
/* * Copyright 2009 <NAME> <<EMAIL>> * * This file is part of libnsfb, http://www.netsurf-browser.org/ * Licenced under the MIT License, * http://www.opensource.org/licenses/mit-license.php */ #define _XOPEN_SOURCE 500 #include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <string.h...
NotDiscordOfficial/Fortnite_SDK
BP_SpeedLines_Looping_Camera_Lens_classes.h
<gh_stars>0 // BlueprintGeneratedClass BP_SpeedLines_Looping_Camera_Lens.BP_SpeedLines_Looping_Camera_Lens_C // Size: 0x2e0 (Inherited: 0x2e0) struct ABP_SpeedLines_Looping_Camera_Lens_C : AEmitterCameraLensEffectBase { };
Tau-Coin/libTAU4j-Android
taucoin-android/src/main/java/io/taucoin/torrent/publishing/receiver/SchedulerReceiver.java
<reponame>Tau-Coin/libTAU4j-Android package io.taucoin.torrent.publishing.receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import io.taucoin.torrent.publishing.core.model.TauDaemon; import io.taucoin.torrent.publishing.service.Scheduler; import static...
ckamtsikis/cmssw
Fireworks/Core/interface/FWSimpleProxyHelper.h
<gh_stars>100-1000 #ifndef Fireworks_Core_FWSimpleProxyHelper_h #define Fireworks_Core_FWSimpleProxyHelper_h // -*- C++ -*- // // Package: Core // Class : FWSimpleProxyHelper // /**\class FWSimpleProxyHelper FWSimpleProxyHelper.h Fireworks/Core/interface/FWSimpleProxyHelper.h Description: Implements some c...
colloquial-solutions/scimitar
spec/requests/engine_spec.rb
require 'spec_helper' RSpec.describe Scimitar::Engine do before :each do allow_any_instance_of(Scimitar::ApplicationController).to receive(:authenticated?).and_return(true) end context 'parameter parser' do # "params" given here as a String, expecting the engine's custom parser to # decode it for u...
rqu/worker
tests/tasks.cpp
#include <gtest/gtest.h> #include <gmock/gmock.h> #include <memory> #include <fstream> #include "tasks/internal/archivate_task.h" #include "tasks/internal/cp_task.h" #include "tasks/internal/extract_task.h" #include "tasks/internal/mkdir_task.h" #include "tasks/internal/rename_task.h" #include "tasks/internal/rm_task....
wkma/bk-sops
gcloud/err_code.py
<filename>gcloud/err_code.py # -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2021 <NAME>, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use th...
marcosherreroa/Fundamentos-de-Programacion
Solved exams/June exams/June 2017 DG/Lotes.cpp
<gh_stars>0 //<NAME> #include "Lotes.h" #include "checkML.h" bool operator<(tLotes const & lote1, tLotes const & lote2){ if (lote1.tipo < lote2.tipo) return true; else if (lote1.tipo == lote2.tipo && lote1.id < lote2.id) return true; else return false; } bool operator==(tLotes const & lote1, tLotes const & lote2)...
LNBIG-COM/lnbig-server
adjustChannels/openChannelsBetweenMyNodes.js
<gh_stars>1-10 /* * Copyright (c) 2019 LNB<EMAIL> * All rights reserved. */ // Должен быть первым - загружает переменные require('dotenv').config() let listChannels = require('../lib/listChannels') let pendingChannels = require('../lib/pendingChannels') var PromisePool = require('es6-promise-pool') const pTimeout...
Agustinefe/TP2Algoritmos3
src/main/java/edu/fiuba/algo3/algoblocks/Bloque.java
package edu.fiuba.algo3.algoblocks;/* Author: firmapaz ;created on 12/12/20*/ public interface Bloque { void ejecutarComportamientoSobrePizarraEn(Personaje estePersonaje); void ejecutarComportamientoInversoSobrePizarraEn(Personaje estePersonaje); Bloque duplicar(); }
fangziming-ff/buykop
src/main/java/com/buykop/console/controller/MsgTemplateController.java
<reponame>fangziming-ff/buykop package com.buykop.console.controller; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Vector; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annot...
Krisa/sftools
src/server/src/modules/connections/router.js
import {ensureAuthenticated} from '../../middleware' import * as connection from './controller' export const baseUrl = '/Connection' export default [ { method: 'POST', route: '/', handlers: [ ensureAuthenticated, connection.createConnection, connection.authorize ] }, { meth...
otto-de/synapse
synapse-core/src/main/java/de/otto/synapse/subscription/Subscriptions.java
package de.otto.synapse.subscription; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Maps; import org.slf4j.Logger; import javax.annotation.concurrent.ThreadSafe; import java.util.Collection; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.concu...
erique/embeddedsw
XilinxProcessorIPLib/drivers/uartpsv/src/xuartpsv_g.c
/****************************************************************************** * Copyright (C) 2017 - 2021 Xilinx, Inc. All Rights Reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ #include "xparameters.h" #include "xuartpsv.h" /* * The config...