repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
vietnux/CodeEditorMobile | examples/ru.iiec.cxxdroid/sources/f/a/a/a/n/g/w.java | package f.a.a.a.n.g;
import f.a.a.a.n.b.k;
import org.json.JSONObject;
public interface w {
u a(k kVar, JSONObject jSONObject);
}
|
opensingular/singular-apps | requirement/requirement-module/src/main/java/org/opensingular/requirement/module/wicket/box/AbstractBoxContent.java | <reponame>opensingular/singular-apps
/*
* Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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://... |
DenislavVelichkov/JS-Core-January-2020 | JS-Advanced/20-Exam-Prep-2/01-SoftDo/scripts/index.js | function mySolution() {
const html = {
askQuestionArea: document.querySelector("#inputSection textarea"),
pendingQusetions: document.querySelector("#pendingQuestions"),
openQuestions: document.querySelector("#openQuestions"),
nickNameArea: document.querySelector("#inputSection input"),
};
const... |
KevinSjoberg/homebrew | Library/Formula/newick-utils.rb | <reponame>KevinSjoberg/homebrew
require 'formula'
class NewickUtils < Formula
homepage 'http://cegg.unige.ch/newick_utils'
url 'http://cegg.unige.ch/pub/newick-utils-1.6.tar.gz'
sha1 'a9779054dcbf957618458ebfed07991fabeb3e19'
# don't bother testing nw_gen, it's known to fail on MacOSX
patch :DATA
def ins... |
apitore/apitore-service-dao | src/main/java/com/apitore/dao/impl/UserThreadDAOImpl.java | package com.apitore.dao.impl;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... |
watchdogdevel/wsdk-scanner-core | libclamav/c++/llvm/utils/TableGen/CodeGenInstruction.cpp | //===- CodeGenInstruction.cpp - CodeGen Instruction Class Wrapper ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
geekayush/manifold | bindings/jupyter-modules/jupyter-graph-builder/src/index.js | <filename>bindings/jupyter-modules/jupyter-graph-builder/src/index.js
import React from 'react';
import GraphBuilder from '@mlvis/graph-builder';
export default props => (
<div style={{position: 'relative', height: 500}}>
<GraphBuilder {...props} />
</div>
);
|
thitranthanh/Achilles | achilles-core/src/test/java/info/archinnov/achilles/internal/persistence/operations/CounterPersisterTest.java | /*
* Copyright (C) 2012-2014 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
misery/AusweisApp2 | src/ui/qml/VersionInformationModel.h | <filename>src/ui/qml/VersionInformationModel.h
/*!
* \copyright Copyright (c) 2016-2018 Governikus GmbH & Co. KG, Germany
*/
#pragma once
#include <QAbstractListModel>
#include <QList>
#include <QPair>
#include <QString>
namespace governikus
{
class VersionInformationModel
: public QAbstractListModel
{
Q_OBJECT... |
amosproj/amos-ss2021-is-project-linter | server/src/main/java/amosproj/server/linter/checks/HasIssuesEnabled.java | <gh_stars>1-10
package amosproj.server.linter.checks;
import amosproj.server.GitLab;
import org.gitlab4j.api.models.Project;
public class HasIssuesEnabled extends Check {
@Override
protected boolean evaluate(GitLab gitLab, Project project) {
return project.getIssuesEnabled();
}
}
|
Andreas237/AndroidPolicyAutomation | ExtractedJars/PACT_com.pactforcure.app/javafiles/com/fasterxml/jackson/databind/ser/impl/SimpleBeanPropertyFilter.java | <reponame>Andreas237/AndroidPolicyAutomation
// Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.fasterxml.jackson.databind.ser.impl;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.... |
AlexanderMac/n-params-processor | src/data-builder.js | const _ = require('lodash')
const BaseBuilder = require('./base-builder')
class DataBuilder extends BaseBuilder {
build() {
return _.omit(this.data, '_temp_')
}
}
module.exports = DataBuilder
|
turesnake/leetPractice | src/_leetcode/leet_m17_12.cpp | /*
* ====================== leet_m17_12.cpp ==========================
* -- tpr --
* CREATE -- 2020.06.01
* MODIFY --
* ----------------------------------------------------------
* 面试题 17.12. BiNode
*/
#includ... |
lzxorz/freeman | freeman-app/src/main/java/com.freeman/sys/controller/SysPermissionController.java | package com.freeman.sys.controller;
import cn.hutool.core.convert.Convert;
import com.freeman.common.log.Log;
import com.freeman.common.result.R;
import com.freeman.common.base.controller.BaseController;
import com.freeman.common.base.domain.Tree;
import com.freeman.common.router.VueRouter;
import com.freeman.common.... |
resourceidea/resourceideaapi | client_industry/tests/factory.py | import factory
from faker import Faker
from faker.providers import lorem # type: ignore
from organization.tests.factory import OrganizationFactory
faker = Faker()
faker.add_provider(lorem)
class ClientIndustryFactory(factory.django.DjangoModelFactory):
"""Client industry factory"""
class Me... |
cbsa-informatik-uni-siegen/gtitool | de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/StyledRegexAlphabetParserPanel.java | <filename>de.unisiegen.gtitool.ui/source/de/unisiegen/gtitool/ui/style/StyledRegexAlphabetParserPanel.java
package de.unisiegen.gtitool.ui.style;
import java.util.ArrayList;
import java.util.TreeSet;
import de.unisiegen.gtitool.core.entities.Alphabet;
import de.unisiegen.gtitool.core.entities.Symbol;
import de.unisi... |
cppctamber/ccpwgl2 | src/unsupported/eve/child/EveChildEffectPropagator.js | import { meta } from "utils";
import { EveChild } from "eve/child";
import { Tw2CurveScalarKey } from "unsupported/curve";
import { EveLocator2 } from "eve";
@meta.notImplemented
@meta.type("EveChildEffectPropagator", true)
export class EveChildEffectPropagator extends EveChild
{
@meta.string
name = "";
... |
sabaalmas/Java-Coding-Problems | Chapter08/P169_FactoryPattern/src/modern/challenge/TriFunction.java | <filename>Chapter08/P169_FactoryPattern/src/modern/challenge/TriFunction.java
package modern.challenge;
@FunctionalInterface
public interface TriFunction<T, U, V, R> {
R apply(T t, U u, V v);
}
|
jw-park/esaas-engagements | features/step_definitions/search_steps.rb | Given(/^the following apps exist:$/) do |table|
# table is a Cucumber::MultilineArgument::DataTable
table.hashes.each do |app|
App.create(app)
end
end
Given(/^the following orgs exist:$/) do |table|
# table is a Cucumber::MultilineArgument::DataTable
table.hashes.each do |org|
Org.create(org)
end
end... |
plandes/dltools | src/python/zensols/deeplearn/model/analyze.py | """Analysis tools to compare results.
"""
__author__ = '<NAME>'
from typing import Tuple, Iterable
from dataclasses import dataclass, field
import logging
import sys
from io import TextIOBase, StringIO
import pandas as pd
from zensols.config import Dictable
from zensols.persist import PersistedWork, persisted
from z... |
micellius/sap-one-experience | public/javascripts/index/main/directives/main-user-button-directive.js | /**
* Created by i070970 on 8/10/14.
*/
(function () {
'use strict';
function sapMainUserButtonDirective(sapSharedAuthenticationService) {
return {
template:
'<button class="sap-navbar-button sap-user-button">' +
'<img ng-src="{{user.avatar}}" alt="{{us... |
NolanKuenzi/issueTracker | client/client_issues/src/js/components/presentational/main.js | <reponame>NolanKuenzi/issueTracker
import React from 'react';
import Issues from '../container/issues';
const Main = () => (
<div>
<Issues />
</div>
);
export default Main;
|
naiger/Fishlinked | node_modules/twilio-chat/browser/data/userchannels.js | "use strict";
var _regenerator = require("babel-runtime/regenerator");
var _regenerator2 = _interopRequireDefault(_regenerator);
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require("babel-runtime/helper... |
nfagan/mtype | src/mt/type/subscripts.cpp | #include "subscripts.hpp"
#include "unification.hpp"
#include "library.hpp"
#include "debug.hpp"
#include <cassert>
#define MT_SHOW1(msg, a) \
std::cout << (msg); \
unifier.type_printer().show((a)); \
std::cout << std::endl
#define MT_SHOW2(msg, a, b) \
std::cout << (msg) << std::endl; \
unifier.type_printe... |
wvanheemstra/core | docs/QueryViz/queryViz.js | <gh_stars>1-10
var s1 = "Bars";
var s2 = "IMDB";
var s3 = "Sailors";
var s4 = "Belief worlds";
var s5 = "Abstract";
var s6 = "Core";
window.onload = function() {
$("select_query").onchange = loadQuery;
$("submit").onclick = run;
$("reset").onclick = reset;
loadQuery();
};
function ... |
Pandinosaurus/pyquickhelper | _unittests/ut_helpgen/test_pandoc_helper.py | <filename>_unittests/ut_helpgen/test_pandoc_helper.py
"""
@brief test log(time=8s)
@author <NAME>
"""
import sys
import os
import unittest
from pyquickhelper.loghelper.flog import fLOG
from pyquickhelper.pycode import get_temp_folder, is_travis_or_appveyor, ExtTestCase
from pyquickhelper.helpgen import latex... |
pujiaolin/datacollector | commonlib/src/main/java/com/streamsets/pipeline/lib/generator/text/TextDataGeneratorFactory.java | <filename>commonlib/src/main/java/com/streamsets/pipeline/lib/generator/text/TextDataGeneratorFactory.java
/*
* Copyright 2017 StreamSets 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 Licens... |
ElSamaritan/blockchain-OLD | src/CryptoNoteCore/Difficulty.cpp | <reponame>ElSamaritan/blockchain-OLD<filename>src/CryptoNoteCore/Difficulty.cpp<gh_stars>0
/* ============================================================================================== *
* *
* ... |
sophiemarceau/NEDIELTSCoach_Android | src/com/lels/activity/myself/adapter/MycollectAdapter.java | <gh_stars>0
package com.lels.activity.myself.adapter;
import java.util.HashMap;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
import com.example.hello.R;
import com.lels.constants.Constants;
import com.lidroid.xutils.HttpUtils;
import com.lidroid.xutils.exception.HttpException;
im... |
dreamcmi/esp-idf | components/ulp/ulp_riscv/ulp_riscv_utils.c | /*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "ulp_riscv_utils.h"
#include "ulp_riscv_register_ops.h"
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
#include "soc/soc_ulp.h"
void ulp_riscv_rescue_from_monitor(void)
{
/* Rescu... |
ConsensusJ/bitcoinj-addons | consensusj-jsonrpc-daemon/src/main/java/org/consensusj/jsonrpc/daemon/EchoJsonRpcService.java | <filename>consensusj-jsonrpc-daemon/src/main/java/org/consensusj/jsonrpc/daemon/EchoJsonRpcService.java
package org.consensusj.jsonrpc.daemon;
import org.consensusj.jsonrpc.introspection.AbstractJsonRpcService;
import org.consensusj.jsonrpc.introspection.JsonRpcServiceWrapper;
import org.slf4j.Logger;
import org.slf4j... |
tehora/phd-sourcecodes | sequential/aseq.cpp | <reponame>tehora/phd-sourcecodes
// Sequence analyzer
// aseq <data>
// data format: each line is of form
// qty <list-of-events>
// where events are from the 'events' string below, separated by colons if they are long time apart
// findall finds all the sequences with support >= 1000
// analyze performs ... |
MrGo123/SHDSystem | SpringBoot/SHDSystem/src/main/java/top/zy68/SHDSystemApplication.java | <reponame>MrGo123/SHDSystem
package top.zy68;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @ClassName SHDSystemApplication
* @Description 启动类
* @Author Sustart
* @Date2021/12/24 21:15
* @Version 1.0
**/
@SpringBootApplication
publ... |
projectPiki/pikmin2 | unsorted_include_todo/PikiAI/ActTransportArg.h | <reponame>projectPiki/pikmin2<gh_stars>10-100
#ifndef _PIKIAI_ACTTRANSPORTARG_H
#define _PIKIAI_ACTTRANSPORTARG_H
/*
__vt__Q26PikiAI15ActTransportArg:
.4byte 0
.4byte 0
.4byte getName__Q26PikiAI15ActTransportArgFv
*/
namespace PikiAI {
struct ActTransportArg {
virtual void getName(); // _00
// _00 ... |
notadd/ts-module-shop | package/model/evaluation.entity.js | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
xuejiacore/altass-ng | altass-ng-executors/altass-executor-redis/src/main/java/org/chim/altass/executor/redis/bean/Param.java | package org.chim.altass.executor.redis.bean;
import org.chim.altass.executor.redis.constant.KeyType;
import org.chim.altass.executor.redis.constant.OpType;
import org.redisson.api.RExpirable;
import java.io.Serializable;
/**
* Class Name: Param
* Create Date: 11/5/18 11:07 PM
* Creator: Chim·Zigui
* Version: v1.... |
will-gilbert/SmartGWT-Showcase | src/main/java/com/smartgwt/sample/showcase/client/grid/appearance/FieldPickerSample.java | <reponame>will-gilbert/SmartGWT-Showcase
package com.smartgwt.sample.showcase.client.grid.appearance;
import com.smartgwt.client.data.Record;
import com.smartgwt.client.types.Autofit;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.Li... |
Leundo/drug-control-medp | src/pages/Me.js | import React from 'react';
import { Redirect } from 'react-router-dom';
import { useState, useEffect } from "react";
import { useSelector, useDispatch } from 'react-redux';
import './Me.css';
import { Button, Layout, Menu, Modal, Space, notification } from 'antd';
import { apiGetUserMe, apiPutUserMe } from '../util/ap... |
andreluiznsilva/objectify-persister | src/main/java/com/googlecode/objectify/persister/util/ObjectifyPersisterDAO.java | <filename>src/main/java/com/googlecode/objectify/persister/util/ObjectifyPersisterDAO.java<gh_stars>0
package com.googlecode.objectify.persister.util;
import java.util.List;
import com.googlecode.objectify.ObjectifyOpts;
import com.googlecode.objectify.persister.ObjectifyPersister;
import com.googlecode.objecti... |
beingdevelop/Development-Training | Training Class File/BitSocialNetworkingAutomation/src/test/java/com/bit/ui/test/SignUp.java | <gh_stars>0
package com.bit.ui.test;
import org.junit.Test;
import org.openqa.selenium.By;
import com.bit.support.BaseTest;
public class SignUp extends BaseTest
{
@Test
public void sign_up()
{
System.out.println("Test Started - 'sign_up'");
driver.findElement(By.id("u_0_0")).sendKeys("Asad");
System.out.pri... |
x-meta/xworker | xworker_swt/src/main/java/xworker/swt/custom/CTabFolderCTabItemCreator.java | /*******************************************************************************
* Copyright 2007-2013 See AUTHORS file.
*
* 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:/... |
PranjalPansuriya/JavaScriptEnhancements | src/commands/evaluate_javascript.py | import sublime, sublime_plugin
import shlex, tempfile
from ..libs import util
from ..libs import JavascriptEnhancementsExecuteOnTerminalCommand
class JavascriptEnhancementsEvaluateJavascriptCommand(JavascriptEnhancementsExecuteOnTerminalCommand, sublime_plugin.WindowCommand):
is_node = True
also_non_project = Tru... |
iootclab/openjdk | openjdk11/test/hotspot/jtreg/compiler/unsafe/TestLoopUnswitching.java | <gh_stars>1-10
/*
* Copyright (c) 2017, Red Hat, Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwar... |
rbuck/java-commons | src/main/java/com/buck/commons/net/URN.java | /*
* Copyright 2010-2013 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
CiscoISE/ciscoise-go-sdk | sdk/backup_and_restore.go | package isegosdk
import (
"fmt"
"github.com/go-resty/resty/v2"
)
type BackupAndRestoreService service
type ResponseBackupAndRestoreConfigBackup struct {
Response *ResponseBackupAndRestoreConfigBackupResponse `json:"response,omitempty"` //
Version string `json:"version,omi... |
sashakru/test262 | test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-179.js | <reponame>sashakru/test262<gh_stars>10-100
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.3-4-179
description: >
Object.getOwnPropertyDescriptor returns data desc (all false) for
properties on built-ins ... |
ajeet1308/code_problems | CodeChef_problems/ChefinaAndSwaps.py | '''
Problem Link - https://www.codechef.com/JULY20B/problems/CHFNSWPS
'''
from sys import *
from math import *
from collections import *
mod = 1000000007
def get_array(): return list(map(int, stdin.readline().split()))
def get_ints(): return map(int, stdin.readline().split())
def get_int(): return int(stdin.readl... |
jbuider1993/app-oaserver | app-pro-note/src/main/java/com/app/producer/AppMyNoteController.java | package com.app.producer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springfra... |
pvanassen/ns-api | src/main/java/nl/pvanassen/ns/UrlParamHelper.java | package nl.pvanassen.ns;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author <NAME>
*/
class UrlParamHelper {
private final Charset charset;
private static final UrlParamHelper INSTA... |
ededrap/AP_Lab | tutorial-8/src/main/java/tallycounter/TallyCounterChecker.java | <filename>tutorial-8/src/main/java/tallycounter/TallyCounterChecker.java
package tallycounter;
public class TallyCounterChecker implements Runnable {
private SynchronizedTallyCounter tallyCounterReference;
private Thread thread;
private int sleepTime;
public TallyCounterChecker(SynchronizedTallyCount... |
jrtkcoder/GitLab | spec/requests/api/v3/award_emoji_spec.rb | require 'spec_helper'
describe API::V3::AwardEmoji, api: true do
include ApiHelpers
let(:user) { create(:user) }
let!(:project) { create(:empty_project) }
let(:issue) { create(:issue, project: project) }
let!(:award_emoji) { create(:award_emoji, awardable: issue, user: user) ... |
EdgeLab-FHDO/Edge-Diagnostic-Platform | src/main/java/InfrastructureManager/Modules/REST/Exception/Server/RESTServerException.java | <reponame>EdgeLab-FHDO/Edge-Diagnostic-Platform
package InfrastructureManager.Modules.REST.Exception.Server;
import InfrastructureManager.Modules.REST.Exception.RESTModuleException;
/**
* Signals errors in the built-in REST server
*/
public class RESTServerException extends RESTModuleException {
/**
* Cons... |
UbaidurRehman1/quickperf | jvm/jvm-annotations/src/main/java/org/quickperf/jvm/rss/ProcessStatusRecorder.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 und... |
samlaudev/CMU-CS-Course | 15-213/Code/26-parallelism/pqsort/sortbench.c | <reponame>samlaudev/CMU-CS-Course
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include "pqsort.h"
#include "realtimer.h"
#define MAXCPY 5
static data_t *data[MAXCPY] = {NULL};
static void gen_data(int ncpy, size_t nele) {
int c;
if (ncpy > MAXCPY) {
printf("Error. Cannot have more than %d cop... |
suifengzhuliu/impala | fe/src/test/java/org/apache/impala/util/BitUtilTest.java | <filename>fe/src/test/java/org/apache/impala/util/BitUtilTest.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 yo... |
keckelt/tdp_publicdb | dist/scores/AScore.js | /**
* Created by sam on 06.03.2017.
*/
import { resolveDataTypes } from '../common/config';
export class AScore {
constructor(parameter) {
const { dataType, dataSubType } = resolveDataTypes(parameter.data_type, parameter.data_subtype);
this.dataType = dataType;
this.dataSubType = dataSubTy... |
pedro-ca/Parking-Lot-Control | ParkingLotControll/src/controller/ListEntryControl.java | <filename>ParkingLotControll/src/controller/ListEntryControl.java
package controller;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.table.DefaultTableModel;
import model.bo.Entry;
import view.ListEntryView;
public class ListEntryControl implements ActionListener {
... |
blevinstein/GameAI | src/com/blevinstein/util/Ticker.java | <gh_stars>0
package com.blevinstein.util;
import java.util.Arrays;
// Simple class for tracking rate (per second) of tick() calls.
//
// Uses an array as a circular list, stores position in index, stores current
// time in ticks[index]. Each tick, index++, and calculates how long it took
// to complete the circui... |
fashionbrot/example3 | console/src/main/java/com/github/fashionbrot/console/config/AuthenticationProcessor.java | package com.github.fashionbrot.console.config;
import org.springframework.stereotype.Component;
import org.thymeleaf.context.ITemplateContext;
import org.thymeleaf.engine.AttributeName;
import org.thymeleaf.model.IProcessableElementTag;
import org.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagP... |
congscallion/geekbang-lessons | training-camp/xiaomage-java/stage-0/user-platform/user-web/src/main/java/slydm/geektimes/training/projects/user/repository/BookRepository.java | package slydm.geektimes.training.projects.user.repository;
import java.util.Optional;
import slydm.geektimes.training.projects.user.domin.Book;
/**
* 书籍仓库服务接口
*
* @author <EMAIL>(wangcong) 2021/3/10 21:52
*/
public interface BookRepository {
/**
* 查询所有书籍
*
* @return 书籍列表
*/
Iterable<Book> findAll... |
Tea-and-Coffee/TACKit | TACKit/UIImage/UIImage+View.h | //
// UIImage+View.h
// TACKit
//
// Created by masato_arai on 2016/03/28.
// Copyright (c) 2015年 Tea and Coffee. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (View)
+ (UIImage *)imageWithView:(UIView *)view;
- (instancetype)initWithView:(UIView *)view;
@end
|
janainamai/Movie-Manager | src/main/java/br/com/movie/model/Category.java | package br.com.movie.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Category {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
... |
dorward/intercode | app/graphql/types/registration_policy_input_type.rb | class Types::RegistrationPolicyInputType < Types::BaseInputObject
argument :buckets, [Types::RegistrationPolicyBucketInputType], required: false
argument :prevent_no_preference_signups, Boolean, required: false, camelize: false
end
|
thailee/VoiceIP | freePBX/html/admin/modules/core/assets/js/did/did.js | $("[name='privacyman']").change(function(){
if($(this).val() == "1"){
$("#pmmaxretries").attr('disabled', false);
$("#pmminlength").attr('disabled', false);
}else{
$("#pmmaxretries").attr('disabled', true);
$("#pmminlength").attr('disabled', true);
}
});
$('.fpbx-submit').submit(function() {
if(!($('#exten... |
kyxg/AutoTrash | cmd/lotus-fountain/rate_limiter.go | <reponame>kyxg/AutoTrash
package main/* pull -> pull_request */
import (
"sync"
"time"
/* Use the FLASH_RE regexp from the udevadm parser in udisks2.py */
"golang.org/x/time/rate"
)/* #472 - Release version 0.21.0.RELEASE. */
type Limiter struct { //Merge "msm_fb:display: Fix compilation errors when DTV is disabl... |
AsterixxxGallier/Quark | src/main/java/vazkii/quark/automation/block/BlockChute.java | <filename>src/main/java/vazkii/quark/automation/block/BlockChute.java
package vazkii.quark.automation.block;
import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.Prope... |
ccetc/mahaplatform.com | src/apps/crm/config/app.js | const app = {
code: 'crm',
title: 'CRM',
path: '/crm',
description: '',
icon: 'user'
}
export default app
|
microvibe/vibe | microvibe-booster/booster-core/src/main/java/io/microvibe/booster/core/base/shiro/authc/token/AuthcChannelToken.java | package io.microvibe.booster.core.base.shiro.authc.token;
import io.microvibe.booster.core.base.shiro.authc.AuthcChannel;
import org.apache.shiro.authc.UsernamePasswordToken;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
public class AuthcChannelToken extends UsernamePasswordToken {
pr... |
eivinwi/designsystem | packages/ffe-buttons-react/src/InlineExpandButton.spec.js | <gh_stars>10-100
import React from 'react';
import { shallow } from 'enzyme';
import ChevronIkon from '@sb1/ffe-icons-react/lib/chevron-ikon';
import InlineExpandButton from './InlineExpandButton';
const defaultProps = {
children: 'Click me',
isExpanded: false,
onClick: f => f,
};
const getWrapper = props... |
schinmayee/nimbus | src/scheduler/checkpoint_entry.h | /*
* Copyright 2013 Stanford University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of co... |
neuro-inc/platform-api | platform_api/orchestrator/base_postgres_storage.py | <reponame>neuro-inc/platform-api
import asyncio
import sys
from collections.abc import AsyncIterator
from contextlib import AbstractAsyncContextManager, asynccontextmanager
from typing import Optional
import sqlalchemy.sql as sasql
from sqlalchemy.engine import Row
from sqlalchemy.ext.asyncio import AsyncConnection, A... |
nachooya/naclports-1 | examples/graphics/earth/pepper_plugin.cc | <gh_stars>1-10
// Copyright (c) 2011 The Native Client Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifdef __native_client__
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <ppapi/cpp/inst... |
adshpl/walkie-talkie | src/constants/http.js | /**
* @const
* @type {Object}
*/
export const HTTP_STATUSES_CODES = {
UNAUTHORIZED: 401,
FORBIDDEN: 403,
};
|
MaximLukianchuk/WebStore | src/main/java/marks/webstore/service/ProductService.java | package marks.webstore.service;
import marks.webstore.domain.ProductType;
import marks.webstore.repos.ProductTypeRepo;
import marks.webstore.repos.ProductTypeStoreRepo;
import marks.webstore.repos.StoreRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... |
castle/castle-python | castle/test/helpers/configuration_helper.py | <gh_stars>1-10
from urllib.parse import urlparse
from castle.failover.strategy import FailoverStrategy
from castle.errors import ConfigurationError
def default_values(self, klass):
config = klass()
uri = urlparse('https://api.castle.io/v1')
self.assertEqual(config.api_secret, None)
self.assertEqual(co... |
LaudateCorpus1/declarative-resource-client-library | python/services/networksecurity/beta/client_tls_policy_server.go | // Copyright 2021 Google LLC. 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
//
// Unless required by applica... |
38/plumber | servlets/language/pyservlet/include/const.h | /**
* Copyright (C) 2017, <NAME>
**/
/**
* @brief The constant used in the pyservlet module
* @file pyservlet/include/const.h
**/
#ifndef __PYSERVLET_CONST_H__
#define __PYSERVLET_CONST_H__
/**
* @brief Inject the constant that needed by the pyservlet to the given module
* @return status code
**/
int const_ini... |
lokeshjindal15/pd-gem5_transformer | kernel_dvfs/linux-linaro-tracking-gem5/tools/gator/daemon/libsensors/error.h | <gh_stars>0
/*
error.h - Part of libsensors, a Linux library for reading sensor data.
Copyright (c) 1998, 1999 <NAME> <<EMAIL>>
Copyright (C) 2007-2009 <NAME> <<EMAIL>>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Li... |
0x0all/nanocv | apps/ncv_benchmark_conv2d.cpp | <reponame>0x0all/nanocv
#include "nanocv/tensor.h"
#include "nanocv/string.h"
#include "nanocv/measure.hpp"
#include "nanocv/tabulator.h"
#include "nanocv/math/conv2d.hpp"
#include <iostream>
using namespace ncv;
const size_t trials = 16;
template
<
typename top,
typename tmatrix,
typename t... |
jodi-one/jod | jodi_tools/src/main/java/one/jodi/tools/TransformationCache.java | package one.jodi.tools;
import one.jodi.core.model.Transformation;
import java.util.List;
public interface TransformationCache {
/**
* Register transformation and assign package sequence based on registration order.
*
* @param transformation transformation to register in the cache
*/
pub... |
wenhaopeter/read_pytorch_code | test/cpp/tensorexpr/test_ir_printer.cpp | #include <stdexcept>
#include "test/cpp/tensorexpr/test_base.h"
#include <torch/csrc/jit/tensorexpr/expr.h>
#include <torch/csrc/jit/tensorexpr/ir.h>
#include <torch/csrc/jit/tensorexpr/ir_printer.h>
#include <torch/csrc/jit/tensorexpr/loopnest.h>
#include <torch/csrc/jit/tensorexpr/tensor.h>
#include <torch/csrc/jit/... |
ss23/opentoonz | toonz/sources/include/tcg/alignment.h |
#ifndef TCG_ALIGNMENT_H
#define TCG_ALIGNMENT_H
#include "macros.h"
/*! \file alignment.h
This file contains C++ utilities about types alignment.
*/
namespace tcg
{
//**************************************************************************
// Private stuff
//**********************************************... |
zzalscv2/FFEA | ffeatools/FFEA_analysis/FFEA_thin_system.py | #
# This file is part of the FFEA simulation package
#
# Copyright (c) by the Theory and Development FFEA teams,
# as they appear in the README.md file.
#
# FFEA 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 Software ... |
atul-vyshnav/2021_IBM_Code_Challenge_StockIT | src/StockIT-v1-release_source_from_JADX/sources/com/google/maps/android/data/kml/KmlFeatureParser.java | <filename>src/StockIT-v1-release_source_from_JADX/sources/com/google/maps/android/data/kml/KmlFeatureParser.java<gh_stars>1-10
package com.google.maps.android.data.kml;
import com.facebook.react.uimanager.ViewProps;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.LatLngBounds;... |
yixinwang/representation-causal-public | disentanglement_expms/sec3-4-ioss_vae/src/disentangle_learn.py | import argparse
import numpy as np
import numpy.random as npr
import scipy
import os
import sys
import seaborn as sns
import matplotlib.pyplot as plt
import time
import random
from load_data import DSprites, Cars3D, MPI3D, SmallNORB
import pandas as pd
from utils import uniformize, IRS_score, betatc_compute_total_cor... |
BinmingWen/base-code | day06-code/src/demo01/Person.java | <filename>day06-code/src/demo01/Person.java<gh_stars>1-10
package demo01;
public class Person {
private String name;
private int age;
public void setName(String name){
if(name.length()>6||name.length()<2){
System.out.println("你设置的人命不符合要求");
return;
}
else {
... |
neuroidss/core | insonmnia/worker/network/tuner.go | <filename>insonmnia/worker/network/tuner.go
package network
import (
"context"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
"github.com/sonm-io/core/insonmnia/structs"
)
type Cleanup interface {
Close() error
}
// Tuner is responsible for preparing networking and ... |
mxc-foundation/lora-app-server | api/extapi/report.pb.go | <gh_stars>1-10
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.13.0
// source: report.proto
package extapi
import (
context "context"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc ... |
Skycoder42/SeasonProxer | gui/widgets/logindialog.cpp | #include "logindialog.h"
#include "ui_logindialog.h"
#include <QtMvvmCore/Binding>
#include <dialogmaster.h>
LoginDialog::LoginDialog(QtMvvm::ViewModel *viewModel, QWidget *parent) :
QDialog(parent),
_viewModel(static_cast<LoginViewModel*>(viewModel)),
_ui(new Ui::LoginDialog)
{
_ui->setupUi(this);
DialogMaster::... |
josh-barker/terraform-provider-azuredevops | azuredevops/internal/acceptancetests/resource_environment_test.go | <gh_stars>1-10
//go:build (all || resource_environment) && !exclude_resource_environment
// +build all resource_environment
// +build !exclude_resource_environment
package acceptancetests
import (
"fmt"
"strconv"
"testing"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terr... |
PhilipsOnFhir/bulk-data-proxy | src/main/java/com/philips/research/philipsonfhir/fhirproxy/support/proxy/operation/GenericFhirResourceOperationCall.java | <reponame>PhilipsOnFhir/bulk-data-proxy<filename>src/main/java/com/philips/research/philipsonfhir/fhirproxy/support/proxy/operation/GenericFhirResourceOperationCall.java
package com.philips.research.philipsonfhir.fhirproxy.support.proxy.operation;
import com.philips.research.philipsonfhir.fhirproxy.support.proxy.servi... |
diyouclub/litemall | litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallExpressOrderExample.java | <filename>litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallExpressOrderExample.java
package org.linlinjava.litemall.db.domain;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class LitemallExpressOrderExample {
/**
* Th... |
lanl/DnMFkCPP | install_dependencies/xianyi-OpenBLAS-6d2da63/driver/level2/CMakeFiles/dtpmv_NUN.c | <reponame>lanl/DnMFkCPP<filename>install_dependencies/xianyi-OpenBLAS-6d2da63/driver/level2/CMakeFiles/dtpmv_NUN.c
#define ASMNAME dtpmv_NUN
#define ASMFNAME dtpmv_NUN_
#define NAME dtpmv_NUN_
#define CNAME dtpmv_NUN
#define CHAR_NAME "dtpmv_NUN_"
#define CHAR_CNAME "dtpmv_NUN"
#define DOUBLE
#include "/lustre/scratch3... |
sebokopter/KarteVonMorgenApp | core/src/main/java/de/heilsen/kartevonmorgen/core/validator/EmailValidator.java | package de.heilsen.kartevonmorgen.core.validator;
import java.util.regex.Pattern;
//TODO: implement own rfc 5322 compliant validator
public class EmailValidator {
private static final String WSP = "[\\t ]";
private static final String CRLF = "(\\r\\n)";
private static final String FWS = String.format("((... |
VHAINNOVATIONS/Telepathology | Source/Java/FederationDataSourceProvider/main/src/java/gov/va/med/imaging/federation/proxy/v5/FederationRestImageAnnotationProxyV5.java | <gh_stars>1-10
/**
*
Package: MAG - VistA Imaging
WARNING: Per VHA Directive 2004-038, this routine should not be modified.
Date Created: Jun 20, 2011
Site Name: Washington OI Field Office, Silver Spring, MD
Developer: VHAISWWERFEJ
Description:
;; +---------------------------------------------... |
barbalex/kapla4 | src/store/Links.js | import { types } from 'mobx-state-tree'
export default types.model('Links', {
idGeschaeft: types.maybeNull(types.integer),
url: types.maybeNull(types.string),
txt: types.maybeNull(types.string),
})
|
Osedea/times-components | packages/article-label/__tests__/android/jest.config.js | const jestConfigurator = require("@times-components/jest-configurator");
module.exports = Object.assign(jestConfigurator("article-label", "android"), {
collectCoverageFrom: [
"**/packages/article-label/article-label.js",
"**/packages/article-label/style/shared.js",
"**/packages/article-label/**/*.android... |
ZhenYongFan/libRaft | libRaftExt/network/RaftAdminClient.cpp | #include "stdafx.h"
#include "RaftAdminClient.h"
#include "RaftClientPool.h"
#include "protobuffer/rpc.pb.h"
using namespace raftserverpb;
CRaftClient::CRaftClient()
{
m_uSubSessionID = 0;
m_pClientPool = NULL;
}
CRaftClient::~CRaftClient()
{
}
bool CRaftClient::Init(CRaftClientPool *pClientPool)
{
bool ... |
jssuzanne/dregcli | dregcli/tests/tests_unit/test_repository.py | <reponame>jssuzanne/dregcli
import os
import sys
from unittest import mock
import pytest
sys.path.append(
os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)
)
from fixtures import (
fixture_registry_url,
fixture_repository,
fixture_repositories,
fixture_tags,
fixture_digest,
... |
zcoinofficial/omniexplorer | app/containers/AddressDetail/actions.js | /*
* App Actions
*
* Actions change things in your application
* Since this boilerplate uses a uni-directional data flow, specifically redux,
* we have these actions which are the only way your application interacts with
* your application state. This guarantees that your state is up to date and nobody
* messes ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.