repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
maierbn/opendihu | core/src/specialized_solver/solid_mechanics/hyperelasticity/01_material_computations.h | <filename>core/src/specialized_solver/solid_mechanics/hyperelasticity/01_material_computations.h
#pragma once
#include <Python.h> // has to be the first included header
#include "specialized_solver/solid_mechanics/hyperelasticity/expression_helper.h"
#include "specialized_solver/solid_mechanics/hyperelasticity/00_in... |
BroadleafCommerce/ReactStarter | api/src/main/java/com/mycompany/api/endpoint/theme/ThemeEndpoint.java | <reponame>BroadleafCommerce/ReactStarter
/*
* #%L
* React API Starter
* %%
* Copyright (C) 2009 - 2017 Broadleaf Commerce
* %%
* Broadleaf Commerce React Starter
*
* Written in 2017 by Broadleaf Commerce <EMAIL>
*
* To the extent possible under law, the author(s) have dedicated all copyright and related and... |
SunBeau/qlibc | tests/test_qhasharr_darkdh.c | /******************************************************************************
* qLibc
*
* Copyright (c) 2010-2015 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistri... |
fexter-svk/C90-Compiler-EIE2 | src/c_compiler/ast/ast_dowhileloop.cpp | #include "ast_dowhileloop.hpp"
DoWhileLoop::DoWhileLoop(Expression* _conditions, Expression* _statement){
conditions = _conditions;
if (_statement){
statement = _statement;
}
}
void DoWhileLoop::add(Expression* _exp){
if (statement){
statement->add(_exp);
}
}
uint32_t DoWhileLoop::getSize(Context& co... |
lingxuan630/fis-postprocessor-amd | test/expected/async/modE.js | define('ns:modE', function(require) {
return 5;
});
// globa async as sync
require(['ns:modA', 'ns:modB'], function(modA, modB) {
console.log('here');
}); |
kylin589/cross_border | renren-admin/src/main/java/io/renren/modules/sys/service/ConsumeService.java | package io.renren.modules.sys.service;
import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.sys.entity.ConsumeEntity;
import java.math.BigDecimal;
import java.util.Map;
/**
* 消费记录
*
* @author wdh
* @email <EMAIL>
* @date 2018-12-17 17:36:01
*/
publ... |
Killian-G/doom-nukem | srcs/scene/editor/draw_sector.c | <filename>srcs/scene/editor/draw_sector.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* draw_sector.c ... |
pustian/pattern | 96-facade/java/01/CameraImpl.java | public class CameraImpl implements Camera {
public void takePicture() {
System.out.println("--- take picture ---");
}
}
|
liuhpleon/RubyLCPractice | test/509_Fibonacci_Number_Test.rb | require 'test/unit'
require_relative '../leetcode/509_Fibonacci_Number'
class FibonacciNumberTest < Test::Unit::TestCase
def setup
@fib = FibonacciNumber.new
end
def test_solution
assert_equal @fib.fib(5), 5
end
end
|
gta-chaos-mod/plugin-sdk | plugin_III/game_III/meta/meta.CAntennas.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "PluginBase.h"
namespace plugin {
META_BEGIN(CAntennas::Init)
static int address;
static int global_address;
st... |
deyani27/gatsby-cloud-poc | src/components/TopArticlesHome/TopArticlesHome.js | import React from "react"
import { Link } from "gatsby"
import "./TopArticles.scss"
function Article({ title, byline, category, imageUrl, articleUrl }) {
return (
<div className="top_articles__columns__column__inner">
<div
className="top_articles__columns__column__image"
style={{ backgroun... |
prabal999/Design-Patterns- | src/main/java/com/prabalhub/design/patterns/structural/decorator/Sandwich.java | package com.prabalhub.design.patterns.structural.decorator;
/**
* Sandwich component.
* @author <NAME>
*
*/
public interface Sandwich {
String make();
int getCost();
}
|
BoomApps-LLC/SteemApp | steemj-core/src/main/java/eu/bittrade/libs/steemj/base/models/operations/virtual/FillOrderOperation.java | <reponame>BoomApps-LLC/SteemApp
package eu.bittrade.libs.steemj.base.models.operations.virtual;
import java.util.Map;
import org.apache.commons.lang3.builder.ToStringBuilder;
import com.fasterxml.jackson.annotation.JsonProperty;
import eu.bittrade.libs.steemj.base.models.AccountName;
import eu.bittrade.libs.steemj.... |
dexterdarwich/lightbend-academy | LAC-Sharding-v1/exercises/java/src/test/java/com/reactivebbq/orders/SQLOrderRepositoryTest.java | <gh_stars>0
package com.reactivebbq.orders;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class SQLOrderRepositoryTest extends OrderRepositoryTest {
private Executor executor;
@Override
public OrderRepository createOrderRe... |
Charismara/ImmersivePortalsModForForge | src/main/java/com/qouteall/immersive_portals/ducks/IEWorldChunk.java | <filename>src/main/java/com/qouteall/immersive_portals/ducks/IEWorldChunk.java<gh_stars>1-10
package com.qouteall.immersive_portals.ducks;
import net.minecraft.entity.Entity;
import net.minecraft.util.ClassInheritanceMultiMap;
public interface IEWorldChunk {
ClassInheritanceMultiMap<Entity>[] getEntitySections();... |
ChanhyoLee/WICWIU | Documentation/WICWIU API 설명서/class_container.js | <reponame>ChanhyoLee/WICWIU<filename>Documentation/WICWIU API 설명서/class_container.js
var class_container =
[
[ "Container", "class_container.html#ab2bf85021abd93687431712eec397bd6", null ],
[ "~Container", "class_container.html#aa842cc3579205a9431569dea02b0976e", null ],
[ "GetElement", "class_container.htm... |
kzborisov/SoftUni | 3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/05. Inheritance/06_stack_of_strings/main.py | class Stack:
def __init__(self):
self.data = []
def push(self, element):
self.data.append(element)
def pop(self):
return self.data.pop()
def top(self):
return self.data[-1]
def is_empty(self):
return False if self.data else True
def __str__(self):
... |
JoeyBling/base-boot | base-common/src/main/java/com/tynet/saas/common/util/StringUtils.java | <filename>base-common/src/main/java/com/tynet/saas/common/util/StringUtils.java
package com.tynet.saas.common.util;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Arrays;
import java.util.Date;
/**
* 字符串工具类
*
* @author Created b... |
xu456as/TankWeb | mock/article.js | import { parse } from 'url';
export const getArticles = [
{
id: 0,
title: "AI Tank游戏规则",
author: "fangheng",
content: [
'1.地图大小为N*N,中心旋转对称,队伍的tank出生在地图的两个对边角上。',
'2.地图上有以下元素',
'2.1.障碍物,不可被摧毁。地图的最外围会被一圈障碍物覆盖。',
' 2.2.战旗,始终固定在地图中心出现。可被经过的tank获得。战旗消失后会在固定回合后重新出现。',
' 2.3.森林,处于森林中的tan... |
TexBlock/project-rankine | src/main/java/com/cannolicatfish/rankine/world/gen/feature/FallenLogFeature.java | package com.cannolicatfish.rankine.world.gen.feature;
import com.cannolicatfish.rankine.blocks.RankineOreBlock;
import com.cannolicatfish.rankine.init.Config;
import com.cannolicatfish.rankine.init.RankineBlocks;
import com.cannolicatfish.rankine.util.WorldgenUtils;
import com.mojang.serialization.Codec;
import net.mi... |
jmbuck/mediarchive | server/src/main/java/com/mediarchive/server/service/SeriesRepository.java | <reponame>jmbuck/mediarchive<gh_stars>0
package com.mediarchive.server.service;
import com.mediarchive.server.domain.MediaList;
import com.mediarchive.server.domain.Series;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface SeriesRepository extends CrudRepository<Serie... |
connect-foundation/2019-06 | server/src/database/index.js | <filename>server/src/database/index.js
import fs from 'fs';
import path from 'path';
import Sequelize from 'sequelize';
import configs from '../config/config';
const env = process.env.NODE_ENV || 'development';
const config = configs[env];
const db = {};
const { database, username, password } = config;
const sequeliz... |
tonioshikanlu/tubman-hack | sources/b/l/a/d/a/e/e.java | package b.l.a.d.a.e;
import android.os.IInterface;
public interface e extends IInterface {
}
|
atul-vyshnav/2021_IBM_Code_Challenge_StockIT | src/StockIT-v1-release_source_from_JADX/sources/com/google/zxing/datamatrix/encoder/EncoderContext.java | <reponame>atul-vyshnav/2021_IBM_Code_Challenge_StockIT
package com.google.zxing.datamatrix.encoder;
import com.google.zxing.Dimension;
import java.nio.charset.StandardCharsets;
import kotlin.UByte;
final class EncoderContext {
private final StringBuilder codewords;
private Dimension maxSize;
private Dimen... |
amvb/GUCEF | dependencies/MyGui/UnitTests/UnitTest_TreeControl/GenericNode.h | /*!
@file
@author <NAME>
@date 08/2009
*/
#ifndef __GENERIC_NODE_H__
#define __GENERIC_NODE_H__
namespace MyGUI
{
template<class NODE, class OWNER>
class GenericNode
{
public:
typedef std::vector<NODE*> VectorGenericNodePtr;
GenericNode();
GenericNode(OWNER* pOwner);
Generic... |
fjacobs/spring-data-examples | jpa/deferred/src/main/java/example/service/Customer1493Service.java | <gh_stars>1-10
package example.service;
import example.repo.Customer1493Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1493Service {
public Customer1493Service(Customer1493Repository repo) {
}
}
|
rhuan080/dls-repository-stack | shared-source/src/edu/ucar/dls/suggest/resource/urlcheck/UrlValidator.java | <gh_stars>1-10
/*
Copyright 2017 Digital Learning Sciences (DLS) at the
University Corporation for Atmospheric Research (UCAR),
P.O. Box 3000, Boulder, CO 80307
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 o... |
pankajnegi17/hermes-ui-widget | example/src/redux/actions/activeChatsActions.js | export const ADD_ACTIVE_CHAT = "ADD_ACTIVE_CHAT";
export const DELETE_ACTICE_CHAT = "DELETE_ACTICE_CHAT";
export const DELETE_ALL_ACTIVE_CHATS = "DELETE_ALL_ACTIVE_CHATS";
|
korneliakobiela/TAU-Design-Editor | design-editor/src/panel/property/attribute/attribute-element-interactive.js | <gh_stars>0
import mustache from 'mustache';
import $ from 'jquery';
import path from 'path';
import utils from '../../../utils/utils';
import {DressElement} from '../../../utils/dress-element';
import {appManager as AppManager} from '../../../app-manager';
var brackets = utils.checkGlobalContext('brackets');
var Pref... |
sfahad1414/AGENT | components/page-analyzer/tests/test_concrete_state_featurizer.py | <reponame>sfahad1414/AGENT
import json
import pandas as pd
import pytest
from services.concrete_state_featurizer import calc_color_distance, calc_point_distance, sigmoid, get_nearest_color, \
normalize, ConcreteStateFeaturize, basic_html_tags
class TestConcreteStateFeaturize:
def test_calc_color_distance_sa... |
MiguelGL/dots-and-boxes | server/src/main/java/com/mgl/dotsandboxes/server/resources/game/exception/IllegalConnectionExceptionMapper.java | package com.mgl.dotsandboxes.server.resources.game.exception;
import com.mgl.dotsandboxes.server.resources.support.ErrorResponse;
import com.mgl.dotsandboxes.server.service.game.exception.IllegalConnectionException;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ControllerAd... |
tranquilitybase-io/tb-houston-service | models/landing_zone_action.py | from config import db, ma
class LandingZoneAction(db.Model):
__tablename__ = "landingzoneaction"
__table_args__ = {"schema": "eagle_db"}
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String)
categoryName = db.Column(db.String)
categoryClass = db.Column(db.String)
... |
DamieFC/chromium | chrome/browser/resources/read_later/side_panel/app.js | // Copyright 2021 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.
// TODO(crbug.com/1199527): The current structure of c/b/r/read_later/* is
// only temporary. Eventually, this side_panel directory should become the main... |
KeyrisXdSnow/release | src/main/java/io/bootique/tools/release/model/persistent/ClosedIssue.java | package io.bootique.tools.release.model.persistent;
import io.bootique.tools.release.model.persistent.auto._ClosedIssue;
public class ClosedIssue extends _ClosedIssue {
private static final long serialVersionUID = 1L;
public ClosedIssue() {
}
public ClosedIssue(OpenIssue issue) {
setGithubI... |
Matixsss/Minecraft-Zmod | Zmod 1.15.2/src/main/java/com/DystryktZ/Network/ClientPacketSettings.java | package com.DystryktZ.Network;
import java.util.function.Supplier;
import com.DystryktZ.ZmodJson;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.network.NetworkEvent;
public class ClientPacketSetti... |
herrgrossmann/jo-widgets | modules/core/org.jowidgets.api/src/main/java/org/jowidgets/api/layout/ICachedFillLayout.java | /*
* Copyright (c) 2013, grossmann
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of condit... |
sqerison/CloudDeploy_System | lib/eops/lib/domain.rb | class Domain
def initialize
@sdb = AWS::SimpleDB.new
end
def create(domain_name)
AWS::SimpleDB.consistent_reads do
@sdb.domains.create(domain_name)
end
end
def destroy(domain_name)
@sdb.domains[domain_name].delete
end
def destroy_item(domain_name, item_name)
@sdb.domains[doma... |
kabicm/arbor | modcc/modccutil.hpp | #pragma once
#include <exception>
#include <memory>
#include <sstream>
#include <vector>
#include <initializer_list>
namespace impl {
template <typename C, typename V>
struct has_count_method {
template <typename T, typename U>
static decltype(std::declval<T>().count(std::declval<U>()), std::t... |
xswz8015/infra | go/src/infra/cros/cmd/prototype-rts/internal/cmd/flags.go | <reponame>xswz8015/infra
package cmd
import "github.com/maruel/subcommands"
type flags struct {
subcommands.CommandRunBase
progressSinkPort int
tlsCommonPort int
}
func (f *flags) InitRTSFlags() {
if f == nil {
*f = flags{}
}
f.Flags.IntVar(&f.progressSinkPort, "progress-sink-port", 0, "Port for the loca... |
LucaCappelletti94/repairing_genomic_gaps | repairing_genomic_gaps/datasets/build_synthetic_dataset.py |
import pandas as pd
from cache_decorator import Cache
from typing import List, Tuple, Dict
from ucsc_genomes_downloader import Genome
from tensorflow.keras.utils import Sequence
from ucsc_genomes_downloader.utils import tessellate_bed
from keras_synthetic_genome_sequence import SingleGapCenterSequence, SingleGapWindow... |
bopopescu/google-cloud-sdk | lib/googlecloudsdk/sql/sql.py | # Copyright 2013 Google Inc. All Rights Reserved.
"""This file can be executed directly to run the CLI or loaded as a module.
"""
import os
from googlecloudsdk.core import cli
_cli = cli.CLILoader(
name='sql',
command_root_directory=os.path.join(
cli.GoogleCloudSDKPackageRoot(),
'sql',
... |
albertofinardi/FINFO_1 | 11_15/3.c | <reponame>albertofinardi/FINFO_1<filename>11_15/3.c
/*
Scrivere un programma che apre in scrittura un file di testo il cui
nome, di al massimo 30 caratteri, è chiesto all'utente. In seguito,
il programma chiede all'utente quanti valori interi vuole acquisire
da tastiera, e poi procede con l'acquisizione da tastiera del... |
KamillaGarifullina/jsdk | uploader/build.cfg.js | export const uploader_build_cfg = [
{
in: './uploader/regular/index.js',
out: './uploader/build/regular/index.min.js',
minify: true,
minifyHtml: true,
},
{
in: './uploader/regular/index.css',
out: './uploader/build/regular/index.css',
minify: false,
},
{
in: './uploader/regular... |
timfel/netbeans | profiler/lib.profiler.ui/src/org/netbeans/lib/profiler/ui/cpu/LiveCPUViewUpdater.java | <filename>profiler/lib.profiler.ui/src/org/netbeans/lib/profiler/ui/cpu/LiveCPUViewUpdater.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... |
wall3001/Ance | app/src/main/java/wall/field/investigation/mvp/model/entity/ScoreItem.java | package wall.field.investigation.mvp.model.entity;
/**
* 评分项
* Created by wall on 2018/6/20 10:16
* <EMAIL>
*/
public class ScoreItem {
public String scoreId;
public String scoreName;
public String scoreValue;
public String scoreSummary;
public String scoreState; //0:通过1:需修改2:待审核
public St... |
akarnokd/reactive-streams-impl | src/main/java/com/github/akarnokd/rs/impl/ops/SkipUntil.java | /*
* Copyright 2011-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 agreed ... |
maulanayuseph/pikobar-jabarprov-go-id | api/vaksin.js | import { db } from '../lib/firebase'
function convertToJSON (documentSnapshot) {
const data = documentSnapshot.data()
return {
...data,
published_at: data.published_at.toDate(),
id: documentSnapshot.id
}
}
export async function get () {
const snapshots = await db
.collection('vaccination_conte... |
lacc97/media-driver | media_driver/agnostic/gen11/hw/mhw_vebox_g11_X.h | <gh_stars>1-10
/*
* Copyright (c) 2015-2018, 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, m... |
ytsarev/rally | rally/benchmark/scenarios/nova/servers.py | # Copyright 2013: Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... |
electronicvisions/pyplusplus | unittests/data/ft_input_static_matrix_to_be_exported.hpp | <reponame>electronicvisions/pyplusplus<gh_stars>1-10
// Copyright 2004-2008 <NAME>.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef __ft_input_static_matrix_to_be_exported_hpp__
#define __ft_input_... |
nancyanand2807/algorithm-ds | spoj/2727.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mp make_pair
#define pb push_back
int main() {
int t; cin>>t;
while(t--){
// char s; cin>>s;
int n,m; cin>>n>>m;
vector<int> ng,nm;
for(int i=0; i<n; i++){
int t; cin>>t;
... |
sergkh/api-gateway | app/forms/UserPermissionForm.scala | <filename>app/forms/UserPermissionForm.scala
package forms
import models.RolePermissions
import play.api.data.Forms._
import play.api.data._
import FormConstraints._
object UserPermissionForm {
val createForm = Form(
mapping(
"role" -> role,
"permissions" -> list(permission)
)(RolePermissions.a... |
Ehnryu/archives | games/RouglikeS/src/js/entity.js | <reponame>Ehnryu/archives
export const BLOCKS_NONE = 0;
export const BLOCKS_MOVEMENT = 1;
export const BLOCKS_LIGHT = 2;
export default class Entity {
constructor(visual) {
this._visual = visual;
this.blocks = BLOCKS_NONE;
}
getVisual() { return this._visual; }
toString() { return this._visual.name; }
des... |
ckcsu-web-2-0/ckcsu-web-2.0 | node_modules/swig-templates/lib/tags/import.js | <reponame>ckcsu-web-2-0/ckcsu-web-2.0<filename>node_modules/swig-templates/lib/tags/import.js
var utils = require('../utils')
/**
* Allows you to import macros from another file directly into your current context.
* The import tag is specifically designed for importing macros into your template with a specific c... |
alonbltest/wix-style-react | src/LabelledElement/LabelledElement.meta.js | import LabelledElement from './LabelledElement';
import Registry from '@ui-autotools/registry';
const metadata = Registry.getComponentMetadata(LabelledElement);
metadata.exportedFrom({
path: 'src/LabelledElement/LabelledElement.js',
});
|
nistefan/cmssw | CalibFormats/SiPixelObjects/src/PixelFEDConfig.cc | //
// This class stores the information about a FED.
// This include the number, crate, and base address
//
//
#include "CalibFormats/SiPixelObjects/interface/PixelFEDConfig.h"
#include "CalibFormats/SiPixelObjects/interface/PixelTimeFormatter.h"
#include <fstream>
#include <iostream>
#include <map>
#include <cassert>... |
SpruceHealth/ReactiveCocoa | ReactiveCocoaFramework/ReactiveCocoa/NSString+RACSupport.h | <reponame>SpruceHealth/ReactiveCocoa
//
// NSString+RACSupport.h
// ReactiveCocoa
//
// Created by <NAME> on 5/11/12.
// Copyright (c) 2012 GitHub, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RACDeprecated.h"
@class RACScheduler;
@class RACSequence;
@class RACSignal;
@interface NSStri... |
nymanjens/musik | app/js/shared/src/main/scala/hydro/flux/react/uielements/input/InputBase.scala | <reponame>nymanjens/musik
package hydro.flux.react.uielements.input
import japgolly.scalajs.react._
import org.scalajs.dom.console
/**
* Contains base traits to be used by input components that describe a single value.
*
* Aggregate input values are not supported.
*/
object InputBase {
/** A reference to a... |
flashypepo/myMicropython-Examples | robotcar/robot_client.py | # project: a client running on a device (Mac/Win/Linux)
# connected to a server, running on the Huzzah ESP8266
# 2017-0716 source: https://forums.adafruit.com/viewtopic.php?f=60&t=117874
import socket
def run():
host = '192.168.178.24' # host ip
#MAC-test: host = '192.168.178.14' #host ip-address
port = 5... |
sidav/shadow-of-the-wyrm | engine/generators/include/SeaGenerator.hpp | #pragma once
#include "Generator.hpp"
class SeaGenerator : public SOTW::Generator
{
public:
SeaGenerator(const std::string& map_exit_id);
virtual MapPtr generate(const Dimensions& dim) override;
};
|
IreneMercy/Joy-Village-Backup | joy/migrations/0015_about.py | # Generated by Django 2.2.10 on 2020-04-03 08:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('joy', '0014_auto_20200401_1206'),
]
operations = [
migrations.CreateModel(
name='About',
fields=[
(... |
lechium/tvOS144Headers | System/Library/PrivateFrameworks/GeoServices.framework/GEOETARoute.h | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 14, 2021 at 2:21:49 PM Mountain Standard Time
* Operating System: Version 14.4 (Build 18K802)
* Image Source: /System/Library/PrivateFrameworks/GeoService... |
johnoel/tagest | 21mt/src/gcomp.cpp | #include "precomp.h"
double normal_dev(const double x, const double mu, const double sigma);
#define TRACE(object) clogf << "line " << __LINE__ << ", file "\
<< __FILE__ << ", " << #object " = " << object << endl;
#define TTRACE(o1,o2) clogf << "line " << __LINE__ << ", file "\
<< __FILE__ << ", " << #o1 "... |
eseidel/native_client_patches | tools/modular-build/examples/libhello/libhello.h | /*
* Copyright 2010 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
void say_hello(void);
|
algalopez/MyCon | app/src/main/java/com/algalopez/mycon/wifi/presentation/wifi/WifiFragment.java | package com.algalopez.mycon.wifi.presentation.wifi;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.LinearLayoutManager;
impor... |
viniciusvss120/animais-fantasticos | javaScript/automacao-Frontend/animais-eslint/node_modules/@babel/plugin-proposal-private-property-in-object/lib/index.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _pluginSyntaxPrivatePropertyInObject = require("@babel/plugin-syntax-private-property-in-object");
var _helperCreateClassFeaturesPlugin = requi... |
karupayun/orbit | OrbitLinuxTracing/UprobesFunctionCallManagerTest.cpp | <gh_stars>0
// Copyright (c) 2020 The Orbit Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>
#include "UprobesFunctionCallManager.h"
namespace LinuxTracing {
TEST(UprobesFu... |
hejamu/gromacs | src/gromacs/utility/baseversion.h | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 2014,2015,2018,2019,2020, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <NAME>,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org... |
gremlin/chaosk | src/components/Loader.js | <filename>src/components/Loader.js
import PropTypes from 'prop-types'
import { keyframes } from '@emotion/react'
import clsx from 'clsx'
const loaderRotateKeyframes = keyframes({
'100%': {
transform: 'rotate(360deg)',
},
})
const loaderCircleKeyframes = keyframes({
'0%': {
strokeDasharray: '1, 200',
... |
nano-go/JCandy-Lang | src/main/java/com/nano/candy/interpreter/i2/builtin/type/MapObj.java | package com.nano.candy.interpreter.i2.builtin.type;
import com.nano.candy.interpreter.i2.builtin.CandyClass;
import com.nano.candy.interpreter.i2.builtin.CandyObject;
import com.nano.candy.interpreter.i2.builtin.type.MapObj;
import com.nano.candy.interpreter.i2.builtin.type.error.ArgumentError;
import com.nano.candy.i... |
UECIT/ecds-schema | src/main/java/uk/nhs/nhsia/datastandards/ecds/OtherLabourDeliveryStructure.java | /*
* XML Type: OtherLabourDelivery_Structure
* Namespace: http://www.nhsia.nhs.uk/DataStandards/XMLschema/CDS/ns
* Java type: uk.nhs.nhsia.datastandards.ecds.OtherLabourDeliveryStructure
*
* Automatically generated - do not modify.
*/
package uk.nhs.nhsia.datastandards.ecds;
/**
* An XML OtherLabourDelivery_S... |
att-innovate/firework | a10-soc-devkit-ghrd/software/uboot_bsp/uboot-socfpga/arch/arm/include/asm/arch-rmobile/gpio.h | #ifndef __ASM_ARCH_GPIO_H
#define __ASM_ARCH_GPIO_H
#if defined(CONFIG_SH73A0)
#include "sh73a0-gpio.h"
void sh73a0_pinmux_init(void);
#elif defined(CONFIG_R8A7740)
#include "r8a7740-gpio.h"
void r8a7740_pinmux_init(void);
#elif defined(CONFIG_R8A7790)
#include "r8a7790-gpio.h"
void r8a7790_pinmux_init(void);
#elif de... |
navikt/spsak | vtp-mock/dokumentgenerator/src/main/java/no/nav/foreldrepenger/fpmock2/dokumentgenerator/foreldrepengesoknad/erketyper/SoekersRelasjonErketyper.java | package no.nav.foreldrepenger.fpmock2.dokumentgenerator.foreldrepengesoknad.erketyper;
import java.time.LocalDate;
import javax.xml.datatype.DatatypeConfigurationException;
import no.nav.foreldrepenger.fpmock2.dokumentgenerator.foreldrepengesoknad.util.DateUtil;
import no.nav.vedtak.felles.xml.soeknad.felles.v1.Adop... |
ktSevindik/anima | anima/ui/scripts/avid.py | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2020, <NAME>
#
# This module is part of anima and is released under the MIT
# License: http://www.opensource.org/licenses/MIT
def edl_importer():
"""Helper script for AVID edl importer
"""
from anima.ui import SET_PYSIDE
SET_PYSIDE()
from anima.ui impo... |
DorinR/Politisense | src/controllers/BudgetController.js | const Firestore = require('@firestore').Firestore
const ExpenditureComputeAction = require('@action').ExpenditureComputeAction
const Utils = require('./util/ActivityVotingUtils')
function fetchAverageExpenditures (parliament = 43, year = 2019) {
return new Firestore()
.forParliament(parliament)
.atYear(year)... |
sriniwas-acharya/crv-temp | crigtt-web/src/main/java/gov/hhs/onc/crigtt/web/validate/ValidatorWebService.java | <reponame>sriniwas-acharya/crv-temp
package gov.hhs.onc.crigtt.web.validate;
import gov.hhs.onc.crigtt.validate.ValidatorReport;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
import org.apache.cxf.jaxrs.... |
wanghaEMQ/kuma | src/jni/kmapi-jni.h | <gh_stars>100-1000
#include <stdio.h>
#include <jni.h>
#include "kmapi.h"
using namespace kuma;
#include <android/log.h>
#define KUMA_TAG "kuma-jni"
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, KUMA_TAG, __VA_ARGS__)
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, KUMA_TAG, __VA_AR... |
sheeper/jakarta-cactus | framework/framework-12-13-14/src/main/java/org/apache/cactus/internal/ServiceEnumeration.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 th... |
alexamy/electric-circuit-testing-platform | spec/features/question/show_spec.rb | <reponame>alexamy/electric-circuit-testing-platform
# frozen_string_literal: true
require 'rails_helper'
feature 'User can view question', "
In order to explore questions
As an authenticated teacher
I'd like to be able to view questions
" do
given(:teacher) { create(:teacher) }
given!(:questions) { create_l... |
fake-name/ReadableWebProxy | WebMirror/management/rss_parser_funcs/feed_parse_extractGilaTranslation.py | def extractGilaTranslation(item):
"""
# Gila Translation Monster
"""
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or 'preview' in item['title'].lower():
return None
ltags = [tmp.lower() for tmp in item['tags']]
if 'dawn traveler' in ltags and 'translation' in l... |
201244010/store | src/pages/DeviceManagement/Network/NetworkConfig/index.js | <reponame>201244010/store
import React from 'react';
import { Card, Tabs, Icon } from 'antd';
import { connect } from 'dva';
import { formatMessage } from 'umi/locale';
import { STATUS } from '@/constants/index';
import { IconBandwidth } from '@/components/IconSvg';
import QosConfig from './QosConfig';
import QosCreate... |
wkeese/deliteful | BoilerplateTextbox.js | /** @module delite/BoilerplateTextbox */
define([
"dcl/dcl",
"delite/register",
"delite/uacss",
"delite/Container",
"delite/FormValueWidget",
"delite/Widget",
"delite/handlebars!./BoilerplateTextbox/BoilerplateTextbox.html",
"delite/handlebars!./BoilerplateTextbox/Field.html",
"delite/activationTracker",
"req... |
samuelteixeiras/openwhisk | tests/src/whisk/common/ConfigTests.scala | <reponame>samuelteixeiras/openwhisk
/*
* Copyright 2015-2016 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
chalk/ux | devwidgets/userpermissions/javascript/userpermissions.js | /*
* Licensed to the Sakai Foundation (SF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The SF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use th... |
marmolak/gray386linux | src/linux-3.7.10/drivers/scsi/qla2xxx/qla_inline.h | <reponame>marmolak/gray386linux
/*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2012 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* qla2x00_debounce_register
* Debounce register.
*
* Input:
* port = register address.
*
* Returns:
* registe... |
BeanGreen247/surf | glib-2.64.0/gio/tests/test-pipe-unix.h | /* Unix pipe-to-self. This is a utility module for tests, not a test.
*
* Copyright © 2008-2010 Red Hat, Inc.
* Copyright © 2011 Nokia Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Soft... |
learningandgrowing/Data-structures-problems | mergesortedarays.py | def mergesortedarrays(arr1,arr2):
i = 0
j = 0
len1 = len(arr1)
len2 = len(arr2)
arr = []
while (i<len1) and (j < len2):
if arr1[i]<arr2[j]:
arr.append(arr1[i])
i = i + 1
else:
arr.append(arr2[j])
j += 1
while i < le... |
lordmarkm/pyxis | pyxis-security/src/main/java/com/pyxis/security/service/UserAccountServiceCustomImpl.java | <reponame>lordmarkm/pyxis<gh_stars>0
package com.pyxis.security.service;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import c... |
mindv0rtex/DearPyGui | DearPyGui/src/core/AppItems/basic/mvText.h | #pragma once
#include "mvTypeBases.h"
//-----------------------------------------------------------------------------
// Widget Index
//
// * mvText
// * mvLabelText
//
//-----------------------------------------------------------------------------
namespace Marvel {
//-------------------------------------... |
kirchnerlab/MSTK | tests/fe/QuickCharge-test.cpp | <filename>tests/fe/QuickCharge-test.cpp<gh_stars>1-10
/*
* QuickCharge-test.cpp
*
* Copyright (C) 2012 <NAME>
*
* This file is part of the Mass Spectrometry Toolkit (MSTK).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (t... |
VirtualLG/vimrc | my_plugins/youcompleteme/third_party/ycmd/ycmd/tests/javascript/get_completions_test.py | # Copyright (C) 2021 ycmd contributors
#
# This file is part of ycmd.
#
# ycmd is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ycmd... |
reels-research/iOS-Private-Frameworks | NeutrinoCore.framework/NUJSTime.h | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/NeutrinoCore.framework/NeutrinoCore
*/
@interface NUJSTime : NUJSRational
@property (readonly) struct { long long x1; int x2; unsigned int x3; long long x4; } time;
@property (readonly) NSValue *value;
- (id)initWithTime:(struct { long long ... |
oguzcanphilips/embeddedinfralib | hal/interfaces/test/TestFlash.cpp | #include "gtest/gtest.h"
#include "hal/interfaces/Flash.hpp"
#include "hal/interfaces/test_doubles/FlashStub.hpp"
class FlashAddressTest
: public testing::Test
{
public:
FlashAddressTest()
: flash(3, 7)
{}
hal::FlashStub flash;
};
TEST_F(FlashAddressTest, StartAddress)
{
EXPECT_EQ(0, flas... |
XiaoSenLuo/c-cpp-math-library | itpp4.3.1-library/static-lib/include/itpp/stat/misc_stat.h | /*!
* \file
* \brief Miscellaneous statistics functions and classes - header file
* \author <NAME>, <NAME> and <NAME>
*
* -------------------------------------------------------------------------
*
* Copyright (C) 1995-2010 (see AUTHORS file for a list of contributors)
*
* This file is part of IT++ - a C++ li... |
zhangchangchun3009/java-web-spring4-cxf-mybatis | scm.common/src/main/java/pers/zcc/scm/common/excel/vo/ExcelImportVO.java | <reponame>zhangchangchun3009/java-web-spring4-cxf-mybatis
package pers.zcc.scm.common.excel.vo;
import java.util.ArrayList;
import java.util.List;
import pers.zcc.scm.common.user.vo.UserVO;
/**
* The Class ExcelImportVO.
*
* @author zhangchangchun
* @since 2022年1月4日
*/
public class ExcelImportVO {
/**
... |
000ssg/xLib | xLibWAMP/src/main/java/ssg/lib/wamp/WAMPFeature.java | <gh_stars>0
/*
* The MIT License
*
* Copyright 2020 <NAME>/<EMAIL>
*
* 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 ... |
aroychoudhury/innovista | sharing-services/src/main/java/org/verizon/sharingservices/dataobject/ShareResponse.java | <reponame>aroychoudhury/innovista<gh_stars>0
package org.verizon.sharingservices.dataobject;
import java.util.List;
import org.verizon.sharingservices.domain.User;
import org.verizon.sharingservices.domain.Workgroup;
/**
* Response Data transfer object
* @author Bhuvitha
*
*/
public class ShareResponse {
privat... |
gaybro8777/osf.io | api/subjects/urls.py | <gh_stars>100-1000
from django.conf.urls import url
from api.subjects import views
app_name = 'osf'
urlpatterns = [
url(r'^(?P<subject_id>\w+)/$', views.SubjectDetail.as_view(), name=views.SubjectDetail.view_name),
url(r'^(?P<subject_id>\w+)/children/$', views.SubjectChildrenList.as_view(), name=views.Subjec... |
HuttonICS/diversify-server | src/jhi/diversify/server/database/tables/pojos/ViewSpeciesdata.java | <filename>src/jhi/diversify/server/database/tables/pojos/ViewSpeciesdata.java<gh_stars>0
/*
* This file is generated by jOOQ.
*/
package jhi.diversify.server.database.tables.pojos;
import java.io.Serializable;
import javax.annotation.Generated;
/**
* VIEW
*/
@Generated(
value = {
"http://www.jooq.o... |
automatictester/useful-stuff | java/design-patterns/src/test/java/uk/co/automatictester/creational/factorymethod/test/CloudClientFactoryTest.java | package uk.co.automatictester.creational.factorymethod.test;
import org.testng.annotations.Test;
import uk.co.automatictester.creational.factorymethod.CloudClient;
import uk.co.automatictester.creational.factorymethod.CloudClientFactory;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.as... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.