repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
define16/Class | 4-2/Machine Learning/class_/Lab4/ex3.py | <filename>4-2/Machine Learning/class_/Lab4/ex3.py
import numpy as np
import pandas as pd
# import openpyxl as xl
np.random.seed(20180917)
t_idx = pd.date_range('9/17/2018', periods=1000)
df = pd.DataFrame(np.random.randn(1000,4), index=t_idx, columns=['A','B','C','D'])
print(df)
# xl.to_csv('csc_test.csv')
df.to_exc... |
laurensiusadi/elearning-pweb | public/plagiarism_plugin/input/24/26/24 26 5114100075--Source.cpp | /*
PROJECT 1 - TAMAGOTCHI (+class+object)
[TUGAS2_C_5114100075]
Nama : <NAME>
NRP : 5114100075
Kelas : PBO - C
*/
#include <iostream>
#include <string>
using namespace std;
// deklarasi Class
class Digimon {
public:
// atribut
string name;
int energy = 65; // energi dari sumber makanan digimon
int health = ... |
auv-avalon/tools-roby | lib/roby/queries/any.rb | <gh_stars>0
module Roby
module Queries
# Implementation of a singleton object that match any other object
module Any
# @return [Boolean] match operator, always returns true
def self.===(other)
true
end
class DRoby
def p... |
campagnola/acq4 | acq4/util/ptime.py | # -*- coding: utf-8 -*-
from __future__ import print_function
from pyqtgraph.ptime import time |
cjmont/ec.espol.edu.ec | app/controllers/articulos_controller.rb | <filename>app/controllers/articulos_controller.rb
class ArticulosController < InheritedResources::Base
private
def articulo_params
params.require(:articulo).permit(:titulo, :escritor, :contenido, :imagen, :noticia)
end
end |
andraantariksa/PlasmaEngine | Source/Core/Common/SharedVectorFunctions.hpp | // MIT Licensed (see LICENSE.md).
#pragma once
namespace Math
{
// Projects the input vector onto the given vector (must be normalized)
template <typename VectorType>
PlasmaSharedTemplate VectorType GenericProjectOnVector(const VectorType& input, const VectorType& normalizedVector)
{
return normalizedVector * Math:... |
dashevo/dashpay-wallet-OLD | __tests__/state/settings/actions.test.js | import { CHANGE_SETTINGS } from 'state/settings/constants';
import { changeSettings } from 'state/settings/actions';
describe('settings actions', () => {
it('should create an action to set the new settings', () => {
const settings = { balanceVisible: true };
const expectedAction = {
settings,
typ... |
jeffday/vcr4j | vcr4j-examples/src/main/java/org/mbari/vcr4j/examples/sharktopoda/SeekElapsedTimeTest.java | package org.mbari.vcr4j.examples.sharktopoda;
import org.docopt.Docopt;
import org.mbari.vcr4j.VideoIO;
import org.mbari.vcr4j.commands.SeekElapsedTimeCmd;
import org.mbari.vcr4j.commands.VideoCommands;
import org.mbari.vcr4j.sharktopoda.SharktopodaError;
import org.mbari.vcr4j.sharktopoda.SharktopodaState;
import org... |
HuWenhai/bus | bus-cache/src/main/java/org/aoju/bus/cache/reader/SingleCacheReader.java | /*
* The MIT License
*
* Copyright (c) 2017 aoju.org All rights reserved.
*
* 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... |
cs130-w21/13 | client/CS130_Team13/Docs/html/class_socket_1_1_quobject_1_1_socket_io_client_dot_net_1_1_client_1_1_manager_1_1_open_callback_imp.js | var class_socket_1_1_quobject_1_1_socket_io_client_dot_net_1_1_client_1_1_manager_1_1_open_callback_imp =
[
[ "OpenCallbackImp", "class_socket_1_1_quobject_1_1_socket_io_client_dot_net_1_1_client_1_1_manager_1_1_open_callback_imp.html#a4ac0a659529173330fa1dfd163869c2b", null ],
[ "Call", "class_socket_1_1_quobj... |
kedingagnumerikunimarburg/Marburg_Software_Library | WaveletTL/interval/boundary_gramian.h | // -*- c++ -*-
// +--------------------------------------------------------------------+
// | This file is part of WaveletTL - the Wavelet Template Library |
// | |
// | Copyright (c) 2002-2009 |
// | <NA... |
haboy52581/alcor | lib/src/main/java/com/futurewei/alcor/common/db/ignite/IgniteICache.java | <filename>lib/src/main/java/com/futurewei/alcor/common/db/ignite/IgniteICache.java
/*
*
* Copyright 2019 The Alcor 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 ... |
lalyos/rio | modules/service/controllers/globalrbac/handler.go | package globalrbac
import (
"context"
"github.com/rancher/rio/modules/service/controllers/service/populate/rbac"
riov1 "github.com/rancher/rio/pkg/apis/rio.cattle.io/v1"
riov1controller "github.com/rancher/rio/pkg/generated/controllers/rio.cattle.io/v1"
"github.com/rancher/rio/types"
rbacv1controller "github.co... |
syntialai/TA-admin | src/config/menus.js | <filename>src/config/menus.js
import * as RouteNames from '@/router/names';
// eslint-disable-next-line import/prefer-default-export
export const getMainMenus = () => [
{
icon: 'mdi-account',
title: RouteNames.STUDENTS,
},
{
icon: 'mdi-account',
title: RouteNames.TEACHERS,
},
{
icon: 'mdi... |
jhaapako/tcf | tests/test_tunnels_released.py | <reponame>jhaapako/tcf<filename>tests/test_tunnels_released.py
#! /usr/bin/python3
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
# pylint: disable = missing-docstring
import os
import socket
import commonl.testing
import tcfl
import tcfl.tc
srcdir = os.path.dirname(__file__)
ttbd... |
jonasgsouza/orange-talents-02-template-proposta | src/main/java/br/com/zup/proposta/cartoes/model/Biometria.java | <filename>src/main/java/br/com/zup/proposta/cartoes/model/Biometria.java
package br.com.zup.proposta.cartoes.model;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.UUID;
@Entity
@Table(name = "biometrias")
public class Biometria {
@Id
@GeneratedValue(strategy = Gener... |
janx/jruby | src/org/jruby/compiler/ir/instructions/jruby/CheckArityInstr.java | package org.jruby.compiler.ir.instructions.jruby;
import org.jruby.compiler.ir.Operation;
import org.jruby.compiler.ir.instructions.CallInstr;
import org.jruby.compiler.ir.instructions.Instr;
import org.jruby.compiler.ir.instructions.JRubyImplCallInstr;
import org.jruby.compiler.ir.instructions.JRubyImplCallInstr.JRub... |
mistlog/rollup | test/form/samples/interop-false/_expected/system.js | <reponame>mistlog/rollup<filename>test/form/samples/interop-false/_expected/system.js
System.register('foo', ['core/view'], function (exports) {
'use strict';
var View;
return {
setters: [function (module) {
View = module.default;
}],
execute: function () {
var main = exports('default', View.extend({}))... |
mattbucci/collector-http | src/test/java/com/norconex/collector/http/delay/impl/ReferenceDelayResolverTest.java | /* Copyright 2016-2020 Norconex 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/LICENSE-2.0
*
* Unless required by applicable law o... |
yuxiang-zhou/menpo | menpo/transform/test/base_transformchain_test.py | <filename>menpo/transform/test/base_transformchain_test.py<gh_stars>1-10
from mock import Mock
from menpo.transform import TransformChain, Transform
def transformchain_apply_test():
mocked_transform = Mock()
mocked_transform._apply.return_value = 3
mocked_transform2 = Mock()
mocked_transform2._apply.... |
mflingelli/oval-reports | src/main/java/de/flingelli/security/oval/reports/SystemDefinition.java | <filename>src/main/java/de/flingelli/security/oval/reports/SystemDefinition.java
package de.flingelli.security.oval.reports;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
impo... |
Brent-rb/University | bachelor/imperative-programming-2/ZSO10/differentWords.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
int isDouble(char**, int, char*);
char** makeNoDouble(char[][32], char**, int*);
#define arraySize 5
int main(int argc, char const *argv[])
{
char array[arraySize][32] = {"dit", "kaka", "stom", "stome", "dite"};
char** dynamic = NULL;
in... |
NCIEVS/nci-meme5 | model/src/main/java/com/wci/umls/server/helpers/HasAlternateTerminologyIds.java | <filename>model/src/main/java/com/wci/umls/server/helpers/HasAlternateTerminologyIds.java
/*
* Copyright 2015 West Coast Informatics, LLC
*/
package com.wci.umls.server.helpers;
import java.util.Map;
/**
* Represents a thing that has alternate ids.
*/
public interface HasAlternateTerminologyIds {
/**
* Re... |
bpaquet/argos | apps/database/migrations/20170304184220_add_constraints.js | /* eslint-disable quotes */
exports.up = knex =>
knex.schema
.raw(
`CREATE TYPE job_status AS ENUM ('pending', 'progress', 'complete', 'error')`,
)
.raw(`CREATE TYPE service_type AS ENUM ('github')`)
.alterTable('builds', table => {
table.specificType('jobStatus', 'job_status').alter()
... |
jbelyeu/graphite_rotation_project | core/alignment/BamAlignmentReader.cpp | #include "BamAlignmentReader.h"
#include "BamAlignment.h"
#include "AlignmentList.h"
#include "SampleManager.hpp"
#include <unordered_set>
namespace graphite
{
BamAlignmentReader::BamAlignmentReader(const std::string& bamPath) :
m_bam_path(bamPath),
m_is_open(false)
{
}
BamAlignmentReader::~BamAlignmentReade... |
rulan87/devclab.bc | bc/1/ariProg.c | <filename>bc/1/ariProg.c
// Считать с клавиатуры три целых числа - первый член, шаг и количество членов арифметической прогрессии.
// Вывести в строку через пробел члены заданной прогрессии.
// Задаваемое количество больше нуля.
#include <stdio.h>
int main() {
int counter, step, amount;
scanf("%d %d %d"... |
Minecodecraft/LeetCode-Minecode | String/227. Basic Calculator II/main.cpp | <reponame>Minecodecraft/LeetCode-Minecode
//
// main.cpp
// 227. Basic Calculator II
//
// Created by 边俊林 on 2019/8/6.
// Copyright © 2019 Minecode.Link. All rights reserved.
//
/* ------------------------------------------------------ *\
https://leetcode.com/problems/basic-calculator-ii/
\* ---------------------... |
GolosChain/golos.io | src/store/middlewares/cyberway-api/index.js | <reponame>GolosChain/golos.io
export { default as apiMiddleware, CYBERWAY_API } from './api';
export { default as rpcMiddleware, CYBERWAY_RPC } from './rpc';
|
007sair/Poster | build/webpack.prod.config.js | /**
* production
*/
require('./script/del-dist.js');
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackIncludeAssetsPlugin = require('html-webpack-include-assets-plugin');
// const CommonsChunkPlugin = requi... |
StrikeW/sona | angelml/src/main/scala/org/apache/spark/angel/graph/params/HasDebugMode.scala | package org.apache.spark.angel.graph.params
import org.apache.spark.angel.ml.param.{BooleanParam, Params}
trait HasDebugMode extends Params {
final val debugMode = new BooleanParam(this, "debugMode", "debugMode")
final def setDebugMode(mode: Boolean): this.type = set(debugMode, mode)
final def getDebugMode: ... |
cooker/gt-core-base | gt-core-base-leetcode/src/main/java/com/github/cooker/Solution0811.java | package com.github.cooker;
/**
* grant
* 23/4/2020 10:08 上午
* 描述:
*/
public class Solution0811 {
// static int[] cors = new int[]{1, 5, 10, 25};
//
// public int waysToChange(int n) {
// int num = 0;
// int sum = 0;
// int xx = 0;
//
// for (int i = 0;i < cors.length; i++){
// ... |
Guigui14460/project-automation | project_automation/files/batch_file.py | import os
import stat
from typing import NoReturn
from project_automation.files import CustomFileExtension
class BatchFile(CustomFileExtension):
"""
Represents a `.bat` file (format for Windows).
Attributes
----------
filename : str
represents the path of the file and his name (with the ... |
gianluca-m/SeeingTemperature | HoloLens/MyBuild/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs41.cpp | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.Dictionary`2<System.Action`3<UnityEngine.GameObject,UnityEngine.Material,UnityEngine.Material>,Sy... |
sxweetlollipop2912/MaCode | .LHP/.Lop12/.HSG/.T.Van/DT1/SOTRON/sotron.cpp | <gh_stars>0
#include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
typedef long long maxa;
maxa x;
std::string res;
void Prepare() {
std::cin >> x;
}
void Process() {
--x;
if (x == 0) res = "0";
for(; x != 0; x >>= 1) {
if (x & 1) res += "5";
else res += "0";... |
politbuero-kampagnen/onegov-cloud | src/onegov/org/elements.py | """ Contains small helper classes used as abstraction for various templating
macros.
"""
from random import choice
from lxml.html import builder, tostring
from onegov.core.elements import Element
from onegov.org import _
from purl import URL
class AccessMixin(object):
@property
def access(self):
"... |
abueide/mage | Mage.Sets/src/mage/cards/c/Cromat.java | <filename>Mage.Sets/src/mage/cards/c/Cromat.java
package mage.cards.c;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.effects.common.... |
madmax-inc/intellij-dlanguage | gen/io/github/intellij/dlanguage/psi/DLanguageFinalSwitchStatement.java | <filename>gen/io/github/intellij/dlanguage/psi/DLanguageFinalSwitchStatement.java
package io.github.intellij.dlanguage.psi;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.Nullable;
public interface DLanguageFinalSwitchStatement extends PsiElement {
@Nullable
public PsiElement getKW_FIN... |
limfriend/aliyun-openapi-java-sdk | aliyun-java-sdk-foas/src/main/java/com/aliyuncs/foas/model/v20181111/CreatePackageRequest.java | /*
* 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
* distributed u... |
seraekim/srkim-lang-scala | src/main/java/chapter24/c24_i05.scala | package chapter24
/**
* 24.5 시퀀스 트레이트: Seq, IndexedSeq, LinearSeq
*
* Seq 트레이트는 시퀀스를 표현한다. 시퀀스는 길이가 정해져 있고, 각 원소의 위치를 0부터 시작하는
* 정해진 인덱스로 지정할 수 있는 일종의 Iterable이다.
*
* - 인덱스와 길이 연산: apply, isDefinedAt, length, indices, lengthCompare.
* Seq의 경우 apply는 인덱스로 원소를 찾는 것을 의미한다. Seq[T] 타입 시퀀스는 Int를 받아서
* T 타입의 원소를... |
stefanrer/commonbsecret | annotators/CoBotQA/server.py | <gh_stars>0
#!/usr/bin/env python
import logging
import os
import re
import string
from time import time
import en_core_web_sm
import inflect
import numpy as np
from nltk.tokenize import sent_tokenize, word_tokenize
from nltk.stem import WordNetLemmatizer
from concurrent.futures import ThreadPoolExecutor
from flask i... |
HenriqueDerosa/fastfeet-mobile | src/utils/colors.js | <filename>src/utils/colors.js
const colors = {
white: '#FFFFFF',
royalBlue: '#7D40E7',
selago: '#F4EFFC',
whiteLilac: '#F8F9FD',
gallery: '#eee',
lima: '#82BF18',
quickSilver: '#999999',
alto: '#DDDDDD',
tundora: '#444444',
graniteGray: '#666666',
cinnabar: '#E74040',
tulipTree: '#E7BA40',
}
ex... |
cleviojr/akane | src/main/java/akane/command/commands/etc/PingCommand.java | <filename>src/main/java/akane/command/commands/etc/PingCommand.java
package akane.command.commands.etc;
import akane.command.core.CommandInterface;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
import java.awt.*;
import java.util.concurrent.TimeUnit;
publi... |
ro-msg-spring-training/online-shop-ptruta | shop/src/main/java/ro/msg/learning/shop/repository/OrderDetailRepository.java | package ro.msg.learning.shop.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ro.msg.learning.shop.domain.OrderDetail;
import ro.msg.learning.shop.domain.OrderDetailKey;
public interface OrderDetailRepository extends JpaRepository<OrderDetail, OrderDetailKey> {
}
|
koellingh/empirical-p53-simulator | third-party/Empirical/tests/debug/alert.cpp | #define CATCH_CONFIG_MAIN
#include "third-party/Catch/single_include/catch2/catch.hpp"
#include "emp/debug/alert.hpp"
#include <sstream>
#include <iostream>
TEST_CASE("Test Alert", "[debug]")
{
// basic Alert
emp::Alert("Whoops! Try again.");
// AlertObj
emp::AlertObj an_alert("ALERT!",true,true);
an_a... |
htalebiyan/Dec2py | Archive/STAR_model/Archive/run_parallel.py | <reponame>htalebiyan/Dec2py<filename>Archive/STAR_model/Archive/run_parallel.py
"""Runs models in parallel"""
import predict_restoration
def run_parallel(sample):
"""Runs models in parallel"""
mags = range(0, 1)
t_suf = ''
model_dir = 'C:/Users/ht20/Documents/Files/STAR_models/Shelby_final_all_Rc'
f... |
easyopsapis/easyops-api-python | staff_manage_sdk/model/container/container_port_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: container_port.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... |
sajas-nm/medapp-test | node_modules/react-color/lib/components/google/GooglePointer.js | <reponame>sajas-nm/medapp-test<gh_stars>1-10
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.GooglePointer = undefined;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactcss = require('reactcss');
var _reactcss2 = _interopRequireDefault(_r... |
LittleNed/toontown-stride | toontown/settings/ToontownSettings.py | <reponame>LittleNed/toontown-stride
DefaultSettings = {
'fullscreen': False,
'music': True,
'sfx': True,
'musicVol': 1.0,
'sfxVol': 1.0,
'loadDisplay': 'pandagl',
'toonChatSounds': True,
'newGui': False,
'show-disclaimer': True,
'fieldofview': 52,
'show-cog-levels': True,
'health-meter-mode': 2,
'experienceBarMode': Tr... |
IvanTodorovBG/SoftUni | Python Advanced/Advanced/Functions Advanced/Exercise/Task06.py | <filename>Python Advanced/Advanced/Functions Advanced/Exercise/Task06.py
def sum_numbers(num1, num2):
return num1 + num2
def multiply_numbers(num1, num2):
return num1 * num2
def func_executor(*args):
answer = []
for func, func_args in args:
result = func(*func_args)
answer.append(res... |
sjhanson/hackerrank-interview-prep-kit-node | test/warmup/jumping-on-clouds.spec.js | const testCase = require('mocha').describe;
const assertions = require('mocha').it;
const assert = require('chai').assert;
const joc = require('../../src/warmup/jumping-on-clouds');
testCase('Jumping On Clouds', function() {
testCase('All Double Jumps', function() {
assertions('should return 3 when there ... |
Apl0m3/CLKJ-MINJIAOBAO-JAVA | src/main/java/com/lingkj/project/transaction/dto/ReviewManuscriptReqDto.java | package com.lingkj.project.transaction.dto;
import lombok.Data;
/**
* ReviewManuscriptReqDto
*
* @author <NAME>
* @className ReviewManuscriptReqDto
* @date 2019/10/18 16:45
*/
@Data
public class ReviewManuscriptReqDto {
private Long transactionCommodityId;
private Integer status;
private String reas... |
danielgutknecht/orange-talents-01-template-ecommerce | ecommerce/src/main/java/br/com/zup/ecommerce/repository/FeatureRepository.java | <filename>ecommerce/src/main/java/br/com/zup/ecommerce/repository/FeatureRepository.java
package br.com.zup.ecommerce.repository;
import br.com.zup.ecommerce.entities.Feature;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface F... |
uxDaniel/homebrew-fonts | Casks/font-mononoki.rb | <filename>Casks/font-mononoki.rb
cask 'font-mononoki' do
version :latest
sha256 :no_check
url 'https://github.com/madmalik/mononoki/raw/master/export/mononoki.zip'
name 'Mononoki'
homepage 'https://madmalik.github.io/mononoki/'
license :ofl
font 'mononoki-Bold.ttf'
font 'mononoki-BoldItalic.ttf'
fon... |
moodstrikerdd/Test_Android | mvpdemo/src/main/java/com/moo/mvpdemo/adapter/ViewHolder.java | <filename>mvpdemo/src/main/java/com/moo/mvpdemo/adapter/ViewHolder.java
package com.moo.mvpdemo.adapter;
import android.content.Context;
import android.support.v4.util.SparseArrayCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import... |
DVSR1966/par4all | packages/PIPS/validation/Scilab/COLD-1.0.5.sub/stubs/include/scilab_rt_yearfrac.h | /*---------------------------------------------------- -*- C -*-
*
* (c) HPC Project - 2010-2011
*
*/
extern double scilab_rt_yearfrac_d0d0_(double in0, double in1);
extern void scilab_rt_yearfrac_d0d0_d0(double in0, double in1, double* out0);
extern void scilab_rt_yearfrac_i2i2_d2(int sin00, int sin01, int i... |
nianxiongdi/mpx | packages/api-proxy/__tests__/web/device-network.spec.js | import { getNetworkType } from '../../src/web/api/device/network'
describe('test getNetworkType', () => {
test('should be enums value', () => {
getNetworkType(function ({ networkType }) {
expect(['wifi', '2g', '3g', '4g', '5g', 'unknown', 'none'].includes(networkType)).toBe(true)
})
})
})
// todo com... |
ixray-team/ixray-2.0 | src/xray/render/base/sources/debug_renderer.cpp | <reponame>ixray-team/ixray-2.0
////////////////////////////////////////////////////////////////////////////
// Created : 13.11.2008
// Author : <NAME>
// Copyright (C) GSC Game World - 2009
////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "debug_renderer.h... |
npocmaka/Windows-Server-2003 | base/ntsetup/win95upg/migdlls/setup/office.c | <reponame>npocmaka/Windows-Server-2003
/*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
office.c
Abstract:
This source file implements the operations needed to properly migrate
Office settings from Windows 9x to Windows NT. This is part of the
Setup Migration DLL.
Author:
... |
sgholamian/log-aware-clone-detection | NLPCCd/Camel/1228_1.java | //,temp,sample_4323.java,2,11,temp,sample_259.java,2,13
//,3
public class xxx {
protected void doGetPod(Exchange exchange, String operation) throws Exception {
Pod pod = null;
String podName = exchange.getIn().getHeader( KubernetesConstants.KUBERNETES_POD_NAME, String.class);
String namespaceName = exchange.getIn().get... |
mythoss/midpoint | gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/reports/dto/AuditEventRecordItemValueDto.java | <filename>gui/admin-gui/src/main/java/com/evolveum/midpoint/web/page/admin/reports/dto/AuditEventRecordItemValueDto.java<gh_stars>0
/*
* Copyright (c) 2010-2017 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*... |
nodumo/scala_template_platform_backend | infrastructure/src/main/scala/org/mastermold/platform/infrastructure/repositiories/doobie/instances/libraries/package.scala | package org.mastermold.platform.infrastructure.repositiories.doobie.instances
package object libraries {}
|
mainyordle/reddit2telegram | reddit2telegram/channels/r_progresspics/app.py | #encoding:utf-8
subreddit = 'progresspics'
t_channel = '@r_progresspics'
def send_post(submission, r2t):
return r2t.send_simple(submission)
|
wangardgit/mgi | resources/js/components/Front/Pages/tournamentDeatil/Stats/Stats.js | <gh_stars>0
import React, { Component } from 'react'
class Stats extends Component {
render() {
return (
<div>
<div className="col-md-12 col-sm-12 matches-over">
<h3>No Stats Available</h3>
</div>
</div>
... |
dheles/Vireo | test/org/tdl/vireo/model/jpa/JpaEmailWorkflowRuleConditionImplTest.java | <reponame>dheles/Vireo
/**
*
*/
package org.tdl.vireo.model.jpa;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.tdl.vireo.model.AbstractWorkflowRuleCondition;
import org.tdl.vireo.model.ConditionType;
import org.tdl.vireo.model.MockPerson;
import org.tdl.v... |
tkoyama010/pyvista-doc-translations | locale/pot/api/examples/_autosummary/pyvista-examples-downloads-download_gpr_data_array-1.py | <gh_stars>1-10
from pyvista import examples
dataset = examples.download_gpr_data_array() # doctest:+SKIP
|
rweyrauch/pathtracer | ONB.h | /*
* Pathtracer based on <NAME>'s 'Ray Tracing in One Weekend' e-book
* series.
*
* Copyright (C) 2017 by <NAME> - <EMAIL>
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#ifndef PATHTRACER_ONB_H
#define PATHTRACER_ONB_H
#include "Vector3.h"
class ONB
{
public:
... |
fritzo/kazoo | src/tracker.cpp |
#include "tracker.h"
#include "images.h"
#include "splines.h"
#include <vector>
#include <utility>
#include <algorithm>
#define LOG1(message)
#define LOG_EVENT LOG1
#define ASSERT2_EQ(x,y)
#define ASSERT2_LT(x,y)
#define DEFAULT_MEASUREMENT_NOISE_XY (sqr(1.0f))
#define DEFAULT_MEASUREMENT_NOISE_Z (sqr(0.2f))
... |
ghdawn/apollo | modules/perception/camera/test/camera_lib_calibrator_laneline_app_util.h | <reponame>ghdawn/apollo
/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy o... |
city81/betfair-service-ng | src/main/scala/com/betfair/domain/MarketCatalogue.scala | package com.betfair.domain
import org.joda.time.DateTime
import org.joda.time.format.DateTimeFormat
import play.api.libs.json.{Json, Reads}
case class MarketCatalogue(marketId: String,
marketName: String,
marketStartTime: Option[DateTime],
... |
qiu1993/Pica | Pica/Setting/Request/PCPasswordSetRequest.h | //
// PCPasswordSetRequest.h
// Pica
//
// Created by YueCheng on 2021/5/28.
// Copyright © 2021 fancy. All rights reserved.
//
#import "PCRequest.h"
NS_ASSUME_NONNULL_BEGIN
@interface PCPasswordSetRequest : PCRequest
@property (nonatomic, copy) NSString *passwordOld;
@property (nonatomic, copy) NSString *passw... |
ryangillard/artificial_intelligence | machine_learning/gan/vanilla_gan/tf2_vanilla_gan/vanilla_gan_class_ctl_module/trainer/generators.py | <reponame>ryangillard/artificial_intelligence
import tensorflow as tf
class Generator(object):
"""Generator that takes latent vector input and outputs image.
Fields:
name: str, name of `Generator`.
params: dict, user passed parameters.
model: instance of generator `Model`.
"""
... |
arraycto/SpringBoot-Compilations | SpringBoot-iot/src/main/java/com/wjwcloud/iot/voicecontrol/aligenie/test/controller/TokenController.java | package com.wjwcloud.iot.voicecontrol.aligenie.test.controller;
import com.wjwcloud.iot.voicecontrol.aligenie.utils.AligenieUtil;
import org.apache.oltu.oauth2.as.issuer.MD5Generator;
import org.apache.oltu.oauth2.as.issuer.OAuthIssuer;
import org.apache.oltu.oauth2.as.issuer.OAuthIssuerImpl;
import org.apache.oltu.oa... |
276726581/wx-miniapp | wxapp/pages/goods/test.js | <reponame>276726581/wx-miniapp<filename>wxapp/pages/goods/test.js
const json = [{
"id": 1,
"thumb": "/images/icon.png",
"title": "广州xxxxxxxx",
"price": 16000,
"unit": "吨",
"province": "广东",
"city": "广州",
"createTime": "2018年12月3日"
},
{
"id": 2,
"thumb": "/images/icon.png",
... |
bigdaz/proguard-core | src/proguard/classfile/io/ProgramClassReader.java | /*
* ProGuardCORE -- library to process Java bytecode.
*
* Copyright (c) 2002-2020 Guardsquare NV
*
* 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/licen... |
BitYog/emmet | test/actions/expandAbbreviation.js | var assert = require('assert');
var editor = require('../stubs/editor');
var action = require('../../lib/action/expandAbbreviation');
function run(content) {
if (typeof content !== 'undefined') {
editor.replaceContent(content);
}
action.expandAbbreviationAction(editor);
};
describe('Expand Abbreviation action', ... |
chenxygx/PythonSimple | ReinfocementLearning/gym_demo.py | import gym
env = gym.make("CartPole-v0")
observation = env.reset()
env.render()
done = False
for _ in range(50000):
env.render()
action = env.action_space.sample()
print(env.action_space)
observation, reward, done, info = env.step(action)
if done:
observation = env.reset()
env.close()
|
rage/concepts | frontend/src/components/NavBar.js | import React, { useRef, useState } from 'react'
import { useQuery } from '@apollo/react-hooks'
import { Link as RouterLink } from 'react-router-dom'
import { makeStyles } from '@material-ui/core/styles'
import {
AppBar,
Toolbar,
Typography,
Breadcrumbs,
Link as MaterialLink,
CircularProgress,
LinearProgre... |
GantzLorran/Python | ex0098.py | <gh_stars>1-10
'''Faça um programa que tenha uma função chamada contador()
qeu receba tres parametro: inicio, fim, passo e realize a contagem
seu programa tem que realizar tres contagens atraves da função
criada:
A) de 1 a 10 de 1 em 1
B) de 10 a 0, de 2 em 2
C) um contagem personalizada'''
from time import slee... |
seatsio/seatsio-js | src/Accounts/Accounts.js | const Account = require('./Account.js')
const baseUrl = '/accounts/me'
class Accounts {
constructor (client) {
this.client = client
}
/**
* @returns {Promise<Account>}
*/
retrieveMyAccount () {
return this.client.get(baseUrl).then((res) => new Account(res.data))
}
/... |
rook2pawn/password-manager-baseweb | icons/car_check_front_filled/index.js | <reponame>rook2pawn/password-manager-baseweb
export { default as CarCheckFrontFilled } from './CarCheckFrontFilled' |
alexander-sidorov/qap-05 | hw/alexander_sidorov/lesson06/task01.py | from typing import Union
from hw.alexander_sidorov.common import Errors
from hw.alexander_sidorov.common import api
from hw.alexander_sidorov.common import typecheck
@api
@typecheck
def task_01(arg: str) -> Union[bool, Errors]:
"""
Tells if the arg is a palindrome.
"""
return arg == arg[::-1]
|
kuroudo119/RPGMZ_Plugin | KRD_MZ_Multilingual.js | /*:
* @target MZ
* @plugindesc 多言語プラグイン
* @url https://twitter.com/kuroudo119/
* @url https://github.com/kuroudo119/RPGMZ-Plugin
* @author kuroudo119 (くろうど)
*
* @param basicSection
* @text 基本設定
*
* @param argLanguage
* @text 言語一覧
* @desc 切り替え可能な言語の一覧を指定します。
* デフォルト言語を最初に設定してください。
* @default ["日本語"]
* @... |
npocmaka/Windows-Server-2003 | net/wins/server/inc/rpl.h | #ifndef _RPL_
#define _RPL_
/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
Abstract:
Functions:
Portability:
This header is portable.
Author:
<NAME> (PradeepB) Jan-1993
Revision History:
Modification Date Per... |
Aerijo/latex-language-server | src/handlers/hover/HoverHandler.h | #ifndef LATEX_LANGUAGE_SERVER_HOVER_H
#define LATEX_LANGUAGE_SERVER_HOVER_H
#include <lsp-tools/Handler.h>
class HoverHandler : public RequestHandler {
public:
HoverHandler () : RequestHandler ("textDocument/hover") {};
void registerCapabilities (Init::ServerCapabilities &capabilities) override;
void ru... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/EmailDaemon/EDMessageQueryParser.h | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class EDMessageQueryTransformer, EDSearchableIndex, EFSQLObjectPropertyMapper, EFSearchableIndexObjectPropertyMapper;
@interface EDMessageQueryParser : NSObject
{
... |
aimbrain/aimbrain-ios-sdk | Source/Voice/AMBNCircularProgressView.h | <filename>Source/Voice/AMBNCircularProgressView.h<gh_stars>0
#import <UIKit/UIKit.h>
@interface AMBNCircularProgressView : UIView
@property(nonatomic, strong) UIColor *trackTintColor;
@property(nonatomic, assign) CGFloat trackStrokeWidth;
@property(nonatomic, strong) UIColor *progressTintColor;
@property(nonatomic, ... |
hariharanragothaman/pymaster | 101/misc/complete_template.py | import os
import sys
from io import BytesIO, IOBase
_str = str
str = lambda x=b"": x if type(x) is bytes else _str(x).encode()
BUFSIZE = 8192
from collections import deque, Counter, OrderedDict
from heapq import nsmallest, nlargest, heapify, heappop, heappush, heapreplace
from math import ceil, floor, log, log2, sqr... |
Dennis-Koch/ambeth | jambeth/jambeth-ioc-test/src/test/java/com/koch/ambeth/AllIocTests.java | package com.koch.ambeth;
/*-
* #%L
* jambeth-ioc-test
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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/lice... |
VUEngine/VUEngine-Plugins | states/splash/SplashScreen/source/SplashScreenState/SplashScreenState.h | <reponame>VUEngine/VUEngine-Plugins
/**
* VUEngine Plugins Library
*
* (c) <NAME> and <NAME>
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
#ifndef SPLASH_SCREEN_STATE_H_
#define SPLASH_SCREEN_STATE_H_
//-----------------------... |
jenkinsci/analysis-runner | src/main/java/edu/hm/hafner/NeedBraces3Superclass.java | <filename>src/main/java/edu/hm/hafner/NeedBraces3Superclass.java
package edu.hm.hafner;
/**
* Document type NeedBraces3Superclass.
*
* @author <NAME>uml;stl
*/
public class NeedBraces3Superclass {
} |
czen/open-ops | source/Transforms/DataDistribution/BlockAffineDataDistributionParameters.cpp | <filename>source/Transforms/DataDistribution/BlockAffineDataDistributionParameters.cpp
#include "Transforms/DataDistribution/BlockAffineDataDistributionParameters.h"
#include "Reprise/Reprise.h"
#include <sstream>
namespace OPS
{
namespace Transforms
{
namespace DataDistribution
{
bool BADDParameters::isValid()
... |
ScalablyTyped/SlinkyTyped | a/amap-js-api-arrival-range/src/main/scala/typingsSlinky/amapJsApiArrivalRange/amapJsApiArrivalRangeStrings.scala | <filename>a/amap-js-api-arrival-range/src/main/scala/typingsSlinky/amapJsApiArrivalRange/amapJsApiArrivalRangeStrings.scala
package typingsSlinky.amapJsApiArrivalRange
import typingsSlinky.amapJsApiArrivalRange.AMap.ArrivalRange.SearchStatus
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scal... |
alipay/antchain-openapi-prod-sdk | blockchain/java/src/main/java/com/antgroup/antchain/openapi/blockchain/models/AddVC.java | <reponame>alipay/antchain-openapi-prod-sdk
// This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.blockchain.models;
import com.aliyun.tea.*;
public class AddVC extends TeaModel {
// vc原文hash
@NameInMap("content_hash")
@Validation(required = true)
public String co... |
JonZhang3/QueryFlow | src/main/java/com/queryflow/log/log4j2/Log4j2Impl.java | package com.queryflow.log.log4j2;
import com.queryflow.log.Log;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.spi.AbstractLogger;
public class Log4j2Impl implements Log {
private Log log;
public Log4j2Impl(String clazz) {
Logger l... |
alexis-rodriguez/vectorbt | tests/test_labels.py | <filename>tests/test_labels.py
import numpy as np
import pandas as pd
from datetime import datetime
import vectorbt as vbt
close_ts = pd.DataFrame({
'a': [1, 2, 1, 2, 3, 2],
'b': [3, 2, 3, 2, 1, 2]
}, index=pd.Index([
datetime(2020, 1, 1),
datetime(2020, 1, 2),
datetime(2020, 1, 3),
datetime(2... |
EchoThreeLLC/echothree | src/java/com/echothree/control/user/inventory/server/command/BasePartyInventoryLevelCommand.java | // --------------------------------------------------------------------------------
// Copyright 2002-2022 Echo Three, 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:/... |
richardlalancette/AfterEffectsExperimentations | Examples/AEGP/Panelator/Mac/IconsFontAwesome5.h | <filename>Examples/AEGP/Panelator/Mac/IconsFontAwesome5.h
// Generated by https://github.com/juliettef/IconFontCppHeaders script GenerateIconFontCppHeaders.py for language C++11
// from https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/metadata/icons.yml
// for use with https://github.com/FortAwesome/Fo... |
UbuntuEvangelist/OG-Platform | projects/OG-Bloomberg/src/main/java/com/opengamma/bbg/BloombergFields.java | <reponame>UbuntuEvangelist/OG-Platform
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.bbg;
// REVIEW kirk 2009-10-12 -- This really should be an object that's created by parsing
// the bbfields.tbl file. Fo... |
dreamsxin/ultimatepp | uppsrc/XmlRpc/xrs_header.h | <filename>uppsrc/XmlRpc/xrs_header.h
#include "XmlRpc.h"
#define STRUCT(id) struct id {
#define VAR(type, id) type id;
#define INT(id) int id;
#define BOOL(id) bool id;
#define STRING(id) String id;
#define DOUBLE(id) double id;
#define DATE(id) Date id;
#define TIME(id) Time id;... |
ms20hj/ets | ets-model/src/main/java/com/cms/ets/model/mysql/park/Scape.java | <gh_stars>0
package com.cms.ets.model.mysql.park;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cms.ets.model.mysql.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
/**
* <p>
* 景点信息表
* </p>
*
* @author cms
* @since 2019-10-24
*/
@TableName("t_scape")
public class Scape exte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.