repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
mlopezFC/flow
flow-server/src/test/java/com/vaadin/flow/component/ComponentTest.java
/* * Copyright 2000-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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
Ashwanigupta9125/code-DS-ALGO
CodeForces/Complete/100-199/166E-Tetrahedron.cpp
<filename>CodeForces/Complete/100-199/166E-Tetrahedron.cpp #include <cstdio> int main(){ long n(0); scanf("%ld", &n); const int a = 4; const long modNumber = 1000000007; long long f(0), g(0), fPrev(0), gPrev(1); for(long k = 2; k <= n; k++){ f = (a - 1) * gPrev; ...
llorz-o/rich-m
cli/site/doc/index.js
<filename>cli/site/doc/index.js<gh_stars>0 import Vue from 'vue' import VueRouter from 'vue-router' import App from "./App.vue" import Doc from './views/Doc.vue' import * as docs from '../../dist/component-descript' Vue.use(VueRouter) let routes = [] let componentsKeys = Object.keys(docs) componentsKeys.forEach(key...
rssh/scala-gopher
js/src/test/scala/gopher/impl/RingBufferTest.scala
<reponame>rssh/scala-gopher package gopher.impl import cps._ import cps.monads.FutureAsyncMonad import gopher._ import scala.concurrent._ import scalajs.concurrent.JSExecutionContext import scalajs.concurrent.JSExecutionContext.Implicits.queue import munit._ class RingBufferTests extends munit.FunSuite{ test("r...
almarklein/stentseg
lspeas/_dicomStatic2ssdf.py
<reponame>almarklein/stentseg """ Load static CT data and save to ssdf format """ import os import sys import imageio from stentseg.utils.datahandling import select_dir, loadvol from stentseg.utils.datahandling import savecropvols, saveaveraged # Select base directory for LOADING DICOM data # The stentseg datahan...
sLeeNguyen/sales-support
sales/models.py
from django.db import models from django.utils import timezone from core.utils import server_timezone from customers.models import Customer from coupons.models import Coupon from stores.models import Store from users.models import User from products.models import Product class InvoiceManager(models.Manager): pre...
tompis/casual
middleware/transaction/source/resource/proxy_server.cpp
<gh_stars>0 //! //! resource_proxy_server.cpp //! //! Created on: Aug 2, 2013 //! Author: Lazan //! #include "transaction/resource/proxy_server.h" #include "transaction/resource/proxy.h" #include "common/error.h" #include "common/arguments.h" #include "common/environment.h" #include "common/trace.h" #include "co...
feiooo/games-puzzles-algorithms
old/lib/setup.py
from setuptools import setup, find_packages import warnings setup( name='games_puzzles_algorithms', version='0.0.1', license='MIT', packages=find_packages(), install_requires=[ 'future == 0.15.2', 'setuptools == 20.2.2', 'heapdict == 1.0.0', ], tests_require=['pytest...
santosh653/checker-framework
framework/tests/flowexpression/ArrayCreationParsing.java
package flowexpression; import org.checkerframework.framework.testchecker.flowexpression.qual.FlowExp; public class ArrayCreationParsing { @FlowExp("new int[2]") Object value1; @FlowExp("new int[2][2]") Object value2; @FlowExp("new String[2]") Object value3; @FlowExp("new String[] {\"a\", \"b\"}") Object...
RFXTechnologies/fleet
server/datastore/mysql/migrations/tables/20220307104655_AddHostDeviceAuth.go
package tables import ( "database/sql" "github.com/pkg/errors" ) func init() { MigrationClient.AddMigration(Up_20220307104655, Down_20220307104655) } func Up_20220307104655(tx *sql.Tx) error { hostDeviceAuthTable := ` CREATE TABLE IF NOT EXISTS host_device_auth ( host_id int(10) UNSIGNED NOT NULL, ...
Fusion-Rom/android_external_chromium_org_third_party_WebKit
Source/bindings/core/v8/V8DOMConfiguration.cpp
<reponame>Fusion-Rom/android_external_chromium_org_third_party_WebKit<gh_stars>1-10 /* * Copyright (C) 2012 Google 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. Redistributio...
Geomatys/sis
core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/transform/AbstractLinearTransform.java
<gh_stars>10-100 /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "Li...
ArtemiusL/ark
src/containers/footerContent/footerContent.js
<reponame>ArtemiusL/ark import './footerContent.scss'; import 'components/contact';
Bigfluf/BloodMagic
src/main/java/WayofTime/alchemicalWizardry/common/demonVillage/demonHoard/demon/EntityMinorDemonGrunt.java
package WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.EntityAIAttackOnCollide; import net.minecraft.entity.ai.EntityAIFollowOwner; i...
isbjorntrading/aiocells
src/aiocells/demo_5.py
<reponame>isbjorntrading/aiocells #!/usr/bin/env python3 import asyncio from functools import partial import aiocells # This example demonstrates graph nodes that are coroutines. We use # a different computer; one that know how to deal with coroutines. def main(): graph = aiocells.DependencyGraph() # Firs...
zhiming-shen/Xen-Blanket-NG
xen/xen-4.2.2/tools/qemu-xen-traditional/linux-user/arm/nwfpe/fpa11.c
/* NetWinder Floating Point Emulator (c) Rebel.COM, 1998,1999 Direct questions, comments to <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 ...
davidpicard/jkernelmachines
src/main/java/net/jkernelmachines/evaluation/NFoldCrossValidation.java
/******************************************************************************* * Copyright (c) 2016, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of sour...
soleil-taruto/Henrietta
e20190001_Hetapuz/Hetapuz/Hetapuz/Input.h
<gh_stars>0 enum { INP_DIR_2, INP_DIR_4, INP_DIR_6, INP_DIR_8, INP_START, INP_DECIDE, INP_CANCEL, INP_ROT_L, INP_ROT_R, INP_BOMB, INP_END, }; #define INP_ROT_DECIDE INP_ROT_L #define INP_ROT_CANCEL INP_ROT_R typedef struct Input_st { int Map_Key; int Map_Pad; int Press; int PressCount; int Hit; in...
bcgov/OCWA
frontend/src/modules/requests/containers/form-wrapper.js
<gh_stars>1-10 import { connect } from 'react-redux'; import findKey from 'lodash/findKey'; import get from 'lodash/get'; import withRequest from '@src/modules/data/components/data-request'; import Form from '../components/request-form/form'; import { fetchForm } from '../actions'; import { formSchema } from '../schem...
manjunathnilugal/PyBaMM
pybamm/models/submodels/active_material/__init__.py
<gh_stars>1-10 from .base_active_material import BaseModel from .constant_active_material import Constant from .stress_driven_active_material import StressDriven from .reaction_driven_active_material import ReactionDriven
winstin/Purestart
src/redux/components/Refund/index.js
<gh_stars>1-10 import React from 'react'; import {connect} from 'react-redux'; import { bindActionCreators } from 'redux' import Button from 'qnui/lib/button'; import Icon from 'qnui/lib/icon'; import Select, {Option} from 'qnui/lib/select'; import * as actionTypes from './RefundAction' import RefundTable from './Tab...
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/aarch64/clz.c
<reponame>best08618/asylo /* { dg-do compile } */ /* { dg-options "-O2" } */ unsigned int functest (unsigned int x) { return __builtin_clz (x); } /* { dg-final { scan-assembler "clz\tw" } } */
jeremiahtenbrink/SynapsFrontend
src/reducers/usersReducer.js
<reponame>jeremiahtenbrink/SynapsFrontend<gh_stars>1-10 import { SIGNED_IN, SIGNIN_FAILED, SIGNOUT, ATTEMPT_SIGNIN, USER_REGISTER_FAILED, USER_ATTEMPT_REGISTER, USER_REGISTER_COMPLETE, CHECK_USER_REGISTERED, } from '../actions'; /** * @typedef {object} UsersReducerState * @property {boolean} fetching...
cisco-ie/cisco-proto
codegen/go/xr/65x/cisco_ios_xr_ipv4_igmp_oper/igmp/standby/vrfs/vrf/explicit_groups/explicit_group/igmp_edm_groups_et_bag.pb.go
<filename>codegen/go/xr/65x/cisco_ios_xr_ipv4_igmp_oper/igmp/standby/vrfs/vrf/explicit_groups/explicit_group/igmp_edm_groups_et_bag.pb.go /* Copyright 2019 Cisco Systems 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 cop...
wondery/hdfs-nfs-proxy
src/main/java/com/cloudera/hadoop/hdfs/nfs/nfs4/requests/CompoundRequest.java
<gh_stars>1-10 /** * Copyright 2012 Cloudera Inc. * * 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...
eleswastaken/odin-project
todo-list/src/components/AllProjects.js
<filename>todo-list/src/components/AllProjects.js<gh_stars>0 import ProjectComponent from "./Project.js"; import NewProject from "./NewProject.js"; import { sortByComplete } from "../sort.js"; export default function AllProjects(projects) { const wrapper = document.createElement("div"); const ul = document.create...
afzalhub/wasp
contracts/rust/fairroulette/test/consts.go
// Copyright 2020 <NAME> // SPDX-License-Identifier: Apache-2.0 package test import ( "github.com/iotaledger/wasp/packages/coretypes" ) const ScName = "fairroulette" const ScHname = coretypes.Hname(0xdf79d138) const ParamNumber = "number" const ParamPlayPeriod = "playPeriod" const VarBets = "bets" const VarLastWi...
FazeelUsmani/Leetcode
2020 Leetcode Challenges/07 July Leetcode Challenge 2020/03 prisonAfterKdays.cpp
class Solution { public: vector<int> prisonAfterNDays(vector<int>& cells, int N) { vector<int> temp(8, 0); N = (N % 14==0) ? 14 : N%14; while (N--){ for (int i = 1; i < 7; ++i){ if ((cells[i-1] == 0 && cells[i+1] == 0) || (cells[i-1] == 1 &...
jglrxavpok/Minestom
src/main/java/fr/themode/demo/blocks/StoneBlock.java
<reponame>jglrxavpok/Minestom package fr.themode.demo.blocks; import net.minestom.server.data.Data; import net.minestom.server.entity.Player; import net.minestom.server.instance.Instance; import net.minestom.server.instance.block.CustomBlock; import net.minestom.server.utils.BlockPosition; import net.minestom.server.u...
scnipper/Solitaire
core/src/me/creese/solitaire/screens/GameScreen.java
<gh_stars>0 package me.creese.solitaire.screens; import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch; import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.utils.viewport.FitViewport; import com.badlogic.gdx.utils.viewport.ScreenViewport; import me.creese.solitaire.entity.FillBlack; import me.cree...
osamamagdy/addons-server
src/olympia/files/decorators.py
<reponame>osamamagdy/addons-server from django import http from django.core.exceptions import ObjectDoesNotExist, PermissionDenied import olympia.core.logger from olympia import amo from olympia.access import acl from olympia.addons.decorators import owner_or_unlisted_reviewer log = olympia.core.logger.getLogger('z...
ua-eas/devops-automation-ksd-kc5.2.1-rice
impl/src/main/java/org/kuali/rice/kew/role/service/impl/RoleServiceImpl.java
/** * Copyright 2005-2015 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
FedericoQuin/2dv50e
machine_learner/machine_learner/preprocessing/feature_selection_multigoal.py
<filename>machine_learner/machine_learner/preprocessing/feature_selection_multigoal.py import matplotlib.pyplot as plt import json import sys import numpy as np from sklearn.ensemble import ExtraTreesClassifier, ExtraTreesRegressor import os def doFeatureSelectionClass(data): target_packetloss, target_latency = da...
ung-org/lib-c
src/setjmp/sigjmp_buf.c
<gh_stars>0 #include <setjmp.h> /** program environment with signal mask **/ typedef jmp_buf sigjmp_buf; /*** is used to hold all the information needed to restore a a calling environment, including the signal mask. ***/ /* TYPEDEF(an array type) POSIX(1) */
sriharshakappala/ggrc-core
src/ggrc/models/system_control.py
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: <EMAIL> # Maintained By: <EMAIL> from ggrc import db from .mixins import Base class SystemControl(Base, db.Model): __tablename__ = 'system_contr...
kojole/WikiEduDashboard
app/workers/greet_students_worker.rb
<reponame>kojole/WikiEduDashboard # frozen_string_literal: true class GreetStudentsWorker include Sidekiq::Worker sidekiq_options unique: :until_executed def self.schedule_greetings(course, greeter) perform_async(course.id, greeter.id) end def perform(course_id, greeter_id) course = Course.find(cou...
PrachieNaik/DSA
LinkedList/MergeTwoList/MergeTwoList.cpp
<reponame>PrachieNaik/DSA /* Given two sorted lists, merge them so as to produce a combined sorted list (without using extra space). Constraints: 0 <= N <= 50 1 <= Mi <= 20 1 <= Element of linked list <= 10^3 Approaches: Method 1: The recursive solution can be formed, given the linked lists are sorted. ...
KrisiKostadinov/myblog
app.js
const express = require('express'); const exphbs = require('express-handlebars'); const session = require('express-session'); const methodOverride = require('method-override'); const cookieParser = require('cookie-parser'); const flash = require('connect-flash'); const passport = require('passport'); const fileUpload =...
5GZORRO/governance-manager
src/main/java/eu/_5gzorro/governancemanager/controller/v1/response/PagedMembersResponse.java
package eu._5gzorro.governancemanager.controller.v1.response; import eu._5gzorro.governancemanager.dto.MemberDto; import org.springframework.data.domain.Page; import java.util.Objects; public class PagedMembersResponse { private final Page<MemberDto> pagedMembers; public PagedMembersResponse(Page<MemberDto>...
mariusj/org.openntf.domino
domino/core/src/test/java/org/openntf/domino/tests/jpg/KeyValueStore.java
/** * */ package org.openntf.domino.tests.jpg; import static java.lang.Math.pow; import static org.openntf.domino.utils.DominoUtils.checksum; import java.util.HashMap; import java.util.Map; import org.openntf.domino.Database; import org.openntf.domino.DbDirectory; import org.openntf.domino.Document; ...
nadavtal/3dbia
app/containers/Wijmo/WijmoCheckBoxTable.js
import React from 'react' import { FlexGrid, FlexGridColumn } from "@grapecity/wijmo.react.grid"; import { Selector } from "@grapecity/wijmo.grid.selector"; import { HeadersVisibility } from "@grapecity/wijmo.grid"; import { CollectionView, PropertyGroupDescription } from "@grapecity/wijmo"; import {MDBInput} from 'mdb...
jmdbo/TRSA
src/t7_package/src/tf_subscriber_node.cpp
#include <ros/ros.h> #include "t7_package/TfSubscriber.h" int main(int argc, char **argv) { ros::init( argc, argv, "tf_subscriber" ); TfSubscriber subscriber; subscriber.run(); return EXIT_SUCCESS; }
Archadia/terrabyte
src/main/java/com/projectkroma/terrabyte/imgui/ImGuiBridge.java
<reponame>Archadia/terrabyte package com.projectkroma.terrabyte.imgui; import imgui.ImDrawData; import imgui.ImGuiImplTerrabyte; public interface ImGuiBridge { void newFrameGLFW(); void renderGL(ImDrawData drawData); void dispose(); public static ImGuiBridge newBridge(long window, String glslVersion) { retu...
echokepler/megad2561
cmd/backup/main.go
package main import ( "flag" "github.com/echokepler/megad2561/internal/backup" "log" "os" ) func main() { var ( addr = flag.String("host", "http://192.168.88.14", "Сетевой адрес веб сервера megad") pwd = flag.String("password", "<PASSWORD>", "<PASSWORD> доступка к megad") backupFilePat...
NlaakStudios/Just-Old-Code
archives/1_H5C3_Framework/h5c3/lib/r2wl/brand.js
/** * * @namespace Core * @class h5c3.Brand * @augments h5c3.Base * @description * [Extends <a href='h5c3.Base'>h5c3.Base</a>] * <p> * * <pre><code> * * </code></pre> * * </p> */ h5c3.Brand = h5c3.Base.extend('h5c3.Brand', { _CLASSNAME :'Brand', _CLASSVERSION :'0.0.2' },{ /** * @public * @me...
marcussacana/DirectPackageInstaller
Payload/freebsd-headers/rpc/rpcb_prot.h
/* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _RPCB_PROT_H_RPCGEN #define _RPCB_PROT_H_RPCGEN #include <rpc/rpc.h> #ifdef __cplusplus extern "C" { #endif /* * $FreeBSD: release/9.0.0/include/rpc/rpcb_prot.x 92223 2002-03-13 10:29:06Z obrien $ * * Sun RPC is a product of Sun Mi...
iot-bc/eer-application
server/models/organizationSchema.js
const mongoose = require("mongoose"); const Schema = mongoose.Schema; let organizationSchema = new Schema({ orgID: { type: String, required: true, unique: true }, orgName: { type: String, required: true } }); organizationSchema.methods.setOrgID = function(orgID) { this.orgID = orgID; };...
RedBeard0531/mongo_utils
util/fail_point_service.h
<reponame>RedBeard0531/mongo_utils /* * Copyright (C) 2012 10gen 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 * ...
consumer-tasks/letcode
1785-minimum-elements-to-add-to-form-a-given-sum.js
<reponame>consumer-tasks/letcode /** * @param {number[]} nums * @param {number} limit * @param {number} goal * @return {number} */ const minElements = function(nums, limit, goal) { const sum = nums.reduce((ac, e) => ac + e, 0) let delta = goal - sum if(delta === 0) return 0 const op = delta > 0 ? '+' : '-'...
skkuse-adv/2019Fall_team2
analysis/reverse-engineering/decompile-fitts-with-gradle-20191031-2200/src/main/java/kr/co/popone/fitts/viewmodel/store/newest/NewestProductViewModel$registerLikeProductBus$2.java
<gh_stars>1-10 package kr.co.popone.fitts.viewmodel.store.newest; import com.orhanobut.logger.Logger; import io.reactivex.functions.Consumer; final class NewestProductViewModel$registerLikeProductBus$2<T> implements Consumer<Throwable> { public static final NewestProductViewModel$registerLikeProductBus$2 IN...
NewBediver/FarLight
FarLight/src/FarLight/ConfigurationSystem/LocalConfigurations/Application/ApplicationConfiguration.h
<reponame>NewBediver/FarLight #pragma once #include <string> #include "FarLight/ConfigurationSystem/Configuration.h" namespace FarLight { class ApplicationConfiguration final : public Configuration { public: explicit ApplicationConfiguration() noexcept : Configuration("Applica...
AleksK1NG/React-Redux-practice-workshop
src/components/NewArticlesList/NewArticlesList.js
<gh_stars>0 import React, { Component } from 'react' import { connect } from 'react-redux' import {addNewArticle, deleteNewArticle} from '../../actions/newArticlesActions' import { newArticleSelector, newArticleTitlesSelector, newArtComboSelector } from '../../selectors'; class NewArticlesList extends Component { st...
Danylo79/Dankom-Core
src/main/java/dev/dankom/interfaces/runner/MethodRunner.java
<gh_stars>1-10 package dev.dankom.interfaces.runner; public interface MethodRunner { void run(); }
jonahbull/apm-agent-java
apm-agent-attach/src/main/java/co/elastic/apm/attach/RemoteAttacher.java
<filename>apm-agent-attach/src/main/java/co/elastic/apm/attach/RemoteAttacher.java /*- * #%L * Elastic APM Java agent * %% * Copyright (C) 2018 - 2019 Elastic and contributors * %% * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this wo...
cloud-SN1/uxcool
packages/uxcool/src/index.js
<reponame>cloud-SN1/uxcool<gh_stars>10-100 import { install } from './components/index'; export { default } from './components/index'; require.context('./components', true, /^\.\/[^_][\w-]+\/style\/index\.js$/); if (typeof window !== 'undefined' && window.Vue) { window.Vue.use(install); }
dhiaayachi/go-newton-co
query/tick_sizes_test.go
<filename>query/tick_sizes_test.go package query_test import ( "net/http" "reflect" "testing" "github.com/dhiaayachi/go-newton-co/query" "github.com/onsi/gomega" ) func TestTickSizesGetBody(t *testing.T) { g := gomega.NewGomegaWithT(t) sut := &query.TickSizes{} actualBody, err := sut.GetBody() g.Expect(e...
vikingdr/SoberGrid
SoberGrid/XMPPFiles/Core/XMPPParser.h
#import <Foundation/Foundation.h> #if TARGET_OS_IPHONE #import "DDXML.h" #endif @interface XMPPParser : NSObject - (id)initWithDelegate:(id)delegate delegateQueue:(dispatch_queue_t)dq; - (id)initWithDelegate:(id)delegate delegateQueue:(dispatch_queue_t)dq parserQueue:(dispatch_queue_t)pq; - (void)setDelegate:(id...
jamescaoBJ/springcloud
springboot-dao/src/main/java/com/ncme/springboot/model/NcmeStudyCardHistory.java
package com.ncme.springboot.model; import java.util.Date; public class NcmeStudyCardHistory { private String cardNo; private String cardPasswd; private String cardType; private Date operatorDate; private String userName; private Date linkDate; private Integer balance...
caibirdme/leetforfun
leetcode/leet_76/source.go
<gh_stars>10-100 package leet_76 func minWindow(s string, t string) string { target := make(map[byte]int) for i := 0; i < len(t); i++ { if _, ok := target[t[i]]; !ok { target[t[i]] = 1 } else { target[t[i]]++ } } count := make(map[byte]int) ans := len(s) + 1 pos := make([]int, 0, len(target)) left :...
CloudifySource/Cloudify-iTests
src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/byon/persistence/ScaleoutAfterRecoveryUsingHostNamesTest.java
package org.cloudifysource.quality.iTests.test.cli.cloudify.cloud.byon.persistence; import iTests.framework.utils.LogUtils; import iTests.framework.utils.NetworkUtils; import org.cloudifysource.quality.iTests.test.cli.cloudify.cloud.services.byon.MultipleTemplatesByonCloudService; import org.testng.annotations.AfterCl...
Kangmo/bitcoinj
core/src/main/scala/com/nhnsoft/bitcoin/core/PeerFilterProvider.scala
/* * Copyright 2013 Google Inc. * 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 appl...
JSybrandt/SuperSpirograph
src/main/java/geometry/wheelshape/Shield.java
package geometry.wheelshape; /** * A shield shaped wheel. */ public class Shield extends WheelGeometry { /** * * @param scale a positive value representing the general size of the shape. */ public Shield(float scale){ super(null); } }
UM-ARM-Lab/mab_ms
deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgwidgettable/osgwidgettable.cpp
<filename>deform_control/external_libs/OpenSceneGraph-2.8.5/examples/osgwidgettable/osgwidgettable.cpp // -*-c++-*- osgWidget - Code by: <NAME> (cubicool) 2007-2008 // $Id: osgwidgettable.cpp 43 2008-04-17 03:40:05Z cubicool $ #include <osgWidget/Util> #include <osgWidget/WindowManager> #include <osgWidget/Table> con...
ruoranluomu/AliOS-Things
platform/mcu/msp432p4xx/ti/drivers/.meta/AESCCM.syscfg.js
<reponame>ruoranluomu/AliOS-Things /*! * ======== AESCCM configuration ======== * Advanced Encryption Standard (AES) module, counter (CTR) mode with cypher * block chaining message authentication (CBC-MAC). */ "use strict"; /* global exports, system */ /* get Common /ti/drivers utility functions */ let...
cuihaoleo/exercises
UVaOJ/694 - The Collatz Sequence.c
#include <stdio.h> #include <stdlib.h> int main() { int ct = 0; while (1) { long long a; int l, step = 1; scanf("%lld%d", &a, &l); if (a < 0) break; printf("Case %d: A = %lld, limit = %d, ", ++ct, a, l); while (a!=1) { ...
saxix/django-db-logging
tests/demoapp/demo/settings.py
<gh_stars>0 from django_db_logging.router import LoggingRouter DEBUG = True STATIC_URL = '/static/' SITE_ID = 1 ROOT_URLCONF = 'demo.urls' SECRET_KEY = 'abc' STATIC_ROOT = 'static' MEDIA_ROOT = 'media' INSTALLED_APPS = ['django.contrib.auth', 'django.contrib.contenttypes', 'django...
rsumner33/PTVS
Release/Tests/AnalysisTest/Python.VS.TestData/Grammar/Keywords25.py
with = 1 as = 2
appfs/appfs
Brand/ex1/html/search/variables_3.js
var searchData= [ ['totlines',['totLines',['../ex1_8cpp.html#a93c5413e758efa3b9cefdb398c6edcd5',1,'ex1.cpp']]] ];
Grace-Amondi/Health
widgets/Chart/nls/sl/strings.js
define({ "_widgetLabel": "Grafikon", "executeChartTip": "Kliknite enega od naslednjih elementov nalog za izvedbo grafikona.", "invalidConfig": "Neveljavna konfiguracija.", "noneChartTip": "Opravilo grafikona ni konfigurirano za ta pripomoček", "chartParams": "Možnosti", "charts": "GRAFIKONI", "appl...
Jeanmilost/Demos
Embarcadero/OpenGL/MD3 reader/Classes/QR_Base/QR_MemoryTools/QR_MemoryTools.cpp
<filename>Embarcadero/OpenGL/MD3 reader/Classes/QR_Base/QR_MemoryTools/QR_MemoryTools.cpp<gh_stars>1-10 /***************************************************************************** * ==> QR_MemoryTools -------------------------------------------------------* * *******************************************************...
ipl-adm/xray-oxygen
code/engine.vc2008/xrEngine/Environment_misc.cpp
<reponame>ipl-adm/xray-oxygen<filename>code/engine.vc2008/xrEngine/Environment_misc.cpp #include "stdafx.h" #pragma hdrstop #include "Environment.h" #include "xr_efflensflare.h" #include "thunderbolt.h" #include "rain.h" #include "IGame_Level.h" #include "../xrServerEntities/object_broker.h" #include "../xrServerEnti...
migijs/m
tests/objkeep/test.js
<filename>tests/objkeep/test.js var path = require('path'); var fs = require('fs'); module.exports = { 'init': function(browser) { browser .url('file://' + path.join(__dirname, 'index.html')) .waitForElementVisible('body', 1000) .assert.containsText('#test [ref="1"]', '51') .assert.contai...
akhr0m/go
chapter-85-understanding-net-http-serverMux/01.routing.go
<filename>chapter-85-understanding-net-http-serverMux/01.routing.go package main import ( "io" "net/http" ) type hotdog int func (m hotdog) ServeHTTP(w http.ResponseWriter, req *http.Request) { switch req.URL.Path { case "/dog": io.WriteString(w, "doggy doggy doggy") case "/cat": io.WriteString(w, "kitty ki...
gdeignacio/fbit-digitalgov-libs
utils/src/main/java/org/fundaciobit/administraciodigital/utils/data/DataAdapter.java
<reponame>gdeignacio/fbit-digitalgov-libs /* * Copyright 2016 gdeignacio. * * 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 *...
michaelthomasj/trusted-firmware-m
platform/ext/target/cypress/psoc64/Native_Driver/include/cy_syslib.h
<reponame>michaelthomasj/trusted-firmware-m /***************************************************************************//** * \file cy_syslib.h * \version 2.40.1 * * Provides an API declaration of the SysLib driver. * ******************************************************************************** * \copyright * Copyr...
mwlang/jasonette-rails
lib/jasonette/core/items.rb
module Jasonette class Items < Jasonette::Base def label caption=nil, skip_type=false item = Jasonette::Item.new(context) do text caption unless caption.nil? type "label" unless skip_type encode(&::Proc.new) if block_given? end append item end def text caption=n...
cheeepsan/ure-test
src/main/java/ure/ui/modals/UModalTarget.java
<gh_stars>100-1000 package ure.ui.modals; import ure.commands.UCommand; import ure.math.UColor; import ure.sys.Entity; import ure.sys.GLKey; import java.util.ArrayList; public class UModalTarget extends UModal { String prompt; ArrayList<Entity> targets; boolean shiftFree, visibleOnly; String glyphs...
clousale/amazon-sp-api-javascript
src/client/models/Promotion.js
<reponame>clousale/amazon-sp-api-javascript<filename>src/client/models/Promotion.js /** * Selling Partner API for Finances * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date ra...
kzhioki/U8g2_Arduino
src/clib/u8g2_font_t0_17b_mf.c
#include "u8g2.h" /* Fontname: -UW-Ttyp0-Bold-R-Normal--17-160-75-75-C-90-ISO10646-1 Copyright: Copyright (C) 2012-2015 <NAME> Glyphs: 191/3075 BBX Build Mode: 2 */ const uint8_t u8g2_font_t0_17b_mf[3988] U8G2_FONT_SECTION("u8g2_font_t0_17b_mf") = "\277\2\4\2\4\5\1\3\5\11\21\0\375\13\375\14\377\2O\4\373\17w ...
bappogroup/bappo-open
packages/bappo-components/storybook/storybook-native/storybook/stories/2-components/Button/examples/PropDisabled.js
<reponame>bappogroup/bappo-open<filename>packages/bappo-components/storybook/storybook-native/storybook/stories/2-components/Button/examples/PropDisabled.js import React from 'react'; import { Button, View } from 'bappo-components'; const ButtonSizeExample = () => ( <View style={styles.horizontal}> <Button text=...
graemeaj/VRMiniGun
Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate/Build/Win64/UE4Editor/Inc/VRExpansionPlugin/OptionalRepSkeletalMeshActor.generated.h
// Copyright Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ========================================================================...
SitdikovRustam/CatBoost
contrib/libs/cxxsupp/libcxx/include/wrappers/math.h
#include "__wrappers_config" #include _LIBCXX_PROPER_HEADER(math.h)
jiucaihuanshe/jt_cms
jt-dubbo-web/src/main/java/com/jt/web/service/ItemServiceImpl.java
package com.jt.web.service; import java.util.HashMap; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.util.StringUtils; import com.faster...
goutomroy/uva.onlinejudge
solved/mpi maelstone(423).cpp
<gh_stars>0 #include<stdio.h> #include<math.h> #include<stdlib.h> #include<string.h> #define big 200000 #define sz 150 void main() { long n,i,j,matrix[sz][sz],k,max; char ch[800],*ptr; while(scanf("%ld",&n)==1) { for(i=j=1;j<=n;j++,i++) matrix[i][j]=big; for(i=2;i<=n;i++) for(j=1;j<i;) { gets(ch)...
wlhcode/lscct
src/L/L1480.cpp
<reponame>wlhcode/lscct<filename>src/L/L1480.cpp #include<cstdio> int main(){ int a; scanf("%d",&a); int n=a*a; int tmp; for(int clm=1;clm<=a;clm++){ for(int cout=clm;cout<=clm+(a-1)*a;cout+=a){ printf("%d",cout*a); if(cout!=clm+(a-1)*a) printf(" "); } ...
hampld/newrelic-ruby-agent
test/new_relic/agent/transaction/external_request_segment_test.rb
<gh_stars>10-100 # encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) require 'new_relic/agent/transaction' re...
JrGoodle/djinni
test-suite/generated-src/java/com/dropbox/djinni/test/SetRecord.java
<filename>test-suite/generated-src/java/com/dropbox/djinni/test/SetRecord.java // AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from set.djinni package com.dropbox.djinni.test; import java.util.ArrayList; import java.util.HashSet; import javax.annotation.CheckForNull; import javax.annotation.No...
eccenca/DataspaceConnector
src/main/java/io/dataspaceconnector/view/endpoint/GenericEndpointViewAssembler.java
<filename>src/main/java/io/dataspaceconnector/view/endpoint/GenericEndpointViewAssembler.java<gh_stars>0 /* * Copyright 2020 Fraunhofer Institute for Software and Systems Engineering * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License...
wxwoods/mctorch
torch/nn/manifolds/manifold_factory.py
from .stiefel import Stiefel from .positive_definite import PositiveDefinite from .euclidean import Euclidean from ..parameter import Parameter class ManifoldShapeFactory(object): """ Base class for manifold shape factory. This is used by torch modules to determine shape of Manifolds give shape of weight ...
marcelocmedeiros/EstruturaSequencial
SomaSubtraMultiDivisPoten2QuocResto.py
# <NAME> # ADS UNIFIP 2020.1 # Patos-PB 17/03/2020 ''' Faça um Programa que peça dois números e imprima a soma, subtração, multiplicação, divisão, pontência, quociente e o resto. ''' # variáveis numericas num_1 = float(input('Digite o 1º número: ')) num_2 = float(input('Digite o 2º número: ')) # operadores matemático...
hTangle/AlgorithmPractice
src/com/nevergetme/designmode/abstractfactory/listfactory/ListFactory.java
package com.nevergetme.designmode.abstractfactory.listfactory; import com.nevergetme.designmode.abstractfactory.factory.Factory; import com.nevergetme.designmode.abstractfactory.factory.Link; import com.nevergetme.designmode.abstractfactory.factory.Page; import com.nevergetme.designmode.abstractfactory.factory.Tray; ...
Zutubi/pulse
bundles/com.zutubi.pulse.core.commands.core/src/test/com/zutubi/pulse/core/commands/core/JUnitReportPostProcessorTest.java
<filename>bundles/com.zutubi.pulse.core.commands.core/src/test/com/zutubi/pulse/core/commands/core/JUnitReportPostProcessorTest.java /* Copyright 2017 Zutubi Pty Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
l33tdaima/l33tdaima
p633m/square_sum.js
<reponame>l33tdaima/l33tdaima<filename>p633m/square_sum.js /** * @param {number} c * @return {boolean} */ var judgeSquareSum = function (c) { let [a, b] = [0, ~~Math.sqrt(c)]; while (a <= b) { let p = a * a + b * b; if (p === c) { return true; } else if (p < c) { a++; } else { b...
haikyuu/linkedom
test/html/script-element.js
const assert = require('../assert.js').for('HTMLScriptElement'); const {parseHTML} = global[Symbol.for('linkedom')]; const {document} = parseHTML('<!DOCTYPE html><html />'); let script = document.createElement('script'); script.setAttribute('what', 'ever'); script.appendChild(document.createTextNode('"')); assert(sc...
rsjtaylor/libadm
tests/xml_parser_audio_content_tests.cpp
<gh_stars>1-10 #include <catch2/catch.hpp> #include <sstream> #include "adm/document.hpp" #include "adm/elements/audio_content.hpp" #include "adm/parse.hpp" #include "adm/errors.hpp" TEST_CASE("xml_parser/audio_content") { using namespace adm; auto document = parseXml("xml_parser/audio_content.xml"); auto audioC...
zealoussnow/chromium
remoting/host/mojom/remoting_mojom_traits.cc
<filename>remoting/host/mojom/remoting_mojom_traits.cc // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "remoting/host/mojom/remoting_mojom_traits.h" namespace mojo { // static bool mojo::Stru...
Starkteetje/dokoserver
src/main/java/doko/database/player/PlayerService.java
<reponame>Starkteetje/dokoserver<gh_stars>1-10 package doko.database.player; import java.util.Arrays; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import doko.lineup.LineUp; import doko.lineup.NamedLine...
chengciming/dns-server
dns_server_node/logic/broad.js
<reponame>chengciming/dns-server 'use strict'; const logger = require('../library/logger'); class Broad{ constructor(){ } /** * 获取主域名 * @param domain * @returns {string} */ getMainDomain(domain){ try{ let domainArray = domain.split('.'); return doma...
doyaGu/C0501Q_HWJL01
sdk/doc/html/struct_j_p_g___s_t_r_e_a_m___d_e_s_c___t_a_g.js
<filename>sdk/doc/html/struct_j_p_g___s_t_r_e_a_m___d_e_s_c___t_a_g.js var struct_j_p_g___s_t_r_e_a_m___d_e_s_c___t_a_g = [ [ "jClose_stream", "struct_j_p_g___s_t_r_e_a_m___d_e_s_c___t_a_g.html#acbdc50c6a5decd20d9cdeef1c8fcac8c", null ], [ "jControl", "struct_j_p_g___s_t_r_e_a_m___d_e_s_c___t_a_g.html#a98c93b53...
jstormes/wp-search-with-algolia
js/instantsearch.js/dist-es5-module/src/widgets/hierarchical-menu/hierarchical-menu.js
<filename>js/instantsearch.js/dist-es5-module/src/widgets/hierarchical-menu/hierarchical-menu.js 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactDom = require('react-dom'); var _reactDom2 = _intero...