repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
MarginC/kame
netbsd/sys/arch/algor/algor/algor_p4032_intr.c
/* $NetBSD: algor_p4032_intr.c,v 1.6 2001/10/29 23:33:42 thorpej Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without *...
CientistaVuador/NeoELC
src/main/java/com/cien/economy/ChestShop.java
<gh_stars>1-10 package com.cien.economy; import com.cien.PositiveLocation; import com.cien.Util; import com.cien.claims.CienClaims; import com.cien.claims.Claim; import com.cien.data.Node; import net.minecraft.block.Block; import net.minecraft.enchantment.Enchantment; import net.minecraft.entity.player.Entity...
tunnelvisionlabs/java-threading
test/com/tunnelvisionlabs/util/concurrent/AsyncManualResetEventTest.java
// Licensed under the MIT license. See LICENSE file in the project root for full license information. package com.tunnelvisionlabs.util.concurrent; import java.util.concurrent.CancellationException; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionException; import java.util.concurr...
motolies/BlogSkyscape
Web/Skyscape/src/main/java/com/motolies/controller/SkyscapeControllerAdvice.java
<reponame>motolies/BlogSkyscape<gh_stars>0 package com.motolies.controller; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; import org.spring...
xeddmc/pastebin-django
pastes/migrations/0005_auto_20150601_1642.py
<filename>pastes/migrations/0005_auto_20150601_1642.py # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('pastes', '0004_auto_20150601_1634'), ] operations = [ migrations.Rena...
darghex/PARCES
src/main/java/darghex/parces/helpers/IMessageManager.java
<reponame>darghex/PARCES /** * Interfaz para el envio de mensajes */ package darghex.parces.helpers; import java.util.List; import darghex.parces.model.Mensaje; import darghex.parces.model.Usuario; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>IMessage Manager</b></em>'. * <!-- ...
yangshenghui/une-cms-koa
app/app.js
import Koa from 'koa'; import KoaBodyParser from 'koa-bodyparser'; import cors from '@koa/cors'; import mount from 'koa-mount'; import serve from 'koa-static'; import { config, json, logging, success, jwt, Loader } from 'lin-mizar'; import { PermissionModel } from './model/permission'; const xmlParser = require('koa-x...
LexSheyn/DirectX11_TEST
BasicRenderer/src/Timer/Timer.h
#ifndef TIMER_H #define TIMER_H namespace dx11 { class Timer { public: // Constructor: Timer(); // Functions: float32 Mark(); float32 Peek() const; private: // Variables: std::chrono::steady_clock::time_point last; }; } #endif // TIMER_H
LeonDLotter/findpapers
tests/unit/test_bibtex_generator.py
<filename>tests/unit/test_bibtex_generator.py import json import copy import tempfile import findpapers from findpapers.models.search import Search from findpapers.models.paper import Paper import findpapers.utils.persistence_util as persistence_util def test_output(search: Search, paper: Paper): paper.publicati...
tommynicoletti/cise-sim
cise-sim-cli/src/test/java/eu/cise/cli/UseCaseSendMessageTest.java
<filename>cise-sim-cli/src/test/java/eu/cise/cli/UseCaseSendMessageTest.java /* * BSD 3-Clause License * * Copyright (c) 2021, Joint Research Centre (JRC) All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
stahta01/Zinjal
src_extras/complement/ComplementArchive.h
#ifndef COMPLEMENTARCHIVE_H #define COMPLEMENTARCHIVE_H #include <wx/string.h> #include <wx/arrstr.h> struct complement_info { wxString desc_english; // english description wxString desc_spanish; // spanish description wxArrayString bins; // files to set executable permission bool resetreq; // requires restarting ...
ONSdigital/rm-collection-exercise-service
src/main/java/uk/gov/ons/ctp/response/collection/exercise/message/SampleSummaryActivationPublisher.java
package uk.gov.ons.ctp.response.collection.exercise.message; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.UUID; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; impo...
Parthiv-657/DSA
ass.cpp
<gh_stars>0 #include<iostream> using namespace std; struct btnode{ struct btnode* lc = NULL; char data; struct btnode* rc = NULL; }; typedef struct btnode* btptr; struct queue{ int size=100; int f=-1; int r=-1; btptr elements[100]; bool isEmpty() { if(f == -1&&r == -1) ...
PMO-IT/voiceassistant
src/main/java/de/pmoit/voiceassistant/utils/readproperties/GlobalConfiguration.java
package de.pmoit.voiceassistant.utils.readproperties; import java.util.Properties; /** * Read the global configuration file */ public class GlobalConfiguration { private final static String CONFIG_PROPERTIES_PATH = "/resources/config.properties"; private final static Properties CONFIG = Propertyloader.load...
madfrog2047/flink
flink-core/src/main/java/org/apache/flink/configuration/HistoryServerOptions.java
<gh_stars>1-10 /* * 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 * "...
v2cloud/tacticalrmm
api/tacticalrmm/clients/migrations/0020_auto_20211226_0547.py
# Generated by Django 3.2.10 on 2021-12-26 05:47 from django.db import migrations, models import clients.models class Migration(migrations.Migration): dependencies = [ ('clients', '0019_remove_deployment_client'), ] operations = [ migrations.AddField( model_name='client', ...
bookmansoft/gamegold-wechat-server
test/crm/auth.js
<filename>test/crm/auth.js /** * 单元测试:注册登录、简单应答、推送 * Creted by liub 2017.3.24 */ const remote = require('./util') //一组单元测试流程 describe('认证', function() { /** * 一个单元测试流程,可使用 .skip .only 修饰 * 和负载均衡相关的单元测试,首先连接9901端口,发送 lb.getServerInfo 请求,携带 "stype":"IOS", "oemInfo":{"openid":'helloworl'} 等参数,返回值:data.n...
bydan/pre
erp_ejb/src_nomina/com/bydan/erp/nomina/business/logic/FormularioRenta107Logic.java
<reponame>bydan/pre /* *AVISO LEGAL © Copyright *Este programa esta protegido por la ley de derechos de autor. *La reproduccion o distribucion ilicita de este programa o de cualquiera de *sus partes esta penado por la ley con severas sanciones civiles y penales, *y seran objeto de todas las sanciones legales que ...
ogunes-ebi/impc-production-tracker
impc_prod_tracker/core/src/main/java/org/gentar/biology/targ_rep/mutation/type/TargRepEsCellMutationType.java
<filename>impc_prod_tracker/core/src/main/java/org/gentar/biology/targ_rep/mutation/type/TargRepEsCellMutationType.java<gh_stars>0 package org.gentar.biology.targ_rep.mutation.type; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persisten...
kriskowal/collections
packages/deque/deque-test.js
/* global describe, it, expect */ "use strict"; var sinon = require("sinon"); var Deque = require("@collections/deque"); var describeCollection = require("../specs/collection"); var describeDeque = require("../specs/deque"); var describeOrder = require("../specs/order"); describe("Deque", function () { it("just th...
elihschiff/Submitty
python_submitty_utils/submitty_utils/user.py
import subprocess def get_php_db_password(password): """ Generates a password to be used within the site for database authentication. The password_hash function (http://php.net/manual/en/function.password-hash.php) generates us a nice secure password and takes care of things like salting and hashing. ...
MitulMistry/art-institute-explorer
app/javascript/packs/reducers/collectionsReducer.js
import { RECEIVE_COLLECTIONS, RECEIVE_COLLECTION, RESET_COLLECTIONS, RESET_COLLECTION } from '../actions/collectionActions'; const initialState = { collectionsArray: [], collectionsCurrentPage: 1, collectionsTotalPages: 1, collectionShow: null }; const collectionsReducer = (state = initialState, actio...
Falcons-Robocup/code
packages/worldModel/src/administrators/gaussianBallDiscriminator.cpp
// Copyright 2019-2020 lucas (Falcons) // SPDX-License-Identifier: Apache-2.0 /* * gaussianBallDiscriminator.cpp * * Created on: Nov 26, 2019 * Author: lucas */ #include "int/administrators/gaussianBallDiscriminator.hpp" #include "falconsCommon.hpp" #include "cEnvironmentField.hpp" #include "linalgcv.hpp"...
quepas/lcpc19-execution-model
execution_model/src/main/java/hum/ir/ast/traversal/listener/ASTWalker.java
package hum.ir.ast.traversal.listener; import hum.ir.ast.element.Node; /** * Created by Quepas on 17.05.2017. */ public class ASTWalker { public static final ASTWalker DEFAULT = new ASTWalker(); public void walk(ASTListener listener, Node t) throws Exception { enterRule(listener, t); for (...
zhaochaoyue1/Beyond
student/src/test/java/com/example/student/Test/EncryptUtils.java
<reponame>zhaochaoyue1/Beyond<filename>student/src/test/java/com/example/student/Test/EncryptUtils.java package com.example.student.Test; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; // 加密 p...
TimDovg/Sales.CRM
Backend/src/main/java/com/andersenlab/crm/notification/CompanySaleMailNotifier.java
<reponame>TimDovg/Sales.CRM<gh_stars>1-10 package com.andersenlab.crm.notification; import com.andersenlab.crm.configuration.properties.ApplicationProperties; import com.andersenlab.crm.events.CompanySaleArchivedEvent; import com.andersenlab.crm.events.MailExpressSaleCreatedEvent; import com.andersenlab.crm.events.Mai...
wangcy6/weekly_read
code_reading/oceanbase-master/src/clog/ob_log_replay_driver_runnable.cpp
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
cooperbrandon1/oddsjam-api
src/Models/V1/League.py
#region Imports from Base import ModelBase; from dataclasses import dataclass; #endregion Imports @dataclass class League(ModelBase): name: str = None;
joshualucas84/jasper-soft-server
jasperserver/jasperserver-api-impl/engine/src/main/java/com/jaspersoft/jasperserver/api/engine/jasperreports/util/JarsClassLoader.java
/* * Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com. * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program is free software: you can redistribute it and/or modify * it under the terms...
CoderMJLee/-
C/019/modi1/modi1.c
#include <stdio.h> double fun ( int m ) { double y = 1.0 ; int i ; /**************found**************/ for(i = 2 ; i < m ; i++) /**************found**************/ y -= 1 /(i * i) ; return( y ) ; } void main( ) { int n = 5 ; printf( "\nThe result is %lf\n", fun ( n ) ) ; }
fieldmaps/population-stats
processing/meta_fb/inputs/inputs.py
import filecmp import subprocess from .utils import DATABASE, cwd, logging, run_process, data_types logger = logging.getLogger(__name__) data = cwd / f'../../../inputs/meta_fb' def input_data(name): query = (data / f'{name}.sql').resolve() query.unlink(missing_ok=True) with open(query, 'w') as f: ...
liyong299/normal
dup/src/com/dup/test/ReturnTest.java
/** * */ package com.dup.test; /** * @author hugoyang * */ public class ReturnTest { public static String test() { try { int a = 1 / 0; return "try return "; } catch (Exception ex) { System.out.println("catch block"); return "catch return "; } finally { System.out.print...
zealoussnow/chromium
chrome/browser/ui/webui/internals/sessions/session_service_internals_handler.h
// Copyright 2021 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. #ifndef CHROME_BROWSER_UI_WEBUI_INTERNALS_SESSIONS_SESSION_SERVICE_INTERNALS_HANDLER_H_ #define CHROME_BROWSER_UI_WEBUI_INTERNALS_SESSIONS_SESSION_SERVICE...
quidphp/front
js/component/hashChange.js
<reponame>quidphp/front /* * This file is part of the QuidPHP package <https://quidphp.com> * Author: <NAME> <<EMAIL>> * License: https://github.com/quidphp/front/blob/master/LICENSE */ // hashChange // script that sends the hash change event back to the nodes Component.HashChange = function(persistent) { // ...
WIZARD-CXY/pl
leetcode2/oneeditdistance.cpp
class Solution { public: bool isOneEditDistance(string s, string t) { int slen=s.size(); int tlen=t.size(); // always have s smaller than t if(slen>tlen){ return isOneEditDistance(t,s); } if(tlen-slen>1){ return false; ...
DigitalGlobe/ossim
src/imaging/ossimKMeansFilter.cpp
<reponame>DigitalGlobe/ossim //************************************************************************************************** // // OSSIM Open Source Geospatial Data Processing Library // See top level LICENSE.txt file for license information // //************************************************************...
ishiura-compiler/CF3
testsuite/EXP_5/test2343.c
<reponame>ishiura-compiler/CF3 /* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" static volatile int8_t x5 = -1; volatile int64_t t1 = 610889LL; int16_t x14 = I...
parasgithub/ambry
ambry-quota/src/test/java/com/github/ambry/quota/storage/JSONStringStorageQuotaSourceTest.java
<gh_stars>1-10 /* * Copyright 2020 LinkedIn Corp. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
isabella232/ATK-1
gui/src/main/java/com/orange/atk/monitoring/AroSettings.java
<filename>gui/src/main/java/com/orange/atk/monitoring/AroSettings.java<gh_stars>1-10 /* * Software Name : ATK * * Copyright (C) 2013 France Télécom * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the...
ReDEnergy/OpenGL4.5-GameEngine
Engine/Source/Manager/DebugInfo.h
<filename>Engine/Source/Manager/DebugInfo.h #pragma once #include <list> #include <include/dll_export.h> class GameObject; class FrameBuffer; class Camera; class DLLExport DebugInfo { public: enum class BBOX_MODE { CAMERA_SPACE, OBJECT_SAPCE, LIGHT_SPACE }; protected: DebugInf...
kostadinlambov/Java-OOP-Basics
05. 4. Exam - 10 July 2016_System Split/src/systemSplit/models/hardware/HardwareComponent.java
package systemSplit.models.hardware; import systemSplit.models.Component; import systemSplit.models.Software.SoftwareComponent; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; public abstract class HardwareComponent extends Component { private Map<String, ...
donrestarone/violet_rails
lib/capistrano/tasks/deploy.rake
namespace :deploy do desc 'custom deployment tasks' task :restart do on roles(:app) do execute "sudo systemctl restart puma.service" end end task :restart_sidekiq do on roles(:app) do execute "sudo systemctl restart sidekiq.service" end end end
jie-meng/UtilDroid
app/src/main/java/com/jmengxy/utildroid/data/source/local/LocalDataSource.java
<reponame>jie-meng/UtilDroid package com.jmengxy.utildroid.data.source.local; import com.jmengxy.utildroid.models.MonsterEntity; /** * Created by jiemeng on 25/01/2018. */ public class LocalDataSource { private MonsterEntity monsterEntity = new MonsterEntity(); public MonsterEntity getMonsterEntity() { ...
ballgle/scenebuilder
kit/src/main/java/com/oracle/javafx/scenebuilder/kit/fxom/FXOMRefresher.java
<reponame>ballgle/scenebuilder<filename>kit/src/main/java/com/oracle/javafx/scenebuilder/kit/fxom/FXOMRefresher.java /* * Copyright (c) 2019, Gluon and/or its affiliates. * Copyright (c) 2012, 2014, Oracle and/or its affiliates. * All rights reserved. Use is subject to license terms. * * This file is available and...
natashadsilva/streamsx.jmxclients
streams-jmx-client/src/main/java/streams/jmx/client/commands/ListPes.java
<reponame>natashadsilva/streamsx.jmxclients // 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 Lice...
TXSTDroneResearch/libARSAL
TestBench/testSem.c
<reponame>TXSTDroneResearch/libARSAL /* Copyright (C) 2014 <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 retain the above copyright notice, this list o...
tabish121/proton4j
protonj2/src/test/java/org/apache/qpid/protonj2/codec/messaging/PropertiesTypeCodecTest.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 may ...
ecgan/leetcode
utils/singlyLinkedList/ListNode.js
function ListNode (val) { this.val = val this.next = null } module.exports = ListNode
glahiru/airavata-1
modules/registry/airavata-jpa-registry/src/main/java/org/apache/airavata/persistance/registry/jpa/resources/AdvancedOutputDataHandlingResource.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"); y...
finnishtransportagency/ksr
src/main/client/src/reducers/confirmModal/actions.js
// @flow import * as types from '../../constants/actionTypes'; export const showConfirmModal = ( body: string, acceptText: string, cancelText: string, accept: Function, cancel?: Function, ) => ({ type: types.SHOW_CONFIRM_MODAL, body, acceptText, cancelText, accept, cancel, }...
FValent3/TCC-Simulacao
src/utils/object/index.js
export * from './copyObject.js'
tcadigan/rog-o-matic_XIV
monsters.h
<gh_stars>0 #ifndef MONSTERS_H_ #define MONSTERS_H_ int seeawakemonster(char *monster); int seemonster(char *monster); void wakemonster(int dir); void sleepmonster(); void dumpmonster(); void holdmonsters(); void addmonster(char ch, int r, int c, int quiescence); void deletemonster(int r, int c); char *monname(char m)...
dolph/concourse-atc
auth/auth_suite_test.go
package auth_test import ( "encoding/base64" "strings" "testing" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) func TestAuth(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Auth Suite") } func header(stringList ...string) string { credentials := []byte(strings.Join(stringList, ":")) return...
schnedann/linebuffer
src/the_framework/algorithms/median_filter.h
<gh_stars>0 #ifndef MEDIAN_FILTER_H #define MEDIAN_FILTER_H #include <array> #include <algorithm> #include "dtypes.h" #include "fifo_fixed_size.h" namespace Algorithms { template<typename T, size_t N> class median_filter{ private: static constexpr size_t fifo_size = (N<<1)+1; Datastructures::fifo_fixed_size<T,f...
dcic/signature-commons-ui
components/Downloads.js
<reponame>dcic/signature-commons-ui import React from 'react' import PropTypes from 'prop-types' import Button from '@material-ui/core/Button' import MenuItem from '@material-ui/core/MenuItem' import Menu from '@material-ui/core/Menu' import Icon from '@material-ui/core/Icon' import Typography from '@material-ui/core/T...
diogommartins/cinder
Lib/test/test_compiler/testcorpus/68_with2.py
with foo, bar: a
dasfaha/sky
src/qip/class.h
<reponame>dasfaha/sky<filename>src/qip/class.h #ifndef _qip_ast_class_h #define _qip_ast_class_h #include "bstring.h" //============================================================================== // // Definitions // //============================================================================== // Represents a ...
timgates42/libu
include/toolbox/memory.h
/* * Copyright (c) 2005-2012 by KoanLogic s.r.l. - All rights reserved. */ #ifndef _U_ALLOC_H_ #define _U_ALLOC_H_ #include <u/libu_conf.h> #include <sys/types.h> #ifdef __cplusplus extern "C" { #endif void u_memory_set_malloc (void *(*f_malloc)(size_t)); void u_memory_set_calloc (void *(*f_calloc)(size_t, size_t...
Flyves/Controller-Dev
src/main/java/util/rocket_league/object_hit_box/boost/SmallBoostHitBox.java
package util.rocket_league.object_hit_box.boost; import util.rocket_league.object_hit_box.HitCylinder; import util.math.vector.Ray3; import util.math.vector.Vector3; public class SmallBoostHitBox extends HitCylinder { public static final double HEIGHT = 165; public static final double RADII = 144; publi...
tws0002/pype
pype/vendor/pico/extras/sentry.py
<reponame>tws0002/pype<filename>pype/vendor/pico/extras/sentry.py from pico.exceptions import HTTPException def set_context(client, request): client.http_context({ 'method': request.method, 'url': request.base_url, 'query_string': request.query_string, 'data': request.get_data(), ...
JaneMandy/CS
net/jsign/bouncycastle/asn1/x500/style/X500NameTokenizer.java
package net.jsign.bouncycastle.asn1.x500.style; public class X500NameTokenizer { private String value; private int index; private char separator; private StringBuffer buf; public X500NameTokenizer(String var1) { this(var1, ','); } public X500NameTokenizer(String var1, char var2) { th...
victorenator/wildfly-elytron
auth/realm/jdbc/src/main/java/org/wildfly/security/auth/realm/jdbc/ColumnMapper.java
<filename>auth/realm/jdbc/src/main/java/org/wildfly/security/auth/realm/jdbc/ColumnMapper.java /* * JBoss, Home of Professional Open Source * * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
glorycloud/GloryMail
CloudyMail/src/mobi/cloudymail/mailclient/net/Account.java
<reponame>glorycloud/GloryMail<filename>CloudyMail/src/mobi/cloudymail/mailclient/net/Account.java package mobi.cloudymail.mailclient.net; import java.io.Serializable; import org.simpleframework.xml.Attribute; public class Account implements Serializable { /** * */ private static final long serialV...
payal8797/GridSingularityCypress
node_modules/synthetix-js/lib/abis/goerli/SynthetixBridgeToOptimism.js
export default [ { inputs: [ { internalType: 'address', name: '_owner', type: 'address' }, { internalType: 'address', name: '_resolver', type: 'address' }, ], payable: false, stateMutability: 'nonpayable', type: 'constructor', signature: 'constructor', }, { anonymous: false...
rpuntaie/c-examples
cpp/numeric_constants.cpp
<reponame>rpuntaie/c-examples /* g++ --std=c++20 -pthread -o ../_build/cpp/numeric_constants.exe ./cpp/numeric_constants.cpp && (cd ../_build/cpp/;./numeric_constants.exe) https://en.cppreference.com/w/cpp/numeric/constants */ #include <cmath> #include <iomanip> #include <iostream> #include <limits> #include <numbers> ...
Ddnirvana/test-CI
openeuler-kernel/arch/x86/include/asm/trap_pf.h
<reponame>Ddnirvana/test-CI /* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_TRAP_PF_H #define _ASM_X86_TRAP_PF_H /* * Page fault error code bits: * * bit 0 == 0: no page found 1: protection fault * bit 1 == 0: read access 1: write access * bit 2 == 0: kernel-mode access 1: user-mode access * ...
tasbolat1/hmv-s16
python/optitrack/geometry.py
"""\ optitrack.geometry : plain-Python geometric utility functions. This uses only Python modules common between CPython, IronPython, and RhinoPython for compatibility with both Rhino and offline testing. Copyright (c) 2016, <NAME>. All rights reserved. Licensed under the terms of the BSD 3-clause license as included...
KyrietS/Trylma
Client/src/board/Field.java
package board; import javafx.scene.paint.*; import javafx.scene.shape.Circle; import javafx.scene.shape.StrokeType; import shared.PlayerColor; /** * Klasa reprezentująca pojedyncze, klikalne pole w grze */ public class Field { private int x; // Współrzędna X pola (kolumna) p...
allenfancy/com.allen.enhance
com.allen.enhance.basic/src/main/java/org/com/allen/enhance/basic/desginpattern/chain/FatherHandler.java
<reponame>allenfancy/com.allen.enhance package org.com.allen.enhance.basic.desginpattern.chain; public class FatherHandler implements IHandler { @Override public void HandlerMessage(IWoman woman) { System.out.println("女儿的请求:"+woman.getResponse()); System.out.println("父亲:同意"); } }
awagen/kolibri
kolibri-base/src/main/scala/de/awagen/kolibri/base/processing/execution/job/ActorRunnableUtils.scala
/** * Copyright 2021 <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/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
ewnavilae/typedoc
dist/lib/output/helpers/compact.js
<reponame>ewnavilae/typedoc "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.compact = void 0; /** * Compress the given string by removing all newlines. * * @param text The string that should be compressed. * @returns The string with all newlines stripped. */ function compact(o...
yitchoong/cloudapi
api/product-api/test.js
var api = require('./index') var _ = require('lodash') var json = require('./src/product6500/inputjson') //var json = require('./src/product1010893/inputjson') //json = {insuredList:[{"name":"demo","birthDate":"1918-02-20","gender":"MALE","smoking":"NON-SMOKER"}],"productList":[{"productId":6500,"lifeAssuredNumber":0,"...
TomoChainC/tomox-sdk
types/lending_trade.go
package types import ( "encoding/json" "fmt" "math/big" "strconv" "time" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/crypto/sha3" "github.com/tomochain/tomox-sdk/errors" "github.com/tomochain/tomox-sdk/utils" "github.com/globalsign/mgo/bson" ) const ( TradeStatusOpen =...
0xflotus/teller
pkg/providers/hashicorp_vault.go
package providers import ( "fmt" "sort" "github.com/hashicorp/vault/api" "github.com/spectralops/teller/pkg/core" ) type HashicorpClient interface { Read(path string) (*api.Secret, error) } type HashicorpVault struct { client HashicorpClient } func NewHashicorpVault() (core.Provider, error) { conf := api.Def...
marcphilipp/jetty.project
jetty-websocket/websocket-jetty-tests/src/test/java/org/eclipse/jetty/websocket/tests/SuspendResumeTest.java
// // ======================================================================== // Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // https://www.eclipse.org/...
leobelen/pydatajson
tests/support/factories/core_files.py
<gh_stars>0 # -*- coding: utf-8 -*- from .catalog_errors import missing_catalog_title, \ missing_catalog_description, \ missing_catalog_dataset, invalid_catalog_publisher_type, invalid_publisher_mbox_format, \ null_catalog_publisher, empty_mandatory_string, malformed_date, malformed_datetime, \ malf...
toanqc/algorithm
src/com/algorithm/string/RabinKarpSearch.java
<gh_stars>0 package com.algorithm.string; /** * http://www.geeksforgeeks.org/searching-for-patterns-set-3-rabin-karp- * algorithm/ */ public class RabinKarpSearch { private int prime = 11; public boolean subString(char[] mainString, char[] subString) { int subStringHash = createHash(subString, 0, subString.le...
dibyendumajumdar/dmr_c
tests/parsetree/literals.c
void main(int argc, const char *argv[]) { 5; 6.5; "hello"; }
tanyhb1/suslik
src/main/scala/org/tygus/suslik/certification/targets/coq/language/Expressions.scala
package org.tygus.suslik.certification.targets.coq.language import org.tygus.suslik.LanguageUtils.cardinalityPrefix import org.tygus.suslik.logic.Specifications.selfCardVar object Expressions { sealed abstract class CExpr extends ProgramPrettyPrinting { private def isMetadata: Boolean = !this.vars.exists...
rambasnet/CPP-Fundamentals
labs/variables/main.cpp
/* ASCII Lab ASCII Art - Using variables Updated By: <Your name> #FIXME1 Date: ... #FIXME2 This program produces an ASCII art on the console. Algorithm steps: 1. Use variables to store data/values 2. Write a series of cout statements to print the values. */ #include <iostrea...
mobilesec/cormorant
cormorant-api/src/main/java/at/usmile/cormorant/api/AbstractPluginActivity.java
<gh_stars>1-10 /** * Copyright 2016 - 2017 * * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ht...
vibhorsingh11/Interview-Preparation
CTCI/src/main/java/org/phoenix/interview/ctci/objectorienteddesign/parkinglot/ParkingSpot.java
<reponame>vibhorsingh11/Interview-Preparation<gh_stars>0 package org.phoenix.interview.ctci.objectorienteddesign.parkinglot; public class ParkingSpot { private final VehicleSize spotSize; private final int row; private final Level level; private Vehicle vehicle; public ParkingSpot(VehicleSize spo...
iotoasis/SO
so-serviceprocessor/src/main/java/com/pineone/icbms/so/serviceprocessor/processor/cvo/springkafka/SpringKafkaCvoConsumerHandler.java
<gh_stars>10-100 package com.pineone.icbms.so.serviceprocessor.processor.cvo.springkafka; import com.pineone.icbms.so.serviceprocessor.processor.cvo.messagequeue.consumer.CvoConsumerHandler; import com.pineone.icbms.so.serviceutil.interfaces.database.DatabaseManager; import com.pineone.icbms.so.util.spring.springkafka...
nickman/heliosutils
src/main/java/com/heliosapm/utils/tuples/MutableNVP.java
<gh_stars>0 /** 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 may n...
xhebox/chrootd
cmd/exec.go
package main import ( "github.com/urfave/cli/v2" ctyp "github.com/xhebox/chrootd/cntr" "github.com/xhebox/chrootd/utils" ) var Exec = &cli.Command{ Name: "exec", Usage: "create a container based on the specific metadata, execute a program, attach to it, everything will be released after the termination"...
khurtado/autopyfactory
autopyfactory/plugins/queue/batchsubmit/CondorCE.py
<filename>autopyfactory/plugins/queue/batchsubmit/CondorCE.py<gh_stars>0 #!/bin/env python # # AutoPyfactory batch plugin for Condor # from CondorGrid import CondorGrid from autopyfactory import jsd class CondorCE(CondorGrid): def __init__(self, apfqueue, config, section): qcl = config # w...
viteshan/gvite-client
vendor/github.com/vitelabs/go-vite/common/types/height.go
package types var EmptyHeight = uint64(0) var GenesisHeight = uint64(1) var AccountLimitSnapshotHeight = uint64(60 * 60 * 24) var SnapshotHourHeight = uint64(60 * 60) var SnapshotDayHeight = uint64(60 * 60 * 24)
BearerPipelineTest/rchain
rspace/src/test/scala/coop/rchain/rspace/ExportImportTests.scala
package coop.rchain.rspace import cats.effect.concurrent.Ref import cats.syntax.all._ import coop.rchain.catscontrib.TaskContrib._ import coop.rchain.metrics.{Metrics, NoopSpan, Span} import coop.rchain.rspace.examples.StringExamples.implicits._ import coop.rchain.rspace.examples.StringExamples.{Pattern, Wildcard} imp...
bogovicj/n5-spark
src/test/java/org/janelia/saalfeldlab/n5/spark/downsample/scalepyramid/N5OffsetScalePyramidSparkTest.java
<reponame>bogovicj/n5-spark<gh_stars>0 package org.janelia.saalfeldlab.n5.spark.downsample.scalepyramid; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.List; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaSparkContext;...
NieckarzW/project-ewa-janusz-wieslaw
src/test/java/pl/coderstrust/generators/CompanyGenerator.java
<reponame>NieckarzW/project-ewa-janusz-wieslaw package pl.coderstrust.generators; import pl.coderstrust.model.Company; public class CompanyGenerator { public static Company getRandomCompany() { long id = IdGenerator.getNextId(); String name = WordGenerator.getRandomWord(); String address = WordGenerato...
alibitek/engine
shell/common/null_platform_view.h
// Copyright 2017 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. #ifndef COMMON_NULL_PLATFORM_VIEW_H_ #define COMMON_NULL_PLATFORM_VIEW_H_ #include "flutter/shell/common/platform_view.h" #include "lib/fxl/macros.h" #in...
Chicago-R-User-Group/2017-n3-Meetup-RStudio
packrat/lib/x86_64-pc-linux-gnu/3.2.5/RcppArmadillo/include/armadillo_bits/fn_qz.hpp
// Copyright (C) 2015-2016 National ICT Australia (NICTA) // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. // -----------------------------------------------------...
bingo1118/zhongda
app/src/main/java/com/smart/cloud/fire/activity/Functions/adapter/MainAdapter.java
<filename>app/src/main/java/com/smart/cloud/fire/activity/Functions/adapter/MainAdapter.java package com.smart.cloud.fire.activity.Functions.adapter; import android.content.Context; import android.content.Intent; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater...
Cvencent/TransCloud
transcloud-gateway-zuul/src/test/java/com/vencent/transcloudgatewayzuul/TranscloudGatewayZuulApplicationTests.java
package com.vencent.transcloudgatewayzuul; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class TranscloudGatewayZuulApplicationTests { @Test void contextLoads() { } }
sandsmark/qt1
src/compat/qsocknot.h
<filename>src/compat/qsocknot.h #ifndef QSOCKNOT_H #define QSOCKNOT_H #include "qsocketnotifier.h" #endif
oxelson/gempak
gempak/source/cgemlib/cds/cdsjet.c
<gh_stars>10-100 #include "geminc.h" #include "gemprm.h" #include "drwids.h" #include "cds.h" void cds_jet ( VG_DBStruct *el, int indx, int *iret ) /************************************************************************ * cds_jet * * * * This function displays a jet element to the output device. *...
ylywyn/go-pusher
src/im/service/logic/models/utils/redis.go
/******************************************************************* * Copyright(c) 2015-2016 Company Name * All rights reserved. * * File : redis.go * Date : * Author : yangl * Description: ******************************************************************/ package utils import ( "errors" "time" ...
cmu-db/cmdbac
core/crawlers/basecrawler.py
import os, sys sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, "core")) import utils from library.models import * class BaseCrawler(object): def __init__(self, crawlerStatus, auth = None): self.crawlerStatus = crawlerSt...
gordon-ansell/greenfedora
src/template/shortcodes/videolink.js
<gh_stars>0 /** * Please refer to the following files in the root directory: * * README.md For information about the package. * LICENSE For license details, copyrights and restrictions. */ 'use strict'; const { syslog, NunjucksShortcode } = require("greenfedora-utils"); /** * Video link shortco...
xcasadio/casaengine
external/CEGUI/CEGUI/XMLParserModules/Xerces/XMLParserProperties.h
/*********************************************************************** filename: CEGUIXercesParserProperties.h created: 27/03/2009 author: <NAME> *************************************************************************/ /**************************************************************************...