repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
dingjianhui1013/operator | src/main/java/com/itrus/ca/modules/key/entity/KeyUsbKeyInvoice.java | package com.itrus.ca.modules.key.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOn... |
LaraiFox/LibraryDev | archive/Quadrilateral.java | package net.laraifox.libdev.geometry;
import laraifox.foxtail.core.math.Vector2f;
import net.laraifox.lib.geometry.Quadrilateral;
import net.laraifox.lib.geometry.Shape2D;
import net.laraifox.lib.graphics.Transform2D;
import net.laraifox.lib.graphics.Vertex2D;
public class Quadrilateral extends Shape2D {
public stat... |
AzDarGee/milieucities | spec/factories/meetings.rb | <reponame>AzDarGee/milieucities<filename>spec/factories/meetings.rb
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :meeting do
meeting_type { Meeting::PUBLIC_MEETING_TYPE }
date { DateTime.current }
time '3:00 PM'
location 'City Hall'
trait :co... |
jdmota/abcd-mungo | examples/removable-iterator-places/BaseIterator.java | <gh_stars>0
import java.util.List;
import jatyc.lib.Typestate;
import jatyc.lib.Nullable;
@Typestate("BaseIterator")
public class BaseIterator {
protected List<Object> items;
protected int index;
public BaseIterator(List<Object> items) {
this.items = items;
this.index = 0;
}
public boolean hasNext()... |
SlimKatLegacy/android_external_chromium_org | base/memory/discardable_memory_emulated.cc | // Copyright 2013 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 "base/memory/discardable_memory_emulated.h"
#include "base/lazy_instance.h"
#include "base/memory/discardable_memory_provider.h"
namespace base... |
cppguru/bde_verify | checks/csamisc/array-initialization/csamisc_arrayinitialization.t.cpp | // csamisc_arrayinitialization.t.cpp -*-C++-*-
#include "csamisc_arrayinitialization.t.hpp"
#include <bdes_ident.h>
namespace bde_verify
{
namespace csamisc
{
namespace
{
struct s
{
s(int = 0); ... |
aamshukov/miscellaneous | c++/Ail/MAPI.cpp | ////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 <NAME> ... |
avim2809/CameraSiteBlocker | venv/Lib/site-packages/uiutil/frame/__init__.py | <gh_stars>0
# coding=utf-8
from .radio import BaseRadioFrame
from .dynamic import DynamicFrame, DynamicScrollFrame, DynamicWidgetFrame
from .frame import BaseFrame
from .label import BaseLabelFrame
from .launcher import LauncherFrame, LauncherGroupFrame, LauncherMixIn
from .loading import LoadingFrame
from .log import... |
bluepuppetcompany/user-email-address-component | lib/user_email_address_component/controls/write/claim.rb | <reponame>bluepuppetcompany/user-email-address-component<filename>lib/user_email_address_component/controls/write/claim.rb<gh_stars>0
module UserEmailAddressComponent
module Controls
module Write
module Claim
def self.call(
id: nil,
email_address: nil,
user_id: nil
... |
svisser/reasoning-about-preferences | src/holiday/PurchaseTravelBagPlan.java | package holiday;
import summary.PreferencePlan;
public class PurchaseTravelBagPlan extends PreferencePlan {
}
|
XpressAI/SparkCyclone | aveobench/src/main/scala/com/nec/cyclone/colvector/CompressedBytePointerColBatch.scala | package com.nec.cyclone.colvector
import com.nec.colvector._
import com.nec.spark.agile.core.{VeScalarType, VeString}
import com.nec.util.CallContext
import com.nec.vectorengine.{VeAsyncResult, VeProcess}
import com.nec.ve.VeProcessMetrics
import org.bytedeco.javacpp.BytePointer
final case class CompressedBytePointer... |
GregDevProjects/carbon-header-fix | node_modules/@carbon/icons-react/es/document--add/32.js | <reponame>GregDevProjects/carbon-header-fix<filename>node_modules/@carbon/icons-react/es/document--add/32.js
import { DocumentAdd32 } from '..';
export default DocumentAdd32;
|
krashnakant/jhipster-lite | src/main/java/tech/jhipster/lite/generator/client/angular/security/oauth2/domain/AngularOauth2.java | package tech.jhipster.lite.generator.client.angular.security.oauth2.domain;
import static tech.jhipster.lite.common.domain.FileUtils.*;
import static tech.jhipster.lite.generator.project.domain.Constants.MAIN_WEBAPP;
import java.util.List;
import java.util.Map;
public class AngularOauth2 {
private AngularOauth2()... |
SEPIA-Framework/assist-server | src/main/java/net/b07z/sepia/server/assist/parameters/Confirm.java | package net.b07z.sepia.server.assist.parameters;
import java.util.HashMap;
import java.util.regex.Pattern;
import org.json.simple.JSONObject;
import net.b07z.sepia.server.assist.assistant.LANGUAGES;
import net.b07z.sepia.server.assist.interpreters.NluInput;
import net.b07z.sepia.server.assist.interpreters.NluResult;... |
sunyunxian/test_lib | Python/Fluent_Python/chapter3/section5/5-9.py | <filename>Python/Fluent_Python/chapter3/section5/5-9.py
foo = "foo"
bar = "bar"
class C:
pass
c = C()
def f():
pass
# print(dir(C))
# print(dir(f))
print(sorted(set(dir(f)) - set(dir(c))))
# print(f.__globals__)
print(f.__call__())
|
lismaya/proyek_akhir_simekia | android/app/src/main/java/com/example/sipanji/SplashActivity.java | package com.example.sipanji;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.example.sipanji.util.SharedPrefManager;
import... |
wqk317/mi8_kernel_source | mi8/drivers/staging/qca-wifi-host-cmn/umac/dfs/core/src/filtering/dfs_misc.c | /*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2002-2010, Atheros Communications Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permissio... |
aliostad/deep-learning-lang-detection | data/train/ruby/ce0e0f1252b0acb7d84bef1f1947bcf83a96babaaq_repositories_controller.rb | <gh_stars>10-100
require 'grit'
include Grit
class AqRepositoriesController < ApplicationController
before_filter :login_required, :except => [:show, :view_file, :show_commits, :show_commit]
def index
@repositories = current_user.aq_repositories
end
def show
@repository = AqRepository.find(params[:id... |
cocomikes/YcShareElement | app/src/main/java/us/pinguo/shareelementdemo/simple/SimpleFragmentActivity.java | <reponame>cocomikes/YcShareElement<gh_stars>100-1000
package us.pinguo.shareelementdemo.simple;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import us.pinguo.shareelementdemo.R;
import com.hw.ycshareelement.TransitionHelper;
/**
* Created by huangwei... |
cctvzd7/aliyun-openapi-java-sdk | aliyun-java-sdk-workorder/src/main/java/com/aliyuncs/workorder/transform/v20200326/ListTicketsResponseUnmarshaller.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
* distributed u... |
NBAston/FishClient | temp/quick-scripts/src/assets/modules/plaza/script/prefab/bindPhone/unbind.js | <filename>temp/quick-scripts/src/assets/modules/plaza/script/prefab/bindPhone/unbind.js
"use strict";
cc._RF.push(module, '47695rj25FGXKtHeivZBhVO', 'unbind');
// modules/plaza/script/prefab/bindPhone/unbind.js
"use strict";
glGame.baseclass.extend({
properties: {},
onLoad: function onLoad() {
this.registerEv... |
Fabs/dcos-ui | plugins/services/src/js/containers/framework-configuration/FrameworkConfigurationContainer.js | <reponame>Fabs/dcos-ui
import PropTypes from "prop-types";
import React from "react";
import UniversePackage from "#SRC/js/structs/UniversePackage";
import Framework from "#PLUGINS/services/src/js/structs/Framework";
import { routerShape } from "react-router";
import FrameworkConfigurationReviewScreen
from "#SRC/js... |
WoodoLee/TorchCraft | 3rdparty/pytorch/caffe2/operators/experimental/c10/schemas/batch_gather.cc | <filename>3rdparty/pytorch/caffe2/operators/experimental/c10/schemas/batch_gather.cc
#include "caffe2/operators/experimental/c10/schemas/batch_gather.h"
#include <c10/core/dispatch/OpSchemaRegistration.h>
#include "caffe2/core/operator_c10wrapper.h"
using caffe2::CPUContext;
C10_DEFINE_OP_SCHEMA(caffe2::ops::BatchGat... |
edzya/Python_RTU_08_20 | Diena_13_Visualization/random/miss_num.py | <filename>Diena_13_Visualization/random/miss_num.py
import random
nums = [str(n)+"\n" for n in range(1, 51)]
random.shuffle(nums)
print(nums)
nums.pop()
with open("missing_number.txt", "w") as f:
f.writelines(nums)
|
maurizioabba/rose | tests/CompileTests/ElsaTestCases/t0522.cc | <gh_stars>100-1000
// t0522.cc
// use an explicit specialization before it is declared
template <class T>
struct A;
// does not require instantiation yet, so it is ok that the definition
// of A<T> has not been provided, and it is also ok that the
// declaration of A<int> has not been provided
typedef A<int> A_int;
... |
genghechuangwy/cas | core/cas-server-core-services/src/test/java/org/apereo/cas/services/AbstractResourceBasedServiceRegistryTests.java | <filename>core/cas-server-core-services/src/test/java/org/apereo/cas/services/AbstractResourceBasedServiceRegistryTests.java<gh_stars>1-10
package org.apereo.cas.services;
import lombok.SneakyThrows;
import lombok.val;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.RandomUtils;
import org.juni... |
portlek/synergy | client/src/main/java/io/github/portlek/synergy/client/config/ClientConfig.java | /*
* MIT License
*
* Copyright (c) 2021 <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, copy, modify, m... |
hideack/evac | lib/plugin/out/mail.js | var nodemailer = require('nodemailer');
var mail = {};
mail.output = function(args, word, next) {
if (word != "") {
var transporter = nodemailer.createTransport();
var options = {
from: args.from,
to: args.to,
subject: args.subject,
text: word
};
transporter.sendMail(options,... |
aeoncl/wlmatrix | WLMatrix/include/libmatrix/dto/AccountDataDirectResponse.h | <reponame>aeoncl/wlmatrix
#pragma once
#include "AccountDataResponse.h"
#include <optional>
#include "DirectEvent.h"
class AccountDataDirectResponse : public AccountDataResponse {
public:
std::optional<std::string> getUserIdForRoomId(std::string roomId);
}; |
suztomo/java-pubsublite | google-cloud-pubsublite/src/main/java/com/google/cloud/pubsublite/internal/CursorClientSettings.java | /*
* Copyright 2020 Google LLC
*
* 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... |
leapframework/framework | data/orm/src/main/java/leap/orm/event/EntityListenersBuilder.java | <reponame>leapframework/framework
/*
* Copyright 2017 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
*
* http://www.apache.org/licenses/LICENSE-2... |
GorgonMeducer/pikascript | bsp/cm32m101A/Firmware/cm32m101a_std_periph_driver/src/misc.c | /*
******************************************************************************
*
* COPYRIGHT(c) 2020, China Mobile IOT
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source co... |
yhexie/mrpt | libs/obs/src/CObservationRobotPose.cpp | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
Fenex/KTS | userjs/BigTextArea.user.js | // ==UserScript==
// @name klavogonki: BigTextarea
// @namespace klavogonki
// @include http://klavogonki.ru/forum*
// @author Fenex
// @version 1.1 KTS
// @icon http://www.gravatar.com/avatar.php?gravatar_id=d9c74d6be48e0163e9e45b54da0b561c&r=PG&s=48&default=identicon
//... |
AndreiKononov/ui-orders | src/settings/OrderTemplates/OrderTemplatesEditor/PurchaseOrderNotesForm/PurchaseOrderNotesForm.js | import React from 'react';
import {
Row,
Col,
} from '@folio/stripes/components';
import {
FieldsNotes,
} from '../../../../common/POFields';
const PurchaseOrderNotesForm = () => {
return (
<Row start="xs">
<Col xs={12}>
<FieldsNotes />
</Col>
</Row>
);
};
export default Purcha... |
yb4/parking_lot_management_software | src/structures/Student.java | package structures;
import components.misc.DatabaseBridge;
import components.misc.DatabaseVerifier;
import java.sql.Date;
import java.sql.SQLException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
/**
* Created by Sudarshan on 3/22/2016.
*/
public class Student implements Comparable... |
MingfeiPan/leetcode | tree/98.cc | <filename>tree/98.cc
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNod... |
dimitri-dev/CodeWars | 0047 - Sum The Tree/solution.cpp | <gh_stars>0
int sumTheTreeValues(node* root) {
if (root == nullptr)
return 0;
int sum = root->value;
if (root->left != nullptr) sum += sumTheTreeValues(root->left);
if (root->right != nullptr) sum += sumTheTreeValues(root->right);
return sum;
} |
nuagenetworks/nuage-tempest-plugin | nuage_tempest_plugin/tests/api/test_vpnaas.py | <filename>nuage_tempest_plugin/tests/api/test_vpnaas.py<gh_stars>1-10
import netaddr
from tempest.lib.common.utils import data_utils
from testtools.matchers import Contains
from testtools.matchers import Not
from nuage_tempest_plugin.lib.test import nuage_test
from nuage_tempest_plugin.lib.topology import Topology
fr... |
TheFriendlyCoder/pyjen | tests/test_views/test_all_view.py | <reponame>TheFriendlyCoder/pyjen
from pyjen.plugins.allview import AllView
def test_find_view(jenkins_api):
expected_name = "all"
v = jenkins_api.find_view(expected_name)
assert isinstance(v, AllView)
|
gammaker/Intra | Intra/Concurrency/detail/AtomicGNU.h | #pragma once
#ifndef INTRA_LIBRARY_ATOMIC
#define INTRA_LIBRARY_ATOMIC INTRA_LIBRARY_ATOMIC_GNU
#endif
#include "Cpp/Features.h"
#include "Concurrency/Atomic.h"
namespace Intra { namespace Concurrency {
#define INTRA_ATOMIC_METHOD_GET(mo, MO) \
template<typename T> forceinline T AtomicBase<T>::Get ## mo() const noe... |
tradecraftio/tradecraft | src/qt/trafficgraphwidget.h | // Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2011-2021 The Freicoin Developers
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of version 3 of the GNU Affero General Public License as published
// by the Free Software Foundation.
//
// This pro... |
hailongz/golang | ss/main.go | package main
import (
"fmt"
"log"
"net/http"
"os"
"os/signal"
"strings"
"syscall"
"time"
_ "github.com/go-sql-driver/mysql"
"github.com/hailongz/golang/dynamic"
"github.com/hailongz/golang/mq"
_ "github.com/hailongz/golang/mq/ali"
_ "github.com/hailongz/golang/mq/nsq"
less "github.com/hailongz/golang/ss... |
ahmadhassan7/COVID-19-Diagnoser | webapp/src/components/withSplashScreen.js | <gh_stars>1-10
import React, {Component} from 'react';
function LoadingMessage() {
return (
<div className="ai-login__splashscreen">
<img src='logo.png' width="200px" height="200px"/>
</div>
);
}
function withSplashScreen(WrappedComponent) {
return class extends Component {
constructor(props) ... |
Rarioty/Parallax-Engine | tests/PIL/Collections/perfs_collection_stack.cpp | <gh_stars>1-10
#include <Parallax/Collections/Stack.hpp>
#include <iostream>
#include <iomanip>
#include <chrono>
#include <stack>
using namespace Parallax;
int main(int argc, char *argv[])
{
std::chrono::duration<double> elapsedStd;
std::chrono::duration<double> elapsedParallax;
Collections::Stack<int>* ... |
peterzernia/wanderlist | frontend/src/components/Success.js | import React from 'react'
import { func, string } from 'prop-types'
import IconButton from '@material-ui/core/IconButton'
import Close from '@material-ui/icons/Close'
const Success = ({ removeError, success }) => (
<div className="success-message">
<IconButton style={{ float: 'right', padding: '0 auto' }} onClic... |
aberdev/orientdb | server/src/main/java/com/orientechnologies/orient/server/network/protocol/ONetworkProtocolData.java | /*
*
* * Copyright 2010-2016 OrientDB LTD (http://orientdb.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... |
RodrigoRomero2308/gantt-chart | packages/ibm-gantt-chart/src/timetable/index.js | <filename>packages/ibm-gantt-chart/src/timetable/index.js
export default from './timetable';
|
BoxInABoxICT/BoxPlugin | mofa/mofa/test_settings.py | # This program has been developed by students from the bachelor Computer Science at Utrecht University within the
# Software and Game project course
# ©Copyright Utrecht University Department of Information and Computing Sciences.
"""These settings will be used when running tests."""
# noinspection PyUnresolvedReferenc... |
Allenjonesing/tutorials | Direct3D/Toon Shading/d3d_texture.h | <gh_stars>100-1000
#ifndef D3D_TEXTURE_H
#define D3D_TEXTURE_H
#include <d3dx9tex.h>
// This is our D3D texture class. It will handle all of the
// texture needs for our app.
class CD3DTexture
{
public:
CD3DTexture(); // Constructor
// Loads the texture specified by the file name and optionally lets you ... |
KleeGroup/vertigo-extensions | vertigo-account/src/test/java/io/vertigo/account/data/TestIdentities.java | /**
* vertigo - application development platform
*
* Copyright (C) 2013-2020, Vertigo.io, <EMAIL>
*
* 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/L... |
unifiedjs/design-system | src/theme.js | <reponame>unifiedjs/design-system
export const fontSizes = [14, 16, 18, 24, 32, 48, 64]
export const fontFamilies = {
sans: `
system-ui,
-apple-system, BlinkMacSystemFont,
Roboto, "Helvetica Neue", "Segoe UI",
Oxygen, Ubuntu, Cantarell, "Open Sans",
sans-serif
`,
mono: `
Consolas,
"Lib... |
daichi-yoshikawa/vue-boilerplate | src/router/public-routes.js | // Do not try lazy loading components because
// it may experience "Failed to resolved async component" error.
import HomeView from '@entry/home/home-view'
import InviteView from '@auth/invite/invite-view'
import LoginView from '@auth/login/login-view'
import PrivacyView from '@legal/privacy/privacy-view'
import Reset... |
qitianersheng/sensitive-word | src/main/java/com/github/houbb/sensitive/word/support/format/IgnoreEnglishStyleFormat.java | package com.github.houbb.sensitive.word.support.format;
import com.github.houbb.heaven.annotation.ThreadSafe;
import com.github.houbb.sensitive.word.api.ICharFormat;
import com.github.houbb.sensitive.word.api.IWordContext;
import com.github.houbb.sensitive.word.utils.CharUtils;
/**
* 忽略英文的各种格式
* @author binbin.hou
... |
infiniteblock/CalemiUtils-1.12.2 | src/main/java/calemiutils/gui/base/GuiRect.java | package calemiutils.gui.base;
public class GuiRect {
public int x;
public int y;
public final int width;
public final int height;
public GuiRect(int x, int y, int width, int height) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}
pub... |
kapseliboi/boxwood | src/transpilers/html/tags/try.js | <reponame>kapseliboi/boxwood
const AbstractSyntaxTree = require('abstract-syntax-tree')
const { ReturnStatement, BlockStatement, TryStatement, CatchClause } = AbstractSyntaxTree
function mapTryStatement (htmlNode, parent, index, transpileNode) {
function mapCurrentNodeToBlockStatement (htmlNode) {
const body = ... |
hydratk/hydratk-lib-network | src/hydratk/lib/network/email/imap_client.py | <reponame>hydratk/hydratk-lib-network
# -*- coding: utf-8 -*-
"""IMAP email client
.. module:: network.email.imap_client
:platform: Unix
:synopsis: IMAP email client
.. moduleauthor:: <NAME> <<EMAIL>>
"""
"""
Events:
-------
email_before_connect
email_after_connect
email_before_receive_email
email_after_receiv... |
ptyped/kit | lib/core/template.test.integration.js | const fs = require('fs')
const glob = require('glob')
const path = require('path')
const remove = require('rimraf')
const Config = require('./config')
const Template = require('./template')
describe('Run integration tests on template create', () => {
let cwd, pkgPath, nodeModulesDir, kitDir, templateDir, appDir, ... |
AlexeyMochalov/firebird | src/jrd/dpm_proto.h | /*
* PROGRAM: JRD Access Method
* MODULE: dpm_proto.h
* DESCRIPTION: Prototype header file for dpm.cpp
*
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy
* of the Licen... |
zhangshoug/czipline | zipline/api.py | #
# Copyright 2014 Quantopian, 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 in wr... |
moben/kopia | internal/ownwrites/ownwrites_test.go | package ownwrites
import (
"testing"
"time"
"github.com/stretchr/testify/require"
"github.com/kopia/kopia/internal/blobtesting"
"github.com/kopia/kopia/internal/faketime"
"github.com/kopia/kopia/internal/gather"
"github.com/kopia/kopia/internal/testlogging"
"github.com/kopia/kopia/repo/blob"
)
const testCac... |
jtduchesne/Nestled | app/src/hooks/index.js | export { useStatus } from "../contexts/Status";
|
lanz/Tenable.io-SDK-for-Python | tenable_io/api/access_groups.py | from json import loads
from tenable_io.api.base import BaseApi
from tenable_io.api.base import BaseRequest
from tenable_io.api.models import AccessGroup, AccessGroupList, AssetRule, AssetRuleFilter, AssetRulePrincipal, Filters
class AccessGroupsApi(BaseApi):
def list(self, f=None, ft='and', w=None, wf=None, lim... |
lechium/tvOS10Headers | System/Library/PrivateFrameworks/PhotoAnalysis.framework/Frameworks/PhotosGraph.framework/Frameworks/MediaMiningKit.framework/CLSCalendar.h | <filename>System/Library/PrivateFrameworks/PhotoAnalysis.framework/Frameworks/PhotosGraph.framework/Frameworks/MediaMiningKit.framework/CLSCalendar.h<gh_stars>1-10
/*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:09:43 AM Mountain Standard Time
* Operating System: Version 10.1 (Bu... |
Diablohu/WhoCallsTheFleet-React | src/api/preferences/index.js | <filename>src/api/preferences/index.js
// import localforage from 'localforage/dist/localforage.min.js'
import localforage from './localforage';
import defaults from './defaults';
let isInit = false;
localforage.config({
name: 'WhoCallsTheFleet',
});
const prefs = {};
const store = {};
Object.defineProperty(pre... |
fuxs/aepctl | cmd/helper/file.go | /*
Package helper consists of helping functions.
Copyright 2021 <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... |
ace53thntu/cookie-sync-demo | src/components/shop/LeftBanner.js | <filename>src/components/shop/LeftBanner.js
import { Col, Divider, Row } from "antd";
import Link from "next/link";
import Container from "../other/Container";
export default function LefBanner({ containerType }) {
return (
<div className="banners">
<Container type={containerType}>
<Row gutter={30... |
impastasyndrome/Lambda-Resource-Static-Assets | 2-content/15-Sandbox/javascript101-master/types/7.1_builtinTypes.js | //JavaScript 有七种内置类型:
// • 空值( null )
// • 未定义( undefined )
// • 布尔值( boolean )
// • 数字( number )
// • 字符串( string )
// • 对象( object )
// • 符号( symbol ,ES6 中新增)
//除对象之外,其他统称为“基本类型”。
typeof undefined === "undefined"; // true
typeof true === "boolean"; // true
typeof 56 === "number"; // true
typeof "abc" === "string"; /... |
jklwan/NoteApplication | app/src/main/java/com/chends/note/business/ViewBindingActivity.java | package com.chends.note.business;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import com.chends.note.R;
import com.chends.note.base.BaseActivity;
import com.chends.note.databinding.ActivityViewBindingBinding;
/**
* @author cds created on 2019/10/27.
*/
... |
Stanford-PERTS/triton | src/components/SceneTitle/index.js | <reponame>Stanford-PERTS/triton
import React from 'react';
import Section from 'components/Section';
export default props => <Section type="scene" {...props} />;
|
yuanping/HackerRank_solutions | Cracking the Coding Interview/Techniques, Concepts/Recursion - Davis' Staircase/solution.rb | <reponame>yuanping/HackerRank_solutions
#!/bin/ruby
require 'json'
require 'stringio'
# Complete the stepPerms function below.
# def stepPerms(n)
# cache = {0 => 1}
# ways(n, cache)
# end
#
# def ways(n, cache)
# return 0 if n < 0
# return cache[n] if cache[n]
#
# total = ways(n - 1, cache) + ways... |
ansi88/weixin4j | weixin4j-serverX/src/main/java/com/zone/weixin4j/controller/WxController.java | package com.zone.weixin4j.controller;
import com.zone.weixin4j.exception.HttpResponseException;
import com.zone.weixin4j.exception.MessageInterceptorException;
import com.zone.weixin4j.exception.WeixinException;
import com.zone.weixin4j.response.WeixinResponse;
import com.zone.weixin4j.service.WeiXin4jContextAware;
im... |
jxjnjjn/chromium | src/content/browser/resources/indexed_db/indexeddb_internals.js | <gh_stars>1-10
// Copyright (c) 2013 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.
cr.define('indexeddb', function() {
'use strict';
function initialize() {
chrome.send('getAllOrigins');
}
function onOrig... |
535205856/summerframework | summerframework-monitor/platform-monitor-core/src/main/java/com/bkjk/platform/monitor/metric/MicrometerUtil.java | package com.bkjk.platform.monitor.metric;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import org.springframework.util.StringUtils;
import com.bkjk.platform.monitor.util.RequestUtil;
import com.hazelcast.core.IMap;
import io.micrometer.core.instrument.MeterRegistry;
import io... |
FMMazur/skift | userspace/utilities/piano.cpp | <gh_stars>1-10
#include <libsystem/io/Filesystem.h>
#include <libsystem/io/Stream.h>
#include <libio/Path.h>
// piano utility takes a file that has notes data for eg:
// echo "c5d5e5g5a5b5c6" > new.txt
// piano new.txt
struct spkr
{
int length;
int frequency;
};
void note(int length, int frequency, Stream *s... |
Yasujizr/rss-reader | src/base/favicon-service/cache.js | <reponame>Yasujizr/rss-reader
import assert from '/src/base/assert.js';
import * as indexeddb from '/src/base/indexeddb.js';
// NOTE: this file is undergoing development and is unstable!!!! DO NOT USE!
// This module provides storage functionality for the favicon service.
//
// This module is considered private to fa... |
jeremylarner/keyteki-1 | test/server/cards/03-WC/IgonTheGreen.spec.js | describe('Igon The Green', function () {
describe("Igon The Green's ability", function () {
beforeEach(function () {
this.setupTest({
player1: {
house: 'brobnar',
hand: ['igon-the-terrible', 'igon-the-terrible'],
inPlay:... |
mmaico/ddd-reflection | src/test/java/com/github/mmaico/test_objects/hibernate_entities/Document.java | <reponame>mmaico/ddd-reflection
package com.github.mmaico.test_objects.hibernate_entities;
public class Document {
public enum DocumentTypeEnum {PASSPORT, SOCIAL_SECURITY_CARD}
private String document;
private DocumentTypeEnum type;
public Document(){}
public Document(String document, DocumentTypeEnum type... |
dew-uff/phoenix | src/main/java/gems/ic/uff/br/modelo/algorithm/AbstractAlgorithm.java | package gems.ic.uff.br.modelo.algorithm;
import gems.ic.uff.br.modelo.similar.Similar;
import gems.ic.uff.br.settings.SettingsHelper;
public abstract class AbstractAlgorithm<VALUE extends Similar> {
float similarThreshold = SettingsHelper.getSimilarityThreshold();
protected abstract int lengthOfX();
pr... |
vadymshymko/react-football-app | src/common/reducers/players.js | import {
FETCH_PLAYER_REQUEST,
FETCH_PLAYER_SUCCESS,
FETCH_PLAYER_FAILURE,
} from 'actionsTypes';
import createReducer from './createReducer';
const initialState = {};
const players = createReducer(initialState, {
[FETCH_PLAYER_REQUEST]: (state, action) => ({
...state,
[action.payload.id]: {
is... |
librarysong/practice-cloud | practice-master/src/main/java/cn/swf/practice/practicemaster/controller/IndexController.java | package cn.swf.practice.practicemaster.controller;
import cn.hutool.crypto.digest.MD5;
import cn.swf.practice.pracricecommon.utils.JsonResultUtil;
import cn.swf.practice.practicemaster.book.entity.TUser;
import cn.swf.practice.practicemaster.book.mapper.TUserMapper;
import cn.swf.practice.practicemaster.entity.User;
i... |
126RockStar/Feeding-fish-view | src/components/LiveTabComponents/global_consts.js | <gh_stars>1-10
module.exports = 45; // The offset of the title div - Set in the draggable.css
|
IYoreI/Algorithm | Codes/yore/offer2/Offer105.java | package com.yore.offer2;
import java.util.Deque;
import java.util.LinkedList;
/**
* @author Yore
* @date 2022/2/23 16:42
* @description
*/
public class Offer105 {
public static void main(String[] args) {
Offer105 o = new Offer105();
int[][] grid = new int[][]{{0,0,1,0,0,0,0,1,0,0,0,0,0},{0,0,0... |
SlimKatLegacy/android_external_chromium_org | content/browser/service_worker/service_worker_registration.cc | // Copyright 2013 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 "content/browser/service_worker/service_worker_registration.h"
#include "content/public/browser/browser_thread.h"
namespace content {
ServiceW... |
ScalablyTyped/SlinkyTyped | s/sip_dot_js/src/main/scala/typingsSlinky/sipJs/messageMod.scala | <reponame>ScalablyTyped/SlinkyTyped
package typingsSlinky.sipJs
import typingsSlinky.sipJs.coreMod.IncomingRequestMessage
import typingsSlinky.sipJs.methodsMessageMod.IncomingMessageRequest
import typingsSlinky.sipJs.outgoingResponseMod.ResponseOptions
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
... |
xmil9/geomcpp | poisson_disc_sampling.h | //
// geomcpp
// Generation of evenly distributed points.
//
// Aug-2020, <NAME>
// MIT license
//
#pragma once
#include "point2.h"
#include "rect.h"
#include "ring.h"
#include "essentutils/rand_util.h"
#include <cmath>
#include <optional>
#include <vector>
namespace geom
{
namespace internals
{
///////////////////
... |
jamoma/JamomaCore | Modular/library/includes/TTModular.h | <filename>Modular/library/includes/TTModular.h<gh_stars>10-100
/** @file
*
* @ingroup modularLibrary
*
* @brief the Modular Application Programming Interface
*
* @details The Modular API allows to use Modular inside any application @n@n
*
* @see TTModularIncludes
*
* @authors <NAME>
*
* @copyright Copyright... |
TimDovg/Sales.CRM | Backend/src/main/java/com/andersenlab/crm/rest/facade/SourceFacadeImpl.java | <reponame>TimDovg/Sales.CRM
package com.andersenlab.crm.rest.facade;
import com.andersenlab.crm.convertservice.ConversionService;
import com.andersenlab.crm.model.entities.Source;
import com.andersenlab.crm.rest.request.SourceCreateRequest;
import com.andersenlab.crm.rest.response.SourceResponse;
import com.andersenla... |
smashwidget/dl-1 | adv/yuya.py | <reponame>smashwidget/dl-1
import adv.adv_test
from adv import *
def module():
return Yuya
class Yuya(Adv):
conf = {}
conf['acl'] = """
`s3, not this.s3_buff_on
`s1
`fs, seq=4
"""
a3 = ('primed_crit_chance',(0.5,5))
def prerun(this):
if this.condition('hp6... |
bronxc/refinery | refinery/units/strings/cupper.py | <filename>refinery/units/strings/cupper.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from refinery.units import Unit
class cupper(Unit):
"""
Transforms the input data to uppercase.
"""
def process(self, data):
return data.upper()
|
jiktim/oldprojects | sol-ram/src/listeners/commandHandler/commandStarted.js | <gh_stars>1-10
const { Listener } = require('discord-akairo');
const Logger = require('../../util/Logger');
class CommandStartedListener extends Listener {
constructor() {
super('commandStarted', {
event: 'commandStarted',
emitter: 'commandHandler',
category: 'commandHan... |
rajeevbbqq/snet-dapp-monorepo | packages/publisher-dapp/src/Pages/AiServiceCreation/EditHeader.js | <gh_stars>1-10
import React from "react";
import InfoIcon from "@material-ui/icons/Info";
import Typography from "@material-ui/core/Typography";
import SNETButton from "shared/dist/components/SNETButton";
import { withStyles } from "@material-ui/core/styles";
import { useStyles } from "./styles";
const EditHeader = (... |
18F/michigan-benefits | spec/controllers/household_more_info_controller_spec.rb | # frozen_string_literal: true
require "rails_helper"
RSpec.describe HouseholdMoreInfoController do
let(:step) { assigns(:step) }
let(:invalid_params) { { step: { everyone_a_citizen: "" } } }
let(:step_class) { HouseholdMoreInfo }
before { session[:snap_application_id] = current_app.id }
include_examples "... |
yihangyang/react_blog | project/service/app/middleware/adminauth.js | module.exports = options => {
return async function adminauth(ctx, next) {
console.log(ctx.session.openId)
if(ctx.session.openId){
await next()
} else {
ctx.body={data: 'You must login first'}
}
}
} |
scalqa/scalqa | core/src/scalqa/lang/string/z/Table.scala | package scalqa; package lang; package string; package z; import language.implicitConversions
private[scalqa] class Table(val name: String=VOID):
/**/ def newRow : Row = new Row(Rows.size).self( Rows += _ )
/**/ def +=(v: Stream[Any]): Unit = newRow.fill(v)
/**/ def separator... |
harshanu11/Love-Babbar-450-In-CSharp | Love-Babbar-450-In-CPPTest/08_greedy/31_K_centers_problem.cpp | /*
link: https://www.geeksforgeeks.org/k-centers-problem-set-1-greedy-approximate-algorithm/
The greedy solution works only if the distances between cities follow
Triangular Inequality (Distance between two points is always smaller
than sum of distances through a third point).
*/
// -----------------... |
Ayfri/Challenge-Go | revparams/main.go | <filename>revparams/main.go
package main
import (
"os"
"github.com/01-edu/z01"
)
func main() {
args := os.Args[1:]
for i, j := 0, len(args)-1; i < j; i, j = i+1, j-1 {
args[i], args[j] = args[j], args[i]
}
for _, arg := range args {
for _, char := range arg {
z01.PrintRune(char)
}
z01.PrintRune('\... |
grgrzybek/camel | examples/camel-example-gae/src/main/java/org/apache/camel/example/gae/ResponseProcessor.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 may... |
SferaDev/ui | components/organisation-unit-tree/src/features/loading_state/index.js | import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps'
Given('a OrganisationUnitTree with two levels is rendered', () => {
cy.visitStory('OrganisationUnitTree', 'A0000000001 loading')
})
Given('the root level is closed', () => {
cy.getOrgUnitByLabel('Org Unit 1').as('rootUnit').shouldBeAClose... |
ArturVasilov/AndroidCourses | Android Testing/GoogleAnalytics/app/src/main/java/ru/guar7387/googleanalytics/database/DatabaseConstants.java | package ru.guar7387.googleanalytics.database;
public interface DatabaseConstants {
String TODO_TABLE_NAME = "todos";
String TODO_TEXT = "content";
String TODO_TIME = "time";
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.