repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
hackarada/youtube-dl | youtube_dl/extractor/apa.py | <reponame>hackarada/youtube-dl
# coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
determine_ext,
js_to_json,
url_or_none,
)
class APAIE(InfoExtractor):
_VALID_URL = r'https?://[^/]+\.apa\.at/embed/(?P<id>[\da-f]{8}-[\da-f]{4}-[\d... |
tilnewman/heroespath-src | src/combat/encounter.hpp | // ----------------------------------------------------------------------------
// "THE BEER-WARE LICENSE" (Revision 42):
// <<EMAIL>> wrote this file. As long as you retain this notice you
// can do whatever you want with this stuff. If we meet some day, and you think
// this stuff is worth it, you can buy me a beer ... |
fanzehua498/2018ForYou | BlueToothAbout/BlueToothAbout/Runtime/Protocol/RunProtocol.h | //
// RunProtocol.h
// BlueToothAbout
//
// Created by 知合金服-Mini on 2018/7/19.
// Copyright © 2018年 fanzehua. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol RunProtocol <NSObject>
- (void)buy:(NSString *)str;
- (void)sel:(NSString *)str;
- (void)eat:(NSString *)str;
- (void)push:(NSString... |
remz1337/ecj | contrib/xholon/org/primordion/ealontro/gp/XhKozaStatistics.java | <reponame>remz1337/ecj
/* Ealontro - systems that evolve and adapt to their environment
* Copyright (C) 2006, 2007 <NAME>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either ver... |
naterenegar/ormar | tests/test_queries/test_reserved_sql_keywords_escaped.py | import databases
import pytest
import sqlalchemy
import ormar
from tests.settings import DATABASE_URL
database = databases.Database(DATABASE_URL, force_rollback=True)
metadata = sqlalchemy.MetaData()
class BaseMeta(ormar.ModelMeta):
metadata = metadata
database = database
class User(ormar.Model):
cla... |
kostyrko/small_eod | backend-project/small_eod/collections/tests/test_factories.py | from django.test import TestCase
from ..factories import CollectionFactory
from ..models import Collection
from ...generic.tests.mixins import FactoryTestCaseMixin
class CollectionFactoryTestCase(FactoryTestCaseMixin, TestCase):
FACTORY = CollectionFactory
MODEL = Collection
|
helloMrZhan/main-framework | mybatis/mybatis-anno-multi/mybatis_anno/src/main/java/com/zjq/domain/User.java | <reponame>helloMrZhan/main-framework
package com.zjq.domain;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* <p>用户</p>
*
* @Author zjq
* @Date 2021/8/3
*/
@Data
public class User {
private int id;
private String username;
private String password;
private Date birthday;
... |
colorofchange/Champaign | db/migrate/20170406200345_add_restricted_country_code_to_plugins_call_tools.rb | class AddRestrictedCountryCodeToPluginsCallTools < ActiveRecord::Migration[4.2]
def change
add_column :plugins_call_tools, :restricted_country_code, :string
end
end
|
osgvsun/lubanlou | lubanlou-master/lubanlou-common/src/main/java/net/gvsun/datashare/external/reportdata/VirtualExperimentDTO.java | <gh_stars>1-10
package net.gvsun.datashare.external.reportdata;
/**
* Created by Administrator on 2021/7/8.
*/
public class VirtualExperimentDTO {
//表2-8-2虚拟仿真实验教学项目
private String experimentalNumber;
private String experimentalName;
private String level;
private String createdDate;
private I... |
LibraryOfCongress/embARC | src/main/com/portalmedia/embarc/parser/mxf/MXFMetadata.java | package com.portalmedia.embarc.parser.mxf;
import java.util.HashMap;
import java.util.LinkedHashMap;
import com.portalmedia.embarc.parser.MetadataColumnDef;
public class MXFMetadata {
int videoTrackCount;
int audioTrackCount;
int captionTrackCount;
int timecodeTrackCount;
String format;
String version;
String... |
MahmoudFawzy01/C-Projects | 01-Compiler Project/Brac_Checking.h | <reponame>MahmoudFawzy01/C-Projects
#ifndef _BRACT_CHECKING_
#define _BRACT_CHECKING_
#include "file_manger.h"
void Compiler_CheckBract(char * p_firstLine);
#endif // _BRACT_CHECKING_
|
banuelosj/jsapi-samples | typescript-samples/sketch-text-symbol-picker/node_modules/@esri/calcite-components/dist/collection/components/calcite-slider/calcite-slider.js | import { Component, Element, Prop, Host, Event, Listen, Method, h, State, Watch } from "@stencil/core";
import { guid } from "../../utils/guid";
import { getKey } from "../../utils/key";
import { hasLabel } from "../../utils/dom";
export class CalciteSlider {
constructor() {
/** Disable and gray out the slider */... |
jurgendl/jhaws | jhaws/swing/src/main/java/org/swingeasy/RowNumberList.java | package org.swingeasy;
import java.awt.Component;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JViewport;
import javax.swing.ListCellRenderer;
impo... |
ryokbys/nap | nappy/fitpot/cs.py | <reponame>ryokbys/nap
#!/usr/bin/env python
"""
Cuckoo search.
Usage:
cs.py [options]
Options:
-h, --help Show this message and exit.
-n N Number of generations in CS. [default: 20]
--print-level LEVEL
Print verbose level. [default: 1]
"""
from __future__ import print_function
import os... |
hpi-swt2/contacts-portal | db/migrate/20210122155255_add_jitsi_calls.rb | <reponame>hpi-swt2/contacts-portal
class AddJitsiCalls < ActiveRecord::Migration[6.0]
def change
create_table :jitsi_calls do |t|
t.string :room_name
t.timestamps
end
create_join_table :users, :jitsi_calls, table_name: :call_participants do |t|
t.string :role
t.string :state
... |
HubSpot/Baragon | BaragonCore/src/main/java/com/hubspot/baragon/models/BaragonGroup.java | package com.hubspot.baragon.models;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.MoreObjects;
import com.google.common.base.Optional;
import java.util.Collections;
i... |
embeddedlabsiu/snn_exploration_spinnaker | scripts/ann_architectures/BinaryConnect/binarynet_noBN.py | # coding=utf-8
"""
This python script trains a ConvNet on CIFAR-10 with BinaryNet.
It should run for about 15 hours on a GeForce GTX 980 Ti GPU.
The final test error should be around 11.40%.
Source:
https://github.com/MatthieuCourbariaux/BinaryNet
"""
from __future__ import print_function
import lasagne
# spec... |
XboxBedrock/terraplusplus | src/main/java/io/github/terra121/control/fragments/terra/TerraInvertWaterFragment.java | package io.github.terra121.control.fragments.terra;
import io.github.opencubicchunks.cubicchunks.api.worldgen.ICubeGenerator;
import io.github.opencubicchunks.cubicchunks.core.server.CubeProviderServer;
import io.github.terra121.control.fragments.CommandFragment;
import io.github.terra121.dataset.impl.Water;
import io... |
hw233/home3 | core/server/toolProject/shineTool/src/main/java/com/home/shineTool/tool/export/DataDataExportTool.java | package com.home.shineTool.tool.export;
import com.home.shine.ctrl.Ctrl;
import com.home.shine.support.collection.SList;
import com.home.shine.support.func.ObjectFunc2;
import com.home.shine.utils.StringUtils;
import com.home.shineTool.constlist.CodeType;
import com.home.shineTool.constlist.DataGroupType;
import com.h... |
wangyan-1993/FollowMe | FollowMe/FollowMe/Mine/Controllers/InformationViewController.h | //
// InformationViewController.h
// FollowMe
//
// Created by SCJY on 16/3/21.
// Copyright © 2016年 SCJY. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InformationViewController : UIViewController
@property(nonatomic, copy) NSString *username;
@property(nonatomic, copy) NSString *headerImage;
@end
|
jhedden/jackhammer | web/app/lib/common/collections/wp_themes.rb | <gh_stars>1-10
# encoding: UTF-8
require 'common/collections/wp_themes/detectable'
class WpThemes < WpItems
extend WpThemes::Detectable
end
|
shopg8felix/pwa | libraries/tracking/selectors/cart.js | <reponame>shopg8felix/pwa<gh_stars>10-100
import { createSelector } from 'reselect';
import { getProduct } from '@shopgate/pwa-common-commerce/product/selectors/product';
import {
getSubTotal,
getCurrency,
getCartProducts,
getDiscountsAmount,
} from '@shopgate/pwa-common-commerce/cart/selectors/index';
import {... |
SUNET/eduid-front | src/login/components/DataTable/DataTable.js | import React, { Component } from "react";
import PropTypes from "prop-types";
import i18n from "../../translation/InjectIntl_HOC_factory";
import DataTableRow from "./DataTableRow/DataTableRow";
class DataTable extends Component {
render() {
let data = this.props.data;
// console.log("this is data in Table"... |
peter-leonov/babel-plugin-intoscope | logger/proxySpy.js | <reponame>peter-leonov/babel-plugin-intoscope
const { cloneDeepWith } = require('lodash');
const spiesCache = new WeakMap();
const addToCache = (v, id, spy) => {
const spiesById = spiesCache.get(v);
if (spiesById) {
spiesById.set(id, spy);
} else {
const spiesById = new Map();
spies... |
alxalx14/Sea-Of-Thieves-SDK | SDK/ContestMatchmaking_structs.h | #pragma once
// Name: SeaOfThieves, Version: 2.0.23
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Script Structs
//---------------------------------------------... |
chengzongxin/Demo | Demo/HomeSection/NewcomerProcess/THKNewcomerHomeSelectStageView.h | <filename>Demo/HomeSection/NewcomerProcess/THKNewcomerHomeSelectStageView.h
//
// THKNewcomerHomeSelectStageView.h
// Demo
//
// Created by Joe.cheng on 2021/12/6.
//
#import "THKView.h"
#import "THKNewcomerHomeSelectStageViewModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface THKNewcomerHomeSelectStageView : THKView
@pr... |
starsep/NewsBlur | apps/reader/admin.py | <reponame>starsep/NewsBlur<gh_stars>1000+
from apps.reader.models import UserSubscription, UserSubscriptionFolders, Feature
from django.contrib import admin
admin.site.register(UserSubscription)
admin.site.register(UserSubscriptionFolders)
admin.site.register(Feature) |
joshgav/v8docs | private/structv8_1_1base_1_1_default_create_trait.js | var structv8_1_1base_1_1_default_create_trait =
[
[ "Create", "structv8_1_1base_1_1_default_create_trait.html#a7129781d18e9d3d897de61a95b219ade", null ]
]; |
y2ghost/study | java/mybatis/oneToMany/src/test/java/study/ywork/mybatis/dao/AccountTest.java | <filename>java/mybatis/oneToMany/src/test/java/study/ywork/mybatis/dao/AccountTest.java<gh_stars>0
package study.ywork.mybatis.dao;
import study.ywork.mybatis.domain.Account;
import study.ywork.mybatis.domain.AccountUser;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.ap... |
stoyannk/dx11-framework | Dx11/Rendering/MeshLoader.cpp | <filename>Dx11/Rendering/MeshLoader.cpp
// Copyright (c) 2011-2014, <NAME>
// All rights reserved.
// This software is governed by a permissive BSD-style license. See LICENSE.
#include "stdafx.h"
#ifndef MINIMAL_SIZE
#include "MeshLoader.h"
#include "Mesh.h"
#include "ObjLoader.h"
#include "RawLoader.h"
... |
Rerito/suffix-tree-v2 | suffixtree/include/Penjing/SuffixTree/Builders/Ukkonen/Canonize.hpp | // Copyright (c) 2021, Rerito
// SPDX-License-Identifier: MIT
#pragma once
#include <cassert>
#include <functional>
#include <ranges>
#include <tuple>
#include "../../Concepts/Node.hpp"
#include "../../Concepts/StringView.hpp"
namespace Penjing {
namespace SuffixTree {
namespace Builders {
namespace Ukkonen {
name... |
ezefranca/LogiKiD-Allegro5-Game | doc/Doxygen/html/search/defines_6c.js | <filename>doc/Doxygen/html/search/defines_6c.js
var searchData=
[
['largura',['LARGURA',['../comum_8h.html#a39993a19ea179e022fb3346fdc794808',1,'comum.h']]]
];
|
GaloisInc/hacrypto | src/C/Security-57031.40.6/SecurityTests/regressions/test/testenv.c | /*
* Copyright (c) 2005-2006 Apple Computer, Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file exce... |
thilinah/icehrm-api | models/EmployeeCertifications.js | /* jshint indent: 2 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('EmployeeCertifications', {
id: {
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
certification_id: {
type: DataTypes.BIGINT,
allowNull: ... |
mfkiwl/fletcher-accelerator-FPGA | integrations/vivado_hls/src/fletcher/components/operators.h | <gh_stars>100-1000
#pragma once
#include "fletcher/components/operators/arith.h"
#include "fletcher/components/operators/indecrement.h"
#include "fletcher/components/operators/logical.h"
//template <typename T>
//f_packet<T> operator+(f_packet<T> &rhs) {
// return f_packet<T>(+rhs.data, rhs.dvalid, rhs.last);
//}
... |
LuisaRoa/React-proyectoDocente | src/views/actividadDocente/Docentes.js | import React from 'react'
import 'bootstrap/dist/css/bootstrap.min.css';
import { BsFillPeopleFill, BsSearch } from 'react-icons/bs';
import {
CButton,
CCard,
CCardBody,
CCardHeader,
CCol,
CDataTable,
CRow,
CNav,
CForm,
CInput,
} from '@coreui/react'
import { Component } from 'react';
import axios f... |
tomaszkowalczyk94/warhammer-rpg-helper | src/main/java/warhammerrpg/database/entity/PersonMethod.java | package warhammerrpg.database.entity;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface PersonMethod{
public enum Type {GETTER, SETTER};
Person.Field forField();
Type type();
} |
jainsakshi2395/linux | arch/csky/abiv1/inc/abi/switch_context.h | /* SPDX-License-Identifier: GPL-2.0 */
#ifndef __ABI_CSKY_PTRACE_H
#define __ABI_CSKY_PTRACE_H
struct switch_stack {
unsigned long r8;
unsigned long r9;
unsigned long r10;
unsigned long r11;
unsigned long r12;
unsigned long r13;
unsigned long r14;
unsigned long r15;
};
#endif /* __ABI_CSKY_PTRACE_H */
|
ville-k/vinn | benchmarks/matrix_benchmarks.cpp | #include "benchmarks.h"
#include "vi/la.h"
static void BM_matrix_scalar_multiply(benchmark::State& state) {
size_t context_index = state.range_x();
size_t size = state.range_y();
vi::la::context& context = *benchmarks::all_contexts()[context_index];
vi::la::matrix m(context, size, size, 2.0);
while (state.K... |
emlowry/AIEFramework | PhysX-3.2.4_PC_SDK_Core/Source/PhysXCharacterKinematic/src/CctCharacterController.cpp | <reponame>emlowry/AIEFramework
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this sof... |
bio-org-au/nsl-editor | test/models/instance_note/validations/one_apc_dist_note_only_test.rb | # frozen_string_literal: true
# Copyright 2015 Australian National Botanic Gardens
#
# This file is part of the NSL Editor.
#
# 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
#
# ht... |
josehu07/SplitFS | kernel/linux-5.4/drivers/extcon/extcon-intel-mrfld.c | // SPDX-License-Identifier: GPL-2.0
/*
* extcon driver for Basin Cove PMIC
*
* Copyright (c) 2019, Intel Corporation.
* Author: <NAME> <<EMAIL>>
*/
#include <linux/extcon-provider.h>
#include <linux/interrupt.h>
#include <linux/mfd/intel_soc_pmic.h>
#include <linux/mfd/intel_soc_pmic_mrfld.h>
#include <linux/mod_... |
yuri0x7c1/uxerp | uxcrm-ofbiz/generated-entity-service/src/main/java/org/apache/ofbiz/accounting/tax/service/base/TaxAuthorityRateProductBaseService.java | <reponame>yuri0x7c1/uxerp<gh_stars>0
package org.apache.ofbiz.accounting.tax.service.base;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.apache.ofbiz.common.ExecuteFindService.In;
import org.apache.ofbiz.common.ExecuteFindService.Out;
import org.apache.ofbiz.common.Execu... |
reels-research/iOS-Private-Frameworks | CoreDuet.framework/_DKPRValueType.h | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/CoreDuet.framework/CoreDuet
*/
@interface _DKPRValueType : PBCodable <NSCopying> {
int _type;
long long _typeCode;
}
@property (nonatomic) int type;
@property (nonatomic) long long typeCode;
- (int)StringAsType:(id)arg1;
- (void)co... |
atlasapi/atlas | src/main/java/org/atlasapi/remotesite/barb/channels/BarbChannelsModule.java | package org.atlasapi.remotesite.barb.channels;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.metabroadcast.common.ids.SubstitutionTableNumberCodec;
import com.metabroadcast.common.scheduling.RepetitionRule;
import com.metabroadcast.common.schedul... |
roderickmackenzie/gpvdm | gpvdm_gui/gui/lasers.py | <filename>gpvdm_gui/gui/lasers.py
#
# General-purpose Photovoltaic Device Model - a drift diffusion base/Shockley-Read-Hall
# model for 1st, 2nd and 3rd generation solar cells.
# Copyright (C) 2008-2022 <NAME> r.<EMAIL>.<EMAIL> at googlemail.com
#
# https://www.gpvdm.com
#
# This program is free softwar... |
j75689/Tmaster | pkg/utils/launcher/launcher.go | <filename>pkg/utils/launcher/launcher.go
package launcher
import (
"errors"
"fmt"
"os"
"os/signal"
"syscall"
"time"
)
// Launch service gracefully, or force exit after two consecutive signals
func Launch(start func() error, shutdown func() error, timeout time.Duration) {
done := make(chan int)
go func() {
i... |
damp-store/damp-store.github.io | theme/manual_install/theme1362/themes/theme1362/js/tools/vatManagement.js | <gh_stars>0
$(document).ready(function() {
vat_number();
vat_number_ajax();
$(document).on('input', '#company, #company_invoice', function() {
vat_number();
});
});
function vat_number() {
if ($('#company').length && ($('#company').val() != '')) {
$('#vat_number, #vat_number_block').show();
} else... |
Neusoft-Technology-Solutions/aws-sdk-cpp | aws-cpp-sdk-cognito-idp/source/model/DeviceRememberedStatusType.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cognito-idp/model/DeviceRememberedStatusType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using names... |
Kumulos/KumulosSdkObjectiveC | Sources/Shared/Http/KSUrlEncoding.h | //
// KSUrlEncoding.h
// KumulosSDK
//
#import <Foundation/Foundation.h>
NSString* _Nonnull KSUrlEncodedStringFromDictionary(NSDictionary* _Nonnull obj);
|
ElSaico/vgmtrans | src/ui/windows/RawFileListView.h | <reponame>ElSaico/vgmtrans
/**
* VGMTrans (c) - 2002-2021
* Licensed under the zlib license
* See the included LICENSE for more information
*/
#pragma once
#include "VGMTransWindow.h"
class RawFile;
class CBmpBtn;
#define VIEW_STYLES ... |
ayjazz/OESS | nox/src/nox/netapps/lavi/lavi_flows.hh | <gh_stars>10-100
/* Copyright 2010 (C) Stanford University.
*
* This file is part of NOX.
*
* NOX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) a... |
stackoverflow/novah-go | test/testutil.go | package test
import "testing"
func Equals[T comparable](t *testing.T, got, exp T) {
if exp != got {
t.Errorf("Result was incorrect: expected %v, got %v", exp, got)
}
}
|
Antholoj/netbeans | enterprise/j2ee.sun.ddui/src/org/netbeans/modules/j2ee/sun/ddloaders/multiview/web/SunWebJspConfigPropertyNode.java | <filename>enterprise/j2ee.sun.ddui/src/org/netbeans/modules/j2ee/sun/ddloaders/multiview/web/SunWebJspConfigPropertyNode.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
* regar... |
transitlinks/web-app | src/components/EmailInput/messages.js | <reponame>transitlinks/web-app<filename>src/components/EmailInput/messages.js
import React from 'react';
import { defineMessages } from 'react-intl';
export default defineMessages({
'email': {
id: 'email.emailLabel',
defaultMessage: 'E-mail',
description: 'E-mail'
},
'missing-at': {
id: 'email.mi... |
JumHorn/leetcode | Cplus/DeepestLeavesSum.cpp | #include <algorithm>
using namespace std;
// Definition for a binary tree node.
struct TreeNode
{
int val;
TreeNode *left;
TreeNode *right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... |
maartenbreddels/mab | gdfast/src/hyperquadtree.cpp | <filename>gdfast/src/hyperquadtree.cpp
#include "hyperquadtree.hpp"
//#include <boost/python.hpp>
#include <algorithm>
#include <iterator>
namespace gd {
//using namespace boost::python;
void py_export_schw_hyperquadtree() {
//NTree<2, double> quadtree(1.,2.,4.,6.);
/*class_<DFGrid, boost::noncopyable >("DFGrid", in... |
eaxdev/JsonSQL4J | src/main/java/io/github/eaxdev/jsonsql4j/model/criteria/Gt.java | package io.github.eaxdev.jsonsql4j.model.criteria;
import com.fasterxml.jackson.annotation.JsonTypeName;
import lombok.Getter;
import lombok.NoArgsConstructor;
/**
* @author eaxdev
*/
@Getter
@JsonTypeName("gt")
@NoArgsConstructor
public class Gt extends SimpleCriteria {
public Gt(String fieldNam... |
lechuckroh/code-assessment | app/exam/exam.js | <gh_stars>0
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const schemaHelper = require('../schema_helper');
const TestRun = require('./test_run');
/**
* 인터뷰 대상자가 풀어야 할 문제들
*/
const ExamSchema = new Schema({
interviewee: String,
owner: String,
archived: Boolean,
... |
Mu-L/iSulad | src/daemon/executor/container_cb/execution.c | <reponame>Mu-L/iSulad<filename>src/daemon/executor/container_cb/execution.c
/******************************************************************************
* Copyright (c) Huawei Technologies Co., Ltd. 2017-2019. All rights reserved.
* iSulad licensed under the Mulan PSL v2.
* You can use this software according to ... |
jarekankowski/pegasus_spyware | sample4/recompiled_java/sources/com/lenovo/safecenter/mmsutils/PushReceiver.java | <filename>sample4/recompiled_java/sources/com/lenovo/safecenter/mmsutils/PushReceiver.java
package com.lenovo.safecenter.mmsutils;
import android.content.BroadcastReceiver;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import androi... |
tusharchoudhary0003/Custom-Football-Game | sources/com/google/android/gms/internal/ads/C9819xm.java | <reponame>tusharchoudhary0003/Custom-Football-Game
package com.google.android.gms.internal.ads;
/* renamed from: com.google.android.gms.internal.ads.xm */
final /* synthetic */ class C9819xm implements zzbal {
/* renamed from: a */
private final zzczc f23475a;
C9819xm(zzczc zzczc) {
this.f23475a ... |
st-a-novoseltcev/miet-patterns | interpreter/src/Corrector.java | import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
public class Corrector implements ICorrector {
List<ICorrector> correctors;
Corrector() {
correctors = new LinkedList<>() {{
add(new DashCorrector());
add(new TabCorrector());
add(new Qu... |
georgiannechifor/food-library | src/store/reducer/auth.js | import {handleActions} from 'redux-actions';
import {ActionTypes} from '../action/auth';
import {ActionTypes as AppActionTypes} from '../action/app';
const initialState = {
isAuthenticated : false
};
const setTokenReducer = (state, {payload : accessToken}) => ({
...state,
accessToken,
isAuthenticat... |
tomzhang/blackhole | src/tests/test_Attribute.cpp | <reponame>tomzhang/blackhole
#include <blackhole/attribute.hpp>
#include <blackhole/keyword/message.hpp>
#include <blackhole/keyword/severity.hpp>
#include <blackhole/keyword/timestamp.hpp>
#include "global.hpp"
using namespace blackhole;
TEST(Attribute, CanMakeCustomAttribute) {
auto attr = attribute::make<std:... |
natebeaty/onix | lib/onix/codelists/087.rb | # coding: utf-8
module ONIX; module CodeLists
LIST_87 = {
"CCL" => "Center column",
"PGE" => "Page end",
"SID" => "Side column",
"VER" => "Verse end",
"UNK" => "Unknown",
"ZZZ" => "Other"
}
end; end |
rcelebi/android-elfali | jni-build/jni/include/tensorflow/contrib/tensor_forest/core/ops/finished_nodes_op.cc | // Copyright 2016 The TensorFlow Authors. 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
//
// Unless required b... |
shmoop207/rocket-engine | lib/loader/filesLoader.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FilesLoader = void 0;
const tslib_1 = require("tslib");
const fs = require("fs");
const path = require("path");
const utils_1 = require("@appolo/utils");
class FilesLoader {
static load(root, filesPath) {
return tslib_1.__a... |
worrel/hydra | hydra-task/src/main/java/com/addthis/hydra/task/source/AggregateTaskDataSource.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
gwilymhumphreys/botbuilder-js | samples/echobot-es6/echoBot.js | function createEchoBot(conversationState) {
return async (context) => {
if (context.activity.type === 'message') {
const state = conversationState.get(context);
const count = state.count === undefined ? state.count = 0 : ++state.count;
await context.sendActivity(`${count}... |
djeada/Nauka-programowania | src/Cpp/05_Petla_wyznaczanie_cyfr_liczby/Zad5.cpp | #include <iostream>
int main() {
// Dla pobranej liczby, sprawdz czy jest palindromem.
std::cout << "Podaj liczbe" << std::endl;
int a;
std::cin >> a;
int odwrocona = 0;
int pom = a;
while (pom > 0) {
int cyfra = pom % 10;
odwrocona = (odwrocona * 10 + cyfra);
pom /= 10;
... |
nixcvf18/WorkTime | app/src/main/java/com/example/worktime/receiver/BootCompletedReceiver.java | package com.example.worktime.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.example.worktime.LoginActivity;
public class BootCompletedReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent in... |
neontapir/managertools-logging | lib/path_string_extensions.rb | <filename>lib/path_string_extensions.rb
# frozen_string_literal: true
require 'namecase'
# Splits path into team and member name components
module PathStringExtensions
refine Dir do
# split_path()
# Turn a relative path into an array of folders and the filename
#
# @example Parsing a path
# Dir... |
TimJSwan89/Java-Programs | ChessMaster/Bishop.java | import java.util.ArrayList;
public class Bishop extends Piece {
public Bishop(ChessBoard board, boolean white, Location location) {
this.board = board;
this.white = white;
this.location = location;
}
public ArrayList<Location> getPossibleAttack() {
ArrayList<Location>... |
czurnieden/libczcomplex | mpc_pow.c | <gh_stars>0
#include <czcomplex.h>
int mpc_pow(mp_complex * a, mp_complex * b, mp_complex * c)
{
int err;
mp_complex t1;
err = MP_OKAY;
mpc_init(MPC_REAL(a).radix,&t1);
mpc_log(a,&t1);
mpc_mul(&t1,b,&t1);
mpc_exp(&t1,c);
_ERR:
mpc_clear(&t1);
return err;
}
|
ganeshkamath89/redfish | hadoop/common.c | <reponame>ganeshkamath89/redfish
/**
* Copyright 2011-2012 the Redfish 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
*
* Unle... |
vinniefalco/SimpleDJ | Extern/JUCE/modules/juce_gui_basics/commands/juce_KeyPressMappingSet.cpp | /*
==============================================================================
This file is part of the JUCE library - "Jules' Utility Class Extensions"
Copyright 2004-11 by Raw Material Software Ltd.
------------------------------------------------------------------------------
JUCE can be redistrib... |
yuneta/c-core | src/yuneta_register.c | <filename>src/yuneta_register.c
/****************************************************************************
* YUNETA_REGISTER.C
* Yuneta
*
* Copyright (c) 2014-2015 Niyamaka.
* All Rights Reserved.
**************************************************************... |
jingcao80/Elastos | Sources/Elastos/Frameworks/Droid/Base/Core/inc/elastos/droid/speech/SpeechRecognizer.h | <reponame>jingcao80/Elastos<filename>Sources/Elastos/Frameworks/Droid/Base/Core/inc/elastos/droid/speech/SpeechRecognizer.h
//=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License... |
csabaujvari/jackal | pkg/module/xep0280/carbons_test.go | // Copyright 2021 The jackal 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 applicable law or agreed... |
Marcusz97/CILP_Facilitatore_Audacity | lib-src/libnyquist/nyquist/nyqstk/src/Stk.cpp | /***************************************************/
/*! \class Stk
\brief STK base class
Nearly all STK classes inherit from this class.
The global sample rate can be queried and
modified via Stk. In addition, this class
provides error handling and byte-swapping
functions.
by <NAME> and... |
metux/chromium-deb | third_party/WebKit/Source/core/editing/InlineBoxTraversal.h | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef InlineBoxTraversal_h
#define InlineBoxTraversal_h
#include "platform/wtf/Allocator.h"
namespace blink {
class InlineBox;
// This class provide... |
ice-blokk/FRC-4653-Code-2022 | src/main/java/frc/robot/commands/defaultcommands/DefaultArcadeDrive.java | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands.defaultcommands;
import java.util.function.BooleanSupplier;
import java.util.function.Double... |
althink/hermes | hermes-common/src/main/java/pl/allegro/tech/hermes/domain/workload/constraints/TopicConstraintsDoNotExistException.java | package pl.allegro.tech.hermes.domain.workload.constraints;
import pl.allegro.tech.hermes.api.ErrorCode;
import pl.allegro.tech.hermes.api.TopicName;
import pl.allegro.tech.hermes.common.exception.HermesException;
import static pl.allegro.tech.hermes.api.ErrorCode.TOPIC_CONSTRAINTS_DO_NOT_EXIST;
public class TopicCo... |
willramanand/RamSkills | src/main/java/com/gmail/willramanand/RamSkills/listeners/DamageListener.java | package com.gmail.willramanand.RamSkills.listeners;
import com.gmail.willramanand.RamSkills.RamSkills;
import com.gmail.willramanand.RamSkills.events.CriticalStrikeEvent;
import com.gmail.willramanand.RamSkills.mana.Ability;
import com.gmail.willramanand.RamSkills.player.SkillPlayer;
import com.gmail.willramanand.RamS... |
Kuxe/swordbow-magic | include/clientdisconnectedstate.hpp | <reponame>Kuxe/swordbow-magic<filename>include/clientdisconnectedstate.hpp<gh_stars>1-10
#ifndef CLIENTDISCONNECTEDSTATE_HPP
#define CLIENTDISCONNECTEDSTATE_HPP
#include "iclientstate.hpp"
#include "messagetypes.hpp"
#include "ipaddress.hpp"
#include "packethandler.hpp"
#include <mutex>
class Client;
class ClientDisc... |
matthb2/ParaView-beforekitwareswtichedtogit | Servers/Filters/vtkDesktopDeliveryServer.h | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... |
devgrok/daml | ledger/sandbox-classic/src/test/suite/scala/platform/sandbox/auth/GetAuthenticatedUserAuthIT.scala | // Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package com.daml.platform.sandbox.auth
import java.util.UUID
import com.daml.ledger.api.v1.admin.user_management_service.{
GetUserRequest,
User,
UserManagementServiceGrpc,
}
... |
CourtHive/tods-competition-factory | src/drawEngine/governors/queryGovernor/positionActions/actionPolicyUtils.js | <filename>src/drawEngine/governors/queryGovernor/positionActions/actionPolicyUtils.js
import { getPolicyDefinitions } from '../../../../tournamentEngine/governors/queryGovernor/getPolicyDefinitions';
import { POLICY_TYPE_POSITION_ACTIONS } from '../../../../constants/policyConstants';
import { POLICY_POSITION_ACTIONS_... |
bannmann/stringtemplate4 | src/main/java/org/puretemplate/ErrorManager.java | package org.puretemplate;
import java.io.PrintWriter;
import java.io.StringWriter;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.Token;
... |
ancientmooner/DALI | dali/operators/ssd/box_encoder.h | <gh_stars>1-10
// Copyright (c) 2017-2018, NVIDIA CORPORATION. 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
//... |
tcpcloud/debian-cassandra-cpp-driver | test/unit_tests/src/test_class_type_parser.cpp | /*
Copyright (c) 2014-2016 DataStax
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 writing... |
microsoft/vOW4SIKE_on_HW | SIKE_vOW_hw-sw/ref_c/SIKE_vOW_software/src/prng.c | /********************************************************************************************
* PRNG based on AES
*********************************************************************************************/
#include <string.h>
#include "prng.h"
void init_prng(prng_state_t *state, unsigned long seed)
{
#if defined(U... |
AntonVolDev/Examples | Spring/GS_SubscriptionPortlet/src/main/java/com/geminisystems/subscription/job/SendMediaMailJob.java | package com.geminisystems.subscription.job;
import com.geminisystems.subscription.dao.CategoryDao;
import com.geminisystems.subscription.dao.SubscriptionDao;
import com.geminisystems.subscription.domain.SBean;
import com.geminisystems.subscription.domain.SCategory;
import com.geminisystems.subscription.domain.SM... |
markguozhiming/spheral | src/Material/PhysicalConstants.hh | <reponame>markguozhiming/spheral<gh_stars>1-10
//---------------------------------Spheral++----------------------------------//
// PhysicalConstants -- Choose the physical units for a given Spheral run.
//
// Created by JMO, Mon Dec 6 21:36:45 PST 1999
//----------------------------------------------------------------... |
Oriode/Simpleplusplus | Simple++/Graphic/Color.h | ///@file Color.h
///@brief Basic for every type of color
///@author <NAME>
///@date 22/09/2016 (DMY)
#pragma once
#include "../Utility.h"
#include "../String.h"
namespace Graphic {
enum class Format : unsigned int { R = 1, RGB = 3, RGBA = 4 };
///@brief Struct used to retrieve the type compilation times informa... |
zhou-en/turf_portal | stock/migrations/0011_auto_20200913_2112.py | # Generated by Django 3.1.1 on 2020-09-13 21:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('stock', '0010_turfroll_delivered'),
]
operations = [
migrations.RenameField(
model_name='turfroll',
old_name='delivered',
... |
06needhamt/intellij-community | java/java-tests/testData/codeInsight/daemonCodeAnalyzer/previewfeature/java.base/jdk.internal.javac/FirstPreviewFeatureReflective.java | <reponame>06needhamt/intellij-community
package com.mycom;
@jdk.internal.javac.PreviewFeature(feature = jdk.internal.javac.PreviewFeature.Feature.SEALED_CLASSES, reflective = true)
public interface FirstPreviewFeatureReflective {
public static final class Outer {
public static final class Inner {
public vo... |
Etxea/gestion_eide_web | clases/forms.py | <reponame>Etxea/gestion_eide_web<gh_stars>0
from django.forms import ModelForm
from django import forms
from models import *
class ClaseForm(ModelForm):
class Meta:
model = Clase
exclude = ["padre"]
widgets = {
"hora_inicio": forms.widgets.DateTimeInput(format='%Y-%m-%d %H:%M:%S'),
"hora_fin": forms.widge... |
asm128/nwol | nwol/nwol_label_manager.h | <gh_stars>1-10
/// Copyright 2016-2017 - asm128
#include "nwol_unshrinkable_block_container.h"
#ifndef NWOL_GLABELMANAGER_H_61596898798741996481968498
#define NWOL_GLABELMANAGER_H_61596898798741996481968498
namespace nwol
{
//#define MAX_LABELDATA_ARRAYS 16
class CLabelManager {
static constexpr const uint32_t ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.