repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
vais-ral/CCPi-ML
AstroMl/Tensorflow/AstroML_BookPlots/Quasars_NN.py
<filename>AstroMl/Tensorflow/AstroML_BookPlots/Quasars_NN.py # -*- coding: utf-8 -*- """ Created on Tue Aug 7 15:40:18 2018 @author: zyv57124 """ import numpy as np from matplotlib import pyplot as plt from astroML.utils import split_samples from sklearn.metrics import roc_curve from sklearn.naive_bayes import Gauss...
qermyt/miniputer
lib/miniputer/components/atomic/data_to_bits.rb
require_relative 'wire_splitter' class DataToBits < WireSplitter end
msurdeanu/my-alerts-app
src/main/java/org/myalerts/model/User.java
package org.myalerts.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import lombok.Getter; import lombok.Setter; /** * @author <NAME> * @since 1.0.0 */ @Entity @Table(name = "user...
ScalablyTyped/SlinkyTyped
t/titanium/src/main/scala/typingsSlinky/titanium/Titanium/GestureShakeEvent.scala
<gh_stars>10-100 package typingsSlinky.titanium.Titanium import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /** * Fired when the device is shaken. */ @js.native trait GestureS...
shaqk/dfuse-eosio
tokenmeta/tokenmeta.go
package tokenmeta import ( "encoding/json" "fmt" "github.com/dfuse-io/bstream" pbabicodec "github.com/dfuse-io/dfuse-eosio/pb/dfuse/eosio/abicodec/v1" pbcodec "github.com/dfuse-io/dfuse-eosio/pb/dfuse/eosio/codec/v1" pbtokenmeta "github.com/dfuse-io/dfuse-eosio/pb/dfuse/eosio/tokenmeta/v1" "github.com/dfuse-io...
NelsonGomesNeto/ProgramC
Online Judges/CodeForces/534BCoveredPath.cpp
#include <bits/stdc++.h> int main() { int v1, v2, t, d; scanf("%d %d %d %d", &v1, &v2, &t, &d); if (v1 > v2) { int aux = v1; v1 = v2; v2 = aux; } int dist = v1 + v2; t -= 2; while (t -- > 0) { if (v1 - (d * t) < v2) v1 += d; else v1 = v2 + (d * (t + 1)...
temportalflux/MelodyBot
src/ui/library_player/playback/backend_list.py
<reponame>temportalflux/MelodyBot from src.ui.core import Table class BackendList(Table): def __init__(self, parent, logger): Table.__init__(self, parent, logger) self.backends = [] self.add_column('Backend') self.init_treeview() def get_item_list(self): return self.backends def create_column_values_f...
topherCarpediem/shopping
dist/components/Token/validateToken.js
<reponame>topherCarpediem/shopping "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key...
Mirai-Team/MiraiVN
include/display/DialogueFrame.hpp
//////////////////////////////////////////////////////////// // // MiraiVN // Copyright (C) 2014-2015 <NAME> (<EMAIL>), <NAME> (<EMAIL>) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages arising from the use of this software....
rubyberlin/cfp-app
app/models/comment.rb
class Comment < ApplicationRecord belongs_to :proposal belongs_to :user validates :proposal, :user, presence: true validates :body, presence: true def public? type == "PublicComment" end end # == Schema Information # # Table name: comments # # id :integer not null, primary key # p...
entityc/ec-sb-tutorial-service
src/main/java/org/entityc/tutorial/util/MarkdownImporter.java
package org.entityc.tutorial.util; import org.entityc.tutorial.exception.ServiceException; import org.entityc.tutorial.model.Exercise; import org.entityc.tutorial.model.Module; import org.entityc.tutorial.model.Session; import org.entityc.tutorial.model.Step; import org.entityc.tutorial.service.ExerciseService; import...
andrasigneczi/TravelOptimiser
DataCollector/mozilla/xulrunner-sdk/include/nsLocalFileWin.h
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0...
jan-moeller/text
test/tailoring_rule_test_zh_stroke_014.cpp
// Warning! This file is autogenerated. #include <boost/text/collation_table.hpp> #include <boost/text/collate.hpp> #include <boost/text/data/all.hpp> #ifndef LIMIT_TESTING_FOR_CI #include <boost/text/save_load_table.hpp> #include <boost/filesystem.hpp> #endif #include <gtest/gtest.h> using namespace boost::text; ...
ASTRO-Strobel/tsduck
src/libtsduck/dtv/descriptors/tsStreamEventDescriptor.cpp
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2020, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
coutouly/nenupy
nenupy/astro/__init__.py
#! /usr/bin/python3 # -*- coding: utf-8 -*- from .astro_tools import * import json from os.path import join, dirname with open(join(dirname(__file__), "common_sources.json")) as sources: common_sources = json.load(sources)
timtim17/myuw
myuw_vue/tests/calendar-sidebar-links.test.js
<reponame>timtim17/myuw import axios from 'axios'; import { mount } from '@vue/test-utils'; import { createLocalVue } from './helper'; import Vuex from 'vuex'; import category_links from '../vuex/store/category_links'; import CalSidebarLinks from '../components/calendar/sidebar-links.vue'; import mockCalLinks from ...
wuniversales/deploy-to-skynet-action
node_modules/@skynetlabs/skynet-nodejs/scripts/get-metadata.js
<filename>node_modules/@skynetlabs/skynet-nodejs/scripts/get-metadata.js /** * Demo script that gets metadata for all skylinks passed in as CLI arguments. * * Example usage: node scripts/get-metadata.js <skylink> */ const process = require("process"); const { SkynetClient } = require(".."); const client = new Sk...
kmdkuk/AndroidTraining
AndroidStudio/assignments/fundamentals/1st/LayoutAssignment/src/main/java/jp/mixi/assignment/layout/MainActivity.java
package jp.mixi.assignment.layout; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceSt...
stbly/gemp-swccg-public
gemp-swccg-cards/src/main/java/com/gempukku/swccgo/cards/set9/dark/Card9_134.java
package com.gempukku.swccgo.cards.set9.dark; import com.gempukku.swccgo.cards.AbstractNormalEffect; import com.gempukku.swccgo.cards.GameConditions; import com.gempukku.swccgo.common.*; import com.gempukku.swccgo.cards.conditions.OnTableCondition; import com.gempukku.swccgo.logic.conditions.NotCondition; import com.ge...
gizzmo25/pythoncode-tutorials
web-scraping/extract-and-fill-forms/form_extractor.py
<reponame>gizzmo25/pythoncode-tutorials from bs4 import BeautifulSoup from requests_html import HTMLSession from pprint import pprint # initialize an HTTP session session = HTMLSession() def get_all_forms(url): """Returns all form tags found on a web page's `url` """ # GET request res = sessio...
ahmounir/UIC-barcode
src/test/java/org/uic/barcode/asn1/test/UperEncodeStringTest.java
package org.uic.barcode.asn1.test; import static org.junit.Assert.assertEquals; import java.util.logging.Level; import org.junit.Test; import org.uic.barcode.asn1.datatypes.Asn1Optional; import org.uic.barcode.asn1.datatypes.CharacterRestriction; import org.uic.barcode.asn1.datatypes.FieldOrder; import org.uic.barco...
chs6558/chs6558.github.io
node_modules/styled-icons/crypto/Mco/Mco.esm.js
<reponame>chs6558/chs6558.github.io export * from '@styled-icons/crypto/Mco';
thomasmodeneis/dusk-blockchain
pkg/util/nativeutils/eventbus/multicaster.go
package eventbus import ( "github.com/dusk-network/dusk-blockchain/pkg/p2p/wire/topics" ) // Multicaster allows for a single Listener to listen to multiple topics type Multicaster interface { AddDefaultTopic(topics.Topic) SubscribeDefault(Listener) uint32 } // AddDefaultTopic adds a topic to the default multiList...
myoukaku/bksge
libs/fnd/variant/include/bksge/fnd/variant.hpp
<gh_stars>1-10 /** * @file variant.hpp * * @brief Variant library * * @author myoukaku */ #ifndef BKSGE_FND_VARIANT_HPP #define BKSGE_FND_VARIANT_HPP #include <bksge/fnd/variant/bad_variant_access.hpp> #include <bksge/fnd/variant/config.hpp> #include <bksge/fnd/variant/get.hpp> #include <bksge/fn...
Pixelated-Project/aosp-android-jar
android-31/src/com/android/net/module/util/ConnectivitySettingsUtils.java
<reponame>Pixelated-Project/aosp-android-jar<gh_stars>10-100 /* * Copyright (C) 2021 The Android Open Source Project * * 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...
orbiting/publikator-frontend
components/editor/modules/title/ui.js
<reponame>orbiting/publikator-frontend<filename>components/editor/modules/title/ui.js import React from 'react' import { Map } from 'immutable' import { A, Label } from '@project-r/styleguide' import { createPropertyForm } from '../../utils' import MetaForm from '../../utils/MetaForm' export default ({ TYPE, subModu...
yairtawil/devextreme-reactive
packages/dx-chart-core/src/index.js
export * from './plugins/scale/computeds'; export * from './plugins/layout-manager/computeds'; export * from './plugins/axis/computeds'; export * from './plugins/series/computeds'; export * from './plugins/stack/computeds'; export * from './plugins/animation/computeds'; export * from './plugins/tooltip/computeds'; expo...
smeng9/Klampt
Python/klampt/math/autodiff/math_ad.py
<gh_stars>100-1000 """Basic math / linear algebra routines. Defines the following AD functions: ================= ============= =================================== Function Derivative Notes ================= ============= =================================== exp 1 log ...
truthiswill/intellij-community
platform/external-system-rt/src/com/intellij/openapi/externalSystem/rt/execution/ForkedDebuggerConfiguration.java
<gh_stars>1-10 // Copyright 2000-2018 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.openapi.externalSystem.rt.execution; import org.jetbrains.annotations.Nullable; /** * @author Vladislav.Soroka */ public class ForkedDebugg...
julie-sullivan/cellbase
cellbase-client/src/test/java/org/opencb/cellbase/client/rest/TranscriptClientTest.java
/* * Copyright 2015-2020 OpenCB * * 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 ...
urxp/dRally
___38708h.c
<reponame>urxp/dRally #include "drally.h" extern byte ___1a112ch__VESA101_ACTIVESCREEN_PTR[]; extern byte ___1a0fd8h[]; // RACE RESULTS, PRESS ANY KEY TO CONTINUE BG void ___38708h(void){ dword eax, ebx, ecx, edx, edi, esi, ebp; edx = 0x18810; ebx = 0x46c80; ___38721h: ecx = 0x110; edi = D(___1a112ch__...
TkkrLab/barsystem
barsystem/src/barsystem/__init__.py
<gh_stars>1-10 __author__ = '<NAME> <<EMAIL>>' __version__ = '1.0.7' def get_version(): return __version__
LastLeaf/LightPalette
core/client/backstage/lib/table_builder.js
<filename>core/client/backstage/lib/table_builder.js // Copyright 2014 LastLeaf, LICENSE: github.lastleaf.me/MIT 'use strict'; lp.tableBuilder = function($div, options, colDefine, addDef){ var idCol = options.idCol || '_id'; var editMore = !!options.editMore; var allowAdd = !!addDef; var allowRemove = !options.noR...
woblob/Crystal_Symmetry
krysztalki/workDir/tests/test matrices/test_matrices_like_m3_xxx.py
<filename>krysztalki/workDir/tests/test matrices/test_matrices_like_m3_xxx.py import matrices_new_extended as mne import numpy as np import sympy as sp from equality_check import Point x, y, z = sp.symbols("x y z") Point.base_point = np.array([x, y, z, 1]) class Test_Axis_m3_xxx: def test_matrix_m3_xxx(self): ...
wxq491216/wormhole
LSWormhole/LSWormhole/LSDeviceClient.h
// // LSDeviceClient.h // LSWormhole // 与远程服务器通信Socket类 // Created by xqwang on 2018/9/18. // #import <Foundation/Foundation.h> #import "LSSocketHeader.h" @interface LSDeviceClient : NSObject @property(nonatomic, assign)id<LSSocketDelegate> delegate; //@property(nonatomic, assign)BOOL appOpen; -(BOOL)connec...
zhanggh/andr_puligins
library_common/src/com/plugin/commons/helper/DialogUtil.java
package com.plugin.commons.helper; import java.util.HashMap; import java.util.Map; import android.app.Activity; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.Context; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.v...
newsuk/times-components-native
packages/in-todays-edition/__tests__/shared.js
import InTodaysEdition from "../in-todays-edition"; import Item from "../item"; import TestRenderer from "react-test-renderer"; import React from "react"; import "./serializers-with-all-styles"; jest.mock("@times-components-native/icons", () => ({ IconForwardArrow: "IconForwardArrow", })); import InTodaysEditionDat...
jnthn/intellij-community
java/java-tests/testData/refactoring/wrapReturnValue/anonymous/after/Test.java
<gh_stars>1-10 class Test { public Wrapper foo(int p) { Object o = new Object() { private String myIntFull = ""; public String getIntFull() { return myIntFull; } }; if (p > 0) { return new Wrapper(""); } else { return new Wrapper(""); } } }
kirillrdy/geom
route/route.go
// Package route finds the shortest route between two points along a geometrical // network (e.g., a road network). For now, all network links are assumed to be // bi-directional (e.g., all roads are two-way). package route import ( "fmt" "math" "github.com/ctessum/geom" "github.com/ctessum/geom/index/rtree" "gi...
paige-ingram/nwhacks2022
node_modules/@fluentui/react-icons/lib/cjs/components/CallProhibited28Filled.js
<filename>node_modules/@fluentui/react-icons/lib/cjs/components/CallProhibited28Filled.js<gh_stars>0 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const wrapIcon_1 = require("../utils/wrapIcon"); const rawSvg = (iconProps) => { const { className, primar...
Mararsh/MyBox
alpha/MyBox/src/main/java/mara/mybox/controller/Data2DTransposeController.java
<reponame>Mararsh/MyBox package mara.mybox.controller; import java.util.ArrayList; import java.util.List; import mara.mybox.dev.MyBoxLog; import mara.mybox.fxml.WindowTools; import mara.mybox.value.Fxmls; import static mara.mybox.value.Languages.message; /** * @Author Mara * @CreateDate 2021-12-9 * @License Apache...
atuldada/checker-framework
checker/src/org/checkerframework/checker/signature/qual/BinaryNameInUnnamedPackage.java
package org.checkerframework.checker.signature.qual; import java.lang.annotation.ElementType; import java.lang.annotation.Target; import org.checkerframework.framework.qual.ImplicitFor; import org.checkerframework.framework.qual.SubtypeOf; /** * Represents a string that is both a {@link BinaryName} and an {@link Int...
stas-vilchik/bdd-ml
data/2690.js
{ log.push(cs[0]); if (this instanceof C) { this.name = cs; } else { return C; } }
dmkelly/mongres
src/statics.js
<filename>src/statics.js const Query = require('./query'); const { castError } = require('./utils'); function count(Model) { return function count(filters = {}) { return find(Model)(filters).count(); }; } function create(Model) { return async function create(data, { transaction } = {}) { const document ...
abramsmatthew/adpllc-test
docassemble_base/docassemble/base/generate_key.py
<gh_stars>0 import string import random import sys r = random.SystemRandom() def random_string(length): return ''.join(r.choice(string.ascii_letters) for i in range(length)) def random_alphanumeric(length): return ''.join(r.choice(string.ascii_uppercase + string.digits) for x in xrange(length)) if __name__ ...
Nahid-Hassan/fullstack-software-development
courses/backend/django-for-everybody/Web Application Technologies and Django/resources/dj4e-samples/tmpl/views.py
<filename>courses/backend/django-for-everybody/Web Application Technologies and Django/resources/dj4e-samples/tmpl/views.py from django.shortcuts import render from django.views import View # Create your views here. def simple(request): return render(request, 'tmpl/simple.html') def guess(request) : context ...
gaoht/house
java/classes2/com/unionpay/tsmservice/data/AssociatedCardInfo$1.java
package com.unionpay.tsmservice.data; import android.os.Parcel; import android.os.Parcelable.Creator; final class AssociatedCardInfo$1 implements Parcelable.Creator<AssociatedCardInfo> { public final AssociatedCardInfo createFromParcel(Parcel paramParcel) { return new AssociatedCardInfo(paramParcel); } ...
kitaharalab/cmx
src/main_common/jp/crestmuse/cmx/commands/DeviationInstanceExtractor.java
package jp.crestmuse.cmx.commands; import org.xml.sax.SAXException; import java.io.File; import java.io.IOException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import jp.crestmuse.cmx.filewrappers.CMXFileWrapper; import jp.crestmuse.cmx.filewrappers.Devia...
Rachel-Shao/openyurt
pkg/yurtctl/util/util_test.go
<gh_stars>100-1000 /* Copyright 2021 The OpenYurt Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
bluebreezecf/login-server
src/main/java/org/cloudfoundry/identity/uaa/login/XFrameOptionsFilter.java
<filename>src/main/java/org/cloudfoundry/identity/uaa/login/XFrameOptionsFilter.java<gh_stars>0 package org.cloudfoundry.identity.uaa.login; import org.springframework.web.filter.OncePerRequestFilter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest...
comprakt/comprakt-fuzz-tests
output/b4f7239beeac42ff823daf344d19c93f.java
class ihigmjy2aybUni { } class bFa { } class ahJt1oyYY3Wh { public int MTJT_tQvv2QL; public void[] HwyELn2 () throws M9DOsBxMtDU { boolean[] Vmg = ( -null[ new G[ 87370682.m].FkXJkllccKj])[ new boolean[ this.zorOvYm_()].ICvy()]; if ( --!W5mk().Yx8TEtn()) -4716487[ -!082296730[ 168726791[ f...
MH-Bidhan/TimeToDo
src/models/users/users.model.js
const { hashPassword } = require("../../services/bcrypt"); const users = require("./users.mongo"); async function getUser() { const allUsers = await users.find( {}, { password: 0, createdAt: 0, resetQuotaTime: 0, } ); return allUsers; } async function getUserById(userId) { try {...
mahogano/mahogano
src/main/java/com/mahogano/core/magento/entity/CatalogProductSuperAttribute.java
package com.mahogano.core.magento.entity; public class CatalogProductSuperAttribute { private Integer productSuperAttributeId; private Integer productId; private Integer attributeId; private Integer position; public Integer getProductSuperAttributeId() { return productSuperAttributeId;...
josephspurrier/goreactapp
src/app/api/pkg/router/router.go
<reponame>josephspurrier/goreactapp package router import ( "net/http" "github.com/matryer/way" ) // Mux contains the router. type Mux struct { router *way.Router // CustomServeHTTP is a settable serve function. CustomServeHTTP func(w http.ResponseWriter, r *http.Request, status int, err error) } // New retur...
pitbox46/graaljs-forge
src/main/java/com/oracle/truffle/host/HostLanguageService.java
/* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted to any * person obtaining a copy of this s...
mnote/Aspose.Cells-for-Java
Examples/src/AsposeCellsExamples/Workbook/CreateSharedWorkbook.java
<filename>Examples/src/AsposeCellsExamples/Workbook/CreateSharedWorkbook.java package AsposeCellsExamples.Workbook; import com.aspose.cells.*; import AsposeCellsExamples.Utils; public class CreateSharedWorkbook { static String srcDir = Utils.Get_SourceDirectory(); static String outDir = Utils.Get_OutputDirectory(...
PesterevViacheslav/vpesterev
chapter_006/src/test/java/ru/job4j/search/TestSearchFiles.java
<reponame>PesterevViacheslav/vpesterev package ru.job4j.search; import org.junit.Test; import java.io.*; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import static org.hamcrest.Matchers.is; import static org.jun...
mondo-mob/spring-boot-gae
src/test/java/org/springframework/contrib/gae/objectify/repository/StringSaveRepositoryTest.java
package org.springframework.contrib.gae.objectify.repository; import com.googlecode.objectify.SaveException; import org.assertj.core.api.SoftAssertions; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.contrib.gae.objectify.TestStringEntity; import java....
nikolay-kostov/ngtrello
src/app/guest/directives/header/header.guest.directive.js
import template from './header.guest.tpl.html'; headerGuest.$inject = []; export default function headerGuest() { var directive = { restrict: 'E', template: template, link: link, controller: headerController, controllerAs: 'vm', scope: true }; headerControl...
Rukeith/example-C
Fig5.14.c
<reponame>Rukeith/example-C #include<stdio.h> long factorial( long number ); int main( void ) { int i; for ( i = 0; i <= 10; i++ ) { printf( "%2d! = %ld\n", i, factorial( i ) ); } return 0; } long factorial( long number ) { if ( number <= 1 ) { return 1; } else { return ( num...
1757WestwoodRobotics/2022-RapidReact
commands/climber/moveclimberstonextrungcaptureposition.py
<filename>commands/climber/moveclimberstonextrungcaptureposition.py from commands2 import CommandBase from subsystems.climbers.leftclimbersubsystem import LeftClimber from subsystems.climbers.rightclimbersubsystem import RightClimber import constants class MoveLeftClimberToNextRungCapturePosition(CommandBase): de...
BrandwatchLtd/plottable
quicktests/js/domain_adjustment_algorithm.js
function makeData() { "use strict"; return makeRandomData(50); } function run(div, data, Plottable) { "use strict"; var svg = div.append("svg").attr("height", 500); var ds = new Plottable.Dataset(data); var xScale = new Plottable.Scale.Linear(); var yScale = new Plottable.Scale.Linear(); var xAxis ...
stevek-ngdata/lilyproject
cr/repository/api/src/main/java/org/lilyproject/repository/api/RecordType.java
<reponame>stevek-ngdata/lilyproject<gh_stars>10-100 /* * Copyright 2010 Outerthought bvba * * 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...
keera-studios/hsQt
qws/src/qtc_script_meta.cpp
///////////////////////////////////////////////////////////////////////////// // // File : qtc_script_meta.cpp // Copyright : (c) <NAME> 2010 // Project : qtHaskell // Version : 1.1.4 // Modified : 2010-09-02 17:01:54 // // Warning : this file is machine generated -...
shuchitamathur28/bitrix24
bitrix/modules/imconnector/install/components/bitrix/imconnector.whatsappbytwilio/templates/.default/script.js
;(function (window) { window.checkWhatsAppByTwilioFirst = function () { document.getElementById('webform-small-button-have').disabled = this.value ? false : "disabled"; }; BX.ready(function () { BX.bindDelegate( document.body, 'click', {className: 'copy-to-clipboard'}, copyToClipboard ); BX.bin...
jpetazzo/squash
test/utils/utils.go
package e2e_test import ( "encoding/json" "fmt" "log" "math/rand" "os/exec" "github.com/solo-io/squash/pkg/models" v1 "k8s.io/client-go/pkg/api/v1" ) type Kubectl struct { Context, Namespace string } func NewKubectl(kubectlctx string) *Kubectl { return &Kubectl{ Context: kubectlctx, Namespace: fmt.S...
custergo/study_algo
01.Play-with-Data-Structures/02-Arrays/03-Add-Element-in-Array/Array_test.go
package _3_Add_Element_in_Array import ( "fmt" "testing" ) func TestArray(t *testing.T) { arr := NewArray(5) fmt.Println(arr.GetSize()) arr.AddLast(1) arr.AddLast(2) arr.AddLast(3) arr.Add(1, 5) fmt.Println(arr) fmt.Println(arr.GetSize()) }
achanana/terrier
src/include/planner/plannodes/index_scan_plan_node.h
#pragma once #include <memory> #include <string> #include <utility> #include <vector> #include "catalog/catalog_defs.h" #include "catalog/schema.h" #include "common/hash_util.h" #include "parser/expression/abstract_expression.h" #include "planner/plannodes/abstract_scan_plan_node.h" // TODO(Gus,Wen): IndexScanDesc ha...
wgziOS/TestCarPort
carport/carport/XMGNavigationController.h
<gh_stars>0 // // XMGNavigationController.h // carport // // Created by 吴桂钊 on 2016/12/5. // Copyright © 2016年 8<EMAIL>. All rights reserved. // #import <UIKit/UIKit.h> @interface XMGNavigationController : UINavigationController @end
sdss/lvmmodel
bin/fiberloss.py
<reponame>sdss/lvmmodel #!/usr/bin/env python # # python version of fiberloss.pro # <NAME> 2014/06/23 # # adapted to include telescope blur and updated wavelength dependence # <NAME> 2014/06/26 # # Compute the fiber input losses for the benchmark spectra cases # Fiber diameter 1.5 arcsec # Seeing is 1.1 arcsec FWHM wit...
wfang/Apollo
src/gwt/org/bbop/apollo/gwt/client/SuggestedNameOracle.java
package org.bbop.apollo.gwt.client; import com.google.gwt.core.client.GWT; import com.google.gwt.http.client.RequestBuilder; import com.google.gwt.http.client.RequestCallback; import com.google.gwt.http.client.RequestException; import com.google.gwt.json.client.JSONArray; import com.google.gwt.json.client.JSONObject; ...
fairyly/js-test
vsjavas-code/code/testangular2/todo/public/src/app/tasks/tasks-sort.pipe.js
/*** * Excerpted from "Test-Driving JavaScript Applications", * published by The Pragmatic Bookshelf. * Copyrights apply to this code. It may not be used to create training material, * courses, books, articles, and the like. Contact us if you are in doubt. * We make no guarantees that this code is fit for any purp...
Yimura/Fabric-StackMob
src/main/java/sh/damon/stackmob/entity/traits/trait/MooshroomVariant.java
<filename>src/main/java/sh/damon/stackmob/entity/traits/trait/MooshroomVariant.java<gh_stars>0 package sh.damon.stackmob.entity.traits.trait; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.passive.MooshroomEntity; import net.minecraft.nbt.NbtCompound; import sh.damon.stackmob.entity.traits.Trait...
gabizou/SpongeDownloads
api/project.go
<reponame>gabizou/SpongeDownloads<gh_stars>1-10 package api import ( "database/sql" "github.com/SpongePowered/DownloadIndexer/httperror" "github.com/SpongePowered/DownloadIndexer/maven" "github.com/lib/pq" "gopkg.in/macaron.v1" "net/http" "sort" "time" ) type project struct { Name string `json:"name"` P...
a07061625/jilibs
mpf/api/qcloud/util.go
/** * Created by GoLand. * User: 姜伟 * Date: 2020/1/2 0002 * Time: 9:53 */ package qcloud import ( "encoding/base64" "strconv" "time" "github.com/a07061625/gompf/mpf" "github.com/a07061625/gompf/mpf/api" "github.com/clbanning/mxj" ) type utilQCloud struct { api.UtilAPI } // 生成权限策略签名 ...
sauce-archives/visual-scripting
org.testobject.commons/imaging/src/main/java/org/testobject/kernel/imaging/color/palette/Palettes.java
package org.testobject.kernel.imaging.color.palette; import java.awt.Color; /** * * @author enijkamp * */ public interface Palettes { public static final int[] PALETTE_6 = Builder.colors(Color.red, Color.blue, Color.green, Color.cyan, Color.magenta, Color.yellow); public static final int[] PALETTE_3 = B...
fletchgraham/colosseum
tests/web_platform/CSS2/normal_flow/test_inline_non_replaced_width.py
<filename>tests/web_platform/CSS2/normal_flow/test_inline_non_replaced_width.py from tests.utils import W3CTestCase class TestInlineNonReplacedWidth(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'inline-non-replaced-width-'))
itastro/mycode
blstation-master/blstation-interface/src/main/java/com/bl/station/service/News/NewService.java
<reponame>itastro/mycode package com.bl.station.service.News; import com.bl.station.entity.News; import com.bl.station.page.PageInfo; import com.bl.station.page.PageParam; import com.bl.station.param.NewsParam; import com.bl.station.param.NewsSearch; import com.bl.station.utils.StationResult; public interface NewServi...
hlystovea/resource_planner
project/repairs/views.py
<filename>project/repairs/views.py from django.views.generic import View class GeneratePdf(View): pass
vestrel00/business-search-app-java
presentation-java-android-mvp/src/main/java/com/vestrel00/business/search/presentation/java/android/mvp/ui/business/list/presenter/BusinessListObserver.java
<filename>presentation-java-android-mvp/src/main/java/com/vestrel00/business/search/presentation/java/android/mvp/ui/business/list/presenter/BusinessListObserver.java /* * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with ...
togogenome/togogenome
app/models/facets/taxonomy.rb
module Facets class Taxonomy < Base def children sparql = <<-SPARQL.strip_heredoc SELECT ?target ?name (COUNT(?name) AS ?hits) WHERE { GRAPH <http://togogenome.org/graph/taxonomy_lite> { FILTER EXISTS { ?target rdfs:subClassOf ?_parent } . ?target rdfs:subCl...
hasithajayasundara/airavata-custos
custos-core-services/resource-secret-core-service/src/main/java/org/apache/custos/resource/secret/persistance/local/model/Secret.java
<reponame>hasithajayasundara/airavata-custos /* * 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 Li...
outrofelipe/Python-para-zumbis
exercicios-e-exemplos/consoantes.py
<reponame>outrofelipe/Python-para-zumbis n = int(input("Informe a quantidade de caracteres: ")) caracteres = [] consoantes = 0 i = 1 while i <= n: c = input("Informe o %d caracter: " %i) caracteres.append(c) i += 1 i = 0 while i < n: if caracteres[i] not in "aeiou": consoantes += 1 i += 1 pr...
hchiam/javascriptSandbox
more-like-interview-questions/compareVersion.js
<filename>more-like-interview-questions/compareVersion.js /* eslint-disable require-jsdoc */ const compareVersion = (version1, version2) => { const v1 = version1.split('.'); const v2 = version2.split('.'); const maxLength = Math.max(v1.length, v2.length); v1.length = maxLength; v2.length = maxLength; for (...
waldyrious/cosmopolitan
test/libc/dns/parseresolvconf_test.c
<gh_stars>1-10 /*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2020 <NAME> │ │ ...
dram/metasfresh
backend/de.metas.adempiere.adempiere/base/src/main/java/org/compiere/grid/CTableColumns2GridTabSynchronizer.java
<filename>backend/de.metas.adempiere.adempiere/base/src/main/java/org/compiere/grid/CTableColumns2GridTabSynchronizer.java<gh_stars>1000+ package org.compiere.grid; /* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2015 metas GmbH * %% * This program is free software: you can redistribute it and/...
brikkho-net/okta-signin-widget
test/unit/spec/VerifyPIV_spec.js
/* eslint max-params: [2, 18], max-statements: 0 */ define([ 'okta', '@okta/okta-auth-js', 'helpers/mocks/Util', 'helpers/dom/PivForm', 'helpers/dom/PrimaryAuthForm', 'helpers/dom/Beacon', 'helpers/util/Expect', 'LoginRouter', 'sandbox', 'helpers/xhr/PIV_error', 'helpers/xhr/PIV_POST', 'helpers/...
Anlon-Burke/vespa
documentapi/src/main/java/com/yahoo/documentapi/VisitorDataHandler.java
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.documentapi; import com.yahoo.document.Document; import com.yahoo.document.DocumentId; import com.yahoo.documentapi.messagebus.protocol.*; import com.yahoo.messagebus.Message; import com.yahoo.vds...
JSNavas/CursoPython2.7
21. generadores.py
lista = ["bienvenido "] ciclo = (c * 4 for c in lista) print ciclo print ciclo.next() for cadena in ciclo: print cadena print n = input("Factorial de: ") def factorial(n): i = 1 while n > 1: i = n * i yield i n -= 1 for fact in factorial(n): print fact
sejoung/codeTestJDK8
src/main/java/com/github/sejoung/codetest/annotation/markerinterface/Developer.java
<filename>src/main/java/com/github/sejoung/codetest/annotation/markerinterface/Developer.java package com.github.sejoung.codetest.annotation.markerinterface; public interface Developer { }
carpyncho/yeolde_carpyncho
carpyncho2/carpyncho/steps/read_tile.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from corral import run, db from ..models import Tile, MasterSource class ReadTile(run.Step): model = Tile conditions = [model.status == "measured"] procno = 3 groups = ["read"] production_procno = 1 @classmethod def class_setup(cls): ...
wied03/ansible-ruby
lib/ansible/ruby/modules/generated/cloud/amazon/cloudformation_facts.rb
# frozen_string_literal: true # See LICENSE.txt at root of repository # GENERATED FILE - DO NOT EDIT!! require 'ansible/ruby/modules/base' module Ansible module Ruby module Modules # Gets information about an AWS CloudFormation stack class Cloudformation_facts < Base # @return [String, nil] T...
apache/aries-old
subsystem/subsystem-itests/src/test/java/org/apache/aries/subsystem/itests/util/BundleArchiveBuilder.java
package org.apache.aries.subsystem.itests.util; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import org.ops4j.pax.tinybundles.core.InnerClassStrategy; import org.ops4j.pax.tinybundles.core.TinyBundle; import org.ops4j.pax.tinybundles.core.TinyBundles; import aQute.bnd...
TirthrajRao/spurtV2
dist/api/repositories/stockStatusRepository.js
<filename>dist/api/repositories/stockStatusRepository.js "use strict"; /* * spurtcommerce API * version 2.1 * http://api.spurtcommerce.com * * Copyright (c) 2019 piccosoft ltd * Author piccosoft ltd <<EMAIL>> * Licensed under the MIT license. */ Object.defineProperty(exports, "__esModule", { value: true }); con...
ivangonzalezsp/carbon
src/utils/helpers/browser/browser.js
<filename>src/utils/helpers/browser/browser.js import React from 'react'; import ReactDOM from 'react-dom'; import { keys } from 'lodash'; /** * Browser Helper * * Provides helper methods for working with Browser behavior. * */ const Browser = { isDomAvailable: () => { const _window = Browser.getWindow(); c...
topdev707/typescript
tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.js
<filename>tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints5.js // Generic call with constraints infering type parameter from object member properties var C = (function () { function C() { } return C; })(); var D = (function () { function D() { } return D; })(); ...
databasefx/dbfx
app/src/main/java/cn/navigational/dbfx/FXMLHelper.java
package cn.navigational.dbfx; import cn.navigational.dbfx.i18n.I18N; import javafx.fxml.FXMLLoader; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; /** * FXML helper * * @author yangkui * @since 1.0 */ public class FXMLHelper { private static final Logger LOG = LoggerFa...
PacktPublishing/Practical-OneOps
Chapter 09/circuit-oneops-1-master/components/cookbooks/volume/recipes/add.rb
<gh_stars>1-10 # Copyright 2016, <NAME>, 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 agree...
Sense-Studios/VirtualMixerProject
public/compositions/clicktrack.js
<filename>public/compositions/clicktrack.js /* * Example 1 * * mixes 2 sold sources together * */ // create a renderer var renderer = new GlRenderer(); // create some solids var red = new SolidSource( renderer, { color: { r: 1.0, g: 0.0, b: 0.0 } } ); var green = new SolidSource( renderer, { color: { r: 0...
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gcc.target/aarch64/cmp.c
/* { dg-do compile } */ /* { dg-options "-O2" } */ int cmp_si_test1 (int a, int b, int c) { if (a > b) return a + c; else return a + b + c; } int cmp_si_test2 (int a, int b, int c) { if ((a >> 3) > b) return a + c; else return a + b + c; } typedef long long s64; s64 cmp_di_test1 (s64 a, s64 ...