repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
PopCap/GameIdea | Engine/Source/Runtime/Engine/Classes/GameFramework/DefaultPawn.h | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
//=============================================================================
// DefaultPawns are simple pawns that can fly around the world.
//
//=============================================================================
#pragma once
#include "GameFra... |
newtonjose/engenharia-software-ds | aql-analyzer/src/test/java/com/newtonjose/aqlanalyser/aqlparser/ObservationMicrobiologyQueryTest.java | package com.newtonjose.aqlanalyser.aqlparser;
public class ObservationMicrobiologyQueryTest extends AbstractAqlQueryTest {
@Override
protected String aqlQueryString() {
return "SELECT teste/data[at0002]/events[at0003]/data/items[at0015]/items[at0018]/name "
+ "FROM Ehr [uid=$ehrUid] CONTAINS Composition c CO... |
ioplee/schoolv1.0 | src/main/java/com/hzresp/commons/thread/constant/ThreadConstant.java | <gh_stars>1-10
package com.hzresp.commons.thread.constant;
public class ThreadConstant {
/** 线程默认的初始化时间 */
public final static int DEF_T_R_DELAY = 300 * 1000 ;
public final static String THREAD_LOG_NAME = "com.shangban.thread.manager";
}
|
erard22/camel | components/camel-hystrix/src/main/java/org/apache/camel/component/hystrix/processor/HystrixProcessorCommand.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 ... |
Ehtisham-Ayaan/aoo-ghr-bnain-update | node_modules/react-ionicons/lib/EyeOffSharp.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _SvgContainer = require('./SvgContainer');
var _SvgContaine... |
stackrox/stackrox | central/graphql/resolvers/node_vulnerabilities.go | <reponame>stackrox/stackrox
package resolvers
import (
"context"
"time"
"github.com/pkg/errors"
"github.com/stackrox/rox/central/metrics"
"github.com/stackrox/rox/generated/storage"
"github.com/stackrox/rox/pkg/features"
pkgMetrics "github.com/stackrox/rox/pkg/metrics"
"github.com/stackrox/rox/pkg/search"
"g... |
thepassle/plugins | packages/commonjs/test/fixtures/function/strict-requires-exportmode-replace/replaceModuleExports.js | module.exports = { foo: 'foo' };
global.hasReplaceModuleExportsRun = true;
|
side-projects-42/INTERVIEW-PREP-COMPLETE | notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/LeetCode/ReverseBits.py | <reponame>side-projects-42/INTERVIEW-PREP-COMPLETE<filename>notes-n-resources/Data-Structures-N-Algo/_DS-n-Algos/Interview-Problems/LeetCode/ReverseBits.py
class Solution:
def reverseBits(self, n: int) -> int:
s = str(bin(n))
s = s[2:]
s = "0" * (32 - len(s)) + s
s = int(s[::-1], 2)
... |
peterolson/Project-Euler | 38.js | function isPandigital(n) {
var concat = "";
for (var i = 1; (concat + n * i).length <= 9; i++) {
concat += n * i;
}
return [1, 2, 3, 4, 5, 6, 7, 8, 9].every(function (x) {
return ~concat.indexOf(x);
}) ? +concat : false;
}
var max = 0;
for (var i = 1; i <= 9999; i++) {
... |
MadAppGang/identifo | test/runner/login_test.go | package runner_test
import (
"fmt"
"testing"
"github.com/madappgang/identifo/test/runner"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/gstruct"
)
// ============================================================
// Login with username and password
// ======================================================... |
AndroidKotlinID/objectbox-java | objectbox-java/src/main/java/io/objectbox/query/QueryCondition.java | package io.objectbox.query;
import io.objectbox.Property;
/**
* Allows building queries with a fluent interface. Use through {@link io.objectbox.Box#query(QueryCondition)}
* and build a condition with {@link Property} methods.
*/
public interface QueryCondition<T> {
/**
* Combines this condition using AN... |
BiBiServ/bibigrid | bibigrid-googlecloud/src/main/java/de/unibi/cebitec/bibigrid/googlecloud/HttpRequestLogHandler.java | <reponame>BiBiServ/bibigrid
package de.unibi.cebitec.bibigrid.googlecloud;
import com.google.api.client.http.HttpTransport;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
public class HttpRequestLogHandler extends Handler {
s... |
dzma352/portainer | app/kubernetes/component-status/models.js | /**
* KubernetesComponentStatus Model
*/
const _KubernetesComponentStatus = Object.freeze({
ComponentName: '',
Healthy: false,
ErrorMessage: '',
});
export class KubernetesComponentStatus {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesComponentStatus)));
}
}
|
byegates/Algos | util/TreeNode.java | <gh_stars>1-10
package util;
import java.util.*;
import static util.Utils.numLength;
public class TreeNode implements Iterable<TreeNode> {
public int key;
public TreeNode left;
public TreeNode right;
TreeNode(int key, TreeNode left, TreeNode right) {
this.key = key;
this.left = left;... |
740326093/- | YBL365/Class/Home/New_Buttons/MillionMessage/MineMillionMessage/View/YBLCustomersLabel.h | //
// YBLCustomersLabel.h
// 手机云采
//
// Created by 乔同新 on 2017/8/1.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YBLCustomersLabel : UILabel
@end
|
git4wht/cloudbreak | common/src/main/java/com/sequenceiq/cloudbreak/quartz/statuschecker/service/StatusCheckerJobService.java | package com.sequenceiq.cloudbreak.quartz.statuschecker.service;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.security.SecureRandom;
import java.time.Duration;
import java.time.ZonedDateTime;
import java.util.Date;
import java.util.Map;
import java.util.Random;
... |
Drakandes/Portfolio_NicolasPaulBonneau | Code en C++ de Mage War Online/AttackDamageBox.cpp | #include "stdafx.h"
#include "AttackDamageBox.h"
AttackDamageBox::AttackDamageBox()
{
if (!texture_ablaze_the_fire_box.loadFromFile("AttackDamageBox.png"))
{
std::cout << "Couldn't load balze the fire box correctly" << std::endl;
}
}
AttackDamageBox::~AttackDamageBox()
{
}
bool AttackDamageBox::G... |
ethanqtle/C_4_Everyone_Fund | ABC4/ch09/05_poker/swap.c | #include "poker.h"
void swap(card *p, card *q)
{
card tmp;
tmp = *p;
*p = *q;
*q = tmp;
}
|
janlt/daqdb | lib/spdk/SpdkCore.cpp | /**
* Copyright (c) 2019 Intel Corporation
*
* 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... |
tsirif/cortex | cortex/_lib/__init__.py | <reponame>tsirif/cortex
'''Cortex setup
'''
import copy
import glob
import logging
import os
import pprint
from . import config, exp, log_utils, models
from .parsing import default_args, parse_args, update_args
from .viz import init as viz_init
__author__ = '<NAME>'
__author_email__ = '<EMAIL>'
logger = logging.ge... |
lostdragon/cobar | cobar-server/src/main/java/com/alibaba/cobar/CobarStartup.java | /*
* Copyright 1999-2012 Alibaba Group.
*
* 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 appl... |
keymetrics/origa | test/plugins/test-trace-pg.js | <reponame>keymetrics/origa
/**
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
wibeasley/jbc-2016 | 1407-wallaby/KISS/Default User/omdanceparty/src/main.c | #include <kipr/botball.h>
int main()
{
printf("Hello World\n");
printf("moving motors forward\n"); // start at -1 k
motor(0,58);
motor(3,50);
msleep(1900);
ao();
printf("moves servo 0 up\n");
enable_servos(0);
set_servo_position(0,424);
msleep(2001);
disable_s... |
BigPapaChas/veneur | util/url.go | package util
import (
"encoding/json"
"net/url"
)
type Url struct {
Value *url.URL
}
func (u Url) MarshalJSON() ([]byte, error) {
if u.Value == nil {
return json.Marshal(nil)
}
return json.Marshal(u.Value.String())
}
func (u Url) MarshalYAML() (interface{}, error) {
if u.Value == nil {
return "", nil
}
... |
mikebrachmann/gprom | src/utility/sort_helpers.c | /*-----------------------------------------------------------------------------
*
* sort_helpers.c
*
*
* AUTHOR: lord_pretzel
*
*
*
*-----------------------------------------------------------------------------
*/
#include "common.h"
#include "model/expression/expression.h"
#include "utility/sort_h... |
mythoss/midpoint | testing/rest/src/test/java/com/evolveum/midpoint/testing/rest/authentication/TestOidcRestAuthByHMacModule.java | <gh_stars>0
/*
* Copyright (c) 2016-2022 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.testing.rest.authentication;
import com.evolveum.midpoint.common.rest.MidpointAbstractP... |
KevinLu/pops | tools/spotters/vultr.js | import _ from "lodash";
import { chromium, firefox, webkit } from "playwright";
import toTelegram from "./lib/telegram.js";
import provider from "../../data/providers/vultr.js";
const asset = "vultr";
const spotter = async () => {
const browser = await webkit.launch();
const page = await browser.newPage();
awai... |
scottwestover/intro-to-javascript-course | 30 - scope/start/main.js | // scope
|
plzombie/ne | nyan/nyan_mem.h | <reponame>plzombie/ne
/*
Файл : nyan_mem.h
Описание: Заголовок для nyan_mem.c
История : 18.08.12 Создан
*/
|
shaojiankui/iOS10-Runtime-Headers | Frameworks/NetworkExtension.framework/NEIKEv2Rekey.h | <filename>Frameworks/NetworkExtension.framework/NEIKEv2Rekey.h
/* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/NetworkExtension.framework/NetworkExtension
*/
@interface NEIKEv2Rekey : NSObject <NSObject> {
PCSimpleTimer * _childLifetime;
int _childLifetimeMinutes;
id /* block */ _chi... |
liuchao1986105/lambda-react | src/components/ShareButtons/index.js | <reponame>liuchao1986105/lambda-react
import React,{Component,PropTypes} from 'react'
import _ from 'lodash'
import QRCode from 'qrcode.react'
import "./sharebuttons.scss"
export default class ShareButtons extends Component{
static propTypes = {
url: PropTypes.string,
title: PropTypes.string,
description... |
FraunhoferFITWirtschaftsinformatik/SmarDeSatWork | smardes-middleware/base/smardes-common/src/main/java/com/camline/projects/smardes/common/el/PedanticMapELResolver.java | /*******************************************************************************
* Copyright (C) 2018-2019 camLine GmbH
*
* 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 restric... |
jonogillettt/react-habitat | tests/index.spec.js | <reponame>jonogillettt/react-habitat<gh_stars>100-1000
/**
* Copyright 2016-present, Deloitte Digital.
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in the
* LICENSE file in the root directory of this source tree.
*/
import ReactHabitat from '../src';
import Bootstr... |
yaowfhhuc/dist | dist-task/src/test/java/me/test/dist/task/AsynchonousTaskTest.java | package me.test.dist.task;
import me.test.dist.task.asynchronous.AsynchonousCallback;
import me.test.dist.task.asynchronous.AsynchronousTask;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTe... |
marcomarasca/SynapseWebClient | src/main/java/org/sagebionetworks/web/client/widget/entity/tabs/AbstractTablesTab.java | <gh_stars>10-100
package org.sagebionetworks.web.client.widget.entity.tabs;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.sagebionetworks.repo.model.Entity;
import org.sagebionetworks.repo.model.EntityHeader;
import org.sagebionetworks.repo.model.EntityT... |
RubenPX/django-orchestra | orchestra/contrib/webapps/backends/moodle.py | import os
import textwrap
from django.utils.translation import ugettext_lazy as _
from orchestra.contrib.orchestration import ServiceController, replace
from .. import settings
from . import WebAppServiceMixin
class MoodleController(WebAppServiceMixin, ServiceController):
"""
Installs the latest version o... |
spapulla/microgateway | kubernetes/edgemicroctl/samples/plugin/plugins/response-uppercase/index.js | module.exports.init = function(config, logger, stats) {
return {
ondata_response: function(req, res, data, next) {
var transformed = data.toString().toUpperCase();
next(null, transformed);
}
};
}
|
honchardev/KPI | year_1/prog_base_sem2/labs/lab5/code/main.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include "../headers/socket.h"
#include "../headers/http.h"
#include "../headers/server.h"
#include "../headers/list.h"
#include "../headers/dbModule.h"
#include "../headers/xmlModule.h"
#ifndef TRUE
#define TRUE 1
#endif // TRUE
int main()
{
// Begin work with ... |
Jean1dev/Especialista-JPA | iniciando-jpa/src/main/java/com/curso/model/NotaFiscal.java | <reponame>Jean1dev/Especialista-JPA
package com.curso.model;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.OneToOne;
import java.util.Date;
@Getter
@Setter
@Entity
public class NotaFiscal extends EntidadeBaseInteger {
@OneToOn... |
kangih90/egovAllinone | egovAllinone/src/main/java/egovframework/com/cop/cmt/service/impl/EgovArticleCommentServiceImpl.java | <gh_stars>1-10
package egovframework.com.cop.cmt.service.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import egovframework.com.cop.bbs.service.BoardMaster;
import egovframework.com.cop.bbs.service.BoardM... |
gabehack/Pyro4 | tests/PyroTests/testsupport.py | """
Support code for the test suite.
There's some Python 2.x <-> 3.x compatibility code here.
Pyro - Python Remote Objects. Copyright by <NAME> (<EMAIL>).
"""
import sys
import pickle
import Pyro4
__all__ = ["tobytes", "tostring", "unicode", "unichr", "basestring", "StringIO",
"Nonserializabl... |
okalinin/drill | exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/ProjectComplexRexNodeCorrelateTransposeRule.java | <reponame>okalinin/drill
/*
* 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... |
gautric/kogito-runtimes | kogito-codegen/src/test/java/org/kie/kogito/codegen/rules/IncrementalRuleCodegenTest.java | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... |
bloomberg/spark-flow | src/main/scala/com/bloomberg/sparkflow/components/Bundle.scala | /*
* Copyright 2016 Bloomberg LP
*
* 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... |
zhong-lab/optics | lantz/lantz/drivers/linux-gpib-4.2.0/linux-gpib-kernel-4.2.0/drivers/gpib/sys/ibwait.c | /***************************************************************************
ibwait.c
-------------------
begin : Dec 2001
copyright : (C) 2001, 2002 by <NAME>
email : <EMAIL>
******************************... |
corewire/rocketbot | rocketbot/commands/catchall.py | from typing import Any, Awaitable, Callable, List, Tuple
import rocketbot.commands as c
import rocketbot.master as master
import rocketbot.models as m
class CatchAll(c.BaseCommand):
"""This is a catch all command
It can be used as last command in the chain which is always
applicable and will call the gi... |
Jakegogo/concurrent | concur/src-basesource/basesource/convertor/contansts/Configurations.java | <reponame>Jakegogo/concurrent<filename>concur/src-basesource/basesource/convertor/contansts/Configurations.java<gh_stars>10-100
package basesource.convertor.contansts;
import java.io.*;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
/**
* 配置
* Created by... |
giger85/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/services/KeywordPlanCampaignKeywordServiceProto.java | <gh_stars>1-10
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/services/keyword_plan_campaign_keyword_service.proto
package com.google.ads.googleads.v10.services;
public final class KeywordPlanCampaignKeywordServiceProto {
private KeywordPlanCampaignKeywordServiceProt... |
bilektugrul/DiSky | src/main/java/info/itsthesky/DiSky/managers/cache/Messages.java | <filename>src/main/java/info/itsthesky/DiSky/managers/cache/Messages.java
package info.itsthesky.DiSky.managers.cache;
import info.itsthesky.DiSky.DiSky;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.TextChannel;
import net.dv8tion.jda.api.e... |
AntonioCesar96/livros-lembrete | livroslembreteapi/src/main/java/com/antonio/livroslembreteapi/services/LivroService.java | package com.antonio.livroslembreteapi.services;
import java.util.List;
import javax.ws.rs.core.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.domain.Sp... |
boazsade/machine_learinig_models | src/libs/dataclean_mode_use/src/constmissingfix_task.cpp | #ifndef SUPPORT_FOR_MODEL_USE
# define SUPPORT_FOR_MODEL_USE
#endif // SUPPORT_FOR_MODEL_USE
#include "libs/cleanup_operatiosn/constmissingfix_task.h"
#include "details/constmissingfix_task.hpp"
|
DiyanKalaydzhiev23/JavaScript-Applications | MusicExam/node_modules/playwright-chromium/lib/utils/stackTrace.js | <gh_stars>1-10
"use strict";
/**
* Copyright (c) Microsoft Corporation.
*
* 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 requ... |
kkkkv/tgnms | tgnms/fbcnms-projects/tgnms/app/views/map/mappanels/NodeDetailsPanel/NodeSoftwareVersion.js | <reponame>kkkkv/tgnms<gh_stars>10-100
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @format
* @flow strict-local
*/
import React from 'react';
import Typography from '@material-ui/core/Typography';
import {makeStyles} from '@material-ui/styles';
import {shortenVersionString} from '@fbcnms/tg-nms... |
reels-research/iOS-Private-Frameworks | NanoTimeKitCompanion.framework/NTKPhotoAnalysis.h | <gh_stars>1-10
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion
*/
@interface NTKPhotoAnalysis : NSObject <NSCopying, NSSecureCoding> {
struct {
bool isComplexBackground;
bool isColoredText;
float textHue;
... |
icbcom/aistdap-sdk-java | src/test/java/ru/icbcom/aistdapsdkjava/impl/datastore/resttemplate/RestTemplateResponseErrorHandlerTest.java | <reponame>icbcom/aistdap-sdk-java<filename>src/test/java/ru/icbcom/aistdapsdkjava/impl/datastore/resttemplate/RestTemplateResponseErrorHandlerTest.java<gh_stars>1-10
/*
* Copyright © 2018-2019 Icbcom
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance... |
ishansarangi/MovieShowTimeRecommender | SERVER/src/main/java/com/asu/MovieRecommender/utility/Constants.java | package com.asu.MovieRecommender.utility;
public class Constants {
public final static String URL = "https://api.internationalshowtimes.com/v4";
public final static String URL_TMDB = "https://api.themoviedb.org/3/";
public final static String MOVIE = "movie";
public final static String NOWPLAYING = "now_playing";
... |
hieo/shopping | src/test/java/cn/effine/lru/TestLRUCache.java | /**
* @Date 2015年3月12日 上午10:00:36
* @author effine
* @email <EMAIL>
*/
package cn.effine.lru;
import java.util.Iterator;
import java.util.Map;
//Test program for the LRUCache class.
public class TestLRUCache {
public static void main(String[] args) {
LRUCacheDemo<String, String> c = new LRUCacheDem... |
wilseypa/ROSS | ross/models/airport/other/3-simple-airport.c | <reponame>wilseypa/ROSS
#include <ross.h>
/* This is a modify verison of airport.c which was done by <NAME> */
int A = 60;
int R = 10;
int G = 45;
int NumLanded = 0;
enum events { ARRIVAL, LAND, DEPARTURE};
typedef struct {
enum events event_type;
} Msg_Data;
typedef struct {
int OnTheGround;
int InTheAi... |
GrrriiiM/rubik-js | src/components/scan/scan.component.js | <reponame>GrrriiiM/rubik-js
import { COLORS, SIDES } from "../../objs/constants.js";
import { patternColors } from "../../objs/creator.js";
import { findMovementFromTo } from "../../objs/finder.js";
import { MOVEMENTS } from "../../objs/movements.js";
import { rotateMovementsFromTo, rotateSide } from "../../objs/rotato... |
xzel23/meja | src/swing/java/com/dua3/meja/ui/swing/CellEditor.java | /*
* Copyright 2015 <NAME> (<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/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
truthiswill/intellij-community | python/testData/refactoring/move/baseClass/after/src/a.py | <reponame>truthiswill/intellij-community
from b import B
class C(B):
def __init__(self):
super(C, self).__init__() |
moutainhigh/taotao-cloud-parent | taotao-cloud-bigdata/taotao-cloud-java/src/main/java/com/taotao/cloud/java/proxy/proxyclass/ProxyBoss.java | package com.taotao.cloud.java.proxy.proxyclass;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class ProxyBoss {
/**
* 对接口方法进行代理
*/
@SuppressWarnings("unchecked")
public static <T> T getProxy(final int discountCoupon, final Cla... |
kelu124/pyS3 | org/apache/poi/ss/formula/ptg/RefNPtg.java | package org.apache.poi.ss.formula.ptg;
import org.apache.poi.util.LittleEndianInput;
import org.apache.poi.util.LittleEndianOutput;
public final class RefNPtg extends Ref2DPtgBase {
public static final byte sid = (byte) 44;
public /* bridge */ /* synthetic */ void write(LittleEndianOutput littleEndianOutput)... |
vega113/Wiab.pro | src/org/waveprotocol/wave/client/wavepanel/WavePanel.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... |
Al3x76/cpp | Pbinfo/nZero.cpp | <gh_stars>1-10
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n, a;
cin>>n>>a;
cout<<n;
for(int i=1; i<=a; i++) cout<<"0";
return 0;
}
|
globocom/container-broker | app/models/task_tag.rb | <filename>app/models/task_tag.rb
# frozen_string_literal: true
class TaskTag
include Mongoid::Document
include Mongoid::Uuid
field :name, type: String
field :values, type: Array, default: []
index({ name: 1 }, unique: true)
end
|
sw-ashai/ashaimall | mall-product/src/main/java/icu/ashai/mall/product/service/SpuInfoService.java | package icu.ashai.mall.product.service;
import com.baomidou.mybatisplus.extension.service.IService;
import icu.ashai.common.utils.PageUtils;
import icu.ashai.mall.product.entity.SpuInfoEntity;
import icu.ashai.mall.product.vo.SpuSaveVo;
import java.util.Map;
/**
* spu信息
*
* @author Ashai
* @email <EMAIL>
* @dat... |
enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/config/ia64/unwind-ia64.h | /* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>
<NAME> <<EMAIL>>
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free... |
vznncv/vznncv-cubemx-tools | tests/fixtures/stm32f1_project/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_conf_template.h | Stub content:
Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_conf_template.h
|
shubham1206agra/mlpack | src/mlpack/methods/ann/layer/linear_no_bias_impl.hpp | /**
* @file methods/ann/layer/linear_no_bias_impl.hpp
* @author <NAME>
*
* Implementation of the LinearNoBias class also known as fully-connected layer
* or affine transformation without the bias term.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD li... |
cdsnyder/esp-idf | components/soc/src/esp32s2/touch_sensor_hal.c | // Copyright 2015-2019 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... |
UKHomeOffice/passenger | modules/module-data-passenger/src/test/java/org/gov/uk/homeoffice/digital/permissions/passenger/domain/visa/VisaTypeServiceBeanTest.java | <gh_stars>0
package org.gov.uk.homeoffice.digital.permissions.passenger.domain.visa;
import org.gov.uk.homeoffice.digital.permissions.passenger.domain.*;
import org.gov.uk.homeoffice.digital.permissions.passenger.utils.Tuple;
import org.hamcrest.CoreMatchers;
import org.junit.Assert;
import org.junit.Test;
import org.... |
lazurcavali/chunky | web/packager/webPlugin.js | 'use strict'
let chalk = require('chalk')
let path = require('path')
let Ora = require('ora')
let ejs = require('ejs')
const emotions = require('./emotions.json')
class Plugin {
constructor (context) {
this._context = context
this._spinner = new Ora({ text: chalk.green('Chunky is getting ready to start pack... |
figurefix/prac | src/test/java/figurefix/prac/test/logging/sample/package-info.java | <filename>src/test/java/figurefix/prac/test/logging/sample/package-info.java<gh_stars>0
/**
*
*/
/**
* @author XZF
*
*/
package figurefix.prac.test.logging.sample; |
PrakulSmarty/Code | database/alinosql/alinosql.go | package alinosql
//ListTables list tables
func (alinosql *Alinosql) ListTables(request interface{}) (resp interface{}, err error) {
return resp, err
}
//DeleteTables delete tables
func (alinosql *Alinosql) DeleteTables(request interface{}) (resp interface{}, err error) {
return resp, err
}
//DescribeTables Descri... |
marcus8448/Mekanism | Mekanism/src/main/java/mekanism/common/lib/math/Plane.java | <reponame>marcus8448/Mekanism<filename>Mekanism/src/main/java/mekanism/common/lib/math/Plane.java
package mekanism.common.lib.math;
import java.util.Random;
import mekanism.common.lib.math.voxel.VoxelCuboid;
import mekanism.common.lib.math.voxel.VoxelCuboid.CuboidSide;
import net.minecraft.util.math.Vec3d;
// can add... |
hmrc/essttp-backend | cor-journey/src/main/scala/essttp/journey/model/OriginatedSjRequest.scala | <reponame>hmrc/essttp-backend
/*
* Copyright 2022 HM Revenue & Customs
*
* 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 r... |
programmerraja/discussy | routes/users.js | <reponame>programmerraja/discussy
const express = require("express");
const router = express.Router();
//controller
const userController = require("../controllers/userController.js");
//middleware
const Auth = require("../middleware/auth.js");
const checkMailVerified = require("../middleware/checkMailVerified.js");
... |
mcfongtw/LostInCompilation | docs/doxygen/shacat/html/search/classes_2.js | <reponame>mcfongtw/LostInCompilation
var searchData=
[
['hackprivate',['HackPrivate',['../structHackPrivate.html',1,'']]],
['hackproxy',['HackProxy',['../structHackProxy.html',1,'']]]
];
|
janakamarasena/carbon-business-process | components/bpel/org.wso2.carbon.bpel.cluster.notifier/src/main/java/org/wso2/carbon/bpel/cluster/notifier/BPELClusterNotifier.java | <filename>components/bpel/org.wso2.carbon.bpel.cluster.notifier/src/main/java/org/wso2/carbon/bpel/cluster/notifier/BPELClusterNotifier.java<gh_stars>1-10
package org.wso2.carbon.bpel.cluster.notifier;
import org.apache.axis2.AxisFault;
import org.apache.axis2.clustering.state.Replicator;
import org.apache.axis2.clust... |
OpenTouhou/OpenTouhouAndroid | math/src/main/java/com/scarlet/math/CubicBezierCurve.java | <filename>math/src/main/java/com/scarlet/math/CubicBezierCurve.java
package com.scarlet.math;
public class CubicBezierCurve {
private Vector3f[] points;
/*
* Constructor(s).
*/
public CubicBezierCurve(Vector3f[] points) {
this.points = points;
}
/*
* Getter(s).
*/
... |
lattwood/datadog-agent | pkg/util/winutil/iphelper/adapters.go | <reponame>lattwood/datadog-agent<gh_stars>0
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2018-present Datadog, Inc.
//go:build windows
// +build w... |
jwhudnall/2021-web-dev-bootcamp | section-25/FormEvents/InputEventPractice/app.js | <filename>section-25/FormEvents/InputEventPractice/app.js
const h1 = document.querySelector('h1');
const field = document.querySelector('#username');
field.addEventListener('input', function(e) {
if(field.value.length === 0) {
h1.textContent = 'Enter Your Username';
} else {
const welcomeMsg = ... |
ibalajiarun/go-consensus | protocols/dispel/epoch.go | package dispel
import (
"github.com/ibalajiarun/go-consensus/peer/peerpb"
pb "github.com/ibalajiarun/go-consensus/protocols/dispel/dispelpb"
)
type epoch struct {
epochNum pb.Epoch
rbDoneCount int
consDoneCount int
rbs map[peerpb.PeerID]*rbroadcast
cons map[peerpb.PeerID]*dbft
d *Dispel
}
func makeEpoc... |
CalamityC/ui-agreements | src/routes/AgreementEditRoute.js | <filename>src/routes/AgreementEditRoute.js
import React from 'react';
import PropTypes from 'prop-types';
import { cloneDeep } from 'lodash';
import compose from 'compose-function';
import SafeHTMLMessage from '@folio/react-intl-safe-html';
import { LoadingView } from '@folio/stripes/components';
import { CalloutConte... |
stuhacking/SGEngine-Cpp | src/engine/gl/glslshader.h | /*--- GLSLShader.h - GLSL Shader Header --------------------------*- C++ -*---
*
* Stuart's Game Engine
*
* This file is distributed under the Revised BSD License. See LICENSE.TXT
* for details.
*
* --------------------------------------------------------------------------
*
* @brie... |
RINEARN/vnano | src/org/vcssl/nano/spec/EngineInformation.java | /*
* Copyright(C) 2017-2021 RINEARN (<NAME>)
* This software is released under the MIT License.
*/
package org.vcssl.nano.spec;
import java.util.HashMap;
import java.util.Map;
import javax.script.ScriptEngine;
// Documentation: https://www.vcssl.org/en-us/dev/code/main-jimpl/api/org/vcssl/nano/spec/... |
idanh/querulous | src/main/scala/com/twitter/querulous/evaluator/QueryEvaluatorProxy.scala | <reponame>idanh/querulous<gh_stars>1-10
package com.twitter.querulous.evaluator
import java.sql.ResultSet
import java.sql.{SQLException, SQLIntegrityConstraintViolationException}
import com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException
import com.twitter.xrayspecs.{Time, Duration}
import com.twitter... |
digipost/signering-api-client-java | src/main/java/no/digipost/signature/client/core/exceptions/SenderNotSpecifiedException.java | package no.digipost.signature.client.core.exceptions;
import java.util.function.Supplier;
public class SenderNotSpecifiedException extends SignatureException {
public static final Supplier<SignatureException> SENDER_NOT_SPECIFIED = SenderNotSpecifiedException::new;
private SenderNotSpecifiedException() {
... |
rmartinc/keycloak | model/jpa/src/main/java/org/keycloak/events/jpa/EventEntity.java | <reponame>rmartinc/keycloak<filename>model/jpa/src/main/java/org/keycloak/events/jpa/EventEntity.java
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ex... |
mattdricker/lms | tests/unit/lms/db/__init___test.py | <filename>tests/unit/lms/db/__init___test.py
import pytest
import sqlalchemy as sa
from lms.db import BASE
from lms.db._bulk_action import BulkAction
class Child(BASE):
__tablename__ = "child"
id = sa.Column(sa.Integer, primary_key=True)
class ModelClass(BASE):
__tablename__ = "model_class"
id = sa... |
CarlosRobertoMedeiros/revision-frontend-javascript | 13-RB-ExpressoesRegulares/00-MetaCaracteres.js | /*
Os MetaCaracteres
Quick Reference
[abc] Um simples caracter como a, b ou c
[^abc] Qualquer caracter simples exceto a,b ou c
[a-z] Qualquer caractere simples entre a-z
[a-zA-Z] Qualquer caractere simples entre a-z ou A-Z
^ Inicia uma linha
$ Fim da Linha
\A Inicia uma String
\z Fim de uma St... |
ivanDannels/hasor | src/extends-parent/jetty-all/src/main/java/javax/servlet/jsp/tagext/TagData.java | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution Licens... |
A-Platform/apc-mall | mall-common/common-spring-boot-starter/src/main/java/com/a/platform/common/util/FileUtil.java | package com.a.platform.common.util;
import org.apache.commons.io.FileUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.Delete;
import org.apache.tools.ant.taskdefs.Expand;
import org.springframework.web.... |
Flexberry/ember-flexberry-designer | addon/controllers/fd-generation.js | /**
@module ember-flexberry-designer
*/
import Controller from '@ember/controller';
import FdReadonlyProjectMixin from '../mixins/fd-readonly-project';
import FdGroupDropdown from '../mixins/fd-group-dropdown';
import { inject as service } from '@ember/service';
import { A } from '@ember/array';
import { isNone, isB... |
hicala/jaeger-analytics-java | tracedsl/src/main/java/io/jaegertracing/analytics/tracequality/MinimumClientVersion.java | package io.jaegertracing.analytics.tracequality;
import io.jaegertracing.analytics.ModelRunner;
import io.jaegertracing.analytics.gremlin.GraphCreator;
import io.jaegertracing.analytics.model.Span;
import io.prometheus.client.Counter;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;... |
venusdrogon/feilong | feilong-lib/feilong-lib-commons-digester3/src/main/java/com/feilong/lib/digester3/binder/DigesterLoader.java | package com.feilong.lib.digester3.binder;
import static com.feilong.lib.digester3.binder.BinderClassLoader.createBinderClassLoader;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.Formatter;
import java.util... |
YungTsun/alameda | datahub/pkg/dao/entities/prometheus/metrics/namespace.go | package metrics
import (
DaoMetricTypes "github.com/containers-ai/alameda/datahub/pkg/dao/interfaces/metrics/types"
FormatEnum "github.com/containers-ai/alameda/datahub/pkg/formatconversion/enumconv"
FormatTypes "github.com/containers-ai/alameda/datahub/pkg/formatconversion/types"
"github.com/containers-ai/alameda... |
ceekay1991/CallTraceForWeChat | CallTraceForWeChat/CallTraceForWeChat/WeChat_Headers/DetailSubIcon.h | <gh_stars>10-100
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
@class NSString, UIImage;
@interface DetailSubIcon : NSObject
{
NSString *_subIconUrl;
U... |
yipeiw/pserver | src/system/message.h | #pragma once
#include "util/common.h"
#include "util/threadpool.h"
#include "util/shared_array.h"
#include "system/proto/task.pb.h"
#include "filter/proto/filter.pb.h"
namespace PS {
typedef std::string NodeID;
struct Message;
typedef std::shared_ptr<Message> MessagePtr;
typedef std::shared_ptr<const Message> Message... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.