repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
zen0822/vue2do | package/component/tsDist/module/Nav/Nav.render.js | <gh_stars>10-100
"use strict";
/**
* nav.render.js
*/
Object.defineProperty(exports, "__esModule", { value: true });
function foldContent(h, foldList) {
var _this = this;
if (!Array.isArray(foldList) || foldList.length === 0) {
return false;
}
var foldChildren = [];
foldList.forEach(functi... |
pitchbull/bosh | simple_blobstore_server/lib/simple_blobstore_server/version.rb | <filename>simple_blobstore_server/lib/simple_blobstore_server/version.rb
module Bosh
module SimpleBlobstoreServer
VERSION = '1.3163.0'
end
end
|
npocmaka/Windows-Server-2003 | printscan/ui/uicommon/rescale.h | /*******************************************************************************
*
* (C) COPYRIGHT MICROSOFT CORPORATION, 1998
*
* TITLE: RESCALE.H
*
* VERSION: 1.0
*
* AUTHOR: ShaunIv
*
* DATE: 10/15/1998
*
* DESCRIPTION: Scale HBITMAPs using StretchBlt
*
*******... |
followanalytics/htmllint | test/functional/attr-bans.js | <filename>test/functional/attr-bans.js
module.exports = [
{
desc: 'should not match style elements',
input: '<body><style>hello</style></body>',
opts: { 'attr-bans': ['style'] },
output: 0
}, {
desc: 'should match style attributes',
input: '<button style="color: r... |
KorreMarietta/pls50-E6 | pls50e1 Korre/E1ask3/main.c | <filename>pls50e1 Korre/E1ask3/main.c
#include <stdio.h>
int main( void )
{
int decimal = 0;
printf("Dose enan akeraio thetiko arithmo:\n ");
scanf("%d", &decimal);
printf("(Akeraios) %d = (<NAME>) ", decimal );
while ( decimal != 0 )
{
printf("%d", decimal % 2 );
decimal /= 2;
}
putchar('\n');
return... |
penghaiYin/bm-work-2020 | server/src/main/java/edp/vap/core/enums/UserPermissionEnum.java | <filename>server/src/main/java/edp/vap/core/enums/UserPermissionEnum.java
package edp.vap.core.enums;
public enum UserPermissionEnum {
HIDDEN((short) 0, "hidden"),
READ((short) 1, "read only"),
WRITE((short) 2, "write"),
DELETE((short) 3, "delete");
private short permission;
private String... |
CS2510/Spring-22-CS-2510-In-Class | Archive/Lottery/lottery_game/RocketController.js | import Component from "../engine/Component.js"
import Game from "../engine/Game.js"
import Input from "../engine/Input.js"
import Collisions from "../engine/Collisions.js";
import Time from "../engine/Time.js"
import ElevatorScene from "./ElevatorScene.js";
import Constants from "./Constants.js"
class RocketContolle... |
ai-man-123/MDyoobotz | node_modules/@protobufjs/float/bench/index.js | <gh_stars>100-1000
"use strict";
var float = require(".."),
ieee754 = require("ieee754"),
newSuite = require("./suite");
var F32 = Float32Array;
var F64 = Float64Array;
delete global.Float32Array;
delete global.Float64Array;
var floatFallback = float({});
global.Float32Array = F32;
global.Float64A... |
zealoussnow/chromium | device/fido/cable/fido_cable_handshake_handler_fuzzer.cc | <filename>device/fido/cable/fido_cable_handshake_handler_fuzzer.cc
// Copyright 2018 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 <stddef.h>
#include <stdint.h>
#include <array>
#include "base/containers/sp... |
lingnand/Helium | src/srchilite/lineranges.cpp | <filename>src/srchilite/lineranges.cpp
/*
* lineranges.cpp
*
* Created on: Sep 17, 2008
* Author: <NAME> <http://www.lorenzobettini.it>, (C) 2008
* Copyright: See COPYING file that comes with this distribution
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "lineranges.h"
#include <sstream>
... |
joshuaguite/cloudpassage-halo-python-sdk | tests/integration/test_integration_time_series.py | <reponame>joshuaguite/cloudpassage-halo-python-sdk
import imp
import os
import pprint
import pytest
import sys
from datetime import datetime, timedelta
from cloudpassage.utility import Utility as utility
module_name = 'cloudpassage'
here_dir = os.path.dirname(os.path.abspath(__file__))
module_path = os.path.join(her... |
momantang/cobrass | utils/test.py | <reponame>momantang/cobrass<filename>utils/test.py
import os
import platform
import sys
sys.path.append(os.path.expanduser('~') + os.sep + 'PycharmProjects' + os.sep + "cobrass")
from schedule import snapshot
from utils.mail_util import send_mail_table
if __name__ == '__main__':
print(' utils testcd')
df = sn... |
phase/TridentSDK | src/main/java/net/tridentsdk/Handler.java | <reponame>phase/TridentSDK<filename>src/main/java/net/tridentsdk/Handler.java
/*
* Trident - A Multithreaded Server Alternative
* Copyright 2014 The TridentSDK Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... |
BullyWiiPlaza/Universal-Pointer-Searcher | src/main/java/com/wiiudev/gecko/pointer/swing/preprocessed_search/MemoryDumpDialog.java | <filename>src/main/java/com/wiiudev/gecko/pointer/swing/preprocessed_search/MemoryDumpDialog.java
package com.wiiudev.gecko.pointer.swing.preprocessed_search;
import com.wiiudev.gecko.pointer.preprocessed_search.data_structures.MemoryDump;
import com.wiiudev.gecko.pointer.swing.utilities.JTextAreaLimit;
import com.wii... |
dmgerman/gerrit | java/com/google/gerrit/server/query/change/AssigneePredicate.java | <reponame>dmgerman/gerrit
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2016 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, Version 2.0 (the "License");
end_comment
begi... |
emccrckn/go-client | splitio/tasks/eventssync.go | package tasks
import (
"errors"
"github.com/splitio/go-client/splitio/service"
"github.com/splitio/go-client/splitio/storage"
"github.com/splitio/go-toolkit/asynctask"
"github.com/splitio/go-toolkit/logging"
)
func submitEvents(
eventStorage storage.EventStorageConsumer,
eventRecorder service.EventsRecorder,
... |
m-moshtagh/Oakjutsu | src/main/java/com/dogigiri/core/concurrency/executiveframework/transformingcompletablefuture/Main.java | <gh_stars>0
package com.dogigiri.core.concurrency.executiveframework.transformingcompletablefuture;
import java.util.concurrent.CompletableFuture;
public class Main {
public static int toFahrenheit(int Celsius) {
return (int) (Celsius * 1.8) + 32;
}
public static void main(String[] args) {
... |
ParaSatellite/JPPF | common/src/java/org/jppf/comm/socket/SocketInitializerImpl.java | <gh_stars>1-10
/*
* JPPF.
* Copyright (C) 2005-2019 JPPF Team.
* http://www.jppf.org
*
* 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
... |
ShmuelFine/COOP | COOP_C_TestProxy/MemManagementUnitTest.h | <gh_stars>10-100
#include "ProxyExportDefs.h"
#include "COOP.h"
#ifdef __cplusplus
extern "C" {
#endif
COOP_API FUN_DECL(New_WhenAllocatingBuffer_ThenReturnsRightAmountOfMemroy);
COOP_API FUN_DECL(New_WhenAllocatingClassInstance_ThenReturnsRightAmountOfMemroy);
COOP_API FUN_DECL(Delete_WhenDeletingAllocMemory_The... |
hieuhoang/FasterTransformer | src/fastertransformer/models/swin_int8/SwinINT8Weight.h | <filename>src/fastertransformer/models/swin_int8/SwinINT8Weight.h
/*
* Copyright (c) 2022, NVIDIA CORPORATION. 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
*
*... |
codingxu97/hibernate-reactive | hibernate-reactive-core/src/main/java/org/hibernate/reactive/engine/ReactiveAfterTransactionCompletionProcess.java | <reponame>codingxu97/hibernate-reactive<gh_stars>100-1000
/* Hibernate, Relational Persistence for Idiomatic Java
*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine;
import org.hibernate.reactive.session.ReactiveSession;
import java.uti... |
ttao-talendbj/tbd-studio-se | main/plugins/org.talend.repository.oozie/src/org/talend/repository/oozie/action/EditOoziePropertiesAction.java | <reponame>ttao-talendbj/tbd-studio-se
package org.talend.repository.oozie.action;
import org.talend.core.model.repository.ERepositoryObjectType;
import org.talend.repository.hadoopcluster.action.common.EditHadoopNodePropertiesAction;
import org.talend.repository.oozie.node.model.OozieRepositoryNodeType;
public class ... |
homobel/makebird-node | test/projects/large/a784.js | //~ name a784
alert(a784);
//~ component a785.js
|
zhixin9001/Algorithm | algs4/algs4-master/src/main/java/edu/princeton/cs/algs4/TrieST.java | <reponame>zhixin9001/Algorithm
/******************************************************************************
* Compilation: javac TrieST.java
* Execution: java TrieST < words.txt
* Dependencies: StdIn.java
* Data files: https://algs4.cs.princeton.edu/52trie/shellsST.txt
*
* A string symbol table for ... |
JoaoBaptMG/INF443-Project | src/scene/Terrain.cpp | #include "Terrain.hpp"
#include "colors.hpp"
#include <thread>
#include <random>
#include <algorithm>
#include "resources/Cache.hpp"
#include "util/Frustum.hpp"
#include "util/range.hpp"
#include "mesh_utils.hpp"
#include <glm/gtx/transform.hpp>
#ifdef _WIN32
#include <execution>
#define POLICY std::execution::par_... |
yiemwa123/DREU-AISpy | Nodejs_Code/Test Code/visionNode.js | <gh_stars>0
// Imports the Google Cloud client library
const vision = require('@google-cloud/vision');
// Creates a client
const client = new vision.ImageAnnotatorClient();
// Performs label detection on the image file
client
.labelDetection('/Users/gabesaldivar/Desktop/vision_tes... |
iicc/django-oscar | tests/__init__.py | import sys
class temporary_python_path(object):
"""
Acts as a context manager to temporarily prepend a list of paths to
sys.path
"""
def __init__(self, paths):
self.paths = paths
def __enter__(self):
self.original_paths = sys.path[:]
sys.path = self.paths + self.origin... |
Citytechinc/harbor | harbor-core/src/main/java/com/icfolson/aem/harbor/core/components/content/tabs/v1/DefaultTabs.java | package com.icfolson.aem.harbor.core.components.content.tabs.v1;
import com.google.common.collect.Lists;
import com.icfolson.aem.harbor.api.components.content.tabs.Tab;
import com.icfolson.aem.harbor.api.components.content.tabs.Tabs;
import com.icfolson.aem.harbor.api.components.mixins.classifiable.Classification;
imp... |
ascartabelli/lamb | src/array/uniques.js | import identity from "../core/identity";
import uniquesBy from "./uniquesBy";
/**
* Returns an array comprised of the unique elements of the given array-like object.<br/>
* Note that this function uses the ["SameValueZero" comparison]{@link module:lamb.areSVZ|areSVZ}
* to test the equality of values.<br/>
* When t... |
sanderv32/cosmic | cosmic-core/framework/db/src/test/java/com/cloud/utils/DbUtilTest.java | package com.cloud.utils;
import com.cloud.utils.db.DbUtil;
import com.cloud.utils.db.TransactionLegacy;
import javax.persistence.Column;
import javax.persistence.Table;
import javax.sql.DataSource;
import java.io.IOException;
import java.lang.reflect.Field;
import java.sql.Connection;
import java.sql.PreparedStatemen... |
fzodc/api-stuido | src/pages/Dashboard/OrgCard.js | <filename>src/pages/Dashboard/OrgCard.js<gh_stars>0
import React, { memo } from 'react';
import { Row, Col, Card, Tabs, DatePicker } from 'antd';
import numeral from 'numeral';
import styles from './Analysis.less';
import { Bar } from '@/components/Charts';
const { RangePicker } = DatePicker;
const { TabPane } = Tabs... |
jakobehmsen/giki-lang | eclipse/src/giki/gui/ResourceView.java | package giki.gui;
import giki.parser.Resource;
import java.awt.BorderLayout;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.Writer;
import javax.swing.JPanel;
... |
yuan50697105/my-admin-test | my-admin-01/my-admin-gradle/my-admin-commons/src/main/java/org/yuan/admin/commons/controller/ICommonsController.java | package org.yuan.admin.commons.controller;
/**
* @program: my-admin-gradle
* @description:
* @author: yuane
* @create: 2020-04-19 19:42
*/
public class ICommonsController {
} |
AnneSophieS/manager | packages/manager/apps/dedicated/client/app/billing/autoRenew/disable-domains-bulk/disable-domains-bulk.component.js | <filename>packages/manager/apps/dedicated/client/app/billing/autoRenew/disable-domains-bulk/disable-domains-bulk.component.js<gh_stars>100-1000
import controller from './disable-domains-bulk.controller';
import template from './disable-domains-bulk.html';
export default {
bindings: {
disableDomainsBulk: '<',
... |
wtwhite/xmp | src/fastdnamp.c | <gh_stars>0
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <time.h>
#include <ctype.h>
//#include <mem.h>
#include <string.h>
#include <assert.h>
#include "common.h"
#include "seq.h"
#include "yanbader.h"
#include "measure.h"
#include "timer.h"
#include "elapsedtime.h"
#include <dbgpr... |
ScalablyTyped/SlinkyTyped | a/angular/src/main/scala/typingsSlinky/angular/mod/ILocaleService.scala | package typingsSlinky.angular.mod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
///////////////////////////////////////////////////////////////////////////
// LocaleService
/... |
AmyliaScarlet/amyliascarletlib | src/test/java/com/amyliascarlet/jsontest/bvt/bug/Issue_for_zuojing.java | package com.amyliascarlet.jsontest.bvt.bug;
import com.amyliascarlet.lib.json.JSON;
import junit.framework.TestCase;
import java.util.List;
/**
* Created by wenshao on 15/02/2017.
*/
public class Issue_for_zuojing extends TestCase {
public void test_for_zuojing() throws Exception {
String rowData = "[{... |
anishmo99/CPP | shortestPathInBinaryMatrix.cpp | class Solution {
public:
int shortestPathBinaryMatrix(vector<vector<int>>& grid) {
int count = 0;
vector<vector<int>> dir = {{0, -1}, {0, 1}, {1,1}, {1,-1}, {-1,1}, {-1, -1}, {1, 0}, {-1, 0}};
vector<vector<bool>> visited(grid.size(), vector<bool> (grid[0].size(), false));
... |
ammurdoch/where-you-at | node_modules/react-native-keyboard-aware-scroll-view/lib/KeyboardAwareListView.js | /* @flow */
import { ListView } from 'react-native'
import listenToKeyboardEvents from './KeyboardAwareHOC'
export default listenToKeyboardEvents(ListView)
|
martinohmann/skeleton-go | internal/testutil/env.go | package testutil
import "os"
// Unsetenv set an environment variable and returns a func to restore it to
// its previous value.
//
// Usage example in tests:
//
// defer testutil.Setenv(t, key, value)()
//
func Setenv(key, value string) func() {
oldVal, restoreNeeded := os.LookupEnv(key)
os.Setenv(key, value)
... |
JonathanChiudev/react-chatbot | client/src/components/Common/HobbyItem/__tests__/index.spec.js | <gh_stars>1-10
import React from 'react';
import { create } from 'react-test-renderer';
import HobbyItem from '../../HobbyItem';
const mockComponent = props => (
<HobbyItem {...props} />
);
describe('components/Common/<HobbyItem />', () => {
it('should render component', () => {
const props = {
data: {... |
subramon/qlu | TMPL_FIX_HASHMAP/src/rs_hmap_pr.c | // EXTERNAL EXPOSURE
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include "q_macros.h"
#include "pr.h"
#include "rs_hmap_pr.h"
int
rs_hmap_pr(
rs_hmap_t *ptr_hmap,
FILE *fp
)
{
int status = 0;
bkt_t *bkts = (bkt_t *)ptr_hmap->bkts;
bool *bkt_full = ptr_hmap->bkt_full... |
jxg01713/zstack | header/src/main/java/org/zstack/header/storage/snapshot/VolumeSnapshotVO_.java | package org.zstack.header.storage.snapshot;
/**
*/
import javax.persistence.metamodel.StaticMetamodel;
@StaticMetamodel(VolumeSnapshotVO.class)
public class VolumeSnapshotVO_ extends VolumeSnapshotAO_ {
}
|
Gohan/aws-sdk-cpp | aws-cpp-sdk-autoscaling/include/aws/autoscaling/model/CreateLaunchConfigurationRequest.h | /*
* Copyright 2010-2017 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 "license" fil... |
lkersting/SCR-2123 | packages/monte_carlo/core/src/MonteCarlo_SimulationPropertiesFactory.hpp | <gh_stars>0
//---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_SimulationPropertiesFactory.hpp
//! \author <NAME>
//! \brief Simulation properties factory class declaration.
//!
//---------------------------------------------------------------------------//
#ifn... |
ProjetDeRechercheSurLecriture/FieldDB | api/permission/Permission.js | <reponame>ProjetDeRechercheSurLecriture/FieldDB
var FieldDBObject = require("./../FieldDBObject").FieldDBObject;
var Users = require("./../user/Users").Users;
/**
* @class Permission
* @name Permission
*
* @description The permission class specifies which user (User, Consultant or Bot)
* can do what acti... |
1347508335/PocketOfMedicine | PocketMedicine/PocketMedicine/class/healthTool/drug/controller/DrugTwoController.h | <reponame>1347508335/PocketOfMedicine
//
// DrugTwoController.h
// PocketMedicine
//
// Created by lanou3g on 15/10/8.
// Copyright © 2015年 organazation. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface DrugTwoController : UITableViewController
@property (nonatomic, strong) NSString *myTitle;
@property... |
RafaelXokito/Clinics | src/main/java/pt/ipleiria/estg/dei/ei/dae/clinics/ws/AuthService.java | <gh_stars>0
package pt.ipleiria.estg.dei.ei.dae.clinics.ws;
import com.nimbusds.jwt.JWT;
import com.nimbusds.jwt.JWTParser;
import pt.ipleiria.estg.dei.ei.dae.clinics.dtos.AdministratorDTO;
import pt.ipleiria.estg.dei.ei.dae.clinics.dtos.AuthDTO;
import pt.ipleiria.estg.dei.ei.dae.clinics.dtos.NewPasswordDTO;
import p... |
k82cn/rtl8821ce | hal/halmac/halmac_88xx/halmac_8821c/halmac_api_8821c_usb.h | <filename>hal/halmac/halmac_88xx/halmac_8821c/halmac_api_8821c_usb.h
#ifndef _HALMAC_API_8821C_USB_H_
#define _HALMAC_API_8821C_USB_H_
#include "../../halmac_2_platform.h"
#include "../../halmac_type.h"
extern HALMAC_INTF_PHY_PARA HALMAC_RTL8821C_USB2_PHY[];
extern HALMAC_INTF_PHY_PARA HALMAC_RTL8821C_USB3_PHY[];
HA... |
hwchiu/vortex | src/server/handler_pod_test.go | package server
import (
"encoding/json"
"math/rand"
"net/http"
"net/http/httptest"
"strings"
"testing"
"time"
restful "github.com/emicklei/go-restful"
"github.com/linkernetworks/mongo"
"github.com/hwchiu/vortex/src/config"
"github.com/hwchiu/vortex/src/entity"
p "github.com/hwchiu/vortex/src/pod"
"github... |
marient/PelePhysics | Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/components/Component.py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# <NAME>
# California Institute of Technology
# (C) 1998-2003 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
xanderyzwich/Playground | python/tools/lists/birthday_candles.py | <filename>python/tools/lists/birthday_candles.py
"""
Birthday Cake Candles:
You are in charge of the cake for a child's birthday.
You have decided the cake will have one candle for each year of their total age.
They will only be able to blow out the tallest of the candles.
Count how many candles are tallest.
"""
... |
chengfulin/dujs | lib/dujs/cfgbuilder.js | <reponame>chengfulin/dujs
/*
* CFG builder with esgraph library
* @lastmodifiedBy ChengFuLin(<EMAIL>)
* @lastmodifiedDate 2015-08-25
*/
var esgraph = require('../esgraph/index'),
factoryFlowNode = require('../esgraph/flownodefactory'),
FlowNode = require('../esgraph/flownode');
/**
* CFGBuilder
* @constructor
... |
jotitan/music_server | src/music/share.go | <filename>src/music/share.go
package music
import (
"bytes"
"encoding/json"
"fmt"
"github.com/jotitan/music_server/logger"
"io/ioutil"
"net/http"
"net/url"
"strconv"
"strings"
"time"
)
// SharedSession represent a relation between an interface (original) and copy (clones)
type SharedSession struct {
// Id ... |
janhalasa/demoshop | src/main/java/com/halasa/demoshop/service/repository/ProductRepository.java | <reponame>janhalasa/demoshop<gh_stars>0
package com.halasa.demoshop.service.repository;
import com.halasa.demoshop.service.domain.Product;
import java.util.List;
import java.util.Optional;
public interface ProductRepository extends BasicReadOnlyRepository<Product, Long> {
ListResult<Product> fulltextSearch(Stri... |
saeschdivara/Adventurer-Conqueror-King-Mobile | lib/src/main/java/com/ack/adventureandconquer/game/creature/npc/dragon/OldDragonType.java | package com.ack.adventureandconquer.game.creature.npc.dragon;
import com.ack.adventureandconquer.game.creature.npc.IsNpcType;
import com.ack.adventureandconquer.game.creature.npc.Npc;
import com.ack.adventureandconquer.game.creature.npc.unusual.Template;
import java.util.List;
/**
* Created by saskyrar on 17/01/15.... |
dn0000001/test-automation | taf/src/main/java/com/taf/automation/ui/support/AdHocHolidayManager.java | <reponame>dn0000001/test-automation
package com.taf.automation.ui.support;
import com.taf.automation.ui.support.util.AssertJUtil;
import com.taf.automation.ui.support.util.Helper;
import com.taf.automation.ui.support.util.Utils;
import de.jollyday.HolidayManager;
import de.jollyday.ManagerParameter;
import de.jollyday... |
ChipiHenzj/androidLessons | MyApplication/app/src/main/java/com/example/tetianapriadko/myapplication/Lesson42.java | package com.example.tetianapriadko.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class Lesson42 extends AppCompatActivity {
String[] names = { "Maris", "Agita", "Ricards", "Janis", "Agnese", "La... |
tobireinhard/cbmc | regression/goto-instrument/slice_general007/main.c | <gh_stars>100-1000
// This is a benchmark for the full-slicer
// This is a simplified version of end-to-end regression tests
// 'general005', 'general006', and 'general007' of the security-scanner.
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
struct object
{
bool Tainted_stream;
};
struct java_arra... |
irresi/algostudy | acmicpcnet/4196.cpp | <filename>acmicpcnet/4196.cpp
#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
const int inf=1e9+3;
const int msz=1e5+3;
#define all(x) (x).begin(),(x).end()
#define sync() {ios_base::sync_with_stdio(0); cin.tie(0);cout.tie(0);} //do not use
int n,m,In[msz],chk[msz],ans,dep[msz];
vector<int> ed... |
dengliming/stagemonitor | stagemonitor-core/src/main/java/org/stagemonitor/core/instrument/CachedClassLoaderMatcher.java | <filename>stagemonitor-core/src/main/java/org/stagemonitor/core/instrument/CachedClassLoaderMatcher.java
package org.stagemonitor.core.instrument;
import net.bytebuddy.matcher.ElementMatcher;
public class CachedClassLoaderMatcher extends ElementMatcher.Junction.AbstractBase<ClassLoader> {
private final WeakConcurre... |
LJW123/YiLianMall | YiLian/src/main/java/com/yilian/mall/entity/MTComboDetailsEntity.java | package com.yilian.mall.entity;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by liuyuqi on 2016/12/8 0008.
* 套餐详情
*/
public class MTComboDetailsEntity extends BaseEntity {
/**
* login_status :
* yet_collect :
* data : {"package_id":"","package_name"... |
golionko/maze_game | src/main/java/com/game/maze/persist/repository/LabyrinthRoomRepository.java | package com.game.maze.persist.repository;
import com.game.maze.persist.entity.LabyrinthRoom;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
public interface LabyrinthRoomRepository extends JpaRepository<LabyrinthRoom, Long> {
LabyrinthRoom fin... |
jmgc/pyston | test/extra/routes_test.py | import os, sys, subprocess, shutil
sys.path.append(os.path.dirname(__file__) + "/../lib")
from test_helper import create_virtenv, run_test
ENV_NAME = "routes_test_env_" + os.path.basename(sys.executable)
SRC_DIR = os.path.abspath(os.path.join(ENV_NAME, "src"))
PYTHON_EXE = os.path.abspath(os.path.join(ENV_NAME, "bin"... |
jiapeish/leetcode-c-cpp | reference/Algorithms-in-a-Nutshell-master/Releases/ADK/Deployment/JavaCode/src/algs/model/data/points/UniformGenerator.java | <reponame>jiapeish/leetcode-c-cpp
package algs.model.data.points;
import algs.model.IPoint;
import algs.model.data.Generator;
import algs.model.twod.TwoDPoint;
/**
* Generators of sample data points within the [0,1] unit square.
*
* @author <NAME>
* @version 1.0, 6/15/08
* @since 1.0
*/
public class UniformGen... |
overflow-stack/actframework | src/main/java/act/inject/genie/SingletonScope.java | package act.inject.genie;
import act.app.App;
import org.osgl.inject.ScopeCache;
public class SingletonScope implements ScopeCache.SingletonScope {
public static final SingletonScope INSTANCE = new act.inject.genie.SingletonScope();
private App app;
public SingletonScope() {
app = App.instance(... |
sunshl/incubator-weex | weex_core/Source/include/JavaScriptCore/runtime/NumberConstructor.h | /**
* 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... |
rontrek/softpixel | sources/SceneGraph/Animation/spAnimation.hpp | /*
* Animation interface header
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by <NAME>)
* See "SoftPixelEngine.hpp" for license information.
*/
#ifndef __SP_ANIMATION_H__
#define __SP_ANIMATION_H__
#include "Base/spStandard.hpp"
#include "SceneGraph/spSceneNode.hpp"
#include "SceneGraph/... |
fiverr/passable | src/core/test/index.js | <reponame>fiverr/passable
import { FAIL } from '../../constants';
import { singleton } from '../../lib';
import { isTestFn, TestObject } from './lib';
/**
* Run async test.
* @param {TestObject} testObject A TestObject instance.
*/
export const runAsync = (testObject) => {
const { fieldName, testFn, statement, ... |
hiepndd/keva | core/src/main/java/dev/keva/core/aof/AOFManager.java | package dev.keva.core.aof;
import dev.keva.core.command.mapping.CommandMapper;
import dev.keva.core.command.mapping.CommandWrapper;
import dev.keva.core.config.KevaConfig;
import dev.keva.ioc.annotation.Autowired;
import dev.keva.ioc.annotation.Component;
import dev.keva.protocol.resp.Command;
import dev.keva.util.has... |
Aran1018/Sweet | app/src/main/java/com/lucky/sweet/activity/MyLikeStoreActivity.java | package com.lucky.sweet.activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.TextView;
import com.lucky.sweet.R;
import com.lucky.sweet.adapter.HisOrderAdapter;
import com.lucky.sweet.adapter.MyLikeStoreAdapter;
import com.lucky.sweet.entity.PersonCollect... |
talkable/talkable-ruby | lib/talkable/integration.rb | module Talkable
class << self
def register_affiliate_member(params = {})
register_origin(Talkable::API::Origin::AFFILIATE_MEMBER, params)
end
def register_purchase(params = {})
register_origin(Talkable::API::Origin::PURCHASE, params)
end
def register_event(params = {})
register... |
rnarla123/aliyun-openapi-java-sdk | aliyun-java-sdk-dt-oc-info/src/main/java/com/aliyuncs/dt_oc_info/transform/v20200401/GetCompanyPartnersListThreeResponseUnmarshaller.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
mrbrackins/testt | extensions/shoutem.cms/server/src/components/importer-csv-form/index.js | import ImporterCsvForm from './ImporterCsvForm';
export default ImporterCsvForm;
|
bjornharvold/bearchoke | bearchoke-backend/bearchoke-persistence/bearchoke-persistence-mongo/src/main/java/com/bearchoke/platform/persistence/mongo/document/AbstractDocument.java | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
marcinzh/turbolift | modules/core/src/main/scala/turbolift/abstraction/HandlerExtensions.scala | package turbolift.abstraction
import scala.util.{Try, Success, Failure}
private [abstraction] trait HandlerExtensions:
extension [S, L, N](thiz: Handler[(S, _), L, N])
def eval: Handler.Id[L, N] = dropState
def exec: Handler[[X] =>> S, L, N] = justState
def justState: Handler[[X] =>> S, L, N] = thiz.m... |
Marissa4/RPyCA | dimredu/lib/minNucPlusFrob.py | <reponame>Marissa4/RPyCA
#! /usr/bin/env python
import numpy as np
from dimredu.lib.shrink import shrink
from dimredu.lib.sparseSVDUpdate import sparseSVDUpdate
from dimredu.lib.nuclearNorm import nuclearNorm
def minNucPlusFrob(X, U, E, VT, mu, truncateK=0,
debug=False, guess=None):
"""Compute... |
jacobdaddario/railsdevs.io | db/seeds/conversations.rb | <filename>db/seeds/conversations.rb
# Core developer
developer = User.find_by(email: "<EMAIL>").developer
business = User.find_by(email: "<EMAIL>").business
conversation = Conversation.find_or_create_by!(developer:, business:)
Message.find_or_create_by!(conversation:, sender: business, body: "Your XP looks perfect.")
M... |
FoalFreePress/TestingForgeMods | 8162/examplemod/src/main/java/com/example/examplemod/ExampleMod.java | <reponame>FoalFreePress/TestingForgeMods<filename>8162/examplemod/src/main/java/com/example/examplemod/ExampleMod.java
package com.example.examplemod;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.example.examplelibrary.ExampleLibrary;
import net.minecraftforge.fml.co... |
backupForkRepos/NTTools | src/io/kurumi/nttools/twitter/CleanThread.java | package io.kurumi.nttools.twitter;
import twitter4j.*;
import io.kurumi.nttools.model.Callback;
import io.kurumi.nttools.twitter.TApi;
import io.kurumi.nttools.utils.UserData;
import java.util.LinkedList;
public class CleanThread extends Thread {
private UserData userData;
private Callback callback;
pri... |
StFS/quarkus | extensions/opentelemetry/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/WithSpanInterceptorTest.java | <reponame>StFS/quarkus
package io.quarkus.opentelemetry.deployment;
import static io.opentelemetry.api.trace.SpanKind.INTERNAL;
import static io.opentelemetry.api.trace.SpanKind.SERVER;
import static java.net.HttpURLConnection.HTTP_OK;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.List... |
canfie1d/blueprint | src/components/NumberBlueprint/NumberBlueprint.js | <filename>src/components/NumberBlueprint/NumberBlueprint.js
import React from 'react';
import styled from 'styled-components';
const StyledNumberBlueprint = styled.p`
box-sizing: border-box;
color: #4a6de5;
background: #ced8f7;
padding: 20px 30px;
border: 1px dashed #002082;
`;
const NumberBlueprint = ({ nu... |
timfel/netbeans | java/api.java/src/org/netbeans/spi/java/queries/SourceLevelQueryImplementation2.java | /*
* 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 ... |
Evegen55/TIJ4_code | lib/xom-1.2.10/XOM/src/nu/xom/tests/DOMConverterTest.java | /* Copyright 2002-2006 <NAME>
This library is free software; you can redistribute it and/or modify
it under the terms of version 2.1 of the GNU Lesser General Public
License as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ... |
Tikido/tikido_agent | plugins/elasticsrch/logic.py | from elasticsearch import Elasticsearch, exceptions
import logging
import time
log = logging.getLogger(__name__)
from ..agent_core import IAgentCore
class Logic(IAgentCore):
def __init__(self, options):
self.host_port = options.get('host_port')
self.index = options.get('index', '')
self.d... |
mfullen/ping-pong-net | pingpongnet/src/test/java/ping/pong/net/server/io/IoServerTest.java | package ping.pong.net.server.io;
import java.net.SocketAddress;
import org.junit.AfterClass;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ping.pong.net.connection.Connection;
import ping.pong.net.connection.Connec... |
ratson/objection.js | lib/relations/manyToMany/delete/ManyToManyDeleteOperation.js | <filename>lib/relations/manyToMany/delete/ManyToManyDeleteOperation.js
'use strict';
const ManyToManyDeleteOperationBase = require('./ManyToManyDeleteOperationBase');
const ManyToManyModifyMixin = require('../ManyToManyModifyMixin');
class ManyToManyDeleteOperation extends ManyToManyModifyMixin(ManyToManyDeleteOperat... |
corespring/corespring-api | docker/cs-api-docker-util/src/main/scala/org/corespring/docker/CLI.scala | package org.corespring.docker
import scala.Some
import org.rogach.scallop._;
object CLI extends App {
import scala.concurrent.ExecutionContext.Implicits.global
object Conf extends ScallopConf(args.toList) {
val additionalSeedDirs: ScallopOption[String] = opt[String](
"additionalSeedDirs",
descr... |
Forence1999/SmartWalker | Following/Network/draw_loss_accuracy.py | <reponame>Forence1999/SmartWalker<filename>Following/Network/draw_loss_accuracy.py
import numpy as np
import os, sys
pwd = os.path.abspath(os.path.abspath(__file__))
father_path = os.path.abspath(os.path.dirname(pwd) + os.path.sep + "..")
sys.path.append(father_path)
import matplotlib.pyplot as plt
def get_data(direct... |
usegalaxy-no/usegalaxy | venv/lib/python3.6/site-packages/ansible_collections/dellemc/openmanage/tests/unit/plugins/modules/test_ome_template_info.py | # -*- coding: utf-8 -*-
#
# Dell EMC OpenManage Ansible Modules
# Version 2.1.3
# Copyright (C) 2020 Dell Inc. or its subsidiaries. All Rights Reserved.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
from __future__ import (absolute_import, division, print_function)
_... |
atsuoishimoto/kaaedit | kaa/filetype/html/htmlmode.py | <filename>kaa/filetype/html/htmlmode.py
from collections import namedtuple
from kaa.filetype.default import defaultmode
from gappedbuf import re as gre
from kaa.highlight import Tokenizer, Span, SingleToken, Token, SubSection, EndSection, SubTokenizer
from kaa.theme import Theme, Style
from kaa.filetype.javascript impo... |
Raikonen/main | src/test/java/seedu/savenus/model/food/UniqueFoodListTest.java | package seedu.savenus.model.food;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.savenus.logic.commands.CommandTestUtil.VALID_TAG_CHICKEN;
import static seedu.savenus... |
sammcgeown/vra-sdk-go | pkg/client/blueprint/list_blueprints_using_get1_parameters.go | <reponame>sammcgeown/vra-sdk-go
// Code generated by go-swagger; DO NOT EDIT.
package blueprint
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"net/http"
"time"
"github.com/go-openapi/errors"
"github.com/go... |
vietnux/CodeEditorMobile | examples/ru.iiec.cxxdroid/sources/com/google/android/gms/internal/ads/c10.java | package com.google.android.gms.internal.ads;
import com.google.android.gms.ads.internal.x0;
import java.util.ArrayList;
@k2
public final class c10 {
private final int a;
/* renamed from: b reason: collision with root package name */
private final int f3949b;
/* renamed from: c reason: collision wi... |
JaidenAshmore/java-dynamic-sqs-listener | spring/spring-core/src/main/java/com/jashmore/sqs/spring/util/IdentifierUtils.java | package com.jashmore.sqs.spring.util;
import static com.jashmore.sqs.util.string.StringUtils.toLowerHyphenCase;
import java.lang.reflect.Method;
import lombok.experimental.UtilityClass;
import org.springframework.util.StringUtils;
@UtilityClass
public class IdentifierUtils {
/**
* Builds an identifier from... |
kangsup/maybler0 | day2_A.py | <reponame>kangsup/maybler0<filename>day2_A.py<gh_stars>0
print()
print()
#Ex. 9-3_Concept2
class bread:
material='팥'
def result(self):
print("%s빵" %self.material)
class fish_bread(bread):
def fish_result(self):
print('%s맛 붕어빵' %self.material)
a_fish_bread = fish_bread()
a_fish_bread.fish_r... |
kiloline/ArrayList_Simulate_DB | src/Data/classes/Sequence.java | <reponame>kiloline/ArrayList_Simulate_DB<gh_stars>0
package Data.classes;
/**
*
* @author rkppo
*/
public class Sequence
{
Exception e;
String Sequence_name; //序列名
long Serial_number; //序列当前值
long Start_number; //序列最小值/开始值
long Abort_number; //序列最大值/截至值
boolean Recycle; //是否允许循环
in... |
freman/genesysapi | client/external_contacts/put_externalcontacts_organization_trustor_trustor_id_parameters.go | <reponame>freman/genesysapi
// Code generated by go-swagger; DO NOT EDIT.
package external_contacts
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"net/http"
"time"
"github.com/go-openapi/errors"
"github.co... |
diasbruno/mout | tests/spec/number/spec-MAX_SAFE_INTEGER.js | <filename>tests/spec/number/spec-MAX_SAFE_INTEGER.js<gh_stars>100-1000
define(['mout/number/MAX_SAFE_INTEGER'], function(MAX_SAFE_INTEGER){
describe('number/MAX_SAFE_INTEGER', function(){
it('should be equal (2 ^ 52) - 1', function(){
expect( MAX_SAFE_INTEGER ).toBe( Math.pow(2, 53) - 1 );
... |
06needhamt/intellij-community | plugins/sh/src/com/intellij/sh/shellcheck/intention/ShDisableInspectionIntention.java | <gh_stars>0
// 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.intellij.sh.shellcheck.intention;
import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer;
import com.intellij.codeInsight.intention.IntentionAction;
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.