repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
nabiirah/advent-of-code | 2018/day_22.py | """Advent of Code Day 22 - Mode Maze"""
def map_cave(target, depth):
"""Calculate and map the cave coordinates with padding around target."""
target_x, target_y = target
cave = {}
for y in range(target_y + 50):
for x in range(target_x + 50):
erosion_level = calculate_erosion((x, y)... |
thecodecafe/sterlin | __tests__/utils/Encryption.test.js | <reponame>thecodecafe/sterlin
require('../../configs/dotenv');
const {encrypto, decrypto} = require('../../utils/Encryption.util');
describe('<Encryption.encrypto>', () => {
describe('Encrypto', () => {
it('should encrypt a given data', () => {
expect(encrypto('string')).toBeDefined();
});
it('sho... |
wayfinder/Wayfinder-Server | Server/Servers/src/ServerRegionIDs.cpp | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 code must retain the above copyright notice, this list of condit... |
JRPerezJr/golang-course-notes | demo/pointers/pointers.go | package main
import "fmt"
type Counter struct {
hits int
}
func increment(counter *Counter) {
counter.hits += 1
fmt.Println("Counter", counter)
}
func replace(old *string, new string, counter *Counter) {
*old = new
increment(counter)
}
func main() {
counter := Counter{}
hello := "Hello"
world := "World!"
... |
xsteadfastx/hcloud-pricing-exporter | fetcher/server_backups.go | <reponame>xsteadfastx/hcloud-pricing-exporter
package fetcher
import (
"strconv"
"github.com/hetznercloud/hcloud-go/hcloud"
)
var _ Fetcher = &server{}
// NewServerBackup creates a new fetcher that will collect pricing information on server backups.
func NewServerBackup(pricing *PriceProvider) Fetcher {
return &... |
PendaRed/sackfixsessions | sf-session-common/src/main/scala/org/sackfix/session/sfSessionEvents.scala | package org.sackfix.session
import org.sackfix.common.message.SfMessage
import org.sackfix.common.validated.fields.SfFixMessageBody
import org.sackfix.field.MsgTypeField
/**
* Created by Jonathan during November 2016.
* Using Early Initialisation and a trait rather than inheritance...just to see how it w... |
lipilian/PlenopticImageProcessing | PIPInterOpCUDA/CUDADataArray.hh | /**
* Copyright 2019 <NAME>, Kiel University
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify,... |
DenitsaRP/Java-Playground | JavaBasics/strings/Anagram.java | package strings;
import java.util.Scanner;
//Write java program to check if two words are anagrams:
public class Anagram {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter first word:");
String s1 = sc.nextLine();
System.out.println("Enter seco... |
qykjsz/eta | lib_ios_dialog/src/main/java/com/allens/lib_ios_dialog/IosDialog.java | <gh_stars>1-10
package com.allens.lib_ios_dialog;
import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.view.Display;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
imp... |
SimplyVC/panic_polkadot | src/monitors/node.py | import logging
from datetime import datetime, timedelta
from typing import Optional, List
from src.alerters.reactive.node import Node
from src.alerts.alerts import FoundLiveArchiveNodeAgainAlert
from src.channels.channel import ChannelSet
from src.monitors.monitor import Monitor
from src.store.redis.redis_api import R... |
organ-xqTeam/campus-management | school-educationalAdministration/src/main/java/com/ruoyi/project/system/SchoolSpecialty/service/ISchoolSpecialtyService.java | <gh_stars>0
package com.ruoyi.project.system.SchoolSpecialty.service;
import com.ruoyi.project.system.SchoolSpecialty.domain.SchoolSpecialty;
import java.util.List;
/**
* 学校专业Service接口
*
* @author ruoyi
* @date 2020-01-14
*/
public interface ISchoolSpecialtyService
{
/**
* 查询学校专业
*... |
Viridity-Energy/vGraph | src/component/Zoom.js | <reponame>Viridity-Energy/vGraph
var makeEventing = require('../lib/Eventing.js');
class Zoom{
constructor(){
this.reset();
}
setRatio( left, right, bottom, top ){
if ( left > right ){
this.left = right;
this.right = left;
}else{
this.left = left;
this.right = right;
}
if ( top ){
if ( bo... |
blueww/azure-sdk-for-node | lib/services/batch/lib/models/jobPreparationTask.js | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
DylanSalisbury/advent-of-code-2021 | 15/util.py | """Helper functions."""
def parse_grid(n):
result = dict()
row = 0
for line in n.split('\n'):
if len(line) > 0:
for col in range(len(line)):
result[row, col] = int(line[col])
row += 1
return result
def lowest_risk_path(grid):
costs = dict()
rev_points = tuple(reversed(sorted(grid.... |
Relintai/rcpp_framework | core/renderer/opengl/texture.h | #ifndef TEXTURE_H
#define TEXTURE_H
#include "opengl.h"
#include "sdl.inc.h"
class Texture {
public:
enum TextureFilter {
TEXTURE_FILTER_NEAREST = 0,
TEXTURE_FILTER_LINEAR,
};
void load_image(const char* file_name, const int format = GL_RGB, const int internal_components = GL_RGB);
vo... |
exports-io/angular2-http | node_modules/@reactivex/rxjs/dist/es6/operators/map.js | import Subscriber from '../Subscriber';
import tryCatch from '../util/tryCatch';
import { errorObject } from '../util/errorObject';
import bindCallback from '../util/bindCallback';
/**
* Similar to the well known `Array.prototype.map` function, this operator
* applies a projection to each value and emits that project... |
552301/raisin-platform | raisin-business/file-center/src/main/java/com/raisin/FileCenterApp.java | package com.raisin;
import com.raisin.common.ribbon.annotation.EnableFeignInterceptor;
import com.raisin.file.properties.FileServerProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.Enabl... |
zippy/metaform | spec/dummy/forms/simpleform_extras.rb | class ::FieldNameHasG < Property
def self.evaluate(form,field,value)
field.name =~ /g/ ? true : false
end
def self.render(question_html,property_value,question,form,field,read_only)
if property_value
if read_only
question_html + 'g question read only!'
else
question_html + 'g q... |
android-xiao-jun/android-chat | client/src/main/java/cn/wildfirechat/message/notification/PCLoginRequestMessageContent.java | /*
* Copyright (c) 2020 WildFireChat. All rights reserved.
*/
package cn.wildfirechat.message.notification;
import android.os.Parcel;
import org.json.JSONException;
import org.json.JSONObject;
import cn.wildfirechat.message.Message;
import cn.wildfirechat.message.MessageContent;
import cn.wildfirechat.message.cor... |
andriymoroz/IES | src/common/fm_state_machine.c | /* vim:ts=4:sw=4:expandtab
* (No tabs, indent level is 4 spaces) */
/*****************************************************************************
* File: fm_state_machine.c
* Creation Date: October 8, 2013
* Description: Generic State Machine implementation
*
* Copyright (c) 2007 - 2015, Intel C... |
joeleg/laconia | packages/laconia-test/src/laconiaTest.js | <filename>packages/laconia-test/src/laconiaTest.js
const AWS = require("aws-sdk");
const laconiaInvoker = require("@laconia/invoker");
const LaconiaTester = require("./LaconiaTester");
const S3Spier = require("./S3Spier");
const defineUnavailableSpy = object => {
Object.defineProperty(object, "spy", {
get: () =>... |
HellSoft-Col/OPRS-Java-components | SideCarOPRS/src/co/edu/javeriana/dtos/PaymentResponseDTO.java | <gh_stars>0
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.javeriana.dtos;
import java.io.Serializable;
/**
*
* @author HellSoft
*/
public class PaymentResponseDT... |
patel243/spring-data-cassandra | spring-data-cassandra/src/test/java/org/springframework/data/cassandra/core/mapping/CassandraCompositePrimaryKeyUnitTests.java | /*
* Copyright 2016-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
jlanga/smsk_selection | src/guidance.v2.02/programs/semphy/nonActiveCode/RandomGenerator.h | <reponame>jlanga/smsk_selection<gh_stars>1-10
#ifndef RandomGenerator_h
#define RandomGenerator_h
// Marsaglia's subtractive R.N. generator with carry; combined with a weyl
// generator.
// Source: Computer Physics Communications 60 (1990) 345-349.
// Written by <NAME>, 1992.
// IMPLEMENTATION FILE
#ifdef __GNUG__
#i... |
itzrexmodz/Carla-1 | neko/modules/sql/chats_sql.py | from sqlalchemy import Column, String
from . import BASE, SESSION
class Chats(BASE):
__tablename__ = "chats"
chat_id = Column(String(14), primary_key=True)
def __init__(self, chat_id):
self.chat_id = chat_id
Chats.__table__.create(checkfirst=True)
def add_chat(chat_id: str):
nightmoddy =... |
visit-dav/vis | src/avt/DBAtts/MetaData/avtSubsetsMetaData.h | <reponame>visit-dav/vis
// Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers. See the top-level LICENSE file for dates and other
// details. No copyright assignment is required to contribute to VisIt.
#ifndef AVTSUBSETSMETADATA_H
#define AVTSUBSETSMETADATA_H
#include <dbat... |
RussellChamp/cover-api | application/api/query.go | <gh_stars>0
package api
import (
"strconv"
"strings"
"github.com/gobuffalo/buffalo"
)
// Query contains criteria to limit the results of List endpoints
type Query struct {
// filterKeys is a map of field name to filter text.
filterKeys map[string]string
// searchText is text to search across multiple fields
... |
mamontov-cpp/saddy | tools/ifaceed/ifaceed/gui/actions/labelactions.h | <gh_stars>10-100
/*! \file labelactions.h
Describes a group of actions, linked to label
*/
#pragma once
#include <QObject>
#include <input/events.h>
#include "abstractactions.h"
class MainPanel;
namespace history
{
class Command;
}
namespace sad
{
class SceneNode;
}
name... |
NunoEdgarGFlowHub/marathon | src/test/scala/mesosphere/marathon/integration/InfoIntegrationTest.scala | <reponame>NunoEdgarGFlowHub/marathon<gh_stars>0
package mesosphere.marathon.integration
import mesosphere.marathon.integration.setup._
import org.scalatest.{ GivenWhenThen, Matchers }
class InfoIntegrationTest extends IntegrationFunSuite with SingleMarathonIntegrationTest with GivenWhenThen with Matchers {
test("v2... |
uc-seng302-rubber-ducks/organs_for_ducks | server/src/main/java/odms/security/WebSecurityConfig.java | package odms.security;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotati... |
depaul-dice/provenance-to-use | criu/compel/test/fdspy/victim.c | #include <unistd.h>
int main(int argc, char **argv)
{
int i, aux;
do {
i = read(0, &aux, 1);
} while (i > 0);
return 0;
}
|
dasec/ForTrace | utils/noise-filter/noise_filter.py | # Copyright (C) 2020 <NAME>
# This is a proof of concept in order to reduce the noise e.g. created by telemetry of the operating system or the used
# browser to reduce the traffic dump created by fortrace to contain as much packets related to the actual application
# (e.g. a video stream from youtube.com).
# Our motiva... |
SanojPunchihewa/devstudio-tooling-esb | plugins/org.wso2.developerstudio.eclipse.gmf.esb/src/org/wso2/developerstudio/eclipse/gmf/esb/EnrichSourceType.java | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.wso2.developerstudio.eclipse.gmf.esb;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><... |
Bizzarrus/CloakEngine | CloakEngine/CloakEngine/Rendering/ColorBuffer.h | <filename>CloakEngine/CloakEngine/Rendering/ColorBuffer.h
#pragma once
#ifndef CE_API_RENDERING_COLORBUFFER_H
#define CE_API_RENDERING_COLORBUFFER_H
#include "CloakEngine/Defines.h"
#include "CloakEngine/Rendering/BasicBuffer.h"
namespace CloakEngine {
CLOAKENGINE_API_NAMESPACE namespace API {
namespace R... |
xym100111100/bussines-web | src/services/afcflow.js | <filename>src/services/afcflow.js<gh_stars>0
import { stringify } from 'qs';
import request from '../utils/request';
export async function personList(params) {
return request(`/afc-svr/afc/personTradeList?${stringify(params)}`);
}
export async function orgList(params) {
return request(`/afc-svr/afc/orgTradeList?$... |
SenonLi/VS_OpenGLSL_4.1 | vsSenOpenGL/LearnOpenGL_GLFW/Sen_26_PostProcessing.h | <reponame>SenonLi/VS_OpenGLSL_4.1
#pragma once
#ifndef __Sen_26_PostProcessing__
#define __Sen_26_PostProcessing__
#include "LearnOpenGL_GLFW/SenFreeSpaceAbstract.h"
class Sen_26_PostProcessing : public SenFreeSpaceAbstract
{
public:
Sen_26_PostProcessing();
virtual ~Sen_26_PostProcessing();
protected:
void init... |
ktzevani/native-camera-vulkan | app/src/main/cpp/graphics/resources/image.hpp | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
SoftwareAG/cumulocity-agents-opc | opcua-agent/gateway/src/main/java/com/cumulocity/opcua/gateway/repository/core/GatewayRepository.java | <gh_stars>0
package com.cumulocity.opcua.gateway.repository.core;
import com.cumulocity.model.idtype.GId;
import com.cumulocity.opcua.gateway.model.gateway.Gateway;
import com.google.common.base.Optional;
import lombok.NonNull;
import java.util.Collection;
public interface GatewayRepository<E> {
@NonNull
Opt... |
Klkoenig217/openroberta-lab | OpenRobertaRobot/src/test/java/de/fhg/iais/roberta/util/test/SenderReceiverJUnit.java | package de.fhg.iais.roberta.util.test;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicBoolean;
import org.junit.Assert;
... |
ibm-op-release/hcode | import/chips/p9/procedures/ppe_closed/ippe/ioa/pk_app_cfg.h | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: import/chips/p9/procedures/ppe_closed/ippe/ioa/pk_app_cfg.h $ */
/* ... |
rapid7/harp | harp-amqp-relay-lib/src/main/java/com/rapid7/component/messaging/relay/MessageHandler.java | <reponame>rapid7/harp
/***************************************************************************
* Copyright (c) 2013, Rapid7 Inc
*
* 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 ... |
courtneyeh/teku | networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/rpc/RpcMethod.java | <filename>networking/p2p/src/main/java/tech/pegasys/teku/networking/p2p/rpc/RpcMethod.java
/*
* Copyright ConsenSys Software Inc., 2022
*
* 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
*
*... |
UOC/dlkit | tests/functional/test_authz/assessment_authoring/test_assessment_part_authz.py | <gh_stars>1-10
"""TestAuthZ implementations of assessment_authoring.AssessmentPart"""
import datetime
import pytest
from tests.utilities.general import is_never_authz, is_no_authz, uses_cataloging
from dlkit.abstract_osid.authorization import objects as ABCObjects
from dlkit.abstract_osid.authorization import queries ... |
denkaty/Java-OOP | 08.Interfaces and Abstraction - Exercise/06.MilitaryElite/Enums/State.java | <gh_stars>0
package MilitaryElite_06.Enums;
public enum State {
INPROGRESS("inProgress"),
FINISHED("finished");
private String state;
State(String state) {
this.state = state;
}
public String getState() {
return state;
}
public void setState(String state) {
t... |
Hiraishi-Ryota/assignment | resources/js/pages/login.js | <filename>resources/js/pages/login.js
import React from "react";
import { Button } from '@material-ui/core';
import { useForm } from "react-hook-form";
import { useDispatch, useSelector } from "react-redux";
import { useHistory} from 'react-router-dom';
import { is_authenticated_selector, login } from "../stores/stor... |
mrtangwei/kooo.ldxy.edu.cn | commons.ldxy.edu.cn/src/main/java/cn/edu/ldxy/commons/domain/Log.java | /**
* 日志统计对象
*/
package cn.edu.ldxy.commons.domain;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
/**
* @author Kooo
*... |
jinsen47/Code4Work | interviews/src/com/github/jinsen47/yidianzixun/StrangeLoft.java | package com.github.jinsen47.yidianzixun;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* Created by Jinsen on 16/9/22.
* 奇怪的电梯
* 一个楼有n层高
* 电梯很奇怪, 在不同的层只能走固定的层, 每一层能走的层数由一个数组给出, 只能走该数的层数
* 例如 第二层给出的数字为2, 只能走到第4层
*
* 输入第一行为3数字n, a, b, 层数, 开始的层, 到达的层
* 第二行为 一个长度为n的数组, 表示每一层可以上下... |
sidharthsapru/scalaz-stream-mongodb | core/src/main/scala/scalaz/stream/mongodb/update/WriteResult.scala | <filename>core/src/main/scala/scalaz/stream/mongodb/update/WriteResult.scala
package scalaz.stream.mongodb.update
import org.bson.types.ObjectId
import com.mongodb.DBObject
import scalaz.stream.mongodb.collectionSyntax._
/**
* Encapsulation of mongo's write result in more scala like syntax
*/
sealed trait WriteResu... |
timfel/netbeans | ide/schema2beans/test/unit/data/TestPurchaseOrder.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 ... |
awesome-archive/one-scan | app/tasks/periodic_task.py | <filename>app/tasks/periodic_task.py
""" 周期任务 """
from app.util.cache_util import GLOBAL_LOCAL_CACHE
from app.util import time_util
def delete_expired_local_cache():
""" 删除过期的本地缓存 """
now_time = time_util.timestamp()
delete_keys = [
key
for key in GLOBAL_LOCAL_CACHE
if GLOBAL_LOCAL... |
FPSP-Modpack/amunra | src/main/java/de/katzenpapst/amunra/block/BlockGrassMeta.java | package de.katzenpapst.amunra.block;
import java.util.Random;
import micdoodle8.mods.galacticraft.api.prefab.core.BlockMetaPair;
import net.minecraft.block.Block;
import net.minecraft.block.IGrowable;
import net.minecraft.block.material.Material;
import net.minecraft.world.World;
public class BlockGrassMeta extends ... |
al3xliu/checker-framework | checker/tests/lock/ItselfExpressionCases.java | import org.checkerframework.checker.lock.qual.*;
import org.checkerframework.checker.nullness.qual.*;
import org.checkerframework.dataflow.qual.*;
public class ItselfExpressionCases {
final Object somelock = new Object();
private @GuardedBy({"<self>"}) MyClass guardedBySelf() {
return new MyClass();
... |
Uswer/LineageOS-14.1_jag3gds | kernel/lge/msm8226/sound/soc/msm/qdsp6/q6adm.c | <gh_stars>1-10
/* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is dis... |
Ezeer/VegaStrike_win32FR | vegastrike/boost/1_28/src/module.cpp | <gh_stars>0
// (C) Copyright <NAME> 2000. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
//
//... |
hv-ojha/Hackerrank-Solutions | Java-Strings-Introduction.java | <gh_stars>1-10
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String A=sc.next();
String B=sc.next();
/* Enter your code here. Print output to STDOUT. */
System.out.println(A... |
kwkoo/credscontroller | credscontroller/vendor/github.com/hashicorp/vault/helper/testhelpers/mongodb/mongodbhelper.go | <filename>credscontroller/vendor/github.com/hashicorp/vault/helper/testhelpers/mongodb/mongodbhelper.go<gh_stars>0
package mongodb
import (
"crypto/tls"
"errors"
"fmt"
"net"
"net/url"
"os"
"strconv"
"strings"
"testing"
"time"
"github.com/ory/dockertest"
"gopkg.in/mgo.v2"
)
// PrepareTestContainer calls P... |
julz/garden-linux | old/linux_backend/bandwidth_manager/bandwidth_manager.go | package bandwidth_manager
import (
"bytes"
"fmt"
"os/exec"
"path"
"regexp"
"strconv"
"github.com/cloudfoundry-incubator/garden-linux/old/logging"
"github.com/cloudfoundry-incubator/garden/api"
"github.com/cloudfoundry/gunk/command_runner"
"github.com/pivotal-golang/lager"
)
var IN_RATE_PATTERN = regexp.Mus... |
PowerOlive/mindspore | mindspore/ccsrc/fl/server/cert_verify.cc | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
raymond301/swift | services/search-db/src/main/java/edu/mayo/mprc/searchdb/builder/MassSpecDataExtractor.java | package edu.mayo.mprc.searchdb.builder;
import edu.mayo.mprc.searchdb.dao.TandemMassSpectrometrySample;
import java.util.Map;
/**
* For given biological sample name and name of a fraction, obtains a full information about the tandem mass spectrometry
* sample (.RAW file or .mgf).
*
* @author <NAME>
*/
public in... |
qtwre/Open-Vehicle-Monitoring-System-3 | vehicle/OVMS.V3/components/vehicle_bmwi3/ecu_definitions/ecu_lim_code.cpp | <filename>vehicle/OVMS.V3/components/vehicle_bmwi3/ecu_definitions/ecu_lim_code.cpp
//
// Warning: don't edit - generated by generate_ecu_code.pl processing ../dev/lim_i1.json: LIM 14: Charging interface module
// This generated code makes it easier to process CANBUS messages from the LIM ecu in a BMW i3
//
case I... |
wcicola/jitsi | src/net/java/sip/communicator/plugin/otr/ScOtrEngineImpl.java | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... |
datalogics-kam/conan | conans/test/integration/manifest_validation_test.py | import os
import unittest
from parameterized.parameterized import parameterized
from conans.test.utils.tools import TestServer, TestClient, NO_SETTINGS_PACKAGE_ID
from conans.model.ref import ConanFileReference
from conans.util.files import save, load, md5
from conans.model.ref import PackageReference
from conans.path... |
yinwenhao/merlin-database | merlin-server/src/test/java/com/magic/server/test/TestCRC32.java | <filename>merlin-server/src/test/java/com/magic/server/test/TestCRC32.java
package com.magic.server.test;
import java.util.zip.CRC32;
public class TestCRC32 {
public static void main(String[] args) {
String uri = "D:\\ETF0325.txt";
long start = System.currentTimeMillis();
for (int i=0; i<1;... |
tusharchoudhary0003/Custom-Football-Game | sources/com/google/android/gms/internal/ads/zzdgw.java | package com.google.android.gms.internal.ads;
import com.google.android.gms.internal.ads.zzdob.zzb;
public final class zzdgw extends zzdob<zzdgw, zza> implements zzdpm {
private static volatile zzdpv<zzdgw> zzdv;
/* access modifiers changed from: private */
public static final zzdgw zzgur = new zzdgw();
... |
andela/ah-codeblooded-frontend | src/pages/SignUpPage/index.js | import React, { Component } from 'react';
import ROUTES from '../../utils/routes';
import Form from '../../containers/SignupForm';
class SignUpPage extends Component {
render() {
return (
<>
<nav className="white black-text">
<div className="container">
<div className="nav-wr... |
Mumsfilibaba/Lambda | Lambda/Source/Platform/Vulkan/Memory/VKNDynamicMemoryAllocator.h | #pragma once
#include "VKNDeviceAllocator.h"
namespace Lambda
{
class VKNDynamicMemoryPage;
struct VKNDynamicMemoryBlock;
//--------------------
//VKNDynamicAllocation
//--------------------
struct VKNDynamicAllocation
{
public:
VKNDynamicAllocation& operator=(const VKNDynamicAllocation& other)
{
memc... |
jforge/vaadin | shared/src/main/java/com/vaadin/shared/JsonConstants.java | <gh_stars>0
/*
* Copyright 2000-2016 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
Youssef1313/cpp-docs | docs/mfc/codesnippet/CPP/cmapstringtoob-class_9.cpp | <reponame>Youssef1313/cpp-docs
CMapStringToOb map;
map.SetAt(_T("Bart"), new CAge(13));
map.SetAt(_T("Lisa"), new CAge(11));
map.SetAt(_T("Homer"), new CAge(36));
map.SetAt(_T("Marge"), new CAge(35));
map.RemoveKey(_T("Lisa")); // Memory leak: CAge object not
// deleted.
#ifdef _DEBUG
afxDum... |
mahaaveerz/FiloDB | kafka/src/test/scala/filodb/kafka/MergeableProducerConfigSpec.scala | package filodb.kafka
import com.typesafe.config.ConfigFactory
import org.apache.kafka.clients.CommonClientConfigs
import org.apache.kafka.clients.producer.{ProducerConfig, SinkConfig}
import org.apache.kafka.common.serialization.{LongSerializer, StringSerializer}
class MergeableProducerConfigSpec extends AbstractSpec... |
fax001/tink | python/tink/_keyset_reader.py | # Copyright 2019 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... |
markriedl/gaige | homework2/runrandomnavigator4.py | <gh_stars>10-100
'''
* Copyright (c) 2014, 2015 Entertainment Intelligence Lab, Georgia Institute of Technology.
* Originally developed by <NAME>.
* Last edited by <NAME> 05/2015
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
spbooth/SAFE-WEBAPP | src/main/java/uk/ac/ed/epcc/webapp/model/data/reference/IndexedDataCache.java | <reponame>spbooth/SAFE-WEBAPP<gh_stars>1-10
//| Copyright - The University of Edinburgh 2011 |
//| |
//| Licensed under the Apache License, Version 2.0 (the "License"); |
//| you may not use this file except in co... |
EMBL-EBI-SUBS/subs-data-model | src/main/java/uk/ac/ebi/subs/data/component/Funding.java | <reponame>EMBL-EBI-SUBS/subs-data-model<gh_stars>0
package uk.ac.ebi.subs.data.component;
import lombok.Data;
@Data
public class Funding {
private String grantId;
private String organization;
private String grantTitle;
}
|
zealoussnow/chromium | ios/web_view/internal/cwv_preview_element_info_internal.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 IOS_WEB_VIEW_INTERNAL_CWV_PREVIEW_ELEMENT_INFO_INTERNAL_H_
#define IOS_WEB_VIEW_INTERNAL_CWV_PREVIEW_ELEMENT_INFO_INTERNAL_H_
#import <Foundation... |
daejoon/fixture-monkey | fixture-monkey-api/src/main/java/com/navercorp/fixturemonkey/api/property/CompositeProperty.java | <gh_stars>100-1000
/*
* Fixture Monkey
*
* Copyright (c) 2021-present NAVER Corp.
*
* 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
... |
John-ye666/Python-for-Finance-Second-Edition | Chapter10/c10_33_implied_vol_EuropeanPut_min.py | <reponame>John-ye666/Python-for-Finance-Second-Edition<gh_stars>100-1000
"""
Name : c10_33_implied_vol_EuropeanPut_min.py
Book : Python for Finance (2nd ed.)
Publisher: Packt Publishing Ltd.
Author : <NAME>
Date : 6/6/2017
email : <EMAIL>
<EMAIL>
"""
from scipy import log,exp,... |
Alone-space/autoplan | src/main/java/com/push/model/RetryContext.java | package com.push.model;
import lombok.Getter;
/**
* @author itning
* @since 2021/3/22 17:25
*/
@Getter
public class RetryContext {
/**
* 推送URL
*/
private final String url;
/**
* 推送请求体内容
*/
private final String body;
/**
* 失败后重试次数
*/
private final int numberO... |
hangqiu/pixie | src/common/base/magic_enum_test.cc | /*
* Copyright 2018- The Pixie Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
HermanLederer/gtaRenderHook | RHEngineLib/Engine/Common/IImageView.h | <reponame>HermanLederer/gtaRenderHook<filename>RHEngineLib/Engine/Common/IImageView.h
#pragma once
namespace rh::engine
{
class IImageView
{
public:
virtual ~IImageView() = default;
};
} // namespace rh::engine |
se77enn/LeetCode-Solution | Python/asteroid-collision.py | <reponame>se77enn/LeetCode-Solution
# Time: O(n)
# Space: O(n)
try:
xrange # Python 2
except NameError:
xrange = range # Python 3
class Solution(object):
def asteroidCollision(self, asteroids):
"""
:type asteroids: List[int]
:rtype: List[int]
"""
result =... |
georghinkel/ttc2017smartGrids | solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/LoadModel/impl/NonConformLoadScheduleImpl.java | /**
*/
package gluemodel.CIM.IEC61970.LoadModel.impl;
import gluemodel.CIM.IEC61970.LoadModel.LoadModelPackage;
import gluemodel.CIM.IEC61970.LoadModel.NonConformLoadGroup;
import gluemodel.CIM.IEC61970.LoadModel.NonConformLoadSchedule;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common... |
cwhelan/cloudbreak | src/main/java/edu/ohsu/sonmezsysbio/cloudbreak/mapper/MrFastSingleEndMapper.java | package edu.ohsu.sonmezsysbio.cloudbreak.mapper;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.JobConf;
import org.apache.log4j.Logger;
import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.zip.GZIPInputStream;
/**
* Created by IntelliJ ID... |
roblkenn/EECS441-Mobile-App | FrontEnd/2-modules/market/index.js | <reponame>roblkenn/EECS441-Mobile-App
export { default as Market } from "./Market";
export * from "./ducks"; |
colinw7/CJavaScript | data/charAt.js | msg = "Hello";
msg.charAt(1);
|
javiertuya/selema | java/src/main/java/giis/selema/manager/CiServiceFactory.java | <gh_stars>1-10
package giis.selema.manager;
import giis.selema.portable.JavaCs;
import giis.selema.services.ICiService;
import giis.selema.services.impl.GithubService;
import giis.selema.services.impl.JenkinsService;
import giis.selema.services.impl.LocalService;
/**
* Creation of instances of the appropriate CI ser... |
mass-project/mass_server | mass_flask_config/config_testing.py | from mass_flask_config.config_base import BaseConfig
class TestingConfig(BaseConfig):
MASS_TESTING = True
MONGODB_SETTINGS = {
'host': 'mongodb://localhost:27017/mass-flask-testing',
'tz_aware': True
}
|
Searcher23/Searcher | src/org/geometerplus/zlibrary/core/filesystem/tar/ZLTarHeader.java | /*
* Copyright (C) 2007-2014 <NAME> <<EMAIL>>
*
* This program 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 of the License, or
* (at your option) any later version.
*
* This program... |
QuocAnh90/Uintah_Aalto | Core/Grid/TOBSplineInterpolator.cc | /*
* The MIT License
*
* Copyright (c) 1997-2019 The University of Utah
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* right... |
DNAbro/Java-Game-Project-3 | src/controllers/SkillViewController.java | package controllers;
/**
* Created by Andy on 4/16/2016.
*/
public class SkillViewController {
}
|
manusa/yakc | quickstarts/quarkus-dashboard/src/main/frontend/src/containers/ContainerList.js | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
ScalablyTyped/SlinkyTyped | v/vso-node-api/src/main/scala/typingsSlinky/vsoNodeApi/testInterfacesMod/TestRunSubstate.scala | <reponame>ScalablyTyped/SlinkyTyped
package typingsSlinky.vsoNodeApi.testInterfacesMod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
sealed trait TestRunSubstate e... |
AlexGenK/Consumers_cabinet_LTKE | app/models/concerns/percent_validator.rb | class PercentValidator < ActiveModel::Validator
def validate(record)
if record.id
allprc = EnPayment.where("consumer_id = ?", record.consumer_id).sum(:percent) - EnPayment.find(record.id).percent + record.percent
else
allprc = EnPayment.where("consumer_id = ?", record.consumer_id).sum(:percent) + ... |
darth-willy/mobibench | MobiBenchAutoDeviceClient/src/wvw/mobibench/devclient/server/DevClientHttpServer.java | /**
* Copyright 2016 <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 writing... |
marcosrachid/blockchain-criptocurrency | src/main/java/com/custom/blockchain/node/network/server/request/arguments/TransactionsResponseArguments.java | <filename>src/main/java/com/custom/blockchain/node/network/server/request/arguments/TransactionsResponseArguments.java<gh_stars>1-10
package com.custom.blockchain.node.network.server.request.arguments;
import java.util.Set;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder... |
lushstar/pagoda | pagoda-service/src/main/java/com/lushstar/pagoda/service/controller/AppServiceController.java | <filename>pagoda-service/src/main/java/com/lushstar/pagoda/service/controller/AppServiceController.java
package com.lushstar.pagoda.service.controller;
import ma.glasnost.orika.MapperFacade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springfra... |
bmatthias/config-builder | src/test/java/com/tngtech/configbuilder/annotation/typetransformer/StringCollectionToCommaSeparatedStringTransformerTest.java | <gh_stars>1-10
package com.tngtech.configbuilder.annotation.typetransformer;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.tngtech.configbuilder.annotation.valuetransformer.StringCollectionToCommaSeparatedStringTransformer;
import com.tngtech.configbuilder.util.ConfigBuilder... |
windchopper/common | common-preferences/src/main/java/com/github/windchopper/common/preferences/types/StringType.java | package com.github.windchopper.common.preferences.types;
import com.github.windchopper.common.preferences.PreferencesEntryFlatType;
import static com.github.windchopper.common.util.stream.FallibleFunction.identity;
public class StringType extends PreferencesEntryFlatType<String> {
public StringType() {
... |
lnc441401369/lnc.github.io | src/main/java/com/myblog/model/Admin.java | package com.myblog.model;
import java.io.Serializable;
public class Admin implements Serializable {
private Integer id;
private String adminname;
private String adminpasswd;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
publi... |
tsungming/Alameda | operator/pkg/utils/resources/listpods.go | <reponame>tsungming/Alameda<gh_stars>0
package resources
import (
"context"
"fmt"
"strings"
logUtil "github.com/containers-ai/alameda/operator/pkg/utils/log"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
)
var (
scope = lo... |
DerangedMonkeyNinja/openperf | api/client/golang/client/cpu_generator/delete_cpu_generator_responses.go | // Code generated by go-swagger; DO NOT EDIT.
package cpu_generator
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
)
// DeleteCPUGeneratorReader is ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.