repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
nanotech-empa/aiida-nanotech-empa | aiida_nanotech_empa/workflows/gaussian/__init__.py | from .scf_workchain import GaussianScfWorkChain
from .relax_workchain import GaussianRelaxWorkChain
from .delta_scf_workchain import GaussianDeltaScfWorkChain
from .natorb_workchain import GaussianNatOrbWorkChain
from .spin_workchain import GaussianSpinWorkChain
from .hf_mp2_workchain import GaussianHfMp2WorkChain
fro... |
SamGG/mev | source/org/tigr/microarray/mev/cluster/gui/impl/terrain/TerrainInitDialog.java | <filename>source/org/tigr/microarray/mev/cluster/gui/impl/terrain/TerrainInitDialog.java<gh_stars>1-10
/*******************************************************************************
* Copyright (c) 1999-2005 The Institute for Genomic Research (TIGR).
* Copyright (c) 2005-2008, the Dana-Farber Cancer Institute (DF... |
joe-chacko/yoko | yoko-core/src/test/java/test/types/DynAnyTypes/TestStructHelper.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... |
jmapi/cdmi-core-monitor | src/main/java/pw/cdmi/om/protocol/cim/device/CIM_SCSIController.java | package pw.cdmi.om.protocol.cim.device;
import javax.cim.UnsignedInteger16;
import javax.cim.UnsignedInteger32;
import javax.cim.UnsignedInteger64;
public class CIM_SCSIController extends CIM_Controller {
private UnsignedInteger16 ProtectionManagement;
private UnsignedInteger32 MaxDataWidth;
private Unsig... |
puyoai/puyoai | src/core/puyo_controller_performance_test.cc | <reponame>puyoai/puyoai<filename>src/core/puyo_controller_performance_test.cc
#include "core/puyo_controller.h"
#include <gtest/gtest.h>
#include "base/time_stamp_counter.h"
#include "core/core_field.h"
#include "core/decision.h"
using namespace std;
TEST(PuyoControllerPerformanceTest, empty)
{
TimeStampCounter... |
today2098/algorithm | src/dp/lcs.hpp | <reponame>today2098/algorithm
#ifndef ALGORITHM_LCS_HPP
#define ALGORITHM_LCS_HPP
#include <algorithm>
#include <string>
#include <vector>
namespace algorithm {
// 最長共通部分列 (LCS:Longest Common Subsequence). O(|A|*|B|).
template <class Class>
Class lcs(const Class &a, const Class &b) {
int an = a.size(), bn = b.si... |
elcarrion06/mcedit2 | src/mceditlib/blocktypes/rotation.py | """
rotation
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import logging
from collections import defaultdict
import numpy
from mceditlib.blocktypes import parseBlockstate, joinBlockstate, PCBlockTypeSet
log = logging.getLogger(__name__)
def blankRotationTable():
ta... |
qizhenghao/LeetCode | src/com/bruce/open/self/Sohu_FindMaxNum.java | package com.bruce.open.self;
import java.util.Arrays;
/**
* Created by Administrator on 2017/1/4 0004.
*/
public class Sohu_FindMaxNum {
public static void main(String[] args) {
// System.out.println(findMaxNum(7938265, 3));
// System.out.println(findMaxNum(37938265, 3));
// System.out.pr... |
uk-gov-mirror/ministryofjustice.c100-application | app/services/c100_app/solicitor_decision_tree.rb | <gh_stars>1-10
module C100App
class SolicitorDecisionTree < BaseDecisionTree
def destination
return next_step if next_step
case step_name
when :personal_details
edit(:address_details)
when :address_details
edit(:contact_details)
when :contact_details
edit('/s... |
undp/transparencyportal | undp-transparency-portal-fe/src/shared/actions/downLoadCSV.js | <gh_stars>1-10
import Api from '../../lib/api';
export const EXPORT_CSV = {
success: 'fetch_success/export_csv',
reset: 'reset/export_csv'
};
export const exportCSVSuccess = (url) => ({
type: EXPORT_CSV.success,
url
});
export const exportCSVReset = () => ({
type: EXPORT_CSV.reset
});
const sav... |
gburd/wave | test/org/waveprotocol/box/server/robots/agent/RobotAgentUtilTest.java | /**
* Copyright 2011 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 t... |
fysabelah/URI | BEGINNER/1096.cpp | #include<iostream>
using namespace std;
int main(){
int i = 1, j = 7;
do{
cout << "I=" << i << " J=" << j << endl;
j--;
if(j == 4){
i+=2;
j = 7;
}
}while(i!=11);
return(0);
} |
jasonwebster/tumblargh | lib/tumblargh/renderer/base.rb | <gh_stars>10-100
module Tumblargh
module Renderer
class Base
class << self
# Define a simple tag on the block.
# Name being tag name, and optionally the attibute/method to call
# on the context. If the second argument is left off, it'll just use the tag name.
def contextua... |
julienchastang/thredds | cdm/src/main/java/ucar/nc2/util/net/EasySSLProtocolSocketFactory.java | /*
* Copyright 1998-2009 University Corporation for Atmospheric Research/Unidata
*
* Portions of this software were developed by the Unidata Program at the
* University Corporation for Atmospheric Research.
*
* Access and use of this software shall impose the following obligations
* and understandings on ... |
sahilpaudel/AfterGlow | frontend/app/helpers/get-chart-icon.js | <filename>frontend/app/helpers/get-chart-icon.js
import Ember from 'ember';
import ResultViewMixin from 'frontend/mixins/result-view-mixin';
export function getChartIcon(params /*, hash*/ ) {
if (params && params[0]) {
return ResultViewMixin.mixins[0].properties.resultViewIcons[params[0].toLowerCase()];
... |
WorldThirteen/cell-simulator | src/constants/world.js | export const PARTS_NUM = 15;
export const UNIT_RAD = 30;
export const FOOD_RAD = 8;
export const LINE_LENGTH = 25;
|
maximaximal/BomberPi | src/Client/BombPlaceSystem.cpp | <reponame>maximaximal/BomberPi
#include <Client/BombPlaceSystem.hpp>
#include <easylogging++.h>
#include <Client/PlayerInputComponent.hpp>
#include <Client/BombLayerComponent.hpp>
namespace Client
{
BombPlaceSystem::BombPlaceSystem(EntityFactory *entityFactory)
{
m_entityFactory = entityFactory;
... |
saintaxl/work | web/src/main/java/com/spring/demo/UserLogonController.java | <reponame>saintaxl/work<gh_stars>0
/**
*
*/
package com.spring.demo;
import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.Mod... |
oldbk/bookmaker | common/extensions/yii-node-socket/lib/js/server/events/client/public.data.js | var public_data = {
componentManager : null,
name : 'public_data',
init : function () {},
handler : function (key, fn) {
fn(
public_data.componentManager.get('publicData').get(key)
);
}
};
module.exports = public_data; |
atool/mybatis-fluent | fluent-mybatis-test/src/test/java/cn/org/atool/fluent/mybatis/test/issue/Issue_I3QVPB.java | <reponame>atool/mybatis-fluent<gh_stars>0
package cn.org.atool.fluent.mybatis.test.issue;
import cn.org.atool.fluent.mybatis.base.crud.IQuery;
import cn.org.atool.fluent.mybatis.base.crud.JoinBuilder;
import cn.org.atool.fluent.mybatis.base.free.FreeQuery;
import cn.org.atool.fluent.mybatis.base.model.SqlOp;
import c... |
githubwua/cdap | cdap-ui/app/cdap/components/RulesEngineHome/ImportRulebookWizard/ImportRulebookStore.js | /*
* Copyright © 2017 <NAME>, 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 i... |
fossabot/me-1 | packages/service/src/lib/authInfo.js | import {compositeKeySeparator} from "@randy.tarampi/js";
import {Record} from "immutable";
export const AUTH_INFO_TYPE = {
oAuth: "OAUTH_TOKEN",
oAuth2: "OAUTH2_TOKEN"
};
export class AuthInfo extends Record({
token: null,
tokenSecret: null,
id: null,
source: null,
type: AUTH_INFO_TYPE.oAu... |
micmc422/woo-next-photo-paris | src/components/checkout/CartItemsList.js | import { uniqueId } from "lodash";
import { useTranslation } from "next-i18next";
import Image from "next/image";
import Link from "next/link";
import { getUpdatedItems, updateCart } from "../../functions";
import { Cross } from "../icons";
const CartItemsList = ({ cart }) => {
const { t } = useTranslation("shop");
... |
drigols/Studies | modules/python-codes/modules/tips-and-tricks/debugger/src/example-02.py | <filename>modules/python-codes/modules/tips-and-tricks/debugger/src/example-02.py<gh_stars>0
count = 1
while count <= 10:
store = count
count += 1
breakpoint()
breakpoint()
name = "Rodrigo"
age = 32
breakpoint()
hello = "Hello World!"
breakpoint()
# Test
assert hello == "Hello World!"
|
Darkartt/SoftUni | SoftUni-Basic/pre_exam/test_3.py | <gh_stars>0
amount_of_dancers = int(input())
amount_of_points = float(input())
season = input()
place = input()
money_left = 0
charity = 0
dancers_point_won = amount_of_dancers * amount_of_points
dancers_point_won_aboard = dancers_point_won + (dancers_point_won * 0.50)
money_per_dancer = 0
if place == "Bulgaria":
... |
nattatorn-dev/react-filters | test/Count.test.js | <filename>test/Count.test.js<gh_stars>10-100
import React from 'react';
const { describe, it, __base } = global;
import { shallow } from 'enzyme';
import sinon from 'sinon';
import { expect } from 'chai';
const { Count } = require(`${__base}components`);
describe('Count Component', () => {
it('should call onChange ... |
mdoshi96/beacls | docs/0.0.1/search/variables_e.js | var searchData=
[
['quiet',['quiet',['../dd/dfa/classhelperOC_1_1HJIPDE__extraArgs.html#abf0a76a1c7e38dbb797f7859fff9a791',1,'helperOC::HJIPDE_extraArgs']]]
];
|
WJLGH/jnoa | src/main/java/com/thinkgem/jeesite/modules/oa/web/OaTaskRecordController.java | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.oa.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.common.collect.Lists;
import com.google.commo... |
ewcchan/logging-log4j-audit | log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/generator/MethodDefinition.java | <gh_stars>0
/*
* 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"... |
grahamu/flyingcracker | flyingcracker/config/settings/secrets.py | import json
from unipath import Path
from django.core.exceptions import ImproperlyConfigured
SECRETS_DIR = Path(__file__).parent
with open(SECRETS_DIR.child("secrets.json")) as f:
secrets = json.loads(f.read())
def get_secret(setting, secrets=secrets):
"""
Get the secret constant or return explicit ex... |
Manuzor/ezEngine | Code/Engine/Foundation/Memory/Policies/StackAllocation.h | #pragma once
#include <Foundation/Basics.h>
#include <Foundation/Containers/HybridArray.h>
#include <Foundation/Memory/AllocatorBase.h>
#include <Foundation/Memory/MemoryUtils.h>
namespace ezMemoryPolicies
{
/// \brief This allocation policy works like a stack. You can only "push" and "pop" allocations
/// in t... |
hknochi/silk | silk-core/src/main/scala/org/silkframework/entity/metadata/FailureClassSerializer.scala | package org.silkframework.entity.metadata
import org.silkframework.entity.paths.UntypedPath
import org.silkframework.failures.{AccumulatedFailureClass, FailureClass}
import org.silkframework.runtime.serialization.{ReadContext, WriteContext}
import org.silkframework.failures.FailureClass._
import scala.xml.Node
case ... |
pmisteliac/spoofax-pie | example/tiger/manual/tiger.spoofax/src/main/java/mb/tiger/spoofax/task/TigerShowPrettyPrintedText.java | package mb.tiger.spoofax.task;
import mb.common.region.Region;
import mb.common.util.ListView;
import mb.jsglr.common.TermTracer;
import mb.jsglr1.common.JSGLR1ParseResult;
import mb.pie.api.ExecContext;
import mb.pie.api.ResourceStringSupplier;
import mb.pie.api.Task;
import mb.pie.api.TaskDef;
import mb.resource.Res... |
nowkoai/test | spec/frontend/pipelines/notification/deprecated_type_keyword_notification_spec.js | import VueApollo from 'vue-apollo';
import { createLocalVue, shallowMount } from '@vue/test-utils';
import { GlAlert, GlSprintf } from '@gitlab/ui';
import createMockApollo from 'helpers/mock_apollo_helper';
import waitForPromises from 'helpers/wait_for_promises';
import DeprecatedTypeKeywordNotification from '~/pipeli... |
jenergy/jzIntvImGui | app/src/main/cpp/jzintv/event/event_null.c | /*
* ============================================================================
* Title: Null Event Handling Subsystem
* Author: <NAME>
* ============================================================================
* This backend generates no events, and has the event core short-circuit.
* =============... |
liweitianux/DeltaPorts | ports/sysutils/nomad/dragonfly/patch-vendor_github.com_hashicorp_consul-template_signals_signals__unix.go | <reponame>liweitianux/DeltaPorts<filename>ports/sysutils/nomad/dragonfly/patch-vendor_github.com_hashicorp_consul-template_signals_signals__unix.go
--- vendor/github.com/hashicorp/consul-template/signals/signals_unix.go.orig 2021-02-23 22:29:46 UTC
+++ vendor/github.com/hashicorp/consul-template/signals/signals_unix.go... |
tcmoore32/sheer-madness | gosu-core/src/main/java/gw/internal/gosu/parser/statements/ThrowStatement.java | /*
* Copyright 2014 <NAME>, Inc.
*/
package gw.internal.gosu.parser.statements;
import gw.internal.gosu.parser.Expression;
import gw.internal.gosu.parser.CannotExecuteGosuException;
import gw.lang.parser.statements.IThrowStatement;
import gw.lang.parser.statements.ITerminalStatement;
import gw.lang.parser.stateme... |
smorenburg/python | src/old/hello.py | <filename>src/old/hello.py
#!/usr/bin/env python3
# This is a full line comment
# Comment each line
print('Hello, World!') # This is a trailing comment
"""
This is not a block comment.
This is a multiline string.
"""
|
zasey/market | src/main/java/market/service/DistilleryService.java | <filename>src/main/java/market/service/DistilleryService.java
package market.service;
import market.domain.Distillery;
import market.domain.Region;
import java.util.List;
public interface DistilleryService {
/**
* @return all the distilleries sorted by title
*/
List<Distillery> findAll();
/**
* @return al... |
sffc/fuchsia-clone | sdk/lib/sys/component/cpp/tests/utils.h | // Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_SYS_COMPONENT_CPP_TESTS_UTILS_H_
#define LIB_SYS_COMPONENT_CPP_TESTS_UTILS_H_
#include <fuchsia/component/decl/cpp/fidl.h>
#include <fuchsia/c... |
alonmm/VCSamples | VC2010Samples/MFC/general/dlgcbr32/Dlgbars.h | // DlgBars.h : header file
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with t... |
AlessandroBorges/Bor_Vulkan | Vulkan/jni/bor.vulkan.structs.VkDrawIndexedIndirectCommand.h | <filename>Vulkan/jni/bor.vulkan.structs.VkDrawIndexedIndirectCommand.h
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class bor_vulkan_structs_VkDrawIndexedIndirectCommand */
#ifndef _Included_bor_vulkan_structs_VkDrawIndexedIndirectCommand
#define _Included_bor_vulkan_structs_VkD... |
BYU-Open-Analytics/BYUOpenAssessments | config/routes.rb | class CustomDomain
def matches?(request)
return false if request.subdomain.length <= 0 || request.subdomain == 'www'
true
end
end
Rails.application.routes.draw do
root to: "default#index"
resources :lti_installs
devise_for :users, controllers: {
sessions: "sessions",
registrations: "regi... |
cybervisiontech/coopr | coopr-ui/app/features/crud/controllers/subnav-ctrl.js | /**
* SubnavCtrl
*/
angular.module(PKG.name+'.feature.crud').controller('SubnavCtrl',
function ($scope, $state, myApi) {
var path = $state.current.name.split('.')[0],
modelName = $state.current.data.modelName;
$scope.fetchSubnavList = fetchSubnavList;
fetchSubnavList();
/* -------------------------... |
h2ssh/Vulcan | src/graph/edge_ordered_graph.h | <reponame>h2ssh/Vulcan
/* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of <NAME>, <EMAIL>. Use of this code is governed by an
MIT-style License that can be f... |
franticsoftware/starports | Game/src/game/main.cpp | <filename>Game/src/game/main.cpp
/*
<NAME>
Created: February 21th 2010
*/
#include "Game.h"
#include "GameEngine.h"
#include "GameApp.h"
#include "APIHook.h"
#include <Dbghelp.h>
#include <iostream>
#include <tchar.h>
#include <strsafe.h>
#include <shlobj.h>
#pragma comment(lib, "DbgHelp")
#define MAX_BUFF_SIZE... |
cclauss/discovery-artifact-manager | src/snippetgen/mergesnippets/main.go | <reponame>cclauss/discovery-artifact-manager<filename>src/snippetgen/mergesnippets/main.go
// Package main contains the main driver for the mergesnippets tool,
// which merges manual and automatic snippets into public snippets
// that can be published to GCS.
//
// The simplest invocation is:
//
// main --primary=PA... |
Jocker08/metadata | metadata-web/src/main/java/com/ryo/metadata/web/support/jdbc/impl/OracleJdbcImpl.java | /*
* Copyright (c) 2018. houbinbin Inc.
* metadata All rights reserved.
*/
package com.ryo.metadata.web.support.jdbc.impl;
import com.ryo.metadata.core.constant.DriverNameConstant;
import com.ryo.metadata.core.service.DBService;
import com.ryo.metadata.core.service.impl.OracleDBService;
import com.ryo.metadata.co... |
katemihalikova/test262 | test/harness/verifyProperty-arguments.js | // Copyright (C) 2017 <NAME>. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
verifyProperty should receive at least 3 arguments: obj, name, and descriptor
includes: [propertyHelper.js]
---*/
assert.throws(Test262Error, () => {
verifyProperty();
}, "... |
amyjko/citrus-barista | edu/cmu/hcii/citrus/views/widgets/Checkbox.java | /*
*
* Citrus - A object-oriented, interpreted language that is designed to simplify
* the creation of dynamic, immediate feedback graphical desktop applications.
*
* Copyright (c) 2005 <NAME>
* All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the term... |
jnthn/intellij-community | plugins/InspectionGadgets/test/com/siyeh/igfixes/style/replace_with_string/Comment1.java | class Comment1 {
String s = new /*a*//*b*/ <caret>StringBuffer("asdf1"/*c*/)/*d*/./*e*/append(/*f*/"asdf2").toString(); /* one */ /* two */
} |
ljsvn/noveltysearch | WebContent/extjs/ux/CalendarPanel.js | Ext.calendar.CalendarPanel = Ext.extend(Ext.Panel, {
showDayView: false,
showWeekView: false,
showMonthView: true,
showNavBar: true,
todayText: '今天',
showTodayText: true,
showTime: true,
dayText: '天',
monthText: '本月',
// private
layoutConfig: {
layoutOn... |
V-Fib/FlurryClone | MMOCoreORB/src/templates/tangible/SharedShipObjectTemplate.h | <reponame>V-Fib/FlurryClone
/*
* SharedShipObjectTemplate.h
*
* Created on: 06/05/2010
* Author: victor
*/
#ifndef SHAREDSHIPOBJECTTEMPLATE_H_
#define SHAREDSHIPOBJECTTEMPLATE_H_
#include "templates/SharedTangibleObjectTemplate.h"
class SharedShipObjectTemplate : public SharedTangibleObjectTemplate {
Str... |
envisioning/tdb-storybook | src/components/OrganizationEditForm/stories.js | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import OrganizationEditForm from './';
import { mockA } from '../CardGrid/mock.js'
import { getCardUrl, getCloudinaryPath } from '../../utils/cloudinary_url'
const technologiesId = mockA.slice(0, 10).map(res => ({...res, image: getCardUr... |
briancostabile/tiva-bsp | source/bsp/bsp_Reset.h | /**
* Copyright 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, ... |
kirino17/ecef | src/aquarius2/proxy/ProxyFileDialogCallback.h | #pragma once
#include "../def/def.h"
class AQUADLL ProxyFileDialogCallback : public refcounted {
public:
ProxyFileDialogCallback(void* ptr);
~ProxyFileDialogCallback();
public:
///
// Continue the file selection. |selected_accept_filter| should be the 0-based
// index of the value selected from the acce... |
fergy/aplit_linux-5 | include/linux/crc-ccitt.h | <reponame>fergy/aplit_linux-5
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _LINUX_CRC_CCITT_H
#define _LINUX_CRC_CCITT_H
#include <linux/types.h>
extern u16 const crc_ccitt_table[256];
extern u16 const crc_ccitt_false_table[256];
extern u16 crc_ccitt(u16 crc, const u8 *buffer, size_t len);
extern u16 crc_ccitt_fal... |
gthreepwood/yats | modules/yats/templatetags/search.py | # -*- coding: utf-8 -*-
from django import template
register = template.Library()
@register.filter
def cut_text_for_xapian(text):
text = text.replace(';', ' ').replace(',', ' ').replace('"', '')
content = []
for word in text.split(' '):
if len(word) <= 245:
content.append(word)
ret... |
noecl1/multihammer | src/Model/ClientesModel.java | package Model;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
public class ClientesModel {
private dbConnection con;
public ArrayList<Cliente> getClientes() {
ArrayList<Cliente> client... |
testWorkbench-daily/h5ds | src/h5ds-core/components/layer-menu/PluginItem.js | import React, { Component } from 'react';
import { bindSelf } from '../../utils';
export default class PluginItem extends Component {
@bindSelf
onClick(e) {
this.props.onClick && this.props.onClick(e, this.data);
}
render() {
this.data = this.props.data;
const { pid, name = '未命名', version = '1.0.... |
shankar1729/qimpy | src/qimpy/electrons/_basis.py | <filename>src/qimpy/electrons/_basis.py
from __future__ import annotations
import qimpy as qp
import numpy as np
import torch
from ._basis_ops import _apply_ke, _apply_potential, _collect_density
from ._basis_real import BasisReal
from typing import Optional, Tuple, Union
class Basis(qp.TreeNode):
"""Plane-wave b... |
fujiehuang/ecto | src/pybindings/cells/And.cpp | <reponame>fujiehuang/ecto<gh_stars>10-100
/*
* Copyright (c) 2011, <NAME>, Inc.
* 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 abov... |
area55git/guard | vendor/appscode.com/client-go/credential/auth.go | package credential
import (
"google.golang.org/grpc/credentials"
)
type AuthType string
const (
Basic AuthType = "Basic"
Bearer AuthType = "Bearer"
)
type Auth struct {
Namespace string
Username string
AuthType AuthType
Secret string
}
func NewBasicAuth(ns, username, secret string) *Auth {
return &Au... |
ariegg/webiopi-drivers | chips/sensor/tcs3472x/drivers.py | # This code has to be added to the corresponding __init__.py
DRIVERS["tcs3472X"] = ["TCS34721", "TCS34723", "TCS34725", "TCS34727"]
|
waruqi/SakuraEngine | SakuraEngine/StaticBuilds/GraphicsInterface/GraphicsCommon/GpuTimer.h | /*
* @This File is Part of Sakura by SaeruHikari:
* @Description: Copyright SaeruHikari
* @Version: 0.1.0
* @Autor: SaeruHikari
* @Date: 2020-02-11 00:41:20
* @LastEditors : SaeruHikari
* @LastEditTime : 2020-02-12 12:31:10
*/
#pragma once
#include "Core/CoreMinimal/sinterface.h"
#include "Core/CoreMinimal/SD... |
allenlili/vc-language-compiler-by-java | src/Parser/vc.java | <gh_stars>0
/*
*
*/
package VC.Parser;
import VC.Scanner.Scanner;
import VC.Scanner.SourceFile;
import VC.Parser.Parser;
import VC.TreeDrawer.Drawer;
import VC.TreePrinter.Printer;
import VC.UnParser.UnParser;
import VC.ErrorReporter;
import VC.ASTs.AST;
public class vc {
private static Scanner scanner;
... |
rueckstiess/react-playground | src/components/random-data.js | <reponame>rueckstiess/react-playground<filename>src/components/random-data.js<gh_stars>0
import React from 'react'
/**
* Injects random, changing data in its children as `data` prop.
*/
export default React.createClass({
displayName: 'RandomDataGenerator',
getInitialState () {
return {
interval: 1000... |
mike10004/http-capture | http-capture-lib/src/main/java/io/github/mike10004/httpcapture/MultimapCookieCollection.java | package io.github.mike10004.httpcapture;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMultimap;
import com.google.common.collect.Multimap;
import com.google.common.collect.Ordering;
import java.util.Comparator;
import jav... |
MatheusKraisfeld/sales-api | src/main/java/com/github/matheuskraisfeld/exception/PedidoNaoEncontradoException.java | package com.github.matheuskraisfeld.exception;
public class PedidoNaoEncontradoException extends RuntimeException {
public PedidoNaoEncontradoException() {
super("Pedido não encontrado.");
}
}
|
njlr/seq | src/none.test.js | <filename>src/none.test.js
import * as seq from '../src';
test('none works for simple cases', () => {
expect([] |> seq.fromArray |> seq.none()).toEqual(true);
expect([ 1, 2, 3 ] |> seq.fromArray |> seq.none()).toEqual(false);
expect([ 1, 2, 3 ] |> seq.fromArray |> seq.none(x => x < 7)).toEqual(false);
expect([... |
shaojiankui/iOS10-Runtime-Headers | Frameworks/AVFoundation.framework/AVMutableAudioMixInputParameters.h | /* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/AVFoundation.framework/AVFoundation
*/
@interface AVMutableAudioMixInputParameters : AVAudioMixInputParameters {
AVMutableAudioMixInputParametersInternal * _mutableInputParameters;
}
@property (nonatomic, retain) const struct opaqueMTAudioProces... |
muffinresearch/solitude | lib/bango/tests/test_forms.py | import json
import mock
from nose.tools import eq_, ok_
from ..forms import (CreateBankDetailsForm,
CreateBillingConfigurationForm as BillingForm, EventForm,
PriceForm, VatNumberForm)
from .samples import (event_notification, good_bank_details,
good_bill... |
css4j/echosvg | echosvg-ext/src/main/java/io/sf/carte/echosvg/w3c/dom/events/CustomEvent.java | <gh_stars>1-10
/*
* Copyright (c) 2006 World Wide Web Consortium,
*
* (Massachusetts Institute of Technology, European Research Consortium for
* Informatics and Mathematics, Keio University). All Rights Reserved. This
* work is distributed under the W3C(r) Software License [1] in the hope that
* it will be useful... |
lechium/iOS1351Headers | System/Library/Frameworks/AVFoundation.framework/AVAssetCustomURLRequest.h | <filename>System/Library/Frameworks/AVFoundation.framework/AVAssetCustomURLRequest.h
/*
* This header is generated by classdump-dyld 1.5
* on Friday, April 30, 2021 at 11:35:52 AM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)... |
danjac/podbaby | ui/test/components/player.js | import React from 'react';
import _ from 'lodash';
import TestUtils from 'react-addons-test-utils';
import { assert } from 'chai';
import jsdom from 'jsdom-global';
import Player from '../../components/player';
import { Wrapper } from './utils';
import { makePodcast, makePlayerProps } from './fixtures';
describe('Pla... |
RobinSchmidt/RS-MET-Preliminary | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Files/File.cpp | using namespace RSLib;
// static data members:
//const File File::nonExistent;
// construction/destruction:
rsFile::rsFile(const rsString& absolutePath)
{
this->absolutePath = absolutePath;
}
rsFile::~rsFile()
{
}
// inquiry:
long rsFile::getSizeInBytes() const
{
FILE *f = openFile(absolutePath, "rb");
if(... |
roscopecoltran/SniperKit-Core | .References/src/github.com/reinterpretcat/utymap_generative_3d_map/core/test/builders/terrain/LineGridSplitterTest.cpp | <filename>.References/src/github.com/reinterpretcat/utymap_generative_3d_map/core/test/builders/terrain/LineGridSplitterTest.cpp
#include "builders/terrain/LineGridSplitter.hpp"
#include <boost/test/unit_test.hpp>
using namespace ClipperLib;
using namespace utymap::builders;
using namespace utymap::math;
namespace {... |
6923403/C | server/linux_socket_high/p21_SIGALRM/lst_timer.h | #ifndef LST_TIMER_H
#define LST_TIMER_H
#include <iostream>
#include <unistd.h>
#include <time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
const int BUFFER_SIZE = 64;
class util_timer;
struct client_data
{
sockaddr_in address;
int sockfd;
char buf[BUFFER_SIZE];
util_time... |
sho25/activemq | activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSParallelConnectTest.java | <filename>activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSParallelConnectTest.java<gh_stars>0
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE ... |
q197585312/testApp | Afb88/src/main/java/com/nanyang/app/main/home/sport/basketball/BasketballMixState.java | package com.nanyang.app.main.home.sport.basketball;
import android.view.View;
import android.widget.TextView;
import com.nanyang.app.MenuItemInfo;
import com.nanyang.app.R;
import com.nanyang.app.main.home.sport.main.SportAdapterHelper;
import com.nanyang.app.main.home.sport.main.SportContract;
import com.nanyang.app... |
bashimao/ltudl | blaze/src/main/scala/edu/latrobe/blaze/Module.scala | /*
* La Trobe University - Distributed Deep Learning System
* Copyright 2016 <NAME> (<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/LIC... |
Teletha/CoinToss | src/main/java/cointoss/trade/Profitable.java | /*
* Copyright (C) 2021 cointoss Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package cointoss.trade;
import cointo... |
rding2454/IndeStudy | vpr/src/power/power.cpp | <filename>vpr/src/power/power.cpp
/*********************************************************************
* The following code is part of the power modelling feature of VTR.
*
* For support:
* http://code.google.com/p/vtr-verilog-to-routing/wiki/Power
*
* or email:
* <EMAIL>
*
* If you are using power... |
Hrom131/terraform-provider-tokend | vendor/gitlab.com/tokend/regources/offer.go | <reponame>Hrom131/terraform-provider-tokend
package regources
import (
"gitlab.com/distributed_lab/logan/v3/fields"
"strconv"
)
type Offer struct {
PT string `json:"paging_token"`
OwnerID string `json:"owner_id"`
OfferID uint64 `json:"offer_id"`
OrderBookID uint64 `json:"order_book_... |
armanbilge/Laika | io/src/main/scala/laika/helium/builder/HeliumDirectives.scala | /*
* Copyright 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
usenixatc2021/SoftRefresh_Scheduling | linsched-linsched-alpha/arch/arm/mach-s5pv210/include/mach/pm-core.h | /* linux/arch/arm/mach-s5pv210/include/mach/pm-core.h
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* Based on arch/arm/mach-s3c2410/include/mach/pm-core.h,
* Copyright 2008 Simtec Electronics
* <NAME> <<EMAIL>>
* http://armlinux.simtec.co.uk/
*
* S5PV210 - PM core... |
borasoftware/balau | src/main/cpp/Balau/Application/Impl/PropertyTypeSpecificationVisitor.hpp | // @formatter:off
//
// Balau core C++ library
//
// Copyright (C) 2017 <NAME> (<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... |
code-review-doctor/lite-frontend-1 | unit_tests/caseworker/flags/test_services.py | <reponame>code-review-doctor/lite-frontend-1<filename>unit_tests/caseworker/flags/test_services.py<gh_stars>0
import pytest
from caseworker.flags.services import _add_flag_permissions
@pytest.mark.parametrize(
"permissions, num_unremovable",
[
([], 3),
(["REMOVE_AUTHORISED_COUNTERSIGNER_FLAGS... |
parkmap/hwplib | src/main/java/kr/dogfoot/hwplib/util/binary/BitFlag.java | package kr.dogfoot.hwplib.util.binary;
/**
* 이진 연산을 하는 객체
*
* @author neolord
*/
public class BitFlag {
/**
* mask에서 position번째 비트가 1인지 여부를 반환한다.
*
* @param mask long 값
* @param position 비트 위치
* @return mask값에서 position번째 비트가 1인지 여부
*/
public static boolean get(long mask, ... |
tsenmu/leetcode | burst-balloons/solution-1.cpp | <reponame>tsenmu/leetcode
class Solution {
public:
int dfs(vector<int>& nums, vector<vector<int>>& mem, int left, int right) {
if (right - left < 2) {
return 0;
}
if (mem[left][right] != -1) {
return mem[left][right];
}
int ans = 0;
for (int ... |
ceefour/java-web-services-training | jws103-8/src/main/java/com/hendyirawan/jws1038/Query.java | <gh_stars>1-10
package com.hendyirawan.jws1038;
import com.coxautodev.graphql.tools.GraphQLQueryResolver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public class Query implements GraphQLQueryResolver {
@Autowi... |
wenwei8268/Alink | core/src/main/java/com/alibaba/alink/pipeline/ModelExporterUtils.java | package com.alibaba.alink.pipeline;
import org.apache.flink.api.common.functions.FilterFunction;
import org.apache.flink.api.common.functions.MapFunction;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.common.typeinfo.Types;
import org.apache.flink.api.java.DataSet;
import org... |
jinfagang/MNN | source/geometry/GeometryGather.cpp | //
// GeometryGather.cpp
// MNN
//
// Created by MNN on 2020/06/09.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "geometry/GeometryComputer.hpp"
#include "geometry/GeometryComputerUtils.hpp"
#include "core/OpCommonUtils.hpp"
namespace MNN {
static void _computeGather(const std::vector<Tensor*>& i... |
pankajdarak-xlnx/pyxir | include/pyxir/pyxir.hpp | <reponame>pankajdarak-xlnx/pyxir<gh_stars>10-100
/*
* Copyright 2020 Xilinx 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... |
lamia100/yona | test/models/SearchResultTests.java | package models;
import org.junit.Test;
import java.util.List;
import static org.fest.assertions.Assertions.assertThat;
/**
* @author <NAME>
*/
public class SearchResultTests {
@Test
public void makeSnipet() {
// Given
String contents = "자동링크로 바꿀 수 있는 url은 자동링크처럼 보여주기 이슈 본문이나 댓글 등에 Yobi의 어... |
D3ATHBRINGER13/Protocol | java/java-codec/src/main/java/org/cloudburstmc/protocol/java/codec/v754/serializer/play/clientbound/ContainerSetContentSerializer_v754.java | <reponame>D3ATHBRINGER13/Protocol
package org.cloudburstmc.protocol.java.codec.v754.serializer.play.clientbound;
import io.netty.buffer.ByteBuf;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.cloudburstmc.protocol.java.codec.JavaCodecHelper;
import org.cloudburstmc.protocol.java.codec.JavaPacke... |
yzq992778484/MVCHelper | app/src/main/java/com/shizhefei/test/models/parser/JsonParser.java | <reponame>yzq992778484/MVCHelper<gh_stars>1000+
package com.shizhefei.test.models.parser;
import com.google.gson.Gson;
import com.google.gson.internal.$Gson$Types;
import com.shizhefei.mvc.http.NetworkExeption;
import com.shizhefei.mvc.http.okhttp.ResponseParser;
import java.io.Reader;
import java.lang.reflect.Parame... |
chenyacheng/AndroidComponentProject | commonlib/src/main/java/com/chenyacheng/commonlib/base/BaseApplication.java | <filename>commonlib/src/main/java/com/chenyacheng/commonlib/base/BaseApplication.java
package com.chenyacheng.commonlib.base;
import android.app.Application;
/**
* 每个组件实现自己的Application,并且继承BaseApplication.
* 组件模块中实现的Application必须在debug包中的AndroidManifest.xml中注册,否则无法使用.
* 组件模块的Application需置于java/debug文件夹中,不得放于主代码.
... |
MathiasReker/Delfinen | src/main/java/com/app/controllers/menuactions/DisplayArrearsMenuAction.java | package com.app.controllers.menuactions;
import com.app.controllers.PaymentController;
public class DisplayArrearsMenuAction extends MenuAction {
public DisplayArrearsMenuAction(String description) {
super(description);
}
@Override
public void run() {
new PaymentController().displayMembersInArrears()... |
idGain/ewp-node | src/main/java/pt/ulisboa/ewp/node/domain/entity/KeyStoreConfiguration.java | package pt.ulisboa.ewp.node.domain.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Ta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.