repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
GWT-M3O-TEST/m3o | examples/go-function/example.go | package example
import (
"encoding/json"
"io/ioutil"
"net/http"
)
type request struct {
Name string `json:"name"`
}
type response struct {
Message string `json:"message"`
}
func Helloworld(w http.ResponseWriter, r *http.Request) {
message := "Hello world!"
ct := r.Header.Get("Content-Type")
if ct == "appl... |
boybeak/WowPaper | app/src/main/java/com/nulldreams/wowpaper/adapter/holder/FooterHolder.java | <reponame>boybeak/WowPaper
package com.nulldreams.wowpaper.adapter.holder;
import android.content.Context;
import android.support.v7.widget.GridLayoutManager;
import android.text.TextUtils;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.nulldreams.adapter.AbsVi... |
lauracristinaes/aula-java | hibernate-release-5.3.7.Final/project/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/exec/ScriptTargetOutputToStdout.java | <reponame>lauracristinaes/aula-java
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.tool.schema.internal.exec... |
alesmenzel/churchill | packages/stream/stream.js | const Transport = require("@churchill/transport");
const { ChurchillError } = require("@churchill/utils");
const toText = require("./format");
const E_BACKPRESSURE =
"Backpressure: your logging destination buffer is full and messages will be lost, this usually means that your logging destination cannot keep up or i... |
VINichkov/JobsGalore | db/tools/create_company.rb | require 'csv'
require 'json'
arr_company=[]
CSV.open("company.csv") do |file|
file.each do |str|
arr_company<<str[0] if str[0]!=nil
end
end
words = []
File.open("words.txt") do |file|
words=file.readlines
end
puts words
arr = []
arr_company.each do |elem|
recrutmentagency = [false, false, false, true].samp... |
alienfast/gulp-asset-pipeline | src/ruby/rails.js | <reponame>alienfast/gulp-asset-pipeline<filename>src/ruby/rails.js
import Ruby from './ruby'
import path from 'path'
import glob from 'glob'
import jsonfile from 'jsonfile'
import console from 'console'
import File from '../util/file'
import Base from '../base'
const Files = {
CACHE: `.gulp-pipeline-rails.json`,
G... |
Bhuvanesh1208/ruby2.6.1 | msys64/mingw64/x86_64-w64-mingw32/include/d2d1effects.h | /**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#ifndef _D2D1_EFFECTS_
#define _D2D1_EFFECTS_
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION(W... |
michaelwillis/sfizz | tests/InterpolatorsT.cpp | <reponame>michaelwillis/sfizz<gh_stars>100-1000
// SPDX-License-Identifier: BSD-2-Clause
// This code is part of the sfizz library and is licensed under a BSD 2-clause
// license. You should have receive a LICENSE.md file along with the code.
// If not, contact the sfizz maintainers at https://github.com/sfztools/sfiz... |
strategicallynicole/oaky | src/components/StrategicModel/index.js | <gh_stars>0
import { makeStyles, Theme } from "@material-ui/core"
import * as React from "react"
import Model from './model'
import "./index.scss"
export default function StrategicModel() {
return (
<section className="items-center h-auto my-20"><div clasName=" items-center relative flex flex-wrap overflow... |
yanshen43/MCAT | XXmotif/src/ProgressBar.h | #ifndef _PROGRESS_BAR_H
#define _PROGRESS_BAR_H
#include <string>
/**
* Returns a string à la "[====== ] 75.0%"
* with total length width.
*/
std::string progressBar(double curr, double total, int width);
#endif
|
andy-zhangtao/ntci | ci-deployer/systemd/init.go | <gh_stars>1-10
package main
import (
"os"
"strings"
"github.com/BurntSushi/toml"
"github.com/coreos/go-systemd/dbus"
"github.com/sirupsen/logrus"
"ntci/ci-deployer/model/config"
)
var c config.Configure
var conn *dbus.Conn
func init() {
var err error
switch strings.ToLower(os.Getenv("NTCI_DEPLOY_LOG_LEVEL"... |
kakts/c-unix-programming | ch07/popen-sample.c | /**
* @file popen--sample.c
*
* コード例7.4 popenとpcloseの例
*/
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE *fp;
char buf[1024];
// ls -l *c | wcのコマンドの実行結果を読み取れるストリームを取得
if ((fp = popen("ls -l ch07/*.c | wc", "r")) == NULL) {
perror("popen");
exit(1);
}
fgets(b... |
powerhome/common-ios | Foundation/Classes/BLLocalization.h | //
// BLLocalization.h
// BowerLabsFoundation
//
// Created by <NAME> on 2013-01-24.
// Copyright (c) 2013 Bower Labs Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
NSString* BLLocalizedPluralizedString(NSInteger c, NSString* none, NSString* singular, NSString* plural, ...);
|
sigurasg/ghidra | Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/listing/ExternalMergerAddTest.java | /* ###
* IP: GHIDRA
*
* 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 writin... |
warrenseine/slack-types | python/slack_types/web_api/admin_apps_requests_list_response.py | <reponame>warrenseine/slack-types
# To use this code, make sure you
#
# import json
#
# and then, to convert JSON from a string, do
#
# result = admin_apps_requests_list_response_from_dict(json.loads(json_string))
from dataclasses import dataclass
from typing import Optional, Any, List, TypeVar, Type, cast, Ca... |
TRex22/OldCodeArchive | SchoolWork/2010/IT10_2010/Page 115 Activity 2/myAgeCheck/AgeCheck.java | package myAgeCheck;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;
import java.text.*;
public class AgeCheck {
/**
* @param args
*/
public static void main(String[] args) {
try {
//AgeCheck Copyright <NAME>
int cost = 25;
DecimalFormat dCost = ... |
0xicl33n/BudschieMorphMod | src/main/java/de/budschie/bmorph/main/ServerSetup.java | <filename>src/main/java/de/budschie/bmorph/main/ServerSetup.java<gh_stars>0
package de.budschie.bmorph.main;
import de.budschie.bmorph.capabilities.blacklist.ConfigManager;
import de.budschie.bmorph.commands.BlacklistCommand;
import de.budschie.bmorph.commands.MorphCommand;
import net.minecraft.server.MinecraftServer;... |
egranata/puppy | kernel/src/libc/string.cpp | // Copyright 2018 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 ... |
discopt/cmr | src/cmr/series_parallel.c | // #define CMR_DEBUG /* Uncomment to debug this file. */
// TODO: Try to not fill the hashtable in initialScan but just add all elements to the queue.
#include <cmr/series_parallel.h>
#include "env_internal.h"
#include "hashtable.h"
#include "sort.h"
#include "listmatrix.h"
#include <stdint.h>
#include <time.h>
ty... |
ElectronAsh/jag_sim | src/com/torlus/jnl/SignalType.java | package com.torlus.jnl;
public enum SignalType {
IN,
OUT, /*IO,*/
BUS, /*TRI,*//*BI,*/
LOCAL;
public static String rename(String name) {
if ("IO".equals(name))
return "OUT";
if ("BI".equals(name) || "TRI".equals(name))
return "BUS";
return name;
}
public String vhdlPortType() {
if (this.equals(... |
elenita1221/ComputeLibrary | documentation/_c_l_2_im2_col_8cpp.js | <filename>documentation/_c_l_2_im2_col_8cpp.js
var _c_l_2_im2_col_8cpp =
[
[ "CLIm2Col", "_c_l_2_im2_col_8cpp.xhtml#ad2289f0e5c61a8aa201bbc5f6d1eee22", null ],
[ "CLIm2ColFixture", "_c_l_2_im2_col_8cpp.xhtml#a5337d141dd770ebf0b894c2ea328d475", null ],
[ "DATA_TEST_CASE", "_c_l_2_im2_col_8cpp.xhtml#a1df3843c... |
zhangyin2088/Teamcat | teamcat_service/docker_build/target/one_step_build/teamcat/doraemon/static/project/js/project_statistics.js | $(document).ready(function(){
var theme = 'bootstrap';
var rootUri = window.location.href;
init_web_app();
init_page();
function init_page()
{
load_issue_by_people(0);
createOpenedIssueToday(0);
createOpenedIssueTotal(0);
createVersionTotalIssue();
createModuleIssueCount(0);
createSeverityI... |
rifraf/IronRuby_Framework_4.7.2 | Languages/Ruby/Tests/mspec/rubyspec/library/set/sortedset/add_spec.rb | <filename>Languages/Ruby/Tests/mspec/rubyspec/library/set/sortedset/add_spec.rb
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'set'
require File.dirname(__FILE__) + '/shared/add'
describe "SortedSet#add" do
it_behaves_like :sorted_set_add, :add
ruby_bug "redmine #118", "1.9.1" do
it "takes ... |
TimBarham/cordova-simulate-server | src/plugins/cordova-plugin-dialogs/sim-host-handlers.js | <gh_stars>0
/*
*
* 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
* '... |
hangqiu/pixie | src/stirling/source_connectors/socket_tracer/protocols/cql/frame_body_decoder.cc | /*
* Copyright 2018- The Pixie 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 ag... |
adambirse/innovation-funding-service | ifs-rest-api-service/src/test/java/org/innovateuk/ifs/finance/service/FinanceRowMetaFieldRestServiceMocksTest.java | package org.innovateuk.ifs.finance.service;
import org.innovateuk.ifs.BaseRestServiceUnitTest;
import org.innovateuk.ifs.finance.resource.FinanceRowMetaFieldResource;
import org.junit.Test;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static org.innovateuk.ifs.com... |
jiangshide/sdk | eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/ZoomControlsRuleTest.java | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Eclipse Public License, Version 1.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.eclipse.org/org/documents/epl-v10.php
*
* Unless r... |
amichard/tfrs | backend/api/migrations/0170_auto_20190819_0126.py | <filename>backend/api/migrations/0170_auto_20190819_0126.py
# -*- coding: utf-8 -*-
# Generated by Django 1.11.21 on 2019-08-19 01:26
from __future__ import unicode_literals
import db_comments.model_mixins
from django.conf import settings
import django.contrib.postgres.fields.jsonb
import django.core.serializers.json
... |
augusto/jpa-workshop | src/main/java/com/ig/training/hibernate/domainmodel/manytomany_bidirectional/ManyToManyPerson.java | <gh_stars>1-10
package com.ig.training.hibernate.domainmodel.manytomany_bidirectional;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import ja... |
suzhenyu006/sonic-agent | src/main/java/org/cloud/sonic/agent/tests/android/minicap/MiniCapInputSocketThread.java | <filename>src/main/java/org/cloud/sonic/agent/tests/android/minicap/MiniCapInputSocketThread.java
/*
* Copyright (C) [SonicCloudOrg] Sonic 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 th... |
ministryofjustice/scs_appraisals | app/services/multi_user_csv_renderer.rb | class MultiUserCSVRenderer
def initialize(users)
@users = users
end
def to_csv
@users.map { |u| UserCSVRenderer.new(u).to_csv }.join("\n")
end
end
|
greenfish77/gaenari | include/gaenari/gaenari/method/stringfy/stringfy.util.hpp | <gh_stars>1-10
#ifndef HEADER_GAENARI_GAENARI_METHOD_STRINGFY_UTIL_HPP
#define HEADER_GAENARI_GAENARI_METHOD_STRINGFY_UTIL_HPP
namespace gaenari {
namespace method {
namespace stringfy {
namespace util {
inline stringfy::type get_mime_type(_in const std::string& mime_type) {
if (mime_type == "text/plain") return st... |
Colbys/smartactors-core | CoreFeatures/Database-plugins/PluginCollectionName/src/main/java/info/smart_tools/smartactors/database_plugins/collection_name_plugin/CollectionNamePlugin.java | <gh_stars>10-100
package info.smart_tools.smartactors.database_plugins.collection_name_plugin;
import info.smart_tools.smartactors.feature_loading_system.bootstrap_item.BootstrapItem;
import info.smart_tools.smartactors.database.database_storage.exceptions.StorageException;
import info.smart_tools.smartactors.database... |
jimkell/mostSandbox | src/edu/rutgers/MOST/presentation/GurobiParametersDialog.java | <reponame>jimkell/mostSandbox<gh_stars>1-10
package edu.rutgers.MOST.presentation;
import java.io.File;
public class GurobiParametersDialog extends AbstractParametersDialog
{
private static final long serialVersionUID = 1L;
public GurobiParametersDialog( File saveFile )
{
super( "Gurobi", saveFile );
GurobiPa... |
MarchenkoProjects/leech4j | src/main/java/org.leech4j/announce/udp/response/UdpResponse.java | <filename>src/main/java/org.leech4j/announce/udp/response/UdpResponse.java
package org.leech4j.announce.udp.response;
/**
* @author <NAME>
*/
public interface UdpResponse {
boolean isValid(int transactionId);
}
|
Shtekata/14.Softuni-ReactJS | 04.Components-Basic-Idea/react-components/src/App.js | <reponame>Shtekata/14.Softuni-ReactJS<filename>04.Components-Basic-Idea/react-components/src/App.js
import logo from './logo.svg';
import './App.css';
import Heading from './components/Heading';
import Body from './components/Body';
const booksData = [
{ title: 'Harry Potter', description: 'Wizzards and stuff', au... |
stgrosshh/flummi | src/main/java/de/otto/flummi/request/IndicesExistsRequestBuilder.java | <reponame>stgrosshh/flummi<filename>src/main/java/de/otto/flummi/request/IndicesExistsRequestBuilder.java
package de.otto.flummi.request;
import de.otto.flummi.response.HttpServerErrorException;
import de.otto.flummi.util.HttpClientWrapper;
import org.asynchttpclient.Response;
import org.slf4j.Logger;
import java.uti... |
dk00/old-stuff | tioj/1190.cpp | <reponame>dk00/old-stuff<filename>tioj/1190.cpp
#include<cstdio>
int s[501][501],to[250001];
main()
{
int i,j,k,n,m;
while(scanf("%d %d",&n,&m)==2)
{
for(i=k=0;i<n;i++)
for(j=0;j<n;j++)
s[i][j]=k++;
for(i=k=0;i<n*2-1;i++)
for(j=0>?(i-n+1);j<=i && j<n;j... |
Discounty/Discounty.webapp | app/models/advertisement.rb | # == Schema Information
#
# Table name: advertisements
#
# id :integer not null, primary key
# name :string
# ad_data :json
# ad_campaign_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
class Advertisement < ActiveRecord:... |
QualiSystemsLab/kubernetes-shell | kubernetes/src/domain/operations/autoload.py | import data_model
from domain.services.clients import ApiClientsProvider
class AutolaodOperation(object):
def __init__(self, api_clients_provider):
"""
:param ApiClientsProvider api_clients_provider:
"""
self.api_clients_provider = api_clients_provider
def validate_config(sel... |
IBMStreams/OSStreams | src/cpp/UTILS/XML_utils.cpp | <reponame>IBMStreams/OSStreams
/*
* Copyright 2021 IBM Corporation
*
* 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 requi... |
zhcet19/NeoAlgo-1 | C/graphs/Adjacency_List.c | <reponame>zhcet19/NeoAlgo-1<filename>C/graphs/Adjacency_List.c
/* ADJACENCY LIST FOR REPRESENTING DIRECTED GRAPH
It is a method of representing a digraph using 2 linked lists
1. Node list
2. Edge list corresponding to each node
Edges arising from a node are stored in edge list of each node
*/
#... |
FabinoHq/wos | interface/guipxtext.js | ////////////////////////////////////////////////////////////////////////////////
// _______ ________________________________ //
// \\ . \ ________/ . . . . . . . . . . . . . . / //
// \\ . \ ____ ___/ . . . . . __________________________/ ... |
OpenHacksGovid/Govid | my-app/src/components/Map/States/IL.js | import React from 'react';
class IL extends React.Component {
render() {
return (
<path
onClick={() => this.props.onClick()}
className={this.props.className}
id="IL"
data-name="Illinois"
data-id="IL"
d="m 661.43403,198... |
mauriziokovacic/ACME | ACME/utility/dense2sparse.py | <filename>ACME/utility/dense2sparse.py
from .issparse import *
from .SparseTensor import *
def dense2sparse(A):
"""
Given a tensor, it returns is sparse representation
Parameters
----------
A : Tensor
a tensor
Returns
-------
SparseTensor
a sparse tensor
"""
... |
s4/core | src/main/java/io/s4/util/MetricsName.java | /*
* Copyright (c) 2010 Yahoo! 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 req... |
oci-pronghorn/GreenLightning-API | HTTPClient/src/main/java/com/ociweb/oe/greenlightning/api/server/HTTPServer.java | package com.ociweb.oe.greenlightning.api.server;
import com.ociweb.gl.api.Builder;
import com.ociweb.gl.api.GreenApp;
import com.ociweb.gl.api.GreenRuntime;
import com.ociweb.pronghorn.network.HTTPServerConfig;
import com.ociweb.pronghorn.util.AppendableProxy;
import com.ociweb.pronghorn.util.Appendables;
public cla... |
ameshkov/homebrew-core | Formula/vcsh.rb | class Vcsh < Formula
desc "Config manager based on git"
homepage "https://github.com/RichiH/vcsh"
url "https://github.com/RichiH/vcsh/archive/v1.20151229-1.tar.gz"
version "1.20151229-1"
sha256 "7682a517eaf88a86ea5e38ad81707800e965375eaff8b5cfd882e210fe2fef71"
license "GPL-2.0"
bottle :unneeded
def in... |
gowsp/yapi-restdocs | src/main/java/io/github/gowsp/util/TagUtil.java | package io.github.gowsp.util;
import com.thoughtworks.qdox.model.JavaMethod;
public abstract class TagUtil {
public static String paramDesc(JavaMethod method, String paramName) {
return method.getTagsByName("param").stream()
.filter(d -> d.getValue().split("\\s")[0].equals(paramName))
... |
iplo/Chain | net/spdy/hpack_decoder.cc | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/spdy/hpack_decoder.h"
#include "base/basictypes.h"
#include "net/spdy/hpack_constants.h"
#include "net/spdy/hpack_output_stream.h"
namespa... |
DallasC/Temporal | grpc-clients/orchestrator.go | package clients
import (
"fmt"
"github.com/RTradeLtd/config/v2"
"github.com/RTradeLtd/grpc/dialer"
nexus "github.com/RTradeLtd/grpc/nexus"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
)
// IPFSOrchestratorClient is a lighweight container for the orchestrator's
// gRPC API client
type IPFSOrche... |
Tovaniks/snazarov | chapter2_001/src/main/java/ru/job4j/generic/UserStore.java | package ru.job4j.generic;
/**
* Class UserStore.
*
* @author <NAME>
* @version $Id$
* @since 2018.04.09
*/
public class UserStore extends AbstractStore<User> implements Store<User> {
}
|
LouisRenWeiWei/JXADF | Source/JxADF/JxPlatform/src/main/java/com/jxtech/tag/link/Link.java | package com.jxtech.tag.link;
import com.jxtech.jbo.JboIFace;
import com.jxtech.tag.comm.JxBaseUIBean;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.views.annotations.StrutsTag;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
*
* @author ... |
go-aah/aah | essentials/go_test.go | // Copyright (c) <NAME>. (https://github.com/jeevatkm)
// Source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
package ess
import (
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
)
func TestLookExecutable(t *testing.T) {
assert.Equal(t, true, L... |
Eduardo-Ortega102/specnaz | src/examples/specnaz-custom-dsl-example/src/main/java/org/specnaz/examples/custom_dsl/given_when_then/SpecnazGivenWhenThen.java | package org.specnaz.examples.custom_dsl.given_when_then;
import org.specnaz.core.CoreDslBuilder;
import org.specnaz.core.SpecnazCoreDsl;
import java.util.function.Consumer;
public interface SpecnazGivenWhenThen extends SpecnazCoreDsl {
default void given(String description, Consumer<GivenBuilder> closure) {
... |
demacedius/BurgWar | src/ClientLib/Systems/PostFrameCallbackSystem.cpp | // Copyright (C) 2020 <NAME>
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <ClientLib/Systems/PostFrameCallbackSystem.hpp>
#include <CoreLib/LogSystem/Logger.hpp>
#include <CoreLib/Components/ScriptComponent.hpp>
#include <ClientLib/Lo... |
V1vek/chronos-timetracker | app/renderer/sagas/worklogTypes.js | import * as eff from 'redux-saga/effects';
import * as Api from 'api';
import {
infoLog,
} from './ui';
export function* getWorklogTypes() {
try {
const { payload } = yield eff.call(Api.fetchWorklogTypes);
yield eff.call(infoLog, 'got worklog types', payload);
} catch (err) {
console.log(err);
}
... |
dev-rbatista/Tutorial_Local_Smoke_Test_with_Docker_Containers-Gradle | src/test/java/switchtwentytwenty/project/datamodel/domainjpa/PersonJPATest.java | package switchtwentytwenty.project.datamodel.domainjpa;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import java.util.UUID;
import static org.junit.jupiter.api.Assertions.*;
class PersonJPATest {
String id = "<EMAIL>";
PersonIDJPA personIDJPA = new PersonIDJPA(id);
PersonIDJPA p... |
zhoutao0712/rtn11pb1 | release/src-ra-4300/linux/linux-2.6.36.x/arch/arm/plat-mxc/include/mach/mxc_ehci.h | <filename>release/src-ra-4300/linux/linux-2.6.36.x/arch/arm/plat-mxc/include/mach/mxc_ehci.h
#ifndef __INCLUDE_ASM_ARCH_MXC_EHCI_H
#define __INCLUDE_ASM_ARCH_MXC_EHCI_H
/* values for portsc field */
#define MXC_EHCI_PHY_LOW_POWER_SUSPEND (1 << 23)
#define MXC_EHCI_FORCE_FS (1 << 24)
#define MXC_EHCI_UTMI_8BIT (0 << ... |
bernease/cli-demo-1 | src/whylogs/tests/unit/core/statistics/test_schematracker.py | <reponame>bernease/cli-demo-1<filename>src/whylogs/tests/unit/core/statistics/test_schematracker.py
from whylabs.logs.proto import InferredType
from whylabs.logs.core.statistics import SchemaTracker
Type = InferredType.Type
def multiple_track(tracker, counts: dict):
for item, count in counts.items():
for ... |
MarioIvancic/mcu-libc | src/string/strcspn.c | #include <string.h>
/*
The strcspn() function shall compute the length (in bytes) of the maximum
initial segment of the string pointed to by s1 which consists entirely of
bytes not from the string pointed to by s2.
The strcspn() function shall return the length of the computed segment of
the strin... |
dns/Cafu | Libs/Models/Loader_mdl_hl2_vvd.hpp | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) <NAME> and other contributors.
This project is licensed under the terms of the MIT license.
*/
#ifndef CAFU_HL2_MDL_VVD_VERTEX_DATA_HPP_INCLUDED
#define CAFU_HL2_MDL_VVD_VERTEX_DATA_HPP_INCLUDED
#include "Math3D/Vector3.hpp"
#include "Templates/Array.hpp"
#if defined... |
ssachtleben/herowar | app/dao/NewsDAO.java | package dao;
import controllers.Application;
import models.entity.News;
import models.entity.User;
import play.db.jpa.JPA;
public class NewsDAO extends BaseDAO<Long, News> {
public NewsDAO() {
super(Long.class, News.class);
}
public void merge(News news, News news2) {
news.setHeadline(news2.get... |
w3aponx/orientdb | object/src/main/java/com/orientechnologies/orient/object/serialization/OObjectSerializerManager.java | /*
*
* Copyright 2012 <NAME> (molino.luca--AT--gmail.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 required by a... |
tonxxd/strapi | packages/strapi-plugin-upload/admin/src/containers/HomePage/index.js | /*
*
* HomePage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import { bindActionCreators, compose } from 'redux';
import { isEmpty } from 'lodash';
import { Header } from '@buffetjs/custom';
import {
getQueryPa... |
potherca-contrib/origin-community-cartridges | openshift-origin-cartridge-jbossrhq-4/template/deployments/rhq.ear/coregui.war/WEB-INF/classes/org/rhq/enterprise/gui/coregui/client/dashboard/portlets/resource/ResourcePkgHistoryPortlet.java | <reponame>potherca-contrib/origin-community-cartridges<filename>openshift-origin-cartridge-jbossrhq-4/template/deployments/rhq.ear/coregui.war/WEB-INF/classes/org/rhq/enterprise/gui/coregui/client/dashboard/portlets/resource/ResourcePkgHistoryPortlet.java
/*
* RHQ Management Platform
* Copyright (C) 2005-2010 Red Hat... |
dhutchison/maven-archetype | maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/creation/DefaultArchetypeCreationConfigurator.java | package org.apache.maven.archetype.ui.creation;
/*
* 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 Apa... |
welchbj/spotnet | frontend/app/serializers/playlist.js | import DS from 'ember-data';
export default DS.JSONAPISerializer.extend({
normalizePlaylistObject(playlist) {
return {
type: 'playlist',
id: playlist.id,
attributes: {
description: ('description' in playlist) ? playlist.description : null,
spotifyUrl: playlist.external_urls.... |
hilmialyaz/Activiti | modules/org.milleni.dunning/src/main/java/org/milleni/dunning/ws/client/crmcontact/SmsSenderApplication.java |
package org.milleni.dunning.ws.client.crmcontact;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SmsSenderApplication.
*
* <p>The following schema fragment specifies the expected content contained within ... |
spatialcurrent/go-dfl | pkg/dfl/Like.go | <filename>pkg/dfl/Like.go
// =================================================================
//
// Copyright (C) 2019 Spatial Current, Inc. - All Rights Reserved
// Released as open source under the MIT License. See LICENSE file.
//
// =================================================================
package dfl
i... |
willianfonseca/presto | presto-tests/src/test/java/com/facebook/presto/server/TestAsyncPageTransportServlet.java | <reponame>willianfonseca/presto
/*
* 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... |
eclarizio/catalog-ui | src/smart-components/order/order-detail/order-lifecycle.js | import React from 'react';
import { Redirect, useRouteMatch } from 'react-router-dom';
import { useSelector } from 'react-redux';
import ExternalLinkAlt from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
import useQuery from '../../../utilities/use-query';
import { ORDER_ROUTE } from '../../../consta... |
afeng11/tomato-arm | release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/staging/ti-st/bt_drv.h | /*
* Texas Instrument's Bluetooth Driver For Shared Transport.
*
* Bluetooth Driver acts as interface between HCI CORE and
* TI Shared Transport Layer.
*
* Copyright (C) 2009 Texas Instruments
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General... |
zhiqwang/mmdeploy | configs/mmdet/detection/detection_tensorrt-int8_dynamic-300x300-512x512.py | <reponame>zhiqwang/mmdeploy
_base_ = ['../_base_/base_tensorrt-int8_dynamic-300x300-512x512.py']
|
gregwhitaker/gradle-localstack | gradle-localstack-plugin/src/main/java/com/nike/pdm/localstack/aws/dynamodb/DeleteDynamoDbTableTask.java | /**
* Copyright 2020-present, Nike, Inc.
* All rights reserved.
*
* This source code is licensed under the Apache-2.0 license found in
* the LICENSE file in the root directory of this source tree.
*/
package com.nike.pdm.localstack.aws.dynamodb;
import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;
import com... |
smartgreeting/store-rpc | seckill/internal/logic/getseckilllistlogic.go | package logic
import (
"context"
"github.com/smartgreeting/store-rpc/seckill/internal/svc"
"github.com/smartgreeting/store-rpc/seckill/seckill"
"github.com/tal-tech/go-zero/core/logx"
)
type GetSeckillListLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewGetSeckillListLo... |
AJAkimana/yottaget-ui | src/components/addHouseSteps/CoverImage.js | <gh_stars>0
import React, { useState } from 'react';
import { DropzoneDialog } from 'material-ui-dropzone';
import { Button, GridList, GridListTile, makeStyles } from '@material-ui/core';
const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',... |
jinzhan/santd | src/input/index.js | <reponame>jinzhan/santd
/**
* @file input 入口文件
*/
import Input from './input';
import Search from './input-search';
import TextArea from './textarea';
import Group from './group';
import Password from './input-password';
Input.Search = Search;
Input.TextArea = TextArea;
Input.Group = Group;
Input.Password = Password;... |
zadjii/nebula | messages/ClientGetCloudHostRequestMessage.py | <reponame>zadjii/nebula<filename>messages/ClientGetCloudHostRequestMessage.py
# last generated 2016-12-30 20:11:44.027000
from messages import BaseMessage
from msg_codes import CLIENT_GET_CLOUD_HOST_REQUEST as CLIENT_GET_CLOUD_HOST_REQUEST
__author__ = 'Mike'
class ClientGetCloudHostRequestMessage(BaseMessage):
d... |
LarsP8/service-proxy | core/src/main/java/com/predic8/membrane/core/kubernetes/GenericJsonParser.java | /* Copyright 2009, 2021 predic8 GmbH, www.predic8.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 required by applicable law or... |
petitg1987/urchinEngine | test/src/3d/scene/renderer3d/Renderer3dTest.h | #pragma once
#include <cppunit/TestFixture.h>
#include <cppunit/Test.h>
#include <Urchin3dEngine.h>
class Renderer3dTest : public CppUnit::TestFixture {
public:
static CppUnit::Test* suite();
void modelPreWarm();
private:
std::unique_ptr<urchin::Model> buildModel(std::string, const s... |
jcoreio/chai-webdriverio-async | src/assertions/text.js | /**
* NOTICE
* This file has been modified from the source in
* https://github.com/marcodejongh/chai-webdriverio
*/
import getElements from '../util/getElements'
const text = (client, chai, utils, options) => {
async function assertText(expected) {
const negate = utils.flag(this, 'negate')
const { getV... |
nobo728x/logbook | logbook-common/src/main/java/org/zalando/logbook/common/MediaTypeQuery.java | <reponame>nobo728x/logbook
package org.zalando.logbook.common;
import java.util.Arrays;
import java.util.function.Predicate;
import java.util.regex.Pattern;
public final class MediaTypeQuery {
private static final Pattern WILDCARD = Pattern.compile("\\*");
private MediaTypeQuery() {
}
public stati... |
wzp1985/sms | app/models/message.rb | class Message < ActiveRecord::Base
include AASM
extend ActiveSupport::Memoizable
aasm_state :pending
aasm_state :delivered
aasm_initial_state :pending
aasm_event :deliver do
transitions :to => :delivered, :from => :pending, :guard => lambda { |m| m.send(:ensure_delivered) }
end
belongs_to :user
... |
mohnstrudel/kosher | app/controllers/front/manufacturers_controller.rb | <filename>app/controllers/front/manufacturers_controller.rb
class Front::ManufacturersController < FrontController
def index
objects = Manufacturer.top_level.order(created_at: :desc)
item_amount = objects.count
page_size = Rails.application.config.page_size
@page = (params[:page] || 1).to_i
@pages... |
jeleedict/pathpedia | src/main/java/kr/ac/knu/ml/pathinfo/repository/PathInfoAbbreviationRepository.java | <reponame>jeleedict/pathpedia<gh_stars>1-10
/*******************************************************************************
* Copyright (c) 2011, 2014 Kyungpook National University and Contributors
*
* Contributor(s): - <NAME>
*******************************************************************************/
pa... |
cquiroz/ocs | bundle/edu.gemini.pot/src/main/java/edu/gemini/spModel/seqcomp/SeqRepeatFlatObs.java | // Copyright 1997-2000
// Association for Universities for Research in Astronomy, Inc.,
// Observatory Control System, Gemini Telescopes Project.
// See the file LICENSE for complete details.
//
// $Id: SeqRepeatFlatObs.java 18053 2009-02-20 20:16:23Z swalker $
//
package edu.gemini.spModel.seqcomp;
import edu.gemini.... |
ajscholz/material-kit-pro | src/pages/ecommerce-page.js | <reponame>ajscholz/material-kit-pro<gh_stars>0
import React from "react"
import EcommercePage from "views/EcommercePage/EcommercePage"
export default () => <EcommercePage />
|
radekkozak/RxNetwork | rxnetwork/src/test/java/greyfox/rxnetwork/internal/strategy/internet/impl/WalledGardenInternetObservingStrategyTest.java | package greyfox.rxnetwork.internal.strategy.internet.impl;
import greyfox.rxnetwork.internal.strategy.internet.InternetObservingStrategy;
import greyfox.rxnetwork.internal.strategy.internet.error.InternetObservingStrategyException;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
imp... |
truthiswill/intellij-community | python/testData/resolve/KeywordArgument.py | <gh_stars>1-10
def foo(bar=True):
pass
foo(bar=False)
# <ref>
|
kll5h/ShinetechOA | src/main/java/com/mossle/api/user/MockAccountAliasConverter.java | package com.mossle.api.user;
public class MockAccountAliasConverter implements AccountAliasConverter {
public String convertAlias(String alias) {
return alias;
}
}
|
DarrenPaulWright/hord | tests/Schema/Schema.test.js | import displayValue from 'display-value';
import { clone, deepEqual } from 'object-agent';
import { assert, Enum } from 'type-enforcer';
import { Schema } from '../../index.js';
import Model from '../../src/Model.js';
import { schemaTestTypes } from '../helpers/testValues.js';
const parseName = (data) => {
return dat... |
braymar/afl | qemu_mode/qemu-2.10.0/roms/u-boot/arch/arm/cpu/armv7/mx7ulp/scg.c | <filename>qemu_mode/qemu-2.10.0/roms/u-boot/arch/arm/cpu/armv7/mx7ulp/scg.c
/*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <div64.h>
#include <asm/io.h>
#include <errno.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/pcc.h>
#include ... |
jemiahlee/18xx | lib/engine/game/g_1856/step/nationalization_payoff.rb | # frozen_string_literal: true
require_relative '../../../step/base'
# require_relative 'tokener'
module Engine
module Game
module G1856
module Step
class NationalizationPayoff < Engine::Step::Base
# To get to re-use view code from 18MEX we will slightly abuse merge and pass
# M... |
Adxell/practicewithjavaScript | js/boolean/boolean.js | <filename>js/boolean/boolean.js<gh_stars>1-10
const flag = new Boolean();
console.log(flag);
console.log("--------Creating Boolean objects with an initial value of false ----------")
let bNoParam = new Boolean();
console.log(bNoParam);
let bZero = new Boolean(0);
console.log(bZero);
let bNull = new Boolean(null);
... |
mJiyan/mercedes-coding-challenge | server/node_modules/swagger-node-runner/fittings/cors.js | 'use strict';
var debug = require('debug')('pipes:fittings');
var CORS = require('cors');
// config options: https://www.npmjs.com/package/cors
module.exports = function create(fittingDef) {
debug('cors config: %j', fittingDef);
var middleware = CORS(fittingDef);
return function cors(context, cb) {
debug... |
YANG-DB/netflix-graph | src/test/java/com/netflix/nfgraph/compressed/HashSetTest.java | <gh_stars>100-1000
/*
* Copyright 2013 Netflix, 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
*
* Unles... |
sfa119f/2018-TowerDefence | game-engine/domain/src/main/java/za/co/entelect/challenge/commands/IronCurtainCommand.java | <reponame>sfa119f/2018-TowerDefence<filename>game-engine/domain/src/main/java/za/co/entelect/challenge/commands/IronCurtainCommand.java
package za.co.entelect.challenge.commands;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import za.co.entelect.challenge.config.GameConfig;
impor... |
opencolleges/oc-component-library | lib/radio-set/radio-set.js | // * React imports
import PropTypes from 'prop-types';
import React from 'react';
// * utility imports
import find from '../utilities/js/find';
import prefix from '../utilities/js/prefix';
// * child imports
import OCGrid from '../grid';
import OCGridItem from '../grid-item';
import OCCard from '../card';
import OCRa... |
Elvis-rugamba/fan7-bn-backend | src/utils/event.util.js | /* eslint-disable import/no-cycle */
import EventEmitter from 'events';
import NotificationService from '../services/notification.service';
export const eventEmitter = new EventEmitter();
export default () => {
eventEmitter.on('notification', NotificationService.send);
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.