repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
AlexandreCrettet/john
core/src/com/eogames/john/ecs/systems/ActionSystem.java
<reponame>AlexandreCrettet/john package com.eogames.john.ecs.systems; import com.badlogic.ashley.core.ComponentMapper; import com.badlogic.ashley.core.Entity; import com.badlogic.ashley.core.Family; import com.badlogic.ashley.systems.IteratingSystem; import com.eogames.john.ecs.components.ActionComponent; import com.e...
joe4568/centreon-broker
tcp/src/factory.cc
<gh_stars>0 /* ** Copyright 2011-2013 Centreon ** ** 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...
shaojiankui/iOS10-Runtime-Headers
PrivateFrameworks/OfficeImport.framework/EDStylesCollection.h
<gh_stars>10-100 /* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ @interface EDStylesCollection : EDCollection { unsigned long long mDefaultWorkbookStyleIndex; } - (unsigned long long)addObject:(id)arg1; - (id)defaultWorkbookStyle; - (unsigned lon...
rhpvorderman/galaxy
client/src/components/User/UserServices.js
import { getAppRoot } from "onload/loadConfig"; import axios from "axios"; import { getGalaxyInstance } from "app"; export function getRecentInvocations() { const Galaxy = getGalaxyInstance(); const params = { user_id: Galaxy.user.id, limit: 150, view: "collection" }; const url = `${getAppRoot()}api/invoca...
dtglidden/ITK
Code/Numerics/Statistics/itkScalarImageToGreyLevelCooccurrenceMatrixGenerator.h
<gh_stars>1-10 /*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkScalarImageToGreyLevelCooccurrenceMatrixGenerator.h Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consorti...
DianwodaCompany/bassy
bassy-mapper/src/main/java/com/dianwoda/test/bassy/db/dao/ProgramTaskMapperExt.java
package com.dianwoda.test.bassy.db.dao; import com.dianwoda.test.bassy.common.domain.dto.program.ProgramTaskPercentDTO; import com.dianwoda.test.bassy.db.entity.ProgramTask; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; public interface ProgramTaskMapperExt { List<Map<S...
philtherobot/quickc
charge_engine/include/charge/exception.hpp
<reponame>philtherobot/quickc<filename>charge_engine/include/charge/exception.hpp #ifndef GUARD_310c5f06f04f4590a8d9bc3d57e5b43e #define GUARD_310c5f06f04f4590a8d9bc3d57e5b43e #include <boost/filesystem/path.hpp> #include <exception> #include <string> namespace charge { class Exception : public std::runtime_error...
NajibAdan/kitsu-server
db/migrate/20170721022437_add_default_to_hidden_on_group_members_and_follows.rb
class AddDefaultToHiddenOnGroupMembersAndFollows < ActiveRecord::Migration def change change_column_default :group_members, :hidden, true change_column_null :group_members, :hidden, false change_column_default :follows, :hidden, true change_column_null :follows, :hidden, false end end
Sowmya6597/java
HibernateDemo/src/com/cts/training/controller/CompanyController.java
package com.cts.training.controller; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import com.cts.training.model.Company; public class CompanyController { public static void main(String args[]) { Configuration cfg=new ...
p6-process/p6-process
src/main/java/org/lorislab/p6/process/deployment/AbstractTest.java
package org.lorislab.p6.process.deployment; public abstract class AbstractTest { public void xxxxxxxxxxxxx() { System.out.println("###"); } }
meteor-space/donations
packages/base/source/shared/value-objects/address.js
Space.domain.ValueObject.extend('Donations.Address', { // EJSON serializable fields fields() { return { country: Country, zip: String, city: String, street: String }; } });
wangsikai/learn
yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/other/resource/src/main/java/com/lanking/uxb/rescon/question/convert/ResconQuestionConvert.java
<filename>yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/other/resource/src/main/java/com/lanking/uxb/rescon/question/convert/ResconQuestionConvert.java package com.lanking.uxb.rescon.question.convert; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.u...
chapmj/SpaceGame
src/main/java/gamecontroller/command/GameUpdateStateChangeCommand.java
package gamecontroller.command; import gamecontroller.gamesystem.GameSystemMgr; import gamecontroller.gamesystem._GameSystemState; import gamecontroller.gametime.GTLogger; public class GameUpdateStateChangeCommand implements _ICommand { private _GameSystemState nextGameSystemState; public GameUpdateStateCha...
davebarnes97/geode
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ha/HARQueueNewImplDUnitTest.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 * "License"); ...
raymondchen625/grafana
pkg/cmd/grafana-cli/runner/wireexts_oss.go
<reponame>raymondchen625/grafana<filename>pkg/cmd/grafana-cli/runner/wireexts_oss.go //go:build wireinject && oss // +build wireinject,oss package runner import ( "github.com/google/wire" "github.com/grafana/grafana/pkg/models" "github.com/grafana/grafana/pkg/registry" "github.com/grafana/grafana/pkg/services/enc...
FluffyQuack/ja2-stracciatella
src/game/Tactical/Interface.h
<gh_stars>100-1000 #ifndef _INTERFACE_H #define _INTERFACE_H #include "Handle_UI.h" #include "MouseSystem.h" #include <string_theory/string> #define MAX_UICOMPOSITES 4 // FLASH PORTRAIT CODES #define FLASH_PORTRAIT_STOP 0 #define FLASH_PORTRAIT_START 1 #define FLASH_PORTRAIT_WAITING 2 #define FLASH_PORTRAIT_DE...
DanIverson/OpenVnmrJ
src/vnmrj/src/vnmr/jgl/CGLJNI.java
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ package vnmr.jgl; /** * OpenGL using Java swing and Java JNI */ public c...
netarchivesuite/webarchive-commons
src/main/java/org/archive/hadoop/func/TupleFunc.java
package org.archive.hadoop.func; import java.io.IOException; import java.util.ArrayList; import org.apache.pig.EvalFunc; import org.apache.pig.data.Tuple; import org.apache.pig.data.TupleFactory; public class TupleFunc extends EvalFunc<Tuple> { protected TupleFactory mTupleFactory = TupleFactory.getInstance(); p...
civrot/ranger-clubhouse-web
app/models/access-document.js
<filename>app/models/access-document.js import Model, { attr } from '@ember-data/model' import { computed } from '@ember/object'; import { ticketTypeLabel } from 'clubhouse/constants/ticket-types'; import moment from 'moment'; export default class AccessDocumentModel extends Model { @attr('number') person_id; @att...
Robbbert/messui
src/mame/includes/pcw.h
<gh_stars>10-100 // license:GPL-2.0+ // copyright-holders:<NAME> /***************************************************************************** * * includes/pcw.h * ****************************************************************************/ #ifndef MAME_INCLUDES_PCW_H #define MAME_INCLUDES_PCW_H #pragma once #i...
oyvindberg/bloop
frontend/src/test/resources/custom-test-framework/build.sbt
bloopConfigDir in Global := baseDirectory.value / "bloop-config" lazy val framework = project .in(file("framework")) .settings( libraryDependencies += "org.scala-sbt" % "test-interface" % "1.0" ) lazy val test = project .in(file("test")) .dependsOn(framework) .settings( testFrameworks += TestFramew...
NandoCruz/Aulas-do-3-semestre
ADS - 5o semestre - noite/MOBILE/Projetos/P08_API_OpenWeather_ADS_Noite/app/src/main/java/br/clima/AsyncTaskDelegate.java
package br.clima; public interface AsyncTaskDelegate { void processFinish(Object output); }
sarboc/mymove
pkg/testdatagen/make_service_agent.go
<reponame>sarboc/mymove package testdatagen import ( "github.com/gobuffalo/pop" "github.com/transcom/mymove/pkg/models" ) // MakeServiceAgent finds or makes a single service_agent record func MakeServiceAgent(db *pop.Connection, assertions Assertions) models.ServiceAgent { // Create a shipment if one wasn't alre...
catalinboja/cts-2020
1091/Seminar2/src/ro/ase/csie/cts/g1091/seminar2/AccountTypes.java
package ro.ase.csie.cts.g1091.seminar2; public enum AccountTypes { CURRENT, SAVINGS; private double interestRate = 0; public String toString() { return "The account type is " + this.name(); } }
giannis20012001/JGeneralRepo
src/main/java/org/lumi/chapterfourandfive/controlstatements/partone/Factorial.java
<filename>src/main/java/org/lumi/chapterfourandfive/controlstatements/partone/Factorial.java package org.lumi.chapterfourandfive.controlstatements.partone; import java.util.Scanner; /** * Created by <NAME> * (i [dot] tsantilis [at] yahoo [dot] com A.K.A lumi) on 4/3/2017. */ public class Factorial { public st...
zachlatta/chromium
chrome/test/mini_installer_test/test.cc
<reponame>zachlatta/chromium // Copyright (c) 2006-2009 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. #include "base/platform_thread.h" #include "base/win_util.h" #include "chrome/installer/util/install_util.h" #include...
damb/seiscomp3
src/trunk/libs/3rd-party/spread/daemon/message.h
/* * The Spread Toolkit. * * The contents of this file are subject to the Spread Open-Source * License, Version 1.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.spread.org/license/ * * or in the file ``lic...
GeertArien/low-level-programming
chapter_11/higher_order/list.h
#ifndef LIST_H_ #define LIST_H_ #include <stdlib.h> #include <stdbool.h> struct list_t { int value; struct list_t* next; }; struct list_t* list_create(const int val); struct list_t* list_back(struct list_t* list); void list_add_front(const int value, struct list_t** list); void list_add_back(const int valu...
mikehelmick/CascadeLMS
app/models/rubric.rb
<reponame>mikehelmick/CascadeLMS class Rubric < ActiveRecord::Base validates_presence_of :primary_trait, :no_credit_criteria, :part_credit_criteria, :full_credit_criteria validates_numericality_of :no_credit_points, :part_credit_points, :full_credit_points belongs_to :assignment acts_as_list :scope => :assi...
yingzhuo/spring-turbo
src/main/java/spring/turbo/util/crypto/CipherUtils.java
<gh_stars>1-10 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ____ _ _____ _ * / ___| _ __ _ __(_)_ __ __ |_ _| _ _ __| |__ ___ * \___ \| '_ \| '__| | '_ \ / _` || || | | | '__| '_ \ / _ \ * ...
filedos9ig1d/kendzi0
kendzi3d-collada-exporter/src/test/java/kendzi/util/index/SimplifyIndexTest.java
package kendzi.util.index; import java.util.ArrayList; import java.util.List; import org.junit.Assert; import org.junit.Test; public class SimplifyIndexTest { @Test public void test() { List<Integer> data = new ArrayList<Integer>(); data.add(1); data.add(2); ...
sultan1k/vk_air
vk_air/client.py
<gh_stars>1-10 """ MIT License Copyright (c) 2021 sultan1k Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
VersiraSec/epsilon-cfw
apps/sequence/graph/curve_view_range.cpp
#include "curve_view_range.h" #include <cmath> #include <ion.h> #include <poincare/preferences.h> #include <algorithm> using namespace Shared; using namespace Poincare; namespace Sequence { CurveViewRange::CurveViewRange(InteractiveCurveViewRangeDelegate * delegate) : InteractiveCurveViewRange(delegate) { Memoiz...
SilensAngelusNex/CS308_SLogo
src/parser/ParserUtils.java
package parser; /** * @author <NAME> */ public class ParserUtils { public static final String SYNTAX_FILE_PATH = "resources/languages/Syntax"; public static final String NUM_PARAMS_PATH = "resources/CommandNumParams"; public static final String ERROR_CODE = "NO MATCH"; public static final String UNKNOWN_COMMAN...
ScalablyTyped/SlinkyTyped
i/instagram-private-api/src/main/scala/typingsSlinky/instagramPrivateApi/newsRepositoryInboxResponseMod/NewsRepositoryInboxResponseOldStoriesItem.scala
package typingsSlinky.instagramPrivateApi.newsRepositoryInboxResponseMod 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 NewsRepositoryInboxResponseOldStoriesI...
Kisensum/dnp3
cpp/libs/src/opendnp3/master/CommandSetOps.h
/* * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or * more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Green Energy Corp licenses this file to you under the Apache License, * Version 2.0 (the "Lic...
OL1V1A/springMVC
src/main/java/com/lwj/designPattern/factory/Shape.java
<gh_stars>1-10 package com.lwj.designPattern.factory; /** * @Auth: lwj * @Date: 2019/7/3 10:15 */ public interface Shape { void draw(); }
DavidHe1127/birds-supply-portal
src/Environment.js
<reponame>DavidHe1127/birds-supply-portal<gh_stars>1-10 import {Environment, Network, RecordSource, Store} from 'relay-runtime'; import auth from './auth'; const store = new Store(new RecordSource()); const network = Network.create((operation, variables) => { return fetch('http://127.0.0.1:4000/graphql', { met...
resjbc/pharmacy-backend
dist/models/entitys/receipt.entity.js
<filename>dist/models/entitys/receipt.entity.js "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && ...
jingcao80/Elastos
Sources/Elastos/Frameworks/Droid/Base/Core/inc/elastos/droid/hardware/soundtrigger/CSoundTriggerKeyphraseSoundModel.h
<reponame>jingcao80/Elastos //========================================================================= // Copyright (C) 2012 The Elastos 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...
sarakborges/insta-clone
src/Styles/Themes/Dark.js
<gh_stars>0 export default { slug: "dark", thumb: "#16141c", colors: { main: "#6447bd", mainVariation: "#8f72e3", bg: "#16141c", bgContrast: "#1b1924", bgInverted: "#ababab", }, };
Boice-Technology/StackBasedScriptingLanguage
Packages/src/op_codes_stack/OP_DROP.go
<filename>Packages/src/op_codes_stack/OP_DROP.go // Remove the top stack element. package op_codes_stack import "stack" func OP_DROP(mainStack *stack.Stack) bool { var verdict bool _, verdict = mainStack.Pop() return verdict }
jhayn94/Chess
src/main/java/chess/model/piece/Bishop.java
<gh_stars>0 package chess.model.piece; import chess.model.ChessBoardModel; import chess.model.Color; import chess.model.Move; import java.util.ArrayList; import java.util.List; public class Bishop extends ChessPiece { public Bishop(final Color color, final ChessBoardModel board) { super(color, board, P...
nathanrpage97/libfort
src/wcwidth.h
<reponame>nathanrpage97/libfort<gh_stars>100-1000 #ifndef WCWIDTH_H #define WCWIDTH_H #include "fort_utils.h" #ifdef FT_HAVE_WCHAR #include <wchar.h> FT_INTERNAL int mk_wcswidth(const wchar_t *pwcs, size_t n); #endif /* FT_HAVE_WCHAR */ #endif /* WCWIDTH_H */
Matt-Crow/JavaUtilities
SimpleChatApp/src/main/java/net/ServerMessage.java
package net; /** * * @author Matt */ public class ServerMessage { }
Rai220/Telephoto
app/src/main/java/com/rai220/securityalarmbot/commands/AbstractCommand.java
<gh_stars>10-100 package com.rai220.securityalarmbot.commands; import com.pengrad.telegrambot.model.Message; import com.rai220.securityalarmbot.BotService; import com.rai220.securityalarmbot.telegram.TelegramService; import java.util.Collection; /** * */ public abstract class AbstractCommand implements ICommand {...
chiragnagpal/probflow
tests/unit/pytorch/distributions/test_one_hot_categorical.py
import numpy as np import pytest import torch from probflow.distributions import OneHotCategorical tod = torch.distributions def is_close(a, b, tol=1e-3): return np.abs(a - b) < tol def test_OneHotCategorical(): """Tests OneHotCategorical distribution""" # Create the distribution dist = OneHotCat...
aviolette/foodtrucklocator
main/src/test/java/foodtruck/model/TrackingDeviceTest.java
package foodtruck.model; import com.google.common.testing.EqualsTester; import org.joda.time.DateTime; import org.junit.Test; /** * @author aviolette * @since 11/23/16 */ public class TrackingDeviceTest { @Test public void equals() { TrackingDevice.Builder builder = TrackingDevice.builder() .labe...
7kbird/chrome
mojo/tools/run_mojo_python_tests.py
<gh_stars>0 #!/usr/bin/env python # Copyright 2014 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. import argparse import json import os import sys import time import unittest def main(): parser = argparse.ArgumentPars...
Limoentaart/PXL_IT
PXL_DIGITAL_JAAR_1/Programming Basics/Oplossingen Oefeningen/H6/oefening8/Oefening8.java
package oefening8; import java.awt.Point; import java.awt.Rectangle; public class Oefening8 { public static void main(String[] args) { Rectangle rect = new Rectangle(1, 2, 20, 30); Point punt = new Point(5, 5); if (rect.contains(punt)) { System.out.println("punt ligt in rect."); } else { System.out.p...
MirageEarl/activiti
modules/activiti-engine/src/main/java/org/activiti/engine/impl/juel/ExpressionNode.java
<filename>modules/activiti-engine/src/main/java/org/activiti/engine/impl/juel/ExpressionNode.java /* * Based on JUEL 2.2.1 code, 2006-2009 Odysseus Software GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
ahenson/flatworm
flatworm-core/src/main/java/com/blackbear/flatworm/BeanMappingStrategy.java
<reponame>ahenson/flatworm /* * Flatworm - A Java Flat File Importer/Exporter Copyright (C) 2004 <NAME>. * Extended by <NAME>rence 2005 * Extended by <NAME> in 2011 and 2012 * Extended by <NAME> in 2016 * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in complia...
bethyd/Peace-Of-Mind
src/renderer/ChunkRenderer.cpp
<gh_stars>0 #include "ChunkRenderer.hpp" ChunkRenderer::ChunkRenderer() { m_texture = TextureManager::get().getTexture("atlas.png"); } void ChunkRenderer::addChunk(const ChunkSection& chunk) { auto& meshes = chunk.getMeshes(); if (meshes.liquid.getIndicesCount() > 0) { m_liquidMeshes.push_back(&meshes.liquid);...
garmin/Wildcard_Plugin
Godeps/_workspace/src/github.com/cloudfoundry/cli/cf/app_files/fakes/fake_app_files.go
<gh_stars>10-100 // This file was generated by counterfeiter package fakes import ( . "github.com/cloudfoundry/cli/cf/app_files" "github.com/cloudfoundry/cli/cf/models" "sync" ) type FakeAppFiles struct { AppFilesInDirStub func(dir string) (appFiles []models.AppFileFields, err error) appFilesInDirMutex ...
DreamLi1314/shared
java/v3/pushweather/src/main/java/org/javafamily/model/Weather.java
<reponame>DreamLi1314/shared<gh_stars>0 package org.javafamily.model; import java.io.Serializable; public class Weather implements Serializable { private WeatherItem[] weather; public WeatherItem[] getWeather() { return weather; } public void setWeather(WeatherItem[] weather) { this....
Nuvoloso/gui_open_source
slog/src/reducers/accounts.js
<gh_stars>0 // Copyright 2019 <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 ...
lizhifuabc/spring-boot-learn
spring-boot-design/design-adapter/src/main/java/com/design/adapter/classtype/Test.java
<reponame>lizhifuabc/spring-boot-learn package com.design.adapter.classtype; /** * 从代码中我们可以看到,其实适配器做的主要工作就是为了让目标角色的API可以调用到源角色的API, * 适配器在中间做的是一个类似的中转作用,并且不影响源角色和目标角色原有的功能和逻辑。 * 总结:Adapter类,通过继承源类,实现目标类接口,完成源类->目标角色的适配 * @author lizhifu * @date 2020/12/28 */ public class Test { public static void main(String...
alaasamameer/micro-workflow-dir
module-mwf/src/org/cvpv/KafkaaProducer.java
<filename>module-mwf/src/org/cvpv/KafkaaProducer.java<gh_stars>0 /* * * First version in 2017. * vesrion 5-light (2020). * '$Author: <NAME> $' * <EMAIL> * */ package org.ameer.kafka; import ptolemy.actor.Director; import ptolemy.actor.TypedIOPort; import ptolemy.actor.lib.LimitedFiringSource; import ptolemy.a...
blitz3d-ng/blitz3d-ng
src/modules/bb/audio/commands.h
<gh_stars>10-100 #ifndef BB_AUDIO_COMMANDS_H #define BB_AUDIO_COMMANDS_H #include <bb/blitz/commands.h> #ifdef __cplusplus extern "C" { #else typedef void BBSound; typedef void BBChannel; #endif BBSound * BBCALL bbLoadSound( BBStr *file ); BBSound * BBCALL bbLoad3DSound( BBStr *file ); void BBCALL bbFreeSound( B...
sjro/enact
packages/ui/internal/IdProvider/IdProvider.js
<gh_stars>0 import hoc from '@enact/core/hoc'; import React from 'react'; import useId from './useId'; /** * Default config for {@link ui/IdProvider.IdProvider} * * @hocconfig * @memberof ui/IdProvider.IdProvider */ const defaultConfig = { /** * Prop to pass the identifier generation function * * @type {S...
chlorm-forks/gyp
test/linux/gyptest-ldflags-from-environment.py
<reponame>chlorm-forks/gyp #!/usr/bin/env python # Copyright (c) 2017 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies the use of linker flags in environment variables. In this test, gyp and build both run in same loca...
mycolab/ncbi-blast
blast/src/serial/datatool/xsdparser.hpp
<reponame>mycolab/ncbi-blast #ifndef XSDPARSER_HPP #define XSDPARSER_HPP /* $Id: xsdparser.hpp 547822 2017-10-04 15:45:27Z gouriano $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Info...
eldarion-client/scaife-viewer
sv_pdl/stats/__init__.py
import os import json from django.core.cache import cache from django.contrib.humanize.templatetags.humanize import intword, intcomma LIBRARY_STATS_PATH = os.path.join( os.path.dirname(os.path.realpath(__file__)), "library_stats.json" ) def get_library_stats(): """ Loads library stats as computed vi...
CPSC-410-Future-Gadget-Laboratory/dsl-project
src/main/java/cpsc/dlsproject/ast/statements/Var.java
<reponame>CPSC-410-Future-Gadget-Laboratory/dsl-project<filename>src/main/java/cpsc/dlsproject/ast/statements/Var.java package cpsc.dlsproject.ast.statements; import cpsc.dlsproject.ast.BaseAST; import cpsc.dlsproject.ast.expressions.BinaryOperation; import cpsc.dlsproject.ast.expressions.Expression; import cpsc.dlspr...
disclearing/javaee-plugins
dUHC/src/main/java/me/javaee/uhc/command/commands/ScenarioCommand.java
<gh_stars>1-10 package me.javaee.uhc.command.commands; import me.javaee.uhc.UHC; import me.javaee.uhc.command.BaseCommand; import me.javaee.uhc.menu.menu.ScenariosMenu; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import java.util.Arrays; /* * Copyrigh...
motomototv/telebot
cmd/stat/main.go
<filename>cmd/stat/main.go package main import ( "flag" "fmt" "os" "os/signal" "syscall" "github.com/godcong/telebot/config" "github.com/godcong/telebot/internal/client" "github.com/godcong/telebot/log" ) var path = flag.String("path", "bot.cfg", "default property path") var chatid = flag.Int64("chatid", 0, ...
Rhunter1/xively-client-c
src/tests/itests/xi_itest_tls_error.h
/* Copyright (c) 2003-2018, Xively All rights reserved. * * This is part of the Xively C Client library, * it is licensed under the BSD 3-Clause license. */ #ifndef __XI_ITEST_TLS_ERROR_H__ #define __XI_ITEST_TLS_ERROR_H__ extern int xi_itest_tls_error_setup( void** state ); extern int xi_itest_tls_error_teardown...
5starsmedia/offline-map-admin
app/base/filters/translate.js
//stUserAgentIcon export default /*@ngInject*/ function ($rootScope) { return function (input) { if (angular.isObject(input)) { return input[$rootScope.currentLocale] || input['en-US']; } var translates = $rootScope.translates || {}; return translates[input] || input; }; };
iwt-axelzimmermann/java-library
src/main/java/com/urbanairship/api/push/model/notification/ios/MediaAttachment.java
/* * Copyright (c) 2013-2016. Urban Airship and Contributors */ package com.urbanairship.api.push.model.notification.ios; import com.google.common.base.Optional; import com.google.common.base.Preconditions; import com.urbanairship.api.push.model.PushModelObject; /** * MediaAttachment for iOS specific push message...
ronaldomg/Valim_EFS_REDIS
src/static/himportaboletocepremessa.js
/**@preserve GeneXus Java 10_3_12-110051 on December 12, 2020 12:49:12.35 */ gx.evt.autoSkip = false; gx.define('himportaboletocepremessa', false, function () { this.ServerClass = "himportaboletocepremessa" ; this.PackageName = "" ; this.setObjectType("web"); this.setOnAjaxSessionTimeout("Warn"); this...
MeridianExplorer/ocs-ci
tests/manage/z_cluster/test_delete_osd_deployment.py
import logging import pytest from ocs_ci.framework.testlib import ( ManageTest, tier4c, skipif_ocs_version, ) from ocs_ci.framework import config from ocs_ci.ocs.resources.pod import get_osd_deployments from ocs_ci.ocs.resources.storage_cluster import osd_encryption_verification from ocs_ci.ocs.utils import...
dxflqm/blog
pzblog-system/pzblog-common/src/main/java/org/panzhi/blog/common/result/BuildResponseMsg.java
<reponame>dxflqm/blog<gh_stars>1-10 package org.panzhi.blog.common.result; import org.apache.commons.lang3.StringUtils; import org.panzhi.blog.common.error.CommonErrorMsg; import org.panzhi.blog.common.error.ErrorMsg; import com.alibaba.fastjson.JSON; public class BuildResponseMsg { public static String buildC...
fangjinuo/avoid996
agileway-sshclient/src/main/java/com/jn/agileway/ssh/client/supports/command/executor/SshCommandLineExecutor.java
package com.jn.agileway.ssh.client.supports.command.executor; import com.jn.agileway.ssh.client.SshConnection; import com.jn.langx.commandline.DefaultCommandLineExecutor; import com.jn.langx.util.Objs; import java.io.File; public class SshCommandLineExecutor extends DefaultCommandLineExecutor { public SshComman...
RiceKab/project-geowars
projects/parametergame/core/src/be/howest/twentytwo/parametergame/model/event/pickup/BasePickupCallback.java
<reponame>RiceKab/project-geowars<filename>projects/parametergame/core/src/be/howest/twentytwo/parametergame/model/event/pickup/BasePickupCallback.java package be.howest.twentytwo.parametergame.model.event.pickup; import com.badlogic.ashley.core.Entity; public abstract class BasePickupCallback { public abstract voi...
lindsaygelle/animalcrossing
villager/horse/winnie/doc.go
// Package winnie exports the Animal Crossing villager Winnie. package winnie
gyan42/interview-preparation-qns
python/tree/travesal.py
<filename>python/tree/travesal.py from collections import defaultdict class TreeNode: def __init__(self, data, left=None, right=None): self.data = data self.left = left self.right = right def __repr__(self): return str(self.data) def insert(self, data): """ ...
code-dot-org/code-dot-org
apps/src/applab/dropletConfig.js
/* global dashboard */ import $ from 'jquery'; import * as api from './api'; import dontMarshalApi from '../dontMarshalApi'; import {dropletStringBlocks, dropletArrayBlocks} from '../dropletUtils'; import consoleApi from '../consoleApi'; import * as audioApi from '@cdo/apps/lib/util/audioApi'; import audioApiDropletCon...
poiuyqwert/SCMS
File Handlers/CHK/Sections/CHKSectionIVER.cpp
<filename>File Handlers/CHK/Sections/CHKSectionIVER.cpp // // CHKSectionIVER.cpp // SCMS // // Created by <NAME> on 2016-01-04. // // #include "CHKSectionIVER.h" #include "CHK.h" #include "CHKSectionVER.h" const CHKRequirements CHKSectionIVER::Requirements = {CHKVer::None, CHKGameMode::None}; CHKSectionIVER::CHKS...
aholkner/bacon
native/Source/Bacon/Keyboard.cpp
#include "Bacon.h" #include "BaconInternal.h" #include <cstring> #include <deque> using namespace std; static char s_KeyStates[Key_MaxKey]; static Bacon_KeyEventHandler s_Handler = nullptr; void Keyboard_Init() { memset(s_KeyStates, 0, sizeof(s_KeyStates)); } void Keyboard_Shutdown() { } void Keyboard_SetKeyState...
N0hbdy/godot
modules/webrtc/webrtc_peer_connection_gdnative.cpp
<gh_stars>1-10 /*************************************************************************/ /* webrtc_peer_connection_gdnative.cpp */ /*************************************************************************/ /* This file is part of: */ /...
Jovian-Dsouza/MOC-Detector
src/vis/vis_det.py
<gh_stars>100-1000 from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import cv2 import numpy as np import torch import pickle import sys from tiny_opt import opts from vis_dataset import VisualizationDataset from build import build_tubes from vis_ut...
RivenZoo/FullSource
Jx3Full/Source/Source/Server/SO3GameServer/Test/TestProject/Robot/KMonster.cpp
#include "StdAfx.h" #include "engine/KSG_MD5_String.h" #include "KMonster.h" #include "KPlayer.h" #include "KBishopClient.h" #include "KPlayerClient.h" #include "KPlayerEyeshot.h" #include "KOperationSimulator.h" char KMonster::ms_szStateDescription[osTotal][256] = { " Login", " Offline", ...
docentedev/curso-react
contenido/proyectos/auth-v2/src/services/auth.service.js
import axios from 'axios'; import { apiHost } from '../configure'; class ApiError extends Error {} export const login = async (data) => { try { return await axios.post(`${apiHost}/login`, data); } catch (error) { const status = error.response.status; if (status === 404) throw new ApiEr...
Hendrikto/jena
jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/loader/main/PrefixHandlerBulk.java
<filename>jena-db/jena-tdb2/src/main/java/org/apache/jena/tdb2/loader/main/PrefixHandlerBulk.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. T...
ethansaxenian/RosettaDecode
lang/Go/pragmatic-directives-2.go
<gh_stars>1-10 // +build linux
dwhobrey/MindCausalModellingLibrary
Library/include/SphereGeometry.h
<gh_stars>0 #pragma once namespace Plato { class Geometry; class Distribution; class DistributionEnumerator; class Bounds; class Scale; class Point; class PointSpace; class SphericalSpace; /// <summary> /// Models a three dimensional elliptical shape (e.g. a sphere spannin...
Sunrisepeak/Linux2.6-Reading
sound/soc/img/pistachio-internal-dac.c
<gh_stars>10-100 // SPDX-License-Identifier: GPL-2.0-only /* * Pistachio internal dac driver * * Copyright (C) 2015 Imagination Technologies Ltd. * * Author: <NAME> <<EMAIL>> */ #include <linux/clk.h> #include <linux/delay.h> #include <linux/mfd/syscon.h> #include <linux/module.h> #include <linux/pm_runtime.h> #...
tikivn/remax
packages/remax/wechat.js
<reponame>tikivn/remax<gh_stars>0 export * from '@tiki-miniapp/remax-wechat';
jirmauritz/searchisko
api/src/main/java/org/searchisko/api/rest/exception/OperationUnavailableException.java
<reponame>jirmauritz/searchisko<gh_stars>10-100 /* * JBoss, Home of Professional Open Source * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. */ package org.searchisko.api.rest.exception; /** * Exception used when operation is curr...
nhsconnect/integration-adaptor-gp2gp
service/src/test/java/uk/nhs/adaptors/gp2gp/RandomIdGeneratorServiceStub.java
package uk.nhs.adaptors.gp2gp; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.LinkedList; import java.util.Queue; import lombok.SneakyThrows; import uk.nhs.adaptors.gp2gp.common.service.RandomIdGeneratorService; public class RandomIdGeneratorServiceStub extends RandomIdGeneratorSer...
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/i386/divmod-7.c
/* { dg-do compile { target { ! ia32 } } } */ /* { dg-options "-O2 -m8bit-idiv" } */ extern void abort (void); void test (long long x, long long y, long long q, long long r) { if ((x / y) != q || (x % y) != r) abort (); } /* { dg-final { scan-assembler-times "divb" 1 } } */ /* { dg-final { scan-assembler-times...
AmineOzil/EcoleEnLigne
app/src/main/java/com/devmobile/ecoleenligne/checkEmail.java
package com.devmobile.ecoleenligne; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import androidx.appcompat.app.AppCompatActivity; public class checkEmail extends AppCompatActivity { Button check; @Override protected void onCreate(Bundle ...
ZabalaMariano/PISA
external/trecpp/test/test_trecpp.cpp
#define CATCH_CONFIG_MAIN #include "catch2/catch.hpp" #include <string_view> #include "trecpp/trecpp.hpp" using namespace trecpp; using namespace trecpp::detail; TEST_CASE("read_between") { std::string_view data = "<DOC>\n" "<DOCNO>GX000-00-0000000</DOCNO>\n" "<DOCHDR>\n" "http:/...
nia-flo/FMI-DataStructuresAndAlgorithms
Sorting algorithms/InsertionSort.cpp
#include <iostream> using namespace std; void insertionSort(int array[], int size) { for (int i = 1; i < size; i++) { int position; for (position = 0; position < i && array[position] < array[i]; position++) {} int lastElement = array[i]; for (int j = position; j <= i; j++) { int buffer = array[j]; ...
TorinAsakura/yamaha-spb
vendor/plugins/youtube-g/lib/youtube_g/model/rating.rb
<reponame>TorinAsakura/yamaha-spb class YouTubeG module Model class Rating < YouTubeG::Record # *Float*:: Average rating given to the video attr_reader :average # *Fixnum*:: Maximum rating that can be assigned to the video attr_reader :max # *Fixnum*:: Minimum rating th...
LiHu20160316/electrum
android/app/src/main/java/org/haobtc/onekey/ui/listener/IImportMnemonicToDeviceListener.java
package org.haobtc.onekey.ui.listener; import org.haobtc.onekey.bean.MnemonicInfo; import org.haobtc.onekey.mvp.base.IBaseListener; import java.util.List; public interface IImportMnemonicToDeviceListener extends IBaseListener { void onImport(List<MnemonicInfo> list); }
makzimko/react-boilerplate
src/utils/__tests__/combineReducers.spec.js
<gh_stars>0 import combineReducers from '../combineReducers'; import createReducer from '../createReducer'; describe('combineReducer util function', () => { const actionTypes = { notes: { create: '/notes/create', delete: '/notes/delete', }, comments: { create: '/comments/create', ...
AyiinXd/Ayiin-Userbot
AyiinXd/modules/vctools.py
<gh_stars>1-10 # Copyright (C) 2021 TeamUltroid # # This file is a part of < https://github.com/TeamUltroid/Ultroid/ > # PLease read the GNU Affero General Public License in # <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>. # # Ported by @mrismanaziz # FROM Man-Userbot <https://github.com/mrismanaziz/M...
hyunsik/incubator-tajo
tajo-catalog/tajo-catalog-server/src/main/java/org/apache/tajo/catalog/store/MemStore.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
JSKenyon/QuartiCal
quartical/interpolation/interpolate.py
<gh_stars>0 # -*- coding: utf-8 -*- from loguru import logger # noqa import dask.array as da import numpy as np import xarray import pathlib from daskms.experimental.zarr import xds_from_zarr from quartical.config.internal import yield_from from quartical.interpolation.interpolants import (interpolate_missing, ...