repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
sotaoverride/backup | openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/glib-2.0/1_2.60.3-r0/glib-2.60.3/gio/gfileiostream.h | <gh_stars>0
/* GIO - GLib Input, Io and Streaming Library
*
* Copyright (C) 2006-2007 Red Hat, Inc.
*
* 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 2.1 of the Li... |
BearerPipelineTest/cucumber-ruby | lib/cucumber/formatter/duration.rb | # frozen_string_literal: true
module Cucumber
module Formatter
module Duration
# Helper method for formatters that need to
# format a duration in seconds to the UNIX
# <tt>time</tt> format.
def format_duration(seconds)
m, s = seconds.divmod(60)
"#{m}m#{format('%<seconds>.3... |
hyajam/jabs | src/main/java/jabs/consensus/DAGsper.java | <reponame>hyajam/jabs<filename>src/main/java/jabs/consensus/DAGsper.java
package jabs.consensus;
import jabs.blockchain.LocalBlockTree;
import jabs.data.Block;
import jabs.data.BlockWithTx;
import jabs.data.Tx;
import jabs.data.Vote;
import jabs.data.dagsper.DAGsperVote;
import jabs.data.ethereum.EthereumBlock;
import... |
MrManiak/Squad-SDK | Cpp/SDK/W_Grid_ActionList_CO_classes.h | <gh_stars>1-10
#pragma once
// Name: S, Version: b
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
/*!!HELPER_DEF!!*/
/*!!DEFINE!!*/
namespace UFT
{
//---------------------------------------------------------------------------
// Classes
//-------------------------------------------------------------------------... |
cashbitecrypto/cashbite | external/rocksdb/table/block_based/reader_common.h | <reponame>cashbitecrypto/cashbite
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// Copyright (c) 2011... |
gchan/advent-of-code-go | 2016/day-07/day-07-part-2.go | <reponame>gchan/advent-of-code-go
package main
import (
"io/ioutil"
"regexp"
"strings"
)
func aba(text string) (result []string) {
for i := 0; i < len(text)-2; i++ {
str := text[i : i+3]
if str[0] == str[2] {
result = append(result, str)
}
}
return result
}
func bab(text string) (result []string) {
... |
jamesanto/scala | test/files/run/t11476b.scala | <filename>test/files/run/t11476b.scala
case class Foo(a: Int*) { def lengthCompare(i: Int) = 1 }
object FooExtractor {
def unapplySeq(x$0: Foo): Option[Seq[Int]] = if (x$0.==(null))
None
else
Some[Seq[Int]](x$0.a);
}
object Test {
def main(args: Array[String]): Unit = {
val x = Foo(1) match { case F... |
jbdelcuv/openenclave | 3rdparty/musl/libc-test/src/math/sanity/cosf.h | T(RN, -0x1.0223ap+3, -0x1.b0aabep-3, 0x1.eee272p-2, INEXACT)
T(RN, 0x1.161868p+2, -0x1.6f9238p-2, 0x1.5c33e2p-5, INEXACT)
T(RN, -0x1.0c34b4p+3, -0x1.01b4e2p-1, -0x1.1be494p-3, INEXACT)
T(RN, -0x1.a206fp+2, 0x1.f0462cp-1, 0x1.6df7bcp-3, INEXACT)
T(RN, 0x1.288bbcp+3, -0x1.f9a51ep-1, 0x1.1c971cp-3,... |
brandonkim-1301/TI-RSLK-Maze-Follower | documentation/navtreeindex5.js | var NAVTREEINDEX5 =
{
"group___b_p-_b_a_s_s_e_n_s_o_r_s_m_k_i_i.html#gaabaad6846eae116f278af4c87d432b2f":[2,0,0,0,7,10],
"group___b_p-_b_a_s_s_e_n_s_o_r_s_m_k_i_i.html#gaabaad6846eae116f278af4c87d432b2f":[2,0,0,0,8,6],
"group___b_p-_b_a_s_s_e_n_s_o_r_s_m_k_i_i.html#gaadddd8d5c6a55cd7f76497ca2c8a8d4a":[2,0,0,0,9,101],
"... |
dmgerman/hadoop | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/ZKDelegationTokenSecretManager.java | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license... |
SEALABQualityGroup/SEAA-replication-package | code/easier-logicalSpecification/LogicalSpecification/src/logicalSpecification/actions/AEmilia/util/AEmiliaSwitch.java | <filename>code/easier-logicalSpecification/LogicalSpecification/src/logicalSpecification/actions/AEmilia/util/AEmiliaSwitch.java<gh_stars>0
/**
*/
package logicalSpecification.actions.AEmilia.util;
import logicalSpecification.Action;
import logicalSpecification.AddAction;
import logicalSpecification.ChangeAction;
imp... |
ow2-chameleon/fuchsia | importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveNoOperationCommandClass.java | <filename>importers/zwave/src/main/java/org/ow2/chameleon/fuchsia/importer/zwave/internal/commandclass/ZWaveNoOperationCommandClass.java
/*
* #%L
* OW2 Chameleon - Fuchsia Framework
* %%
* Copyright (C) 2009 - 2015 OW2 Chameleon
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... |
silenc3502/MYSQL-Arch-Doc-Summary | mysql-server/plugin/x/src/operations_factory.cc | <reponame>silenc3502/MYSQL-Arch-Doc-Summary<filename>mysql-server/plugin/x/src/operations_factory.cc
/*
* Copyright (c) 2015, 2020, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as publis... |
ravi-mosaicml/ravi-composer | composer/profiler/profiler_hparams.py | # Copyright 2021 MosaicML. All Rights Reserved.
"""Hyperparameter classes for the :mod:`~composer.profiler`.
Attributes:
trace_handler_registry (Dict[str, Type[TraceHandlerHparams]]): Trace handler registry.
profiler_scheduler_registry (Dict[str, Type[ProfileScheduleHparams]]): Profiler scheduler registry.
""... |
websage-team/super | packages/koot/utils/get-dist-path.js | <filename>packages/koot/utils/get-dist-path.js
const fs = require('fs');
const path = require('path');
const getCwd = require('./get-cwd');
let p;
/**
* 获取打包结果路径
* @returns {String} 打包结果路径 (硬盘绝对路径)
*/
module.exports = () => {
// console.log('global.KOOT_DIST_DIR', global.KOOT_DIST_DIR)
if (typeof p !== 'st... |
peacetrue/peacetrue | peacetrue-result/peacetrue-result-web/src/main/java/com/github/peacetrue/result/SimpleExceptionPageResolver.java | package com.github.peacetrue.result;
import javax.servlet.http.HttpServletRequest;
/**
* return a uniquely determined page
*
* @author xiayx
*/
public class SimpleExceptionPageResolver implements ExceptionPageResolver {
private String exceptionPage;
@Override
public String resolve(HttpServletRequest... |
KnIfER/pdfpdf | xfa/fde/css/cfde_csssyntaxparser.h | <filename>xfa/fde/css/cfde_csssyntaxparser.h<gh_stars>1-10
// Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef XFA_FDE_CSS... |
v-ya/local | graph/support_pri.h | <gh_stars>1-10
#ifndef _graph_support_pri_h_
#define _graph_support_pri_h_
#include "support.h"
#include <vulkan/vulkan.h>
// success return NULL
const graph_layer_t* graph_layer_mapping_length(const graph_layer_t *restrict p, uint32_t *restrict length);
const graph_extension_t* graph_extension_mapping_length(const g... |
BrainFlame/store | async/stub/com/treode/async/stubs/AsyncChecks.scala | <gh_stars>0
/*
* Copyright 2014 Treode, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
Florinacho/NEStalgia | Bomberman/Character.hpp | #ifndef __CHARACTER_H__
#define __CHARACTER_H__
#include "Image.h"
class TileRenderer;
enum PlayerStatus {
EPS_DEAD,
EPS_STATIC,
EPS_FALLING,
EPS_SWIMMING,
EPS_CLIMB,
};
enum Direction {
ECD_UP,
ECD_LEFT,
ECD_DOWN,
ECD_RIGHT
};
class Character {
public:
static const unsigned int V... |
Kiep13/BookFund-v.2 | apps/frontpages/src/app/components/bookfund-page/index.js | <filename>apps/frontpages/src/app/components/bookfund-page/index.js
import BookFundPage from "./bookfund-page";
export default BookFundPage;
|
scfinniss/jabref | src/main/java/org/jabref/gui/preferences/NameFormatterItemModel.java | <filename>src/main/java/org/jabref/gui/preferences/NameFormatterItemModel.java
package org.jabref.gui.preferences;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import org.jabref.logic.layout.format.NameFormatter;
public class NameFormatterItemModel {
private fin... |
gorkem0606/moderasyon-botlari | Moderator 11/src/Commands/Staff/rol-log.js | const conf = require("../../configs/config.json");
const ayar = require("../../configs/settings.json")
const emoji = require("../../configs/emoji.json")
const roles = require("../../Schemas/rol-log")
const moment = require("moment");
moment.locale("tr");
module.exports = {
conf: {
aliases: ["rol-log","rolbilgi"]... |
HelpGiveThanks/Library | scripts/tagMenu/lock.c | <filename>scripts/tagMenu/lock.c
January 21, 2018 11:49:18 Library.fmp12 - lock -1-
tagMenu: lock
If [ nodeLockTagGroupCreatorLock::orderOrLock = "lock" ]
Go to Field [ ]
Show Custom Dialog [ Message: "Type the following into the box below to unlock all content created by " &
nodeLockTagGroupCreatorLock::tag; Default B... |
mayonghui9182/helloWorld | sourceCode/testMaven/src/main/java/com/ma/test/Class/annotation/TestAnnotation.java | package com.ma.test.Class.annotation;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.AnnotatedBeanDefinition;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
public class TestAnnotation {
@Test
/** 只能获取本类中中的... |
jriwanek/RaspberryPi | test-harness/include/bcm2708_chip/pcm.h | <reponame>jriwanek/RaspberryPi
// This file was generated by the create_regs script
#define PCM_BASE 0x7e203000
#define PCM_CS_A HW_REGISTER_RW( 0x7e203000 )
#define PCM_CS_A_MASK ... |
dcompane/controlm_go | model_statistics_average_info.go | /*
* Control-M Services
*
* Provides access to BMC Control-M Services
*
* API version: 9.20.115
* Contact: <EMAIL>
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package controlm_go
type StatisticsAverageInfo struct {
// Average start time
StartTime string `json:"star... |
aleksandra992/TelerikAcademy | JavaScript-DOMandUI/JQueryPlugins/tasks/task-1.js | <gh_stars>0
function solve() {
return function (selector) {
var $selectElement = $(selector).hide();
var $optionElements = $selectElement.find('option');
var $divDropDown = $('<div>')
.addClass("dropdown-list")
.append($selectElement);
var $current = $('<d... |
lottie-c/spl_tests_new | src/java/cz/cuni/mff/spl/evaluator/r/RProjectCaller.java | <reponame>lottie-c/spl_tests_new
/*
* Copyright (c) 2012, <NAME>, <NAME>, <NAME>, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain t... |
Sophia-Okito/codewars-handbook | kata/7-kyu/unusual-lex-order/test/SolutionTest.java | <filename>kata/7-kyu/unusual-lex-order/test/SolutionTest.java
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void sample() {
assertArrayEquals(new String[] {"a", "a", "b", "c", "d"}, new Solution().unusualLexOrder(new String[] {"... |
Mic-U/ecsher | ecs/service.go | <reponame>Mic-U/ecsher<filename>ecs/service.go<gh_stars>10-100
package ecs
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/ecs"
ecsTypes "github.com/aws/aws-sdk-go-v2/service/ecs/types"
)
type ECSServiceClient interface {
DescribeServices(context.Context, *ecs.Describ... |
ScalablyTyped/SlinkyTyped | r/react-native-firebase/src/main/scala/typingsSlinky/reactNativeFirebase/mod/PerfModule.scala | package typingsSlinky.reactNativeFirebase.mod
import typingsSlinky.reactNativeFirebase.mod.RNFirebase.perf.Perf
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
/* Inlined react... |
victorcabeceira/react-swapi | src/store/actions/species.js | <filename>src/store/actions/species.js
import * as actionTypes from './actionTypes';
export const fetchSpecies = (page) => {
return {
type: actionTypes.FETCH_SPECIES,
page
}
}
export const fetchSpeciesStart = () => {
return {
type: actionTypes.FETCH_SPECIES_START,
}
}
export const fetchSpeciesSuc... |
tamirsagi/flink | flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/UnionInputGate.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 ... |
askmohanty/metasfresh | backend/de.metas.handlingunits.base/src/main/java/de/metas/handlingunits/picking/PackToSpec.java | package de.metas.handlingunits.picking;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import de.metas.common.util.CoalesceUtil;
import de.metas.handlingunits.HUPIItemProductId;
import de.metas.handlingunits.HuPackingInstructionsId;
import lom... |
JJPowelly/u8glib | fntsrc/u8g_font_symb12r.c | <reponame>JJPowelly/u8glib<gh_stars>1000+
/*
Fontname: -Adobe-Symbol-Medium-R-Normal--17-120-100-100-P-95-Adobe-FontSpecific
Copyright: Copyright (c) 1984, 1987 Adobe Systems Incorporated. All Rights Reserved. Copyright (c) 1988, 1991 Digital Equipment Corporation. All Rights Reserved.
Capital A Height: 11, '1' H... |
alessandro-antonelli/ALL-2014 | 08-2 - Qsort su stringhe/QsortStringhe.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int Compare(const void* a, const void* b)
{
char* s1 = *((char**) a);
char* s2 = *((char**) b);
return (-1) * (strcmp(s1, s2));
}
int main()
{
int len;
scanf("%d", &len);
char** a = malloc(len * sizeof(char*));
int i;
for(i=0; i<len; i++)
{
a[i... |
sskbskdrin/AudioVideo | app/src/main/java/cn/sskbskdrin/record/camera/CameraActivity.java | <reponame>sskbskdrin/AudioVideo
package cn.sskbskdrin.record.camera;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.SurfaceTexture;
import android.os.Bundle;
import android.util.Log;
import android.view.SurfaceView;
import android.view.TextureView;
import android.view.View;
impo... |
Oriolac/cig-lib | src/test/java/cat/udl/cig/utils/discretelogarithm/LogarithmAlgorithmTest.java | package cat.udl.cig.utils.discretelogarithm;
import cat.udl.cig.structures.GroupElement;
import cat.udl.cig.structures.PrimeField;
import cat.udl.cig.structures.PrimeFieldElement;
import cat.udl.cig.structures.builder.PrimeFieldElementBuilder;
import cat.udl.cig.structures.ecc.EllipticCurve;
import cat.udl.cig.structu... |
Phoosha/neo4j-ogm | neo4j-ogm-tests/neo4j-ogm-integration-tests/src/test/java/org/neo4j/ogm/metadata/PrimitiveFieldsTest.java | /*
* Copyright (c) 2002-2021 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.... |
geekinasuit/MOE | client/src/test/java/com/google/devtools/moe/client/TaskTest.java | /*
* Copyright (c) 2011 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
artudev/cities | app/src/test/java/com/assignment/cities/model/sort/Text.java | package com.assignment.cities.model.sort;
/**
* Created by <NAME> on 02.05.2018.
*/
public class Text implements Mappable {
private String mText;
public Text(String text) {
mText = text;
}
public String getText() {
return mText;
}
public void setText(String text) {
mText = text;
}
@Override
public... |
cndabai/micro_ros | src/rcl_interfaces/msg/floating_point_range.h | <gh_stars>1-10
// generated from rosidl_generator_c/resource/idl.h.em
// with input from rcl_interfaces:msg/FloatingPointRange.idl
// generated code does not contain a copyright notice
#ifndef RCL_INTERFACES__MSG__FLOATING_POINT_RANGE_H_
#define RCL_INTERFACES__MSG__FLOATING_POINT_RANGE_H_
#include "rcl_interf... |
peterschrammel/jayhorn | soottocfg/src/main/java/soottocfg/ast/Absyn/CommaExp.java | package soottocfg.ast.Absyn; // Java Package generated by the BNF Converter.
public class CommaExp extends CommaExpList {
public final Exp exp_;
public CommaExp(Exp p1) { exp_ = p1; }
public <R,A> R accept(soottocfg.ast.Absyn.CommaExpList.Visitor<R,A> v, A arg) { return v.visit(this, arg); }
public boolean e... |
floatplane/homebrew-core | Formula/xaric.rb | class Xaric < Formula
desc "IRC client"
homepage "https://xaric.org/"
url "https://xaric.org/software/xaric/releases/xaric-0.13.7.tar.gz"
sha256 "fd8cd677e2403e44ff525eac7c239cd8d64b7448aaf56a1272d1b0c53df1140c"
license "GPL-2.0-or-later"
livecheck do
url "https://xaric.org/software/xaric/releases/"
... |
OpenIntelligence/PolicyAlpha | lib/custom_exception/user_banned.rb | <reponame>OpenIntelligence/PolicyAlpha
module CustomException
class UserBanned < StandardError
end
end
|
keybrl/xdu-coursework | projects/g3h1-java/Java2_CheckingAccount/src/BankSystem.java | import java.math.BigDecimal;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.ArrayList;
import java.util.Queue;
import java.util.LinkedList;
import java.util.Date;
/**
* 一个银行系统类
*
* @author 罗阳豪 16130120191
* @author <EMAIL>
*/
public class BankSystem {
... |
AyiinXd/Ayiin-Userbot | AyiinXd/modules/other.py | # Copyright (c) 2021 Man-Userbot
# Created by mrismanaziz
# FROM <https://github.com/mrismanaziz/Man-Userbot>
# t.me/SharingUserbot & t.me/Lunatic0de
#
# Thanks To Ultroid <https://github.com/TeamUltroid/Ultroid>
# Thanks To Geez-UserBot <https://github.com/vckyou/Geez-UserBot>
import os
from telethon import events
f... |
SweetIceLolly/DragControlsIDE | GCC/include/docobj.h | #ifndef _DOCOBJ_H
#define _DOCOBJ_H
#if __GNUC__ >= 3
#pragma GCC system_header
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define OLECMDERR_E_UNKNOWNGROUP (-2147221244)
#define OLECMDERR_E_DISABLED (-2147221247)
#define OLECMDERR_E_NOHELP (-2147221246)
#define OLECMDERR_E_CANCELED (-2147221245)
#define OLECMDERR_... |
BlackWatch13/clinic-a | Projecto/src/model/expediente.js | <reponame>BlackWatch13/clinic-a
import Sequelize from 'sequelize';
import {sequelize} from '../db/db';
const expediente = sequelize.define('expediente',{
idexpe:{
type: Sequelize.TEXT,
primaryKey: true
},
idpaciente:{
type: Sequelize.TEXT,
},
alergias:{
t... |
portal-webstore/books | practical-dojo-projects/ch08/js/dojo/dijit/nls/it/common.js | <gh_stars>1-10
({"buttonCancel": "Annulla", "buttonSave": "Salva", "buttonOk": "OK"}) |
joningis/coredata-java-api | src/main/java/com/bangsapabbi/api/common/ApiDTO.java | <reponame>joningis/coredata-java-api<filename>src/main/java/com/bangsapabbi/api/common/ApiDTO.java<gh_stars>0
package com.bangsapabbi.api.common;
public interface ApiDTO {
void setUUID(String uuid);
}
|
masami256/dfly-3.0.2-bhyve | contrib/gcc-4.1/gcc/c-pch.c | <filename>contrib/gcc-4.1/gcc/c-pch.c
/* Precompiled header implementation for the C languages.
Copyright (C) 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as pub... |
Hexav/AJE | Kaiper-Runtime-Lib/src/main/java/xyz/avarel/kaiper/runtime/collections/Range.java | /*
* 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 writing,
* software distribu... |
Fuud/rolling-metrics | src/main/java/com/github/rollingmetrics/top/impl/ResetByChunksTop.java | <reponame>Fuud/rolling-metrics
/*
*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... |
d-amien-b/simple-getwordpress | Collections-a-installer/community-general-2.4.0/tests/unit/plugins/lookup/test_tss.py | # -*- coding: utf-8 -*-
# (c) 2020, <NAME> <<EMAIL>>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible_collections.community.general.tests.unit.... |
xxyzzzq/ct_common | src/ct_common/common/exp_a.h | // Copyright 2016 ct_common authors. See LICENSE file for details.
#ifndef CT_COMMON_COMMON_EXP_A_H_
#define CT_COMMON_COMMON_EXP_A_H_
#include <memory>
#include <string>
#include <vector>
#include "ct_common/base/optional.h"
#include "ct_common/base/utils.h"
#include "ct_common/common/assignment.h"
#include "ct_com... |
bTest2018/Store | middleware-moshi/src/main/java/com/nytimes/android/external/store3/middleware/moshi/MoshiParserFactory.java | <gh_stars>1000+
package com.nytimes.android.external.store3.middleware.moshi;
import com.nytimes.android.external.store3.base.Parser;
import com.squareup.moshi.Moshi;
import java.lang.reflect.Type;
import javax.annotation.Nonnull;
import okio.BufferedSource;
/**
* Factory which returns various Moshi {@link Parser... |
Olibear/ArcRoutingLibrary | src/oarlib/improvements/impl/TwoInterchange.java | /*
* The MIT License (MIT)
*
* Copyright (c) 2013-2015 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... |
dvmarcilio/accumulo | core/src/main/java/org/apache/accumulo/core/client/ConditionalWriterConfig.java | <filename>core/src/main/java/org/apache/accumulo/core/client/ConditionalWriterConfig.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 l... |
SleepyAries/lugia-web | src/widgets/css/check-button.js | /**
* CheckButton 颜色公共值
* create by guorg
* @flow
*/
import colorsFunc from '../css/stateColor';
import styled, { css } from 'styled-components';
import CSSComponent, { StaticComponent } from '@lugia/theme-css-hoc';
import { px2remcss } from '../css/units';
import Icon from '../icon';
type CheckSize = 'default' | ... |
whtait/eggdash-iteration | server/models/User.js | const user = (sequelize, DataTypes) => {
const User = sequelize.define('User', {
firstName: {
type: DataTypes.STRING,
allowNull: false,
},
lastName: {
type: DataTypes.STRING,
allowNull: false,
},
email: {
type: DataTypes.STRING,
allowNull: false,
unique: t... |
todorkrastev/softuni-software-engineering | Java/M01JavaProgrammingBasics/L03ConditionalStatementsAdvanced/Lab/E11FruitShop.java | <gh_stars>1-10
package bg.softuni.programming_basics.conditional_statements_advanced.lab;
import java.util.Scanner;
public class E11FruitShop {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String fruit = scanner.nextLine();
String day = scanner.nextLi... |
leongold/ovirt-engine | backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/VmStatsVdsBrokerCommand.java | package org.ovirt.engine.core.vdsbroker.vdsbroker;
import static org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildInterfaceStatisticsData;
import static org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerObjectsBuilder.buildVMStatisticsData;
import static org.ovirt.engine.core.vdsbroker.vdsbroker... |
DCNick3/esp-idf | components/esp_pm/pm_trace.c | // Copyright 2016-2017 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... |
A-Ribeiro/OpenGLStarter | projects-lib/mini-gl-engine/shaders/AmbientLightPassShader.cpp | #include "AmbientLightPassShader.h"
using namespace aRibeiro;
namespace GLEngine {
void printV(vec3 v, const char* txt){
printf("%s -> %.11f %.11f %.11f\n",txt,v.x,v.y,v.z);
}
vec3 fakevec3topolar(vec3 i) {
vec3 result;
result.x = acos(i.z);
result.y = acos(i.x);
... |
ravindraranwala/JavaGenericsAndCollections | GenericsAndCollections/src/main/java/org/oreilly/books/chapter13/PriorityTask.java | package org.oreilly.books.chapter13;
import org.oreilly.books.chapter12.Task;
public class PriorityTask implements Comparable<PriorityTask> {
private final Task task;
private final Priority priority;
public PriorityTask(Task task, Priority priority) {
this.task = task;
this.priority = priority;
}
public Ta... |
longztian/cpp | codility/14_MinMaxDivision.cpp | // you can use includes, for example:
// #include <algorithm>
// you can write to stdout for debugging purposes, e.g.
// cout << "this is a debug message" << endl;
#include <algorithm>
#include <limits>
int solution(int K, int M, vector<int> &A) {
// write your code in C++11 (g++ 4.8.2)
int N = A.size();
... |
Tirthbharatiya/c-examples | Practical/spiral_order.c | /* a program that reads an M x N matrix A and prints its elements in spiral order */
#include <stdio.h>
#include<conio.h>
void main()
{
int i, k = 0, l = 0,m,n,a[20][20];
clrscr();
printf("Enter the number of row:");
scanf("%d",&m);
printf("Enter the number of column:");
scanf("%d",&n);
/* ... |
shadansari/onos-cu-cp | openair2/UTIL/OTG/otg_rx.h | /*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
wangaen/forum | forumServer/src/token/token.js | <filename>forumServer/src/token/token.js<gh_stars>1-10
let jwt = require('jsonwebtoken');
let jwtScrect = 'wyl_forum_token'; //签名
module.exports = {
//登录接口 生成token的方法
setToken: (nickname, _id) => {
return new Promise((resolve, reject) => {
//expiresln 设置token过期的时间
// jwt.sign()生成token
... |
thewtex/scikit-image | doc/examples/segmentation/plot_rag_merge.py | """
===========
RAG Merging
===========
This example constructs a Region Adjacency Graph (RAG) and progressively merges
regions that are similar in color. Merging two adjacent regions produces
a new region with all the pixels from the merged regions. Regions are merged
until no highly similar region pairs remain.
"""... |
reels-research/iOS-Private-Frameworks | NewsTransport.framework/NTPBEndpointConfig.h | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/NewsTransport.framework/NewsTransport
*/
@interface NTPBEndpointConfig : PBCodable <NSCopying> {
NSString * _analyticsEndpointUrlsJson;
NSString * _analyticsEnvelopeContentTypePropJson;
NSString * _clientApiBaseUrl;
int _envir... |
pierredebelen/gs-collections | unit-tests/src/test/java/com/gs/collections/impl/list/mutable/ArrayListAdapterTest.java | /*
* Copyright 2014 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
czs/lhjz | src/main/java/com/canzs/lhjz/component/AjaxJsonView.java | <filename>src/main/java/com/canzs/lhjz/component/AjaxJsonView.java
package com.canzs.lhjz.component;
import java.io.PrintWriter;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Com... |
nimetozk/budgeting-app-frontend | src/components/Controls/SelectionCountryList.js | <filename>src/components/Controls/SelectionCountryList.js
/**
A component created using the react-select.js library
It is implemented to provde input control on country selections.
To understand the implementation of the library,I have used the
documentation provided on: https://react-select.com/home
*/
imp... |
futureseadev/hgwxx7 | python/language/performance/performance_pandas_stopwords_1.py | # import libraries
import re
import tkinter
import pandas as pd
from timeit import timeit
import matplotlib.pyplot as plt
df = pd.DataFrame(
{
"ID": [1, 2, 3, 4, 5],
"name": [
"Hello Kitty",
"Hello Puppy",
"It is an Helloexample",
"for stackoverflow",... |
Amihozar/lp-components | src/forms/buttons/index.js | <reponame>Amihozar/lp-components
export Button from './button'
export ButtonArea from './button-area'
export SubmitButton from './submit-button' |
bcgov/foi-flow | request-management-api/request_api/models/FOIRawRequests.py | from enum import unique
from flask.app import Flask
from sqlalchemy.sql.schema import ForeignKey, ForeignKeyConstraint
from sqlalchemy.sql.expression import distinct
from .db import db, ma
from sqlalchemy.dialects.postgresql import JSON, UUID
from .default_method_result import DefaultMethodResult
from datetime import... |
SCV/enso | engine/runtime/src/test/scala/org/enso/compiler/test/pass/desugar/FunctionBindingTest.scala | <reponame>SCV/enso
package org.enso.compiler.test.pass.desugar
import org.enso.compiler.Passes
import org.enso.compiler.context.{InlineContext, ModuleContext}
import org.enso.compiler.core.IR
import org.enso.compiler.pass.desugar.FunctionBinding
import org.enso.compiler.pass.{IRPass, PassConfiguration, PassManager}
im... |
maricaantonacci/alien4cloud | alien4cloud-ui/src/main/webapp/scripts/meta-props/controllers/meta_props_conf.js | <filename>alien4cloud-ui/src/main/webapp/scripts/meta-props/controllers/meta_props_conf.js
define(function (require) {
'use strict';
var modules = require('modules');
var states = require('states');
require('scripts/meta-props/services/meta_props_conf_services');
require('scripts/common/directives/generic_fo... |
kpgangat/quality-measure-and-cohort-service | cohort-evaluator/src/main/java/com/ibm/cohort/cql/evaluation/CqlDebug.java | /*
* (C) Copyright IBM Corp. 2021, 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.cohort.cql.evaluation;
public enum CqlDebug {
NONE, DEBUG, TRACE
}
|
C2Talon/kolmafia | src/net/sourceforge/kolmafia/request/CosmicRaysBazaarRequest.java | package net.sourceforge.kolmafia.request;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import net.java.dev.spellcast.utilities.LockableListModel;
import net.sourceforge.kolmafia.AdventureResult;
import net.sourceforge.kolmafia.AdventureResult.AdventureLongCountResult;
import net.sourcefo... |
cheremin/scalarization | lab/src/main/java/ru/cheremin/scalarization/lab/tricky/NewRunnableScenario.java | package ru.cheremin.scalarization.lab.tricky;
import java.util.*;
import java.util.concurrent.Callable;
import ru.cheremin.scalarization.AllocationScenario;
import ru.cheremin.scalarization.ScenarioRun;
import ru.cheremin.scalarization.infra.ScenarioRunArgs;
import ru.cheremin.scalarization.lab.Utils.Pool;
import st... |
PengHuang0508/demo-reactjs-website | src/components/NavigationSidebar/NavigationSidebar.js | import React from "react";
import { stack as Menu } from "react-burger-menu";
import LanguageSwitcherMobile from "../LanguageSwitcherMobile";
class NavigationSidebar extends React.Component {
render() {
var styles = {
bmBurgerButton: {
height: "40px",
left: "25px",
position: "fixed"... |
wolfgangimig/joa | java/joa/src-gen/com/wilutions/mslib/outlook/_ColumnFormat.java | /* ** GENEREATED FILE - DO NOT MODIFY ** */
package com.wilutions.mslib.outlook;
import com.wilutions.com.*;
/**
* _ColumnFormat.
*
*/
@CoInterface(guid="{0006309E-0000-0000-C000-000000000046}")
public interface _ColumnFormat extends IDispatch {
static boolean __typelib__loaded = __TypeLib.load();
@... |
DhivakharVenkatachalam/snet-dapp | src/components/ServiceDetails/AboutService/ServiceDemo/Purchase/ExpiredSession/GeneralAccountWallet/PaymentPopup/Details/styles.js | <reponame>DhivakharVenkatachalam/snet-dapp
export const useStyles = theme => ({
deatilsTabDesc: {
marginTop: 32,
color: theme.palette.text.mediumShadeGray,
fontFamily: theme.typography.primary.main,
fontSize: 16,
lineHeight: "24px",
},
providerAndBalanceInfo: {
padding: 25,
display: "f... |
chs6558/chs6558.github.io | node_modules/styled-icons/fa-solid/CircleNotch/CircleNotch.esm.js | <reponame>chs6558/chs6558.github.io
export * from '@styled-icons/fa-solid/CircleNotch';
|
fhornain/patternfly-react-seed_1 | node_modules/@patternfly/react-icons/dist/js/icons/microchip-icon.d.js | "use strict";
//# sourceMappingURL=microchip-icon.d.js.map |
kaituo/sedge | trunk/src-kaituo/edu/umass/cs/pig/Hide.java | <reponame>kaituo/sedge<filename>trunk/src-kaituo/edu/umass/cs/pig/Hide.java
package edu.umass.cs.pig;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Use this annotation to hide a MainConfig option
* from being printed.
*
* @author <EMAIL> (<NAME>)
*/
@Retention(Retent... |
GoatGirl98/cf | contest/1251/a/a.cpp | <gh_stars>0
#include<bits/stdc++.h>
using namespace std;
using LL = long long;
int main(){
//freopen("in", "r", stdin);
std::ios::sync_with_stdio(false);std::cin.tie(nullptr);
int cas;
cin>>cas;
while(cas--){
string a;
cin>>a;
int n = a.length();
bool v[26]={};
for(int i=0;i<n;++i){
if(i==n-1){
... |
tarunj116/GarageCustomer | node_modules/@rpldy/shared-ui/lib/esm/utils.js | import { useEffect, useState, useCallback } from "react";
import { isProduction } from "@rpldy/shared";
import { UPLOAD_OPTIONS_COMP } from "./consts";
import useUploadyContext from "./useUploadyContext";
const useEventEffect = (event, fn) => {
const context = useUploadyContext();
const {
on,
off
} = con... |
pavelerofeev/ontrack | ontrack-repository-impl/src/test/java/net/nemerosa/ontrack/repository/PropertyJdbcRepositoryIT.java | <reponame>pavelerofeev/ontrack
package net.nemerosa.ontrack.repository;
import com.fasterxml.jackson.core.JsonProcessingException;
import net.nemerosa.ontrack.json.JsonUtils;
import net.nemerosa.ontrack.model.structure.Project;
import net.nemerosa.ontrack.model.structure.ProjectEntityType;
import org.junit.Before;
imp... |
want-fly/huaweicloud-sdk-go-v3 | services/cdm/v1/model/model_cdm_query_cluster_details_repsonse_public_endpoint_status.go | package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// EIP状态信息
type CdmQueryClusterDetailsRepsonsePublicEndpointStatus struct {
// 状态
Status *string `json:"status,omitempty"`
// 错误信息
ErrorMessage *string `json:"errorMessage,omitempty"`
}
func (o CdmQueryClusterDetail... |
Virtual-Hex/virtual-hex-editor | editor-engine-api/src/main/java/com/virtual_hex/editor/PluginLoadCode.java | <reponame>Virtual-Hex/virtual-hex-editor
package com.virtual_hex.editor;
public enum PluginLoadCode {
JAR_FILE_IO_EXCEPTION("Jar File IO Exception"),
JAR_MANIFEST_IO_EXCEPTION("Jar Manifest IO Exception"),
NO_JAR_MANIFEST("Missing jar manifest"),
NO_JAR_MANIFEST_VALUE("Missing jar manifest value"),
... |
FIWARE/CanisMajor | src/controller/helper-controller.js | import { getFromIPFS } from '../util/helper/ipfs';
import { getFromIOTA } from '../util/helper/iota';
import { verify } from '../util/helper/merkle';
import { StatusCodes } from 'http-status-codes';
import { trytesToAscii} from '@iota/converter';
import { composeAPI } from '@iota/core';
import { DLT_CONFIGURATION } fro... |
manggoguy/parsec-modified | ext/splash2x/apps/water_nsquared/src/water.h | #line 233 "parmacs.pthreads.c.m4"
#line 1 "water.H"
/*************************************************************************/
/* */
/* Copyright (c) 1994 Stanford University */
/* ... |
Shubhrmcf07/Competitive-Coding-and-Interview-Problems | Leet Code/3sum.cpp | /* Leet Code */
/* Title - 3Sum */
// Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
// Note:
// The solution set must not contain duplicate triplets.
// Example:
// Given array nums = [-1, 0... |
PuZhiweizuishuai/HomeworkEvaluation | evaluation/src/main/java/com/buguagaoshu/homework/evaluation/exception/UserDataFormatException.java | <filename>evaluation/src/main/java/com/buguagaoshu/homework/evaluation/exception/UserDataFormatException.java
package com.buguagaoshu.homework.evaluation.exception;
/**
* @author <NAME> {@literal <EMAIL>}
* create 2020-06-12 21:50
* 用户提交数据不符合规定异常
*/
public class UserDataFormatException extends RuntimeExce... |
HelloOO7/CTRMapStandardLibrary | src/ctrmap/stdlib/math/BlenLibMath.java | package ctrmap.stdlib.math;
import ctrmap.stdlib.math.vec.Matrix4;
import ctrmap.stdlib.math.vec.Vec3f;
import org.joml.Matrix3f;
/**
* Linear algebra from the Blender Library, available at:
* https://github.com/blender/blender/tree/master/source/blender/blenlib/intern
*/
public class BlenLibMath {
private stat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.