repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
SanskarSans/Semantic-UI-React | docs/app/Examples/views/Item/Variations/Divided.js | <reponame>SanskarSans/Semantic-UI-React<filename>docs/app/Examples/views/Item/Variations/Divided.js<gh_stars>0
import React from 'react'
import { Button, Icon, Image as ImageComponent, Item, Label } from 'semantic-ui-react'
const { Content, Description, Extra, Group, Header, Image, Meta } = Item
const paragraph = <Ima... |
danheath/temppykol | src/kol/request/StoreGetTransactionsRequest.py | import kol.Error as Error
from kol.util import Report
from kol.manager import PatternManager
from GenericRequest import GenericRequest
import time
class StoreGetTransactions(GenericRequest):
"""
Get the last 2 weeks of transactions from your store.
Fields:
timestamp: time of the sale
userId: userID of purcha... |
madetech/mca-beacons-service | src/main/java/uk/gov/mca/beacons/api/dto/DeleteBeaconRequestDTO.java | <reponame>madetech/mca-beacons-service<filename>src/main/java/uk/gov/mca/beacons/api/dto/DeleteBeaconRequestDTO.java
package uk.gov.mca.beacons.api.dto;
import java.util.UUID;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArg... |
Seibaah/McGill-COMP | COMP202 WINTER 2018/A5/FileIO.java |
import java.io.*;
import java.util.ArrayList;
public class FileIO {
public static Spaceship loadSpaceship(String filename) { //Method that reads the ships values from a file and calls a constructor to create a ship object
try { //Try and catch blocks to handle the file/IO exceptions
FileR... |
PetteriAimonen/OWON-XDM1041 | OWON firmware/decompiled/com/owon/uppersoft/patch/direct/util/ZipEncrypt.java | /*
* Decompiled with CFR 0.152.
*/
package com.owon.uppersoft.patch.direct.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.Key;
import java.security.SecureRandom;
import java.util.UUID;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream... |
acazuc/42_ft_ssl | src/camellia/camellia_f.c | <filename>src/camellia/camellia_f.c<gh_stars>1-10
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* camellia_f.c ... |
hangqiu/pixie | src/carnot/planner/compiler/analyzer/remove_group_by_rule_test.cc | /*
* Copyright 2018- The Pixie 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 or ag... |
finleyexp/georef_geocamutilweb | geocamUtil/pdf.py | #__BEGIN_LICENSE__
# Copyright (c) 2017, United States Government, as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All rights reserved.
#
# The GeoRef platform is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in complianc... |
AngeloStatescu/jsbb | packages/react-state-lens/src/index.js | // Copyright (c) TotalSoft.
// This source code is licensed under the MIT license.
export * from './hooks'
export * from './lensProxy'
export { StateLens } from './stateLens' |
anruky/Zeta | zds-server/src/main/java/com/ebay/dss/zds/message/endpoint/LivyMonitorEndpoint.java | <filename>zds-server/src/main/java/com/ebay/dss/zds/message/endpoint/LivyMonitorEndpoint.java
package com.ebay.dss.zds.message.endpoint;
import com.ebay.dss.zds.interpreter.ConfigurationManager;
import com.ebay.dss.zds.interpreter.InterpreterConfiguration;
import com.ebay.dss.zds.interpreter.interpreters.livy.LivyClie... |
missating/More-Recipes | client/src/__tests__/reducers/userFavourites.spec.js | <gh_stars>1-10
import userFavouritesReducer from '../../reducers/userFavourites';
import * as ActionTypes from '../../actions/actionTypes';
describe('User favourites reducer', () => {
describe('DEFAULT', () => {
it(
'Should set recipes to their initial values and return the initial state',
() => {
... |
pmpowers-usgs/opensha | src/main/java/org/opensha/nshmp2/calc/HazardResultWriterSites.java | <reponame>pmpowers-usgs/opensha<filename>src/main/java/org/opensha/nshmp2/calc/HazardResultWriterSites.java
package org.opensha.nshmp2.calc;
import static com.google.common.base.Charsets.US_ASCII;
import java.io.File;
import java.io.IOException;
import java.util.Map;
import org.opensha.commons.data.function.Discreti... |
mjrinker/wizcon-2021 | src/components/Footer/Footer.js | <reponame>mjrinker/wizcon-2021
import React from 'react';
const Footer = () => (
<div className='bg-gray-200 dark:bg-gray-600 rounded-md mt-6 p-6 pt-12 pb-12'>
<b>WizCon 2021</b> is in Matamata, New Zealand. Join
us for our 14th annual weekend event <b>October 19-23, 2021</b>
</div>
);
export ... |
fridujo/ice-lang | glacio-parser/src/main/java/com/github/fridujo/glacio/parsing/model/StringSource.java | package com.github.fridujo.glacio.parsing.model;
import java.io.UncheckedIOException;
import java.net.URI;
public interface StringSource {
String getContent() throws UncheckedIOException;
URI getURI();
}
|
senagbe/stroke | src/com/isode/stroke/parser/payloadparsers/ReplaceParser.java | /*
* Copyright (c) 2014-2015, Isode Limited, London, England.
* All rights reserved.
*/
/*
* Copyright (c) 2011 <NAME>
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
package com.isode.stroke.parser.payloadparsers;
import com.isode.stroke.eleme... |
Crossroads-Development/Essentials | src/main/java/com/Da_Technomancer/essentials/blocks/MultiPistonBase.java | <reponame>Crossroads-Development/Essentials
package com.Da_Technomancer.essentials.blocks;
import com.Da_Technomancer.essentials.ESConfig;
import com.Da_Technomancer.essentials.WorldBuffer;
import com.Da_Technomancer.essentials.blocks.redstone.RedstoneUtil;
import net.minecraft.core.BlockPos;
import net.minecraft.core... |
zlemisie/jac_jenetics | org.jenetics/src/main/java/org/jenetics/engine/Engine.java | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ <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/LICEN... |
dongdiemthuy/nutrixs-ng-admin | src/javascripts/ng-admin/Crud/field/StringField.js | <reponame>dongdiemthuy/nutrixs-ng-admin
/*global define*/
define(function (require) {
'use strict';
var stringFieldView = require('text!./StringField.html');
function StringField() {
return {
restrict: 'E',
template: stringFieldView
};
}
StringField.$injec... |
yetsun/hue | apps/oozie/src/oozie/views/api.py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... |
BadWaka/waka-website | typescript-study/3-interface.js | <reponame>BadWaka/waka-website
// // // // /**
// // // // * 接口
// // // // */
// // // // // function printLabel(labelledObj: {
// // // // // label: string
// // // // // }) {
// // // // // console.log(labelledObj.label);
// // // // // }
// // // // //
// // // // // let myObj = {
// // // // // size:... |
alexhenrie/owltools | OWLTools-Core/src/main/java/owltools/frame/jsonld/NaryBooleanClassExpressionLD.java | <filename>OWLTools-Core/src/main/java/owltools/frame/jsonld/NaryBooleanClassExpressionLD.java
package owltools.frame.jsonld;
import owltools.frame.NaryBooleanClassExpression;
public class NaryBooleanClassExpressionLD extends ClassExpressionLD implements NaryBooleanClassExpression {
}
|
ankushptl22/pegasus | client/src/containers/LoginPage/Emailsend.js | <filename>client/src/containers/LoginPage/Emailsend.js
import React, { Component } from "react";
import { Grid ,Header,Icon,Button} from "semantic-ui-react";
import { Link } from 'react-router-dom';
import LoginLeft from "./LoginLeft";
import loginJson from "../../json/LoginLeft.json";
class Emailsend extends Componen... |
LucidSigma/Daily-Coding-Problems | Days 081 - 090/Day 85/GetXOrYFromB.cpp | #include <iostream>
#include <type_traits>
template <int B, typename = std::enable_if_t<(B == 0) || (B == 1)>>
constexpr int GetXOrYFromB(int x, int y) noexcept
{
return x * B + y * (1 - B);
}
int main(int argc, char* argv[])
{
std::cout << GetXOrYFromB<0>(16, 32) << "\n";
std::cout << GetXOrYFromB<1>(16, 32) << "... |
shaojiankui/iOS10-Runtime-Headers | Frameworks/UserNotifications.framework/UNNotificationResponse.h | /* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/UserNotifications.framework/UserNotifications
*/
@interface UNNotificationResponse : NSObject <NSCopying, NSSecureCoding> {
NSString * _actionIdentifier;
unsigned long long _actionOptions;
UNNotification * _notification;
}
@property (no... |
PseudoCowboy/lose-love-algorithm | 2021/04/11/66PlusOne/main.go | <reponame>PseudoCowboy/lose-love-algorithm<gh_stars>1-10
package main
import "fmt"
func main() {
a := []int{1, 2, 3, 4}
a = append([]int{0}, a...)
fmt.Println(a)
}
func plusOne(digits []int) []int {
extendFlag := false
index := 0
for len(digits)-1-index >= 0 {
if digits[len(digits)-1-index]+1 > 9 {
digi... |
mcgyver5/mngoat | src/pictures/PicturesServlet.java | package pictures;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.s... |
wrhb123/cloudpods | cmd/climc/promputils/option_arguments.go | <filename>cmd/climc/promputils/option_arguments.go<gh_stars>100-1000
// Copyright 2019 Yunion
//
// 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/LICE... |
LaudateCorpus1/hivemind-4 | src/spawn-role.dismantler.js | 'use strict';
/* global MOVE WORK */
const SpawnRole = require('./spawn-role');
module.exports = class DismantlerSpawnRole extends SpawnRole {
/**
* Adds dismantler spawn options for the given room.
*
* @param {Room} room
* The room to add spawn options for.
* @param {Object[]} options
* A list of s... |
VerseApp/ssb | plugins/rawread/rxlog.go | // SPDX-FileCopyrightText: 2021 The Go-SSB Authors
//
// SPDX-License-Identifier: MIT
package rawread
import (
"context"
"encoding/json"
"fmt"
"os"
"go.cryptoscope.co/luigi"
"go.cryptoscope.co/margaret"
"go.cryptoscope.co/muxrpc/v2"
"go.cryptoscope.co/ssb"
"go.cryptoscope.co/ssb/internal/transform"
"go.cr... |
HySynth/HySynth | hysynth/pwl/smt_encoding/pwl_to_smt.py | def positive_number_to_smt(number):
"""
Print a floating-point number in decimal notation (i.e., prevent scientific notation).
This code is taken from https://stackoverflow.com/a/45604186.
:param number: floating-point number
:return: string in decimal notation
"""
number_as_two_strings = st... |
BroadleafCommerce/ReactStarter | site/app/checkout/components/PaymentMethods/PaymentMethods.js | <gh_stars>10-100
/*
* #%L
* React Site Starter
* %%
* Copyright (C) 2009 - 2017 Broadleaf Commerce
* %%
* Broadleaf Commerce React Starter
*
* Written in 2017 by Broadleaf Commerce <EMAIL>
*
* To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to ... |
auto1-oss/kapacitor | pipeline/tick/combine_test.go | package tick_test
import (
"testing"
"time"
"github.com/influxdata/kapacitor/tick/ast"
)
func TestCombine(t *testing.T) {
pipe, _, from := StreamFrom()
combine := from.Combine(&ast.LambdaNode{
Expression: &ast.BinaryNode{
Operator: ast.TokenAnd,
Left: &ast.BinaryNode{
Left: &ast.ReferenceNode{
... |
Nocturnals/SOAD-Project | Backend/routes/competitions/utils.js | <filename>Backend/routes/competitions/utils.js
const express = require("express");
const { verifyToken, verifyUserWithToken } = require("./../auth/helper");
const CompetitionsModel = require("./../../models/Competititons");
const { faqModel, resultsModel } = require("./../../models/Competititons");
const { OtheruserMod... |
lechium/tvOS144Headers | System/Library/PrivateFrameworks/PhotosUICore.framework/PXCMMMomentShareInvitation.h | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 14, 2021 at 2:27:01 PM Mountain Standard Time
* Operating System: Version 14.4 (Build 18K802)
* Image Source: /System/Library/PrivateFrameworks/PhotosUICo... |
mbonaci/elastic.js | src/filter/GeoDistanceRangeFilter.js | <filename>src/filter/GeoDistanceRangeFilter.js
/**
@class
<p>A filter that restricts matched results/docs to a given distance range from the
point of origin. The format conforms with the GeoJSON specification.</p>
@name ejs.GeoDistanceRangeFilter
@ejs filter
@borrows ejs.FilterMixin.name as n... |
axelcoezard/licence | Licence 2/I42/TP5/ex_5.c | #include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <signal.h>
void SIGUSR1_recu();
int signal_recu = 0;
int main() {
int p_pid = getpid();
if (fork() == 0 ) { // le programme se duplique.
int f_pid = getpid();
signal(SIGUSR1, SIGUSR1_recu);
while(!signal_recu) {
... |
bobmittmann/yard-ice | src/boot/monitor-i.h | <gh_stars>1-10
/*
* Copyright(C) 2015 <NAME>. All Rights Reserved.
*
* This file is part of the YARD-ICE.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 o... |
yasuor/huaweicloud-sdk-java-v3 | services/meeting/src/main/java/com/huaweicloud/sdk/meeting/v1/model/RecordResultDO.java | package com.huaweicloud.sdk.meeting.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.List;
import j... |
zhangycjob/jdcloud-sdk-java | iotcloudgateway/src/main/java/com/jdcloud/sdk/service/iotcloudgateway/model/Instance.java | /*
* Copyright 2018 JDCLOUD.COM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:#www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
sqr-gj/UestcBBS-MVP | app/src/main/java/com/scatl/uestcbbs/custom/GrayFrameLayout.java | <gh_stars>1-10
package com.scatl.uestcbbs.custom;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import com.scatl.ue... |
ghuntley/COVIDSafe_1.0.11.apk | src/sources/com/google/android/material/theme/MaterialComponentsViewInflater.java | <reponame>ghuntley/COVIDSafe_1.0.11.apk
package com.google.android.material.theme;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import androidx.appcompat.app.AppCompatViewInflater;
import androidx.appcompat.widget.AppCompatButton;
import androidx.appcompat.widget.AppCompat... |
diamondq/dq-common-java | vertx/common-vertx.processor/src/test/java/com/diamondq/common/vertx/processor/model/TestProxyType.java | <reponame>diamondq/dq-common-java<gh_stars>0
package com.diamondq.common.vertx.processor.model;
import java.util.Collections;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.ElementKind;
import javax.lang.model.element.ExecutableElemen... |
Achterhoeker/XChange | xchange-cryptsy/src/main/java/com/xeiam/xchange/cryptsy/dto/marketdata/CryptsyOrderBook.java | package com.xeiam.xchange.cryptsy.dto.marketdata;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author ObsessiveOrange
*/
@JsonIgnoreProperties(ignoreUnknown = t... |
mailkiq/mailkiq | spec/features/billing_spec.rb | <reponame>mailkiq/mailkiq<gh_stars>10-100
require 'rails_helper'
RSpec.feature 'Billing' do
let(:account) { Fabricate.create :paid_account }
before do
FakeBilling.stub!
end
scenario 'suspends subscription' do
expect_any_instance_of(Iugu::Subscription).to receive(:suspend)
sign_in account
visi... |
Sigura/livecoding-mean | project/webapp/scripts/components/expenses.react.js | 'use strict';
import React from 'react';
import objectAssign from 'object-assign'
import
{FormattedMessage} from 'react-intl'
import groupBy from '../constants/groupBy.react'
import AppDispatcher from '../dispatcher/dispatcher.react'
import extensions from '../utils/extensions.react'
import context... |
ild-games/Ancona | Engine/Src/Ancona/Framework/Resource/FontLoader.hpp | #ifndef Ancona_Engine_Resource_FontLoader_H_
#define Ancona_Engine_Resource_FontLoader_H_
#include <Ancona/Framework/Resource/SFMLResourceLoader.hpp>
#include <SFML/Graphics.hpp>
namespace ild
{
/**
* @brief Font loader is used to load an sf::Font
*
* @author <NAME>
*/
class FontLoader: public SFMLResourceLoad... |
lpd6375/qlib | qlib/contrib/eva/alpha.py | """
Here is a batch of evaluation functions.
The interface should be redesigned carefully in the future.
"""
import pandas as pd
from typing import Tuple
from qlib import get_module_logger
from qlib.utils.paral import complex_parallel, DelayedDict
from joblib import Parallel, delayed
def calc_long_short_prec(
pr... |
kafkawize/kafkawize | src/main/java/com/kafkamgt/uiapi/model/TopicHistory.java | package com.kafkamgt.uiapi.model;
import lombok.Data;
import java.io.Serializable;
@Data
public class TopicHistory implements Serializable {
private String environmentName;
private String teamName;
private String requestedBy;
private String requestedTime;
private String approvedBy;
priv... |
tkob/ermin | src/main/java/yokohama/lang/ermin/process/ErminDecl.java | <filename>src/main/java/yokohama/lang/ermin/process/ErminDecl.java
package yokohama.lang.ermin.process;
import lombok.Value;
import yokohama.lang.ermin.attribute.ErminName;
@Value
public class ErminDecl {
private final ErminName varName;
private final ErminName entityName;
}
|
robertPas/idmt | src/main/java/ibm/LoadReport.java | package ibm;
import java.util.*;
public class LoadReport
{
private Hashtable ht = new Hashtable();
private String outputDirectory, extension, baseName, logFileName;
public LoadReport(String outputDirectory, String extension, String baseName)
{
this.outputDirectory = outputDirectory;
this.extension = extensi... |
ukis-yuhs/springmvc | Sample_common/src/main/java/com/yuhs/utils/secure/Base64Utils.java | package com.yuhs.utils.secure;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
/**
* Created by yuhaisheng on 2019/4/30.
*/
public class Base64Utils {
public static String getBase64(String str) {
byte[] b = null;
... |
SimplisticCode/VDM_Toolkit | plugins/vdm2isa/java/src/main/java/vdm2isa/tr/definitions/TRProofScriptDefinition.java | <reponame>SimplisticCode/VDM_Toolkit
package vdm2isa.tr.definitions;
import com.fujitsu.vdmj.lex.LexLocation;
import com.fujitsu.vdmj.typechecker.NameScope;
import vdm2isa.lex.IsaToken;
import vdm2isa.lex.TRIsaVDMCommentList;
import vdm2isa.tr.TRNode;
import vdm2isa.tr.definitions.visitors.TRDefinitionVisitor;
publi... |
saymagic/dockerandroid | app/src/main/java/com/dockerandroid/domain/usecase/RefreshImageUseCase.java | /*
* Copyright (c) 2016 saymagic <<EMAIL>>
*
* This file is a part of project DockerAndroid
*
* Licensed under the Apache License, Version 2.0 (the "License”);
*/
package com.dockerandroid.domain.usecase;
import android.support.annotation.NonNull;
import com.dockerandroid.data.api.DockerApiService;
import com.d... |
igorscosta/rest4mex | log4mex/src/main/java/org/aksw/mex/log4mex/core/HardwareConfigurationVO.java | <filename>log4mex/src/main/java/org/aksw/mex/log4mex/core/HardwareConfigurationVO.java<gh_stars>0
package org.aksw.mex.log4mex.core;
import org.aksw.mex.log4mex.InstanceObjects;
import org.aksw.mex.util.MEXEnum;
import org.apache.commons.lang3.StringUtils;
/**
* Created by esteves on 26.06.15.
*/
public class Hardw... |
CrackerCat/iWeChat | header6.6.1/QDataCacheSql.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 <objc/NSObject.h>
@class NSString, QDBDatabase, QDataStoreSelectorTencent, QDataStoreSelectorWorldmap;
@interface QDataCacheSql : N... |
gapra-msft/azure-storage-fuse | cpplite/include/compare.h | <filename>cpplite/include/compare.h
#pragma once
#ifdef __linux__
#include <string.h>
#else
#include <cstring>
#include <string>
#endif
#ifdef _MSC_VER
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif
namespace azure { namespace storage_lite {
// Case insensitive comparator for std::map comparat... |
pelican/pelican | pelican/examples/reference/DataBlobExample.h | #ifndef DATABLOBEXAMPLE_H
#define DATABLOBEXAMPLE_H
/**
* @file DataBlobExample.h
*/
#include "data/DataBlob.h"
#include <vector>
using namespace pelican;
/**
* @ingroup c_examples
*
* @class DataBlobExample
*
* @brief
* Data blob to hold an array of floating-point data.
*
* @details
* This data blob hol... |
Dr-Turtle/DRG_ModPresetManager | Source/FSD/Public/EShoutType.h | #pragma once
#include "CoreMinimal.h"
#include "EShoutType.generated.h"
UENUM()
enum class EShoutType : uint8 {
Attention,
Follow,
StandingDown,
Downed,
RequestRevive,
Revived,
Resupply,
FriendlyFire,
KillCry,
Dead,
Cheating,
ResourceFull,
ResourceFullNoDonkey,
C... |
vinayakpokharkar/aws-sdk-java | aws-java-sdk-lookoutmetrics/src/main/java/com/amazonaws/services/lookoutmetrics/package-info.java | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
CarysT/medusa | Standard/Test.h | <filename>Standard/Test.h
/*
Test.h
All component tests use this component
(c)2005 Palestar, <NAME>
*/
#ifndef TEST_H
#define TEST_H
//-------------------------------------------------------------------------------
// On test failure, this exception is thrown
class TestException {};
// Behaves like "assert"
inl... |
rohankumardubey/empire-db | empire-db/src/main/java/org/apache/empire/db/DBDDLGenerator.java | <reponame>rohankumardubey/empire-db<filename>empire-db/src/main/java/org/apache/empire/db/DBDDLGenerator.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 copyrig... |
zubtsov/competitive-programming | codeforces.com/1490A/solution.py | <gh_stars>0
from math import ceil, log2
for t in range(int(input())):
array_len = int(input())
array = list(map(int, input().split()))
numbers_to_insert = 0
for i in range(1, array_len):
ratio = max(array[i - 1], array[i]) / min(array[i - 1], array[i])
if ratio > 2:
numbe... |
AnneSophieS/manager | packages/manager/apps/dedicated/client/app/cdn/dedicated/manage/logs/cdn-dedicated-manage-logs.routes.js | angular.module('App').config(($stateProvider) => {
$stateProvider.state('app.networks.cdn.dedicated.logs', {
url: '/logs',
views: {
cdnView: {
templateUrl: 'cdn/dedicated/manage/logs/cdn-dedicated-manage-logs.html',
controller: 'CdnLogsCtrl',
controllerAs: '$ctrl',
},
}... |
igiant/connect | senderPolicy.go | <filename>senderPolicy.go
package connect
import "encoding/json"
type SenderPolicyOptions struct {
AuthenticationRequired bool `json:"authenticationRequired"` // Require sender authentication for local domains
AntiSpoofingEnabled bool `json:"antiSpoofingEnabled"` // Is Antispoofing enabled... |
ak-ustutt/GeCCo-public | include/par_scale_copy_modes.h | <filename>include/par_scale_copy_modes.h<gh_stars>0
integer,parameter::
& MOD_SQUARE = 1,
& MOD_MULT = 2,
& MOD_PRECOND = 3,
& MOD_PRC_THRESH = 4,
& MOD_SCALE = 5,
& MOD_ADD_VEC = 6
|
Ibrahimovic88/Alphago365 | octopus-backend/src/main/java/com/alphago365/octopus/model/BoundaryChange.java | package com.alphago365.octopus.model;
public enum BoundaryChange {
DOWN, UP, KEEP
}
|
seed-age/circulate | src/main/java/com/sunnsoft/ext/base/Jsonp.java | <reponame>seed-age/circulate
package com.sunnsoft.ext.base;
import com.opensymphony.xwork2.ActionSupport;
import com.sunnsoft.util.struts2.Results;
public class Jsonp extends ActionSupport {
/**
*
*/
private static final long serialVersionUID = 1L;
private String callback;
protected String json;
public... |
YoduYodu/school-projects | school-projects/principals-of-software-development/trip-advisor-backend/src/main/java/hotel/ReentrantReadWriteLock.java | package hotel;
import java.util.HashMap;
import java.util.Map;
/**
* A custom reentrant read/write lock that allows:
* 1) Multiple readers (when there is no writer). Any thread can acquire multiple read locks (if nobody is writing).
* 2) One writer (when nobody else is writing or reading).
* 3) A writer is allowe... |
crazzfeng/UsingSelf | impl/src/main/java/com/crazy/net/util/TestC.java | package com.crazy.net.util;
import java.util.List;
/**
* @author <NAME>
* @title: TestC
* @description:
* @date 2018/9/18 18:11
*/
public class TestC {
private List<Site> sites;
private String remark;
private User user;
public TestC() {
}
public List<Site> getSites() {
return si... |
veot/ifcbdb | ifcbdb/dashboard/management/commands/addtag.py | <filename>ifcbdb/dashboard/management/commands/addtag.py
from django.core.management.base import BaseCommand, CommandError
from dashboard.models import Bin
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('bin', type=str, help='bin id')
parser.add_argument('tag', t... |
eddie4941/servicetalk | servicetalk-http-netty/src/test/java/io/servicetalk/http/netty/SniTest.java | /*
* Copyright © 2021 Apple Inc. and the ServiceTalk project 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 requi... |
yinxiaoer/jietu-laundry | laundry-jt/laundry-common/src/main/java/com/jietu/common/service/AliyunOssService.java | <filename>laundry-jt/laundry-common/src/main/java/com/jietu/common/service/AliyunOssService.java
//package com.jietu.common.service;
//
//import com.aliyun.oss.ClientConfiguration;
//import com.aliyun.oss.OSSClient;
//import com.aliyun.oss.common.auth.DefaultCredentialProvider;
//import com.aliyun.oss.model.OSSObject;
... |
Andreas237/AndroidPolicyAutomation | ExtractedJars/PACT_com.pactforcure.app/javafiles/com/itextpdf/text/pdf/BidiOrder.java | // Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.itextpdf.text.pdf;
import com.itextpdf.text.error_messages.MessageLocalization;
public final class BidiOrder
{
public BidiOrder(byte abyte0[])
{
//... |
liebeskind/Spoke | src/ui/properties/ModelNodeEditor.js | import React, { Component } from "react";
import PropTypes from "prop-types";
import NodeEditor from "./NodeEditor";
import SelectInput from "../inputs/SelectInput";
import InputGroup from "../inputs/InputGroup";
import BooleanInput from "../inputs/BooleanInput";
import ModelInput from "../inputs/ModelInput";
export d... |
fiadone/toolchain | packages/server/scaffold/server/helpers/async.js | const axios = require('axios')
/**
* Decorates config with default headers
* @param {object} config The axios config
*/
function withDefaultHeaders(config) {
if (!config.headers) {
config.headers = {
'Content-Type': 'application/json',
accept: 'application/json'
}
}
return config
}
/**
... |
sbg/sevenbridges-python | tests/test_automations.py | import faker
import pytest
import tempfile
import os
from sevenbridges.errors import SbgError
from sevenbridges.transfer.upload import CodePackageUpload
generator = faker.Factory.create()
def test_get_automation(api, given, verifier):
# precondition
api.aa = True
id = generator.uuid4()
given.automa... |
alibaba/id2_client_sdk | include/irot/se/irot_hal.h | /*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
#ifndef __IROT_HAL_H__
#define __IROT_HAL_H__
#include "ls_osa.h"
#ifdef __cplusplus
extern "C" {
#endif
#define KEY_ID_ID2 0 /* Key is used by ID2 */
/* irot hal error code definitions */
#define IROT_SUCCESS 0 /* ... |
ideaslocas/aDLL | dlldiscovery/initstructures.cpp | <reponame>ideaslocas/aDLL
#include "adll.h"
DLLINFO* InitDLLInfo(size_t size)
{
DLLINFO* DLL = NULL;
size_t i = 0;
DLL = (DLLINFO*)calloc(size, sizeof(DLLINFO));
if (DLL == NULL)
{
printf("[!] ERROR: InitDLLInfo - calloc couldn't allocate memory\n");
return NULL;
}
for (i = 0; i < size; i++)
{
DLL[i].Na... |
jainkuniya/central-medic-center | CMC/src/prescription/Prescription.java | <reponame>jainkuniya/central-medic-center<filename>CMC/src/prescription/Prescription.java
package prescription;
public class Prescription {
private int medicineId;
private String medicineName;
private double quantity;
private int times;
private int itemId;
public Prescription(int medicineId, String medicineNa... |
andela-jejezie/peopleProject | node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/object/validate-stringifiable-value.js | 'use strict';
var value = require('./valid-value')
, stringifiable = require('./validate-stringifiable');
module.exports = function (x) { return stringifiable(value(x)); };
|
jpmiii/ExilePearl | src/main/java/com/devotedmc/ExilePearl/core/PearlBoundaryTask.java | <filename>src/main/java/com/devotedmc/ExilePearl/core/PearlBoundaryTask.java
package com.devotedmc.ExilePearl.core;
import static vg.civcraft.mc.civmodcore.util.TextUtil.msg;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import j... |
whitespur/zheshiyigeniubidexiangmu | jsExcuter/src/main/java/com/github/misterchangray/libs/huobi/response/HistoryTrade.java | <filename>jsExcuter/src/main/java/com/github/misterchangray/libs/huobi/response/HistoryTrade.java
package com.github.misterchangray.libs.huobi.response;
/**
* @Author ISME
* @Date 2018/1/14
* @Time 15:24
*/
public class HistoryTrade {
/**
* id : 17592256642623
* amount : 0.04
* price : 1997
... |
hoppinghol/herd | herd-code/herd-dao/src/test/java/org/finra/herd/dao/StorageFileJdbcDaoTest.java | <reponame>hoppinghol/herd
/*
* Copyright 2015 herd contributors
*
* 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 appli... |
trettstadtnlb/openjpa | openjpa-examples/opentrader/src/main/java/org/apache/openjpa/trader/client/TradeOrderWindow.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 ... |
Kichiru69/Java_Course | src/FirstCourse/Lesson_30/Phone.java | <reponame>Kichiru69/Java_Course
package FirstCourse.Lesson_30;
import java.util.ArrayList;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.function.Supplier;
public class Phone {
String name;
int modelNumber;
String os;
Phone(String name, int modelNumber, String os) {... |
ittaiz/jmock-library | jmock-junit4/src/test/java/testdata/jmock/acceptance/junit4/JUnit4TestThatDoesNotSatisfyExpectations.java | package testdata.jmock.acceptance.junit4;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.jmock.integration.junit4.JMock;
import org.jmock.integration.junit4.JUnit4Mockery;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(JMock.class)
public class JUnit4TestThatDoesNotSatisfyExpect... |
yarden-livnat/cg | server/sqlite_db.js | /**
* Created by yarden on 7/9/15.
*/
const path = require('path');
var sqlite = require('sqlite3');
var DB_FILE = 'cg.sqlite';
var DB_DIR = process.env.CG_DIR || '../data';
//debugging
sqlite.verbose();
var db = new sqlite.Database(path.join(DB_DIR,DB_FILE));
db.on('profile', function(sql, time) {
console.log('... |
nagasudhirpulla/wrldc_codebook | tests/repos/test_outageTypesRepo.py | <filename>tests/repos/test_outageTypesRepo.py
import unittest
from src.appConfig import initAppConfig
from src.repos.outageTypes.outageTypesRepo import OutageTypesRepo
import datetime as dt
class TestOutageTypesRepo(unittest.TestCase):
def setUp(self):
self.appConf = initAppConfig()
def test_getRealT... |
shanejixx/algorithm-and-data-structure | pattern/bitwise-XOR/0137.SingleNumberII.js | <reponame>shanejixx/algorithm-and-data-structure
// Given an integer array nums where every element appears three times except for one, which appears exactly once. Find the single element and return it.
// You must implement a solution with a linear runtime complexity and use only constant extra space.
//
// Examp... |
Gmrakari/STL | 06_algorithms/10_other_algo/25_reverse_copy.cpp |
/*
* Date:2021-08-25 15:45
* filename:25_reverse_copy.cpp
*
*/
/*
* 行为类似于reverse(),但产生出来的新序列会被置于以result指出的容器中。
* 返回值OutputIterator指向新产生的最后元素的下一位置。原序列没有任何改变。
*
*/
template <class BidirectionalIterator, class OutputIterator>
OutputIterator reverse_copy(BidirectionalIterator first, BidirectionalIterator last, O... |
h-dj/blog-cloud | blog-admin/src/main/java/cn/hdj/admin/domain/dto/MenuForm.java | package cn.hdj.admin.domain.dto;
import lombok.Data;
/**
* @author huangjiajian
* @version 1.0
* @description:
*/
@Data
public class MenuForm {
/**
* 菜单名称
*/
private String menuName;
/**
* 菜单类型:0目录,1菜单,2按钮
*/
private Integer type;
/**
* parentId
*/
private... |
olivejp/RoomSample | app/src/main/java/firebaseauthcom/example/orlanth23/roomsample/ui/adapter/EtapeAdapter.java | package firebaseauthcom.example.orlanth23.roomsample.ui.adapter;
import android.support.v7.util.DiffUtil;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import ... |
genesis-2/trunk | libraries/gffs-structure/trunk/src/edu/virginia/vcgr/genii/client/gui/browser/plugins/TabPluginDescriptor.java | package edu.virginia.vcgr.genii.client.gui.browser.plugins;
import java.util.Comparator;
/**
* The tab plugin descriptor is a wrapper which holds information describing a tab plugin.
*
* @author mmm2a
*/
public class TabPluginDescriptor extends PluginDescriptor<ITabPlugin>
{
static private Comparator<TabPluginD... |
basarevych/next-dashboard | api-server/src/Mailer.js | const nodemailer = require("nodemailer");
/**
* Mailer service
*/
class Mailer {
constructor(config) {
this.config = config;
if (this.config.emailServer) {
let config = {
host: this.config.emailServer,
port: this.config.emailPort,
secure: this.config.emailSsl,
tls: {
... |
GabrielAmare/ItemEngine | example_2/engine/__init__.py | from .lexer import lexer
from .materials import *
from .parser import parser
from item_engine.textbase.items.chars import Char
from item_engine.textbase.items.lemmas import Lemma
from typing import Iterator
__all__ = ['parse']
def parse(src: Iterator[Char]) -> Iterator[Lemma]:
return parser(lexer(src))
|
mwhchen/quantecon | wald_friedman/wald_solution_plots.py | import matplotlib.pyplot as plt
import numpy as np
import quantecon as qe
import seaborn as sb
from wald_class import *
c = 1.25
L0 = 25
L1 = 25
a0, b0 = 2.5, 2.0
a1, b1 = 2.0, 2.5
m = 25
f0 = np.clip(st.beta.pdf(np.linspace(0, 1, m), a=a0, b=b0), 1e-6, np.inf)
f0 = f0 / np.sum(f0)
f1 = np.clip(st.beta.pdf(np.linspa... |
zipated/src | content/browser/renderer_host/input/mouse_latency_browsertest.cc | <filename>content/browser/renderer_host/input/mouse_latency_browsertest.cc
// Copyright 2017 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 <memory>
#include <string>
#include <utility>
#include <vector>
#incl... |
xzl8028/xenia-mobile | app/screens/post_options/index.test.js | <filename>app/screens/post_options/index.test.js
// Copyright (c) 2015-present Xenia, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {mapStateToProps} from './index';
import * as channelSelectors from 'mattermost-redux/selectors/entities/channels';
import * as generalSelectors from 'matte... |
ichitaso/TwitterListEnabler | Twitter-Dumped/7.60.6/T1ComposeSessionConfig.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 <objc/NSObject.h>
@class NSArray, NSString, TFNTwitterAccount, TFNTwitterComposition;
@interface T1ComposeSessionConfig : NSObject
... |
trinhvanhung/Java-Thread-Affinity | 3.0.5/Java-Thread-Affinity/affinity/src/main/java/net/openhft/affinity/impl/LinuxHelper.java | /*
* Copyright (C) 2015 <EMAIL>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* This program is distributed in the hope ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.