repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Nageek15/jcodec
src/main/proj/src/org/jcodec/codecs/vpx/vp8/enums/MBLvlFeatures.java
<reponame>Nageek15/jcodec package org.jcodec.codecs.vpx.vp8.enums; /** * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License. * * The class is a direct java port of libvpx's * (https://github.com/webmproject/libvpx) relevant VP8 code with significant * java orien...
siy/reactive-toolbox
async-io/src/test/java/org/reactivetoolbox/io/examples/ddg/RequestHandler_Test.java
<filename>async-io/src/test/java/org/reactivetoolbox/io/examples/ddg/RequestHandler_Test.java<gh_stars>1-10 /* * Copyright (c) 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at...
xmuriqui/muriqui
codopt/iquad.cpp
#include "OPT_solvers.hpp" #include "OPT_tools.hpp" #if OPT_HAVE_IQUAD #include "iquad.hpp" using namespace iquad; #endif using namespace optsolvers; OPT_Iquad::OPT_Iquad() { initialize(); } OPT_Iquad::~OPT_Iquad() { deallocateSolverEnv(); } void OPT_Iquad::deallocateSolverEnv() { #if OPT_HAVE_IQ...
dmgerman/gerrit
java/com/google/gerrit/extensions/api/GerritApi.java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|// Copyright (C) 2013 The Android Open Source Project end_comment begin_comment comment|// end_comment begin_comment comment|// Licensed under the Apache License, Version 2.0 (the "License"); end_comment begin_comment comment|// you m...
xiao-akatsuki/xiaoTools
src/main/java/com/xiaoTools/core/io/lineSeparator/LineSeparator.java
<gh_stars>1-10 package com.xiaoTools.core.io.lineSeparator; /** * [换行符枚举](Linefeed enumeration) * @description zh - 换行符枚举 * @description en - Linefeed enumeration * @version V1.0 * @author XiaoXunYao * @since 2021-10-29 22:04:50 */ public enum LineSeparator { /** Mac系统换行符:"\r" */ MAC("\r"), /** Linux系统换行符:"\...
finnjk/YADA
yada-api/src/main/java/com/novartis/opensource/yada/security/Gatekeeper.java
/** * Copyright 2016 Novartis Institutes for BioMedical Research 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 * * Unless required ...
ziqew/kcc
pegasus/src/curriculum_course.rb
Unit = Struct.new(:number, :title, :description) Lesson = Struct.new(:number, :url, :title, :description, :path) class CurriculumCourse PRODUCTION_COURSES = %w(course1 course2 course3 course4 msm algebra misc unplugged science) COURSES_WITHOUT_UNIT_NUMBERS = %w(course1 course2 course3 course4 msm algebra misc) ...
qma/pants
src/python/pants/backend/android/tasks/android_task.py
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.backend.a...
VishalKandala/Cantera-1.7
Cantera/python/src/cttransport_methods.cpp
<gh_stars>0 /** * Create a new Transport object. */ static PyObject * py_transport_new(PyObject *self, PyObject *args) { char* model; int ph; int loglevel; if (!PyArg_ParseTuple(args, "sii:transport_new", &model, &ph, &loglevel)) return NULL; int n = newTransport...
c0rrigan/poo
Transpmex/src/main/java/me/sebas/transpomex/facturas/Factura.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 me.sebas.transpomex.facturas; import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.securi...
viewdy/phantomjs
src/qt/qtwebkit/Source/WebCore/platform/network/soup/AuthenticationChallengeSoup.cpp
<gh_stars>1-10 /* * Copyright (C) 2012 <NAME>.L. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the ...
KuveytTurk/api-java-sdk
src/test/java/tr/com/kuveytturk/api/test/domains/identification/IdentityServerAPITest.java
/* * Copyright (c) 2020 * KUVEYT TÜRK PARTICIPATION BANK INC. * * Author: <NAME> * * Project: Java SDK for Accessing API Endpoints */ package tr.com.kuveytturk.api.test.domains.identification; import com.consol.citrus.annotations.CitrusTest; import org.junit.Test; import tr.com.kuveytturk.api.client.sdk.model....
Davidfind/rt-thread
bsp/rx/RPDL/interrupt_sci.c
<filename>bsp/rx/RPDL/interrupt_sci.c /*""FILE COMMENT""******************************************************* * System Name : Interrupt program for RX62Nxx * File Name : Interrupt_SCI.c * Version : 1.02 * Contents : Interrupt handlers for all SCI channels * Customer : * Model : * Order : * CPU : RX * Com...
VernamRD/StoryGraph
Plugins/StoryGraphPlugin/Source/StoryGraphPluginRuntime/Public/StoryGraphBlueprint.h
<filename>Plugins/StoryGraphPlugin/Source/StoryGraphPluginRuntime/Public/StoryGraphBlueprint.h #pragma once #include "CoreMinimal.h" #include "Engine/Blueprint.h" #include "StoryGraphBlueprint.generated.h" class UEdGraph_StoryGraph; UCLASS() class STORYGRAPHPLUGINRUNTIME_API UStoryGraphBlueprint : public UBlueprint {...
grizim/oe-cloud
test/switch-data-source-test.js
/** * * ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary), * Bangalore, India. All Rights Reserved. * */ /* jshint -W024 */ /* jshint expr:true */ //to avoid jshint errors for expect var bootstrap = require('./bootstrap'); var chalk = require('chalk'); var async = require('async') var loop...
Sun-Joong/aifh
vol1/scala-examples/src/main/scala/com/heatonresearch/aifh/examples/error/package.scala
<reponame>Sun-Joong/aifh<gh_stars>100-1000 /** * Examples from Chapter 6: Error Calculation */ package com.heatonresearch.aifh.examples.error
chaixiang2002/code-works
java/e7_1/e1_1.java
<reponame>chaixiang2002/code-works class Fu { public void show() { System.out.println("fu show"); } public void method()//修改后!!!没这个不行 { System.out.println("fu method"); } } class Zi extends Fu { public void show() { System.out.println("zi show"); } public void method() { System.out.println("zi m...
Karamays/karamay_engine
_KaramayEngine/karamay_engine_graphics_unit_cmake/karamay_engine_graphics_unit/source/framework/avatars/ship_machine.cpp
<reponame>Karamays/karamay_engine<gh_stars>0 #include "ship_machine.h" ship_machine::ship_machine(world* owner, const std::string& name) : avatar(owner, name) { }
shaikatz/tweek
e2e/ui/pages/Context/FixedKey.js
import { Selector, t } from 'testcafe'; import { dataComp, dataField } from '../../utils/selector-utils'; export default class FixedKey { constructor(key, type = 'string') { this.container = Selector(dataComp('fixed-key')).withAttribute('data-fixed-key', key); this.deleteButton = this.container.find(dataComp...
6923403/Python_Demo
test/add_end.py
def add_end(L = []): L.append('END') return L
loivp13/Interval-App
client/src/features/Page_create/components/EditableTime.styles.js
import classNames from "classnames"; export default { timeValues: classNames("h-1/3", "scroll-child-start"), input: ({ colType }) => { return classNames( "bg-th-primary", "focus:bg-opacity-25", "focus:bg-white", "focus:outline-none", "font-bold", "h-full", "placeholder-...
SouzaVitoria/WhatsBusiness
src/actions/AppActions.js
<reponame>SouzaVitoria/WhatsBusiness import { MODIFICA_ADICIONA_CONTATO_EMAIL, ADICIONA_CONTATO_ERRO, ADICIONA_CONTATO_SUCESSO, lISTA_CONTATO_USER, MODIFICA_MENSAGEM, LISTA_CONVERSA_USUARIO, ENVIA_MENSAGEM_SUCESSO, LISTA_CONVERSAS_USUARIO } from '../actions/Types'; import firebase from 'firebase'; import b64 fr...
crici/gradle-native
subprojects/internal-testing/src/main/java/dev/nokee/internal/testing/ConfigurationMatchers.java
<filename>subprojects/internal-testing/src/main/java/dev/nokee/internal/testing/ConfigurationMatchers.java /* * Copyright 2021 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 co...
solocarrie/talipp
tests/test_indicator_chaining.py
<filename>tests/test_indicator_chaining.py import unittest from talipp.indicators import SMA from TalippTest import TalippTest class Test(TalippTest): def setUp(self) -> None: self.input_values = list(TalippTest.CLOSE_TMPL) def test_init(self): sma1 = SMA(3, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])...
alexiynew/nih_framework
neutrino/graphics/src/font/tables/index_to_location.cpp
#include <common/utils.hpp> #include <graphics/src/font/tables/index_to_location.hpp> namespace framework::graphics::details::font { IndexToLocation::IndexToLocation(std::int16_t index_to_loc_format, std::uint16_t num_glyphs, const BytesData& data) { const size_t size = num_glyphs + 1; m_offsets.reserve(siz...
sbairos/flink
flink-runtime/src/main/java/org/apache/flink/runtime/state/TaskLocalStateStoreImpl.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 ...
withabound/irs
pkg/subrecords/5498.go
// Copyright 2020 The Moov Authors // Use of this source code is governed by an Apache License // license that can be found in the LICENSE file. package subrecords import ( "bytes" "reflect" "time" "unicode/utf8" "github.com/moov-io/irs/pkg/config" "github.com/moov-io/irs/pkg/utils" ) type Sub5498 struct { /...
libc0607/nodemcu-firmware
app/rtl8370/rtl8370_asicdrv_rrcp.h
<gh_stars>1-10 #ifndef _RTL8370_ASICDRV_RRCP_H_ #define _RTL8370_ASICDRV_RRCP_H_ #include <rtl8370_asicdrv.h> extern ret_t rtl8370_setAsicRrcp(uint32 vOneEnable, uint32 vTwoEnable); extern ret_t rtl8370_getAsicRrcp(uint32 *vOneEnable, uint32 *vTwoEnable); extern ret_t rtl8370_setAsicRrcpTrustPortmask(uint32 pm...
Orange-OpenSource/optisam-backend
report-service/pkg/protocol/rest/server.go
// Copyright (C) 2019 Orange // // This software is distributed under the terms and conditions of the 'Apache License 2.0' // license which can be found in the file 'License.txt' in this package distribution // or at 'http://www.apache.org/licenses/LICENSE-2.0'. package rest import ( "context" "crypto/rsa" "net...
mglantz/insights-core
insights/parsers/tests/test_nova_conf.py
from __future__ import print_function from insights.core.context import OSP from insights.parsers import nova_conf from insights.tests import context_wrap nova_content = """ [DEFAULT] notification_driver = #this is comment notification_topics=notifications rpc_backend=rabbit use_ipv6=True notify_on_state_change=vm_...
shao1chuan/pythonbook
机器学习/逻辑回归/sigmoid曲线.py
<reponame>shao1chuan/pythonbook import numpy as np import matplotlib.pyplot as plt def sigmoid(t): return 1. / (1. + np.exp(-t)) x = np.linspace(-10, 10, 500) plt.plot(x, sigmoid(x)) plt.show()
darione85/omirlMe
OmirlServer/Omirl/src/it/fadeout/omirl/CacheObject.java
package it.fadeout.omirl; public class CacheObject { private long timestamp; private Object data; public long getTimestamp() { return timestamp; } public void setTimestamp(long timestamp) { this.timestamp = timestamp; } public Object getData() { return data; } public void set...
community-boating/cbidb-api
app/org/sailcbi/APIServer/Entities/JsFacades/Stripe/ChargeRefund.scala
<reponame>community-boating/cbidb-api package org.sailcbi.APIServer.Entities.JsFacades.Stripe import com.coleji.neptune.Core.RequestCacheObject import com.coleji.neptune.IO.PreparedQueries.PreparedValue import com.coleji.neptune.Storable.{CastableToStorableClass, CastableToStorableObject} import org.sailcbi.APIServer....
profmikegreene/HAXcms
build/es6-amd/node_modules/@lrnwebcomponents/haxcms-elements/lib/ui-components/navigation/site-top-menu.js
<reponame>profmikegreene/HAXcms<filename>build/es6-amd/node_modules/@lrnwebcomponents/haxcms-elements/lib/ui-components/navigation/site-top-menu.js define(["exports", "require", "../../../../../@polymer/polymer/polymer-element.js", "../../core/haxcms-site-store.js", "../../../../../mobx/lib/mobx.module.js", "../query/s...
Sxmurai/xeno-client-buildable
src/main/java/me/xenodevs/xeno/utils/render/builder/RenderBuilder.java
<filename>src/main/java/me/xenodevs/xeno/utils/render/builder/RenderBuilder.java package me.xenodevs.xeno.utils.render.builder; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.util.math.BlockPos; import java.awt.*; import static org.lwjgl.opengl.GL11.*; /** * @author linustouchtips * @si...
BirdBrainTechnologies/BirdBlox-FinchBlox-Android
app/src/main/java/com/birdbraintechnologies/birdblox/Robots/RobotStates/RobotStateObjects/HBitBuzzer.java
package com.birdbraintechnologies.birdblox.Robots.RobotStates.RobotStateObjects; import java.util.Arrays; public class HBitBuzzer extends RobotStateObject { private short frequency; private short duration; public HBitBuzzer() { short stopFrequency = 0; short stopDuration = 1; dura...
rossi1/go-learning
binary/07-get-network-and-hosts-of-an-ip-address/main.go
/* Calculates the Prefix, and the address range for that prefix. Using bitshift and logical AND (&) to split up the uint32 to uint8. Using logical AND (&) to get the network prefix, and logical XOR (^) to get the inverse value of the mask to calulate the range of addresses for that prefix. */ package main import...
onap/vfc-nfvo-driver-vnfm-svnfm
huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/api/internalsvc/impl/VnfmAdapter2DriverMgrService.java
<reponame>onap/vfc-nfvo-driver-vnfm-svnfm<filename>huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/api/internalsvc/impl/VnfmAdapter2DriverMgrService.java /* * Copyright 2017 Huawei Technologies Co., Ltd. * * Licensed under the Apache License, Version 2.0 (...
MASAICommunity/MASAI-concierge-android-app
app/src/main/java/solutions/masai/masai/android/core/model/GoogleMapsAddress.java
<reponame>MASAICommunity/MASAI-concierge-android-app package solutions.masai.masai.android.core.model; /** * Created by Semko on 2017-03-03. */ public class GoogleMapsAddress { private Result[] results; public Result[] getResults() { return results; } public void setResults(Re...
cliffano/jenkins-api-clients-generator
clients/go-echo-server/generated/models/model_empty_change_log_set.go
<filename>clients/go-echo-server/generated/models/model_empty_change_log_set.go package models type EmptyChangeLogSet struct { Class string `json:"_class,omitempty"` Kind string `json:"kind,omitempty"` }
lyne-bot/lyne-components
src/components/lyne-timetable-transportation-number/lyne-timetable-transportation-number.stories.js
<reponame>lyne-bot/lyne-components import { h } from 'jsx-dom'; import readme from './readme.md'; import sampleData from './lyne-timetable-transportation-number.sample-data'; const Template = (args) => ( <lyne-timetable-transportation-number appearance={args.appearance} config={JSON.stringify(args.config)} ...
kpi-keoa/TheConnectedMCU_Labs
alexskp/lab4-UART_SPI/docs/html/search/files_0.js
<filename>alexskp/lab4-UART_SPI/docs/html/search/files_0.js var searchData= [ ['chrfont0_2ec',['ChrFont0.c',['../_chr_font0_8c.html',1,'']]], ['configuration_5fbits_2ec',['configuration_bits.c',['../configuration__bits_8c.html',1,'']]] ];
nistefan/cmssw
RecoTracker/TkHitPairs/interface/LayerWithHits.h
<reponame>nistefan/cmssw<gh_stars>1-10 #ifndef LayerWithHits_H #define LayerWithHits_H #include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h" #include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHitCollection.h" #include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit2DCollection.h" #include "DataF...
supreethms1809/magma-2.2.0
docs/html/search/classes_5.js
<gh_stars>1-10 var searchData= [ ['sgehrd_5fdata',['sgehrd_data',['../structsgehrd__data.html',1,'']]], ['sgemm_5ftask',['sgemm_task',['../classsgemm__task.html',1,'']]], ['slaswp_5fparams_5ft',['slaswp_params_t',['../structslaswp__params__t.html',1,'']]], ['slaswp_5fsym_5fparams_5ft',['slaswp_sym_params_t',['....
SHIVJITH/Odoo_Machine_Test
addons/mail/static/src/js/custom_filter_item.js
odoo.define('mail.CustomFilterItem', function (require) { "use strict"; const CustomFilterItem = require('web.CustomFilterItem'); CustomFilterItem.patch('mail.CustomFilterItem', T => class extends T { /** * With the `mail` module installed, we want to filter out some of the * av...
google-cloud-sdk-unofficial/google-cloud-sdk
lib/googlecloudsdk/third_party/apis/transcoder/v1beta1/transcoder_v1beta1_client.py
"""Generated client library for transcoder version v1beta1.""" # NOTE: This file is autogenerated and should not be edited by hand. from __future__ import absolute_import from apitools.base.py import base_api from googlecloudsdk.third_party.apis.transcoder.v1beta1 import transcoder_v1beta1_messages as messages clas...
taylrj/static-fe-boilerplate
slave-fishermen-human-trafficking/src/data/img-src.js
<filename>slave-fishermen-human-trafficking/src/data/img-src.js import icon_scroll from '../../static/icon-scroll.png' import logo from '../../static/logo-horizontal01-white.png' import mute from '../../static/icon-mute.png' import pause_hover from '../../static/icon-pause-hover.png' import pause from '../../static/ico...
v8786339/NyuziProcessor
software/libs/librender/LinearInterpolator.h
<gh_stars>1000+ // // Copyright 2011-2015 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
dmgerman/hadoop
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-nativetask/src/main/java/org/apache/hadoop/mapred/nativetask/handlers/BufferPusher.java
<reponame>dmgerman/hadoop begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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 o...
zinedistro/zinedistro
spec/features/site_spec.rb
require "rails_helper" feature 'Browsing the site' do before do visit root_path end context 'Site footer' do scenario 'I can see attribution content' do within 'footer#bottom' do find("a[href='https://twitter.com/faunzy']") do expect(page).to have_content 'maintained by Faun' ...
zoopaper/netty-study
src/main/java/org/netty/study/protobuf/OrderServerHandler.java
<reponame>zoopaper/netty-study package org.netty.study.protobuf; import io.netty.channel.ChannelHandlerAdapter; import io.netty.channel.ChannelHandlerContext; /** * @author krisjin */ public class OrderServerHandler extends ChannelHandlerAdapter { public void channelRead(ChannelHandlerContext ctx, Object msg)...
ernestyalumni/HrdwCCppCUDA
Voltron/Voltron/DataStructures/level_easy.py
from collections import deque ################################################################################ # @details # # DataStructures : deque, Queue, Binary Tree, Binary Search Tree (BST) ################################################################################ class BinaryTree: def __init__(self, v...
dubenju/javay
src/java/com/wavpack/decoder/WavpackStream.java
<reponame>dubenju/javay package com.wavpack.decoder; /* ** WavpackStream.java ** ** Copyright (c) 2007 - 2008 <NAME> ** ** All Rights Reserved. ** ** Distributed under the BSD Software License (see license.txt) ** */ public class WavpackStream { WavpackHeader wphdr = new WavpackHeader(); ...
SummerWindL/dataloader
src/main/java/com/advance/dataloader/listener/AppStartupAdapter.java
<filename>src/main/java/com/advance/dataloader/listener/AppStartupAdapter.java package com.advance.dataloader.listener; import com.advance.dataloader.spring.AppService; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.event.ContextR...
gmai2006/fhir
src/main/java/org/fhir/entity/AccountModel.java
/* * #%L * FHIR Implementation * %% * Copyright (C) 2018 DataScience 9 LLC * %% * 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 *...
freight-dev/freight-backend
common/src/main/java/com/freight/request_body/AuthenticationRequestBody.java
package com.freight.request_body; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Optional; import static java.util.Optional.ofNullable; /** * Created by toshikijahja on 3/26/...
cryptable/ejbca-rootca
ejbca_ce_6_15_3_0/modules/systemtests/src-test/org/cesecore/certificates/ca/CaSessionTest.java
/************************************************************************* * * * CESeCore: CE Security Core * * * * This software is...
tkminek/material_database
mat_db/main/migrations/0002_rename_material_cycliccurve_material_id_and_more.py
# Generated by Django 4.0.2 on 2022-02-15 19:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0001_initial'), ] operations = [ migrations.RenameField( model_name='cycliccurve', old_name='material', ...
billowave/TyzLearn2018
JavaPlatform/EclipseWorkSpaces/LearnWSOne/SpringLeranRoot/SpLNinth/src/main/java/org/SpLNinth/EventListen/example01/Tyz_LgEventListener.java
<filename>JavaPlatform/EclipseWorkSpaces/LearnWSOne/SpringLeranRoot/SpLNinth/src/main/java/org/SpLNinth/EventListen/example01/Tyz_LgEventListener.java package org.SpLNinth.EventListen.example01; import java.util.EventListener; //定义自定义监听器接口,继承EventListener interface Tyz_LgEventListener extends TyzEventListener { void...
carldea/rapaio
src/rapaio/math/linear/dense/DMatrixDenseC.java
<filename>src/rapaio/math/linear/dense/DMatrixDenseC.java /* * Apache License * Version 2.0, January 2004 * http://www.apache.org/licenses/ * * Copyright 2013 - 2021 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y...
AbdullahRusi/Tehreer-Android
demo/src/main/java/com/mta/tehreer/demo/BidiAlgorithmActivity.java
/* * Copyright (C) 2016-2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
chelo84/tibiainfo
src/main/java/com/tibiainfo/model/dto/npc/NpcDTO.java
package com.tibiainfo.model.dto.npc; import com.tibiainfo.model.entity.npc.Npc; import lombok.Data; @Data public class NpcDTO { Long id; String title; String name; String race; String gender; String city; String location; String job; String version; String x; Str...
rexcorp01/bet6
pick6-backend/test/controllers/games_controller_test.rb
require 'test_helper' class GamesControllerTest < ActionDispatch::IntegrationTest setup do @game = games(:one) end test "should get index" do get games_url, as: :json assert_response :success end test "should create game" do assert_difference('Game.count') do post games_url, params: {...
tomzlh/dtc
sc-transaction-core/src/main/java/com/ops/sc/core/spi/SPIPostProcessor.java
package com.ops.sc.core.spi; import java.util.Map; import java.util.Properties; public interface SPIPostProcessor { void init(Map<String,String> map); }
ScaledByDesign/cloudboost
dashboard-ui/app/components/settings/email.js
/** * Created by Darkstar on 11/29/2016. */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { showAlert, updateSettings } from '../../actions'; // mui import { FormGroup, Radio, Button } from 'react-bootstrap'; import TrasnparentLoader from 'react-loader-a...
gidabite/libcds
test/include/cds_test/stat_skiplist_out.h
// Copyright (c) 2006-2018 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef CDSTEST_STAT_SKIPLIST_OUT_H #define CDSTEST_STAT_SKIPLIST_OUT_H #include <cds/intrusive/details/skip_list_base.h> namespace cds...
AmmarQaseem/CPI-Pipeline-test
scripts/ppi-benchmark/Experiments/SL/measures/Fscore.py
import sys def F1(TP, FP, FN): if (TP == 0. and (FP == 0. or FN == 0.)): F = 0. prec = 0 rec = 0 else: prec = float(TP) / float(TP+FP) rec = float(TP) / float(TP + FN) if (prec == 0 and rec == 0): F = 0. else: F = (2.*prec*rec)/(pr...
ozdanborne/libcalico-go
lib/api/workloadendpoint.go
// Copyright (c) 2016 Tigera, Inc. 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
lefevre-fraser/openmeta-mms
bin/Python27/Lib/site-packages/matlab_wrapper/__main__.py
import sys import json from matlab_wrapper import MatlabWrapper from openmdao.api import FileRef import numpy if __name__ == '__main__': # print(repr(sys.argv[1:])) c = MatlabWrapper(sys.argv[1], start_engine=False) def default(obj): if isinstance(obj, FileRef): return repr...
ksemer/snap
snap-exp/test-dev/IdTest.cpp
#include "Snap.h" int main(){ TTableContext Context; // create scheme Schema CountryS; CountryS.Add(TPair<TStr,TAttrType>("Country", atStr)); CountryS.Add(TPair<TStr,TAttrType>("Continent", atStr)); CountryS.Add(TPair<TStr,TAttrType>("Size", atStr)); TIntV RelevantCols; RelevantCols.Add(0); ...
vertigo-io/vertigo-extensions
vertigo-commons/src/main/java/io/vertigo/commons/eventbus/EventBusManager.java
<filename>vertigo-commons/src/main/java/io/vertigo/commons/eventbus/EventBusManager.java /** * vertigo - application development platform * * Copyright (C) 2013-2021, Vertigo.io, <EMAIL> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the L...
sunjiGit/litemall
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminStoreInventoryController.java
<filename>litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminStoreInventoryController.java package org.linlinjava.litemall.admin.web; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; ...
ekirving/alleletraj
alleletraj/ancient/dedupe.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # third party modules import luigi # local modules from alleletraj import utils from alleletraj.ancient.align import BwaSamSe from alleletraj.samtools import SAMToolsMerge class FilterUniqueSAMCons(utils.DatabaseTask): """ Remove PCR duplicates, so we don't over...
vany152/FilesHash
console/src/boost_1_78_0/libs/spirit/test/karma/repeat2.cpp
// Copyright (c) 2001-2011 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/spirit/include/karma_repeat.hpp> #include <boost/spirit/include/karma_operator.hpp> #include <boost/spirit/...
CIDARLAB/fpSelection
fpSelectionWebApp/src/main/java/org/cidarlab/fpSelection/servlets/StartFpSelectionWebApp.java
<filename>fpSelectionWebApp/src/main/java/org/cidarlab/fpSelection/servlets/StartFpSelectionWebApp.java<gh_stars>1-10 /* * 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.cidar...
rallabandibhanusree/BillingSample
test/logoutTest_spec.js
<reponame>rallabandibhanusree/BillingSample /** * Created by makere001c on 2/16/17. */ /* var frisby = require('frisby'); var cloudmine = require('cloudmine'); frisby.globalSetup({ request:{ headers:{ 'Content-Type': 'application/json', 'x-cloudmine-apikey':'<KEY>', '...
pwaller/mewmew-l
ir/function.go
package ir import ( "fmt" "strconv" "strings" "github.com/kr/pretty" "github.com/mewmew/l/internal/enc" "github.com/mewmew/l/ir/metadata" "github.com/mewmew/l/ir/types" "github.com/mewmew/l/ir/value" ) // ~~~ [ Function Declaration or Definition ] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Note, Sig is nil when ...
hmcts/nfdiv-common-lib
src/main/java/uk/gov/hmcts/reform/divorce/mapper/strategy/reasonfordivorce/DesertionStrategy.java
package uk.gov.hmcts.reform.divorce.mapper.strategy.reasonfordivorce; import org.springframework.stereotype.Component; import uk.gov.hmcts.reform.divorce.model.ccd.CoreCaseData; import uk.gov.hmcts.reform.divorce.model.usersession.DivorceSession; import uk.gov.hmcts.reform.divorce.utils.DateUtils; import static org.a...
FarouDev/Projects-for-beginner-with-Cpp
BCC102/include/windows/sdk/filterpipelineutil.h
//+------------------------------------------------------------------------- // // Microsoft Windows // Copyright (c) Microsoft Corporation. All rights reserved. // //-------------------------------------------------------------------------- #ifndef _PRINT_FILTER_UTIL_813b22ee_62f7_4200_ #pragma option push -b -a8 -...
codefollower/Open-Source-Research
Javac2007/流程/comp/Flow/markDead.java
<gh_stars>100-1000 /** Record that statement is unreachable. */ void markDead() { DEBUG.P(this,"markDead()"); DEBUG.P("firstadr="+firstadr+" nextadr="+nextadr); DEBUG.P("inits 前="+inits); DEBUG.P("uninits前="+uninits); inits.inclRange(firstadr, nextadr); uninits.inclRange(firstadr, nextadr)...
vinibiavatti1/PythonFlaskCms
project/properties/pages/calendar_properties.py
""" Calendar properties configuration. """ from project.models.property_model import PropertyModel from project.models.header_model import HeaderModel from project.enums import property_types_enum as prop_type from typing import Union from project.properties.bases.page_properties import page_properties # Properties c...
cblecker/managed-upgrade-operator
pkg/controller/upgradeconfig/statuschanged_predicate_test.go
package upgradeconfig import ( upgradev1alpha1 "github.com/openshift/managed-upgrade-operator/pkg/apis/upgrade/v1alpha1" testStructs "github.com/openshift/managed-upgrade-operator/util/mocks/structs" "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/event" . "github.com/onsi/ginkgo" . "github....
lcnem/eurx
x/estmdist/types/events.go
package types // Event types for estmdist module const ( EventTypeEstmdist = ModuleName AttributeKeyInflation = "estm_dist_inflation" AttributeKeyStatus = "estm_dist_status" AttributeValueInactive = "inactive" )
bubenheimer/androidx
inspection/inspection/src/main/java/androidx/inspection/Inspector.java
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
marcua/qurk_experiments
qurkexp/estimation/django_includes.py
<reponame>marcua/qurk_experiments import sys, os ROOT = os.path.abspath('%s/../..' % os.path.abspath(os.path.dirname(__file__))) sys.path.append(ROOT) os.environ['DJANGO_SETTINGS_MODULE'] = 'qurkexp.settings' from django.core.management import setup_environ from django.conf import settings
olivier-maury/unity
engine/src/main/java/pl/edu/icm/unity/engine/translation/in/SystemInputTranslationProfileProvider.java
/* * Copyright (c) 2017 Bixbit - <NAME> All rights reserved. * See LICENCE.txt file for licensing information. */ package pl.edu.icm.unity.engine.translation.in; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.stereotyp...
abique/mimosa
mimosa/http/mime-db.hh
#pragma once # include <string> # include <unordered_map> # include "../non-copyable.hh" namespace mimosa { namespace http { /** * @ingroup Http */ class MimeDb : private NonCopyable { public: static MimeDb & instance(); std::string mimeType(const std::string & filename); ...
FernandoBLima/data-structures
src/DataStructures/HashTable/dump_hashTable.js
<filename>src/DataStructures/HashTable/dump_hashTable.js const HashTable = require('./hashTable'); class DumpHashTable extends HashTable { constructor() { super(); this.list = {}; this.length = 0; } /** * Should add element * @param {any} key \ * @param {any} value...
alod83/versatile-data-kit
projects/control-service/projects/pipelines_control_service/src/test/java/com/vmware/taurus/service/graphql/strategy/datajob/JobFieldStrategyByNextRunTest.java
<filename>projects/control-service/projects/pipelines_control_service/src/test/java/com/vmware/taurus/service/graphql/strategy/datajob/JobFieldStrategyByNextRunTest.java /* * Copyright 2021 VMware, Inc. * SPDX-License-Identifier: Apache-2.0 */ package com.vmware.taurus.service.graphql.strategy.datajob; import com....
bmf-san/Gobel
app/usecase/admin_repository.go
package usecase import "github.com/bmf-san/gobel-api/app/domain" // An AdminRepository is a repository interface for an authentication. type AdminRepository interface { FindByID(id int) (domain.Admin, error) FindByCredentials(req RequestCredential) (domain.Admin, error) }
reven86/dava.engine
Programs/QuickEd/Classes/Model/PackageHierarchy/PackageControlsNode.cpp
#include "PackageControlsNode.h" #include "ControlNode.h" #include "PackageVisitor.h" #include "PackageNode.h" #include "UI/UIPackage.h" #include "UI/UIControl.h" #include "Utils/Utils.h" using namespace DAVA; PackageControlsNode::PackageControlsNode(PackageNode* parent_, const String& name_) : ControlsContaine...
tasseron/TOMP-REF
tomp_ref/src/main/java/org/tomp/api/booking/BookingProvider.java
package org.tomp.api.booking; import javax.validation.Valid; import io.swagger.model.Booking; import io.swagger.model.BookingOperation; import io.swagger.model.BookingOption; public interface BookingProvider { Booking addNewBooking(@Valid BookingOption body, String acceptLanguage); Booking addNewBookingEvent(Book...
sarang-apps/darshan_browser
ui/events/keycodes/keyboard_code_conversion.cc
<filename>ui/events/keycodes/keyboard_code_conversion.cc // Copyright (c) 2011 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 "ui/events/keycodes/keyboard_code_conversion.h" #include <algorithm> #include "bas...
jasonadamyoung/busterleague
app/models/game.rb
# === COPYRIGHT: # Copyright (c) <NAME> # === LICENSE: # see LICENSE file class Game < ApplicationRecord include CleanupTools has_one :boxscore has_many :team_games belongs_to :home_team, :class_name => 'Team' belongs_to :away_team, :class_name => 'Team' scope :for_season, lambda {|season| where(season: ...
dolittle-platform/monitor.ingress
Source/Pinger/src/main/java/io/dolittle/moose/pinger/config/PingConfig.java
<filename>Source/Pinger/src/main/java/io/dolittle/moose/pinger/config/PingConfig.java // Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. package io.dolittle.moose.pinger.config; import org.springframework.aop.intercepto...
Pentacode-IAFA/Quad-Remeshing
libs/quadwild/libs/vcglib/wrap/bmt/strip_mesh.h
/**************************************************************************** * VCGLib o o * * Visual and Computer Graphics Library o o * * _ O _ * * Copyri...
webOS-ports/org.webosports.app.maps
source/data/webOSGeolocation.js
<filename>source/data/webOSGeolocation.js /* webOSGeolocation.js - LuneOS/webOS geolocation API * */ enyo.kind({ name: "webOSGeolocation", kind: "Component", events: { onSuccess: "", onFailure: "" }, components: [{ name: "singleLocationService", kind: "PalmService", service: "palm://com.palm.lo...
karinamg17/nutricionistas
nutricionistas/nutri_app/migrations/0005_datosbiomedicos.py
<gh_stars>0 # Generated by Django 3.1.13 on 2021-11-30 12:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('nutri_app',...
beatrizserrano/galaxy
test/unit/data/model/migrations/versions/db2/1bceec30363a_create_tsi_test_branch.py
<filename>test/unit/data/model/migrations/versions/db2/1bceec30363a_create_tsi_test_branch.py """create tsi test branch Revision ID: 1bceec30363a Revises: Create Date: 2021-11-05 16:28:45.450830 """ # revision identifiers, used by Alembic. revision = "1bceec30363a" down_revision = None branch_labels = ("tsi",) depe...
Creativelair/aoe-joust
components/navBar.js
import Link from 'next/link' import Grid from '@material-ui/core/Grid' import MiniMenu from './menu/miniMenu' import utilStyles from '../styles/utils.module.scss' export default function NavBar() { return ( <Grid container justify="center"> <Grid item md={6} xs={12}> <Link href="/"> ...