repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
ankosoftware/gatsby-prismic-template | src/components/pages/landing-page.component.js | import React from "react"
import { isDark } from "../../utils/styles"
import Layout from "../layout.component"
import SEO from "../common/seo.component"
import { Section } from "../common/section.component"
import { Header } from "../header.component"
import { RichText } from "prismic-reactjs"
import { linkResolver } f... |
sasharevzin/testing-workshop | client/src/components/user.js | import React from 'react'
import * as api from '../utils/api'
class User extends React.Component {
initialState = {user: null, error: null, pending: false}
state = this.initialState
reset(overrides) {
const newState = {...this.initialState, ...overrides}
this.setState(newState)
return newState
}
... |
ToraNova/library | guides/rpi/mqpy.py | <gh_stars>0
#!/usr/bin/python3
# Simple python-gpio for raspberry pi GPIO detection
# uses callback events
import time, datetime, sys
import RPi.GPIO as gpio
import paho.mqtt.client as mqtt
from gpiomq import GPIOMQTT
from utilog import srvlog as log
import configparser #for config parsing
#defining callback behavio... |
thbspan/study | threadpool/src/test/java/com/test/threadpool/ThreadPoolTest.java | <filename>threadpool/src/test/java/com/test/threadpool/ThreadPoolTest.java
package com.test.threadpool;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUn... |
zipated/src | chromecast/browser/cast_content_browser_client.h | <filename>chromecast/browser/cast_content_browser_client.h<gh_stars>1000+
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
#define CHROMECAST_BRO... |
tickCoder/TICKCategory | TICKCategory/TICKCategory/TICKScaleImage/UIImage+TICKScale.h | //
// UIImage+TICKScale.h
// TICKCategory
//
// Created by Milk on 2015.07.04.Saturday.
// Copyright (c) 2015 Milk. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (TICKScale)
/*!
* @brief Scaled UIImage to size
*
* @param aSize Target Image Size
* @param aKeepRadio Whether UIIMage... |
tied/innovation-funding-service | ifs-resources/src/test/java/org/innovateuk/ifs/competition/builder/CompetitionAssessmentConfigResourceBuilderTest.java | package org.innovateuk.ifs.competition.builder;
import org.innovateuk.ifs.competition.resource.CompetitionAssessmentConfigResource;
import org.junit.Test;
import java.math.BigDecimal;
import java.util.List;
import static org.innovateuk.ifs.competition.builder.CompetitionAssessmentConfigResourceBuilder.newCompetition... |
tcorral/atradius-mockup-electron | src/jspm_packages/github/angular/bower-angular-i18n@1.6.4/ca-ad.js | /* */
"format cjs";
require('./angular-locale_ca-ad');
module.exports = 'ngLocale';
|
aircloudpos-d365lab/restaurant-customer-orchestrator | .evosuite/tmp_2020_03_09_14_11_34/tests/com/d365lab/eatery/restaurantcustomerorchestrator/utils/exceptions/FileNotFoundException_ESTest.java | /*
* This file was automatically generated by EvoSuite
* Mon Mar 09 09:06:52 GMT 2020
*/
package com.d365lab.eatery.restaurantcustomerorchestrator.utils.exceptions;
import org.junit.Test;
import static org.junit.Assert.*;
import com.d365lab.eatery.restaurantcustomerorchestrator.utils.exceptions.FileNotFoundExcepti... |
010001111/Vx-Suites | Win32.FlexiSpy/BlackBerry/2012-01-11_v.1.03.2/Std/src/com/vvt/std/Log.java | <reponame>010001111/Vx-Suites
package com.vvt.std;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Calendar;
import java.util.Vector;
import javax.microedition.io.Connector;
import javax.microedition.io.file.FileConnection;
import net.rim.device.api.i18n.SimpleDateFormat;
import net.rim.dev... |
Guseyn/rewrite | rewrite-java/src/main/java/org/openrewrite/java/internal/grammar/RefactorMethodSignatureParserListener.java | /*
* Copyright 2020 the original author or authors.
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... |
develar/kotlin | compiler/backend/src/org/jetbrains/jet/codegen/FunctionGenerationStrategy.java | /*
* Copyright 2010-2013 JetBrains s.r.o.
*
* 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 agre... |
asiboro/asiboro.github.io | vsdoc/search--/s_1808.js | <reponame>asiboro/asiboro.github.io<filename>vsdoc/search--/s_1808.js
search_result['1808']=["topic_0000000000000463_vars--.html","tlece_UserReferal Fields",""]; |
paladin-t/bitty | src/datetime.h | /*
** Bitty
**
** An itty bitty game engine.
**
** Copyright (C) 2020 - 2021 <NAME>, all rights reserved
**
** For the latest info, see https://github.com/paladin-t/bitty/
*/
#ifndef __DATETIME_H__
#define __DATETIME_H__
#include "bitty.h"
#include <string>
/*
** {===================================... |
Minecraft-TA/forged-carpet | src/main/java/carpet/forge/mixin/EntityLlamaMixin.java | package carpet.forge.mixin;
import carpet.forge.CarpetSettings;
import net.minecraft.entity.passive.EntityLlama;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(value = EntityLlama.class)
public abstract class Ent... |
ProEpiDesenvolvimento/guardioes-api | app/models/category.rb | class Category < ApplicationRecord
has_many :users
has_many :households
belongs_to :app
validates :name,
presence: true,
length: {
minimum: 1,
maximum: 255
}
end
|
eddieh/webkit-webinspector | lib/WebInspectorUI/v7/NavigationBar.js | /*
* Copyright (C) 2013 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
wibeasley/jbc-2016 | 2486-wallaby/Default User/ring around the can/src/main.c | #include <kipr/botball.h>
int main()
{
printf("go forward\n");
motor(3,30);
motor(0,35);
msleep(11000);
printf("left turn\n");
motor(0,59);
msleep(4000);
printf("go forward\n");
motor(0,55);
motor(3,52);
msleep(1000);
printf("left turn\n");
motor(0,52);
motor(3... |
long1eu/flutter-intellij | src/io/flutter/run/SdkAttachConfig.java | /*
* Copyright (C) 2018 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... |
jmalcic/spina-conferences | test/dummy/config/initializers/i18n.rb | <filename>test/dummy/config/initializers/i18n.rb
# frozen_string_literal: true
# I18n default locale
Rails.application.config.i18n.default_locale = :'en-GB'
Rails.application.config.i18n.fallbacks.defaults = %i[en-GB en]
Rails.application.config.i18n.fallbacks[:'en-GB'] = [:en]
|
etaoins/llambda | compiler/src/main/scala/codegen/ConstantGenerator.scala | package io.llambda.compiler.codegen
import io.llambda
import scala.io.Codec
import scala.collection.mutable
import llambda.compiler.InternalCompilerErrorException
import llambda.compiler.planner.{step => ps}
import llambda.llvmir._
import llambda.compiler.{celltype => ct}
import llambda.compiler.{valuetype => vt}
... |
TDC3Tool/meetapp-web | src/components/pages/Details/index.js | import React, { useEffect, useMemo, useState } from 'react';
import { isBefore, format, parseISO } from 'date-fns';
import {
MdArrowBack,
MdDeleteForever,
MdEdit,
MdEvent,
MdPlace,
} from 'react-icons/md';
import { useDispatch } from 'react-redux';
import { Link } from 'react-router-dom';
import PropTypes fro... |
gantree-io/gantree-core | src/lib/v2/core/commands/sync.js | const Ansible = require('../ansible')
const Inventory = require('../inventory')
const stdout = require('../../../utils/stdout')
const sync = async (frame, gco) => {
const logger = frame.logAt('core/sync')
await Inventory.namespace.create(frame) // create project path recursively
await Inventory.createInventory... |
NickNichollsCitrix/ShareFile-ObjectiveC | ShareFileSDK/ShareFileSDK/Categories/NSURL+sfapi.h | #import <Foundation/Foundation.h>
@interface NSURL (sfapi)
- (NSString *)authority;
- (NSString *)getAuthority;
/**
* Construct a comperable protection space for the current URL.
*
* @param authenticationMethod Auth method for protection space
* @param relm Optional realm, if the server has mo... |
jiandiao/flowable-engine | modules/flowable-engine/src/main/java/org/flowable/engine/delegate/FutureJavaDelegate.java | /* 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, software
* distributed... |
liquidaty/zsv | app/utils/dl.c | /*
* Copyright (C) 2021 Liquidaty and the zsv/lib contributors
* All rights reserved
*
* This file is part of zsv/lib, distributed under the license defined at
* https://opensource.org/licenses/MIT
*/
#include <zsv/utils/dl.h>
void (*zsv_dlsym(void *restrict handle, const char *restrict name))(void) {
#pragma G... |
foyzulkarim/mern-boilerplate | client-pro/src/pages/user/resetpassword/service.js | <gh_stars>10-100
import { get, post, put, del } from '/src/services/http-service';
// check username api call
export async function forgotPassword(params) {
const result = await post(`/api/auth/forgot-password`, params);
return result;
}
export async function verifyToken(params) {
const result = await post(`/a... |
a6k8s4/zaproxy | src/org/zaproxy/zap/model/StructuralSiteNodeIterator.java | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... |
huashen/Takin | takin-webapp/tro-web/tro-web-app/src/main/java/io/shulie/tro/web/app/service/AppConfigEntityConvertServiceImpl.java | <gh_stars>1-10
/*
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: <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.0
*
* Un... |
google-ar/chromium | chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.h | <reponame>google-ar/chromium<filename>chrome/browser/android/search_geolocation/search_geolocation_disclosure_tab_helper.h<gh_stars>100-1000
// Copyright 2016 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 CHROM... |
jjhenkel/dockerizeme | hard-gists/2083178/snippet.py | <filename>hard-gists/2083178/snippet.py<gh_stars>10-100
"""
# Dump your data from Posterous.
Requires:
* Posterous username and password
* An API Token from http://posterous.com/api
* Posterous site id also from http://posterous.com/api
* The Python libraries requests and python-dateutil
To use:
... |
ComputerSystemsLab/OptimizationCache | benchmarks/Angha_original/extr_aic79xx_core_ahd_search_qinfifo/extr_aic79xx_core_ahd_search_qinfifo.c | <reponame>ComputerSystemsLab/OptimizationCache
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int boo... |
PeteKeller/CoffeeMud | com/planet_ink/coffee_mud/core/collections/ConvertingSet.java | package com.planet_ink.coffee_mud.core.collections;
import java.util.*;
/*
Copyright 2020-2021 <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.or... |
thomsmits/oftp2-client | internal/liboftp2/wire/session/esid.go | <reponame>thomsmits/oftp2-client
package session
import (
"fmt"
"github.com/thomsmits/oftp2-client/internal/liboftp2/wire"
)
/*
5.3.11. ESID - End Session
o-------------------------------------------------------------------o
| ESID End Session |
| ... |
samiriff/scikit-dataaccess-ode | skdaccess/utilities/grace_util.py | <filename>skdaccess/utilities/grace_util.py
# The MIT License (MIT)
# Copyright (c) 2016, 2017, 2018 Massachusetts Institute of Technology
#
# Authors: <NAME>
# This software has been created in projects supported by the US National
# Science Foundation and NASA (PI: Pankratius)
#
# Permission is hereby granted, free o... |
danjung/sparsemapcontent | src/main/java/org/sakaiproject/nakamura/lite/lock/Lock.java | package org.sakaiproject.nakamura.lite.lock;
import java.util.Map;
import org.sakaiproject.nakamura.api.lite.StorageClientUtils;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableMap.Builder;
public class Lock {
private static final String PATH_FIELD = "p";
private st... |
Jing-Van/DSAlgorithm | ch1/Q1_04_Palindrome_Permutation/QuestionC.java | package ch1.Q1_04_Palindrome_Permutation;
public class QuestionC {
/* Toggle the ith bit in the integer. */
public static int toggle(int bitVector, int index) {
if (index < 0) return bitVector;
int mask = 1 << index;
if ((bitVector & mask) == 0) {
bitVector |= mask;
} else {
bitVector &= ~mask;
}
... |
saaisha/wizardPager | sample/src/main/java/com/example/android/wizardpager/pages/CustomerInfoFragment.java | <filename>sample/src/main/java/com/example/android/wizardpager/pages/CustomerInfoFragment.java
package com.example.android.wizardpager.pages;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.Editable;
import android.text.... |
inbreaks/posthog.com | src/templates/Customer.js | import { MDXProvider } from '@mdx-js/react'
import { BorderWrapper } from 'components/BorderWrapper'
import Breadcrumbs from 'components/Breadcrumbs'
import { FloatedImage } from 'components/FloatedImage'
import { ImageBlock } from 'components/ImageBlock'
import Layout from 'components/Layout'
import { SEO } from 'comp... |
Quansight/graphql-schema-org | src/videoQuality.js | <gh_stars>10-100
import datatypes from './datatype'
export default {
type: datatypes['String'],
description: 'The quality of the video.',
name: 'Video Quality',
}
|
haohanscm/pds | src/main/java/com/haohan/platform/service/sys/modules/thirdplatform/smartpay/apmp2/util/ApmpSecurityUtil.java | <filename>src/main/java/com/haohan/platform/service/sys/modules/thirdplatform/smartpay/apmp2/util/ApmpSecurityUtil.java
package com.haohan.platform.service.sys.modules.thirdplatform.smartpay.apmp2.util;
import org.bouncycastle.util.encoders.Base64;
import javax.management.openmbean.InvalidKeyException;
import java.se... |
skeithtan/falcon | client/src/pages/FacultyLoading/components/modals/RemoveFacultyModal/index.js | <filename>client/src/pages/FacultyLoading/components/modals/RemoveFacultyModal/index.js<gh_stars>1-10
import React from "react";
import DialogContentText from "@material-ui/core/DialogContentText";
import { ConfirmActionModal } from "../../../../../components/ConfirmActionModal";
import { wrap } from "./wrapper";
impor... |
fiatinsight/fiat_publication | app/controllers/fiat_publication/navigation_items_controller.rb | <reponame>fiatinsight/fiat_publication
module FiatPublication
class NavigationItemsController < ActionController::Base
before_action :set_navigation_item, only: [:show, :edit, :update, :destroy]
def new
@navigation_item = NavigationItem.new
end
def create
@navigation_item = NavigationIte... |
botandrose/adva_cms | adva_cms/lib/webrat_patch.rb | <reponame>botandrose/adva_cms<filename>adva_cms/lib/webrat_patch.rb<gh_stars>10-100
module Webrat
class Session
def current_host
URI.parse(current_url).host || @context.host || "www.example.com"
end
def response_location_host
URI.parse(response_location).host || @context.host || "www.example.... |
AleksNeStu/projects | tasks/EPAM/python_course/foundation-python/l6/m6-16.py | """open()"""
file_relative_path = "./test_file"
file_full_path = "/Projects/sessions/s6/test_file"
# open(file, mode='r', buffering=None, encoding=None, errors=None, newline=None, closefd=True):
#file
f1 = open(file_relative_path, mode='r', buffering=True) # open file in current directory
f2 = open(file_full_path) #... |
panyox/fiber | fiber-demo/fiber-demo-dubbo/src/main/java/com/fiber/demo/dubbo/service/impl/TestServiceImpl.java | <gh_stars>0
package com.fiber.demo.dubbo.service.impl;
import com.fiber.demo.dubbo.service.TestService;
import com.fiber.rpc.dubbo.annotation.FiberService;
import com.fiber.rpc.dubbo.annotation.GetRoute;
/**
* @author panyox
*/
@FiberService("test")
public class TestServiceImpl implements TestService {
@Overri... |
AkihideHayashi/torchfes1 | torchfes/fes/plumed.py | <reponame>AkihideHayashi/torchfes1
from typing import Dict
import array
import torch
from torch import Tensor, instance_norm
from torchfes import properties as p
try:
import plumed
except ModuleNotFoundError:
pass
def _toarray(tensor):
return array.array('d', tensor.detach().to('cpu').numpy())
class Pl... |
YKYou/poco | XML/include/Poco/XML/QName.h | <gh_stars>1000+
//
// QName.h
//
// Library: XML
// Package: XML
// Module: QName
//
// Definition of the QName class.
//
// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Based on libstudxml (http://www.codesynthesis.com/projects/libstudxml/).
// Copyright (c) 2009-2013 ... |
abhiisheek/react-chatbot | src/docs/examples/Loader/DefaultLoader.js | <filename>src/docs/examples/Loader/DefaultLoader.js
import React from 'react';
import Loader from 'react-chatbot/Loader';
/** Default loader icon */
const DefaultLoader = () => <Loader />;
export default DefaultLoader;
|
monash-emu/summer | tests/test_flows/test_transition_flow.py | from summer import Compartment, Stratification, adjust
from summer.flows import BaseTransitionFlow
class TransitionFlow(BaseTransitionFlow):
"""Basic transition flow used to test BaseTransitionFlow stratification."""
def get_net_flow(self, compartment_values, computed_values, time):
return 1
... |
odelucca/rabbitmq-python-adapter | rabbitmq_adapter/listener.py | import sys
import os
sys.path.append(os.environ['CONFIG'])
from config import *
def subscribe(
channel,
handler,
queue=config.rabbitmq.queue,
durable=config.rabbitmq.durable,
exchange=config.rabbitmq.exchange,
prefetch_count=config.rabbitmq.prefetch.count
):
channel.queue_declare(queue=que... |
wuhao930406/ngypro | src/pages/User/Forgot.js | <reponame>wuhao930406/ngypro<gh_stars>0
import React, { Component } from 'react';
import { connect } from 'dva';
import { formatMessage, FormattedMessage } from 'umi/locale';
import Link from 'umi/link';
import router from 'umi/router';
import { Form, Input, Button, Select, Row, Col, Popover, Progress, Menu, Dropdown, ... |
ankurshukla1993/IOT-test | coeey/com/bumptech/glide/load/resource/gifbitmap/GifBitmapWrapperResourceDecoder.java | package com.bumptech.glide.load.resource.gifbitmap;
import android.graphics.Bitmap;
import com.bumptech.glide.load.ResourceDecoder;
import com.bumptech.glide.load.engine.Resource;
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
import com.bumptech.glide.load.model.ImageVideoWrapper;
import com.bumptec... |
imckh/java-learning | src/designpattern/behavioral_pattern/mediator/v1/Component.java | <gh_stars>0
package designpattern.behavioral_pattern.mediator.v1;
//抽象组件类:抽象同事类
public abstract class Component {
protected Mediator mediator;
public void setMediator(Mediator mediator) {
this.mediator = mediator;
}
//转发调用
public void changed() {
mediator.componentChanged(this);
... |
eugeneilyin/mdi-norm | es/Public.js | <gh_stars>1-10
import { createThemedIcon } from './utils/createThemedIcon';
import { FilledPublic } from './FilledPublic';
import { OutlinePublic } from './OutlinePublic';
import { RoundPublic } from './RoundPublic';
import { SharpPublic } from './SharpPublic';
import { TwoTonePublic } from './TwoTonePublic';
export va... |
tbfungeek/React-Native-Roadmap | React-Tutorial/React-Native/rn_puzzle/screens/StartScreen.js | import React from 'react';
import { View , StyleSheet, Animated} from 'react-native';
import PropTypes from 'prop-types';
import Logo from '../components/Logo';
import Toggle from '../components/Toggle';
import Button from '../components/Button';
import sleep from '../utils/sleep'
import configureTransition from '../ut... |
Srikrish3103/OpenRTS | core/src/geometry/geom3d/Point3D.java | <reponame>Srikrish3103/OpenRTS
package geometry.geom3d;
import geometry.geom2d.Point2D;
import geometry.math.PrecisionUtil;
import java.text.DecimalFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPr... |
artourkin/c3po | c3po-api/src/main/java/com/petpet/c3po/api/adaptor/PreProcessingRule.java | <gh_stars>1-10
/*******************************************************************************
* Copyright 2013 <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
*
* ... |
zealoussnow/chromium | components/payments/core/error_strings.h | // 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.
#ifndef COMPONENTS_PAYMENTS_CORE_ERROR_STRINGS_H_
#define COMPONENTS_PAYMENTS_CORE_ERROR_STRINGS_H_
namespace payments {
namespace errors {
// These str... |
rylyade1/SecurityRAT | securityrat-backend/src/main/java/org/appsec/securityrat/web/dto/FrontendAlternativeInstanceDto.java | package org.appsec.securityrat.web.dto;
import lombok.Data;
import org.appsec.securityrat.api.dto.Dto;
@Data
public class FrontendAlternativeInstanceDto implements Dto {
private Long id;
private Long requirementId;
private String content;
}
|
friedcroco070801/bloodypenguins | Classes/Models/Character/Cell/ShootingCell/Projectile/ProjectileType/Cell03/Cell03ProjectileModel.h | <filename>Classes/Models/Character/Cell/ShootingCell/Projectile/ProjectileType/Cell03/Cell03ProjectileModel.h
#ifndef __CELL_03_PROJECTILE_MODEL_H__
#define __CELL_03_PROJECTILE_MODEL_H__
class ProjectileModel;
class CharacterModel;
class Cell03ProjectileModel : public ProjectileModel {
public:
Cell03ProjectileMo... |
fraenkel/cli | src/cf/requirements/targeted_space_test.go | <reponame>fraenkel/cli
package requirements
import (
"cf"
"cf/configuration"
"github.com/stretchr/testify/assert"
testterm "testhelpers/terminal"
"testing"
)
func TestSpaceRequirement(t *testing.T) {
ui := new(testterm.FakeUI)
config := &configuration.Configuration{
Organization: cf.Organization{
Name: "m... |
amiedawn/my-taco-shop | client/src/components/ItemList.js | <gh_stars>0
import React, { useEffect } from 'react';
import { useQuery } from '@apollo/client';
import MenuItem from './MenuItem';
import { useStoreContext } from '../utils/GlobalState';
import { UPDATE_ITEMS } from '../utils/actions';
import { QUERY_ITEMS } from '../utils/queries';
import { idbPromise } from '../uti... |
ljktest/siconos | externals/numeric_bindings/libs/numeric/bindings/tools/templates/driver/hpevx.hpp | $TEMPLATE[hpevx.all.UPLO.trait_of]
AP
$TEMPLATE[end]
|
Arquisoft/InciManager_i2b | src/test/java/com/uniovi/main/cucumber/steps/ReportIncidentSteps.java | <reponame>Arquisoft/InciManager_i2b
package com.uniovi.main.cucumber.steps;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.when;
import static org.springframe... |
tuckerconnelly/carbon-ui | lib/components/buttons/RaisedButton.js | Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2... |
liuguangw/billing | server/models/register_result.h | <reponame>liuguangw/billing<gh_stars>10-100
//
// Created by liuguang on 2021/12/24.
//
#ifndef BILLING_REGISTER_RESULT_H
#define BILLING_REGISTER_RESULT_H
#include <string>
namespace models {
struct RegisterResult {
bool hasError;
std::string message;
};
}
#endif //BILLING_REGISTER_RESULT_H... |
yedhrab/LolRehberi | Externals/Lol Game Analysis/src/views/app.js | <gh_stars>0
import React from 'react'
import { Link } from 'react-router'
import Helmet from 'react-helmet'
function App ({ children }) {
return (
<div className='app-view'>
<Helmet
titleTemplate='%s - League Interactive Timeline'
defaultTitle='League Interactive Timeline'
link={[
... |
rohankumardubey/summa | Core/src/main/java/dk/statsbiblioteket/summa/common/lucene/analysis/LowerCasingReader.java | <reponame>rohankumardubey/summa
/*
* 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... |
krantivijay/KP_31stMarch_WebApi | app/src/main/java/com/kencloud/partner/user/FilePicker.java | package com.kencloud.partner.user;
/**
* Created by suchismita.p on 11/19/2016.
*/
import java.io.File;
import java.io.FilenameFilter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import android.app.ListActivity;
import android.content.Context;
import... |
oralvi/rinyuuki | rin/modules/twitter/stream/track.py | <filename>rin/modules/twitter/stream/track.py<gh_stars>0
# 订阅关键词
import re
import peony
from peony import PeonyClient
from rin import Service
from rin.config import twitter as cfg
from .util import format_tweet
sv = Service('uma-ura9-sniffer', enable_on_default=False, help_='嗅探新鲜出炉的9URA种马', bundle='umamusume')
as... |
wangsikai/learn | yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/common/uxb-service/src/main/java/com/lanking/uxb/service/mall/api/impl/MemberPackageOrderSettlementServiceImpl.java | <filename>yoo-master-dc2492330d5d46b48f1ceca891e0f9f7e1593fee/module/common/uxb-service/src/main/java/com/lanking/uxb/service/mall/api/impl/MemberPackageOrderSettlementServiceImpl.java
package com.lanking.uxb.service.mall.api.impl;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
imp... |
Rythe-Interactive/Legion-Engine.rythe-legacy | legion/engine/core/math/glm/ext/scalar_uint_sized.hpp | /// @ref ext_scalar_uint_sized
/// @file glm/ext/scalar_uint_sized.hpp
///
/// @defgroup ext_scalar_uint_sized GLM_EXT_scalar_uint_sized
/// @ingroup ext
///
/// Exposes sized unsigned integer scalar types.
///
/// Include <glm/ext/scalar_uint_sized.hpp> to use the features of this extension.
///
/// @see ext_scalar_in... |
exponentjs/rocker | src/build/urlfetcher.go | <gh_stars>1000+
/*-
* Copyright 2015 Grammarly, 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 applica... |
HumanBrainProject/kg-query-api | src/main/java/org/humanbrainproject/knowledgegraph/structure/api/StructureAPI.java | <reponame>HumanBrainProject/kg-query-api<filename>src/main/java/org/humanbrainproject/knowledgegraph/structure/api/StructureAPI.java<gh_stars>1-10
/*
* Copyright 2018 - 2021 Swiss Federal Institute of Technology Lausanne (EPFL)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th... |
baracudda/androidBits | lib_androidBits/src/main/java/com/blackmoonit/androidbits/io/SimpleGestureHandler.java | <filename>lib_androidBits/src/main/java/com/blackmoonit/androidbits/io/SimpleGestureHandler.java
package com.blackmoonit.androidbits.io;
/*
* Copyright (C) 2013 Blackmoon Info Tech Services
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... |
tkoyama010/pyvista-doc-translations | locale/pot/api/core/_autosummary/pyvista-ExplicitStructuredGrid-copy_attributes-1.py | import pyvista as pv
source = pv.UniformGrid((10, 10, 5))
source = source.compute_cell_sizes()
target = pv.UniformGrid((10, 10, 5))
target.copy_attributes(source)
target.plot(scalars='Volume', show_edges=True)
|
zealoussnow/chromium | third_party/blink/renderer/core/layout/layout_theme_mac.h | /*
* This file is part of the theme implementation for form controls in WebCore.
*
* Copyright (C) 2005 Apple Computer, Inc.
* Copyright (C) 2008, 2009 Google, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as publis... |
nkruyer/SkillsWorkshop2018 | Week01/Problem01/afilbrun_01.py | <reponame>nkruyer/SkillsWorkshop2018
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 12 13:32:50 2018
@author: afilbrun
"""
# Problem 1.
multiples = list();
for value in range(1000):
if value % 3 == 0 or value % 5 == 0:
multiples.append(value);
print (sum(multiples)); |
ShowingCloud/Altarf | db/migrate/20190825063647_remove_translated_columns_to_refinery_pages.refinery_pages.rb | <filename>db/migrate/20190825063647_remove_translated_columns_to_refinery_pages.refinery_pages.rb
# This migration comes from refinery_pages (originally 20170703015418)
class RemoveTranslatedColumnsToRefineryPages < ActiveRecord::Migration[5.0]
def change
remove_column :refinery_pages, :custom_slug
remove_col... |
beachio/beach-api-core | spec/factories/beach_api_core_service_categories.rb | FactoryBot.define do
factory :service_category, class: 'BeachApiCore::ServiceCategory' do
name { Faker::Job.title }
trait :with_services do
after(:build) do |service_category|
service_category.services << build_list(:service, 2, service_category: service_category)
end
end
end
end
|
Cadcorp/swagger-codegen | samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/AnimalApiService.java | <filename>samples/server/petstore/jaxrs/jersey2/src/gen/java/io/swagger/api/AnimalApiService.java
package io.swagger.api;
import io.swagger.api.*;
import io.swagger.model.*;
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import io.swagger.model.Animal;
import java.util.Map;
import java.util... |
aipi2015/Laborator02 | solutions/eclipse/02-BookStore-JPA/src/main/java/ro/pub/cs/aipi/lab02/businesslogic/InvoiceHeaderManager.java | package ro.pub.cs.aipi.lab02.businesslogic;
import ro.pub.cs.aipi.lab02.entities.InvoiceHeader;
public class InvoiceHeaderManager extends PersistentEntityManager<InvoiceHeader> {
public InvoiceHeaderManager() {
super(InvoiceHeader.class);
}
}
|
cwaffles/Soulcast-server | test/controllers/echo_controller_test.rb | <reponame>cwaffles/Soulcast-server<gh_stars>0
require 'test_helper'
class EchoControllerTest < ActionDispatch::IntegrationTest
test "should get reply" do
get echo_reply_url
assert_response :success
end
end
|
YuDe95/mcplayer | src/base/utils/TimeTick.h | #ifndef TIMETICK_H
#define TIMETICK_H
#include <QObject>
static const qint64 TICK_INVALID = qint64(0);
static const qint64 CLOCK_FREQ = qint64(1000);
#define SEC_FROM_TICK(tick) ((tick) / CLOCK_FREQ)
/**
* @brief The TimeTick class
* NOTE: qRegisterMetaType<TimeTick>() for QML
*/
class TimeTick
{
// Q_GADGET... |
johnhw/sigil | Melody.java | <reponame>johnhw/sigil
import sigil.*;
import duotonic.MIDIUtils;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.sound.midi.*;
import java.io.*;
/**
* SignalDevice: Experimental device which creates random melodies and can
* be evolved
*
* @author <NAME>
*/
publ... |
huangjianqin/kin-rpc | kin-rpc-spring/src/main/java/org/kin/kinrpc/spring/EnableKinRpcService.java | package org.kin.kinrpc.spring;
import org.springframework.context.annotation.Import;
import java.lang.annotation.*;
/**
* 启用kinrpc service
*
* @author huangjianqin
* @date 2020/12/15
*/
@Documented
@Inherited
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(KinRpcServiceBeanProcessor.class)... |
joaconigro/QVES | VES-Core/Project.cpp | #include "Project.h"
Project::Project(QObject *parent) : QObject(parent)
{
}
Project::Project(const Project &pr)
{
mName = pr.name();
mVESs = pr.vess();
mCurrentVES = pr.currentVES();
mCurrentIndex = pr.currentIndex();
mCurrentePath = pr.currentePath();
mSaved = pr.saved();
this->setParen... |
gtrujillop/RealStateApp | db/migrate/20150620033333_add_for_sell_to_properties.rb | <reponame>gtrujillop/RealStateApp
class AddForSellToProperties < ActiveRecord::Migration
def change
add_column :properties, :for_sell, :boolean
end
end
|
qzyuanmu/wechat | mp/user/user.go | <reponame>qzyuanmu/wechat
// @description wechat 是腾讯微信公众平台 api 的 golang 语言封装
// @link https://github.com/chanxuehong/wechat for the canonical source repository
// @license https://github.com/chanxuehong/wechat/blob/master/LICENSE
// @authors chanxuehong(<EMAIL>)
package user
import (
"errors"
"fmt"
... |
wolfiex/VisACC | swirlycomparison/readnc.js | ///classes and defns
class nc2D {
constructor(name, width, arr_type) {
//Float32Array
this.width = dims[width];
this.arr_type = arr_type;
this.data = new arr_type(reader.getDataVariable(name));
}
}
nc2D.prototype.row = function(index) {
var start = index * this.width;
return new this.arr_type(th... |
NichelleBot/snap | mgmt/rest/flags.go | /*
http://www.apache.org/licenses/LICENSE-2.0.txt
Copyright 2015 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 ... |
isabella232/emacs4ij | jelisp/src/java/org/jetbrains/emacs4ij/jelisp/platformDependent/LispFrame.java | <reponame>isabella232/emacs4ij
package org.jetbrains.emacs4ij.jelisp.platformDependent;
import org.jetbrains.emacs4ij.jelisp.Environment;
import org.jetbrains.emacs4ij.jelisp.elisp.LispList;
import org.jetbrains.emacs4ij.jelisp.elisp.LispObject;
import org.jetbrains.emacs4ij.jelisp.elisp.LispSymbol;
import org.jetbrai... |
rwatson/chromium-capsicum | webkit/tools/test_shell/test_shell_webthemeengine.cc | <filename>webkit/tools/test_shell/test_shell_webthemeengine.cc
// Copyright (c) 2009 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.
// This file implements a simple generic version of the WebKitThemeEngine,
// Since Web... |
keys-pub/keysd | http/server/twitter.go | package server
import (
"github.com/keys-pub/keys"
"github.com/keys-pub/keys/http"
"github.com/keys-pub/keys/user"
"github.com/keys-pub/keys/user/services"
"github.com/labstack/echo/v4"
"github.com/pkg/errors"
)
func (s *Server) checkTwitter(c echo.Context) error {
ctx := c.Request().Context()
kid, err := ke... |
lihongan/external-dns | vendor/github.com/exoscale/egoscale/v2/database.go | package v2
import (
"context"
"net/url"
"time"
apiv2 "github.com/exoscale/egoscale/v2/api"
"github.com/exoscale/egoscale/v2/oapi"
)
// DatabaseBackupConfig represents a Database Backup configuration.
type DatabaseBackupConfig struct {
FrequentIntervalMinutes *int64
FrequentOldestAgeMinutes *int64
Infreq... |
zenozeng/decision-tree-visualization | bower_components/p5.js/examples/addons/p5.sound/oscillatorMod_AM/sketch.js | /**
* Example: Amplitude Modulation involves two oscillators, referred
* to as the carrier and the modulator, where the modulator controls
* the carrier's amplitude.
*
* The carrier is typically set at an audible frequency (i.e. 440 Hz)
* and connected to master output by default. The carrier.amp is
* set to ze... |
DasNaCl/old-university-projects | cccc/tests/parser/declaration_spec.cpp | <gh_stars>0
#include <test_suite.hpp>
#include <gtest/gtest.h>
#define MYTEST(Y) TEST(parser_declarations, declaration_ ## Y)
using namespace mhc4;
static const std::string f = "declare.c";
const test_suite ts(f);
MYTEST(identifier_int)
{
try
{
ts.parse_body("int a;", 6);
}
catch(std::exce... |
caoren/react-asyncmodule | packages/react-asyncmodule-chunk/es/asyncchunk.js | function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
import React from 'react';
import { AsyncProvider } from './asynccontext';
var AsyncChunk = funct... |
bxunzhao/Volley-Okhttp-Rebulid | DownloadLib/src/main/java/com/kronos/download/adapter/IModelObservable.java | package com.kronos.download.adapter;
/**
* Created by <NAME> on 16/8/18.
* Email <EMAIL>
*/
public interface IModelObservable {
void registerDataSetObserver(IObserver observer);
void unregisterDataSetObserver(IObserver observer);
void notifyDataChange();
void unregisterAll();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.