repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
kirbo/slacky
src/container/Loading/Loading.js
<reponame>kirbo/slacky<filename>src/container/Loading/Loading.js import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { COLOR, DIMENSION, GlobalStyles, FONT_SIZE } from '../../assets/css'; import Logo from '../../component/Logo'; /** * Loading ...
niranjan21/skt
app/controllers/general-item-outward-entries.server.controller.js
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), GeneralItemOutwardEntry = mongoose.model('GeneralItemOutwardEntry'), _ = require('lodash'); /** * Create a General item outward entry */ exports.create = function(req, res) { v...
karstensensensen/AsciiRender
src/Asciir/Math/Matrix.h
<filename>src/Asciir/Math/Matrix.h<gh_stars>1-10 #pragma once #include "Vertices.h" namespace Asciir { // A wrapper for MatrixX that overloads functions like size() to return Asciir types instead of Eigen types. template<typename T> struct arMatrix : public Eigen::MatrixX<T> { using Eigen::MatrixX<T>::MatrixX; ...
Zhitao-Li/clMagma
control/trace.h
<gh_stars>0 /* -- MAGMA (version 1.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date @author <NAME> */ #ifndef TRACE_H #define TRACE_H // has MagmaMaxGPUs, strlcpy, max #include "common_magma.h" // --------------------------------...
Holaplace/path_to_python
9-1.py
class Restaurant(): def __init__(self, restaurant_name, cuisine_type): self.restaurant_name = restaurant_name self.cuisine_type = cuisine_type def describe_restaurant(self): print('The restaurant name is ' + self.restaurant_name.title() + ', and the c...
iqianxing/ant-design-charts
config/jest.js
const BaseJestConfig = { verbose: true, runner: 'jest-electron/runner', testEnvironment: 'jest-electron/environment', testTimeout: 30000, setupFilesAfterEnv: ['jest-extended'], transform: { '^.+\\.(tsx|ts)?$': 'ts-jest', '\\.(less|css)$': 'jest-less-loader', }, moduleFileExtensions: ['ts', 'tsx'...
lingnand/Helium
src/srchilite/regexrulefactory.cpp
// // Author: <NAME> <http://www.lorenzobettini.it>, (C) 2004-2008 // // Copyright: See COPYING file that comes with this distribution // #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "regexrulefactory.h" #include "regexhighlightrule.h" #include "tostringcollection.h" #include "highlightstate.h" #include "...
satnath/tesseractindic
ccstruct/labls.h
<filename>ccstruct/labls.h /********************************************************************** * File: labls.h (Formerly labels.h) * Description: Attribute definition tables * Author: <NAME>? * Created: * * (C) Copyright 1993, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0...
lshowbiz/agnt_ht
src/dao/com/joymain/jecs/mi/dao/JmiSpecialListDao.java
package com.joymain.jecs.mi.dao; import java.util.List; import java.math.BigDecimal; import com.joymain.jecs.dao.Dao; import com.joymain.jecs.mi.model.JmiSpecialList; import com.joymain.jecs.util.data.CommonRecord; import com.joymain.jecs.util.data.Pager; public interface JmiSpecialListDao extends Dao { /** ...
Wollac/mtg-prob
src/main/java/probability/csv/ManaDorkCSVParser.java
<reponame>Wollac/mtg-prob package probability.csv; import probability.attr.ColorsAttributeKey; import probability.attr.ImmutableAttributeHolder; import probability.attr.IntegerAttributeKey; import probability.attr.ManaCostAttributeKey; import probability.attr.StringAttributeKey; import probability.core.ManaDork; impo...
jfuruness/lib_bgp_data
lib_bgp_data/collectors/bgpstream_website/tables.py
<gh_stars>10-100 #!/usr/bin/env python3 # -*- coding: utf-8 -*- """This module contains numerous bgpstream.com tables These tables must all inherit from the Database class. The Database class allows for the conection to a database upon initialization. Also upon initialization the _create_tables function is called to ...
sunabove/ProgBasic
src/lec/pattern/PatternB.java
<gh_stars>0 package lec.pattern; public class PatternB { public static void main(String[] args) { var out = System.out; var data = "JAVA" ; for( int i = 0; i < data.length() ; i ++ ) { for( int k = 0; k < i + 1 ; k ++ ) { out.print( data.charAt(k) ); } out.println(); } } }
gii-is-psg2/PSG2-2021-G4-42
src/test/java/org/springframework/samples/petclinic/web/CausaControllerTests.java
package org.springframework.samples.petclinic.web; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.context....
jdbon/ad-verano-2018
tp-repositorio/src/enumerator/Bloque.java
package enumerator; public enum Bloque { UNO, DOS, TRES, CUATRO, CINCO; }
DragonJoker/Ashes
samples/00-Common/Src/PrecompiledHeader.hpp
#pragma once #include "Prerequisites.hpp" #include <ashespp/Buffer/Buffer.hpp> #include <ashespp/Buffer/PushConstantsBuffer.hpp> #include <ashespp/Buffer/StagingBuffer.hpp> #include <ashespp/Buffer/UniformBuffer.hpp> #include <ashespp/Buffer/VertexBuffer.hpp> #include <ashespp/Command/CommandBuffer.hpp> #include <ash...
Ciechan/Revolved
Revolved/RVPointSprite.h
<filename>Revolved/RVPointSprite.h // // RVPointSprite.h // Revolved // // Created by <NAME> on 19.08.2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "RVSprite.h" #import "RVPoint.h" @interface RVPointSprite : RVSprite @property (nonatomic) PointType type; @property (nonatomic) SegmentEnd seg...
j-oe/segments
core/src/utilities/pdftext.js
/** fastclass PDFTEXT MODULE (c) 2017 <NAME> <EMAIL> License: MIT */ define(['modules/tokens'], function (tkns) { this.pdf = { config: { // which resolution should be used for chunk generation (fraction of average component size) indexShift: 0.25, // optional deviation (+/-) from average compo...
vault-the/changes
migrations/versions/3c93047c66c8_add_index_to_jobstep_status.py
"""Add index to JobStep.status Revision ID: 3c93047c66c8 Revises: 4ab789ea6b6f Create Date: 2015-04-28 22:55:23.139295 """ # revision identifiers, used by Alembic. revision = '3c93047c66c8' down_revision = '4ab789ea6b6f' from alembic import op def upgrade(): op.create_index('idx_jobstep_status', 'jobstep', ['...
ddstest/ddsprep
dataprep-webapp/src/app/services/state/home/home-state-service.spec.js
<reponame>ddstest/ddsprep<gh_stars>0 /* ============================================================================ Copyright (C) 2006-2018 Talend Inc. - www.talend.com This source code is available under agreement available at https://github.com/Talend/data-prep/blob/master/LICENSE You should have received a ...
asac-geeks/childbook
finalProject/src/main/java/com/example/finalProject/entity/GroupPost.java
package com.example.finalProject.entity; import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.UpdateTimestamp; import javax.persistence.*; import java.util.Date; import java.util.List; import java.util.Set; @Entity public class GroupPost { @Id @GeneratedValue(st...
mparnaudeau/clib2
library/contrib/byteswap/byteswap_bswap64.c
#if defined(USE_64_BIT_INTS) #if defined(__PPC__) && defined(__GNUC__) asm(" .text\n\ .align 2\n\ .globl bswap64\n\ .type bswap64, @function\n\ bswap64:\n\ rlwinm %r5,%r3,8,8,31\n\ rlwimi %r5,%r3,24,0,7\n\ rlwimi %r5,%r3,24,16,23\n\ rlwinm %r3,%r4,8,8,31\n\ rlwimi %r3,%r4,24,0,7\n\ rlwimi %r3,%r4,24,16,23\n...
crupest/Cru
src/common/platform/win/Win32FileStreamPrivate.h
<gh_stars>0 #include "cru/common/platform/win/WinPreConfig.h" #include <objidl.h> namespace cru::platform::win { namespace details { struct Win32FileStreamPrivate { IStream* stream_ = nullptr; }; } // namespace details } // namespace cru::platform::win
pixelballoon/pixelboost
tools/editor/source/view/entity/entity.h
#pragma once #include <map> #include <string> #include "glm/glm.hpp" #include "pixelboost/logic/entity.h" #include "pixelboost/maths/boundingBox.h" #include "project/definitions.h" namespace pb { class RectangleComponent; class RenderLayer; } class ProjectEntity; class ProjectStruct; class Property; class...
andrqxa/stepic_programming_go
02_functions/04_strings/main1.go
<gh_stars>0 /* На вход подается строка. Нужно определить, является ли она правильной или нет. Правильная строка начинается с заглавной буквы и заканчивается точкой. Если строка правильная - вывести Right иначе - вывести Wrong Маленькая подсказка: fmt.Scan() считывает строку до первого пробела, вы можете считать полн...
agorsk1/car-rating-app
apps/cars/factory/user_factory.py
<reponame>agorsk1/car-rating-app import factory from django.contrib.auth import get_user_model class UserFactory(factory.django.DjangoModelFactory): """" User factory for testing purposes default values: username - user1, user2 etc. (Sequence) !IMPORTANT If you will use email as username yo...
jiseungjeong/cppPracticeForTetris
CH5/ch5-1/first_operator_overloading.cpp
<filename>CH5/ch5-1/first_operator_overloading.cpp #include <iostream> #include <string.h> class MyString { char *string_content; int string_length; int memory_capacity; public: MyString(char c); MyString(const char *str); MyString(const MyString &str); ~MyString(); int length() const; int capacit...
melin/carbondata
core/src/main/java/org/apache/carbondata/core/constants/CarbonVersionConstants.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 ...
liguangyuaaa/bigdatajava
src/main/java/lgystudy/day2_06_20210327/exer/ListExerLgy.java
package lgystudy.day2_06_20210327.exer; import org.junit.Test; import java.util.ArrayList; import java.util.List; public class ListExerLgy { // 分区List中remove(int index)和remove(Object obj) @Test public void testListRemove(){ List list = new ArrayList(); list.add(1); list.add(2); ...
GoodforGod/aws-lambda-java-events
src/main/java/io/goodforgod/aws/lambda/events/cognito/CognitoUserPoolCreateAuthChallengeEvent.java
<gh_stars>1-10 package io.goodforgod.aws.lambda.events.cognito; import java.util.Map; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; /** * Represent the class for the Cognito User Pool Create Auth Challenge Lambda Trigger * * @see <a href= * "https://docs.aws.amazo...
jeremydeanlakey/lakey-finicity-python
tests/response/test_institutions_list_response.py
import json import unittest from lakey_finicity.responses import InstitutionsListResponse EXAMPLE_INSTITUTIONS_RESPONSE = ''' { "found":7843, "displaying":25, "moreAvailable":true, "createdDate":1582938670, "institutions":[ { "id":15436, "name":"Mass Mutual Financial Group(Retirement Access)", "aha":false, "accountTy...
ojasonbernal/McDonaldsDatabaseSystem
CustomerPortal/src/MainPortal.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import javax.swing.JOptionPane; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; /** * ...
Amr-Abd-El-Latief/courses
src/com/asset/eg/courses/model/util/OracleConnection.java
package com.asset.eg.courses.model.util; import java.sql.*; // for standard JDBC programs public class OracleConnection { private static final String URL = PropertiesConstants.labels.getString("URL"); private static final String USER = PropertiesConstants.labels.getString("USER"); private static final Strin...
paser4se/XCoLab
microservices/clients/contest-client/src/main/java/org/xcolab/client/contest/proposals/ProposalPhaseClientMockImpl.java
<reponame>paser4se/XCoLab package org.xcolab.client.contest.proposals; import org.springframework.context.annotation.Profile; import org.springframework.stereotype.Component; import org.xcolab.client.contest.pojo.IProposal2Phase; import org.xcolab.client.contest.pojo.IProposalContestPhaseAttribute; import java.util....
wup364/GoFileService
src/gutils/fstool/fstool.go
<filename>src/gutils/fstool/fstool.go // Copyright (C) 2019 WuPeng <<EMAIL>>. // Use of this source code is governed by an MIT-style. // 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 rest...
ZRY551-DevelopGroup/MCMod_IKnowIt
build/tmp/expandedArchives/forge-1.16.5-36.2.19_mapped_official_1.16.5-sources.jar_96953985799bf045b80c10dc6b54685a/net/minecraft/data/DirectoryCache.java
<gh_stars>1-10 package net.minecraft.data; import com.google.common.base.Charsets; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import java.io.IOException; import java.io.Writer; import java.nio.file.Files; import java.nio.file.Path; import java.util.Map; import java.util.Objects; impo...
arunrapolu4491/representation-grant-app
api/api/migrations/0009_auto_20210212_0815.py
<gh_stars>0 # Generated by Django 3.1.6 on 2021-02-12 16:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("api", "0008_user_location"), ] operations = [ migrations.RemoveField( model_name="application", name="pr...
ppavlidis/aspiredb
aspiredb/src/main/java/ubc/pavlab/aspiredb/server/dao/RemotePaging.java
<reponame>ppavlidis/aspiredb /* * The aspiredb project * * Copyright (c) 2012 University of British Columbia * * 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...
roman-sd/java-a-to-z
chapter_005/src/test/java/ru/sdroman/pro/list/loop/LoopListTest.java
package ru.sdroman.pro.list.loop; import org.junit.Test; import static org.junit.Assert.assertTrue; /** * Test LoopList class. * @author sdroman * @since 04.17 */ public class LoopListTest { /** * Test hasCycle method. */ @Test public void hasCycleTest() { LoopList list = new LoopL...
joker-pper/rdt-v2
rdt-core/src/main/java/com/joker17/redundant/operation/AbstractComplexOperation.java
<filename>rdt-core/src/main/java/com/joker17/redundant/operation/AbstractComplexOperation.java package com.joker17.redundant.operation; import com.joker17.redundant.core.RdtConfiguration; import com.joker17.redundant.model.*; import java.util.*; public abstract class AbstractComplexOperation extends AbstractOperatio...
danielstegmeier/assertj-swing
assertj-swing/src/main/java/org/assertj/swing/awt/AWT.java
<filename>assertj-swing/src/main/java/org/assertj/swing/awt/AWT.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...
acidicMercury8/xray-1.6
src/editors/PPEditor/effect.cpp
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "effect.h" //--------------------------------------------------------------------------- #pragma package(smart_init) //-------------------------------------------------------------------...
bradchesney79/illacceptanything
linux/sound/soc/codecs/adau1781-i2c.c
<filename>linux/sound/soc/codecs/adau1781-i2c.c /* * Driver for ADAU1381/ADAU1781 CODEC * * Copyright 2014 Analog Devices Inc. * Author: <NAME> <<EMAIL>> * * Licensed under the GPL-2. */ #include <linux/i2c.h> #include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/regmap.h> #include <soun...
IAGT-Amazing-Software/android-java-clean-architecture
presentation/src/main/java/com/innopro/android/sample/presentation/view/fragment/UserDetailsFragment.java
package com.innopro.android.sample.presentation.view.fragment; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ImageView; import android.widget.RelativeLayout; impo...
hyper-ml/hyperflow
server/pkg/base/logging.go
package base import ( "fmt" //log "github.com/sirupsen/logrus" ) // Log : Log messages func Log(format string, args ...interface{}) { //log.Infof(format, args) fmt.Println(format, args) } // Info : Log Info messages func Info(format string, args ...interface{}) { //log.Infof(format, args) fmt.Println(format, a...
openstreetview/ios
OpenStreetView/OSVNavigationController.h
<gh_stars>10-100 // // OSVNavigationController.h // OpenStreetView // // Created by <NAME> on 08/07/16. // Copyright © 2016 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface OSVNavigationController : UINavigationController @end
James51332/Papaya
platform/opengl/OpenGLVertexArray.cpp
#include "papayapch.h" #include "OpenGLVertexArray.h" #include "OpenGLLoader.h" namespace Papaya { OpenGLVertexArray::OpenGLVertexArray() { glGenVertexArrays(1, &m_RendererID); } OpenGLVertexArray::~OpenGLVertexArray() { glDeleteVertexArrays(1, &m_RendererID); } void OpenGLVertexArray::SetVertexBuffer(const Ref...
Georgi2704/pricelist-fastapi-boilerplate
migrations/versions/schema/7f1d088444e7_.py
"""empty message Revision ID: 7f1d088444e7 Revises: <PASSWORD> Create Date: 2020-10-09 15:56:01.365057 """ import sqlalchemy as sa from alembic import op from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = "7f1d088444e7" down_revision = "7<PASSWORD>" branch_labels = None de...
2994265077/speedment
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/component/transaction/Transaction.java
<filename>runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/component/transaction/Transaction.java<gh_stars>1-10 /** * * Copyright (c) 2006-2018, Speedment, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); You may not * use this file except in complia...
ljz663/tencentcloud-sdk-java
src/main/java/com/tencentcloudapi/dayu/v20180709/models/ModifyDDoSSwitchRequest.java
<gh_stars>100-1000 /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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/li...
tienthegainz/OutOfStockSystem
frontend/src/App.js
import React, { useState, useEffect } from "react"; import { BrowserRouter as Router, Switch, Route, } from "react-router-dom"; import { io } from "socket.io-client"; import ProductWatcherPage from './pages/product_watcher/ProductWatcher'; import CameraPage from './pages/camera/Camera'; import NavBar from "./comp...
Azork/wiremock
src/test/java/com/github/tomakehurst/wiremock/admin/AdminUriTemplateTest.java
/* * Copyright (C) 2011 <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 wr...
dliberat/advent-of-code-2020
day05/main.go
package main import ( "fmt" "io/ioutil" "sort" "strings" ) type boardingPass struct { code int } func (bp *boardingPass) row() int { return bp.code >> 3 } func (bp *boardingPass) col() int { return bp.code & 7 } func (bp *boardingPass) sid() int { return bp.row()*8 + bp.col() } func (bp *boardingPass) toS...
teberhardt/byps
java/bypsgen/src/byps/gen/cs/GenApiClass.java
package byps.gen.cs; /* USE THIS FILE ACCORDING TO THE COPYRIGHT RULES IN LICENSE.TXT WHICH IS PART OF THE SOURCE CODE PACKAGE */ import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFac...
dhwanisanmukhani/competitive-coding
codeforces/bit++.cpp
#include <iostream> using namespace std; int main() { int n,answer=0; cin>>n; string s; for(int i=1;i<=n;i++) { cin>>s; if (s=="++X"||s=="X++") { answer++; } else { answer--; } } cout<<answer<<endl; return 0; }
elikary/tois2021
librec-2.0.0/core/src/main/java/net/librec/recommender/cf/ranking/RankSGDRecommender.java
/** * Copyright (C) 2016 LibRec * <p> * This file is part of LibRec. * LibRec 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) any later version. *...
XploreX/cgpa-book-server
utility/error-util/basicErrorHandler.js
<filename>utility/error-util/basicErrorHandler.js<gh_stars>1-10 /** * Print error and throws * @param {Error} err * @param {String} message * @throws */ function basicErrorHandler(err, message = null) { if (message) { console.log(message); } else { console.log('Error occured'); } throw err; } modu...
djordje/express-gateway
test/plugins/schema.test.js
const path = require('path'); const should = require('should'); const pluginsLoader = require('../../lib/plugins'); // Caching fixture plugin, but redefining its properties for testing plugin load. const pluginName = 'express-gateway-plugin-test'; const pluginDirectory = path.join(__dirname, '../fixtures', pluginName...
JoyLau/joylau-mybatis
src/main/java/cn/joylau/mybatis/mapper/common/condition/DeleteByConditionMapper.java
<reponame>JoyLau/joylau-mybatis<gh_stars>1-10 /******************************************************************************* * Copyright (c) 2017 by JoyLau. All rights reserved ******************************************************************************/ package cn.joylau.mybatis.mapper.common.condition; import...
kue-ipc/nodecan
app/views/hardware_types/_hardware_type.json.jbuilder
json.extract! hardware_type, :id, :code, :name, :description, :category, :order, :created_at, :updated_at json.url hardware_type_url(hardware_type, format: :json)
IMSY-DKFZ/simpa
simpa/utils/serializer.py
<gh_stars>1-10 # SPDX-FileCopyrightText: 2021 Division of Intelligent Medical Systems, DKFZ # SPDX-FileCopyrightText: 2021 <NAME> # SPDX-License-Identifier: MIT from abc import ABC, abstractmethod class SerializableSIMPAClass(ABC): """ TODO """ @abstractmethod def serialize(self) -> dict: ...
OctopusLian/leetcode-solutions
LCP/1.guess-numbers/guess-numbers_1-loop.go
func game(guess []int, answer []int) int { ans := 0 for i:=0;i<len(guess);i++ { if guess[i] == answer[i] { ans++ } } return ans }
c7yrus/alyson-v3
src/utils/data-query/test.js
import DataQuery from './DataQuery'; import store from '../../redux/store'; const query = [ { operator: 'getBE', id: 'GRP_DASHBOARD', as: 'dashboard', }, { operator: 'scope', path: 'dashboard.links', scope: { operator: 'getBE', basePath: 'baseEntities.data', as: 'be', ...
WCry/demo
spring-cloud/springcloud/service-api/seckill-api/src/main/java/com/zxp/seckill/pojo/dto/VerificationSecSkillOrder.java
<filename>spring-cloud/springcloud/service-api/seckill-api/src/main/java/com/zxp/seckill/pojo/dto/VerificationSecSkillOrder.java package com.zxp.seckill.pojo.dto; import com.zxp.seckill.pojo.SecKillGoodIdentify; import com.zxp.seckill.pojo.SecKillVerification; import com.zxp.user.pojo.UserIdentifies; import lombok.Dat...
zhangzhichaolove/MusicLake
app/src/main/java/com/cyl/musiclake/ui/music/online/activity/NeteasePlaylistActivity.java
<gh_stars>0 package com.cyl.musiclake.ui.music.online.activity; import android.os.Bundle; import android.support.annotation.Nullable; import com.cyl.musiclake.ui.music.online.base.BasePlaylistActivity; /** * 作者:yonglong on 2016/8/24 10:43 * 邮箱:<EMAIL> * 版本:2.5 */ @SuppressWarnings("ConstantConditions") public cl...
cassiasamp/live-de-python
codigo/Live146/core/models.py
<filename>codigo/Live146/core/models.py from django.db import models class Todo(models.Model): title = models.CharField("Título", max_length=50) description = models.TextField("Descrição") done = models.BooleanField(default=False)
shaojiankui/iOS10-Runtime-Headers
protocols/TSKRenderingExporter.h
/* Generated by RuntimeBrowser. */ @protocol TSKRenderingExporter <TSKExporter> @required - (struct CGRect { struct CGPoint { double x_1_1_1; double x_1_1_2; } x1; struct CGSize { double x_2_1_1; double x_2_1_2; } x2; })boundsRect; - (bool)drawCurrentPageInContext:(struct CGContext { }*)arg1 viewScale:(double)arg2 ...
n0bis/Warcell
Warcell/OSGiCommon/src/main/java/warcell/common/data/entityparts/TimerPart.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package warcell.common.data.entityparts; import warcell.common.data.Entity; import warcell.common.data.GameData; public class TimerPa...
guilhermejccavalcanti/ontop
client/protege/src/main/java/it/unibz/inf/ontop/protege/gui/treemodels/TreeModelFilter.java
<reponame>guilhermejccavalcanti/ontop<gh_stars>0 package it.unibz.inf.ontop.protege.gui.treemodels; /* * #%L * ontop-protege * %% * Copyright (C) 2009 - 2013 KRDB Research Centre. Free University of Bozen Bolzano. * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file...
hokaccha/kuroko2
app/controllers/kuroko2/job_definitions_controller.rb
<filename>app/controllers/kuroko2/job_definitions_controller.rb class Kuroko2::JobDefinitionsController < Kuroko2::ApplicationController before_action :set_definition, only: [:show, :edit, :update, :destroy] def index rel = Kuroko2::JobDefinition.joins(:admins).includes(:tags, :job_schedules, :admins) quer...
swxiao/bubble-foundation
bubble-foundation-mybatis/src/main/java/com/bubble/foundation/mybatis/support/MyBatisRepositoryImpl.java
<gh_stars>0 /** * Copyright 2015-2017 * * 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 ...
Antor/BasicLearningSystem
basic-learning-system/src/main/java/com/gravityray/basiclearningsystem/catalogue/CourseCatalogueController.java
<reponame>Antor/BasicLearningSystem package com.gravityray.basiclearningsystem.catalogue; import com.gravityray.basiclearningsystem.enrolment.EnrolmentService; import org.apache.commons.lang3.StringUtils; import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.security.c...
bitcrystal/temp
build_deps/deps/qrencode-3.4.3/tests/create_mqr_frame_pattern.c
<filename>build_deps/deps/qrencode-3.4.3/tests/create_mqr_frame_pattern.c<gh_stars>10-100 /* * This tool creates a frame pattern data for debug purpose used by * test_qrspec. test_qrspec and create_frame_pattern uses the same function * of libqrencode. This means the test is meaningless if test_qrspec is run * with...
AgileVentures/project_unify
app/services/user_service.rb
<reponame>AgileVentures/project_unify class UserService include Godmin::Resources::ResourceService attrs_for_index :user_name, :mentor, :private, :skill_list attrs_for_show :user_name, :introduction, :mentor, :gender, :private, :email, :skill_list, :created_at attrs_for_form :user_name, :email, :gender, :mento...
OakCityLabs/ios_system
shell_cmds/uname/uname.c
<gh_stars>100-1000 /* $NetBSD: uname.c,v 1.10 1998/11/09 13:24:05 kleink Exp $ */ /* * Copyright (c) 1994 <NAME>, 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. Redistribution...
elyase/polyaxon
polyaxon/api/activitylogs/views.py
from rest_framework.generics import ListAPIView, get_object_or_404 from rest_framework.permissions import IsAuthenticated from django.db.models import Q import activitylogs from api.activitylogs.serializers import ActivityLogsSerializer from constants import content_types from db.models.activitylogs import ActivityL...
lnsp/traefik
integration/consul_catalog_test.go
package integration import ( "fmt" "net" "net/http" "os" "time" "github.com/go-check/check" "github.com/hashicorp/consul/api" "github.com/traefik/traefik/v2/integration/try" checker "github.com/vdemeester/shakers" ) type ConsulCatalogSuite struct { BaseSuite consulClient *api.Client consulAgentClien...
artzstudio/Boot
test/cdn/mylib/foo.min.js
<reponame>artzstudio/Boot Boot.log("Inside foo.min.js, defining <b>mylib/foo</b>, returning now."); Boot.define({ "foo": true });
zhxinyu/cosan
docs/html/class_cosan_1_1_evaluation.js
<reponame>zhxinyu/cosan var class_cosan_1_1_evaluation = [ [ "Evaluation", "class_cosan_1_1_evaluation.html#a043a5ff14b47ab96833ab24e7463edfb", null ] ];
shivam091/Java-Security
crypt/src/main/java/org/security/crypt/x509/RDNSequenceIterator.java
<reponame>shivam091/Java-Security<gh_stars>0 package org.security.crypt.x509; import java.io.IOException; import java.util.Iterator; import java.util.NoSuchElementException; import org.security.crypt.util.DERHelper; import org.security.crypt.x509.types.RelativeDistinguishedName; import org.bouncycastle.asn1.ASN1Sequen...
IEEE-VIT/Techloop-A-Plus
Users/goelashwin36/Task 1/app/src/main/java/com/example/ash/login/MainActivity.java
<filename>Users/goelashwin36/Task 1/app/src/main/java/com/example/ash/login/MainActivity.java<gh_stars>10-100 package com.example.ash.login; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; public class Ma...
apostolidhs/wiregoose
plugins/email/basic.module.js
'use strict'; KlarkModule(module, 'emailBasicTmpl', ( _, $passportJwt, krkModelsUser, config ) => { const {SECURE_APP_URL} = config; const logoUrl = `${SECURE_APP_URL}/public/assets/img/logo-170-nologo.png`; return { template }; function template({ styling = '', contentTitle = '', conten...
ghidalgo3/s_mach.similar
src/test/scala/s_mach/similar/SMach_Similar_ObjectTests.scala
package s_mach.similar import org.scalatest.{FlatSpec,Matchers} import breeze.linalg.{DenseVector, DenseMatrix} import s_mach.similar.TestObjects._ import s_mach.similar.impl.SimilarOps import SimilarOps._ /** * Created by Gustavo on 1/27/15. */ class SMach_Similar_ObjectTests extends FlatSpec with Matchers { }
BusyStudent/Btk
include/Btk/async.hpp
<gh_stars>1-10 #if !defined(BTK_ASYNC_HPP_) #define BTK_ASYNC_HPP_ #include <tuple> #include <memory> #include "object.hpp" #include "defs.hpp" namespace Btk{ BTKAPI void DeferCall(void(* fn)(void*),void *data); namespace Impl{ template<bool has_signal,class RetT> struct AsyncSignal; te...
gil9red/SimplePyScripts
textwrap__examples/dedent_examples.py
<reponame>gil9red/SimplePyScripts #!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' from textwrap import dedent text = """\ Съешь ещё этих мягких французских булок, да выпей же чаю """ print(repr(text)) print(repr(dedent(text))) print() def foo(): """ Съешь ещё этих мягких ...
cadovid/Pandemia2019
src/java/card/EventCard.java
<gh_stars>1-10 package card; public class EventCard extends Card { // TODO: Define possible events public EventCard() { // RAWR - Super class has neither city nor color attributes // this.city = null; // this.color = null; } }
PierrickVoulet/google-ads-java
google-ads/src/main/java/com/google/ads/googleads/v3/resources/RecommendationProto.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v3/resources/recommendation.proto package com.google.ads.googleads.v3.resources; public final class RecommendationProto { private RecommendationProto() {} public static void registerAllExtensions( com.google.protobuf...
vsch/idea-markdown
src/main/java/com/vladsch/md/nav/flex/highlighter/FlexmarkColorSettingsExtension.java
<gh_stars>100-1000 // Copyright (c) 2017-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.vladsch.md.nav.flex.highlighter; import com.vladsch.md.nav.flex.PluginBundle; import com.vladsch.md.nav.flex.settings.FlexmarkDebugSettings; i...
workflowfm/pew
pew/src/main/scala/com/workflowfm/pew/PiState.scala
package com.workflowfm.pew import scala.annotation.tailrec /** * This is the pi-calculus state of a running workflow. * * We separate inputs from outputs to make searching for matching channels more efficient. * We could have everything in one list like PiLib does. * * @param inputs a map of Input type co...
5nefarious/icarous
Modules/ACCoRD/inc/PolycarpContain.h
/* * PolycarpContain - containment for 2D polygons * * Contact: <NAME> (<EMAIL>), <NAME> (<EMAIL>) * * Copyright (c) 2015-2017 United States Government as represented by * the National Aeronautics and Space Administration. No copyright * is claimed in the United States under Title 17, U.S.Code. All Other * Rig...
mzhg/PostProcessingWork
assimp/src/main/java/assimp/importer/xfile/XMaterial.java
package assimp.importer.xfile; import java.util.ArrayList; import java.util.List; import org.lwjgl.util.vector.Vector3f; import org.lwjgl.util.vector.Vector4f; /** Helper structure representing a XFile material */ public class XMaterial { String mName; boolean mIsReference; // if true, mName holds a name by which ...
noecl1/multihammer
src/Controller/VentasController.java
package Controller; import Model.ComboBoxClass; import Model.Dialogs; import Model.Venta; import Model.VentasModel; import com.jfoenix.controls.JFXButton; import com.jfoenix.controls.JFXComboBox; import com.jfoenix.controls.JFXTextField; import com.jfoenix.controls.JFXTreeTableColumn; import com.jfoenix.controls.JFXTr...
Zomzog/data-quality
dataquality-sampling/src/main/java/org/talend/dataquality/datamasking/generic/fields/FieldEnum.java
// ============================================================================ // // Copyright (C) 2006-2016 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
NB4444/BachelorProjectEnergyManager
Library/Source/EnergyManager/Testing/Tests/ActiveInactiveWorkloadTest.hpp
#pragma once #include "EnergyManager/Testing/Tests/WorkloadTest.hpp" #include <string> namespace EnergyManager { namespace Testing { namespace Tests { /** * Tests the ActiveInactiveWorkload. */ class ActiveInactiveWorkloadTest : public WorkloadTest { public: /** * Creates a new ActiveIna...
haxpor/APIBook
12_Extensibility/visitor/scenegraph.cpp
/// -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: t -*- /// /// \file scenegraph.cpp /// \author <NAME> /// \brief Simple scenegraph API with different node types. /// /// Copyright (c) 2010, <NAME>. All rights reserved. /// Distributed under the X11/MIT License. See LICENSE.txt. /// See http://APIBook.com/...
juanca/backbone.marionette.native
specs/helpers.js
beforeEach(function(){ this.element = document.createElement('div'); this.element.classList.add('test-element'); document.body.appendChild(this.element); jasmine.addMatchers({ toHaveClass: function(util, customMatchers){ return { compare: function(actual, expected) { return { ...
nickman/kafject
metric-hub/src/main/java/com/heliosapm/streams/metrichub/tsdbplugin/JSONMetricsAPIService.java
<gh_stars>0 /** 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 n...
eltociear/material-ui
packages/material-ui-icons/lib/InvertColorsOffRounded.js
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var React = _interopRequireWildcard(r...
NCIEVS/nci-meme5
model/src/main/java/com/wci/umls/server/model/content/ConceptSubsetMember.java
/** * Copyright 2016 West Coast Informatics, LLC */ /************************************************************* * SubsetMember: SubsetMember.java * Last Updated: Feb 27, 2009 *************************************************************/ package com.wci.umls.server.model.content; /** * Represents membership o...
BReduardokramer/gaia
apps/system/test/unit/homescreen_window_test.js
'use strict'; mocha.globals(['SettingsListener', 'removeEventListener', 'addEventListener', 'dispatchEvent', 'WindowManager', 'Applications', 'ManifestHelper', 'HomescreenWindow', 'KeyboardManager', 'StatusBar', 'SoftwareButtonManager', 'AttentionScreen']); requireApp('system/js/browser_config_helpe...
jeremy-frank/advent-of-code
2020/day13/day13ab.py
<reponame>jeremy-frank/advent-of-code<filename>2020/day13/day13ab.py """ day13ab - https://adventofcode.com/2020/day/13 --- Day 13: Shuttle Search --- * Part 1 The first line is your estimate of the earliest timestamp you could depart on a bus. The second line lists the bus IDs that are in service according to the s...