repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
leongold/ovirt-engine
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainDiskSnapshotResource.java
package org.ovirt.engine.api.restapi.resource; import javax.ws.rs.core.Response; import org.ovirt.engine.api.model.DiskSnapshot; import org.ovirt.engine.api.model.StorageDomain; import org.ovirt.engine.api.resource.DiskSnapshotResource; import org.ovirt.engine.core.common.action.RemoveDiskSnapshotsParameters; import ...
cloudradar-monitoring/frontman
ssl.go
<gh_stars>10-100 package frontman import ( "context" "crypto/tls" "crypto/x509" "fmt" "math" "net" "strings" "time" "github.com/sirupsen/logrus" ) const timeoutPortLookup = time.Second * 3 func certName(cert *x509.Certificate) string { return fmt.Sprintf("'%s' issued by %s", cert.Subject.CommonName, cert....
ride-austin/android
app/src/rider/java/com/rideaustin/ui/splitfare/FareSplitItemViewModel.java
package com.rideaustin.ui.splitfare; import android.databinding.ObservableField; import android.graphics.drawable.Drawable; import com.rideaustin.R; import com.rideaustin.api.model.faresplit.FareSplitResponse; import com.rideaustin.utils.RxImageLoader; import rx.Subscription; import rx.subscriptions.Subscriptions; ...
djgonza/Programacion
UT7/Eclipse/Juego2D/src/mapa/frame/sprite/Sprite.java
<filename>UT7/Eclipse/Juego2D/src/mapa/frame/sprite/Sprite.java package mapa.frame.sprite; import java.awt.Color; import java.util.ArrayList; public class Sprite { private ArrayList<Color[]> pixeles; private int animacion; private int tiempoAnimacion; public Sprite(int[] pixeles) { this.pixeles = new ArrayLi...
stasinek/BHAPI
src/kits/shared/private/HashMap.h
<reponame>stasinek/BHAPI // HashMap.h // // Copyright (c) 2004-2007, <NAME> (<EMAIL>) // // 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 /...
Bumblecat/Bumblecore
src/main/java/dev/bumblecat/bumblecore/common/windows/IWindowProvider.java
<reponame>Bumblecat/Bumblecore package dev.bumblecat.bumblecore.common.windows; import net.minecraft.network.chat.Component; import net.minecraft.world.MenuProvider; import net.minecraft.world.entity.player.Inventory; import net.minecraft.world.entity.player.Player; import net.minecraft.world.inventory.AbstractContain...
ParspooyeshFanavar/pyibsng
ibsng/handler/mc/dialer_delete_message.py
<reponame>ParspooyeshFanavar/pyibsng """Message Center info API method.""" from ibsng.handler.handler import Handler class dialerDeleteMessage(Handler): """Message Center info method class.""" def setup(self, message_id): """Setup required parameters. :param int message_id: :re...
sebastianolmos/final-reality
src/test/java/com/github/cc3002/finalreality/controller/WinConditionsTest.java
package com.github.cc3002.finalreality.controller; import com.github.cc3002.finalreality.gui.scenes.GameOverScene; import javafx.scene.Group; import javafx.scene.Node; import javafx.scene.Scene; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions....
Purva-Chaudhari/cmssw
Configuration/Generator/python/TauToMuMuMu_14TeV_TuneCP5_cfi.py
<reponame>Purva-Chaudhari/cmssw<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import * generator = cms.EDFilter("Pythia8ConcurrentGeneratorFilter", pythiaHepMCVerbosity =...
diguage/deep-in-design-patterns
src/main/java/com/diguage/didp/singleton/CorrectSerializableLazySingleton.java
package com.diguage.didp.singleton; import java.io.Serializable; /** * 可以序列化的懒汉式单例类 * * @author D瓜哥, https://www.diguage.com/ * @since 2014-5-26. */ public class CorrectSerializableLazySingleton implements Serializable { private static volatile CorrectSerializableLazySingleton instance = null; private Corr...
vadim-isakov/fullstack-task-manager
frontend/app/app/containers/Private/containers/LoadTask/index.js
import { createSelector } from 'reselect'; import fetcher from 'fetcher'; // Key const STATE_KEY = 'LoadTask'; // Actions function loadTask(taskId) { return fetcher.fetch(STATE_KEY, taskId); } function clearTask() { return fetcher.clear(STATE_KEY); } const actions = { loadTask, clearTask }; // Selectors const m...
Andreas237/AndroidPolicyAutomation
ExtractedJars/PACT_com.pactforcure.app/javafiles/android/support/design/internal/NavigationMenuPresenter$NavigationMenuAdapter.java
// Decompiled by Jad v1.5.8g. Copyright 2001 <NAME>. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package android.support.design.internal; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.v4.view.ViewCompat; import andr...
TTOFFLINE-LEAK/ttoffline
v2.5.7/toontown/parties/ToontownTimeManager.py
<filename>v2.5.7/toontown/parties/ToontownTimeManager.py import time from datetime import datetime, timedelta, tzinfo from direct.distributed import DistributedObject from direct.directnotify import DirectNotifyGlobal from toontown.toonbase import TTLocalizer class ToontownTimeZone(tzinfo): OFFSET = -8 DST_BEG...
meggsimum/masterportal-mirror
src/core/maps/store/actions/actionsMapLayers.js
<reponame>meggsimum/masterportal-mirror import VectorLayer from "ol/layer/Vector.js"; import VectorSource from "ol/source/Vector.js"; export default { /** * Creates a new vector layer and adds it to the map. * If it already exists, this layer is returned. * @param {Object} param store context. ...
maicongb/gerenciamentoVeiculoPolicial
src/main/java/br/gov/df/pm/domain/repository/StatusViaturaRepository.java
<gh_stars>0 package br.gov.df.pm.domain.repository; import br.gov.df.pm.domain.model.StatusViatura; public interface StatusViaturaRepository extends CustomJpaRepository<StatusViatura, Long>{ }
edmccrea/guess_the_lines
client/src/reducers/index.js
<reponame>edmccrea/guess_the_lines import { combineReducers } from 'redux'; import auth from './auth'; import picks from './picks'; import alert from './alert'; export default combineReducers({ auth, picks, alert, });
cwright7101/llvm_sarvavid
SarvLibrary/Kmerize/dsk/thirdparty/gatb-core/gatb-core/examples/debruijn/debruijn23.cpp
<reponame>cwright7101/llvm_sarvavid //! [snippet1] // We include what we need for the test #include <gatb/gatb_core.hpp> /********************************************************************************/ /* */ /******************************...
nizovn/luna-sysmgr
hooks/webkitpy/layout_tests/port/factory.py
<reponame>nizovn/luna-sysmgr #!/usr/bin/env python # Copyright (C) 2010 Google 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: # # * Redistributions of source code must retain the above c...
93million/certcache
src/extensions/certbot/normalizeMeta.js
<reponame>93million/certcache const getConfig = require('../../lib/getConfig') module.exports = async ({ ellipticCurve, keyType, isTest }) => { const config = await getConfig() ellipticCurve = ellipticCurve || config.ellipticCurve keyType = keyType || config.keyType return { ellipticCurve: (keyType === '...
mrouffet/SPlanner
Plugins/SPlanner/Source/SPlanner/Private/SPlanner/Base/Action/SP_Action.cpp
// Copyright 2020 <NAME>. All Rights Reserved. #include <SPlanner/Base/Action/SP_Action.h>
slicht-uri/Sandshark-Beta-Lab-
vehicle/ros/src/sandshark_drivers/frontseat/bfMessage.h
#ifndef BFMESSAGE_H #define BFMESSAGE_H #include "fnmea.h" #include "ros/ros.h" #include <string> #include <vector> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> //Base for all bluefin->payload messages class bfMessage: public fMessage { public: // Format the data contained with...
dialogs/dialog-web-components
src/components/SidebarMenuProfile/SidebarMenuProfile.js
<filename>src/components/SidebarMenuProfile/SidebarMenuProfile.js /* * Copyright 2019 dialog LLC <<EMAIL>> * @flow */ import type { AvatarPlaceholder, UserStatusType } from '@dlghq/dialog-types'; import React, { PureComponent } from 'react'; import classNames from 'classnames'; import Avatar from '../Avatar/Avatar'...
talmeym/regurgitator-core
src/main/java/com/emarte/regurgitator/core/ContainsBehaviour.java
<reponame>talmeym/regurgitator-core /* * Copyright (C) 2017 <NAME>. * Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ package com.emarte.regurgitator.core; import static com.emarte.regurgitator.core.Log.getLog; public final class ContainsBehaviour implements Conditio...
HazelChen/directory-kerberos
3rdparty/not-yet-commons-ssl/src/main/java/org/apache/commons/ssl/asn1/DERUTF8String.java
<gh_stars>1-10 package org.apache.commons.ssl.asn1; import java.io.IOException; /** DER UTF8String object. */ public class DERUTF8String extends ASN1Object implements DERString { String string; /** * return an UTF8 string from the passed in object. * * @throws IllegalArgumentException ...
KanegaeGabriel/ye-olde-interview-prep-grind
LeetCode/0237_delete_node_in_ll.py
class Node: def __init__(self, val): self.val = val self.next = None def deleteNode(node): node.val = node.next.val node.next = node.next.next root = Node(1) root.next = Node(2) root.next.next = Node(3) root.next.next.next = Node(4) root.next.next.next.next = Node(5) deleteNode(root.next....
mikchaos/whoville
whoville/cloudbreak/models/reinstall_request_v2.py
<reponame>mikchaos/whoville # coding: utf-8 """ Cloudbreak API Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand ...
kkuegler/a-collections
a-collections/src/main/java/com/ajjpj/acollections/immutable/ATreeSet.java
<filename>a-collections/src/main/java/com/ajjpj/acollections/immutable/ATreeSet.java package com.ajjpj.acollections.immutable; import com.ajjpj.acollections.*; import com.ajjpj.acollections.internal.ACollectionDefaults; import com.ajjpj.acollections.internal.ACollectionSupport; import com.ajjpj.acollections.internal.A...
erick-jaimes/sistop-2020-2
proyectos/2/AlcantaraCarlosJimenezEduardo/archivosFuente/GUI/Persona.java
package GUI; // @Author: <NAME> <NAME> & <NAME> <NAME> public class Persona extends Thread{ private String nombre; private JuegoMecanico juego; private Cola colaEntrarAlJuego; private Cola colaSalirDelVagon; public Persona(String nombre,JuegoMecanico juego){ this.nombre=n...
coypanglei/nanjinJianduo
app/src/main/java/com/shaoyue/weizhegou/module/address/adapter/ShippingAdapter.java
package com.shaoyue.weizhegou.module.address.adapter; import android.support.annotation.Nullable; import android.widget.TextView; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.shaoyue.weizhegou.R; import com.shaoyue.weizhegou.entity.center.Addre...
vgauri1797/Eclipse
WebAppBuilderForArcGIS/client/stemapp3d/widgets/3DFx/setting/nls/id/strings.js
<filename>WebAppBuilderForArcGIS/client/stemapp3d/widgets/3DFx/setting/nls/id/strings.js define({ "viz_settings": "Pengaturan visualisasi", "viz_type": "Jenis visualisasi", "max_height": "Tinggi Simbol Maks (meter)", "max_width": "Lebar simbol Maks (meter)", "interval": "Interval (milidetik)", "show_p...
zyzisyz/OJ
acwing/0789.cpp
#include<iostream> #include<algorithm> #include<vector> using namespace std; int main(void){ int n,q; cin>>n>>q; vector<int> table(n, 0); for(int i=0; i<n; i++){ cin>>table[i]; } for(int i=0; i<q; i++){ int k; cin>>k; auto pos = lower_bound(table.begin(), table.end(), k); if(pos!=table.end() && *po...
alegione/CodonShuffle
lib/ViennaRNA-2.1.9/doc/html/structpu__out.js
var structpu__out = [ [ "len", "structpu__out.html#a314b8f43c3ee0bf6060afbeced5dbe6c", null ], [ "u_vals", "structpu__out.html#a7697bc7a46cd1b8e37e337e708cb6023", null ], [ "contribs", "structpu__out.html#a638b0de1837cfd441871d005d3ab2938", null ], [ "header", "structpu__out.html#ac9e9e30b16e7d04c770460...
seanders/npr_bumps
app/controllers/person_controller.rb
class PersonController < ApplicationController before_filter :require_person before_filter :require_auth, only: [:show] def show @playlists = @person.playlists end end
wyaadarsh/LeetCode-Solutions
Java/0207-Course-Schedule/soln.java
<reponame>wyaadarsh/LeetCode-Solutions class Solution { public boolean canFinish(int numCourses, int[][] prerequisites) { int[] degrees = new int[numCourses]; Stack<Integer> frees = new Stack<>(); ArrayList<Integer>[] graph = new ArrayList[numCourses]; for(int i = 0; i < numCourses; ...
TinsPHP/tins-symbols
src/ch/tsphp/tinsphp/symbols/erroneous/ErroneousTypeSymbol.java
<filename>src/ch/tsphp/tinsphp/symbols/erroneous/ErroneousTypeSymbol.java /* * This file is part of the TinsPHP project published under the Apache License 2.0 * For the full copyright and license information, please have a look at LICENSE in the * root folder or visit the project's website http://tsphp.ch/wiki/displ...
NVoronchev/pikuli
pikuli/uia/adapter/adapter.py
# -*- coding: utf-8 -*- from .identifer_names import element_property_names, control_type_names from .helper_types import IdNameMap from .pattern_description import PatternDescriptions from .platform_init import OsAdapterMixin class AdapterMeta(type): def __new__(mcls, name, bases, dct): cls = super(Ada...
mlexperimentsedge/scray
scray-cassandra/src/main/scala/scray/cassandra/extractors/DomainToCQLQueryMapping.scala
// See the LICENCE.txt file distributed with this work for additional // information regarding copyright ownership. // // 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...
AMHOL/activejob-lock
lib/activejob/lock/version.rb
module Activejob module Lock VERSION = "0.0.2" end end
traies/paw2017a1frontend
app/scripts/i18n/translations.en.js
<filename>app/scripts/i18n/translations.en.js 'use strict'; define([], function() { return { WELCOME_MESSAGE : 'Welcome to Vapor.', SLOGAN : 'Connect with your friends \u2014 and other gamers in the world. Get in-the-moment updates on the games that interest you.', FIND_GAMES : 'Find your favorite games' , G...
vietpv94/files-sharing
backend/webserver/api/file.js
<filename>backend/webserver/api/file.js 'use strict'; const authMiddleware = require('../middleware/authentication'); const files = require('../controllers/files'); module.exports = function(router) { router.post('/file', authMiddleware.isAuthenticated, files.create); router.put('/file/:id', authMiddleware.isAuth...
iWzl/dew-rubbish-smart-community-backend
dew-smart-cloud-community-push/src/main/java/com/upuphub/dew/community/push/component/sender/MailGunSender.java
package com.upuphub.dew.community.push.component.sender; import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.JsonNode; import com.mashape.unirest.http.Unirest; import com.upuphub.dew.community.connection.common.JsonHelper; import com.upuphub.dew.community.connection.constant.PushConst; import...
pierredup/sentry
tests/sentry/api/endpoints/test_monitor_checkin_details.py
<reponame>pierredup/sentry from __future__ import absolute_import, print_function from datetime import timedelta from django.utils import timezone from sentry.models import CheckInStatus, Monitor, MonitorCheckIn, MonitorStatus, MonitorType from sentry.testutils import APITestCase class UpdateMonitorCheckInTest(APIT...
charlesj/Apollo
client/src/redux/financial/actions.js
<reponame>charlesj/Apollo import { createActions, } from 'redux-actions' import { basicActions, dispatchBasicActions, } from '../redux-helpers' import apolloServer from '../../services/apolloServer' import { NotifySuccess, } from '../../services/notifier' const actionCreators = createActions({ financial: { loadA...
Douglasdsm/web-css-html-javascript
funcao/exerciciosFuncoes/atividade10.js
/*Crie uma função que verifica se um número inteiro passado como parêmetro é divisível por 3 e retorne true ou false*/ function verificar(n){ if(n % 3 == 0){ return true }else{ return false } } console.log(verificar(2)); console.log(verificar(5)); console.log(verificar(14)); console.log(veri...
jeanchalard/jface
Common/src/main/java/com/j/jface/FutureValue.java
<gh_stars>0 package com.j.jface; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import java.util.concurrent.Semaphore; public class FutureValue<T> implements Future<T> { private class Obj { @NonNull public static final String UNKNOWN_ERROR = "FutureValue : Unknown error"; @Nulla...
wiltonlazary/Nidium
tests/gunittest/unittest.cpp
<gh_stars>1000+ /* Copyright 2016 Nidium Inc. All rights reserved. Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ #include "unittest.h" #include <jsapi.h> unsigned long _ape_seed = 31415961;
mavaddat-javid-education/java-debugging-DucklyFish
Chapter11/CodeInFigures/TalkingAnimalDemo.java
public class TalkingAnimalDemo { public static void main(String[] args) { Dog dog = new Dog(); Cow cow = new Cow(); dog.setName("Ginger"); cow.setName("Molly"); talkingAnimal(dog); talkingAnimal(cow); } public static void talkingAnimal(Animal animal) { ...
patriciaTel/TFG-Spread
app/src/main/java/com/ucm/informatica/spread/Presenter/ProfileFragmentPresenter.java
<gh_stars>1-10 package com.ucm.informatica.spread.Presenter; import com.ucm.informatica.spread.View.ProfileFragmentView; import com.ucm.informatica.spread.Model.Colours; public class ProfileFragmentPresenter { private Boolean editView = false; private Boolean editWatchword = false; private Colours shirt...
rockspoon/soajs
test/unit/classes/MultiTenantSession.js
<filename>test/unit/classes/MultiTenantSession.js "use strict"; /** * @license * Copyright SOAJS All Rights Reserved. * * Use of this source code is governed by an Apache license that can be * found in the LICENSE file at the root of this repository */ const helper = require("../../helper.js"); const multiTenan...
octonion/baseball-public
bbref/scrapers/pitching.rb
<gh_stars>10-100 #!/usr/bin/env ruby # coding: utf-8 bad = " " require "csv" require "mechanize" agent = Mechanize.new{ |agent| agent.history.max_size=0 } agent.user_agent = 'Mozilla/5.0' reports = ["standard-pitching","value-pitching","batting-pitching", "win_probability-pitching","starter-pitching","reliever-pitc...
samirans89/wcm-io-qa-galenium
modules/sampling/src/main/java/io/wcm/qa/glnm/sampling/jsoup/JsoupCookieSampler.java
/* * #%L * wcm.io * %% * Copyright (C) 2019 wcm.io * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
statisticsnorway/linked-data-store-core
src/main/java/no/ssb/lds/graphql/schemas/visitors/AddConnectionVisitor.java
package no.ssb.lds.graphql.schemas.visitors; import graphql.schema.GraphQLArgument; import graphql.schema.GraphQLDirective; import graphql.schema.GraphQLFieldDefinition; import graphql.schema.GraphQLFieldsContainer; import graphql.schema.GraphQLInterfaceType; import graphql.schema.GraphQLList; import graphql.schema.Gr...
javierbrea/narval
test/integration/specs/api-coverage/docker.test-ok.specs.js
const test = require('../../../../index') const utils = require('../../../../utils') test.describe('api-docker-coverage suite execution passing tests', () => { let outerrLog test.before(async () => { outerrLog = await utils.logs.combined('package-test') }) test.it('should have passed tests', () => { ...
flowarko/astrobee
tools/bag_processing/scripts/splice_bag.py
<filename>tools/bag_processing/scripts/splice_bag.py #!/usr/bin/env python # Copyright (c) 2017, United States Government, as represented by the # Administrator of the National Aeronautics and Space Administration. # # All rights reserved. # # The Astrobee platform is licensed under the Apache License, Version 2.0 # (t...
Montana-Media-Arts/120_CreativeCoding
lecture_code/10/extra_examples/01-multiple-stars/sketch.js
var location1 = 10; var location2 = 10; var starArr = [ [5, 0], [7, 11], [0, 4], [10, 4], [3, 11] ]; var idx = 0; function setup() { // createCanvas(windowWidth, windowHeight); createCanvas(windowWidth, 800); background(18, 82, 189); // frameRate(20); } function draw() { ...
ShunjiroOsada/jsk_visualization_package
jsk_rviz_plugins/scripts/twist_stamped_add_header.py
#!/usr/bin/env python import rospy import sys from geometry_msgs.msg import Twist, TwistStamped rospy.init_node("twist_stamped_add_header") pub = rospy.Publisher("cmd_vel_stamped", TwistStamped) def callback(msg): global pub output = TwistStamped() output.header.stamp = rospy.Time.now() output.header...
GabrielSturtevant/mage
Mage.Sets/src/mage/cards/a/AngelicFieldMarshal.java
package mage.cards.a; import java.util.UUID; import mage.MageInt; import mage.abilities.abilityword.LieutenantAbility; import mage.abilities.effects.ContinuousEffect; import mage.abilities.effects.common.continuous.GainAbilityControlledEffect; import mage.abilities.keyword.FlyingAbility; import mage.abilities.keyword...
henviso/contests
CODEFORCES/224/a.cpp
<reponame>henviso/contests #include <iostream> #include <cstdio> #include <string> #include <cstring> #include <cstdlib> #include <stack> #include <algorithm> #include <cctype> #include <vector> #include <queue> #include <tr1/unordered_map> #include <cmath> #include <map> #include <bitset> using namespace std; typedef ...
lizij/Leetcode
src/Sum_of_Two_Integers/Solution.java
package Sum_of_Two_Integers; public class Solution { public int getSum(int a, int b) { return (b == 0) ? a : getSum(a ^ b, (a & b) << 1); } public static void main(String[] args) { } }
bieniekmateusz/forcebalance
src/tests/test_continue.py
from __future__ import absolute_import from builtins import str import os, sys, shutil from .__init__ import ForceBalanceTestCase from forcebalance.parser import parse_inputs from forcebalance.forcefield import FF from forcebalance.objective import Objective from forcebalance.optimizer import Optimizer, Counter import ...
packtBhagyashree/Java-EE-8-High-Performance-video-
Section4/CollectionsCompare/jmh-tests/src/main/java/collections/compare/demo/cards/CartesianProductTest.java
package collections.compare.demo.cards; import java.util.Collections; import java.util.Comparator; import java.util.EnumSet; import java.util.SortedSet; import java.util.TreeSet; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; import io.vavr.collection.List; import org.eclipse.collections.ap...
tizenorg/platform.core.uifw.dali-core
dali/internal/event/images/frame-buffer-image-impl.cpp
/* * Copyright (c) 2015 Samsung Electronics Co., Ltd. * * 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...
NotBjoggisAtAll/Tomato-Engine
src/Widgets/meshwidget.h
#ifndef MESHWIDGET_H #define MESHWIDGET_H #include <QWidget> #include "types.h" struct Mesh; namespace Ui { class MeshWidget; } /** * The MeshWidget shows the Mesh component in the editor. */ class MeshWidget : public QWidget { Q_OBJECT public: /** * Default constructor. * Taking in an entity w...
akarakoc/Communityverse
community/migrations/0021_communities_communitytags.py
<gh_stars>0 # Generated by Django 2.2.6 on 2019-11-25 20:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('community', '0020_auto_20191125_1955'), ] operations = [ migrations.AddField( model_name='communities', ...
onezens/QQTweak
qqtw/qqheaders7.2/APMidasMbInputViewController.h
<gh_stars>1-10 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "UIViewController.h" #import "APMidasMbH5ViewControllerDelegate.h" #import "APMidasMbInputViewDelegate.h" #import "UIGestureRecognizerDelegate.h" @class APMidasBi...
migleankstutyte/kaavapino-ui
src/__tests__/components/input/FieldAutofill.test.js
<reponame>migleankstutyte/kaavapino-ui import { EDIT_PROJECT_TIMETABLE_FORM } from '../../../constants' import { getFieldAutofillValue } from '../../../utils/projectAutofillUtils' describe('Autofill tests', () => { it('Autofill rule succeeds (string)', () => { const field = {} const conditionObject = {} c...
guyi-maple/message-stream
message-stream-api/src/main/java/tech/guyi/component/message/stream/api/stream/MessageStream.java
package tech.guyi.component.message.stream.api.stream; import lombok.NonNull; import tech.guyi.component.message.stream.api.attach.AttachKey; import java.util.Map; import java.util.Optional; /** * <p>消息流接口.</p> * <p>实现此接口,获取不同来源的消息</p> * @author guyi * @param <T> 消息推送返回类型 */ public interface MessageStream<T> { ...
uni-william/prime
src/main/java/br/com/sis/bean/PesquisaTipoDespesaBean.java
<reponame>uni-william/prime package br.com.sis.bean; import java.io.Serializable; import java.util.List; import javax.faces.view.ViewScoped; import javax.inject.Inject; import javax.inject.Named; import org.primefaces.event.SelectEvent; import org.primefaces.event.UnselectEvent; import br.com.sis.entity.TipoDespesa...
luciano/studying_android
Views/app/src/main/java/android/teste/arquivos/views/MainActivity.java
package android.teste.arquivos.views; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ListView; public class MainActivity extends Activi...
wesulee/http-server
src/http_server/Request.java
package http_server; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; public class Request { public final Connection conn; public final Response resp; public RequestMethod method = RequestMethod.INVALID; public String URI = null; // request-URI public ArrayL...
ricardyn/ironpython-stubs
stubs.min/System/Windows/Controls/__init___parts/ViewBase.py
<filename>stubs.min/System/Windows/Controls/__init___parts/ViewBase.py class ViewBase(DependencyObject): """ Represents the base class for views that define the appearance of data in a System.Windows.Controls.ListView control. """ def ClearItem(self,*args): """ ClearItem(self: ViewBase,item: ListViewItem) ...
yanagi0324/design_patterns_ruby
interpreter/or.rb
require 'expression' class Or < Expression def initialize(expr1, expr2) @expr1, @expr2 = expr1, expr2 end def evaluate(dir) result1 = @expr1.evaluate(dir) result2 = @expr2.evaluate(dir) (result1 + result2).sort.uniq end end
baocaixue/spring-dk
chapter15/jmx/src/main/java/com/isaac/ch15/AppStatistics.java
<reponame>baocaixue/spring-dk<filename>chapter15/jmx/src/main/java/com/isaac/ch15/AppStatistics.java<gh_stars>1-10 package com.isaac.ch15; public interface AppStatistics { int getTotalSingerCount(); }
liying2008/XDPlayer
app/src/main/java/lxy/liying/hdtvneu/db/XDVideoService.java
<filename>app/src/main/java/lxy/liying/hdtvneu/db/XDVideoService.java<gh_stars>1-10 package lxy.liying.hdtvneu.db; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import java.util.ArrayList; import java.util.List; import lxy.liying.hdtvneu.dom...
Haakenlid/grenselandet
applications/tickets/migrations/0011_auto_20140919_2338.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('tickets', '0010_payment_currency'), ] operations = [ migrations.AlterField( model_name='payment', na...
tmpsantos/chromium
components/component_updater/component_updater_service.cc
// Copyright 2014 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. #include "components/component_updater/component_updater_service.h" #include <algorithm> #include <set> #include <vector> #include "base/at_exit.h" #inc...
matte21/istio
istioctl/pkg/install/verify_test.go
<reponame>matte21/istio<filename>istioctl/pkg/install/verify_test.go<gh_stars>1-10 // Copyright 2019 Istio 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.ap...
ausbin/qcor
tools/qopt/passes/xacc-jit-pass/jit_utils.hpp
<gh_stars>10-100 #pragma once #include "llvm/ADT/StringRef.h" #include "llvm/ExecutionEngine/JITSymbol.h" #include "llvm/ExecutionEngine/Orc/CompileUtils.h" #include "llvm/ExecutionEngine/Orc/Core.h" #include "llvm/ExecutionEngine/Orc/ExecutionUtils.h" #include "llvm/ExecutionEngine/Orc/IRCompileLayer.h" #include "llv...
Pokecube-Development/Pokecube-Core
src/main/java/pokecube/core/interfaces/pokemob/commandhandlers/AttackLocationHandler.java
<reponame>Pokecube-Development/Pokecube-Core package pokecube.core.interfaces.pokemob.commandhandlers; import io.netty.buffer.ByteBuf; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.text.TextComponentTranslation; import net.minecraftforge.common.MinecraftForge; import pokecube.core.even...
dhirajsb/camel
components/camel-web/src/main/webapp/js/dojox/gfx/attach.js
<reponame>dhirajsb/camel /* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ dojo.require("dojox.gfx"); dojo.requireIf(dojox.gfx.renderer=="svg","dojox.gfx.svg_attach"); dojo....
stereoabuse/codewars
problems/function_multiplya_b.py
<reponame>stereoabuse/codewars # function multiply(a, b){ # JavaScript: }
skapil/practice-programming
kickstart/recursion/strings_problems.py
<gh_stars>0 from types import SimpleNamespace def longest_common_substring(first_input: str, second_input: str): substring = SimpleNamespace(max_len=0, word=[]) def helper(first_idx: int, second_idx: int, slate: list, cur_len: int): if first_idx >= len(first_input) or second_idx >= len(second_input):...
pcsanwald/kibana
x-pack/test/functional/services/index.js
<reponame>pcsanwald/kibana /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ export * from './monitoring'; export { PipelineLis...
motor-dev/Motor
src/motor/scheduler/api/motor/scheduler/kernel/parameters/image3d.hh
/* Motor <<EMAIL>> see LICENSE for detail */ #ifndef MOTOR_SCHEDULER_KERNEL_PARAMETER_IMAGE3D_HH_ #define MOTOR_SCHEDULER_KERNEL_PARAMETER_IMAGE3D_HH_ /**************************************************************************************************/ #include <motor/scheduler/stdafx.h> #include <motor/scheduler/ke...
jason-invision/electronegativity
test/checks/AtomicChecks/HTTP_RESOURCES_JS_CHECK_2_0.js
<reponame>jason-invision/electronegativity win = new BrowserWindow(); win.loadURL('https://doyensec.com/');
josehu07/SplitFS
kernel/linux-5.4/drivers/regulator/helpers.c
<filename>kernel/linux-5.4/drivers/regulator/helpers.c // SPDX-License-Identifier: GPL-2.0-or-later // // helpers.c -- Voltage/Current Regulator framework helper functions. // // Copyright 2007, 2008 Wolfson Microelectronics PLC. // Copyright 2008 SlimLogic Ltd. #include <linux/kernel.h> #include <linux/err.h> #incl...
thilinaviraj/TrackPal
__tests__/_users_/view_shared_screen_test.js
import React from 'react'; import SharingScreen from '../../app/screens/SharingScreen/sharingScreen.js'; import renderer from 'react-test-renderer'; jest.useFakeTimers(); test('renders correctly', () => { const tree = renderer.create(<SharingScreen/>).toJSON(); expect(tree).toMatchSnapshot({ state: expect....
moises-dias/hunter-adventures
arquivos .h e .cpp/Rastro.h
<reponame>moises-dias/hunter-adventures<filename>arquivos .h e .cpp/Rastro.h #ifndef RASTRO_H #define RASTRO_H #include "Efeito.h" class Rastro: public Efeito { public: Rastro(); Rastro(Vetor_R2 p, ALLEGRO_BITMAP* img, int sX, int sY, float coef, float velDes, float alphaIni, float ...
shuwenjin/dcwlt
dcwlt-modules/dcwlt-pay-online/src/main/java/com/dcits/dcwlt/pay/online/service/CoreServiceSend.java
<gh_stars>0 //package com.dcits.dcwlt.pay.online.service; // //import com.alibaba.fastjson.JSONObject; //import com.dcits.dcwlt.common.core.constant.ServiceNameConstants; //import org.springframework.cloud.openfeign.FeignClient; //import org.springframework.web.bind.annotation.GetMapping; //import org.springframework.w...
hobson/ggpy
ggpy/cruft/autocode/PropNet.py
#!/usr/bin/env python """ generated source for module PropNet """ # package: org.ggp.base.util.propnet.architecture import java.io.File import java.io.FileOutputStream import java.io.OutputStreamWriter import java.util.HashMap import java.util.HashSet import java.util.List import java.util.Map import java.util.S...
leegoonz/Maya-devkit
osx/devkit/plug-ins/AbcImport/main.cpp
<reponame>leegoonz/Maya-devkit //-***************************************************************************** // // Copyright (c) 2009-2011, // <NAME>, Inc. and // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. // // All rights reserved. // // Redistribution and use in source and binar...
b4hand/sauce
vendor/uncrustify-0.59/tests/input/c/global-vars.c
<reponame>b4hand/sauce static int another_try; struct something yup; align_me_t please; const char *name = "hello"; static nothing really;
kll5h/ShinetechOA
src/main/java/com/mossle/simulator/jms/MessageContext.java
<filename>src/main/java/com/mossle/simulator/jms/MessageContext.java package com.mossle.simulator.jms; import java.util.HashMap; import java.util.Map; public class MessageContext { private Map<String, Object> attributes = new HashMap<String, Object>(); public Object getAttribute(String key) { return ...
gompus/gompus
rest/voice/list_regions.go
package voice import ( "github.com/gompus/gompus/models/voice" "github.com/gompus/gompus/rest/client" "github.com/gompus/gompus/rest/client/auth" ) // ListRegions retrieves a set of voice regions that can be // used when setting a voice or stage channel's rtc region. func ListRegions(token auth.Token) (regions []v...
mbits-os/tangle
browser/include/tangle/browser/walk/std_actions.hpp
<filename>browser/include/tangle/browser/walk/std_actions.hpp // Copyright (c) 2021 midnightBITS // This code is licensed under MIT license (see LICENSE for details) #pragma once #include <tangle/browser/walk/selector_action.hpp> namespace tangle::browser::walk { struct std_action_env { virtual ~std_action_env();...
FlorianPatzer/symp_security_analysis_engine
src/main/java/de/fraunhofer/iosb/svs/sae/exceptions/ResourceAlreadyExistsException.java
package de.fraunhofer.iosb.svs.sae.exceptions; public class ResourceAlreadyExistsException extends RuntimeException { public ResourceAlreadyExistsException(String item, String field, String value) { super("Resource '" + item + "' with field '" + field + "' and value '" + value + "' already exists"); } ...
dined1/demo
impl/src/main/java/com/example/demo/model/Constants.java
package com.example.demo.model; public class Constants { public static final long ACCESS_TOKEN_VALIDITY_SECONDS = 3600*60*60; public static final String SIGNING_KEY = "<KEY>"; public static final String TOKEN_PREFIX = "Bearer "; public static final String HEADER_STRING = "Authorization"; public st...
benmont/ccifra.github.io
HighDpiRenderPerformance/ni-webvi-resource-v0/Web/Elements/ni-hyperlink.js
//**************************************** // Hyperlink Custom Element // DOM Registration: No // National Instruments Copyright 2015 //**************************************** 'use strict'; JQX('ni-hyperlink', class Hyperlink extends JQX.BaseElement { // Hyperlink's properties. static get properties() { ...
P1umer/ChakraCore
test/Object/ObjectHeaderInlining_NewPropNoInlineCache_StaticType.js
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
Logicalis/eugenio-devices
AzureMXChip/MXCHIPAZ3166/core/lib/netxduo/nx_secure/src/nx_secure_dtls_session_start.c
<filename>AzureMXChip/MXCHIPAZ3166/core/lib/netxduo/nx_secure/src/nx_secure_dtls_session_start.c<gh_stars>1-10 /**************************************************************************/ /* */ /* Copyright (c) Microsoft Corporation. All right...