repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
drbild/c2dm4j
src/test/java/org/whispercomm/c2dm4j/backoff/ExponentialBackoffTest.java
/* * Copyright 2012 The Regents of the University of Michigan * * 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 b...
spothero/Specs
GCDThreadsafe/0.1.1/GCDThreadsafe.podspec
<reponame>spothero/Specs<gh_stars>1-10 Pod::Spec.new do |s| # # GCDThreadsafe # CocoaPods podspec # s.name = 'GCDThreadsafe' s.version = '0.1.1' s.ios.deployment_target = '6.1' s.osx.deployment_target = '10.8' # s.platform = :ios, '6.1' s.author = { '<N...
wegrzyns/adnoter
src/main/java/fr/lium/experimental/spkDiarization/programs/MNamedSpeakerTest.java
<filename>src/main/java/fr/lium/experimental/spkDiarization/programs/MNamedSpeakerTest.java<gh_stars>0 /** * * <p> * SNamedSpeaker2 * </p> * * @author <a href="mailto:<EMAIL>"><NAME></a> * @author <a href="mailto:<EMAIL>"><NAME></a> * @version v2.0 * * Copyright (c) 2007-2009 Universite du Maine. ...
timfel/netbeans
java/debugger.jpda.truffle/src/org/netbeans/modules/debugger/jpda/truffle/MIMETypes.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 ...
wangyixiaohuihui/spark2-annotation
resource-managers/yarn/src/test/scala/org/apache/spark/scheduler/cluster/YarnSchedulerBackendSuite.scala
/* * 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...
InariSoft/inari-firefly-libGDX
src/main/java/com/inari/firefly/libgdx/intro/InitInariIntro.java
package com.inari.firefly.libgdx.intro; import com.inari.commons.geom.PositionF; import com.inari.commons.geom.Rectangle; import com.inari.commons.graphics.RGBColor; import com.inari.firefly.asset.Asset; import com.inari.firefly.control.task.Task; import com.inari.firefly.entity.EEntity; import com.inari.firefly.entit...
Appkad/botbuilder-java
libraries/bot-schema/src/test/java/com/microsoft/bot/schema/ActivityTest.java
package com.microsoft.bot.schema; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.JsonNodeFactory; import com.microsoft.bot.schema.teams.TeamsChannelData; import org.junit.Assert; import org.junit.Test; import j...
CevaComic/mobile-2020
Bogdan Remus Cristian/src/Components/Couriers/Couriers.classes.js
<filename>Bogdan Remus Cristian/src/Components/Couriers/Couriers.classes.js import {fade, makeStyles} from '@material-ui/core/styles' const useClasses = makeStyles(theme => ({ couriers: { display: 'flex', flexDirection: 'column', width: '100%', height: '100%', overflowX: 'scroll' ...
windystrife/UnrealEngine_NVIDIAGameWork
Engine/Source/Runtime/Slate/Public/Widgets/Docking/SDockTabStack.h
<filename>Engine/Source/Runtime/Slate/Public/Widgets/Docking/SDockTabStack.h // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Widgets/DeclarativeSyntaxSupport.h" class SDockableTab; /** * A node in the Docking/Tabbing hierarchy. * A DockTabStack shows a ...
KairosSystems/drMouse
venv/lib/python2.7/site-packages/py2neo/cypher/delete.py
<gh_stars>1-10 #!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2011-2014, <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....
makandra/serum-rails
spec/test_apps/rails-2-3/lib/tasks/pending_migrations.rake
<filename>spec/test_apps/rails-2-3/lib/tasks/pending_migrations.rake # Rake task to warn over the shell when there are pending migrations. # origin: RM namespace :db do desc "Warns if there are pending migrations" task :warn_if_pending_migrations => :environment do if defined? ActiveRecord pending_migrat...
ScalablyTyped/SlinkyTyped
a/aws-sdk/src/main/scala/typingsSlinky/awsSdk/configserviceMod/GetAggregateComplianceDetailsByConfigRuleRequest.scala
<reponame>ScalablyTyped/SlinkyTyped<gh_stars>10-100 package typingsSlinky.awsSdk.configserviceMod 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 GetAggregateC...
gladsonsimoes/ExemplosDeAlgoritmos
logica_de_programacao/programacao_orientada_a_objetos/encapsulamento/Encapsulamento.java
package com.company.programacao_orientada_a_objetos.encapsulamento; public class Encapsulamento { public static void main(String[] args) { // Cliente cliente = new Cliente(); // cliente.nome = "<NAME>"; // cliente.telefone = "34922334455"; // System.out.println("Nome cliente: " + cliente.nome); ...
Jacko1972/PopularMovies2
app/src/main/java/com/jacko1972/popularmovies2/service/FullMovieJsonResponse.java
<filename>app/src/main/java/com/jacko1972/popularmovies2/service/FullMovieJsonResponse.java<gh_stars>0 package com.jacko1972.popularmovies2.service; import com.google.gson.annotations.SerializedName; import com.jacko1972.popularmovies2.model.MovieInfo; import java.util.List; public class FullMovieJsonResponse { ...
hmrc/income-tax-cis-frontend
test/support/builders/models/AuthorisationRequestBuilder.scala
<reponame>hmrc/income-tax-cis-frontend /* * Copyright 2022 HM Revenue & Customs * * 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 * *...
alistairholmes/Digital-Nomad-Jobs
app/src/main/java/io/github/alistairholmes/digitalnomadjobs/ui/jobdetail/DetailActivity.java
<reponame>alistairholmes/Digital-Nomad-Jobs<filename>app/src/main/java/io/github/alistairholmes/digitalnomadjobs/ui/jobdetail/DetailActivity.java package io.github.alistairholmes.digitalnomadjobs.ui.jobdetail; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; im...
dalbrx-forcam/java-sdk
model-basic/src/main/java/com/forcam/na/ffwebservices/model/workplacegroup/WorkplaceGroupPropertiesWSModel.java
//////////////////////////////////////////////////////////////////////////////// // // Created by MJesser on 16.02.2018. // // Copyright (c) 2006 - 2018 FORCAM GmbH. All rights reserved. //////////////////////////////////////////////////////////////////////////////// package com.forcam.na.ffwebservices.model.workplaceg...
thomasm1/app-tester
bsc/src/pages/forms/wizard/Wizard.js
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { Row, Col, Button, FormGroup, Label, Nav, NavLink, NavItem, Progress, } from 'reactstrap'; import Formsy from 'formsy-react'; import Select2 from 'react-select2-wrapper'; import MaskedInput from 'react-...
passcod/rollup
test/function/samples/cycles-export-star/a.js
export * from './b.js'; export function a() { return 'a'; }
darcectech/ECMS
dist/resources/app/node_modules/php-parser/src/ast/global.js
/*! * Copyright (C) 2017 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; var Statement = require('./statement'); var KIND = 'global'; /** * Imports a variable from the global scope * @constructor Global * @extends {Stateme...
homayoonfarrahi/cycle-time-study
rl/rl/examples/run_ppo_time_test.py
<filename>rl/rl/examples/run_ppo_time_test.py import os import yaml import argparse import numpy as np import matplotlib as mpl mpl.use("TKAgg") try: import pybullet_envs except ImportError: print("pybullet_envs not available") import gym import torch from torch.optim import Adam from tqdm import tqdm from rl...
magicgh/algorithm-contest-code
BashuOJ-Code/2092.cpp
#include<iostream> #include<cstdio> #include<cstring> #include<iomanip> #include<cmath> #include<limits> using namespace std; const double DOUBLE_MAX=(numeric_limits<double>::max)(); struct node { double x,y; }a[151]; int n; double dist[151][151]={0},s[151]={0}; inline double calc(int x,int y) { return sqrt((a[x].x-a...
stevenhankin/ag-grid
grid-packages/ag-grid-docs/documentation/doc-pages/charts-navigator/examples/navigator/main.js
var options = { container: document.getElementById('myChart'), title: { text: 'Try dragging the Navigator\'s handles to zoom in' }, subtitle: { text: 'or the area between them to pan around' }, data: [ { label: 'Android', value: 56.9 }, { label: 'iOS', value: 22.5...
Shishqa/ShishGL
src/Core/Primitives/Color.cpp
<gh_stars>0 /*============================================================================*/ #include "Color.hpp" /*============================================================================*/ using namespace Sh; /*============================================================================*/ Color::Color(uint8_t re...
ib-da-ncirl/dia_crime
src/ie/ibuttimer/dia_crime/hadoop/AbstractCsvMapper.java
<filename>src/ie/ibuttimer/dia_crime/hadoop/AbstractCsvMapper.java /* * The MIT License (MIT) * Copyright (c) 2020 <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 re...
liuzhenyulive/iBlogs
blog-common/src/main/java/site/iblogs/common/conventer/StringCodeToEnumConverterFactory.java
<gh_stars>1-10 package site.iblogs.common.conventer; import com.google.common.collect.Maps; import org.springframework.core.convert.converter.Converter; import org.springframework.core.convert.converter.ConverterFactory; import site.iblogs.common.dto.enums.BaseEnum; import java.util.Map; /** * @author: <EMAIL> * @...
billwert/azure-sdk-for-java
sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/InventoryItem.java
<filename>sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/InventoryItem.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.scvmm.mod...
react-vancouver/website
src/components/constructs/Stat/Stat.js
<gh_stars>1-10 import React from 'react'; import PropTypes from 'prop-types'; import { withSpacing } from '@utilities/styles/spacing'; import { rootStyles } from './Stat.styles'; import Text from '@elements/Text'; const Stat = ({ className, color, number, title }) => { return ( <div css={rootStyles} className={c...
johnkarasev/canvas-lms
docker/config/initializers/active_record.rb
<filename>docker/config/initializers/active_record.rb # # Copyright (C) 2011 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, versi...
6486449j/Blocks
game/block/FurnaceBlock.java
package game.block; import util.BmpRes; import game.entity.Agent; import game.item.*; import game.world.World; import game.entity.DroppedItem; import game.entity.Player; import game.ui.*; import static util.MathUtil.*; public class FurnaceBlock extends StoneBlock implements BlockWithUI{ private static final long ser...
ljfranklin/bosh-bot
src/s3.js
<gh_stars>1-10 var fs = require('fs') var AWS = require('aws-sdk') function NotFoundError (message) { Error.captureStackTrace(this, this.constructor) this.name = this.constructor.name this.message = message } function createClient (opts) { var client = {} var awsOpts = { accessKeyId: opts.accessKey, ...
rykrr/Quinterac
frontend/src/test/java/ca/queensu/cisc327/afk/R4.java
<reponame>rykrr/Quinterac package ca.queensu.cisc327.afk; import static org.junit.Assert.*; import java.util.Arrays; import org.junit.Test; public class R4 extends AppTest{ @Test public void testAppr4T1() throws Exception { // runAndTest(getListFromFile("./tests/r4/t1/console_input.txt"), get...
RemiArnaud/blender
source/blender/bmesh/intern/bmesh_mesh.h
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
luhuadong/evm
modules/evm/evm_module_i2c.c
/**************************************************************************** ** ** Copyright (C) 2020 @scriptiot ** ** EVM是一款通用化设计的虚拟机引擎,拥有语法解析前端接口、编译器、虚拟机和虚拟机扩展接口框架。 ** 支持js、python、qml、lua等多种脚本语言,纯C开发,零依赖,内置REPL,支持主流 ROM > 40KB, RAM > 2KB的MCU; ** 自带垃圾回收(GC)先进的内存管理,采用最复杂的压缩算法,无内存碎片(大部分解释器都存在内存碎片) ** Version : 1.0 ...
APMonitor/pds
All_Source_Code/ScaleData/ScaleData_1.py
import numpy as np import matplotlib.pyplot as plt # Generate a distribution x = 0.5*np.random.randn(1000)+4 # Standard (mean=0, stdev=1) Scaler y = (x-np.mean(x))/np.std(x) # Min-Max (0-1) Scaler z = (x-np.min(x))/(np.max(x)-np.min(x)) # Plot distributions plt.figure(figsize=(8,4)) plt.hist(x, bins=30, label='orig...
devs-immortal/Skewer
src/main/java/net/immortaldevs/skewer/commands/AddToSkewerCommand.java
<filename>src/main/java/net/immortaldevs/skewer/commands/AddToSkewerCommand.java package net.immortaldevs.skewer.commands; import com.mojang.brigadier.CommandDispatcher; import com.mojang.brigadier.arguments.IntegerArgumentType; import com.mojang.brigadier.context.CommandContext; import com.mojang.brigadier.exception...
bco-bc/panalysis
plot_lj_coulomb.py
<gh_stars>0 import sys import numpy as np import matplotlib.pyplot as plt import interaction.lj_coulomb as lj_coulomb pi = np.pi e0 = 0.000572766 eps = 2.5 # Default value of the relative permittivity (dielectric constant) dr = 0.01 # Distance spacing. r0 = 0.4 # Start value distance. i...
wujifengcn/jdchain-framework
ledger-model/src/main/java/com/jd/blockchain/transaction/ParticipantOperator.java
<gh_stars>1-10 package com.jd.blockchain.transaction; public interface ParticipantOperator { /** * 注册参与方操作; * * @return */ ParticipantRegisterOperationBuilder participants(); /** * 参与方状态更新操作; * * @return */ ParticipantStateUpdateOperationBuilder states(); }
Team-SubliMate/SubliMate-Android
app/src/main/java/sublimate/com/sublimate/json/ResetAckEvent.java
<reponame>Team-SubliMate/SubliMate-Android package sublimate.com.sublimate.json; public class ResetAckEvent extends WebSocketEvent { public static final String EVENT_TYPE = "RESET_ACK"; public ResetAckEvent(int itemId) { this.type = EVENT_TYPE; } }
TrainingByPackt/Professional-Nodejs-eLearning
Lesson01/arrow_function/02_scoping.js
<reponame>TrainingByPackt/Professional-Nodejs-eLearning function MovieStar(name) { this.name = name; } const movieStar = new MovieStar("Al Pacino"); MovieStar.prototype.stunt = function() { setTimeout(function cb() { console.log("Animated Stunt for " + this.name); }, 1000); }; movieStar.stunt(); ...
BitySA/swissdta
tests/test_field_iban.py
<reponame>BitySA/swissdta<filename>tests/test_field_iban.py """Tests for the Iban field.""" import pytest from swissdta.fields import Iban from swissdta.records.record import DTARecord FIELD_LENGTH = 25 class IbanRecord(DTARecord): """Subclass of DTARecord for testing the Iban field.""" field = Iban(lengt...
lanjue1/CAP
src/components/AntdSelectRegion/index.js
import React, { Component } from 'react'; import { Select, Cascader } from 'antd'; import { connect } from 'dva'; import { formatMessage } from 'umi-plugin-react/locale'; import { isString } from 'util'; @connect(({ }) => ({})) export default class AntdSelectRegion extends Component { constructor(props) { ...
hayden5-mwac/cotidia-account
cotidia/account/urls/api.py
from django.urls import path from django.conf.urls import url from cotidia.account.views import api from cotidia.account.serializers.group import GroupAdminSerializer from cotidia.admin.views.api import DynamicListAPIView ure = r"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" app_name = "cotidia.accou...
lucmski/twint-docker
searchapp/node_modules/@appbaseio/reactivesearch/lib/appbase-js/node_modules/lodash/isSet.js
<reponame>lucmski/twint-docker<filename>searchapp/node_modules/@appbaseio/reactivesearch/lib/appbase-js/node_modules/lodash/isSet.js<gh_stars>0 'use strict'; var baseIsSet = require('./_baseIsSet'), baseUnary = require('./_baseUnary'), nodeUtil = require('./_nodeUtil'); /* Node.js helper references. */ var no...
PKUfudawei/cmssw
CondTools/Ecal/src/ESDBCopy.cc
#include "FWCore/ServiceRegistry/interface/Service.h" #include "CondCore/DBOutputService/interface/PoolDBOutputService.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/EventSetup.h" #include "CondTools/Ecal/interface/ESDBCopy.h" #include <vector> ESDBCopy::ESDBCopy(con...
jasonsbarr/types
packages/core/lib/predicates/isSealed.js
<reponame>jasonsbarr/types export const isSealed = (obj) => Object.isSealed(obj);
pcanto-hopeit/hopeit.engine
engine/test/mock_app/mock_app_api_get.py
<reponame>pcanto-hopeit/hopeit.engine """ Test app api """ from typing import Optional from hopeit.app.logger import app_extra_logger from hopeit.app.context import EventContext from mock_app import MockData logger, extra = app_extra_logger() __steps__ = ['entry_point'] __api__ = { "summary": "Test app api", ...
ysoftman/test_code
golang/csv_sql/db.go
package main import ( "database/sql" "log" ) type SQLDataBase struct { sqlDB *sql.DB } var sqldb *SQLDataBase func NewDB() *SQLDataBase { db, err := sql.Open("sqlite3", "./sqlite.db") if err != nil { log.Fatal("open sqlite err =>", err) } // log.Println("db:", db) return &SQLDataBase{ sqlDB: db, } } f...
paozer/minishell
srcs/libft/srcs/libft.h
<filename>srcs/libft/srcs/libft.h /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* libft.h ...
opacut/frontend-components
packages/pdf-generator/src/components/Chart.js
<reponame>opacut/frontend-components<filename>packages/pdf-generator/src/components/Chart.js import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { CircleIconConfig } from '@patternfly/react-icons/dist/js/icons/circle-icon'; import PropTypes from 'prop-types'; import { View, Canvas, Text }...
0vert1m3/test
ee/app/services/ee/merge_requests/merge_service.rb
module EE module MergeRequests module MergeService extend ::Gitlab::Utils::Override override :error_check! def error_check! check_size_limit super end def hooks_validation_pass?(merge_request) # handle_merge_error needs this. We should move that to a separa...
dplbsd/soc2013
head/contrib/llvm/tools/clang/lib/Sema/SemaOpenMP.cpp
//===--- SemaOpenMP.cpp - Semantic Analysis for OpenMP constructs ----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
influitive/SHAlert
SHAlertExample/Vendor/PXEngine.framework/Versions/1.0/Headers/PXMath.h
// // PXMath.h // PXEngine // // Created by <NAME> on 7/28/12. // Copyright (c) 2012 Pixate, Inc. All rights reserved. // #ifndef PXShapeKit_PXMath_h #define PXShapeKit_PXMath_h #define DEGREES_TO_RADIANS(angle) ( (angle) / 180.0 * M_PI) #define RADIANS_TO_DEGREES(radians) ((radians) * 180.0 / M_PI) #endif
timfel/netbeans
java/java.hints/test/unit/src/org/netbeans/modules/java/hints/bugs/UnbalancedTest.java
<reponame>timfel/netbeans<gh_stars>1000+ /* * 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 Lice...
dahyeong-yun/prtc_coding-test-py
onlineJudge/baekjoon/DS/Stack/Q1874/Q1874.py
<filename>onlineJudge/baekjoon/DS/Stack/Q1874/Q1874.py n = int(input()) cnt = 1 stack = [] result = [] for i in range(1, n+1) : data = int(input()) while cnt <= data : stack.append(cnt) cnt += 1 result.append("+") if stack[-1] == data : stack.pop() result.append("-") else : print("NO") ...
andriyzagoruyko/landing-core
resources/js/components/common/Form/Section/index.js
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { FormGroup, Typography, Divider } from '@material-ui/core/'; import useStyles from './styles'; const FormSection = ({ children, title, divider, dense = false, ...rest }) => { const classes = useStyles(); return ( ...
vampire-studios/HuskysGadgetMod-Forge
src/main/java/io/github/vampirestudios/hgm/api/os/OperatingSystem.java
<reponame>vampire-studios/HuskysGadgetMod-Forge package io.github.vampirestudios.hgm.api.os; import io.github.vampirestudios.hgm.core.TaskBar; public interface OperatingSystem { String name(); String version(); TaskBar taskBar(); int ram(); int storage(); }
zhixuan2333/work
go/vscode_electron/main.go
<filename>go/vscode_electron/main.go package main import ( "bufio" "bytes" "fmt" "io/ioutil" "log" "net/http" "os/exec" "regexp" "runtime" ) //vscodeV get vscode version func vscodeV() []byte { // Print Go Version out, err := exec.Command("code", "-v").Output() if err != nil { log.Printf("Get vscode ver...
ZDAutomotive/ZD-SWAG-SDK
test/services/seatcontrol/testSet.js
<gh_stars>1-10 const swag = require('../../../dist/bundle.cjs'); const SC = new swag.SeatControl({host:'192.168.178.114'}); (async () => { try { let conn = await SC.connect(); console.log(conn); // console.log(SC.socket); let res = await SC.setPosition([32440,33208,32261,32600]) consol...
flongo/ariatemplates
test/aria/ext/filesgenerator/GeneratorTest.js
<filename>test/aria/ext/filesgenerator/GeneratorTest.js /* * Copyright 2012 <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 * *...
scala-steward/csw
examples/src/main/scala/example/tutorial/moderate/shared/SampleValidation.scala
<reponame>scala-steward/csw package example.tutorial.moderate.shared import csw.params.commands.CommandIssue.{MissingKeyIssue, ParameterValueOutOfRangeIssue, UnsupportedCommandIssue} import csw.params.commands.CommandResponse.{Accepted, Invalid, ValidateCommandResponse} import csw.params.commands.{ControlCommand, Setu...
BronchoDeveloper/lice-spring
spring-lice-test/src/main/java/com/lice/AOP/AOPService.java
<filename>spring-lice-test/src/main/java/com/lice/AOP/AOPService.java package com.lice.AOP; import org.springframework.stereotype.Service; /** * description: AOPService <br> * date: 2019/10/3 23:06 <br> * author: lc <br> * version: 1.0 <br> */ @Service public class AOPService { //被拦截的方法 public void pointCut()...
benravago/fx.html
testsuite/src/domts/level1/core/HC_Node_Get_Owner_Document_Test.java
package domts.level1.core; import org.w3c.dom.*; import java.util.*; import org.junit.jupiter.api.*; import static org.junit.jupiter.api.Assertions.*; /** * Evaluate Node.ownerDocument on the second "p" element. * @author <NAME> * @see <a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#node-owne...
tseiiti/ruby_diversos
ruby-and-ms-access/database_access.rb
<gh_stars>0 system("cls") require 'win32ole' class ActiveRecord attr_accessor :mdb, :table, :columns def initialize() @mdb = File.basename(__FILE__).gsub('.rb', '.mdb') # nome da tabela @table = self.class.name.downcase # verifica colunas da tabela (fields) get_columns() end def add_column(column_na...
SteveKunG/Indicatia
common/src/main/java/com/stevekung/indicatia/utils/EnchantedSkullTileEntityRenderer.java
package com.stevekung.indicatia.utils; import java.util.Arrays; import com.mojang.authlib.GameProfile; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.blaze3d.vertex.VertexConsumer; import net.minecraft.client.model.SkullModelBase; import net.minecraft.client.renderer.MultiBufferSource; import net.minec...
kestred/panda3d
direct/src/plugin/p3dIntObject.cxx
<reponame>kestred/panda3d<filename>direct/src/plugin/p3dIntObject.cxx<gh_stars>1-10 // Filename: p3dIntObject.cxx // Created by: drose (30Jun09) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All u...
lechium/tvOS145Headers
usr/libexec/dmd/DMDUpdateEnqueuedCommandsOperation.h
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 <NAME>. // #import "DMDTaskOperation.h" @interface DMDUpdateEnqueuedCommandsOperation : DMDTaskOperation { } + (_Bool)validateRequest:(id)arg1 error:(id *)arg2; /...
Antholoj/netbeans
ide/jumpto/src/org/netbeans/modules/jumpto/type/FilteredListModel.java
<reponame>Antholoj/netbeans<filename>ide/jumpto/src/org/netbeans/modules/jumpto/type/FilteredListModel.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 own...
kuiro5/gatsby-starter-default
src/components/SaveTheDate/index.js
import React from 'react'; import { Flex, Box } from '@rebass/grid'; import './styles.css'; const SaveTheDate = () => { return ( <div className='save-the-date'> <div className='save-the-date-overlay' /> <Flex className='save-the-date-container' alignItems={'center'} justifyContent={'center'}> ...
sbn-psi/archive-viewer
public/feedback/js/feedback.js
/* Copyright (c) 2019, California Institute of Technology ("Caltech"). U.S. Government sponsorship acknowledged. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions o...
waynerv/data-structures-and-algorithms-in-python
Reference/progs/stack_app1.py
<filename>Reference/progs/stack_app1.py """ 栈的应用1:检查括号配对,后缀表达式求值器, 中缀表达式到后缀表达式的转换, """ from stack_list import * class ESStack(SStack): def depth(self): return len(self._elems) ############################################# ######## Parentheses checker ################# def check_parens(t...
naveed-ahmad/eui
src/components/date_picker/super_date_picker/quick_select_popover/commonly_used_time_ranges.js
import PropTypes from 'prop-types'; import React from 'react'; import { commonlyUsedRangeShape } from '../types'; import { EuiI18n } from '../../../i18n'; import { EuiFlexGrid, EuiFlexItem } from '../../../flex'; import { EuiTitle } from '../../../title'; import { EuiLink } from '../../../link'; import { EuiHorizontalR...
clayne/Lootman
lootman/f4se/ScaleformSerialization.h
<gh_stars>1-10 #pragma once #include "f4se/Serialization.h" #include "f4se/PluginAPI.h" class GFxValue; namespace Serialization { template <> bool WriteData<GFxValue>(const F4SESerializationInterface* intfc, const GFxValue* val); template <> bool ReadData<GFxValue>(const F4SESerializationInterface* intfc, GFxVa...
troyblank/halfsies
src/components/balance/reducer.spec.js
import { assert } from 'chai'; import Chance from 'chance'; import reducer from './reducer'; import { BALANCE_RECEIVED } from './actions'; describe('Balance Reducer', () => { const chance = new Chance(); it('should return initial state', () => { assert.deepEqual(reducer(undefined, {}), {}); }); ...
arkivm/syzkaller
tools/syz-crush/crush.go
// Copyright 2016 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. // syz-crush replays crash log on multiple VMs. Usage: // syz-crush -config=config.file execution.log // Intended for reproduction of particularly elusiv...
puckel/dgr
vendor/github.com/aws/aws-sdk-go/service/codecommit/codecommitiface/interface.go
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. // Package codecommitiface provides an interface for the AWS CodeCommit. package codecommitiface import ( "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/service/codecommit" ) // CodeCommitAPI is the interface type for codecommit.CodeCommit. ...
selinabitting/compas_view2
scripts/v120_frames.py
<filename>scripts/v120_frames.py from compas_view2 import app from compas.geometry import Frame viewer = app.App() frame = Frame([1, 1, 1], [0.68, 0.68, 0.27], [-0.67, 0.73, -0.15]) viewer.add(frame) viewer.show()
freman/genesysapi
client/integrations/patch_integrations_action_draft_responses.go
<filename>client/integrations/patch_integrations_action_draft_responses.go // Code generated by go-swagger; DO NOT EDIT. package integrations // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-ope...
1337programming/leviathan
nfc/src/DOOM/neo/swf/SWF_Bitstream.h
/* =========================================================================== Doom 3 BFG Edition GPL Source Code Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code"). Doom 3 BFG Edition Source Code is free...
sash2104/library
test/aoj/GRL_6_A.test.cpp
<reponame>sash2104/library #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_6_A" #include "../../graph/max-flow-dinic.hpp" #include <iostream> using namespace std; typedef long long ll; int main() { int V, E; cin >> V >> E; max_flow mf(V); for (int i = 0; i < E; ++i) { int fr...
saidinesh5/rune_vm
src/wasm_backends/Backends.hpp
<filename>src/wasm_backends/Backends.hpp // // Created by <NAME> - github.com/delimbetov - on 20.03.2021 // Copyright (c) HAMMER OF THE GODS INC. - hotg.ai // #pragma once // include all backends here #include <wasm_backends/wasm3/Wasm3Engine.hpp>
deatil/lakego-admin
pkg/lakego-admin/admin/model/action_log.go
<reponame>deatil/lakego-admin<gh_stars>10-100 package model import ( "time" "strconv" "gorm.io/gorm" "github.com/deatil/lakego-admin/lakego/support/hash" "github.com/deatil/lakego-admin/lakego/support/random" "github.com/deatil/lakego-admin/lakego/facade/database" ) type ActionLog struct { ...
yslai/AliPhysics
PWGGA/Hyperon/AliAnalysisTaskSigma0Run2.cxx
#include "AliAnalysisTaskSigma0Run2.h" #include "AliAnalysisManager.h" #include "AliInputEventHandler.h" #include "AliMCEvent.h" #include "AliMultSelection.h" #include "AliPIDResponse.h" ClassImp(AliAnalysisTaskSigma0Run2) //________________________________________________________________________________________...
jainsakshi2395/linux
drivers/pci/controller/mobiveil/pcie-mobiveil.c
<filename>drivers/pci/controller/mobiveil/pcie-mobiveil.c<gh_stars>10-100 // SPDX-License-Identifier: GPL-2.0 /* * PCIe host controller driver for Mobiveil PCIe Host controller * * Copyright (c) 2018 Mobiveil Inc. * Copyright 2019 NXP * * Author: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #include <linux/delay....
extcpp/base
examples/scope_guard.cpp
<reponame>extcpp/base // Copyright - 2020 - <NAME> <<EMAIL>> // Please see LICENSE.md for license or visit https://github.com/extcpp/basics #include <ext/util/scope_guard.hpp> #include <iostream> #include <stdexcept> void fun() { std::cout << "fun" << std::endl; } struct functor { void operator()() { s...
chanakawickramasinghe/fitness-life
dashboard/src/utils/time.js
<reponame>chanakawickramasinghe/fitness-life function timeCal(time){ let a = time.split(':'); let mins = (+a[0])*60 + (+a[1]) + 30; let hours = (mins / 60); let rhours = Math.floor(hours); let minutes = (hours - rhours) * 60; let rminutes = Math.round(minutes); let nextAvailTime = rhours + ...
dvdciri/DeepImagePreview-Project
app/src/main/java/com/davidecirillo/menupreview/base/FragmentTabAdapter.java
package com.davidecirillo.menupreview.base; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import java.util.ArrayList; import java.util.List; public class FragmentTabAdapter extends FragmentPagerAdapter { private List<...
e0543860/tp
src/main/java/dash/logic/commands/personcommand/DeletePersonCommand.java
package dash.logic.commands.personcommand; import static java.util.Objects.requireNonNull; import java.util.List; import dash.commons.core.Messages; import dash.commons.core.index.Index; import dash.logic.commands.Command; import dash.logic.commands.CommandResult; import dash.logic.commands.exceptions.CommandExcepti...
gustavodsf/js_projects
ps_bus/server/app/router.js
'use strict'; // router.js // Attach the routes to the App const index = require('./routes/index'); const users = require('./routes/users.router'); const workload = require('./routes/workload.router'); const model = require('./routes/model.router'); /** * This method configure the routes subpaths to the appl...
Mafioso/happ-backend
happ/auth/urls.py
from django.conf.urls import url from rest_framework_jwt.views import obtain_jwt_token, refresh_jwt_token from .views import ( FacebookLogin, UserRegister, FacebookUserRegister, PasswordChange, PasswordReset, PasswordResetConfirm, EmailConfirmationRequest, EmailConfirmation, AdminL...
hanpengfei/beilu-android-open-project
app/src/main/java/com/scj/beilu/app/ui/mine/MineAccountSettingFrag.java
<gh_stars>0 package com.scj.beilu.app.ui.mine; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import androidx.annotation.Nullable; import android.view.View; import com.mx.pro.lib.mvp.network.config.AppConfig; import com.scj.beilu.app.R; import com.scj.beilu.app.bas...
SSouik/pyutil
tests/string/endswith_test.py
<reponame>SSouik/pyutil import pytest from pyutil import endswith def test_endswith_when_string_is_empty(): actual = endswith("", "foo") expected = False assert actual == expected def test_endswith_when_target_is_empty(): actual = endswith("foo", "") expected = False assert actual == expecte...
rnorth/testpackage-containers
modules/cassandra/src/main/java/org/testcontainers/containers/CassandraContainer.java
package org.testcontainers.containers; import com.datastax.driver.core.Cluster; import com.github.dockerjava.api.command.InspectContainerResponse; import org.apache.commons.io.IOUtils; import org.testcontainers.containers.delegate.CassandraDatabaseDelegate; import org.testcontainers.delegate.DatabaseDelegate; import o...
akatona84/cruise-control
cruise-control/src/main/java/com/linkedin/kafka/cruisecontrol/monitor/sampling/holder/ValueHolder.java
/* * Copyright 2019 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information. */ package com.linkedin.kafka.cruisecontrol.monitor.sampling.holder; /** * An interface to unify the {@link ValueAndTime}, {@link ValueAndCount}, and {@link ValueMax}...
Fliros228/StreamCraft
org/apache/http/io/SessionInputBuffer.java
package org.apache.http.io; import java.io.IOException; import org.apache.http.util.CharArrayBuffer; public interface SessionInputBuffer { int read(byte[] paramArrayOfbyte, int paramInt1, int paramInt2) throws IOException; int read(byte[] paramArrayOfbyte) throws IOException; int read() throws IOException...
elko-dev/spawn
web/prompt_test.go
<reponame>elko-dev/spawn package web import ( reflect "reflect" "testing" "github.com/elko-dev/spawn/constants" ) func TestWhenWebIsSelectedReturnsClientSelectionsOfReact(t *testing.T) { expected := []string{constants.ReactClientLanguageType} actual := getClientLangaugeSelections("Web") if !reflect.DeepEqual...
mariusvn/turbo-engine
src/SceneManager.cpp
<reponame>mariusvn/turbo-engine<filename>src/SceneManager.cpp<gh_stars>1-10 #include <turbo/SceneManager.hpp> #include <stdexcept> namespace turbo { SceneManager::SceneManager() { } void SceneManager::register_scene(Scene* scene, const char* name) { Scene* test = this->scenes["test"]; if (...
expjazz/rails_managing_tasks_app
app/controllers/chats_controller.rb
class ChatsController < ApplicationController def create @chatroom = Chatroom.new @recipient_id = chat_room_params if @chatroom.save respond_to do |format| format.js { render partial: 'notice/alerts', locals: { test: @recipient_id } } end else flash[:alert] = 'You chat sessio...
3658BOSONS/UG3
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/ShooterTuner.java
<filename>TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/ShooterTuner.java<gh_stars>0 package org.firstinspires.ftc.teamcode.opmodes; import com.acmerobotics.dashboard.FtcDashboard; import com.acmerobotics.dashboard.config.Config; import com.acmerobotics.dashboard.telemetry.TelemetryPacket; import com.q...
Vodafone/wiremock
src/test/java/com/github/tomakehurst/wiremock/recording/ProxiedServeEventFiltersTest.java
/* * Copyright (C) 2011 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...