repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
getsandbox/worker | libs/test-utils/src/main/java/com/sandbox/worker/test/TestFileUtils.java | <reponame>getsandbox/worker
package com.sandbox.worker.test;
import java.io.File;
import java.nio.file.Paths;
import java.security.CodeSource;
public class TestFileUtils {
public static File getFile(Class target, String filePath) {
CodeSource codeSource = target.getProtectionDomain().getCodeSource();
... |
forestcoinspace/wavesplatform-WavesWallet-android | app/src/main/java/com/wavesplatform/wallet/payload/TransactionsInfo.java | <gh_stars>1-10
package com.wavesplatform.wallet.payload;
/**
* Created by anonymous on 11.07.17.
*/
public class TransactionsInfo {
public int type;
public String id;
public String sender;
public String senderPublicKey;
public Long fee;
public String timestamp;
public String signature;
... |
tporcham/MVEL | src/main/java/org/mvel/conversion/BooleanCH.java | package org.mvel.conversion;
import org.mvel.ConversionException;
import org.mvel.ConversionHandler;
import static java.lang.String.valueOf;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
public class BooleanCH implements ConversionHandler {
private static final Map<Class, Converter... |
SURGroup/UncertaintyQuantification | src/UQpy/sampling/stratified_sampling/baseclass/StratifiedSampling.py | from abc import ABC
class StratifiedSampling(ABC):
pass
|
mdiazmel/keops | keops/core/formulas/maths/Concat.h | #pragma once
#include <sstream>
#include "core/autodiff/BinaryOp.h"
#include "core/formulas/maths/Extract.h"
#include "core/formulas/maths/Add.h"
#include "core/pre_headers.h"
namespace keops {
//////////////////////////////////////////////////////////////
//// VECTOR CONCATENATION : Concat<F,G> /... |
keinfarbton/Chabu | java/org.chabu.test/src/org/chabu/nwtest/server/ControlConnection.java | <gh_stars>1-10
package org.chabu.nwtest.server;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import org.chabu.prot.v1.Chabu;
impor... |
dudejagaurav/bitsat | src/main/java/roundzero/day58/CuttingRod.java | <gh_stars>0
package roundzero.day58;
import roundzero.template.FastInputReader;
import roundzero.template.MiscUtils;
/**
* Created by Gaurav on 27/02/18.
*/
public class CuttingRod {
public static void main(String[] args) {
FastInputReader fastInputReader = new FastInputReader();
int T = f... |
moneyadviceservice/frontend | features/support/ui/pages/corporate_categories.rb | <reponame>moneyadviceservice/frontend
require_relative '../page'
module UI::Pages
class CorporateCategories < UI::Page
set_url '{/locale}/corporate_categories{/id}'
end
end
|
mpsitech/wdbe-WhizniumDBE | dbswdbe/WdbeQUntHk1NModule.h | <reponame>mpsitech/wdbe-WhizniumDBE
/**
* \file WdbeQUntHk1NModule.h
* Dbs and XML wrapper for table TblWdbeQUntHk1NModule (declarations)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
#ifndef WDBEQUNTHK1NMODULE_H
#defin... |
Leringit/exercicios-de-estudo-paketa-parte-2 | Exercicios Grupo/exe01/projeto clonado/class2/ny/group1/js/quotes.js | <gh_stars>0
import { quotes } from "../mockup/mock-quotes.js"
import { editors } from "../mockup/mock-quotes.js"
const factoryQuotes = (quotes, container) => {
let double_opinions = quotes.filter((v, i, a) => {
if (v.type === "double_opinion") {
return v
}
})
double_opinions = ... |
waikato-ufdl/ufdl-annotations-plugin | setup.py | <filename>setup.py
from setuptools import setup, find_namespace_packages
def _read(filename: str) -> str:
"""
Reads in the content of the file.
:param filename: The file to read.
:return: The file content.
"""
with open(filename, "r") as file:
return file.read()
setup(... |
benroywillis/OpenXaml | xut/internal/ColumnDefinitionCollectionElement.cpp | <gh_stars>1-10
#include "internal/ColumnDefinitionCollectionElement.h"
using namespace std;
using namespace xercesc;
namespace xut::elements
{
ColumnDefinitionCollectionElement::ColumnDefinitionCollectionElement(xercesc::DOMElement *element, bool root) : XamlElement(element, root, ElementType::ColumnDefiniti... |
odedre/material-ui | dist/src/SelectField/SelectField.spec.js | 'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
webosose/wam | src/tests/mocks/web_app_manager_config_mock.cc | <filename>src/tests/mocks/web_app_manager_config_mock.cc
// Copyright (c) 2021 LG Electronics, 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/LI... |
gy741/tcpreplay | src/common/utils.h | /* $Id$ */
/*
* Copyright (c) 2001-2010 <NAME> <aturner at synfin dot net>
* Copyright (c) 2013-2017 <NAME> <tcpreplay at appneta dot com> - AppNeta
*
* The Tcpreplay Suite of tools is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
* pub... |
EdurasGame/eduras | Eduras/src/de/illonis/eduras/mapeditor/validate/SpawnValidation.java | package de.illonis.eduras.mapeditor.validate;
import de.illonis.eduras.maps.SpawnPosition;
/**
* Validates spawn areas.
*
* @author illonis
*
*/
public class SpawnValidation extends ValidateTask {
protected SpawnValidation() {
super("Spawn points");
}
@Override
protected boolean perfor... |
0xDECEA5ED/cs309 | Frontend/CatchTheCacheAndroid/app/src/main/java/edu/iastate/cs309/jr2/catchthecacheandroid/UserChecker.java | package edu.iastate.cs309.jr2.catchthecacheandroid;
/**
* A class that holds the username and password validation methods.
* @author <NAME>
*/
public class UserChecker {
/**
* Checks if the specified username meets the username expectations
* @param username username to check
* @return true if... |
oliver-hughes/quickperf | core/src/main/java/org/quickperf/repository/BooleanMeasureRepository.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... |
zoho/Apptics | AppticsDemo/Pods/Apptics-SDK/Apptics.xcframework/watchos-arm64_i386_x86_64-simulator/Apptics.framework/Headers/ZAAESCrypto.h | //
// ZAAESCrypto.h
// ZAnalytics
//
// Copyright © 2018 zoho. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface ZAAESCrypto : NSObject
@property (nonatomic, readonly, nonnull) NSString *password;
@property (nonatomic, readonly, nonnull) NSData *salt;
@property (nonatomic... |
joelsegoviacrespo/control_aforo_migrado | espacios/apps.py | from django.apps import AppConfig
class EspaciosConfig(AppConfig):
name = 'espacios'
|
joshluisaac/powerapps-serviceengine | src/main/java/com/profitera/services/system/license/LicenseInterceptor.java | <reponame>joshluisaac/powerapps-serviceengine
package com.profitera.services.system.license;
import java.io.IOException;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
import com.profitera.server.LicenseException;
import com.profitera.server.ServiceEngine;
i... |
hyu-iot/gem5 | tests/gem5/insttest_se/test.py | # Copyright (c) 2020 The Regents of the University of California
# 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 lis... |
savvycodes/openstad-api | src/lib/nunjucks-date-filter.js | var moment = require('moment-timezone');
var nlib = require('nunjucks/src/lib');
var slice = Array.prototype.slice;
// Is set via `setDefaultFormat`.
var defaultFormat = null;
// Examples:
// {{ var | date }}
// {{ var | date('YYYY-MM-DD') }}
function dateFilter( date, format ) {
try {
if( !date ) {
throw Er... |
AllaMaevskaya/AliRoot | PHOS/PHOSbase/AliPHOSSurvey1.cxx | <filename>PHOS/PHOSbase/AliPHOSSurvey1.cxx
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. ... |
City-of-Helsinki/berth-reservations | resources/migrations/0004_add_depth_to_berth_type.py | <reponame>City-of-Helsinki/berth-reservations
# Generated by Django 2.2.6 on 2020-02-18 11:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("resources", "0003_replace_abstractplacetype_units"),
]
operations = [
migrations.AlterModelOpt... |
kenferrara/mk-ui | src/js/core/iterators.js |
Mk.fn.each = function (context, obj, callback) {
var i = 0, count, result;
if (Mk.type(obj, 'arraylike')) {
count = obj.length;
for (; i < count; i++) {
result = callback.call(context, obj[i], i, obj);
if (result === false) {
break;
}
... |
helloShen/thinkinginjava | chapter13/Exercise9.java | <gh_stars>1-10
/**
* Exercise 9
*/
package com.ciaoshen.thinkinjava.chapter13;
import java.util.*;
public class Exercise9{
private static final String knight =
"Then, when you have found the shrubbery, you must cut " +
"down the mightiest tree in the forest... " +
"with... a herring!";
... |
nalabjp/pesca | test/test_helper.rb | <gh_stars>0
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/rails'
require 'minitest/reporters'
require 'factory_girl'
require 'support/database_rewinder'
require 'fixtures/pesca_stub/configuration'
Minitest::Reporters.use!
class M... |
androidroadies/AndroidUtils | app/src/main/java/com/common/activity/ToastActivity.java | <reponame>androidroadies/AndroidUtils<filename>app/src/main/java/com/common/activity/ToastActivity.java
package com.common.activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
import com.common.utilcode.util.ToastUti... |
rj1804/brain_surgery | src/usbd.h | <filename>src/usbd.h
#ifndef _USBD_H_
#define _USBD_H_
int usbd_init(void);
void usbd_deinit(void);
int usbd_connected(void);
void usbd_connect(void);
void usbd_disconnect(void);
void usbd_eject(void);
#endif
|
EarthSchlange/gocongress | app/controllers/contents_controller.rb | class ContentsController < ApplicationController
include YearlyController
# Callbacks, in order
load_resource
add_filter_to_set_resource_year
authorize_resource
add_filter_restricting_resources_to_year_in_route
# Actions
def index
@contents = @contents.yr(@year)
end
def new
@selected_cate... |
H4rliquinn/Algorithm-Solutions | CodeSignal/LinkedLists/MergeTwolinkedLists.py | <reponame>H4rliquinn/Algorithm-Solutions
'''
Note: Your solution should have O(l1.length + l2.length) time complexity, since this is what you will be asked to accomplish in an interview.
Given two singly linked lists sorted in non-decreasing order, your task is to merge them. In other words, return a singly linked list... |
silberRus/karetskiy | chapter_001/src/test/java/ru/job4j/professions/TriangleTest.java | <reponame>silberRus/karetskiy
package ru.job4j.professions;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.number.IsCloseTo.closeTo;
/**
* Test.
*
* @author Karetskiy
* @version 2
* @since 30.12.2016
*/
public class TriangleTest {
... |
cincospenguinos/brainstem | lib/brainstem/api_docs/formatters/open_api_specification/version_2/field_definitions/presenter_field_formatter.rb | require 'brainstem/api_docs'
require 'brainstem/api_docs/formatters/abstract_formatter'
require 'brainstem/api_docs/formatters/open_api_specification/helper'
module Brainstem
module ApiDocs
module Formatters
module OpenApiSpecification
module Version2
module FieldDefinitions
c... |
menqgingyu/JunOS-V0.5 | include/setjmp.h | /*
* setjmp.h
*
* This file is part of JunOS C Library.
*
* Copyright (C) 2016, <NAME> <<EMAIL>>
* Licensed under MIT, http://opensource.org/licenses/MIT.
*/
#ifndef _SETJMP_H
#define _SETJMP_H
typedef long jmp_buf[6];
extern int setjmp(jmp_buf buf);
extern void longjmp(jmp_buf buf, int v... |
bowlofstew/comdb2 | bb/queuetest.c | <gh_stars>1-10
/*
Copyright 2015 <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... |
doubleChu/Ease-music-app | src/services/config.js |
const devBaseURL = "http://localhost:4000";
const proBaseURL = "";
export const BASE_URL =
process.env.NODE_ENV === 'development' ? devBaseURL : proBaseURL
export const TIMEOUT = 5000 |
aligungr/ue-ran-sim | src/gnb/sctp/task.hpp | //
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 <NAME>.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#pragma once
#include <memory>
#include <thread>
#include <unordered_map>
#include <vec... |
niefermar/spring-batch-experiments | chapter07/src/main/java/kr/spring/batch/chapter07/jpa/PartnerMappingRepository.java | <gh_stars>10-100
package kr.spring.batch.chapter07.jpa;
import kr.spring.batch.chapter07.PartnerMapping;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
/**
* kr.spring.batch.chapter07.jpa.Part... |
VadimBolokhov/vbolokhov | chapter_009/src/main/java/ru/job4j/items/models/ItemService.java | package ru.job4j.items.models;
import java.util.List;
/**
* Items validation service
* @author <NAME>
*/
public enum ItemService implements Service {
INSTANCE;
/** The storage */
private final Persistence store = DBStore.getInstance();
public static Service getInstance() {
return INSTANCE... |
Mdanish777/Programmers-Community | Basic/Check if A Number is Prime or Not/SolutionByRiya.java | import java.util.Scanner;
class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter a number : ");
int n = sc.nextInt();
if (n < 2) {
System.out.println("Number should be greater or equal to 2");
} else... |
JiaHaoWen/CQRS | demo/src/main/java/cqrs/demo/readmodel/ItemPopularity.java | package cqrs.demo.readmodel;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import cqrs.demo.domain.events.NewOrderItemAddedEvent;
import cqrs.demo.domain.events.OrderItemAmountIncreasedEvent;
import cqrs.domain.events.ConsumeEvents;
import org.apache.commons.lang3.StringUtils;
public final cla... |
stevenjmesser/pay-selfservice | test/fixtures/browser/forgotten-password.fixtures.js | <filename>test/fixtures/browser/forgotten-password.fixtures.js<gh_stars>10-100
'use strict'
var sinon = require('sinon')
module.exports = {
validForgottenPasswordPost: (username) => {
return {
body: {
username: username || '<EMAIL>'
},
flash: sinon.spy(),
session: {
destr... |
ghozlaneibrahim/qurann | app/src/main/java/com/example/myquran/MyQuranApp.java | package com.example.myquran;
import android.app.Application;
import android.widget.TextView;
public class MyQuranApp extends Application {
private TextView surahText;
public TextView getSurahText() {
return surahText;
}
public void setSurahText(TextView value) {
this.surahText = valu... |
txsoura/empatia-backend | src/main/java/br/com/empatia/app/database/seeds/UserSeeder.java | package br.com.empatia.app.database.seeds;
import br.com.empatia.app.enums.UserRole;
import br.com.empatia.app.models.User;
import br.com.empatia.app.repositories.UserRepository;
import com.github.javafaker.Faker;
import lombok.AllArgsConstructor;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder... |
briancsparks/serverassist | ra-scripts/ids.js |
/**
*
*/
var sg = require('sgsg');
var _ = sg._;
var lib = {};
lib.getIds = function(argv, context, callback_) {
const callback = callback_ || function() {};
const body = argv.body || {};
const query = argv.query || {};
const match = argv.matc... |
LandRegistry/maintain-frontend | maintain_frontend/llc1/validation/search_extent_validator.py | from maintain_frontend.services.validation.field_validator import FieldValidator
from maintain_frontend.services.validation.validation_error_builder import ValidationErrorBuilder
class SearchExtentValidator(object):
@staticmethod
def validate(geo_json):
"""Specifies which validation methods should be ... |
billwert/azure-sdk-for-java | sdk/spring/spring-cloud-azure-core/src/test/java/com/azure/spring/cloud/core/implementation/connectionstring/ConnectionStringTests.java | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.cloud.core.implementation.connectionstring;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import static com.azure.spring.cloud.core.implementation.connectionstring.Co... |
dongzl/go-book-code | golangbot/17.method/example05/main.go | package main
import "fmt"
type Employee struct {
name string
age int
}
/*
使用值接收器的方法。
*/
func (e Employee) changeName(newName string) {
e.name = newName
}
/*
使用指针接收器的方法。
*/
func (e *Employee) changeAge(newAge int) {
e.age = newAge
}
func main() {
e := Employee{
name: "<NAME>",
age: 50,
}
fmt.Printf("Em... |
terifan/Raccoon | src/org/terifan/raccoon/io/managed/RangeMap.java | <filename>src/org/terifan/raccoon/io/managed/RangeMap.java
package org.terifan.raccoon.io.managed;
import java.util.Map.Entry;
import java.util.TreeMap;
import org.terifan.raccoon.util.ByteArrayBuffer;
class RangeMap implements Cloneable
{
private TreeMap<Integer,Integer> mMap;
private int mSpace;
public RangeM... |
qhd1996/Data-Structures-and-Algorithms | Linear Table/Remove Duplicates from Sorted List.cpp | /*************************************************
License: Apache 2.0
Author: 錢昊達
Date: 2018-08-15
Description: Remove Duplicates from Sorted List解答
**************************************************/
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNo... |
kokosing/hue | desktop/core/ext-py/guppy-0.1.10/guppy/heapy/test/test_View.py | <reponame>kokosing/hue
from guppy.heapy.test import support
class TestCase(support.TestCase):
def setUp(self):
support.TestCase.setUp(self)
self.types = self.heapy.UniSet.types
class FirstCase(TestCase):
def test_cal_hiding(self):
V = self.View
iso = self.iso
# Tests that our workspace nodesets are hidde... |
wildanmuhlis2/App | src/libs/HttpUtils.js | import Onyx from 'react-native-onyx';
import _ from 'underscore';
import CONFIG from '../CONFIG';
import CONST from '../CONST';
import ONYXKEYS from '../ONYXKEYS';
import HttpsError from './Errors/HttpsError';
let shouldUseSecureStaging = false;
Onyx.connect({
key: ONYXKEYS.USER,
callback: val => shouldUseSecu... |
zhang-hwl/parkinfo | parkinfo-service/src/main/java/com/parkinfo/service/parkService/IActivityApplyService.java | package com.parkinfo.service.parkService;
import com.parkinfo.common.Result;
import com.parkinfo.request.parkService.activityApply.AddActivityApplyRequest;
import com.parkinfo.request.parkService.activityApply.EditActivityApplyRequest;
import com.parkinfo.request.parkService.activityApply.SearchActivityApplyRequest;
i... |
tsapko3628/networkit | include/networkit/centrality/ApproxGroupBetweenness.hpp | <reponame>tsapko3628/networkit
/*
* ApproxGroupBetweenness.h
*
* Created on: 13.03.2018
* Author: <NAME>
*/
#ifndef APPROXGROUPBETWEENNESS_H_
#define APPROXGROUPBETWEENNESS_H_
#include <networkit/base/Algorithm.hpp>
#include <networkit/graph/Graph.hpp>
namespace NetworKit {
class ApproxGroupBetweenness : ... |
neogen22/job4j | chapter_001/src/main/java/ru/job4j/array/MatrixCheck.java | <reponame>neogen22/job4j
package ru.job4j.array;
public class MatrixCheck {
public static boolean isWin(char[][] board) {
boolean result = false;
int temp = 0;
int temp2 = 0;
for (int row = 0; row < board.length; row++) {
for (int cell = 0; cell < board.length; cell++) {... |
luyl1017713252/python | Jrcrm/app01/migrations/0004_auto_20210505_1722.py | <reponame>luyl1017713252/python
# Generated by Django 3.1.7 on 2021-05-05 09:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app01', '0003_auto_20210505_1641'),
]
operations = [
migrations.AlterField(... |
drn/dots | cli/bin/git-canonical-remote/root.go | package main
// Writes the canonical remote to STDOUT
import (
"github.com/drn/dots/cli/git"
"github.com/drn/dots/cli/log"
)
func main() {
log.Info(git.CanonicalRemote())
}
|
taylorjg/TicTacToePlay | app/modules/UserServiceModule.scala | package modules
import com.google.inject.AbstractModule
import play.api.libs.concurrent.AkkaGuiceSupport
import services.{UserService, UserServiceImpl}
class UserServiceModule extends AbstractModule with AkkaGuiceSupport {
def configure(): Unit = {
bind(classOf[UserService]).to(classOf[UserServiceImpl])
}
}
|
djey47/tduf | gui-common/src/main/java/fr/tduf/gui/common/DisplayConstants.java | <gh_stars>1-10
package fr.tduf.gui.common;
/**
* Gives all constants to be displayed by controllers.
*/
public class DisplayConstants {
public static final String TITLE_BROWSE_GAME_DIRECTORY = "Browse game directory...";
public static final String TITLE_SUB_CHECK_DB = " : Check database";
public static f... |
augustinebest/app | backend/test/globalConfig.test.js | process.env.PORT = 3020;
const expect = require('chai').expect;
const data = require('./data/user');
const chai = require('chai');
chai.use(require('chai-http'));
const app = require('../server');
const request = chai.request.agent(app);
const { createUser } = require('./utils/userSignUp');
const UserService = require... |
kwestpharedhat/quay | image/shared/schemas.py | from image.shared import ManifestException
from image.docker.schema1 import DockerSchema1Manifest, DOCKER_SCHEMA1_CONTENT_TYPES
from image.docker.schema2 import (
DOCKER_SCHEMA2_MANIFEST_CONTENT_TYPE,
DOCKER_SCHEMA2_MANIFESTLIST_CONTENT_TYPE,
)
from image.shared.types import SparseManifestList
from image.docker... |
liuxc123/GTUIKit | components/CommonComponent/Form/src/Cells/GTUIFormBaseCell.h | <gh_stars>1-10
//
// GTUIFormBaseCell.h
// GTCatalog
//
// Created by liuxc on 2018/10/22.
//
#import <UIKit/UIKit.h>
#import "GTUIFormDescriptorCell.h"
#import "GTUIFormViewController.h"
@class GTUIFormViewController;
@class GTUIFormRowDescriptor;
@interface GTUIFormBaseCell : UITableViewCell <GTUIFormDescriptor... |
tas9n/OpenSiv3D | Siv3D/src/Siv3D/ViewFrustum/SivViewFrustum.cpp | <gh_stars>1-10
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 <NAME>
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/ViewFrustum.hpp>
#... |
Mu-L/kotlin | libraries/stdlib/jvm/runtime/kotlin/jvm/internal/FunInterfaceConstructorReference.java | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package kotlin.jvm.internal;
import kotlin.SinceKotlin;
import kotlin.reflect.KFunction;
import java.io.Seri... |
ferhaterata/etap | experiments/tasks/fft-3/fft.c | <reponame>ferhaterata/etap
/* Factored discrete Fourier transform, or FFT, and its inverse iFFT */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define q 3 /* for 2^3 points */
#define N (1 << q) /* N-point FFT, iFFT */
typedef float real;
typedef struct {
real Re;
real Im;
} complex;
#ifndef... |
snykcanoodles/github | lib/github_api/client/scopes.rb | <reponame>snykcanoodles/github
# encoding: utf-8
module Github
class Client::Scopes < API
# Check what OAuth scopes you have.
#
# = Examples
# github = Github.new :oauth_token => 'token'
# github.scopes.all
#
def list(*args)
arguments(args)
response = get_request("/user", ar... |
wspr-ncsu/acminer | src/org/sag/common/concurrent/IgnorableRuntimeException.java | <gh_stars>1-10
package org.sag.common.concurrent;
/** This is an exception that is thrown to indicate to another party that a different exception has occurred. This
* other exception has already been handled else where in some manner. However, another party needs to know that
* such an exception occurred (it does n... |
TakayukiHoshi1984/DeviceConnect-iOS | dConnectDevicePlugin/dConnectDeviceTheta/dConnectDeviceTheta/Classes/DPThetaUVSphere.h | <reponame>TakayukiHoshi1984/DeviceConnect-iOS
//
// DPThetaUVSphere.h
// dConnectDeviceTheta
//
//
// Copyright (c) 2015 NTT DOCOMO, INC.
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php
//
#import <Foundation/Foundation.h>
#ifndef ricoh_theta_sample_for_ios_UVSphere_h
#define... |
tkamata-test/ydk-py | cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_tty_management_cmd_oper.py | """ Cisco_IOS_XR_tty_management_cmd_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR tty\-management\-cmd package operational data.
This module contains definitions
for the following management objects\:
show\-users\: Show users statistics
Copyright (c) 2013\-2016 by Cisco Systems, Inc... |
morgen-peschke/sql2json | src/test/scala/sql2json/cat/ShowInstancesTest.scala | package sql2json
package cat
import org.junit.Test
import org.junit.Assert._
import cat.Show.show
final class ShowIterpolatorTest {
@Test def interpolatorShouldCompile(): Unit =
assertEquals("3", show"${1 + 2}")
assertEquals("<<<[1,2,3]>>>", show"<<<${List(1,2,3)}>>>")
assertEquals(
"""<<<Left("H... |
zhaiyjgithub/kbc | scanreader/Application/SR_ActioSheet/SR_ActionSheetVoiceView.h | <reponame>zhaiyjgithub/kbc
//
// SR_ActionSheetVoiceView.h
// scanreader
//
// Created by admin on 16/7/24.
// Copyright © 2016年 jb. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@protocol voiceViewSendBtnDelegate <NSObject>
@optional
- (void)clickVoiceViewSendBtn:(NSStrin... |
domstolene/ShareFile-Java | src/com/citrix/sharefile/api/models/SFPolicyUsage.java | <reponame>domstolene/ShareFile-Java
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// Copyright (... |
payrollhero/google-api-ruby-client | google-api-client/generated/google/apis/firebase_v1beta1/service.rb | # Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... |
imdairies/imd-farm-solutions | src/test/java/com/imd/loader/InventoryLoaderTest.java | package com.imd.loader;
import static org.junit.jupiter.api.Assertions.*;
import java.util.Iterator;
import java.util.List;
import org.joda.time.DateTime;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
im... |
paulross/xmlwriter | xmlwriter/cpp/XmlWrite.h | <filename>xmlwriter/cpp/XmlWrite.h<gh_stars>1-10
//
// XmlWrite.h
// xmlwriter
//
// Created by <NAME> on 29/11/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#ifndef XmlWrite_h
#define XmlWrite_h
#include <string>
#include <vector>
#include <map>
#include <sstream>
#include <iostream>
/**
* This is... |
nnadams/mage | Mage.Sets/src/mage/cards/g/GoblinJavelineer.java | package mage.cards.g;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.BecomesBlockedSourceTriggeredAbility;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.constants.SubType;
import mage.abilities.keyword.HasteAbility;
import mage.cards.CardI... |
jdelgadilloz1905/pe-web | src/pages/login/validators.js | /** @format */
export const rulesValidation = {
rulesGeneralRequired: [
{
required: true,
message: 'Please Enter a Value',
},
],
rulesNameRequired: [
{
required: true,
message: 'Please enter your name',
},
],
rulesPhoneRequired: [
{
required: true,
message: 'Please enter your phone num... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/DeviceManagement/DMFFetchApplicationsRequest.h | <reponame>phatblat/macOSPrivateFrameworks
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import <DeviceManagement/DMFTaskRequest.h>
@class NSArray;
@interface DMFFetchApplicationsRequest : DMFTaskRequest
{
BOOL _excludeIcon;
... |
weiwei91/springboot | springboot-websocket/src/main/java/com/example/springbootwebsocket/controller/WebSocketController.java | <reponame>weiwei91/springboot
package com.example.springbootwebsocket.controller;
import com.example.springbootwebsocket.server.WebSocketServer;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.ann... |
icgw/LeetCode | LeetCode/C++/1042._Flower_Planting_With_No_Adjacent/example.cpp | <reponame>icgw/LeetCode
/*
* example.cpp
* Copyright (C) 2019 <NAME> <<EMAIL>>
*
* Distributed under terms of the MIT license.
*/
#include <iostream>
#include "solution.hpp"
void run_example()
{
Solution sln;
int N = 3;
vector<vector<int>> paths { { 1, 2 }, { 2, 3 }, { 3, 1 } };
vector<int> ans = sln.gar... |
j-coll/cellbase | cellbase-server/src/main/java/org/opencb/cellbase/server/ws/feature/IdWSServer.java | /*
* Copyright 2015 OpenCB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
djodjoni/tarator | support-v7/src/main/java/org/djodjo/tarator/support/v7/interaction/ViewHolderInteraction.java | package org.djodjo.tarator.support.v7.interaction;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import org.assertj.android.recyclerview.v7.api.widget.RecyclerViewViewHolderAssert;
import org.djodjo.tarator.FailureHandler;
import org.djodjo.tarator.GraphHolder;
import org.djodjo.tarator.Ro... |
ianloic/unladen-swallow | Util/llvm/tools/clang/test/CodeGen/overloadable.c | <reponame>ianloic/unladen-swallow
// RUN: clang-cc -emit-llvm %s -o - | grep _Z1fPA10_1X
int __attribute__((overloadable)) f(int x) { return x; }
float __attribute__((overloadable)) f(float x) { return x; }
double __attribute__((overloadable)) f(double x) { return x; }
double _Complex __attribute__((overloadable)) f(do... |
IBPA/FoodAtlas | labeling/make_config_table_srl.py | <filename>labeling/make_config_table_srl.py
from jinja2 import Template
template = Template(open('./config_table_srl.xml.jinja','r').read())
kwargs = {
'n_cols_to_annotate': 12,
'cm_entity_types': ['Food','Food Varietal', 'Food Sample', 'Food Origin', 'Food Preparation', 'Food Sample', 'Constituent'],
'c... |
IIsiolu/book-a-meal | client/src/reducers/apiResponse.js | <filename>client/src/reducers/apiResponse.js
import {
API_ERR_RESPONSE, API_SUCCESS_RESPONSE,
API_ERR_STATE, API_SUCCESS_STATE,
} from '../actions/actionsTypes';
import { apiResponseState } from './initState';
const apiResponse = (state = apiResponseState, action) => {
switch (action.type) {
case API_ERR_RES... |
SweydAbdul/EstudosPythonCeV | 04-desafio.py | <gh_stars>0
print('===== \033[34mDESAFIO 04\033[m =====')
valor = input('Digite algo:\033[33m ')
print('\033[mO tipo primitivo desse valor e ', type(valor))
print('So tem espacos? ', valor.isspace())
print('E um numero? ', valor.isnumeric())
print('E um alfabetico? ', valor.isalpha())
print('E um alfanumerico? ', valo... |
Hork-Engine/Hork-Source | Source/Geometry/Triangulator.h | <gh_stars>10-100
/*
Hork Engine Source Code
MIT License
Copyright (C) 2017-2022 <NAME>.
This file is part of the Hork Engine Source Code.
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 withou... |
ripdajacker/enunciate | spring-web/src/test/java/com/webcohesion/enunciate/modules/spring_web/model/SpringControllerTest.java | /**
* Copyright © 2006-2016 Web Cohesion (<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 applicabl... |
wtlgo/vk-java-sdk | sdk/src/main/java/com/vk/api/sdk/exceptions/ApiWallAdsPublishedException.java | // Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.exceptions;
public class ApiWallAdsPublishedException extends ApiException {
public ApiWallAdsPublishedException(String message) {
super(219, "Advertisement post was recently added", message);
}
}
|
anand-singh/kafka-journal | journal/src/test/scala/com/evolutiongaming/kafka/journal/util/StartResourceSpec.scala | package com.evolutiongaming.kafka.journal.util
import cats.effect._
import cats.effect.{Deferred, Ref}
import com.evolutiongaming.kafka.journal.IOSuite._
import org.scalatest.funsuite.AsyncFunSuite
import org.scalatest.matchers.should.Matchers
class StartResourceSpec extends AsyncFunSuite with Matchers {
test("Sta... |
lih627/python-algorithm-templates | LeetCodeSolutions/LeetCode_1608.py | <filename>LeetCodeSolutions/LeetCode_1608.py
class Solution:
def specialArray(self, nums: List[int]) -> int:
for x in range(101):
if sum([num >= x for num in nums]) == x:
return x
return -1
|
sinancetingoz/go-green-tudelft | src/main/java/server/ResetPasswordController.java | package server;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;... |
benoitdevos/pousse-cafe | pousse-cafe-test/src/test/java/poussecafe/domain/chain1/Chain1ElementData.java | <filename>pousse-cafe-test/src/test/java/poussecafe/domain/chain1/Chain1ElementData.java
package poussecafe.domain.chain1;
import java.io.Serializable;
import poussecafe.attribute.Attribute;
import poussecafe.attribute.AttributeBuilder;
import poussecafe.messaging.internal.BaseChainElementAttributes;
@SuppressWarning... |
karina13/icplayer | addons/Image_Identification/test/ModelValidationTests.js | <reponame>karina13/icplayer
TestCase("Model validation", {
setUp: function () {
this.presenter = AddonImage_Identification_create();
this.presenter.configuration = {
isBlockedInErrorCheckingMode: true
};
},
'test full config': function () {
var model = {... |
amclin/advent-of-code | index.js | <filename>index.js
require('./2021/day-10/solution')
|
cheng-chuan/background-management-system-template | src/api/safety-and-stability/delivery-logistics/index.js | import request from '@/utils/request'
import { API_MODULE } from '@/api/const'
export function getList(data) {
return request({
url: `${API_MODULE.COMPREHENSIVE_GOVERN}/jdwlaqglxxb/page`,
method: 'post',
data: data
})
}
// 新增寄递物流
export function sqmyjqxxb(data) {
return request({
url: `${API_MODU... |
lulongwen/react | BikeAdmin/src/views/Table/data/index.js | export const thead = [
{
title: '用户名', //表头标题
dataIndex: 'username' //数据源
},
{
title: '性别',
dataIndex: 'sex',
render(sex){
return sex === 1 ? '男' : '女'
}
},
{
title: '状态',
dataIndex: 'state',
render(state){
let config = {
'1': '咸鱼一条',
'2': '人民公仆'... |
ABEMBARKA/monoUI | test/keystrokes/winforms/vscrollbar.py/vscrollbar.py | #!/usr/bin/python
from macaroon.playback import *
import utils
sequence = MacroSequence()
sequence.append(utils.StartRecordingAction())
sequence.append(WaitForWindowActivate("VScrollBar control",None))
sequence.append(utils.AssertPresentationAction(
"vscrollbar frame active",
["BRAILLE LINE: 'VScrollBar con... |
SSEHUB/EASyProducer | Plugins/VarModel/Utils/src/net/ssehub/easy/basics/modelManagement/IModelProcessingListener.java | /*
* Copyright 2009-2015 University of Hildesheim, Software Systems Engineering
*
* 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
*
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.