repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
InterTurstCo/ActiveFrame5 | CM5/Core/model/src/main/java/ru/intertrust/cm/core/business/api/dto/ColumnInfoConverter.java | <gh_stars>1-10
package ru.intertrust.cm.core.business.api.dto;
import ru.intertrust.cm.core.config.*;
/**
* Конвертирует ColumnInfo в конфигуцию поля типа ДО
*/
public class ColumnInfoConverter {
public static <T extends FieldConfig> FieldConfig convert(ColumnInfo columnInfo, T fieldConfig) {
if (field... |
dmijatovic/dv4all-wcp | icons/src/flag/htmlFlag.js |
export default ({title='Flag'})=>(`
<style>
:host{
display: inline-block;
}
/* SCALE SVG TO PARENT */
svg{
width:100%;
height:100%;
}
</style>
<svg version="1.1"
xmlns="http://www.w3.org/2000/svg"
width="64"
height="64"
viewBox="0 0 64 64">
<title>${title}<... |
VladTheEvilCat/mcheli-port-1.12.2 | mcheli/mcheli/particles/MCH_ParticleParam.java | /* */ package mcheli.mcheli.particles;
/* */
/* */ import net.minecraft.world.World;
/* */
/* */ public class MCH_ParticleParam
/* */ {
/* */ public final World world;
/* */ public final String name;
/* */ public double posX;
/* */ public double posY;
/* */ public double pos... |
tanhleno/pegparser | test/java18/test/no/WHILEErr.java | <reponame>tanhleno/pegparser
public class WHILEErr {
public static void main(String[] args) {
do
a = 1;
hile(a == 2);
}
} |
Riphiphip/website | committees/admin.py | <filename>committees/admin.py<gh_stars>0
from django.contrib import admin
# Register your models here.
from .models import Committee
admin.site.register(Committee)
|
bisnukundu/007helpdesk | node_modules/flaschenpost/src/Middleware/index.js | 'use strict';
const { Writable } = require('stream');
const stackTrace = require('stack-trace');
class Middleware extends Writable {
constructor (level, source) {
if (!level) {
throw new Error('Level is missing.');
}
/* eslint-disable global-require */
const flaschenpost = require('../flasch... |
haibowen/AndroidStudy | AmazeFileManager-master/app/src/main/java/com/amaze/filemanager/asynchronous/asynctasks/LoadFilesListTask.java | <reponame>haibowen/AndroidStudy
/*
* Copyright (C) 2014 <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of Amaze File Manager.
*
* Amaze File Manager is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... |
clatisus/armeria | core/src/test/java/com/linecorp/armeria/server/RouterTest.java | <reponame>clatisus/armeria
/*
* Copyright 2017 LINE Corporation
*
* LINE Corporation licenses this file to you 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:
*
* https://www.apache.org/licenses... |
raulfdias/api_node_default | src/__tests__/integration/controllers/CollegeSubjectApi.js | <reponame>raulfdias/api_node_default
const request = require('supertest');
const server = require('../../../config/server');
const truncate = require('../../utils/ClearTables'),
testMass = require('../../utils/TestMass');
let massDataTesting = {};
module.exports = () => {
describe('College Subject API Contr... |
Fauntleroy/Igneous | test/postprocessors/sass.js | <reponame>Fauntleroy/Igneous<filename>test/postprocessors/sass.js
var should = require('should');
var sass = require('../../lib/postprocessors/sass.js');
describe( 'postprocessor - SASS', function(){
it( 'converts SASS to CSS', function( cb ){
var contents = '$blue: #3bbfce;\n'+
'$margin: 16px;\n'+
'\n'+
... |
uwydoc/the-practices | boost/mpi.cpp | <reponame>uwydoc/the-practices
// mpi.cpp
//
#include <iostream>
#include <string>
#include <boost/mpi.hpp>
#include <boost/serialization/string.hpp>
namespace test {
class animal
{
public:
animal() {}
animal(const std::string& name, int legs)
: name_(name), legs_(legs) {}
const std::string& nam... |
mendelmaleh/td | cmd/gotdecho/main.go | // Binary gotdecho provides example of Telegram echo bot.
package main
import (
"context"
"fmt"
"os"
"os/signal"
"path/filepath"
"strconv"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"golang.org/x/net/proxy"
"golang.org/x/xerrors"
"github.com/gotd/td/telegram"
"github.com/gotd/td/tg"
"github.com/gotd/td... |
wja30/cortex_0.31 | async-gateway/queue.go | /*
Copyright 2021 Cortex Labs, 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, softwa... |
polarloves/skrivet | supports/supports-data/supports-data-service-impl/src/main/java/com/skrivet/supports/data/service/impl/system/SystemServiceImpl.java | package com.skrivet.supports.data.service.impl.system;
import com.skrivet.core.common.annotations.DynamicDataBase;
import com.skrivet.core.common.annotations.PublishEvent;
import com.skrivet.core.common.entity.LoginUser;
import com.skrivet.core.common.entity.PageList;
import com.skrivet.core.common.exception.DataExist... |
knksknsy/cnc-shop | middleware/models/users.model.js | /**
* Copyright (C) 2017
*
* <NAME>.
* <NAME>.
*
* MIT License
*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var bcrypt = require('bcryptjs'); // TODO: for a better performance we should use basic bcrypt, but this would have a bunch of dependencies
var CRYPT_FACTOR = 11;
var userSchema = n... |
SAIC-ATS/ARTTECH-3039 | Session_02/03_Pixels_Brightest/src/ofApp.cpp | #include "ofApp.h"
void ofApp::setup()
{
ofBackground(80);
ofLoadImage(myPixels, "puppy.jpg");
myTexture.loadData(myPixels);
}
void ofApp::update()
{
float brightestBrightness = 0;
for (std::size_t x = 0; x < myPixels.getWidth(); x++)
{
for (std::size_t y = 0; y < myPixels.... |
rholang/archive-old | packages/media/smart-card/dist/cjs/view/CardWithUrl/loader.js | <reponame>rholang/archive-old
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var media_ui_1 = require("@atlaskit/media-ui");
var analytics_1 = require("../../utils/analytics");
var CardWithURLRenderer = /**... |
tiagoadmstz/angular-spring-algaworks | algamoney-api/src/main/java/io/github/tiagoadmstz/algamoney/api/models/Entry.java | <gh_stars>0
package io.github.tiagoadmstz.algamoney.api.models;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.i... |
gstackio/bosh-ext-cli | src/github.com/bosh-tools/bosh-ext-cli/web/inputs.go | package web
const inputs string = `
<script type="text/javascript">
function NewSearchCriteriaExpandingInput($input) {
function setUp() {
$input
.focus(function() { $(this).addClass("expanded"); })
.blur(function() {
var $el = $(this);
setTimeout(function() { $el.removeClass("expande... |
avalan4e57/personalWebSite | src/js/components/App.js | import React, { Component } from 'react'
import styles from '../../styles/App.scss'
import ContactIcons from './ContactIcons'
import Home from './Home.js'
import VisibleProjects from '../containers/VisibleProjects'
import ContactForm from '../containers/ContactForm'
const App = () => (
<div className={ styles.app... |
heyogrady/tickety | db/migrate/20150508005636_create_checkouts.rb | class CreateCheckouts < ActiveRecord::Migration
def change
create_table :checkouts do |t|
t.references :user, index: true, null: false
t.references :plan, index: true, null: false
t.string :stripe_coupon_id
t.timestamps
end
add_foreign_key :checkouts, :users
add_foreign_key :c... |
AppSecAI-TEST/qalingo-engine | apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/dao/LocalizationDao.java | <filename>apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/dao/LocalizationDao.java
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
FateRevoked/mage | Mage.Sets/src/mage/cards/a/ArisenGorgon.java | <reponame>FateRevoked/mage
package mage.cards.a;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
import mage.abilities.decorator.ConditionalContinuousEffect;
import mage.abilities.effects.common.co... |
LuN4t1k0/es6 | prototype/app.js | //Objetos
//prototype sirve para asignar metodos a nuestros objetos de forma que estos no puedan ser utilizados por otros elementos
function Tarea(nombre, urgencia) {
this.nombre = nombre;
this.urgencia = urgencia;
}
//agregar un prototype a tarea
Tarea.prototype.mostrarInformacionTarea = function() {
return `... |
wuyazero/Elastos.App.UnionSquare.iOS | ELA/MeVC/model/HWMDIDInfoModel.h | //
// HWMDIDInfoModel.h
// elastos wallet
//
// Created by on 2019/11/14.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface HWMDIDInfoModel : NSObject
@property(copy,nonatomic)NSString *didName;
@property(copy,nonatomic)NSString *did;
@property(copy,nonatomic)NSString *nickname;
@property(co... |
jack0331/peddler | lib/peddler/xml_response_parser.rb | <reponame>jack0331/peddler
require 'peddler/xml_parser'
module Peddler
# @api private
class XMLResponseParser < XMLParser
def next_token
parse.fetch('NextToken', false)
end
private
def find_data
results = xml.values.first.find { |k, _| k.include?('Result') } ||
xml.val... |
seekdoor/anew-server | api/v1/system/sys_dict.go | package system
import (
"anew-server/api/request"
"anew-server/api/response"
"anew-server/dao"
"anew-server/models/system"
"anew-server/pkg/common"
"anew-server/pkg/utils"
"github.com/gin-gonic/gin"
)
// 查询所有字典
func GetDicts(c *gin.Context) {
// 绑定参数
var req request.DictListReq
err := c.Bind(&req)
if err !... |
bsteker/bdf2 | bdf2-import/src/main/java/com/bstek/bdf2/importexcel/model/ExcelDataWrapper.java | package com.bstek.bdf2.importexcel.model;
import java.util.ArrayList;
import java.util.Collection;
public class ExcelDataWrapper implements java.io.Serializable {
private static final long serialVersionUID = 1L;
public String excelModelId;
/**
* excel对应的模型信息
*/
public ExcelModel excelModel;
/**
* 解析的exce... |
gazsiazasz/gekko | core/workers/dateRangeScan/parent.js | let ForkTask = require('relieve').tasks.ForkTask;
let fork = require('child_process').fork;
module.exports = function(config, done) {
let debug = typeof v8debug === 'object';
if (debug) {
process.execArgv = [];
}
let task = new ForkTask(fork(__dirname + '/child'));
task.send('start', config);
task.o... |
kloose/XS2A-Sandbox | online-banking/oba-rest-server/src/main/java/de/adorsys/ledgers/oba/rest/server/resource/ResponseUtils.java | <reponame>kloose/XS2A-Sandbox
/*
* Copyright 2018-2022 adorsys GmbH & Co KG
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or (at
* your option) ... |
gwasserfall/matcha | database.py | import config
from helpers.pymysqlpool import Pool
from threading import Thread
from time import sleep
pool = Pool(max_size=20, timeout=20, **config.database)
|
dk00/old-stuff | ntuj/0324.cpp | <gh_stars>0
#include<set>
#include<cstdio>
using namespace std;
int a[100000],u[100000];
main()
{
int i,j,k,n,m;
multiset<int> h;
while(scanf("%d %d",&m,&n)==2)
{
h.clear();
for(i=0;i<m;i++)
scanf("%d",a+i);
for(i=0;i<n;i++)
scanf("%d",u+i);
set<int>::iterator p;
for(i=j=0;i<m;i++)
{
h.insert(a... |
arepraneeth/p2 | pkg/audit/rc.go | <filename>pkg/audit/rc.go
package audit
import (
"encoding/json"
pc_fields "github.com/square/p2/pkg/pc/fields"
"github.com/square/p2/pkg/types"
"github.com/square/p2/pkg/util"
)
const (
// RcRetargetingEvent represents events in which an RC changes the set of
// nodes that it is targeting. This can be used to... |
junluan/shadow | shadow/operators/kernels/layer_norm.hpp | <gh_stars>10-100
#ifndef SHADOW_OPERATORS_KERNELS_LAYER_NORM_HPP_
#define SHADOW_OPERATORS_KERNELS_LAYER_NORM_HPP_
#include "group_norm.hpp"
namespace Shadow {
class LayerNormKernel : public Kernel {
public:
virtual void Run(const std::shared_ptr<Blob>& input,
const std::shared_ptr<Blob>& scale... |
soulwing/prospecto | prospecto-api/src/main/java/org/soulwing/prospecto/spi/ViewWriterFactoryProvider.java | /*
* File created on Mar 9, 2016
*
* Copyright (c) 2016 <NAME>, Jr
* and others as noted
*
* 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... |
thinking-github/nbone | nbone/nbone-framework/src/main/java/org/nbone/persistence/SqlBuilder.java | <gh_stars>1-10
package org.nbone.persistence;
import org.nbone.lang.MathOperation;
import org.nbone.mvc.domain.GroupQuery;
import org.nbone.persistence.exception.BuilderSQLException;
import org.nbone.persistence.mapper.FieldMapper;
import org.nbone.persistence.model.SqlModel;
import org.springframework.jdbc.core.RowMa... |
ghsecuritylab/tomato_egg | release/src/router/samba3/source/auth/auth_util.c | <gh_stars>100-1000
/*
Unix SMB/CIFS implementation.
Authentication utility functions
Copyright (C) <NAME> 1992-1998
Copyright (C) <NAME> 2001
Copyright (C) <NAME> 2000-2001
Copyright (C) <NAME> 2002
Copyright (C) <NAME> 2006
This program is free software; you can redistribute it and/or modify
... |
sbilly/BAS | Engine/projectbackup.cpp | #include "projectbackup.h"
#include "every_cpp.h"
#include <QDateTime>
#include <QDir>
namespace BrowserAutomationStudioFramework
{
ProjectBackup::ProjectBackup(QObject *parent) : QObject(parent)
{
milliseconds = 5 * 60000;
CodeEditor = 0;
Timer = 0;
DestFolder = "../../projectb... |
Abhisheknishant/javaclay | src/main/java/es/bsc/dataclay/util/prefetchingspec/analysisscopes/BranchAnalysisScope.java |
/**
* @file BranchAnalysisScope.java
*
* @date Dec 11, 2015
*/
package es.bsc.dataclay.util.prefetchingspec.analysisscopes;
/**
* This class represents a branch analysis scope (e.g. an "if" or an "else" scope). Its parent is ALWAYS of type
* MultiBranchAnalysisScope.
*
*
*/
public class BranchAnalysisScope... |
happibum/calcium | testcases/20.js | // context-sensitively analyze all functions
function id(x) { return x; }
var x = id(1);
var y = id(true);
function foo(y) { return y; }
var a = foo(1);
var b = foo(true);
|
rhickman/cellbots3 | RobotsideApp-master/common/src/androidTest/java/ai/ticktock/common/PointOfInterestValidatorTest.java | <reponame>rhickman/cellbots3
package ai.cellbots.common;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.Random;
import java.util.UUID;
import ai.cellbots.common.data.PointOfInterest;
import ai.cellbots.common.data.PointOfInterestVars;
import ai.cellb... |
cndavy/docker-office | custom_apps/maps/l10n/uk.js | <reponame>cndavy/docker-office
OC.L10N.register(
"maps",
{
"Maps" : "Мапи",
"Personal" : "Особисте",
"Not grouped" : "Не згруповані",
"Home" : "Домашній",
"Work" : "Робочий",
"All contacts" : "Всі контакти",
"Rename" : "Перейменувати",
"Export" : "Експорт",
"Delete" : "Видали... |
pebble2015/cpoi | src/org/apache/poi/sl/draw/DrawAutoShape.cpp | // Generated from /POI/java/org/apache/poi/sl/draw/DrawAutoShape.java
#include <org/apache/poi/sl/draw/DrawAutoShape.hpp>
#include <org/apache/poi/sl/usermodel/AutoShape.hpp>
poi::sl::draw::DrawAutoShape::DrawAutoShape(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* >(0))
{
clinit();
}
p... |
arthurvenicio/blip-desk-scheduler | src/pages/Home/components/ListWeek/index.js | <gh_stars>1-10
import ListWeek from './ListWeek';
export default ListWeek;
|
uk-gov-mirror/hmcts.bulk-scan-orchestrator | src/main/java/uk/gov/hmcts/reform/bulkscan/orchestrator/client/caseupdate/model/request/ExceptionRecord.java | package uk.gov.hmcts.reform.bulkscan.orchestrator.client.caseupdate.model.request;
import com.fasterxml.jackson.annotation.JsonProperty;
import uk.gov.hmcts.reform.bulkscan.orchestrator.client.model.request.OcrDataField;
import uk.gov.hmcts.reform.bulkscan.orchestrator.client.model.request.ScannedDocument;
import uk.g... |
jochenater/catboost | library/cpp/yt/assert/assert.cpp | #include "assert.h"
#include <util/system/yassert.h>
#include <util/system/compiler.h>
namespace NYT::NDetail {
////////////////////////////////////////////////////////////////////////////////
Y_WEAK void AssertTrapImpl(
TStringBuf trapType,
TStringBuf expr,
TStringBuf file,
int line,
TStringBuf... |
hfp/plaidml | pmlc/dialect/comp/analysis/mem_sync_tracker.h | // Copyright 2020 Intel Corporation
#pragma once
#include "mlir/Support/LLVM.h"
#include "pmlc/dialect/comp/ir/dialect.h"
namespace pmlc::dialect::comp {
/// Class tracking status of synchronization between memories.
/// Two memories are in sync when they hold the same content.
class MemorySynchronizationTracker {
... |
vipulchodankar/gec-computer-engineering | second-year/semester-3/DSA/experiment-3/Hashing.c | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct bike
{
int pid;
char model[20];
float price;
};
struct hashtable
{
struct bike b;
int status;
};
int MAX;
int hash(char key[])
{
int sum=0,i;
for(i=0;i<strlen(key);i++)
sum+=(int)key[i];
return (sum%MAX);
}
void insert_hashtable(struct... |
csoap/csoap.github.io | sourceCode/dotNet4.6/vb/language/compiler/commandline/resource.h | <filename>sourceCode/dotNet4.6/vb/language/compiler/commandline/resource.h
//-------------------------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// STRIDs should be defined in the following ranges:
//
// 1 - 100 ... |
iceBear67/Krystalic | src/main/java/com/github/icebear67/craftpp/api/interfaces/IMachine.java | package com.github.icebear67.craftpp.api.interfaces;
import com.github.icebear67.craftpp.InteractType;
import com.github.icebear67.craftpp.machine.result.Result;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import java.util.UUID;
public interface IMachine {
String getId();
Result onUpdate();... |
King-Maverick007/websites | git/smart-new/smart-mvc/src/main/java/com/smart/mvc/validator/annotation/ValidateParam.java | <reponame>King-Maverick007/websites
package com.smart.mvc.validator.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.smart.mvc.validator.Valida... |
CloudNativeDataPlane/cndp | lib/core/osal/cne_stdio.h | <reponame>CloudNativeDataPlane/cndp<filename>lib/core/osal/cne_stdio.h<gh_stars>0
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) <2019-2021> Intel Corporation.
*/
#ifndef __CNE_STDIO_H_
#define __CNE_STDIO_H_
// IWYU pragma: no_include <bits/termios-struct.h>
#include <termios.h>
#include <stdint.h> ... |
bessovistnyj/jvm-byte-code | Spring/IoC/src/test/java/ru/napadovskiu/storage/StorageTest.java | <reponame>bessovistnyj/jvm-byte-code
package ru.napadovskiu.storage;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import org.springframework.context.ApplicationContext;
import static org.junit.Assert.assertEquals;
import org.springframework.context.support.ClassPathXmlApp... |
aTechathon/atechathon.github.io | athonia/19/154386/197089.js |
init();
function init() {
tileX = 154386;
tileY = 197089;
msg.innerHTML += 'Hello, world! from ' + tileX + ' ' + tileY
geometry = new THREE.BoxGeometry( 100, 20, 150 );
material = new THREE.MeshNormalMaterial();
mesh = new THREE.Mesh( geometry, material );
placeTile( mesh, tileX, tileY );
} |
FrederikWR/course-02443-stochastic-virus-outbreak | code/world/tools.py |
from .regions import regions
def airline_connections(region):
"""Find indgoing and outgoing airline connections
Parameters
---------
region : Region object to check for ingoing and outgoing connections
Returns
-------
(outgoing, ingoing) route objects
"""
outgoing_routes = regio... |
Hrom131/terraform-provider-tokend | vendor/gitlab.com/tokend/regources/v2/account.go | package regources
// AccountResponse - response on /account request
type AccountResponse struct {
Data Account `json:"data"`
Included Included `json:"included"`
}
// Account - Resource object representing AccountEntry
type Account struct {
Key
Relationships AccountRelationships `json:"relationships"`
}
type... |
findy-network/findy-issuer-tool | frontend/src/store/actions.js | export const FETCH_USER = 'FETCH_USER';
export const fetchUser = (username) => ({
type: FETCH_USER,
payload: username,
});
export const FETCH_USER_FULFILLED = 'FETCH_USER_FULFILLED';
export const fetchUserFulfilled = (payload) => ({
type: FETCH_USER_FULFILLED,
payload,
});
export const FETCH_LEDGER = 'FETCH... |
forgems/instana-agent-operator | src/test/java/com/instana/operator/AgentDeployerTest.java | <reponame>forgems/instana-agent-operator<gh_stars>0
package com.instana.operator;
import com.google.common.collect.ImmutableMap;
import com.instana.operator.customresource.InstanaAgent;
import com.instana.operator.customresource.InstanaAgentSpec;
import com.instana.operator.env.Environment;
import io.fabric8.kubernete... |
bryanjeanty/kryptodash | client/components/bootstrap/Footer.js | <reponame>bryanjeanty/kryptodash<filename>client/components/bootstrap/Footer.js
import React, { Component, Fragment } from "react";
import Link from "next/link";
export class Footer extends Component {
render() {
return (
<Fragment>
<div className="footer-wrapper">
© 2019 Copyright:
... |
oxelson/gempak | gempak/source/driver/active/xw/xtext.c | <gh_stars>10-100
#include "xwcmn.h"
void xtext ( float *xr, float *yr, char strout[], int *lenstr,
int *ixoff, int *iyoff, float *rotat, int *ispanx,
int *ispany, int *icleft, int *icrght, int *icbot,
int *ictop, int *iret )
/************************************************************************
* xtext ... |
seijikun/ractive | src/parse/utils/refineExpression.js | <filename>src/parse/utils/refineExpression.js<gh_stars>1000+
import { REFERENCE, BRACKETED, MEMBER, REFINEMENT } from 'config/types';
import flattenExpression from './flattenExpression';
export default function refineExpression(expression, mustache) {
let referenceExpression;
if (expression) {
while (expressi... |
asphaltpanthers/libjson-rpc-cpp | src/jsonrpc/specification.h | /*************************************************************************
* libjson-rpc-cpp
*************************************************************************
* @file specification.h
* @date 30.04.2013
* @author <NAME> <<EMAIL>>
* @license See attached LICENSE.txt
*********************************... |
DreVinciCode/TEAM-08 | MRTK/h/Il2CppOutputProject/IL2CPP/libil2cpp/os/Atomic.h | #pragma once
#include <stdint.h>
#include "utils/NonCopyable.h"
#include "c-api/Atomic-c-api.h"
namespace il2cpp
{
namespace os
{
class Atomic : public il2cpp::utils::NonCopyable
{
public:
// All 32bit atomics must be performed on 4-byte aligned addresses. All 64bit atomics must be
// perf... |
m3rlin5ky/wasp | plugins/database/cleantesting.go | package database
import (
"github.com/iotaledger/goshimmer/dapps/valuetransfers/packages/address"
"github.com/iotaledger/hive.go/kvstore"
)
// temporary. Until DeletePrefix is fixed
func deletePartition(addr *address.Address) error {
dbase := GetPartition(addr)
keys := make([][]byte, 0)
err := dbase.IterateKeys(... |
Ayvytr/MvpCommons | lib/qrscan/src/main/java/com/wanshare/wscomponent/qrscan/activity/CaptureActivity.java | package com.wanshare.wscomponent.qrscan.activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import com.wanshare.wscomponent.qrscan.OnScanListener;
import com.wanshare.wscomponent.qrscan.QrUtils;
import com.wanshare.wscompo... |
vijayraavi/jmeter-to-k6 | src/element/HeaderManager.js | const { Header } = require('../symbol')
const properties = require('../common/properties')
const makeResult = require('../result')
function HeaderManager (node, context) {
const result = makeResult()
if (node.attributes.enabled === 'false') return result
const settings = new Map()
for (const key of Object.keys... |
alleindrach/calculix-desktop | FastCAE_Linux/Code/GeometryWidgets/release/qui/ui_dialogMakeExtrusion.h | /********************************************************************************
** Form generated from reading UI file 'dialogMakeExtrusion.ui'
**
** Created by: Qt User Interface Compiler version 5.14.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
******************************... |
LeksiDor/JaraboTransientRendering | src/Film/Film.h | <filename>src/Film/Film.h
/*
* Copyright (C) 2015, <NAME> (http://giga.cps.unizar.es/~ajarabo/)
*
* 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 l... |
cy-sohn/junkyard | opencv_filtering/runme.py | # -*- coding: utf-8 -*-
# Take snapshot using web camera, OpenCV and Tkinter.
import os
import tkinter as tk
from opencv.logic_logger import init_logging, logging
from opencv.gui_main import MainGUI
from opencv.logic_camera import MyValidationError
class TkErrorCatcher:
""" Handle MyValidationError in the tkinte... |
mdal-bot/MDAL | tests/unittests/test_mdal_utils.cpp | <gh_stars>0
/*
MDAL - Mesh Data Abstraction Library (MIT License)
Copyright (C) 2019 <NAME> (zilolv at gmail dot com)
*/
#include "gtest/gtest.h"
#include <limits>
#include <cmath>
#include <string>
#include <vector>
//mdal
#include "mdal.h"
#include "mdal_utils.hpp"
#include "mdal_testutils.hpp"
struct SplitTestDa... |
Snewmy/swordie | scripts/field/russianRoulette_enter.py | <filename>scripts/field/russianRoulette_enter.py
# using a map script cuz i cant get the clock to show up immediately after forcing a cc
sm.sendAutoEventClock() |
Pradeepkn/StationApp | Train/Train/TableCells/ImagesGalleryView.h | <filename>Train/Train/TableCells/ImagesGalleryView.h
//
// ImagesGalleryView.h
// Train
//
// Created by <NAME> on 10/18/16.
// Copyright © 2016 Pradeep. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ImagesGalleryView : UIView
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@end
|
Baneeishaque/Spring-Shop-Max | src/main/java/com/ecommerce/one/ecommerce/controller/WishListController.java | <gh_stars>0
package com.ecommerce.one.ecommerce.controller;
import com.ecommerce.one.ecommerce.domain.customer;
import com.ecommerce.one.ecommerce.domain.product;
import com.ecommerce.one.ecommerce.domain.wishlist;
import com.ecommerce.one.ecommerce.service.WishListService;
import org.springframework.beans.factory.ann... |
skymysky/jackrabbit | jackrabbit-jca/src/main/java/org/apache/jackrabbit/jca/JCAConnectionManager.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 ... |
daodao10/chart | cn/603777_d.js | <gh_stars>1-10
var data=[['20161012',11.214],
['20161013',12.414],
['20161014',13.736],
['20161017',15.186],
['20161018',16.786],
['20161019',18.543],
['20161020',20.479],
['20161021',22.607],
['20161024',24.950],
['20161025',27.521],
['20161026',30.350],
['20161027',33.464],
['20161028',36.893],
['20161031',40.664],
[... |
olleolleolle/docker-template | spec/rspec/helper.rb | <reponame>olleolleolle/docker-template<filename>spec/rspec/helper.rb
# Frozen-string-literal: true
# Copyright: 2015 - 2016 <NAME> - Apache v2.0 License
# Encoding: utf-8
ENV.delete("CI")
require "support/coverage"
require "luna/rspec/formatters/checks"
require "docker/template"
require "rspec/helpers"
ENV["RSPEC_RUN... |
1690296356/jdk | test/jdk/sun/security/pkcs11/Cipher/TestChaChaPolyNoReuse.java | /*
* Copyright (c) 2021, Oracle and/or its affiliates. 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 Softwa... |
yury-s/v8-inspector | Source/chrome/tools/telemetry/telemetry/user_story/user_story_unittest.py | # Copyright 2014 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.
import unittest
from telemetry.story import shared_state
from telemetry import user_story
# pylint: disable=abstract-method
class SharedStateBar(shared_st... |
kzborisov/SoftUni | 2. Programming Fundamentals With Python (May 2021)/21. Exercise - Dictionaries/04_legendary_farming.py | <reponame>kzborisov/SoftUni<filename>2. Programming Fundamentals With Python (May 2021)/21. Exercise - Dictionaries/04_legendary_farming.py
def add_to_junk(key_materials_dict, material_to_add, qty_to_add):
if material_to_add not in key_materials_dict:
key_materials_dict[material_to_add] = qty_to_add
els... |
sempr-tk/rete | test/GlobalConstants.cpp | #include <iostream>
#include <fstream>
#include "../rete-reasoner/Reasoner.hpp"
#include "../rete-reasoner/RuleParser.hpp"
#include "../rete-rdf/ReteRDF.hpp"
using namespace rete;
namespace {
void save(Network& net, const std::string& filename)
{
std::ofstream out(filename);
out << net.toDot();
out.clos... |
Walkud/JudyBridge | module/ModuleC/src/main/java/com/zly/module/c/ModuleCActivity.java | <reponame>Walkud/JudyBridge<gh_stars>10-100
package com.zly.module.c;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by Zhuliya on 2018/9/17
*/
public class ModuleCActivity extends AppCompatActivity {
@Override
protected... |
sylvainbouxin/wdp | wdp/src/main/java/org/whtcorp/wdp/WebSphereAbstractMojo.java | package org.whtcorp.wdp;
import java.util.Properties;
import org.apache.maven.plugin.AbstractMojo;
import com.ibm.websphere.management.AdminClient;
import com.ibm.websphere.management.AdminClientFactory;
public abstract class WebSphereAbstractMojo extends AbstractMojo {
/**
* @parameter
*/
private WebSphereA... |
OcZi/Margaret | Bukkit/src/main/java/me/oczi/bukkit/objects/PartnershipHome.java | <filename>Bukkit/src/main/java/me/oczi/bukkit/objects/PartnershipHome.java
package me.oczi.bukkit.objects;
import com.google.common.base.Objects;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import java.util.Date;
/**
* A {@link Home} implementation.
*/
public class PartnershipHome implements Home ... |
ZOrangeBandit/Silent-Gear | src/main/java/net/silentchaos512/gear/block/grader/GraderBlock.java | package net.silentchaos512.gear.block.grader;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.*;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.context.BlockPlaceContext;
import net.minecraft.world.level.BlockGetter;
import net.minec... |
romsom/HISE | extras/demo_project/Scripts/Example.cpp | #define SAFE
class HiseJitClass
{
public:
const Buffer b(6);
void init()
{
b[0] = 1.0f;
};
void prepareToPlay(double sampleRate, int blockSize)
{
// Setup the playback configuration here
};
/** The NativeJIT code for the additive synthesiser. */
double uptime = 0.0;
double ... |
fkjava/oa | identity/src/main/java/org/fkjava/oa/identity/controller/RoleController.java | <reponame>fkjava/oa
package org.fkjava.oa.identity.controller;
import java.util.List;
import org.fkjava.oa.identity.domain.Role;
import org.fkjava.oa.identity.service.IdentityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springfram... |
IceIce1ce/Lab-Basic-Programming-HCMUS | Conditional Statement/H03/18127070_week03/Ex14/Ex14.cpp | <reponame>IceIce1ce/Lab-Basic-Programming-HCMUS
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
double a, b, c;
cout << "Nhap do dai canh a: ";
cin >> a;
cout << "Nhap do dai canh b: ";
cin >> b;
cout << "Nhap do dai canh c: ";
cin >> c;
if (a == 0 || b == 0 || c == 0)
{
cout << "k... |
hw233/home3 | core/server/clientProject/commonClient/src/main/java/com/home/commonClient/net/request/func/item/FuncCleanUpItemRequest.java | package com.home.commonClient.net.request.func.item;
import com.home.commonClient.constlist.generate.GameRequestType;
import com.home.commonClient.net.request.func.base.FuncRRequest;
import com.home.shine.bytes.BytesWriteStream;
import com.home.shine.control.BytesControl;
/** 整理物品容器消息(generated by shine) */
pub... |
google/splot-java | smcp/src/test/java/com/google/iot/smcp/HostedThingAdapterTest.java | /*
* Copyright (C) 2018 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 ... |
woshisunzewei/EIP | UI/EIP.Web/Scripts/app/system/app/list.js | <filename>UI/EIP.Web/Scripts/app/system/app/list.js
define([
'list',
'layout'
],
function () {
initLayout();
initGird();
});
var $grid;
//初始化布局
function initLayout() {
$("body").layout({
"north": {
size: 29,
closable: true,
resizable: fa... |
hwbyuehen/pattern-design | src/main/java/com/yuehen/pattern/structure/proxy/refactor/news/BankCardServiceNew.java | package com.yuehen.pattern.structure.proxy.refactor.news;
import com.yuehen.pattern.structure.proxy.refactor.old.IBankCardService;
public class BankCardServiceNew implements IBankCardService {
public void queryUserByBankcard(){
//
System.out.println("查询用户信息业务功能。。。");
}
}
|
jsavikko/futurice-ldap-user-manager | fum/urls.py | <gh_stars>100-1000
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.template import add_to_builtins
from django.contrib import admin
admin.autodiscover()
from views import IndexView
urlpatterns = patterns('',
url(r'^$', Ind... |
Gankro/geo-kit | src/js/structures/primitives/Box.js | <reponame>Gankro/geo-kit
var gk = (function(gk){
var Point = gk.Point;
var Edge = gk.LineSegment;
var Drawable = gk.Drawable;
function Box(ptA, ptB){
this.ptA = ptA;
this.ptB = ptB;
}
Box.displayName = "Box";
Box.icon = "box";
Box.createPrimitive = function(mou... |
soundvibe/reacto | src/main/java/net/soundvibe/reacto/discovery/types/Status.java | package net.soundvibe.reacto.discovery.types;
public enum Status {
/**
* The service is published and is accessible.
*/
UP,
/**
* The service has been withdrawn, it is not accessible anymore.
*/
DOWN,
/**
* The service is still published, but not accessible (maintenance).
*/
OUT_OF_SERVI... |
peterkong1024/cpg | cpg-core/src/test/java/de/fraunhofer/aisec/cpg/enhancements/templates/FunctionTemplateTest.java | /*
* Copyright (c) 2021, Fraunhofer AISEC. 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 require... |
DaveVoorhis/Rel | DBrowser/src/org/reldb/dbrowser/ui/content/rel/view/VarViewPlayer.java | <reponame>DaveVoorhis/Rel<filename>DBrowser/src/org/reldb/dbrowser/ui/content/rel/view/VarViewPlayer.java
package org.reldb.dbrowser.ui.content.rel.view;
import org.eclipse.swt.custom.CTabItem;
import org.reldb.dbrowser.ui.content.rel.DbTreeAction;
import org.reldb.dbrowser.ui.content.rel.DbTreeItem;
import org.reldb.... |
ralscha/eds-starter6-jpa | client/app/view/base/LockingWindow.js | /**
* This class provides the modal Ext.Window support for all Authentication forms. It's
* layout is structured to center any Authentication dialog within it's center
*/
Ext.define('Starter.view.base.LockingWindow', {
extend: 'Ext.window.Window',
cls: 'auth-locked-window',
closable: false,
resizable: ... |
Kanma/Athena-Core | unittests/Athena-Core/tests/test_LocationManager.cpp | #include <UnitTest++.h>
#include <Athena-Core/Data/LocationManager.h>
#include <Athena-Core/Data/DataStream.h>
#include <Athena-Core/Data/Serialization.h>
using namespace Athena;
using namespace Athena::Data;
using namespace std;
TEST(LocationManager_Singleton)
{
CHECK(!LocationManager::getSingletonPtr());
... |
Kinway050/bk-ci | src/backend/booster/bk_dist/controller/pkg/dashboard/dashboard.go | /*
* Copyright (c) 2021 THL A29 Limited, a Tencent company. All rights reserved
*
* This source code file is licensed under the MIT License, you may obtain a copy of the License at
*
* http://opensource.org/licenses/MIT
*
*/
package dashboard
import (
"net/http"
"github.com/Tencent/bk-ci/src/booster/common/... |
sridharshree303/MyProject | Dairy-Management-System-Chandhu/src/main/java/com/cg/dms/Status.java | <filename>Dairy-Management-System-Chandhu/src/main/java/com/cg/dms/Status.java
package com.cg.dms;
public enum Status {
APPROVED,PENDING,REJECTED;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.