code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
package com.sequenceiq.cloudbreak.validation.customimage; import com.sequenceiq.cloudbreak.api.endpoint.v4.customimage.request.CustomImageCatalogV4VmImageRequest; import org.junit.Before; import org.junit.Test; import java.util.Arrays; import java.util.Collections; import java.util.Set; import java.util.stream.Collec...
hortonworks/cloudbreak
core-api/src/test/java/com/sequenceiq/cloudbreak/validation/customimage/UniqueRegionValidatorTest.java
Java
apache-2.0
1,393
package toolbox_test import ( "github.com/stretchr/testify/assert" "github.com/viant/toolbox" "github.com/viant/toolbox/url" "testing" ) func TestExtractURIParameters(t *testing.T) { { parameters, matched := toolbox.ExtractURIParameters("/v1/path/{app}/{version}/", "/v1/path/app/1.0/?v=12") assert.True(t, m...
viant/toolbox
uri_test.go
GO
apache-2.0
3,363
package gov.cdc.sdp.cbr; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.sql.SQLException; import javax.sql.DataSource; import org.apache.camel.CamelContext; import org.apache.camel.EndpointInject; import org.apache.camel.Exchange; import org.apache.camel.Produce; import org.apa...
CDCgov/SDP-CBR
phinms/src/test/java/gov/cdc/sdp/cbr/EmailOnExceptionTest.java
Java
apache-2.0
2,315
๏ปฟusing UnityEngine; using System.Collections; public class CanvasHandler : MonoBehaviour { // Use this for initialization void Awake() { LeanTween.addListener((int)Events.ENERGYPOWERIN, OnEnergyPowerIn); LeanTween.addListener((int)Events.ENERGYPOWEROUT, OnEnergyPowerOut); } pu...
yantian001/2DShooting
Assets/2DShooting/Scripts/UI/CanvasHandler.cs
C#
apache-2.0
692
public class SuperWildCardDemo { public static void main(String[] args) { GenericStack<String> stack1 = new GenericStack<String>(); GenericStack<Object> stack2 = new GenericStack<Object>(); stack2.push("Java"); stack2.push(2); stack1.push("Sun"); add(stack1, stack2); AnyWildCardDem...
txs72/BUPTJava
slides/19/examples/SuperWildCardDemo.java
Java
apache-2.0
511
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
googleads/google-ads-python
google/ads/googleads/v9/services/services/bidding_strategy_service/transports/grpc.py
Python
apache-2.0
12,551
๏ปฟusing System; using System.Collections.Generic; using System.Linq; using System.Text; namespace iWay.RemoteControlBase.Protocol.RemoteExplorer.Requests { public class RenameContentReq : BasicReq { public string ContentPath; public string NewContentName; } }
iWay7/RemoteControl
RemoteControlBase/Protocol/RemoteExplorer/Requests/RenameContentReq.cs
C#
apache-2.0
291
/** * @license * Copyright 2016 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...
funkey/neuroglancer
src/neuroglancer/webgl/texture.ts
TypeScript
apache-2.0
1,865
/** * Copyright (C) 2010-2013 Alibaba Group Holding Limited * * 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 req...
jiumao-org/wechat-mall
mall-remoting/src/main/java/org/jiumao/remote/exception/RemotingTooMuchRequestException.java
Java
apache-2.0
1,085
/** * Copyright (C) 2015 Zalando SE (http://tech.zalando.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
zalando-stups/tokens
src/main/java/org/zalando/stups/tokens/AbstractJsonFileBackedCredentialsProvider.java
Java
apache-2.0
1,522
package io.quarkus.arc.test.unused; import static org.junit.jupiter.api.Assertions.assertTrue; import io.quarkus.arc.Arc; import io.quarkus.arc.ArcContainer; import io.quarkus.arc.test.ArcTestContainer; import javax.enterprise.context.Dependent; import javax.enterprise.event.Observes; import javax.enterprise.inject.s...
quarkusio/quarkus
independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/RemoveUnusedInterceptorTest.java
Java
apache-2.0
1,563
__author__ = 'wangxun' """def double(list): i=0 while i <len(list): print i list[i]=list[i]*2 i+=1 return(list) """ def doulbe(list): i=0 [list[i]=list[i]*2 while i<len(list)] return(list) print double([1,2,3,4])
wonstonx/wxgittest
day2 test1.py
Python
apache-2.0
266
package net.orangemile.informatica.powercenter.domain; import java.util.ArrayList; import java.util.List; import net.orangemile.informatica.powercenter.domain.constant.InstanceType; import net.orangemile.informatica.powercenter.domain.constant.PortType; public class Transformation implements Box, Cloneable...
autodidacticon/informatica-powercenter-automation
src/app/java/net/orangemile/informatica/powercenter/domain/Transformation.java
Java
apache-2.0
7,970
''' Created on 04/11/2015 @author: S41nz ''' class TBTAFMetadataType(object): ''' Simple enumeration class that describes the types of metadata that can be discovered within a source code asset ''' #Verdict enumeration types #The verdict for a passing test TEST_CODE="Test Code" #The v...
S41nz/TBTAF
tbtaf/common/enums/metadata_type.py
Python
apache-2.0
379
package showcaseview; import android.app.Activity; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageButton; import ganggongui.dalkomsoft0...
kiss5331/Android
FakeStudyApp/FakeStudy_s/app/src/main/java/showcaseview/Fragment_thred.java
Java
apache-2.0
1,888
package com.decker.jdclassifier; import java.util.ArrayDeque; import java.util.Queue; import java.util.regex.Matcher; import java.util.regex.Pattern; public class StringTokenizer extends AbstractTokenizer { Queue<Token> tokenQueue = new ArrayDeque<Token>(); Token buffer = null; int line = 0; public StringTokeni...
zig158/jdclassifier
jdclassifier/src/com/decker/jdclassifier/StringTokenizer.java
Java
apache-2.0
1,043
package com.mnknowledge.dp.behavioral.observer.wheather; public class CurrentView implements Observer, DisplayElement { private float temperature; private float humidity; @SuppressWarnings("unused") private Subject weatherAPI; public CurrentView(Subject weatherData) { this.weatherAPI = we...
stapetro/mnk_designpatterns
dpsamples/src/main/java/com/mnknowledge/dp/behavioral/observer/wheather/CurrentView.java
Java
apache-2.0
705
package net.falappa.swing.table; import java.awt.Color; import java.awt.Component; import java.awt.Graphics; import javax.swing.BorderFactory; import javax.swing.JTable; import javax.swing.UIManager; import javax.swing.border.Border; import javax.swing.table.DefaultTableCellRenderer; /* * Highlight only...
AlexFalappa/hcc
af-toolkit/src/main/java/net/falappa/swing/table/SelectAllRenderer.java
Java
apache-2.0
2,222
input = """ f(1). :- f(X). """ output = """ f(1). :- f(X). """
veltri/DLV2
tests/parser/grounding_only.2.test.py
Python
apache-2.0
71
package don.sphere; import don.sphere.exif.IFDEntry; import okio.Buffer; import okio.ByteString; import java.io.EOFException; import java.io.IOException; import java.text.ParseException; /** * Created by Don on 30.07.2015. */ public class ExifUtil extends SectionParser<SectionExif> { public static final ByteSt...
donmahallem/SphereEdit
src/main/java/don/sphere/ExifUtil.java
Java
apache-2.0
3,530
/* eslint-env browser */ (function() { 'use strict'; // Check to make sure service workers are supported in the current browser, // and that the current page is accessed from a secure origin. Using a // service worker from an insecure origin will trigger JS console errors. See // http://www.chromi...
leetrunghoo/surfnews
app/scripts/main.js
JavaScript
apache-2.0
15,008
<?php defined('XAPP') || require_once(dirname(__FILE__) . '/../../../Core/core.php'); xapp_import('xapp.Log.Exception'); /** * Log writer exception class * * @package Log * @subpackage Log_Writer * @class Xapp_Log_Writer_Exception * @author Frank Mueller <support@xapp-studio.com> */ class Xapp_Log_Writer_Exce...
back1992/ticool
components/com_xas/xapp/lib/rpc/lib/vendor/xapp/Log/Writer/Exception/Exception.php
PHP
apache-2.0
797
package com.turnos.cliente.conexion; import java.util.Date; import java.util.Hashtable; import java.util.List; import java.util.Map; import java.util.Map.Entry; import javax.ws.rs.client.Client; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.client.Entity; import javax.ws.rs.client.Invocation.Builder; im...
catoyos-turnos/ETLT-DESA
ClienteAPI/1.0/ETLTClienteAPI_1.0/src/com/turnos/cliente/conexion/ClienteREST.java
Java
apache-2.0
20,545
package de.atomfrede.jenkins.domain.coverage; import java.io.Serializable; public class ClassCoverage implements Serializable { private static final long serialVersionUID = -8132894251774828498L; private int percentage; private float percentageFloat; public int getPercentage() { return percentage; } pub...
atomfrede/animated-octo-adventure
jenkins.service/src/main/java/de/atomfrede/jenkins/domain/coverage/ClassCoverage.java
Java
apache-2.0
568
#!/usr/bin/ruby # # Author:: api.sgomes@gmail.com (Sรฉrgio Gomes) # # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. # # License:: 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 o...
sylow/google-adwords-api
examples/v201003/update_ad.rb
Ruby
apache-2.0
2,835
package com.jarvis.cache.serializer.hession; import com.caucho.hessian.io.AbstractHessianInput; import com.caucho.hessian.io.AbstractMapDeserializer; import com.caucho.hessian.io.IOExceptionWrapper; import java.io.IOException; import java.lang.ref.WeakReference; /** * */ public class WeakReferenceDeserializer exte...
qiujiayu/AutoLoadCache
autoload-cache-serializer/autoload-cache-serializer-hessian/src/main/java/com/jarvis/cache/serializer/hession/WeakReferenceDeserializer.java
Java
apache-2.0
985
/* * ../../../..//fonts/HTML-CSS/TeX/png/AMS/Regular/BBBold.js * * Copyright (c) 2009-2018 The MathJax Consortium * * 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:/...
GerHobbelt/MathJax
fonts/HTML-CSS/TeX/png/AMS/Regular/BBBold.js
JavaScript
apache-2.0
10,460
package com.ourcode.models.input; import com.google.gson.annotations.SerializedName; import com.graphhopper.jsprit.core.problem.job.Break; import java.util.ArrayList; /** * Created by LEOLEOl on 5/19/2017. */ public class OCBreak { @SerializedName("breakCode") private String breakCode; @SerializedNam...
LEOLEOl/jsprit-me
viet-jsprit/src/main/java/com/ourcode/models/input/OCBreak.java
Java
apache-2.0
1,371
/* * 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 ...
shakamunyi/beam
examples/java8/src/test/java/com/google/cloud/dataflow/examples/complete/game/HourlyTeamScoreTest.java
Java
apache-2.0
5,012
/* * UniformBuffer.hpp * * Created on: 21/08/2013 * Author: svp */ #ifndef UNIFORMBUFFER_HPP_ #define UNIFORMBUFFER_HPP_ #include <stddef.h> typedef unsigned int GLuint; typedef unsigned int GLenum; typedef int GLint; namespace renderer { namespace resources { class UniformBuffer { public: UniformBu...
vinther/rmit-rendering
include/renderer/resources/UniformBuffer.hpp
C++
apache-2.0
609
package warden import ( "net/http" "net/url" "github.com/ory-am/fosite" "github.com/ory-am/hydra/firewall" "github.com/ory-am/hydra/pkg" "github.com/pkg/errors" "golang.org/x/net/context" "golang.org/x/oauth2" "golang.org/x/oauth2/clientcredentials" ) type HTTPWarden struct { Client *http.Client Dry ...
Bridg/hydra-1
warden/warden_http.go
GO
apache-2.0
2,295
package gumtree.spoon.diff.operations; import com.github.gumtreediff.actions.model.Move; public class MoveOperation extends AdditionOperation<Move> { public MoveOperation(Move action) { super(action); } }
XuSihan/gumtree-spoon-ast-diff
src/main/java/gumtree/spoon/diff/operations/MoveOperation.java
Java
apache-2.0
211
// 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...
gsantovena/mesos
src/slave/flags.hpp
C++
apache-2.0
7,795
/*! * Copyright 2016 Google Inc. 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 * * Unless required by appli...
tcrognon/google-cloud-node
scripts/helpers.js
JavaScript
apache-2.0
10,052
/* * Copyright 2010-2016 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/apache2.0 * * or in the "l...
dump247/aws-sdk-java
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/transform/DescribeConnectionsOnInterconnectResultJsonUnmarshaller.java
Java
apache-2.0
3,202
package com.laimiux.rxactivity; import android.app.Activity; public abstract class LifecycleEvent { private final Kind kind; private final Activity activity; public LifecycleEvent(Kind kind, Activity activity) { this.kind = kind; this.activity = activity; } public Activity activity() { return ...
Laimiux/RxActivity
rxactivity/src/main/java/com/laimiux/rxactivity/LifecycleEvent.java
Java
apache-2.0
495
<?php /* +-------------------------------------------------------------------------+ | Engine of the Enigma Plugin | | | | This program is free software; you can redistribute it and/or modify | | ...
kfmaster/cicdlab
modules/docker-roundcubemail/plugins/enigma/lib/enigma_engine.php
PHP
apache-2.0
26,398
# Copyright 2021 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
quantumlib/Cirq
cirq-rigetti/cirq_rigetti/sampler.py
Python
apache-2.0
5,548
package com.afeng.xf.utils.AFengUtils; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.os.Build; import android.support.annotation.ColorInt; import android.support.design.widget.CoordinatorLayout; import android.support.v4....
GitHubAFeng/AFengAndroid
app/src/main/java/com/afeng/xf/utils/AFengUtils/StatusBarUtil.java
Java
apache-2.0
28,369
package com.fiberlink.ninjaparser.output; public class StdOut implements Output{ public void print() { } }
anandaverma/NinjaParser
src/com/fiberlink/ninjaparser/output/StdOut.java
Java
apache-2.0
123
/* * Copyright (C) 2012-2015 DataStax 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 app...
adejanovski/cassandra-jdbc-wrapper
src/main/java/org/apache/cassandra2/cql/jdbc/CassandraDriver.java
Java
apache-2.0
844
"""Reverse complement reads with Seqtk.""" import os from plumbum import TEE from resolwe.process import ( Cmd, DataField, FileField, FileHtmlField, ListField, Process, StringField, ) class ReverseComplementSingle(Process): """Reverse complement single-end FASTQ reads file using Seqt...
genialis/resolwe-bio
resolwe_bio/processes/support_processors/seqtk_reverse_complement.py
Python
apache-2.0
8,764
"""TcEx Framework Service Common module""" # standard library import json import threading import time import traceback import uuid from datetime import datetime from typing import Callable, Optional, Union from .mqtt_message_broker import MqttMessageBroker class CommonService: """TcEx Framework Service Common m...
kstilwell/tcex
tcex/services/common_service.py
Python
apache-2.0
14,584
package whelk.gui; import whelk.ScriptGenerator; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.HashSet; import java.util.Set; ...
libris/librisxl
gui-whelktool/src/main/java/whelk/gui/ReplaceRecordsPanel.java
Java
apache-2.0
3,153
๏ปฟusing System; using System.Threading; using bytePassion.Lib.Communication.State; using bytePassion.Lib.ConcurrencyLib; using OQF.AnalysisAndProgress.ProgressUtils; using OQF.Bot.Contracts; using OQF.Bot.Contracts.Coordination; using OQF.Bot.Contracts.GameElements; using OQF.Bot.Contracts.Moves; using OQF.PlayerVsBot.C...
bytePassion/OpenQuoridorFramework
OpenQuoridorFramework/OQF.PlayerVsBot.GameLogic/GameService.cs
C#
apache-2.0
4,020
/* * Copyright 2018 ThoughtWorks, 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 agr...
gocd-contrib/docker-elastic-agents
src/main/java/cd/go/contrib/elasticagents/docker/requests/JobCompletionRequest.java
Java
apache-2.0
3,654
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
googleapis/java-aiplatform
proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/DeleteContextRequestOrBuilder.java
Java
apache-2.0
2,785
# Copyright (c) 2014 Rackspace, 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 in wr...
obulpathi/poppy
poppy/transport/validators/stoplight/helpers.py
Python
apache-2.0
823
""" * Copyright 2007 Fred Sauer * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, so...
jaredly/pyjamas
library/pyjamas/dnd/util/CoordinateLocation.py
Python
apache-2.0
1,133
๏ปฟnamespace TreeConstructionFromQuartets.Model { using System; using System.Collections.Generic; using System.Linq; public class PartitionSet { public PartitionSet(string PartitionSetName) { this._PartitionSetName = PartitionSetName; this._Final_Score = 0; ...
tanvirehsan/TreeConstructionFromQuartets
TreeConstructionFromQuartets/Model/PartitionSet.cs
C#
apache-2.0
4,522
# Copyright 2015 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 in writing,...
googleapis/google-api-ruby-client
google-api-client/generated/google/apis/securitycenter_v1beta1/service.rb
Ruby
apache-2.0
66,146
<?php $TRANSLATIONS = array( "Not all calendars are completely cached" => "Ikke alle kalendere er fuldstรฆndig cached", "Everything seems to be completely cached" => "Alt ser ud til at vรฆre cached", "No calendars found." => "Der blev ikke fundet nogen kalendere.", "No events found." => "Der blev ikke fundet nogen begive...
ArcherCraftStore/ArcherVMPeridot
apps/owncloud/htdocs/apps/calendar/l10n/da.php
PHP
apache-2.0
7,568
#include <iostream> #include <vector> #include <cmath> #include <algorithm> #include <fstream> #include "gflags/gflags.h" #include "Common/log.h" DEFINE_string(res_file, "", "predict res"); DEFINE_int32(log_level, 2, "LogLevel :" "0 : TRACE " "1 : DEBUG " "2 : INFO " "3 : ERROR"); uint32_t log_level =...
uwroute/study
ML/eval/auc.cpp
C++
apache-2.0
2,402
๏ปฟusing System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace Mobet.Runtime.Cookie { public static class CookieManager { /// <summary> /// ๅˆ›ๅปบcookie /// </summary> /// <param name="name">cookieๅ</param> /// <param name=...
Mobet/Mobet-Net
Mobet-Net/Mobet/Runtime/Cookie/CookieManager.cs
C#
apache-2.0
1,723
<tr> <td><?php echo $area->id ?></td> <td><?php echo $area->lat ?></td> <td><?php echo $area->lng ?></td> <td><?php echo $area->radius ?></td> <td width="300px"><?php echo $area->url ?></td> <td><?php echo $area->area ?></td> <td><?php echo $area->min_radius_area ?></td> <td><?php echo $...
smart-e/lifemap
plugins/lfPosPlugin/apps/pc_backend/modules/pos/templates/_googlearea.php
PHP
apache-2.0
520
package dbutil import ( "github.com/wpxiong/beargo/log" ) func init() { log.InitLog() }
wpxiong/beargo
util/dbutil/db_util.go
GO
apache-2.0
94
import java.util.HashMap; import java.util.Map; public class WordPattern { public static boolean wordPattern(String pattern, String str) { Map<String, String> a2b = new HashMap<String, String>(); Map<String, String> b2a = new HashMap<String, String>(); String[] tokens = str.split(" "); ...
wittyResry/leetcode
src/main/java/WordPattern.java
Java
apache-2.0
1,026
package org.aksw.sparqlify.qa.pinpointing; import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.aksw.sparqlify.core.algorithms.CandidateViewSelectorImpl; import org.aksw.sparqlify.core.algorithms.ViewQuad; import org.aksw.sparqlify.core.domain.input.ViewDefinition; import org.aksw.s...
AKSW/R2RLint
src/main/java/org/aksw/sparqlify/qa/pinpointing/Pinpointer.java
Java
apache-2.0
2,208
/* * Copyright 2014 Martin W. Kirst * * 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...
nitram509/macaroons.js
src/main/ts/MacaroonsVerifier.ts
TypeScript
apache-2.0
9,915
const _ = require('lodash'); const teFlow = require('te-flow'); const AnimManager = require('./anim-manager.js'); const _H = require('./../helpers/helper-index.js'); const animConfig = function (_key, _data) { /** * Preps the data to be processed * @param {str} key -> anim key * @...
ctr-lang/ctr
lib/ctr-nodes/animation/anim-config.js
JavaScript
apache-2.0
1,529
/** * */ package com.f1000.rank.helper; import java.util.List; import com.f1000.rank.journal.model.Rank; /** * The Interface RankingHelper. * * @author mattiam */ public interface RankingHelper { /** * Ranking. * * @param <T> the generic type * @param list the list */ public <T extend...
mattiamascia/jrank
src/main/java/com/f1000/rank/helper/RankingHelper.java
Java
apache-2.0
361
package me.chen_wei.zhihu; import android.app.Application; import android.support.v7.app.AppCompatDelegate; /** * Created by Hander on 16/2/28. * <p/> * Email : hander_wei@163.com */ public class MyApplication extends Application { static{ //่ฎพ็ฝฎDayNightThemeๆจกๅผ AppCompatDelegate.setDefaultNight...
HanderWei/ZhihuDaily
app/src/main/java/me/chen_wei/zhihu/MyApplication.java
Java
apache-2.0
489
package leetcode; /** * https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ * https://leetcode.com/explore/learn/card/array-and-string/205/array-two-pointer-technique/1153/ */ public final class Problem167TwoSumII { public int[] twoSum(int[] numbers, int target) { if (numbers == null || numb...
jaredsburrows/cs-interview-questions
java/src/main/java/leetcode/Problem167TwoSumII.java
Java
apache-2.0
752
/* * Copyright 2013-2019 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
consulo/consulo
modules/base/lang-impl/src/main/java/com/intellij/ide/actions/runAnything/RunAnythingContextRecentDirectoryCache.java
Java
apache-2.0
1,682
module Synthea module World class BirthRate def initialize @area = Synthea::Config.population.area @population_variance = Synthea::Config.population.birth_variance @rate_per_sq_mile = (Synthea::Config.population.daily_births_per_square_mile * Synthea::Config.time_step) mean ...
AmartC/synthea
lib/world/birth_rate.rb
Ruby
apache-2.0
515
/******************************************************************************* * Copyright 2015 Maximilian Stark | Dakror <mail@dakror.de> * * 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...
Dakror/Vloxlands
core/src/de/dakror/vloxlands/generate/WorldGenerator.java
Java
apache-2.0
1,624
package com.havryliuk.itarticles.data.local.preferences; import javax.inject.Inject; /** * Created by Igor Havrylyuk on 23.10.2017. */ public class AppPreferencesHelper implements IPreferencesHelper { private static final String PREF_KEY_IS_LOGGED_IN = "PREF_KEY_IS_LOGGED_IN"; private static final String ...
graviton57/ITArticles
app/src/main/java/com/havryliuk/itarticles/data/local/preferences/AppPreferencesHelper.java
Java
apache-2.0
1,546
/* * 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 ...
WilliamDo/ignite
modules/ml/src/main/java/org/apache/ignite/ml/math/impls/matrix/AbstractMatrix.java
Java
apache-2.0
26,094
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; namespace DotVVM.Framework.Parser.Dothtml.Parser { [DebuggerDisplay("{debuggerDisplay,nq}")] public class DothtmlBindingNode : DothtmlLiteralNode { #region debbuger display [DebuggerBrowsable(Debug...
holajan/dotvvm
src/DotVVM.Framework/Parser/Dothtml/Parser/DothtmlBindingNode.cs
C#
apache-2.0
666
package com.lucidastar.hodgepodge.view; import android.animation.ValueAnimator; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.os.Bundle; import android.os...
Lucidastar/hodgepodgeForAndroid
app/src/main/java/com/lucidastar/hodgepodge/view/CircleProgressView.java
Java
apache-2.0
22,758
package com.dxbook.ui; public class SearchResultActivity { }
treper/SlidingMenuUsage
DxStore/src/com/dxbook/ui/SearchResultActivity.java
Java
apache-2.0
63
/* * Copyright 2017-2022 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/apache2.0 * * or in the "licen...
aws/aws-sdk-java
aws-java-sdk-managedblockchain/src/main/java/com/amazonaws/services/managedblockchain/model/NetworkSummary.java
Java
apache-2.0
16,696
/* * Copyright 2017-2022 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/apache2.0 * * or in the "licen...
aws/aws-sdk-java
aws-java-sdk-servicecatalog/src/main/java/com/amazonaws/services/servicecatalog/model/DescribeTagOptionResult.java
Java
apache-2.0
3,915
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distr...
Scavi/BrainSqueeze
src/main/java/com/scavi/brainsqueeze/codefight/challenge/CreditCycle.java
Java
apache-2.0
923
/* * Copyright 2015-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
thomasdarimont/spring-data-examples
jpa/multiple-datasources/src/test/java/example/springdata/jpa/multipleds/order/OrderRepositoryTests.java
Java
apache-2.0
1,608
package com.commercetools.sunrise.common.template.cms.filebased; import com.commercetools.sunrise.cms.CmsPage; import com.commercetools.sunrise.cms.CmsService; import com.commercetools.sunrise.common.template.i18n.I18nResolver; import javax.inject.Inject; import javax.inject.Named; import java.util.List; import java....
rfuertesp/pruebas2
common/app/com/commercetools/sunrise/common/template/cms/filebased/FileBasedCmsService.java
Java
apache-2.0
1,294
import torch from torch import nn, Tensor from typing import Iterable, Dict from sentence_transformers import SentenceTransformer from transformers import AutoConfig, AutoTokenizer, AutoModelForCausalLM, PreTrainedModel import logging logger = logging.getLogger(__name__) class DenoisingAutoEncoderLoss(nn.Module): ...
UKPLab/sentence-transformers
sentence_transformers/losses/DenoisingAutoEncoderLoss.py
Python
apache-2.0
6,700
import sys from typing import Optional from bowler import Query, LN, Capture, Filename, TOKEN, SYMBOL from fissix.pytree import Node, Leaf from lib2to3.fixer_util import Name, KeywordArg, Dot, Comma, Newline, ArgList def filter_print_string(node, capture, filename) -> bool: function_name = capture.get("function_...
edx/repo-tools
edx_repo_tools/codemods/django2/foreignkey_on_delete_mod.py
Python
apache-2.0
1,718
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j 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 Foundatio...
HuangLS/neo4j
community/graph-algo/src/main/java/org/neo4j/graphalgo/impl/centrality/EigenvectorCentralityArnoldi.java
Java
apache-2.0
7,492
/* * Copyright ยฉ 2016, 2017 IBM Corp. 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 * * Unless required by applicab...
cloudant/sync-android
cloudant-sync-datastore-core/src/main/java/com/cloudant/sync/internal/documentstore/callables/GetAllRevisionsOfDocumentCallable.java
Java
apache-2.0
3,855
package com.cognizant.cognizantits.qcconnection.qcupdation; import com4j.DISPID; import com4j.DefaultValue; import com4j.IID; import com4j.NativeType; import com4j.Optional; import com4j.ReturnValue; import com4j.VTID; @IID("{2AF970F7-6CCC-4DFB-AA78-08F689481F94}") public abstract interface IBug extends IBaseFieldE...
CognizantQAHub/Cognizant-Intelligent-Test-Scripter
QcConnection/src/main/java/com/cognizant/cognizantits/qcconnection/qcupdation/IBug.java
Java
apache-2.0
1,729
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Asimov4/elasticsearch
src/test/java/org/elasticsearch/common/lucene/LuceneTest.java
Java
apache-2.0
6,332
/* * Copyright 2015-2017 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 compliance with the License. * You may obtain a copy of the License at * * http://w...
Jiri-Kremser/hawkular-agent
hawkular-agent-core/src/main/java/org/hawkular/agent/monitor/storage/MetricTagPayloadBuilderImpl.java
Java
apache-2.0
4,162
#!/usr/bin/env python ''' Script to ingest GCP billing data into a DB ''' import logging import os import re import sys from datetime import datetime from dateutil.relativedelta import relativedelta from dateutil.parser import parse as parse_date from httplib2 import Http import transaction from apiclient.discover...
blentz/cloud-costs
budget/scripts/gcp_test.py
Python
apache-2.0
2,730
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; ?> <h3 class="page-title"> Authority management <small> Role detail </small> </h3> <div class="page-bar"> <ul class="page-breadcrumb"> <li> <i class="fa fa-home"></i> <a href="index.html">Home</a> <i class="f...
diandianxiyu/Yii2-CMS-Template
views/role/view.php
PHP
apache-2.0
9,248
package org.gradle.test.performance.mediummonolithicjavaproject.p211; public class Production4230 { private String property0; public String getProperty0() { return property0; } public void setProperty0(String value) { property0 = value; } private String property1; ...
oehme/analysing-gradle-performance
my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p211/Production4230.java
Java
apache-2.0
1,891
/* * Copyright 2014 Google Inc. 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 * * Unless required by applicabl...
benjyw/kythe
kythe/go/storage/tools/read_entries/read_entries.go
GO
apache-2.0
5,685
# # Author:: Seth Chisamore (<schisamo@opscode.com>) # Cookbook Name:: chef_handlers # Recipe:: default # # Copyright 2011, Opscode, 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 # # ...
hh/chef_handler
recipes/default.rb
Ruby
apache-2.0
989
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.marketing.campaign.activity.offline.create response. * * @author auto create * @since 1.0, 2017-04-07 18:22:19 */ public class AlipayMarketingCampaignActivityOfflineC...
wendal/alipay-sdk
src/main/java/com/alipay/api/response/AlipayMarketingCampaignActivityOfflineCreateResponse.java
Java
apache-2.0
860
/* * Copyright 2014 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
CarloMicieli/footballdb-starter
src/main/java/io/github/carlomicieli/footballdb/starter/domain/games/PassingStatsFormatException.java
Java
apache-2.0
1,290
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: BceForgetPassword.proto package com.xinqihd.sns.gameserver.proto; public final class XinqiBceForgetPassword { private XinqiBceForgetPassword() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) {...
wangqi/gameserver
server/src/gensrc/java/com/xinqihd/sns/gameserver/proto/XinqiBceForgetPassword.java
Java
apache-2.0
16,953
package com.lys.ping; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.pingplusplus.Pingpp; import com.pingplusplus.exception.APIConnectionException; import com.pingplusplus.exception.APIException; import com.pingplusplus.exception.AuthenticationException; ...
zzsoszz/wyyf
src/com/lys/ping/PingCharge.java
Java
apache-2.0
5,897
# -*- coding: utf-8 -*- # # Copyright 2014-2020 BigML # # 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 ...
jaor/bigmler
bigmler/processing/ensembles.py
Python
apache-2.0
3,944
/* * Copyright 2012-present Facebook, 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...
azatoth/buck
test/com/facebook/buck/cli/InstallCommandTest.java
Java
apache-2.0
14,471
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "isourceselector.h" namespace search::queryeval { ISourceSelector::ISourceSelector(Source defaultSource) : _baseId(0), _defaultSource(defaultSource) { assert(defaultSource < SOURCE_LIMIT); } ...
vespa-engine/vespa
searchlib/src/vespa/searchlib/queryeval/isourceselector.cpp
C++
apache-2.0
483
# == Schema Information # # Table name: course_users # # id :integer not null, primary key # course_id :integer # user_id :integer # created_at :datetime # updated_at :datetime # # Read about factories at https://github.com/thoughtbot/factory_girl FactoryGirl.define do factory :course_user...
patrickspencer/compass-webapp
spec/factories/course_users.rb
Ruby
apache-2.0
334
/* * Copyright 2017-2022 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/apache2.0 * * or in the "licen...
aws/aws-sdk-java
aws-java-sdk-iotdeviceadvisor/src/main/java/com/amazonaws/services/iotdeviceadvisor/AWSIoTDeviceAdvisorAsyncClient.java
Java
apache-2.0
22,034
/* * Copyright 2019 Google LLC * * 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 ...
google/intellij-protocol-buffer-editor
core/src/main/java/com/google/devtools/intellij/protoeditor/ide/documentation/PbDocumentationProvider.java
Java
apache-2.0
2,354
package com.mnknowledge.dp.behavioral.observer.newsfeed; public class User implements Observer { private String name; private String article; private Subject newsFeed; public User(String name) { super(); this.name = name; } public void subscribe(Subject newsFeed) { ne...
stapetro/mnk_designpatterns
dpsamples/src/main/java/com/mnknowledge/dp/behavioral/observer/newsfeed/User.java
Java
apache-2.0
714
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
googleads/google-ads-java
google-ads-migration-examples/src/main/java/com/google/ads/googleads/migration/campaignmanagement/CreateCompleteCampaignGoogleAdsApiOnly.java
Java
apache-2.0
27,574