repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
phillima-inatel/C125
Aula-09/src/br/inatel/cdg/exercicio1/inimigos/ZumbiLerdo.java
package br.inatel.cdg.exercicio1.inimigos; public class ZumbiLerdo extends Inimigo{ public ZumbiLerdo(String nome, double vida, String tipoArma) { super(nome,vida,tipoArma); } }
speedt/g4
src/biz/frontend/index.js
/*! * emag.biz * Copyright(c) 2017 huangxin <<EMAIL>> * MIT Licensed */ 'use strict'; exports.findAll = require('./findAll'); exports.available = require('./available');
x19990416/macrossx-spring-contribute
src/component/java/com/github/x19990416/macrossx/spring/component/remotefile/IRemoteFileService.java
package com.github.x19990416.macrossx.spring.component.remotefile; import java.io.InputStream; import java.util.List; import org.apache.commons.lang3.StringUtils; public interface IRemoteFileService { final static String URL_SEPARATOR = "/"; default boolean save(InputStream in, String name) { return save(in, nul...
rvk007/Monocular-Depth-Estimation
deepnet/model/models/model.py
<reponame>rvk007/Monocular-Depth-Estimation from deepnet.model.models.resnet import ResNet, BasicBlock from deepnet.model.models.customnet import CustomNet, CustomBlock from deepnet.model.models.resmodnet import ResModNet, ModBasicBlock from deepnet.model.models.masknet import MaskNet3 from deepnet.model.models.depthne...
hmrc/third-party-developer-frontend
test/views/include/BreadcrumbsSpec.scala
/* * Copyright 2021 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 * * Unless required by applicable law or a...
anotherchrisberry/data-transfer-project
extensions/data-transfer/portability-data-transfer-deezer/src/main/java/org/datatransferproject/transfer/deezer/model/PlaylistsResponse.java
package org.datatransferproject.transfer.deezer.model; /** * Response format for user/me/platlists, see: * https://developers.deezer.com/api/explorer?url=user/me */ public class PlaylistsResponse { private PlaylistSummary[] data; public PlaylistSummary[] getData() { return data; } }
komamj/FileManager
app/src/main/java/com/koma/filemanager/audio/AudioPresenter.java
package com.koma.filemanager.audio; import android.support.annotation.NonNull; import com.koma.filemanager.data.FileRepository; import com.koma.filemanager.data.model.AudioFile; import com.koma.filemanager.util.LogUtils; import java.util.ArrayList; import rx.Subscriber; import rx.Subscription; import rx.android.sch...
michaelwittig/java-q
src/test/java/info/michaelwittig/javaq/query/filter/impl/FilterImplTest.java
package info.michaelwittig.javaq.query.filter.impl; import info.michaelwittig.javaq.query.column.impl.IntegerColumn; import info.michaelwittig.javaq.query.type.impl.TypeInteger; import info.michaelwittig.javaq.query.value.impl.IntegerValue; import org.junit.Assert; import org.junit.Test; /** * FilterImpl ...
tanishraj/Leet-Code-Problems
data-structures/5-queue-using-class.js
<reponame>tanishraj/Leet-Code-Problems /* ================================================================ Enqueue Pseudocode: ----------------------- 1) This function accepts some value. 2) Create a new nonde using that value passed to the function. 3) If there are no nodes in the queue, set this node to be the first...
kellyselden/ember-cli-dependency-graph
test/fixtures/ghost-admin/ghost-admin/services/settings.js
<filename>test/fixtures/ghost-admin/ghost-admin/services/settings.js define('ghost-admin/services/settings', ['exports', 'ghost-admin/mixins/validation-engine'], function (exports, _validationEngine) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var RSVP = Ember...
devjsc/ledger-1
libs/python/include/python/serializers/py_counter.hpp
<reponame>devjsc/ledger-1 #pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI 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 ...
robert-mijakovic/readex-ptf
registry/include/sockets.h
/** @file sockets.h @brief Functions for working with sockets header @author <NAME> @verbatim Revision: $Revision$ Revision date: $Date$ Committed by: $Author$ This file is part of the Periscope performance measurement tool. See http://www.lrr.in.tum.de/pe...
Arpit2601/shogun
src/shogun/preprocessor/StringPreprocessor.cpp
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: <NAME> */ #include <shogun/preprocessor/StringPreprocessor.h> namespace shogun { template <> inline EFeatureType CStringPreprocessor<uint64_t>::get_feature_type() { return F_ULONG; } template <> inline EFeature...
juijs/store.jui.io
public/bower_components/jui/js/chart/theme/dark.js
<gh_stars>1-10 jui.define("chart.theme.dark", [], function() { var themeColors = [ "#12f2e8", "#26f67c", "#e9f819", "#b78bf9", "#f94590", "#8bccf9", "#9228e4", "#06d9b6", "#fc6d65", "#f199ff", "#c8f21d", "#16a6e5", ...
athenagroup/brxm
repository/workflow/src/test/java/org/onehippo/repository/scxml/MockRepositorySCXMLRegistry.java
/* * Copyright 2013 <NAME>. (http://www.onehippo.com) * * 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...
Alvarez-P/express-mongo-template
src/db/models/tags.js
<reponame>Alvarez-P/express-mongo-template const mongoose = require('mongoose') const { v4: uuidv4 } = require('uuid') const models = require('../keys') const mongoosePaginate = require('mongoose-paginate') const tagSchema = new mongoose.Schema({ _id: { type: String, default: uuidv4 }, name: { type: String, requir...
jhonatasrm/chromium-android
app/src/main/java/org/chromium/chrome/browser/download/home/list/ListProperties.java
// Copyright 2018 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. package org.chromium.chrome.browser.download.home.list; import org.chromium.base.Callback; import org.chromium.components.offline_items_collection.Offlin...
blackbotinc/AWS-Attack
ttp/ec2_backdoor_enum_sec_groups.py
<reponame>blackbotinc/AWS-Attack #!/usr/bin/env python3 #'description': ''This module adds rules to backdoor EC2 security groups. It attempts to open ingress port ranges from an IP of your choice.', import datetime import argparse from botocore.exceptions import ClientError import importlib target = '' technique_in...
madgik/DataflowScheduler
src/main/java/utils/RandomParameters.java
/** * Copyright MaDgIK Group 2010 - 2012. */ package main.java.utils; import java.io.Serializable; /** * * @author <NAME> <br> * University of Athens / * Department of Informatics and Telecommunications. * @since 1.0 */ public class RandomParameters implements Serializable { public double z; ...
WillemElbers/unity-idm
oauth/src/main/java/pl/edu/icm/unity/oauth/as/webauthz/OAuthContextUtils.java
/* * Copyright (c) 2015 ICM Uniwersytet Warszawski All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.oauth.as.webauthz; import com.nimbusds.oauth2.sdk.AuthorizationResponse; import com.vaadin.server.VaadinSession; import com.vaadin.server.WrappedSession; /** * Help...
GnosticOccultist/Mercury-Engine
mercury-nucleus/src/fr/mercury/nucleus/texture/TextureType.java
<gh_stars>1-10 package fr.mercury.nucleus.texture; import static org.lwjgl.opengl.GL11.GL_TEXTURE_2D; import static org.lwjgl.opengl.GL12.GL_TEXTURE_3D; import static org.lwjgl.opengl.GL13.GL_TEXTURE_CUBE_MAP; import static org.lwjgl.opengl.GL32.GL_TEXTURE_2D_MULTISAMPLE; /** * <code>TextureType</code> represents th...
gravestench/pho
phomath/vector4.go
<reponame>gravestench/pho package phomath import "math" type Vector4Like interface { Vector2Like Vector3Like XYZW() (x, y, z, w float64) } // static check that Vector4 is Vector4Like var _ Vector4Like = &Vector4{} // NewVector4 creates a new Vector4 func NewVector4(x, y, z, w float64) *Vector4 { return &Vector4...
ramonamela/compss
tests/sources/python/2_task_groups/src/taskGroups.py
<gh_stars>10-100 #!/usr/bin/python # -*- coding: utf-8 -*- """ PyCOMPSs Testbench Tasks ======================== """ # Imports import os import time from pycompss.api.api import compss_barrier_group, TaskGroup from pycompss.api.parameter import FILE_INOUT, FILE_IN from pycompss.api.task import task from pycompss.api...
yanghuabei/ub-ria-ui
src/CustomField.js
/** * ESUI (Enterprise Simple UI) * Copyright 2015 Baidu Inc. All rights reserved. * * @ignore * @file 自定义列控件 - 父子联动树形checkbox * @author lisijin (<EMAIL>) * hongfeng (<EMAIL>) */ define( function (require) { var u = require('underscore'); var eoo = require('eoo'); var InputCo...
BlackYoup/gamecq
ThirdParty/mysql/x86-Linux/include/my_config.h
<filename>ThirdParty/mysql/x86-Linux/include/my_config.h /* Headers we may want to use. */ #define HAVE_ALLOCA_H 1 #define HAVE_ARPA_INET_H 1 #define HAVE_CRYPT_H 1 #define HAVE_DIRENT_H 1 #define HAVE_EXECINFO_H 1 #define HAVE_FCNTL_H 1 #define HAVE_FENV_H 1 #define HAVE_FLOAT_H 1 /* #undef HAVE_FPU_CONTROL_H */ #def...
CodingJack/grid-magic
admin/src/js/overview/grid-list/grid-list-items/grid-list-item.js
<reponame>CodingJack/grid-magic<filename>admin/src/js/overview/grid-list/grid-list-items/grid-list-item.js /** * External dependencies. */ import React from 'react'; /** * Internal dependencies. */ import GridListBtns from './grid-list-item/grid-list-btns'; import FavIcon from '../../../components/icons/fav-icon';...
VikashK21/Coders_Life
DevsNest/Learnings/Redux/react-redux-pra/src/redux/mango/mangoType.js
export const BUY_MANGO = "BUY_MANGO"; export const RETURN_MANGO = "RETURN_MANGO";
zorohu/helloshop
my-shop-web-admin/src/main/java/com/zero/my/shop/web/admin/service/impl/TbContentCategoryServiceImpl.java
package com.zero.my.shop.web.admin.service.impl; import com.zero.my.shop.commons.dto.BaseResult; import com.zero.my.shop.commons.dto.PageInfo; import com.zero.my.shop.commons.validator.BeanValidator; import com.zero.my.shop.domain.TbContentCategory; import com.zero.my.shop.web.admin.abstracts.AbstractBaseTreeServiceIm...
capitalChurch/stillHaveTime
src/components/pages/home/index.js
import React from "react"; import BasicLayout from "../../layouts/basicLayout"; import { ReactComponent as Logo } from "../../../assets/images/logo.svg"; import { ReactComponent as Arrow } from "../../../assets/images/arrow.svg"; import "./home.scss"; import { changeRoute } from "../../../model/constants"; import { Enu...
esayui/mworks
core/Core/Stimuli/StimulusDisplayDevice.cpp
<reponame>esayui/mworks // // StimulusDisplayDevice.cpp // MWorksCore // // Created by <NAME> on 6/19/12. // Copyright (c) 2012 MIT. All rights reserved. // #include "StimulusDisplayDevice.h" #include "ParsedColorTrio.h" #include "StimulusDisplay.h" BEGIN_NAMESPACE_MW const std::string StimulusDisplayDevice::...
sweet2o09/MyDemo
app/src/main/java/com/caihan/mydemo/module/loading/LoadingActivity.java
package com.caihan.mydemo.module.loading; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.RelativeLayout; import com.blankj.utilcode.utils.ToastUtils; import com.caihan.mydemo.R; import com.caihan.mydemo.application.base.BaseActivity; import com.caihan.mydemo.a...
hoverinc/ol3-google-maps
build/gm/PanesOverlay.js
/** * @module olgm/gm/PanesOverlay */ /** * @classdesc * @api */ var PanesOverlay = (function (superclass) { function PanesOverlay(gmap) { superclass.call(this); this.setMap(gmap); } if ( superclass ) PanesOverlay.__proto__ = superclass; PanesOverlay.prototype = Object.create( superclass && super...
kjordan2001/olingo-odata4
lib/server-test/src/test/java/org/apache/olingo/server/core/serializer/ExpandSelectMock.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 ma...
sprunger/aws-sam-local
vendor/github.com/awslabs/goformation/cloudformation/aws-wafregional-ipset_ipsetdescriptor.go
<filename>vendor/github.com/awslabs/goformation/cloudformation/aws-wafregional-ipset_ipsetdescriptor.go<gh_stars>10-100 package cloudformation // AWSWAFRegionalIPSet_IPSetDescriptor AWS CloudFormation Resource (AWS::WAFRegional::IPSet.IPSetDescriptor) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGui...
DDC-NDRS/fledge-iot_fledge
python/fledge/services/core/service_registry/service_registry.py
<reponame>DDC-NDRS/fledge-iot_fledge<filename>python/fledge/services/core/service_registry/service_registry.py # -*- coding: utf-8 -*- # FLEDGE_BEGIN # See: http://fledge-iot.readthedocs.io/ # FLEDGE_END """Services Registry class""" import uuid import asyncio import string import random from fledge.common import lo...
sayari-analytics/falcor-router
test/unit/core/get.spec.js
<reponame>sayari-analytics/falcor-router var R = require('../../../src/Router'); var Routes = require('./../../data'); var Expected = require('./../../data/expected'); var noOp = function() {}; var chai = require('chai'); var expect = chai.expect; var falcor = require('falcor'); var $ref = falcor.Model.ref; var $atom =...
LX314/next-cookbook
pages/react-virtualized/window-scroller.js
<filename>pages/react-virtualized/window-scroller.js import React, { StrictMode } from 'react' import { WindowScroller, List, AutoSizer, CellMeasurer, CellMeasurerCache, } from 'react-virtualized' import { placeholder, placeholderLen } from '../../model/react-virtualized.data' import { NoSsr } from '@material...
robertb-r/fiji
src-plugins/SPIM_Registration/src/main/java/mpicbg/spim/vis3d/BeadTransformGroup.java
package mpicbg.spim.vis3d; import javax.media.j3d.Transform3D; import javax.media.j3d.TransformGroup; import javax.vecmath.Point3f; import javax.vecmath.Vector3f; import mpicbg.spim.registration.bead.Bead; public class BeadTransformGroup extends TransformGroup { final Vector3f beadPositionVector; final Point3f bea...
voidabhi/python-scripts
stdout_stream.py
import io import os.path import subprocess import sys import time def generate(): for i in xrange(0, 20): print 'line ' + str(i) sys.stdout.flush() time.sleep(0.3) def invoke_subprocess(bufsize): return subprocess.Popen('python ' + os.path.abspath(__file__) + ' --generate', shell=True,...
ruccsbingo/algorithm
src/main/java/max3/Main.java
package max3; /** * Created by zhangbing on 2018/12/17. */ import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner cin = new Scanner(System.in); while (true) { String data = cin.nextLine(); if (data.trim().equals("0")) { ...
LINKIWI/react-elemental-docs
src/docs/components/tabs/meta.js
export default { name: 'Tabs', description: 'Tabs allow visual segmentation of categories within the same semantic hierarchy.', source: 'https://github.com/LINKIWI/react-elemental/blob/master/src/components/tabs/index.js', props: [ { key: '`options`', description: 'Array of objects describing th...
mschwartz/creative-engine
src/Controls/Controls.h
#ifndef CONTROLS_H #define CONTROLS_H // ODROID #ifdef __XTENSA__ #include "OdroidControls.h" class Controls : public OdroidControls {}; #endif // Networked RGB Matrix #ifdef __MODUS_TARGET_DIRECT_LINUX_CONTROLS__ #include "DirectLinuxControls.h" class Controls : public DirectLinuxControls {}; #endif // Desktop o...
robertkarl/yabc
src/yabc/costbasisreport.py
import csv import datetime import decimal from collections import defaultdict from decimal import Decimal import sqlalchemy from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import DateTime from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import orm import ya...
heikomuller/histore
tests/test_version.py
# This file is part of the History Store (histore). # # Copyright (C) 2018-2021 New York University. # # The History Store (histore) is released under the Revised BSD License. See # file LICENSE for full license details. """Unit tests for version information.""" import histore.version as version def test_version():...
Grant-Block/pylith
tests/libtests/materials/data/obsolete/GenMaxwellQpQsIsotropic3DElasticData.cc
// -*- C++ -*- // // ====================================================================== // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
kevinwu1024/ExtremeCopy
ExtremeCopy/App/UI/ptSkinProgress.cpp
/**************************************************************************** Copyright (c) 2008-2020 <NAME> (<NAME>) github: https://github.com/kevinwu1024/ExtremeCopy site: http://www.easersoft.com Licensed under the Apache License, Version 2.0 License (the "License"); you may not use this file except in complianc...
cecilian-archives/cecilian-archives
web/src/components/tagging/tagColorMap.js
import tw from "twin.macro"; const tagColorMap = { cecilian: { root: tw`bg-transparent border-deepGreen`, icon: tw`text-deepGreen`, label: tw`text-deepGreen`, button: tw`bg-deepGreen`, path: tw`text-white`, }, event: { root: tw`bg-transparent border-brightOrange`, icon: tw`text-bright...
emm035/openapi-tooling
openapi-core/src/test/java/com/github/emm035/openapi/core/v3/servers/ServerVariableTest.java
<filename>openapi-core/src/test/java/com/github/emm035/openapi/core/v3/servers/ServerVariableTest.java package com.github.emm035.openapi.core.v3.servers; import static org.assertj.core.api.Assertions.assertThat; import com.github.emm035.openapi.core.v3.BasicJsonTest; public class ServerVariableTest extends BasicJson...
deucedrone/LeddarSDK
src/LeddarTech/LtStringUtils.cpp
//////////////////////////////////////////////////////////////////////////////////////////////////// /// \file LeddarTech/LtStringUtils.cpp /// /// \brief Utilities for std::string /// /// Copyright (c) 2018 LeddarTech. All rights reserved. ////////////////////////////////////////////////////////////////////////////...
zx1993312/ry
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/HyResidentialQuartersServiceImpl.java
package com.ruoyi.system.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.ruoyi.system.mapper.HyResidentialQuartersMapper; import com.ruoyi.syst...
rpetrich/swift-to-js
tests/generics/equatable.js
export function equal$lhs$rhs$(T, lhs, rhs) { return T.Equatable.$equals$(T, lhs, rhs); } export function match$lhs$rhs$(T, lhs, rhs) { return T.Equatable.$equals$(T, lhs, rhs); } const $Int$Type = { AdditiveArithmetic: { $plus$(Self, lhs, rhs) { return lhs + rhs; }, $minus$(Self, lhs, rhs) { ...
Geomatys/constellation
modules/xml-bindings/configuration/src/main/java/org/constellation/configuration/Inset.java
<gh_stars>10-100 /* * Constellation - An open source and standard compliant SDI * http://www.constellation-sdi.org * * Copyright 2014 Geomatys. * * 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 ...
mrragava/mystikos-security
src/dynamic/fuzzing/syscallfuzzer/ioctls/vsock.c
<reponame>mrragava/mystikos-security<gh_stars>0 #include <linux/ioctl.h> #define IOCTL_VM_SOCKETS_GET_LOCAL_CID _IO(7, 0xb9) #include "utils.h" #include "ioctls.h" static const struct ioctl vsock_ioctls[] = { IOCTL(IOCTL_VM_SOCKETS_GET_LOCAL_CID), }; static const char *const vsock_devs[] = { "vsock", }; static ...
Flytte/flytte
backend/drone_ros_ws/src/drone_app/test/manual/errorGaussTest.cpp
<filename>backend/drone_ros_ws/src/drone_app/test/manual/errorGaussTest.cpp #include <iostream> #include "include/csv.h" #include "common/Pose.hpp" #include "detector/gazebo/GaussErrorGenerator.hpp" GaussErrorGenerator* generator; double mean; double std_dev; void printHelp() { std::cerr << "errorGaussTest <cs...
magrawal128/ngraph
test/type_prop/select.cpp
<filename>test/type_prop/select.cpp //***************************************************************************** // Copyright 2017-2019 Intel 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 ...
VZhiLinCorp/zhilin-rn
lib/index.js
<filename>lib/index.js export { default as MyDatePicker } from './MyDatePicker' export { default as Blank } from './Blank' export { default as TimeLine } from './TimeLine' export { default as IconFont } from './IconFont' export { default as MyList } from './MyList' export { default as MyVideo } from './MyVideo'
Lilkgb/APEyes
src/components/GiphyApi/GiphyAPI.js
import React, {useState} from 'react' import {connect} from 'react-redux'; import {getGif, moreGifs} from './../../actions'; import GiphyList from './GiphyList'; import InfiniteScroll from 'react-infinite-scroller'; // <InfiniteScroll // pageStart={0} // loadMore={loadFunc} // hasMore={true || false} // ...
chromium/chromium
gpu/command_buffer/tests/gl_virtual_contexts_unittest.cc
<reponame>chromium/chromium<gh_stars>1000+ // 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. #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #include <GLES2/gl2extchromium.h> #include <stdint.h> #includ...
Fimbure/icebox-1
third_party/virtualbox/src/VBox/Devices/Input/DevPS2.cpp
/* $Id: DevPS2.cpp $ */ /** @file * DevPS2 - PS/2 keyboard & mouse controller device. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modi...
csyangchen/gogen-avro
vm/types/string.go
<filename>vm/types/string.go<gh_stars>1-10 package types type String string func (b *String) SetBoolean(v bool) { panic("Unable to assign boolean to string field") } func (b *String) SetInt(v int32) { panic("Unable to assign int to string field") } func (b *String) SetLong(v int64) { panic("Unable to assign long...
Amos09/ruoyi-vue-pro
yudao-module-bpm/yudao-module-bpm-api/src/main/java/cn/amos/ant/module/bpm/api/package-info.java
<gh_stars>0 /** * bpm API 包,定义暴露给其它模块的 API */ package cn.amos.ant.module.bpm.api;
wschaub/BlinkenBone
projects/02.3_simh/4.x+realcons/src/VAX/vax750_mem.c
<filename>projects/02.3_simh/4.x+realcons/src/VAX/vax750_mem.c<gh_stars>0 /* vax750_mem.c: VAX 11/750 memory controllers Copyright (c) 2010-2012, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to dea...
microsoft/neurips21-self-supervised-bug-detection-and-repair
buglab/data/split.py
#!/usr/bin/env python """ Stable split of files based on filename hash Usage: split.py [options] ALL_DATA_FOLDER OUTPUT_FOLDER Options: -h --help Show this screen. --train-ratio FLOAT Ratio of files for training set. [default: 0.6] --valid-ratio FLOAT Ratio of file...
airslie/renalware-core
lib/core_extensions/i18n/handle_blank_value.rb
# frozen_string_literal: true module CoreExtensions module I18n module HandleBlankValue def localize(object, locale: nil, format: nil, **options) object.blank? ? "" : super end alias l localize end end end
georgegillams/browser-scripts
src/Disney Plus Play Pause.js
// ==UserScript== // @name Disney toggle play/pause // @namespace urn://https://www.georgegillams.co.uk/greasemonkey/disney_plus_play_pause // @include *disneyplus.com* // @exclude none // @version 3.0.0 // @description:en Allows you to play/pause disney plus by pressing `space` on your keyboard //...
matheuscr30/ANDROID
MyBooks/app/src/main/java/com/matheus/mybooks/bookUtils/BookServices.java
<gh_stars>1-10 package com.matheus.mybooks.bookUtils; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Query; /** * Created by matheus on 19/10/17. */ public interface BookServices { @GET("volumes") Call<RepoBook> listBook(@Query("q") String isbn); }
LettuceMeat/lettuce-meat
client/store/actions.js
import { LOAD_MESSAGES, CREATE_MESSAGE, LOAD_RESTAURANTS, CREATE_RESTAURANT, LOAD_ROOM, LOAD_ROOMUSERS, UPDATE_USERROOM, ADD_ROOMUSER, UPDATE_USERLOC, INITIALIZE_USER, LOAD_ALL_MESSAGES, LOAD_ROOM_RESTAURANTS } from './constants' const loadMessages = messages => ({type: ...
hsanchez/vesper
src/edu/ucsc/refactor/internal/detectors/UnusedImports.java
package edu.ucsc.refactor.internal.detectors; import edu.ucsc.refactor.Context; import edu.ucsc.refactor.internal.visitors.ImportsReferencesVisitor; import edu.ucsc.refactor.spi.IssueDetector; import edu.ucsc.refactor.spi.Smell; import edu.ucsc.refactor.internal.util.AstUtil; import org.eclipse.jdt.core.dom.ASTNode; i...
ishiura-compiler/CF3
testsuite/EXP_5/test585.c
/* CF3 Copyright (c) 2015 ishiura-lab. Released under the MIT license. https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md */ #include<stdio.h> #include<stdint.h> #include<stdlib.h> #include"test1.h" void f0(void) { uint64_t x157 = 7073503LLU; int8_t x158 = -1; int8_t x159 = 0; uint32_t x160 = 44U; ...
shentino/simud
mud/daemon/climate.c
#include <const/climate.h> /** Defines climates. * * All climates must have a "clear" weather pattern; this is the base weather * for new areas, so you do need it. * * A climate consists of a group of weather 'nodes', connected by transitions. * This should be really easy for anyone with a rudimentary understand...
taolinqu/ds4p
DS4P/access-control-service/common-library/src/main/java/oasis/names/tc/ebxml_regrep/xsd/rim/_3/ActionType.java
<reponame>taolinqu/ds4p package oasis.names.tc.ebxml_regrep.xsd.rim._3; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name="ActionTy...
wh00sh/Tanda-DAPP
node_modules/mdi-material-ui/HomeCityOutline.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createIcon = _interopRequireDefault(require("./util/createIcon")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = (0, _createIcon["defaul...
LegendKe/MyTravelingDiary
MyTravelingDiary/XingKa/app/src/main/java/com/ruihai/xingka/widget/CommentTextView.java
<gh_stars>1-10 package com.ruihai.xingka.widget; import android.content.Context; import android.graphics.Color; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.support.annotation.NonNull; import android.text.Html; import android.text.Layout; import android.text.Selection; im...
fieldenms/
platform-pojo-bl/src/main/java/ua/com/fielden/platform/ui/menu/sample/MiTgEntityWithPropertyDescriptorExt.java
<filename>platform-pojo-bl/src/main/java/ua/com/fielden/platform/ui/menu/sample/MiTgEntityWithPropertyDescriptorExt.java package ua.com.fielden.platform.ui.menu.sample; import ua.com.fielden.platform.entity.annotation.EntityType; import ua.com.fielden.platform.sample.domain.TgEntityWithPropertyDescriptorExt; import ua...
rmake/cor-engine
libraries/cor_cocos2dx_mruby_interface/sources/cocos2dx_bind/cor_cocos2dx_mruby_sub_11.cpp
#include "cor_mruby_interface/sources/basic_bind.h" #include "cor_mruby_interface/sources/mruby_array.h" #include "cor_mruby_interface/sources/mruby_array_tmpl.h" #include "cor_mruby_interface/sources/mruby_experimental.h" #include "cor_mruby_interface/sources/mruby_ref_container.h" #include "cor_mruby_interface/source...
SimiaCryptus/flexmark-java
flexmark-ext-anchorlink/src/main/java/com/vladsch/flexmark/ext/anchorlink/internal/AnchorLinkOptions.java
package com.vladsch.flexmark.ext.anchorlink.internal; import com.vladsch.flexmark.ext.anchorlink.AnchorLinkExtension; import com.vladsch.flexmark.util.data.DataHolder; class AnchorLinkOptions { final public boolean wrapText; final public String textPrefix; final public String textSuffix; final public String a...
nejdetkadir/tr-cities-api
app/views/districts/search.json.jbuilder
# frozen_string_literal: true json.partial! 'districts/list', locals: { districts: @districts, town: @town, city: @city }
nnhai1991/nightingale-bookstore
src/main/java/com/nightingale/controller/ErrorController.java
package com.nightingale.controller; import javax.servlet.http.HttpServletRequest; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import com.nightingale.exception.CustomException; import com.nightingale.exception.NightingaleException; ...
kimpel70/poedit
deps/gettext/gettext-tools/src/format-c.c
/* C format strings. Copyright (C) 2001-2004, 2006-2007, 2009, 2015-2016 Free Software Foundation, Inc. Written by <NAME> <<EMAIL>>, 2001. 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 Founda...
tianqichongzhen/minix3
commands/indent/lexi.c
<filename>commands/indent/lexi.c /** * Copyright (c) 1985 Sun Microsystems, Inc. * Copyright (c) 1980 The Regents of the University of California. * Copyright (c) 1976 Board of Trustees of the University of Illinois. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * pro...
Superexboom/ProdigyTech
src/main/java/lykrast/prodigytech/common/compat/jei/ExplosionFurnaceExplosiveWrapper.java
<gh_stars>1-10 package lykrast.prodigytech.common.compat.jei; import java.awt.Color; import java.util.Collections; import java.util.List; import lykrast.prodigytech.common.recipe.ExplosionFurnaceManager.Explosive; import mezz.jei.api.ingredients.IIngredients; import mezz.jei.api.ingredients.VanillaTypes; import mezz....
aravindputrevu/ess-cloud-sdk-java
src/main/java/io/swagger/client/model/ElasticsearchClusterSecurityInfo.java
/* * Elastic Cloud API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the clas...
yevgnenll/but
but/users/tasks/send_cert_sms.py
<reponame>yevgnenll/but from celery import Task from users.models import PhoneCertificate from but.utils import SMSSend class SendCertificateNumber(Task): def run(self, cert_id): certificate = PhoneCertificate.objects.get( id=cert_id, ) send_cert_message = SMSSend() ...
abingham/ackward
src/ackward/datetime/Initialize.hpp
#ifndef INCLUDE_ACKWARD_DATETIME_INITIALIZE_HPP #define INCLUDE_ACKWARD_DATETIME_INITIALIZE_HPP namespace ackward { namespace datetime { void initialize(); }} #endif
afimb/irys
irys-client/src/main/java/irys/siri/client/message/BasicMessageTrace.java
<filename>irys-client/src/main/java/irys/siri/client/message/BasicMessageTrace.java /** * */ package irys.siri.client.message; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintWriter; import java.text.DateFormat; import java.text.SimpleDateFor...
liyuan9889/wtms
src/main/java/com/ruoyi/project/oa/mapper/ForumMessageCollectionMapper.java
package com.ruoyi.project.oa.mapper; import com.ruoyi.project.oa.domain.ForumMessage; import com.ruoyi.project.oa.domain.ForumMessageCollection; import java.util.List; /** * 用户收藏的论坛帖子Mapper接口 * * @author ruoyi * @date 2020-04-18 */ public interface ForumMessageCollectionMapper { /** * 查询用户收藏的论坛帖子 ...
ppavlidis/aspiredb
aspiredb/src/main/webapp/scripts/ASPIREdb/view/VariantCompoundHeterozygoteWindow.js
<filename>aspiredb/src/main/webapp/scripts/ASPIREdb/view/VariantCompoundHeterozygoteWindow.js /* * The aspiredb project * * Copyright (c) 2013 University of British Columbia * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * ...
eshelmarc/noobaa-core
src/test/lambda/create_backup_file_func.js
/* Copyright (C) 2016 NooBaa */ 'use strict'; /* sample event - trigger structure: { "Records": [{ "s3": { "bucket": { "name": "first.bucket" }, "object": { "key": "<KEY>" } } }] } */ const AWS = require('aws-sdk'); exports.handler = async function(event, context, call...
karthikeyan7585/adva_cms
spec/controllers/shop_controller_spec.rb
<filename>spec/controllers/shop_controller_spec.rb require File.dirname(__FILE__) + "/../spec_helper" describe ShopController do include SpecControllerHelper before :each do scenario :shop_with_active_product scenario :order_with_order_lines set_resource_paths :shop, 'shop' end it ...
talislincoln/fractals
Fractal/FractalPhysics/include/collision/Collider.h
<filename>Fractal/FractalPhysics/include/collision/Collider.h<gh_stars>1-10 #ifndef _COLLIDER_H #define _COLLIDER_H class Collider { public : }; #endif // !_COLLIDER_H
lakehui/Vim_config
.vim/sourceCode/glibc-2.16.0/manual/examples/memopen.c
/* String Streams Copyright (C) 1991-2012 Free Software Foundation, 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 ...
Vincent34/mindspore
mindspore/lite/src/delegate/npu/pass/npu_pass_utils.h
/** * Copyright 2020-2021 Huawei Technologies Co., Ltd * * 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 applicabl...
ihumphrey-usgs/ISIS3_old
isis/templates/gui/defaulttemplate.cpp
<gh_stars>100-1000 ... Isis::UserInterface &ui = Isis::Application::GetUserInterface(); std::cout << ui.GetInteger("INTEGER") << std::endl; if(ui.WasEntered("DOUBLE")) { std::cout << ui.GetDouble("DOUBLE") << std::endl; } else { double computed = 3.14; } std::cout << ui.GetString("STRING") << std::endl; std::c...
LindsayBradford/StopWatchUtility
src/main/java/blacksmyth/stopwatch/view/StopWatchEventDelegator.java
<filename>src/main/java/blacksmyth/stopwatch/view/StopWatchEventDelegator.java /** * Copyright (c) 2016, <NAME> and other Contributors. * All rights reserved. * * This program and the accompanying materials are made available * under the terms of the BSD 3-Clause licence which accompanies * this distribution...
doug-dianomic/fledge
tests/unit/python/fledge/plugins/north/ocs/test_ocs.py
# -*- coding: utf-8 -*- """ Unit tests for the OCS plugin """ # FLEDGE_BEGIN # See: http://fledge.readthedocs.io/ # FLEDGE_END __author__ = "<NAME>" __copyright__ = "Copyright (c) 2018 OSIsoft, LLC" __license__ = "Apache 2.0" __version__ = "${VERSION}" import pytest import json import logging from unittest.mock imp...
5h1rU/drumbstick
store/configureStore.js
import { createStore, applyMiddleware } from 'redux'; import createSagaMiddleware from 'redux-saga'; import { createLogger } from 'redux-logger'; import rootReducer from './rootReducer'; import rootSaga from './rootSaga'; const sagaMiddleware = createSagaMiddleware(); const bindMiddleware = middleware => { if (proc...
Business-Card-Organizer-Build-Week/Back-End
build2 (copy)/src/test/java/local/skylerwebdev/businesscardorganizer/services/UserServiceImplUnitTest.java
<filename>build2 (copy)/src/test/java/local/skylerwebdev/businesscardorganizer/services/UserServiceImplUnitTest.java package local.skylerwebdev.businesscardorganizer.services; import local.skylerwebdev.businesscardorganizer.BusinesscardorganizerApplication; import local.skylerwebdev.businesscardorganizer.exceptions.Re...
npocmaka/Windows-Server-2003
windows/core/ntgdi/gre/pathgdi.cxx
<reponame>npocmaka/Windows-Server-2003 /******************************Module*Header*******************************\ * Module Name: pathgdi.cxx * * Contains the path APIs. * * Created: 12-Sep-1991 * Author: <NAME> [andrewgo] * * Copyright (c) 1991-1999 Microsoft Corporation \************************************...
phambryan/aws-sdk-for-java
aws-java-sdk-panorama/src/main/java/com/amazonaws/services/panorama/model/DescribeNodeResult.java
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
XFWong/go_study
20180702/movice.go
<gh_stars>0 package main import ( "encoding/json" "fmt" ) func main() { type Movice struct { Title string Year int `json:"released"` Color bool `json:"color,omitempty"` Actors []string } var movices = []Movice{ {Title: "Casablanca", Year: 1942, Color: false, Actors: []string{"<NAME>...