repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
kristianmandrup/cantango | lib/cantango/permission_engine/parser/category.rb | module CanTango
class PermissionEngine < Engine
module Parser
class Category < Rule
# remove the '@' prefix to get the category name
# look up the category and get models referenced by said category
attr_reader :categories
def initialize method, action, target
super
... |
TitanInfrastructure/virtualbox | lib/virtualbox/medium_attachment.rb | <filename>lib/virtualbox/medium_attachment.rb
module VirtualBox
# Represents the attachment of a medium (DVD, Hard Drive, etc) to a
# virtual machine, and specifically to a {StorageController}.
class MediumAttachment < AbstractModel
attribute :parent, :readonly => true, :property => false
attribute :contr... |
npocmaka/Windows-Server-2003 | multimedia/directx/dxvb/dx8vb/dmsegmentobj.cpp | //+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1998 - 1999
//
// File: dmsegmentobj.cpp
//
//--------------------------------------------------------------------------
// dmSegmentObj.cpp
#include "st... |
xformation/xformation-compliancemanager-service | compliancemanager-server/src/main/java/com/synectiks/process/server/inputs/converters/AbstractDateConverter.java | <filename>compliancemanager-server/src/main/java/com/synectiks/process/server/inputs/converters/AbstractDateConverter.java
/*
* */
package com.synectiks.process.server.inputs.converters;
import org.joda.time.DateTimeZone;
import com.synectiks.process.server.plugin.inputs.Converter;
import java.util.Map;
import sta... |
UbuntuEvangelist/OG-Platform | projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/timeseries/util/TimeSeriesDifferenceOperator.java | <reponame>UbuntuEvangelist/OG-Platform
/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.timeseries.util;
import org.apache.commons.lang.Validate;
import com.opengamma.analytics.math.func... |
kitman0000/D-Task | ServiceCenter/backEnd/src/main/java/com/dtask/center/bindingModule/service/IBinding.java | <reponame>kitman0000/D-Task
package com.dtask.center.bindingModule.service;
import com.dtask.center.bindingModule.bo.BindingRequestBo;
import com.dtask.center.bindingModule.bo.NodeBo;
import com.dtask.center.bindingModule.entity.AskBindingEntity;
import com.dtask.center.bindingModule.entity.HandleBindingEntity;
import... |
mkawserm/flamed | pkg/app/graphql/mutation/jsontpmutator/batchprocess.go | package jsontpmutator
import (
"github.com/graphql-go/graphql"
"github.com/graphql-go/graphql/gqlerrors"
"github.com/mkawserm/flamed/pkg/app/graphql/kind"
"github.com/mkawserm/flamed/pkg/tp/json"
"github.com/mkawserm/flamed/pkg/utility"
"github.com/mkawserm/flamed/pkg/x"
)
var GQLBatchProcess = &graphql.Field{
... |
antonioeloy/livraria-api | src/main/java/br/com/alura/livraria/dto/LivroFormDto.java | <filename>src/main/java/br/com/alura/livraria/dto/LivroFormDto.java
package br.com.alura.livraria.dto;
import java.time.LocalDate;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PastOrPresent;
impo... |
rydockman/YouPick | node_modules/@iconify-icons/clarity/firewall-outline-alerted.js | <filename>node_modules/@iconify-icons/clarity/firewall-outline-alerted.js<gh_stars>1-10
var data = {
"body": "<path d=\"M33.68 15.4H32v5.68h-3.08v-4.81H27v4.81h-8.08v-4.81H17v4.81H8.9v-4.81H7v4.81H4V15h16.58a3.58 3.58 0 0 1-1.76-1.92H14v-4h-2v4H4V8h16.14l1.15-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2V15.38zM... |
jacobvv/android-samples | utils/src/main/java/org/jacobvv/utils/BarUtils.java | <gh_stars>1-10
package org.jacobvv.utils;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.os.Build;
import androidx.annotation.ColorInt;
import androidx.annotation.IntRange;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
imp... |
polyurfms/nucore-open | db/migrate/20201127093634_create_account_user_expenses.rb | <filename>db/migrate/20201127093634_create_account_user_expenses.rb
class CreateAccountUserExpenses < ActiveRecord::Migration[5.2]
def change
create_view :account_user_expenses
end
end
|
epinter/Partner-Center-Java | src/main/java/com/microsoft/store/partnercenter/models/entitlements/ReferenceOrder.java | // -----------------------------------------------------------------------
// <copyright file="ReferenceOrder.java" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
package com.microsoft.sto... |
xsthunder/a | individually_weekly/w10/B.cc | <reponame>xsthunder/a
#include<iostream>
#include<cmath>
#include<iomanip>
#include<utility>
#include<vector>
#include<queue>
#include<algorithm>
#include<cstring>
#include<map>
#define mk(a,b) make_pair(a,b)
using namespace std;
void inp();
void fld();
const int N =100+100;
typedef int E[N][N];
E e;
int n,ec;
typedef ... |
HaoyeTianCoder/coming | src/main/resources/repairability_test_files/ground_truth/Cardumen/patch1-Math-101-Cardumen/Cardumen/0032/Cardumen_0032_t.java | <reponame>HaoyeTianCoder/coming<gh_stars>10-100
/*
* 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 L... |
fu7mu4/entonetics | sfml/samples/voip/Client.cpp |
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio.hpp>
#include <SFML/Network.hpp>
#include <iostream>
const sf::Uint8 AudioData = 1;
const sf::Uint8 EndOfStream = 2;
/////////////////////////////... |
Sumit2792/logisticsApplication | src/main/java/com/fw/enums/LengthUnits.java | package com.fw.enums;
public enum LengthUnits {
FEET("FEET"), METER("METER"), CENTIMETER("CENTIMETER");
private final String dbString;
private LengthUnits(String dbString) {
this.dbString = dbString;
}
public String toDbString() {
return (this.dbString);
}
public static LengthUnits fromString(String st... |
CjHare/systematic-trading | systematic-trading-simulation/src/main/java/com/systematic/trading/simulation/Simulation.java | <gh_stars>1-10
/**
* Copyright (c) 2015-2018, <NAME> All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list of c... |
shaojiankui/iOS10-Runtime-Headers | PrivateFrameworks/EmbeddedAcousticRecognition.framework/_EARSpeechExperiment.h | /* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/EmbeddedAcousticRecognition.framework/EmbeddedAcousticRecognition
*/
@interface _EARSpeechExperiment : NSObject {
_EARSpeechRecognizer * _recognizer;
_EARUserProfile * _userProfile;
}
- (void).cxx_destruct;
- (void)evaluateScript:(id)... |
thl-mot/mbed-os | connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/msg_sec_prot/msg_sec_prot.c | <filename>connectivity/nanostack/sal-stack-nanostack/source/Security/protocols/msg_sec_prot/msg_sec_prot.c<gh_stars>1000+
/*
* Copyright (c) 2021, Pelion and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... |
skripalschikov/connect-sdk-go | domain/payment/OrderTypeInformation.go | <filename>domain/payment/OrderTypeInformation.go
// This class was auto-generated from the API references found at
// https://epayments-api.developer-ingenico.com/s2sapi/v1/
package payment
// OrderTypeInformation represents class OrderTypeInformation
type OrderTypeInformation struct {
PurchaseType *string `json:"pu... |
Hakerh400/javascript-projects | arr-compress/index.js | <filename>arr-compress/index.js
'use strict';
const fs = require('fs');
const path = require('path');
const assert = require('assert');
const O = require('../omikron');
const debug = require('../debug');
const NumberSet = require('./number-set');
const {min, max} = Math;
const compress = arr => {
arr =... |
poeschko/polished | src/shorthands/border.js | <gh_stars>1000+
// @flow
import capitalizeString from '../internalHelpers/_capitalizeString'
import type { SideKeyword } from '../types/sideKeyword'
import type { Styles } from '../types/style'
const sideMap = ['top', 'right', 'bottom', 'left']
/**
* Shorthand for the border property that splits out individual prop... |
artemjackson/resolve | packages/adapters/storage-adapters/resolve-storage-dynamo/test/create-timestamp-expression.test.js | <reponame>artemjackson/resolve
import createTimestampExpression from '../src/create-timestamp-expression'
describe('method "createTimestampExpression"', () => {
test('should return empty expression', () => {
const {
conditionExpression,
attributeNames,
attributeValues
} = createTimestampExp... |
JamesTheZ/BladeDISC | tao_compiler/mlir/xla/ral/context/custom_library/bitonic_sort.cu.h | // Copyright 2021 The BladeDISC 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 applicable l... |
Abq-Tool-Shed/Capstone-Abq-Tool-Shed | frontend/src/store/categories.js | import {createSlice} from "@reduxjs/toolkit";
import {httpConfig} from "../utils/http-config";
const slice = createSlice({
name: "categories",
initialState: [],
reducers: {
setAllCategories: (categories, action) => {
return action.payload
}
}
})
export const {setAllCategor... |
jbrekelmans/k8s-docker-compose | internal/app/config/config.go | package config
import (
"fmt"
log "github.com/Sirupsen/logrus"
"github.com/kube-compose/kube-compose/internal/pkg/util"
dockerComposeConfig "github.com/kube-compose/kube-compose/pkg/docker/compose/config"
"github.com/pkg/errors"
"github.com/uber-go/mapdecode"
"k8s.io/apimachinery/pkg/util/validation"
"k8s.io/... |
silvrwolfboy/octofacts | spec/octofacts_updater/service/puppetdb_spec.rb | require "spec_helper"
require "octocatalog-diff"
describe OctofactsUpdater::Service::PuppetDB do
before(:each) do
ENV.delete("PUPPETDB_URL")
end
after(:each) do
ENV.delete("PUPPETDB_URL")
end
describe "#facts" do
it "should return facts from octocatalog-diff" do
facts_double = instance_d... |
VAIBHAV7500/lets_binge | src/routes/index.js | const routes = [
{
path: ["/", "/home"],
exact: true,
component: "Home",
},{
path: ["/room"],
exact: false,
component: "Room",
},{
path: ["/terms-and-conditions"],
exact: true,
component: "TnC",
},{
path: ["/privacy-policy"]... |
bjaanes/starport | ignite/pkg/cosmosanalysis/module/testdata/planet/x/planet/types/types.go | package types
type QueryMyQueryRequest struct{}
type QueryMyQueryResponse struct{}
|
Rajpratik71/pouch | registry/config.go | <reponame>Rajpratik71/pouch
package registry
var (
defaultV2Registry = "registry-1.docker.io"
)
|
xiaohaijin/RHIC-STAR | StRoot/Stl3Util/gl3/gl3Algorithm.h | //:>------------------------------------------------------------------
//: FILE: gl3Algorithm.h
//: HISTORY:
//: 1feb2000 version 1.00
//: 31jul2000 add methods initRun, endRun, end
//:<------------------------------------------------------------------
//
// tom: This class implements th... |
nishio/atcoder | abc197/e.py | # included from snippets/main.py
def debug(*x, msg=""):
import sys
print(msg, *x, file=sys.stderr)
def solve(SOLVE_PARAMS):
pass
def main():
N = int(input())
INF = 9223372036854775807
MAX = [-INF] * (N + 1)
MIN = [INF] * (N + 1)
for i in range(N):
X, C = map(int, input().spli... |
highfestiva/life | tools/util/update_codestd.py | #!/usr/bin/env python3
import codecs
from collections import defaultdict
from io import BytesIO
import re
import os
import sys
from tokenize import tokenize, NAME, NUMBER, OP, COMMENT, STRING, TokenError
_lookup = {}
_fnames = {'ThirdParty': 'thirdparty'}
_flookup = defaultdict(set)
def _tok(i, tokens):
if i >= 0 a... |
npwebste/UPS_Controller | lib/scipoptsuite-5.0.1/soplex/src/spxratiotester.h | <filename>lib/scipoptsuite-5.0.1/soplex/src/spxratiotester.h
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the class library */
/* SoPlex ---... |
ArtemJDev/design-architectural-patterns | patterns/src/main/java/com/other/solid/LiskovSubstitution/Main.java | <filename>patterns/src/main/java/com/other/solid/LiskovSubstitution/Main.java
package com.other.solid.LiskovSubstitution;
public class Main {
static Rectangle getRect() {
return new Rectangle();
}
public static void main(String[] args) {
Rectangle rectangle = getRect();
rectangle.setHeight(10);
... |
bublesy/qiqi | dream/qiqi-security/src/main/java/com/qiqi/security/entity/AuthenticationBean.java | package com.qiqi.security.entity;
import lombok.Getter;
import lombok.Setter;
/**
* @author QiQiDream
* @date 2020-06-18 10:42
*/
@Getter
@Setter
public class AuthenticationBean {
private String username;
private String password;
}
|
kiranmai-sfdev/aura | aura/src/main/java/org/auraframework/def/TestCaseDef.java | <reponame>kiranmai-sfdev/aura<gh_stars>100-1000
/*
* Copyright (C) 2013 salesforce.com, 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/... |
turbaszek/dbnd | plugins/dbnd-gcp/src/dbnd_gcp/apache_beam/apache_beam_task.py | from __future__ import absolute_import
import logging
import subprocess
import typing
from typing import Dict, List
from dbnd import parameter
from dbnd._core.configuration.config_path import from_task_env
from dbnd._core.decorator.decorated_task import _DecoratedTask
from dbnd._core.decorator.func_task_decorator im... |
ethansaxenian/RosettaDecode | lang/Go/ordered-words.go | package main
import (
"bytes"
"fmt"
"io/ioutil"
)
func main() {
// read into memory in one chunk
b, err := ioutil.ReadFile("unixdict.txt")
if err != nil {
fmt.Println(err)
return
}
// split at line ends
bss := bytes.Split(b, []byte{'\n'})
// accumulate result
... |
brettdavidson3/eclipselink.runtime | moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/xmltype/builtin/MyDate.java | package org.eclipse.persistence.testing.jaxb.xmltype.builtin;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
@XmlType(namespace="http://www.w3.org/2001/XMLSchema", name="date")
public class MyDate {
@XmlValue
public String value;
}
|
sanj0/salty-engine | src/main/java/de/edgelord/saltyengine/components/Components.java | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
ViniVelasco/Books-App | app/src/main/java/cmp1144/pucgoias/com/booksapp/Fragment/CadastroUsuarios.java | <filename>app/src/main/java/cmp1144/pucgoias/com/booksapp/Fragment/CadastroUsuarios.java
package cmp1144.pucgoias.com.booksapp.Fragment;
import android.app.DatePickerDialog;
import android.app.Fragment;
import android.icu.text.SimpleDateFormat;
import android.os.Build;
import android.os.Bundle;
import android.support.... |
simon-m-mudd/LSDMappingTools | ArchiveTestScripts/FJCTestArtist2.py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 10 16:57:22 2017
@author: smudd
"""
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 10 12:55:23 2017
@author: smudd
"""
import matplotlib
matplotlib.use('Agg')
import matplotlib.cm as cm
from LSDMapFigure.PlottingRaster import MapFigure
from LSDMapFigure.PlottingRaster ... |
synctera/client-libraries-go | synctera/model_bin_and_debit_network.go | /*
Synctera API
<h2>Let's build something great.</h2><p>Welcome to the official reference documentation for Synctera APIs. Our APIs are the best way to automate your company's banking needs and are designed to be easy to understand and implement.</p><p>We're continuously growing this library and what you see here is j... |
brunodevel/GloboNetworkAPI | networkapi/ip/urls_network.py | <reponame>brunodevel/GloboNetworkAPI<filename>networkapi/ip/urls_network.py
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from django.conf.urls import patterns, url
from networkapi.ip.resource.NetworkAddResource import NetworkAddResource
from networkapi.ip.resource.NetworkEditResource import NetworkEd... |
stinsonga/geo-prime-workspace | work/exampleAFCR.js | <reponame>stinsonga/geo-prime-workspace
function my_function472(){
//49005651230582861133084656003251afvRZAXyFchVOiWZzsvTONjEcDpgnpMS
}
function my_function464(){
//97758245539863081798075680056194AlAGqkwWyHcvQHxayAphlMySeXWRAjbK
}
function my_function154(){
//87994934410762777794976212256900hvWutabkvFPyydqSTvXOwQlR... |
phorward/rapidbatch | rb_comp.codegen.c | /* -MODULE----------------------------------------------------------------------
RapidBATCH
Copyright (C) 2008, 2009 by Phorward Software Technologies, <NAME>
http://www.phorward-software.com ++ <EMAIL>
File: rb_comp.codegen.c
Author: <NAME>
Usage: Virtual machine code generator
---------------------------------------... |
msxiehui/eoLinker-API-Management-for-PHP | frontend_resource/src/app/component/navbar/index.service.js | <reponame>msxiehui/eoLinker-API-Management-for-PHP<gh_stars>1-10
(function() {
'use strict';
/**
* @Author 广州银云信息科技有限公司 eolinker
* @function [顶部栏(navbar)相关服务js] [Top bar (navbar) related services js]
* @version 3.0.2
* @service $state [注入路由服务] [inject state service]
* @service Comm... |
batterysim/oas | tests/permutations/test_permutations.py | #-------------------------------------------------------------------------------
# Copyright 2006-2012 UT-Battelle, LLC. See LICENSE for more information.
#-------------------------------------------------------------------------------
#from processing import Queue
import gc
import pprint
import sys
import socket
impor... |
VanshMaheshwari30/DS-Algo | Array/LongestEvenOddSubarray.cpp | <reponame>VanshMaheshwari30/DS-Algo<gh_stars>1-10
#include<iostream>
using namespace std;
int maxEvenOdd (int arr[], int n)
{
int res=1, curr=1;
for(int i=1; i<n; i++)
{
if ((arr[i]%2==0 && arr[i-1]%2!=0) || (arr[i]%2!=0 && arr[i-1]%2==0))
{
curr++;
res = max(res,cur... |
NostalgicGhoul/gfxtk | libs/gfxtk_core/src/gfxtk/CullMode.hpp | #ifndef GFXTK_CULLMODE_HPP
#define GFXTK_CULLMODE_HPP
namespace gfxtk {
enum class CullMode {
None = 0,
Front = 1,
Back = 2,
};
}
#endif //GFXTK_CULLMODE_HPP
|
lvlei14/The-base-importment-of-React | src/components/Modal/Modal.js | import React, { Component, PropTypes } from 'react';
const styles = require('./Modal.scss');
export default class Modal extends Component {
static propTypes = {
children: PropTypes.oneOfType([
PropTypes.array,
PropTypes.object,
PropTypes.string,
]),
title: PropTypes.string,
clickHi... |
ivanovpv/darksms | psm/src/main/java/ru/ivanovpv/gorets/psm/SettingsActivity.java | <reponame>ivanovpv/darksms
package ru.ivanovpv.gorets.psm;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPrefe... |
solinatx/react-stockcharts | lib/annotation/SvgPathAnnotation.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... |
feiaxyt/CGACD | models/siamese/siamese.py | <gh_stars>1-10
# Copyright (c) SenseTime. All Rights Reserved.
import torch
import torch.nn as nn
import torch.nn.functional as F
def xcorr_depthwise(x, kernel):
"""depthwise cross correlation
"""
batch = kernel.size(0)
channel = kernel.size(1)
x = x.view(1, batch*channel, x.size(2), x.size(3))
... |
jnthn/intellij-community | python/testData/inspections/PyArgumentListInspection/multipleInheritedConstructorsMRO.py | class A(object):
pass
class B(object):
def __init__(self, *args):
pass
class C(B):
pass
class D(A, C):
pass
D(42)
|
kids-first/kf-api-dataservice | tests/test_errors.py | <reponame>kids-first/kf-api-dataservice<gh_stars>1-10
import copy
import json
import re
import pytest
from tests.conftest import (ENDPOINT_ENTITY_MAP, ENTITY_PARAMS,
_add_foreign_keys)
CONSTRAINT_ERR_RE = re.compile(
'could not create (\w+)\. one with \(.+\) = \(.+\) already exists\.'... |
GuillermoMajano/guts-emacs | .cache/lsp/npm/yaml-language-server/lib/node_modules/yaml-language-server/out/server/src/languageserver/telemetry.js | <gh_stars>0
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Red Hat, Inc. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*----------------------------------------------... |
Nintinugga/SportsManager | app/src/main/java/com/comp/ninti/sportsmanager/DatabaseActivity.java | package com.comp.ninti.sportsmanager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import... |
cody110/flyertea | flyerteaCafes/src/main/java/com/ideal/flyerteacafes/ui/popupwindow/ForumPopupWindow.java | package com.ideal.flyerteacafes.ui.popupwindow;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import andr... |
angriestalien/ghidra | Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/support/DepthFirstIterator.java | <reponame>angriestalien/ghidra<filename>Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/support/DepthFirstIterator.java
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... |
naeramarth7/joynr | java/backend-services/domain-access-controller/src/main/java/io/joynr/accesscontrol/global/GlobalDomainRoleControllerProviderImpl.java | /*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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... |
project-g7/covidAssist-webApp | frontend/src/components/Admin/pages/Dashboard.js | import React, { useEffect, useState } from "react";
import "../../../styles/AdminDashboard.css";
import DashboardCard1 from "../SubComponents/Dashboard/DashboardCard1";
import DashboardCard2 from "../SubComponents/Dashboard/DashboardCard2";
import DashboardCard3 from "../SubComponents/Dashboard/DashboardCard3";
import ... |
ArpiJakab/reactivesearch | packages/native/src/components/shared/TouchableItem.js | import React, { Component } from 'react';
import {
TouchableNativeFeedback,
TouchableOpacity,
Platform,
View,
} from 'react-native';
import types from '@appbaseio/reactivecore/lib/utils/types';
const LOLLIPOP = 21;
class TouchableItem extends Component {
handlePress = () => {
global.requestAnimationFrame(this... |
deffence1776/my-ddd-sample | src/main/java/example/domain/values/user/TheaterUsername.java | package example.domain.values.user;
public class TheaterUsername {
String value;
public TheaterUsername(String value) {
this.value = value;
}
@Override
public String toString() {
return value;
}
public boolean isEquals(TheaterUsername user) {
return user.value.equ... |
terratenney/aws-tools | EC2-VPC/autostop_ec2_lambda/autostop-ec2.py | #!/usr/bin/env python
import argparse
import boto3
import logging
# Update the root logger to get messages at DEBUG and above
logging.getLogger().setLevel(logging.DEBUG)
logging.getLogger("botocore").setLevel(logging.CRITICAL)
logging.getLogger("boto3").setLevel(logging.CRITICAL)
logging.getLogger("urllib3").setLevel(... |
MikaelSmith/troubleshoot | pkg/collect/mysql.go | <filename>pkg/collect/mysql.go
package collect
import (
"database/sql"
"encoding/json"
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/pkg/errors"
troubleshootv1beta1 "github.com/replicatedhq/troubleshoot/pkg/apis/troubleshoot/v1beta1"
)
func Mysql(ctx *Context, databaseCollector *troubleshootv1beta1.Data... |
qiuzichi/SingleMadBrain | app/src/main/java/com/unipad/utils/MD5Utils.java | package com.unipad.utils;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* md5加密解码
*
* @author Administrator三
*
*/
public class MD5Utils {
/**
* 加密成为md5串,方式二16位加密方式
*
* @param s
* @return
*/
public final static Strin... |
mniip/atheme-contrib-modules | src/gen_vhostonreg.c | <filename>src/gen_vhostonreg.c
/*
* Copyright (c) 2005-2006 <NAME>, et al.
* Rights to this code are as documented in doc/LICENSE.
*
* Sets usercloak metadata on register.
*/
#include "atheme-compat.h"
/* allow us-ascii letters, digits and the following characters */
#define VALID_SPECIALS "-"
static int counte... |
HenryLong/Android_busybox | busybox-1.28.0/include/config/feature/fbset/fancy.h | <gh_stars>10-100
#define CONFIG_FEATURE_FBSET_FANCY 1
|
edzya/Python_RTU_08_20 | Diena_7_functions/fun_g1.py | # global variable here
dessert = "ice cream"
# defining function
def eat_food(dish):
"""
Orders Food
"""
# the above triple quoted string is documentation
# printing is considered a side-effect
print("Hello")
print(f"Let's eat {dish}")
print("Good bye")
# returns None by default i... |
paolamvhz/azure-sdk-for-java | sdk/network/mgmt-v2020_08_01/src/main/java/com/microsoft/azure/management/network/v2020_08_01/implementation/ServiceTagsListResultInner.java | <filename>sdk/network/mgmt-v2020_08_01/src/main/java/com/microsoft/azure/management/network/v2020_08_01/implementation/ServiceTagsListResultInner.java
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
*... |
zenwerk/littlesmalltalk | lst5/thirdparty/iup2_6_rc2_Win32_dll_lib/include/iupcells.h | <filename>lst5/thirdparty/iup2_6_rc2_Win32_dll_lib/include/iupcells.h
/** \file
* \brief iupcells control.
*
* See Copyright Notice in iup.h
*/
#ifndef __IUPCELLS_H
#define __IUPCELLS_H
#define IUP_OUT -999
#ifndef IUP_ALL
#define IUP_ALL "ALL"
#endif
#ifndef IUP_BOXED
#define IUP_BOXED "BOXED"
#endif
#ifndef ... |
ElatedEatrs/Pikifen | Source/source/mob_types/onion_type.h | <reponame>ElatedEatrs/Pikifen
/*
* Copyright (c) <NAME> 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Header for the Onion type class and On... |
billybecker/pants | tests/python/pants_test/source/test_filespec.py | <filename>tests/python/pants_test/source/test_filespec.py
# coding=utf-8
# Copyright 2017 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
from pants.sou... |
Slovty/helloGo | pkg/interdace/interface_api.go | <reponame>Slovty/helloGo
package main
import "fmt"
type Goods struct {
ID uint
Price uint
Name string
GoodsType string
}
type Course struct {
ID uint
Price uint
Name string
GoodsType string
}
type Discount struct {
Discount uint
Price uint
}
type UserOrder struct {
Id ... |
dmnyk/eightshift-frontend-libs | blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js | import React from 'react';
import { __ } from '@wordpress/i18n';
import { ColorPaletteCustom, ComponentUseToggle, IconLabel, CustomSelect, checkAttr, getAttrKey, icons, getOption } from '@eightshift/frontend-libs/scripts';
import manifest from './../manifest.json';
export const ParagraphOptions = (attributes) => {
co... |
rubera/superfly | superfly-service/src/main/java/com/payneteasy/superfly/model/ui/group/UIGroupForList.java | <reponame>rubera/superfly<filename>superfly-service/src/main/java/com/payneteasy/superfly/model/ui/group/UIGroupForList.java<gh_stars>0
package com.payneteasy.superfly.model.ui.group;
import java.io.Serializable;
import javax.persistence.Column;
public class UIGroupForList implements Serializable {
privat... |
semihshn/HRMS-Project-React | src/store/reducers/jobAdvertReducer.js |
import { ADD_JOBADVERT_ERROR, ADD_JOBADVERT_SUCCESS, GETALL_JOBADVERT_ISACTIVE_ERROR, GETALL_JOBADVERT_ISACTIVE_SUCCESS, GETALL_JOBADVERT_SUCCESS } from "../actions/jobAdvertActions";
import { GETALL_JOBADVERT_ERROR } from "../actions/jobAdvertActions";
import { jobAdverts } from "../initialValues/jobAdvertInitialValu... |
mailslurp/mailslurp-client-cpp-restsdk | IHttpBody.h | /**
* MailSlurp API
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - G... |
stinsonga/geo-prime-workspace | work/exampleRfej.js | <reponame>stinsonga/geo-prime-workspace<filename>work/exampleRfej.js
function my_function814(){
//69431273801865594350646811734515sJEIFxrhVFtWVUXySwUUgsYPvExYWMkr
}
function my_function465(){
//00203074766067193284640057627328bqhEwlxWkqQobuBmbdRpDendtjWYVQBz
}
function my_function475(){
//644703095933562413482495302... |
rualso/kv_engine | tests/testapp/testapp_xattr_deleted.cc | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020 Couchbase, 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
*
* h... |
OpenMPDK/SMDK | lib/linux-5.18-rc3-smdk/mm/damon/ops-common.c | <filename>lib/linux-5.18-rc3-smdk/mm/damon/ops-common.c
// SPDX-License-Identifier: GPL-2.0
/*
* Common Primitives for Data Access Monitoring
*
* Author: <NAME> <<EMAIL>>
*/
#include <linux/mmu_notifier.h>
#include <linux/page_idle.h>
#include <linux/pagemap.h>
#include <linux/rmap.h>
#include "ops-common.h"
/*
... |
fabiomsr/my-workshop | app/src/main/java/org/fabiomsr/mitaller/module/receipt/detail/ReceiptDetailFragmentPager.java | package org.fabiomsr.mitaller.module.receipt.detail;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import org.fa... |
IOTechSystems/iotech-c-utils | include/iot/iot.h | //
// Copyright (c) 2019-2020 IOTech Ltd
//
// SPDX-License-Identifier: Apache-2.0
//
#ifndef _IOT_IOT_H_
#define _IOT_IOT_H_
/**
* @file
* @brief IOTech IOT API
*/
#include "iot/defs.h"
#include "iot/data.h"
#include "iot/config.h"
#include "iot/base64.h"
#include "iot/time.h"
#include "iot/hash.h"
#include "iot... |
qiqingfu/streamify-your-node-program | example/tools/merge-stream-async.js | var merge = require('merge-stream')
var Stream = require('stream')
var wait = Stream.Transform()
var merged = merge(wait)
setTimeout(function() {
merged.add(createReadable('aBc').pipe(toUpperCase()))
}, 10)
setTimeout(function() {
merged.add(createReadable('DeF').pipe(toLowerCase()))
wait.end()
}, 20)
merged... |
tyaga001/Rest_Assured_API_Automation_Test | src/main/java/TestUtils/TestUtil.java | <filename>src/main/java/TestUtils/TestUtil.java
package TestUtils;
import java.io.File;
import java.nio.file.Files;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Hashtable;
import TestSetup.APISetUp;
import io.restassured.specification.RequestSpecification;
public class TestUtil extends AP... |
pierre/collector | src/test/java/com/ning/metrics/collector/guice/TestHealthChecksModule.java | /*
* Copyright 2010-2012 Ning, Inc.
*
* Ning licenses this file to you 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... |
nitrologic/emu | mame/src/mame/includes/namcos22.h | <filename>mame/src/mame/includes/namcos22.h<gh_stars>10-100
#define USE_NAMCOS22_SPEED_HACK
#define GFX_CHAR 0
#define GFX_TEXTURE_TILE 1
#define GFX_SPRITE 2
extern enum namcos22_gametype
{
NAMCOS22_AIR_COMBAT22,
NAMCOS22_ALPINE_RACER,
NAMCOS22_CYBER_COMMANDO,
NAMCOS22_... |
Tecnarca/whitenoise-system | sdk/opendp/smartnoise/reader/rowset.py | import numpy as np
import datetime
import operator
from opendp.smartnoise.report import Report
class TypedRowset:
"""
Represents a typed rowset supporting the types used in differentially private
query.
"""
def __init__(self, rows, types):
"""
Initialize rowset
... |
zxqfl/flix | main/test/ca/uwaterloo/flix/library/TestInt64.scala | /*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
chenzhibini/common_module | common/src/main/java/com/hdyg/common/util/pay/WxApiWrapper.java | package com.hdyg.common.util.pay;
import android.text.TextUtils;
import com.hdyg.common.common.CommonModule;
import com.tencent.mm.opensdk.openapi.IWXAPI;
import com.tencent.mm.opensdk.openapi.WXAPIFactory;
/**
* @author CZB
* @describe 微信工具
* @time 2020/4/9 11:42
*/
public class WxApiWrapper {
private stati... |
qipadabaitu/dawdler-series | dawdler/dawdler-client-plug-velocity/src/main/java/com/anywide/dawdler/clientplug/velocity/direct/XssUtil.java | <gh_stars>0
package com.anywide.dawdler.clientplug.velocity.direct;
import org.jsoup.Jsoup;
import org.jsoup.safety.Safelist;
/**
* @author jackson.song
* @version V1.0
* @Title XssUtil.java
* @date 2010年4月5日
* @email <EMAIL>
*/
public class XssUtil {
private final static Safelist user_content_filter = Safeli... |
dainst/cilantro | service/staging/staging_controller.py | import os
import logging
import shutil
import zipfile
import json
from flask import Blueprint, jsonify, request, send_file
from werkzeug.utils import secure_filename
from service.errors import ApiError
from service.user.user_service import auth
from utils import cilantro_info_file
staging_controller = Blueprint('st... |
lujunzju/MachineLearningForAirTicketPredicting | Regression/RegressionKNN.py | # system library
import numpy as np
# user-library
import RegressionBase
# third-party library
from sklearn import neighbors
from sklearn.grid_search import GridSearchCV
from sklearn.metrics import mean_squared_error
from sklearn.learning_curve import validation_curve
import matplotlib.pyplot as plt
class Regress... |
Kabimon/Streamis | streamis-jobmanager/streamis-job-manager/streamis-job-manager-base/src/main/java/com/webank/wedatasphere/streamis/jobmanager/manager/entity/StreamJobCodeResource.java | <gh_stars>0
package com.webank.wedatasphere.streamis.jobmanager.manager.entity;
public class StreamJobCodeResource {
private Long id;
private Long jobVersionId;
private Long bmlId;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public ... |
SmallTianTian/dingtalk | model/oapi_enterprise_familydr_li.go | package model
import (
"github.com/SmallTianTian/dingtalk/model/taobao"
"github.com/SmallTianTian/dingtalk/utils"
)
func NewOapiEnterpriseFamilydrListRequest() *OapiEnterpriseFamilydrListRequest {
return &OapiEnterpriseFamilydrListRequest{}
}
type OapiEnterpriseFamilydrListRequest struct {
taobao.SimpleTaobaoReq... |
smdb21/java-miape-api | src/main/java/org/proteored/miapeapi/cv/ms/DissociationMethod.java | <reponame>smdb21/java-miape-api
package org.proteored.miapeapi.cv.ms;
import org.proteored.miapeapi.cv.Accession;
import org.proteored.miapeapi.cv.ControlVocabularyManager;
import org.proteored.miapeapi.cv.ControlVocabularySet;
public class DissociationMethod extends ControlVocabularySet {
public static final Access... |
nturay/quiet-dsp | examples/firdespm_example.c | //
// firdespm_example.c
//
// This example demonstrates finite impulse response filter design
// using the Parks-McClellan algorithm.
// SEE ALSO: firdes_kaiser_example.c
//
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <math.h>
#include "liquid.h"
#define OUTPUT_FILENAME "firdespm_example.m"
... |
digital-ECMT/acuity-vahub | vahub-model/src/main/java/com/acuity/visualisations/rawdatamodel/service/event/SurgicalHistoryService.java | /*
* Copyright 2021 The University of Manchester
*
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.