repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
scottkwarren/config-db | NAMD_2.12_Source/charm-6.7.1/src/xlat-i/xi-Type.h | #ifndef _TYPE_H
#define _TYPE_H
#include "xi-util.h"
namespace xi {
class TParamList;
class ParamList;
/*********************** Type System **********************/
class Type : public Printable {
public:
virtual void print(XStr&) = 0;
virtual int isVoid(void) const {return 0;}
virtual int isBuiltin(void) co... |
goyourfly/NovaCustom | native/avos/Source/stream_sink_audio_fake.c | /*
* Copyright 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 in w... |
lyriccoder/aibolit | test/integration/all.py | # The MIT License (MIT)
#
# Copyright (c) 2020 Aibolit
#
# 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, copy, modify, m... |
Archive-42/a-whole-bunch-o-gatsby-templates | The-NodeJS-Master-Class/Section 4/Making AJAX Requests/public/app.js | <gh_stars>0
/*
* Frontend Logic for application
*
*/
// Container for frontend application
var app = {};
// Config
app.config = {
'sessionToken' : false
};
// AJAX Client (for RESTful API)
app.client = {}
// Interface for making API calls
app.client.request = function(headers,path,method,queryStringObject,payl... |
arthur-zhang/KiVM | src/kivm/jni/nativeLibrary.cpp | <gh_stars>100-1000
//
// Created by kiva on 2018/11/11.
//
#include <kivm/kivm.h>
#include <kivm/jni/nativeLibrariy.h>
namespace kivm {
using JNIOnLoadFunction = jint(*)(JavaVM *, void *);
using JNIOnUnloadFunction = void (*)(JavaVM *, void *);
JavaNativeLibrary::JavaNativeLibrary(const String &libraryNa... |
ronething/leetcode-golang | topic/dp/62. Unique Paths.go | <gh_stars>0
package dp
func uniquePaths(m int, n int) int {
// res[0][0] = 1
// res[0][1] = 1
// res[1][0] = 1
// res[i][j] = res[i-1][j] + res[i][j-1] (i,j>=1)
// 表示 索引位置 i,j 元素的不同路径数
// 要么由上面走到 i,j 要么由左边走到 i,j 把两者的路径数加起来即可
// 需要注意判断是否越界
res := make([]int, m*n)
// 索引 m 表示行,n 表示列
// i * n + j
res[0] = 1
fo... |
JasonLeeSJTU/Algorithms_Python | jianzhi_offer_3.py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: <NAME>
@license: (C) Copyright @ <NAME>
@contact: <EMAIL>
@file: jianzhi_offer_3.py
@time: 2019/4/18 11:03
@desc:
'''
class Solution:
# array 二维列表
def Find(self, target, array):
if not target or not array:
return False
r... |
johnnygreco/hugs-pipe | scripts/runner.py | <reponame>johnnygreco/hugs-pipe
"""
Run hugs pipeline.
"""
from __future__ import division, print_function
import os, shutil
from time import time
import mpi4py.MPI as MPI
import schwimmbad
from hugs.pipeline import next_gen_search, find_lsbgs
from hugs.utils import PatchMeta
import hugs
def ingest_data(args):
... |
avijitmondal/Together | together-auth-center/src/main/java/com/avijitmondal/together/auth/service/UserTokenSessionService.java | package com.avijitmondal.together.auth.service;
import com.avijitmondal.together.auth.model.UserTokenSession;
import com.avijitmondal.together.auth.repository.UserTokenSessionRepository;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annota... |
McDoyen/yavasource | javasource/changecalendar/proxies/UU95_RecalulateObject.java | <reponame>McDoyen/yavasource<gh_stars>0
// This file was generated by Mendix Modeler.
//
// WARNING: Code you write here will be lost the next time you deploy the project.
package changecalendar.proxies;
public class UU95_RecalulateObject
{
private final com.mendix.systemwideinterfaces.core.IMendixObject uU9... |
ulrichdah/BittyBuzz | src/crazyflie/lib/inc/cfmodules/eventtrigger.h | /**
* || ____ _ __
* +------+ / __ )(_) /_______________ _____ ___
* | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
* +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
* || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
*
* Crazyflie control firmware
*
* Copyright (C) 2012-2021 Bi... |
vicyor/spike-system | src/main/java/com/vicyor/spike/service/impl/SpikeOrderServiceImpl.java | <reponame>vicyor/spike-system
package com.vicyor.spike.service.impl;
import com.vicyor.spike.entity.SpikeOrder;
import com.vicyor.spike.repository.SpikeOrderRepository;
import com.vicyor.spike.service.SpikeOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotyp... |
degarashi/sprinkler | src/dep_win/ghook/ghook/wevent.cpp | <reponame>degarashi/sprinkler<filename>src/dep_win/ghook/ghook/wevent.cpp
#include "wevent.hpp"
#include <stdexcept>
WEvent::WEvent(LPCTSTR name):
_event(CreateEvent(NULL, FALSE, FALSE, name))
{
if(!_event)
throw std::runtime_error("something wrong(WEvent())");
}
void WEvent::signal() {
if(!SetEvent(_event))
th... |
mfloresn90/CSharpSources | Web authentication broker sample/C# and C++/AuthFilters/SwitchableAuthFilter.cpp | #include "pch.h"
#include "OAuth.h"
#include "OAuth2.h"
#include "SwitchableAuthFilter.h"
#include <winerror.h>
#include <ppltasks.h>
#include <collection.h>
using namespace AuthFilters;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using n... |
bradchesney79/illacceptanything | linux/drivers/scsi/t128.h | /*
* Trantor T128/T128F/T228 defines
* Note : architecturally, the T100 and T128 are different and won't work
*
* Copyright 1993, <NAME>
* Visionary Computing
* (Unix and Linux consulting and custom programming)
* <EMAIL>
* +1 (303) 440-4894
*
* For more information, please consult
*
* Trantor Systems,... |
wxmerkt/ihmc-open-robotics-software | IHMCRoboticsToolkit/src/us/ihmc/robotics/screwTheory/GeometricJacobian.java | package us.ihmc.robotics.screwTheory;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import org.ejml.data.DenseMatrix64F;
import org.ejml.ops.CommonOps;
import us.ihmc.robotics.geometry.ReferenceFrameMismatchException;
import us.ihmc.robotics.nameBasedHashCode.NameBasedHashCodeHol... |
vimofthevine/underbudget4 | webapp/src/common/components/PureFab/PureFab.stories.js | import AddIcon from '@material-ui/icons/Add';
import { action } from '@storybook/addon-actions';
import React from 'react';
import PureFab from './PureFab';
export default {
title: 'common/PureFab',
component: PureFab,
};
const Template = (args) => <PureFab {...args} />;
export const PrimaryColor = Template.bin... |
mtezych/cpp | vulkan/source/RenderPass.cpp | <filename>vulkan/source/RenderPass.cpp
#include <vulkan/RenderPass.h>
#include <vulkan/Device.h>
#include <cassert>
namespace vk
{
RenderPass::RenderPass
(
const Device& device,
const std::vector<VkAttachmentDescription>& attachments,
const std::vector<VkSubpassDescription>& ... |
vitorsouza/FrameWeb-Martins-2015 | core/plugins/codegenerator/br.ufes.inf.nemo.frameweb.codegenerator.e4/src/br/ufes/inf/nemo/frameweb/codegenerator/e4/models/ApplicationModelCodeGenerator.java | <filename>core/plugins/codegenerator/br.ufes.inf.nemo.frameweb.codegenerator.e4/src/br/ufes/inf/nemo/frameweb/codegenerator/e4/models/ApplicationModelCodeGenerator.java
package br.ufes.inf.nemo.frameweb.codegenerator.e4.models;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
imp... |
jaylinjiehong/NumberOfPasses | Android/android-30/android30_code_view/src/com/company/source/com/android/launcher3/icons/cache/BaseIconCache.java | <filename>Android/android-30/android30_code_view/src/com/company/source/com/android/launcher3/icons/cache/BaseIconCache.java
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... |
perfectrecall/aws-sdk-cpp | aws-cpp-sdk-lexv2-models/source/model/ImportResourceSpecification.cpp | <filename>aws-cpp-sdk-lexv2-models/source/model/ImportResourceSpecification.cpp
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/lexv2-models/model/ImportResourceSpecification.h>
#include <aws/core/utils/json/JsonSerializer.h>
#includ... |
myke-roly/mipergamino | components/icons/Inmobiliaria.js | <gh_stars>1-10
import GenericIcon from "./GenericIcon";
const Inmobiliaria = props => (
<GenericIcon {...props}>
<path xmlns="http://www.w3.org/2000/svg" d="m0 117.382812 16.640625 27.335938 31.679687-19.277344v213.605469h288v-213.613281l31.679688 19.277344 16.640625-27.335938-192.320313-117.054688zm304.320312 1... |
fake-name/ReadableWebProxy | WebMirror/management/rss_parser_funcs/feed_parse_extractSenseitranslationBlogspotCom.py | def extractSenseitranslationBlogspotCom(item):
'''
Parser for 'senseitranslation.blogspot.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
titlemap = [
('S. B. F. C Chapter ', 'Salvation Began From Caf... |
AjayGhanwat/AllWork | FundooPay/app/src/main/java/com/bridgelabz/fundoopay/MainActivity.java | package com.bridgelabz.fundoopay;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import com.bridgelabz.fundoopay.base.BaseActivity;
import com.bridgelabz.fundoopay.register.welcomefragment;
public class MainActivity extends BaseActivity {
Fragment fragment = null;... |
alovn/tutorials | golang/design-parttern/08.adapter/adapter_test.go | <gh_stars>1-10
package adapter
import "testing"
func TestPowerAdapter_Charge(t *testing.T) {
adapter := &PowerAdapter{}
adapter.SetPower(&AmericaPower{})
adapter.Charge(&ChinaPlug{})
}
|
alexaries/CocosCreatorPlugins | packages/res-compress/panel/index.js | let packageName = "res-compress";
let fs = require('fire-fs');
let path = require('fire-path');
let Electron = require('electron');
let fs_extra = require('fs-extra');
let lameJs = Editor.require('packages://' + packageName + '/node_modules/lamejs');
let co = Editor.require('packages://' + packageName + '/node_modules/... |
elusivecodes/FrostCore | src/Core/math.js | <reponame>elusivecodes/FrostCore
/**
* Math methods
*/
/**
* Clamp a value between a min and max.
* @param {number} value The value to clamp.
* @param {number} [min=0] The minimum value of the clamped range.
* @param {number} [max=1] The maximum value of the clamped range.
* @returns {number} The clamp... |
wizardassassin/Fun-Coding | Project Euler/solutions/problem047.js | /*
Distinct primes factors
The first two consecutive numbers to have two distinct prime factors are:
14 = 2 × 7
15 = 3 × 5
The first three consecutive numbers to have three distinct prime factors are:
644 = 2² × 7 × 23
645 = 3 × 5 × 43
646 = 2 × 17 × 19.
Find the first four consecutive integers to have four distin... |
diegopablomansilla/massoftware | src/main/java/com/massoftware/service/logistica/Transportes.java | <filename>src/main/java/com/massoftware/service/logistica/Transportes.java
package com.massoftware.service.logistica;
import com.massoftware.service.EntityId;
public class Transportes extends EntityId implements Cloneable {
// -----------------------------------------------------------------------------------------... |
jalenyang/Rougamo | mybatis/src/main/java/com.rougamo.mybatis/mapper/StudentMapper.java | package com.pork.mybatis.mapper;
import com.pork.mybatis.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interface StudentMapper {
@Select("select * from Student where teache... |
Mattlk13/chefspec | examples/bff_package/spec/remove_spec.rb | require 'chefspec'
describe 'bff_package::remove' do
platform 'aix'
describe 'removes a bff_package with an explicit action' do
it { is_expected.to remove_bff_package('explicit_action') }
it { is_expected.to_not remove_bff_package('not_explicit_action') }
end
describe 'removes a bff_package with attr... |
bis83/pomdog | experimental/Pomdog.Experimental/Rendering/Processors/ParticleBatchCommandProcessor.cpp | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#include "ParticleBatchCommandProcessor.hpp"
#include "Pomdog.Experimental/Rendering/Commands/ParticleBatchCommand.hpp"
namespace Pomdog {
namespace {
static Matrix3x2 CreateTransformMatrix(Particle const& par... |
UCD4IDS/sage | src/sage/schemes/elliptic_curves/ec_database.py | r"""
Tables of elliptic curves of given rank
The default database of curves contains the following data:
+------+------------------+--------------------+
| Rank | Number of curves | Maximal conductor |
+======+==================+====================+
| 0 | 30427 | 9999 |
+------+---------... |
EgorBolt/studying | netprog/lab6/src/chernovik.java | //import java.io.IOException;
//import java.net.InetAddress;
//import java.net.InetSocketAddress;
//import java.net.SocketAddress;
//import java.nio.ByteBuffer;
//import java.nio.channels.*;
//import java.util.Iterator;
//import java.nio.charset.Charset;
//
//public class Forwarder {
// private int lport;
// priv... |
obsidian-btc/raygun-client | materials/raygun_struct.rb | {
"occurredOn": string,
"details": {
"machineName": string,
"version": string,
"client": {
"name": string,
"version": string,
"clientUrl": string
},
"error": {
"innerError": string,
"data": object,
"className": string,
"message": string,
"stackTrac... |
jiripetrlik/kie-wb-common | kie-wb-common-forms/kie-wb-common-forms-integrations/kie-wb-common-forms-jbpm-integration/kie-wb-common-forms-jbpm-integration-backend/src/test/java/org/kie/workbench/common/forms/jbpm/server/service/impl/BPMFinderServiceImplTest.java | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
Ziang-Lu/Design-Patterns | 3-Structural Patterns/4-Composite Pattern/Topic-Lecture-Video Example/Python/composite_pattern_test.py | #!usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Application that actually uses Composite Pattern.
"""
__author__ = '<NAME>'
from model import Lecture, Topic, Video
def main():
design_patterns = Topic('Design Patterns')
patterns_intro = Lecture('Intro to Design Patterns')
design_patterns.add_module(p... |
BlazicIvan/Net-CQA | src/test/src/Metrics/Test/NumOfMethods/C0.java | <reponame>BlazicIvan/Net-CQA<gh_stars>0
package Metrics.Test.NumOfMethods;
public class C0 {
protected void m0() {}
protected void m5(){}
}
|
rtbtech/libsniper | sniper/strings/join.h | /*
* Copyright (c) 2019, MetaHash, <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
PaulElcampeon/War-Version-1.0-ReleasedOnHeroku | src/main/java/com/example/Services/BattleServices/BattleServiceImplementation.java | package com.example.Services.BattleServices;
import com.example.Models.BattleSection.Battle.Battle;
import com.example.Models.BattleSection.BattleReceipt.BattleReceipt;
import com.example.Models.Warrior.Warrior;
import java.util.ArrayList;
public class BattleServiceImplementation implements BattleService {
priv... |
oonsamyi/flow | src/parser/test/flow/types/annotations/migrated_0058.js | <filename>src/parser/test/flow/types/annotations/migrated_0058.js<gh_stars>1000+
var {x}: {x: string; } = { x: "hello" };
|
Banno/sbt-plantuml-plugin | src/main/java/net/sourceforge/plantuml/SkinParamBackcolored.java | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, <NAME>
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
*
* Li... |
gaoht/house | java/classes/com/alipay/android/a/a/a/v.java | <reponame>gaoht/house<filename>java/classes/com/alipay/android/a/a/a/v.java<gh_stars>1-10
package com.alipay.android.a.a.a;
import android.content.Context;
import android.webkit.CookieManager;
import android.webkit.CookieSyncManager;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Future;
i... |
jackh423/python | CIS41B/Threading/T0.py | # start threads by passing function to Thread constructor
import threading
import time
import random
def tfunc(*t):
time.sleep(random.randint(1,10))
print('Thread running: ',t)
return
t1 = ("Thread-",1)
t2 = ("Thread-",2)
t3 = ("Thread-",3)
thd1 = threading.Thread(target=tfunc,args=t1)
t... |
wuping5719/JustFun | 12-Sort/12-14-Test.java | <reponame>wuping5719/JustFun
package sort;
import java.util.Random;
/**
* @author WuPing
* @date 2016年4月2日 下午10:27:00
* @version 1.0
* @parameter
* @since
* @return
*/
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
int N = 100;
int[] arrayA = new int[N];... |
icebreakersentertainment/ice_engine | include/IMessageEventListener.hpp | <reponame>icebreakersentertainment/ice_engine
#ifndef IMESSAGEEVENTLISTENER_H_
#define IMESSAGEEVENTLISTENER_H_
#include "networking/Event.hpp"
namespace ice_engine
{
class IMessageEventListener
{
public:
virtual ~IMessageEventListener()
{
}
;
virtual bool processEvent(const networking::MessageEvent& event) =... |
yoyooli8/dubbo-plus | restful/src/main/java/net/dubboclub/restful/export/mapping/RequestEntity.java | <filename>restful/src/main/java/net/dubboclub/restful/export/mapping/RequestEntity.java<gh_stars>100-1000
package net.dubboclub.restful.export.mapping;
import com.alibaba.fastjson.JSONObject;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.r... |
cilium/kube-apate | api/k8s/v1/server/restapi/apps_v1/patch_apps_v1_namespaced_stateful_set_responses.go | // Code generated by go-swagger; DO NOT EDIT.
// Copyright 2017-2020 Authors of Cilium
// SPDX-License-Identifier: Apache-2.0
package apps_v1
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"net/http"
"github.com/go-ope... |
caidaoli/rrestjs | app/controller/message.js | <filename>app/controller/message.js
var home = {},
fs = require('fs'),
pagenum = 20,//首页发送20条数据
fdate = _rrest.mod.stools.fdate,//实用工具模块
htmltostring = _rrest.mod.stools.htmltostring,//字符串转html
check_all_param = _rrest.mod.stools.check_all_param,//检查所有参数是否存在
checkemail = _rrest.mod.stools.checkemail,
addstar = _... |
gzsll/X-APM | x-apm-app/src/main/java/github/tornaco/xposedmoduletest/ui/tiles/app/CrashDump.java | package github.tornaco.xposedmoduletest.ui.tiles.app;
import android.content.Context;
import android.widget.RelativeLayout;
import dev.nick.tiles.tile.QuickTile;
import dev.nick.tiles.tile.SwitchTileView;
import github.tornaco.xposedmoduletest.R;
import github.tornaco.xposedmoduletest.xposed.app.XAPMManager;
... |
ImageMarkup/isic | isic/ingest/migrations/0021_auto_20210310_2256.py | <filename>isic/ingest/migrations/0021_auto_20210310_2256.py<gh_stars>0
# Generated by Django 3.1.4 on 2021-03-10 22:56
# flake8: noqa
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ingest', '0020_auto_20210309_2108'),
]
operations = [
... |
ayuryev/java-client | src/test/java/io/appium/java_client/ios/AppIOSTest.java | package io.appium.java_client.ios;
import io.appium.java_client.ios.options.XCUITestOptions;
import io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException;
import org.junit.BeforeClass;
import org.openqa.selenium.SessionNotCreatedException;
import java.net.URL;
import java.time.Duration;
i... |
kamilagraf/react-swm-icon-pack | src/Icons/Basket.js | <reponame>kamilagraf/react-swm-icon-pack<gh_stars>10-100
import * as React from 'react';
import { iconType } from '../types';
import createIcon from '../helpers/createIcon';
const Basket = ({ color, strokeWidth, set }) => {
const Broken = () => (
<g>
<path d="M5 20H19L21 10H3L4 15" stroke={color} st... |
JerryFox/karel | scripts/prikazy-funkce-slovnik.js | /*
* [Česky]
* Projekt: Robot Karel
* Copyright: Viz KOPIROVANI v kořenovém adresáři projektu
*
* [English]
* Project: Karel, the Robot
* Copyright: See COPYING in the top level directory
*/
// JavaScript - příkazy a ovládání slovníku
// ========================================================================... |
esy-ocaml-old/esy-old | __tests__/util/misc.js | <reponame>esy-ocaml-old/esy-old
/* @flow */
import * as misc from '../../src/util/misc.js';
test('sortAlpha', () => {
expect([
'foo@6.x',
'foo@^6.5.0',
'foo@~6.8.x',
'foo@^6.7.0',
'foo@~6.8.0',
'foo@^6.8.0',
'foo@6.8.0',
].sort(misc.sortAlpha)).toEqual([
'foo@6.8.0',
'foo@6.x',... |
tarceri/VK-GL-CTS | external/vulkancts/modules/vulkan/sparse_resources/vktSparseResourcesImageSparseBinding.cpp | /*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... |
frunox/dynamic-portfolio | client/src/components/LogoutForm/LogoutModal.js | import React, { useState, useContext } from "react";
import Modal from 'react-modal';
import { Button } from 'semantic-ui-react'
import { Redirect, useHistory } from "react-router-dom";
import API from "../../utils/API";
import './styles.css'
import DevDataContext from '../../contexts/DevDataContext';
import SetupCont... |
tech-microworld/magic4j | magic4j-application/src/main/java/com/itgacl/magic4j/modules/sys/controller/SysTenantController.java | package com.itgacl.magic4j.modules.sys.controller;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
impor... |
sigurasg/ghidra | Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb2/pdbreader/symbol/ThreadStorageSymbolInternals.java | /* ###
* IP: GHIDRA
*
* 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 writin... |
EnjoyLifeFund/py36pkgs | astropy/io/ascii/ipac.py | <gh_stars>0
# Licensed under a 3-clause BSD style license - see LICENSE.rst
"""An extensible ASCII table reader and writer.
ipac.py:
Classes to read IPAC table format
:Copyright: Smithsonian Astrophysical Observatory (2011)
:Author: <NAME> (<EMAIL>)
"""
from __future__ import absolute_import, division, print_funct... |
MonitorOnlineTeam/PollutantSource | src/pages/EmergencyTodoList/index.js | // import React, { Component } from 'react';
// import PointList from '../../components/PointList/PointsList';
// import {Button, Table, Select, Card, Form, Row, Col, Icon, message} from 'antd';
// import EmergencyDataList from '../../mockdata/EmergencyTodoList/EmergencyDataList.json';
// import moment from 'moment';
/... |
Dr-Turtle/DRG_ModPresetManager | Source/FSD/Public/EItemNotificationType.h | #pragma once
#include "CoreMinimal.h"
#include "EItemNotificationType.generated.h"
UENUM()
enum class EItemNotificationType {
NewOverclock,
};
|
GameDevery/TweedeFrameworkRedux | Source/Framework/Core/Physics/TeBoxCollider.cpp | <gh_stars>10-100
#include "Physics/TeBoxCollider.h"
#include "Physics/TePhysics.h"
namespace te
{
BoxCollider::BoxCollider()
: Collider(TypeID_Core::TID_BoxCollider)
{ }
SPtr<BoxCollider> BoxCollider::Create(PhysicsScene& scene, const Vector3& extents,
const Vector3& position, const Quater... |
shiyuting79118/- | web/common/dojo-release-1.12.2/dojox/grid/nls/DataGrid_ca.js | <gh_stars>1-10
//>>built
define("dojox/grid/nls/DataGrid_ca",{"dijit/nls/loading":{loadingState:"S'est\u00e0 carregant...",errorState:"Ens sap greu. S'ha produ\u00eft un error.",_localized:{}}});
//# sourceMappingURL=DataGrid_ca.js.map |
remcohh/monaca-test | src/config/settings.js | export default require(`./settings.${process.env.NODE_ENV}.json`);
|
Dipalikambale/dipalikambale.github.io | app/workers/open_api_trace_calls_count_worker.rb | <gh_stars>0
class OpenAPITraceCallsCountWorker < ActiveJob::Base
include Sidekiq::Worker
sidekiq_options queue: 'default', retry: true
def perform
OpenAPI::Client.find_each do |client|
OpenAPI::CallsCountTracing.create!(client: client, calls_count: client.calls_count, at: DateTime.now)
end
end
en... |
zoffixznet/project-euler | project-euler/551/euler_551_v2.cpp | <filename>project-euler/551/euler_551_v2.cpp
// The Expat License
//
// Copyright (c) 2017, <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... |
tuhongwei/python-exercise | awesome-python3-webapp/www/test.py | <filename>awesome-python3-webapp/www/test.py
import orm,asyncio
from models import User,Blog,Comment
async def test(loop):
await orm.create_pool(loop,user='root',password='<PASSWORD>',db='awesome')
u1 = User(name='Test',email='<EMAIL>',passwd='<PASSWORD>',image='about:blank')
u2 = User(name='Administrator',email='<... |
acabra85/bec-techacademy | 007-learn-apache-kafka/producer/src/main/java/dk/bec/gradprogram/kafka/KafkaProducerHelloWorld.java | <gh_stars>1-10
package dk.bec.gradprogram.kafka;
import org.apache.kafka.clients.producer.Callback;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.ProducerRecord;
import java.time.LocalDateTime;
public class KafkaProducerHelloWorld {
public static final String HE... |
DrChainsaw/AmpControl | src/main/java/ampcontrol/model/training/model/vertex/ChannelMultVertex.java | package ampcontrol.model.training.model.vertex;
import org.deeplearning4j.nn.conf.graph.GraphVertex;
import org.deeplearning4j.nn.conf.inputs.InputType;
import org.deeplearning4j.nn.conf.inputs.InvalidInputTypeException;
import org.deeplearning4j.nn.conf.memory.LayerMemoryReport;
import org.deeplearning4j.nn.conf.memo... |
J-Sarkcess/vue-awesome | src/icons/heartbeat.js | <filename>src/icons/heartbeat.js
import Icon from '../components/Icon.vue'
Icon.register({
heartbeat: {
width: 512,
height: 512,
paths: [
{
d: 'M320.2 243.8L270.5 343.2C264.5 355.3 247.1 354.9 241.6 342.6L184.7 216.3 154.7 288H60.6L243.1 474.5C250.2 481.8 261.7 481.8 268.8 474.5L451.4 288H3... |
mdzyuba/popmov2 | app/src/main/java/com/mdzyuba/popularmovies/model/Video.java | package com.mdzyuba.popularmovies.model;
public class Video {
public final String id;
public final String iso_639_1;
public final String iso_3166_1;
public final String key;
public final String name;
public final String site;
public final int size;
public final String type;
public... |
mfkugergvh/domain-driven-tools | domain-driven-tools/src/main/java/io/ddd/core/event/invoke/annotation/OnInvoke.java | package io.ddd.core.event.invoke.annotation;
import java.lang.annotation.*;
/**
* {@link javax.annotation.concurrent.ThreadSafe} Annotated Method Must be Thread Safe
*/
@Inherited
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface OnInvoke {
int position() default 1;
Class<... |
hleuwer/cd | src/direct2d/cd_d2d_draw.c | #include <math.h>
#include "cd_d2d.h"
#include "cd.h"
#define checkSwapCoord(_c1, _c2) { if (_c1 > _c2) { float t = _c2; _c2 = _c1; _c1 = t; } } /* make sure _c1 is smaller than _c2 */
void d2dInitColor(dummy_D2D1_COLOR_F* c, long color)
{
unsigned char red, green, blue, alpha;
cdDecodeColorAlpha(color, &red, ... |
safaladhikari1/Binary-Tree-Data-Structure | Hashing/PriorityQueueAndHeap/HeapSortMain.java | <filename>Hashing/PriorityQueueAndHeap/HeapSortMain.java
// This client program uses a HeapPriority queue to perform
// a version of the "heap sort" sorting algorithm.
/*
HeapSort Algorithm:
If you add all elements of an array to a priority queue and them remove them,
they will come out in ascending (sorted) ... |
Fuge2008/HJ | app/src/main/java/com/haoji/haoji/util/MyComparator.java | <reponame>Fuge2008/HJ<filename>app/src/main/java/com/haoji/haoji/util/MyComparator.java
package com.haoji.haoji.util;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Comparator;
import java.util.Date;
import java.util.HashMap;
/**
* Created by Adminis... |
shaikatz/tweek | services/gateway/security/authorization_test.go | <gh_stars>100-1000
package security
import (
"context"
"io/ioutil"
"net/http"
"net/http/httptest"
"testing"
)
func noopHandler(rw http.ResponseWriter, r *http.Request) {}
type emptyAuditor struct{}
func (a *emptyAuditor) Allowed(subject, object, action string) {
}
func (a *emptyAuditor) Denied(subject, object,... |
shuigedeng/taotao-cloud-paren | taotao-cloud-java/taotao-cloud-javase/src/main/java/com/taotao/cloud/java/javase/day14/chatper14_4/BankCard.java | package com.taotao.cloud.java.javase.day14.chatper14_4;
public class BankCard {
private double money;
public double getMoney() {
return money;
}
public void setMoney(double money) {
this.money = money;
}
}
|
Robert-Ciborowski/Iron-Bears-2018 | src/org/usfirst/frc/team854/robot/command/LinearTimedMotionCommand.java | /*
* Name: AngularMotion
* Author: <NAME>, <NAME>, <NAME>
* Date: 08/02/2018
* Description: A command for moving along a line.
*/
package org.usfirst.frc.team854.robot.command;
import org.usfirst.frc.team854.robot.Robot;
import edu.wpi.first.wpilibj.command.Command;
public class LinearTimedMotionCommand extend... |
marcocarvalho/technical_analysis | lib/technical_analysis/data/helpers/price_randomizer.rb | module TechnicalAnalysis::Data
module Helpers
def price_between(v1, v2)
seed = SecureRandom.random_number
((v2 - v1) * seed) + v1
end
def price_near(candle, candle_notation_price, opts = { })
opts = { price_tolerance: 0.1 }.merge opts
price = candle.send(candle_notation_price)
... |
vernonet/stm32F4_prj | STM32F4_USB_MP3_armcc_V12/inc/stm32f4xx_it.h | /**
******************************************************************************
* @file Audio_playback_and_record/inc/stm32f4xx_it.h
* @author MCD Application Team
* @version V1.1.0
* @date 26-June-2014
* @brief This file contains the headers of the interrupt handlers.
*****************... |
googleinterns/step132-2020 | src/test/java/com/google/sps/ProfileTest.java | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
VHAINNOVATIONS/InfoButtons | oib-request/oib-request-service/src/main/java/org/openinfobutton/service/matching/PerformerMatcher.java | <gh_stars>10-100
/**
* -----------------------------------------------------------------------------------
* (c) 2010-2014 OpenInfobutton Project, Biomedical Informatics, University of Utah
* Contact: {@code <<EMAIL>>}
* Biomedical Informatics
* 421 Wakara Way, Ste 140
* Salt Lake City, UT 84108-3514
* Day Phone... |
Acidburn0zzz/cds | cli/cds/environment/update.go | package environment
import (
"fmt"
"github.com/spf13/cobra"
"github.com/ovh/cds/sdk"
)
func environmentUpdateCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "update",
Short: "cds environment update <projectKey> <oldEnvironmentName> <newEnvironmentName>",
Long: ``,
Run: updateEnvironment,
}
re... |
PolyphasicDevTeam/NMO | src/nmo/integration/discord/IntegrationDiscord.java | package nmo.integration.discord;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import net.dv8tion.jda.client.entities.Group;
import net.dv8tion.jda.core.AccountType;
import net.dv8tion.jda.core.JDA;
import net.dv8tion.jda.core.JDABuilder;
import net.dv8tion.jda.core.entities.Game;
import ... |
manos-mark/restful-prototype-asset-management | backend/src/main/java/com/manos/prototype/entity/Project.java | package com.manos.prototype.entity;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.pe... |
rueyaa332266/testcafe | test/functional/fixtures/regression/gh-1140/testcafe-fixtures/index.test.js | fixture `gh-1140`
.page('http://localhost:3000/fixtures/regression/gh-1140/pages/index.html');
test('Perform an action after iframe reloaded', async t => {
await t
.switchToIframe('#iframe')
.click('#target')
.switchToMainWindow()
.click('#target');
});
|
c4dt/stainless | frontends/benchmarks/extraction/invalid/TraitVar1.scala | <gh_stars>100-1000
import stainless.lang._
object TraitVar1 {
sealed trait Foo {
var prop: BigInt
def doStuff(x: BigInt) = {
prop = x
}
}
case class Bar(var stuff: BigInt) extends Foo {
def prop: BigInt = stuff + 1
def prop_=(y: BigInt): Unit = {
stuff = y * 2
}
}
def ... |
qinFamily/freeVM | enhanced/buildtest/tests/stress/qa/src/test/stress/org/apache/harmony/test/stress/jpda/jdwp/scenario/EVENT007/EventTest007.java | <reponame>qinFamily/freeVM
/*
* 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... |
cicsdev/cics-java-jcics-samples | projects/com.ibm.cicsdev.vsam/src/com/ibm/cicsdev/vsam/esds/EsdsExample3.java | <reponame>cicsdev/cics-java-jcics-samples<filename>projects/com.ibm.cicsdev.vsam/src/com/ibm/cicsdev/vsam/esds/EsdsExample3.java
/* Licensed Materials - Property of IBM */
/* */
/* SAMPLE ... |
QizaiMing/ergo-project-manager | issues/admin.py | from django.contrib import admin
from .models import Issue, Comment, Attachment, Link
# Register your models here.
admin.site.register(Issue)
admin.site.register(Comment)
admin.site.register(Attachment)
admin.site.register(Link) |
hdbeukel/genestacker | Genestacker/Genestacker-lib/src/main/java/org/ugent/caagt/genestacker/search/SelfingNode.java | // Copyright 2012 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
jurisz/adm-seed | core/api/src/main/java/org/juz/seed/api/security/RoleBean.java | <reponame>jurisz/adm-seed<filename>core/api/src/main/java/org/juz/seed/api/security/RoleBean.java<gh_stars>0
package org.juz.seed.api.security;
import java.util.Set;
public class RoleBean {
private Long id;
private String name;
private Set<String> permissions;
public Long getId() {
return id;
}
public vo... |
EmirWeb/liaison-loaders | loaders/src/main/java/mobi/liaison/loaders/Path.java | package mobi.liaison.loaders;
import android.net.Uri;
import android.text.TextUtils;
import com.google.common.collect.Lists;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
/**
* Created by <NAME> on 17/05/14.
*/
public class Path {
private static final String NUMERIC_EXC... |
tanyutao544/digitalace-backend | core/tests/test_products_api.py | from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APIClient
# from company.serializers import ProductSerializer
from core.models import Company
PRODUCT_URL = reverse("company:product-list")... |
rajesh1702/gulliver | frontend/mobile/android/src/com/lonelyplanet/trippy/android/AndroidProxy.java | <reponame>rajesh1702/gulliver
/*
* Copyright 2010 Google 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 ... |
rswalia/open-source-contribution-for-beginners | MLSA Event-101/Data structure/Python/queue.py | <reponame>rswalia/open-source-contribution-for-beginners
from typing import Any
class Queue:
def __init__(self) -> None:
"""creates a queue data structure using linear array
Methods: enqueue, dequeue, isEmpty
"""
self.q = []
def __str__(self) -> str:
"""Used for p... |
jnthn/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/notAKeywords/Test.java | <filename>java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting/notAKeywords/Test.java<gh_stars>1-10
import pkg.Bar;
import pkg.enum.Foo;
class Test {
void m() {
Bar b = new Bar();
b.doSomething(Foo.FOO); // with language level JDK 1.4 'enum' shouldn't be a keyword (see IDEA-67556)
}
} |
reels-research/iOS-Private-Frameworks | NanoTimeKitCompanion.framework/NTKWhistlerDigitalFaceView.h | <gh_stars>1-10
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion
*/
@interface NTKWhistlerDigitalFaceView : NTKFaceView {
bool _is24HourMode;
NTKLayoutRule * _timeLayoutRuleEditing;
NTKLayoutRule * _timeLayoutRuleNormal;
NTK... |
3dhater/Racer | src/libs/qlib/qblitq.cpp | <gh_stars>0
/*
* QBlitQ - a queue for multiple blits; optimizing blits
* 19-04-97: Created!
* (C) MarketGraph/RVG
*/
#include <qlib/canvas.h>
#include <qlib/blitq.h>
#include <stdio.h>
#include <stdlib.h>
#include <qlib/debug.h>
DEBUG_ENABLE
#define QUEUESIZE 500
QBlitQueue::QBlitQueue(QCanvas *icv)
{ cv=icv;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.