repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
ichbinfrog/vulnerability-assessment-tool | rest-backend/src/main/java/com/sap/psr/vulas/backend/util/DigestVerifierEnumerator.java | package com.sap.psr.vulas.backend.util;
import java.util.HashSet;
import java.util.ServiceLoader;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sap.psr.vulas.backend.model.Library;
import com.sap.psr.vulas.shared.enums.DigestAlgorithm;
import com.sap.psr.vulas.shared.enums... |
theGreenJedi/neon | examples/cifar10.py | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright 2015-2016 Nervana Systems 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
#... |
VU-libtech/OLE-INST | ole-app/olefs/src/main/java/org/kuali/ole/fp/businessobject/CapitalAccountingLines.java | /*
* Copyright 2006 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by appl... |
guillempg/spring-boot-oracleXE | src/main/java/com/example/springjpaoracle/model/Teacher.java | package com.example.springjpaoracle.model;
import lombok.*;
import lombok.experimental.Accessors;
import javax.persistence.*;
import java.util.List;
@Entity
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = true)
@Getter
@Setter
@RequiredArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true... |
devlights/try-python | trypython/stdlib/weakref_/weakref02.py | <reponame>devlights/try-python<gh_stars>1-10
# coding: utf-8
"""
weakref モジュールについてのサンプルです。
弱参照がオブジェクトの __weakref__ に設定されることを確認するサンプルです。
"""
import weakref
from trypython.common.commoncls import SampleBase
from trypython.common.commonfunc import pr
# noinspection PyUnusedLocal,SpellCheckingInspection,PyUnresolvedRef... |
slife518/Giantbaby_sv | node_modules/sugar/dist/locales/pl.js | /*
* Polish locale definition.
* See the readme for customization and more information.
* To set this locale globally:
*
* Sugar.Date.setLocale('pl')
*
*/
Sugar.Date.addLocale('pl', {
'plural': true,
'units': 'milisekund:a|y|,sekund:a|y|,minut:a|y|,godzin:a|y|,dzień|dni|dni,tydzień|tygodnie|tygodni,miesiąc|m... |
Biolunar/linux_syscall | src/timer_gettime.c | <filename>src/timer_gettime.c
#include <liblinux/linux.h>
extern inline linux_error_t linux_timer_gettime(linux_timer_t timer_id, struct linux_itimerspec* setting);
|
FYPYTHON/WBMSBT | database/tbl_browsing_history.py | <gh_stars>1-10
# coding=utf-8
from sqlalchemy import Column, String, Integer , DateTime
from database import table_base
from database.db_config import ModelBase
# web访问历史记录
class TblBrowsingHistory(ModelBase, table_base.TableBase):
__tablename__ = 'tbl_browsing_history'
id = Column(Integer, unique=True, pr... |
jmaya371/Boot-usb | apps/usb_device_hid_bootloader/bootloader/firmware/src/config/sam_l22_xpro/usb/usb_device_hid.h | <filename>apps/usb_device_hid_bootloader/bootloader/firmware/src/config/sam_l22_xpro/usb/usb_device_hid.h<gh_stars>1-10
/*******************************************************************************
USB HID Function Driver
Company:
Microchip Technology Inc.
File Name:
usb_hid_function_driver.h
Summ... |
yildiz-online/module-graphic-ogre | src/main/java/jni/JniBillboardSet.java | <reponame>yildiz-online/module-graphic-ogre<gh_stars>0
/*
* This file is part of the Yildiz-Engine project, licenced under the MIT License (MIT)
*
* Copyright (c) 2019 <NAME>
*
* More infos available: https://engine.yildiz-games.be
*
* Permission is hereby granted, free of charge, to any person obtaining a co... |
jhonatasrm/chromium-android | app/src/main/java/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataTabsFragment.java | // Copyright 2017 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.
package org.chromium.chrome.browser.preferences.privacy;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Context;... |
antonmedv/year | packages/2032/11/09/index.js | module.exports = new Date(2032, 10, 9)
|
HeyLey/catboost | util/system/atomic_gcc.h | #pragma once
#define ATOMIC_COMPILER_BARRIER() __asm__ __volatile__("" \
: \
: \
: "memory")
static inline TAtomicBase AtomicGet(const TAtomic& a) {
... |
lanzhu259X/mywork | account/account-api/src/main/java/com/lanzhu/mywork/account/vo/user/request/RegisterArg.java | <reponame>lanzhu259X/mywork
package com.lanzhu.mywork.account.vo.user.request;
import com.lanzhu.mywork.account.common.enums.UserAuthType;
import com.lanzhu.mywork.master.commons.ToString;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.NotNull;
/**
* description:
*
* @author lanzh... |
bobdoah/garmin-connect | connect/sleep.go | <reponame>bobdoah/garmin-connect
package main
import (
"fmt"
"os"
connect "github.com/abrander/garmin-connect"
"github.com/spf13/cobra"
)
func init() {
sleepCmd := &cobra.Command{
Use: "sleep",
}
rootCmd.AddCommand(sleepCmd)
sleepSummaryCmd := &cobra.Command{
Use: "summary <date> [displayName]",
Sho... |
consorzio-rfx/mdsplus | javadevices/NI6368AISetup.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* NI6368AISetup.java
*
* Created on Dec 22, 2011, 9:59:13 AM
*/
/**
*
* @author manduchi
*/
public class NI6368AISetup extends DeviceSetup {
/** Creates new form NI6368AISetup */
pu... |
myGrid/methodbox | lib/tasks/fix_value_domains.rake | # Value domains pulled from ccsr metadata were recorded twice
require 'rubygems'
require 'rake'
require 'model_execution'
require 'active_record/fixtures'
namespace :obesity do
desc "fix value domains pulled from ccsr metadata"
task :fix_ccsr_value_domain => :environment do
Variable.all.each do |variable|
... |
Corpus-2021/sablecc | src/org/sablecc/objectmacro/codegeneration/scala/macro/MTextInsertPart.java | /* This file was generated by SableCC's ObjectMacro. */
package org.sablecc.objectmacro.codegeneration.scala.macro;
import java.util.*;
public class MTextInsertPart {
private final List<Object> eTextInsert = new LinkedList<>();
public MTextInsertPart() {
}
public MTextInsert newTextInsert(
... |
danielma/react-trello-multiboard | src/components/trello-card/card.js | <gh_stars>10-100
// https://codepen.io/natterstefan/pen/QxJZzW?editors=0110
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { get, map, includes } from 'lodash'
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
// clicks on the label should not open a ... |
foolite/panda | panda-nets/src/main/java/panda/net/DefaultDatagramSocketFactory.java | package panda.net;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
/***
* DefaultDatagramSocketFactory implements the DatagramSocketFactory interface by simply wrapping
* the java.net.DatagramSocket constructors. It is the default DatagramSocketFactory used by
* {@link... |
StephenTunAung/jTracker | src/main/java/info/jtrac/wicket/yui/YuiPanel.java | <reponame>StephenTunAung/jTracker<filename>src/main/java/info/jtrac/wicket/yui/YuiPanel.java
/*
* Copyright 2002-2005 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 th... |
jaylinhong/jdk14-learn | src/jdk14-source/jdk.internal.vm.compiler/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/nodes/MonitorCounterNode.java | /*
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.graalvm.compiler.hotspot.nodes;
import static org.graalvm.compiler.nodeinfo.NodeSize.SIZE_1;
i... |
jmapi/cdmi-core-monitor | src/main/java/pw/cdmi/om/protocol/smi/quantum/SoftwareIdentity.java | <filename>src/main/java/pw/cdmi/om/protocol/smi/quantum/SoftwareIdentity.java
package pw.cdmi.om.protocol.smi.quantum;
public class SoftwareIdentity {
}
|
aherbert/MFL | mfl-core/src/main/java/us/hebi/matlab/mat/types/AbstractSink.java | /*-
* #%L
* MAT File Library
* %%
* Copyright (C) 2018 HEBI Robotics
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... |
ThingIng-projects/ThingIng_M | ThingingCore/thinging-core/src/main/java/com/thinging/project/errors/JobNotExistsException.java | package com.thinging.project.errors;
import com.thinging.project.errors.utils.ErrorCode;
public class JobNotExistsException extends RecordConflictException {
public JobNotExistsException(String message) {
super(ErrorCode.JOB_NOT_EXISTS, message);
}
}
|
TanJay/stratos | extensions/load-balancer/modules/aws-extension/src/main/java/org/apache/stratos/aws/extension/AWSExtensionContext.java | <gh_stars>100-1000
/*
* 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
... |
tylerchen/springmvc-mybatis-v1.0-project | src/main/java/org/iff/infra/util/moduler/TCActionHelper.java | /*******************************************************************************
* Copyright (c) Aug 9, 2015 @author <a href="mailto:<EMAIL>"><NAME></a>.
* All rights reserved.
*
* Contributors:
* <a href="mailto:<EMAIL>"><NAME></a> - initial API and implementation
********************************************... |
zhanzju/bsl | groups/bsl/bslstl/bslstl_sstream.t.cpp | // bslstl_sstream.t.cpp -*-C++-*-
#include <bslstl_sstream.h>
#include <bsls_bsltestutil.h>
#include <stdio.h>
#include <stdlib.h>
//=============================================================================
// TEST PLAN
//----------------... |
kingces95/kingjs | .trash/@kingjs-reflect-define/define-field/construct.js | function createField(target, name, value) {
return { target, name, descriptor: { value } };
}
module.exports = createField;
|
ArboreusSystems/arboreus_examples | objective-c/DetectPermissions/DetectPermissions/DetectPermissions/ViewControllers/MainViewController.h | //
// MainViewController.h
// DetectPermissions
//
// Created by <NAME> on 21.05.2021.
//
#import <UIKit/UIKit.h>
#import "../Definitions/ColorDefinitions.h"
NS_ASSUME_NONNULL_BEGIN
@interface MainViewController : UIViewController
@end
NS_ASSUME_NONNULL_END
|
1446554749/jdk_11_src_read | jdk11/openj9.dtfj/com/ibm/j9ddr/vm29/tools/ddrinteractive/gccheck/ScanFormatter.java | <filename>jdk11/openj9.dtfj/com/ibm/j9ddr/vm29/tools/ddrinteractive/gccheck/ScanFormatter.java
/*******************************************************************************
* Copyright (c) 2001, 2014 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the ... |
dwijpr/islam | storage/app/Al-QuranIndonesia_com.andi.alquran.id_source_from_JADX/com/google/android/gms/internal/ka.java | <reponame>dwijpr/islam
package com.google.android.gms.internal;
import com.google.android.gms.ads.formats.NativeCustomTemplateAd.OnCustomTemplateAdLoadedListener;
import com.google.android.gms.internal.jv.C1700a;
@op
public class ka extends C1700a {
private final OnCustomTemplateAdLoadedListener f4589a;
publ... |
noeleont/renku-ui | client/src/project/datasets/ProjectDatasets.test.js |
/*!
* Copyright 2020 - Swiss Data Science Center (SDSC)
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
* Eidgenössische Technische Hochschule Zürich (ETHZ).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
bingoohuang/blackcat-server | src/main/java/com/github/bingoohuang/blackcat/server/job/HttpCheckerJob.java | <reponame>bingoohuang/blackcat-server<gh_stars>0
package com.github.bingoohuang.blackcat.server.job;
import com.github.bingoohuang.blackcat.server.base.BlackcatJob;
import com.github.bingoohuang.blackcat.server.base.MsgService;
import com.github.bingoohuang.blackcat.server.base.QuartzScheduler;
import com.github.bingo... |
njam/puppet-packages | modules/earlyoom/spec/spec.rb | require 'spec_helper'
describe 'earlyoom' do
describe command('earlyoom -h') do
its(:exit_status) { should eq 1 }
end
describe service('earlyoom') do
it { should be_running }
end
end
|
yeastrc/proxl-gen-import-xml-kojak | src/org/yeastrc/proxl/proxl_gen_import_xml_kojak/kojak_and_percolator/percolator/constants/PercolatorGenImportXML_AnnotationNames_Constants.java | package org.yeastrc.proxl.proxl_gen_import_xml_kojak.kojak_and_percolator.percolator.constants;
/**
* Update DefaultVisibleAnnotationsConstants as needed when change this class
*
*/
public class PercolatorGenImportXML_AnnotationNames_Constants {
// Update DefaultVisibleAnnotationsConstants as needed w... |
itonov/Java-Advanced | 01_IntroExercises/src/TriangleArea.java | import java.util.Scanner;
public class TriangleArea {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int x1 = scanner.nextInt();
int y1 = scanner.nextInt();
scanner.nextLine();
int x2 = scanner.nextInt();
int y2 = scanner.nextInt(... |
andrewsgoetz/Orekit | src/main/java/org/orekit/forces/radiation/KnockeRediffusedForceModel.java | <filename>src/main/java/org/orekit/forces/radiation/KnockeRediffusedForceModel.java
/* Copyright 2002-2021 CS GROUP
* Licensed to CS GROUP (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS license... |
mangarme/mads-todolist | app/models/Proyecto.java | package models;
import play.data.validation.Constraints;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
public class Proyecto {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer id;
@Constraints.Required
public String nombre;
public Str... |
williamweber2/apidoc | lib/parsers/api_example.js | <filename>lib/parsers/api_example.js
function parse(content, source)
{
// Trim
source = source.replace(/^\s+|\s+$/g, "");
var title = "";
var text = "";
var type;
// Search for [@apiexample title] and content
var parseRegExp = /^(@\w*)?\s?(?:(?:\{(.+?)\})\s*)?(.*)$/gm;
var matches;
while(matches = parseR... |
MiguelJG/TFG | jgrapht-1.3.0/source/jgrapht-core/src/main/java/org/jgrapht/alg/color/GreedyColoring.java | /*
* (C) Copyright 2017-2018, by <NAME> and Contributors.
*
* JGraphT : a free Java graph-theory library
*
* See the CONTRIBUTORS.md file distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms o... |
murdinc/awsm | models/bucket.go | package models
import "time"
// Bucket represents an S3 Bucket
type Bucket struct {
Name string `json:"name" awsmTable:"Name"`
CreationDate time.Time `json:"createDate" awsmTable:"Created"`
}
|
fieldenms/ | platform-web-ui/src/main/java/ua/com/fielden/platform/web/layout/api/impl/ContainerCellConfig.java | package ua.com.fielden.platform.web.layout.api.impl;
import java.util.ArrayList;
import ua.com.fielden.platform.dom.DomElement;
import ua.com.fielden.platform.web.layout.api.ILayoutCell;
public class ContainerCellConfig extends ContainerConfig implements ILayoutCell {
ContainerCellConfig() {
super(new A... |
pupper68k/arcusplatform | platform/arcus-lib/src/main/java/com/iris/core/protocol/ipcd/IpcdDeviceDao.java | <reponame>pupper68k/arcusplatform
/*
* Copyright 2019 Arcus Project
*
* 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 requir... |
Robert-Stackflow/HUST-Courses | 07_Java_Experiment/SearchEngineForStudent/src/hust/cs/javacourse/search/index/impl/Document.java | <gh_stars>1-10
/**
* @Author Ruida
* @date 2022/4/20
*/
package hust.cs.javacourse.search.index.impl;
import hust.cs.javacourse.search.index.AbstractDocument;
import hust.cs.javacourse.search.index.AbstractTermTuple;
import java.util.List;
/**
* <pre>
* Document是AbstractDocument的具体子类.
* 功能: 存储某个文档的文档编号... |
soma115/wikikracja | article/migrations/0012_auto_20210821_2050.py | # Generated by Django 3.1.12 on 2021-08-21 18:50
from django.db import migrations
import tinymce.models
class Migration(migrations.Migration):
dependencies = [
('article', '0011_auto_20210821_2049'),
]
operations = [
migrations.AlterField(
model_name='article',
n... |
cfuerst/aws-doc-sdk-examples | javav2/example_code/ssm/src/main/java/com/example/ssm/DescribeOpsItems.java | // snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
// snippet-sourcedescription:[DescribeOpsItems.java demonstrates how to describe an OpsItem for Amazon Simple Systems Management (Amazon SSM).]
//snippet-keyword:[AWS SDK for Java v2]
// snippet-keyword:[Amazon Simple Systems M... |
teeeeeegz/DuckDuckGo-Android | app/src/main/java/au/com/michaeltigas/duckduckdefine/injection/component/ApplicationComponent.java | package au.com.michaeltigas.duckduckdefine.injection.component;
import android.app.Application;
import android.content.Context;
import com.squareup.moshi.Moshi;
import com.squareup.picasso.Picasso;
import javax.inject.Singleton;
import au.com.michaeltigas.duckduckdefine.app.DuckDuckDefineApplication;
import au.com.... |
USEPA/Water-Security-Toolkit | tpl/acro/packages/utilib/src/libs/Ereal.cpp | /* _________________________________________________________________________
*
* UTILIB: A utility library for developing portable C++ codes.
* Copyright (c) 2008 Sandia Corporation.
* This software is distributed under the BSD License.
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
... |
iFindTA/PBJ2Objc | include/java/security/spec/RSAOtherPrimeInfo.h | <gh_stars>0
//
// Generated by the J2ObjC translator. DO NOT EDIT!
// source: android/libcore/luni/src/main/java/java/security/spec/RSAOtherPrimeInfo.java
//
#ifndef _JavaSecuritySpecRSAOtherPrimeInfo_H_
#define _JavaSecuritySpecRSAOtherPrimeInfo_H_
#include "J2ObjC_header.h"
@class JavaMathBigInteger;
@interfac... |
dbcls/togodb | app/helpers/application_helper.rb | module ApplicationHelper
def nl2br(str)
str.gsub(/\r\n|\r|\n/, '<br />')
end
def format_float(value, column)
if value.nil?
value = ''
else
if column.num_decimal_places.blank?
value_s = value.to_s
if value == 0
value = value_s
elsif value_s.downcase.inclu... |
elcorto/pwtools | setup.py | <filename>setup.py<gh_stars>10-100
"""
Notes on building extensions
----------------------------
Since we build extensions using f2py, we need numpy during the build phase.
We use
setup(setup_requires=['numpy'],...)
which, if no numpy install is found, downloads smth like
.eggs/numpy-1.17.2-py3.7-linux-x86... |
triffon/oop-2019-20 | labs/6/Practice_15 - Iterator and STL/Factory Method & Proxy pattern/Proxy.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <Windows.h>
#include "IBook.hpp"
#include "IBookFileFactory.hpp"
#include "BookFileFactory.hpp"
#include "Library.h"
#include "BookProxyFileFactory.hpp"
void testLibraryWithBook();
void testLibraryWithBookProxy();
int main()
{
testLi... |
ostdotcom/ost-wallet-sdk-android | ostsdk/src/test/java/com/ost/walletsdk/utils/GnosisSafeTest.java | /*
* Copyright 2019 OST.com 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
*/
package com.ost.walletsdk.utils;
import... |
movermeyer/madrona | madrona/installer/files/_project/_app/models.py | from django.contrib.gis.db import models
from madrona.features.models import PolygonFeature, PointFeature, LineFeature, FeatureCollection
from madrona.features import register
|
vitobasso/scala-torrent | src/main/scala/com/dominikgruber/scalatorrent/tracker/udp/UdpTracker.scala | package com.dominikgruber.scalatorrent.tracker.udp
import java.net.InetSocketAddress
import java.nio.charset.StandardCharsets.ISO_8859_1
import akka.actor.{Actor, ActorLogging, ActorRef, Props}
import akka.io.{IO, UdpConnected}
import akka.util.ByteString
import com.dominikgruber.scalatorrent.PeerFinder.TrackerConfig... |
cardforcoin/raas-v2-sdk-python | setup.py | from setuptools import setup, find_packages
# Try to convert markdown README to rst format for PyPI.
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name='tangocard-raasv2',
ver... |
lel352/Curso-Python | aulaspythonbasico/aula16/aula16.py | # Índices e fatiamento de strings em Python
'''
Manipulando String
* String Indices
* Fatiamento de String [Inicio:Fim:Passo]
* Funções built-in len, abs, type, print, etc...
'''
# [012345678] Positivos
texto = 'Python S2'
# -[987654321] Negativos
print(texto[2])
print(texto[-7])
print(texto[-1]) # pega o... |
themoffster/openlayers | examples/navigation-controls.js | import Map from '../src/ol/Map.js';
import OSM from '../src/ol/source/OSM.js';
import TileLayer from '../src/ol/layer/Tile.js';
import View from '../src/ol/View.js';
import {ZoomToExtent, defaults as defaultControls} from '../src/ol/control.js';
const map = new Map({
controls: defaultControls().extend([
new Zoom... |
yvanlebras/galaxy | lib/galaxy/model/migrate/versions/0097_add_ctx_rev_column.py | <reponame>yvanlebras/galaxy<filename>lib/galaxy/model/migrate/versions/0097_add_ctx_rev_column.py
"""
Migration script to add the ctx_rev column to the tool_shed_repository table.
"""
import logging
from sqlalchemy import (
Column,
MetaData,
)
from galaxy.model.custom_types import TrimmedString
from galaxy.m... |
879479119/gitto-android | app/src/main/java/com/stormphoenix/ogit/mvp/view/base/ProgressView.java | <filename>app/src/main/java/com/stormphoenix/ogit/mvp/view/base/ProgressView.java<gh_stars>0
package com.stormphoenix.ogit.mvp.view.base;
import com.stormphoenix.ogit.mvp.contract.BaseContract;
/**
* Created by wanlei on 18-3-10.
*/
public interface ProgressView extends BaseContract.View {
void showProgress();... |
maandree/liberror-gpgme | data_new_from_estream.c | <gh_stars>1-10
/* See LICENSE file for copyright and license details. */
#include "internal.h"
gpgme_error_t
liberror_gpgme_data_new_from_estream(gpgme_data_t *r_dh, gpgrt_stream_t stream)
{
gpgme_error_t ret = gpgme_data_new_from_estream(r_dh, stream);
if (ret)
liberror_gpgme_set_error("gpgme_data_new_from_estre... |
hussam-aldarwish/kodluyoruz-k127-js-react-bootcamp | homeworks/chat-app/src/components/Input/input.js | <reponame>hussam-aldarwish/kodluyoruz-k127-js-react-bootcamp
import React, { forwardRef } from "react";
import PropTypes from "prop-types";
import "./input.css";
const Input = forwardRef(({ error, text, value, ...props }, ref) => {
return (
<div className="input-container">
<input ref={ref} className={`inp... |
diegolovison/radargun-plugin | src/main/java/org/jenkinsci/plugins/radargun/model/Option.java | package org.jenkinsci.plugins.radargun.model;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;
/**
* Represents a switch in RG shell scripts. Used in classes which describe these script, e.g. {@link MasterScriptConfig}
* or {@lin... |
Bots-United/whichbot | bot/src/cpp/strategy/BuilderStrategy.cpp | //
// $Id: BuilderStrategy.cpp,v 1.63 2005/02/28 05:20:14 clamatius Exp $
// Copyright (c) 2003, WhichBot Project
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistribution... |
UbuntuEvangelist/OG-Platform | projects/OG-Analytics/src/test/java/com/opengamma/analytics/financial/interestrate/capletstripping/FlatSurfaceFitTest.java | <filename>projects/OG-Analytics/src/test/java/com/opengamma/analytics/financial/interestrate/capletstripping/FlatSurfaceFitTest.java<gh_stars>10-100
/**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.... |
miko3k/hardcode | hardcode-guava/src/test/java/org/deletethis/hardcode/guava/SplitTest.java | <gh_stars>0
package org.deletethis.hardcode.guava;
import com.google.common.collect.*;
import org.deletethis.hardcode.Hardcode;
import org.deletethis.hardcode.testing.HardcodeTesting;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestName;
public class SplitTest {
@... |
Wesley1808/ServerCore | src/main/java/me/wesley1808/servercore/mixin/features/misc/ChunkMapMixin.java | <filename>src/main/java/me/wesley1808/servercore/mixin/features/misc/ChunkMapMixin.java
package me.wesley1808.servercore.mixin.features.misc;
import it.unimi.dsi.fastutil.objects.ObjectIterator;
import me.wesley1808.servercore.common.config.tables.FeatureConfig;
import me.wesley1808.servercore.common.utils.DynamicMana... |
loupipalien/java | src/main/java/com/ltchen/java/util/RandomList.java | <reponame>loupipalien/java
package com.ltchen.java.util;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* @file : RandomList.java
* @date : 2017年7月18日
* @author : ltchen
* @email : <EMAIL>
* @desc : 简单泛型练习
* @param <T>
*/
public class RandomList<T> {
private List<T> list = ne... |
caponetto/kogito-editors-java | kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-commons/kie-wb-common-stunner-client-common/src/main/java/org/kie/workbench/common/stunner/core/client/command/RequestCommands.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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
jokimina/aliyunpy | tests/test_client_cs.py | <reponame>jokimina/aliyunpy
import json
import httpretty
from .base import BaseAliyunTestCase
from .config import auto_load_fixture, suppress_warnings
class AliyunClientCsTestCase(BaseAliyunTestCase):
@suppress_warnings
@httpretty.activate
@auto_load_fixture
def test_list_cluster(self):
self.... |
gunpowder78/google-research | nopad_inception_v3_fcn/eval_inception_v3_fcn.py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... |
whatmk/new | api/beginBalance.js | <reponame>whatmk/new<filename>api/beginBalance.js
/**
* 会计期初余额api接口
*/
/**
* 查询期初余额
* @param currentYear 查询年度
* @param accountTypeId 科目类型id(可选)
* @param isQuantityCalc 是否数量核算(可选)
* @param isMultiCalc 是否外币核算(可选)
* @returns {*}
*/
export function init(post, accountTypeId, currentYear, isQuantityCalc, isMultiCalc... |
AtteKoivukangas/sanajahti-ratkaisin | src/App/SolutionList/SolutionList.js | import { useContext } from 'react';
import { groupSolutions } from './utils/solutionHelper';
import { storeContext } from 'shared/store';
import './SolutionList.css';
const SolutionList = () => {
const { state } = useContext(storeContext);
return (
<div>
{groupSolutions(state.solutions).map(({... |
ghuntley/COVIDSafe_1.0.11.apk | src/sources/io/reactivex/MaybeTransformer.java | package io.reactivex;
public interface MaybeTransformer<Upstream, Downstream> {
MaybeSource<Downstream> apply(Maybe<Upstream> maybe);
}
|
bvfalcon/apache-camel | components/camel-digitalocean/src/test/java/org/apache/camel/component/digitalocean/DigitalOceanComponentTest.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 ... |
mousepawmedia/libdeps | cpgf/src/metadata/irrlicht/meta_irrlicht_IMaterialRendererServices.cpp | <filename>cpgf/src/metadata/irrlicht/meta_irrlicht_IMaterialRendererServices.cpp
// Auto generated file, don't modify.
#include "irrlicht.h"
#include "IMaterialRendererServices.h"
#include "cpgf/metadata/irrlicht/meta_irrlicht_IMaterialRendererServices.h"
using namespace cpgf;
namespace meta_irrlicht {
GDefineMe... |
mikehelmick/CascadeLMS | vendor/plugins/oauth-plugin/lib/generators/oauth_consumer/templates/controller.rb | require 'oauth/controllers/consumer_controller'
class OauthConsumersController < ApplicationController
include Oauth::Controllers::ConsumerController
# Replace this with the equivalent for your authentication framework
# Eg. for devise
#
# before_filter :authenticate_user!, :only=>:index
before_filter :en... |
purepanic/AutoRuneLite | src/org/osrs/api/wrappers/GameShell.java | package org.osrs.api.wrappers;
public interface GameShell{
public java.awt.Canvas canvas();
public MouseWheelListener mouseWheelListener();
} |
PyXRD/pyxrd | pyxrd/probabilities/controllers.py | # coding=UTF-8
# ex:ts=4:sw=4:et=on
# Copyright (c) 2013, <NAME>
# All rights reserved.
# Complete license can be found in the LICENSE file.
from mvc import Controller
from pyxrd.generic.controllers import BaseController
from pyxrd.probabilities.views import get_correct_probability_views
from pyxrd.probabilities.mo... |
King0987654/windows2000 | private/shell/ext/ftp/encoding.cpp | /*****************************************************************************\
FILE: encoding.cpp
DESCRIPTION:
Handle taking internet strings by detecting if they are UTF-8 encoded
or DBCS and finding out what code page was used.
\*********************************************************... |
thunderbird/pungwecms | core/src/main/java/com/pungwe/cms/core/form/element/FieldsetElement.java | package com.pungwe.cms.core.form.element;
import com.pungwe.cms.core.annotations.ui.ThemeInfo;
import com.pungwe.cms.core.element.AbstractContentElement;
import com.pungwe.cms.core.element.AbstractRenderedElement;
import com.pungwe.cms.core.element.RenderedElement;
import com.pungwe.cms.core.element.basic.PlainTextEle... |
huangboju/Alpha | Alpha/Model/Conversion/ALPHADataConverterSource.h | <filename>Alpha/Model/Conversion/ALPHADataConverterSource.h
//
// ALPHADataConverterSource.h
// Alpha
//
// Created by <NAME> on 02/06/15.
// Copyright © 2015 Unified Sense. All rights reserved.
//
#import "ALPHAModel.h"
#import "ALPHAScreenModel.h"
/*!
* Data Converter source takes Alpha model and converts it ... |
martinfengshenxiang/atom_game | src/Asset/Component/Header/Store/Action/preview.js | import React from 'react';
import { Button } from 'antd';
const Preview = () => (
<div style={{ width: '30%', height: '100%' }}>
<div style={{ width: '100%', height: '90%' }}>
</div>
<div style={{ width: '100%', height: '10%', display: 'flex', justifyContent: 'center', alignItems: 'center'... |
gregory-vovchok/YEngine | Editor/BoolSpinBox/BoolSpinBox.cpp | <reponame>gregory-vovchok/YEngine
#include "BoolSpinBox.h"
BoolSpinBox::BoolSpinBox(void)
{}
BoolSpinBox::BoolSpinBox(QWidget *_parent): QSpinBox(_parent)
{
setRange(0, 1);
}
QString BoolSpinBox::textFromValue(int _value)const
{
if(_value) { return "true"; } else { return "false"; }
}
|
steroin/DocManager | src/main/java/pl/docmanager/domain/user/UserSettings.java | <reponame>steroin/DocManager<filename>src/main/java/pl/docmanager/domain/user/UserSettings.java
package pl.docmanager.domain.user;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java... |
jsfit/frontend-loket | app/components/mandatenbeheer/persoon-search-result.js | import Component from '@ember/component';
export default Component.extend({
showDetails: false,
actions: {
select(){
this.onSelect(this.persoon);
},
toggleDetails(){
this.set('showDetails', !this.showDetails);
}
}
});
|
topiolli/into | core/PiiException.h | /* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... |
cssl-unist/tweezer | Docker/gperftools/benchmark/binary_trees.cc | <reponame>cssl-unist/tweezer
// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*-
//
// Copied from
// http://benchmarksgame.alioth.debian.org/u64q/program.php?test=binarytrees&lang=gpp&id=2
// and slightly modified (particularly by adding multi-threaded
// operation to hit malloc harder).
//
// This version ... |
jokofa/JAMPR_plus | lib/model/baselines/pg_baselines.py | <gh_stars>0
#
import copy
import logging
from typing import Dict, Optional, OrderedDict, List, Union
from torch import Tensor
from scipy.stats import ttest_rel
import torch
import torch.nn.functional as F
from lib.model.baselines.base_class import Baseline, BaselineDataset
from lib.routing import RPInstance, RPDatase... |
difi/minid-notification-server | src/main/java/no/digdir/minidnotificationserver/api/internal/authorization/RequestAuthorizationEntity.java | <reponame>difi/minid-notification-server
package no.digdir.minidnotificationserver.api.internal.authorization;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoA... |
palmurugan/ptracker | report-builder/src/main/java/com/hts/report/service/impl/ConnectionManager.java | package com.hts.report.service.impl;
import javax.sql.DataSource;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
import com.hts.report.domain.Resource;
/**
*
* @author PalMurugan
*
*/
public abstract class ConnectionManager {
private ... |
andela/andela-societies-backend | src/api/endpoints/cohorts/marshmallow_schemas.py | from marshmallow import fields, validate
from api.utils.marshmallow_schemas import BaseSchema
class CohortSchema(BaseSchema):
"""Validation Schema for Cohort."""
center_id = fields.String(dump_only=True, dump_to='centerId',
validate=[validate.Length(max=36)])
society_id = f... |
ghiloufibelgacem/jornaldev | CoreJavaProjects/CoreJavaExamples/src/com/journaldev/string/IntToString.java | package com.journaldev.string;
public class IntToString {
/**
* This class shows how to convert int to String
* @param args
*/
public static void main(String[] args) {
int i = 10;
int j = 0xEF;
int k = 0123;
int l = 0b111;
String str = "" +i;
String str1 = String.valueOf(j);
String str2 = String... |
rtluu/personalsite | src/cases/Fastrope/fastrope.js | import React, { useState } from "react";
import { Link } from "gatsby";
import HeroFastrope from "./images/HeroFastrope";
import FastropeContact from "./images/FastropeContact";
import FastropePortfolio from "./images/FastropePortfolio";
import FastropeServices from "./images/FastropeServices";
import FastropeTeam from... |
developedbyme/dbm | javascripts/dbm/classes/dbm/constants/fileformats/midi/MidiChannelEventTypes.js | <reponame>developedbyme/dbm
/* Copyright (C) 2011-2014 <NAME>. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */
dbm.registerClass("dbm.constants.fileformats.midi.MidiChannelEventTypes", null, function(objectFunctions, staticFunctions, ClassReference) {
//conso... |
hephzaron/Hello-Books | server/migrations/20170904030813-create-borrowed.js | <gh_stars>0
'use strict';
module.exports = {
up: function(queryInterface, Sequelize) {
return queryInterface.createTable('Borroweds', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
... |
freedesktop/mesa-crucible | src/util/cru_image.c | // Copyright 2015 Intel Corporation
//
// 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, merge, publish,... |
athenagroup/brxm | channel-manager/content-service/src/test/java/org/onehippo/cms/channelmanager/content/documenttype/util/NamespaceUtilsTest.java | <gh_stars>0
/*
* Copyright 2016-2019 <NAME>.V. (http://www.onehippo.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-2.0
*
* Unless re... |
huhong789/shortcut | linux-lts-quantal-3.5.0/drivers/usb/host/ohci-sh.c | <reponame>huhong789/shortcut<filename>linux-lts-quantal-3.5.0/drivers/usb/host/ohci-sh.c
/*
* OHCI HCD (Host Controller Driver) for USB.
*
* Copyright (C) 2008 Renesas Solutions Corp.
*
* Author : <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.