repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
arvindrajayadav/unrest
CRAB/AnimationFrame.h
#pragma once #include "common_header.h" #include "AnimationEffect.h" #include "ImageManager.h" #include "TextManager.h" #include "HoverInfo.h" namespace pyrodactyl { namespace anim { struct AnimationFrame : public Vector2i { //The image drawn in this frame ImageKey img; //This is the time in we draw t...
vondrejc/sfepy
tests/test_input_biot.py
<filename>tests/test_input_biot.py<gh_stars>0 input_name = '../examples/biot/biot.py' output_name = 'test_biot.vtk' from tests_basic import TestInput class Test( TestInput ): pass
edmundoandrade/common-code
src/main/java/edworld/common/core/TreeNodeKeys.java
<filename>src/main/java/edworld/common/core/TreeNodeKeys.java package edworld.common.core; public interface TreeNodeKeys { public String[] getKeys(); }
Scopetta197/chromium
chrome/test/functional/find_in_page.py
<reponame>Scopetta197/chromium<filename>chrome/test/functional/find_in_page.py<gh_stars>100-1000 #!/usr/bin/env python # 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. import codecs import os import uni...
dslowikowski/commcare-hq
corehq/apps/locations/static/locations/ko/location_drilldown.async.js
<reponame>dslowikowski/commcare-hq function api_get_children(loc_uuid, callback) { var params = (loc_uuid ? {parent_id: loc_uuid} : {}); $('#loc_ajax').show(); $.getJSON(LOAD_LOCS_URL, params, function(allData) { $('#loc_ajax').hide(); callback(allData.objects); }); } function LocationSelectView...
torbjornvatn/cuke4duke
cuke4duke/src/main/java/cuke4duke/internal/JRuby.java
package cuke4duke.internal; import org.jruby.Ruby; import org.jruby.RubyArray; import org.jruby.RubyClass; import org.jruby.RubyModule; import org.jruby.exceptions.RaiseException; import java.util.Collection; /** * Keeps a reference to the Ruby instance that was used to * start the whole machinery. I hate this sta...
jlaluces123/grommet-icons
src/js/icons/DocumentConfig.js
<reponame>jlaluces123/grommet-icons import React from 'react'; import { StyledIcon } from '../StyledIcon'; export const DocumentConfig = props => ( <StyledIcon viewBox='0 0 24 24' a11yTitle='DocumentConfig' {...props}> <path fill='none' stroke='#000' strokeWidth='2' d='M4.998 9V1H19.5L23 4.5V23h-7m2-22v5h5M9 14...
Antonio-Neves/Gestao-Escolar
responsaveis/apps.py
from django.apps import AppConfig class ResponsaveisConfig(AppConfig): name = 'responsaveis'
BuildJet/sat4envi
s4e-backend/src/main/java/pl/cyfronet/s4e/controller/InvitationController.java
<reponame>BuildJet/sat4envi /* * Copyright 2020 ACC Cyfronet AGH * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
mellowdrifter/bio-rd
protocols/bgp/server/peer.go
package server import ( "sync" "time" "github.com/bio-routing/bio-rd/config" bnet "github.com/bio-routing/bio-rd/net" "github.com/bio-routing/bio-rd/protocols/bgp/packet" "github.com/bio-routing/bio-rd/routingtable" "github.com/bio-routing/bio-rd/routingtable/filter" "github.com/bio-routing/bio-rd/routingtabl...
wintermao/test
ddr_layout_V5/ip/dac2904/inc/dac2904_regs.h
<filename>ddr_layout_V5/ip/dac2904/inc/dac2904_regs.h /****************************************************************************** //by mmh create 2018.3.4 ******************************************************************************/ #ifndef __DAC2904_REGS_H__ #define __DAC2904_REGS_H__ #include <io.h> #define ...
Cedric-Huguenin/PI-InfoAutonomie
gateway/Aleoncean/src/main/java/eu/aleon/aleoncean/packet/radio/userdata/eepd201/DimTimer.java
<reponame>Cedric-Huguenin/PI-InfoAutonomie /* * Copyright (c) 2014 aleon GmbH. * 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 * http://www.eclipse.org/legal/epl-v10...
ryo-rm/expo
ios/versioned-react-native/ABI45_0_0/ReactNative/ReactCommon/react/renderer/components/text/ABI45_0_0RawTextProps.h
<filename>ios/versioned-react-native/ABI45_0_0/ReactNative/ReactCommon/react/renderer/components/text/ABI45_0_0RawTextProps.h /* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pr...
OpenMunicipality/api-service-casemanagement
src/main/generated-sources/cxf/v1/service/minutmiljo/api/ecos/SearchFacilityCollectionResponse.java
package v1.service.minutmiljo.api.ecos; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import v1.datacontracts.minutmiljo.api.ecos....
DamieFC/fuchsia
src/ui/a11y/lib/screen_reader/recover_a11y_focus_action.cc
// Copyright 2020 The Fuchsia 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 "src/ui/a11y/lib/screen_reader/recover_a11y_focus_action.h" #include <lib/syslog/cpp/macros.h> #include "src/ui/a11y/lib/screen_reader/util/util...
tashiscool/bc-fips
core/src/main/java/org/bouncycastle/util/IPAddress.java
<filename>core/src/main/java/org/bouncycastle/util/IPAddress.java /***************************************************************/ /****** DO NOT EDIT THIS CLASS bc-java SOURCE FILE ******/ /***************************************************************/ package org.bouncycastle.util; /** * Utility methods f...
cavalier99/thorium
client/src/App.js
import React from "react"; import { ApolloProvider } from "react-apollo"; import { ApolloProvider as ApolloHooksProvider } from "@apollo/react-hooks"; import client from "./helpers/graphqlClient"; import Routes from "./containers/routes"; import ErrorBoundary from "./helpers/errorBoundary"; import EasterEgg from "./hel...
SabheeR/hobbits
src/hobbits-python/py_bitarray.cpp
<reponame>SabheeR/hobbits<filename>src/hobbits-python/py_bitarray.cpp #include "py_bitarray.h" #include "bitarray.h" #include <QSharedPointer> #include <structmember.h> #define UNUSED(expr) do { (void)(expr); } while (0); #define BITS(X) static_cast<BitArray*>(PyCapsule_GetPointer(X, nullptr)) typedef struct { P...
xuanquang226/nhom2_CDPTUDdidong
ontap/OnTapQLNS/app/src/main/java/com/example/quang/ontapqlns/onTapQLNSActivity.java
<reponame>xuanquang226/nhom2_CDPTUDdidong package com.example.quang.ontapqlns; import android.app.Dialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.ContextMenu; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget....
bradfordb-vmware/gpdb
gpcontrib/orafce/plvdate.c
/* This code implements one part of functonality of free available library PL/Vision. Please look www.quest.com This library isn't optimalized for big numbers, for working with n days (n > 10000), can be slow (on my P4 31ms). Original author: <NAME>, 1996 - 2002 PostgreSQL implementation author: <NAME>, 2...
Unk3wn/AdvancedSoftwareEngineering
Software Project/X - Legacy - Historisch Gewachsen - Backend - Spring/src/main/java/de/dhbw/ase/whiskey_o_clock/helper/DTOMapper.java
package de.dhbw.ase.whiskey_o_clock.helper; import de.dhbw.ase.whiskey_o_clock.model.*; import de.dhbw.ase.whiskey_o_clock.model.builder.BottleBuilder; import de.dhbw.ase.whiskey_o_clock.repository.BottleRepository; import de.dhbw.ase.whiskey_o_clock.repository.CountryRepository; import de.dhbw.ase.whiskey_o_clock.rep...
restato/bunnybook
backend/comment/api.py
<filename>backend/comment/api.py import datetime as dt from typing import List, Optional from uuid import UUID from fastapi import Depends, Query, BackgroundTasks from fastapi_utils.cbv import cbv from fastapi_utils.inferring_router import InferringRouter from starlette import status from auth.models import User from...
Keneral/asystem
core/init/init.cpp
<reponame>Keneral/asystem /* * Copyright (C) 2008 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 *...
drabinowitz/Brainstorm
server/interests/interestRoutes.js
var interestController = require('./interestController.js'); module.exports = function (app) { app.route('/:idea_id') .post(interestController.newInterest) .get(interestController.allInterests); app.route('/:interest_id') .delete(interestController.deleteInterest); };
successful-try/study
Algorithm Trainings from Yandex (September 2021)/Binary Search/C-cubic_equation.cpp
<reponame>successful-try/study #include <bits/stdc++.h> #include <string> #include <iostream> #include <algorithm> #include <math.h> using namespace std; int a,b,c,d; double equation(double x){ double result; result = a*x*x*x + b*x*x + c*x + d; return result; } double find_point(double...
petergp/XVim2
XVim2/XcodeHeader/IDEKit/_TtC6IDEKit36IDEMultiSelectionTableViewController.h
// // Generated by class-dump 3.5 (64 bit) (Debug version compiled Jun 6 2019 20:12:56). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <AppKit/NSViewController.h> #import <IDEKit/NSTableViewDataSource-Protocol.h> #import <IDEKit/NSTableViewDelegate-Protocol.h> @clas...
kevvdp/operator
vendor/github.com/SermoDigital/jose/jws/jws.go
package jws import ( "bytes" "encoding/json" "sort" "github.com/SermoDigital/jose" "github.com/SermoDigital/jose/crypto" ) // JWS represents a specific JWS. type JWS struct { payload *payload plcache rawBase64 clean bool sb []sigHead isJWT bool } // Payload returns the JWS' payload. func (j *JWS) Payl...
icemanzp/Orion-Server
src/main/java/com/jack/netty/server/servlet/WFJFilterFactory.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...
suluner/tencentcloud-sdk-cpp
ess/include/tencentcloud/ess/v20201111/model/UserInfo.h
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
GodIsWord/NewFindSecret
FindSecret/Classes/Native/mscorlib_System_OrdinalComparer3407243298.h
<filename>FindSecret/Classes/Native/mscorlib_System_OrdinalComparer3407243298.h<gh_stars>0 #pragma once #include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <stdint.h> #include "mscorlib_System_StringComparer3301955079.h" #ifdef __clang__ ...
yujianyuanhaha/Co-Channel-Sig-Detection
solvers/java/src/main/java/com/analog/lyric/dimple/factorfunctions/DiscreteTransition.java
<filename>solvers/java/src/main/java/com/analog/lyric/dimple/factorfunctions/DiscreteTransition.java<gh_stars>1-10 /******************************************************************************* * Copyright 2013 Analog Devices, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may no...
zhaozeq/zus-cli
lib/utils/common/clearConsole.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = clearConsole; function clearConsole() { process.stdout.write(process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H'); }
AndrewGHC/image-share
compiled/db/sequelize/connect.js
<filename>compiled/db/sequelize/connect.js<gh_stars>0 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _models = require('./models'); var _models2 = _interopRequireDefault(_models); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var...
nanditadubey/customeronboard_nanditadubey
src/main/java/io/apitest/example/repository/CustomerRepository.java
<filename>src/main/java/io/apitest/example/repository/CustomerRepository.java package io.apitest.example.repository; import io.apitest.example.model.Customer; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; /** * Created by prasantabiswas on 27/06/18. ...
ArcanaOrpheus/HibernateRecu
src/main/java/dao/IClientDao.java
package dao; import java.util.List; import database.Direccio; import database.Clients; import database.ComandaClient; public interface IClientDao extends IGenericDao<Clients,Integer>{ void saveOrUpdate(Clients p); Clients get(Integer id); List<Clients> list(); void delete(Integer id); bo...
sirinath/Harmony
classlib/modules/portlib/src/main/native/port/windows/hyshmem.h
/* * 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...
dmyerscough/salt
tests/unit/modules/test_seed.py
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`<NAME> <<EMAIL>>` ''' # Import Python libs from __future__ import absolute_import import os import shutil import uuid # Import Salt Testing Libs from tests.support.mixins import LoaderModuleMockMixin from tests.support.unit import skipIf, TestCase from tests.support...
loolzaaa/sso-authentication-client
sso-client-spring-boot-autoconfigure/src/main/java/ru/loolzaaa/sso/client/autoconfigure/SsoClientHttpConfigurer.java
<gh_stars>0 package ru.loolzaaa.sso.client.autoconfigure; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer; import org.springframework.security.web.authentication.UsernamePasswordAuthenticationF...
liujiayii/SkylarkWebsite
src/main/java/com/websit/service/IT_picture_videoService.java
<filename>src/main/java/com/websit/service/IT_picture_videoService.java<gh_stars>0 package com.websit.service; import com.websit.entity.T_picture_video; import com.baomidou.mybatisplus.service.IService; /** * <p> * 图片视频表(蔺) 服务类 * </p> * * @author lichangchun * @since 2019-03-21 */ public interface IT_picture_v...
Coffeekraken/coffeekraken
packages/tools/sugar/src/shared/is/__tests__.wip/yyyymmddDate.js
"use strict"; module.exports = (__testFn) => { describe('sugar.js.is.yyyymmdd', () => { it('Should detect the passed variable type correctly', () => { expect(__testFn('2020.10.13')).toBe(true); expect(__testFn('2020.20.13')).toBe(false); }); }); }; //# sourceMappingURL=da...
cragkhit/elasticsearch
references/bcb_chosen_clones/selected#2037851#59#69.java
public Matrice transposee() { final int ni = ni(); final int nj = nj(); final Matrice r = new Matrice(nj, ni); for (int i = 0; i < ni; i++) { for (int j = 0; j < nj; j++) { r.a_[j][i] = a_[i][j]; } } return r; }
myoukaku/bksge
libs/fnd/type_traits/test/src/unit_test_fnd_type_traits_is_nothrow_copy_assignable.cpp
/** * @file unit_test_fnd_type_traits_is_nothrow_copy_assignable.cpp * * @brief is_nothrow_copy_assignable のテスト * * @author myoukaku */ #include <bksge/fnd/type_traits/is_nothrow_copy_assignable.hpp> #include <bksge/fnd/config.hpp> #include <gtest/gtest.h> #include <cstddef> #include "type_traits_te...
DanTupi/personal_setup
qmk_firmware/drivers/chibios/usbpd_stm32g4.c
<reponame>DanTupi/personal_setup /* Copyright 2021 <NAME> (@tzarc) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version...
superkit01/jt809
jt809-sdk/src/main/java/com/superkit/jt809/entity/linkManager/SubLinkTestRspEntity.java
package com.superkit.jt809.entity.linkManager; import com.superkit.jt809.MsgConstant; import com.superkit.jt809.entity.BaseEntity; import com.superkit.jt809.entity.Codec; import io.netty.buffer.ByteBuf; import lombok.Getter; import lombok.Setter; /** * 从链路连接保持应答消息 * <p> * 业务数据类型标识:DOWN_LINKTEST_RSP * <p> * 下级平台...
junphine/dremio-oss
apr/dremio-ce-mongo-plugin/src/main/java/com/dremio/plugins/mongo/connection/MongoConnectionKey.java
package com.dremio.plugins.mongo.connection; import com.mongodb.*; public class MongoConnectionKey { private final ServerAddress address; private final String user; public MongoConnectionKey(final ServerAddress address, final String user) { this.address = address; this.user = user; ...
efalayi/population-management-system
dist/server/middlewares/validations/validateLocationUpdate.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectHelper = _interopRequireDefault(require("../../helpers/objectHelper")); var _fields = _interopRequireDefault(require("../../../constants/fields")); var _validateLocationField = _interopRequireDefault(...
jjuliano/brutal
sources/libs/embed/brutal/app.c
#include <ipc/ipc.h> #include <embed/app.h> #include <embed/win.h> void embed_app_init(UiApp *) { } void embed_app_deinit(UiApp *) { } void embed_app_pump(UiApp *) { } void embed_app_wait(UiApp *) { ipc_component_run(ipc_component_self()); }
haizhenhan/Kepler
kernel/2.6.32/drivers/net/wimax/i2400m/sdio-rx.c
/* * Intel Wireless WiMAX Connection 2400m * SDIO RX handling * * * Copyright (C) 2007-2008 Intel Corporation. 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...
bloomen/densitas
test/manipulation_extract_row.cpp
<gh_stars>1-10 #include "utils.hpp" COLLECTION(manipulation_extract_row) { auto function = densitas::core::extract_row<double, vector_t, matrix_t>; TEST(test_happy_path) { const auto row1 = mkrow({1, 2, 3}); const auto row2 = mkrow({10, 20, 30}); auto matrix = matrix_t(2, 3); matrix.row(0) = row1; ...
covers1624/WorkspaceTool
src/common/java/net/covers1624/wt/api/dependency/WorkspaceModuleDependency.java
<gh_stars>1-10 package net.covers1624.wt.api.dependency; import net.covers1624.wt.api.workspace.WorkspaceModule; /** * Created by covers1624 on 8/9/19. */ public interface WorkspaceModuleDependency extends Dependency { WorkspaceModule getModule(); WorkspaceModuleDependency setModule(WorkspaceModule module...
YongJin-Cho/poseidonos
test/unit-tests/journal_manager/log_buffer/journal_write_context_test.cpp
#include "src/journal_manager/log_buffer/journal_write_context.h" #include <gtest/gtest.h> namespace pos { TEST(LogGroupResetContext, JournalResetContext_) { } TEST(LogGroupResetContext, GetLogGroupId_) { } TEST(LogGroupResetContext, ResetDone_) { } } // namespace pos
myleandrov/YogeshPateliOS
gruul/gruul-order-open/gruul-order-open-service/src/main/java/com/medusa/gruul/order/model/ManageDeliveryOrderVo.java
<filename>gruul/gruul-order-open/gruul-order-open-service/src/main/java/com/medusa/gruul/order/model/ManageDeliveryOrderVo.java<gh_stars>100-1000 package com.medusa.gruul.order.model; import com.fasterxml.jackson.annotation.JsonFormat; import com.medusa.gruul.order.api.enums.OrderTypeEnum; import io.swagger.annotation...
TheeBryanWhite/threepoint
src/redux/reducer/reducer.js
import { types } from "../constants/types"; const initialState = { activeSlide: 0, activeTeam: 0, activeWork: 0, footerVisible: false, headerVisible: false, inactiveSlide: null, inactiveTeam: null, inactiveWork: null, menuOpen: false, slideDirection: null }; export default (state = initialState, ac...
mohdab98/cmps252_hw4.2
src/cmps252/HW4_2/UnitTesting/record_2970.java
package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import cmps252.HW4_2....
MikuNyanya/RabbitBot
src/main/java/gugugu/service/ImageService.java
package gugugu.service; import gugugu.apirequest.saucenao.SaucenaoImageSearch; import gugugu.bots.LoggerRabbit; import gugugu.constant.ConstantCommon; import gugugu.constant.ConstantConfig; import gugugu.constant.ConstantImage; import gugugu.entity.ImageInfo; import gugugu.entity.apirequest.saucenao.SaucenaoSearchInfo...
Andres1599/store-arq
src/main/java/unis/stores/services/vehicle/IVehicleService.java
<reponame>Andres1599/store-arq package unis.stores.services.vehicle; import unis.stores.entities.Vehicle; import java.util.List; public interface IVehicleService { /** * Returns the vehicles of the system * * @return the list of the vehicles from the database. */ List<Vehicle> getVehi...
spatialcurrent/go-adaptive-functions
pkg/af/Repeat.go
<reponame>spatialcurrent/go-adaptive-functions<filename>pkg/af/Repeat.go // ================================================================= // // Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved // Released as open source under the MIT License. See LICENSE file. // // ==================================...
helios-h2020/socialgraphmining
src/main/java/eu/h2020/helios_social/modules/socialgraphmining/GNN/simulated_communication/UncertainAvailabilitySimulation.java
package eu.h2020.helios_social.modules.socialgraphmining.GNN.simulated_communication; import java.util.HashMap; import eu.h2020.helios_social.core.contextualegonetwork.Node; import mklab.JGNN.core.Tensor; public class UncertainAvailabilitySimulation extends EmbeddingExchangeProtocol { private static HashMap<String,...
vsawchuk/CPDBv2_frontend
src/js/reducers/social-graph-page/geographic-data/is-crs-requested.js
<filename>src/js/reducers/social-graph-page/geographic-data/is-crs-requested.js import { handleActions } from 'redux-actions'; import { LOCATION_CHANGE } from 'connected-react-router'; import { FIRST_PAGE_GEOGRAPHIC_CRS_REQUEST_SUCCESS } from 'utils/constants'; export default handleActions({ [FIRST_PAGE_GEOGRAPHIC_...
Tian97/LeetCodePracticeAndSummary
Companies/Microsoft/src/LongestSemiAlternatingSubstring.java
<reponame>Tian97/LeetCodePracticeAndSummary public class LongestSemiAlternatingSubstring { public class Solution { /** * @param s: the string * @return: length of longest semi alternating substring */ public int longestSemiAlternatingSubstring(String s) { // wr...
odidev/virgil-crypto-c
wrappers/python/virgil_crypto_lib/foundation/ctr_drbg.py
<gh_stars>10-100 # Copyright (C) 2015-2021 Virgil Security, 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: # # (1) Redistributions of source code must retain the above copyright # ...
coderxiang/incubator-flink
flink-examples/flink-java-examples/src/main/java/org/apache/flink/examples/java/graph/util/EnumTrianglesData.java
<gh_stars>1-10 /* * 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 * "...
eapowertools/masterlib
tests/deleteMetricsTest.js
var qsocks = require('qsocks'); var qsocksInstance = require('./qsocksInstance'); var fs = require('fs'); var Promise = require('bluebird'); var appId = '831bc2ea-a43b-46f7-9ad2-d843cb9c4764'; var app2Connect = qsocksInstance(appId); var stuff = {}; stuff.appId = appId; qsocks.Connect(app2Connect) .then(function(gl...
fossabot/evemonk
app/workers/eve/local_graphics_importer_worker.rb
<filename>app/workers/eve/local_graphics_importer_worker.rb # frozen_string_literal: true module Eve class LocalGraphicsImporterWorker include Sidekiq::Worker def perform(*) Eve::LocalGraphicsImporter.new.import end end end
j420247/platform_frameworks_support
car/core/src/main/java/androidx/car/util/CarUxRestrictionsHelper.java
/* * Copyright 2018 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...
JutelSiulad/Simulink2dL
Simulink2dL-Src/simulink2dl.transform/src/simulink2dl/transform/macro/SizePropagationMacro.java
/******************************************************************************* * Copyright (c) 2020 * AG Embedded Systems, University of Münster * SESE Software and Embedded Systems Engineering, TU Berlin * * Authors: * <NAME> * <NAME> * <NAME> * * Permission is hereby granted, free of charge, to any p...
PendaRed/sackfix
sackfix-common/src/main/scala/org/sackfix/field/AllocStatusField.scala
package org.sackfix.field import org.sackfix.common.validated.fields.SfFieldInt /** * Generated by SackFix code generator on 20210314 */ case class AllocStatusField(override val value: Int) extends SfFieldInt(87, value) { override def toString = appendStringBuilder().toString override def appendStringBu...
andr92/neptune
selenium/src/main/java/ru/tinkoff/qa/neptune/selenium/properties/SupportedWebDriverProperty.java
package ru.tinkoff.qa.neptune.selenium.properties; import ru.tinkoff.qa.neptune.core.api.properties.PropertyDefaultValue; import ru.tinkoff.qa.neptune.core.api.properties.PropertyDescription; import ru.tinkoff.qa.neptune.core.api.properties.PropertyName; import ru.tinkoff.qa.neptune.core.api.properties.enums.EnumPrope...
Almeida154/URI-ONLINE-JUDGE
JAVA/BEGINNER/Uri1002.java
package Beginner; // Circle Area import java.util.Scanner; public class Uri1002 { public static void main(String[] args){ double r,a; Scanner ler = new Scanner(System.in); r=ler.nextDouble(); a=3.14159*r*r; System.out.printf("A=%.4f\n", +a); } }
havocp/hwf
deps/spidermonkey/jsgc.cpp
<reponame>havocp/hwf<filename>deps/spidermonkey/jsgc.cpp<gh_stars>1-10 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sw=4 et tw=78: * * ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public...
C0DEC0L0NY/authentication-service-java
src/main/java/com/gregburgoon/authenticationservice/dto/CredentialsDTO.java
package com.gregburgoon.authenticationservice.dto; import com.gregburgoon.authenticationservice.constraint.ValidPassword; import com.gregburgoon.authenticationservice.constraint.group.PrimaryValidations; import com.gregburgoon.authenticationservice.constraint.group.SecondaryValidations; import lombok.Builder; import l...
kmikhailov-tmn/NaviGridContour
test/ru/navilab/grid/contour/WktShow.java
package ru.navilab.grid.contour; import javax.swing.*; import java.awt.*; /** * Created by: Mikhailov_KG * Date: 24.07.2020 */ public class WktShow { public static void main(String[] args) { Runnable runnable = new Runnable() { public void run() { WktShowForm wktShowForm = n...
em-mcg/cse223b-mesos
src/examples/long_lived_framework.cpp
<filename>src/examples/long_lived_framework.cpp<gh_stars>0 // 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 ...
abrahamtovarmob/flang
tools/flang2/flang2exe/dinit.h
<filename>tools/flang2/flang2exe/dinit.h /* * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * */ #ifndef DINIT_H_ #define DINIT_H_ /** \file * \brief (Fortran) de...
guzhigang001/MKDataDemo
lib/src/main/java/com/ggxiaozhi/lib/class9/class5/NumArray4.java
<gh_stars>0 package com.ggxiaozhi.lib.class9.class5; import com.ggxiaozhi.lib.class9.class1_4.Merger; import com.ggxiaozhi.lib.class9.class1_4.SegmentTree; /** * 307. 区域和检索 - 数组可修改 */ class NumArray4 { private SegmentTree<Integer> sg; public NumArray4(int[] nums) { if (nums.length > 0) { ...
iaugv27d98/ex
httpserver/system.go
<reponame>iaugv27d98/ex<filename>httpserver/system.go<gh_stars>1-10 package httpserver import ( "context" "fmt" "net/http" "github.com/circleci/ex/system" ) func Load(ctx context.Context, name, addr string, handler http.Handler, sys *system.System) (*HTTPServer, error) { server, err := New(ctx, name, addr, hand...
cu-coders/cucoders
src/components/resources/resources.js
<reponame>cu-coders/cucoders import React, { useState } from "react"; import { motion } from "framer-motion"; import tw from "twin.macro"; import styled from "styled-components"; import { css } from "styled-components/macro"; //eslint-disable-line import { Container, ContentWithPaddingXl } from "components/misc/Layouts...
iondv/ion-old-java-version-20140819
ion-modeler/src/ion/modeler/resources/IonSectionResource.java
package ion.modeler.resources; import ion.viewmodel.plain.StoredNavSection; import org.eclipse.core.resources.IFile; public class IonSectionResource extends IonFileBasedResource { public IonSectionResource(IFile src, StoredNavSection section) { super(src); refresh(section); } public void refresh(StoredNav...
broken98/QueryItSmart
src/reducers/forecastReducers.js
import _ from 'lodash' import { types } from '../actions/index' import { bytesToSize } from '../utils' import TEMPERATURES from '../data/average_temperatures.json' import { TIME_MAP } from '../const' const location = "newyork" const unit = "fahrenheit" const averageTemperature = (month) => _.get(TEMPERATURES, `${loca...
axetang/AxePython
PyMOTW/source/dis/dis_faster_loop.py
<gh_stars>1-10 #!/usr/bin/env python3 # encoding: utf-8 import string class Dictionary: def __init__(self, words): self.by_letter = { letter: [] for letter in string.ascii_letters } self.load_data(words) def load_data(self, words): for word in words: ...
h-rover/gtsam
gtsam/nonlinear/Values.h
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * ------------...
Shashi-rk/azure-sdk-for-java
sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java
<filename>sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resour...
masud-technope/ACER-Replication-Package-ASE2017
corpus/class/eclipse.pde.ui/5016.java
/******************************************************************************* * Copyright (c) 2006, 2015 IBM Corporation and others. * 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...
hluk/product-definition-center
pdc/apps/release/filters.py
# # Copyright (c) 2015 Red Hat # Licensed under The MIT License (MIT) # http://opensource.org/licenses/MIT # import django_filters from pdc.apps.common import filters from .models import Release, ProductVersion, Product, ReleaseType, Variant, CPE, VariantCPE, BaseProduct, ReleaseGroup class ActiveReleasesFilter(filt...
dgeb/cardstack
packages/codegen/cardstack/middleware.js
<reponame>dgeb/cardstack const { declareInjections } = require("@cardstack/di"); const route = require("koa-better-route"); const compose = require("koa-compose"); const { transform } = require("@babel/core"); module.exports = declareInjections( { // TODO: the code-generators service really belongs in this packa...
jacqt/alasql
test/test160.js
if (typeof exports === 'object') { var assert = require('assert'); var alasql = require('..'); } else { __dirname = '.'; } //if(typeof exports == 'object') { if (false) { var DOMStorage = require('dom-storage'); global.localStorage = new DOMStorage('./test159.json', {strict: false, ws: ''}); descr...
vollmerr/state-template
src/lib/components/Form/Form.test.js
import React from 'react'; import { shallow } from 'enzyme'; import { Form as fromLib } from '../..'; import defaultExport, { Form } from './Form'; const props = { handleSubmit: jest.fn(), onSubmit: jest.fn(), children: <div>children...</div>, }; let wrapper; describe('Form', () => { beforeEach(() => { w...
peter-y/sample-spring-framework
spring-framework-basic/src/main/java/com/ycz/spring/framework/sample/aoptx/UnsupportOperationException.java
package com.ycz.spring.framework.sample.aoptx; public class UnsupportOperationException extends RuntimeException { }
sargassum-world/fluitans
pkg/godest/template-fingerprints.go
package godest import ( "bytes" _ "embed" "encoding/json" "net/http" "github.com/pkg/errors" ) type fingerprints struct { app string page map[string]string } func (f fingerprints) getEtagSegments(templateName string) ([]string, error) { if templateName == "" { return []string{f.app}, nil } pageFingerp...
Dream101/ftme
ftme/src/com/ftme/common/model/base/BaseRole.java
<gh_stars>0 package com.ftme.common.model.base; import com.jfinal.plugin.activerecord.Model; import com.jfinal.plugin.activerecord.IBean; /** * Generated by JFinal, do not modify this file. */ @SuppressWarnings("serial") public abstract class BaseRole<M extends BaseRole<M>> extends Model<M> implements IBean { pub...
Robbbert/messui
src/devices/machine/stvcd.h
// license:LGPL-2.1+ // copyright-holders:<NAME>, <NAME> #ifndef MAME_MACHINE_STVCD_H #define MAME_MACHINE_STVCD_H #pragma once #include "cdrom.h" #include "imagedev/chd_cd.h" #include "machine/timer.h" #include "sound/cdda.h" class stvcd_device : public device_t, public device_mixer_interface, public d...
nomos/go-lokas
util/ringbuffer.go
package util import ( "fmt" "github.com/nomos/go-lokas/log" "github.com/nomos/go-lokas/util/slice" "sync" ) type RingBuffer struct { elements []interface{} first int last int size int capacity int end int mutex sync.RWMutex } func NewRingBuffer(capacity int) *RingBuffer { ret := &RingB...
philip-alldredge/AGREE
com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/agree/impl/WheneverImpliesStatementImpl.java
/** */ package com.rockwellcollins.atc.agree.agree.impl; import com.rockwellcollins.atc.agree.agree.AgreePackage; import com.rockwellcollins.atc.agree.agree.Expr; import com.rockwellcollins.atc.agree.agree.WheneverImpliesStatement; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.noti...
alexavila150/luciddb
farrago/src/net/sf/farrago/session/FarragoSessionModelExtension.java
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
itsraina/whs.js
tools/jestPreprocess.js
const babelConfig = require('../.babelrc').env.test; module.exports = require('babel-jest').createTransformer(babelConfig);
gatordevin/BoofCV
main/boofcv-geo/src/test/java/boofcv/alg/geo/pose/TestPnPInfinitesimalPlanePoseEstimation.java
/* * Copyright (c) 2020, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * 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...
yuanliangding/qxcmp-framework
qxcmp-core/src/main/java/com/qxcmp/account/form/AccountResetPhoneForm.java
package com.qxcmp.account.form; import com.qxcmp.account.AccountCode; import com.qxcmp.core.validation.Phone; import com.qxcmp.web.view.annotation.form.Form; import com.qxcmp.web.view.annotation.form.PhoneCaptchaField; import com.qxcmp.web.view.annotation.form.PhoneField; import lombok.Data; /** * 手机账户密码找回平台统一表单 * ...
guileschool/BEAGLEBONE-tutorials
BBB-firmware/u-boot-v2015.10-rc2/arch/arm/mach-exynos/pinmux.c
<gh_stars>1-10 /* * Copyright (c) 2012 Samsung Electronics. * <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <fdtdec.h> #include <asm/gpio.h> #include <asm/arch/pinmux.h> #include <asm/arch/sromc.h> static void exynos5_uart_config(int peripheral) { int i, start, count; ...
shaoweijin/ralasafe-ggd543
orm/org/ralasafe/db/sql/QueryFactory.java
<reponame>shaoweijin/ralasafe-ggd543 /** * Copyright (c) 2004-2011 <NAME>(<NAME>), http://www.ralasafe.com * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php */ package org.ralasafe.db.sql; import org.ralasafe.RalasafeException; import org.ralasafe.db.*; import org.ralasafe.db.sql....
arxitics/arxiv-analytics
models/oss.js
<reponame>arxitics/arxiv-analytics /** * Aliyun OSS. */ var fs = require('fs'); var url = require('url'); var http = require('http'); var path = require('path'); var crypto = require('crypto'); var multer = require('multer'); var file = require('./file'); var mime = require('./mime'); var settings = require('../sett...