repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
gbif/gbif-api | src/main/java/org/gbif/api/model/occurrence/predicate/GeoDistancePredicate.java | <filename>src/main/java/org/gbif/api/model/occurrence/predicate/GeoDistancePredicate.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-... |
rkorytkowski/teiid | engine/src/main/java/org/teiid/common/buffer/impl/PhysicalInfo.java | <gh_stars>0
/*
* Copyright Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags and
* the COPYRIGHT.txt file distributed with this work.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
strangelittlemonkey/DragonFlyBSD | sys/dev/disk/vn/vn.c | <reponame>strangelittlemonkey/DragonFlyBSD
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* the Systems Programming Group of the University of Utah Compute... |
navikt/spsak | felles/integrasjon/unleash-klient/src/main/java/no/nav/vedtak/felles/integrasjon/unleash/strategier/ByEnvironmentStrategy.java | <gh_stars>1-10
package no.nav.vedtak.felles.integrasjon.unleash.strategier;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import no.finn.unleash.strategy.Strategy;
public class ByEnvironmentStrategy implements Strategy {
public static final String ENV_KEY = "miljø";
private ... |
ChristinGorman/baxter | src/main/java/no/gorman/database/Where.java | package no.gorman.database;
public class Where {
public final DatabaseColumns column;
public final String operator;
public final Object value;
public Where(DatabaseColumns column, String operator) {
this.column = column;
this.operator = operator;
this.value = null;
}
... |
cmbi/vase | src/main/webapp/jsmol/j2s/JS/ScriptException.js | <reponame>cmbi/vase<gh_stars>1-10
Clazz.declarePackage ("JS");
Clazz.load (["java.lang.Exception"], "JS.ScriptException", null, function () {
c$ = Clazz.decorateAsClass (function () {
this.eval = null;
this.message = null;
this.untranslated = null;
this.isError = false;
Clazz.instantialize (this, arguments);
},... |
marcopush/util-cpp | string.cc | <filename>string.cc
#include "string.hh"
namespace util::string {
std::string_view ref_sv;
}
|
SemyonSinchenko/jungrapht-visualization | jungrapht-visualization/src/test/java/org/jungrapht/visualization/layout/algorithms/sugiyama/TestSugiyamaFunctions.java | <gh_stars>10-100
package org.jungrapht.visualization.layout.algorithms.sugiyama;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import org.jgrapht.Graph;
import org.jgrapht.graph.builder.GraphTypeBuilder;
i... |
cidermole/yaca | src/x86/yaca-c/Template.h | #ifndef _TEMPLATE_H_
#define _TEMPLATE_H_
#include <map>
#include <string>
#include "Utils.h"
using namespace std;
class Template {
private:
string m_file;
map<string, string> m_replace;
public:
Template(string file): m_file(file) {}
void addKey(string key, string value) {
m_replace.insert(pair<string, strin... |
happymanx/Weather_FFI | dcmtk-master2/dcmdata/libsrc/dcvr.cc | /*
*
* Copyright (C) 1994-2022, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmdata
*
* Author: <NAME>, ... |
dinvlad/jade-data-repo | src/test/java/bio/terra/common/FutureUtilsTest.java | package bio.terra.common;
import bio.terra.common.category.Unit;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.IterableUtils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runn... |
becca-bailey/amphtml | 3p/vendors/embedly.js | <reponame>becca-bailey/amphtml
// src/polyfills.js must be the first import.
import '#3p/polyfills';
import {register} from '#3p/3p';
import {embedly} from '#3p/embedly';
import {draw3p, init} from '#3p/integration-lib';
init(window);
register('embedly', embedly);
window.draw3p = draw3p;
|
albanoj2/robinhood-api | src/main/java/com/ampro/robinhood/endpoint/account/data/BasicAccountHolderInfoElement.java | <reponame>albanoj2/robinhood-api
package com.ampro.robinhood.endpoint.account.data;
import com.ampro.robinhood.endpoint.ApiElement;
public class BasicAccountHolderInfoElement implements ApiElement {
private String address;
private String citizenship;
private String city;
private String country_of_residence;
pri... |
bprevost/brad_demo | frc/network_tables/nt_driver_station_example.py | #!/usr/bin/env python3
'''This is a NetworkTables client (driver station or coprocessor side).'''
import time
from networktables import NetworkTables
import logging
# To see messages from networktables, you must setup logging
logging.basicConfig(level=logging.DEBUG)
NetworkTables.initialize(server='192.168.1.21')
sd... |
srinivasankavitha/js-graphql-intellij-plugin | src/main/com/intellij/lang/jsgraphql/ide/injection/GraphQLCommentBasedInjectionHelper.java | /*
* Copyright (c) 2019-present, <NAME>
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.intellij.lang.jsgraphql.ide.injection;
import com.intellij.openapi.application.ApplicationManager;
import... |
meringu/terraform-private-registry | internal/api/v1/modules.go | <reponame>meringu/terraform-private-registry<filename>internal/api/v1/modules.go
package v1
import "time"
// ListMeta is the meta fielt for a list response
type ListMeta struct {
Limit int `json:"limit"`
CurrentOffset int `json:"current_offset"`
NextOffset int `json:"next_offset,omitempty"`
Ne... |
zipated/src | third_party/mesa/src/src/gallium/drivers/softpipe/sp_tex_sample.h | <reponame>zipated/src
/**************************************************************************
*
* Copyright 2007 Tungsten Graphics, Inc., <NAME>, Texas.
* All Rights Reserved.
* Copyright 2010 VMware, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* co... |
MarioA-PM/scrabble-MarioA-PM | src/main/java/cl/uchile/dcc/scrabble/types/number/TBinary.java | <reponame>MarioA-PM/scrabble-MarioA-PM
package cl.uchile.dcc.scrabble.types.number;
import cl.uchile.dcc.scrabble.flyweightFactory.*;
import cl.uchile.dcc.scrabble.types.*;
import cl.uchile.dcc.scrabble.Operations.*;
import java.util.Objects;
/**
* Class that represents a binary number.
*/
public class TBinary ext... |
kazievab/scalajs-react-material-ui | demo/src/main/scala/io/kinoplan/demo/styles/demos/AppBar/BottomAppBarStyle.scala | <reponame>kazievab/scalajs-react-material-ui
package io.kinoplan.demo.styles.demos.AppBar
import io.kinoplan.demo.CssSettings._
import io.kinoplan.demo.styles.{CommonStyle, DefaultCommonStyle}
case class BottomAppBarStyle(common: CommonStyle = DefaultCommonStyle) extends StyleSheet.Inline {
import common.theme
im... |
Alipashaimani/Competitive-programming | Codeforces/777A.cpp | <reponame>Alipashaimani/Competitive-programming
#include <bits/stdc++.h>
using namespace std;
int n, x;
int arr[6][3]={{0, 1, 2}, {1, 0, 2}, {1, 2, 0}, {2, 1, 0}, {2, 0, 1}, {0, 2, 1}};
int main() {
cin >> n >> x;
cout << arr[n%6][x];
return 0;
}
|
simonbirt/siesta | siesta/src/main/java/com/cadenzauk/core/tuple/Tuple.java | /*
* Copyright (c) 2017, 2018 Cadenza United Kingdom Limited
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... |
joakim-ronning/sn-scatter-plot | src/services/plugin-service/__tests__/plugin-args.spec.js | <gh_stars>1-10
// eslint-disable-next-line no-unused-vars
import getPluginArgs from '../plugin-args';
describe('plugin-args', () => {
let sandbox;
let create;
let layoutService;
let pluginArgs;
beforeEach(() => {
sandbox = sinon.createSandbox();
layoutService = { getLayout: sandbox.stub().returns('c... |
Softsimulation/siturmagdalena | public/js/encuestas/turismoReceptor/transporte.js | angular.module('receptor.transporte', ["checklist-model"])
.controller('transporte', ['$scope', 'receptorServi',function ($scope, receptorServi) {
$scope.transporte = {};
$scope.$watch('id', function () {
$("body").attr("class", "cbp-spmenu-push charging");
receptorServi.getDatosTransporte... |
iteaky/random | node_modules/ix/targets/esnext/cjs/asynciterable/first.js | <reponame>iteaky/random
Object.defineProperty(exports, "__esModule", { value: true });
async function first(source, predicate = async () => true) {
for await (let item of source) {
if (await predicate(item)) {
return item;
}
}
return undefined;
}
exports.first = first;
//# sourc... |
dpopkov/knowthenics | knowthenics-data/src/main/java/ru/dpopkov/knowthenics/model/QCollection.java | package ru.dpopkov.knowthenics.model;
import lombok.*;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "qcollections")
public class QCollection extends BaseEntity {
@Column(name =... |
JabaHum/Flicks | app/src/main/java/com/codebosses/flicks/pojo/tvpojo/tvshowsdetail/Season.java | <reponame>JabaHum/Flicks
package com.codebosses.flicks.pojo.tvpojo.tvshowsdetail;
public class Season {
private String air_date;
private Integer episode_count;
private Integer id;
private String name;
private String overview;
private String poster_path;
private Integer season_number;
... |
pashashiz/scanet3 | src/main/scala/scanet/models/LogisticRegression.scala | package scanet.models
import scanet.core.{Expr, OutputSeq, Shape, TensorType}
import scanet.math.Floating
import scanet.math.Numeric
import scanet.math.syntax._
import scala.collection.immutable.Seq
/** Binary Logistic Regression
*
* Similar to Linear Regression but applies a logistic function on top
* to model... |
tiwer/letv | src/main/java/bolts/AppLinkNavigation.java | <filename>src/main/java/bolts/AppLinkNavigation.java<gh_stars>10-100
package bolts;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.util.SparseArray;
impo... |
JackPu/atom-weexpack | pkg/commons-atom/spec/AutocompleteCacher-spec.js | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*
* @flow
*/
import {Point} from 'atom';
import {Deferred} from '../../commons-node/promise';
import AutocompleteCa... |
hemanik/arquillian-extension-warp | impl/src/main/java/org/jboss/arquillian/warp/impl/shared/SerializedAnnotation.java | /**
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not u... |
DropthoughtSDK/dropthought-ios-sdk | react-native-modules/@dropthought/react-native-dt-sdk/lib/commonjs/kiosk-rn-sdk/navigation/Header.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
var _reactNative = require("react-native");
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
var _reactNativeUi = require("@dro... |
rdubois/tcommon-studio-se | main/plugins/org.talend.cwm.mip/src/orgomg/cwm/foundation/businessinformation/impl/TelephoneImpl.java | <gh_stars>10-100
/**
* <copyright> </copyright>
*
* $Id$
*/
package orgomg.cwm.foundation.businessinformation.impl;
import java.util.Collection;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.... |
XianglongLuo/rancher | vendor/github.com/rancher/rke/cloudprovider/aws/aws.go | <gh_stars>10-100
package aws
import (
"bytes"
"fmt"
"github.com/go-ini/ini"
"github.com/rancher/types/apis/management.cattle.io/v3"
)
const (
AWSCloudProviderName = "aws"
AWSConfig = "AWSConfig"
)
type CloudProvider struct {
Config *v3.AWSCloudProvider
Name string
}
func GetInstance() *CloudP... |
1399852153/MySimpleDB | lab/src/main/java/simpledb/matadata/types/ColumnType.java | package simpledb.matadata.types;
import simpledb.matadata.fields.Field;
import java.io.DataInputStream;
/**
* @author xiongyx
* @date 2021/2/1
*/
public interface ColumnType {
int getLength();
Field parse(DataInputStream dataInputStream);
Class javaType();
}
|
gsoertsz/dojo-services | src/main/java/org/distributedproficiency/dojo/services/RegistrationService.java | package org.distributedproficiency.dojo.services;
import java.util.Collection;
import org.distributedproficiency.dojo.domain.Registration;
import org.distributedproficiency.dojo.dto.InitiatedRegistrationResponse;
import org.distributedproficiency.dojo.dto.RegistrationRequest;
public interface RegistrationService {
... |
YunaBraska/maven-deployment | src/test/resources/testApplication/src/test/java/berlin/yuna/project/controller/WebControllerUnitTest.java | <filename>src/test/resources/testApplication/src/test/java/berlin/yuna/project/controller/WebControllerUnitTest.java<gh_stars>1-10
package berlin.yuna.project.controller;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
public class WebControllerUnitT... |
soumyapal96/decentralized-computing | exec_test/node_modules/iexec/dist/cli/cmd/iexec-order.js | #!/usr/bin/env node
"use strict";
const Debug = require('debug');
const cli = require('commander');
const order = require('../../common/modules/order');
const {
NULL_ADDRESS
} = require('../../common/utils/utils');
const {
finalizeCli,
addGlobalOptions,
addWalletLoadOptions,
computeWalletLoadOptions,
c... |
bbossgroups/bboss | bboss-core-entity/src/com/frameworkset/util/ValueObjectUtil.java | /*****************************************************************************
* *
* This file is part of the tna framework distribution. *
* Documentation and updates may be get from biaoping.yin the author of *
* ... |
chewaiwai/huaweicloud-sdk-c-obs | CI/rule/pclint/pclint_include/include_linux/c++/4.8.2/java/awt/Font.h | <gh_stars>10-100
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __java_awt_Font__
#define __java_awt_Font__
#pragma interface
#include <java/lang/Object.h>
#include <gcj/array.h>
extern "Java"
{
namespace gnu
{
namespace java
{
namespace awt
{
class Classpa... |
ramakrishnaork/MetaOmGraph | src/edu/iastate/metnet/metaomgraph/ReplicateGroups.java | <reponame>ramakrishnaork/MetaOmGraph
package edu.iastate.metnet.metaomgraph;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import java.util.TreeMap;
import javax.swing.JOptionPane;
/**
* Class to store replicate group object... |
Wattyyy/LeetCode | submissions/palindrome-partitioning/solution.py | <filename>submissions/palindrome-partitioning/solution.py
class Solution:
def backtrack(self, s: str, idx: int, cur: List[int]) -> None:
if idx == len(s):
self.ans.append(cur[:])
return
for i in range(idx, len(s)):
if self.is_palindrome[idx][i]:
cu... |
bazzyadb/all-code | Data Structures/Venice Technique.cpp | template<typename T> struct PQ {
long long sum = 0;
priority_queue<T, vector<T>, greater<T>> Q;
void push(T x) { x.w -= sum; Q.push(x); }
T pop() { auto ans = Q.top(); Q.pop(); ans.w += sum; return ans; }
int size() { return Q.size(); }
void add(long long x) { sum += x; }
void merge(PQ &&x) {
if (size... |
diqiuonline/Demo | study/itcast/dhcc-mybatis-plus/mybatis-mp-generator/src/main/java/com/dhcc/mp/generator/user/mapper/TbUserMapper.java | package com.dhcc.mp.generator.user.mapper;
import com.dhcc.mp.generator.user.entity.TbUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author dhcc
* @since 2020-05-24
*/
public interface TbUserMapper extends BaseMapper<TbUser> {
}
|
xuyoung2020/arduino-nuclei-sdk | cores/arduino/nuclei_sdk/NMSIS/DSP/PrivateInclude/riscv_sorting.h | /******************************************************************************
* @file riscv_sorting.h
* @brief Private header file for NMSIS DSP Library
* @version V1.7.0
* @date 2019
******************************************************************************/
/*
* Copyright (c) 2010-2019 Arm Lim... |
AkshayPathak/PrivacyStreams | privacystreams-android-sdk/src/main/java/io/github/privacystreams/core/transformations/filter/KeepFieldChangesFilter.java | <reponame>AkshayPathak/PrivacyStreams
package io.github.privacystreams.core.transformations.filter;
import io.github.privacystreams.core.Item;
import io.github.privacystreams.utils.Assertions;
/**
* Only keep the items whose field value is changed after last item.
*/
final class KeepFieldChangesFilter<TValue> exten... |
uw-midsun/project-template | projects/driver_controls_pedal/test/test_throttle_calibration.c | #include "ads1015.h"
#include "calib.h"
#include "crc32.h"
#include "delay.h"
#include "event_queue.h"
#include "flash.h"
#include "gpio.h"
#include "gpio_it.h"
#include "i2c.h"
#include "interrupt.h"
#include "log.h"
#include "pedal_calib.h"
#include "soft_timer.h"
#include "throttle.h"
#include "throttle_calibration.... |
Liberuman/SimpleProject | library/basecomponent/src/main/java/com/sxu/basecomponent/uiwidget/ContainerLayoutStyleImpl.java | package com.sxu.basecomponent.uiwidget;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.support.v4.content.ContextCompat;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import com.sx... |
AronVanAmmers/ledger | libs/storage/tests/file_object.cpp | <reponame>AronVanAmmers/ledger<gh_stars>1-10
//------------------------------------------------------------------------------
//
// Copyright 2018 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may... |
uktrade/lite-ap | api/staticdata/control_list_entries/serializers.py | from rest_framework import serializers
from api.staticdata.control_list_entries.models import ControlListEntry
class ControlListEntrySerializer(serializers.Serializer):
id = serializers.UUIDField()
rating = serializers.CharField(read_only=True)
text = serializers.CharField(read_only=True)
class Control... |
taojhlwkl/fastjgame | game-core/src/test/java/com/wjybxx/fastjgame/test/ZKUICharsetTest.java | <filename>game-core/src/test/java/com/wjybxx/fastjgame/test/ZKUICharsetTest.java
/*
* Copyright 2019 wjybxx
*
* 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... |
AY1920S2-CS2103T-T10-4/main | src/main/java/nasa/storage/JsonAdaptedEvent.java | package nasa.storage;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import nasa.commons.exceptions.IllegalValueException;
import nasa.model.activity.Date;
import nasa.model.activity.Event;
import nasa.model.activity.Name;
import nasa.model.activity.Note;
im... |
slushatel/connectors-se | localio/src/main/java/org/talend/components/localio/fixed/FixedFlowInput.java | <gh_stars>0
package org.talend.components.localio.fixed;
import static org.talend.sdk.component.api.component.Icon.IconType.FILE_O;
import org.apache.avro.Schema;
import org.apache.avro.generic.IndexedRecord;
import org.apache.beam.sdk.io.Read;
import org.apache.beam.sdk.transforms.PTransform;
import org.apache.beam.... |
philipstaffordwood/govmomi | simulator/feature_test.go | <reponame>philipstaffordwood/govmomi<filename>simulator/feature_test.go
/*
Copyright (c) 2019 VMware, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache... |
forsyde/DeSyDe | src/platform/platform.hpp | /**
* Copyright (c) 2013-2016, <NAME> <<EMAIL>>
* 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 lis... |
Cwiiis/gaia | apps/calendar/test/unit/views/current_time_test.js | <gh_stars>1-10
/* global MockMozIntl */
define(function(require) {
'use strict';
require('/shared/test/unit/mocks/mock_moz_intl.js');
var CurrentTime = require('views/current_time');
suite('Views.CurrentTime', function() {
var subject;
var container;
var timespan;
var realMozIntl;
suiteSetup(function() {
... |
omwine/communityengine | app/models/photo.rb | <gh_stars>1-10
class Photo < ActiveRecord::Base
acts_as_commentable
belongs_to :album
has_attachment prepare_options_for_attachment_fu(AppConfig.photo['attachment_fu_options'])
# attr_accessor :cropped_size
# before_thumbnail_saved do |thumbnail|
# raise thumbnail.inspect
# # thumbnail.send(:'attri... |
qingqibing/iClient-JavaScript | examples-test/base/ExampleTestGlobeParameter.js | <gh_stars>100-1000
GlobeParameter = {
datajingjinURL: "http://localhost:8090/iserver/services/data-jingjin/rest/data/datasources/Jingjin/datasets/",
datachangchunURL: "http://localhost:8090/iserver/services/data-changchun/rest/data/datasources/Changchun/datasets/",
dataspatialAnalystURL: "http://localhost:... |
rnjudge/tools | Test/org/spdx/rdfparser/model/TestAnnotation.java | /**
* Copyright (c) 2015 Source Auditor 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 appli... |
txs13/webapp-template-user-authorization | client/src/components/appNavBar.test.js | import { render, screen, cleanup, } from "@testing-library/react"
import userEvent from '@testing-library/user-event'
import { Provider } from "react-redux"
import '@testing-library/jest-dom'
import { expect } from "@jest/globals"
import configureMockStore from 'redux-mock-store'
import AppNavbar from "./appNav... |
kmikhailov-tmn/NaviGridContour | src/ru/navilab/grid/contour/ZMapGridReader.java | package ru.navilab.grid.contour;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.util.StringTokenizer;
public class ZMapGridReader implements GridLoadAdapter {
private static final String FILE_NOT_CORRECT = "can't read ASCII ZMAP grid format";
private int co... |
kzvd4729/Problem-Solving | codeforces/B - Not Afraid/Accepted.cpp | /****************************************************************************************
* @author: kzvd4729# created: Mar/24/2017 17:55
* solution_verdict: Accepted language: GNU C++14
* run... |
jodavis42/ZeroPhysicsTestbed | ZeroLibraries/Zilch/Project/Driver/Test12.cpp | #include "Precompiled.hpp"
using namespace Zilch;
Array<Real3> GetTemporaryArray();
Integer Test12()
{
Array<Real3> array;
array.PushBack(Real3(53.4f, 1, -45));
array.Resize(5);
// Because Real3 doesn't have a zeroing constructor
memset(array.Data() + 1, 0, sizeof(Real3) * 4);
array[1] = a... |
teodyseguin/icreatives | web/themes/custom/particle/jest.config.js | module.exports = {
projects: ['<rootDir>/source/*/jest.config.js'],
// Everything below here is used by merging into per-design-system jest config
verbose: true,
testURL: 'http://localhost/',
setupFiles: ['<rootDir>/tools/tests/unit/setupJest.js'],
moduleFileExtensions: ['js', 'json', 'vue'],
moduleNameM... |
jaor/bigmler | bigmler/resourcesapi/libraries.py | # -*- coding: utf-8 -*-
#
# Copyright 2020-2022 BigML
#
# 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 ... |
barnyard/pi | robustness/test/java/com/bt/nia/koala/robustness/parsers/DescribeVolumeOutputParserTest.java | package com.bt.nia.koala.robustness.parsers;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import com.bt.nia.koala.robustness.commands.UnexpectedOutputException;
public class DescribeVolumeOutputParserTest {
private ... |
joalmjoalm/crate | sql/src/main/java/io/crate/planner/node/ddl/CreateBlobTablePlan.java | /*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... |
cuebook/turnilo | build/client/components/vis-measure-label/vis-measure-label.js | <reponame>cuebook/turnilo
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var concrete_series_1 = require("../../../common/models/series/concrete-series");
var delta_1 = require("../delta/delta");
require("./vis-measure-label.scss");
function renderPrevious(dat... |
BryceHQ/form-designer | src/components/mixins/validatable.js | <reponame>BryceHQ/form-designer<filename>src/components/mixins/validatable.js<gh_stars>0
/*
* validate rule
*/
// do the right thing
const rules = {
//仅数字和字母
ASCII(value) {
var flag = !/[^a-zA-Z0-9]/.test(value);
if(flag){
//以数字开头
return !/^[0-9]/.test(value);
}
return flag;
},
};
co... |
joschout/LazyBum | src/main/java/io/ConsoleAndFileWriter.java | <gh_stars>1-10
package io;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
/**
* Created by joschout.
*/
public class ConsoleAndFileWriter {
PrintWriter consoleWriter;
PrintWriter fileWriter;
public ConsoleAndFileWriter(File file) throws FileNotFoundException {
... |
maltez/react_native | HomeWork/igor.polovenko/homework4_igor.polovenko.js | <reponame>maltez/react_native
// Singleton with a generator method
let Singleton = (function() {
class Single {
constructor(n) {
this.n = n;
}
*generate() {
for (let i = 0; i < this.n; i++) {
yield Math.random().toFixed(3) * 1000;
}
... |
ValKhv/BGX | MOBILAPP/BGX-App/BGX/ios/Pods/Headers/Private/FirebaseMessaging/FIRMessagingSecureSocket.h | link ../../../FirebaseMessaging/Firebase/Messaging/FIRMessagingSecureSocket.h |
gerlichlab/HiCognition | back_end/tests/post_routes/test_api_preprocess_dataset.py | """Module with tests realted to preprocessign datasets."""
import unittest
from unittest.mock import MagicMock, patch
import pandas as pd
from flask.globals import current_app
from hicognition.test_helpers import LoginTestCase, TempDirTestCase
# add path to import app
# import sys
# sys.path.append("./")
from app impo... |
bugvm/robovm | Core/llvm/src/main/swig/include/llvm/Analysis/Passes.h | //===-- llvm/Analysis/Passes.h - Constructors for analyses ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
xiliax/web-programming | code/c10-ToDo-Webapp-Bootstrap/todo-app/tests/client/task/factory/tasks_test.js | 'use strict';
describe('Tasks', function() {
var _Tasks;
beforeEach(module('todo'));
beforeEach(inject(function($injector) {
_Tasks = $injector.get('Tasks');
}));
describe('instance', function() {
it('should have the right prop for the instance', function() {
var _something... |
codefollower/Open-Source-Research | Javac2007/流程/jvm/ClassReader_methods/indexPool.java | /************************************************************************
* Constant Pool Access
***********************************************************************/
/** Index all constant pool entries, writing their start addresses into
* poolIdx.
*/
void indexPool() {
try {//我加上的
DEBU... |
LendoAB/go-pingdom | acceptance/acceptance_ext_test.go | <filename>acceptance/acceptance_ext_test.go<gh_stars>0
package acceptance
import (
"net/http"
"os"
"testing"
"time"
"github.com/lendoab/go-pingdom/pingdomext"
"github.com/stretchr/testify/assert"
)
var client_ext *pingdomext.Client
var runExtAcceptance bool
func init() {
if os.Getenv("PINGDOM_EXT_ACCEPTANCE... |
QuestionableM/Tile-Converter | Code/Tile/TileConverter.hpp | #pragma once
#include <string>
class ConvertSettings
{
ConvertSettings() = default;
~ConvertSettings() = default;
public:
//model settings
inline static bool ExportUvs = true;
inline static bool ExportNormals = true;
inline static bool ExportMaterials = true;
inline static bool ExportG... |
jjzhang166/balancer | util/system/fstat.h | #pragma once
#include "defaults.h"
class TFile;
class TFileHandle;
class Stroka;
struct TFileStat {
ui32 Mode; /* protection */
ui32 Uid; /* user ID of owner */
ui32 Gid; /* group ID of owner */
ui64 NLinks; /* number of hard links */
ui64 Size; /* total si... |
tpoveda/tpMayaLib | tpDcc/dccs/maya/core/mash.py | <reponame>tpoveda/tpMayaLib
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module that contains functions and classes related with MASH nodes
"""
from __future__ import print_function, division, absolute_import
import maya.cmds
import maya.mel
MASH_AVAILABLE = True
try:
import MASH.api as mapi
import MA... |
KyleU/databaseflow | app/models/result/CachedResultTransform.scala | <gh_stars>100-1000
package models.result
import models.query.QueryResult
import models.schema.ColumnType
object CachedResultTransform {
def transform(columns: Seq[QueryResult.Col], data: Seq[Option[Any]]) = columns.zip(data).map {
case x if x._1.t == ColumnType.DateType && x._2.exists(_.isInstanceOf[String]) =>... |
phatblat/macOSPrivateFrameworks | PrivateFrameworks/GameCenterUI/GKBaseGameCell.h | <gh_stars>10-100
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import <GameCenterUI/GKCollectionViewCell.h>
@class GKGame, GKGameRecord, NSImageView, NSLayoutConstraint, NSTextField;
@interface GKBaseGameCell : GKCollectionViewCel... |
secure-software-engineering/TS4J | EclipseTestWorkspace/net.oschina.app/src/net/oschina/app/bean/User.java | package net.oschina.app.bean;
import java.io.IOException;
import java.io.InputStream;
import net.oschina.app.AppException;
import net.oschina.app.common.StringUtils;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import android.util.Xml;
/**
* 登录用户实体类
* @author liux (http://my... |
femtoframework/femto-endpoint | endpoint/src/main/java/org/femtoframework/net/nio/cmd/AbstractCommandHandler.java | package org.femtoframework.net.nio.cmd;
import java.util.Collections;
import java.util.List;
/**
* 抽象命令处理器
*
* @author fengyun
* @version 1.00 2005-1-2 15:21:56
*/
public abstract class AbstractCommandHandler
implements CommandHandler
{
/**
* 监听者列表
*/
private CommandListener commandlistener... |
kalodiodev/CustomersNotes | app/src/main/java/eu/kalodiodev/customersnote/utils/DialogHelper.java | /*
* Copyright (c) 2017 <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 i... |
modal/tktoolbox | tktoolbox/examples/canvas/vector_objects.py | <filename>tktoolbox/examples/canvas/vector_objects.py
"""
Tkinter Color Vector Objects
Just the bare minimum to create re-sizable
and re-usable color icons in tkinter.
- <NAME>
"""
import tkinter as Tk
import math
def getregpoly(sides):
""" Get points for a unit regular-polygon with n sides. """
points = [... |
iplo/Chain | chrome/browser/extensions/api/management/management_api_browsertest.cc | // 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.
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/strings/string_util.h"
#includ... |
Adilla/Blasmatch | external/pet/tests/assume3.c | <gh_stars>1-10
int f(int k)
{
int a;
#pragma scop
__pencil_assume(k >= 0);
a = k % 16;
#pragma endscop
return a;
}
|
lorcannolan/MySwing | app/src/main/java/ie/dit/myswing/profile/SocietyListAdapter.java | package ie.dit.myswing.profile;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.ArrayList;
import ie.dit.myswing... |
comprakt/comprakt-fuzz-tests | output/12394db015434e6484dc4397e91b8710.java | class bPjVp {
}
class zOcUtm {
public int[][] I1e9tUkXTh8;
public boolean kTc (FEyqg2mUW8wxmI qgZPNqz) {
RAMNOk2nr ulMNznP8JaXiEK;
boolean EK7O5p = !-!--!!false.n_c2fNDqN = -false.T7();
void[][] N_5dWhZmOx = QdVZM1z()[ -new Hkd3QCW1aZzCM().FWpg254G1E];
;
UV[][][][] ... |
bittorrent/okui | include/okui/FileTexture.h | /**
* Copyright 2017 BitTorrent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
OshadaViraj/SpringDAOGeneric | core-service/src/main/java/br/com/hhc/sample/fullstackspringhibernate/core/service/impl/InstructorsServiceImpl.java | package br.com.hhc.sample.fullstackspringhibernate.core.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import br.com.hhc.sample.fullstackspringh... |
tz70s/captain | captain-framework/src/multi-jvm/scala/captain/spec/FlatMultiNodeSpec.scala | <reponame>tz70s/captain
package captain.spec
import akka.remote.testkit.MultiNodeSpecCallbacks
import org.scalatest.{BeforeAndAfterAll, FlatSpecLike, Matchers}
/** Mixin test helpers with multi-node test functionalities */
trait FlatMultiNodeSpec extends MultiNodeSpecCallbacks with FlatSpecLike with Matchers with Bef... |
syin2/openthread | third_party/silabs/gecko_sdk_suite/v1.0/platform/bootloader/plugin/storage/internal_flash/btl_storage_internal_flash.c | <reponame>syin2/openthread<gh_stars>1-10
/***************************************************************************//**
* @file btl_storage_internal_flash.c
* @brief Internal flash storage plugin for Silicon Labs Bootloader.
* @author Silicon Labs
* @version 1.0.0
************************************************... |
Canner/coren | server/build.js | <filename>server/build.js
import ora from 'ora';
import logSymbols from 'log-symbols';
import webpack from './webpack';
import loadCorenConfig from './load-coren-config';
import {color} from './utils';
const {error} = color;
const runWebpack = (compiler, msg) => {
return () => {
const spinner = ora(msg).start();... |
nextworks-it/5g-catalogue | 5gcatalogue-app/src/main/java/it/nextworks/nfvmano/catalogue/plugins/siteInventory/model/Site.java | <reponame>nextworks-it/5g-catalogue
package it.nextworks.nfvmano.catalogue.plugins.siteInventory.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotNull;
@JsonIgnoreProperties(ignoreUnknown = true)
public c... |
xzl8028/xenia-mobile | app/components/status_icons/archive_icon.js | // Copyright (c) 2015-present Xenia, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {View} from 'react-native';
import Svg, {
Path,
} from 'react-native-svg';
export default class ArchiveIcon extends Pure... |
Flipajs/FERDA | gui/settings_widgets/parameters_tab.py | __author__ = 'fnaiser'
from PyQt4 import QtGui, QtCore
from gui import gui_utils
from gui.settings import Settings as S_
class ParametersTab(QtGui.QWidget):
def __init__(self):
super(ParametersTab, self).__init__()
self.vbox = QtGui.QVBoxLayout()
self.setLayout(self.vbox)
self.... |
makersoft/mybatis-shards | src/main/java/org/makersoft/shards/strategy/reduce/ShardReduceStrategy.java | <reponame>makersoft/mybatis-shards
/*
* @(#)ShardReduceStrategy.java 2012-9-4 下午4:57:59
*
* Copyright (c) 2011-2012 Makersoft.org all rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
*/
package org.makersoft.shards.strategy.reduce;
import java.util.List;
import... |
project-everest/quackyducky | src/3d/tests/funptr/src/EverParseStream.h | #ifndef __EVERPARSESTREAM
#define __EVERPARSESTREAM
#include <stdint.h>
#include "EverParseEndianness.h"
struct es_cell {
uint8_t * buf;
uint64_t len;
struct es_cell * next;
};
struct EverParseInputStreamBase_s {
struct es_cell * head;
};
typedef struct EverParseInputStreamBase_s * EverParseInputStreamBase;... |
zhangjun1992/rtt-bsp-hpm6750evkmini | libraries/hpm_sdk/soc/ip/hpm_gpio_regs.h | /*
* Copyright (c) 2021-2022 hpmicro
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef HPM_GPIO_H
#define HPM_GPIO_H
typedef struct {
struct {
__RW uint32_t VALUE; /* 0x0: GPIO input value */
__RW uint32_t SET; /* 0x4: GPIO input set */
__RW... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.