repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
IceBotYT/cas
pkg/extractor/wildcard/wildcard_test.go
<filename>pkg/extractor/wildcard/wildcard_test.go package wildcard import ( "log" file2 "github.com/codenotary/cas/pkg/extractor/file" "io/ioutil" "os" "path/filepath" "testing" "github.com/codenotary/cas/pkg/uri" "github.com/stretchr/testify/assert" ) func TestWildcard(t *testing.T) { file, err := ioutil...
spacekpe/SoftHSMv2
src/bin/util/softhsm2-util-ossl.cpp
/* * Copyright (c) 2010 .SE (The Internet Infrastructure Foundation) * 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 *...
C0PEP0D/sheld0n
cases/surfers_in_channel_flow_z/param/env/objects/static/surfer__us_0o8__surftimeconst_2o5/group/homogeneous/_member/agent/_behaviour/_sensor/velocity_gradients/choice.h
<filename>cases/surfers_in_channel_flow_z/param/env/objects/static/surfer__us_0o8__surftimeconst_2o5/group/homogeneous/_member/agent/_behaviour/_sensor/velocity_gradients/choice.h #ifndef C0P_PARAM_OBJECTS_SURFER__US_0O8__SURFTIMECONST_2O5_GROUP_HOMOGENEOUS_MEMBER_AGENT_BEHAVIOUR_SENSOR_VELOCITY_GRADIENTS_CHOICE_H #def...
risnadesmayanti/program2-spk
inoerp/modules/inv/serial_transaction/serial_transaction.js
<reponame>risnadesmayanti/program2-spk function setValFromSelectPage(inv_serial_number_id, serial_number) { this.inv_serial_number_id = inv_serial_number_id; this.serial_number = serial_number; } setValFromSelectPage.prototype.setVal = function() { if (this.inv_serial_number_id) { $("#inv_serial_number_id").val(t...
franblas/NAOC
src/main/scala/handlers/server/Dialog.scala
package handlers.server import handlers.GameClient import handlers.packets.{PacketWriter, ServerCodes} import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future /** * Created by franblas on 15/04/17. */ class Dialog(code: Int, data1: Int, data2: Int, data3: Int, data4: Int, dialogT...
CATION-M/X-moe
Projects/kirikiri2-master/kirikiri2/src/plugins/win32/javascript/tjsbase.h
#ifndef __TJSBASE_H__ #define __TJSBASE_H__ #include <windows.h> #include "tp_stub.h" #include <include/v8.h> using namespace v8; #define TJSINSTANCENAME L"__tjsinstance__" class TJSBase { public: TJSBase(const tTJSVariant &variant) : variant(variant) {} virtual ~TJSBase() {}; void wrap(Isolate *isolate, Local<Ob...
zegl-testar/sturdy
api/pkg/users/module/oss.go
<gh_stars>0 //go:build !enterprise && !cloud // +build !enterprise,!cloud package module import ( "getsturdy.com/api/pkg/di" avatars_module "getsturdy.com/api/pkg/users/avatars/module" "getsturdy.com/api/pkg/users/db" "getsturdy.com/api/pkg/users/graphql" oss_selfhosted_service "getsturdy.com/api/pkg/users/oss/s...
giantswarm/endpoint-operator
service/resource/endpoint/update.go
package endpoint import ( "context" "github.com/giantswarm/microerror" "github.com/giantswarm/operatorkit/framework" apiv1 "k8s.io/client-go/pkg/api/v1" ) func (r *Resource) ApplyUpdateChange(ctx context.Context, obj, updateState interface{}) error { k8sEndpoint, err := toK8sEndpoint(updateState) if err != nil...
p2pu/learning-circles
api/schema.py
import phonenumbers import re from datetime import datetime from decimal import Decimal # Validators should return a function that takes the value as argument # and return a tuple (value, error) with error being None if the user # supplied data is correct # Validators should also convert the data to the correct type ...
matty234/client
shared/chat/selectable-small-team-container.js
// @flow import * as Constants from '../constants/chat2' import * as Types from '../constants/types/chat2' import SelectableSmallTeam from './selectable-small-team' import {namedConnect} from '../util/container' type OwnProps = {| conversationIDKey: Types.ConversationIDKey, filter?: string, numSearchHits?: numbe...
project-kotinos/mlibrary___fishrappr
app/views/catalog/old_home.rb
#redirect_to uri -> :url => "#{@publication}/home.rb"
openpreserve/scape
xa-pit/src/main/java/eu/planets_project/clients/ws/PlanetsServiceExplorer.java
package eu.planets_project.clients.ws; import java.net.URL; import java.util.HashMap; import java.util.logging.Logger; import javax.xml.namespace.QName; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.ws...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/StoreServices.framework/SSUpdatesDatabaseSchema.h
<filename>PrivateFrameworks/StoreServices.framework/SSUpdatesDatabaseSchema.h /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices */ @interface SSUpdatesDatabaseSchema : NSObject + (void)_migrate7000to7001InDatabase:(id)arg1; + (void)createSchemaInDatabase...
IAmAFrenchFry/the-thunderhead
commands/dev.give.js
const Discord = require("discord.js"); const fs = require("graceful-fs"); var eco = require('discord-economy'); const config = require("../static/config.json"); module.exports.run = async (client, message, args) => { if (config.sudo.indexOf(message.author.id) < 0) return; // Dev Only var recipient = messag...
myleandrov/YogeshPateliOS
gruul/gruul-common-open/gruul-common-base-open/src/main/java/com/medusa/gruul/common/core/util/DateUtils.java
package com.medusa.gruul.common.core.util; import cn.hutool.core.date.DateTime; import cn.hutool.core.date.DateUtil; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.ZoneOffset; /** * @author whh */ public class DateUtils { public static LocalDateTime timestampCoverLocalDateTime(long ...
gtrdp/social-density-estimation
speakercount/src/de/fau/cs/jstk/framed/MVN.java
<reponame>gtrdp/social-density-estimation<filename>speakercount/src/de/fau/cs/jstk/framed/MVN.java /* Copyright (c) 2009-2011 Speech Group at Informatik 5, Univ. Erlangen-Nuremberg, GERMANY <NAME> <NAME> This file is part of the Java Speech Toolkit (JSTK). The JSTK is free software: you can redistribute it a...
thibaultmeyer/chip8-emulator
src/gui/gui_settings_callback_btn_input_key.c
#include "gui.h" #include "gui_image_logo.h" static gboolean apply_new_binding(GtkWidget *widget, GdkEventKey *event, s_gui_key_binding_context *key_binding_ctx) { // Set new value gl_gui_settings.keybinding[key_binding_ctx->key_idx] = event->keyval; // Change button label gtk_button_set_label(GTK_BUT...
kubeform/provider-oci-api
client/informers/externalversions/factory.go
/* Copyright AppsCode Inc. and Contributors 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 writing...
GV-KrishnaTeja/Node-JS
webServer/web-1.js
const express= require('express') //initaiting express library const app = express() app.get('',(req,res) =>{ res.send('HELLO WELCOME TO NODE JS') }) app.get('/help',(req,res) =>{ res.send('WELCOME TO HELP PAGE !!!!') }) app.get('/about',(req,res)=>{ res.send('ALL THIS ABOUT PAGE') }) app.get('/weath...
geoff5802/liftie
lib/resorts/mt-buller/index.js
<gh_stars>10-100 module.exports = { selector: 'tr[id^="lift"]', parse: { name: '0/2', status: '2/0/1' } };
gregorias/dfuntest
core/src/main/java/me/gregorias/dfuntest/App.java
<filename>core/src/main/java/me/gregorias/dfuntest/App.java package me.gregorias.dfuntest; import java.io.IOException; /** * This type represents tested applications. * * It acts as proxy to a real, possibly remote, application. * * @author <NAME> * */ public abstract class App<EnvironmentT extends Environment...
jericks/geoserver-shell
src/test/java/org/geoserver/shell/CoverageStoreCommandsTest.java
<gh_stars>10-100 package org.geoserver.shell; import org.glassfish.grizzly.http.Method; import org.glassfish.grizzly.http.util.HttpStatus; import org.junit.Test; import org.springframework.shell.support.util.OsUtils; import java.io.File; import java.util.Map; import static com.xebialabs.restito.builder.stub.StubHttp...
jpuri/Editr
packages/embed/embed.js
const axios = require("axios").default; export default (url) => new Promise((resolve, reject) => { try { const parsedUrl = new URL(url); const { host } = parsedUrl; if (host.includes("vimeo.com")) { axios .get(`https://vimeo.com/api/oembed.json?url=${url}`) .then((re...
okian/servo
lg/interface.go
<filename>lg/interface.go package lg import "context" type Interface interface { Name() string Info(args ...interface{}) Debug(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Panic(args ...interface{}) Fatal(args ...interface{}) Infof(template string, args ...interface{}) Debugf(tem...
xiaomingsea/javapasswordsafe
PasswordSafeLib/src/test/java/org/pwsafe/lib/file/PwsFileV3Test.java
<gh_stars>1-10 /* * $Id$ * Copyright (c) 2008-2014 <NAME> <<EMAIL>>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ ...
hao-wang/Montage
js-test-suite/testsuite/6f7acfa2223c0f2e869de5275a5deb39.js
function foo() { return fiatInt52(Math.sqrt(2)) + 1; } noInline(foo); for (var i = 0; i < 1000000; ++i) { var result = foo(); if (result != Math.sqrt(2) + 1) throw "Error: bad result: " + result; }
devent/anl-opencl
anlopencl-jme3-app-view/src/main/java/com/anrisoftware/anlopencl/jmeapp/view/actors/ViewActor.java
<filename>anlopencl-jme3-app-view/src/main/java/com/anrisoftware/anlopencl/jmeapp/view/actors/ViewActor.java<gh_stars>1-10 /* * Copyright (C) 2021 <NAME> <<EMAIL>> * Released as open-source under the Apache License, Version 2.0. * * **************************************************************************** * ANL...
galperins4/ARK-Python
park/api/delegate.py
<filename>park/api/delegate.py<gh_stars>1-10 #!/usr/bin/env python from park.api.api import API class Delegate(API): def count(self): return self.get('api/delegates/count') def search(self, query, parameters={}): return self.get('api/delegates/search', {**{"q": query}, **parameters}) de...
DeltaEngine/DeltaEngineCpp
Hypodermic/ContainerBuilder.hpp
<gh_stars>1-10 #ifdef HYPODERMIC_CONTAINER_BUILDER_H_ # ifndef HYPODERMIC_CONTAINER_BUILDER_HPP_ # define HYPODERMIC_CONTAINER_BUILDER_HPP_ # include <type_traits> # include <Hypodermic/RegistrationBuilderFactory.h> # include <Hypodermic/RootScopeLifetime.h> namespace Hypodermic { template <class T>...
bozhidarbozhilov/softuni-projects-java
Databases Frameworks - Hibernate & Spring Data October 2018/jsonprocessingexercises/src/main/java/app/models/dto/Query4Dto.java
<filename>Databases Frameworks - Hibernate & Spring Data October 2018/jsonprocessingexercises/src/main/java/app/models/dto/Query4Dto.java package app.models.dto; import app.models.entities.User; import org.modelmapper.AbstractConverter; import org.modelmapper.Converter; import org.modelmapper.ModelMapper; import java...
ScalablyTyped/SlinkyTyped
a/activex-libreoffice/src/main/scala/typingsSlinky/activexLibreoffice/com_/sun/star/frame/XDocumentTemplates.scala
<reponame>ScalablyTyped/SlinkyTyped package typingsSlinky.activexLibreoffice.com_.sun.star.frame import typingsSlinky.activexLibreoffice.`type` import typingsSlinky.activexLibreoffice.com_.sun.star.ucb.XContent import typingsSlinky.activexLibreoffice.com_.sun.star.uno.XInterface import org.scalablytyped.runtime.StObje...
imaxfp/practical-understanding-concurrency
src/main/java/com/understand/concurrency/task2_1/Main.java
package com.understand.concurrency.task2_1; import java.util.LinkedList; import java.util.Queue; import java.util.logging.Logger; public class Main { public static void main(String[] args) { Logger.getGlobal().info("Solving Producer/Consumer Problem with 'wait()' 'notify()' implementation"); // ...
brianchowlab/BcLOV4-FEM
FELICITY/Static_Codes/AHF/src_code/Mesh.cc
/* ============================================================================================ Class for array based half-facet (AHF) data structure. This is a sub-class of BaseMesh which stores a *pointer* to a BasePtCoord object. This way, many different meshes, of varying topological dimension, can share...
quanpands/wflow
pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_spatialpacking.cc
<filename>pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_spatialpacking.cc #ifndef INCLUDED_STDDEFX #include "stddefx.h" #define INCLUDED_STDDEFX #endif #ifndef INCLUDED_CALC_SPATIALPACKING #include "calc_spatialpacking.h" #define INCLUDED_CALC_SPATIALPACKING #endif // Library headers. // P...
Jaikant/tech47-www
src/pages/open-positions.js
import React from 'react'; import styled from '@emotion/styled'; import { Link, ArrowButton, Email } from '../components/Common'; import OpenPosition from '../components/OpenPosition'; import openpositions from '../data/positions.js'; import { MainDiv } from '../components/Layout'; const Wrapper = styled.div` displa...
bef178/pd
src/pd/json/simplejson/SimpleJsonNumber.java
package pd.json.simplejson; import pd.fenc.TextNumber; import pd.json.type.IJsonNumber; public class SimpleJsonNumber extends TextNumber implements IJsonNumber { /** * */ private static final long serialVersionUID = 1L; public SimpleJsonNumber() { super(); } @Override public...
xfslove/extensible-sheet
src/main/java/spreadsheet/mapper/w2o/validation/validator/cell/buildin/NumberScaleRangeValidator.java
<reponame>xfslove/extensible-sheet package spreadsheet.mapper.w2o.validation.validator.cell.buildin; import org.apache.commons.lang3.math.NumberUtils; import spreadsheet.mapper.model.core.Cell; import spreadsheet.mapper.model.meta.FieldMeta; import spreadsheet.mapper.w2o.param.NumberScaleRangeParam; import spreadsheet...
onberry/HowToProgram
src/chapter6/Ch631_GuessANumberModified.java
<gh_stars>0 package chapter6; import java.util.Random; import java.util.Scanner; /** * Created by ola on 9/10/17. * Java. How to program P&H Deitel * Exercise 6.31 * Number guessing game with counter. (Binary search like) */ public class Ch631_GuessANumberModified { Random r = new Random(); private int...
diptu/Teaching
CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/9.Queue(Linked List)/main(12).cpp
<reponame>diptu/Teaching<filename>CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/9.Queue(Linked List)/main(12).cpp #include <iostream> #include "quetype.cpp" using namespace std; int main() { QueType<int> qt; int num, temp; if(qt.IsEmpty()) { cout<<"queue...
ckamtsikis/cmssw
FastSimulation/TrackingRecHitProducer/interface/TrackingRecHitAlgorithm.h
#ifndef FastSimulation_TrackingRecHitProducer_TrackingRecHitAlgorithm_H #define FastSimulation_TrackingRecHitProducer_TrackingRecHitAlgorithm_H #include "DataFormats/TrackerCommon/interface/TrackerTopology.h" #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h" #include "FWCore/Framework/interface/Pr...
stackrox/stackrox
central/compliance/datastore/singleton.go
package datastore import ( "github.com/stackrox/rox/central/compliance/datastore/internal/store" "github.com/stackrox/rox/central/compliance/datastore/internal/store/rocksdb" "github.com/stackrox/rox/central/globaldb" "github.com/stackrox/rox/pkg/sync" ) var ( once sync.Once dsInstance DataStore ) // Sin...
opensourcegamedev/SpaceChaos
game/src/main/java/dev/game/spacechaos/game/entities/component/ai/EnemyShuttleAIComponent.java
<gh_stars>10-100 package dev.game.spacechaos.game.entities.component.ai; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.math.Vector2; import dev.game.spacechaos.engine.entity.BaseComponent; import dev.game.spacechaos.engine.entity.Entity; import dev.game.spacechaos.engine.entity.IUpdateComponent; i...
lrxcy/opscloud4
opscloud-common/src/main/java/com/baiyi/opscloud/common/exception/BusinessErrorCodeEnum.java
package com.baiyi.opscloud.common.exception; import org.apache.commons.lang3.StringUtils; /** * @Author baiyi * @Date 2020/4/19 12:20 下午 * @Version 1.0 */ public enum BusinessErrorCodeEnum implements ErrorCode{ UNSPECIFIED("500", "网络异常,请稍后再试"); /** 错误码 */ private final String code; /** 描述 */ ...
Ahmad138/satRot
docs/SatRot-GUI_2GUI-Main_2src_2main_8cpp.js
var SatRot_GUI_2GUI_Main_2src_2main_8cpp = [ [ "main", "SatRot-GUI_2GUI-Main_2src_2main_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97", null ] ];
rc-dukes/dukes
rc-car/src/test/java/org/rcdukes/car/TestCar.java
package org.rcdukes.car; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import org.junit.Test; import org.rcdukes.car.CarVerticle; import org.rcdukes.common.ClusterStarter; import org.rcdukes.common.Environment; import org.rcdukes.common.ServoPosition; import org.rcdukes.c...
DennisMerkus/Aether
ai/conversation/base.py
<filename>ai/conversation/base.py<gh_stars>0 # Greet a character appropriately to roles/politeness/time of day # Ask a question based on some unknown piece of information # Give some information based on a question/belief of someone wanting some information
chlunde/origin
pkg/deploy/registry/test/deployconfig.go
package test import ( "sync" "github.com/openshift/origin/pkg/deploy/api" metainternal "k8s.io/apimachinery/pkg/apis/meta/internalversion" "k8s.io/apimachinery/pkg/fields" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/watch" apirequest "k8s.io/apiserver/pkg/endpoints/request" ) type DeploymentConf...
felipegutierrez/flink
flink-runtime/src/main/java/org/apache/flink/runtime/controller/PreAggregateSignalsListener.java
package org.apache.flink.runtime.controller; import org.fusesource.mqtt.client.BlockingConnection; import org.fusesource.mqtt.client.MQTT; import org.fusesource.mqtt.client.Message; import org.fusesource.mqtt.client.QoS; import org.fusesource.mqtt.client.Topic; import java.util.HashMap; import java.util.Map; import j...
kanwals/core
broker/pipeline.go
package broker import ( "context" "fmt" "io" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "go.gazette.dev/core/broker/fragment" pb "go.gazette.dev/core/broker/protocol" ) // pipeline is an in-flight write replication pipeline of a journal. type pipeline struct { pb.Header ...
TUD-KInD/COCTEAU
COCTEAU/src/main/java/Application/Domain/Credentials.java
<filename>COCTEAU/src/main/java/Application/Domain/Credentials.java<gh_stars>1-10 package Application.Domain; import javax.persistence.Column; import javax.persistence.MappedSuperclass; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; /** * Credentials is the class that maps...
openenergysolutions/modbus-cpp
lib/tests/unit/messages/WriteSingleRegisterResponseImplTest.cpp
<gh_stars>1-10 /* * Copyright 2017-2018 Duke Energy Corporation and Open Energy Solutions, 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/LIC...
mdsarfarazalam840/camunda-bpm-platform
engine/src/test/java/org/camunda/bpm/engine/test/api/authorization/history/AuthorizationUserOperationLogTest.java
<gh_stars>1000+ /* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, ...
luis-vera-pomez/effective_orders
app/models/effective/access_denied.rb
unless defined?(Effective::AccessDenied) module Effective class AccessDenied < StandardError attr_reader :action, :subject def initialize(message = nil, action = nil, subject = nil) @message = message @action = action @subject = subject end def to_s @messa...
rocksolidwebdesign/eparc
token/include/myc/toks.h
#ifndef MYC_LEXER_TOKEN_LIST_H #define MYC_LEXER_TOKEN_LIST_H #include "myc/toks_t.h" #include "myc/token_t.h" #include <stdlib.h> myc_Toks_p myc_toks_create(const size_t len); myc_Toks_p myc_toks_new(); myc_Toks_p myc_toks_alloc(); myc_Toks_p myc_toks_resize( myc_Toks_p A, const size_t sz); myc_Toks_p myc...
damongreen123/fpl-ccd-configuration
service/src/main/java/uk/gov/hmcts/reform/fpl/model/children/ChildFinalDecisionDetails.java
<reponame>damongreen123/fpl-ccd-configuration package uk.gov.hmcts.reform.fpl.model.children; import lombok.Builder; import lombok.Value; import lombok.extern.jackson.Jacksonized; import uk.gov.hmcts.reform.fpl.enums.ccd.fixedlists.ChildFinalDecisionReason; @Value @Builder @Jacksonized public class ChildFinalDecision...
Sciss/pickling
core/src/test/scala/pickling/run/vector-int.scala
package scala.pickling.vector.int import org.scalatest.FunSuite import scala.pickling._, scala.pickling.Defaults._, binary._ class VectorIntTest extends FunSuite { test("main") { val v = Vector(1, 2, 3) val pickle = v.pickle val expected0 = "BinaryPickle([0,0,0,44,115,99,97,108,97,46,99,111,108,108,101,...
ez-deploy/ezdeploy
handle/handle.go
package handle import ( "log" "github.com/ez-deploy/ezdeploy/handle/db" "github.com/ez-deploy/ezdeploy/handle/k8s" "github.com/ez-deploy/ezdeploy/handle/project" "github.com/ez-deploy/ezdeploy/handle/rbac" "github.com/ez-deploy/ezdeploy/handle/service" "github.com/ez-deploy/ezdeploy/handle/ticket" "github.com...
lucky7323/backprop
tests/test_tasks.py
from backprop import Emotion, ImageClassification, QA, Summarisation, TextClassification, TextGeneration, TextVectorisation import numpy as np import torch import os qa_example = { "q1": "Where does Sally live?", "q2": "How long has Sally lived in London?", "q2_conv": "How long has she lived there?", "...
zhangxiaoyi090416/ccf
noi0105/35.cpp
<filename>noi0105/35.cpp<gh_stars>0 // 求出e的值【1.5编程基础之循环控制32】 // 利用公式e = 1 + 1/1! + 1/2! + 1/3! + ... + 1/n! ,求e的值,要求保留小数点后10位。 // 输入: // 输入只有一行,该行包含一个整数n(2<=n<=15),表示计算e时累加到1/n!。 // 输出: // 输出只有一行,该行包含计算出来的e的值,要求打印小数点后10位。 // 样例输入: // 10 // 样例输出: // 2.7182818011 #include <iostream> #include <iomanip>...
geekyfox90/SolARFramework
interfaces/api/solver/pose/I2DTransformFinder.h
<gh_stars>1-10 /** * @copyright Copyright (c) 2017 B-com http://www.b-com.com/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
uuk0/mcpython-4
chat/command/CommandEntry.py
"""mcpython - a minecraft clone written in python licenced under MIT-licence authors: uuk, xkcdjerry original game by forgleman licenced under MIT-licence minecraft by Mojang blocks based on 1.14.4.jar of minecraft, downloaded on 20th of July, 2019""" import globals as G from chat.command.Command import ParseType c...
RahatIbnRafiq/CyberbullyingAndroidAppOngoing
app/src/main/java/com/example/cybersafetyapp/HelperClassesPackage/ServerWorks.java
package com.example.cybersafetyapp.HelperClassesPackage; import android.util.Log; import com.example.cybersafetyapp.UtilityPackage.IntentSwitchVariables; import com.example.cybersafetyapp.UtilityPackage.UtilityVariables; import org.json.JSONArray; import org.json.JSONObject; import java.io.BufferedInputStream; impo...
rmnick/job4j
chapter_009/src/main/java/ru/job4j/foodstorage/food/Food.java
<reponame>rmnick/job4j package ru.job4j.foodstorage.food; import java.sql.Date; import java.time.LocalDateTime; public class Food { public final double price; public final LocalDateTime createDate; public final LocalDateTime expireDate; protected int discount; public final String name; public ...
ComputerSystemsLab/OptimizationCache
benchmarks/Angha_original/extr_sign_xmain/extr_sign_xmain.c
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
youngzhu/golab
dave/fund/channel/c5/main.go
<filename>dave/fund/channel/c5/main.go package main func main() { var c = make(chan int, 100) for i := 0; i < 10; i++ { go func() { for j := 0; j < 10; j++ { c <- i * j } close(c) }() } for i := range c { println(i) } }
SapphireSuite/Engine
Tests/UnitTests/Maths/Space/Vector3Tests.cpp
<gh_stars>1-10 // Copyright (c) 2021 Sapphire Development Team. All Rights Reserved. #include <UnitTestHelper> #include <SA/Maths/Space/Vector2.hpp> #include <SA/Maths/Space/Vector3.hpp> #include <SA/Maths/Space/Vector4.hpp> using namespace Sa; namespace Sa::Vector3_UT { Vec3f Generate() { return Vec3f(UTH::Rand...
vespa-mrs/vespa
vespa/interfaces/cli_batch/analysis_cli_fructose.py
# Python modules import os import sys # 3rd party modules # Our modules import vespa.analysis.mrs_dataset as mrs_dataset import vespa.analysis.block_prep_timeseries as block_prep_timeseries import vespa.analysis.util_import as util_import import vespa.analysis.fileio.dicom_siemens_timeseries as fileio_dicom_siemens...
MewX/contendo-viewer-v1.6.3
org/apache/pdfbox/pdmodel/interactive/form/PlainText.java
/* */ package org.apache.pdfbox.pdmodel.interactive.form; /* */ /* */ import java.io.IOException; /* */ import java.text.AttributedCharacterIterator; /* */ import java.text.AttributedString; /* */ import java.text.BreakIterator; /* */ import java.util.ArrayList; /* */ import java.util.A...
subramp-prep/leetcode
problems/024.Swap_Nodes_in_Pairs/AC_simulation_n.cpp
<reponame>subramp-prep/leetcode<filename>problems/024.Swap_Nodes_in_Pairs/AC_simulation_n.cpp<gh_stars>0 /* * Author: illuz <<EMAIL>[at]<EMAIL>> * File: AC_simulation_n.cpp * Create Date: 2014-12-23 14:22:07 * Descripton: simulation: add a new node in the head first */ #include <bits/stdc++.h> using ...
daoshengtech/rongcloud-uniapp-imlib
iOS/RCUniIM/RCUniIM/frameworks/RongIMLibCore.xcframework/ios-i386_x86_64-simulator/RongIMLibCore.framework/Headers/RCGroupMessageReaderV2.h
<filename>iOS/RCUniIM/RCUniIM/frameworks/RongIMLibCore.xcframework/ios-i386_x86_64-simulator/RongIMLibCore.framework/Headers/RCGroupMessageReaderV2.h // // RCMessageReadUser.h // RongIMLibCore // // Created by RongCloud on 2021/2/22. // Copyright © 2021 RongCloud. All rights reserved. // #import <Foundation/Founda...
michelle714/paprika
packages/Popover/stories/examples/StateValue.js
<gh_stars>10-100 import React from "react"; import Button from "@paprika/button"; import { Gap } from "storybook/assets/styles/common.styles"; import Popover from "../../src"; export default function StateValue() { return ( <> <p> For an uncontrolled <code>&lt;Popover&gt;</code>, if you use a rende...
pavlitsky/vscode-yard
src/test/project/constant/constant_expected.rb
<reponame>pavlitsky/vscode-yard # @return [<Type>] <description> FOO_BAR='baz'.freeze
Rc-Cookie/Engine2D
src/main/java/com/github/rccookie/engine2d/online/MessageType.java
<filename>src/main/java/com/github/rccookie/engine2d/online/MessageType.java package com.github.rccookie.engine2d.online; /** * Type of message between server and client. */ public enum MessageType { /** * Message from the server to all clients. */ SERVER_TO_CLIENT, /** * Message from one ...
jeyavelnkl/Jel_Apps
tracks/test/helpers/rendering_helper_test.rb
require "test_helper" class RenderingHelperTest < ActionView::TestCase include RenderingHelper test "auto_link_message" do html = "This is a sample with a message - message://<123456789>. There we go." rendered_html = auto_link_message(html) assert( rendered_html.include?(%|<a href="message://&l...
pemontto/liquidpy
liquid/python/tags/tag_while.py
<reponame>pemontto/liquidpy<filename>liquid/python/tags/tag_while.py """Tag while""" import copy from .inherited import tag_manager from .tag_if import TagIf from ...tags.transformer import render_segment @tag_manager.register class TagWhile(TagIf): """The for tag Attributes: flag_break: The flag for ...
n-zer/HUDTweaks
src/main/java/com/github/burgerguy/hudtweaks/hud/element/DefaultJumpBarElement.java
<reponame>n-zer/HUDTweaks<filename>src/main/java/com/github/burgerguy/hudtweaks/hud/element/DefaultJumpBarElement.java package com.github.burgerguy.hudtweaks.hud.element; import com.github.burgerguy.hudtweaks.hud.HTIdentifier; import com.github.burgerguy.hudtweaks.util.Util; import net.minecraft.client.MinecraftClient...
clemensgg/comdex
x/vault/keeper/msg_server.go
<filename>x/vault/keeper/msg_server.go package keeper import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/comdex-official/comdex/x/vault/types" ) var ( _ types.MsgServiceServer = (*msgServer)(nil) ) type msgServer struct { Keeper } func NewMsgServiceServer(keeper Keeper) types.MsgServiceS...
Nickel-Angel/ACM-and-OI
AtCoder/ABC215A.cpp
/* * @author Nickel_Angel (<EMAIL>) * @copyright Copyright (c) 2022 */ #include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <vector> using std::min; using std::max; using std::sort; using std::swap; using std::vector; using std::pair; typedef long long ll; char s[20], t[] = "Hello,Wor...
XXL6/resticweb
resticweb/blueprints/repositories/forms.py
<reponame>XXL6/resticweb from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, SubmitField, ValidationError, \ SelectField, TextAreaField, HiddenField, BooleanField from resticweb.tools.local_session import LocalSession from resticweb.models.general import Repository, RepositoryType from wt...
AllRoundeer/Keil
C51/Examples/ST uPSD/upsd3300/DK3300-ELCD/EEPROM_emul/eeprom_emul_demo.c
/*------------------------------------------------------------------------------ eeprom_emul_DEMO.c Version: 9/08/2004 - Ver 1.0 - Initial release. Description: Simple EEPROM Emulation Demo code for uPSD33xx. This demo loops forever writing an incrementing value to the emulated EEPROM contents. Upon reset, the fla...
RunsFor/cartridge-cli
cli/commands/status.go
package commands import ( "fmt" "github.com/apex/log" "github.com/spf13/cobra" "github.com/tarantool/cartridge-cli/cli/running" ) func init() { var statusCmd = &cobra.Command{ Use: "status [INSTANCE_NAME...]", Short: "Get instance(s) status", Long: fmt.Sprintf("Get instance(s) status\n\n%s", runningCo...
porames25/xray-oxygen
code/engine.vc2008/xrRender/xrRender/xrD3DDefs.h
#pragma once #ifdef USE_DX11 # include "..\xrRenderDX10\DXCommonTypes.h" #else typedef IDirect3DVertexShader9 ID3DVertexShader; typedef IDirect3DPixelShader9 ID3DPixelShader; typedef ID3DXBuffer ID3DBlob; typedef D3DXMACRO D3D_SHADER_MACRO; typedef IDirect3DQuery9 ID3DQuery; typedef D3DVIEWPORT9 D3D_VIEWP...
xillio/xill-platform
plugin-document/src/main/java/nl/xillio/xill/plugins/mongodb/services/serializers/MongoRegexSerializer.java
<reponame>xillio/xill-platform<gh_stars>1-10 /** * Copyright (C) 2014 Xillio (<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 * * http://www.apache.org/licenses/LICENS...
MacHu-GWU/Dev-Exp-Share
docs/source/01-AWS/07-Analytics/07-ElasticSearch-Service/python-api/s3_search_by_filter.py
<reponame>MacHu-GWU/Dev-Exp-Share # -*- coding: utf-8 -*- """ **中文文档** - ES 数据类型文档: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html """ import connect from datetime import datetime from elasticsearch_dsl import ( Index, Document, Integer, Float, Date, Text, ) from superjson im...
a8uhnf/pack
vendor/github.com/kubepack/onessl/cmds/get_kube_ca.go
<filename>vendor/github.com/kubepack/onessl/cmds/get_kube_ca.go package cmds import ( "fmt" "io/ioutil" "os" "github.com/pkg/errors" "github.com/spf13/cobra" "k8s.io/client-go/tools/clientcmd" ) // kubectl config view --minify=true --flatten -o json | onessl jsonpath '{.clusters[0].cluster.certificate-authorit...
wkoszek/book-programming-ruby
src/ex0227.rb
# Sample code from Programing Ruby, page 92 artist = "<NAME>" use_nicknames = "yes" if artist == "<NAME>" artist = "'Trane" end unless use_nicknames == "no"
LeoWshington/Exercicios_CursoEmVideo_Python
ex056.py
<reponame>LeoWshington/Exercicios_CursoEmVideo_Python sidade = 0 hidade = 0 conth = 0 contm = 0 nomeh = '' for c in range(1, 5): nome = str(input(f'=-=-=-=-=- DADOS {c}ª PESSOA -=-=-=-=-=' f'Digite o nome da pessoa: ')).lower().strip() idade = int(input('Digite a idade da pessoa: ')) se...
jeffrey-io/farmcron
src/main/java/farm/bsg/wake/sources/Source.java
/* * Copyright 2014 <NAME>; see LICENSE for more details */ package farm.bsg.wake.sources; import java.util.Set; import java.util.function.BiConsumer; /** * A source is basically a very special key value pair map where we lazily enable redefinition of the map. * <p> * The idea is that you can ask a so...
reels-research/iOS-Private-Frameworks
Celestial.framework/BWInferenceVideoRequirement.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/Celestial.framework/Celestial */ @interface BWInferenceVideoRequirement : BWInferenceMediaRequirement <NSCopying> { BWInferenceVideoFormat * _videoFormat; } @property (nonatomic, readonly) BWInferenceVideoFormat *videoFormat; - (id)copyW...
michaelbeaumont/goformation
cloudformation/aws-s3-bucket_accesscontroltranslation.go
package cloudformation import ( "encoding/json" ) // AWSS3Bucket_AccessControlTranslation AWS CloudFormation Resource (AWS::S3::Bucket.AccessControlTranslation) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-accesscontroltranslation.html type AWSS3Bucket_AccessControlT...
DanielFran/jhipster-bot
lib/export/app_description_file_writer.js
'use strict'; const fs = require('fs'), exec = require('child_process').execSync; module.exports = { write: write, remove: remove }; /** * args: { * directory: string, * applicationDescription: Object * } */ function write(args) { var fileName = '.yo-rc.json'; if(args.directory && !fs.existsSy...
twmicro/BedrockLanguage
build/tmp/expandedArchives/forge-1.16.2-33.0.5_mapped_snapshot_20200514-1.16-sources.jar_9d07f867eb9352dbb54585a794282e64/net/minecraft/world/gen/feature/LakesFeature.java
<gh_stars>0 package net.minecraft.world.gen.feature; import com.mojang.serialization.Codec; import java.util.Random; import net.minecraft.block.BlockState; import net.minecraft.block.Blocks; import net.minecraft.block.material.Material; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.SectionPos...
dominathan/node-fhir-server-core
src/server/profiles/sequence/sequence.arguments.js
/** * @name exports * @description All the possible arguments defined in one place */ module.exports = { CHROMOSOME: { name: 'chromosome', type: 'token', definition: 'https://www.hl7.org/fhir/searchparameter-registry.html#sequence', documentation: 'Chromosome number of the reference sequence', }, COORDIN...
dymmeh/mil-sym-android
buildSrc/src/main/java/armyc2/c2sd/xml/parser/SymbolDefParser.java
package armyc2.c2sd.xml.parser; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import java.io.DataOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; public class SymbolDefParser implements BinaryWriter { privat...
Megapop/Norad-Eduapp4syria
Sima/Kukua/Classes/WatchmanScene/WatchmanSceneStateCalculator.cpp
#include "WatchmanSceneStateCalculator.h" #include "cocos2d.h" WatchmanSceneStateCalculator::WatchmanSceneStateCalculator(WatchmanScene &watchmanScene) { watchman = &watchmanScene; dataProvider = DataProvider::getInstance(); // watchman->state = dataProvider->getWatchmanState(); ...
ci-fuzz/cppcms
tests/secure_post_test.cpp
<gh_stars>100-1000 /////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2008-2012 <NAME> (Tonkikh) <<EMAIL>> // ...
roadnarrows-robotics/rnr-sdk
Eudoxus/sw/gst/rntemplate/gstrnnamefilter.h
//////////////////////////////////////////////////////////////////////////////// // // Package: Eudoxus // // SubPackage: GStreamer // // Plug-In: libgstrnnamefilter // // File: gstrnnamefilter.h // /*! \file * * $LastChangedDate: 2015-11-20 15:52:58 -0700 (Fri, 20 Nov 2015) $ * $Rev: 4213 $ * * \b...
dcabezas98/FP
Sesion15/TablaRectangularEnteros.cpp
<filename>Sesion15/TablaRectangularEnteros.cpp /* Programa que lee los datos de una matriz, indica si es simétrica o no, calcula su traspuesta y la multiplica por su traspuesta. */ #include<iostream> using namespace std; const int MAX_FILAS = 50; const int MAX_COLUMNAS = 50; class SecuenciaEnteros{ private: ...
ravewillow6383/data-structures-and-algorithms-python
challenges/array_shift/test_array_shift.py
from array_shift import insert_shift_array # def test_insert_to_middle(): # expected = [1, 2, 3] # actual = insert_shift_array([1, 3], 2) # assert expected == actual def test_insert_to_middle(): expected = [1, 2, 3, 4, 5, 6] actual = insert_shift_array([1, 2, 3, 5, 6], 4) assert ...
lakehui/Vim_config
.vim/sourceCode/glibc-2.16.0/sysdeps/ieee754/dbl-64/s_fmaf.c
<reponame>lakehui/Vim_config /* Compute x * y + z as ternary operation. Copyright (C) 2010-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> <<EMAIL>>, 2010. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of th...