repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
hajime9652/observations | observations/r/tobacco.py | <gh_stars>100-1000
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def tobacco(path):
"""Households Tobacco Budget Share
... |
Fmendoza91/Proyecto-Final | www/wordpress/wp-content/themes/astra/hover.js | <reponame>Fmendoza91/Proyecto-Final<filename>www/wordpress/wp-content/themes/astra/hover.js
jQuery(document).ready(function($) {
// Get the main WC image as a variable
var wcih_main_imgage = $( 'a.woocommerce-main-image' ).attr( 'href' );
// This is what will happen when you hover a product thumb
$(".thumbnails... |
shivalinga/Gooru-Web | src/main/java/org/ednovo/gooru/server/service/SearchServiceImpl.java | <gh_stars>0
/*******************************************************************************
* Copyright 2013 Ednovo d/b/a Gooru. All rights reserved.
*
* http://www.goorulearning.org/
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documenta... |
shaojiankui/iOS10-Runtime-Headers | PrivateFrameworks/CoreKnowledge.framework/CoreKnowledge.CKClosure.h | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/CoreKnowledge.framework/CoreKnowledge
*/
@interface CoreKnowledge.CKClosure : NSObject {
void entity;
void store;
}
@property (nonatomic, readonly) _TtC13CoreKnowledge8CKEntity *entity;
@property (nonatomic, readonly) NSString *identi... |
gadge/foba | packages/objects/object-number/resources/ArmSales.js | <gh_stars>0
// https://www.sipri.org/databases/armsindustry
// in millions USD
export const ArmSales = {
LockheedMartin: 47260,
Boeing: 29150,
NorthropGrumman: 26190,
Raytheon: 23440,
GeneralDynamics: 22000,
BAESystemsUK: 21210,
AirbusGroup: 11650,
BAESystemsUS: 10800,
Leonardo: 9820,
AlmazAntey: 96... |
SwarmUS/HiveConnect | src/network/src/ros/include/NetworkOutputStream.h | #ifndef HIVE_CONNECT_NETWORKOUTPUTSTREAM_H
#define HIVE_CONNECT_NETWORKOUTPUTSTREAM_H
#include "INetworkOutputStream.h"
#include "logger/ILogger.h"
class NetworkOutputStream : public INetworkOutputStream {
public:
NetworkOutputStream(ILogger& logger);
~NetworkOutputStream() override;
bool send(const ui... |
pldg/gpe | lib/parse-prefix.js | const {
isObjectLiteral
} = require('./utils/utils');
function parsePrefix(prefix) {
if (!prefix) {
prefix = {};
} else if (!isObjectLiteral(prefix)) {
throw new Error('`prefix` must be an object literal');
}
const keys = Object.keys(prefix);
// Attributes that can be prefixed
con... |
moneyhoardermike/MHG.Network | x/launch/keeper/msg_request_add_validator_test.go | <filename>x/launch/keeper/msg_request_add_validator_test.go
package keeper_test
import (
"testing"
testkeeper "github.com/tendermint/spn/testutil/keeper"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/stretchr/testify/require"
"github.com/tendermint/spn/testutil/sample"
"github.com/tendermint/spn/x/laun... |
kylearon/test1 | com.soartech.simjr.core/src/main/java/com/soartech/simjr/ui/pvd/PanAnimator.java | /*
* Copyright (c) 2010, Soar Technology, 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 above copyright notice, this
* list ... |
mbits-libs/libarch | src/zip/stream.cc | <filename>src/zip/stream.cc
// Copyright (c) 2020 midnightBITS
// This code is licensed under MIT license (see LICENSE for details)
#include <arch/zip/stream.hh>
namespace arch::zip {
stream::stream(zip_file&& handle, io::status const& status)
: io::dos_stream_mixin{status}, handle_{std::move(handle)} {}
stre... |
alexrenz/bosen-2 | src/petuum_ps_common/util/vector_clock_mt.hpp | // author: jinliang
#pragma once
#include <petuum_ps_common/util/vector_clock.hpp>
#include <petuum_ps_common/util/lock.hpp>
#include <boost/noncopyable.hpp>
#include <glog/logging.h>
#include <boost/thread.hpp>
#include <vector>
#include <cstdint>
namespace petuum {
// VectorClock is a thread-safe extension of Ve... |
unsat/d | benchmark/c/nla/mannadiv.c | #include <stdio.h>
#include <stdlib.h>
void vassume(int b){}
void vtrace1(int q, int a, int b, int x, int y){}
//void vtrace2(int q, int a, int x, int y){}
int mainQ(int x, int y){
vassume(x >= 0);
vassume(y >= 1); //can also be y!=0, but CIVL will give disj
int q, a, b;
q = 0;
a ... |
Java-Publications/vaadin-001-charts-jumpstart | modules/gui/uilogic/src/test/java/junit/org/rapidpm/vaadin/jumpstart/gui/uilogic/security/LoginServiceImplTest.java | <gh_stars>0
package junit.org.rapidpm.vaadin.jumpstart.gui.uilogic.security;
import java.util.Optional;
import org.junit.Assert;
import org.junit.Test;
import org.rapidpm.ddi.DI;
import org.rapidpm.vaadin.jumpstart.gui.uilogic.security.LoginService;
import org.rapidpm.vaadin.jumpstart.gui.uilogic.security.User;
impo... |
lechium/iOS1351Headers | System/Library/PrivateFrameworks/SpringBoard.framework/SpringBoard-Structs.h | <reponame>lechium/iOS1351Headers
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:23:48 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/... |
abelhOrihuela/hawk | lib/frontend/router/link.js | <filename>lib/frontend/router/link.js
import React from 'react'
import env from '~base/env-variables'
import { Link } from 'react-router-dom'
const AppLink = (props) => {
var to = props.to
if (env.PREFIX) {
to = env.PREFIX + to
}
return <Link {...props} to={to} />
}
export default AppLink
|
uk-gov-mirror/ministryofjustice.wmt-worker | migrations/app/20170902000000_app_drop_grade_code_in_offender_manager.js | <reponame>uk-gov-mirror/ministryofjustice.wmt-worker
exports.up = function (knex, promise) {
const sql = 'ALTER TABLE app.offender_manager DROP COLUMN grade_code'
return knex.schema
.raw('SET ARITHABORT ON')
.raw(sql)
}
exports.down = function (knex, Promise) {
const sql = 'ALTER TABLE app.offender_manag... |
hardik0899/Competitive_Programming | USACO/Star League/Advanced Searching Techniques 2/lites/sol.cpp | #define __USE_MINGW_ANSI_STDIO 0
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <algorithm>
#include <queue>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <stack>
#include <deque>
#include <string.h>
#include <math.h>
... |
tommcandrew/eventful-calendar | client/src/0-components/MyAccount.js | import React, { useContext } from "react";
import AuthContext from "../2-context/AuthContext";
import LanguageContext from "../2-context/LanguageContext";
import { logOutTextOptions } from "../3-data/siteText";
import { Redirect } from "react-router-dom";
import axios from "axios";
const MyAccount = ({ setShowM... |
hzjane/HUSTER-CS | 系统综合能力—虚拟机/ics2019/nemu/src/isa/riscv32/decode.c | <gh_stars>100-1000
#include "cpu/decode.h"
#include "rtl/rtl.h"
// decode operand helper
#define make_DopHelper(name) void concat(decode_op_, name) (Operand *op, uint32_t val, bool load_val)
static inline make_DopHelper(i) {
op->type = OP_TYPE_IMM;
op->imm = val;
rtl_li(&op->val, op->imm);
print_Dop(op->str,... |
lechium/tvOS10Headers | System/Library/Frameworks/MobileCoreServices.framework/LSApplicationRestrictionsManager.h | <gh_stars>1-10
/*
* This header is generated by classdump-dyld 1.0
* on Wednesday, March 22, 2017 at 9:01:19 AM Mountain Standard Time
* Operating System: Version 10.1 (Build 14U593)
* Image Source: /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
* classdump-dyld is licensed under GPLv3, Copy... |
BitmanNL/traffictower-cms | assets/admin/grocery_crud/js/jquery_plugins/config/jquery.tine_mce.config.js | $(function() {
// minimal editor
tinymce.init(document.cms_tinymce_minimal);
//full editor
tinymce.init(document.cms_tinymce_full);
}); |
efleurine/chantons | src/Containers/Welcome.js | import React, { Component } from "react";
import { View, Text } from "react-native";
import PropTypes from "prop-types";
class WelcomeScreen extends Component {
static navigationOptions = {
title: "Welcome"
};
static propTypes = {
navigation: PropTypes.object.isRequired
};
componentDidMount() {
... |
OpenTrustGroup/fuchsia | sdk/lib/fidl-service/cpp/service_watcher.cc | <reponame>OpenTrustGroup/fuchsia<filename>sdk/lib/fidl-service/cpp/service_watcher.cc
// Copyright 2019 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.
#include <fuchsia/io/cpp/fidl.h>
#include <lib/fdio/directory.h>
#inc... |
moni-roy/COPC | Online Judges/LeetCode/June LeetCoding Challenge/Week-1/Queue Reconstruction by Height.py | <gh_stars>1-10
class Solution:
def reconstructQueue(self, people: List[List[int]]) -> List[List[int]]:
people = sorted(people, key=lambda x: (-x[0], x[1]))
ret = []
for p in people:
ret.insert(p[1], p)
return ret
|
smartcommunitylab/sco.playgo | playandgo/src/main/webapp/js/gamification.js | var gamificationConsole = angular.module('gameconsole', [ 'ui.bootstrap', 'ngScrollable', 'ngMask', 'textAngular']);
gamificationConsole.directive('dlEnterKey', function() {
return function(scope, element, attrs) {
element.bind("keydown keypress", function(event) {
var keyCode = event.which || ... |
ArielLily/ClickHouse | dbms/src/DataStreams/tests/union_stream.cpp | #include <iostream>
#include <iomanip>
#include <IO/WriteBufferFromFileDescriptor.h>
#include <Storages/System/StorageSystemNumbers.h>
#include <DataStreams/LimitBlockInputStream.h>
#include <DataStreams/UnionBlockInputStream.h>
#include <DataStreams/BlockExtraInfoInputStream.h>
#include <DataStreams/IBlockOutputStr... |
uibcdf/MolModSAKs | molsysmt/physchem/mass.py | import numpy as np
from molsysmt import puw
def mass(molecular_system, target ='atom', selection = 'all'):
from molsysmt.basic import get
from molsysmt.physico_chemical_properties.atoms.mass import physical, units
from molsysmt._private._digestion import digest_target
target = digest_target(target)
... |
xxm1995/bootx-platform | bootx-common-starters/common-starter-audit-log/src/main/java/cn/bootx/starter/audit/log/service/LoginLogService.java | <filename>bootx-common-starters/common-starter-audit-log/src/main/java/cn/bootx/starter/audit/log/service/LoginLogService.java
package cn.bootx.starter.audit.log.service;
import cn.bootx.common.core.rest.PageResult;
import cn.bootx.common.core.rest.param.PageParam;
import cn.bootx.starter.audit.log.dto.LoginLogDto;
im... |
Chrisaiki/sqrl | app/shared/components/Global/Message/Contract/Transfer.js | // @flow
import React, { Component } from 'react';
import { Header, List } from 'semantic-ui-react';
import { translate } from 'react-i18next';
import WalletMessageContractBase from './Base';
class WalletMessageContractTransfer extends Component<Props> {
render() {
const { data, t } = this.props;
return (
... |
RavensburgOP/core | homeassistant/components/meteo_france/sensor.py | """Support for Meteo-France raining forecast sensor."""
import logging
from meteofrance_api.helpers import (
get_warning_text_status_from_indice_color,
readeable_phenomenoms_dict,
)
from homeassistant.components.sensor import SensorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant... |
UnderflowDevelopment/RiseClient | src/main/java/dev/rise/script/block/impl/event/impl/packet/PacketReceiveBlock.java | <gh_stars>1-10
package dev.rise.script.block.impl.event.impl.packet;
import dev.rise.event.impl.packet.PacketReceiveEvent;
import dev.rise.script.block.api.BlockData;
import dev.rise.script.block.impl.event.EventBlock;
@BlockData(name = "onPacketReceive", description = "Instructions inside this event listener will ge... |
extnet/docs5.ext.net | mobile/d0/d47/class_ext_1_1_net_1_1_mobile_1_1_m_v_c_1_1_presence_validator_attribute.js | <reponame>extnet/docs5.ext.net<filename>mobile/d0/d47/class_ext_1_1_net_1_1_mobile_1_1_m_v_c_1_1_presence_validator_attribute.js
var class_ext_1_1_net_1_1_mobile_1_1_m_v_c_1_1_presence_validator_attribute =
[
[ "CreateValidator", "d0/d47/class_ext_1_1_net_1_1_mobile_1_1_m_v_c_1_1_presence_validator_attribute.html#a... |
kami-z88/courier | account/modules/mixin.py | <filename>account/modules/mixin.py
from django.db import models
class NaiveHierarchyManager(models.Manager):
def get_roots(self):
return self.get_query_set().filter(parent__isnull=True)
class NaiveHierarchy(models.Model):
parent = models.ForeignKey('self', null=True, blank=True)
tree = NaiveHierarchyManager()
... |
cuvent/react-native-navigation | lib/ios/ElementFrameTransition.h | <gh_stars>10-100
#import <Foundation/Foundation.h>
#import "ElementBaseTransition.h"
@interface ElementFrameTransition : ElementBaseTransition
@property (nonatomic) CGRect from;
@property (nonatomic) CGRect to;
@end
|
IBM/wc-jpa-modeler | workspace/JPAPortUtil/src/com/ibm/commerce/jpa/port/handlers/AccessBeanSubclassSearchHandler.java | package com.ibm.commerce.jpa.port.handlers;
/*
*-----------------------------------------------------------------
* Copyright 2018
*
* 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
*
... |
Rkhoiwal/Competitive-prog-Archive | uva/volume-101/minesweeper.cpp | #include <iostream>
#include <utility>
#include <vector>
using namespace std;
constexpr char mine_square {'*'};
inline void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
inline vector<pair<int, int>> adjacent_positions(int row, int column)
{
return {{row - 1, column }... |
NTrevisani/cmssw | Geometry/HGCalGeometry/interface/HGCalGeometryLoader.h | <filename>Geometry/HGCalGeometry/interface/HGCalGeometryLoader.h
#ifndef GeometryHGCalGeometryHGCalGeometryLoader_h
#define GeometryHGCalGeometryHGCalGeometryLoader_h
#include "Geometry/HGCalGeometry/interface/HGCalGeometry.h"
#include "Geometry/HGCalCommonData/interface/HGCalGeometryMode.h"
#include "Geometry/CaloGeom... |
deltaautonomy/delta_perception | segmentation/libs/graph_utils.py | <reponame>deltaautonomy/delta_perception
r"""Utils for working with variables and proto defs."""
import re
import collections
from tensorflow.python.ops.variables import Variable
from tensorflow.python import pywrap_tensorflow
from tensorflow.core.framework import node_def_pb2
from tensorflow.python.training import sav... |
enthought/supplement | supplement/project.py | <filename>supplement/project.py
import sys, os
from os.path import abspath, join, isdir, isfile, exists, dirname
import logging
from .tree import AstProvider
from .module import ModuleProvider, PackageResolver
from .watcher import DummyMonitor
from .calls import CallDB
class Project(object):
def __init__(self, ro... |
purang-fintech/seppb | src/main/java/com/pr/sepp/utils/jenkins/pool/JenkinsPoolConfig.java | package com.pr.sepp.utils.jenkins.pool;
import com.pr.sepp.utils.jenkins.model.JenkinsProperties;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
public class JenkinsPoolConfig extends GenericObjectPoolConfig {
public JenkinsPoolConfig(JenkinsProperties jenkinsProperties) {
setTestWhileIdl... |
jlmucb/cloudproxy | cpvmm/vmm/guest/guest_cpu/guest_cpu_switch.c | <reponame>jlmucb/cloudproxy
/*
* Copyright (c) 2013 Intel 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 required... |
rencht/LeetCode | src/main/java/com/sid/leetcode/problem/sum/FourSum.java | package com.sid.leetcode.problem.sum;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 18. 4Sum.
*
* <blockquote>
* Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum... |
belgianGeek/open-planner | routes/logout.js | module.exports = function(app, io) {
app.delete('/logout', (req, res) => {
req.logOut();
res.redirect('/login');
});
};
|
juanfelipe82193/opensap | sapui5-sdk-1.74.0/resources/sap/uiext/inbox/SubstitutionRulesManagerUtils-dbg.js | <gh_stars>0
/*!
* SAPUI5
(c) Copyright 2009-2020 SAP SE. All rights reserved
*/
// Utility functions for Substitution Rules Manager
jQuery.sap.declare("sap.uiext.inbox.SubstitutionRulesManagerUtils");
sap.uiext.inbox.SubstitutionRulesManagerUtils = function() {
throw new Error();
};
sap.uiext.inbox.SubstitutionRu... |
chillpert/renderer | docs/html/class_r_a_y_e_x___n_a_m_e_s_p_a_c_e_1_1_bindings.js | var class_r_a_y_e_x___n_a_m_e_s_p_a_c_e_1_1_bindings =
[
[ "add", "class_r_a_y_e_x___n_a_m_e_s_p_a_c_e_1_1_bindings.html#a37856d36392e371e4fdcfe35d184fa42", null ],
[ "initLayoutUnique", "class_r_a_y_e_x___n_a_m_e_s_p_a_c_e_1_1_bindings.html#ac4a04461e4728f35c9146237a47e6e66", null ],
[ "initPoolUnique", "c... |
ssintzz/zynga-hacklang-framework | src/Zynga/Framework/Service/V2/Exceptions/InvalidServiceResponseException.hh | <gh_stars>10-100
<?hh // strict
namespace Zynga\Framework\Service\V2\Exceptions;
use Zynga\Framework\Exception\V1\Exception;
/**
* Represents that an invalid service response was attempted to be used
*/
class InvalidServiceResponseException extends Exception {}
|
intersentia/elasticconfig | src/main/java/be/intersentia/elasticsearch/configuration/annotation/mapping/DateMapping.java | package be.intersentia.elasticsearch.configuration.annotation.mapping;
import be.intersentia.elasticsearch.configuration.parser.DateMappingParser;
import be.intersentia.elasticsearch.configuration.parser.MappingParser;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.ann... |
JoshuaMasci/Genesis | Genesis/include/Genesis/System/EntitySystemSet.hpp | <reponame>JoshuaMasci/Genesis
#pragma once
#include "Genesis/Scene/Ecs.hpp"
#include "Genesis/System/EntitySystem.hpp"
namespace Genesis
{
class EntitySystemSet
{
public:
void add_system(EntitySystem* system) { this->systems.push_back(system); };
void run_systems(Scene* scene, const TimeStep time_step)
{
... |
AlexandrKaleganov/akaleganov_junior | servletjsp/src/main/java/ru/job4j/architecture/err/TriplexConEx.java | <reponame>AlexandrKaleganov/akaleganov_junior<gh_stars>1-10
package ru.job4j.architecture.err;
public interface TriplexConEx<E, R, K> {
void accept(E e, R r, K k) throws Exception;
}
|
kaichiuchu/vm-tutorial | src/frontend/controllers/main_window.cpp | <reponame>kaichiuchu/vm-tutorial<filename>src/frontend/controllers/main_window.cpp<gh_stars>1-10
// vm-tutorial - Virtual machine tutorial targeting CHIP-8
//
// Written in 2021 by <NAME> aka kaichiuchu <<EMAIL>>
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neigh... |
josephcrosmanplays532/Wrapper-Offline-1.2.3- | utilities/avidemux/include/avidemux/2.7/ADM_coreJobs/ADM_coreJobs_export.h | <filename>utilities/avidemux/include/avidemux/2.7/ADM_coreJobs/ADM_coreJobs_export.h
#ifndef ADM_COREJOBS_EXPORT_H
#define ADM_COREJOBS_EXPORT_H
#ifdef ADM_COREJOBS_STATIC_DEFINE
# define ADM_COREJOBS_EXPORT
# define ADM_COREJOBS_NO_EXPORT
#else
# ifndef ADM_COREJOBS_EXPORT
# ifdef ADM_coreJobs_EXPORTS
/... |
stlava/akita-cli | trace/backend_collector_test.go | <reponame>stlava/akita-cli
package trace
import (
"encoding/base64"
"net/url"
"sync"
"testing"
"time"
"github.com/golang/mock/gomock"
"github.com/golang/protobuf/proto"
"github.com/google/uuid"
"github.com/stretchr/testify/assert"
mockrest "github.com/akitasoftware/akita-cli/rest/mock"
pb "github.com/akit... |
lechium/iOS1351Headers | System/Library/Frameworks/HealthKitUI.framework/HKGLView.h | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:18:24 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/Frameworks/HealthKitUI.fr... |
a1730/avaje-inject | inject-test/src/test/java/org/example/coffee/factory/DFact.java | <reponame>a1730/avaje-inject<gh_stars>10-100
package org.example.coffee.factory;
public class DFact implements IDFact {
}
|
zhuochu/mand-mobile-rn | samples/demo/radio/base.demo.js | import * as React from 'react'
import { View, Text } from 'react-native'
import { MDRadio, MDButton } from 'mand-mobile-rn'
import styles from './styles'
export default class BaseCheckDemo extends React.Component {
constructor(props) {
super(props);
this.state = {
selected: null
}
}
render() {... |
dbflute/dbflute-intro | src/main/java/org/dbflute/intro/app/logic/exception/DirNotFoundException.java | <gh_stars>1-10
/*
* Copyright 2014-2021 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 ... |
sascha-andres/devenv | internal/interactive/cmds/repo_commit/is_responsible.go | package repo_commit
func (c Command) IsResponsible(commandName string) bool {
return commandName == "commit" || commandName == "ci"
}
|
CS150Student/PacManFirmware | PacMan_CANOpen/docs/html/dir_465c8a410b787ccece2cc89dfe6b85b1.js | var dir_465c8a410b787ccece2cc89dfe6b85b1 =
[
[ "CAN_Files", "dir_c79ad1a9b46b2034a0d44f91061db848.html", "dir_c79ad1a9b46b2034a0d44f91061db848" ],
[ "Display", "dir_a7f313cbf1c1eb810b58abda35ed74f1.html", "dir_a7f313cbf1c1eb810b58abda35ed74f1" ],
[ "Fonts", "dir_62e8ca88ace6de22d757c76ff27ebec6.html", "dir_... |
lab11/M-ulator | simulator/core/isa/arm-v7-m/push.c | /* Mulator - An extensible {e,si}mulator
* Copyright 2011-2020 <NAME> <<EMAIL>>
*
* Licensed under either of the Apache License, Version 2.0
* or the MIT license, at your option.
*/
#include "core/isa/opcodes.h"
#include "core/isa/decode_helpers.h"
#include "core/operations/push.h"
// arm-v7-m
static void push_... |
bob0bob/jmonkeyengine | jme3-lwjgl/src/main/java/com/jme3/system/lwjgl/LwjglAbstractDisplay.java | <reponame>bob0bob/jmonkeyengine<gh_stars>0
/*
* Copyright (c) 2009-2021 jMonkeyEngine
* 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... |
HynemanKan/bilibot_Vertx | src/main/java/per/hynemankan/vertx/bilibot/handlers/common/ExceptionHandler.java | package per.hynemankan.vertx.bilibot.handlers.common;
import io.vertx.core.Handler;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class ExceptionHandler implements Handler<Throwable> {
@Override
public void handle(Throwable event) {
//打印错误信息
log.error("Exception:", event);
}
}
|
igorrozzu/cp | resources/assets/js/src/components/forms/CinemaForm.js | <filename>resources/assets/js/src/components/forms/CinemaForm.js
import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import { TextValidator, ValidatorForm } from 'react-material-ui-form-validator';
export default class CinemaForm extends React.Component {
constructor(props) {
s... |
biloocabba/new_KnCare-Rest | src/main/java/com/knits/kncare/config/CustomClientErrorHandler.java | package com.knits.kncare.config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.web.client.ResponseErrorHandler;
import java.io.IOException;
public class CustomClientErrorHandler implements ResponseErrorHandler {
priva... |
nanovc/nanovc-java | memory/src/main/java/io/nanovc/memory/reflective/ReflectiveObjectNanoRepo.java | /*
MIT License
https://opensource.org/licenses/MIT
Copyright 2020 <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, co... |
sfneal/mysql-toolkit | mysql/toolkit/components/__init__.py | <reponame>sfneal/mysql-toolkit<filename>mysql/toolkit/components/__init__.py<gh_stars>1-10
from mysql.toolkit.components.connector import Connector
from mysql.toolkit.components.manipulate import Manipulate
from mysql.toolkit.components.structure import Structure
from mysql.toolkit.components.operations import Operatio... |
tommac7/hydroshare | hs_communities/migrations/0004_remove_topic_order.py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-09-04 13:16
from __future__ import unicode_literals
from django.db import migrations
from hs_communities.models import Topic
def populate_topics(apps, schema_editor):
topics = ["Air Temperature", "Barometric Pressure", "Chlorophyll", "Climate", "Diat... |
LabCryptoOrg/fence | src/client/default_message_receiver.cc | <filename>src/client/default_message_receiver.cc<gh_stars>1-10
#include <sstream>
#include <chrono>
#include <thread>
#include <org/labcrypto/abettor/fs.h>
#include <org/labcrypto/abettor++/conf/config_manager.h>
#include <org/labcrypto/abettor++/date/helper.h>
#include <org/labcrypto/hottentot/runtime/configuration... |
oisindoherty3/drem | tests/unit/transform/test_sa_statistics.py | <reponame>oisindoherty3/drem
from typing import Dict
import geopandas as gpd
import pandas as pd
import pytest
from geopandas.testing import assert_geodataframe_equal
from icontract import ViolationError
from pandas.testing import assert_frame_equal
from shapely.geometry import Point
from shapely.geometry import Poly... |
joe62/swzql | Server/Trunk/models/online.js | <filename>Server/Trunk/models/online.js
/* jshint indent: 1 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('online', {
ID: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true
},
usr: {
type: DataTypes.STRING(24),
allowNull: false
},
logintm: {
ty... |
homembaixinho/exercism | cpp/scrabble-score/scrabble_score.cpp | <reponame>homembaixinho/exercism<gh_stars>0
#include "scrabble_score.h"
#include <map>
using namespace std;
namespace scrabble_score {
map<char, int> table = {
{'a', 1}, {'e', 1}, {'i', 1}, {'o', 1}, {'u', 1}, {'l', 1}, {'n', 1}, {'r', 1}, {'s', 1}, {'t', 1},
{'d', 2}, {'g', 2},
{'b', 3}, {'c', 3}, {'m'... |
yijunyu/demo-fast | datasets/github_cpp_10/10/100.cpp |
int levenshteinDistance(const std::string& s, const std::string& t) {
std::vector<std::vector<int>> d(s.size() + 1, std::vector<int>(t.size() + 1, 0));
for (int i = 0; i <= s.size(); ++i) d[i][0] = i;
for (int j = 0; j <= t.size(); ++j) d[0][j] = j;
for (int i = 1; i <= s.size(); ++i) {
for (int j = 1; j <= t.... |
nagineni/chromium-crosswalk | content/renderer/scoped_clipboard_writer_glue.h | <filename>content/renderer/scoped_clipboard_writer_glue.h
// Copyright (c) 2013 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.
#ifndef CONTENT_RENDERER_SCOPED_CLIPBOARD_WRITER_GLUE_H_
#define CONTENT_RENDERER_SCOPED_CLI... |
dvan44/web-homework | webapp/src/components/num/Num.js | <filename>webapp/src/components/num/Num.js
import React from 'react'
import { number } from 'prop-types'
import { numberToRoman } from '../../utilities/roman-numeral-converter'
export function Num ({ number }) {
const showAsNumeral = JSON.parse(window.sessionStorage.getItem('showAsNumeral'))
let valueToDisplay = n... |
scintiller/OnlineJudge | problem/migrations/0020_auto_20190618_0145.py | # Generated by Django 2.1.7 on 2019-06-18 01:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('problem', '0019_comment'),
]
operations = [
migrations.AlterField(
model_name='comment',
... |
junglegodlion/design_pattern | src/main/java/com/geely/design/principle/singleresponsibility/AppTest2.java | <filename>src/main/java/com/geely/design/principle/singleresponsibility/AppTest2.java<gh_stars>0
package com.geely.design.principle.singleresponsibility;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
public class AppTest2 {
public static void main(St... |
denisbohm/firefly-ice-firmware | src/fd_hal_rtc.h | <filename>src/fd_hal_rtc.h<gh_stars>1-10
#ifndef FD_HAL_RTC_H
#define FD_HAL_RTC_H
#include "fd_gpio.h"
#include "fd_rtc.h"
#include "fd_time.h"
#include <stdint.h>
fd_time_t fd_hal_rtc_get_time_retained(void);
void fd_hal_rtc_initialize(void);
void fd_hal_rtc_enable_pin_input(const fd_rtc_t *rtc, fd_gpio_t gpio);... |
mikini/c19 | content/data.js | <gh_stars>10-100
export default {
'da-DK': {
banner: 'Detaljerede data fra selvrapporteringen vil blive tilgængelige, så snart vi har indsamlet tilstrækkeligt',
},
'en-UK': {
banner: 'Detailed data collected from self reporting will be accessible when we have enough data',
},
};
|
cbworden/shakemap | shakemap/coremods/coverage.py | <filename>shakemap/coremods/coverage.py
# stdlib imports
import os.path
import json
# third party imports
import numpy as np
from scipy.ndimage import gaussian_filter
from impactutils.io.smcontainers import ShakeMapOutputContainer
from openquake.hazardlib import imt
# local imports
from .base import CoreModule, Conte... |
whuang022nccu/IndriLab | include/indri/Collection.hpp | /*==========================================================================
* Copyright (c) 2003-2004 University of Massachusetts. All Rights Reserved.
*
* Use of the Lemur Toolkit for Language Modeling and Information Retrieval
* is subject to the terms of the software license set forth in the LICENSE
* file in... |
DDMGNI/viVlasov1D | vlasov/solvers/preconditioner/setup.py | #!/usr/bin/env python
#$ python setup.py build_ext --inplace
from vlasov.setup_inc import *
ext_modules = [
Extension("TensorProduct",
sources=["TensorProduct.pyx"],
include_dirs=INCLUDE_DIRS,
libraries=LIBRARIES,
library_dirs=LIBRARY_D... |
joezqren/google-cloud-cpp | google/cloud/accesscontextmanager/internal/access_context_manager_metadata_decorator.cc | // Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
jyi/ITSP | dataset/Lab-11/3299/305632_correct.c | /*numPass=7, numTotal=7
Verdict:ACCEPTED, Visibility:1, Input:"5
1 2 3 4 5", ExpOutput:"1 2 3 4 5
", Output:"1 2 3 4 5 "
Verdict:ACCEPTED, Visibility:1, Input:"5
5 4 3 2 1", ExpOutput:"1 2 3 4 5
", Output:"1 2 3 4 5 "
Verdict:ACCEPTED, Visibility:1, Input:"4
1 3 2 1", ExpOutput:"1 1 2 3
", Output:"1 1 2 3 "
Verdict:... |
PigThinkingTec/Application | src/main/java/com/pigthinkingtec/framework/dbaccess/DBNullObject.java | package com.pigthinkingtec.framework.dbaccess;
/**
* NULLをあらわすオブジェクトクラス
*
* @author <EMAIL>
* @version $Revision: 1.1 $ $Date: 2009/11/13 06:58:21 $
* @history
*
*
*/
public class DBNullObject {
//SQL型
private int sqlType = 0;
/**
* コンストラクタ
*
* @param sqlType
*/
public DBN... |
tallycheck/data-support | meta-info/src/main/java/com/taoswork/tallycheck/info/descriptor/field/base/IBasicFieldInfoRW.java | package com.taoswork.tallycheck.info.descriptor.field.base;
import com.taoswork.tallycheck.info.descriptor.field.IBasicFieldInfo;
import com.taoswork.tallycheck.info.descriptor.field.IFieldInfo;
/**
* Created by <NAME> on 2015/10/24.
*/
public interface IBasicFieldInfoRW extends IBasicFieldInfo {
IFieldInfo se... |
qsyttkx/geek_time_cpp | 30/boost_coroutine2/fibonacci_coroutine2.cpp | #include <iostream> // std::cout/endl
#include <stdint.h> // uint64_t
#include <boost/coroutine2/all.hpp> // boost::coroutines2
typedef boost::coroutines2::coroutine<const uint64_t> coro_t;
void fibonacci(coro_t::push_type& yield)
{
uint64_t a = 0;
uint64_t b = 1;
while ... |
pmesnier/openssl | engines/e_loader_attic_err.c | <gh_stars>1000+
/*
* Generated by util/mkerr.pl DO NOT EDIT
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the sou... |
lalit-satapathy/beats | x-pack/winlogbeat/module/powershell/test/powershell_windows_test.go | // Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
// or more contributor license agreements. Licensed under the Elastic License;
// you may not use this file except in compliance with the Elastic License.
package test
import (
"strings"
"testing"
"github.com/elastic/beats/v7/x-pack/w... |
imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | MoravaEngine/src/Framebuffer/FramebufferTextureCubemap.h | #pragma once
#include "Framebuffer/FramebufferTexture.h"
#include "Texture/MoravaTexture.h"
#include <string>
class FramebufferTextureCubemap : public FramebufferTexture
{
public:
FramebufferTextureCubemap();
FramebufferTextureCubemap(unsigned int width, unsigned int height, bool isMultisample,
AttachmentForma... |
lucky401/vue_template | src/utils/mutator.js | /**
* Mutate your state with this way:
* commit('MUTATION_NAME', {accessor: 'a.b.c', value: 'cValue'})
* Interpolated as:
* state.a.b.c = 'cvalue'
*
* @param {String} state Current state of vuex.
* @param {Object} payload Mutation payload. eg: {accessor: 'a.b.c.d', value: 'dValue'}
*
* @return {void}
... |
niraveen/kafka-connect-file-pulse | connect-file-pulse-api/src/main/java/io/streamthoughts/kafka/connect/filepulse/data/internal/TypeConverter.java | /*
* Copyright 2019-2020 StreamThoughts.
*
* 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,... |
hoangdo94/nodebb-plugin-tuchanloan | lib/controllers/skills.js | "use strict";
var skills = require('../skills'),
skillsController = {};
skillsController.render = function(req, res, callback) {
skills.view(req.user.uid, function(err, data) {
if (err) {
return require.main.require('./src/controllers/helpers').redirect(res, '/rpg/character');
}
res.render('rpg/skills',... |
signaldust/dust-toolkit | dust/widgets/logview.h | #pragma once
namespace dust
{
// Simple read-only multi-line text control
struct LogView : Panel
{
Font _font;
unsigned tabStop = 8;
ARGB fgColor;
ARGB bgColor;
// called when clicking lines looking like <filename>:<num>:<num>:
// this is ... |
NovaSBE-DSKC/predict-campaing-sucess-rate | dskc/clean/text.py | import math
import re
import pandas as pd
from dskc._util.pandas import df_to_list_w_column_idx
from dskc.clean import insert_next_to
from dskc.io import get_root_path
def _get_stopwords():
with open(get_root_path() + "/dskc/visualization/graphs/types/word_cloud/stopwords.txt", encoding="utf-8") as f:
st... |
Epxoxy/LiveRoku-Java | src/danmaku/KeepAliveHandler.java | package danmaku;
import java.util.Random;
import danmaku.packet.Packet;
import danmaku.packet.PacketMsgType;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
public class KeepAliveHandler extends ChannelInboundHandlerAdapter{
private final int channelId;
private ... |
CCasusensa/SuperSS-Dev | Server Lib/Game Server/GAME/login_manager.hpp | <filename>Server Lib/Game Server/GAME/login_manager.hpp
// Arquivo login_manager.hpp
// Criado em 01/05/2018 as 17:28 por Acrisio
// Definição da classe LoginManager
#pragma once
#ifndef _STDA_LOGIN_MANAGER_HPP
#define _STDA_LOGIN_MANAGER_HPP
#if defined(_WIN32)
#include <Windows.h>
#elif defined(__linux__)
#include ... |
RokKos/eol-cloth | External/mosek/9.1/tools/examples/c/logistic.c | ////
// Copyright: Copyright (c) MOSEK ApS, Denmark. All rights reserved.
//
// File: logistic.c
//
// Purpose: Implements logistic regression with regulatization.
//
// Demonstrates using the exponential cone and log-sum-exp in Optimizer API.
#include "mosek.h" /* Include the MOSEK definition file. *... |
alexiosc/megistos | src/system/emud/emud.c | /*****************************************************************************\
** **
** FILE: emud (orig. ttysnoops) **
** AUTHORS: Alexios (hack only) **
**... |
predictiveworks/deep-graph | src/main/scala/de/kp/works/graph/analytics/Closeness.scala | package de.kp.works.graph.analytics
/*
* Copyright (c) 2019 - 2021 Dr. Krusche & Partner PartG. 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.apac... |
mholtrop/slic | src/StdHepEventSource.cc | <reponame>mholtrop/slic
#include "StdHepEventSource.hh"
// SLIC
#include "LcioManager.hh"
#include "MCParticleManager.hh"
// LCIO
#include "UTIL/LCTOOLS.h"
namespace slic {
StdHepEventSource::StdHepEventSource(const std::string& fname) :
EventSourceWithInputFile("StdHepEventSource", fname), m_eventGenerator(... |
fedepal450/ROAR-RL_FullControl | ROAR_Jetson/vive/models.py | <gh_stars>1-10
from pydantic import BaseModel, Field, validator
import math
class ViveTrackerMessage(BaseModel):
valid: int = Field(default=0)
x: float = Field(default=0)
y: float = Field(default=0)
z: float = Field(default=0)
roll: float = Field(default=0)
pitch: float = Field(default=0)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.