repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
VIchenlei/git-client-cl | src/js/map/OlMapPersonCardsLayer.js | <filename>src/js/map/OlMapPersonCardsLayer.js
import OlMapWorkLayer from './OlMapWorkLayer.js'
import ol from 'openlayers'
import { getPolylineBYPoints, drawOLLine } from './OlMapUtils.js'
import {manages} from '../def/manage_def.js'
const POINTIME = 5 * 60 * 1000
export default class OlMapPersonCardsLayer extends OlMa... |
Saif73012/nextbook | client/src/component/Element/DesktopNav.js | import React from "react";
import { Link } from "react-router-dom";
import "../../main.sass";
import homeIcon from "../../assets/img/navIcons/home.svg";
import aboutIcon from "../../assets/img/navIcons/about.svg";
import bookIcon from "../../assets/img/navIcons/books.svg";
import logoutIcon from "../../assets/img/navIc... |
yueliangyi/SUNTANS_GVC | src/gridio.h | <reponame>yueliangyi/SUNTANS_GVC
/*
* File: physio.h
* Author: <NAME>
* Institution: Stanford University
* --------------------------------
* Header file for gridio.c.
*
* Copyright (C) 2005-2006 The Board of Trustees of the Leland Stanford Junior
* University. All Rights Reserved.
*
*/
#ifndef _gridio_h
#de... |
phoenixeliot/design-system | src/MLIcon/PlaneSlashSolid.js | <reponame>phoenixeliot/design-system
import { wrapFontAwesomeIcon } from './icon-wrappers'
import { faPlaneSlash } from '@fortawesome/free-solid-svg-icons/faPlaneSlash'
const PlaneSlashSolid = wrapFontAwesomeIcon(faPlaneSlash, 'Solid')
export default PlaneSlashSolid
|
castor-software/rethread | code/drift/js/view/emojiView.js | export default class EmojiView {
constructor(container, model) {
this.model = model;
}
render() { }
addEmoji(data) {
const node = document.createElement("div");
const baseX = 25;
let time = 0;
let dist = 25;
node.className = "floating-emoji";
//${data.user.username}<br>
node.in... |
Y-D-Lu/rr_frameworks_base | core/java/android/accessibilityservice/AccessibilityServiceInfo.java | /*
* Copyright (C) 2009 The Android Open Source Project
*
* 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 app... |
bilde2910/IRCLinqed | src/main/java/info/varden/irclinqed/gui/GuiTimer.java | /*
Copyright 2014 <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 to in writing,... |
jmoody/LJS | Google/Models/Non-Managed/LjsGoogleNmoReverseGeocode.h | <reponame>jmoody/LJS
#import <Foundation/Foundation.h>
@class LjsLocation;
/**
Documentation
*/
@interface LjsGoogleNmoReverseGeocode : NSObject
/** @name Properties */
@property (nonatomic, strong) NSArray *types;
@property (nonatomic, copy) NSString *formattedAddress;
@property (nonatomic, strong) NSArray *add... |
glcnzude126/SeetaFace2 | SeetaNet/src/include_inner/layers/SeetaNetExpCPU.h | #ifndef _SEETANET_EXP_CPU_H_
#define _SEETANET_EXP_CPU_H_
#include "SeetaNetBaseLayer.h"
#include <cmath>
#include <cstring>
template <class T>
class SeetaNetExpCPU : public SeetaNetBaseLayer<T>
{
public:
SeetaNetExpCPU();
~SeetaNetExpCPU();
int Init(seeta::SeetaNet_LayerParameter &inputparam, SeetaNetResource<T>... |
iamvishnuks/Xmigrate | pkg/common/build.py | import os
from model.blueprint import *
from model.project import *
from model.disk import *
from model.discover import *
from utils.log_reader import *
from utils.dbconn import *
from utils.logger import *
from pkg.common import nodes as n
import time
from pkg.azure import network
from pkg.aws import disk as awsdisk
... |
ivanaairenee/blog | node_modules/vision/test/index.js | <filename>node_modules/vision/test/index.js<gh_stars>10-100
// Load modules
var Path = require('path');
var Code = require('code');
var Handlebars = require('handlebars');
var Hapi = require('hapi');
var Hoek = require('hoek');
var Jade = require('jade');
var Lab = require('lab');
var Vision = require('..');
// Decl... |
devzendo/mini-miser | src/test/java/org/devzendo/minimiser/startupqueue/TestStartupQueue.java | <filename>src/test/java/org/devzendo/minimiser/startupqueue/TestStartupQueue.java<gh_stars>0
/**
* Copyright (C) 2008-2010 <NAME>, DevZendo.org <http://devzendo.org>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... |
gepesz/tech-hub | ManchesterEJB/ejbModule/com/vh/manchester/ejb/User.java | package com.vh.manchester.ejb;
/**
* Local interface for Enterprise Bean: User
*/
public interface User extends javax.ejb.EJBLocalObject {
public boolean update(java.lang.String username, java.lang.String password, java.lang.String email, com.vh.manchester.ejb.UserType aUserType, com.vh.manchester.ejb.Locale aLocal... |
hong-gang/ermasterr | src/org/insightech/er/editor/view/dialog/option/tab/EnvironmentTabWrapper.java | package org.insightech.er.editor.view.dialog.option.tab;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
imp... |
aas-core-works/aas-core-codegen | test_data/parse_retree/unexpected/invalid_quantifier/between_3_and_x/source.py | <filename>test_data/parse_retree/unexpected/invalid_quantifier/between_3_and_x/source.py
"a{3,x}"
|
MJUDreamTeam/Client | directMessage/ChatWindow.js | import React from 'react';
import {KeyboardAvoidingView,StyleSheet,View,FlatList} from 'react-native';
import {Input,Item,Button,Icon,Text,Container,Header,Left,Right,Body,Title,Thumbnail} from 'native-base';
import {createStackNavigator} from '@react-navigation/stack';
import {NavigationContainer} from '@react-navigat... |
bavison/opensmalltalk-vm | platforms/Cross/plugins/Mpeg3Plugin/libmpeg/timecode.h | <reponame>bavison/opensmalltalk-vm
#ifndef TIMECODE_H
#define TIMECODE_H
typedef struct
{
long hour;
long minute;
long second;
long frame;
} mpeg3_timecode_t;
#endif
|
moul/client | go/vendor/github.com/keybase/go-framed-msgpack-rpc/message.go | package rpc
import (
"errors"
)
type message struct {
method string
seqno int
res interface{}
err interface{}
remainingFields int
decodeSlots []interface{}
}
func decodeIntoMessage(dec decoder, m *message) error {
for _, s := range m.decodeSlots {
if err := de... |
RotaNova/asmoboot | rotanava-boot-module/rotanava-boot-module-system/src/main/java/com/rotanava/boot/system/module/system/task/StatisticsTask.java | <filename>rotanava-boot-module/rotanava-boot-module-system/src/main/java/com/rotanava/boot/system/module/system/task/StatisticsTask.java<gh_stars>10-100
package com.rotanava.boot.system.module.system.task;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUnit;
... |
sandcast/bayes-scala | src/test/scala/dk/bayes/clustergraph/infer/LoopyBPGettingStarted.scala | <filename>src/test/scala/dk/bayes/clustergraph/infer/LoopyBPGettingStarted.scala
package dk.bayes.clustergraph.infer
import org.junit._
import org.junit.Assert._
import dk.bayes.clustergraph.GenericClusterGraph
import dk.bayes.clustergraph.testutil.AssertUtil._
import dk.bayes.clustergraph.factor.Var
import dk.bayes.c... |
Pikuseru/parsley-interpreter | src/parsley/commands/core/CoreCommandFactory.java | package parsley.commands.core;
import parsley.commands.Command;
import parsley.commands.CommandFactory;
import parsley.exceptions.*;
import parsley.lexing.*;
import java.util.*;
public class CoreCommandFactory implements CommandFactory {
private Hashtable commands;
public CoreCommandFactory() {
commands = new ... |
amigarulez/scala-server-toolkit | http4s-client-monix-catnap/src/main/scala/com/avast/sst/http4s/client/monix/catnap/HttpStatusClassifier.scala | <filename>http4s-client-monix-catnap/src/main/scala/com/avast/sst/http4s/client/monix/catnap/HttpStatusClassifier.scala
package com.avast.sst.http4s.client.monix.catnap
import org.http4s.Status
/** Classifies HTTP status as failure or not - for the purpose of circuit breaking. */
trait HttpStatusClassifier {
def i... |
rockchip-linux/mediaserver | src/flows/flow_common.h | // Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef _RK_FLOW_NODE_H_
#define _RK_FLOW_NODE_H_
#include <iterator>
#include <list>
#include <vector>
#include "key_string.... |
Mazdallier/NuclearCraft | src/main/java/nc/block/fluid/BlockFluidCorium.java | <gh_stars>1-10
package nc.block.fluid;
import java.util.Random;
import javax.annotation.Nonnull;
import nc.capability.radiation.source.IRadiationSource;
import nc.fluid.FluidCorium;
import nc.radiation.*;
import nc.util.DamageSources;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.Entity;
... |
g-parki/bokeh | examples/plotting/file/markers.py | <reponame>g-parki/bokeh
''' A scatter plot showing every marker type.
.. bokeh-example-metadata::
:apis: bokeh.plotting.Figure.scatter, bokeh.plotting.Figure.text
:refs: :ref:`userguide_plotting` > :ref:`userguide_plotting_scatter_markers`
:keywords: scatter, markers
'''
from numpy.random import random
f... |
jinlongchen/golang-utilities | baidu/face_set_user_add.go | <gh_stars>1-10
package baidu
import (
"encoding/base64"
"github.com/jinlongchen/golang-utilities/http"
"github.com/jinlongchen/golang-utilities/json"
"net/url"
)
type FaceSetUserAddRequest struct {
Image string `json:"image,omitempty"`
ImageType string `json:"image_type,omitempty"`
GroupID ... |
jedhsu/music | music/class_/audioa/f/base/minor.py | """
*F Minor*
The key of F minor.
"""
from ..._mode import MinorKey
from ....scale import Diatonic
from ._key import F_Key
__all__ = ["F_Minor"]
class F_Minor(
F_Key,
MinorKey,
Diatonic,
):
pass
|
AssassinKO/Laravel-React-Demo | resources/js/src/routes/Components/CorematComponents/NotificationsDemo/DemoSettings.js | <reponame>AssassinKO/Laravel-React-Demo
import React, { useContext } from 'react';
import CorematContext from '../../../../@jumbo/components/contextProvider/CorematContext';
import { CollapsibleSection, SectionLegend, SettingsComponent } from '../../../../@jumbo/components/CorematDemosComponents';
import AppSwitch from... |
gkzscs/CuteBoard | ui/element_editors/curves_xy_patron_editor.cpp | #include "curves_xy_patron_editor.h"
#include "ui_curves_xy_patron_editor.h"
CurvesXYPatronEditor::CurvesXYPatronEditor(QWidget *parent) :
QWidget(parent),
ui(new Ui::CurvesXYPatronEditor)
{
ui->setupUi(this);
ui->colorLineEdit->setEnabled(false);
}
CurvesXYPatronEditor::~CurvesXYPatronEditor()
{
... |
legumeinfo/intermine | bio/core/src/test/java/org/intermine/bio/dataconversion/GFF3RecordTest.java | package org.intermine.bio.dataconversion;
import java.io.IOException;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import junit.framework.TestCase;
import org.intermine.bio.io.gff3.GFF3Record;
/*
* Copyright (C) 2002-2022 FlyMine
*
* This code may be free... |
zealoussnow/chromium | components/metrics/android_metrics_provider.cc | // Copyright 2019 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.
#include "components/metrics/android_metrics_provider.h"
#include "base/metrics/histogram_macros.h"
#include "base/system/sys_info.h"
namespace metrics ... |
miszczu1902/Sudoku | Model/src/main/java/pl/first/firstjava/model/SudokuObserver.java | package pl.first.firstjava.model;
import java.io.Serializable;
public interface SudokuObserver extends Serializable {
void update();
}
|
hYdos/TinkersConstruct | src/main/java/slimeknights/tconstruct/tools/modifiers/upgrades/LightspeedModifier.java | package slimeknights.tconstruct.tools.modifiers.upgrades;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.world.level.LightLayer;
import net.minecraftforge.event.entity.player.PlayerEvent.BreakSpeed;
import slimeknights.tconstruct.library.modifiers.IncrementalModifier;
imp... |
febiosoftware/FEBioStudio | FEBioStudio/modelcheck.cpp | <reponame>febiosoftware/FEBioStudio<filename>FEBioStudio/modelcheck.cpp
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New Yor... |
PedroSFreire/LiftPR.Version | src/platform/vulkan/render_pass.cpp | <reponame>PedroSFreire/LiftPR.Version
#include "render_pass.h"
#include "depth_buffer.h"
#include "device.h"
#include "swap_chain.h"
#include <array>
namespace vulkan {
RenderPass::RenderPass(const class SwapChain& swap_chain,
const class DepthBuffer& depth_buffer,
const ... |
rasp30024/roll20-api-scripts | ItsATrap_theme_Starfinder/3.1/TrapTheme.js | <filename>ItsATrap_theme_Starfinder/3.1/TrapTheme.js
(() => {
'use strict';
// A mapping of known attribute names for supported character sheets.
const SHEET_ATTRS = {
'Roll20': {
kac: 'kac',
eac: 'eac',
fortSaveModifier: 'fort',
refSaveModifier: 'ref',
willSaveModifier: 'will',... |
WSSDude420/RED4ext.SDK | include/RED4ext/Scripting/Natives/Generated/game/bb/AllScriptDefinitions.hpp | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/IScriptable.hpp>
namespace RED4ext
{
namespace game::bb {
struct AllScriptDefinitions : IScriptable
{
static constexpr const char* NAME = "gamebbAllScriptDefinition... |
eciesla/AliPhysics | PWGCF/FLOW/Forward/AliForwardNUATask.cxx |
//
// Calculate flow in the forward and central regions using the Q cumulants method.
//
// Inputs:
// - AliAODEvent
//
// Outputs:
// - AnalysisResults.root or forward_flow.root
//
#include <iostream>
#include <TROOT.h>
#include <TSystem.h>
#include <TInterpreter.h>
#include <TList.h>
#include <THn.h>
#include "Ali... |
majacQ/up | handler/handler_test.go | <gh_stars>1000+
package handler
import (
"net/http"
"net/http/httptest"
"os"
"testing"
"github.com/apex/up"
"github.com/tj/assert"
)
func newHandler(t testing.TB, c *up.Config) http.Handler {
h, err := FromConfig(c)
assert.NoError(t, err, "FromConfig")
h, err = New(c, h)
assert.NoError(t, err, "New")
re... |
ZGYSYY/study-ActiveMQ | example-02/src/main/java/com/zgy/study/example02/JmsSender.java | package com.zgy.study.example02;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.jms.*;
/**
* @author ZGY
* @date 2019/12/13 11:14
* @description JmsSender,发送端。
*/
public class JmsSender {
private static final Logger LOGGER = Logger... |
kashishgrover/leaf-ui | src/Select/web/OptionListItem.js | import React from 'react';
import styled from 'styled-components';
import View from '../../View/web';
const styles = {
backgroundColor: (props) => {
if (props.isActive) {
return props.theme.color.translucent;
}
if (props.isSelected) {
return props.theme.color.primaryLighter;
}
return ... |
junmin-zhu/chromium-rivertrail | ash/system/tray_accessibility.h | <reponame>junmin-zhu/chromium-rivertrail
// Copyright (c) 2012 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 ASH_SYSTEM_TRAY_ACCESSIBILITY_H_
#define ASH_SYSTEM_TRAY_ACCESSIBILITY_H_
#include "ash/system/tray/... |
lkostenarov/BugsTracker | BugsTrackerWeb/src/bg/bugstracker/web/beans/ListProjectsBean.java | package bg.bugstracker.web.beans;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import bg.bugstracker.entity.ProjectModel;
import bg.bugstracker.service.ProjectServiceLocal;
@ManagedBean(name =... |
khoatbui/daiminh.dabook.vn | server/models/adslist.model.js | <reponame>khoatbui/daiminh.dabook.vn<filename>server/models/adslist.model.js
var mongoose = require('mongoose')
var adsListSchema = new mongoose.Schema({
adsTypeId:{ type: mongoose.Schema.Types.ObjectId, ref: 'AdsType' },
adsCode: String,
adsName: String,
adsIntro: String,
startDate:Date,
endDat... |
MisterZhouZhou/pythonLearn | urldownload/DataOutput.py | # coding:utf-8
import codecs
class DataOutput(object):
def __init__(self):
self.datas = []
def store_data(self, data):
if data is None:
return
self.datas.append(data)
def output_html(self, path, data):
fout = codecs.open(path, 'w+', encoding='utf-8')
f... |
mkby/cloudbreak | core/src/main/java/com/sequenceiq/cloudbreak/converter/stack/StackRequestToStackConverter.java | <gh_stars>0
package com.sequenceiq.cloudbreak.converter.stack;
import static com.gs.collections.impl.utility.StringIterate.isEmpty;
import static com.sequenceiq.cloudbreak.cloud.model.Platform.platform;
import static org.apache.commons.lang3.StringUtils.isNoneEmpty;
import java.util.Calendar;
import java.util.HashMap... |
MrRisoni/pbay | src/main/java/spring_repos/OrderItemTrackHistoryRepo.java | <filename>src/main/java/spring_repos/OrderItemTrackHistoryRepo.java<gh_stars>0
package spring_repos;
import models.orders.OrderItemTrackHistory;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface OrderItemTrackHistoryRepo extends C... |
CelestialSystem/ext-web-components | packages/ext-web-components-classic/dist/Ext/util/FilterCollection.js | import _createClass from "@babel/runtime/helpers/createClass";
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import Ext_util_Collection from '../../Ext/util/Collection.js';
var Ext_util_FilterCollection = /*#__PURE__*/function (_Ext_util_Collection) {
_inheritsLoose(Ext_util_FilterCollection, _E... |
alainDuguine/OCP12-ClickAndCollect-RestApi | clickandcollect-api-business/src/main/java/org/clickandcollect/business/impl/EmailServiceImpl.java | package org.clickandcollect.business.impl;
import lombok.extern.slf4j.Slf4j;
import org.clickandcollect.business.contract.EmailService;
import org.clickandcollect.model.entity.ClientOrder;
import org.clickandcollect.model.entity.MenuOrder;
import org.clickandcollect.model.entity.ProductOrder;
import org.springframewor... |
MartinItsLinda/SparkyBot | src/main/java/uk/sparkydiscordbot/internal/caching/caches/LanguageCache.java | package uk.sparkydiscordbot.internal.caching.caches;
import com.google.common.cache.CacheLoader;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import uk.sparkydiscordbot.api.entities.configuration.GuildSettings;
import uk.sparkydiscordbot.api.entities.language.I18n;... |
Hillrunner2008/igb-fx | org.lorainelab.igb.bookmark/src/main/java/org/lorainelab/igb/bookmarks/manager/BookmarkManager.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.lorainelab.igb.bookmarks.manager;
import org.lorainelab.igb.bookmarks.data.Bookmark;
/**
*
* @author Devdatta
*/
publi... |
maartenba/azure-tools-for-java | PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/preload/AzurePreloadingActivity.java | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
package com.microsoft.azure.toolkit.intellij.common.preload;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.appli... |
guandjoy/redject | src/landing-page/src/components/docs/Menu.js | import React, { useState, useRef, useEffect } from 'react'
import SideBar from './SideBar'
import SandwichButton from './SandwichButton'
function Menu(props) {
const [isVisible, setIsVisible] = useState(false)
const sandwichBtnRef = useRef()
const sideBarRef = useRef()
const handleClickOutside = event => {
... |
alteryx/alteryx-ui | packages/icons/src/icons/unlock.js | <gh_stars>1-10
import React from 'react';
import PropTypes from 'prop-types';
// Mui Example:
// https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Avatar/Avatar.js#L38
// eslint-disable-next-line prefer-arrow-callback
const Unlock = React.forwardRef(function Unlock(props, ref) {
const { col... |
leoluzh/mqtt.client | src/test/java/com/lambdasys/iot/mqtt/client/entities/faultcode/FaultCodeMessageTest.java | package com.lambdasys.iot.mqtt.client.entities.faultcode;
import static org.testng.Assert.assertNotNull;
import java.io.IOException;
import java.io.Serializable;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.DataProvider;
import org.testng.annotati... |
jzonthemtn/nlp-building-blocks | idyl-e3-entity-extraction-engine/idyl-e3-model-validator/src/test/java/com/mtnfog/test/TestContext.java | <reponame>jzonthemtn/nlp-building-blocks
/*******************************************************************************
* Copyright 2019 Mountain Fog, 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... |
corentin-glanum/pickingRoute | utils/cluster/simulation_cluster.py | <filename>utils/cluster/simulation_cluster.py
from utils.cluster.mapping_cluster import *
from utils.routing.routes import *
# Function
def simulation_wave(y_low, y_high, orders_number, df_orderlines, list_results, distance_threshold, mono_method, multi_method):
''' Simulate the distance for a number of orders p... |
TyrfingX/TyrLib | com.tyrfing.games.tyrlib3/src/com/tyrfing/games/tyrlib3/view/graphics/materials/Material.java | package com.tyrfing.games.tyrlib3.view.graphics.materials;
import java.util.ArrayList;
import java.util.List;
import com.tyrfing.games.tyrlib3.model.graphics.VertexLayout;
import com.tyrfing.games.tyrlib3.model.math.Vector3F;
import com.tyrfing.games.tyrlib3.view.graphics.Mesh;
import com.tyrfing.games.tyrl... |
FeiZhan/Algo-Collection | answers/leetcode/Word Search/Word Search.py | <reponame>FeiZhan/Algo-Collection
#@result TLE
class Solution(object):
def exist(self, board, word):
"""
:type board: List[List[str]]
:type word: str
:rtype: bool
"""
for i in range(len(board)):
for j in range(len(board[i])):
if self.dfs(... |
cufyorg/framework | src/main/java/cufy/beans/AbstractFullBean.java | <gh_stars>1-10
/*
* Copyright 2020 Cufy
*
* 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 ag... |
hyurl/fron | test/maps/map.js | <gh_stars>1-10
Map([["abc","Hello, World!"],[{efg:"Hi, Ayon"},1]]) |
dlin172/Plange | source/plc/include/document/PRE_INC.hpp | // This file was generated using Parlex's cpp_generator
#ifndef INCLUDED_PRE_INC_HPP
#define INCLUDED_PRE_INC_HPP
#include <optional>
#include <variant>
#include <vector>
#include "erased.hpp"
#include "parlex/detail/abstract_syntax_tree.hpp"
#include "parlex/detail/builtins.hpp"
#include "parlex/detail/document.h... |
danihegglin/DynDCO | src/main/scala/com/signalcollect/util/IntDoubleHashMap.scala | /*
* @author <NAME>
*
* Copyright 2014 University of Zurich
*
* 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 ... |
apereo-tesuto/tesuto | tesuto-ui/src/main/resources/static/ui_lib/message-format/locales.js |
var MessageFormat = MessageFormat || {};
(function () {
var english_locale = function (n) {
if (n === 1) {
return 'one';
}
return 'other';
};
MessageFormat.locale['none'] = english_locale;
MessageFormat.locale['es'] = english_locale;
})();
|
hewking/MaterialDesignPractice | thinkjava/src/main/java/com/example/designpartterns/abrstractfactory/SmsProvider.java | package com.example.designpartterns.abrstractfactory;
import com.example.designpartterns.factorymethod.Sender;
import com.example.designpartterns.factorymethod.SmsSender;
/**
* Created by hewking on 2016/11/1.
*/
public class SmsProvider implements Provider {
@Override
public Sender provide() {
ret... |
ctoesca/redjs | dist/Commands/BaseDataset.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const EventEmitter = require("events");
class BaseDataset extends EventEmitter {
constructor(opt) {
super();
}
getCommandsNames() {
return [];
}
checkArgCount(cmd, args, expected) {
if (args.length !... |
u014427391/ecshop | src/taoshop-manager/taoshop-manager-api/src/main/java/com/muses/taoshop/manager/entity/Menu.java | package com.muses.taoshop.manager.entity;
import lombok.Data;
import java.util.List;
/**
* <pre>
* 菜单信息实体类
* </pre>
*
* @author nicky
* @version 1.00.00
* <pre>
* 修改记录
* 修改后版本: 修改人: 修改日期: 2018.09.22 12:32 修改内容:
* </pre>
*/
@Data
public class Menu {
/**
* 菜单Id
**
*/
priva... |
tfisher1226/ARIES | aries/common/common-jaxws/src/main/java/org/aries/service/jaxws/JAXWSServiceImpl.java | <reponame>tfisher1226/ARIES<filename>aries/common/common-jaxws/src/main/java/org/aries/service/jaxws/JAXWSServiceImpl.java
package org.aries.service.jaxws;
import java.lang.reflect.Method;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.annotation.Resource;
import javax.jws.Web... |
CubeEngine/Sponge | src/main/java/org/spongepowered/common/command/brigadier/context/SpongeCommandContextBuilder.java | <filename>src/main/java/org/spongepowered/common/command/brigadier/context/SpongeCommandContextBuilder.java<gh_stars>0
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby grant... |
kevindiu/vald | internal/params/option.go | //
// Copyright (C) 2019-2020 Vdaas.org Vald team ( kpango, rinx, kmrmt )
//
// 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... |
htlcnn/ironpython-stubs | release/stubs.min/Autodesk/Revit/DB/__init___parts/InSessionPrintSetting.py | <reponame>htlcnn/ironpython-stubs
class InSessionPrintSetting(object,IPrintSetting,IDisposable):
""" Represents the in-session Print Setup (Application Menu->Print->Print Setup) within Autodesk Revit. """
def Dispose(self):
""" Dispose(self: InSessionPrintSetting) """
pass
def ReleaseUnmanagedResources(self... |
klauza/prototype-animated-app | src/components/Secundo/views/Photoshop/CardCSS.js | <filename>src/components/Secundo/views/Photoshop/CardCSS.js
import styled from 'styled-components';
export const CardWrapper = styled.div`
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
.c {
position: absolute;
top: 200px;
max-width: 500px... |
TuftsVALT/Snowcat | node_middleware/socket_listeners/controllers/datasetC/index.js | const appRootPath = require("app-root-path");
const Dataset = require(appRootPath + "/Session/Dataset.js");
const Problem = require(appRootPath + "/Session/Problem.js");
const translate = require("./translate.js");
module.exports.set = function(session, socket) {
socket.on("newdataset", function(path) {
console... |
kellbyhudson/FTM | app/controllers/CoachController.java | package controllers;
import com.google.common.io.Files;
import models.Coach;
import models.CoachDetail;
import models.Team;
import play.Logger;
import play.data.DynamicForm;
import play.data.FormFactory;
import play.db.jpa.JPAApi;
import play.db.jpa.Transactional;
import play.mvc.Controller;
import play.mvc.Http;
impo... |
JonathanGailliez/azure-sdk-for-python | azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/operations/__init__.py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... |
dannyroberts/commcare-hq | custom/ilsgateway/tanzania/handlers/yes.py | from __future__ import absolute_import
from custom.ilsgateway.tanzania.handlers.keyword import KeywordHandler
from custom.ilsgateway.tanzania.reminders import YES_HELP
class YesHandler(KeywordHandler):
def help(self):
return self.handle()
def handle(self):
self.respond(YES_HELP)
retu... |
adeira/sx | src/__tests__/fixtures/pseudo-elements.js | <filename>src/__tests__/fixtures/pseudo-elements.js<gh_stars>1-10
// @flow
import type { SheetDefinitions } from '../../create';
export default ({
link: {
'textDecoration': 'none',
':hover': {
textDecoration: 'underline',
},
'::after': {
content: '"∞"',
},
'::before': {
con... |
Mastaleru/OpenDSU | w3cdid/w3cvc/W3CVC_Mixin.js | <filename>w3cdid/w3cvc/W3CVC_Mixin.js
/*
JWT_VC the actual implementation of the a JWT based credential
The same approach/interface can be used with credentials represented in other formats
*/
function JWT_VC(){
let serialisation;
/*
Verify that the signature of the issuer is correct
*/... |
Robbbert/messui | src/devices/video/huc6260.h | // license:BSD-3-Clause
// copyright-holders:<NAME>
/**********************************************************************
Hudson/NEC HuC6260 interface and definitions
**********************************************************************/
#ifndef MAME_VIDEO_HUC6260_H
#define MAME_VIDEO_HUC6260_H
#pragma once
... |
olydis/autorest.java | test/azurefluent/src/main/java/fixtures/azureresource/implementation/ResourceCollectionInner.java | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... |
yangra/SoftUni | Java-DB-Fundamentals/DatabasesFrameworks-Hibernate&SpringData/EXAMS/photography_workshops_exam/src/main/java/softuni/dto/Export/PhotographerLandscaperExportDto.java | <reponame>yangra/SoftUni
package softuni.dto.Export;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import softuni.entities.Camera;
import softuni.entities.Lens;
import java.util.Set;
public class PhotographerLandscaperExportDto {
@Expose
@SerializedName(value=... |
akhishukla23/my-parfait | parfait-cxf/src/main/java/io/pcp/parfait/cxf/X.java | package io.pcp.parfait.cxf;
public class X {
}
|
Nexuscompute/aws-sdk-cpp | aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h | <reponame>Nexuscompute/aws-sdk-cpp<filename>aws-cpp-sdk-pinpoint-sms-voice-v2/include/aws/pinpoint-sms-voice-v2/model/SendVoiceMessageRequest.h
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/pinpoint-sms-voice-v2/Pinpoin... |
dash-docs/dash-docs.github.io | en/doxygen/html/navtreeindex77.js | <gh_stars>1-10
var NAVTREEINDEX77 =
{
"validation_8cpp.html#ab6609feb69f04e862bc630153c9c2e8e":[34,0,0,165,145],
"validation_8cpp.html#ab6d68cfd5d324de04347be2061768643":[34,0,0,165,123],
"validation_8cpp.html#ab7a9bd34b5fe878a3623ac1f04e1105c":[34,0,0,165,17],
"validation_8cpp.html#ab8b93839d83c6b741d2264cdccdab90f":[... |
mikailweston/pyecog | pyecog/ndf/make_pdfs.py | '''
This module is not currently being used
'''
from __future__ import print_function
import pickle
import os
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.font_manager as fm
dir = os.path.dirname(__file__)
filename = os.path.join(dir, '../HelveticaNeue-Light.otf')
prop = fm.FontProperties(fna... |
ArthasZhang007/15418FinalProject | pin-3.22-98547-g7a303a835-gcc-linux/source/tools/Debugger/app-pause-in-app-thread-tool.cpp | /*
* Copyright (C) 2013-2021 Intel Corporation.
* SPDX-License-Identifier: MIT
*/
#include "pin.H"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <iostream>
using std::cerr;
using std::endl;
/*
The tool validates stopping threads API called in application thread.
*/
// Interval in instructi... |
hdknr/paloma | src/paloma/migrations/0002_auto_20150309_1858.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('paloma', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='alias',
options={'ver... |
jorgediazjr/dials-dev20191018 | modules/xia2/Handlers/Citations.py | <reponame>jorgediazjr/dials-dev20191018<filename>modules/xia2/Handlers/Citations.py
#!/usr/bin/env python
# Citations.py
# Copyright (C) 2006 CCLRC, <NAME>
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
#
# A handler for management of progr... |
bruceCzK/bilibili-helper | src/js/modules/videoAnchor/UI/index.js | /**
* Author: DrowsyFlesh
* Create: 2018/10/23
* Description:
*/
import React from 'react';
import ReactDOM from 'react-dom';
import ToolBtnBuilder from './ToolBtn';
import {UI} from 'Libs/UI.js';
export class VideoAnchorUI extends UI {
constructor() {
super({
name: 'videoAnchor',
... |
JaneMandy/CS | org/apache/batik/css/engine/value/ListValue.java | package org.apache.batik.css.engine.value;
import org.w3c.dom.DOMException;
public class ListValue extends AbstractValue {
protected int length;
protected Value[] items = new Value[5];
protected char separator = ',';
public ListValue() {
}
public ListValue(char var1) {
this.separator = var1;... |
Suryanshg/ProjectManager | ProjectManager/src/main/java/projectmanager/http/ListAllProjectsResponse.java | <reponame>Suryanshg/ProjectManager
package projectmanager.http;
import java.util.ArrayList;
import java.util.List;
import projectmanager.model.Project;
public class ListAllProjectsResponse {
public String error;
public int statusCode;
public List<Project> projects;
// Success
public ListAllProjectsResponse(Li... |
daodao10/chart | hk/0003_d.js | <reponame>daodao10/chart
var data=[['20000103',2.5256],
['20000104',2.5017],
['20000105',2.4298],
['20000106',2.4325],
['20000107',2.5376],
['20000110',2.5615],
['20000111',2.4897],
['20000112',2.4538],
['20000113',2.4418],
['20000114',2.5256],
['20000117',2.5017],
['20000118',2.4897],
['20000119',2.4298],
['20000120',... |
maxpark/Pynq-CV-OV5640 | boards/src/ip/xilinx_com_hls_xf_dilation_accel_1_0/drivers/xf_dilation_accel_v1_0/src/xxf_dilation_accel_sinit.c | <gh_stars>10-100
// ==============================================================
// File generated on Fri Nov 22 15:18:28 +0800 2019
// Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC v2018.3 (64-bit)
// SW Build 2405991 on Thu Dec 6 23:38:27 MST 2018
// IP Build 2404404 on Fri Dec 7 01:43:56 MST 2018... |
Surya-98/Snapcuit | NGSpice/ngspice-30/src/frontend/com_history.c | /**********
Copyright 1990 Regents of the University of California. All rights reserved.
Author: 1985 <NAME>, U. C. Berkeley CAD Group
**********/
/* Do history substitutions. */
#include "ngspice/ngspice.h"
#include "ngspice/cpdefs.h"
#include "com_history.h"
#ifdef HAVE_GNUREADLINE
/* Added GNU Readline Support... |
evilmucedin/icfpc2020 | src/common/geometry/d2/vector.h | #pragma once
#include "common/base.h"
#include "common/geometry/d2/point.h"
#include <cmath>
namespace geometry {
namespace d2 {
template <class T>
class Vector {
public:
using TSelf = Vector<T>;
T dx, dy;
Vector() : dx(), dy() {}
Vector(const T& _dx, const T& _dy) : dx(_dx), dy(_dy) {}
explicit Vector(... |
iCHEF/gypcrete | packages/storybook/examples/core/Avatar.stories.js | <gh_stars>10-100
import React from 'react';
import Avatar from '@ichef/gypcrete/src/Avatar';
import FlexRow from 'utils/FlexRow';
export default {
title: '@ichef/gypcrete|Avatar',
component: Avatar,
};
export const basicUsage = () => (
<FlexRow>
<Avatar alt="Avatar of Design" src="https://api.adorable.io/a... |
knocknote/eevee | plugin/dao/interface.go | package dao
import (
"sync"
. "go.knocknote.io/eevee/code"
"go.knocknote.io/eevee/types"
)
const (
// ImportPlugin name for hook of Imports
ImportsPlugin = "imports"
// StructFieldsPlugin name for hook of StructFields
StructFieldsPlugin = "struct-fields"
// ConstructorDeclarePlugin name for hook of Construct... |
IvanIndaia/ProgramadorBR | Modulo_21/Node/MyProgram/index.js | let calc = require('math')
console.log(calc.areaQuad(8)) |
shmxybfq/TFDemos | demo-动画增长条/表格/FormView.h | //
// FormView.h
// 表格
//
// Created by ztf on 15/12/2.
// Copyright © 2015年 ztf. All rights reserved.
//
#import <UIKit/UIKit.h>
@class FormView;
@protocol FormViewDataSource <NSObject>
@required
-(NSInteger)FormView:(FormView *)formView numberOfRowsInSection:(NSInteger)section;
-(NSString *)FormView:(FormVie... |
claudimarcruz/Curso-de-Poo | Curso de POO com Java/Vetor/src/vetor01/Vetor01.java | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package vetor01;
import java.util.Arrays;
/**
*
* @author claud
*/
public class Vetor01 {
/**
* @param arg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.