repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
ceekay1991/AliPayForDebug | AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/NBDebugAppPreferManager.h | <reponame>ceekay1991/AliPayForDebug
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
@class APPreferencesAccessor, NSMutableDictionary;
@interface NBDebugAppPrefe... |
ogii-test/ddp-study-server | pepper-apis/src/main/java/org/broadinstitute/ddp/model/event/MarkActivitiesReadOnlyEventAction.java | <gh_stars>1-10
package org.broadinstitute.ddp.model.event;
import java.util.HashSet;
import java.util.Set;
import org.broadinstitute.ddp.db.dao.ActivityInstanceDao;
import org.broadinstitute.ddp.db.dto.EventConfigurationDto;
import org.broadinstitute.ddp.pex.PexInterpreter;
import org.jdbi.v3.core.Handle;
import org.... |
Athrunen/xpresso | src/main/java/com/wantedtech/common/xpresso/sentence/pos/en/stanford/MaxentPosTagger.java | package com.wantedtech.common.xpresso.sentence.pos.en.stanford;
import java.util.ArrayList;
import java.util.List;
import com.wantedtech.common.xpresso.x;
import com.wantedtech.common.xpresso.sentence.PosTagger;
import com.wantedtech.common.xpresso.sentence.Sentence;
import com.wantedtech.common.xpresso.text.Tokenize... |
jrmie/math | test/unit/math/rev/mat/fun/accumulator_test.cpp | #include <stan/math/rev/mat.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/rev/mat/util.hpp>
#include <vector>
// test sum of first n numbers for sum of a
void test_sum(stan::math::accumulator<stan::math::var>& a, int n) {
EXPECT_FLOAT_EQ((n * (n + 1)) / 2, a.sum().val());
}
TEST(AgradRevMatrix, accumulateD... |
TanmayChaturvedi1/Low_Power_Embedded_Design_Techniques_2019 | platform/radio/rail_lib/common/rail_assert_error_codes.h | /***************************************************************************//**
* @file rail_assert_error_codes.h
* @brief Definition of error codes that occur in rail for use in
* RAILCb_AssertFailed. This file is purely informational and optional -
* it need not be included even if rail_assert libraries are ... |
rozzac90/new_nba | nba/utils.py | import datetime
from nba.exceptions import ApiError
def clean_time(col):
"""
Parse a UTC time column to datetime.
:param col: column to be parsed.
:returns: datetime column
:rtype: series
"""
return col.apply(lambda x: datetime.datetime.strptime(x, "%Y-%m-%dT%H:%M:%S.%fZ"))
def filter_... |
rajshruti18/biolinkml | tests/test_issues/test_issue_3.py | import unittest
from rdflib import Graph, XSD
from biolinkml.generators.rdfgen import RDFGenerator
from biolinkml.meta import META
from includes.types import METATYPE
from tests.test_issues.environment import env
class DateTestCase(unittest.TestCase):
def test_date_time(self):
""" date datatype should b... |
dawar-s/algo-ds-sol-python | algoexpert/medium/BreathFirstSearch.py | <filename>algoexpert/medium/BreathFirstSearch.py
class Node:
def __init__(self, name):
self.children = []
self.name = name
def addChild(self, name):
self.children.append(Node(name))
return self
def breadthFirstSearch(self, array):
queue = [self]
while len(qu... |
zenglongGH/spresense | sdk/system/netutils/chat/chat.h | <filename>sdk/system/netutils/chat/chat.h
/****************************************************************************
* system/netutils/chat/chat.h
*
* Copyright (C) 2016 <NAME>. All rights reserved.
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modific... |
MobinHajizadeh/lottery | frontend/src/styles/GlobalStyle.js | import { createGlobalStyle } from 'styled-components'
const GlobalStyle = createGlobalStyle`
body {
background-color: ${({ theme }) => theme.colors.background};
font-family: sans-serif;
}
`
export default GlobalStyle
|
Kyri123/KAdmin-ArkWIN | Panel/public/js/arkadmin2/pages/servercontrolcenter.js | /*
* *******************************************************************************************
* @author: <NAME> (Kyri123)
* @copyright Copyright (c) 2019-2020, <NAME>
* @license MIT License (LICENSE or https://github.com/Kyri123/KAdmin-ArkWIN/blob/master/LICENSE)
* Github: https://github.com/Kyri123/KAdmin-Ark... |
AndrewLebowski/Project_One | testing/PageObjects/ConfirmWindow.js | <filename>testing/PageObjects/ConfirmWindow.js
/* eslint-disable no-undef */
class ConfirmWindow {
get content() {
return $('#confirm-window');
}
get cancelButton() {
return $('#cancel-button');
}
get confirmButton() {
return $('#confirm-button');
}
}
export default new ConfirmWindow();
|
er1c/intellij-scala | src/org/jetbrains/plugins/scala/findUsages/factory/ScalaFindUsagesHandler.scala | package org.jetbrains.plugins.scala
package findUsages.factory
import java.util
import com.intellij.find.findUsages.{AbstractFindUsagesDialog, FindUsagesHandler, FindUsagesOptions}
import com.intellij.openapi.actionSystem.DataContext
import com.intellij.openapi.util.text.StringUtil
import com.intellij.psi._
import co... |
FGtatsuro/myatcoder | beginner_contest/060/B.py | a, b, c = [int(i) for i in input().split()]
def cond(a, b, c):
if a == 1:
return True
candidate = []
i = 1
while True:
r = (a * i) % b
if r in candidate:
break
i += 1
candidate.append(r)
if c in candidate:
return True
return False
if ... |
trailsjs/generator-trails-old | test/integration/api.test.js | <filename>test/integration/api.test.js<gh_stars>0
'use strict'
const path = require('path')
const assert = require('yeoman-assert')
const test = require('yeoman-test')
describe('trails:api', () => {
describe('Should properly generate api interface', () => {
describe('Should properly generate model interface', (... |
berkansasmaz/runtime | src/coreclr/debug/di/loongarch64/cordbregisterset.cpp | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//*****************************************************************************
// File: CordbRegisterSet.cpp
//
//
//***************************************************************... |
zhangkn/iOS14Header | System/Library/PrivateFrameworks/iWorkImport.framework/Frameworks/TSCalculationEngine.framework/TSCEFormulaRewrite_Uids.h | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 12:31:21 PM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/PrivateFrameworks/iWorkImport.framework/Frameworks/TSCalculationEngine.framework/TSCalculationEngine
* classdump-dyld ... |
brokes6/D-BiliBili | app/src/main/java/com/example/dildil/home_page/model/HomeModel.java | package com.example.dildil.home_page.model;
import com.example.dildil.api.ApiEngine;
import com.example.dildil.home_page.bean.DynamicNumBean;
import com.example.dildil.home_page.bean.VersionBean;
import com.example.dildil.home_page.contract.HomeContract;
import io.reactivex.Observable;
public class HomeModel impleme... |
fontaine618/MTSGL | MTSGL/solvers/proxgd.py | <reponame>fontaine618/MTSGL<filename>MTSGL/solvers/proxgd.py
from typing import Dict, Tuple, Optional
import numpy as np
from losses import MTLoss
from regularizations import Regularization
def proxgd(
loss: MTLoss,
reg: Regularization,
beta0: np.ndarray,
lam: float,
rho: float,
ls: Optional[bool] = False... |
mikevo/uibk_acc | libmc/include/string_utils.h | <filename>libmc/include/string_utils.h
#pragma once
#include <string>
#include <vector>
std::vector<std::string> split(const std::string &s, char delim);
void replace_all(std::string &str, const std::string &substr,
const std::string &replacement);
bool starts_with(const std::string &s, const std::s... |
SaschaKersken/Daten-Prozessanalyse | listings/chapter03/guess.py | <reponame>SaschaKersken/Daten-Prozessanalyse
print("Denk dir eine Zahl zwischen 1 und 100, die ich erraten werde.")
# Anfangs-Ratewert: 50
guess = 50
# Endlosschleife, bis erraten oder Fehler
while True:
print(f"{guess}. 1) korrekt, 2) zu groß, 3) zu klein, 4) Ende?")
# Endlosschleife, bis 1-3 eingeben.
whi... |
ScalablyTyped/SlinkyTyped | p/pulumi__aws/src/main/scala/typingsSlinky/pulumiAws/inputMod/kinesis/AnalyticsApplicationInputsKinesisStream.scala | package typingsSlinky.pulumiAws.inputMod.kinesis
import typingsSlinky.pulumiPulumi.outputMod.Input
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
trait AnalyticsApp... |
snazzyfox/discord-party-dingomata | dingomata/cogs/game_code/models.py | <filename>dingomata/cogs/game_code/models.py<gh_stars>1-10
from enum import Enum
from sqlalchemy import Column, BigInteger, String, Boolean, Integer
from sqlalchemy.orm import declarative_base
GamecodeModel = declarative_base()
class EntryStatus(Enum):
ELIGIBLE = 1
SELECTED = 2
PLAYED = 3
class GameMo... |
cheshtaaagarrwal/DS-Algos | misc challenges/studentcourses.py | <gh_stars>0
# You are a developer for a university. Your current project is to develop a system for students to find
# courses they share with friends. The university has a system for querying courses students are enrolled
# in, returned as a list of (ID, course) pairs.
# Write a function that takes in a list of (stud... |
typicalMoves/dava.engine | Programs/ResourceEditor1/Classes/Qt/Scene/System/EditorVegetationSystem.h | #pragma once
#include "Base/BaseTypes.h"
#include "Entity/SceneSystem.h"
namespace DAVA
{
class Entity;
class VegetationRenderObject;
}
class SceneEditor2;
class EditorVegetationSystem : public DAVA::SceneSystem
{
public:
EditorVegetationSystem(DAVA::Scene* scene);
void AddEntity(DAVA::Entity* entity) overr... |
MartinGeisse/public | codegen-test/src/name/martingeisse/codegen/template/test/EulerAnglesTemplate.java | <reponame>MartinGeisse/public<gh_stars>1-10
/**
* Copyright (c) 2011 <NAME>
*
* This file is distributed under the terms of the MIT license.
*/
package name.martingeisse.codegen.template.test;
import name.martingeisse.codegen.dataclass.DataClassTemplate;
import name.martingeisse.codegen.dataclass.DataCla... |
Masha/hashcat | OpenCL/inc_hash_md5.h | /**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifndef _INC_HASH_MD5_H
#define _INC_HASH_MD5_H
#define MD5_F_S(x,y,z) ((z) ^ ((x) & ((y) ^ (z))))
#define MD5_G_S(x,y,z) ((y) ^ ((z) & ((x) ^ (y))))
#define MD5_H_S(x,y,z) ((x) ^ (y) ^ (z))
#define MD5_I_S(x,y,z) ((y) ^ ((x) | ~(z)))
#define MD5... |
BearerPipelineTest/daml | navigator/backend/src/main/scala/com/digitalasset/navigator/dotnot/package.scala | // Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package com.daml.navigator
/** dotnot(ation) is a simple library to implement a string-based dot-notation system
* to access properties. A property is something in dot notation `... |
anshika581/competitive-programming-1 | src/contest/ioi/IOI_2015_Boxes.cc | #include <bits/stdc++.h>
using namespace std;
#define SIZE 10000002
typedef long long ll;
ll dp1[SIZE], dp2[SIZE];
ll delivery(int N, int K, int L, int positions[]) {
for (int i = 1; i <= N; i++) {
if (i >= K)
dp1[i] = dp1[i - K] + min(2 * positions[i - 1], L);
else
dp1[i] = min(2 * positions... |
congscallion/geekbang-lessons | training-camp/xiaomage-java/stage-0/user-platform/user-web/src/main/java/slydm/geektimes/training/projects/user/web/controller/validator/groups/user/LoginGroup.java | package slydm.geektimes.training.projects.user.web.controller.validator.groups.user;
/**
* @author <EMAIL>(wangcong) 2021/3/13 11:47
*/
public interface LoginGroup {
}
|
tsavola/tap | tap/core/long.cpp | #include "core.hpp"
#include "portable.hpp"
namespace tap {
static int long_traverse(PyObject *object, visitproc visit, void *arg) noexcept
{
return 0;
}
static Py_ssize_t long_marshaled_size(PyObject *object) noexcept
{
return sizeof (int64_t);
}
static int long_marshal(PyObject *object, void *buf, Py_ssize_t si... |
v0idp/virtuoso-codegen | include/System/Xml/Serialization/XmlArrayItemAttributes.hpp | <reponame>v0idp/virtuoso-codegen<filename>include/System/Xml/Serialization/XmlArrayItemAttributes.hpp
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#... |
before30/homesandbox | algorithm-ex/src/main/java/cc/before30/algex/array/SquaresOfSortedArray.java | package cc.before30.algex.array;
import java.util.Arrays;
public class SquaresOfSortedArray {
public int[] sortedSquares(int[] A) {
return Arrays.stream(A).map(x -> x*x).sorted().toArray();
}
}
|
Akarin-project/AkarinModEdition | src/main/java/net/minecraft/server/DebugLoggingPrintStream.java | <gh_stars>1-10
package net.minecraft.server;
import java.io.OutputStream;
import net.minecraft.util.LoggingPrintStream;
public class DebugLoggingPrintStream extends LoggingPrintStream {
public DebugLoggingPrintStream(String s, OutputStream outputstream) {
super(s, outputstream);
}
protected voi... |
ravindraranwala/JavaGenericsAndCollections | GenericsAndCollections/src/main/java/org/oreilly/books/chapter8/NaiveBroker.java | package org.oreilly.books.chapter8;
import java.util.ArrayList;
import java.util.List;
public class NaiveBroker {
public void connect(OrderSupplier supplier, OrderProcessor processor) {
List<AuthenticatedOrder> orders = new ArrayList<AuthenticatedOrder>();
supplier.addOrders(orders);
processor.processOrders(or... |
smallspark/dealview | src/components/EditLoan.js | <filename>src/components/EditLoan.js
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { withRouter } from 'react-router'
import LoanForm from './LoanForm.js'
import Breadcrumbs from './Breadcrumbs.js'
import NotFound from './NotFound.js'
import LoanActions from ... |
acaos/nwnxee-unified | Plugins/JVM/java/src/org/nwnx/nwnx2/jvm/constants/ColorChannel.java | package org.nwnx.nwnx2.jvm.constants;
/**
* This class contains all unique constants beginning with "COLOR_CHANNEL".
* Non-distinct keys are filtered; only the LAST appearing was
* kept.
*/
public final class ColorChannel {
private ColorChannel() {}
public final static int HAIR = 1;
public final static int S... |
v0idp/virtuoso-codegen | include/Newtonsoft/Json/Utilities/ImmutableCollectionsUtils.hpp | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin forward declares
// For... |
joshlevi/svgedit | src/editor/components/seColorPicker.js | <reponame>joshlevi/svgedit
/* globals svgEditor */
/* eslint-disable max-len */
import { jGraduate, jGraduateMethod } from './jgraduate/jQuery.jGraduate.js';
import PaintBox from './PaintBox.js';
import { t } from '../locale.js';
const template = document.createElement('template');
// eslint-disable-next-line no-unsan... |
zealoussnow/chromium | third_party/blink/web_tests/storage/domstorage/script-tests/complex-keys.js | <filename>third_party/blink/web_tests/storage/domstorage/script-tests/complex-keys.js
description("Test dom storage with many different types of keys (as opposed to values)");
function test(storageString)
{
storage = eval(storageString);
if (!storage) {
testFailed(storageString + " DOES NOT exist");
... |
kenpeter/mangarack.js | lib/shared/provider/mangafox/index.js | // What is a series, basically, you pass the managa url
'use strict';
var Series = require('./series');
/**
* Retrieves a series.
* @param {string} address
* @returns {ISeries}
*/
module.exports = function(address) {
//test
//debugger;
/*
Flow:
* Queue.prototype.push task in queues in queue.js
... |
FajraKatviro/FKFramework2 | FKCore/FKPackageManager.cpp | #include "FKPackageManager.h"
#include "FKLogger.h"
#include <QSharedPointer>
/*!
\class FKPackageManager
\brief Incapsulates set of FKPackages
*/
FKPackageManager::FKPackageManager(QObject* parent):QObject(parent),_packagesInitialized(false){
FK_CBEGIN
FK_CEND
}
FKPackageManager::~FKPackageManager(){
... |
littleBoBoy/SUDOKU | app/src/main/java/com/example/sudoku/MainActivity.java | <gh_stars>1-10
package com.example.sudoku;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.example.sudoku.base.BaseActivity;
import com.example.sudoku.common.ActivityController;
import com.example.sudo... |
LukeLT255/aima-python | grading/kMeansSubmissions.py | import importlib
import traceback
from grading.util import roster, print_table
import os
from sklearn.cluster import KMeans
from sklearn import metrics
from numpy import unique
# import matplotlib.pyplot as plt
# from mpl_toolkits.mplot3d import Axes3D
#
# def plot(title, X3D):
# fig = plt.figure(title)
# ax = ... |
bmhan12/axom | src/axom/sidre/tests/spio/spio_serial.hpp | <reponame>bmhan12/axom
// Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "gtest/gtest.h"
#include "axom/config.hpp" // for AXOM_USE_HDF5
#include "axom/core... |
henryco/blinck-server | src/main/java/net/henryco/blinckserver/mvc/model/dao/relation/core/imp/SubPartyQueueDaoImp.java | package net.henryco.blinckserver.mvc.model.dao.relation.core.imp;
import net.henryco.blinckserver.mvc.model.dao.relation.core.SubPartyQueueDao;
import net.henryco.blinckserver.mvc.model.entity.relation.core.SubPartyQueue;
import net.henryco.blinckserver.mvc.model.repository.relation.core.SubPartyQueueRepository;
impor... |
sknjpn/SyLife | GUIIcon.h | <reponame>sknjpn/SyLife
#pragma once
#include "EasyViewer.h"
class GUIIcon : public EasyViewer {
Color m_color;
uint32 m_code;
Texture m_texture;
double m_scale;
public:
GUIIcon(uint32 code, double scale = 0.75, Color color = Palette::Black)
: m_color(color)
, m_scale(scale)
, m_code... |
wwww520240/framework-java | code/anguo-core/src/main/java/com/anguo/web/controller/FileUploadController.java | <gh_stars>1-10
package com.anguo.web.controller;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtil... |
terrameijar/bluebottle | bluebottle/funding_vitepay/views.py | <gh_stars>1-10
import logging
from rest_framework_json_api.views import AutoPrefetchMixin
from bluebottle.funding.exception import PaymentException
from django.http import HttpResponse
from django.views.generic.base import View
from bluebottle.funding.views import PaymentList
from bluebottle.funding_vitepay.models i... |
nicolasessisbreton/pyzehe | b_basic/syntax_list.py | # creating a list
x = [1, 3]
print('creation', x)
# adding element
x.append(4)
x += [5]
x.insert(1, 2) # insert(position, element)
print('adding element', x)
# picking element
print('picking', x[0], x[1])
print('picking a lot', x[:3], x[1:], x[2:5], x[-3:-1])
# copying over all element from another list
x = [1, 2]
y... |
f-dangel/hbp | exp/exp09_cifar10_deepobs_3c3d_cvp.py | <filename>exp/exp09_cifar10_deepobs_3c3d_cvp.py
"""Training of c3d3 with sigmoids on CIFAR-10 with CGNewton."""
from os import path
import torch
from torch.nn import CrossEntropyLoss, ReLU, Sigmoid, Tanh
from bpexts.cvp.sequential import convert_torch_to_cvp
from bpexts.optim.cg_newton import CGNewton
from exp.loadi... |
WellingtonSouzaAbreu/PataAmiga | Application/src/components/AnimalCard/styles.js | <filename>Application/src/components/AnimalCard/styles.js
import { StyleSheet} from 'react-native'
const styles = StyleSheet.create({
dogCard: {
width: '98%',
backgroundColor: '#ffffff',
borderRadius: 2,
justifyContent: 'center',
alignItems: 'center',
alignSelf: 'c... |
CodeLikeCXK/AngieEngine | Source/Engine/World/Private/Resource/Animation.cpp | /*
Angie Engine Source Code
MIT License
Copyright (C) 2017-2021 <NAME>.
This file is part of the Angie Engine Source Code.
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, ... |
gcxtx/zappy | src/com/sittinglittleduck/DirBuster/gui/JTableTree/TreeTableExample0.java | /*
* %W% %E%
*
* Copyright 1997, 1998 Sun Microsystems, Inc. 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
* no... |
nayanrajani/PYTHON | Introduction/PythonBooleans.py | # Booleans represent one of two values: True or False.
# Boolean Values
# In programming you often need to know if an expression is True or False.
# You can evaluate any expression in Python, and get one of two answers, True or False.
# When you compare two values, the expression is evaluated and Python returns the ... |
Solotov/deoptfuscator | android/art/benchmark/const-class/src/ConstClassBenchmark.java | <gh_stars>100-1000
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
seanlefevre/openduty | apps/services/migrations/0001_initial.py | <gh_stars>100-1000
# Generated by Django 2.1.3 on 2018-11-22 11:03
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('schedules', '0001_initial'),
('accounts', '0001_initial'),
]
... |
Iniyethawe2/google-api-java-client-services | clients/google-api-services-remotebuildexecution/v2/1.30.1/com/google/api/services/remotebuildexecution/v2/model/BuildBazelRemoteExecutionV2ActionResult.java | <gh_stars>0
/*
* 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, software distrib... |
FeatureToggleStudy/tetra | src/main/java/se/mickelus/tetra/loot/FortuneBonusCondition.java | <filename>src/main/java/se/mickelus/tetra/loot/FortuneBonusCondition.java
package se.mickelus.tetra.loot;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Ite... |
vegetaandbulma/mars | mars-db/src/main/java/com/nagao/db/nosql/dao/PaperDao.java | package com.nagao.db.nosql.dao;
import org.springframework.stereotype.Repository;
import com.nagao.db.nosql.common.BaseDao;
import com.nagao.db.nosql.po.Paper;
@Repository
public class PaperDao extends BaseDao<Paper> {
public PaperDao(){
super(Paper.class);
}
}
|
lnsp/gvisor | tools/nogo/filter/main.go | // Copyright 2019 The gVisor 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 agree... |
websemantics/ionic-conference-app | src/data/user/user.reducer.js | <filename>src/data/user/user.reducer.js<gh_stars>1-10
export function userReducer(state, action) {
switch (action.type) {
case 'set-user-loading':
return { ...state, loading: action.isLoading }
case 'set-user-data':
return { ...state, ...action.data }
case 'set-username':
return { ...sta... |
jcfr/SMTK | smtk/mesh/pybind11/PybindPointConnectivity.h | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
TanishT/Competitive-Programming | solutions/usaco/bronze/december_2019/gymnasticsv3.java | <reponame>TanishT/Competitive-Programming<filename>solutions/usaco/bronze/december_2019/gymnasticsv3.java
public class gymnasticsv3 {
}
|
XerRagnaroek/Jikai | src/com/github/xerragnaroek/jikai/anime/db/AnimeReleaseTracker.java | package com.github.xerragnaroek.jikai.anime.db;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.time.temporal.ChronoUnit;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.stream.Collector... |
schibsted/sebase | util/pkg/sbalance/sbalance.go | // Copyright 2018 Schibsted
// This package allows you to iterate over a set of service nodes, either in
// sequence or randomly. The RNG can be seeded and will give the same node
// order for the same seed.
package sbalance
import (
"bytes"
crand "crypto/rand"
"hash/fnv"
"io"
"math/rand"
)
// What kind of stra... |
dpilawa/cilantro | tests/ControlledCamera.cpp | #include "ControlledCamera.h"
#include "input/Input.h"
#include "input/GLFWInputController.h"
#include "system/EngineContext.h"
ControlledCamera::ControlledCamera (float fov, float near, float far, float speed, float sensitivity) : PerspectiveCamera (fov, near, far), speed (speed), sensitivity (sensitivity)
{
}
Contr... |
shaoyongfeng/gardener-extension-provider-alicloud | vendor/github.com/gardener/gardener/pkg/apis/core/types_exposureclass.go | <filename>vendor/github.com/gardener/gardener/pkg/apis/core/types_exposureclass.go
// Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
//
// Licensed under the Apache License, Version 2... |
Arzana/Plutonium | code/include/Graphics/Vulkan/Framebuffer.h | <reponame>Arzana/Plutonium<filename>code/include/Graphics/Vulkan/Framebuffer.h<gh_stars>1-10
#pragma once
#include "Graphics/Vulkan/Shaders/Renderpass.h"
namespace Pu
{
class ImageView;
/* Defines a storage object for all images passed to a render pass. */
class Framebuffer
{
public:
/* Initializes a new insta... |
mimo31/fluid-sim | src/app/shape-config-widget.cpp | /**
* shape-config-widget.cpp
*
* Author: <NAME>
* Created on 2021/01/14
*/
#include "shape-config-widget.hpp"
#include <glibmm.h>
#include <gdkmm/general.h>
namespace brandy0
{
ShapeConfigWidget::ShapeConfigWidget(ConfigStateAbstr *const parent, ShapeConfigWindowAbstr *const parentWindow)
: parent(parent), ... |
alonmm/VCSamples | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/AtomPub sample (Windows 8)/C++/Scenario4.xaml.cpp | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... |
mohneesh9797-puresoftware/cat2 | cat-core-report/src/main/java/org/unidal/cat/spi/report/internals/DefaultReportReducerManager.java | <reponame>mohneesh9797-puresoftware/cat2
package org.unidal.cat.spi.report.internals;
import java.util.HashMap;
import java.util.Map;
import org.unidal.cat.spi.Report;
import org.unidal.cat.spi.report.ReportReducer;
import org.unidal.cat.spi.report.ReportReducerManager;
import org.unidal.lookup.ContainerHolder;
impor... |
threefoldfoundation/tft-stellar | ThreeBotPackages/vesting_dashboard/scripts/export.py | <reponame>threefoldfoundation/tft-stellar<gh_stars>1-10
#!/usr/bin/env python
# pylint: disable=no-value-for-parameter
import click
import os, sys
import json
from jumpscale.core.base import StoredFactory
current_full_path = os.path.dirname(os.path.abspath(__file__))
sys.path.append(current_full_path + "/../models/")... |
yacchin1205/RDM-modular-file-renderer | tests/server/handlers/test_cors.py | import pytest
from unittest import mock
from tornado import testing
from tests.utils import HandlerTestCase
from mfr.server.handlers.core import CorsMixin
class MockHandler(CorsMixin):
request = None
headers = {}
def set_header(self, key, value):
self.headers[key] = value
class MockRequest(ob... |
mindfreakthemon-archive/revolt | server/parts/fireblast-core/lib/helpers/express/inherit.js | export default function (app) {
this.locals.basedir = app.locals.basedir;
this.conf = app.conf;
this.db = app.db;
this.model = app.model;
this.set('views', app.get('views'));
this.set('view engine', app.get('view engine'));
this.set('view cache', app.get('view cache'));
this.set('case sensitive routing', app.g... |
oguennec/Kylin | metadata/src/main/java/com/kylinolap/metadata/tool/HiveSourceTableLoader.java | <reponame>oguennec/Kylin
package com.kylinolap.metadata.tool;
/*
* Copyright 2013-2014 eBay Software Foundation
*
* 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... |
windystrife/UnrealEngine_NVIDIAGameWork | Engine/Source/Runtime/Core/Private/Misc/AutomationTest.cpp | <gh_stars>1-10
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Misc/AutomationTest.h"
#include "HAL/PlatformStackWalk.h"
#include "HAL/FileManager.h"
#include "Misc/CommandLine.h"
#include "Misc/Paths.h"
#include "Internationalization/Internationalization.h"
#include "Misc/ConfigCacheIni.h"
#inc... |
danadel/sakai | dashboard/api/src/java/org/sakaiproject/dash/model/CalendarItem.java | <reponame>danadel/sakai<filename>dashboard/api/src/java/org/sakaiproject/dash/model/CalendarItem.java
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2011 The Sak... |
xgSama/bigdata | flink/src/test/java/com/xgsama/flink/TestDemo.java | package com.xgsama.flink;
/**
* TestDemo
*
* @author : xgSama
* @date : 2022/1/10 11:41:06
*/public class TestDemo {
}
|
Bloxxel64/sm64js | src/levels/ssl/tox_box/collision.inc.js | // Ssl
import {
COL_INIT, COL_VERTEX_INIT, COL_VERTEX, COL_TRI_INIT, COL_TRI, COL_TRI_STOP, COL_END,
SURFACE_WALL_MISC
} from "../../../include/surface_terrains"
// 0x07012644 - 0x07012758
export const ssl_seg7_collision_tox_box = [
COL_INIT(),
COL_VERTEX_INIT(0x10),
COL_VERTEX(-255, 256, 256),
... |
fu7mu4/entonetics | sfml/CSFML/include/SFML/Network/SocketTCP.h | <reponame>fu7mu4/entonetics
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007 <NAME> (<EMAIL>)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any d... |
mttkay/license_scout | lib/license_scout/reporter.rb | #
# Copyright:: Copyright 2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# 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
#... |
chinesemanbobo/PPMaker | PPMakerExample/PPTeemo/OtherDemoExamples(demos)/PPMakeTreeView/HBRoom.h | //
// HBRoom.h
// PPMakerExample
//
// Created by ╰莪呮想好好宠Nǐつ on 2018/8/7.
// Copyright © 2018年 PPAbner. All rights reserved.
//
#import "PPMakeTreeItem.h"
@interface HBRoom : PPMakeTreeItem
@property(nonatomic,copy) NSString *roomTypeName;
@property(nonatomic,copy) NSString *roomTypePrice;
@end
@interface HBH... |
leha-bot/eve | include/eve/module/real/core/function/regular/generic/binarize.hpp | <reponame>leha-bot/eve
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//===============================================================================... |
liuluheng/CTCI | leetcode/remove_dup_list2.cc | //Given a sorted linked list, delete all nodes that have duplicate numbers,
//leaving only distinct numbers
//from the original list.
//For example,
//Given 1->2->3->3->4->4->5, return 1->2->5.
//Given 1->1->1->2->3, return 2->3.
//
#include <iostream>
using namespace std;
struct listNode {
listNode(int data = 0, ... |
walkerrandolphsmith/apollo-gql-playground | services/app/src/shared/components/SignOut/SignOut.mutation.js | <filename>services/app/src/shared/components/SignOut/SignOut.mutation.js
import gql from 'graphql-tag';
export default gql`
mutation signOut {
signOut
}
`;
|
yoniakabecky/kaori-menu | components/DraggableCard.js | <reponame>yoniakabecky/kaori-menu<gh_stars>0
import { useRouter } from "next/router";
import React from "react";
import { Draggable } from "react-beautiful-dnd";
import { makeStyles } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
import IconButton from "@material-ui/core/IconButton";
impo... |
yerang823/landmark-detection | SBR/lib/config_utils/basic_args.py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import os, sys, time, random, argparse
def obtain_args():
parser = argparse.ArgumentParser(description='Train facial la... |
fiware-austria/fiware-idm | routes/web/organizations.js | const express = require('express');
const router = express.Router();
const multer = require('multer');
const path = require('path');
const uuid = require('uuid');
const csrf = require('csurf');
const csrf_protection = csrf({ cookie: true });
const fs = require('fs');
// Home web Controller
const web_org_controller = r... |
klenkes74/egress-ip-operator | pkg/cloudprovider/aws_provider/aws_cloudprovider_assign_specified_ip_test.go | /*
* Copyright 2020 Kaiserpfalz EDV-Service, <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 applica... |
cancervariants/variant-normalization | tests/tokenizers/test_genomic_insertion.py | <reponame>cancervariants/variant-normalization
"""A module for testing Genomic Insertion Tokenization."""
import unittest
from variation.tokenizers import GenomicInsertion
from .tokenizer_base import TokenizerBase
from variation.tokenizers.caches import AminoAcidCache, NucleotideCache
class TestGenomicInsertionTokeni... |
sigurasg/ghidra | Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/actions/AbstractMarkupItemAction.java | <filename>Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/actions/AbstractMarkupItemAction.java
/* ###
* IP: GHIDRA
*
* 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
*... |
nodefony/nodefony-core | src/nodefony/cli/builder/microService/skeletons/src/browser/index.js | const nodefony = require("nodefony-client");
import "./index.css";
/*
* Class
*/
class App extends nodefony.Service {
constructor() {
super("App");
this.initSyslog();
this.log("INIT APP CLIENT");
this.log(`Nodefony Client version : ${nodefony.version}`);
}
}
export default new App();
|
cellog/unlock | unlock-js/src/v11/purchaseKey.js | <reponame>cellog/unlock
import utils from '../utils'
import { GAS_AMOUNTS } from '../constants'
import TransactionTypes from '../transactionTypes'
import Errors from '../errors'
import { approveTransfer } from '../erc20'
/**
* Purchase a key to a lock by account.
* The key object is passed so we can kepe track of it... |
tradecraftio/tradecraft | src/zmq/zmqnotificationinterface.h | <filename>src/zmq/zmqnotificationinterface.h
// Copyright (c) 2015-2018 The Bitcoin Core developers
// Copyright (c) 2011-2021 The Freicoin Developers
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of version 3 of the GNU Affero General Public License as published
// by... |
darkice1/hydrogen-ssdb | src/main/java/com/hyd/ssdb/AbstractClient.java | package com.hyd.ssdb;
import com.hyd.ssdb.conf.*;
import com.hyd.ssdb.conn.*;
import com.hyd.ssdb.protocol.*;
import com.hyd.ssdb.util.IdScore;
import com.hyd.ssdb.util.KeyValue;
import java.util.*;
import org.slf4j.LoggerFactory;
/**
* 实现 SsdbClient 的一些底层方法
*
* @author Yiding
*/
@SuppressWarnings(... |
ProfessorDey/lbry-app | flow-typed/render-media.js | declare module 'render-media' {
declare module.exports: any;
}
|
scrumsnail/BossZP | BossZP/BossZP/Classes/General/Categories/NSDictionary+Json.h | //
// NSDictionary+Json.h
// BossZP
//
// Created by allthings_LuYD on 16/9/7.
// Copyright © 2016年 scrum_snail. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (Json)
- (NSInteger)jsonInteger:(NSString *)key;
@end
|
liammews/Briefrr | studio/node_modules/@sanity/base/lib/theme/helpers.js | <reponame>liammews/Briefrr
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports._buildTints = _buildTints;
exports._toHex = _toHex;
exports._isDark = _isDark;
exports._multiply = _multiply;
exports._screen = _screen;
var _ui = require("@sanity/ui");
var _polished = require("polished... |
lklima/constru-app | src/components/Header/index.js | <filename>src/components/Header/index.js
import React from 'react';
import { View, TouchableOpacity, Text } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import { styles } from './styles';
const Header = ({ title, navigation }) => (
<View style={styles.container}>
<TouchableO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.