repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
envomp/Lone-Player
core/src/ee/taltech/iti0202/gui/game/desktop/entities/projectile2/WeaponProjectileBuilder.java
package ee.taltech.iti0202.gui.game.desktop.entities.projectile2; import com.badlogic.gdx.physics.box2d.Body; import ee.taltech.iti0202.gui.game.desktop.entities.projectile2.bullet.Bullet; public class WeaponProjectileBuilder { private Body body; private WeaponProjectile.Type type; public WeaponProjecti...
ravowlga123/hbase
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionOverAsyncConnection.java
<reponame>ravowlga123/hbase /** * 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...
chaos4ever/chaos-old
programs/quake/q1source/WinQuake/screen.h
/* Copyright (C) 1996-1997 Id Software, Inc. 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 distribut...
harshp8l/deep-learning-lang-detection
data/train/java/08b8758968f318b66ca4b480e16153c60ddfab34MultiProcessManager.java
package com.shine.MultiProcess; import com.shine.MultiProcess.utils.ProcessUtils; public class MultiProcessManager { private static MultiProcessManager manager = new MultiProcessManager(); private ProcessUtils processUtil=new ProcessUtils(); public static MultiProcessManager getManager() { return manager; } ...
cldrn/drools
drools-kiesession/src/main/java/org/drools/kiesession/factory/RuntimeComponentFactoryImpl.java
/* * Copyright 2010 Red Hat, Inc. and/or its affiliates. * * 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...
Computer-history-Museum/MS-Word-for-Windows-v1.1
Opus/iconbar1.c
<reponame>Computer-history-Museum/MS-Word-for-Windows-v1.1 /* I C O N B A R 1 . C */ /* Core iconbar routines */ #define RSHDEFS #include "word.h" DEBUGASSERTSZ /* WIN - bogus macro for assert string */ #include "heap.h" #include "disp.h" #include "keys.h" #include "help.h" #include "screen.h" #include "wi...
adobe-uxp/devtools-cli
packages/uxp-devtools-core/src/core/service/PluginSessionMgr.js
/* eslint-disable camelcase */ /* * Copyright 2020 Adobe Systems Incorporated. All rights reserved. * This file is licensed to you 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...
aronasorman/kolibri
kolibri/plugins/coach/hooks.py
from __future__ import absolute_import, print_function, unicode_literals from kolibri.core.webpack import hooks as webpack_hooks class CoachToolsSyncHook(webpack_hooks.WebpackInclusionHook): """ Inherit a hook defining assets to be loaded synchronously in coach/coach.html """ class Meta: abst...
CamdenFoucht/ask-cli
test/unit/commands/skill/add-locales/index-test.js
<gh_stars>10-100 const { expect } = require('chai'); const sinon = require('sinon'); const AddLocalesCommand = require('@src/commands/skill/add-locales'); const helper = require('@src/commands/skill/add-locales/helper'); const optionModel = require('@src/commands/option-model'); const ui = require('@src/commands/skill...
kanishkan/tce
tce/src/procgen/MachInfo/MachInfo.cc
/* Copyright (c) 2014 Tampere University. This file is part of TTA-Based Codesign Environment (TCE). 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 li...
luxms/dremio-oss
dac/backend/src/main/java/com/dremio/dac/model/job/ResourceSchedulingUI.java
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
onap/multicloud-openstack
newton/newton/requests/tests/test_flavor.py
<reponame>onap/multicloud-openstack<filename>newton/newton/requests/tests/test_flavor.py # Copyright (c) 2017-2018 Intel Corporation, 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 # # ...
alexanderfefelov/userside-network-api
db/repository/src/main/scala/com/github/alexanderfefelov/userside/network/api/db/repository/PblTariffGroupInc.scala
<reponame>alexanderfefelov/userside-network-api package com.github.alexanderfefelov.userside.network.api.db.repository import scalikejdbc._ case class PblTariffGroupInc( id: Int, tariffGroupId: Option[Int] = None, tariffId: Option[String] = None) { def save()(implicit session: DBSession = PblTariffGroupInc.a...
DwayneJengSage/BridgeServer2
src/main/java/org/sagebionetworks/bridge/models/Metrics.java
<reponame>DwayneJengSage/BridgeServer2<filename>src/main/java/org/sagebionetworks/bridge/models/Metrics.java package org.sagebionetworks.bridge.models; import static com.google.common.base.Preconditions.checkArgument; import static org.apache.commons.lang3.StringUtils.isNotBlank; import com.google.common.collect.Mult...
Kiubi/alpha
src/utils/forms.js
var Backbone = require('backbone'); var _ = require('underscore'); var serialize = require('form-serialize'); /** * Extract fields values from a View form. * * @param {Array} fields * @param {Marionette.View} view * @param {Object} options * @returns {Object} * @see extractFieldsFromEl */ function extractFiel...
phil-mansfield/shellfish
cmd/env/nil_snapshot.go
<reponame>phil-mansfield/shellfish package env import ( "fmt" ) func (cat *Catalogs) InitNil(info *ParticleInfo, validate bool) error { cat.CatalogType = Nil cat.names = make([][]string, info.SnapMax - info.SnapMin + 1) for i := range cat.names { cat.names[i] = []string{fmt.Sprintf("%d", i)} } if validate { ...
qixiaobo/otter
manager/biz/src/main/java/com/alibaba/otter/manager/biz/statistics/delay/DelayStatService.java
<reponame>qixiaobo/otter /* * Copyright (C) 2010-2101 Alibaba Group Holding Limited. * * 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 ...
opdss/ManageApi
common/requests.js
/** * Created by wuxin on 16/4/30. */ var http = require('http'); var qs = require('querystring'); var urlParse = require('url'); var EventProxy = require('eventproxy'); var requests = {}; requests.returnBody = { request : { 'output' : '', 'method' : '', 'requestUrl' : '', 'head...
kevinmtian/pytorchvideo
projects/video_nerf/dataset.py
<filename>projects/video_nerf/dataset.py # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import os from typing import Tuple import numpy as np import torch import tqdm # Imports from PyTorchVideo and PyTorch3D from pytorch3d.renderer import PerspectiveCameras from pytorchvideo.data.encoded_vi...
Brianzchen/starfall
src/Form/index.spec.js
// @flow import React from 'react'; import { render, screen } from '@testing-library/react'; import { lorem } from '@faker-js/faker'; import Form from '.'; describe('<Form />', () => { it('passes random props into form', () => { const props = { [lorem.word()]: lorem.sentence(), [lorem.word()]: lorem...
civodlu/trw
src/trw/datasets/medical_decathlon.py
<reponame>civodlu/trw import collections import functools import os from typing import Dict, Union, Callable, Optional, Mapping, MutableMapping from ..basic_typing import Batch, Dataset, Datasets from ..utils import optional_import from .utils import download_and_extract_archive import json import numpy as np import t...
Miguel619/cs-sfsu
secret/node_modules/nyks/node_modules/mout/number/pad.js
<reponame>Miguel619/cs-sfsu var lpad = require('../string/lpad'); var toNumber = require('../lang/toNumber'); /** * Add padding zeros if n.length < minLength. */ function pad(n, minLength, char){ n = toNumber(n); return lpad(''+ n, minLength, char || '0'); } module....
andreasdr/tdme
src/net/drewke/tdme/tests/PhysicsTest1.java
package net.drewke.tdme.tests; import java.awt.event.MouseMotionListener; import java.util.logging.Level; import java.util.logging.Logger; import net.drewke.tdme.engine.Camera; import net.drewke.tdme.engine.Engine; import net.drewke.tdme.engine.Light; import net.drewke.tdme.engine.Object3D; import net.drewke.tdme.eng...
pheinrich/euler
solved/problem_0079.rb
<reponame>pheinrich/euler<gh_stars>0 require 'projectEuler' class Problem_0079 def title; 'Passcode derivation' end def difficulty; 5 end # A common security method used for online banking is to ask the user for # three random characters from a passcode. For example, if the passcode was # 531278, they may a...
ScalablyTyped/SlinkyTyped
w/wordpress__components/src/main/scala/typingsSlinky/wordpressComponents/components/ScrollLock.scala
<gh_stars>10-100 package typingsSlinky.wordpressComponents.components import slinky.web.html.`*`.tag import typingsSlinky.StBuildingComponent.Default import typingsSlinky.wordpressComponents.scrollLockMod.ScrollLock.Props import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` imp...
newsuk/times-components-native
packages/edition-slices/src/tiles/tile-m/index.js
<filename>packages/edition-slices/src/tiles/tile-m/index.js<gh_stars>1-10 /* eslint-disable react/require-default-props */ import React from "react"; import PropTypes from "prop-types"; import { editionBreakpoints } from "@times-components-native/styleguide"; import { getTileStrapline, TileLink, TileSummary, wi...
kaiso/lygeum
core/src/main/java/io/github/kaiso/lygeum/core/entities/Change.java
package io.github.kaiso.lygeum.core.entities; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class Change { private String commit; private String author; private LocalDateTime date; private List<ChangeRecord> changes = new ArrayLi...
pymtl/pypy-pymtl3
pypy/module/pypyjit/test_pypy_c/test_misc.py
import py, sys from pypy.module.pypyjit.test_pypy_c.test_00_model import BaseTestPyPyC class TestMisc(BaseTestPyPyC): def test_f1(self): def f1(n): "Arbitrary test function." i = 0 x = 1 while i<n: j = 0 while j<=i: ...
takezoe/metals
mtags/src/main/scala-2/scala/meta/internal/metals/EmptyResult.scala
package scala.meta.internal.metals import scala.meta.Position object EmptyResult { case object Unchanged extends EmptyResult case object NoMatch extends EmptyResult def unchanged: Either[EmptyResult, Position] = Left(Unchanged) def noMatch: Either[EmptyResult, Position] = Left(NoMatch) } sealed trait EmptyRe...
KuKuXia/30-Days-Plan-for-Practicing-C-Plus-Plus-11-STL
day3_count_and_count_if.cpp
// // Created by LongXiaJun on 2018/12/9 0009. // #include "day3_count_and_count_if.h" #include <iostream> #include <algorithm> #include <vector> namespace demo_count_and_count_if { namespace definition_count_and_count_if { // Possible Definition template<typename InputIt, typename T> typ...
Grosskopf/openoffice
main/sc/source/ui/inc/solveroptions.hxx
/************************************************************** * * 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 y...
alvaropp/AdventOfCode2017
2017/day19-2.py
<reponame>alvaropp/AdventOfCode2017<filename>2017/day19-2.py<gh_stars>0 import numpy as np with open("day19.txt") as f: data = [x[:-1] for x in f.readlines()] # Position pos = 0 while data[0][pos] == " ": pos += 1 pos = np.array([0, pos]) previousPos = pos # Direction dirs = {'u': np.array([-1, 0]), ...
tdc22/JAwesomeEngine
JAwesomePhysics/src/objects/Ray2.java
<reponame>tdc22/JAwesomeEngine package objects; import vector.Vector2f; public class Ray2 extends Ray<Vector2f> { public Ray2(Vector2f pos, Vector2f dir) { super(pos, dir); } @Override public Vector2f pointOnRay(float lambda) { return new Vector2f(pos.x + lambda * dir.x, pos.y + lambda * dir.y); } }
thufv/mastery
src/main/java/mastery/tree/Leaf.java
<gh_stars>0 package mastery.tree; /** * A leaf node, i.e. a token. */ public class Leaf extends Tree { public final String code; public Leaf(int label, String name, String code) { super(label, name, code); this.code = code; } @Override public final boolean isLeaf() { ret...
eSignLive/spring-social-salesforce
src/main/java/org/springframework/social/salesforce/api/impl/SalesforceErrorHandler.java
package org.springframework.social.salesforce.api.impl; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.type.CollectionType; import com.fasterxml.jackson.databind.type.TypeFact...
nicholaspai/lottery
node_modules/ethpm/lib/hosts/ipfshostwithlocalreader.js
var wget = require("wget-improved"); var inherits = require("util").inherits; var IPFSHost = require("./ipfshost"); inherits(IPFSHostWithLocalReader, IPFSHost); function IPFSHostWithLocalReader(host, port, protocol) { IPFSHost.call(this, host, port, protocol); } IPFSHostWithLocalReader.prototype.get = function(uri...
jnthn/intellij-community
java/java-tests/testData/refactoring/moveInner/scr13730/after/pack1/StaticInner.java
<reponame>jnthn/intellij-community<filename>java/java-tests/testData/refactoring/moveInner/scr13730/after/pack1/StaticInner.java package pack1; public class StaticInner { public class NonStaticInnerInner { private String name; public NonStaticInnerInner(String name) { this.name = name;...
TheAmeliaDeWitt/Limestone
projects/LimestoneClient/minecraft/Forge/src/main/java/net/minecraft/command/ICommand.java
<reponame>TheAmeliaDeWitt/Limestone package net.minecraft.command; import java.util.List; import javax.annotation.Nullable; import net.minecraft.server.MinecraftServer; import net.minecraft.util.math.BlockPos; public interface ICommand extends Comparable<ICommand> { String getName(); String getUsage(ICommand...
kotabrog/CPP-module
module-02/ex02/Fixed.hpp
#ifndef FIXED_H #define FIXED_H #include <iostream> #include <climits> #include <cmath> class Fixed { private: static const int point = 8; int raw; public: Fixed(); Fixed(int value); Fixed(float value); Fixed(const Fixed& a); ~Fixed(); Fixed& operator=(const Fixed& a); bool oper...
VickyZengg/MediaSDK
_studio/mfx_lib/genx/mctf/isa/genx_me_gen11lp_isa.cpp
// Copyright (c) 2020 Intel Corporation // // 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,...
yunionio/onecloud-resource-operator
vendor/yunion.io/x/onecloud/pkg/apis/cloudprovider/zz_generated.model.go
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed ...
LaurentPlagne/Legolas
Legolas/Matrix/tst/MatrixShapeTest/MatrixShapeTest.cxx
<filename>Legolas/Matrix/tst/MatrixShapeTest/MatrixShapeTest.cxx<gh_stars>0 /** * project DESCARTES * * @file DenseMatrixTest.cxx * * @author <NAME> * @date september 2005 * * @par Modifications * - author date object * * (c) Copyright EDF R&D - CEA 2001-2005 */ # include <cstdlib> # include <cma...
wkalt/puppet
acceptance/tests/resource/zpool/basic_tests.rb
<reponame>wkalt/puppet<filename>acceptance/tests/resource/zpool/basic_tests.rb test_name "ZPool: configuration" confine :to, :platform => 'solaris' require 'puppet/acceptance/solaris_util' extend Puppet::Acceptance::ZPoolUtils teardown do step "ZPool: cleanup" agents.each do |agent| clean agent end end ag...
zbowling/mojo
mojo/skia/ganesh_framebuffer_surface.cc
// Copyright 2015 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 "mojo/skia/ganesh_framebuffer_surface.h" #include <GLES2/gl2.h> #include "base/logging.h" namespace mojo { namespace skia { GaneshFramebuffer...
depayapp/depay-widget
cypress/e2e/Donation/providers.js
import DePayWidgets from '../../../src' import React from 'react' import ReactDOM from 'react-dom' import { provider } from '@depay/web3-client' describe('Donation Widget: providers', () => { it('allows to set RPC providers to use', ()=> { cy.visit('cypress/test.html').then((contentWindow) => { cy.documen...
Akirix/akirix-suite
uber-app/app/models/commission-payment.js
import DS from 'ember-data'; var locale = new Globalize( navigator.language ); export default DS.Model.extend( { affiliate_id: DS.attr(), currency_id: DS.attr(), uber_user_id: DS.attr(), status: DS.attr(), amount: DS.attr(), payout_date: DS.attr(), uberUser: DS.belongsTo( 'uber-user',...
alexvonduar/gtec-demo-framework
.Config/FslBuildGen/Generator/CMakeGeneratorUtil.py
#!/usr/bin/env python3 #**************************************************************************************************************************************************** # Copyright (c) 2016 Freescale Semiconductor, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without #...
JetXing/mtl-api
tinper-bee/bee-cascader/demo/demolist/Demo7.js
/** * * @title 不同尺寸的Cascader * @description 通过设置`size`属性为 "lg" 和 "sm" 将输入框设置为大和小尺寸,不设置为默认(中)尺寸。 * */ import React, { Component } from 'react'; import { Row, Col } from 'bee-layout'; import Button from 'bee-button'; import Cascader from '../../src'; const options = [{ label: '基础组件', value: 'jczj', chi...
Charmve/BLE-Security-Att-Def
tools/BladeRF/hdl/fpga/ip/analogdevicesinc/no_OS/include/thread.h
<reponame>Charmve/BLE-Security-Att-Def #ifndef BLADERF_THREAD_H_ #define BLADERF_THREAD_H_ /* Stub out MUTEX, since we don't really use anything else pthread here */ #define MUTEX bool #endif
GPUOpen-Tools/common-src-AMDTAPIClasses
Events/src/apTechnologyMonitorFailureEvent.cpp
<reponame>GPUOpen-Tools/common-src-AMDTAPIClasses //================================================================================== // Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file apTechnologyMonitorFailureEvent.cpp /// //==================...
techdev-solutions/trackr-frontend
src/modules/trackr/services/employeeService.js
define([], function() { 'use strict'; return ['base.services.user', 'Restangular', function(UserService, Restangular) { var employee; return { loadEmployee: function () { return Restangular.one('employees', UserService.getUser().id).get().then(function(_employee) { ...
geqlong/DataService-Svnkit
dataservice-svnkit-framework/service-web-admin/src/main/scala/com/service/visual/web/admin/modules/system/controller/DictCodeController.scala
package com.service.visual.web.admin.modules.system.controller import com.baomidou.mybatisplus.mapper.EntityWrapper import com.service.framework.core.utils.CommUtil import com.service.framework.web.controller.AjaxResult import com.service.visual.web.admin.core.web.controller.BaseController import com.service.visual.we...
weucode/COMFORT
artifact_evaluation/data/codeCoverage/codealchemist_generate/781.js
<filename>artifact_evaluation/data/codeCoverage/codealchemist_generate/781.js var v0 = (function (v1){ return (v1) > (0); }); (v0.match.Url) = v0.Util.extend(v0.match.Match, ({urlPrefixRegex : /^(https?:\/\/)?(www\.)?/i, protocolRelativeRegex : /^\/\//, protocolPrepended : false, getType : (function (){ return 'url'; }...
gxrwes/MCRPGSERVER
MinecraftServer/work/decompile-e0c6d16a/net/minecraft/network/protocol/game/PacketPlayOutStopSound.java
package net.minecraft.network.protocol.game; import javax.annotation.Nullable; import net.minecraft.network.PacketDataSerializer; import net.minecraft.network.protocol.Packet; import net.minecraft.resources.MinecraftKey; import net.minecraft.sounds.SoundCategory; public class PacketPlayOutStopSound implements Packet<...
asecord92/convectus
controllers/api/event-routes.js
const router = require('express').Router(); const sequelize = require('../../config/connection'); const { Event, User, Rsvp } = require('../../models'); const { Op } = require('sequelize'); // GET /api/events/week router.get('/week', (req, res) => { // Access our Event model and run .findAll() method) const {f...
mushikago/CallSwiftFromUnity
Simulator/Libraries/external/baselib/Include/Cpp/CappedSemaphore.h
#pragma once #include "../C/Baselib_CappedSemaphore.h" #include "Time.h" namespace baselib { BASELIB_CPP_INTERFACE { // In computer science, a semaphore is a variable or abstract data type used to control access to a common resource by multiple processes in a concurrent // system such as a mul...
JeffreyStocker/SpotifySmartPlaylists
src/store/actions/user.js
<filename>src/store/actions/user.js export const SET_USER = "SET_USER"; export function setUser (userData) { return { type: SET_USER, payload: userData } }
krishukr/cpp-code
src/LGR/LGR-(-13)/LGR-(-13)-A.cpp
#include <cstring> #include <iostream> int main() { std::string ans = "ACBABDADCCBAABD" "TFTFDB" "TTFFDC" "TFFFAD" "AAACB" "BBDAB"; std::cout << ans << '\n'; return 0; }
DanielParra159/EngineAndGame
Engine/src/Source/Win32/Input/MouseController.cpp
#include "Input\MouseController.h" #include "Input\InputAction.h" #include "SDL.h" #include <assert.h> namespace input { BOOL MouseController::Init() { return TRUE; } void MouseController::Release() { TActionsByKey::const_iterator lIterator = mActionsByKey.begin(); TActionsByKey::const_i...
ankushlt/testsigma
server/src/main/java/com/testsigma/controller/api/v1/TestSuiteResultController.java
package com.testsigma.controller.api.v1; import com.testsigma.dto.api.APITestSuiteResultDTO; import com.testsigma.mapper.TestSuiteResultMapper; import com.testsigma.model.TestSuiteResult; import com.testsigma.service.TestSuiteResultService; import com.testsigma.specification.TestSuiteResultSpecificationsBuilder; impor...
Hochfrequenz/go-bo4e
com/geokoordinaten.go
<gh_stars>1-10 package com import "github.com/shopspring/decimal" // Geokoordinaten are GPS coordinates type Geokoordinaten struct { Breitengrad decimal.Decimal `json:"breitengrad" validate:"latitude"` // Breitengrad is the latitude Laengengrad decimal.Decimal `json:"laengengrad" validate:"longitude"` // Laengengr...
doziya/ansible
awx/ui/client/lib/components/input/label.directive.js
<reponame>doziya/ansible<gh_stars>1-10 function atInputLabel (pathService) { return { restrict: 'E', replace: true, templateUrl: pathService.getPartialPath('components/input/label') }; } atInputLabel.$inject = ['PathService']; export default atInputLabel;
FateRevoked/mage
Mage.Tests/src/test/java/org/mage/test/lki/LastKnownInformationTest.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 org.mage.test.lki; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.se...
seanbashaw/frozenlight
export/windows/obj/include/openfl/_internal/symbols/FontSymbol.h
<gh_stars>0 // Generated by Haxe 3.4.7 #ifndef INCLUDED_openfl__internal_symbols_FontSymbol #define INCLUDED_openfl__internal_symbols_FontSymbol #ifndef HXCPP_H #include <hxcpp.h> #endif #ifndef INCLUDED_openfl__internal_symbols_SWFSymbol #include <openfl/_internal/symbols/SWFSymbol.h> #endif HX_DECLARE_CLASS3(openfl...
henrylameck/school_management_system
students/migrations/0003_auto_20201204_1037.py
<reponame>henrylameck/school_management_system # Generated by Django 3.1 on 2020-12-04 07:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('students', '0002_auto_20201204_1037'), ] operations = [ migrations.AlterField( mode...
Neusoft-Technology-Solutions/aws-sdk-cpp
aws-cpp-sdk-config/source/model/GetAggregateConfigRuleComplianceSummaryResult.cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/config/model/GetAggregateConfigRuleComplianceSummaryResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/String...
SophiaLVP/playground
javascript/features/houses/house_database.js
<gh_stars>10-100 // Copyright 2016 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. import HouseSettings from 'features/houses/house_settings.js'; // Query to load the locations at which houses can be created ...
eugeneilyin/mdi-norm
lib/OutlineCamera.js
"use strict"; var _babelHelpers = require("./utils/babelHelpers.js"); exports.__esModule = true; var _react = _babelHelpers.interopRequireDefault(require("react")); var _Icon = require("./Icon"); var _fragments = require("./fragments"); var OutlineCamera = /*#__PURE__*/ function OutlineCamera(props) { return _r...
YIMonge/Rev
PlatformLib/common/include/revFile.h
#ifndef __REVFILE_H__ #define __REVFILE_H__ #include "revTypedef.h" #include "revString.h" enum class FileMode : uint8 { WriteBinary = 0, ReadBinary, WriteText, ReadText, }; class revFile { public: virtual ~revFile(){} virtual bool Open(const char* path, FileMode mode) = 0; virtual void Close() = 0; // if l...
the-h-team/ClansPro
ClansPro/src/main/java/com/github/sanctum/clans/bridge/ClanAddonLoader.java
package com.github.sanctum.clans.bridge; import com.github.sanctum.labyrinth.library.Deployable; import java.io.File; import java.io.IOException; public interface ClanAddonLoader { ClanAddon loadAddon(File jar) throws IOException, InvalidAddonException; Deployable<Void> enableAddon(ClanAddon addon); Deployable<...
ufz/ogs
MeshLib/IO/XDMF/HdfData.cpp
/** * \file * \copyright * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license */ #include "HdfData.h" #include <hdf5.h> #in...
FauxFaux/dmnp
expr/src/main/java/com/goeswhere/dmnp/expr/Pred.java
<gh_stars>1-10 package com.goeswhere.dmnp.expr; class Pred { public static Pred of(Token pop) { if (pop instanceof Const) { Const c = (Const) pop; if (c.val.equals(1)) return TRUE; else if (c.val.equals(0)) return FALSE; } else if...
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/testsuite/gcc.dg/c90-longlong-1.c
<gh_stars>10-100 /* Test for long long: in C99 only. */ /* Origin: <NAME> <<EMAIL>> */ /* { dg-do compile } */ /* { dg-options "-std=iso9899:1990 -pedantic-errors" } */ long long foo; /* { dg-bogus "warning" "warning in place of error" } */ /* { dg-error "long long" "long long not in C90" { target *-*-* } 6 } */
Wwf9w0/Food-App
src/main/java/service/food/app/persistence/jpa/converter/RestaurantConverter.java
<reponame>Wwf9w0/Food-App<gh_stars>0 package service.food.app.persistence.jpa.converter; import service.food.app.persistence.jpa.dto.RestaurantDto; import service.food.app.persistence.jpa.entity.RestaurantEntity; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; import java.util....
chenhaoaixuexi/cloudCourse
roncoo-education-system/roncoo-education-system-feign/src/main/java/com/roncoo/education/system/feign/interfaces/IFeignSysRoleUser.java
package com.roncoo.education.system.feign.interfaces; import com.roncoo.education.system.feign.qo.SysRoleUserQO; import com.roncoo.education.system.feign.vo.SysRoleUserVO; import com.roncoo.education.util.base.Page; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.ann...
ErmirioABonfim/Exercicos-Python
Exercios Em Python/ex057.py
sexo = '' while sexo != 'f' and sexo != 'm': sexo = str(input(' Digite seu sexo: ')) print('Tks')
tomegorny/temp
java-benchmarking-with-jmh/src/main/java/de/rieckpil/blog/SerializationBenchmark.java
<gh_stars>1-10 /* * Copyright (c) 2014, Oracle America, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, *...
ava-project/ava-website
website/apps/user/tests/validate_token.py
import datetime from django.test import TestCase, Client from django.contrib.auth.models import User from django.utils import timezone from mock import patch from ..models import EmailValidationToken class ValidateTokenMixin(object): def create_user(self): form_data = { 'username': 'correct...
dreamsxin/ultimatepp
uppsrc/Updater/Updater.cpp
<reponame>dreamsxin/ultimatepp #include <CtrlLib/CtrlLib.h> using namespace Upp; GUI_APP_MAIN { const Vector<String>& cmdline = CommandLine(); SetDefaultCharset(CHARSET_WIN1250); if(cmdline.IsEmpty()) { Exclamation("[* UPDATER] should be run from another applications"); return; } String name = cmdline[0]; ...
benhunter/ctf
htb/fatty-10.10.10.174/fatty-client/org/springframework/web/servlet/view/AbstractCachingViewResolver.java
<gh_stars>0 /* */ package org.springframework.web.servlet.view; /* */ /* */ import java.util.LinkedHashMap; /* */ import java.util.Locale; /* */ import java.util.Map; /* */ import java.util.concurrent.ConcurrentHashMap; /* */ import javax.servlet.http.HttpServletRequest; /* */ import ja...
SCS-ASSE-FS21-Group2/tapas
tapas-auction-house/src/main/java/ch/unisg/tapas/auctionhouse/application/port/out/PlaceBidForAuctionCommandPort.java
<gh_stars>1-10 package ch.unisg.tapas.auctionhouse.application.port.out; public interface PlaceBidForAuctionCommandPort { void placeBid(PlaceBidForAuctionCommand command); }
754340156/NQ_quanfu
allrichstore/Tools/QBClass/QBClassMethod/QBShowAlert.h
// // QBShowAlert.h // YunSuLive // // Created by 任强宾 on 16/7/7. // Copyright © 2016年 22. All rights reserved. // #import <Foundation/Foundation.h> @interface QBShowAlert : NSObject //展示一个AlertController + (void)showAlertControllerWithTitle:(NSString *)title message:(NSString *)message style:(UIAlertControllerSt...
LuckyP86H/My-Java-Course
week7-sql-advanced/db-source/src/main/java/domain/repository/impl/CustomerRepositoryImpl.java
package domain.repository.impl; import domain.repository.CustomerRepository; import domain.repository.JpaCustomerRepository; import domain.entity.Customer; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; impo...
sddsd2332/BetterWithMods
src/main/java/betterwithmods/module/gameplay/miniblocks/tiles/TileCorner.java
<filename>src/main/java/betterwithmods/module/gameplay/miniblocks/tiles/TileCorner.java package betterwithmods.module.gameplay.miniblocks.tiles; import betterwithmods.module.gameplay.miniblocks.orientations.BaseOrientation; import betterwithmods.module.gameplay.miniblocks.orientations.CornerOrientation; import net.min...
forestvoyager/smartsheet-java-sdk
src/main/java/com/smartsheet/api/internal/LengthEnforcingInputStream.java
package com.smartsheet.api.internal; /* * #[license] * Smartsheet Java SDK * %% * Copyright (C) 2014 - 2017 Smartsheet * %% * 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 * * ...
metalefty/mackerel-agent
wix/replace/shell_windows_test.go
<reponame>metalefty/mackerel-agent package main import ( "os" "path/filepath" "runtime" "testing" ) func TestMakeFallbackEnv_386(t *testing.T) { if runtime.GOARCH != "386" { t.Skip() } wdir := filepath.Join(os.Getenv("PROGRAMFILES"), "Mackerel", "mackerel-agent") dir := FallbackConfigDir(wdir) if dir != ""...
michel-pi/xenforo-documentation
docs/2-1-0/df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.js
var class_x_f_1_1_repository_1_1_abstract_prompt = [ [ "findPromptGroups", "df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.html#ad2d460be18c2d11ca20bc39477b45087", null ], [ "findPromptsForList", "df/dce/class_x_f_1_1_repository_1_1_abstract_prompt.html#aae94fb1393652228de86c41f6a7df629", null ], [ "ge...
helmutkemper/iotmaker.santa_isabel_theater.platform.webbrowser
eventDrag/typeEvenetDrag.go
<gh_stars>0 package eventDrag type EventDrag int func (el EventDrag) String() string { return eventDragString[el] } var eventDragString = [...]string{ "drag", "dragend", "dragenter", "dragleave", "dragover", "dragstart", "drop", } const ( // KDrag // en: The event occurs when an element is being dragged ...
Devyani606/chatwoot
spec/listeners/notification_listener_spec.rb
<gh_stars>1000+ require 'rails_helper' describe NotificationListener do let(:listener) { described_class.instance } let!(:account) { create(:account) } let!(:user) { create(:user, account: account) } let!(:first_agent) { create(:user, account: account) } let!(:second_agent) { create(:user, account: account) }...
Ecotrust/crks-service
src/main/java/com/axiomalaska/crks/vo/AbstractVO.java
<reponame>Ecotrust/crks-service<filename>src/main/java/com/axiomalaska/crks/vo/AbstractVO.java package com.axiomalaska.crks.vo; import org.hibernate.Session; import com.axiomalaska.crks.dto.AbstractDTO; public class AbstractVO { public AbstractDTO createDTO(){ return new AbstractDTO(); } protect...
mattwalstra/2019RobotCode
common/track3d.cpp
<reponame>mattwalstra/2019RobotCode #include <iostream> #include <limits> #include "track3d.hpp" #include "hungarian.hpp" using namespace std; using namespace cv; // How many consecutive frames a track must be missing before // it is erased const int missedFrameCountMax = 10; /* static Point3f screenToWorldCoords(c...
hiya492/spring
persistence/simple-jpa/src/test/java/org/springbyexample/orm/jpa/inheritance/dao/PersonInheritanceDaoTest.java
/* * Copyright 2007-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
antopen/alipay-sdk-python-all
alipay/aop/api/response/AlipayTradeOverseasSettleResponse.py
<reponame>antopen/alipay-sdk-python-all #!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayTradeOverseasSettleResponse(AlipayResponse): def __init__(self): super(AlipayTradeOverseasSettleResponse, self).__init__() ...
angaza/nexus-embedded
nexus/test/test_nexus_keycode_pro_extended.c
<gh_stars>1-10 #include "include/nx_common.h" #include "src/nexus_common_internal.h" #include "src/nexus_keycode_core.h" #include "src/nexus_keycode_mas.h" #include "src/nexus_keycode_pro.h" #include "src/nexus_keycode_pro_extended.h" #include "src/nexus_nv.h" #include "src/nexus_util.h" #include "unity.h" #include "ut...
AMOS-2020-Team-7/xs2a-adapter
xs2a-adapter-service-api/src/main/java/de/adorsys/xs2a/adapter/http/Request.java
package de.adorsys.xs2a.adapter.http; import de.adorsys.xs2a.adapter.service.Response; import java.util.Map; import java.util.function.UnaryOperator; public interface Request { interface Builder { String method(); String uri(); String body(); Builder jsonBody(String body); ...
donech/pearl
internal/common/global.go
<gh_stars>0 package common import ( "context" "github.com/donech/pearl/internal/data" "github.com/donech/pearl/pkg/ent/db" "github.com/donech/pearl/pkg/log" "github.com/donech/pearl/pkg/redis" ) //InitGlobal init global vat and return a clean up func. func InitGlobal() { initLogger() initRedis() initDB() } ...
BOXFoundation/boxd
core/txlogic/tx_utils_test.go
<filename>core/txlogic/tx_utils_test.go // Copyright (c) 2018 ContentBox Authors. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package txlogic import ( "reflect" "testing" "github.com/BOXFoundation/boxd/core/types" "github.com/BOXFoundation/boxd/crypto" ...
pcicaz/mongo-java-driver
driver-core/src/main/com/mongodb/operation/OperationHelper.java
<reponame>pcicaz/mongo-java-driver /* * Copyright (c) 2008-2014 MongoDB, 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 * * Unl...
jesperancinha/jeorg-spring-5-test-drives
jeorg-spring-5/jeorg-spring-app-old/jeorg-spring-5-test-drives-webapp/src/test/java/org/jesperancinha/std/old/webapp/service/DetailLayer2ServiceTest.java
package org.jesperancinha.std.old.webapp.service; import org.jesperancinha.std.old.webapp.model.Detail; import org.jesperancinha.std.old.webapp.model.DetailEntity; import org.jesperancinha.std.old.webapp.repository.DetailRepository; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org...
lostnut/ojAlgo
test/org/ojalgo/matrix/BasicMatrixTest.java
<reponame>lostnut/ojAlgo /* * Copyright 1997-2018 Optimatika * * 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, cop...