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
/* * 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 ...
opencb/opencga
opencga-analysis/src/test/java/org/opencb/opencga/analysis/individual/qc/IndividualQcUtilsTest.java
Java
apache-2.0
6,198
// Copyright 2000-2019 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.siyeh.ig.redundancy; import com.google.common.collect.ImmutableSet; import com.intellij.codeInspection.ex.InspectionElementsMergerBase; import com.intellij.util.Array...
leafclick/intellij-community
plugins/InspectionGadgets/src/com/siyeh/ig/redundancy/RedundantStringOperationMerger.java
Java
apache-2.0
2,723
package com.app.annotation.aspect; /** * Created by baixiaokang on 17/1/31. */ import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @int...
AndroidAdu/material-News
lib/src/main/java/com/app/annotation/aspect/Permission.java
Java
apache-2.0
363
// Copyright 2000-2021 JetBrains s.r.o. and contributors. 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.module.impl; import com.intellij.configurationStore.RenameableStateStorageManager; import com.intellij.ide.highlighter.ModuleFileTy...
jwren/intellij-community
platform/lang-impl/src/com/intellij/openapi/module/impl/ModuleImpl.java
Java
apache-2.0
12,736
app.controller('PickerController', function ($scope, $modalInstance, itemColor) { $scope.showCarrierColors = true; $scope.brandColors = [ { name: 'Brand Blue', hex: '#276681' }, { name: 'Brand Green', hex: '#66b245' }, { name: 'Brand Blue Desaturated', hex: '#417c95' }, { name:...
seanmthompson/D3-Chart-Generator
src/app/shared/colorpicker/pickerController.js
JavaScript
apache-2.0
3,420
/* * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.mirror.declaration; import java.lang.annotation.Annotation; import java.util.Collection; i...
haikuowuya/android_system_code
src/com/sun/mirror/declaration/Declaration.java
Java
apache-2.0
5,514
package com.xsolla.android.sdk.data.model; import java.util.List; public class XHoldSubscriptionStatus { private String status; private List<XMessage> errors; private XApi api; public String getStatus() { return status; } public List<XMessage> getErrors() { return errors; ...
xsolla/xsolla-sdk-android
xsollasdk/src/main/java/com/xsolla/android/sdk/data/model/XHoldSubscriptionStatus.java
Java
apache-2.0
827
using System; using System.Collections.Generic; using System.Threading.Tasks; using Evol.TMovie.Domain.Models.Entities; using Evol.TMovie.Domain.QueryEntries.Parameters; using Evol.Common; using Evol.Domain.Data; using Evol.Common.Data; namespace Evol.TMovie.Domain.QueryEntries { public interface ISeatQueryEntry ...
supernebula/evol-core
src/Evol.TMovie.Domain/QueryEntries/ISeatQueryEntry.cs
C#
apache-2.0
549
package br.eti.arthurgregorio.fulljeearch.domain.security; /** * * @author Arthur */ public interface ApplicationRoles { public final String USER = "Usuario"; public final String ADMINISTRATOR = "Administrador"; }
arthurgregorio/exemplos
FullJeeArch/src/main/java/br/eti/arthurgregorio/fulljeearch/domain/security/ApplicationRoles.java
Java
apache-2.0
228
namespace SharpGCalendar.Domain.Model { public enum Frequency { None = 0, Daily = 1, Weekly = 2, Monthly = 4, Yearly = 8 } }
jnicram/SharpGCalendar
backend-app/SharpGCalendar.Domain/Model/Frequency.cs
C#
apache-2.0
187
package com.almende.dialog.example.agent; import java.io.Serializable; import java.net.URLDecoder; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.logging.Logger; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import ja...
almende/dialog
dialoghandler/src/main/java/com/almende/dialog/example/agent/YesNoAgent.java
Java
apache-2.0
7,159
package com.suscipio_solutions.consecro_mud.Commands; import java.util.Vector; import com.suscipio_solutions.consecro_mud.MOBS.interfaces.MOB; import com.suscipio_solutions.consecro_mud.core.CMParms; @SuppressWarnings("rawtypes") public class NoFollow extends Follow { public NoFollow(){} private final String[] ac...
ConsecroMUD/ConsecroMUD
com/suscipio_solutions/consecro_mud/Commands/NoFollow.java
Java
apache-2.0
1,837
/** Copyright 2008 University of Rochester 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...
nate-rcl/irplus
ir_core/src/edu/ur/ir/researcher/ResearcherLink.java
Java
apache-2.0
5,358
package org.dbflute.erflute.db.impl.mysql; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import org.dbflute.erflute.editor.model.dbimport.DBObject; import org.dbflute.erflute.editor.model.dbimport.PreImportFromDBManager; public class MySQLPreTableImportMa...
dbflute-session/erflute
src/org/dbflute/erflute/db/impl/mysql/MySQLPreTableImportManager.java
Java
apache-2.0
2,037
/** * Copyright 2016 Yahoo 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 ...
tatyano/athenz
libs/java/server_common/src/main/java/com/yahoo/athenz/common/metrics/impl/NoOpMetric.java
Java
apache-2.0
1,436
app.service('UserService', ['$http', function($http) { return { getLogged: function(successCallback) { $http.get('/api/user/logged').then(successCallback); }, putPin: function(user, successCallback) { $http.post('/api/user/pin/', user).then(successCallback); ...
jeffersonvenancio/BarzingaNow
python/web/app/services/user.js
JavaScript
apache-2.0
333
package ru.job4j.polymorphism; /** * Created on 01.09.2017. * * @author Aleks Sidorenko (alek.sidorenko1979@gmail.com). * @version $Id$. * @since 0.1. */ public class StubInput implements Input { /** * @param answers - array's param. */ private String[] answers; /** * @param position...
AlSidorenko/Junior
chapter_002/src/main/java/ru/job4j/polymorphism/StubInput.java
Java
apache-2.0
747
import { Component } from '@angular/core'; @Component({ selector: 'uxd-landing-page-feature-list', template: '<ng-content></ng-content>', styles: [':host { display: block; }'], host: { 'class': 'row' } }) export class LandingPageFeatureListComponent { }
UXAspects/UXAspects
docs/app/components/landing-page-feature-list/landing-page-feature-list.component.ts
TypeScript
apache-2.0
284
// Copyright 2015 The oauth2 Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package odnoklassniki provides constants for using OAuth2 to access Odnoklassniki. package odnoklassniki import ( "github.com/coreos/mantle/Godeps/_wor...
mischief/mantle
Godeps/_workspace/src/golang.org/x/oauth2/odnoklassniki/odnoklassniki.go
GO
apache-2.0
557
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual 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 Licen...
emag/codereading-undertow
core/src/main/java/io/undertow/attribute/ThreadNameAttribute.java
Java
apache-2.0
1,955
/** * Copyright [2013-2014] [OHsystem] * * We spent a lot of time writing this code, so show some respect: * - Do not remove this copyright notice anywhere (bot, website etc.) * - We do not provide support to those who removed copyright notice * * OHSystem is free software: You can redistribute it and/or modify * it un...
m-unkel/OHSystem
ghost/src/stats/stats.cpp
C++
apache-2.0
1,101
package org.techniche.technothlon.katana.tcd; import android.content.Context; import android.content.SharedPreferences; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.AsyncTask; import android.os.L...
znck/technothlon-android-app
katana/src/main/java/org/techniche/technothlon/katana/tcd/TCDContent.java
Java
apache-2.0
13,524
/* * Copyright 2016-present Open Networking Foundation * * 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...
opennetworkinglab/onos
protocols/snmp/ctl/src/test/java/org/onosproject/snmp/ctl/DefaultSnmpControllerTest.java
Java
apache-2.0
4,414
package com.zaaach.citypicker.db; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Environment; import com.zaaach.citypicker.model.City; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.Inp...
weiwenqiang/GitHub
SelectWidget/city/CityPicker/citypicker/src/main/java/com/zaaach/citypicker/db/DBManager.java
Java
apache-2.0
3,876
using Hyperstore.CodeAnalysis.Syntax; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Hyperstore.CodeAnalysis.Compilation { public class HyperstoreCompiler { private readonly string _basePath; privat...
Hyperstore/Hyperstore.CodeAnalysis
Hyperstore.CodeAnalysis/Compilation/HyperstoreCompiler.cs
C#
apache-2.0
4,432
// 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 in ...
FirebaseExtended/mlkit-custom-image-classifier
functions/src/automlapi.ts
TypeScript
apache-2.0
11,363
//===-- ARMISelDAGToDAG.cpp - A dag to dag inst selector for ARM ----------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
apple/swift-llvm
lib/Target/ARM/ARMISelDAGToDAG.cpp
C++
apache-2.0
172,333
package com.huawei.esdk.sms.north.http.common; import java.io.ByteArrayInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import o...
eSDK/esdk_sms
source/esdk_sms_neadp_http/src/main/java/com/huawei/esdk/sms/north/http/common/AbstractXMLProcessor.java
Java
apache-2.0
4,493
package com.example; /** * Created by Nish on 2/21/15. */ public interface Movable { public void moveLeft(); public void moveRight(); }
nishtahir/Mektory-BeginnersAndroid
Week2/mygame/src/main/java/com/example/Movable.java
Java
apache-2.0
147
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
kobejean/tensorflow
tensorflow/python/framework/function.py
Python
apache-2.0
43,277
//************************************************************* // Filename: socket.js // // Author: Jake Higgins <jth7036@rit.edu> //************************************************************* var Socket; function addSocketListeners() { Socket = new io(); Socket.on('sync objects', function(objects, room, ca...
IGME-Production-Studio/driftwoodrp
update/public/static/scripts/socket.js
JavaScript
apache-2.0
2,530
package ch.unibe.scg.regex; import static java.util.Collections.singleton; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.SortedSet; import java.util.TreeSet; import ch.unibe.scg.regex.ParserProvider.Node; import ch.unibe.scg.regex.ParserProvider.Node.Basic; import c...
nes1983/tree-regex
src/ch/unibe/scg/regex/RegexToNFA.java
Java
apache-2.0
10,402
/* * Copyright (c) 2015 TextGlass * * 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...
TextGlass/reference
client/src/TransformerIsNumber.java
Java
apache-2.0
972
/* * Copyright (c) 2017 Martin Pfeffer * * 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 ag...
pepperonas/MaterialDialog
library/src/main/java/com/pepperonas/materialdialog/adapter/ShareAdapter.java
Java
apache-2.0
3,990
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
istio/istio
pkg/test/echo/server/forwarder/util.go
GO
apache-2.0
1,156
package com.siqisoft.stone.admin.dict.controller; import java.util.List; import org.siqisource.stone.dict.model.Dict; import org.siqisource.stone.dict.service.DictService; import org.siqisource.stone.orm.condition.Condition; import org.siqisource.stone.ui.AjaxResponse; import org.siqisource.stone.ui.Notify; ...
ylyxf/stone-sdk
src/main/java/com/siqisoft/stone/admin/dict/controller/DictController.java
Java
apache-2.0
2,471
/* * Copyright 2000-2009 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
consulo/consulo
modules/base/lang-api/src/main/java/com/intellij/refactoring/listeners/RefactoringElementListenerProvider.java
Java
apache-2.0
1,347
/* * Copyright 2016 Shredder121. * * 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 t...
johnktims/gh-event-api
src/main/java/com/github/shredder121/gh_event_api/handler/pull_request/PullRequestHandler.java
Java
apache-2.0
873
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class MY_Model extends CI_Model { // Variável que define o nome da tabela var $table = ""; /** * Método Construtor */ function __construct() { parent::__construct(); } /** * Insere um registro na tabela * * @param arr...
ChristianHerber/UebiControl
application/core/MY_Model.php
PHP
apache-2.0
2,979
package com.vertabelo.mobileorm.myplaces.orm.gen; public class AddressViewDAOImpl extends com.vertabelo.mobileorm.myplaces.orm.runtime.dao.BaseDAO<AddressView> implements AddressViewDAO { public AddressViewDAOImpl(com.vertabelo.mobileorm.myplaces.orm.runtime.util.SQLiteDataSource dataSource) { ...
Vertabelo/mobiorm-demo-android
app/src/main/java/com/vertabelo/mobileorm/myplaces/orm/gen/AddressViewDAOImpl.java
Java
apache-2.0
6,557
package misc // TrackedRepo identifies a git remote repository. type TrackedRepo string
kubernetes-sigs/kustomize
cmd/gorepomod/internal/misc/trackedrepo.go
GO
apache-2.0
89
// 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.codeInsight.generation; import com.intellij.codeInsight.AnnotationUtil; import com.intellij.codeInsight.intention.AddAnnotationPsiFix; import com.intellij.op...
paplorinc/intellij-community
java/java-impl/src/com/intellij/codeInsight/generation/OverrideImplementsAnnotationsHandler.java
Java
apache-2.0
3,542
package io.omengye.common.utils.constants; public class Constants { private Constants(){} public static final String RESULT_FLAG = "flag"; }
omengye/ws
common/src/main/java/io/omengye/common/utils/constants/Constants.java
Java
apache-2.0
153
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import type { PeerInfo } from '@dlghq/dialog-types'; import type { AvatarSize } from '../Avatar/getAvatarSize'; import type { Gradient } from '../Avatar/getAvatarColor'; import React, { PureComponent } from 'react'; import classNames from 'classnames'; impor...
nolawi/champs-dialog-sg
src/components/DoublePeerAvatar/DoublePeerAvatar.js
JavaScript
apache-2.0
6,308
# ormbad.version # Helper module for ORMBad version information # # Author: Benjamin Bengfort <benjamin@bengfort.com> # Created: Thu Aug 13 12:38:42 2015 -0400 # # Copyright (C) 2015 Tipsy Bear Studios # For license information, see LICENSE.txt # # ID: version.py [] benjamin@bengfort.com $ """ Helper module for ORM...
tipsybear/ormbad
ormbad/version.py
Python
apache-2.0
1,161
/** * Created by raj on 19/8/14. */ var fs = require('fs'); var content = fs.read ('animeEpisode.json'); console.log(JSON.stringify(JSON.parse(content)[1][0].title)); videolinks=JSON.parse(content); links=[]; function pages(k) { var page = new WebPage(); page.open('http://www.gogoanime.com/', functi...
msandeepraj211/phantom
recent.js
JavaScript
apache-2.0
1,995
#!/usr/bin/python # # Copyright 2017 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 b...
googleads/googleads-adxbuyer-examples
python/samples/v2_x/create_bidder_level_filter_set.py
Python
apache-2.0
7,717
/******************************************************************************* * Copyright 2006 - 2012 Vienna University of Technology, * Department of Software Technology and Interactive Systems, IFS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except i...
openpreserve/plato
plato-model/src/main/java/eu/scape_project/planning/model/transform/Transformer.java
Java
apache-2.0
4,334
// Copyright (C) 2013 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.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
GerritCodeReview/plugins_hooks-rtc
src/main/java/com/googlesource/gerrit/plugins/hooks/rtc/network/HttpPatch.java
Java
apache-2.0
999
/* * ************************************************************************* * Copyright (C) FRS Belgium NV ("FRSGlobal"). All rights reserved. * * This computer program is protected by copyright law and international * treaties. Unauthorized reproduction or distribution of this program, * or any portion of it,...
abotos/ClujLiveTransit
Java/appengine-code/appengine-web-ui/src/java/org/cluj/bus/servlet/BusScheduleServlet.java
Java
apache-2.0
3,589
/* * 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...
IAMTJW/Tomcat-8.5.20
tomcat-8.5.20/java/org/apache/catalina/valves/rewrite/Resolver.java
Java
apache-2.0
1,568
/* * 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 ...
fogbeam/Heceta_droids
droids-core/src/main/java/org/apache/droids/impl/SequentialTaskMaster.java
Java
apache-2.0
4,864
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Immutable; using System.Composition; using System.Threading; using System.Th...
reaction1989/roslyn
src/Features/CSharp/Portable/Completion/CompletionProviders/KeywordCompletionProvider.cs
C#
apache-2.0
9,814
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # Python header conversion # Copyright (c) 2013,2014 Dave Hughes <dave@waveform.org.uk> # # Original headers # Copyright (c) 2012, Broadcom Europe Ltd # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitte...
naziris/HomeSecPi
picamera/bcm_host.py
Python
apache-2.0
2,448
# quick demo of some python image filters # using raspberry pi camera import Tkinter as tk from picamera import PiCamera from time import sleep from PIL import Image,ImageFilter,ImageChops,ImageTk imagefile = "image.jpg" w = 320 h = 240 lastfilter = "none" camera = PiCamera() def takephoto(): camera.capture(imagefi...
emschimmel/CameraPi
camera_try.py
Python
apache-2.0
2,985
/** * Copyright (c) 2008-2010 Andrey Somov * * 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...
spariev/snakeyaml
src/main/java/org/yaml/snakeyaml/tokens/DirectiveToken.java
Java
apache-2.0
1,789
var a02307 = [ [ "GenericVector", "a02307.html#a60d42eebf02708482a8b506edd417990", null ], [ "GenericVector", "a02307.html#a28a69767bcadb6058a2a9df4afecd5fc", null ], [ "GenericVector", "a02307.html#a2b61cd1cd756770518f5ac30f817a9bf", null ], [ "~GenericVector", "a02307.html#a49840c8743a063b87839baef7e1...
stweil/tesseract-ocr.github.io
4.0.0/a02307.js
JavaScript
apache-2.0
4,880
package mx.emite.sdk.scot.request; import java.util.List; import javax.validation.Valid; import javax.validation.constraints.NotNull; import org.hibernate.validator.constraints.NotEmpty; import lombok.Builder; import lombok.Data; import lombok.Singular; import mx.emite.sdk.cfdi32.anotaciones.Rfc; import mx.emite.sd...
emite-mx/ef-sdk-java
ef-sdk-java/src/main/java/mx/emite/sdk/scot/request/SucursalesAltaRequest.java
Java
apache-2.0
1,030
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("MassTransit.Publisher")] [assembly: Asse...
shibukraj/Masstransit.PubSubSample
MassTransit.Publisher/Properties/AssemblyInfo.cs
C#
apache-2.0
1,382
/* Copyright IBM Corp. 2016 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 applicable law or agreed to in wri...
shangsony/fabric_sdk_golang
core/crypto/attributes/attributes.go
GO
apache-2.0
9,892
var crypto = require("crypto"), Request = require("./../request"), Response = require("./../response"); module.exports = sessionCookie; /** * A middleware for storing and retrieving session data using HTTP cookies. * The `options` may be any of the following: * * - secret A secret string to use to...
mbutler/nfn
node_modules/hem/node_modules/strata/lib/session/cookie.js
JavaScript
apache-2.0
4,665
package org.efix.util.buffer; import org.efix.util.ByteSequenceWrapper; import org.efix.util.StringUtil; public class BufferUtil { public static UnsafeBuffer fromString(String string) { return new UnsafeBuffer(StringUtil.asciiBytes(string)); } public static String toString(Buffer buffer) { ...
artyomkorzun/efix
src/main/java/org/efix/util/buffer/BufferUtil.java
Java
apache-2.0
536
/* * 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 ...
apache/incubator-shardingsphere
examples/shardingsphere-sample/shardingsphere-example-generated/shardingsphere-jdbc-sample/shardingsphere-jdbc-memory-local-db-discovery-spring-namespace-jdbc-example/src/main/java/org/apache/shardingsphere/example/db/discovery/spring/namespace/jdbc/repository/AddressRepository.java
Java
apache-2.0
4,185
package dao import ( "go-common/app/admin/ep/merlin/model" "testing" . "github.com/smartystreets/goconvey/convey" ) var ( username = "fengyifenguitest@bilibili.com" ) func Test_Mail_Log(t *testing.T) { Convey("test add mail log", t, func() { ml := &model.MailLog{ ReceiverName: username, MailType: 1...
LQJJ/demo
126-go-common-master/app/admin/ep/merlin/dao/mysql_mail_log_test.go
GO
apache-2.0
832
import styled, { css as styledCss, keyframes } from 'styled-components' import type { TTestable } from '@/spec' import Img from '@/Img' import { theme } from '@/utils/themes' import css from '@/utils/css' const DURATION = '2.5s' const load = keyframes` 0% { top: 24px; } 70% { top: 10px; } 90% { ...
mydearxym/mastani
src/widgets/Charger/styles/index.ts
TypeScript
apache-2.0
3,323
/* * Copyright (c) 2017 Antony Esik * * 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...
EsikAntony/camunda-task-dispatcher
camunda-task-dispatcher-mapper-xml/src/main/java/com/ae/camunda/dispatcher/mapper/xml/XmlTaskMapper.java
Java
apache-2.0
1,991
/* Copyright 2022 The Vitess 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 agreed to in writing, soft...
vitessio/vitess
go/vt/vtgate/planbuilder/physical/system_tables.go
GO
apache-2.0
4,314
"""Support for switches which integrates with other components.""" import logging import voluptuous as vol from homeassistant.components.switch import ( ENTITY_ID_FORMAT, PLATFORM_SCHEMA, SwitchEntity, ) from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_FRIENDLY_NAME, CONF_ENTITY_PICTURE_...
titilambert/home-assistant
homeassistant/components/template/switch.py
Python
apache-2.0
6,023
package org.whale.ext.domain; import java.util.ArrayList; import java.util.List; import org.whale.system.annotation.jdbc.Column; import org.whale.system.annotation.jdbc.Id; import org.whale.system.annotation.jdbc.Table; import org.whale.system.annotation.jdbc.Validate; import org.whale.system.base.BaseEntry; import o...
fywxin/base
system-parent/ext-code/src/main/java/org/whale/ext/domain/Domain.java
Java
apache-2.0
3,741
/* * syscall.cpp * * Created on: Jun 3, 2017 * Author: warlo */ #include "syscall.hpp" #include <diag\Trace.h> namespace os { #if 0 static void dispatch_syscall(void) naked_function; static void dispatch_syscall(void) { __asm__ __volatile__ ( " sub sp, sp, #16\n" /* Create a stack frame ...
WarlockD/arm-cortex-v7-unix
f9_os/inc/os/syscall.cpp
C++
apache-2.0
2,217
# Copyright 2021, 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 in writing...
google-research/federated
fedopt_guide/cifar10_resnet/federated_cifar10.py
Python
apache-2.0
5,796
/* ========================================================================= * * Boarder * * http://boarder.mikuz.org/ * * ========================================================================= * ...
Mikuz/Boarder
src/fi/mikuz/boarder/util/ContextUtils.java
Java
apache-2.0
2,556
#include <iostream> #include <iomanip> #include <cstdint> #include <typeinfo> #include "color/color.hpp" int main( int argc, char *argv[] ) { using namespace color; using namespace std; cout << "gray<std::uint8_t > is: " << typeid( trait::component< gray< std::uint8_t >::category_type >::instance...
dmilos/color
example/less-than-1k/trait/component/gray.cpp
C++
apache-2.0
928
package com.gentics.mesh.changelog.changes; import static com.gentics.mesh.core.data.relationship.GraphRelationships.SCHEMA_CONTAINER_VERSION_KEY_PROPERTY; import com.gentics.mesh.changelog.AbstractChange; import com.tinkerpop.blueprints.Direction; /** * Changelog entry which removed the schema version edges with p...
gentics/mesh
changelog-system/src/main/java/com/gentics/mesh/changelog/changes/ReplaceSchemaVersionEdges.java
Java
apache-2.0
877
// Copyright Dirk Lemstra https://github.com/dlemstra/Magick.NET. // Licensed under the Apache License, Version 2.0. using System; #if Q8 using QuantumType = System.Byte; #elif Q16 using QuantumType = System.UInt16; #elif Q16HDRI using QuantumType = System.Single; #else #error Not implemented! #endif namespace Imag...
dlemstra/Magick.NET
src/Magick.NET/Colors/ColorHSV.cs
C#
apache-2.0
5,867
package cc.mallet.util; /** * Static utility methods for Strings */ final public class Strings { public static int commonPrefixIndex (String[] strings) { int prefixLen = strings[0].length(); for (int i = 1; i < strings.length; i++) { if (strings[i].length() < prefixLen) prefixLen = strin...
UnsupervisedOntologyLearning/hrLDA
hrLDA/src/cc/mallet/util/Strings.java
Java
apache-2.0
1,930
package org.museautomation.core.step; import org.jetbrains.annotations.*; import org.museautomation.core.*; import org.museautomation.core.context.*; import org.museautomation.core.step.descriptor.*; import org.museautomation.core.steptask.*; import org.museautomation.core.values.*; import org.museautomation.core.valu...
ChrisLMerrill/muse
core/src/main/java/org/museautomation/core/step/CallMacroStep.java
Java
apache-2.0
3,625
// 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.diff.impl.patch.formove; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.diff.impl.patch.FilePatch; import co...
goodwinnk/intellij-community
platform/vcs-impl/src/com/intellij/openapi/diff/impl/patch/formove/PathsVerifier.java
Java
apache-2.0
23,092
package com.therabbitmage.android.beacon.network; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URISyntaxException; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; i...
GregSaintJean/Beacon
src/com/therabbitmage/android/beacon/network/URLShortenerAPI.java
Java
apache-2.0
2,158
#include "common/common/version.h" std::string VersionInfo::version() { return fmt::format("{}/{}", GIT_SHA.substr(0, 6), #ifdef NDEBUG "RELEASE" #else "DEBUG" #endif ); }
timperrett/envoy
source/common/common/version.cc
C++
apache-2.0
238
package org.apache.hadoop.hive.kafka.camus; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.MapWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.io.UTF8; import org.apache.hadoop.io.Writable; import org.apache.hadoop.io.WritableComparable; import java.io.DataInput; import java...
HiveKa/HiveKa
src/main/java/org/apache/hadoop/hive/kafka/camus/KafkaKey.java
Java
apache-2.0
6,733
/* * Copyright 2011 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...
BladeRunnerJS/brjs-JsTestDriver
JsTestDriver/src/com/google/jstestdriver/output/FileNameFormatter.java
Java
apache-2.0
1,271
/** * Copyright 2014 Google Inc. * Copyright 2014 Andreas Schildbach * * 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...
troggy/bitcoinj
core/src/main/java/com/google/bitcoin/wallet/DeterministicSeed.java
Java
apache-2.0
9,791
using ClassLibrary; using Pokemon_IMIE.Model; using Pokemon_IMIE.usercontrols; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI...
clementhouillere/Pokemon_IMIE
app/Pokemon_IMIE/Pokemon_IMIE/usercontrols/PokemonStatus.xaml.cs
C#
apache-2.0
1,107
#coding=utf-8 from django.db import models from django.contrib.auth.models import User class Activity(models.Model): owner = models.ForeignKey(User, null=False) text = models.CharField(max_length=20, unique=True) class Dessert(models.Model): activity = models.ForeignKey(Activity, null=False) descripti...
Moonshile/goondream
src/desserts/models.py
Python
apache-2.0
376
var angularjs = angular.module('articleDetailModule', ['courseTagServiceModule', 'ngCookies', 'ngVideo']); angularjs.controller('ArticleDetailController', ['$rootScope', '$scope', '$http', '$stateParams', '$state', '$location', 'CourseTagService', '$sce', '$cookies', '$httpParamSerializer', 'video', '$route', functi...
c2611261/zaozao2
public/js/article_detail.js
JavaScript
apache-2.0
8,955
import time from tsm.common.app import exception import requests import json from requests.packages.urllib3.util.retry import Retry from requests.adapters import HTTPAdapter KANGROUTER_WEBSERVICE_APPLICATION_ROOT="/kangrouter/srv/v1" class KangRouterClient: pathbase = "https://thesolvingmachine.com/kangrouter/srv...
TheSolvingMachine/kangrouter-py
kangrouter.py
Python
apache-2.0
3,278
/* Copyright 2008, 2009, 2010 by the Oxford University Computing Laboratory This file is part of HermiT. HermiT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the...
CPoirot3/OWL-Reasoner
project/src/org/semanticweb/HermiT/datatypes/owlreal/NumberRange.java
Java
apache-2.0
1,986
/* * 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-lookoutequipment/src/main/java/com/amazonaws/services/lookoutequipment/model/transform/CreateDatasetResultJsonUnmarshaller.java
Java
apache-2.0
3,307
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Recipe.cs" company="Dapr Labs"> // Copyright 2014, Dapr Labs Pty. Ltd. // </copyright> // <summary> // Describes a recipe. // </summary> // -----------------------------------...
daprlabs/ForkTip
ForkTip/Models/Recipe.cs
C#
apache-2.0
1,399
package com.designpattern.structural.facade; public class Facade { SystemOne system1 = new SystemOne(); SystemTwo system2 = new SystemTwo(); SystemThree system3 = new SystemThree(); SystemFour system4 = new SystemFour(); public void facadeFunction1() { System.out.println("---- facade function 1"); ...
tyybjcc/Design-Patterns-in-java
DesignPatterns/src/com/designpattern/structural/facade/Facade.java
Java
apache-2.0
649
<?php namespace Slime; use Illuminate\Database\Eloquent\Model; class Persona extends Model { protected $table = "Persona"; protected $fillable = ['nombre','apellido','Cargo_id']; }
rots87/Slime
SLIME/app/Persona.php
PHP
apache-2.0
192
/* * Copyright (C) 2013 @JamesMontemagno http://www.montemagno.com http://www.refractored.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...
xamarin/MyCompany
MyCompany.Visitors.Client.Droid/Extensions/RobotoTextView.cs
C#
apache-2.0
7,655
<?php // autoload_namespaces.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'Twig_' => array($vendorDir . '/twig/twig/lib'), 'Symfony\\Component\\Icu\\' => array($vendorDir . '/symfony/icu'), 'Symfony\\Bundle\\SwiftmailerBundle' => array(...
hlkzmy/evaluation-system
vendor/composer/autoload_namespaces.php
PHP
apache-2.0
1,967
/* * Copyright 2019 Stephane Nicolas * Copyright 2019 Daniel Molinero Reguera * * 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 * ...
stephanenicolas/toothpick
toothpick-runtime/src/test/java/toothpick/getInstance/CycleCheckTest.java
Java
apache-2.0
3,214
<?php function geoip($dbipcsv, $ip){ $csvData = file_get_contents("/lib/".$dbipcsv); $lines = explode(PHP_EOL, $csvData); $rangeArray = array(); foreach ($lines as $line) { $rangeArray[] = str_getcsv($line); } $input = $ip; $array_input = explode(".", $input); foreach($rangeArray as $current) { ...
yeungalan/oauth_project
lib/dbip.php
PHP
apache-2.0
959
/* * 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 ...
adrian-wang/project-panthera-skin
src/main/java/com/intel/ssg/dcst/panthera/parse/sql/transformer/fb/AndFilterBlock.java
Java
apache-2.0
8,205
package io.swagger.client.api; import com.sun.jersey.api.client.GenericType; import io.swagger.client.ApiException; import io.swagger.client.ApiClient; import io.swagger.client.Configuration; import io.swagger.client.Pair; import io.swagger.client.model.CodeSnippet; import io.swagger.client.model.CodeSnippetList; i...
jsodini/CodeSnip
sdk/java/src/main/java/io/swagger/client/api/DefaultApi.java
Java
apache-2.0
8,599
// Copyright 2016-2022 The Libsacloud 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...
sacloud/libsacloud
v2/helper/service/icon/update_request.go
GO
apache-2.0
1,414
/** * CommonFramework * * Copyright (C) 2017 Black Duck Software, Inc. * http://www.blackducksoftware.com/ * * 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 o...
blackducksoftware/common-framework
src/test/java/com/blackducksoftware/tools/commonframework/standard/protex/report/template/TestPojoPageTwo.java
Java
apache-2.0
2,010