repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Actinium-project/ACM-LN-Desktop
app/components/Channels/ChannelCardList.js
import React from 'react' import PropTypes from 'prop-types' import { Box } from 'rebass' import styled from 'styled-components' import { Grid, AutoSizer } from 'react-virtualized' import { space as baseSpace } from 'themes/base' import ChannelCardListItem from './ChannelCardListItem' const StyledList = styled(Grid)` ...
blindsubmissions/icse19replication
generated-tests/qmosa/tests/s1020/107_weka/evosuite-tests/weka/filters/unsupervised/attribute/Discretize_ESTest.java
/* * This file was automatically generated by EvoSuite * Fri Aug 24 13:51:43 GMT 2018 */ package weka.filters.unsupervised.attribute; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.shaded.org.mockito.Mockito.*; import static org.evosuite.runtime.EvoAssertions.*; import java.io....
corpusculejs/corpuscule
packages/storeon/src/utils.js
<filename>packages/storeon/src/utils.js<gh_stars>10-100 import {createContextToken} from '@corpuscule/context'; import createTokenRegisry from '@corpuscule/utils/lib/tokenRegistry'; export const [createStoreonToken, tokenRegistry] = createTokenRegisry( () => new WeakMap(), createContextToken, );
JarredStanford/JarredStanford.github.io
node_modules/grommet-controls/themes/black.js
import { deepFreeze, deepMerge } from 'grommet/utils'; import base from './base'; import colorsFromArray from './colorsFromArray'; var brandColor = '#000000'; var accentColors = ['#FF4081', '#4eadeb', '#56cf98', '#765bba']; var neutralColors = ['#a4c400', '#006766', '#f3741c', '#8F6C53', '#e82121']; var backgroundColor...
moyumoyu/dcmtk-openjpeg
dcmjpeg/libsrc/pi.cxx
/* * Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium * Copyright (c) 2002-2007, Professor <NAME> * Copyright (c) 2001-2003, <NAME> * Copyright (c) 2002-2003, <NAME> * Copyright (c) 2003-2007, <NAME> and <NAME> * Copyright (c) 2005, <NAME>, Fre...
linqin07/SpringBoot-Study
spring-boot-security/src/main/java/com/sans/core/entity/SysMenuEntity.java
<filename>spring-boot-security/src/main/java/com/sans/core/entity/SysMenuEntity.java package com.sans.core.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import java.io.Serializable; /** * @Description 权限实体 * @Author Sans * @Cre...
sprucehq/clr-icons-react
dist/ClrUninstall.js
<reponame>sprucehq/clr-icons-react import * as React from "react"; var ClrUninstall = function() { return React.createElement( "svg", { version: "1.1", viewBox: "0 0 36 36", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", focusable: "false", role:...
SoCaTel/PortalSide
src/main/java/com/socatel/utils/NextGroupStepRunnable.java
<reponame>SoCaTel/PortalSide package com.socatel.utils; import com.socatel.components.Methods; public class NextGroupStepRunnable implements Runnable { private Integer id; private Methods methods; public NextGroupStepRunnable (Methods methods, Integer id) { this.methods = methods; this....
storset/vtk
src/main/java/vtk/security/web/SecurityInitializer.java
/* Copyright (c) 2004, University of Oslo, Norway * 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, thi...
akatz2/openessence-demo
core/src/main/webapp/js/oe/reporting/defaultDataSourceReportGroupBySelectionForm.js
<filename>core/src/main/webapp/js/oe/reporting/defaultDataSourceReportGroupBySelectionForm.js /* * Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory * All rights reserved. * * This material may be used, modified, or reproduced by or for the U.S. * Government pur...
SAP/go-dblib
asetypes/convert.go
<reponame>SAP/go-dblib // SPDX-FileCopyrightText: 2020 SAP SE // SPDX-FileCopyrightText: 2021 SAP SE // // SPDX-License-Identifier: Apache-2.0 package asetypes import ( "database/sql/driver" "fmt" "reflect" ) // ConvertValue converts a value-interface of an ASE data type into // a database/sql/driver.Value with t...
AnneSophieS/manager
packages/manager/apps/dedicated/client/app/components/validator/validator.service.js
<reponame>AnneSophieS/manager<gh_stars>100-1000 angular.module('services').service('Validator', [ function ValidatorService() { const self = this; this.isValidIpv4 = function isValidIpv4(ip) { let isValid; try { // Coz sometimes ipaddr is buggy isValid = ip && ip.split('.').length...
jack-debug/Ares-1.0-Source-Leak
org/spongepowered/asm/mixin/injection/throwables/InjectionError.java
<filename>org/spongepowered/asm/mixin/injection/throwables/InjectionError.java package org.spongepowered.asm.mixin.injection.throwables; public class InjectionError extends Error { private static final long serialVersionUID = 1L; public InjectionError() { } public InjectionError(final String ...
abdalla/docker-image-for-python-boto3-mysql
deps/unixODBC-2.3.4/Drivers/MiniSQL/_Prepare.c
<reponame>abdalla/docker-image-for-python-boto3-mysql /********************************************************************** * SQLPrepare * ********************************************************************** * * This code was created by <NAME> (mostly during Christmas 98/99). * This code is LGPL. Please ensur...
cuttlefish/geogig
src/core/src/main/java/org/locationtech/geogig/plumbing/DiffWorkTree.java
<filename>src/core/src/main/java/org/locationtech/geogig/plumbing/DiffWorkTree.java<gh_stars>0 /* Copyright (c) 2012-2016 Boundless and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies this dis...
teddywest32/intellij-community
platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/ui/ExternalProjectPathLookupElement.java
/* * Copyright 2000-2013 JetBrains s.r.o. * * 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 agre...
sentervip/T1sdk5.4.0
5.0.4/projects/target_apps/ble_examples/ble_app_profile/src/platform/user_periph_setup.c
<gh_stars>0 /** **************************************************************************************** * * @file user_periph_setup.c * * @brief Peripherals setup and initialization. * * Copyright (C) 2015. Dialog Semiconductor Ltd, unpublished work. This computer * program includes Confidential, Proprietary I...
cuongpm/android-browser-downloader
app/src/main/java/com/browser/downloader/ui/adapter/ProgressAdapter.java
<gh_stars>10-100 package com.browser.downloader.ui.adapter; import android.databinding.DataBindingUtil; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.ViewGroup; import com.browser.core.R; import com.browser.downloader.data.model.ProgressInfo; import com.browser...
ylankgz/amazon-ssm-agent
agent/framework/processor/executer/iohandler/iomodule/mock/iomodule.go
// Copyright 2016 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 "license" fil...
iamycx/Spring-learning
spring-aop/src/com/iamycx/aspectj/example/WaiterManager.java
package com.iamycx.aspectj.example; public class WaiterManager { public void addWaiter(Waiter waiter){ System.out.println("add Waiter..."); } public void addNaiveWaiter(NaiveWaiter nw){ System.out.println("add NaiveWaiter..."); } }
ganapathygit/camel
platforms/camel-catalog-rest/src/main/java/org/apache/camel/catalog/rest/CamelConnectorCatalogRest.java
<reponame>ganapathygit/camel /** * 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....
ecmarsh/algorithms
exercises/minSwapsForEqualRow.js
<gh_stars>1-10 /** * @=lc id=1007 lang=javascript * * [1007] Minimum Swaps for Equal Row * * Given two arrays, A and B, return the minimum number of swaps * to make all values in either A the same or all elements in B the same. * If no amount of swaps can make all elements in either arr equal, return -1. * * @...
nagrohan726/eclipse-workspace
CoreJava/ExceptionHandling/src/StringParser.java
public class StringParser { public static void main(String[] args) { try { String s = "abcd"; int i = Integer.parseInt(s); System.out.println(i); } catch (NumberFormatException e) { System.out.println("Please enter a valid number"); } } }
djangojeng-e/TIL
python_class/191120_creating_class.py
<reponame>djangojeng-e/TIL<gh_stars>0 # Class named as Human will be created class Human(): # 1. Class has been created. '''Human''' # 2. ''' ''' is description on the class. refer to Docstring person1 = Human() # 3. Human Class has been called. One instance created to person1 person2 = Huma...
1813404040072/template-react-antdesign
src/routes/UI/Editor/messages/index.js
<filename>src/routes/UI/Editor/messages/index.js export const scope = 'routes.Editor'; export default ({ richText: { id: `${scope}.richText`, defaultMessage: 'Rich text', }, richTextUse: { id: `${scope}.richTextUse`, defaultMessage: 'Rich text use', }, specific: { id: `${scope}.specific`,...
sagarbabalsure/pythonCodes
OOP/example4.py
<reponame>sagarbabalsure/pythonCodes # class animal inherit all class object's attributes class animal(object): def __init__(self, name): self.name = name def eat(self, food): print("{} is eating {}".format(self.name, food)) # class dog inherit all class animal's attributes # plus its attribut...
isspek/veracity-detection
RumourEval2019Models/Bert-MFajcik/task_A/datasets/RumourEvalDataset_BERT.py
<gh_stars>0 __author__ = "<NAME>" import json import torch import torchtext as tt from typing import List, Tuple from pytorch_pretrained_bert import BertTokenizer from torchtext.data import Example from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer """ This file contains implementation of Bert-MFaj...
babyhuey/qtiworks
qtiworks-jqtiplus/src/main/java/uk/ac/ed/ph/jqtiplus/value/TextFormat.java
/* Copyright (c) 2012-2013, University of Edinburgh. * 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, this * li...
tum-gis/opendrive-ade-citygml4j
src/main/java/org/citygml/ade/opendrive/adapter/geometry/OpenDRIVECurveAdapter.java
package org.citygml.ade.opendrive.adapter.geometry; import org.citygml.ade.opendrive.adapter.core.OpenDRIVEAdditionalDataPropertyAdapter; import org.citygml.ade.opendrive.model.geometry.OpenDRIVECurve; import org.citygml.ade.opendrive.module.OpenDRIVEADEModule; import org.xmlobjects.annotation.XMLElement; import org.x...
pktm14/utilities
src/main/java/edu/scripps/yates/utilities/proteomicsmodel/factories/TissueEx.java
<filename>src/main/java/edu/scripps/yates/utilities/proteomicsmodel/factories/TissueEx.java package edu.scripps.yates.utilities.proteomicsmodel.factories; import java.io.Serializable; import edu.scripps.yates.utilities.proteomicsmodel.Tissue; public class TissueEx implements Tissue, Serializable { /** * */ pr...
bsf2dev/bsf
Source/Foundation/bsfEngine/Utility/BsShapeMeshes3D.h
//************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsPrerequisites.h" #include "Image/BsColor.h" #includ...
msharmavikram/gem5_experiments
build/ARM/debug/MiscRegs.hh
/* * DO NOT EDIT THIS FILE! Automatically generated by SCons. */ #ifndef __DEBUG_MiscRegs_HH__ #define __DEBUG_MiscRegs_HH__ namespace Debug { class SimpleFlag; extern SimpleFlag MiscRegs; } #endif // __DEBUG_MiscRegs_HH__
DaoCalendar/similarity
src/test/java/org/xm/tokenizer/TokenizerTest.java
package org.xm.tokenizer; import org.junit.Test; import java.util.List; /** * @author xuming */ public class TokenizerTest { @Test public void getSegmentResult() throws Exception { String sentence = "什么是球体和服装?一个伟大的国家,中国,电脑病毒会传染给人吗?"; List<Word> lists = Tokenizer.segment(sentence); S...
dtdannen/LUiGi-2
core/StarcraftBot/BWSAL_0.9.12/BasicAIModule/Source/AttackClosestScript.cpp
#include "AttackClosestScript.h" #include <Windows.h> using namespace BWAPI; using namespace boost; AttackClosestScript::AttackClosestScript() { // do nothing targetPriorityWorkerUnit = false; } AttackClosestScript::AttackClosestScript(std::set<BWAPI::Unit*> unitsForCombat, BWAPI::Position pos) { this->unitsForCom...
ranarashadmahmood/OMNETPY
pysamples/pytictoc/txc10.py
""" Let's make it more interesting by using several (n) `tic' modules, and connecting every module to every other. For now, let's keep it simple what they do: module 0 generates a message, and the others keep tossing it around in random directions until it arrives at module 2. """ from pyopp import cSimpleModule, cMes...
FateRevoked/mage
Mage.Sets/src/mage/cards/h/HuntedTroll.java
package mage.cards.h; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.mana.ColoredManaCost; import mage.abilities.effects.common.CreateTokenTarget...
YolandaMDavis/nifi
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-cluster/src/main/java/org/apache/nifi/cluster/coordination/http/endpoints/ProvenanceEventEndpointMerger.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 may ...
ojmakhura/spring-richclient
spring-richclient-samples/spring-richclient-samples-showcase/src/main/java/org/springframework/richclient/samples/showcase/exceptionhandling/JXErrorDialogExceptionHandlerCommand.java
package org.springframework.richclient.samples.showcase.exceptionhandling; import org.springframework.richclient.command.ActionCommand; import org.springframework.richclient.exceptionhandling.JXErrorDialogExceptionHandler; /** * Command throwing the specific {@link JXErrorDialogException} that should be * caught by...
IsraelyFlightSimulator/Negev-Storm
SOURCES/sim/rwr/alr56.cpp
#include "stdhdr.h" #include "object.h" #include "simmover.h" #include "ClassTbl.h" #include "simdrive.h" #include "fsound.h" #include "mfd.h" #include "msginc\TrackMsg.h" #include "Graphics\Include\Display.h" #include "airunit.h" #include "aircrft.h" #include "alr56.h" #include "radarData.h" ALR56Class::ALR56Class (i...
intel/qpl
tools/tests/fuzzing/high-level-api/deflate_fuzz_test.hpp
/******************************************************************************* * Copyright (C) 2022 Intel Corporation * * SPDX-License-Identifier: MIT ******************************************************************************/ #include <iostream> #include <string> #include <vector> #include "qpl/cpp_api/ope...
heisedebaise/photon
photon-ctrl-http/src/main/java/org/lpw/photon/ctrl/http/ServiceHelperImpl.java
<reponame>heisedebaise/photon package org.lpw.photon.ctrl.http; import org.lpw.photon.bean.BeanFactory; import org.lpw.photon.ctrl.Dispatcher; import org.lpw.photon.ctrl.Handler; import org.lpw.photon.ctrl.context.HeaderAware; import org.lpw.photon.ctrl.context.RequestAware; import org.lpw.photon.ctrl.context.Response...
phalodi/spark-semantic
src/main/java/com.ibm.research.quetzal.core/src/com/ibm/research/rdf/store/sparql11/model/UnaryExpression.java
/****************************************************************************** * Copyright (c) 2015 IBM Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at ...
alpmestan/haskell-igraph
igraph/src/igraph_strvector.c
/* -*- mode: C -*- */ /* IGraph library. Copyright (C) 2003-2012 <NAME> <<EMAIL>> 334 Harvard street, Cambridge, MA 02139 USA 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; eithe...
scala-steward/fdb-pubsub
pubsub/src/it/scala/com/github/pwliwanow/fdb/pubsub/internal/common/TopicMetadataSubspaceSpec.scala
<reponame>scala-steward/fdb-pubsub package com.github.pwliwanow.fdb.pubsub.internal.common import com.apple.foundationdb.tuple.Versionstamp import com.github.pwliwanow.fdb.pubsub.FdbPubSubSpec import com.github.pwliwanow.fdb.pubsub.internal.metadata.TopicMetadata class TopicMetadataSubspaceSpec extends FdbPubSubSpec {...
Techjar/LEDCubeManager
src/main/java/com/techjar/ledcm/hardware/handler/SerialPortHandler.java
package com.techjar.ledcm.hardware.handler; import com.techjar.ledcm.LEDCubeManager; import java.io.IOException; import com.techjar.ledcm.Main; import jssc.SerialPort; import jssc.SerialPortException; import jssc.SerialPortTimeoutException; /** * * @author Techjar */ public class SerialPortHandler implements Por...
Ilyaki/ProtoInput
lib/EasyHook/EasyHookDll/RemoteHook/thread.c
// EasyHook (File: EasyHookDll\thread.c) // // Copyright (c) 2009 <NAME> & Copyright (c) 2015 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including witho...
Minjung-Kwon/bangtal-game1_20180651-Minjung-Kwon
bangtal-0.3.1/_api/navtreeindex0.js
<reponame>Minjung-Kwon/bangtal-game1_20180651-Minjung-Kwon var NAVTREEINDEX0 = { "_object_8h.html":[2,0,2], "_object_8h.html#a58bcfbb10dc18b44fb41c19c4d850a59":[2,0,2,1], "_object_8h_source.html":[2,0,2], "_scene_8h.html":[2,0,3], "_scene_8h.html#abb35c3c750f71093eb016b9d812066e3":[2,0,3,1], "_scene_8h_source.html":[2,...
aboss123/ParagonEngine
GameKit/SCRIPT/Lexer.java
<filename>GameKit/SCRIPT/Lexer.java /* * Copyright (c) 2019, <NAME>. All rights reserved. * * 1. Redistribution in source and in binary forms is NOT permitted * in any way shape or form unless given permission by the license holder. * * 2. Any person(s) who have access to this code by the license holder need this...
ascii33/platform2
diagnostics/cros_healthd/system/context.h
// Copyright 2020 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef DIAGNOSTICS_CROS_HEALTHD_SYSTEM_CONTEXT_H_ #define DIAGNOSTICS_CROS_HEALTHD_SYSTEM_CONTEXT_H_ #include <memory> #include <base/files/file_pat...
janbodnar/Python-Course
stdlib/zipfile/read_zip.py
<reponame>janbodnar/Python-Course<filename>stdlib/zipfile/read_zip.py #!/usr/bin/python import zipfile with zipfile.ZipFile('subor.zip', 'r') as zf: print(zf.namelist())
shuqiyige/excellent-course
src/main/java/io/shuqi/graduation/domain/bo/SiteInfoCount.java
package io.shuqi.graduation.domain.bo; /** * 站点信息统计 * @author shuqi * @date 2015年4月28日 * @version since 1.0 */ public class SiteInfoCount { private Long count; private String name; private String ico_class = "icon-database"; public static String ico_news = "icon-file-text"; public static Str...
mcodegeeks/OpenKODE-Framework
01_Develop/libXMCocos2D/Source/kazmath/aabb.cpp
/* ----------------------------------------------------------------------------------- * * File aabb.cpp * Ported By <NAME> * Contact <EMAIL> * * ----------------------------------------------------------------------------------- * * Copyright (c) 2010-2013 XM...
rodolfoplondero/py_dss_interface
src/py_dss_interface/models/CktElement/CktElementF.py
<filename>src/py_dss_interface/models/CktElement/CktElementF.py # -*- encoding: utf-8 -*- """ Created by eniocc at 11/10/2020 """ import ctypes from py_dss_interface.models.Base import Base class CktElementF(Base): def cktelement_read_norm_amps(self) -> float: """Deliver the normal ampere rating for th...
mohabg/VoogaSalad
src/events/Executable.java
package events; import behaviors.IActions; import level.ILevelProperties; import level.LevelProperties; /** * * @author gauravkumar * */ public interface Executable { public void execute(IActions action, ILevelProperties levProps); public void stop(IActions actions, ILevelProperties levProps); }
AndrewPetrie1/register-trainee-teachers
spec/components/page_title/view_spec.rb
# frozen_string_literal: true require "rails_helper" RSpec.describe PageTitle::View do before do allow(I18n).to receive(:t).with("service_name").and_return("Cool Service") end it "constructs a page title with empty params" do component = PageTitle::View.new page_title = component.build_page_title ...
soracom-labs/openapi-client-go
openapi/api/model_generate_user_auth_key_response.go
<reponame>soracom-labs/openapi-client-go /* SORACOM API SORACOM API v1 API version: VERSION_PLACEHOLDER */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package api import ( "encoding/json" ) // GenerateUserAuthKeyResponse struct for GenerateUserAuthKeyResponse type Genera...
dme26/intravisor
runtime/musl-lkl/lkl/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
<reponame>dme26/intravisor /************************************************************************** * * Copyright © 2009-2015 VMware, Inc., Palo Alto, CA., USA * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation...
Portfoligno/Eyrie
nio/src/main/scala/eyrie/nio/instances/FilePathSuffix.scala
package eyrie.nio.instances import eyrie.nio.FilePath import eyrie.ops.Suffix private[instances] trait SuffixInstances[A[_], B[_]] { implicit def eyrieNioSuffixInstance[C]: Suffix[A[C], B[C]] = FilePathSuffix.asInstanceOf[Suffix[A[C], B[C]]] } private object FilePathSuffix extends Suffix[FilePath[Any], FilePat...
nagineni/chromium-crosswalk
chrome/app/policy/cloud_policy_codegen.gyp
<gh_stars>1-10 # Copyright (c) 2012 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. { 'variables': { 'chromium_code': 1, 'policy_out_dir': '<(SHARED_INTERMEDIATE_DIR)/policy', 'protoc_out_dir': '<(SHARED_INTE...
FarazPatankar/posthog
ee/clickhouse/middleware.py
<reponame>FarazPatankar/posthog from django.conf import settings from django.http import HttpRequest, HttpResponse from django.urls.base import resolve from loginas.utils import is_impersonated_session from posthog.ee import is_clickhouse_enabled class CHQueries(object): def __init__(self, get_response): ...
myckwilliam/JS-Exercises
exercises/fruitCase.js
// 14)​Crie uma estrutura condicional switch que receba uma string com o nome de uma fruta e que possua três casos: Caso maçã, retorne no console: “Não vendemos esta fruta aqui”. Caso kiwi, retorne: “Estamos com escassez de kiwis”. Caso melancia, retorne: “Aqui está, são 3 reais o quilo”. Teste com estas três opções .C...
balabit-deps/balabit-os-6-fop
src/java/org/apache/fop/pdf/PDFFontType3.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 may ...
asm128/gpk_samples
test_gpk_db/main.cpp
#include "gpk_datatype.h" #include "gpk_array.h" #include "gpk_label.h" struct STable { ::gpk::label Name ; ::gpk::array_obj<::gpk::label> RowNames ; ::gpk::array_pod<::gpk::DATA_TYPE> RowTypes ; }; #pragma pack(push, 1) enum GPK_SQL_OP { GPK_SQL_OP_NOP = 0 , GPK_SQL_OP_SELECT , GPK_SQL_OP_DELETE ...
sameer79/streamline
streams/sdk/src/main/java/com/hortonworks/streamline/streams/notification/NotifierConfig.java
<reponame>sameer79/streamline /** * Copyright 2017 Hortonworks. * * 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 require...
elshize/irkit
tests/test_heap.cpp
<filename>tests/test_heap.cpp #include <algorithm> #include <experimental/filesystem> #include <iostream> #include <vector> #include <unordered_map> #include "gmock/gmock.h" #include "gtest/gtest.h" #define private public #include "heap.hpp" namespace { using namespace irk; class HeapTest : public ::testing::Test { ...
mikeeq/devilution-nx
Source/monstdat.h
<filename>Source/monstdat.h //HEADER_GOES_HERE #ifndef __MONSTDAT_H__ #define __MONSTDAT_H__ extern MonsterData monsterdata[112]; extern char MonstConvTbl[128]; extern unsigned char MonstAvailTbl[112]; extern UniqMonstStruct UniqMonst[98]; #endif /* __MONSTDAT_H__ */
Marquez607/Wireless-Perf-Sim
ns-3-dev/build/ns3/network-module.h
<reponame>Marquez607/Wireless-Perf-Sim #ifdef NS3_MODULE_COMPILATION # error "Do not include ns3 module aggregator headers from other modules; these are meant only for end user scripts." #endif #ifndef NS3_MODULE_NETWORK // Module headers: #include "address-utils.h" #include "address.h" #include "application-co...
PacificBiosciences/pbbam
tools/pbindexdump/src/PbIndexDumpWorkflow.cpp
#include "PbIndexDumpWorkflow.h" #include <cassert> #include <cstdlib> #include "CppFormatter.h" #include "JsonFormatter.h" #include "PbIndexDumpSettings.h" namespace PacBio { namespace PbIndexDump { int Workflow::Runner(const CLI_v2::Results& args) { const Settings settings{args}; if (settings.Format == "j...
Sachindadhalli/Frontend_code
src/containers/EmployerInbox/component/SharedAppiledUserProfile/SharedAppiledUserProfile.js
//library dependency import React, {Component} from 'react'; import Button from '@material-ui/core/Button'; import {withStyles} from '@material-ui/core/styles'; //custom components import PersonalDetails from '../AppliedUserProfile/Components/PersonalDetails'; import DesiredCareerProfile from '../AppliedUserProfile/Co...
DEDZTBH/ejml
main/ejml-core/src/org/ejml/data/DMatrixD1.java
/* * Copyright (c) 2020, <NAME>. All Rights Reserved. * * This file is part of Efficient Java Matrix Library (EJML). * * 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....
Draciel/Slackify
src/main/java/pl/draciel/slackify/resources/MessageImpl.java
package pl.draciel.slackify.resources; import lombok.AllArgsConstructor; import javax.annotation.Nonnull; @AllArgsConstructor public final class MessageImpl implements Message { @Nonnull public final String message; @Nonnull @Override public String message() { return message; } }
GabrielSantos25/Python
Exercicios em python/ex13.py
<filename>Exercicios em python/ex13.py salario = int(input("Informe seu sálario: ")) aumento = (salario * 15) /100 total = salario + aumento print("O seu sálario aumentou 15% e será R${}".format(total))
beichenhpy/notes
Netty/netty-demo/src/main/java/me/young1lin/netty/demo/wrap/serializer/ProtobufInitializer.java
package me.young1lin.netty.demo.wrap.serializer; import com.google.protobuf.MessageLite; import io.netty.channel.*; import io.netty.handler.codec.protobuf.ProtobufDecoder; import io.netty.handler.codec.protobuf.ProtobufEncoder; import io.netty.handler.codec.protobuf.ProtobufVarint32FrameDecoder; /** * Google Protoco...
fbarthez/aribaweb
src/metaui/ariba/ui/meta/editor/MetaSideInspector.java
<filename>src/metaui/ariba/ui/meta/editor/MetaSideInspector.java /* Copyright 1996-2008 Ariba, 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/lice...
Jia-shuaitao/esa-restlight
restlight-test/restlight-test-mock/src/main/java/esa/restlight/test/mock/MockHttpOutputStream.java
/* * Copyright 2020 OPPO ESA Stack Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
sean5470/panda3d
panda/src/ode/odeUtil_ext.cxx
<reponame>sean5470/panda3d /** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @f...
KnowSciEng/TransmogrifAI
helloworld/src/main/scala/com/salesforce/hw/boston/BostonFeatures.scala
<reponame>KnowSciEng/TransmogrifAI /* * Copyright (c) 2017, Salesforce.com, 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 c...
srikanthprathi/Segs
Common/Runtime/RuntimeData.h
#pragma once #include "Common/Runtime/HandleBasedStorage.h" #include <QHash> struct SceneModifiers; struct FSWrapper; namespace SEGS { struct RuntimeData; } extern SEGS::RuntimeData& getRuntimeData(); namespace SEGS { using HTexture = SingularStoreHandleT<20,12,struct TextureWrapper>; struct PrefabStore; struct ...
im6705/csgo_full
csgo-crow/AntiCheatServer/NoCheatZ/server-plugin/Code/vtabledumphelper.cpp
#include "Interfaces/InterfacesProxy.h" #include "Misc/Helpers.h" #ifdef WIN32 # define DbgBreak() __debugbreak() #else # include <signal.h> # define DbgBreak() raise(SIGTRAP) #endif /* (gdb) set print demangle on (gdb) set $i = 0 (gdb) while $i < 100 >print $i >p /a (*pcur)[$i] >set $i = $i + 1 ...
anatolyyyyyy/kubernetes-ingress-controller
internal/ingress/controller/store/cert.go
package store import ( "bytes" "fmt" "strings" "github.com/kong/kubernetes-ingress-controller/internal/ingress" "github.com/kong/kubernetes-ingress-controller/internal/ssl" apiv1 "k8s.io/api/core/v1" ) func (s k8sStore) GetCertFromSecret(secretName string) (*ingress.SSLCert, error) { secret, err := s.listers....
lczx/fdi2-exams
exams/eqsolve/src/main/java/eqsolve/equation/QuadraticEquation.java
package eqsolve.equation; public class QuadraticEquation extends EquationBase { /*@Override public String getFriendlyName() { return "Quadratic Equation"; }*/ @Override public String getCurrentFormula() { return String.format("%.1f x² + %.1f x + %.1f = 0", getParam(0), getParam(1)...
sunxuia/MyBatisAutoMapper
BaseProcessor/src/main/java/net/sunxu/mybatis/automapper/processor/util/AutoMapperException.java
package net.sunxu.mybatis.automapper.processor.util; public class AutoMapperException extends RuntimeException { private AutoMapperException(String message) { super(message); } private AutoMapperException(Throwable cause) { super(cause); } public static AutoMapperException newExc...
blimyj/RPKit
bukkit/rpk-stores-bukkit/src/main/java/com/rpkit/store/bukkit/database/jooq/tables/records/RpkitConsumablePurchaseRecord.java
<filename>bukkit/rpk-stores-bukkit/src/main/java/com/rpkit/store/bukkit/database/jooq/tables/records/RpkitConsumablePurchaseRecord.java /* * This file is generated by jOOQ. */ package com.rpkit.store.bukkit.database.jooq.tables.records; import com.rpkit.store.bukkit.database.jooq.tables.RpkitConsumablePurchase; im...
kashifiqb/Aspose.PDF-for-C
Examples/include/asposecpplib/system/details/call_once.h
<reponame>kashifiqb/Aspose.PDF-for-C<filename>Examples/include/asposecpplib/system/details/call_once.h /// @file system/details/call_once.h #pragma once #include <atomic> #include <mutex> namespace System { namespace Details { /// Specifies how a CallOnce instance synchronizes access among multiple threads. enum cla...
SalihTuncer/DungeonCrawler
src/main/java/Text/SettingsText.java
package Text; import Character.Player; import Handler.SettingsHandler; public class SettingsText extends Text { public SettingsText() { this.handler = new SettingsHandler(); } @Override public void printText(Player player) { clear(); playerInterface(player); System.ou...
qq476743842/weex-saoa
platforms/android/farwolf.weex/src/main/java/com/farwolf/weex/core/Page.java
package com.farwolf.weex.core; import android.view.View; import com.farwolf.weex.util.Weex; import com.taobao.weex.WXSDKInstance; import java.util.HashMap; /** * Created by zhengjiangrong on 2017/5/9. */ public class Page { public String id; public View v; public WXSDKInstance instance; public ...
i10416/dotty
compiler/src/dotty/tools/dotc/config/ScalaRelease.scala
<filename>compiler/src/dotty/tools/dotc/config/ScalaRelease.scala package dotty.tools.dotc.config enum ScalaRelease(val majorVersion: Int, val minorVersion: Int) extends Ordered[ScalaRelease]: case Release3_0 extends ScalaRelease(3, 0) case Release3_1 extends ScalaRelease(3, 1) case Release3_2 extends ScalaRelea...
Alecto3-D/testable-greeter
bb-master/sandbox/lib/python3.5/site-packages/buildbot/www/avatar.py
<reponame>Alecto3-D/testable-greeter<filename>bb-master/sandbox/lib/python3.5/site-packages/buildbot/www/avatar.py # This file is part of Buildbot. Buildbot 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, ver...
bstansberry/undertow
core/src/main/java/io/undertow/server/handlers/AllowedMethodsHandler.java
<filename>core/src/main/java/io/undertow/server/handlers/AllowedMethodsHandler.java package io.undertow.server.handlers; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import io.undertow.server.HttpHandler; import io.undertow.server.HttpServerExchange; import io.undertow.util.HttpString; imp...
BethWIntera/Beths_PySandbox
Learning Unittests/matplotlib-tutorial-master/scripts/plot3d_ex.py
# ----------------------------------------------------------------------------- # Copyright (c) 2015, <NAME>. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # ----------------------------------------------------------------------------- import numpy as np import matplotli...
wangsongiam/leetcode
solutions/572.subtree-of-another-tree/subtree-of-another-tree.js
<reponame>wangsongiam/leetcode /** * Definition for a binary tree node. * function TreeNode(val) { * this.val = val; * this.left = this.right = null; * } */ /** * @param {TreeNode} s * @param {TreeNode} t * @return {boolean} */ const isSubtree = (s, t) => { if (!s) return false if (isSame(s, t)) ...
SethTisue/http4s
server/src/main/scala/org/http4s/server/staticcontent/ResourceService.scala
<filename>server/src/main/scala/org/http4s/server/staticcontent/ResourceService.scala package org.http4s package server package staticcontent import java.util.concurrent.ExecutorService import org.http4s.server._ import org.http4s.{Response, Request, StaticFile} import scalaz.concurrent.{Strategy, Task} object Res...
cdsnyder/esp-idf
components/bootloader_support/src/bootloader_init.c
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE 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 a...
angelopassaro/Hacktoberfest-1
misc/java/game.java
<filename>misc/java/game.java package com.quizapplication; public class Game { Question[] questions=new Question[3]; Player player=new Player(); String[] questionsdata={"JAVA was created by _____?","What technology is used to record cryptocurrency transactions?","What tool would you use to reduce the dig...
hmhao/avalonx
examples/shopping-cart/app.js
<gh_stars>1-10 import avalon from '../avalon.extend.js' import App from './components/App.js' import store from './store' import { currency } from './currency' avalon.filters['currency'] = currency avalon.bootstrap({ el: '#app', component: App })
gfogle/boring-framework
test/helpers/NounHelper.test.js
<gh_stars>1-10 const NounHelper = require("../../src/core/helpers/NounHelper"); test("pluralizes BlogPost to BlogPosts", () => { expect(NounHelper.getPluralForm("BlogPost")).toBe("BlogPosts"); }); test("singularizes BlogPosts to BlogPost", () => { expect(NounHelper.getSingularForm("BlogPosts")).toBe("BlogPost"); ...
magicbrush/InteractiveMediaP5
Fractals/Demo6_TRS/sketch.js
var Shapes;// 一组图元 // 函数setup() :准备阶段 function setup() { createCanvas(300,300); Shapes = new Array();// 一个序列容器 Shapes[0] = new sprite( primitive1,width/2,height/2,PI/3,2,2); for(var i=0;i<5;i++) { Shapes = evolveShapes(Shapes); } } function evolveShapes(S) { var S2 = new Array(); for(var i=0;i<S.len...
ministryofjustice/laa-court-data-adaptor
app/serializers/api/internal/v1/court_application_type_serializer.rb
<filename>app/serializers/api/internal/v1/court_application_type_serializer.rb module Api module Internal module V1 class CourtApplicationTypeSerializer include JSONAPI::Serializer attributes :id, :description, :code, :category_code, :legislation, :applicant_appellant_flag end end...
cndavy/docker-office
custom_apps/richdocuments/l10n/cs.js
OC.L10N.register( "richdocuments", { "Collabora Online" : "Collabora Online", "Can't create document" : "Dokument se nedaří vytvořit", "New Document.odt" : "Dokument.odt", "New Spreadsheet.ods" : "Tabulka.ods", "New Presentation.odp" : "Prezentace.odp", "New Document.docx" : "novy_dokume...
medmedCH/Quizard
backend/routes/Quizzs.js
const express = require('express') const router = express.Router() let Quizze = require('../models/Quizz'); const { check, validationResult } = require('express-validator'); // get all quiz questions router.get('/quizz', (req, res) => { Quizze.find() .then(quizzs => res.json(quizzs)) .catch(err=> res.status...