repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ipsod/psml
examples/attic/dice.py
import sys sys.path.append( "../psml" ) from psml import * def dice_text1( n, t, f, r ): return ( shift( n / 2.0, n / 2.0, 0 ) ** extrude( 1 ) ** text( t, ( ( n - r ) * f ) / 100 ), halign = "center", valign = "center") def dice_text2( n, t1, t2, f, r ): return ( shift( n / ...
sebtelko/pulumi-azure-native
sdk/go/azure/hardwaresecuritymodules/dedicatedHsm.go
<filename>sdk/go/azure/hardwaresecuritymodules/dedicatedHsm.go<gh_stars>0 // *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package hardwaresecuritymodules import ( "context" "reflect" "github.com/pkg/errors" ...
ganeshsp1/javaWebHook
src/main/java/vo/Contexts.java
package vo; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @JsonIgnoreProperties(ignoreUnknown = true) public class Contexts { private String name; private Parameters parameters; private String lifespan; public String getName () { return name; } p...
KASTKING/KASTKING-CLOUD1
kastking-salesforecast-server/src/main/java/com/kastking/warehouse/controller/WarehouseController.java
package com.kastking.warehouse.controller; import java.util.List; import com.kastking.warehouse.domain.Warehouse; import com.kastking.warehouse.service.IWarehouseService; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframe...
mailrest/maildal
src/main/java/com/mailrest/maildal/repository/MessageLogRepository.java
/* * Copyright (C) 2015 Noorq, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
yeelin/betweenus
app/src/main/java/com/example/yeelin/projects/betweenus/data/google/query/GooglePlacePhotosHelper.java
package com.example.yeelin.projects.betweenus.data.google.query; import android.net.Uri; import android.util.Log; import com.example.yeelin.projects.betweenus.data.LocalConstants; import java.net.MalformedURLException; import java.net.URL; /** * Created by ninjakiki on 3/21/16. */ public class GooglePlacePhotosHe...
adnansorg/kibana_calendar_vis
public/__tests__/lib/dispatcher.js
<reponame>adnansorg/kibana_calendar_vis /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Versi...
Automedon/CodeWars-7-kata
Valid HK Phone Number.js
<reponame>Automedon/CodeWars-7-kata<filename>Valid HK Phone Number.js /* Description: Valid HK Phone Number Overview In Hong Kong, a valid phone number has the format xxxx xxxx where x is a decimal digit (0-9). For example: "1234 5678" // is valid "2359 1478" // is valid "85748475" // invalid, as there are no spaces s...
hbxie/bullet-ui
tests/unit/validators/group-metric-presence-test.js
/* * Copyright 2016, Yahoo Inc. * Licensed under the terms of the Apache License, Version 2.0. * See the LICENSE file associated with the project for terms. */ import { A } from '@ember/array'; import EmberObject from '@ember/object'; import { module, test } from 'qunit'; import { setupTest } from 'ember-qunit';...
jumpingfella/JBookTrader
jsystemtrader/src/main/java/com/jsystemtrader/chart/FastXYPlot.java
package com.jsystemtrader.chart; import java.awt.*; import java.awt.geom.*; import java.util.*; import org.jfree.chart.axis.*; import org.jfree.chart.plot.*; import org.jfree.chart.renderer.xy.*; import org.jfree.data.general.*; import org.jfree.data.xy.*; public class FastXYPlot extends XYPlot { private final M...
zbmain/PGL
legacy/examples/distribute_metapath2vec/utils.py
<reponame>zbmain/PGL # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
angainor/prrte
src/mca/routed/radix/routed_radix_component.c
<gh_stars>0 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2007-2015 Los Alamos National Security, LLC. * All rights reserved. * Copyright (c) 2004-2008 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 2013...
muit/FecoEngine
Source/Engine/Tools/Profiler.h
<filename>Source/Engine/Tools/Profiler.h<gh_stars>1-10 // Copyright 2015-2019 Piperift - All rights reserved #pragma once #include <tracy/Tracy.hpp> #include "Core/Log.h" #define ScopedZone(Name, Color) ZoneScopedNC(Name, 0x##Color) #define ScopedGameZone(Name) ScopedZone(Name, 459bd1) #define ScopedGraphicsZ...
astefanova/xsk
modules/parsers/parser-hdbcalculationview/src/main/java/com/sap/ndb/searchmodelsearch/SearchableElementProperties.java
<reponame>astefanova/xsk<gh_stars>0 /* * Copyright (c) 2019-2021 SAP SE or an SAP affiliate company and XSK contributors * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, v2.0 * which accompanies this distribution, and is available at ...
ScalablyTyped/SlinkyTyped
e/expo-font/src/main/scala/typingsSlinky/expoFont/anon.scala
package typingsSlinky.expoFont import typingsSlinky.expoFont.fontTypesMod.FontDisplay import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object anon { /* Inlined std.Pick<exp...
jensonwe/mvvmFX
mvvmfx/src/main/java/de/saxsys/mvvmfx/ViewTuple.java
<reponame>jensonwe/mvvmFX<gh_stars>100-1000 /******************************************************************************* * Copyright 2013 <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...
NightOfTwelve/android_device_huawei_hwp7
kernel/huawei/hwp7/drivers/misc/gpu_drv/arch/XAQ2/hal/user/gc_hal_user_hardware_precomp.h
<gh_stars>1-10 /**************************************************************************** * * Copyright (c) 2005 - 2013 by Vivante Corp. All rights reserved. * * The material in this file is confidential and contains trade secrets * of Vivante Corporation. This is proprietary information owned by * Viva...
crazysal/chemml
chemml/models/__init__.py
<gh_stars>0 """ The 'chemml.models' module includes (please click on links adjacent to function names for more information): - OrganicLorentzLorenz: :func:`~chemml.models.keras.trained.OrganicLorentzLorenz` - MLP: :func:`~chemml.models.keras.mlp.MLP` """ from chemml.models.keras.mlp import MLP from chemml.mode...
corvus-ch/bilocation
main.go
<reponame>corvus-ch/bilocation package main import ( "fmt" "github.com/corvus-ch/bilocation/cmd" stdLog "log" "os" "github.com/bketelsen/logr" "github.com/corvus-ch/logr/std" "github.com/corvus-ch/logr/writer_adapter" "gopkg.in/alecthomas/kingpin.v2" ) var ( version = "dev" commit = "none" date = "unk...
ndtung01061999/catiny
.generate/template/skote/skote-admin/src/pages/Icons/IconDripicons.js
import React from "react" import MetaTags from 'react-meta-tags'; import { Row, Col, Card, CardBody, Container } from "reactstrap" //Import Breadcrumb import Breadcrumbs from "../../components/Common/Breadcrumb" const IconDripicons = () => { return ( <React.Fragment> <div className="page-content"> ...
DasLixou/cloudsystem
polocloud-modules/npc-module/src/main/java/de/polocloud/npcs/service/INPCService.java
package de.polocloud.npcs.service; public interface INPCService { void loadNPCs(); void reloadNPCs(); void updateNPCs(); void registerListeners(); }
almondtools/stringbench
src/main/java/com/almondtools/stringbench/analyzer/UpdateBenchmarks.java
<reponame>almondtools/stringbench package com.almondtools.stringbench.analyzer; import static java.util.stream.Collectors.groupingBy; import static java.util.stream.Collectors.maxBy; import static java.util.stream.Collectors.toList; import static org.simpleflatmapper.csv.CsvColumnDefinition.customReaderDefinition; imp...
manongzcg/dsjksh
src/main/java/cn/epi/datasource/dao/FDatabaseDao.java
<reponame>manongzcg/dsjksh<filename>src/main/java/cn/epi/datasource/dao/FDatabaseDao.java package cn.epi.datasource.dao; import cn.epi.common.ICrudDao; import cn.epi.common.annotation.MyBatisDao; import cn.epi.datasource.entity.DataSourceEntity; import cn.epi.datasource.entity.FileSource; /** * Created by mwu on 5/1...
maulikpatel93/salonreact
src/component/form/Validation.js
const digitOnly = (value) => { if (value !== undefined) { return (/^\d+$/.test(value)); } return true; }; const decimalOnly = (value) => { if (value !== undefined) { return (/^\d{1,6}(\.\d{1,2})?$/.test(value)); } return true; }; export { digitOnly, decimalOnly };
challabeehyv/commcare-hq
corehq/apps/userreports/tests/test_report_builder.py
<reponame>challabeehyv/commcare-hq from django.test import TestCase from mock import patch from corehq.apps.app_manager.models import Application, Module from corehq.apps.app_manager.tests.app_factory import AppFactory from corehq.apps.userreports.app_manager.data_source_meta import ( DATA_SOURCE_TYPE_CASE, D...
awatson1978/inferno-core
lib/inferno/dsl/fhir_client_builder.rb
require 'fhir_client' module Inferno module DSL # DSL for configuring FHIR clients class FHIRClientBuilder attr_accessor :runnable # @private def build(runnable, block) self.runnable = runnable instance_exec(self, &block) FHIR::Client.new(url).tap do |client| ...
nakedible/vpnease-l2tp
openswan/openswan-2.4.0rc4.quilt/programs/pluto/rcv_whack.c
<reponame>nakedible/vpnease-l2tp /* whack communicating routines * Copyright (C) 1997 <NAME>. * Copyright (C) 1998-2001 <NAME>. * * This program 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 ve...
ChronicallySerious/Rootex
rootex/vendor/Effekseer/effekseer/src/EffekseerRendererDX11/EffekseerRenderer/Shader/EffekseerRenderer.ModelRenderer.ShaderTexture_VS.h
#if 0 // // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111 // // // fxc /Zpc /Tvs_5_0 /EVS /D __EFFEKSEER_BUILD_VERSION16__=1 /Fh // Shader/EffekseerRenderer.ModelRenderer.ShaderTexture_VS.h // Shader/model_renderer_texture_VS.fx // // // Buffer Definitions: // // cbuffer VS_ConstantBuffer // { ...
Vizzuality/sustainable-cities-api
db/migrate/20170315152630_create_notifications.rb
# frozen_string_literal: true class CreateNotifications < ActiveRecord::Migration[5.1] def change create_table :notifications do |t| t.belongs_to :user, index: true, foreign_key: true t.references :notificable, polymorphic: true t.text :summary t.integer :counter, default: 1 ...
alexey-anufriev/intellij-community
platform/statistics/src/com/intellij/internal/statistic/eventLog/validator/storage/ValidationRulesPersistedStorage.java
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.internal.statistic.eventLog.validator.storage; import com.intellij.internal.statistic.eventLog.EventLogBuild; import com.intellij.internal.statistic.eventLog...
Ybalrid/orbiter
Src/Orbiter/BodyIntegrator.cpp
<reponame>Ybalrid/orbiter // Copyright (c) <NAME> // Licensed under the MIT License // ======================================================================= // BodyIntegrator.cpp // Part of RigidBody class implementation // // Integrators for dynamic body state vector propagation // // This includes versions which p...
SANBI-SA-archive/s_bvc_pipeline
USAP_H37Rv/Tools/smalt-0.7.5/config.h
<reponame>SANBI-SA-archive/s_bvc_pipeline<gh_stars>0 /* config.h. Generated from config.hin by configure. */ /* config.hin. Generated from configure.ac by autoheader. */ /* Define if you have the package bambamc installed as a library */ /* #undef HAVE_BAMBAMC */ /* Define to 1 if you have <emmintrin.h>. */ #defi...
andrenjunior/Linguagem-de-Programa-o-Python
Tele_Aula 3/Classe.py
class conta: def __init__(self, nome, numero): self.cliente = nome self.num = numero self.saldo = 0.0 def Saldo (self ): return self.saldo def getcliente (self): return self.cliente def depositar (self, valor): self.saldo += valor def transferenc...
netzling/jmeter
src/core/org/apache/jmeter/report/core/TimeHelper.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 ...
athasv/Codewars-data
python/8Kyu/Parse nice int from char problem.py
def get_age(age): return int(age[0])
BibiNiao/urgoo_client
src/com/urgoo/service/model/PlanEntity.java
<gh_stars>0 package com.urgoo.service.model; /** * Created by dff on 2016/8/23. */ public class PlanEntity { private String color; private String deadDay; private String title; private String deadLine; private String taskId; private String type; public String getType() { return...
Programmer-alliance/moonbox
catalyst/src/main/scala/moonbox/catalyst/adapter/elasticsearch5/util/EsRowIter.scala
/*- * << * Moonbox * == * Copyright (C) 2016 - 2019 EDP * == * 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 require...
YiGuangLee/gamer
src/Tables/Table_SiblingSharingSameEdge.cpp
<reponame>YiGuangLee/gamer #include "GAMER.h" //------------------------------------------------------------------------------------------------------- // Function : TABLE_SiblingSharingSameEdge // Description : Return the three sibling direction indices sharing the same patch edge as the input one // // Note ...
osgcc/descent-mac
main/mission.c
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYIN...
andronix3/UIO
com/imagero/uio/ba/ByteArrayInput.java
package com.imagero.uio.ba; import com.imagero.uio.ba.ByteArray; /** * ByteArrayIO - this class gives the possibility to read from and write to given ByteArray. * It supports bit offsets and bitwise writing. * It does not extends InputStream or OutputStream, but has similar methods. * * Date: 09.04.2008 * * @...
DTAIEB/Thoughtful-Data-Science
chapter 9/sampleCode19.py
[[USFlightsAnalysis]] @route(visualize_graph="*") @captureOutput def visualize_graph_screen(self, visualize_graph): visualize_neighbors(visualize_graph, (5,5))
hanfengzhe-hi/suitesparse-matrix-collection-website
db/collection_data/matrices/Schenk_IBMSDS/2D_27628_bjtcai.rb
<reponame>hanfengzhe-hi/suitesparse-matrix-collection-website<filename>db/collection_data/matrices/Schenk_IBMSDS/2D_27628_bjtcai.rb { matrix_id: '954', name: '2D_27628_bjtcai', group: 'Schenk_IBMSDS', description: '<NAME>, Univ. Basel: IBM TJ Watson, Yorktown, semiconductor device', author: 'IBM', ...
romsha28/hospital_python
hospital/migrations/0010_policies.py
<filename>hospital/migrations/0010_policies.py # Generated by Django 3.2.9 on 2021-12-02 11:00 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('hospital', '0009_auto_20211202_1539'), ] operations = [ migratio...
celandro/pogoprotos-java
src/main/java/POGOProtos/Rpc/AssetStreamDownloadTelemetryOrBuilder.java
<reponame>celandro/pogoprotos-java // Generated by the protocol buffer compiler. DO NOT EDIT! // source: POGOProtos.Rpc.proto package POGOProtos.Rpc; public interface AssetStreamDownloadTelemetryOrBuilder extends // @@protoc_insertion_point(interface_extends:POGOProtos.Rpc.AssetStreamDownloadTelemetry) com.g...
xformation/xformation-alertmanager-service
alertmanager-server/src/main/java/com/synectiks/process/common/plugins/sidecar/rest/resources/SidecarResource.java
/* * */ package com.synectiks.process.common.plugins.sidecar.rest.resources; import com.codahale.metrics.annotation.Timed; import com.google.common.base.Function; import com.google.common.collect.ImmutableMap; import com.synectiks.process.common.plugins.sidecar.audit.SidecarAuditEventTypes; import com.synectiks.proce...
lorenzojcd/linux-system-programming
src/getsid-example.c
#include <unistd.h> #include <stdio.h> int main (void) { pid_t sid; sid = getsid (0); if (sid == -1) { perror ("getsid"); return 1; } printf ("My session id=%d\n", sid); return 0; }
mitixx/abilitysheet
app/models/concerns/user/ist.rb
<reponame>mitixx/abilitysheet<gh_stars>10-100 # frozen_string_literal: true require 'ist_client' module User::Ist extend ActiveSupport::Concern FROM_IST_TO_AB = { '旋律のドグマ~Miserables~' => '旋律のドグマ ~Misérables~', '火影' => '焱影' }.freeze SEARCH_PARAMS = { q: { chart_level_eq: 12, chart_play_...
MalikuMane/TerraForge3D
TerraForge3D/include/Sky/CubeMap.h
<gh_stars>100-1000 #pragma once #include <glm/glm.hpp> #include "Base/TextureCubemap.h" class ApplicationState; class Shader; class TextureCubemap; class Model; class CubeMapManager { public: CubeMapManager(ApplicationState *appState); ~CubeMapManager(); void RenderSkybox(glm::mat4 view, glm::mat4 proj, bool use...
hyller/GladiatorCots
QP/v5.4.2/qpc/examples/arm-cm/game_ek-lm3s811/mine2.c
/***************************************************************************** * Model: game.qm * File: ./mine2.c * * This code has been generated by QM tool (see state-machine.com/qm). * DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost. * * This program is open source software: you can redistribute it an...
DiaLight/OpenCVClient
src/main/c++/native/ClientApp.cpp
<reponame>DiaLight/OpenCVClient /* * File: Main.cpp * Author: dialight * * Created on 13 октября 2016 г., 8:42 */ #include <App.hpp> #include <opencv2/opencv.hpp> #include <utils/Profiler.hpp> #include <network/stream/UDPSocketClient.hpp> #include <network/stream/protocol/ImagePacket.hpp> #include <network/stre...
amosnothing/ClickHouse
src/Processors/Sources/DelayedSource.cpp
#include <Processors/Sources/DelayedSource.h> #include "NullSource.h" namespace DB { DelayedSource::DelayedSource(const Block & header, Creator processors_creator) : IProcessor({}, OutputPorts(3, header)) , creator(std::move(processors_creator)) { } IProcessor::Status DelayedSource::prepare() { /// At fi...
Kney-Delach/OpenGL-Rendering
OpenGL-Rendering-Engine/Exalted/src/Platform/OpenGL/OpenGLFrameBuffer.h
/*************************************************************************** * Filename : OpenGLFrameBuffer.h * Name : <NAME> * Date : 08/11/2019 * Description : Implements the OpenGL Framebuffer wrapper .---. .'_:___". |__ --==| [ ] :[| |__| I=[| / / ____| |-/.____.' /___\ /___\ *****...
CityOfVernonia/cov-arcgis-esm
dist/viewModels/UnitsViewModel.js
/** * A view model for managing location, length, area and elevation units and providing utility methods for returning unit <select>s. */ import { __decorate } from "tslib"; import Accessor from '@arcgis/core/core/Accessor'; import { property, subclass } from '@arcgis/core/core/accessorSupport/decorators'; import { t...
jgraichen/codeocean
spec/controllers/statistics_controller_spec.rb
require 'rails_helper' describe StatisticsController do let(:user) { FactoryBot.create(:admin) } before(:each) { allow(controller).to receive(:current_user).and_return(user) } [:show, :graphs].each do |route| describe "GET ##{route}" do before(:each) { get route } expect_status(200) expec...
d0si/vortex
Server/Server/Http/HttpListener.cpp
<filename>Server/Server/Http/HttpListener.cpp #include <Server/Http/HttpListener.h> #include <boost/asio/io_context.hpp> #include <boost/asio/ip/tcp.hpp> #include <boost/beast/core/bind_handler.hpp> #include <Core/Logging.h> #include <Server/Http/HttpSession.h> namespace asio = boost::asio; namespace beast = boost::be...
saltyan007/kill_test
simulation/navigator_gazebo/include/navigator_gazebo/navigator_thrusters.hpp
<reponame>saltyan007/kill_test #pragma once #include <mutex> #include <algorithm> #include <vector> #include <map> #include <cmath> #include "gazebo/common/Assert.hh" #include "gazebo/common/Events.hh" #include "gazebo/common/Event.hh" #include "gazebo/common/Plugin.hh" #include "gazebo/math/Vector3.hh" #include "gaze...
henryjtaylor/VoogaSalad
src/gameView/displayComponents/LevelComponent.java
<reponame>henryjtaylor/VoogaSalad<filename>src/gameView/displayComponents/LevelComponent.java package gameView.displayComponents; import javafx.beans.property.ReadOnlyIntegerProperty; import javafx.scene.control.Label; import javafx.scene.layout.HBox; import javafx.scene.layout.Region; import javafx.scene.text.Font; i...
mandeepshetty/iotivity
service/protocol-plugin/lib/cpluff/libcpluff/psymbol.c
/*------------------------------------------------------------------------- * C-Pluff, a plug-in framework for C * Copyright 2007 <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 Softwa...
dlatikaynen/blooDot
src/sound/orchester/Pipeline.h
<filename>src/sound/orchester/Pipeline.h #pragma once #include "OrchestratorException.h" #include "OrchestratorBase.h" #include "AudioFrames.h" #include <vector> #include <algorithm> #include <cmath> namespace blooDot { namespace Orchestrator { class Pipeline : public OrchestratorBase { public: Pipeline(vo...
youngdaLee/Baekjoon
src/11/11966.py
""" 11966. 2의 제곱인가? 작성자: xCrypt0r 언어: Python 3 사용 메모리: 29,380 KB 소요 시간: 76 ms 해결 날짜: 2020년 9월 23일 """ def main(): a = [2 ** x for x in range(31)] N = int(input()) print(1 if N in a else 0) if __name__ == '__main__': main()
JadielTeofilo/General-Algorithms
src/interviewbit/backtracking/combinations.py
<gh_stars>0 """ Given two integers n and k, return all possible combinations of k numbers out of 1 2 3 ... n. Make sure the combinations are sorted. To elaborate, Within every entry, elements should be sorted. [1, 4] is a valid entry while [4, 1] is not. Entries should be sorted within themselves. Example :...
kjlubick/bazel
third_party/java/proguard/proguard6.2.2/src/proguard/io/ZipOutput.java
<reponame>kjlubick/bazel<gh_stars>1000+ /* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2019 Guardsquare NV * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public Lic...
oxtra/oxtra
src/oxtra/codegen/instructions/control-flow/conditional-jumps/jno.h
#ifndef OXTRA_JNO_H #define OXTRA_JNO_H namespace codegen { class Jno : public Jcc { public: explicit Jno(const fadec::Instruction& inst) : Jcc{inst, flags::overflow} {} void generate(CodeBatch& batch) const final; }; } #endif //OXTRA_JNO_H
liming1010/sql4j
core/src/main/java/com/tpy/core/manager/UpdateManager.java
<reponame>liming1010/sql4j package com.tpy.core.manager; public interface UpdateManager<T> { UpdateFun1Manager update(T t1); UpdateFun4Manager updateById(T t); /** * 逻辑删除 * @param t * @return */ UpdateFun1Manager delByLogic(T t); /** * 根据PrimaryKkey删除 * @param t ...
FairyEver/WebBasicCommonDemos
书籍学习源码练习/Head First Javascript学习代码/chapter10/youcube/youcube.js
<gh_stars>100-1000 //Date类扩展一个类方法 Date.prototype.shortFormat = function() { return (this.getMonth() + 1) + "/" + this.getDate() + "/" + this.getFullYear(); }; //Blog类的初始化方法 function Blog (body, date, image) { this.body = body; this.date = date; this.image = image; } //Blog类的实例方法,所有实例对象都只有这么一份 Blog.prototype.toStr...
phpmob/chang-admin
src/PhpMob/ChangMinBundle/Resources/private/js/lib/vsubmit.js
(function (factory) { "use strict"; if (typeof define === "function" && define.amd) { define(["jquery"], factory); } else { /* jshint sub:true */ factory(jQuery); } })(function ($) { "use strict"; $.fn.vsubmit = function (options) { var defaults = { ...
addison-howenstine/cell-society
src/xml/SchellingSimulationFactory.java
package xml; import java.util.Collection; import org.w3c.dom.Element; import org.w3c.dom.NodeList; import cell.GridPosition; import grid.Parameters; import schelling.SLParameters; /** * * @author Brian * Generate Schelling parameters based on XML File of Simulation Type "Schelling". Depending on format * of the ...
ganorberg/algorithms-javascript
math/number-base-conversion/dec-to-bin.js
<reponame>ganorberg/algorithms-javascript // Using native method function decToBin(dec) { return dec.toString(2); } // Manually function decToBin(dec) { if (dec == 0) { return '0'; } let bin = ''; let quotient = dec; // Each digit in binary represents remainder when divided by 2 (built right to left) whil...
wenyuanyu/GraphScope
interactive_engine/src/api/sdk-common/src/main/generated/com/alibaba/maxgraph/proto/MetricInfoRespOrBuilder.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: sdk/common.proto package com.alibaba.maxgraph.proto; public interface MetricInfoRespOrBuilder extends // @@protoc_insertion_point(interface_extends:MetricInfoResp) com.google.protobuf.MessageOrBuilder { /** * <code>repeated .ServerMe...
yitongxue/xinxintong
views/default/pl/fe/matter/group/plan-loader.js
var timestamp, minutes; timestamp = new Date(); minutes = timestamp.getMinutes(); minutes = Math.floor(minutes / 5) * 5; timestamp.setMinutes(minutes); timestamp.setMilliseconds(0); timestamp.setSeconds(0); require.config({ waitSeconds: 0, paths: { "domReady": '/static/js/domReady', "frame": '/v...
medismailben/llvm-project
clang/test/Modules/Inputs/merge-anon-in-template/c.h
<reponame>medismailben/llvm-project<filename>clang/test/Modules/Inputs/merge-anon-in-template/c.h<gh_stars>1000+ template<typename T> struct is_floating { enum { value = 0 }; typedef int type; }; #include "b.h" bool n20 = is_floating<int>::value;
scastiel/livre-react-exemples
05-composants-reutilisables/02-hoc/src/App.js
import React, { Component } from 'react' import PhoneNumberInput from './PhoneNumberInput' class App extends Component { constructor(props) { super(props) this.state = { phoneNumber: '' } } onChange = event => { this.setState({ phoneNumber: event.target.value }) } render() { return ( <d...
schmurgon/serenity-core
serenity-core/src/main/java/net/thucydides/core/webdriver/stubs/WebElementFacadeStub.java
package net.thucydides.core.webdriver.stubs; import com.google.common.base.Function; import com.google.common.collect.Lists; import com.google.gson.Gson; import net.serenitybdd.core.pages.WebElementFacade; import net.serenitybdd.core.pages.WebElementState; import net.serenitybdd.core.time.InternalSystemClock; import n...
DevelopByTarun/TODAY-HELP
MONGO-DB/chapter2/chp2.2-2.4_code.js
<reponame>DevelopByTarun/TODAY-HELP<gh_stars>0 // *********** 2.2.2 Indexing and Explain ****************************8 db.numbers.find({num: {"$gt": 199995}}).explain() /* results like: { "cursor" : "BasicCursor", "isMultiKey" : false, "n" : 4,...
dengdengdengpan/lt-ui-vue
vue.config.js
<filename>vue.config.js const { defineConfig } = require('@vue/cli-service') const path = require('path') function pathResolve (dir) { return path.resolve(__dirname, dir) } module.exports = defineConfig({ transpileDependencies: true, chainWebpack: config => { config.module .rule('svg') .exclude ...
itonov/Java-OOP-Advanced
07_OpenClosedLiskovPrinciples/src/logger/appenders/BaseAppender.java
<gh_stars>0 package logger.appenders; import logger.ReportLevel; import logger.interfaces.Layout; public abstract class BaseAppender { private Layout layout; private ReportLevel level; private int messagesCount; protected BaseAppender(Layout layout) { this.layout = layout; this.level ...
rom1119/pacgame-fx
src/main/java/com/pacgame/movement/Movement.java
package com.pacgame.movement; public interface Movement { void start(); void stop(); void restart(); void pause(); }
ycdtosa/sbgECom
src/protocol/sbgEComProtocol.h
/*! * \file sbgEComProtocol.h * \author SBG Systems * \date 06 February 2013 * * \brief Implementation of the sbgECom binary communication protocol. * * You will find below, the frame definition used by Ekinox devices.<br> * <br> * <table> * <caption>Frame structure</caption> * <tr align="center"><...
manoelmenezes/gswgg
src/test/java/chapter03/DateFormatFunctionTest.java
package chapter03; import org.hamcrest.core.Is; import org.junit.Assert; import org.junit.Test; import java.time.LocalDate; import java.time.ZoneId; import java.util.Date; public class DateFormatFunctionTest { @Test public void testFormatDate() { LocalDate localDate = LocalDate.of(2017, 8, 10); ...
ProjectFFF/FFF
sizecompares/models.py
<filename>sizecompares/models.py from django.db import models # Create your models here. class Compare(models.Model): shoulder_compare = models.DecimalField(max_digits=6, decimal_places=3) chest_compare = models.DecimalField(max_digits=6, decimal_places=3) arm_compare = models.DecimalField(max_digits=6, de...
OpenMPDK/SMDK
lib/linux-5.18-rc3-smdk/drivers/gpu/drm/tiny/ili9163.c
<filename>lib/linux-5.18-rc3-smdk/drivers/gpu/drm/tiny/ili9163.c // SPDX-License-Identifier: GPL-2.0+ #include <linux/backlight.h> #include <linux/delay.h> #include <linux/gpio/consumer.h> #include <linux/module.h> #include <linux/property.h> #include <linux/spi/spi.h> #include <drm/drm_atomic_helper.h> #include <drm...
eeguney/mern-react-budget-planner-app
clientside/src/pages/index.js
import React from "react"; import Home from "./Home/Home"; import Logout from "./Logout/Logout"; import SignIn from "./SignIn/SignIn"; import SignUp from "./SignIn/SignUp"; import Transactions from "./Transactions/Transactions"; const Page = { Home: (props) => { return <Home {...props} /> }, SignIn: (props) ...
asinha04/Servlets
service/impl/HandlebarsComponentClientLibRecompileServiceImpl.java
<filename>service/impl/HandlebarsComponentClientLibRecompileServiceImpl.java package org.kp.foundation.core.service.impl; import com.day.cq.replication.ReplicationActionType; import com.day.cq.replication.ReplicationException; import com.day.cq.replication.Replicator; //Replication APIs import com.day.cq.wcm.api.PageM...
carderne/raster-vision
rastervision/v2/core/__init__.py
<filename>rastervision/v2/core/__init__.py # flake8: noqa import logging import importlib import json ''' root_logger = logging.getLogger('rastervision.v2') sh = logging.StreamHandler() sh.setLevel(logging.DEBUG) formatter = logging.Formatter( '%(asctime)s:%(name)s: %(levelname)s - %(message)s', '%Y-%m-%d %H:%M:%S'...
arteptiber/clio
packages/highlight/index.js
import { existsSync, readFileSync } from "fs"; import chalk from "chalk"; const { blue, cyan, gray, green, magenta, white, yellow } = chalk; export function highlight(source) { if (!source) { throw new Error("The path to the Clio souce file is required."); } if (!existsSync(source)) { throw new Error("...
ethansaxenian/RosettaDecode
lang/Java/abundant,-deficient-and-perfect-number-classifications.java
<gh_stars>1-10 import java.util.stream.LongStream; public class NumberClassifications { public static void main(String[] args) { int deficient = 0; int perfect = 0; int abundant = 0; for (long i = 1; i <= 20_000; i++) { long sum = properDivsSum(i); if (sum ...
alexmadeira/apps-leagueofchampions
src/pages/index.js
<reponame>alexmadeira/apps-leagueofchampions<gh_stars>0 import React, { useState } from 'react'; import Background from '~/components/Background'; import ChampionInfo from '~/components/ChampionInfo'; import Header from '~/components/Header'; import Nav from '~/components/Nav'; import Search from '~/components/Search'...
jakob-bagterp/browserist
src/browserist/browser/check_if/is_disabled.py
<filename>src/browserist/browser/check_if/is_disabled.py<gh_stars>1-10 from ...model.type.xpath import XPath from .is_enabled import check_if_is_enabled def check_if_is_disabled(driver: object, xpath: str) -> bool: xpath = XPath(xpath) return not check_if_is_enabled(driver, xpath)
Internship1/Frontend
app/partials/previewCV/previewCV.js
'use strict'; angular.module('myApp.previewCV', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/previewCV', { templateUrl: 'partials/previewCV/previewCV.html', controller: 'addCVsCtrl' }); }]) .controller('addCVsCtrl', [function() { }]);
swissbilling-sa/swissbilling-client-java
src/main/java/ch/swissbilling/framework/einvoice/models/PartyType.java
<gh_stars>0 // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-147 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Genera...
jffc-dev/Python-Django-Tecshop
aplicacion/migrations/0001_initial.py
# Generated by Django 3.1.4 on 2020-12-21 21:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Categoria', fields=[ ...
ComputerArchitectureGroupPWr/JGenerilo
src/main/java/edu/byu/ece/rapidSmith/timing/Path.java
/* * Copyright (c) 2010 Brigham Young University * * This file is part of the BYU RapidSmith Tools. * * BYU RapidSmith Tools is free software: you may redistribute it * and/or modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 2 of * t...
taikusa/rcrs-server
modules/maps/src/maps/convert/osm2gml/ComputePassableEdgesStep.java
<reponame>taikusa/rcrs-server package maps.convert.osm2gml; import maps.convert.ConvertStep; import java.util.Collection; /** This step computes which edges are passable and sets up neighbours accordingly. */ public class ComputePassableEdgesStep extends ConvertStep { private TemporaryMap map; /** ...
MiltosD/CEFELRC
lib/python2.7/site-packages/django_jenkins/tasks/run_pyflakes.py
# -*- coding: utf-8 -*- import os import re import sys from pyflakes.scripts import pyflakes from cStringIO import StringIO from django_jenkins.functions import relpath from django_jenkins.tasks import BaseTask, get_apps_locations class Task(BaseTask): def __init__(self, test_labels, options): super(Task,...
lancetw/react-isomorphic-bundle
src/client/admin.js
<gh_stars>10-100 require('babel-polyfill') require('./admin/index')
testnetopeer/libyang
src/schema_compile_amend.h
<reponame>testnetopeer/libyang<gh_stars>0 /** * @file schema_compile_amend.h * @author <NAME> <<EMAIL>> * @brief Header for schema compilation of augments, deviations, and refines. * * Copyright (c) 2015 - 2020 CESNET, z.s.p.o. * * This source code is licensed under BSD 3-Clause License (the "License"). * You m...
mrubli/dns-proxy-server
events/local/storagev2/storagev2_test.go
package storagev2 import ( "github.com/mageddo/dns-proxy-server/events/local/localvo" "github.com/stretchr/testify/assert" "testing" ) func TestValueOf(t *testing.T) { // arrange var config = localvo.Configuration{ Version: 3, RemoteDnsServers: nil, Envs: nil, Activ...
mahajrod/MAVR
scripts/annotation/trim_cds_and_remove_terminal_stop_codons.py
#!/usr/bin/env python __author__ = '<NAME>' import argparse from RouToolPa.Routines import SequenceRoutines parser = argparse.ArgumentParser() parser.add_argument("-i", "--input", action="store", dest="input", required=True, help="Input fasta with raw cDS") parser.add_argument("-s", "--stop_codon...
basis-technology-corp/tcl-regex-java
src/test/java/com/basistech/tclre/LexTest.java
/* * Copyright 2014 Basis Technology Corp. * * 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...
CETONI-Software/sila_cetoni_pumps
sila_cetoni/pumps/syringepumps/sila/syringepump_service/generated/forcemonitoringservice/forcemonitoringservice_base.py
<reponame>CETONI-Software/sila_cetoni_pumps from __future__ import annotations from abc import ABC, abstractmethod from queue import Queue from typing import Any, Dict, Optional from sila2.framework import FullyQualifiedIdentifier from sila2.server import FeatureImplementationBase from .forcemonitoringservice_types ...