repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Lucsparidans/GGP-Project
src/main/java/csironi/ggp/course/gamers/CSequentialGamer.java
<gh_stars>0 /** * */ package csironi.ggp.course.gamers; import java.util.List; import org.ggp.base.player.gamer.event.GamerSelectedMoveEvent; import org.ggp.base.player.gamer.statemachine.sample.SampleGamer; import org.ggp.base.util.statemachine.abstractsm.AbstractStateMachine; import org.ggp.base.util.statemachine...
teamsnap/jemal
server/data/schema/EmailPartial.js
const { gql } = require('apollo-server-express'); const EmailPartial = gql` extend type Query { getCurrentEmailPartial(_id: String!): EmailPartial getAllEmailPartials(_id: String!, offset: Int, limit: Int): [EmailPartial] getEmailPartialsCount(_id: String!): Count downloadAllPartials: [EmailPartial] ...
trendspotter/hid_app2
src/app/components/duplicate/DuplicatesController.js
(function () { 'use strict'; angular .module('app.duplicate') .controller('DuplicatesController', DuplicatesController); DuplicatesController.$inject = ['$exceptionHandler', '$scope', '$routeParams', 'alertService', 'Duplicate', 'gettextCatalog']; function DuplicatesController ($exceptionHandler, $sc...
billchenxujia/springbootDemo
effectiveJava/src/main/java/effectiveJava/chapter9/item62/AvoidStrings.java
package effectiveJava.chapter9.item62; import java.util.Arrays; import java.util.List; /** * * 类 @code(AvoidStrings) * * <p> * 功能简介: * <p> * 总而言之,当存在或可以编写更好的数据类型时,避免将对象表示为字符串的自然倾向。 使用不当,字符串比其他类型更麻烦,更灵活更差,速度更慢,更容易出错。 * 字符串通常被滥用的类型包括基本类型,枚举类型和聚合类型。 * <p> * 创建时间:2019年5月16日 * * @author chenxj */ public clas...
Akrivus/MoeMagic
src/main/java/block_party/scene/data/Counters.java
<reponame>Akrivus/MoeMagic<filename>src/main/java/block_party/scene/data/Counters.java package block_party.scene.data; import net.minecraft.nbt.CompoundTag; public class Counters extends AbstractVariables<Integer> { public Counters(CompoundTag compound) { super(compound); } public Counters() { ...
EXHades/v8
src/snapshot/snapshot-utils.cc
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/snapshot/snapshot-utils.h" #include "src/base/sanitizer/msan.h" #include "third_party/zlib/zlib.h" namespace v8 { namespace internal { ...
AgeOfLearning/material-design-icons
action/icon-sharp-picture-in-picture-element/template.js
<reponame>AgeOfLearning/material-design-icons export default (context, html) => html` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 7h-8v6h8V7zm4-4H1v17.98h22V3zm-2 16.01H3V4.98h18v14.03z"/></svg> `;
unwashed-and-dazed/visallo
core/core/src/main/java/org/visallo/core/model/notification/UserNotification.java
<gh_stars>1-10 package org.visallo.core.model.notification; import com.google.common.annotations.VisibleForTesting; import org.json.JSONObject; import java.util.*; public class UserNotification extends Notification { private String userId; private Date sentDate; private Integer expirationAgeAmo...
hipstersmoothie/parse-commit-message
src/plugins/index.js
<reponame>hipstersmoothie/parse-commit-message import increment from './increment'; import mentions from './mentions'; export { increment, mentions };
asherry99/gozw
gen/types.go
package gen import ( "encoding/xml" "strconv" "strings" "github.com/reiver/go-stringcase" ) type ZwClasses struct { XMLName xml.Name `xml:"zw_classes"` BasicDevices []BasicDevice `xml:"bas_dev"` GenericDevices []GenericDevice `xml:"gen_dev"` CommandClasses []CommandClass `xml:"cmd_class"` ...
fpignalet/my-website-springreact
client1/src/test/java/com/core/RepoADBookTests.java
<filename>client1/src/test/java/com/core/RepoADBookTests.java package com.core; import com.core.data.IDBContactDAO; import com.core.data.impl.sql.DBAddressBook; import com.core.data.impl.sql.DBContact; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.fac...
andrewtarzia/stk
tests/molecular/molecules/molecule/fixtures/cof/square.py
<reponame>andrewtarzia/stk<filename>tests/molecular/molecules/molecule/fixtures/cof/square.py import pytest import stk from ...case_data import CaseData @pytest.fixture( scope='session', params=( lambda name: CaseData( molecule=stk.ConstructedMolecule( topology_graph=stk.c...
GaoGian/kalang
src/main/java/kalang/compiler/function/FunctionType.java
<gh_stars>1-10 package kalang.compiler.function; import kalang.compiler.ast.ClassNode; import kalang.compiler.core.ClassType; import kalang.compiler.core.NullableKind; import kalang.compiler.core.Type; import kalang.compiler.core.Types; import kalang.type.FunctionClasses; import javax.annotation.Nullable; /** * * ...
AnthonyDiGirolamo/connectedhomeip
src/protocols/user_directed_commissioning/UDCClients.h
/* * * Copyright (c) 2021 Project CHIP 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 requir...
raspygold/advent_of_code
2015/4/solution-1.rb
#!/usr/bin/env ruby input = "ckczppom" require "digest" num = -1 loop do num += 1 hash = Digest::MD5.hexdigest("#{input}#{num}") break if hash[0...5] == "0"*5 end puts num # => 117946
network-for-good/nfg_ui
lib/nfg_ui/components/patterns/tile.rb
# frozen_string_literal: true module NfgUi module Components module Patterns # Tile doc coming soon class Tile < NfgUi::Components::Base include Bootstrap::Utilities::Collapsible include NfgUi::Components::Utilities::Iconable include NfgUi::Components::Utilities::Titleable ...
WeihanLi/runtime
src/mono/mono/eglib/test/sizes.c
<gh_stars>10-100 /* * Tests to ensure that our type definitions are correct * * These depend on -Werror, -Wall being set to catch the build error. */ #include <stdio.h> #ifndef _MSC_VER #include <stdint.h> #endif #include <string.h> #include <glib.h> #include "test.h" static RESULT test_formats (void) { char buff...
shin-kinoshita/dbflute-core
dbflute-runtime/src/main/java/org/dbflute/optional/OptionalEntity.java
<filename>dbflute-runtime/src/main/java/org/dbflute/optional/OptionalEntity.java /* * Copyright 2014-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
targeter21/drools
drools-model/drools-model-compiler/src/main/java/org/drools/modelcompiler/builder/generator/consequence/ConsequenceGenerator.java
/* * Copyright 2015 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. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
sunruiguang/java1808_Basic
src/com/day02/Homework08.java
<reponame>sunruiguang/java1808_Basic package com.day02; public class Homework08 { public static void main(String[] args) { int x; double y; x = (int) 22.5 + (int) 34.7; y = (double) x; System.out.println("x=" + x); System.out.println("y=" + y); } }
davidbrochart/pythran
pythran/pythonic/numpy/alltrue.hpp
<filename>pythran/pythonic/numpy/alltrue.hpp #ifndef PYTHONIC_NUMPY_ALLTRUE_HPP #define PYTHONIC_NUMPY_ALLTRUE_HPP #include "pythonic/include/numpy/alltrue.hpp" #include "pythonic/numpy/all.hpp" PYTHONIC_NS_BEGIN namespace numpy { template <class... Types> auto alltrue(Types &&... types) -> decltype(all(s...
NityaNandPandey/AndroidPDF
headers/C/PDF/TRN_Date.h
//--------------------------------------------------------------------------------------- // Copyright (c) 2001-2018 by PDFTron Systems Inc. All Rights Reserved. // Consult legal.txt regarding legal and license information. //--------------------------------------------------------------------------------------- #ifnde...
jainsakshi2395/linux
samples/watch_queue/watch_test.c
<filename>samples/watch_queue/watch_test.c // SPDX-License-Identifier: GPL-2.0 /* Use watch_queue API to watch for notifications. * * Copyright (C) 2020 Red Hat, Inc. All Rights Reserved. * Written by <NAME> (<EMAIL>) */ #define _GNU_SOURCE #include <stdbool.h> #include <stdarg.h> #include <stdio.h> #include <stdl...
folker/AWE
vendor/github.com/docker/docker/vendor/google.golang.org/genproto/googleapis/api/serviceconfig/log.pb.go
<gh_stars>10-100 // Code generated by protoc-gen-go. // source: google.golang.org/genproto/googleapis/api/serviceconfig/log.proto // DO NOT EDIT! package google_api // import "google.golang.org/genproto/googleapis/api/serviceconfig" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" i...
daodao10/chart
sg/C05_d.js
<filename>sg/C05_d.js<gh_stars>1-10 var data=[['19940103',2.1825], ['19940104',2.1737], ['19940105',2.1825], ['19940106',2.2018], ['19940107',2.1922], ['19940110',2.2669], ['19940111',2.3223], ['19940112',2.2854], ['19940113',2.2476], ['19940114',2.3320], ['19940117',2.2757], ['19940118',2.3135], ['19940119',2.2950], [...
cbracis/ForagingModel
src/ForagingModel/core/ForagingModelException.java
package ForagingModel.core; /** * An unexpected exception in ForagingModel. * */ public class ForagingModelException extends RuntimeException { private static final long serialVersionUID = 229219356133024301L; public ForagingModelException() { super(prefix()); } public ForagingModelException( String me...
weisk/ppl.nn
src/ppl/nn/engines/x86/impls/include/ppl/kernel/x86/fp32/slice.h
#ifndef __ST_PPL_KERNEL_X86_FP32_SLICE_H_ #define __ST_PPL_KERNEL_X86_FP32_SLICE_H_ #include "ppl/kernel/x86/common/general_include.h" namespace ppl { namespace kernel { namespace x86 { ppl::common::RetCode slice_ndarray_fp32( const ppl::nn::TensorShape *src_shape, const ppl::nn::TensorShape *dst_shape, ...
austundag/recruitment-registry
test/reset-token.integration.js
/* global describe,before,after,it */ 'use strict'; process.env.NODE_ENV = 'test'; process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; const chai = require('chai'); const SharedIntegration = require('./util/shared-integration'); const RRSuperTest = require('./util/rr-super-test'); const Generator = require('./util/gene...
gadzhimari/dialog-web-components
src/components/ActivityProfile/ActivityGroupProfile.js
/* * Copyright 2018 dialog LLC <<EMAIL>> * @flow */ import type { Group, Peer } from '@dlghq/dialog-types'; import React, { PureComponent, type Node } from 'react'; import { Text } from '@dlghq/react-l10n'; import classNames from 'classnames'; import Avatar from '../Avatar/Avatar'; import Markdown from '../Markdown...
import-repo/wine
dlls/d3d10/utils.c
/* * Copyright 2008-2009 <NAME> for CodeWeavers * * 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 * version 2.1 of the License, or (at your option) any later version. * * T...
Sogrey/electron_video_src
src/menu/context_menu/event.js
const electron = require('electron'); const app = electron.app; const remote = electron.remote; const BrowserWindow = remote.BrowserWindow; const Menu = remote.Menu; const MenuItem = remote.MenuItem; const dialog = remote.dialog; function onload() { const menu = new Menu(); var icon = ''; if(process.plat...
Rune-Status/astraeus-server-v2
src/main/java/io/astraeus/game/event/impl/DoorEvent.java
package io.astraeus.game.event.impl; import io.astraeus.game.event.Event; import io.astraeus.game.world.entity.object.GameObject; public final class DoorEvent implements Event { private GameObject door; public DoorEvent(GameObject door) { this.door = door; } public GameObject getDoor() { ...
gatewayorg/blue-dashboard
backend/pkg/auth.bak/interface.go
<reponame>gatewayorg/blue-dashboard package auth_bak import "context" type author interface { Authenticate(ctx context.Context, username, passwd string) (ID uint64, err error) }
nishantcodewexy/NFT
src/pages/Query/Tokenreportdetailview.js
<reponame>nishantcodewexy/NFT import React, { useState, useEffect } from "react"; import { makeStyles } from "@material-ui/core/styles"; import GridItem from "components/Grid/GridItem.js"; import GridContainer from "components/Grid/GridContainer.js"; import CustomInput from "components/CustomInput/CustomInput.js"; impo...
UnicorNora/FTBLaunch
src/main/java/net/ftb/tracking/google/JGoogleAnalyticsTracker.java
/** * Copyright (c) 2010 <NAME>, <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, pub...
jmhooper/C2
spec/features/ncr/work_orders/edit_spec.rb
<gh_stars>0 feature "Editing NCR work order" do scenario "current user is not the requester, approver, or observer" do work_order = create(:ncr_work_order) stranger = create(:user, client_slug: "ncr") login_as(stranger) visit "/ncr/work_orders/#{work_order.id}/edit" expect(current_path).to eq("/n...
masud-technope/STRICT-QR-Module
src/strict/ca/usask/cs/srlab/strict/test/WekaModelPredictionMakerTest.java
package strict.ca.usask.cs.srlab.strict.test; import org.junit.Test; import strict.ca.usask.cs.srlab.strict.config.StaticData; import strict.weka.model.PredictionCleaner; import strict.weka.model.WekaModelPredictionMaker; public class WekaModelPredictionMakerTest { @Test public void testWekaModelPredictionMaker() ...
hiddout/hiddout-core
devScript/dbClean.js
<gh_stars>1-10 db.dropUser("hiddout", {w: "majority", wtimeout: 5000}) db.posts.drop() db.boards.drop() db.users.drop() db.comments.drop() db.subscriptions.drop() db.reactions.drop() db = db.getSiblingDB('adminList'); db.founders.drop()
domapic/domapic-base
test/unit/lib/bases/Server.specs.js
/* const Promise = require('bluebird') const test = require('narval') const mocks = require('../../mocks') const Server = require('../../../../lib/bases/Server') test.describe('Bases -> Server', () => { let server let stubCore test.beforeEach(() => { stubCore = new mocks.core.Stub() server = new Serve...
CHYGO1985/forum_demo
forum_demo_proj/src/main/java/com/jingjie/forum_demo/event/EventType.java
package com.jingjie.forum_demo.event; import com.alibaba.fastjson.parser.deserializer.AbstractDateDeserializer; /** * * The enumtype for events. * * @author jingjiejiang * @history * 1. Created on Jan 31, 2018 * */ public enum EventType { LIkE(0), COMMENT(1), LOGIN(2), MAIL(3), FOLLOW(4),...
rserban/chrono
src/projects/geomechanics/test_GEO_filters.cpp
<reponame>rserban/chrono<filename>src/projects/geomechanics/test_GEO_filters.cpp #include <cmath> #include <fstream> #include <iostream> #include <string> #include "chrono/utils/ChFilters.h" using std::cout; using std::endl; int main(int argc, char* argv[]) { if (argc < 3) { cout << "Usage: " << argv[0] ...
Alejandro-Fuste/JAVA_chat_and_dashboard_app
src/main/java/com/investing_app/controllers/PitchController.java
package com.investing_app.controllers; import com.google.gson.Gson; import com.investing_app.entities.Offer; import com.investing_app.entities.Pitch; import com.investing_app.service.PitchService; import java.util.HashMap; import java.util.List; import io.javalin.http.Handler; public class PitchController { Pit...
schinmayee/nimbus
applications/physbam/physbam-lib/Public_Library/PhysBAM_Rendering/PhysBAM_Ray_Tracing/Rendering_Lights/RENDERING_SPOTLIGHT.h
<gh_stars>10-100 //##################################################################### // Copyright 2004-2007, <NAME>, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //#####################################################...
BFreitas16/Mequie_Chat
server/src/mequie/app/facade/exceptions/MequieException.java
package mequie.app.facade.exceptions; /** * * @author 51021 <NAME>,51110 <NAME>,51468 <NAME> * * This class represents an exception that is thrown when something fails */ @SuppressWarnings("serial") public class MequieException extends Exception{ public MequieException(String message){ super(message); } }
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD
merging/main/opencyc-server-jsrc-in-progress/com/cyc/cycjava/cycl/module0185.java
package com.cyc.cycjava.cycl; import com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory; import static com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory.*; import com.cyc.tool.subl.util.SubLFiles; import com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLThread; import com.cyc.tool.subl.jrtl.nativeCo...
google-ar/chromium
ui/gfx/codec/skia_image_encoder_adapter.h
<reponame>google-ar/chromium // Copyright (c) 2016 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 UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H #define UI_GFX_CODEC_SKIA_IMAGE_ENCODER_ADAPTER_H #include "third_part...
bvn13/skin-composer
core/src/com/ray3k/skincomposer/dialog/scenecomposer/undoables/ContainerBackgroundUndoable.java
package com.ray3k.skincomposer.dialog.scenecomposer.undoables; import com.ray3k.skincomposer.data.DrawableData; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposer; import com.ray3k.skincomposer.dialog.scenecomposer.DialogSceneComposerModel; public class ContainerBackgroundUndoable implements Scene...
akhilreddyjirra/egeria
open-metadata-implementation/access-services/data-platform/data-platform-server/src/main/java/org/odpi/openmetadata/accessservices/dataplatform/server/DataPlatformInstanceHandler.java
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.dataplatform.server; import org.odpi.openmetadata.accessservices.dataplatform.handlers.RegistrationHandler; import org.odpi.openmetadata.adminservices.configuration.registrati...
bdezonia/zorbage
src/main/java/example/TensorAlgorithms.java
/* * Zorbage: an algebraic data hierarchy for use in numeric processing. * * Copyright (c) 2016-2021 <NAME> All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * Redistributions of source co...
ljz663/tencentcloud-sdk-java
src/main/java/com/tencentcloudapi/ie/v20200304/models/TextMarkInfoItem.java
/* * 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/licenses/LICENSE-2.0 ...
TampereTC/tre-smartcity-keystone
keystone/auth/plugins/mapped.py
# 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 under t...
juusokor/osmcha-django
osmchadjango/changeset/admin.py
from django.contrib.gis import admin from .models import Changeset, SuspicionReasons, Tag class ChangesetAdmin(admin.OSMGeoAdmin): search_fields = ['id'] list_display = ['id', 'user', 'create', 'modify', 'delete', 'checked', 'date', 'check_user'] list_filter = ['checked', 'is_suspect', 'reasons']...
GregDevProjects/carbon-header-fix
node_modules/@carbon/icons-react/es/letter--Ss/20.js
<gh_stars>1-10 import { LetterSs20 } from '..'; export default LetterSs20;
gtalis/openscreen
cast/standalone_receiver/sdl_player_base.h
<reponame>gtalis/openscreen<filename>cast/standalone_receiver/sdl_player_base.h // Copyright 2019 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 CAST_STANDALONE_RECEIVER_SDL_PLAYER_BASE_H_ #define CAST_STANDALON...
bourbest/numnum
server/api/schema/account-schema.js
<reponame>bourbest/numnum import {string, required, Schema } from '../../../src/sapin' const baseAccountSchema = { id: string, username: string(required), password: string(required) } export const accountSchema = new Schema(baseAccountSchema) export const newAccountSchema = new Schema({ ...baseAccountSchema,...
s1hit/urushi
lib/js/extend.js
<reponame>s1hit/urushi<gh_stars>10-100 // Production steps of ECMA-262, Edition 5, 192.168.3.11 // Reference: http://es5.github.com/#x15.4.4.18 if (!Array.prototype.forEach) { Array.prototype.forEach = function(callback, thisArg) { var T, k; if (this == null) { throw new TypeError(" this is null or not define...
jongio/azure-sdk-for-java
sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SearchResourceEncryptionKey.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. package com.azure.search.documents.indexes.implementation.models; import c...
zoho/zohocrm-python-sdk-2.1
samples/tags/tag.py
<gh_stars>0 from zcrmsdk.src.com.zoho.crm.api.tags import * from zcrmsdk.src.com.zoho.crm.api.tags import Tag as ZCRMTag from zcrmsdk.src.com.zoho.crm.api import ParameterMap class Tag(object): @staticmethod def get_tags(module_api_name): """ This method is used to get all the tags in a modu...
ryankwondev/problem_solving
creative_algorithm_for_ps-advanced/p208-f**king_tofu.cpp
<reponame>ryankwondev/problem_solving<filename>creative_algorithm_for_ps-advanced/p208-f**king_tofu.cpp #include <bits/stdc++.h> #define cu (1<<n) #define rt (1<<(n-1)) #define dn (1) #define M (1<<(n+1)) int p[4][4] = {{100, 70, 40, 0}, {70, 50, 30, 0}, {40, 30, 20, 0}, ...
LiBromine/yesterday-headline
app/src/main/java/com/java/libingrui/NewsList.java
package com.java.libingrui; import androidx.annotation.NonNull; import androidx.room.Entity; import androidx.room.PrimaryKey; import androidx.room.TypeConverter; import androidx.room.TypeConverters; import com.google.gson.Gson; import java.util.ArrayList; import java.util.Collections; import java.util.List; import ...
cjhuitt/flogpp
lib/cleaners/if_cleaner.rb
# Removes if or else if constructs from the code base class IfCleaner def self.Clean code code.gsub(IF_OR_ELSE_IF_CONSTRUCT, "") end private IF_OR_ELSE_IF_CONSTRUCT = /\b (else[[:space:]]+)? #optional else prior to if if\b [[:space:]]* /x end...
mlutken/playground
common/nestle/cesl/cesl_strings/playground/log_format_playground.c
<filename>common/nestle/cesl/cesl_strings/playground/log_format_playground.c #include <cesl_strings/cesl_format.h> /** @file Example showing how to extend the format system * with custom logging capabilities. * * * */ // ------------------------------------ // HEADER: types (cesl_log_format.h ) --- // -----------...
chinajeffery/MPC-BE--1.2.3
include/realmedia/rmacore.h
/**************************************************************************** * * $Id: rmacore.h 737 2012-07-24 20:56:53Z alexins $ * * Copyright (C) 1995-1999 RealNetworks, Inc. All rights reserved. * * http://www.real.com/devzone * * This program contains proprietary * information of Progressive Netwo...
moqimoqidea/scala-demo
src/main/scala/com/moqi/scala/ch22/A01TheListClassInPrinciple.scala
<reponame>moqimoqidea/scala-demo<filename>src/main/scala/com/moqi/scala/ch22/A01TheListClassInPrinciple.scala<gh_stars>1-10 package com.moqi.scala.ch22 /** * List 类的原理 * Nil 继承自 List[Nothing],所以 Nil 跟 List 类型的每个实例都兼容 * :: 和 ::: 类都是向右绑定的 * * @author moqi On 11/20/20 14:38 */ object A01TheListClassInPrinciple { ...
viewserver/viewserver
viewserver-messages/viewserver-messages-protobuf/src/main/java/io/viewserver/messages/protobuf/AuthenticateCommand.java
<filename>viewserver-messages/viewserver-messages-protobuf/src/main/java/io/viewserver/messages/protobuf/AuthenticateCommand.java<gh_stars>0 /* * Copyright 2016 Claymore Minds Limited and Niche Solutions (UK) Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exc...
microsofia/microsofia-framework
distributed-object/src/main/java/microsofia/framework/distributed/master/impl/JobQueue.java
<filename>distributed-object/src/main/java/microsofia/framework/distributed/master/impl/JobQueue.java package microsofia.framework.distributed.master.impl; import java.util.Hashtable; import java.util.List; import java.util.Map; import java.util.TreeSet; import javax.inject.Inject; import javax.persistence.EntityMana...
HeRaNO/OI-ICPC-Codes
Codeforces/Gym101350D.cpp
<reponame>HeRaNO/OI-ICPC-Codes<gh_stars>10-100 #include <bits/stdc++.h> #define MAXN 100010 using namespace std; int T,n,a[MAXN]; int main() { scanf("%d",&T); while (T--) { scanf("%d",&n);bool f=true; for (int i=1;i<=n;i++) scanf("%d",&a[i]); sort(a+1,a+n+1); for (int i=2;i<=n&&f;i++) if ((a[i]-a[i-1])&1) ...
atul-vyshnav/2021_IBM_Code_Challenge_StockIT
src/StockIT-v2-release_source_from_JADX/sources/com/google/android/gms/internal/ads/zzcbl.java
package com.google.android.gms.internal.ads; import android.content.Context; /* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */ public final class zzcbl implements zzeoy<zzcab<zzbvs>> { private final zzeph<Context> zzesu; private final zzeph<zzbbx> zzfmh; private final zzeph<zzdnv> zzfo...
AnyBody-Research-Group/AnyPyTools
setup.py
# -*- coding: utf-8 -*- """ Created on Sat Sep 24 12:29:53 2011. @author: melund """ import os import io import re import sys from setuptools import setup, find_packages long_description = ( "AnyPyTools is a toolkit for working with the AnyBody Modeling System " "from Python. Its main purpose is to launch A...
Rgcsh/distributed_redis_server
app/__init__.py
<reponame>Rgcsh/distributed_redis_server # -*- coding: utf-8 -*- """ All rights reserved create time '2019/9/16 10:21' Module usage: """ import importlib import os from flask import Flask from flask_cors import CORS import app.core as core from app import controllers from app.middleware import MIDDLEWARE from app....
mrptk/InventoryApp
app/src/main/java/pl/app/projektio/assets/InventoryList.java
package pl.app.projektio.assets; import java.util.ArrayList; public class InventoryList { public ArrayList<Inventory> allInventories; public ArrayList<Inventory> openInventories; public ArrayList<Inventory> finishedInventories; public Inventory activeInventory; public InventoryList(ArrayList<Inve...
wsaada19/CommunityQuests
src/main/java/me/wonka01/ServerQuests/events/questevents/ProjectileKillEvent.java
<filename>src/main/java/me/wonka01/ServerQuests/events/questevents/ProjectileKillEvent.java package me.wonka01.ServerQuests.events.questevents; import me.wonka01.ServerQuests.enums.ObjectiveType; import me.wonka01.ServerQuests.questcomponents.ActiveQuests; import me.wonka01.ServerQuests.questcomponents.QuestController...
ntoussaint/CTK
Libs/Visualization/VTK/Widgets/ctkVTKAbstractMatrixWidget_p.h
/*========================================================================= Library: CTK Copyright (c) Kitware 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.ap...
vinders/pandora_toolbox
thread/include/thread/ordered_lock.h
/******************************************************************************* MIT License Copyright (c) 2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includin...
SCSZCC/PythonWithHardware
CyberPi/Python with CyberPi 097(童芯派 psutil 电脑性能数据可视化监控外屏 ).py
<gh_stars>1-10 """" 名称:097 童芯派 pustil 电脑性能数据可视化监控外屏 硬件: 童芯派 功能介绍: 利用Pustil模块获取电脑的内存和CPU使用状态,并通过童芯派的图表功能进行实时呈现。 成为电脑性能监控扩展屏幕。当超过 使用到的API及功能解读: 1.ram = psutil.virtual_memory() 获取电脑内存数据 2.rampercent = ram.percent 获取电脑内存使用率 3.psutil.cpu_percent() 获取电脑CPU使用率 4.cyberpi.barchart.add(rampercent) 绘制柱状图(注意:不同数据的需要通过设置画刷颜...
razvanfulea/ubb.dp.1819
src/main/java/ro/ubb/dp1819/fulea/razvan/lab2/proxy/ProxyMain.java
package ro.ubb.dp1819.fulea.razvan.lab2.proxy; import java.util.ArrayList; import java.util.List; public class ProxyMain { public static void run() { ICarService service = new CarServiceProxy(); List<Car> cars = new ArrayList<>(); cars.add(service.buildCar("Audi", "E-Tron")); car...
izumin5210/clig
pkg/clib/path_test.go
<reponame>izumin5210/clig package clib_test import ( "testing" "github.com/izumin5210/clig/pkg/clib" ) func TestPath_String(t *testing.T) { pathStr := "/go/src/awesomeapp" path := clib.Path(pathStr) if got, want := path.String(), pathStr; got != want { t.Errorf("String() returned %q, want %q", got, want) } ...
martmists-gh/BDSP
include/il2cpp/DG/Tweening/Core/Easing/Bounce.h
<reponame>martmists-gh/BDSP<filename>include/il2cpp/DG/Tweening/Core/Easing/Bounce.h #pragma once #include "il2cpp.h" float DG_Tweening_Core_Easing_Bounce__EaseIn (float time, float duration, float unusedOvershootOrAmplitude, float unusedPeriod, const MethodInfo* method_info); float DG_Tweening_Core_Easing_Bounce__Ea...
aji3/xlbean
src/test/java/org/xlbean/excel/XlSheetTest.java
<filename>src/test/java/org/xlbean/excel/XlSheetTest.java package org.xlbean.excel; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import java.io.InputStream; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.WorkbookFactory; import org.junit.Test...
JPasogias/Valencia_UPV
app/bll/team-requests.js
<filename>app/bll/team-requests.js 'use strict'; const validator = require('validator'); const errorHelper = require('../../helpers/error'); const datapool = require('../datapool'); const i18next = require('i18next'); const co = require('co'); const teamsRepository = datapool.getRepository('teams'); const activitiesBl...
kolesnikov-bn/django-memrise-scraper
memrise/core/modules/factories/base.py
from abc import ABC, abstractmethod from typing import List, TypeVar from memrise.core.modules.factories.entity_makers import DomainEntityT ItemT = TypeVar("ItemT") class Factory(ABC): """ Класс, который умеет узнавать, может ли он смаппить определённый EntityMaker в нужный формат и умеет создавать нужн...
alissonkbprado/orange-talents-07-template-casa-do-codigo
src/main/java/br/com/zupacademy/alissonprado/casadocodigo/model/Livro.java
package br.com.zupacademy.alissonprado.casadocodigo.model; import org.hibernate.validator.constraints.ISBN; import org.springframework.format.annotation.DateTimeFormat; import javax.persistence.*; import javax.validation.constraints.*; import java.math.BigDecimal; import java.time.LocalDate; @Entity public class Liv...
WoodoLee/TorchCraft
3rdparty/pytorch/torch/csrc/jit/script/parser.cpp
#include <c10/util/Optional.h> #include <torch/csrc/jit/script/lexer.h> #include <torch/csrc/jit/script/parse_string_literal.h> #include <torch/csrc/jit/script/parser.h> #include <torch/csrc/jit/script/tree.h> #include <torch/csrc/jit/script/tree_views.h> namespace torch { namespace jit { namespace script { Decl merg...
1300928718/gwtent-reflection
src/main/java/com/gwtent/reflection/client/impl/AbstractMethodImpl.java
<reponame>1300928718/gwtent-reflection /******************************************************************************* * Copyright 2001, 2007 JamesLuo(<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 obt...
devongovett/parcel
packages/core/integration-tests/test/integration/transpilation-invalid/index.js
<filename>packages/core/integration-tests/test/integration/transpilation-invalid/index.js const Boom = () => { const littleBoom = ['hello', 'world'] return <div>{...littleBoom.map(el => el)}</div> } class X { #x(){} #x(){} } console.log(Boom, X);
wqythu13/Test
src/org/sosy_lab/cpachecker/core/algorithm/CustomInstructionRequirementsExtractingAlgorithm.java
/* * CPAchecker is a tool for configurable software verification. * This file is part of CPAchecker. * * Copyright (C) 2007-2014 <NAME> * 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...
Aakash1312/appleseed
src/appleseed.studio/utility/miscellaneous.h
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 <NAME>, Jupiter Jazz Limited // Copyright (c) 2014-2017 <NAME>, The appleseedhq Organization // // Permission is h...
AAU-Racing/distributed_car
bootloader/main.c
<filename>bootloader/main.c #include <stdint.h> #include <stdbool.h> #include <board_driver/uart.h> #include <board_driver/flash.h> #include <board_driver/init.h> int main(void) { uart_init(MAIN_DEBUG_UART); while (1) { uint8_t c = uart_read_byte(MAIN_DEBUG_UART); if (c == 'k') { uart_send_buf(MAIN_DEBUG_U...
billwert/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/fluent/models/MicrosoftGraphSharingDetail.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.authorization.fluent.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonAnyGetter; imp...
MrDelik/core
tests/components/renault/__init__.py
<reponame>MrDelik/core<gh_stars>1000+ """Tests for the Renault integration.""" from __future__ import annotations from types import MappingProxyType from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_ICON, ATTR_IDENTIFIERS, ATTR_MANUFACTURER, ATTR_MODEL, ATTR_NAME, ATTR_STATE, ATTR...
lechium/iPhoneOS_12.1.1_Headers
System/Library/PrivateFrameworks/NewsCore.framework/FCCKContentBatchedFetchRecordsOperation.h
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:47:46 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/NewsCore.framework/NewsCore * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>...
Xtuden-com/language
language/capwap/utils/io_utils.py
<gh_stars>1000+ # coding=utf-8 # Copyright 2018 The Google AI Language Team 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 # # Unl...
mistydemeo/rack
provider/aws/lambda/formation/handler/aws.go
<filename>provider/aws/lambda/formation/handler/aws.go package handler import ( "os" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/ec2" "github.com/aws/aws-sdk-go/service/ecr" "github.com/aws/aws-sdk-go/ser...
Jabawack/chromium-efl
impl/renderer/print_web_view_helper_efl.h
<reponame>Jabawack/chromium-efl<gh_stars>0 // Copyright 2014 Samsung Electronics. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PRINT_WEB_VIEW_HELPER_H_ #define PRINT_WEB_VIEW_HELPER_H_ #include "base/files/file_path.h" #include "b...
yechaoa/wanandroid_java
app/src/main/java/com/yechaoa/wanandroidclient/module/tree/ITreeView.java
<reponame>yechaoa/wanandroid_java package com.yechaoa.wanandroidclient.module.tree; import com.yechaoa.wanandroidclient.base.BaseBean; import com.yechaoa.wanandroidclient.base.BaseView; import com.yechaoa.wanandroidclient.bean.Tree; import java.util.List; /** * GitHub : https://github.com/yechaoa * CSDN : http://b...
sambains/IGDB
app/src/main/java/g33k/limited/igdb/core/base/BaseApplication.java
<gh_stars>1-10 package g33k.limited.igdb.core.base; import android.app.Application; import com.facebook.stetho.Stetho; import g33k.limited.igdb.BuildConfig; import g33k.limited.igdb.core.dependencies.AppComponent; import g33k.limited.igdb.core.dependencies.AppModule; import g33k.limited.igdb.core.dependencies.Dagger...
AnewbieXZB/GeiSHIHui
app/src/main/java/com/example/s/why_no/adapter/MessageRecordListAdapter.java
package com.example.s.why_no.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.example.s.why_no.R; import com.example.s.why_no.bean.MessageRecor...
torsten-schenk/gla
src/regex.c
#include <stdio.h> #include <pcre.h> #include "common.h" #include "regex.h" #define LOCALS_GROUPS(REGEX, NGROUP) \ const struct regex *regex = REGEXES + REGEX; \ int vec[NGROUP * 3 + 3]; \ int matches; #define EXEC_GROUPS \ do { \ if(len < 0) \ len = strlen(string); \ \ matches = pcre_exec(regex->compil...
cpswarm/modelio-cpswarm-modeler
src/main/java/org/modelio/module/cpswarm/type/Abstraction/Response.java
<reponame>cpswarm/modelio-cpswarm-modeler<filename>src/main/java/org/modelio/module/cpswarm/type/Abstraction/Response.java package org.modelio.module.cpswarm.type.Abstraction; import java.util.HashMap; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com....
cbodley/nexus
src/settings.cc
<filename>src/settings.cc #include <nexus/quic/settings.hpp> #include <lsquic.h> namespace nexus::quic { namespace detail { void read_settings(settings& out, const lsquic_engine_settings& in) { const auto us = std::chrono::microseconds(in.es_handshake_to); out.handshake_timeout = std::chrono::duration_cast<std::...