repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
Andre601/TerraformGenerator
common/src/main/java/org/terraform/biome/mountainous/DesertMountainHandler.java
<gh_stars>0 package org.terraform.biome.mountainous; import org.bukkit.Material; import org.bukkit.block.Biome; import org.terraform.biome.BiomeHandler; import org.terraform.coregen.PopulatorDataAbstract; import org.terraform.data.TerraformWorld; import org.terraform.main.TConfigOption; import org.terraform.utils.Fast...
nurikk/gpdb
src/bin/pg_dump/cdb/cdb_backup_state.c
/*------------------------------------------------------------------------- * * cdb_backup_state.c * * Structures and functions to keep track of the progress * of a remote backup, impolemented as a state machine * *------------------------------------------------------------------------- */ #include "postgres_...
mla310/graphient
graphient/src/test/scala/graphient/TestSchema.scala
package graphient import sangria.macros.derive.{deriveEnumType, deriveInputObjectType, deriveObjectType} import sangria.marshalling._ import sangria.schema._ import scala.concurrent.Future object TestSchema { object Domain { case class ImageId(value: Long) object EnumExample extends Enumeration { ...
aikidistas/poloniex-api-java
src/main/java/api/rest/publicapi/read/dayvolume/dto/DayVolumeData/USDTMTA.java
<filename>src/main/java/api/rest/publicapi/read/dayvolume/dto/DayVolumeData/USDTMTA.java package api.rest.publicapi.read.dayvolume.dto.DayVolumeData; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class USDTMTA { @SerializedName("MTA") @Expose public...
shriram2301/safe_browser
app/extensions/safe/test/actions/peruse.spec.js
// import * as safeBrowserAppActions from 'extensions/safe/actions/safeBrowserApplication_actions'; // safeBrowserAppActions.getWebIds = jest.fn(); describe( 'notification actions', () => { // it( 'should have types', () => // { // expect( safeBrowserAppActions.TYPES ).toBeDefined(); // } ); /...
fernandocamargo/butws
src/macros/react/transformations/remove/index.js
<reponame>fernandocamargo/butws function check({ item }) { return ( item.type === 'ImportDeclaration' && item.source.value.endsWith('@macros/react/macro') ); } function transform({ stack }) { return stack; } module.exports = { check, transform };
improbablejan/shoveler-spatialos
shoveler/base/src/font_atlas.c
<filename>shoveler/base/src/font_atlas.c #include <assert.h> // assert #include <limits.h> // UINT_MAX INT_MAX #include <stdlib.h> // malloc free #include "shoveler/font.h" #include "shoveler/font_atlas.h" #include "shoveler/log.h" #include "shoveler/image.h" static void insertGlyph(ShovelerFontAtlas *fontAtlas, FT_B...
alexiscatnip/FreeTime
src/test/java/seedu/address/logic/parser/TagCommandParserTest.java
<reponame>alexiscatnip/FreeTime<filename>src/test/java/seedu/address/logic/parser/TagCommandParserTest.java package seedu.address.logic.parser; import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.address.logic.parser.CommandParserTestUtil.assertParseFailure; import or...
sglass68/chromite
cbuildbot/remote_try.py
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Code related to Remote tryjobs.""" from __future__ import print_function import getpass import json import os import time from chromite.cbuildbo...
lisgking/dbmonitor
src/assets/scripts/ts/t3/cluster/NewClusterDialog.js
define("ts/t3/cluster/NewClusterDialog",[ "ts/widgets/TSSteppedDialog", "ts/events/TSEvent", "./newClusterSteps/StepIntroduction", "./newClusterSteps/StepProfile", "./newClusterSteps/StepSelectNodes", "./newClusterSteps/StepSelectComponents", "./newClusterSteps/StepDeployment", "./newClusterSteps/StepConfigurat...
yanglinz/reddio
src/state/__tests__/store-test.js
<gh_stars>1-10 import { expect } from 'chai'; import store from '../store'; describe('state store', () => { it('should have redux store functions', () => { expect(store.dispatch).to.be.a('function'); expect(store.subscribe).to.be.a('function'); expect(store.replaceReducer).to.be.a('function'); }); ...
abartoha/python-snippets-ref
Python-code-snippets-201-300/229-get screen resolution.py
<filename>Python-code-snippets-201-300/229-get screen resolution.py """Code snippets vol-46-snippet-229 Get screen resolution Windows only. Download all snippets so far: https://wp.me/Pa5TU8-1yg Blog: stevepython.wordpress.com Requirements:pip3 install pywin32 Source: http://timgolden.me.uk/python/win32_how_d...
eastnorthwest/echo
src/server/services/projectFormationService/lib/pool.js
import { unique, flatten, } from './util' export const DEFAULT_TEAM_SIZE = 4 export function buildPool(attributes) { const pool = { goals: [], votes: [], ...attributes, } pool.goals.forEach(goal => { goal.teamSize = goal.teamSize || DEFAULT_TEAM_SIZE }) return pool } export function g...
aha-lang/aha
_documents/examples/runtest/testdll.c
<reponame>aha-lang/aha<filename>_documents/examples/runtest/testdll.c #include <stdio.h> __declspec(dllexport) void bar(int i) { printf("%d", i); }
peplin/threephase
db/migrate/20101101154610_create_peak_demands.rb
class CreatePeakDemands < ActiveRecord::Migration def self.up create_table :peak_demands do |t| t.references :city, :null => false t.integer :peak_demand, :null => false t.timestamps end end def self.down drop_table :peak_demands end end
aaliomer/exos
sys/ubb/ubb-inst.h
/* * Copyright (C) 1997 Massachusetts Institute of Technology * * This software is being provided by the copyright holders under the * following license. By obtaining, using and/or copying this software, * you agree that you have read, understood, and will comply with the * following terms and conditions: * *...
trujs/TruJS.test
scripts/assertions/_HasBeenCalledWithScope.js
<reponame>trujs/TruJS.test /** * This factory produces a worker function that tests the scope that a callback * instance was called with. * @factory */ function _HasBeenCalledWithScope(isMockCallback, isGetValue) { /** * @worker * @type {assertion} * @param {callback} cb The callback object to be tested * @p...
iOznny/javascript-introduction
11-iterators/js/08-app.js
<reponame>iOznny/javascript-introduction<gh_stars>0 // Forin - Itera sobre objetos const vehicle = { model: 'Camaro', year: 2021, motor: '6.0' }; const slopes = ['Homework', 'Eat', 'Project', 'Study Javascript']; // for (const v in vehicle) { // console.log(`${ vehicle[v] } `); // } for (let [ key, ...
PacemakerConf/site
lib/tasks/assets_precompile_mock.rake
<filename>lib/tasks/assets_precompile_mock.rake #Rake::Task["assets:precompile"].clear #desc "Rewrite assets:precompile to deploy app onb heroku" #namespace :assets do # task :precompile => :environment do # puts "assets:precompile mock :)" # end #end
AlexRogalskiy/DevArtifacts
master/object-master/object-master/dataPointInterfaces/default/index.js
/** * @preserve * * .,,,;;,'''.. * .'','... ..',,,. * .,,,,,,',,',;;:;,. .,l, * .,',. ... ,;, :l. * ':;. .'.:do;;. .c ol;'. * ';;...
fallSoul/spring-cloud-shop
shop-platform/shop-platform-api/src/main/java/quick/pager/shop/platform/mapper/DynamicFormMapper.java
package quick.pager.shop.platform.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; import quick.pager.shop.platform.model.DynamicForm; /** * <p> * Mapper 接口 * </p> * * @author siguiyang * @since 2019-12-14 */ @Mapper public interface DynamicFormMapper...
Morethanthis-R/banana
app/account-center/service/internal/biz/biz.go
package biz import "github.com/google/wire" // ProviderSet is biz providers. var ProviderSet = wire.NewSet(NewAccountCenterCase)
zachpuck/aks-engine-automation
vendor/github.com/opctl/sdk-golang/node/core/containerruntime/docker/fsPathConverter.go
<gh_stars>1-10 package docker //go:generate counterfeiter -o ./fakeFSPathConverter.go --fake-name fakeFSPathConverter ./ fsPathConverter import ( "github.com/opctl/sdk-golang/util/iruntime" "path" "regexp" "strings" ) type fsPathConverter interface { LocalToEngine(localPath string) string } func newFSPathConve...
fairhopeweb/CoinSpace
app/widgets/eos/setup/index.js
import Ractive from 'lib/ractive'; import showEosSetupAccount from 'widgets/modals/eos-setup-account'; import template from './index.ract'; export default function(el) { const ractive = new Ractive({ el, template, }); ractive.on('setup', showEosSetupAccount); return ractive; }
john-bodley/datahub
datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/tag/TagType.java
package com.linkedin.datahub.graphql.types.tag; import com.linkedin.common.AuditStamp; import com.linkedin.common.Owner; import com.linkedin.common.OwnerArray; import com.linkedin.common.Ownership; import com.linkedin.common.OwnershipSource; import com.linkedin.common.OwnershipSourceType; import com.linkedin.common.Ow...
jdthomp/msa
src/menu/views/ColorMenu.js
<reponame>jdthomp/msa import MenuBuilder from "../menubuilder"; const dom = require("dom-helper"); const ColorMenu = MenuBuilder.extend({ initialize: function(data) { this.g = data.g; this.el.style.display = "inline-block"; return this.listenTo(this.g.colorscheme, "change", function() { return thi...
alexanderpetrenko/job4j
chapter_005/src/main/java/ru/job4j/list/ContainerLinkedList.java
package ru.job4j.list; import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.NoSuchElementException; /** * {@code Container Linked List} class creates a linked list of data. * * @param <E> A reference type of array elements. * @author <NAME> (<EMAIL>) * @version 1.0 * @si...
iuskye/SREWorks
saas/job/api/sreworks-job/sreworks-job-master/src/main/java/com/alibaba/sreworks/job/master/params/JobToggleCronJobStateParam.java
package com.alibaba.sreworks.job.master.params; import lombok.Data; import lombok.extern.slf4j.Slf4j; @Data @Slf4j public class JobToggleCronJobStateParam { private boolean state; }
zannabianca1997/ic4
src/misc/charescape.h
/** * @file charescape.h * @author zannabianca1997 (<EMAIL>) * @brief Tables to escape chars * @version 0.1 * @date 2022-02-14 * * @copyright Copyright (c) 2022 * */ #ifndef _CHARESCAPE_H #define _CHARESCAPE_H /** * @brief Maximal lenght of a escape code * */ #define CHARESCAPE_MAX_LEN 4 /** * @brief Ge...
olga-vasylchenko/pact_broker
lib/pact_broker/api/decorators/representable_pact.rb
require 'ostruct' # TODO remove this class module PactBroker module Api module Decorators class RepresentablePact attr_reader :consumer, :provider, :consumer_version, :consumer_version_number, :created_at, :updated_at def initialize pact @consumer_version = pact.consumer_versio...
antkmsft/azure-sdk-for-go
sdk/resourcemanager/servicefabricmesh/armservicefabricmesh/zz_generated_response_types.go
//go:build go1.18 // +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
27149chen/pyds8k
pyds8k/test/test_resources/test_ds8k/test_root_resource_mixin.py
<reponame>27149chen/pyds8k ############################################################################## # Copyright 2019 IBM 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:/...
bradchesney79/illacceptanything
linux/arch/arm/mach-clps711x/devices.c
<reponame>bradchesney79/illacceptanything<filename>linux/arch/arm/mach-clps711x/devices.c /* * CLPS711X common devices definitions * * Author: <NAME> <<EMAIL>>, 2013-2014 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published ...
prabhat-shw/DSA-Problems
src/generate2DMatrix.js
/* ********************************************************************************************* Given an integer A, generate a square matrix filled with elements from 1 to A*A in spiral order. Problem Constraints: 1 <= A <= 1000 Example: I/P: A = 2 O/P: [[1, 2], [4, 3]] ***********************************...
lpenuelac/ImageAnalysis
scripts/99-show-capture-date.py
#!/usr/bin/env python3 import argparse import cv2 import fnmatch import os import pyexiv2 # dnf install python3-exiv2 (py3exiv2) import sys from props import getNode # from aura-props package import props_json # from aura-props package from lib import camera from lib import proje...
Bareflank/dynarray
include/bsl/unordered_map.hpp
<gh_stars>10-100 /// @copyright /// Copyright (C) 2020 Assured Information Security, Inc. /// /// @copyright /// 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, includi...
pradeepkumarcm-egov/DIGIT-Dev
business-services/dashboard-analytics/src/main/java/com/tarento/analytics/model/KeyData.java
package com.tarento.analytics.model; public class KeyData { private Long id; private Object key; private String label; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Object getKey() { return key; } public void setKey(Object key) { this.key = key; } publi...
Julien-Oclock/yabon-prono
app/models/commentMapper.js
<reponame>Julien-Oclock/yabon-prono const Comment = require('./comment'); const db = require('../database'); const commentMapper = { allComment: async () => { const result = await db.query(` SELECT * FROM all_comment LIMIT 6; `); return result.rows.map(data => new Comme...
MistressAlison/OrangeJuiceTheSpire
OrangeJuiceTheSpire/src/main/java/Moonworks/relics/LittleGull.java
<filename>OrangeJuiceTheSpire/src/main/java/Moonworks/relics/LittleGull.java package Moonworks.relics; import Moonworks.vfx.GullVFXContainer; import basemod.abstracts.CustomRelic; import com.badlogic.gdx.graphics.Texture; import com.megacrit.cardcrawl.actions.AbstractGameAction; import com.megacrit.cardcrawl.actions.c...
golden-dimension/xs2a
xs2a-impl/src/test/java/de/adorsys/psd2/xs2a/exception/GlobalExceptionHandlerControllerTest.java
/* * Copyright 2018-2020 adorsys GmbH & Co KG * * 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 ...
folkvir/qasino-simulation
src/main/java/qasino/simulation/observers/DictNode.java
package qasino.simulation.observers; import qasino.simulation.rps.IRandomPeerSampling; import java.util.ArrayList; import java.util.List; /** * Created by julian on 26/01/15. */ public class DictNode { public long id; public List<Long> neighbors; public IRandomPeerSampling pss; public int pid; ...
R-Tsukada/football-calendar
spec/system/competitor_team_select_spec.rb
<gh_stars>0 # frozen_string_literal: true require 'rails_helper' RSpec.describe 'ライバルチームを登録する', type: :system, js: true do before do @user = FactoryBot.create(:user) premier_league = FactoryBot.create(:league, :premier_league) serie_a = FactoryBot.create(:league, :serie_a) arsenal = FactoryBot.creat...
eliukehua/domeos-mye
KubernetesClient/src/main/java/org/domeos/client/kubernetesclient/definitions/v1/ObjectReference.java
<filename>KubernetesClient/src/main/java/org/domeos/client/kubernetesclient/definitions/v1/ObjectReference.java package org.domeos.client.kubernetesclient.definitions.v1; /** * Created by anningluo on 2015-12-02. */ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; import java.util.Map.Entry;...
fengyanjava/msb-android
app/src/main/java/com/mianshibang/main/model/MClassifyGroup.java
<reponame>fengyanjava/msb-android<gh_stars>10-100 package com.mianshibang.main.model; import java.util.ArrayList; public class MClassifyGroup extends MData { public String name; public int classifyCount; public ArrayList<MClassifyMapping> mappings; }
luciVuc/openui5
src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty/messagebundle_sk-5c10a3c8.js
<filename>src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty/messagebundle_sk-5c10a3c8.js sap.ui.define(['exports'], function (exports) { 'use strict'; var messagebundle_sk = { ARIA_LABEL_CARD_CONTENT: "Obsah karty", ARIA_ROLEDESCRIPTION_CARD: "Karta", ARIA_ROLEDESCRIPTION_CARD_HEADER: "Hlavička karty", ARI...
JoeHowse/native
math/lin/plane.h
<filename>math/lin/plane.h #ifndef _PLANE_H #define _PLANE_H #include "math/lin/vec3.h" class Matrix4x4; class Plane { public: float x, y, z, d; Plane() {} Plane(float x_, float y_, float z_, float d_) : x(x_), y(y_), z(z_), d(d_) { } ~Plane() {} float Distance(const Vec3 &v) const { return x * v.x + y * ...
dmarcotte/intellij-community
plugins/android/testSrc/org/jetbrains/android/refactoring/AndroidInlineLayoutTest.java
package org.jetbrains.android.refactoring; import com.intellij.openapi.actionSystem.Presentation; import com.intellij.openapi.vfs.VirtualFile; import com.intellij.psi.PsiElement; import com.intellij.refactoring.actions.InlineAction; import com.intellij.util.IncorrectOperationException; import com.intellij.util.contain...
dr-js/dr-dev
source/common/packageJSON/Version.js
<filename>source/common/packageJSON/Version.js import { versionBumpByGitBranch, versionBumpToIdentifier, versionBumpLastNumber, versionBumpToLocal, isVersionSpecComplex } from '@dr-js/core/module/common/module/SemVer.js' /** @deprecated */ const versionBumpByGitBranchExport = versionBumpByGitBranch // TODO: ...
ognjenst/cxjs
docs/content/examples/charts/bar/ScrollableBars.js
<filename>docs/content/examples/charts/bar/ScrollableBars.js<gh_stars>100-1000 import { Content, ContentPlaceholder, HtmlElement, Tab } from 'cx/widgets'; import { ContentPlaceholderScope, Controller, KeySelection } from 'cx/ui'; import { Svg } from 'cx/svg'; import { Gridlines, NumericAxis, CategoryAxis, Chart, BarGra...
balihb/java-gyak
19-20-2/6-sol/fel1/b/src/circle/utils/Point.java
<reponame>balihb/java-gyak<filename>19-20-2/6-sol/fel1/b/src/circle/utils/Point.java package circle.utils; public class Point { private double x, y; //public Point () {} public Point() { this.x = this.y = 0; } public Point(double x, double y) { this.x = x; this.y = y; ...
wizzifactory/wizzi-history
old_packages/wizzi/packages/wizzi-legacy-v4/lib/artifacts/js/module/gen/wzIife.js
<filename>old_packages/wizzi/packages/wizzi-legacy-v4/lib/artifacts/js/module/gen/wzIife.js<gh_stars>0 /* artifact generator: C:\My\wizzi\v4\node_modules\wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: c:\my\wizzi\v4\plugins\wizzi-js\src\ittf\lib\artifacts\js\module\gen\wziife.js.ittf ...
LoongPenguin/Linux_210
kernel/drivers/media/video/samsung/jpeg_v2/regs-jpeg.h
/* linux/drivers/media/video/samsung/jpeg/regs-jpeg.h * * Copyright (c) 2010 Samsung Electronics Co., Ltd. * http://www.samsung.com/ * * Register definition file for Samsung JPEG Encoder/Decoder * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Publ...
rooby/earthsci
plugins/au.gov.ga.earthsci.core/src/au/gov/ga/earthsci/core/mime/HttpContentTypeResolver.java
<gh_stars>10-100 /******************************************************************************* * Copyright 2013 Geoscience Australia * * 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 ...
zhangJQK/leetcode
problems/441/index.js
/** * 数据结构:数字 * 算法:数学 */ /** * @param {number} n * @return {number} */ const arrangeCoins = (n) => { return Math.floor(Math.sqrt(1 / 4 + 2 * n) - 1 / 2); };
yungcheeze/jenetics
jenetics.ext/src/main/java/io/jenetics/ext/rewriting/TreeMatchResult.java
<reponame>yungcheeze/jenetics /* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:/...
lhm7877/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/SelectObjectContentEvent.java
<reponame>lhm7877/aws-sdk-java /* * Copyright 2018-2020 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/...
Maarc/spring-boot-migrator
components/sbm-recipes-mule-to-boot/src/generated/java/org/mulesoft/schema/mule/core/AsynchronousThreadingProfileType.java
package org.mulesoft.schema.mule.core; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.Colla...
efe13/imgbrd-grabber
tests/src/models/image-test.cpp
#include "image-test.h" #include <QtTest> #include "functions.h" #include "test-suite.h" void ImageTest::init() { // Make tmp dir if not already existing QDir tmp("tests/resources/"); if (!tmp.exists("tmp")) tmp.mkdir("tmp"); QFile::remove("tests/resources/md5s.txt"); m_details["md5"] = "1bc29b36f623ba82aaf6...
MerHub/symfony
SprintMobiles/lib/impl/stubs/org/bouncycastle/asn1/DERUniversalString.java
/** * * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. */ package org.bouncycastle.asn1; /** * DER UniversalString object. */ public class DERUniversalString extends ASN1Primitive implements ASN1String { /** * basic constructor - byte encoded string. */ p...
paullewallencom/spring-978-1-7871-2831-6
_src/Chapter13/ch04/src/main/java/org/packt/secured/mvc/webxml/AppSessionListener.java
package org.packt.secured.mvc.webxml; import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class AppSessionListener implements HttpSessionListener{ @Override public void sessionCreated(HttpSessionEvent event) { System.out.println("app session created"); event.getSes...
consulo/consulo-python
python-impl/src/main/java/com/jetbrains/python/inspections/quickfix/ConvertDocstringQuickFix.java
<filename>python-impl/src/main/java/com/jetbrains/python/inspections/quickfix/ConvertDocstringQuickFix.java /* * Copyright 2000-2013 JetBrains s.r.o. * * 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...
phillipahereza/mattermost-server
vendor/github.com/splitio/go-client/v6/splitio/impressionListener/impression_listener.go
<reponame>phillipahereza/mattermost-server<filename>vendor/github.com/splitio/go-client/v6/splitio/impressionListener/impression_listener.go<gh_stars>1000+ package impressionlistener // ImpressionListener declaration of ImpressionListener interface type ImpressionListener interface { LogImpression(data ILObject) }
selinabitting/compas-RV2
examples/__old/skeletonObject_test.py
from compas_rv2.datastructures import Skeleton from compas_rv2.rhino import SkeletonObject from compas_rv2.rhino import SkeletonArtist import compas_rhino guids = compas_rhino.select_lines() lines = compas_rhino.get_line_coordinates(guids) skeleton = Skeleton.from_skeleton_lines(lines) skeleton.update_mesh_vertices_p...
allenjseb/cpe-chef-cookbooks
cpe_chef_handlers/metadata.rb
<reponame>allenjseb/cpe-chef-cookbooks<filename>cpe_chef_handlers/metadata.rb name 'cpe_chef_handlers' maintainer '<NAME>, Inc' maintainer_email '<EMAIL>' license 'Apache' description 'Configures chef handler settings' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version '0.1.0' depends 'cp...
mbari-media-management/vars-kb
org.mbari.kb.core/src/main/java/org/mbari/kb/core/knowledgebase/LinkTemplateDAO.java
package org.mbari.kb.core.knowledgebase; import org.mbari.kb.core.DAO; import java.util.Collection; /** * Created by IntelliJ IDEA. * User: brian * Date: Aug 7, 2009 * Time: 3:08:34 PM * To change this template use File | Settings | File Templates. */ public interface LinkTemplateDAO extends DAO, ConceptNameVa...
jcwiekala/kyma
components/ui-api-layer/internal/domain/remoteenvironment/export_test.go
package remoteenvironment import ( remoteenvironmentv1alpha1 "github.com/kyma-project/kyma/components/remote-environment-broker/pkg/client/clientset/versioned/typed/applicationconnector/v1alpha1" reMappinglister "github.com/kyma-project/kyma/components/remote-environment-broker/pkg/client/listers/applicationconnecto...
kuanpern/jupyterlab-snippets-multimenus
example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/N/neutron-muon mass ratio.py
constants.physical_constants["neutron-muon mass ratio"]
wuweiweiwu/babel
packages/babel-plugin-transform-for-of/test/fixtures/for-of-as-array/for-of/output.js
let elm; for (let _i = 0, _array = array; _i < _array.length; _i++) { elm = _array[_i]; console.log(elm); }
aliahsan07/safe-development
tests/semantics/language/toString4.js
var o = {}; o[0.0000] = 1 o[1.000] = 2 var __result1 = o["0"]; var __expect1 = 1; var __result2 = o["1"]; var __expect2 = 2;
alexeyche/vespa
vespalib/src/vespa/vespalib/util/runnable.cpp
<filename>vespalib/src/vespa/vespalib/util/runnable.cpp // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "runnable.h" namespace vespalib { int Runnable::default_init_function(Runnable &target) { target.run(); return 1; } } // namespace vespali...
greati/logicantsy
docs/html/search/functions_2.js
var searchData= [ ['join_133',['join',['../classltsy_1_1_signature.html#a3d9f873f8322407599b2be98dc8f2d91',1,'ltsy::Signature']]], ['judgements_5ffrom_5fset_5fvalues_134',['judgements_from_set_values',['../classltsy_1_1_judgement_value_correspondence.html#abca75e27c6e379d3f3c2a3a0eab8ba56',1,'ltsy::JudgementValueCo...
marsonya/v8
src/heap/cppgc/visitor.cc
<gh_stars>10-100 // 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/heap/cppgc/visitor.h" #include "src/heap/cppgc/gc-info-table.h" #include "src/heap/cppgc/heap-object-header.h" #include ...
epimorphics/dclib
src/main/java/com/epimorphics/dclib/Main.java
/****************************************************************** * File: Main.java * Created by: <NAME> * Created on: 3 Dec 2013 * * (c) Copyright 2013, Epimorphics Limited * *****************************************************************/ package com.epimorphics.dclib; import java.io.BufferedRe...
byzyn4ik/RMStyleManager
RMStyleManager/Classes/Styles/RMViewStyle.h
<reponame>byzyn4ik/RMStyleManager // // RMViewStyle.h // Pods // // Created by <NAME> on 12.05.16. // // #import "RMBaseStyle.h" @interface RMViewStyle : RMBaseStyle @end
twisted/quotient
xquotient/test/test_scrubber.py
from twisted.trial.unittest import TestCase from twisted.web.microdom import parseString, getElementsByTagName from twisted.web.domhelpers import gatherTextNodes from xquotient.scrubber import scrub, scrubCIDLinks class ScrubberTestCase(TestCase): def test_scrubCIDLinksWithLinks(self): """ Test L...
olliekrk/cloud-berry
src/main/java/com/cloudberry/cloudberry/topology/service/TopologyService.java
package com.cloudberry.cloudberry.topology.service; import com.cloudberry.cloudberry.topology.exception.TopologyNotFoundException; import com.cloudberry.cloudberry.topology.model.Topology; import com.cloudberry.cloudberry.topology.repository.TopologyRepository; import lombok.RequiredArgsConstructor; import org.bson.ty...
lhzheng880828/VOIPCall
doc/libjitisi/sources/org/jitsi/impl/neomedia/codec/audio/silk/SKP_Silk_NLSF_CBS_FLP.java
package org.jitsi.impl.neomedia.codec.audio.silk; /* compiled from: StructsFLP */ class SKP_Silk_NLSF_CBS_FLP { float[] CB; float[] Rates; int nVectors; public SKP_Silk_NLSF_CBS_FLP(int nVectors, float[] CB, float[] Rates) { this.nVectors = nVectors; this.CB = CB; this.Rates = ...
intellibitz/IntelliDroid
app/src/main/java/intellibitz/intellidroid/listener/ProfileTopicListener.java
package intellibitz.intellidroid.listener; import intellibitz.intellidroid.data.ContactItem; import intellibitz.intellidroid.data.ContactItem; import java.io.File; /** */ public interface ProfileTopicListener extends ProfileListener { // TODO: Update argument type and nameParam void onProfilePicCha...
ChrisBr/webmock
test/test_webmock.rb
require File.expand_path(File.dirname(__FILE__) + '/test_helper') require File.expand_path(File.dirname(__FILE__) + '/shared_test') class TestWebMock < Test::Unit::TestCase include SharedTest end
TomasHofman/galleon
core/src/test/java/org/jboss/galleon/test/util/XmlParserValidator.java
<filename>core/src/test/java/org/jboss/galleon/test/util/XmlParserValidator.java /* * Copyright 2016-2018 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complian...
CoOwner/VisualPvP
org/eclipse/aether/util/filter/OrDependencyFilter.java
package org.eclipse.aether.util.filter; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import org.eclipse.aether.graph.DependencyFilter; import org.eclipse.aether.graph.DependencyNode; public final class OrDependen...
shagun30/djambala-2
resource/help_form.py
<gh_stars>0 # -*- coding: utf-8 -*- """ /dms/resource/help_form.py .. enthaelt die kompletten Kontext-Hilfetexte fuer Ordner Django content Management System <NAME> <EMAIL> Die Programme des dms-Systems koennen frei genutzt und den spezifischen Beduerfnissen entsprechend angepasst werden. 0.01 13.01.2007 ...
joelouismarino/generalized_filtering
util/dtypes.py
import torch float = torch.FloatTensor int = torch.IntTensor long = torch.LongTensor byte = torch.ByteTensor ones = torch.ones zeros = torch.zeros def set_gpu_dtypes(): global float global int global long global byte global ones global zeros float = torch.cuda.FloatTensor int =...
DominoKit/gwt-cldr
src/main/java/org/gwtproject/i18n/shared/cldr/impl/DateTimeFormatInfoImpl_naq_NA.java
/* * Copyright 2012 Google 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 law or agreed to i...
RLIndia/rlcatalystpulse
server/test/routes/testInstances.js
/** * Created by <NAME> on 26/2/16. */ 'use strict'; var assert = require('assert'); var supertest = require("supertest"); var should = require("should"); var xlsx = require('node-xlsx'); var util = require('util'), fs = require('fs'); var server = supertest.agent("http://localhost:3001"); before(function(done...
reta/opensearch-java
java-client/src/main/java/org/opensearch/client/opensearch/cluster/allocation_explain/NodeDiskUsage.java
<reponame>reta/opensearch-java<gh_stars>0 /* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch B.V. under one or more contributor * lic...
lancer-kit/armory
db/worker_base.go
package db import ( "context" "github.com/sirupsen/logrus" ) // WBase is a base structure for worker which // uses database and need transactions support. type WBase struct { DB Transactional Logger *logrus.Entry Ctx context.Context Err error } func (s *WBase) DBTxRollback() { if s.Err == nil { r...
hkamel/weblogic-kubernetes-operator
integration-tests/src/test/resources/apps/coherence-proxy-client/src/main/java/cohapp/CacheClient.java
// Copyright (c) 2019, Oracle Corporation and/or its affiliates. All rights reserved. // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. package cohapp; import java.io.BufferedReader; import java.io.File; import java.io.FileWriter; import java.io.InputStreamRead...
bijeshcnair/wavemaker-app-runtime
src/main/webapp/scripts/modules/widgets/basic/popover/popover.js
/*global WM, document, _ */ /*jslint sub: true*/ /*Directive for popover */ WM.module('wm.widgets.basic') .directive('wmPopover', [ 'PropertiesFactory', 'WidgetUtilService', 'Utils', 'CONSTANTS', '$rootScope', '$timeout', '$templateCache', '$compile',...
chakradhar32/dega
studio/src/actions/podcasts.js
<gh_stars>10-100 import axios from 'axios'; import { ADD_PODCAST, ADD_PODCASTS, ADD_PODCASTS_REQUEST, SET_PODCASTS_LOADING, RESET_PODCASTS, PODCASTS_API, } from '../constants/podcasts'; import { addCategories } from './categories'; import { addErrorNotification, addSuccessNotification } from './notification...
dev-dpoudel/healthmap
healthmap/patients/models.py
from django.db import models # Base Model for Patient Information class Patients(models.Model): created_date = models.DateField(auto_now_add=True) modified_date = models.DateField(auto_now=True) # define as a abstract base class class Meta: abstract = True # Model for Staff Information. cla...
chiang/teamcode-runner
src/main/java/io/teamcode/runner/common/AnsiColors.java
<reponame>chiang/teamcode-runner package io.teamcode.runner.common; /** * Created by chiang on 2017. 4. 27.. */ public class AnsiColors { public static final String ANSI_BOLD_BLACK = "\033[30;1m"; public static final String ANSI_BOLD_RED = "\033[31;1m"; public static final String ANSI_BOLD_GREEN ...
g1ntas/accio-go
internal/logger/logger.go
<filename>internal/logger/logger.go package logger import ( "fmt" "io" "log" ) func New(w io.Writer, tag string) *Logger { return &Logger{ stdlog: log.New(w, "", 0), tag: tag, } } type Logger struct { stdlog *log.Logger tag string Verbose bool } func (l *Logger) Debug(v ...interface{}) { if !l....
sefroberg/jenkins-scm-koji-plugin
fake-koji/src/main/java/org/fakekoji/functional/Tuple.java
package org.fakekoji.functional; import java.util.Objects; public class Tuple<X, Y> { public final X x; public final Y y; public Tuple(X x, Y y) { this.x = x; this.y = y; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanc...
rsrahul1000/Hack-CP-DSA
Codeforces/Beautiful Matrix/Solution.cpp
#include <bits/stdc++.h> #include <iostream> #include <cmath> using namespace std; int main() { int i,j,n=0; for(i=1;i<=5;i++) //loop to start with row { for(j=1;j<=5;j++) //loop to start with column { cin>>n; //storing value of each cell if(n=...
nimakarimipour/checker-framework
checker/tests/mustcall/EditLogInputStream.java
import java.io.*; import java.util.*; abstract class EditLogInputStream implements Closeable { public abstract boolean isLocalLog(); } interface JournalSet extends Closeable { static final Comparator<EditLogInputStream> LOCAL_LOG_PREFERENCE_COMPARATOR = Comparator.comparing(EditLogInputStream::isLocalLog).r...
d-tree-org/opensrp-client-chw
opensrp-chw/src/main/java/org/smartregister/chw/fragment/FamilyRemoveMemberFragment.java
package org.smartregister.chw.fragment; import android.content.Intent; import android.os.Bundle; import com.vijay.jsonwizard.constants.JsonFormConstants; import com.vijay.jsonwizard.domain.Form; import org.json.JSONObject; import org.smartregister.chw.R; import org.smartregister.chw.activity.FamilyRegisterActivity; ...
corbettg/archivesspace-1.5.3
backend/spec/custom_matchers.rb
RSpec::Matchers.define :have_node do |path| match do |actual| if actual.at(path) true else false end end failure_message do |actual| prefix = "" while path.slice(0) == '/' prefix << path.slice!(0) end root_frags = path.split('/').reject{|f| f.empty?} node_frags = ...
viktortnk/pants
tests/python/pants_test/backend/jvm/tasks/coverage/test_cobertura.py
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os from collections import defaultdict from pants.backend.jvm.targets.annotation_processor import AnnotationProcessor from pants.backend.jvm.targets.jar_library import JarLibrary f...
sarvekash/HackerRank_Solutions
ProjectEuler+/euler-0135.cpp
// //////////////////////////////////////////////////////// // # Title // Same differences // // # URL // https://projecteuler.net/problem=135 // http://euler.stephan-brumme.com/135/ // // # Problem // Given the positive integers, `x`, `y`, and `z`, are consecutive terms of an arithmetic progression, the least value of...