repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
slusek/OG-Platform | projects/OG-Util/src/main/java/com/opengamma/util/fudgemsg/timeseries/DoubleTimeSeriesFudgeBuilder.java | <reponame>slusek/OG-Platform<gh_stars>1-10
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.util.fudgemsg.timeseries;
import org.fudgemsg.FudgeMsg;
import org.fudgemsg.MutableFudgeMsg;
import org.fudgemsg.map... |
pengfei99/JavaBasic | LearningJava/src/main/java/org/pengfei/Lesson00_Java_Basics/S10_MultiThread/source/SumArrayWithoutSynchronizedMethod.java | <filename>LearningJava/src/main/java/org/pengfei/Lesson00_Java_Basics/S10_MultiThread/source/SumArrayWithoutSynchronizedMethod.java
package org.pengfei.Lesson00_Java_Basics.S10_MultiThread.source;
public class SumArrayWithoutSynchronizedMethod {
private int sum;
// this method is not synchronized
int sum... |
dzhemriza/goffi | org.goffi.fx.core/src/main/java/org/goffi/fx/core/AlertUtils.java | <reponame>dzhemriza/goffi
/*
* org.goffi.fx.core
*
* File Name: AlertUtils.java
*
* Copyright 2018 <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... |
plasmo-foss/pkg | test/test-79-npm/ws/ws.js | 'use strict';
var WebSocket = require('ws');
var ws = new WebSocket('ws://127.0.0.1/');
ws.on('error', function () {
console.log('ok');
});
|
asac/tpm2-tools | test/unit/test_tpm2_util.c | <gh_stars>10-100
/* SPDX-License-Identifier: BSD-3-Clause */
#include <stdbool.h>
#include <stdio.h>
#include <setjmp.h>
#include <cmocka.h>
#include "tpm2_hierarchy.h"
#include "tpm2_util.h"
static void test_tpm2_util_handle_from_optarg_NULL(void **state) {
UNUSED(state);
TPMI_RH_PROVISION h;
bool res... |
miw-upm/apaw-practice | src/main/java/es/upm/miw/apaw_practice/domain/services/zoo/CaretakerService.java | <filename>src/main/java/es/upm/miw/apaw_practice/domain/services/zoo/CaretakerService.java<gh_stars>1-10
package es.upm.miw.apaw_practice.domain.services.zoo;
import es.upm.miw.apaw_practice.domain.models.zoo.Caretaker;
import es.upm.miw.apaw_practice.domain.persistence_ports.zoo.CaretakerPersistence;
import org.sprin... |
kryo4096/NPDECODES | homeworks/SimpleLinearFiniteElements/templates/test/simplelinearfiniteelements_test.cc | <reponame>kryo4096/NPDECODES<gh_stars>10-100
#include "../simplelinearfiniteelements.h"
#include <gtest/gtest.h>
#include <Eigen/Core>
#include <Eigen/SparseLU>
#include <cmath>
#include <tuple>
#include "../tria_mesh_2D.h"
namespace SimpleLinearFiniteElements::test {
constexpr double pi = 3.1415926535897;
constex... |
Sinsstranger/ReactJS_Learning | lesson_3/src/layouts/Posts.js | <reponame>Sinsstranger/ReactJS_Learning<filename>lesson_3/src/layouts/Posts.js
import React from 'react';
import Post1 from "../components/Post1";
import Post2 from "../components/Post2";
export default class Posts extends React.Component{
render(){
return <div className={this.props.postsClass}>
... |
chinanala/echo | echo-proxy-lib/src/main/java/com/virjar/echo/nat/log/ILogger.java | package com.virjar.echo.nat.log;
public interface ILogger {
void info(String msg);
void info(String msg, Throwable throwable);
void warn(String msg);
void warn(String msg, Throwable throwable);
void error(String msg);
void error(String msg, Throwable throwable);
void debug(String msg)... |
seakers/ExtUtils | dakota-6.3.0.Windows.x86/include/interfaces/NPSOL.h | <reponame>seakers/ExtUtils
/* _________________________________________________________________________
*
* Acro: A Common Repository for Optimizers
* Copyright (c) 2008 Sandia Corporation.
* This software is distributed under the BSD License.
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corpor... |
radoslav-tomov/k8s-config-connector | pkg/apis/pubsub/v1beta1/zz_generated.deepcopy.go | //go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Copyright 2020 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/LIC... |
goodmind/FlowDefinitelyTyped | flow-types/types/iferr_vx.x.x/flow_v0.25.x-/iferr.js | declare module "iferr" {
declare type nodeCallback<T> = (err: Error | void, ...a: T[]) => any;
declare function iferr<T>(
fail: (err: Error) => void,
succ: (...result: T[]) => void
): nodeCallback<T>;
declare var npm$namespace$iferr: {
iferr: typeof iferr$iferr,
tiferr: typeof iferr$tiferr,
... |
tizenorg/profile.ivi.smartdevicelink | SDL_Android/SmartDeviceLinkProxyAndroid/src/com/smartdevicelink/proxy/rpc/PerformInteractionResponse.java | //
// Copyright (c) 2013 Ford Motor Company
//
package com.smartdevicelink.proxy.rpc;
import java.util.Hashtable;
import com.smartdevicelink.proxy.RPCResponse;
import com.smartdevicelink.proxy.constants.Names;
import com.smartdevicelink.proxy.rpc.enums.TriggerSource;
import com.smartdevicelink.util.DebugTool;
public... |
androidworx/andworx | android-core/plugins/org.eclipse.andworx.build/src/org/eclipse/andworx/build/task/RenderscriptCompileTask.java | /*
* Copyright (C) 2012 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
*
* Unless required by app... |
ArrogantWombatics/openbsd-src | sys/miscfs/fuse/fuse_vfsops.c | <reponame>ArrogantWombatics/openbsd-src<gh_stars>1-10
/* $OpenBSD: fuse_vfsops.c,v 1.23 2016/06/19 11:54:33 natano Exp $ */
/*
* Copyright (c) 2012-2013 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above... |
tototoshi/scalaflavor4j | src/main/java/com/m3/scalaflavor4j/Function4.java | /*
* Copyright 2012 M3, 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 or agreed to in ... |
MFazio23/ComicReader | ComicReader/src/com/blogspot/applications4android/comicreader/comics/GoComics/BiffnRiley.java | package com.blogspot.applications4android.comicreader.comics.GoComics;
import java.util.Calendar;
import com.blogspot.applications4android.comicreader.comictypes.DailyGoComicsCom;
public class BiffnRiley extends DailyGoComicsCom {
public BiffnRiley() {
super();
mComicName = "biff-and-riley";
mFirstCal = Calend... |
minskylab/framework-core | ent/deathrecord.go | // Code generated by entc, DO NOT EDIT.
package ent
import (
"fmt"
"opencensus/core/ent/deathrecord"
"strings"
"time"
"entgo.io/ent/dialect/sql"
)
// DeathRecord is the model entity for the DeathRecord schema.
type DeathRecord struct {
config `json:"-"`
// ID of the ent.
ID int `json:"id,omitempty"`
// Rep... |
ehealth-ua/ehealth.web | packages/auth/jest.config.js | <reponame>ehealth-ua/ehealth.web
module.exports = {
displayName: "auth:unit",
preset: "@ehealth/test-preset/unit"
};
|
vborisoff/reladomo | reladomo/src/test/java/com/gs/fw/common/mithra/test/TestThreadExecutor.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,
sof... |
sriram18981/core-java-learnings | src/learnings/sriram/sort/BubbleSort.java | <filename>src/learnings/sriram/sort/BubbleSort.java
package learnings.sriram.sort;
public class BubbleSort {
public static void main(String[] args) {
int[] intArray = { 1, 23, 12, 34, 56, 65, 43, 56, 78, 43, 54, 765, 5433, 234 };
int[] sortedArr = bubbleSort(intArray);
printArray(sortedArr);
}
private sta... |
KonduitAI/konduit-serving | konduit-serving-build/src/main/java/ai/konduit/serving/build/dependencies/AllRequirement.java | /*
* ******************************************************************************
* * Copyright (c) 2020 <NAME>.
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2... |
shartte/Mekanism | src/minecraft/ic2/api/energy/EnergyNet.java | <gh_stars>0
package ic2.api.energy;
import java.lang.reflect.Method;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import ic2.api.energy.tile.IEnergySource;
/**
* Provides access to the energy network.
*/
public final class EnergyNet {
/**
* Gets the EnergyNet instance for the s... |
kokizzu/terminusdb | tests/lib/triples.js | const assert = require('assert')
const api = require('./api')
const { Params } = require('./params.js')
const util = require('./util.js')
function get (agent, params) {
params = new Params(params)
const descriptor = params.string('descriptor')
const path = params.string(
'path',
util.isDefined(descripto... |
kbingman/bkr | vendor/radiant/vendor/plugins/haml/test/profile.rb | <reponame>kbingman/bkr<filename>vendor/radiant/vendor/plugins/haml/test/profile.rb
require 'rubygems'
require 'active_support'
require 'action_controller'
require 'action_view'
require File.dirname(__FILE__) + '/../lib/haml'
require 'haml/template'
require 'profiler'
require 'stringio'
module Haml
# Used by both H... |
Krzyciu/A3CS | addons/nametags/ranks/usaf/ranks.hpp | <filename>addons/nametags/ranks/usaf/ranks.hpp
class USAF_lotnik {
name = "Lotnik";
icon = QPATHTOF(ranks\usaf\Lotnik.paa);
importance = 0;
};
class USAF_st_lotnik {
name = "<NAME>";
icon = QPATHTOF(ranks\usaf\St_Lotnik.paa);
importance = 1;
};
class USAF_ml_sierzant {
name = CSTRING(Ranks... |
trilisen/Examensarbete | server/models/poll.js | <gh_stars>0
import mongoose from "mongoose"
const Schema = mongoose.Schema
const pollSchema = new Schema(
{
title: {
type: String,
required: true,
trim: true,
},
description: {
type: String,
trim: true,
},
creator: {
type: Schema.Types.ObjectId,
required... |
mrcao20/McQuickBoot | wizards/mcwizards/classes/cpp/file.h | <gh_stars>1-10
%{Cpp:LicenseTemplate}\
@if '%{Cpp:PragmaOnce}'
#pragma once
@else
#ifndef %{GUARD}
#define %{GUARD}
@endif
%{JS: QtSupport.qtIncludes([ ( '%{IncludeQObject}' ) ? 'QtCore/%{IncludeQObject}' : ''],
[ ( '%{IncludeQObject}' ) ? 'QtCore/%{IncludeQObject}' : '']... |
lqt93/simple-chat-app | src/components/pages/NotFound/index.js | <filename>src/components/pages/NotFound/index.js
import React from "react";
import { Link } from "react-router-dom";
import { makeStyles } from "@material-ui/core/styles";
const useStyles = makeStyles({
root: {
display: "flex",
justifyContent: "center",
alignItems: "center"
},
msgContainer: {
tex... |
lihongwu19921215/mz-g | src/main/java/band/wukong/mz/g/sku/bean/Goods.java | <filename>src/main/java/band/wukong/mz/g/sku/bean/Goods.java<gh_stars>10-100
package band.wukong.mz.g.sku.bean;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;
import java.io.File;
import j... |
simtopy/ore | test/migration/models/v4/reference.js | <reponame>simtopy/ore<gh_stars>0
module.exports = {
type: "reference",
fields: {
x: "real",
y: "real",
z: "real",
}
} |
nirvanarsc/CompetitiveProgramming | Java/leetcode/weekly_contests/weekly_257/P_3.java | <filename>Java/leetcode/weekly_contests/weekly_257/P_3.java
package leetcode.weekly_contests.weekly_257;
public class P_3 {
private static final int MOD = (int) (1e9 + 7);
public int firstDayBeenInAllRooms(int[] nextVisit) {
final int n = nextVisit.length;
final long[] dp = new long[n];
... |
pablobacho/XBee-PSoC | PSoC4200 Tx Example.cydsn/Generated_Source/PSoC4/XBEE_RESET_aliases.h | /*******************************************************************************
* File Name: XBEE_RESET.h
* Version 2.20
*
* Description:
* This file contains the Alias definitions for Per-Pin APIs in cypins.h.
* Information on using these APIs can be found in the System Reference Guide.
*
* Note:
*
*************... |
mmghasemi/Vega | platform/com.subgraph.vega.ui.web/src/com/subgraph/vega/ui/web/views/ExcludeScopeAction.java | package com.subgraph.vega.ui.web.views;
import java.net.URI;
import java.util.List;
import org.eclipse.jface.viewers.StructuredViewer;
import com.subgraph.vega.api.model.IModel;
import com.subgraph.vega.api.model.scope.ITargetScope;
public class ExcludeScopeAction extends AbstractScopeAction {
private final static... |
puer99miss/Xapiand | src/xapian/net/remoteserver.cc | <reponame>puer99miss/Xapiand
/** @file remoteserver.cc
* @brief Xapian remote backend server base class
*/
/* Copyright (C) 2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018 <NAME>
* Copyright (C) 2006,2007,2009,2010 Lemur Consulting Ltd
*
* This program is free software; you can redistribute it an... |
ShafranEugene/irida-telegrambot | src/main/java/com/github/iridatelegrambot/service/buttons/InlineAdminButtonServiceImpl.java | package com.github.iridatelegrambot.service.buttons;
import com.github.iridatelegrambot.entity.UserTelegram;
import com.github.iridatelegrambot.service.UserTelegramService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.telegram.telegrambots.met... |
SUNET/eduid-automated-tests | src/main/java/se/sunet/eduid/dashboard/PhoneNumber.java | <reponame>SUNET/eduid-automated-tests
package se.sunet.eduid.dashboard;
import org.testng.Assert;
import se.sunet.eduid.utils.Common;
import se.sunet.eduid.utils.TestData;
public class PhoneNumber {
private final Common common;
private final TestData testData;
public PhoneNumber(Common common, TestData t... |
opengauss-mirror/Yat | openGaussBase/testcase/SECURITY/MASKING/Opengauss_Function_Security_Masking_Case0062.py | <reponame>opengauss-mirror/Yat
"""
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS ... |
vol4tim/DAO-IPCI | dapp/src/shared/dao/market/containers/main.js | <reponame>vol4tim/DAO-IPCI<gh_stars>10-100
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import _ from 'lodash'
import { Main } from '../components'
import Spin from '../../../../shared/components/common/spin'
import { loadModule, approveLot, d... |
lysyjakk/neuralchess | src/gameManager.cc | #include "../inc/gameManager.hh"
#define COORD_TO_BIT_POS(x , y) (x * 8 + y)
void GameManager::start_new_game()
{
TRACE_INFO("Initialization new game...");
TRACE_INFO("Initialization bitboards...");
m_black_board.king = Bitboard(0x1000000000000000ULL);
m_black_board.queens = Bitboard(0x0800000000000000UL... |
yashlad27/codeforce-codechef-problems | codeforces/Probems/61A.cpp | <reponame>yashlad27/codeforce-codechef-problems<gh_stars>0
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
int main() {
// ultra - fast mathematician: 61A
string n1, n2;
cin>>n1>>n2;
//string res;
for(int i = 0; i<n1.length(); i++)
{
if(n1[i]==n2[i])
{
n1[i]='0';
}
els... |
isaacbrodsky/freeze | freeze/src/main/java/com/isaacbrodsky/freeze/elements/Door.java | /**
*
*/
package com.isaacbrodsky.freeze.elements;
import com.isaacbrodsky.freeze.elements.data.InteractionRule;
import com.isaacbrodsky.freeze.elements.data.InteractionRulesSet;
import com.isaacbrodsky.freeze.elements.data.SaveData;
import com.isaacbrodsky.freeze.elements.oop.Message;
import com.isaacbrodsky.freez... |
AnupamaGupta01/kudu-1 | src/kudu/rpc/messenger.cc | <filename>src/kudu/rpc/messenger.cc<gh_stars>1-10
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apach... |
kkcookies99/UAST | Dataset/Leetcode/valid/19/3.cpp | class Solution {
public:
ListNode* XXX(ListNode* head, int n) {
if(!head | !head -> next) return NULL;
ListNode * fast = head, *slow = head;
for(int i = 0; i < n; i++){
fast = fast -> next;
}
if(!fast){
return head -> next;
}
... |
tscher/PySDDP | PySDDP/newave/script/arquivos.py | <filename>PySDDP/newave/script/arquivos.py
import os
from typing import IO
from PySDDP.newave.script.templates.arquivos import ArquivosTemplate
class Arquivos(ArquivosTemplate):
def __init__(self):
super().__init__()
self.lista_entrada = list()
self._conteudo_ = None
self.dir_bas... |
ddomingos-daitan/oss-models | authc-model/src/main/java/com/symphony/s2/authc/model/IMultiTenantServiceRegistry.java | <filename>authc-model/src/main/java/com/symphony/s2/authc/model/IMultiTenantServiceRegistry.java
/*
* Copyright 2020 Symphony Communication Services, LLC.
*
* All Rights Reserved
*/
package com.symphony.s2.authc.model;
import com.symphony.s2.authc.canon.IServiceInfo;
/**
* A service to look up information about... |
NilsRenaud/vert.x | src/main/java/io/vertx/core/impl/JavaVerticleFactory.java | /*
* Copyright (c) 2011-2019 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https:... |
cenodis/InfinityLib | src/main/java/com/infinityraider/infinitylib/modules/dualwield/MouseClickHandler.java | <filename>src/main/java/com/infinityraider/infinitylib/modules/dualwield/MouseClickHandler.java<gh_stars>0
package com.infinityraider.infinitylib.modules.dualwield;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.client.multiplayer.PlayerControllerMP;
impo... |
AgeOfLearning/material-design-icons | av/icon-twotone-missed-video-call-element/index.js | import styles from './template.css';
import template from './template';
import AoflElement from '@aofl/web-components/aofl-element';
/**
* @summary IconTwotoneMissedVideoCallElement
* @class IconTwotoneMissedVideoCallElement
* @extends {AoflElement}
*/
class IconTwotoneMissedVideoCallElement extends AoflElement {
... |
Ecotrust/COMPASS | mp/data_manager/migrations/0002_auto_20190529_1612.py | <gh_stars>1-10
# Generated by Django 2.2.1 on 2019-05-29 16:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data_manager', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='dataneed',
name='... |
hitjl/trino | plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/catalog/glue/TestIcebergGlueCatalogConnectorSmokeTest.java | <gh_stars>1000+
/*
* 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, softw... |
dsabanin/intellij-scala | scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/base/types/ScMatchTypeCasesImpl.scala | <filename>scala/scala-impl/src/org/jetbrains/plugins/scala/lang/psi/impl/base/types/ScMatchTypeCasesImpl.scala
package org.jetbrains.plugins.scala.lang.psi.impl.base.types
import com.intellij.lang.ASTNode
import org.jetbrains.plugins.scala.lang.psi.api.base.types.{ScMatchTypeCase, ScMatchTypeCases}
import org.jetbrain... |
gnafit/gna | tests/expression1/variable.py | #!/usr/bin/env python
from gna.expression import *
v0 = Variable('v0')
print( v0 )
v1 = Variable('v1', 'i')
print(v1)
v2 = Variable('v2', 'i', 'j')
print(v2)
v3 = Variable('v3', 'j', 'k')
print(v3)
v4 = Variable('v4', 'm')
print(v4)
pr1 = v2*v3
pr1.name = 'pr1'
print( 'pr1=v2*v3:', pr1, '=', pr1.estr() )
pr2 = ... |
mauricioklein/algorithm-exercises | challenge-24/test_solver.py | <gh_stars>1-10
import unittest
from solver import Solution
class TestSolver(unittest.TestCase):
def test_move_zeros(self):
self.assertEqual(Solution().move_zeros([ 1, 0, 3, 5, 0, 12]), [ 1, 3, 5, 12, 0, 0])
self.assertEqual(Solution().move_zeros([ 3, 0, 1, 12, 0, 5]), [ 3, 1, 12, 5, 0, 0])
self... |
sirinath/daffodil | daffodil-test/src/test/scala-new/edu/illinois/ncsa/daffodil/usertests/TestUserSubmittedTests.scala | <reponame>sirinath/daffodil<filename>daffodil-test/src/test/scala-new/edu/illinois/ncsa/daffodil/usertests/TestUserSubmittedTests.scala
package edu.illinois.ncsa.daffodil.usertests
/* Copyright (c) 2012-2013 Tresys Technology, LLC. All rights reserved.
*
* Developed by: Tresys Technology, LLC
* http:/... |
concord-consortium/rigse | rails/spec/policies/portal/offering_policy_spec.rb | <reponame>concord-consortium/rigse
# frozen_string_literal: false
require 'spec_helper'
RSpec.describe Portal::OfferingPolicy do
let(:user) { FactoryBot.create(:user) }
let(:scope) { Pundit.policy_scope!(user, Portal::Offering) }
describe "Scope" do
before(:each) do
@project1 = FactoryBot.create(:pr... |
enrobyn/lookit-api | studies/tasks.py | import logging
import os
import re
import shutil
import subprocess
import time
import tempfile
import hashlib
import datetime
import zipfile
from io import BytesIO, StringIO
import requests
from django.conf import settings
from django.core.files import File
from django.utils import timezone
from google.cloud import st... |
lechium/tvOS135Headers | System/Library/PrivateFrameworks/GameCenterUI.framework/GKBubblePathAnimator.h | <filename>System/Library/PrivateFrameworks/GameCenterUI.framework/GKBubblePathAnimator.h
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, June 7, 2020 at 11:27:23 AM Mountain Standard Time
* Operating System: Version 13.4.5 (Build 17L562)
* Image Source: /System/Library/PrivateFrameworks/GameCenterUI.fr... |
fgtorres/regadb-leishmaniasis | regadb-research/src/be/kuleuven/rega/research/conserved/groupers/SubtypeGrouper.java | <reponame>fgtorres/regadb-leishmaniasis<filename>regadb-research/src/be/kuleuven/rega/research/conserved/groupers/SubtypeGrouper.java
package be.kuleuven.rega.research.conserved.groupers;
import java.util.List;
import net.sf.regadb.db.DrugGeneric;
import net.sf.regadb.db.NtSequence;
import net.sf.regadb.db.TestResult... |
scottdonaldau/QRL | src/qrl/core/misc/DependencyChecker.py | <filename>src/qrl/core/misc/DependencyChecker.py
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import sys
import os
import pkg_resources
class DependencyChecker:
@staticmethod
def _get_requirements_path():
return os.path.abspath(os.path.join(os.path.dirname(__file__),
... |
mayc2/PseudoKnot_research | RNAstructure_Source/java_interface/src/ur_rna/GUITester/GuiTools/Matchers/VisibilityMatcher.java | package ur_rna.GUITester.GuiTools.Matchers;
import java.awt.*;
/**
* Tests the visibility of the GUI component (whether it is showing or not)
*/
public class VisibilityMatcher extends ComposableBase {
private boolean _vis = true;
public VisibilityMatcher() { }
public VisibilityMatcher(boolean visible)... |
haoweiqiu/No1Tutoring | TutoringService-Backend/src/main/java/ca/mcgill/ecse321/tutoring_service/model/Student.java | <reponame>haoweiqiu/No1Tutoring
package ca.mcgill.ecse321.tutoring_service.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.ManyToOne;
import java.util.Set;
import javax.persistence.OneToMany;
import javax.persistence.Id;... |
SynthSys/BioDare2-BACK | src/main/java/ed/biodare2/backend/web/rest/ScrabController.java | /*
* 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 ed.biodare2.backend.web.rest;
import java.security.Principal;
import java.util.HashMap;
import java.util.Map;
import... |
shufps/hornet | plugins/restapi/v2/receipts.go | package v2
import (
"github.com/labstack/echo/v4"
"github.com/pkg/errors"
"github.com/gohornet/hornet/pkg/model/utxo"
"github.com/gohornet/hornet/pkg/restapi"
)
func receipts(_ echo.Context) (*receiptsResponse, error) {
receipts := make([]*utxo.ReceiptTuple, 0)
if err := deps.UTXOManager.ForEachReceiptTuple(fu... |
dave2wave/whimsy | tools/iclasort.rb | <reponame>dave2wave/whimsy<filename>tools/iclasort.rb<gh_stars>10-100
#!/usr/bin/env ruby
$LOAD_PATH.unshift '/srv/whimsy/lib'
require 'whimsy/asf'
iclas = File.join(ASF::SVN['officers'], 'iclas.txt')
cmd = ['svn', 'update', iclas]
puts cmd.join(' ')
system *cmd
source = File.read(iclas)
sorted = ASF::ICLA.sort(sour... |
anthowen/duplify | env/lib/python3.6/site-packages/scipy/version.py |
# THIS FILE IS GENERATED FROM SCIPY SETUP.PY
short_version = '1.1.0'
version = '1.1.0'
full_version = '1.1.0'
git_revision = '<PASSWORD>'
release = True
if not release:
version = full_version
|
powlab/jeye | src/main/scala/org/powlab/jeye/utils/ConstantPoolUtils.scala | <reponame>powlab/jeye<filename>src/main/scala/org/powlab/jeye/utils/ConstantPoolUtils.scala
package org.powlab.jeye.utils
import org.powlab.jeye.core._
import org.powlab.jeye.core.Constants._
import org.powlab.jeye.core.Descriptors._
import org.powlab.jeye.core.parsing.DescriptorParser.Pisc
import org.powlab.jeye.core... |
Mosframe/uni.ts | source/Libs/dotnet/System/Collections/Array/Compare.js | /*!
* @author electricessence / https://github.com/electricessence/
* Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md
*/
import * as Values from "../../Compare";
import { Type } from "../../Types";
/* validateSize: Utility for quick validation/invalidation of array equality.
... |
ytobah/dlib-mod | tools/mltool/src/regression.h | // The contents of this file are in the public domain.
// See LICENSE_FOR_EXAMPLE_PROGRAMS.txt (in trunk/examples)
// Authors:
// <NAME>
// <NAME>
#ifndef DLIB_MLTOOL_REGREsSION_H__
#define DLIB_MLTOOL_REGREsSION_H__
#include "common.h"
#include <vector>
void
krr_test (
command_line_parser& pa... |
vine-io/vine | core/codec/yaml/yaml.go | <gh_stars>1-10
// Copyright 2020 The vine Authors
//
// MIT License
//
// Copyright (c) 2020 Lack
//
// 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 ... |
samssonart/gmtThesisAR | Implementation/iOSIlluminati/include/AR/sys/CameraVideo.h | <reponame>samssonart/gmtThesisAR
/*
* CameraVideo.h
* ARToolKit5
*
* This file is part of ARToolKit.
*
* ARToolKit is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the Li... |
utiasASRL/vtr3 | main/src/vtr_vision/src/messages/bridge.cpp | // Copyright 2021, Autonomous Space Robotics Lab (ASRL)
//
// 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 appli... |
gidmoth/freeswitch-image-builder | freeswitch/src/mod/xml_int/mod_xml_rpc/ws.c | #include "ws.h"
#ifndef _MSC_VER
#include <fcntl.h>
#endif
#define SHA1_HASH_SIZE 20
static struct globals_s globals;
#ifndef WSS_STANDALONE
void init_ssl(void)
{
// SSL_library_init();
}
void deinit_ssl(void)
{
return;
}
#else
static void pthreads_thread_id(CRYPTO_THREADID *id);
static void pthreads_locking_cal... |
lazuli-inc/fess | src/main/java/org/codelibs/fess/util/ParameterUtil.java | /*
* Copyright 2012-2021 CodeLibs Project and the Others.
*
* 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 ap... |
tejeshMore-dev/compiled-leet-codes | problems/1539-kth-missing-positive-number/1539-kth-missing-positive-number.js | /**
* @param {number[]} arr
* @param {number} k
* @return {number}
*/
var findKthPositive = function(arr, k) {
let pointer, diff;
for( let i = 0; i < arr.length; i++ ) {
if( i=== 0 && arr[0] > 1 ) {
diff = arr[i] - 1;
pointer = 0;
} else {
diff = arr[... |
bsramin/shorty | client/src/lib/helpers.js | <gh_stars>1-10
// Returns a function, that, as long as it continues to be invoked, will not
// be triggered. The function will be called after it stops being called for
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
import ky from 'ky'
import { API_V1_... |
dbflute-test/dbflute-test-dbms-mysql | src/main/java/org/docksidestage/mysql/dbflute/bsentity/BsWhiteDeprecatedClsElement.java | <filename>src/main/java/org/docksidestage/mysql/dbflute/bsentity/BsWhiteDeprecatedClsElement.java
/*
* Copyright 2004-2013 the Seasar Foundation and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... |
duesenklipper/wicketstuff-security | swarm-parent/hive/src/main/java/org/apache/wicket/security/hive/SimpleCachingHive.java | <gh_stars>0
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Li... |
XQDD/gdou-car | src/main/java/com/wteam/wx/utils/SSLUtils.java | package com.wteam.wx.utils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.conn.ssl.TrustStrategy;
import org.apach... |
rrv-rafael/curso-java-basico | IntelliJ/src/com/rrvrafael/cursojava/aula17/LoopFor.java | <reponame>rrv-rafael/curso-java-basico
package com.rrvrafael.cursojava.aula17;
public class LoopFor {
public static void main(String[] args) {
for (int i = 0; i < 5; i++)
{
System.out.println("i tem valor: " + i);
}
for (int i = 5; i > 0; i--)
{
Sy... |
AudioVisualDistributors/Overture-Drivers | drivers/avpro_videoflux/index.js | <reponame>AudioVisualDistributors/Overture-Drivers
const CMD_DEFER_TIME = 1000 // Timeout when using commandDefer
const TICK_PERIOD = 5000 // In-built tick interval
const POLL_PERIOD = 10000 // Continuous polling function interval
const TCP_TIMEOUT = 30000 // Will timeout after th... |
lmz199521/AtGuiGuDemo | app/src/main/java/com/example/hasee/shoppingdemo/Activity/autologin/AutoLoginPresenter.java | <filename>app/src/main/java/com/example/hasee/shoppingdemo/Activity/autologin/AutoLoginPresenter.java
package com.example.hasee.shoppingdemo.Activity.autologin;
import android.util.Log;
import com.example.hasee.shoppingdemo.Bean.LoginBean;
import com.example.hasee.shoppingdemo.Presenter.ContentPresenter;
import com.e... |
bobrutskovav/java_otus_homework | hw22-cache/src/main/java/ru/otus/cache/CacheHomeWork.java | package ru.otus.cache;
import org.flywaydb.core.Flyway;
import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.otus.cache.cachehw.HwCache;
import ru.otus.cache.cachehw.HwListener;
import ru.otus.cache.cachehw.MyCache;
import ru.otus.cache.core.dao.UserDao;
import ru.otu... |
zhangjun1992/rtt-bsp-hpm6750evkmini | libraries/hpm_sdk/drivers/inc/hpm_cam_drv.h | <reponame>zhangjun1992/rtt-bsp-hpm6750evkmini
/*
* Copyright (c) 2021 hpmicro
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef HPM_CAM_DRV_H
#define HPM_CAM_DRV_H
#include "hpm_common.h"
#include "hpm_display_common.h"
#include "hpm_cam_regs.h"
/**
* @brief CAM driver APIs
* @defgroup cam_interface CAM ... |
StableAgOH/solution-codes | luogu/P1424.cpp | <filename>luogu/P1424.cpp
#include <iostream>
#include <chrono>
using namespace std;
//==========================================
typedef long long ll;
signed main(signed argc, char const *argv[])
{
#ifdef LOCAL
freopen("in.in", "r", stdin);
freopen("out.out", "w", stdout);
auto c1 = chrono::high_resolution... |
SlimKatLegacy/android_external_chromium_org | net/quic/quic_received_packet_manager.h | // Copyright 2013 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.
//
// Manages the packet entropy calculation for both sent and received packets
// for a connection.
#ifndef NET_QUIC_QUIC_RECEIVED_PACKET_MANAGER_H_
#def... |
cping/LGame | Java/old/AWT_ver/src/org/loon/framework/javase/game/core/store/RecordStore.java | <filename>Java/old/AWT_ver/src/org/loon/framework/javase/game/core/store/RecordStore.java
package org.loon.framework.javase.game.core.store;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStr... |
xzyaoi/AID | components/cmd/pkg/utilities/rotatefilehook.go | <filename>components/cmd/pkg/utilities/rotatefilehook.go
// Copyright (c) 2020 <NAME> & AICAMP.CO.,LTD
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
package utilities
import (
"io"
"github.com/sirupsen/logrus"
"gopkg.in/natefinch/lumberjack.v2"
)
// RotateFileConfi... |
desspert/mogupro | mogupro/game/include/Sound/Source.h | #pragma once
#define NOMINMAX
#pragma comment(lib,"OpenAL32.lib")
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#include <Sound/Buffer.h>
namespace Sound
{
class Source
{
public:
Source();
~Source();
Source(const Source&) = delete;
Source& operator=(const Source&) = delete;
void unbin... |
Warm-men/caizi-ad | src/view/dataBoard/echart/option.js | import echarts from 'echarts'
export default (data = [], isRange = false, tooltipExtra) => {
const name = data.map((item) => item.date.slice(-5))
return {
grid: {
containLabel: true,
top: 40,
left: 20,
right: 20,
bottom: 20
},
xAxis: {
data: name,
axisLabel: {
... |
xincao9/Zebra | zebra-client/src/main/java/com/dianping/zebra/util/JDBCUtils.java | /*
* Copyright (c) 2011-2018, <NAME>. All Rights Reserved.
*
* 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 t... |
gmsmirnov/gsmirnov | chapter_2-001/src/test/java/ru/job4j/trie/ReaderTest.java | <reponame>gmsmirnov/gsmirnov
package ru.job4j.trie;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.collection.IsArrayContainingInAnyOrder.arrayContainingInAnyOrder;
import static org.junit.Assert.*;
public class ReaderTest {
Reader reader;
@Before
public void init() {
... |
Thalhammer/ttl | ttl/include/ttl/config.h | #pragma once
#include <string>
#include <unordered_map>
#include <fstream>
#include <functional>
#include <memory>
#include "string_util.h"
namespace ttl {
/* A very simple configuration parser */
class config {
public:
class transaction;
/* Callback type for handling config file includes */
typedef std::func... |
potassco/gringo | libgringo/gringo/output/aggregates.hh | <filename>libgringo/gringo/output/aggregates.hh
// {{{ MIT License
// Copyright 2017 <NAME>
// 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 limitat... |
SanHime/bfassist | bfassist/standalone/monitoring/realtimeevent.py | <reponame>SanHime/bfassist
#############################################################################
#
#
# Module of BFA that manages server statistics in realtime
#
#
#############################################################################
""" This module implements the real-time logging of in-game statistics... |
lafer-m/containerd | pkg/dacscri/server/list.go | package server
import (
"context"
criapi "github.com/containerd/containerd/api/services/dacscri/v1"
"github.com/containerd/containerd/namespaces"
)
func (c *service) List(ctx context.Context, req *criapi.ListContainersRequest) (*criapi.ListContainersResponse, error) {
client := c.client
ctx = namespaces.WithNa... |
dj3vande/tendra | lexi/src/adt/group.c | <filename>lexi/src/adt/group.c
/*
* Copyright 2002-2011, The TenDRA Project.
* Copyright 1997, United Kingdom Secretary of State for Defence.
*
* See doc/copyright/ for the full copyright terms.
*/
#include <assert.h>
#include <string.h>
#include <shared/string.h>
#include <shared/xalloc.h>
#include <shared/erro... |
koshacool/api | client/src/redux/answers/answersReducer.js | import {
CREATE_ANSWER, REMOVE_ANSWER, UPDATE_ANSWER,
UPDATE_ANSWERS,
} from './types';
const initialState = {
answers: [],
};
const updpateAnswers = (answers, answer) => {
const newArr = [...answers];
const index = newArr.findIndex(({ _id }) => _id === answer._id);
if (index < 0) {
newArr.push(answ... |
minseongg/dynamatic | Regression_test/examples/simple_example_1/src/simple_example_1.cpp | #include "simple_example_1.h"
void simple_example_1(inout_int_t a[100]){
int x = 0;
for (int i = 0; i < 100; ++i){
x++;
}
a[0] = x;
}
#define AMOUNT_OF_TEST 1
int main(void){
in_int_t a[AMOUNT_OF_TEST][100];
in_int_t b[AMOUNT_OF_TEST][100];
in_int_t c[AMOUNT_OF_TEST];
for(int i ... |
pa28/iir1 | docs/search/all_7.js | <reponame>pa28/iir1
var searchData=
[
['butterworth_41',['Butterworth',['../namespaceIir_1_1Butterworth.html',1,'Iir']]],
['chebyshevi_42',['ChebyshevI',['../namespaceIir_1_1ChebyshevI.html',1,'Iir']]],
['chebyshevii_43',['ChebyshevII',['../namespaceIir_1_1ChebyshevII.html',1,'Iir']]],
['custom_44',['Custom',['... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.