repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
samvera-labs/chimera | lib/tasks/works_report.rake | # frozen_string_literal: true
namespace :deepblue do
# bundle exec rake deepblue:works_report
desc 'Write report of all works'
task :works_report, %i[ options ] => :environment do |_task, args|
args.with_defaults( options: '{}' )
options = args[:options]
task = Deepblue::WorksReport.new( options: op... |
paige-ingram/nwhacks2022 | node_modules/@fluentui/react-icons/lib/cjs/components/TapDouble20Filled.js | <reponame>paige-ingram/nwhacks2022<gh_stars>0
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const wrapIcon_1 = require("../utils/wrapIcon");
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("sv... |
jdvelasq/techminer2 | techminer2/coupling_network_degree_plot.py | """
Coupling Network / Degree Plot
===============================================================================
Builds a coupling network from a coupling matrix.
>>> from techminer2 import *
>>> directory = "data/"
>>> file_name = "sphinx/images/coupling_network_degree_plot.png"
>>> coupling_network_degree_plot(
.... |
zhouqi007/flask1112 | day02/myapp/__init__.py | <filename>day02/myapp/__init__.py
from flask import Flask
from flask_session import Session
from redis import StrictRedis
from myapp.models import db
from .views.views import blue
def create_app():
app = Flask(__name__)
#密钥
app.config["SECRET_KEY"] = "shibushishayawoshelemiyao"
#指... |
drkameleon/elena-lang | elenasrc2/elenagm/win32/directx12.h | //---------------------------------------------------------------------------
// E L E N A P r o j e c t: ELENA Graphic Engine
//
// (C)2017, by <NAME>
//---------------------------------------------------------------------------
#ifndef elenagm_d12H
#define elenagm_d12... |
kevinh-csalabs/rad_common | spec/dummy/db/migrate/20191130162719_add_unique_index_to_divisions.rb | <filename>spec/dummy/db/migrate/20191130162719_add_unique_index_to_divisions.rb
class AddUniqueIndexToDivisions < ActiveRecord::Migration[5.2]
def change
add_index :divisions, :name, unique: true, where: 'division_status = 0'
end
end
|
dataplumber/horizon | common/common-api/src/main/java/gov/nasa/horizon/common/api/serviceprofile/jaxb/BoundingRectangleJaxb.java | <filename>common/common-api/src/main/java/gov/nasa/horizon/common/api/serviceprofile/jaxb/BoundingRectangleJaxb.java
/*****************************************************************************
* Copyright (c) 2007 Jet Propulsion Laboratory,
* California Institute of Technology. All rights reserved
**************... |
sebastian-raubach/blog-server | src/main/java/blog/raubach/database/codegen/tables/Storyposts.java | /*
* This file is generated by jOOQ.
*/
package blog.raubach.database.codegen.tables;
import blog.raubach.database.codegen.BlogDb;
import blog.raubach.database.codegen.tables.records.StorypostsRecord;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import... |
Queen-Jie/java-in-action | src/main/java/cn/queen/java/io/file_reader/UseFileReader.java | /*
* Copyright 2010-2011 the original author or 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
*
* Unless required by ap... |
jplu/adel | adel-recognition/src/main/java/fr/eurecom/adel/recognition/domain/repositories/TypeOverlapResolutionRepository.java | <reponame>jplu/adel<gh_stars>10-100
package fr.eurecom.adel.recognition.domain.repositories;
import java.util.List;
import fr.eurecom.adel.commons.datatypes.Entity;
import fr.eurecom.adel.recognition.configuration.TypeOverlappingConfig;
import fr.eurecom.adel.recognition.exceptions.MappingNotExistsException;
import f... |
shaojiankui/iOS10-Runtime-Headers | PrivateFrameworks/ContactsUICore.framework/CNTUCallProviderManager.h | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/ContactsUICore.framework/ContactsUICore
*/
@interface CNTUCallProviderManager : NSObject <CNTUCallProviderManager> {
TUCallProviderManager * _callProviderManager;
}
@property (nonatomic, copy) TUCallProviderManager *callProviderManager;
@... |
cukingpro/spree_dishes | app/views/spree/api/suppliers/show.rabl | <reponame>cukingpro/spree_dishes<gh_stars>0
object @supplier
attributes :id, :name, :description |
Suyc123/Qv2ray | N50/Solution.java | <filename>N50/Solution.java
package N50;
import java.util.*;
public class Solution {
public boolean duplicate(int[] numbers, int length, int[] duplication){
if(length < 2)
return false;
Set<Integer> set = new HashSet<Integer>();
for(int i = 0; i < length; i ++){
... |
Sczlog/cloudtower-go-sdk | client/content_library_image/content_library_image_client.go | <reponame>Sczlog/cloudtower-go-sdk<filename>client/content_library_image/content_library_image_client.go
// Code generated by go-swagger; DO NOT EDIT.
package content_library_image
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
imp... |
pg83/std | std/ios/outable.cpp | <reponame>pg83/std
#include "outable.h"
|
z8674558/idocp | src/cost/time_varying_task_space_3d_cost.cpp | <filename>src/cost/time_varying_task_space_3d_cost.cpp
#include "idocp/cost/time_varying_task_space_3d_cost.hpp"
namespace idocp {
TimeVaryingTaskSpace3DCost::TimeVaryingTaskSpace3DCost(
const Robot& robot, const int frame_id,
const std::shared_ptr<TimeVaryingTaskSpace3DRefBase>& ref)
: CostFunctionCompo... |
caz1502/Long_Nail | client/src/pages/Home.js | <filename>client/src/pages/Home.js
import React from "react";
import "./home.css";
import { Container } from "react-bootstrap";
import Services from "./Services";
const Home = () => {
return (
<div>
<div className="jumbotron">
<Container>
<span className="welcome">Long or Short Nails</s... |
sagaraivale/insights-core | sample_script.py | #!/usr/bin/env python
from insights.core.plugins import make_response, rule
from insights.parsers.redhat_release import RedhatRelease
@rule(RedhatRelease)
def report(rel):
"""Fires if the machine is running Fedora."""
if "Fedora" in rel.product:
return make_response("IS_FEDORA")
else:
ret... |
zhangjikai/algorithm | jianzhioffer/src/main/java/ReplaceSpace.java | <reponame>zhangjikai/algorithm
/**
* Created by <NAME> on 2017/5/21.
*/
public class ReplaceSpace {
public String replaceSpace(StringBuffer str) {
if(str == null || str.length() == 0) {
return "";
}
StringBuilder builder = new StringBuilder();
char space = ' ';
... |
zcf9916/udax_wallet | ace-common/src/main/java/com/github/wxiaoqi/security/common/entity/casino/CasinoRebateConfig.java | package com.github.wxiaoqi.security.common.entity.casino;
import com.github.wxiaoqi.security.common.base.BaseEntity;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
@Data
@Table(name = "casino_rebate_con... |
davidgonzalezbarbe/Selenium | java/client/src/org/openqa/selenium/interactions/internal/MouseAction.java | // Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
plantuml/plantuml-mit | src/net/sourceforge/plantuml/style/Style.java | <filename>src/net/sourceforge/plantuml/style/Style.java
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, <NAME>
*
* Project Info: https://pl... |
torihedden/merchant-center-application-kit | packages/application-shell/src/utils/select-team-id-from-local-storage/select-team-id-from-local-storage.js | import { STORAGE_KEYS } from '../../constants';
// Attempt to load the `teamId` from localStorage
export default function selectTeamIdFromLocalStorage() {
return window.localStorage.getItem(STORAGE_KEYS.ACTIVE_TEAM_ID);
}
|
cquoss/jboss-4.2.3.GA-jdk8 | testsuite/src/main/org/jboss/test/timer/ejb/TimerMessageBean.java | <gh_stars>0
/*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and... |
yifan-you-37/omnihang | src/lin_my/s3_classifier_train.py | import tensorflow as tf
import tensorflow.contrib.slim as slim
import numpy as np
import sys
import random
from classifier_dataset_new import MyDataset
import os
import time
import argparse
import matplotlib.pyplot as plt
from torch.utils.data import DataLoader
import torch
from tensorboardX import SummaryWriter
impo... |
davin-bao/djra | jira-6.3.6/atlassian-jira/includes/jquery/plugins/textoverflow/textOverflow.js | /**
* @preserve jQuery Text Overflow v0.7.4
*
* Licensed under the new BSD License.
* Copyright 2009-2011, <NAME>
* All rights reserved.
*/
/*global jQuery, document, setInterval*/
(function ($) {
var style = document.documentElement.style,
hasTextOverflow = ('textOverflow' in style || 'OTextOverflow' in... |
jocodoma/coding-interview-prep | Algorithms/Sorting/MergeSort/merge_sort_linked_list.cpp | <gh_stars>0
#include <iostream>
using namespace std;
struct ListNode{
int val;
ListNode *next;
ListNode() : val(0), next(nullptr){}
ListNode(int x) : val(x), next(nullptr){}
ListNode(int x, ListNode* next) : val(x), next(next){}
};
class Solution{
public:
Solution(){}
void mergeSort_recu... |
pengfei99/JavaBasic | LearningJava/src/main/java/org/pengfei/Lesson01_Java_Standard_API/S02_Exploring_Java_lang/source/ProcessBuilderExp.java | package org.pengfei.Lesson01_Java_Standard_API.S02_Exploring_Java_lang.source;
import java.io.*;
import java.util.List;
import java.util.Map;
import java.util.concurrent.*;
import java.util.stream.Collectors;
public class ProcessBuilderExp {
public static void exp1(){
ProcessBuilder processBuilder=new Pro... |
DaoCasino/sample-casino-frontend | src/Screens/Game/Components/GameQuery/index.js | <reponame>DaoCasino/sample-casino-frontend
import { connect } from 'react-redux';
import GamesActions from 'Stores/GamesStore';
import GameQuery from './GameQuery';
import { getGamesItems } from 'Stores/GamesStore/Selectors';
const mapStateToProps = (state) => ({
games: getGamesItems(state),
});
const mapDispatchT... |
jacking75/edu_com2us_cpp20_Training | codes/mudmuhan-ReCpp20/src/board.h | <reponame>jacking75/edu_com2us_cpp20_Training
#ifndef _BOARD_H_
#define _BOARD_H_
extern object *board_obj[PMAX];
extern int board_handle[PMAX];
extern int board_handle2[PMAX];
extern long board_pos[PMAX];
extern char board_title[PMAX][44];
int look_board();
void list_board();
int writeboard();
void write_board();
i... |
kodreanuja/python | kthfactorOfN1.py | def KthFactorOfN(n, k):
count = 0
for i in range(1, n+ 1):
if n % i == 0:
count += 1
if count == k:
return i
return -1
n = int(input())
k = int(input())
print(KthFactorOfN(n, k)) |
emuneee/premofm | app/src/main/java/com/mainmethod/premofm/receiver/DeviceStatusReceiver.java | <filename>app/src/main/java/com/mainmethod/premofm/receiver/DeviceStatusReceiver.java<gh_stars>10-100
/*
* Copyright (c) 2014.
* Main Method Incorporated.
*/
package com.mainmethod.premofm.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com... |
peacemakr-io/peacemakr-go-sdk | pkg/generated/client/peacemakr_client_client.go | <filename>pkg/generated/client/peacemakr_client_client.go
// Code generated by go-swagger; DO NOT EDIT.
package client
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"github.com/go-openapi/runtime"
httptransport "github.... |
HJ-zhtw/JustEnoughItems | src/main/java/mezz/jei/plugins/vanilla/cooking/fuel/FuelRecipe.java | <gh_stars>100-1000
package mezz.jei.plugins.vanilla.cooking.fuel;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import net.minecraft.world.item.ItemStack;
import com.google.common.base.Preconditions;
import mezz.jei.api.gui.drawable.IDrawableAnimated;
... |
qvjp/INWOX | kernel/include/inwox/termios.h | <reponame>qvjp/INWOX
/** MIT License
*
* Copyright (c) 2020 - 2021 <NAME>
*
* 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
... |
zeniel/bot-apoiador-requisitante | src/main/java/dev/pje/bots/apoiadorrequisitante/utils/textModels/AprovacoesMRTextModel.java | <gh_stars>1-10
package dev.pje.bots.apoiadorrequisitante.utils.textModels;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
imp... |
jiyulongxu/playwell | playwell-activity/src/main/java/playwell/message/DomainMessage.java | <reponame>jiyulongxu/playwell
package playwell.message;
/**
* DomainMessage接口用来描述已经计算出DomainID的消息
*
* @author <EMAIL>
*/
public interface DomainMessage {
String getDomainId();
}
|
grgrzybek/camel | components/camel-syslog/src/main/java/org/apache/camel/component/syslog/netty/Rfc5425Encoder.java | <filename>components/camel-syslog/src/main/java/org/apache/camel/component/syslog/netty/Rfc5425Encoder.java<gh_stars>1-10
/**
* 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 c... |
petr-muller/abductor | cil/test/small1/combine2_2.c | /* Declare it as an array but without length */
extern char* foo[];
/* Now it has a length but is static */
static char *foo[2] = {"first string", "second string"};
static int bar = 0;
static char *foo_static = "My static string";
int f2() {
return bar;
}
|
severalnines/s9s-advisor-bundle | s9s/mysql/general/prepared_statements_check.js | <filename>s9s/mysql/general/prepared_statements_check.js<gh_stars>1-10
#include "common/mysql_helper.js"
/**
* Checks the percentage of max ever used connections
*
*/
var WARNING_THRESHOLD=80;
var TITLE="Max_prepared_stmt_count check";
var ADVICE_WARNING="You are using more than " + WARNING_THRESHOLD +
"% of ... |
mchiasson/PhaserNative | 3rdparty/webkit/Source/WebInspectorUI/UserInterface/Views/ScriptTimelineDataGridNode.js | <filename>3rdparty/webkit/Source/WebInspectorUI/UserInterface/Views/ScriptTimelineDataGridNode.js
/*
* Copyright (C) 2013, 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1... |
qonsoll/react-design | src/components/Switch/Switch.stories.js | <reponame>qonsoll/react-design<filename>src/components/Switch/Switch.stories.js<gh_stars>1-10
import React from 'react'
import Switch from './Switch'
import {
spaceArgTypes,
colorArgTypes,
typographyArgTypes,
layoutArgTypes,
flexboxArgTypes,
backgroundArgTypes,
borderArgTypes,
positionArgTypes,
shadow... |
ValMilkevich/betfair_ng | lib/betfair_ng/api/data_types/time_range_result.rb | <filename>lib/betfair_ng/api/data_types/time_range_result.rb<gh_stars>1-10
module BetfairNg
# Declares the module for API interactions
#
module API
# Declares the module for Data types
#
module DataTypes
# Declares TimeRangeResult
#
# == Fields
# - time_range
# - market_count
#
cla... |
s-bl/robot_fingers | scripts/trifingerpro_post_submission.py | #!/usr/bin/env python3
"""Perform "post submission" actions on TriFingerPro.
Performs the following actins:
- run some self-tests to check if the robot is behaving as expected
- move the fingers on a previously recorded trajectory to randomize the
position of the cube
- use the cameras to check if the cube is still... |
M1kemclain247/ParkingDemo | app/src/main/java/com/example/m1kes/parkingdemo/util/SecureCashup.java | package com.example.m1kes.parkingdemo.util;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.text.Editable;
import android.widget.EditText;
import com.example.m1kes.parkingdemo.R;
public class SecureCashup {
public static void validateUser... |
ashokr8142/phanitest | Android/app/src/main/java/com/harvard/studyappmodule/SurveyResourcesFragment.java | /*
* Copyright © 2017-2019 Harvard Pilgrim Health Care Institute (HPHCI) and its Contributors.
* Copyright 2020 Google LLC
* 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 restrictio... |
rjw57/tiw-computer | emulator/src/devices/cpu/psx/irq.h | <reponame>rjw57/tiw-computer
// license:BSD-3-Clause
// copyright-holders:smf
/*
* PlayStation IRQ emulator
*
* Copyright 2003-2011 smf
*
*/
#ifndef MAME_CPU_PSX_IRQ_H
#define MAME_CPU_PSX_IRQ_H
#pragma once
extern const device_type PSX_IRQ;
#define MCFG_PSX_IRQ_HANDLER(_devcb) \
devcb = &downcast<psxirq_dev... |
zhangkn/iOS14Header | System/Library/Frameworks/CoreMotion.framework/CLNotifierServiceAdapter.h | <reponame>zhangkn/iOS14Header
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:40:20 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/Frameworks/CoreMotion.framework/CoreMotion
* classdump-dyld is licensed under GPLv3, Cop... |
solita/query-utils | src/main/java/fi/solita/utils/query/backend/hibernate/OptionResultTransformer.java | package fi.solita.utils.query.backend.hibernate;
import static fi.solita.utils.functional.Collections.newMap;
import static fi.solita.utils.functional.Functional.head;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.hibernate.transform.ResultTransformer;
import fi.solita.utils.funct... |
AaronFriel/pulumi-google-native | sdk/python/pulumi_google_native/firestore/v1beta1/outputs.py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... |
DigitalRiverConnect/reactor-core | src/test/java/reactor/core/publisher/TopicProcessorTest.java | <gh_stars>0
/*
* Copyright (c) 2011-2017 Pivotal Software 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.org/licenses/LICENSE-2.0... |
brettweavnet/outliers | lib/outliers/resources/aws/elb/load_balancer_collection.rb | module Outliers
module Resources
module Aws
module Elb
class LoadBalancerCollection < Collection
def load_all
connect.load_balancers.map {|r| resource_class.new r}
end
end
end
end
end
end
|
Elgaeb/ml-harmonize | src/main/java/com/marklogic/service/SSLConfigService.java | package com.marklogic.service;
import com.marklogic.client.ext.modulesloader.ssl.SimpleX509TrustManager;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Component;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustM... |
stoizner/yakjs | server/src/routes/v1/upload/fileContainer.js | <reponame>stoizner/yakjs
'use strict';
function FileContainer() {
/**
* @type {string}
*/
this.filename = null;
/**
* UTF8 file content.
* @type {string}
*/
this.content = null;
}
module.exports = FileContainer;
|
PaulForgey/dns | nsdb/cache.go | package nsdb
import (
"container/heap"
"errors"
"sync"
"sync/atomic"
"time"
"tessier-ashpool.net/dns"
)
// MaxItems and LowItems may be changed at runtime
var MaxItems = 2000 // maximum cache entries
var LowItems = 1500 // entries purge down to
// the Cache type is a specialization of Memory which expires rec... |
iphelix/exploits | corelan/aimp2/poc1.py | <filename>corelan/aimp2/poc1.py
#!/usr/bin/env python
# PoC1.py
header = "[playlist]\nNumberOfEntries=1\n\n"
header+= "File1="
junk = "A"*5000
payload = header + junk + "\n"
f = open('playlist.pls','w')
f.write(payload)
f.close()
|
jodeci/fortuna | lib/tasks/gov.rake | <filename>lib/tasks/gov.rake<gh_stars>1-10
# frozen_string_literal: true
namespace :gov do
desc "所得稅、二代健保"
task payment: :environment do
unless ENV["year"] && ENV["month"]
abort "usage: rake gov:payment year=2018 month=2"
end
puts "公司統一編號 #{ENV['company_tax_id']}"
puts "勞保投保代號 #{ENV['company_... |
CanadaHealthInfoway/message-builder | message-builder-hello-world/src/main/java/ca/infoway/messagebuilder/guide/examples/devtools/GenerateSampleMessage.java | <reponame>CanadaHealthInfoway/message-builder<gh_stars>1-10
/**
* Copyright 2013 Canada Health Infoway, 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.apach... |
ScalablyTyped/SlinkyTyped | u/uirouter__angularjs/src/main/scala/typingsSlinky/uirouterAngularjs/stateEventsMod.scala | <reponame>ScalablyTyped/SlinkyTyped<gh_stars>10-100
package typingsSlinky.uirouterAngularjs
import typingsSlinky.angular.mod.IAngularEvent
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBrack... |
Request404/WebsiteDesginFor4 | website_back_end/src/main/java/com/hey/request/security/config/UserAuthenticationProvider.java | <reponame>Request404/WebsiteDesginFor4
package com.hey.request.security.config;
import com.hey.request.security.entity.SysUserDetails;
import com.hey.request.security.service.SysUserDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configurati... |
muchnameless/SkyHelperAPI | stats/mining.js | const { getHotM, perks, forgeItemTimes } = require('../constants/mining');
const { toFixed, titleCase } = require('../constants/functions');
const getSkills = require('./skills');
module.exports = (player, profile) => {
const mining_stats = profile?.mining_core;
const player_perks = [];
const disabled_perk... |
oxelson/gempak | gempak/source/nmaplib/nmp/nmpsave.c | <filename>gempak/source/nmaplib/nmp/nmpsave.c
#include "nmpcmn.h"
void nmp_save ( int *iret )
/************************************************************************
* nmp_save *
* *
* Thi... |
cpreh/spacegameengine | libs/camera/src/camera/spherical/coordinate_system/to_camera_coordinate_system.cpp | // Copyright <NAME> 2006 - 2019.
// 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 <sge/camera/coordinate_system/object.hpp>
#include <sge/camera/spherical/coordinate_system/object.hp... |
NikolayMakhonin/postcss-js-syntax-editor | dist/js/test/tests/common/main/main.js | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _main = _interopRequireDefault(require("../../../../main/common/main"));
describe('common > main > main', function () {
it('base', function () {
_main.default.main('test');
});
}); |
tiborsimon/embedded-tdd-headers | pic/pic18/pic18f2439_tdd.h | /* Generated on 2016-07-26
===============================================================================
P I C T D D R E A D Y R E G I S T E R D E F I N I T I O N
===============================================================================
Created by <NAME> - <EMAIL>
Generator script: https://githu... |
ghorbanzade/UMB-CS114-2015F | src/main/java/hw05/CharacterBox.java | <reponame>ghorbanzade/UMB-CS114-2015F
/**
* UMB-CS114-2015F: Introduction to Programming in Java
* Copyright 2015 <NAME> <<EMAIL>>
* More info: https://github.com/ghorbanzade/UMB-CS114-2015F
*/
package edu.umb.cs114.hw05.q02;
/**
* This class defines a container for the magnetic characters. It provides an
* abstr... |
jreicheneker/harvey | index.js | var fs = require('fs');
var path = require('path');
var glob = require('glob');
var clone = require('clone');
var http = require('http');
var https = require('https');
var _ = require('underscore');
module.exports = Harvey = function() {
var SuiteBuilder = require('./lib/suiteBuilder.js');
var HarveyStatus = require... |
untgames/funner | components/render/dx11_driver/tests/device/all_input_states.cpp | <gh_stars>1-10
#include "shared.h"
//size_t output_mode = OutputMode_Default;
size_t output_mode = OutputMode_All;
size_t total_tests = 0;
size_t success_tests = 0;
size_t wrong_tests = 0;
size_t fail_tests = 0;
void print_input_layout_desc(const InputLayoutDesc& desc)
{
static const char* header_... |
PrinceDhaliwal/copta | include/jast/macros.h | #ifndef MACROS_H_
#define MACROS_H_
#ifndef DISABLE_COPY
#define DISABLE_COPY(className) \
className(const className &c) = delete; \
className &operator=(const className &c) = delete
#endif
#endif
|
kurien92/kreBLog | src/main/java/net/kurien/blog/common/aop/security/dao/CustomJdbcDaoImpl.java | package net.kurien.blog.common.aop.security.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.security.core.GrantedAuthority;
import... |
Revan-7/Hbm-s-Nuclear-Tech-GIT | com/hbm/packet/LoopedEntitySoundPacket.java | package com.hbm.packet;
import org.lwjgl.opengl.GL11;
import com.hbm.entity.logic.EntityBomber;
import com.hbm.main.ResourceManager;
import com.hbm.sound.MovingSoundBomber;
import com.hbm.sound.SoundLoopAssembler;
import com.hbm.sound.SoundLoopBroadcaster;
import com.hbm.sound.SoundLoopCentrifuge;
import com.hbm.soun... |
otya128/node-aribts | src/descriptor/local_time_offset.js | "use strict";
const TsReader = require("../reader");
class TsDescriptorLocalTimeOffset {
constructor(buffer) {
this.buffer = buffer;
}
decode() {
let reader = new TsReader(this.buffer);
let objDescriptor = {};
objDescriptor._raw = this.buffer;
objDescriptor.descr... |
skei/MIP2 | include/plugin/mip_audio_port.h | <gh_stars>1-10
#ifndef mip_audio_port_included
#define mip_audio_port_included
//----------------------------------------------------------------------
#include "mip.h"
//#include "base/types/mip_array.h"
//#include "base/types/mip_queue.h"
//#include "base/utils/mip_math.h"
#include "extern/clap/clap.h"
class MIP_Au... |
OpsLevel/datadog-api-client-ruby | lib/datadog_api_client/v2/models/incident_create_attributes.rb | <gh_stars>0
=begin
#Datadog API V2 Collection
#Collection of all Datadog Public endpoints.
The version of the OpenAPI document: 1.0
Contact: <EMAIL>
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
Unless explicitly stated otherwise all files in this repository are licensed un... |
ceekay1991/AliPayForDebug | AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/ARScanFileManager.h | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import <objc/NSObject.h>
@interface ARScanFileManager : NSObject
{
}
+ (id)defaultManager;
- (id)downloadFromDjango:(id)arg1 md5:(id)arg2 ... |
qtwang/streaminer | src/test/java/org/streaminer/util/hash/Lookup3HashTest.java | /**
* 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 "License"); you may... |
dakshkhetan/ds-and-algo | Pepcoding/Level1/DP&Greedy/BuyAndSellStocksTransactionFee.java | <filename>Pepcoding/Level1/DP&Greedy/BuyAndSellStocksTransactionFee.java<gh_stars>1-10
/*
Sample Input
12
10
15
17
20
16
18
22
20
22
20
23
25
3
Sample Output
13
*/
import java.util.*;
public class Main {
public static int buyAndSellStocksTransactionFee(int[] prices, int fee) {
// BSP - "bought" state profit... |
zhuhanming/duchess | src/test/java/duke/util/DateTimeStringFormatterTest.java | package duke.util;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import org.junit.jupiter.api.Test;
/**
* JUnit test class for {@code DateTimeStringFormatter}.
*/
public class DateTimeStringFormat... |
donovan-PNW/dwellinglybackend | tests/factory_fixtures/tenant.py | <gh_stars>0
import pytest
from models.tenant import TenantModel
from schemas.tenant import TenantSchema
@pytest.fixture
def tenant_attributes(faker, create_join_staff):
def _tenant_attributes(staff=None):
if staff is None:
staff = [create_join_staff().id]
return {
"firstNam... |
jnthn/intellij-community | java/java-tests/testData/codeInsight/completion/smartType/IntConstInSwitch-out.java | class E {
static final int ABC;
static final int DEF;
void foo (int e) {
int ADF;
switch (e) {
case ABC:<caret>
}
}
} |
milyiyo/nlu | nlu/pipe/viz/streamlit_viz/viz_building_blocks/entity_embedding_manifold.py | import nlu
from nlu.discovery import Discoverer
from nlu.pipe.utils.storage_ref_utils import StorageRefUtils
from typing import List, Tuple, Optional, Dict, Union
import streamlit as st
from nlu.utils.modelhub.modelhub_utils import ModelHubUtils
import numpy as np
import pandas as pd
from nlu.pipe.viz.streamlit_viz.str... |
iljoongkr/poseidonos | src/device/unvme/unvme_drv.cpp | /*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain th... |
graphia/publish-teacher-training | spec/features/courses/study_mode/edit_spec.rb | <filename>spec/features/courses/study_mode/edit_spec.rb
require "rails_helper"
feature "Edit course study mode", type: :feature do
let(:current_recruitment_cycle) { build(:recruitment_cycle) }
let(:study_mode_page) { PageObjects::Page::Organisations::CourseStudyMode.new }
let(:course_details_page) { PageObjects:... |
AlSidorenko/Java_from_A_to_Z | Intern/chapter_001/src/test/java/ru/job4j/cycle_5/factorial_5_2/FactorialTest.java | <reponame>AlSidorenko/Java_from_A_to_Z
package ru.job4j.cycle_5.factorial_5_2;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Created on 10.08.2018.
*
* @author <NAME> (<EMAIL>).
* @version $Id$.
* @since 0.1.
*/
public class FactorialTest {
... |
bronxc/refinery | refinery/units/obfuscation/vba/__init__.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
A package containing deobfuscators for Visual Basic for Applications (VBA).
"""
def string_unquote(string: str) -> str:
if string[0] != '"' or string[~0] != '"':
raise ValueError(string)
return string[1:~1].replace('""', '"')
def string... |
brugere/manager | packages/manager/apps/dedicated/client/app/account/user/emails/user-emails.service.js | <gh_stars>100-1000
export default /* @ngInject */ function UserAccountEmailsService(
$q,
coreConfig,
OvhHttp,
) {
const cache = {
models: 'UNIVERS_MODULE_OTRS_MODELS',
me: 'UNIVERS_MODULE_OTRS_ME',
emails: 'UNIVERS_MODULE_OTRS_EMAILS',
};
this.getModels = function getModels() {
return OvhHt... |
jasnow/photish5 | lib/photish/core_plugin/breadcrumb.rb | module Photish::Plugin::Breadcrumb
def self.is_for?(type)
[
Photish::Plugin::Type::Collection,
Photish::Plugin::Type::Album,
Photish::Plugin::Type::Photo
].include?(type)
end
def breadcrumbs
html = "<ul class=\"breadcrumbs\">"
parents_and_me.each_with_index do |level, index|
... |
Tiankx1003/Scala | spark-demo/scala/src/main/scala/com/tian/onclass/day04/high/MapDemo1.scala | <reponame>Tiankx1003/Scala
package com.tian.onclass.day04.high
/**
* map算子,一进一出
*
* @author tian
* 2019/9/7 14:29
*/
/*
map的作用:用来调整数据类型
*/
object MapDemo1 {
def main(args: Array[String]): Unit = {
val list1 = List(1, 2, 3, 4, 5)
//final override def map[B, That](f: A => B)(implicit bf... |
AjayThorve/cuxfilter | python/cuXfilter/tests/test_mappers.py | from cuXfilter import charts
import cuXfilter
from bokeh import palettes
from cuXfilter.layouts import layout_1
cux_df = cuXfilter.DataFrame.from_arrow('/home/ajay/data/146M_predictions_v2.arrow')
mapper1 = {}
mapper2 = {}
for val in cux_df.data.dti.unique().to_pandas().tolist():
mapper1[int(val)] = 'l_'+str(va... |
ballTeams/balls | mobile/src/actions/notice.js | <filename>mobile/src/actions/notice.js
export const NOTICE_MAIN_GET = 'NOTICE_MAIN_GET';
export let noticeMain = (data) => {
return {
type: NOTICE_MAIN_GET,
data
}
} |
ankurshukla1993/IOT-test | coeey/com/google/android/gms/common/internal/zzcb.java | package com.google.android.gms.common.internal;
import android.content.Context;
import android.content.res.Resources.NotFoundException;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
public final class zzcb {
public static String zza(String str, String str2, Context con... |
bndly/bndly-commons | schema/schema-impl/src/main/java/org/bndly/schema/impl/persistence/TypeTableInsert.java | package org.bndly.schema.impl.persistence;
/*-
* #%L
* Schema Impl
* %%
* Copyright (C) 2013 - 2020 Cybercon GmbH
* %%
* 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:... |
wt201501/ytlib | ytlib/boost_asio/asio_tools.hpp | <filename>ytlib/boost_asio/asio_tools.hpp
/**
* @file asio_tools.hpp
* @brief asio工具类
* @note asio执行工具类,封装了asio的一般使用模式
* @author WT
* @date 2021-08-05
*/
#pragma once
#include <functional>
#include <list>
#include <memory>
#include <thread>
#include <vector>
#include <boost/asio.hpp>
#include "ytlib/misc/misc_... |
dmgerman/hadoop | hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/StringSignerSecretProvider.java | <filename>hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/util/StringSignerSecretProvider.java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ... |
theBoyMo/NoteSavingApp | app/src/main/java/com/example/demo/ui/fragment/PlaceHolderFragment.java | <gh_stars>0
package com.example.demo.ui.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.demo.R;
public class PlaceHolderFragment extends BaseFragment{
/** The fragment argument rep... |
gongjunbing/short_url | url-common/src/main/java/com/gong/url/exception/GlobalExceptionHandler.java | package com.gong.url.exception;
import com.gong.url.response.GlobalResponseCodeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.StringUtils;
import org.springf... |
kami-lang/madex-r8 | src/test/java/com/android/tools/r8/cf/BasicBlockMuncherQuadraticTest.java | // Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.cf;
import com.android.tools.r8.TestBase;
import java.util.Arrays;
import or... |
batmat/performance-signature-dynatrace-plugin | ui/src/main/java/de/tsystems/mms/apm/performancesignature/dynatrace/model/Measurement.java | <filename>ui/src/main/java/de/tsystems/mms/apm/performancesignature/dynatrace/model/Measurement.java
/*
* Copyright (c) 2014-2018 T-Systems Multimedia Solutions GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... |
peakon/delighted-node | lib/utils/extend.js | <reponame>peakon/delighted-node
var merge = require('./merge');
function maskedPrototype(proto, exceptions) {
var masked = {};
for (var key in proto) {
if (exceptions.indexOf(key) === -1) {
masked[key] = proto[key];
}
}
return masked;
}
module.exports = function(protoProps, options) {
var pa... |
fossabot/go-doudou | svc/internal/codegen/ast_test.go | <filename>svc/internal/codegen/ast_test.go<gh_stars>0
package codegen
import (
"github.com/stretchr/testify/assert"
"github.com/unionj-cloud/go-doudou/astutils"
"github.com/unionj-cloud/go-doudou/pathutils"
"go/ast"
"go/parser"
"go/token"
"testing"
)
func TestStructCollector_Alias(t *testing.T) {
file := path... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.