repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
interserver/mailbaby-api-samples | swagger-client/jaxrs-resteasy/src/gen/java/io/swagger/api/MailApiService.java | package io.swagger.api;
import io.swagger.api.*;
import io.swagger.model.*;
import io.swagger.model.GenericResponse;
import io.swagger.model.InlineResponse401;
import io.swagger.model.MailAttachment;
import io.swagger.model.MailContact;
import io.swagger.model.MailLog;
import io.swagger.model.MailOrder;
import io.swa... |
iteaj/iot | iot-client/src/main/java/com/iteaj/iot/client/mqtt/api/impl/MqttConsumerProcessImpl.java | package com.iteaj.iot.client.mqtt.api.impl;
import com.iteaj.iot.client.IotNettyClient;
import com.iteaj.iot.client.mqtt.api.ClientProcess;
import com.iteaj.iot.client.mqtt.api.MqttConsumer;
import com.iteaj.iot.client.mqtt.api.MqttConsumerListener;
import com.iteaj.iot.client.mqtt.api.MqttConsumerProcess;
import com.... |
urandom/webfw | middleware/error.go | package middleware
import (
"fmt"
"net/http"
"runtime/debug"
"time"
"github.com/urandom/webfw"
"github.com/urandom/webfw/context"
)
// The Error middleware provides basic panic recovery for a request. For
// this reason, it should be at the botton of the middleware chain, to
// catch any raised panics along th... |
theumang100/tutorials-1 | core-python/Core_Python/algorithms/BubbleSort.py | <reponame>theumang100/tutorials-1<gh_stars>1-10
def bubbleSort(lst):
for i in range(0,len(lst)):
for j in range(i):
if lst[j] > lst[j+1]:
temp = lst[j]
lst[j] = lst[j+1]
lst[j+1] = temp
return lst
if __name__ == "__main__":
lst = [23,45,12... |
afialapis/calustra | packages/orm/src/util/index.js | import merge from './merge'
import filterObj from './filterObj'
import objToTuple from './objToTuple'
export {merge, filterObj, objToTuple} |
codyseibert/ef-cms | web-client/src/presenter/sequences/submitUpdatePractitionerUserSequence.js | import { checkEmailAvailabilityAction } from '../actions/checkEmailAvailabilityAction';
import { clearAlertsAction } from '../actions/clearAlertsAction';
import { clearScreenMetadataAction } from '../actions/clearScreenMetadataAction';
import { getComputedAdmissionsDateAction } from '../actions/getComputedAdmissionsDat... |
dphaener/ramda-extension | packages/ramda-extension/src/equalsLength.js | <reponame>dphaener/ramda-extension
import { equals } from 'ramda';
import { compareLength } from './internal/lengthUtils';
/**
* Returns true if length of array equals first argument
*
* @func
* @category List
*
* @example
*
* const lengthEqualsOne = R_.equalsLength(1)
* lengthEqualsOne([{}]) //... |
burningrain/libGDX-book-gameDelopmentByExample | chapter4/libgdx-simple-console/src/com/github/br/gdx/simple/console/Command.java | <filename>chapter4/libgdx-simple-console/src/com/github/br/gdx/simple/console/Command.java
package com.github.br.gdx.simple.console;
import com.github.br.gdx.simple.console.exception.CommandExecutionException;
/**
* Created by user on 23.12.2018.
*/
public interface Command {
String execute(String[] args) thro... |
evelynejuliet/main | src/test/java/seedu/ifridge/logic/commands/wastelist/FeedbackWasteCommandTest.java | <reponame>evelynejuliet/main
package seedu.ifridge.logic.commands.wastelist;
import static seedu.ifridge.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.ifridge.testutil.TypicalBoughtList.getTypicalBoughtList;
import static seedu.ifridge.testutil.TypicalGroceryItems.getTypicalGroceryList;
impo... |
alishenli/heterogeneity-aware-lowering-and-optimization | lib/target/generic_llvmir/gemm.cc | //===- gemm.cc ------------------------------------------------------------===//
//
// Copyright (C) 2019-2020 Alibaba Group Holding Limited.
//
// 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 ... |
nextbreakpoint/example-online-shop | common/modules/core/src/main/java/com/nextbreakpoint/blueprint/common/core/TilesBitmap.java | package com.nextbreakpoint.blueprint.common.core;
import lombok.Data;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
@Data
public class TilesBitmap {
private byte[] bitmap;
private static List<Integer> COUNT_TABLE = IntStream.range(0... |
tupamba/kardex | node_modules/firebase/firestore/core/target_id_generator.js | <reponame>tupamba/kardex<gh_stars>0
/*! @license Firebase v4.5.0
Build: rev-f49c8b5
Terms: https://firebase.google.com/terms/ */
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... |
mjtomlinson/CNE330_Python_1_Final_Project | pythonProject1/venv/Lib/site-packages/jsonlog/tests/test_config.py | import logging
import logging.config
import pathlib
import sys
import tempfile
import pytest
import jsonlog
import jsonlog.tests.capture
def test_basic_config(capture: jsonlog.tests.capture.Capture):
jsonlog.basicConfig()
jsonlog.warning("Hello world")
assert '"message": "Hello world"' in capture
def ... |
dpak96/VOOGASalad | src/startscreen/NewGameDialog.java | <reponame>dpak96/VOOGASalad
package startscreen;
import javafx.scene.control.ButtonType;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Dialog;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.control.ButtonBar.ButtonData;
import javafx.scene.layout.GridP... |
francescozoccheddu/cinolib | include/cinolib/grid_projector.tpp | /********************************************************************************
* This file is part of CinoLib *
* Copyright(C) 2016: <NAME> *
* ... |
connorslagle/connorslagle.github.io | vendor/bundle/ruby/2.6.0/gems/octokit-4.18.0/lib/octokit/client/milestones.rb | module Octokit
class Client
# Methods for the Issues Milestones API
#
# @see https://developer.github.com/v3/issues/milestones/
module Milestones
# List milestones for a repository
#
# @param repository [Integer, String, Repository, Hash] A GitHub repository
# @param options ... |
stage-tech/basestar | basestar-schema/src/main/java/io/basestar/schema/History.java | <gh_stars>1-10
package io.basestar.schema;
/*-
* #%L
* basestar-schema
* %%
* Copyright (C) 2019 - 2020 Basestar.IO
* %%
* 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
*
* htt... |
mitring/cuba | modules/web-toolkit/src/com/haulmont/cuba/web/widgets/client/twincolselect/CubaTwinColSelectWidget.java | <reponame>mitring/cuba
/*
* Copyright (c) 2008-2016 Haulmont.
*
* 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 b... |
fearthecowboy/yarn-aio | lib/workspace-layout.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _packageRequest;
function _load_packageRequest() {
return _packageRequest = _interopRequireDefault(require('./package-request.js'));
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
... |
danielzfranklin/lldb-sys.rs | src/lldb/Bindings/SBDeclarationBinding.cpp | <gh_stars>0
//===-- SBDeclarationBinding.cpp --------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------... |
xstefank/smallrye-fault-tolerance | implementation/core/src/main/java/io/smallrye/faulttolerance/core/timeout/TimerTimeoutWatcher.java | package io.smallrye.faulttolerance.core.timeout;
import io.smallrye.faulttolerance.core.timer.Timer;
import io.smallrye.faulttolerance.core.timer.TimerTask;
public class TimerTimeoutWatcher implements TimeoutWatcher {
private final Timer timer;
public TimerTimeoutWatcher(Timer timer) {
this.timer = t... |
lvaughn/advent | 2017/2/checksum.py | <filename>2017/2/checksum.py
#!/usr/bin/env python3
import re
rows = []
total = 0
with open('input.txt', 'r') as f:
for line in f:
data = [int(a) for a in re.split(r'\s+', line.strip())]
total += max(data) - min(data)
rows.append(data)
print("Part 1", total)
total = 0
for row in rows:
... |
KrossX/Advent_of_Code | 2019/day06_data.c | <reponame>KrossX/Advent_of_Code
/* Copyright (c) 2019 KrossX <<EMAIL>>
* License: http://www.opensource.org/licenses/mit-license.html MIT License
*/
char input[][2][4] = {
{"WGB","S14"},
{"WN4","27C"},
{"18L","M18"},
{"1HY","6ZP"},
{"TQ9","KQ6"},
{"HQ3","HH1"},
{"FLC","F1Z"},
{"D6R","ZPC"},
{"2VD","GK3"},
{"YY3","3... |
TierynnB/LeaguePyBot | LPBv2/controller/actions/combat.py | <reponame>TierynnB/LeaguePyBot
from . import Action
class Combat(Action):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
async def attack_move(self, x: int, y: int):
self.keyboard.press(self.hotkeys.attack_move)
self.mouse.set_position_and_left_click(x, y)
... |
alpavlenko/EvoGuess | tools/check_cnf.py | <filename>tools/check_cnf.py
import json
from concurrent.futures.process import ProcessPoolExecutor
from instance import Instance
from function.module.solver import solvers
MAX_WORKERS = 36
SOLVERS = ['g3', 'g4', 'cd']
INSTANCES = {
'sgen_150_100': 'sgen/sgen6_900_100.cnf',
'sgen_150_200': 'sgen/sgen6_900_20... |
orangejulius/donationparty | app/views/api/rounds/show.json.jbuilder | <reponame>orangejulius/donationparty<filename>app/views/api/rounds/show.json.jbuilder<gh_stars>0
json.set! :round do
json.partial! 'api/rounds/round', round: @round
end
json.set! :donations_template, @donations
json.set! :payment_info_template, @payment_info
|
fideoman/geronimo | plugins/myfaces/geronimo-myfaces/src/main/java/org/apache/geronimo/myfaces/info/GeronimoFacesConfigurationMergerFactory.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"); yo... |
zubairq/jsql | public/visifile_drivers/controls/radiobutton.js | function(args) {
/*
is_app(true)
component_type("VB")
display_name("Radio button control")
description("This will return the radio button control")
base_component_id("radio_button_control")
load_once_from_file(true)
visibility("PRIVATE")
read_only(true)
properties(
[
{
id: "text",
... |
rudecs/ePortal | users/app/controllers/api/v1.rb | class API::V1 < Grape::API
@@Boolean = Virtus::Attribute::Boolean
format :json
formatter :json, Grape::Formatter::Jbuilder
content_type :json, 'application/json'
before do
env['api.tilt.root'] = 'app/views/api/v1'
end
def self.inherited(subclass)
super
helpers do
def authenticate!
... |
shaojiankui/iOS10-Runtime-Headers | Frameworks/UIKit.framework/_UIWebFindOnPageHighlightBubbleView.h | <filename>Frameworks/UIKit.framework/_UIWebFindOnPageHighlightBubbleView.h
/* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/UIKit.framework/UIKit
*/
@interface _UIWebFindOnPageHighlightBubbleView : UIView {
struct CGImage { } * _highlightedContent;
struct CGPoint {
double x;
... |
jamie1192/Warmind-for-Destiny-2 | app/src/main/java/com/jastley/exodusnetwork/repositories/OnBoardingRepository.java | package com.jastley.exodusnetwork.repositories;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import com.google.gson.Gson;
import com.jastley.exodusnetwork.api.BungieAPI;
import com.jast... |
cupcake/setdb | key_buffer.go | <gh_stars>10-100
package main
import (
"bytes"
"encoding/binary"
)
const keyPrefixSize = 5
// KeyBuffer is a reusable key for LevelDB
type KeyBuffer struct {
buf []byte
keyLen int
reverseKey bool
}
// Create a new key of type t with key and room for extra bytes.
func NewKeyBuffer(t byte, key []byte,... |
osgvsun/lubanlou | lubanlou-master/lubanlou-common/src/main/java/net/gvsun/datashare/external/shareddata/SchoolRoomDTO.java | <filename>lubanlou-master/lubanlou-common/src/main/java/net/gvsun/datashare/external/shareddata/SchoolRoomDTO.java
package net.gvsun.datashare.external.shareddata;
import net.gvsun.common.Recordable;
public class SchoolRoomDTO extends Recordable implements Shared {
private String roomNumber;
private String ... |
Kanapriya/wso2-shindig-1 | features/src/main/javascript/features/container/service.js | /*
* 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 ma... |
z-zxq-123456/myproject | personalZookeeper/distributedLock/src/main/java/com/flykingmz/zookeeper/dLock/TestSimpleDistributedLock.java | package com.flykingmz.zookeeper.dLock;
import java.util.concurrent.CountDownLatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestSimpleDistributedLock {
private final static Logger logger = LoggerFactory
.getLogger(TestSimpleDistributedLock.class);
private static final int THREAD_N... |
javaDer/learn-qingyun | learn-goods/src/main/java/com/wwjswly/learn/service/ModuleService.java | package com.wwjswly.learn.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wwjswly.entity.goods.Module;
/**
* <p>
* 服务类
* </p>
*
* @author zhangzhaofa
* @since 2019-05-15
*/
public interface ModuleService extends IService<Module> {
}
|
alexiynew/nih_framework | neutrino/graphics/shader.hpp | <filename>neutrino/graphics/shader.hpp
#ifndef FRAMEWORK_GRAPHICS_SHADER_HPP
#define FRAMEWORK_GRAPHICS_SHADER_HPP
#include <filesystem>
#include <string>
#include <common/instance_id.hpp>
#include <math/math.hpp>
namespace framework::graphics
{
///////////////////////////////////////////////////////////////////////... |
iaas-splab/saes-prototype | saes-knowledge-base/src/main/java/de/uni_stuttgart/iaas/saes/knowledge_base/domain/Taxonomy.java | /*
* This file is part of the Serverless Application Extraction System (SAES)
*
* The Serverless Application Extraction System is licensed under under
* the Apache License, Version 2.0. Please see the included COPYING file
* for license information.
*/
package de.uni_stuttgart.iaas.saes.knowledge_base.domain;
import j... |
xpzouying/go-practice | map_vs_sync_map/sync_map/main.go | <reponame>xpzouying/go-practice
package main
import (
"fmt"
"sync"
)
func addWithoutMutex() {
var m sync.Map
var wg sync.WaitGroup
wg.Add(10)
for i := 0; i < 10; i++ {
go func(i int) {
defer wg.Done()
m.Store(i, i)
}(i)
}
wg.Wait()
fn := func(key, value interface{}) bool {
fmt.Printf("key=%d,... |
devuxd/Reacher | TutorialExamples/src/edu/cmu/cs/crystal/analysis/npe/simpleflow/NullLatticeElement.java | package edu.cmu.cs.crystal.analysis.npe.simpleflow;
/**
* There are only 4 possibilities for nullness:
* Null: if the value is definitely null.
* Not_null: if the value is definitely not null.
* Maybe_null: if the value could be null.
* Bottom: if the concept of nullness does not apply.
* @author ciera
*
*/
p... |
shachindrasingh/apiman | gateway/engine/core/src/main/java/io/apiman/gateway/engine/IMetrics.java | /*
* Copyright 2015 JBoss 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 i... |
ahunter-eyelock/wtf | include/wtf/wtf.hpp | <filename>include/wtf/wtf.hpp
/** @file
@copyright <NAME> (c) 2016. Distributed under the Boost Software License Version 1.0. See LICENSE.md or http://boost.org/LICENSE_1_0.txt for details.
*/
#pragma once
#if !defined(NOMINMAX)
#define NOMINMAX 1
#endif
#if !defined(_WIN32_IE)
#define _WIN32_IE 0x600
#endif
/*... |
Theembers/iot-dc | iot-framework-dc/src/main/java/com/theembers/iot/router/route/MultipleRoute.java | <filename>iot-framework-dc/src/main/java/com/theembers/iot/router/route/MultipleRoute.java
package com.theembers.iot.router.route;
import com.theembers.iot.collector.SourceData;
import com.theembers.iot.processor.Processor;
import com.theembers.iot.router.Router;
import com.theembers.iot.router.rule.MultipleRule;
impo... |
kolema-tech/sigma-spring | sigma-security-spring-boot-starter/src/main/java/com/sigma/security/SigmaSecurityProperties.java | <gh_stars>0
package com.sigma.security;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* @author huston.peng
* @version 1.0.8
* date-time: 2019-10-
* desc:
**/
@Configuration
@ConfigurationProperties... |
fabiojna02/OpenCellular | firmware/coreboot/3rdparty/blobs/cpu/intel/model_f3x/microcode.h |
#include "microcode-m0df320a.h"
#include "microcode-m0df330c.h"
#include "microcode-m1df3417.h"
|
wangjuneng/spring-security-staff | core/src/main/java/org/springframework/security/core/context/InheritableThreadLocalSecurityContextHolderStrategy.java | <reponame>wangjuneng/spring-security-staff<gh_stars>0
package org.springframework.security.core.context;
import org.springframework.util.Assert;
public class InheritableThreadLocalSecurityContextHolderStrategy implements SecurityContextHolderStrategy {
private static final ThreadLocal<SecurityContext> contextHol... |
Suicolen/RSPSi | Client/src/main/java/com/jagex/util/GraphicUtils.java | package com.jagex.util;
import java.awt.Graphics;
public class GraphicUtils {
public static void drawStringCentered(Graphics g, int y, int width, String text) {
g.drawString(text, width / 2 - g.getFontMetrics().stringWidth(text), y);
}
}
|
danielavellar15/ckeditor5 | packages/ckeditor5-find-and-replace/src/findandreplacestate.js | /**
* @license Copyright (c) 2003-2021, CKSource - <NAME>. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/**
* @module find-and-replace/findandreplacestate
*/
import { ObservableMixin, mix, Collection } from 'ckeditor5/src/utils';
/**
* The object st... |
nathanchen/netty-netty-5.0.0.Alpha1 | transport/src/main/java/io/netty/channel/ThreadPerChannelEventLoop.java | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you 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 ... |
driden/EntregaGrafos4 | Entrega4/CasoDePrueba.cpp | <gh_stars>0
#include "CasoDePrueba.h"
#include "CadenaFuncionHash.h"
#include "FuncionCostoCadenaInt.h"
CasoDePrueba::CasoDePrueba(Puntero<Sistema>(*inicializar)(nat max_ciudades))
{
this->inicializar = inicializar;
maxVertices = 20;
}
Puntero<Sistema> CasoDePrueba::InicializarSistema()
{
Puntero<Sistema> interfa... |
UKPLab/inlg2019-revisiting-binlin | binlin/model/nn_utils.py | import copy
import torch
from torch import nn as nn
def get_embed_matrix(vocab_size, embedding_dim, padding_idx):
return nn.Embedding(vocab_size, embedding_dim, padding_idx)
def get_gru_unit(gru_config):
return nn.GRU(input_size=gru_config['input_size'],
hidden_size=gru_config['hidden_siz... |
ChrisWC/MaterL | src/components/Material/CardGrid/Component.js | /****************************************************************************
* 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/l... |
mattvonrocketstein/ymir | ymir/api.py | <reponame>mattvonrocketstein/ymir
# -*- coding: utf-8 -*-
""" ymir.api
"""
import os
import re
import demjson
from fabric.colors import yellow
from voluptuous import Optional, Undefined
from ymir import util
from ymir.base import report as base_report
from ymir import schema as yschema
import jinja2
jinja_env = jin... |
Cwc-Lib/Cello | src/Type.c | #include "Cello.h"
static const char* Cast_Name(void) {
return "Cast";
}
static const char* Cast_Brief(void) {
return "Runtime Type Checking";
}
static const char* Cast_Description(void) {
return
"The `Cast` class provides a rudimentary run-time type checking. By "
"default it simply checks that the pa... |
chriskim06/go-sdk | db/migration/guards.go | /*
Copyright (c) 2021 - Present. Blend Labs, Inc. All rights reserved
Use of this source code is governed by a MIT license that can be found in the LICENSE file.
*/
package migration
import (
"context"
"database/sql"
"github.com/blend/go-sdk/db"
)
// GuardFunc is a control for migration steps.
// It should int... |
isabella232/spring-data-geode | spring-data-geode/src/main/java/org/springframework/data/gemfire/GemfireUtils.java | /*
* Copyright 2010-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
BookCrossingTeam/BookCrossingAPP | app/src/main/java/com/example/administrator/bookcrossingapp/fragment/ReviewsArticleFragment.java | package com.example.administrator.bookcrossingapp.fragment;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recycl... |
johsteffens/beth | lib/bmath/bmath_quicktypes_list.h | /** List of predefined types for quick access.
* Created via bmath_quicktypes_to_stdout( NULL );
*/
#define TYPEOF_bmath_arr_grt_f2_s 0x52F7E9BA63D022AAull
#define TYPEOF_bmath_arr_grt_f3_s 0x5DAD02BA6A753825ull
#define TYPEOF_bmath_arr_mf2_s 0xCE12553698D40859ull
#define TYPEOF_bmath_arr... |
ewie/activej | core-serializer/src/main/java/io/activej/serializer/util/RecordSerializer.java | package io.activej.serializer.util;
import io.activej.codegen.util.WithInitializer;
import io.activej.record.Record;
import io.activej.record.RecordScheme;
import io.activej.serializer.BinaryInput;
import io.activej.serializer.BinaryOutput;
import io.activej.serializer.BinarySerializer;
import io.activej.serializer.Co... |
MadBase/MadNetJS | src/Wallet.js | const Account = require("./Account.js")
const Transaction = require("./Transaction.js")
const RPC = require("./RPC.js");
const utils = require("./Util");
/**
* Wallet handler
* @class
* @alias module:Wallet
* @property {Number} chainId - ChainID of the network to be connected to
* @property {Account} Account - Ma... |
sunahsuh/s3mock | src/test/scala/io/findify/s3mock/MultipartUploadTest.scala | package io.findify.s3mock
import java.io.ByteArrayInputStream
import java.nio.charset.Charset
import akka.actor.ActorSystem
import akka.http.scaladsl.Http
import akka.http.scaladsl.model.{HttpMethods, HttpRequest}
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.Sink
import akka.util.ByteString
import... |
kamushadenes/swayit | modules/bw/functions.go | package bw
import (
"encoding/json"
"fmt"
"github.com/kamushadenes/swayit/common"
"github.com/kamushadenes/swayit/config"
"os"
"os/exec"
"strings"
"time"
)
func maskPassword(pwd string) string {
var masked []string
masked = append(masked, string(pwd[0]))
for i := 1; i <= len(pwd)-2; i++ {
masked = appe... |
wivw0306/bk-cmdb | src/source_controller/coreservice/service/count.go | <reponame>wivw0306/bk-cmdb
/*
* Tencent is pleased to support the open source community by making 蓝鲸 available.,
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the ",License",); you may not use this file except
* in compliance with the License. Y... |
RichardBronosky/aws-api-tools | __mocks__/react-intersection-observer.js | <filename>__mocks__/react-intersection-observer.js
import React from 'react'
// __mocks__/react-intersection-observer.js
export const InView = ({ children }) => React.createElement(
'div',
{ ref: null, inView: true },
children
)
|
arjun-dasinfomedia/tutor_park | src/views/Timeline/EditTimeLine.js | <gh_stars>0
import React, { useState } from "react";
import { useDispatch } from "react-redux";
import { useHistory } from 'react-router-dom'
import {
CRow,
CCol,
} from "@coreui/react";
import { updateTimeLine } from "./TImeLineAction"
import { Form, useForm } from "src/components/formControls/useForm";
import... |
jdh8/metallic | include/fcntl.h | #ifndef _FCNTL_H
#define _FCNTL_H
typedef unsigned mode_t;
typedef long long off_t;
typedef int pid_t;
struct flock
{
short l_type;
short l_whence;
off_t l_start;
off_t l_len;
pid_t l_pid;
};
#define F_DUPFD 0
#define F_GETFD 1
#define F_SETFD 2
#define F_GETFL 3
#define F_SETFL 4
#define F... |
elimak/music-tag-extractor | node_modules/redux-async-connect/modules/ReduxAsyncConnect.js | import React from 'react';
import RouterContext from 'react-router/lib/RouterContext';
import { beginGlobalLoad, endGlobalLoad } from './asyncConnect';
import { connect } from 'react-redux';
const { array, func, object, any } = React.PropTypes;
/**
* We need to iterate over all components for specified routes.
* Co... |
iandexter/terraform-provider-databricks | workspace/resource_notebook.go | package workspace
import (
"context"
"encoding/base64"
"path/filepath"
"strings"
"sync"
"github.com/databrickslabs/terraform-provider-databricks/common"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)
// ...
const (
Notebook s... |
machinio/solrb | lib/solr/query/request/facet.rb | module Solr
module Query
class Request
class Facet
include Solr::Support::SchemaHelper
TERMS_TYPE = :terms
QUERY_TYPE = :query
RANGE_TYPE = :range
attr_reader :field,
:type,
:name,
:value,
... |
DrFaust92/terraformer | vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go | <gh_stars>1-10
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package ec2
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
type ModifyVpnConnectionInput struct {
_ struct{} `type:"structure"`
// The ID of the customer gateway at your... |
sebastiandoe5/coronavirus-dashboard | src/components/Pane/index.js | export { default } from "./Pane"
export * from "./Pane";
|
kpodsiad/sbt | main/src/main/scala/sbt/internal/FileChangesMacro.scala | <gh_stars>1000+
/*
* sbt
* Copyright 2011 - 2018, Lightbend, Inc.
* Copyright 2008 - 2010, <NAME>
* Licensed under Apache License 2.0 (see LICENSE)
*/
package sbt
package internal
import java.nio.file.{ Path => NioPath }
import sbt.nio.Keys._
import sbt.nio.{ FileChanges, FileStamp }
import scala.annotation.co... |
NovaOrdis/series | src/main/java/com/novaordis/series/storage/Storage.java | <reponame>NovaOrdis/series
package com.novaordis.series.storage;
import com.novaordis.series.Row;
import java.util.Iterator;
/**
* The interface exposed by the components that store Row instances. Row counter starts from 1 - the first line in the file is line 1.
*
* Non-successive lines are acceptable - ... |
jamessynge/mcucore | src/array_view.h | #ifndef MCUCORE_SRC_ARRAY_VIEW_H_
#define MCUCORE_SRC_ARRAY_VIEW_H_
// ArrayView references a C-style array of T of known (fixed) size. It provides
// STL style support for iterating over the C-style array, in support of dealing
// with static configuration data provided to TinyAlpacaServer.
//
// Author: <EMAIL>
#in... |
liuweixingGitHub/AXiOSTools | AXiOSKit/Classes/Kit/Observe/AXGCDTimer.h | <reponame>liuweixingGitHub/AXiOSTools
//
// AXGCDTimer.h
// AXiOSKitDemo
//
// Created by liuweixing on 2018/6/23.
// Copyright © 2018年 liuweixing. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface AXGCDTimer : NSObject
/**
GCD timer 不会强引用 ,不自动开始,调用 sourceTimerStart
@param aInterval 间隔
@pa... |
cameroncooke/XcodeHeaders | PlugIns/GPUTraceDebuggerUI/DYPVariablesViewGPUStateValue-Protocol.h | <filename>PlugIns/GPUTraceDebuggerUI/DYPVariablesViewGPUStateValue-Protocol.h
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "NSObject.h"
@class NSArray, NSString;
@protocol DYPVariablesViewGPUStateValue <NSObject>
@property... |
hal0x2328/neo3-boa | boa3_test/test_sc/bytes_test/BytearrayExtend.py | from boa3.builtin import public
@public
def Main() -> bytearray:
a = bytearray(b'\x01\x02\x03')
a.extend(b'\x04\x05\x06')
return a
|
lechium/tvOS130Headers | usr/libexec/securityd/CKKSReachabilityTracker.h | <reponame>lechium/tvOS130Headers
/*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 3:11:52 PM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /usr/libexec/securityd
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.
*/
... |
Voltra/StandardClassLibrary | include/scl/concepts/NonMovable.h | #pragma once
#include <scl/tools/meta/type_check.h>
namespace scl{
namespace concepts{
/**
* NonMovable concept, a type is non movable if it is neither move constructible nor move assignable
* @tparam T being the type to check against
*/
template <class T>
struct NonMovable{
constexpr o... |
DYS12345/ShopTest | ShopTest/Order/ValidationViewController.h | //
// ValidationViewController.h
// ShopTest
//
// Created by dong on 2017/9/20.
// Copyright © 2017年 dong. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ValidationViewController : UIViewController
@property(nonatomic, strong) UIImage *image;
@property(nonatomic, strong) UINavigationController *navi... |
Fangtian89/DebuggerTest | app/src/main/java/com/example/debuggertest/until/ToastUtil.java | package com.example.debuggertest.until;
import android.content.Context;
import android.widget.Toast;
public class ToastUtil {
public static Toast mToast;
public static void showMsg(Context context,String msg){
if(mToast==null){
mToast=Toast.makeText(context,msg,Toast.LENGTH_LONG);
... |
Oagenda/agenda-docx | server/lib/isNumber.js | 'use strict';
module.exports = num => !isNaN( num ) && Number.isFinite( num );
|
9dots/artbot | lib/pages/Create/PublishPage/PublishPage.js | /**
* Imports
*/
import AddToPlaylistModal from 'components/AddToPlaylistModal'
import CreatePlaylist from 'components/CreatePlaylist'
import {component, element} from 'vdux'
import Button from 'components/Button'
import {Block, Text} from 'vdux-ui'
import mapVals from '@f/map-values'
import filter from '@f/filter'
... |
JonasKunz/inspectIT | inspectit.ui.rcp/src/main/java/rocks/inspectit/ui/rcp/ci/form/part/EUMSettingsPart.java | <gh_stars>0
package rocks.inspectit.ui.rcp.ci.form.part;
import org.eclipse.jface.viewers.ArrayContentProvider;
import org.eclipse.jface.viewers.ColumnLabelProvider;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TableViewerColumn;
import org.eclipse.swt.SWT;
import org.eclipse.swt.even... |
incentivetoken/offspring | com.dgex.offspring.application/src/com/dgex/offspring/application/utils/ExchangeRates.java | package com.dgex.offspring.application.utils;
import java.util.List;
import org.apache.log4j.Logger;
import com.dgex.offspring.providers.bitcoinaverage.TickerAllProvider;
import com.dgex.offspring.providers.dgex.DGEXCurrentRateProvider;
import com.dgex.offspring.providers.service.Currencies;
import com.dgex.offsprin... |
Kenneth-KT/rails-assets | app/models/build/bower_error.rb | <gh_stars>100-1000
module Build
# Encapsulate Bower errors
# parsed from Bower JSON output
class BowerError < BuildError
attr_reader :path, :command, :details, :code
ENOTFOUND = 'ENOTFOUND'.freeze
EINVALID = 'EINVALID'.freeze
def initialize(message, details, path = nil, command = nil, code = nil... |
mitre/keyterms-nlp | keyterms-nlp.utilities/src/main/java/keyterms/util/io/Encoding.java | /*
* NOTICE
* This software was produced for the U.S. Government and is subject to the
* Rights in Data-General Clause 5.227-14 (May 2014).
* Copyright 2018 The MITRE Corporation. All rights reserved.
*
* “Approved for Public Release; Distribution Unlimited” Case 18-2165
*
* This project contains content devel... |
sdressler/objekt | examples/mantevo/miniFE-1.1/optional/stk_util/environment/Demangle.hpp | /*------------------------------------------------------------------------*/
/* Copyright 2010 Sandia Corporation. */
/* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */
/* license for use of this work by or on behalf of the U.S. Government. */
/* Export o... |
ael-noblegas/pychron | pychron/processing/tests/plateau.py | <reponame>ael-noblegas/pychron<gh_stars>1-10
from __future__ import absolute_import
__author__ = 'ross'
import unittest
from pychron.processing.plateau import Plateau
class PlateauTestCase(unittest.TestCase):
def test_find_plateaus_real_fail(self):
ages, errors, signals, idx = self._get_test_data_real_fa... |
tharinduperera/student_management_Layered | src/lk/ijse/student_management/util/CourseTM.java | package lk.ijse.student_management.util;
import java.math.BigDecimal;
public class CourseTM {
private String cid;
private String cname;
private String ctype;
private String duration;
private BigDecimal cfee;
private BigDecimal discount;
private BigDecimal tax;
private BigDecimal dscfu... |
MikaSoftware/academicstoday-paas-django | academicstoday/shared_foundation/models/user.py | from __future__ import unicode_literals
from datetime import date, datetime, timedelta
from phonenumber_field.modelfields import PhoneNumberField
from django.db import models
from django.core.mail import send_mail
from django.contrib.auth.base_user import BaseUserManager
from django.contrib.auth.models import Permissio... |
CarysT/medusa | Gui3d/EditPassword.cpp | <filename>Gui3d/EditPassword.cpp
/*
EditPassword.cpp
(c)2005 Palestar, <NAME>
*/
#define GUI3D_DLL
#include "Debug/Assert.h"
#include "Draw/Draw.h"
#include "System/Messages.h"
#include "Gui3d/EditPassword.h"
#include <ctype.h>
//-------------------------------------------------------------------------------
IMP... |
giacomo-ascari/digital-pedal | code/lib/pedalboard.h | <reponame>giacomo-ascari/digital-pedal<gh_stars>1-10
#ifndef _PEDALBOARD_H
#define _PEDALBOARD_H
#include <stdlib.h>
#define MAX_PEDALS_COUNT 8
#define INT_PARAM_TYPES 3
#define FLOAT_PARAM_TYPES 9
// ENUMERATION
enum pedal_types {
AMPLIFIER, // amp
BITCRUSHER_RS, // brs
BYPASS, // bps
... |
zenoss-ce/serviced | facade/lock.go | <reponame>zenoss-ce/serviced
// Copyright 2015 The Serviced 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 require... |
Jiss-Jose/scmi-tests | platform/mocker/mocker/include/protocol_common.h | /** @file
* Copyright (c) 2019, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* 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://... |
wk0122/CoreJava | src/tech/aistar/util/LocalTimeDemo.java | <gh_stars>0
package tech.aistar.util;
import java.time.LocalTime;
/**
* @author success
* @version 1.0
* @description:本类用来演示:
* @date 2019/3/28 0028
*/
public class LocalTimeDemo {
public static void main(String[] args) {
LocalTime localTime = LocalTime.now();
System.out.println(localTime);//... |
expensivecow/jadx | jadx-cli/app-release/sources/android/support/v4/widget/CircularProgressDrawable.java | package android.support.v4.widget;
import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.... |
xyt2008/frcnn | examples/FRCNN/loc_merge_frcnn.cpp | #include <gflags/gflags.h>
#include <glog/logging.h>
#include "boost/algorithm/string.hpp"
#include "caffe/util/benchmark.hpp"
#include "caffe/util/signal_handler.h"
#include "api/api.hpp"
DEFINE_string(gpu, "",
"Optional; run in GPU mode on the given device ID, Empty is CPU");
DEFINE_string(model, "",
"The ... |
ssSlowDown/onemall | shop-web-app/src/main/java/cn/iocoder/mall/shopweb/convert/user/PassportConvert.java | package cn.iocoder.mall.shopweb.convert.user;
import cn.iocoder.mall.shopweb.controller.user.vo.passport.PassportAccessTokenRespVO;
import cn.iocoder.mall.shopweb.controller.user.vo.passport.PassportLoginBySmsReqVO;
import cn.iocoder.mall.shopweb.controller.user.vo.passport.PassportSendSmsRespVO;
import cn.iocoder.mal... |
vvvpic/xxtime | app/src/main/java/net/xxtime/adapter/FocusBusAdapter.java | <filename>app/src/main/java/net/xxtime/adapter/FocusBusAdapter.java
package net.xxtime.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.