repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
BetterIgor/rexxar-android | sample/src/main/java/com/douban/rexxar/example/MainApplication.java | package com.douban.rexxar.example;
import android.app.Application;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import com.douban.rexxar.Rexxar;
import com.douban.rexxar.resourceproxy.ResourceProxy;
import com.douban.rexxar.route.RouteManager;
import java.util.ArrayList;
import ja... |
myrepo5588/porta | test/unit/helpers/messages_helper_test.rb | require File.expand_path(File.dirname(__FILE__) + '/../../test_helper')
class MessagesHelperTest < ActionView::TestCase
include Buyers::AccountsHelper
attr_accessor :current_account
def can?(*)
true
end
context 'message_receiver' do
setup do
@buyer_receiver = FactoryBot.create(:buyer_account)... |
antopen/alipay-sdk-java-all | src/main/java/com/alipay/api/domain/AlipayUserJobcardApplySyncModel.java | package com.alipay.api.domain;
import java.util.Date;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 小蓝卡用户岗位申请状态同步
*
* @author <NAME>
* @since 1.0, 2022-01-26 17:32:25
*/
public class AlipayUserJobcardApplySyncModel extends AlipayObject {
private static final long s... |
donrestarone/violet_rails | app/controllers/content_controller.rb | class ContentController < ApplicationController
before_action :track_ahoy_visit, raise: false
end
|
borgesai/borges.ai | publisher/sqs.go | <filename>publisher/sqs.go
package publisher
import (
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sqs"
"github.com/segmentio/ksuid"
logger "github.com/sirupsen/logrus"
)
var sqsLogger = logger.WithField("module", "sqs")
func makeSQSConn() (*s... |
grace-shopper-team-it/grace-shopper | server/api/productOrders.js | <reponame>grace-shopper-team-it/grace-shopper
const router = require('express').Router();
const { ProductOrder } = require('../db/models');
// this route will be receiving products when they're ordered -cj
// api/orderItems
router.post('/', async (req, res) => {
try {
await ProductOrder.bulkCreate(req.body... |
greenpau/pycherwell | test/test_users_api.py | # coding: utf-8
"""
Cherwell REST API
Unofficial Python Cherwell REST API library. # noqa: E501
The version of the OpenAPI document: 9.3.2
Contact: See AUTHORS.
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import pycherwell
from pych... |
panos/haikudepotserver | haikudepotserver-core/src/main/java/org/haiku/haikudepotserver/dataobjects/auto/_PkgPkgCategory.java | <reponame>panos/haikudepotserver
package org.haiku.haikudepotserver.dataobjects.auto;
import org.apache.cayenne.exp.Property;
import org.haiku.haikudepotserver.dataobjects.PkgCategory;
import org.haiku.haikudepotserver.dataobjects.PkgSupplement;
import org.haiku.haikudepotserver.dataobjects.support.AbstractDataObject;... |
miw-upm/apaw-practice | src/main/java/es/upm/miw/apaw_practice/adapters/mongodb/tennis_courts/persistence/CourtPersistenceMongoDB.java | <gh_stars>1-10
package es.upm.miw.apaw_practice.adapters.mongodb.tennis_courts.persistence;
import es.upm.miw.apaw_practice.adapters.mongodb.tennis_courts.daos.CourtRepository;
import es.upm.miw.apaw_practice.adapters.mongodb.tennis_courts.entities.EquipmentEntity;
import es.upm.miw.apaw_practice.domain.exceptions.Not... |
kalufya/snow-owl | fhir/com.b2international.snowowl.fhir.core/src/com/b2international/snowowl/fhir/core/model/dt/Period.java | /*
* Copyright 2018-2021 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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... |
ClearControl/ClearCLIJ | src/test/java/net/haesleinhuepf/clij/macro/modules/Crop3DTest.java | package net.haesleinhuepf.clij.macro.modules;
import net.haesleinhuepf.clij.clearcl.ClearCLBuffer;
import net.haesleinhuepf.clij.clearcl.ClearCLImage;
import ij.IJ;
import ij.ImagePlus;
import ij.gui.Roi;
import ij.plugin.Duplicator;
import net.haesleinhuepf.clij.CLIJ;
import net.haesleinhuepf.clij.kernels.Kernels;
im... |
acrylplatform/dex | dex/src/main/scala/com/acrylplatform/dex/settings/OrderFeeSettings.scala | package com.acrylplatform.dex.settings
import cats.data.Validated.Valid
import cats.implicits._
import com.acrylplatform.dex.settings.AssetType.AssetType
import com.acrylplatform.dex.settings.FeeMode.FeeMode
import com.acrylplatform.settings.Constants
import com.acrylplatform.settings.utils.ConfigSettingsValidator
imp... |
js-lib-com/tiny-container | src/test/java/js/tiny/container/http/unit/EncoderKeyTest.java | <gh_stars>0
package js.tiny.container.http.unit;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.List;
import org.junit.Test;
import js.lang.GType;
import js.tiny.container.http.ContentType;
import js.tiny.container... |
nattyco/fermatold | CCP/library/api/fermat-ccp-api/src/main/java/com/bitdubai/fermat_ccp_api/layer/basic_wallet/discount_wallet/enums/FiatAccountTypes.java | package com.bitdubai.fermat_ccp_api.layer.basic_wallet.discount_wallet.enums;
import com.bitdubai.fermat_api.layer.all_definition.exceptions.InvalidParameterException;
/**
* Created by ciencias on 2/15/15.
*/
public enum FiatAccountTypes {
//Modified by <NAME> on 05/08/2015
SAVINGS_ACCOUNT("SAVA"),
CUR... |
mybsktb/ant-d | node_modules/@antv/g2/lib/component/axis/polyline.js | <gh_stars>0
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } r... |
SCOTT-HAMILTON/OTPGen | Source/Gui/Windows/MainWindow.hpp | #ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <memory>
#include <QLayout>
#include <QSystemTrayIcon>
#include <QEvent>
#include <QTimer>
#include <QShortcut>
#include <QClipboard>
#include <WidgetHelpers/QRootWidget.hpp>
class MainWindow : public QRootWidget
{
Q_OBJECT
public:
MainWindow(QWidget... |
AlvaWang/spring-may | src/main/java/net/bambooslips/demo/jpa/service/Impl/EducationExperionceServiceImpl.java | package net.bambooslips.demo.jpa.service.Impl;
import net.bambooslips.demo.exception.EducationExperionceNotFoundException;
import net.bambooslips.demo.exception.PostNotFoundException;
import net.bambooslips.demo.exception.TeamEssentialNotFoundException;
import net.bambooslips.demo.exception.TeamResponsiblePersonNotFou... |
wedataintelligence/vivaldi-source | chromium/components/scheduler/renderer/throttling_helper.h | <gh_stars>0
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SCHEDULER_RENDERER_THROTTLING_HELPER_H_
#define COMPONENTS_SCHEDULER_RENDERER_THROTTLING_HELPER_H_
#include <set>
#includ... |
eIGato/mahjong-portal | server/rating/management/commands/rating_future.py | import csv
import datetime
from django.core.management.base import BaseCommand
from django.utils import timezone
from player.models import Player
from rating.calculation.rr import RatingRRCalculation
from rating.models import Rating, RatingDelta, RatingResult, TournamentCoefficients
from tournament.models import Tour... |
jaywangpeng/C-Primer-Plus-5th-Exercises | 16/16-5.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define MAXLEN 10
void prnt_nums(int array[], int n, int count) {
int i;
srand((unsigned int)time(0));
while (count--) {
i = rand() % n;
printf("%d ", array[i]);
}
putchar('\n');
}
int main(void) {
int count, ... |
TakuKitamura/expirefile-syscall | linux-5.2/drivers/media/rc/keymaps/rc-total-media-in-hand.c | // SPDX-License-Identifier: GPL-2.0-or-later
/*
* Total Media In Hand remote controller keytable
*
* Copyright (C) 2010 <NAME> <<EMAIL>>
*/
#include <media/rc-map.h>
#include <linux/module.h>
/* Uses NEC extended 0x02bd */
static struct rc_map_table total_media_in_hand[] = {
{ 0x02bd00, KEY_1 },
{ 0x02bd01, KEY... |
cidermole/yaca | src/embedded/libyaca/main.c | #include <avr/io.h>
#include <avr/pgmspace.h>
#include <avr/interrupt.h>
#include <inttypes.h>
#include "yaca.h"
#include "../bootloader/eeprom.h"
int __attribute__ ((weak)) main(void);
#ifdef YACA_INT1
void __attribute__ ((naked, signal, __INTR_ATTRS)) INT1_vect(void);
#else
void __attribute__ ((naked, signal, __INT... |
faliester/opentrons | protocol-designer/src/modules/moduleData.js | <filename>protocol-designer/src/modules/moduleData.js
// @flow
import { SPAN7_8_10_11_SLOT } from '../constants'
import {
MAGNETIC_MODULE_TYPE,
TEMPERATURE_MODULE_TYPE,
THERMOCYCLER_MODULE_TYPE,
} from '@opentrons/shared-data'
import type { ModuleRealType } from '@opentrons/shared-data'
import type { DropdownOpti... |
ndlib/hydra_vra | spec/models/generic_image_spec.rb | require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require "active_fedora"
describe GenericImage do
before(:each) do
Fedora::Repository.stubs(:instance).returns(stub_everything())
@hydra_image = GenericImage.new
end
it "Should be a kind of ActiveFedora::Base" do
@hydra_image.... |
bhathiya/andes | modules/andes-core/perftests/src/main/java/org/wso2/andes/client/topic/Config.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"); y... |
alkaplan/junior-csx | workspace_compadre/osp/src/org/opensourcephysics/resources/controls/controls_res.java | package org.opensourcephysics.resources.controls;
import java.io.IOException;
import java.io.InputStream;
import java.util.PropertyResourceBundle;
/**
* Default resource loader for the OSP display package. Resources are obtained from properties.
*
* Defining a Java resource class speeds up resource loadin... |
13939094104/Gtokrn | app/src/main/java/vdsMain/table/AbstractTable.java | package vdsMain.table;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.vc.libcommon.exception.AddressFormatException;
import generic.exceptions.UnsupportAddressException;
import vdsMain.db.DataBaseHelper;
/* renamed from: fx */
public abstract ... |
m-zakeri/benchmark | make_1.4/make/inputs/sdir-cov11/src/m/hp9000s300.h | /* machine description file for hp9000 series 200 or 300 on either HPUX or BSD.
Copyright (C) 1985 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs 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 ... |
timcera/tstoolbox | src/tstoolbox/functions/rank.py | # -*- coding: utf-8 -*-
"""Collection of functions for the manipulation of time series."""
from __future__ import absolute_import, division, print_function
import mando
import pandas as pd
import typic
from mando.rst_text_formatter import RSTHelpFormatter
from .. import tsutils
try:
from typing import Literal
e... |
lechium/tvOS10Headers | System/Library/PrivateFrameworks/GeoServices.framework/GEOPDComponentValue.h | <gh_stars>1-10
/*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:03:34 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
* classdump-dyld is licensed under GPLv3, Copyright ©... |
nogamenofun98/openreplay | ee/connectors/db/tables.py | from pathlib import Path
base_path = Path(__file__).parent.parent
def create_tables_clickhouse(db):
with open(base_path / 'sql' / 'clickhouse_events.sql') as f:
q = f.read()
db.engine.execute(q)
print(f"`connector_user_events` table created succesfully.")
with open(base_path / 'sql' / 'click... |
mattbierner/atum | lib/builtin/meta/language_function.js | /**
* @fileOverview Language function meta
*/
define(['exports',
'bes/record',
'atum/compute',
'atum/fun',
'atum/builtin/meta/func',
'atum/operations/declaration_binding',
'atum/operations/environment',
'atum/operations/execution_context',
'atum/operatio... |
Andrettin/Metternich | script/condition/has_trait_condition.h | <gh_stars>10-100
#pragma once
#include "character/trait.h"
#include "script/condition/condition.h"
#include "script/condition/condition_check_base.h"
namespace metternich {
class trait;
template <typename T>
class has_trait_condition final : public condition<T>
{
public:
has_trait_condition(const std::string &trai... |
AnupamJha/Swiggy_CloudOptimise | nerdlets/cloud-optimize-core/components/home/index.js | <reponame>AnupamJha/Swiggy_CloudOptimise<filename>nerdlets/cloud-optimize-core/components/home/index.js
import React from 'react';
import { DataConsumer } from '../../context/data';
import { Loader, Dimmer, Header } from 'semantic-ui-react';
import Tiles from './tiles';
export default class Home extends React.PureComp... |
smourapina/algorithms | src/main/java/iurii/job/interview/amazon/CountNegativeIntegersInRowColumnWiseSortedMatrix.java | <gh_stars>10-100
package iurii.job.interview.amazon;
/**
* There is a matrix each row and each column is sorted ascending.
* Count the number of negative numbers
*
* https://www.youtube.com/watch?v=5dJSZLmDsxk
*
* Example
* -3, -2, -1, 1
* -2, 2, 3, 4
* 4, 5, 7, 8
* Answer: 4 (-3, -2, -2, -1)
*
* Solutio... |
yqboots/platform-services | commerce/order-fulfillment/src/main/java/com/yqboots/commerce/order/fulfillment/OrderFulfillmentApplication.java | <reponame>yqboots/platform-services<gh_stars>0
package com.yqboots.commerce.order.fulfillment;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class OrderFulfillmentApplication {
public static void main(String[] ... |
sgholamian/log-aware-clone-detection | LACCPlus/ActiveMQ/143_2.java | <reponame>sgholamian/log-aware-clone-detection<filename>LACCPlus/ActiveMQ/143_2.java
//,temp,JournalTopicMessageStore.java,121,130,temp,JournalMessageStore.java,124,132
//,3
public class xxx {
public void afterRollback() throws Exception {
if (debug) {
LOG.deb... |
xiaohaijin/RHIC-STAR | StRoot/StSpinPool/StChargedPionAnalysisMaker/StChargedPionBaseEv.cxx | // $Id: StChargedPionBaseEv.cxx,v 1.2 2010/09/02 02:46:34 perev Exp $
#include "StChargedPionBaseEv.h"
#include <utility>
using std::make_pair;
ClassImp(StChargedPionBaseEv)
// static member initialization
static std::pair<unsigned int, unsigned int> a[] = {
make_pair( 96011, 0x00000001),
make_pair( 96201, ... |
6391-Ursuline-Bearbotics/2022_UARobotics_Rapid_React | src/main/java/frc/robot/commands/Straight.java | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import com.pathplanner.lib.PathPlanner;
import com.pathplanner.lib.PathPlannerTrajectory;
... |
DataBiosphere/terra-resource-janitor | src/main/java/bio/terra/janitor/db/TrackedResourceId.java | package bio.terra.janitor.db;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import com.fasterxml.jackson.databind.annotation.... |
dylanngo95/vitess | go/vt/vttablet/tabletmanager/replmanager_test.go | <reponame>dylanngo95/vitess
/*
Copyright 2020 The Vitess Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... |
yeastrc/proxl-web-app | proxl_web_app/src/main/java/org/yeastrc/xlink/www/file_import_proxl_xml_scans/utils/Minimal_Validate_ProxlXMLFile_AndGetSearchNameIfInFile.java | package org.yeastrc.xlink.www.file_import_proxl_xml_scans.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import javax.xml.stream.FactoryConfigurationError;
import javax.xml.stream.XMLEv... |
huangjianqin/kin-scheduler | kin-scheduler-core/src/main/java/org/kin/scheduler/core/driver/scheduler/TaskExecCallback.java | package org.kin.scheduler.core.driver.scheduler;
import org.kin.scheduler.core.task.domain.TaskStatus;
import java.io.Serializable;
/**
* task执行完成callback
*
* @author huangjianqin
* @date 2020-03-09
*/
public interface TaskExecCallback<R extends Serializable> {
/**
* @param taskId taskId
* @pa... |
ceekay1991/AliPayForDebug | AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/AUULView.h | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <UIKit/UIView.h>
@class NSArray;
@interface AUULView : UIView
{
double _width;
NSArray *_items;
}
@property(copy, nonatomi... |
jdekim43/terra.proto | js/src/terra/market/v1beta1/tx_pb.js | <gh_stars>0
// source: terra/market/v1beta1/tx.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
... |
aiw-google/openweave-core | third_party/android/platform-libcore/android-platform-libcore/luni/src/test/java/org/apache/harmony/sql/tests/java/sql/DatabaseMetaDataTest.java | <filename>third_party/android/platform-libcore/android-platform-libcore/luni/src/test/java/org/apache/harmony/sql/tests/java/sql/DatabaseMetaDataTest.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for ad... |
gsnedders/presto-testo | core/standards/scripts/opjsunit/tests/testURI_spec.js | var uri_reserved = [";", "/", "?", ":", "@", "&", "=", "+", "$", ","];
var uri_alpha = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l",
"m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x",
"y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J",
"K", "L", "M", "N", "O", "P", "Q", "R", "S"... |
ahthamrin/kbri-admin2 | src/routes/app/routes/ui/routes/callToActions/components/CallToActions.js | <reponame>ahthamrin/kbri-admin2<gh_stars>0
import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import QueueAnim from 'rc-queue-anim';
const mWidthStyle = {
minWidth: '135px'
};
const Section1 = () => (
<div className="container-fluid with-maxwidth">
<article className="article">
... |
Rita-Bernstein/downfall-rebalance | src/main/java/charbosses/relics/CBR_Ectoplasm.java | package charbosses.relics;
import charbosses.bosses.AbstractCharBoss;
import charbosses.cards.AbstractBossCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.core.EnergyManager;
import com.megacrit.cardcrawl.helpers.Power... |
fspbld/skiboot | hdata/paca.c | <gh_stars>1-10
/* Copyright 2013-2014 IBM Corp.
*
* 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 o... |
Prasunjais/freightDeck-FE | src/pages/index.js | /* Auth Layout - healthCareProvider */
export { Login, Register, VerifyOTP } from './Auth';
/* Auth Layout - admin */
export { AdminLogin, AdminVerifyOTP } from './Auth';
/* HealthCareProvider Layout */
export { HCPAppointments } from './HealthCareProvider';
|
gdmcbain/quadpy | quadpy/enr/tools.py | <filename>quadpy/enr/tools.py<gh_stars>1-10
# -*- coding: utf-8 -*-
#
import numpy
def integrate(f, rule, dot=numpy.dot):
flt = numpy.vectorize(float)
return dot(f(flt(rule.points).T), flt(rule.weights))
|
lucastb1988/Pharma | src/main/java/br/com/lucas/pharma/service/FabricanteService.java | package br.com.lucas.pharma.service;
import java.util.List;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import com.google.gson.Gson;
import br.com.lucas.pharma.dao.FabricanteDAO;
import br.com.lucas.pharma... |
morenes/infoArt-Server | src/algorithms/anfis/LeastSquareEstimator.java | package algorithms.anfis;
/**
*
* @author <NAME>
*/
public class LeastSquareEstimator {
}
|
ScalablyTyped/scala-st-node | scala-st-node/src/main/scala/org.scalablytyped.node/node/workerThreadsMod/workerData.scala | <reponame>ScalablyTyped/scala-st-node
package org.scalablytyped.node.node.workerThreadsMod
import org.scalablytyped.runtime.TopLevel
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation._
@JSImport("worker_threads", "workerData")
@js.native
object workerData
extends TopLevel[js.Any... |
WaitrInc/targaryen | docs/chai/examples/failing.js | 'use strict';
// in your app this would be require('targaryen/plugins/chai')
const targaryen = require('../../../plugins/chai');
const chai = require('chai');
const expect = chai.expect;
const users = targaryen.users;
const path = require('path');
const rules = targaryen.json.loadSync(path.join(__dirname, 'rules.json'... |
SPixs/TinyGB | src/main/java/com/s2soft/tinygb/mmu/GBMemoryNA.java | package com.s2soft.tinygb.mmu;
public class GBMemoryNA extends AbstractAddressable {
// ============================ Constants ==============================
// =========================== Attributes ==============================
// =========================== Constructor ==========================... |
gustavotonini/pgGrid | src/include/replicate_com.h | <reponame>gustavotonini/pgGrid<filename>src/include/replicate_com.h
/*-------------------------------------------------------------------------
*
* replicate.h
* Primary include file for replicate server .c files
*
* This should be the first file included by replicate modules.
*
*------------------------------... |
lovemomia/sogokids | src/main/java/com/sogokids/common/config/LoggerConfigurer.java | package com.sogokids.common.config;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.LoggerContext;
import org.apache.commons.configuration.XMLConfiguration;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggerConfigurer {
priva... |
mitxael/SSHIVA | src/graph-lib/homology/Gudhi/include/gudhi/Skeleton_blocker/Skeleton_blocker_simple_geometric_traits.h | /* This file is part of the Gudhi Library. The Gudhi library
* (Geometric Understanding in Higher Dimensions) is a generic C++
* library for computational topology.
*
* Author(s): <NAME>
*
* Copyright (C) 2014 INRIA
*
* This program is free software: you can redistribute it and/or modif... |
Raman-Sapient/react-aem-starterkit | src/platform/components/ConfigContext/index.js | <filename>src/platform/components/ConfigContext/index.js
import React, { Component } from 'react';
import ConfigContext from './createContext';
class ConfigConsumer extends Component {
addConfigToChildren = context => {
return React.Children.map(this.props.children, (child, i) => {
let config = {};
c... |
mauzey1/scream | components/scream/src/physics/shoc/tests/shoc_unit_tests_common.hpp | #ifndef SHOC_UNIT_TESTS_COMMON_HPP
#define SHOC_UNIT_TESTS_COMMON_HPP
#include "physics/shoc/shoc_functions.hpp"
#include "share/scream_types.hpp"
#include "ekat/kokkos/ekat_kokkos_utils.hpp"
namespace scream {
namespace shoc {
namespace unit_test {
/*
* Unit test infrastructure for shoc unit tests.
*
* shoc enti... |
yyakun/TBLibrary | TBLibrary/Classes/TBKit/Core/TBTipView.h | //
// TBTipView.h
// TBLibrary
//
// Created by 杨亚坤 on 2017/3/13.
// Copyright © 2017年 yyk. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TBTipView : UIView
@property (nonatomic, strong, readonly) UILabel *label;
@end
|
maciejg-git/vue-bootstrap-icons | dist-mdi/mdi/pail-off-outline.js | <gh_stars>0
import { h } from 'vue'
export default {
name: "PailOffOutline",
vendor: "Mdi",
type: "",
tags: ["pail","off","outline"],
render() {
return h(
"svg",
{"xmlns":"http://www.w3.org/2000/svg","width":"24","height":"24","viewBox":"0 0 24 24","class":"v-icon","fill":"currentColor","data-... |
OpenMPDK/SMDK | src/app/voltdb/voltdb_src/src/frontend/org/voltdb/client/ClientUtils.java | <gh_stars>10-100
/* This file is part of VoltDB.
* Copyright (C) 2008-2020 VoltDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at yo... |
kit-transue/software-emancipation-discover | newntui/discovermdi/src/WaitDlg.cpp | <gh_stars>1-10
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Red... |
yndu13/aliyun-openapi-python-sdk | aliyun-python-sdk-iotcc/aliyunsdkiotcc/request/v20210513/ListIoTCloudConnectorGroupsRequest.py | <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 the Apache License, Version 2.0 (the
# "License"); y... |
Deependra-Patel/hadoop-connectors | gcs/src/test/java/com/google/cloud/hadoop/fs/gcs/contract/AbstractGoogleContractConcatTest.java | <reponame>Deependra-Patel/hadoop-connectors
package com.google.cloud.hadoop.fs.gcs.contract;
import static org.apache.hadoop.fs.contract.ContractTestUtils.assertFileHasLength;
import static org.apache.hadoop.fs.contract.ContractTestUtils.createFile;
import static org.apache.hadoop.fs.contract.ContractTestUtils.dataset... |
Hotels4Hope/static-assets | ares/src/62635.js | import '../site_configs/lolla_22-62635/js/62635';
import '../site_configs/lolla_22-62635/styles/62635.scss';
|
DLotts/incubator-rya | extras/rya.merger/src/test/java/org/apache/rya/accumulo/mr/merge/demo/util/DemoUtilities.java | <filename>extras/rya.merger/src/test/java/org/apache/rya/accumulo/mr/merge/demo/util/DemoUtilities.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 ownersh... |
eneufeld/emfcloud-modelserver | bundles/org.eclipse.emfcloud.modelserver.emf/src/org/eclipse/emfcloud/modelserver/emf/common/DefaultSessionController.java | /********************************************************************************
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0, o... |
tommyettinger/assorted-benchmarks | jmh/src/main/java/de/heidelberg/pvs/container_bench/factories/JDKIntSetFact.java | <gh_stars>1-10
package de.heidelberg.pvs.container_bench.factories;
import java.util.Set;
import java.util.function.Supplier;
public enum JDKIntSetFact {
JDK_HASH(java.util.HashSet::new), //
JDK_LINKEDHASH(java.util.LinkedHashSet::new), //
JDK_TREE(java.util.TreeSet::new), //
KOLOBOKE_HASH(com.koloboke.collect.s... |
IOR-BIC/ALBA | Operations/albaOpExporterAnsysCommon.cpp | <gh_stars>1-10
/*=========================================================================
Program: ALBA
Module: albaOpExporterAnsysCommon.cpp
Authors: <NAME>, <NAME>
Copyright (c) BIC
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed WITHOUT AN... |
lileishen/eladmin-plus-contract | eladmin-common/src/main/java/com/yntovi/annotation/Scene.java | package com.yntovi.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 场景值注解 用于标识参数字段 是场景值字段
* @author fanglei
* @date 2021/09/06
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNT... |
houdangdang/HXCategories | Example/HXCategories/HXAppDelegate.h | //
// HXAppDelegate.h
// HXCategories
//
// Created by <EMAIL> on 04/17/2019.
// Copyright (c) 2019 <EMAIL>. All rights reserved.
//
@import UIKit;
@interface HXAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
ko101/softlayer-python | SoftLayer/fixtures/SoftLayer_Product_Package.py | <gh_stars>0
# pylint: skip-file
HARDWARE_ITEMS = [
{'attributes': [],
'capacity': '999',
'description': 'Unknown',
'itemCategory': {'categoryCode': 'unknown', 'id': 325},
'keyName': 'UNKNOWN',
'prices': [{'accountRestrictions': [],
'currentPriceFlag': '',
'... |
xingxingt/zeus | src/main/java/com/ctrip/zeus/restful/resource/TrafficPolicyResource.java | package com.ctrip.zeus.restful.resource;
import com.ctrip.zeus.exceptions.ValidationException;
import com.ctrip.zeus.model.entity.TrafficPolicy;
import com.ctrip.zeus.restful.message.QueryParamRender;
import com.ctrip.zeus.restful.message.ResponseHandler;
import com.ctrip.zeus.restful.message.TrimmedQueryParam;
import... |
JianYT/mobile-sdk | all/native/vectorelements/CustomPopup.h | /*
* Copyright (c) 2016 CartoDB. All rights reserved.
* Copying and using this code is allowed only according
* to license terms, as given in https://cartodb.com/terms/
*/
#ifndef _CARTO_CUSTOMPOPUP_H_
#define _CARTO_CUSTOMPOPUP_H_
#include "components/DirectorPtr.h"
#include "core/MapPos.h"
#include "core/Screen... |
5267/QUANTAXIS | QUANTAXIS/QAUtil/QASetting.py | from QUANTAXIS.QAUtil import QA_util_log_info,QA_util_sql_mongo_setting
from QUANTAXIS.QASU.user import QA_user_sign_in,QA_user_sign_up
class QA_Setting():
QA_util_sql_mongo_ip='127.0.0.1'
QA_util_sql_mongo_port='27017'
client=QA_util_sql_mongo_setting(QA_util_sql_mongo_ip,QA_util_sql_mongo_port)
... |
societies/SOCIETIES-SCE-Services | 3rdPartyServices/StudentServices/CrowdTasking/android/src/org/societies/integration/service/ServiceClientBase.java | package org.societies.integration.service;
import org.societies.api.schema.identity.RequestorBean;
import org.societies.thirdpartyservices.crowdtasking.MainActivity;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import an... |
kerimkeskin/Meditation-App | src/screens/MusicScreen.js | <reponame>kerimkeskin/Meditation-App
import React from "react";
import {
StyleSheet,
Text,
View,
Dimensions,
SafeAreaView,
TouchableOpacity,
} from "react-native";
import MusicBG from "../assets/images/MusicScreen/BG-Music";
import colors from "../assets/colors/colors";
import Player from "../components/Pla... |
tufeigunchu/orbit | src/FuzzingUtils/include/FuzzingUtils/ProtoFuzzer.h | <gh_stars>1000+
// Copyright (c) 2021 The Orbit 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 FUZZING_UTILS_PROTO_FUZZER_H_
#define FUZZING_UTILS_PROTO_FUZZER_H_
#include <libfuzzer/libfuzzer_macro.h>
#include <functional... |
Wangyanjunai/find-master | find-common/src/main/java/com/potato369/find/common/enums/StatusEnum.java | package com.potato369.find.common.enums;
//状态枚举
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusEnum implements CodeEnum<Integer> {
Enabled(0, "启用"),
Disabled(1, "禁用"),
;
private Integer code;
... |
goodmind/FlowDefinitelyTyped | flow-types/types/istanbul-lib-instrument_vx.x.x/flow_v0.25.x-/istanbul-lib-instrument.js | <reponame>goodmind/FlowDefinitelyTyped
declare module "istanbul-lib-instrument" {
import type {
FileCoverage,
FileCoverageData,
Range
} from "istanbul-lib-coverage";
import type { RawSourceMap } from "source-map";
import typeof * as babelTypes from "babel-types";
declare export interface Instru... |
fracly/algorithm_engine | escheduler-dao/src/main/java/cn/escheduler/dao/model/ReportFrom.java | <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 the Apache License, Version 2.0
* (the "License... |
bsayed/jsshaper | src/ecma-ops/ecma-ops.js | <gh_stars>10-100
"use strict"; "use restrict";
var require = require || function(f) { load(f); };
var Fmt = Fmt || require("../fmt.js") || Fmt;
var log = (typeof console !== "undefined") && console.log || print;
var Assert = Assert || require("../assert.js") || Assert;
// we want to load restrict-prelude into the glo... |
cksspk/ruoyi-vue-pro | yudao-vue-ui/uni_modules/uview-ui/libs/config/props/rate.js | <gh_stars>100-1000
/*
* @Author : LQ
* @Description :
* @version : 1.0
* @Date : 2021-08-20 16:44:21
* @LastAuthor : LQ
* @lastTime : 2021-08-20 17:05:09
* @FilePath : /u-view2.0/uview-ui/libs/config/props/rate.js
*/
export default {
// rate组件
rate: {
value: 1,
... |
jingcao80/Elastos | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/animation/CFloatEvaluator.cpp | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... |
Cokemonkey11/wc3libs | src/main/java/net/moonlightflower/wc3libs/dataTypes/app/AbilCode.java | package net.moonlightflower.wc3libs.dataTypes.app;
import net.moonlightflower.wc3libs.misc.ObjId;
public class AbilCode extends ObjId {
protected AbilCode(String idString) {
super(idString);
}
public static AbilCode valueOf(ObjId id) {
return new AbilCode(id.toString());
}
public static AbilCode decodeStat... |
Acidburn0zzz/bareos | src/filed/socket_server.cc | <reponame>Acidburn0zzz/bareos
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2000-2011 Free Software Foundation Europe e.V.
Copyright (C) 2014-2014 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of version three of the GNU... |
DSM-DIS/DIS-Client | src/components/modal/Modal/RegisterModal/RegisterModal.js | import React from "react";
import Modal from "../Modal";
import ModalCloseBtn from "../../ModalCloseBtn/ModalCloseBtn";
import RegisterModalForm from "../../ModalForm/RegisterModalForm/RegisterModalForm";
const RegisterModal = () => {
return (
<Modal>
<ModalCloseBtn />
<RegisterModalForm />
</Modal>
);
};
... |
AlexIIL/Astromine | src/main/java/com/github/chainmailstudios/astromine/client/screen/base/DefaultedEnergyFluidContainerScreen.java | <reponame>AlexIIL/Astromine
package com.github.chainmailstudios.astromine.client.screen.base;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.text.Text;
import com.github.chainmailstudios.astromine.common.component.ComponentProvider;
import com.github.chainmailstudios.astromine.common.container.... |
tied/innovation-funding-service | ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/application/workflow/actions/BaseApplicationAction.java | <reponame>tied/innovation-funding-service
package org.innovateuk.ifs.application.workflow.actions;
import org.innovateuk.ifs.application.domain.Application;
import org.innovateuk.ifs.application.resource.ApplicationEvent;
import org.innovateuk.ifs.application.resource.ApplicationState;
import org.innovateuk.ifs.workfl... |
AshwinKumarVijay/ECS-Development | ECS/Project/Project/Resources/ResourceData/LightData/LightData.h | #pragma once
#include <map>
#include <memory>
#include "glm\glm.hpp"
#include "../ResourceData.h"
class LightData : public ResourceData
{
public:
// Default LightData Constructor.
LightData();
// Default LightData Destructor.
virtual ~LightData();
//
void setEnabled(bool newIsEnabled);
bool getEnabled() ... |
ckamtsikis/cmssw | AnalysisDataFormats/TopObjects/interface/TtFullHadronicEvent.h | #ifndef TopObjects_TtFullHadronicEvent_h
#define TopObjects_TtFullHadronicEvent_h
#include "AnalysisDataFormats/TopObjects/interface/TtEvent.h"
namespace TtFullHadDaughter {
/// full hadronic daughter names for common
/// use and use with the hypotheses
static const std::string LightQ = "LightQ", LightP = "Ligh... |
ckamtsikis/cmssw | GeneratorInterface/Pythia8Interface/interface/PTFilterHook.h | <filename>GeneratorInterface/Pythia8Interface/interface/PTFilterHook.h
#include "Pythia8/UserHooks.h"
class PTFilterHook : public Pythia8::UserHooks {
public:
// Constructor and destructor.
PTFilterHook() {}
//--------------------------------------------------------------------------
bool initAfterBeams() o... |
mgormley/pacaya | src/main/java/edu/jhu/pacaya/sch/util/ScheduleUtils.java | package edu.jhu.pacaya.sch.util;
import static edu.jhu.pacaya.sch.util.Indexed.enumerate;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map.Entry;
import org.apache.commons.lang3.mutable.MutableBoolean;
import com.google.common.collect.... |
sunbit/banking | src/app/api/io.py | <filename>src/app/api/io.py
from copy import deepcopy
from dataclasses import is_dataclass
from enum import Enum
from datetime import datetime
def encode_date(dt):
return dt.strftime('%Y-%m-%dT%H:%M:%S')
def encode_account(account_config, include_children=True):
account = deepcopy(account_config.__dict__)
... |
Qualia91/goLearning | patterns/microservices/dataconsistency/saga/doc.go | /*Saga Pattern.
Service initiates a saga request to the saga log (database).
Saga execution coordinator (SEC) listens to log and actions requests.
Sends requests in request is requested, and compensation requests if something failed (rollback request)
Following example:
Initiator service (9000) receives get and send... |
gcwiak/nixer-spring-plugin | captcha/src/test/java/io/nixer/nixerplugin/captcha/security/CaptchaAuthenticationProviderTest.java | package io.nixer.nixerplugin.captcha.security;
import java.util.Collections;
import io.nixer.nixerplugin.captcha.error.CaptchaClientException;
import io.nixer.nixerplugin.captcha.events.FailedCaptchaAuthenticationEvent;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.