repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
xanderflood/math-circle | app/models/semester.rb | class Semester < ApplicationRecord
default_scope { order(start: :desc) }
has_many :courses, dependent: :destroy
has_many :sections, through: :courses, dependent: :destroy
has_many :events, through: :sections
has_many :rollcalls, through: :events
has_many :ballots, dependent: :destroy
has_many :registree... |
yakuizhao/intel-vaapi-driver | android/android_9/frameworks/av/media/libstagefright/include/media/stagefright/MediaBuffer.h | <filename>android/android_9/frameworks/av/media/libstagefright/include/media/stagefright/MediaBuffer.h
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a co... |
ggouaillardet/SOS | test/unit/c11_test_shmem_atomic_and.c | /*
* This test program is derived from a unit test created by <NAME>.
* The original unit test is a work of the U.S. Government and is not subject
* to copyright protection in the United States. Foreign copyrights may
* apply.
*
* Copyright (c) 2017 Intel Corporation. All rights reserved.
* This software ... |
koz4k/soccer | CtrlLib/LineEdit.cpp | <gh_stars>1-10
#include "CtrlLib.h"
namespace Upp {
#define LLOG(x) // LOG(x)
#define LTIMING(x) // RTIMING(x)
LineEdit::LineEdit() {
isdrag = false;
nohbar = false;
showtabs = false;
tabsize = 4;
font = CourierZ(12);
SetFrame(ViewFrame());
sb.NoBox();
AddFrame(sb);
sb.WhenScroll = THISBACK(Scroll);
cutli... |
Masterlupo/EvilCraft | src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeSerializerBloodInfuserConfig.java | <reponame>Masterlupo/EvilCraft<filename>src/main/java/org/cyclops/evilcraft/core/recipe/type/RecipeSerializerBloodInfuserConfig.java
package org.cyclops.evilcraft.core.recipe.type;
import org.cyclops.cyclopscore.config.extendedconfig.RecipeConfig;
import org.cyclops.evilcraft.EvilCraft;
/**
* Config for the blood in... |
skylark-integration/skylark-dojox | dist/dojox/grid/enhanced/nls/it/Pagination.js | /**
* dojox - A version of dojox.js framework that ported to running on skylarkjs.
* @author Hudaokeji, Inc.
* @version v0.9.0
* @link https://github.com/skylark-integration/dojox/
* @license MIT
*/
define({descTemplate:"${2} - ${3} di ${1} ${0}",firstTip:"Prima pagina",lastTip:"Ultima pagina",nextTip:"Pagina suc... |
liexusong/fuchsia | garnet/examples/intl/wisdom/tests/intl_wisdom_test.cc | <filename>garnet/examples/intl/wisdom/tests/intl_wisdom_test.cc
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/fdio/directory.h>
#include <lib/fdio/fd.h>
#include <lib/fdio/fdio.h>
#includ... |
wstong999/AliOS-Things | components/drivers/peripheral/adc/src/adc_dev.c | <reponame>wstong999/AliOS-Things
/*
* Copyright (C) 2015-2021 Alibaba Group Holding Limited
*/
#include <poll.h>
#include <aos/hal/adc.h>
#include <vfsdev/adc_dev.h>
#include <devicevfs/devicevfs.h>
#ifdef CONFIG_ADC_NUM
#define PLATFORM_ADC_NUM CONFIG_ADC_NUM
#else
#define PLATFORM_ADC_NUM 4
#endif
#if (PLATFOR... |
FRED5DON/KiwiVMWare | app/src/main/java/com/freddon/android/app/kiwivmware/tools/GsonUtils.java | package com.freddon.android.app.kiwivmware.tools;
import com.google.gson.Gson;
import org.json.JSONArray;
import org.json.JSONException;
import java.lang.reflect.Type;
import java.util.Collection;
/**
* Created by fred on 2016/11/7.
*/
public class GsonUtils {
public static <T> T parseJson(String str, Type... |
JINSCOP/PConnect | pconnect-springcloud/bizsrvs/pconnect-todo/src/main/java/cn/bgenius/pconnect/todo/mapper/TTodoesStatusEnumMapper.java | package cn.bgenius.pconnect.todo.mapper;
import cn.bgenius.pconnect.todo.entity.TTodoesStatusEnum;
import tk.mybatis.mapper.common.Mapper;
public interface TTodoesStatusEnumMapper extends Mapper<TTodoesStatusEnum> {
} |
ans-hub/wumpus_game | src/gui/widgets/widget_room.h | <reponame>ans-hub/wumpus_game
// Package: wumpus_game (v0.9)
// Description: https://github.com/ans-hub/wumpus_game
// Author: <NAME>, 2017
// File: control widget represents interactive rooms on game the map
#ifndef WIDGET_ROOM_H
#define WIDGET_ROOM_H
#include <map>
#include <FL/Fl.H>
#include <FL/Fl_PNG_Image.H>
#... |
wiseants/Varins | Unmanaged/HVisionSystem/include/Utility/Rotate.h | <gh_stars>0
// Rotate.h: interface for the CRotate class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ROTATE_H__A188B40D_51C5_43D1_8AC3_1E5E4D957337__INCLUDED_)
#define AFX_ROTATE_H__A188B40D_51C5_43D1_8AC3_1E5E4D957337__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif ... |
duranfatih/hmc-hmi-inbound-adapter | src/main/java/uk/gov/hmcts/reform/hmc/client/model/hmi/HearingDetailsRequest.java | package uk.gov.hmcts.reform.hmc.client.model.hmi;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.Valid;
@Data
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public c... |
sho25/karaf | bundle/core/src/main/java/org/apache/karaf/bundle/command/Headers.java | <reponame>sho25/karaf<gh_stars>0
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 copyrigh... |
cajunc2/dev80 | src/main/java/org/cajunc2/dev80/newui/menu/EditMenu.java | <filename>src/main/java/org/cajunc2/dev80/newui/menu/EditMenu.java
package org.cajunc2.dev80.newui.menu;
import java.awt.AWTEvent;
import java.awt.event.InputEvent;
import javax.swing.FocusManager;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
import org.cajunc2.dev80.newui.Ed... |
wrcold520/mcourse | microcourse/src/main/java/com/mcourse/frame/utils/date/DatePattern.java | <reponame>wrcold520/mcourse
package com.mcourse.frame.utils.date;
import java.util.ArrayList;
import java.util.List;
/**
* 日期时间格式枚举
*
* @Title
* @Description
*
* @Created Assassin
* @DateTime 2017/06/30 10:07:32
*/
public enum DatePattern {
// 日期时间格式
/** 【日期时间】空格符号 yyyy MM dd HH:mm:ss **/
DATETIME_BLANK... |
RobertPaasche/git4c | confluence-plugin/src/main/resources/js/flag-compat.js | //AJS Compat
var AJSC = {}
AJSC.flag = function (data) {
if (AJS.flag) {
AJS.flag(data)
} else {
require(['aui/flag'], function(flag) {
flag(data);
})
}
}
|
raychorn/svn_molten-magma | molten-trunk/molten5_withgrid/app/models/solution_relevancy.rb | <gh_stars>0
class SolutionRelevancy < ActiveRecord::Base
set_primary_key "id"
#------------------
# VALIDATIONS
#------------------
validates_presence_of :rating_value_one, :rating_value_two, :rating_value_three,
:rating_value_four, :view_value, :update_value
#------------------
#... |
luisriverag/verus-desktop | routes/api/utils/auth/rpcAuth.js | /*
Copyright (c) 2019, <NAME> <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRAN... |
lazylester/RescueRails | spec/tasks/adoptapet_sync_spec.rb | require 'rails_helper'
require_relative '../helpers/rspec_matchers'
describe 'adoptapet_sync:export_upload', type: :task do
describe 'inclusion of photos in the csv' do
5.times do |i|
let("photo#{i}"){ FactoryBot.build(:photo, updated_at: DateTime.new(2018,1,i+1)) }
end
let(:foster) { FactoryBot.cr... |
USSDlover/abp-sam-nestjs | node_modules/ts-morph/dist/errors/classes/ArgumentNullOrWhitespaceError.js | <reponame>USSDlover/abp-sam-nestjs
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ArgumentError_1 = require("./ArgumentError");
class ArgumentNullOrWhitespaceError extends ArgumentError_1.ArgumentError {
/** @private */
constructor(argName) {
super(argName, "Can... |
Abolitionist-Project/QM-Java | fluxtream-web/src/main/webapp/static/js/jquery.shorten-1.0.0.js | <filename>fluxtream-web/src/main/webapp/static/js/jquery.shorten-1.0.0.js
;(function ($) {
//var $c = console;
var
_native = false,
is_canvasTextSupported,
measureContext, // canvas context or table cell
measureText, // function that measures text width
info_identifier = "shorten-info",
options_identifie... |
uizaio/uiza-sdk-player-android | corebase/src/main/java/vn/loitp/restapi/uiza/model/v2/getplayerinfo/PlayerConfig.java | <reponame>uizaio/uiza-sdk-player-android
package vn.loitp.restapi.uiza.model.v2.getplayerinfo;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class PlayerConfig {
@SerializedName("setting")
@Expose
private Setting setting;
@SerializedName("stylin... |
lukewarlow/WP-ClientProject | app/src/main/java/com/nsa/teamtwo/welshpharmacy/data/pharmacy/Pharmacy.java | <filename>app/src/main/java/com/nsa/teamtwo/welshpharmacy/data/pharmacy/Pharmacy.java
package com.nsa.teamtwo.welshpharmacy.data.pharmacy;
import android.content.Context;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;
import android.util.Pair;
import com.google.android.gms.maps.model... |
TeamGrainPigeon/Arknights-Mod | src/main/java/arknights/entity/model/WModel.java | package arknights.entity.model;
public class WModel extends WomanModel {
public WModel(float modelSize) {
super(modelSize);
}
}
|
ZeusWPI/gamification | db/migrate/20141104172317_create_commits.rb | <filename>db/migrate/20141104172317_create_commits.rb
class CreateCommits < ActiveRecord::Migration
def change
create_table :commits do |t|
t.references :coder, index: true
t.references :repository, index: true
t.string :sha, null: false
t.integer :additions, null: fals... |
sabahkhaliq/yoti | src/doc_scan_service/session/retrieve/watchlist.screening.report.response.js | <reponame>sabahkhaliq/yoti
'use strict';
const WatchlistReportResponse = require('./watchlist.report.response');
const WatchlistScreeningSummaryResponse = require('./watchlist.screening.summary.response');
class WatchlistScreeningReportResponse extends WatchlistReportResponse {
constructor(report) {
super(repor... |
AREA44/competitive-programming | UVa-OnlineJudge/UVa280_Vetex.cpp | <reponame>AREA44/competitive-programming<gh_stars>0
/* UVa - 280 - Vertex
* https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=216 */
//nhatnguyendrgs (c) 2015
#include "iostream"
#include "stdio.h"
#include "stdlib.h"
#include "string"
#include "string.h"
#... |
SebastianWeberKamp/KAMP | bundles/Toometa/toometa.relations.tests/src/relations/tests/RelationTypeTest.java | /**
*/
package relations.tests;
import junit.framework.TestCase;
import junit.textui.TestRunner;
import relations.RelationType;
import relations.RelationsFactory;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Relation Type</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public cl... |
sdmiller/gtsam_pcl | gtsam/inference/tests/testSerializationInference.cpp | <filename>gtsam/inference/tests/testSerializationInference.cpp
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author li... |
npocmaka/Windows-Server-2003 | printscan/faxsrv/util/security.cpp | <reponame>npocmaka/Windows-Server-2003
/*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
Security.cpp
Abstract:
General fax server security utility functions
Author:
<NAME> (EranY) Feb, 2001
Revision History:
--*/
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>... |
samvantran/dcos-metrics | module/container_state_cache_impl.cpp | <filename>module/container_state_cache_impl.cpp
#include "container_state_cache_impl.hpp"
#include <stout/json.hpp>
#include <stout/os.hpp>
#include <stout/path.hpp>
/*
* dir format:
* DIR/
* containers/
* container_id-0.json
* container_id-1.json
* container_id-2.json
* ...
*
* file format in c... |
Bosik927/DesignPatterns | Structural/src/main/java/com/github/bosik927/bridge/vehicle/workshops/control/AssembleWorkShop.java | package com.github.bosik927.bridge.vehicle.workshops.control;
import com.github.bosik927.bridge.vehicle.vehicles.boundary.Vehicle;
import com.github.bosik927.bridge.vehicle.workshops.boundary.WorkShop;
import java.util.concurrent.TimeUnit;
import static com.github.bosik927.bridge.vehicle.workshops.entity.WorkShopCon... |
premisedata/spark | core/src/main/scala/spark/deploy/ExecutorState.scala | package spark.deploy
private[spark] object ExecutorState
extends Enumeration("LAUNCHING", "LOADING", "RUNNING", "KILLED", "FAILED", "LOST") {
val LAUNCHING, LOADING, RUNNING, KILLED, FAILED, LOST = Value
type ExecutorState = Value
def isFinished(state: ExecutorState): Boolean = Seq(KILLED, FAILED, LOST).con... |
cnelson87/GruntES6 | grunt_tasks/handlebarslayouts.js | <gh_stars>0
/**
* handlebarslayouts
* Handlebars task to render Handlebars templates to HTML.
*/
module.exports = function (grunt) {
return {
options: {
basePath: '<%= sourceHTML %>',
partials: [
'<%= sourceHTML %>/_layouts/**/*.html',
'<%= sourceHTML %>/_partials/**/*.html'
],
modules: ['<... |
PC-DOS/SEUCPP-OJ-KEYS | Contest 1003/F.cpp | <gh_stars>0
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
int iMonthSal;
cin>>iMonthSal;
double iTotal=iMonthSal*12.0-60000.0;
double iTax;
if (iTotal<=0){
cout<<0;
return 0;
}
if (iTotal<=36000){
iTax=iTotal*0.03;
}
else if (iTotal... |
kelibst/fr-unitreview | src/components/Patients/PatientLogin.js | import React, { Component } from "react";
import { Button, Form } from "react-bootstrap";
import Icofont from "react-icofont";
import { connect } from "react-redux";
import {
fetchPatient,
loginPatientIn,
} from "../../store/actions/PatientAction";
import ErrOrs from "../ErrOrs";
import Success from "../Success";
... |
Balkerm/spring-data-examples | jpa/deferred/src/main/java/example/service/Customer595Service.java | package example.service;
import example.repo.Customer595Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer595Service {
public Customer595Service(Customer595Repository repo) {}
}
|
jchn/preact-spectre | src/components/Grid/Container.js | /** @jsx h */
import { h } from 'preact'
import PropTypes from 'prop-types'
import { createComponent } from '../../utils'
const GridClassModifiers = {
size: size => `grid-${size}`,
}
const GridBase = createComponent('div', 'container', GridClassModifiers)
const Grid = props => <GridBase {...props} />
Grid.propTyp... |
F-f-f-F/java-vk-bots-long-poll-api | src/main/java/api/longpoll/bots/model/response/stories/StoriesGetRepliesResult.java | <gh_stars>0
package api.longpoll.bots.model.response.stories;
import api.longpoll.bots.model.objects.additional.StoriesFeedBlock;
import api.longpoll.bots.model.response.ExtendedVkList;
import api.longpoll.bots.model.response.GenericResult;
/**
* Response to <b>stories.getReplies</b>
*/
public class StoriesGetRepli... |
kaelgodlike/nentropy | multiraft/client/batch.go | <reponame>kaelgodlike/nentropy<gh_stars>0
// Copyright 2015 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
... |
byxorna/nycmesh-tool | generated/go/uisp/models/site_update.go | <reponame>byxorna/nycmesh-tool
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"githu... |
icahoon/vocal | rtsp/rtspserver/RtspFileManager.hxx | #ifndef RtspFileManager_hxx
#define RtspFileManager_hxx
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* ... |
GigahexHQ/jetprobe | project/BuildSettings.scala | <gh_stars>1-10
import sbt.Keys.{version, _}
import sbt._
import com.typesafe.sbt.packager.Keys._
/**
* @author Shad.
*/
object BuildSettings {
lazy val basicSettings = Seq(
organization := "com.jetprobe",
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snap... |
andyyau520/uniclubdev | src/common/actions/routeActions.js | <gh_stars>10-100
import { push } from 'react-router-redux';
import { setCookie } from './cookieActions';
export const redirect = (path) => {
return (dispatch) => {
dispatch(setCookie('redirect', path));
dispatch(push(path));
};
};
|
zwergziege/tlaplus | tlatools/org.lamport.tlatools/test/tlc2/value/impl/TupleValueTest.java | /*******************************************************************************
* Copyright (c) 2020 Microsoft Research. All rights reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... |
frederic-tingaud-sonarsource/xania | src/DescriptorList.hpp | #pragma once
#include "Char.hpp"
#include "Descriptor.hpp"
#include "DescriptorFilter.hpp"
#include <range/v3/view/filter.hpp>
#include <range/v3/view/transform.hpp>
#include <unordered_map>
class DescriptorList {
// We hand out pointers to Descriptors, so this structure must be address-stable.
std::unorder... |
AdvancedVEXLibrary/Advanced-VEX-Library | vex/include/avl_circlearea.h | <reponame>AdvancedVEXLibrary/Advanced-VEX-Library
#pragma once
#ifndef _AVL_CIRCLEAREA_H_
#define _AVL_CIRCLEAREA_H_
#include <math.h>
float
avl_circlearea(const float radius)
{
return M_PI * radius * radius;
}
#endif // _AVL_CIRCLEAREA_H_
|
SoftwareEngineeringToolDemos/type-inference | inference-framework/checker-framework/checkers/inference-tests/ajtests/p/TreeMap_KeyIterator.java | <reponame>SoftwareEngineeringToolDemos/type-inference
/**
*
*/
package p;
import checkers.inference.aj.quals.*;
/*internal*/class TreeMap_KeyIterator extends TreeMap_PrivateEntryIterator {
public TreeMap_KeyIterator(/*@Aliased*/ TreeMap tm/*M=this.I*/){
super(tm);
}
public Object next() {
return... |
Cyberdog52/torenta | src/main/java/ch/andreskonrad/torenta/tmdb/service/TmdbService.java | <reponame>Cyberdog52/torenta
package ch.andreskonrad.torenta.tmdb.service;
import ch.andreskonrad.torenta.CustomCacheConfig;
import ch.andreskonrad.torenta.tmdb.dto.TmdbEpisodeDto;
import ch.andreskonrad.torenta.tmdb.dto.TmdbSearchResultDto;
import ch.andreskonrad.torenta.tmdb.dto.TmdbSeasonDto;
import ch.andreskonrad... |
IIP-Sogang/Audio-Visual-Speech-Recognition | SCTK/src/rfilter1/rfilter1.c | <reponame>IIP-Sogang/Audio-Visual-Speech-Recognition
/* EXPORT VERSION OF: */
/* rfilter1.c - filter that applies a rule set. */
/* This version recognizes a context-sensitive rule formalism. */
/* ... |
pfalcon/llvmpy | llpython/phi_injector.py | #! /usr/bin/env python
# ______________________________________________________________________
from .bytecode_visitor import BytecodeFlowVisitor, BenignBytecodeVisitorMixin
# ______________________________________________________________________
synthetic_opname = []
synthetic_opmap = {}
def def_synth_op (opname):... |
eserial/eserial | src/main/java/hu/elte/eserial/annotation/enumeration/IncludeMatcher.java | <gh_stars>1-10
package hu.elte.eserial.annotation.enumeration;
import hu.elte.eserial.annotation.IncludeMatching;
/**
* Used by the {@link IncludeMatching} annotation.<br>
* {@link IncludeMatcher#NOT_NULL} makes an object's null values ignored when serializing,<br>
* {@link IncludeMatcher#NOT_EMPTY} makes an objec... |
wybrandvdmeer/functionalsql | src/functionalsql/functions/Report.java | package functionalsql.functions;
import functionalsql.Function;
import functionalsql.consumer.TableOrColumnConsumer;
import java.util.ArrayList;
import java.util.List;
import static functionalsql.FunctionalSQLCompiler.ERR_SELECT_ALREADY_DEFINED;
/**
* Syntax: (sum|max|min)( summation_column | nummerical_constant ,... |
shpi0/MyRemoteBackUp | common/src/main/java/files/FileType.java | package files;
public enum FileType {
FILE,
FOLDER
}
|
vsomnath/graphretro | seq_graph_retro/data/collate_fns.py | import torch
from rdkit import Chem
import networkx as nx
from seq_graph_retro.molgraph.mol_features import get_atom_features, get_bond_features
from seq_graph_retro.molgraph.mol_features import BOND_FDIM, ATOM_FDIM, BOND_TYPES
from seq_graph_retro.utils.torch import create_pad_tensor
from typing import Any, List, Di... |
FliesenUI/FliesenUI | src/com/bright_side_it/fliesenui/screendefinition/model/ResourceDefinitionProblem.java | <gh_stars>1-10
package com.bright_side_it.fliesenui.screendefinition.model;
public class ResourceDefinitionProblem {
public enum ProblemType {
WIDGET_TABLE_UNKNOWN_DTO_SPECIFIED, WIDGET_TABLE_NO_FIELD_IN_DTO_SPECIFIED, WIDGET_TABLE_DTO_TYPE_UNKNOWN, WIDGET_TABLE_UNKNOWN_DTO_FIELD
, WIDGET_TABLE_DTO_BASIC_TYPE_... |
brunobarbosagoncalves/chama-front-test | src/services/errorHandler.js | <reponame>brunobarbosagoncalves/chama-front-test
import errorHandlerApi from 'api/errorHandler'
export default async (error = {}, ref = '') =>
errorHandlerApi.post(`/?ref=${ref}`, JSON.stringify(error))
|
nolledge/circe-derivation | modules/annotations/shared/src/test/scala/io/circe/derivation/annotations/JsonCodecCustomSpec.scala | <gh_stars>0
package io.circe.derivation.annotations
import io.circe._
import io.circe.parser._
import io.circe.syntax._
import org.scalatest._
object CustomJsonCodecSpecSamples {
@JsonCodec
case class Person(
@JsonKey("n") name: String,
@JsonNoDefault @JsonKey("a") age: Int = 0,
optional: Option[Stri... |
mattcarlotta/SJSITAPP-SSR | e2e/integration/mail/viewall.mail.spec.js | context("Staff View Mail Page", () => {
before(() => {
cy.exec("npm run seed:stage");
});
beforeEach(() => {
cy.request("POST", "/api/signin", {
email: "<EMAIL>",
password: "password",
});
cy.reload();
cy.visit("/employee/mail/viewall?page=1");
});
after(() => {
cy.exec("npm run drop:stage");
... |
russells-crockpot/roll-with-it | tests/parsing/test_loops.py | <filename>tests/parsing/test_loops.py
# pylint: disable=missing-docstring,unused-import,no-member
from .util import create_scripttest_func
test_until_do = create_scripttest_func('until_do')
test_restart = create_scripttest_func('restart')
test_for_every = create_scripttest_func('for_every')
|
jmhong-simulation/LithopiaOpen | Engine/Geometry/RAY.h | // The Lithopia project initiated by <NAME> for 3D Printing Community.
// Copyright (c) 2015 <NAME> - All Rights Reserved.
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
#pragma once
#include "../GENERIC_DEFINITIONS.h"
class R... |
yixuan-wei/PersonalEngine | Code/Engine/Math/Vec4.cpp | #include "Engine/Math/Vec4.hpp"
#include "Engine/Math/Vec3.hpp"
#include "Engine/Math/Vec2.hpp"
//////////////////////////////////////////////////////////////////////////
Vec4::Vec4( const Vec4& copyFrom )
:x(copyFrom.x)
,y(copyFrom.y)
,z(copyFrom.z)
,w(copyFrom.w)
{
}
////////////////////////////////////////////... |
HairLee/MyElcomMain | app/src/main/java/com/elcom/myelcom/view/ui/activity/SettingActivity.java | <reponame>HairLee/MyElcomMain
package com.elcom.myelcom.view.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.elcom.myelcom.R;
import com.elcom.myelcom.core.base.BaseActivity;
import com.elcom.mye... |
13939094104/Gtokrn | app/src/main/java/vdsMain/clue/LastWeekClueItem.java | <gh_stars>1-10
package vdsMain.clue;
import generic.keyid.CTxDestinationFactory;
import generic.io.StreamWriter;
import generic.serialized.SeriableData;
import vdsMain.CTxDestination;
import java.io.IOException;
import java.math.BigInteger;
//bju
public class LastWeekClueItem extends SeriableData {
/* renamed f... |
YunuSahin/sdk | src/org.scn.community.utils/res/PdfPrint/aps/PdfPrintPropertyPage.js | <reponame>YunuSahin/sdk
sap.designstudio.sdk.PropertyPage.subclass("org.scn.community.utils.PdfPrintPropertyPage", function() {
var that = this;
this.init = function() {
$("#select").change(function() {
that.firePropertiesChanged(["pdfMethod"]);
return false;
});
};
this.pdfMethod = function(value) {
... |
r-dgreen/DashTable | dashtable/data2rst/merge_all_cells.py | <reponame>r-dgreen/DashTable
from .cell import get_merge_direction
from .cell import merge_cells
def merge_all_cells(cells):
"""
Loop through list of cells and piece them together one by one
Parameters
----------
cells : list of dashtable.data2rst.Cell
Returns
-------
grid_table : st... |
untoldwind/trustless-gtk3 | main.go | package main
import (
"context"
"fmt"
"os"
"path/filepath"
"time"
"github.com/davecgh/go-spew/spew"
"github.com/leanovate/microtools/logging"
homedir "github.com/mitchellh/go-homedir"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/untoldwind/amintk/gtk"
"github.com/untoldwind/trustless-gtk3... |
cbFabian/Ceiba-Drogueria | microservicio/aplicacion/src/main/java/com/ceiba/pedido/comando/fabrica/FabricaPedido.java | package com.ceiba.pedido.comando.fabrica;
import com.ceiba.pedido.modelo.entidad.Pedido;
import org.springframework.stereotype.Component;
import com.ceiba.pedido.comando.ComandoPedido;
import java.text.SimpleDateFormat;
import java.util.Date;
@Component
public class FabricaPedido {
public Pedido crear(ComandoP... |
simonzabrocki/Anticipe | data/indicator/ME2/__init__.py | from data.indicator.ME2.preprocess import config |
ai2cm/fv3gfs-util | tests/conftest.py | import pytest
import fv3gfs.util
import numpy as np
try:
import gt4py
except ModuleNotFoundError:
gt4py = None
try:
import cupy
except ModuleNotFoundError:
cupy = None
@pytest.fixture(params=["numpy", "cupy", "gt4py_numpy", "gt4py_cupy"])
def backend(request):
if cupy is None and request.param.en... |
mfernba/rGWB | rGWB/csmsetop_procedges.c | //
// csmsetop_procedges.c
// rGWB
//
// Created by <NAME> on 22/5/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "csmsetop_procedges.inl"
#include "csmarrayc.h"
#include "csmbbox.inl"
#include "csmdebug.inl"
#include "csmedge.inl"
#include "csmedge.tli"
#include "csmeuler_lmev.i... |
ReDEnergy/OpenGL4.5-GameEngine | GameProject/Source/Editor/Windows/Interface/CustomWidget.cpp | #include "CustomWidget.h"
#include <iostream>
#include <QtWidgets/QBoxLayout>
#include <QtCore/QFile>
#include <QIcon>
#include <Editor/Config/QtConfig.h>
using namespace std;
static unsigned int windowNumber = 0;
CustomWidget::CustomWidget(QBoxLayout::Direction direction)
{
SetIcon("colorwheel.png");
qtLayout ... |
openDSME/CometOS | src/communication/dsme/helper/DSMEMessageBuffer.cc | /*
* CometOS --- a component-based, extensible, tiny operating system
* for wireless networks
*
* Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
modem888/thai2transformers | thai2transformers/conf.py | from enum import Enum
class Task(Enum):
MULTICLASS_CLS = 'multiclass_classification'
MULTILABEL_CLS = 'multilabel_classification' |
fmhess/libpoet | test/exception_test.cpp | <reponame>fmhess/libpoet<filename>test/exception_test.cpp<gh_stars>1-10
// Copyright (C) <NAME> 2007
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <boost/assert.hpp>
#include <iostream>
#include <p... |
chenk-iguazio/ui | src/components/FeatureSetsPanel/FeatureSetsPanelView.js | <filename>src/components/FeatureSetsPanel/FeatureSetsPanelView.js
import React from 'react'
import PropTypes from 'prop-types'
import Accordion from '../../common/Accordion/Accordion'
import ErrorMessage from '../../common/ErrorMessage/ErrorMessage'
import Button from '../../common/Button/Button'
import FeatureSetsPan... |
consulo/consulo-github | src/main/java/org/jetbrains/plugins/github/util/GithubAuthData.java | <reponame>consulo/consulo-github<filename>src/main/java/org/jetbrains/plugins/github/util/GithubAuthData.java
/*
* Copyright 2000-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 t... |
RomaKoks/druid | extensions-core/google-extensions/src/main/java/org/apache/druid/data/input/google/GoogleCloudStorageInputSource.java | <reponame>RomaKoks/druid
/*
* 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... |
towardsautonomy/towardsautonomy.github.com | tapl/doc/search/enums_1.js | var searchData=
[
['resultcode',['ResultCode',['../namespacetapl.html#a196ce1d5bf399fc26f03797e6a8d03ff',1,'tapl']]]
];
|
michaelBenin/node-startup | apps/home/home_view.js | 'use strict';
var Backbone = require('backbone');
var $ = require('jquery');
var _ = require('lodash');
var stateManager = require('../../browser/js/services/state_manager');
var config = require('../../browser/js/config');
var template = require('./home.hbs');
var Handlebars = require('hbsfy/runtime');
Handlebars.re... |
LaudateCorpus1/RosettaCodeData | Task/Find-the-last-Sunday-of-each-month/Scala/find-the-last-sunday-of-each-month-2.scala | object FindTheLastSundayOfEachMonth extends App {
def lastSundaysOf(year: Int) = (1 to 12).map{month =>
import java.time._; import java.time.temporal.TemporalAdjusters._
LocalDate.of(year, month, 1).`with`(lastDayOfMonth).`with`(previousOrSame(DayOfWeek.SUNDAY))}
val year = args.headOption.map(_.toInt).get... |
Ivan-sh/Orienteer | src/main/java/ru/ydn/orienteer/components/properties/LinksCollectionViewPanel.java | <reponame>Ivan-sh/Orienteer
package ru.ydn.orienteer.components.properties;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import org.apache.wicket.behavior.AttributeAppender;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
im... |
jacadcaps/webkitty | Source/WebCore/platform/graphics/FloatPoint3D.h | /*
Copyright (C) 2004, 2005, 2006 <NAME> <<EMAIL>>
2004, 2005 <NAME> <<EMAIL>>
2005 <NAME> <<EMAIL>>
2010 <NAME> <<EMAIL>>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
Lice... |
zmatez/WNDev1.14.4 | src/main/java/com/matez/wildnature/world/gen/structures/nature/woods/pine/thin_pine2.java | <gh_stars>1-10
package com.matez.wildnature.world.gen.structures.nature.woods.pine;
import com.matez.wildnature.world.gen.structures.nature.SchemFeature;
import net.minecraft.util.math.BlockPos;
import java.util.Set;
public class thin_pine2 extends SchemFeature {
public thin_pine2() {
super();
t... |
realDaiwei/thinking-in-code | thinking-in-netty/src/main/java/daiwei/atguigu/rpc/RpcClientTestMain.java | <reponame>realDaiwei/thinking-in-code
package daiwei.atguigu.rpc;
import daiwei.atguigu.rpc.client.RpcNettyClient;
import daiwei.atguigu.rpc.common.HelloService;
import daiwei.atguigu.rpc.common.HelloServiceImpl;
/**
* Created by Daiwei on 2021/2/27
*/
public class RpcClientTestMain {
private static final Stri... |
ducis/operating-system-labs | sr/lsri/lib/libsys/read_tsc_64.c |
#include "sysutil.h"
#include <minix/u64.h>
#include <minix/syslib.h>
/* Utility function to work directly with u64_t
* By <NAME>
*/
PUBLIC void read_tsc_64(t)
u64_t* t;
{
u32_t lo, hi;
read_tsc (&hi, &lo);
*t = make64 (lo, hi);
}
|
fgrid/iso20022 | ResponseType1Choice.go | <filename>ResponseType1Choice.go<gh_stars>10-100
package iso20022
// Choice between a response type code and a proprietary code.
type ResponseType1Choice struct {
// Provides a margin call response type using an ISO 20022 code.
Code *MarginCallResponse1Code `xml:"Cd"`
// Provides a margin call response type using... |
huaweicloud/huaweicloud-sdk-java-v3 | services/classroom/src/main/java/com/huaweicloud/sdk/classroom/v3/model/JudgementCaseResult.java | package com.huaweicloud.sdk.classroom.v3.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Collections;
import java.util.HashMap;
imp... |
AsyncMC/Mojang-API-Libs | generated-sources/objc/mojang-sessions/OpenAPIClient/Api/OAIBansApi.h | #import <Foundation/Foundation.h>
#import "OAIApi.h"
/**
* Mojang Session API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2020-06-05
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech)... |
ElsevierSoftwareX/SOFTX-D-22-00045 | src/backend/restful/institution/node/get-all.go | <reponame>ElsevierSoftwareX/SOFTX-D-22-00045<filename>src/backend/restful/institution/node/get-all.go
package node
import (
"net/http"
"backend/env"
"github.com/gin-gonic/gin"
)
//GetAll is used to list all nodes. It is exported as RESTful endpoint via URL /restful/node/get-all.
func GetAll(c *gin.Context) {
var... |
LKG/lore | lore-core/src/main/java/im/heart/core/utils/DateUtilsEx.java | package im.heart.core.utils;
import org.apache.commons.lang3.time.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;
import java.text.ParseException;
im... |
emmamcbryde/AuTuMN-1 | autumn/core/runs/managed.py | from pathlib import Path
from .remote import RemoteRunData
from .utils import website_addr_for_run
from .powerbi import ManagedPowerBI
from .full import ManagedFullRun
from .calibration.managed import ManagedCalibrationRun
from autumn.core import db
from autumn.core.utils.display import get_link
class ManagedRun:
... |
NeilRen/NeilRen4J | src/main/java/com/neilren/neilren4j/security/XssAndSqlHttpServletRequestWrapper.java | package com.neilren.neilren4j.security;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import java.util.regex.Pattern;
/**
* @author NeilRen
* @version 1.0
* @ClassName XssAndSqlHttpServletRequestWrapper
* @Description TODO
* @Date 2018/8/7 21:24
*/
public cla... |
catherinedevlin/just-enough-python | 040-a-loop.py | batters = ['Alma', 'Connie', 'Sylvia']
for at_bat in batters:
print(at_bat + ' at bat')
|
thangtyt/orama | core/custom_filters/pagination.js | "use strict";
/** Create pagination */
module.exports = function (env) {
env.addFilter('pagination', function (totalPage, current_page, link) {
link = link.replace(/\"(.*)\"\.\"(.*)\"/, '$1.$2');
if (totalPage > 1) {
let start = parseInt(current_page) - 4;
if (start < 1) {
... |
welovekpop/wlk.yt-client | lib/components/Username/WithCard.js | <reponame>welovekpop/wlk.yt-client
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _jsx2 = _interopRequireDefault(require("@babel/runtime/helpers/builtin/jsx"));
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefaul... |
EquityZen/SynapseFI-Python | synapse_pay_rest/tests/__init__.py | <reponame>EquityZen/SynapseFI-Python
from .errors_tests import *
from .http_client_tests import *
from .client_tests import *
from .api import *
from .models import *
|
JoeFu/filemaker18helper | FMP_Help/pairs/pair64.js | <reponame>JoeFu/filemaker18helper
var pairs =
{
"mod":{"\u8FD4":1,"(":1,"\u51FD":1}
,"\u8FD4":{"\u56DE":1}
,"\u56DE":{"\u67D0":1,"\u5269":1,"\u201C":1}
,"\u67D0":{"\u6570":1}
,"\u6570":{"\u5B57":1,"\u540E":1,"\u3002":1,")":1,"\u503C":1,"-\u6570":1,"\u8FD4":1,"\u4E3A":1,"\u8F6C":1,"\u4EE5":1,"\u201D":1,"\u002F12":1,",":... |
DeskproApps/salesforce | src/salesforce/apiObjects.js | <gh_stars>0
class ApiObject
{
/**
* @param {String | Object} raw
* @return {*}
*/
static parse(raw)
{
return typeof raw === 'string' ? JSON.parse(raw) : JSON.parse(JSON.stringify(raw));
}
/**
* @param {...*} props
*/
constructor({ ...props })
{
this.props = { ...props };
}
toJ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.