repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
avanov/type
tests/unions/test_unions.py
import json from typing import NamedTuple, Union, Any, Dict, Optional, Mapping import pytest from inflection import camelize import typeit from ..paths import PETSTORE_SPEC from typeit import TypeConstructor, flags, Error from openapi_type import OpenAPI, OperationParameter, Reference, PathItem def test_type_with_...
xlhj/SpringBoot-Integration
springboot-security/src/main/java/com/xlhj/security/handler/SecurityAuthenticationFailureHandler.java
package com.xlhj.security.handler; import com.alibaba.fastjson.JSON; import com.xlhj.security.common.ResultCode; import com.xlhj.security.common.ResultData; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.authentication.AuthenticationFailureHandler; import org....
grgrzybek/camel
components/camel-gae/src/test/java/org/apache/camel/component/gae/http/GHttpTestUtils.java
<reponame>grgrzybek/camel<gh_stars>1-10 /** * 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,...
seleuco/MAME4droid_Native
src/emu/emucore.h
<filename>src/emu/emucore.h /*************************************************************************** emucore.h General core utilities and macros used throughout the emulator. Copyright <NAME> and the MAME Team. Visit http://mamedev.org for licensing and usage restrictions. **********************...
worbli/PortalFrontEnd
src/components/identity/wbi-camsnap.js
import {createMixin} from 'polymer-redux'; import {PolymerElement, html} from '@polymer/polymer/polymer-element.js'; import {translations} from '../../translations/languages.js'; import '../../css/shared-styles.js'; import '../../components/data/wbi-api.js'; import store from '../../global/store.js'; const ReduxMixin ...
tormath1/jclouds
apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/parse/ParseServerWithAddressExtensionsTest.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 may ...
onmyway133/Runtime-Headers
iOS/10.0.2/PrivateFrameworks/ChatKit.framework/CKAvatarPickerViewController.h
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/ChatKit.framework/ChatKit */ @interface CKAvatarPickerViewController : UIViewController <CKAvatarPickerLayoutDelegate, CNAvatarViewDelegate, UICollectionViewDataSource, UICollectionViewDelegate> { UIViewController * _avatarOrbPresentingVie...
liuhaozzu/linux
assembly-language/inline.c
<filename>assembly-language/inline.c #include <stdio.h> int main(void){ int a=10,b; __asm__("movl %1, %%eax\n\t" "movl %%eax, %0\n\t" :"=r"(b) /*output*/ :"r"(a) /*input*/ :"%eax" /*clobbered register*/ ); printf("Result : %d, %d\n",a,b); return 0; }
wkoszek/book-programming-ruby
src/ex0641.rb
# Sample code from Programing Ruby, page 371 class Test @cls_var = 123 class <<self attr_reader :cls_var end end Test.cls_var
loriab/qccddb
qcdb/tests/nwchem_tests/test_tce_uhf_uccsd.py
<reponame>loriab/qccddb<filename>qcdb/tests/nwchem_tests/test_tce_uhf_uccsd.py<gh_stars>1-10 # TCE UHF UCCSD import os import sys import pytest import qcdb from ..utils import * def tce_uccsd(return_value): hf = -74.656470840577 ccsd_tot = -74.695659393231864 ccsd_corl = -0.039188552654924 asser...
bocke/ucc
test/cases/type_propagation/truncation.c
<reponame>bocke/ucc<gh_stars>10-100 // RUN: %check %s -Wtruncation main() { char c = 0; short s = 0; int i = 0; long l = 0; long long ll = 0; float f = 0; double d = 0; c = 5; // CHECK: !/warn.*trunc/ c = s; // CHECK: warning: possible truncation converting short to char s = c; // CHECK: !/warn.*trunc/ s...
austenmadden/arelastic
test/arelastic/queries/regexp_test.rb
require 'helper' class Arelastic::Queries::ExistsTest < Minitest::Test def test_setting_value_as_regexp_object assert_raises TypeError do Arelastic::Queries::Regexp.new('color', /yellow(-green)?/) end end def test_string_value expected = { 'regexp' => { 'color' => 'blue(-green)?' } } asse...
brunolmfg/resteasy
testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/form/resource/NestedCollectionsFormTelephoneNumber.java
package org.jboss.resteasy.test.form.resource; import org.jboss.resteasy.annotations.Form; import jakarta.ws.rs.FormParam; public class NestedCollectionsFormTelephoneNumber { @Form(prefix = "country") public NestedCollectionsFormCountry country; @FormParam("number") public String number; }
freder/PageBotExamples
More/E00_Publications/TypeSpecimens/FitLinesBanner.py
<filename>More/E00_Publications/TypeSpecimens/FitLinesBanner.py # ----------------------------------------------------------------------------- # # P A G E B O T E X A M P L E S # # Copyright (c) 2017 <NAME> <https://github.com/thomgb> # www.pagebot.io # Licensed under MIT conditions # # Supporting...
osehra-ocp/ocp-ui
app/components/SearchBar/index.js
<reponame>osehra-ocp/ocp-ui<filename>app/components/SearchBar/index.js /** * * SearchBar * */ import { SEARCH_BY_DATE, SEARCH_BY_DUE_DATE, SEARCH_BY_ID, SEARCH_BY_NAME, SEARCH_PATIENT, SEARCH_PRACTITIONER, } from 'components/SearchBar/constants'; import { Formik } from 'formik'; import head from 'lodas...
MZQi/Fragrans
Fragrans/Fragrans/Fragrans/UIKit/UITableView+Fragrans.h
// // UITableView+Fragrans.h // Fragrans // // Created by qmz on 2019/3/11. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UITableView (Fragrans) /** create tableView by UITableViewStyle */ - (UITableView *)initWithStyle:(UITableViewStyle)style; /** create tableView by UITableViewStyle */...
donoghuc/puppet
lib/puppet/ssl/key.rb
require 'puppet/ssl/base' require 'puppet/indirector' # Manage private and public keys as a pair. class Puppet::SSL::Key < Puppet::SSL::Base wraps OpenSSL::PKey::RSA extend Puppet::Indirector indirects :key, :terminus_class => :file, :doc => <<DOC This indirection wraps an `OpenSSL::PKey::RSA object, repres...
shaneing/droplets
src/utils/keycodes.js
const keycodes = { ENTER: { key: 'Enter', code: 13, }, ESCAPE: { key: 'Escape', code: '27', }, }; module.exports = keycodes;
1550324080/yblog
src/main/java/com/boot/pojo/archive.java
<reponame>1550324080/yblog<filename>src/main/java/com/boot/pojo/archive.java package com.boot.pojo; import io.swagger.annotations.ApiModel; import java.io.Serializable; @ApiModel(value = "归档实体类",description = "封装归档的信息") public class archive implements Serializable { /** * 不建立对应的数据库,因为这个归档每次都是从t_article表中查询 ...
FeiyangJin/hclib
test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/Experimental/Bspline3DSetTrunc.cpp
///////////////////////////////////////////////////////////////// // (c) Copyright 2007- <NAME> ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Modified by <NAME> for qmcpack // National Center for Supercomputing Applications ...
StefanPenndorf/FluentLenium
fluentlenium-assertj/src/main/java/org/fluentlenium/assertj/custom/FluentListAssert.java
<reponame>StefanPenndorf/FluentLenium package org.fluentlenium.assertj.custom; import org.assertj.core.api.ListAssert; import org.fluentlenium.core.domain.FluentList; import org.fluentlenium.core.domain.FluentWebElement; import org.openqa.selenium.Dimension; import java.util.Arrays; import java.util.List; import java...
tqrg-bot/rubinius
spec/core/false/xor_spec.rb
require File.dirname(__FILE__) + '/../../spec_helper' describe "FalseClass#^" do def false_xor(other) false ^ other end it "returns false if other is nil or false, otherwise true" do false_xor(false).should == false false_xor(true).should == true false_xor(nil).should == false false_xor(""...
stori-es/stories
dashboard/src/main/java/org/consumersunion/stories/dashboard/client/application/collection/widget/SummaryWidgetView.java
package org.consumersunion.stories.dashboard.client.application.collection.widget; import org.consumersunion.stories.common.client.i18n.StoryTellerDashboardI18nLabels; import org.consumersunion.stories.dashboard.client.resource.Resources; import com.google.gwt.dom.client.DivElement; import com.google.gwt.i18n.client....
Monxun/PortainerPractice
project/apps/MS-transaction/core/src/main/java/com/aline/core/aws/sms/SMSService.java
package com.aline.core.aws.sms; import com.aline.core.aws.config.AWSSMSConfig; import com.aline.core.exception.UnprocessableException; import com.amazonaws.SdkClientException; import com.amazonaws.services.sns.AmazonSNS; import com.amazonaws.services.sns.model.MessageAttributeValue; import com.amazonaws.services.sns.m...
CheRut/chedmitry
chapter_006/src/main/java/ru/chedmitriy/test/bomberman/GamePlay.java
package ru.chedmitriy.test.bomberman; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * ru.chedmitriy.multithreading.threads.test.bomberman * * @author cheDmitry * @version 1.0 * @since 05.12.2017 * запускаем приложение * модели премещаются хааотично, * блокировки устан...
wilebeast/FireFox-OS
B2G/gecko/xpfe/appshell/src/nsChromeTreeOwner.cpp
/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // Local Includes #include "nsChro...
angriestalien/ghidra
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/ProjectAccessPanel.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...
Carreau/ADIOS2
source/adios2/toolkit/format/bpOperation/compress/BPBZIP2.tcc
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * BPBZIP2.tcc * * Created on: Jun 10, 2019 * Author: <NAME> <EMAIL> */ #ifndef ADIOS2_TOOLKIT_FORMAT_BPOPERATION_COMPRESS_BPBZIP2_TCC_ #define ADIOS2_TOOLKIT_FORMAT_BPOPERATION_COMPR...
Unknoob/buck
test/com/facebook/buck/util/AnsiEnvironmentCheckingTest.java
<reponame>Unknoob/buck /* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 * * Un...
yuexinok/lufax-jijin
src/main/java/com/lufax/jijin/event/handler/impl/YXLOPProductCancelHandler.java
<reponame>yuexinok/lufax-jijin package com.lufax.jijin.event.handler.impl; import java.util.List; import org.apache.commons.collections.CollectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.lufax.jijin.base.utils.Logger; import com...
joelturner79/real-time-income-information
project/AppDependencies.scala
import play.core.PlayVersion import play.sbt.PlayImport._ import sbt._ object AppDependencies { val compile = Seq( ws, "uk.gov.hmrc" %% "bootstrap-play-25" % "3.7.0", "uk.gov.hmrc" %% "domain" % "5.2.0", "com.eclipsesource" %% "play-json-schema-validator" % "0.8.9", "uk.gov.hmrc" %% "play-auditi...
Clevgs/RPIskel
node_modules/casperjs/tests/suites/tester/test-order.js
/*eslint strict:0*/ /*global CasperError, casper, console, phantom, require*/ var fs = require('fs'); casper.test.begin('Tester.sortFiles()', 1, function suite(test) { var testDirRoot = fs.pathJoin(phantom.casperPath, 'tests', 'testdir'); var files = test.findTestFiles(testDirRoot); var expected = [ ...
BeneStem/togglz
core/src/main/java/org/togglz/core/repository/jdbc/JDBCStateRepository.java
package org.togglz.core.repository.jdbc; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Map; import java.util.Map.Entry; import javax.sql.DataSource; import org.togglz.core.Feature; import org.togglz.core.logging.Log; import or...
Zealen408/Bike_registry
bikes/urls.py
<filename>bikes/urls.py from .views import * from django.urls import path app_name = 'bikes' urlpatterns = [ path('create', bike_create, name='create'), path('delete/<int:pk>', BikeDelete.as_view(), name='delete'), path('<str:username>', bike_list, name='list'), path('<str:username>/<str:se...
Releed/Construct-2
plugins/keyboard/edittime.js
function GetPluginSettings() { return { "name": "Keyboard", "id": "Keyboard", "version": "1.0", "description": "Retrieve input from the keyboard.", "author": "Scirra", "help url": "http://www.scirra.com/manual/113/keyboard", "category": "Input", "type": "object", // not in layout "rotata...
silesiacoin/eth2-docker-compose
.docker/Prysm/prysm-spike/beacon-chain/rpc/debug/server.go
<reponame>silesiacoin/eth2-docker-compose // Package debug defines a gRPC server implementation of a debugging service // which allows for helpful endpoints to debug a beacon node at runtime, this server is // gated behind the feature flag --enable-debug-rpc-endpoints. package debug import ( "context" "os" gethlog...
baba-a461/Hypnotic-Fabric-1.17
src/main/java/badgamesinc/hypnotic/mixin/BlockMixin.java
package badgamesinc.hypnotic.mixin; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import badgamesinc.hypnotic.event.events.EventCollide; impor...
xuing/openrasp
agent/php7/hook/openrasp_pdo.cc
/* * Copyright 2017-2021 Baidu Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
dbahat/conventions
Conventions/app/src/main/java/amai/org/conventions/events/adapters/FreeTimeSlotViewHolder.java
<reponame>dbahat/conventions package amai.org.conventions.events.adapters; import androidx.recyclerview.widget.RecyclerView; import android.view.View; import android.widget.TextView; import java.util.Date; import amai.org.conventions.R; import amai.org.conventions.ThemeAttributes; import amai.org.conventions.events....
memeyankm/training-data-analyst
quests/dataflow_python/4_SQL_Batch_Analytics/solution/batch_minute_traffic_SQL_pipeline.py
import argparse import time import logging import json import typing from datetime import datetime import apache_beam as beam from apache_beam.options.pipeline_options import GoogleCloudOptions from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.options.pipeline_options import StandardOpti...
comicChiii/minigame-adaptor
js-adaptor/src/Animation/Animator.js
<filename>js-adaptor/src/Animation/Animator.js Bridge.assembly("unity-script-converter", function ($asm, globals) { "use strict"; Bridge.define("MiniGameAdaptor.Animator", { inherits: [MiniGameAdaptor.Behaviour], statics: { fields: { hash_id:0, name_m...
cbidici/multimedia-service
src/main/java/com/cbidici/filepreviewer/service/impl/DefaultFileService.java
<filename>src/main/java/com/cbidici/filepreviewer/service/impl/DefaultFileService.java<gh_stars>0 package com.cbidici.filepreviewer.service.impl; import com.cbidici.filepreviewer.model.domain.FileDomain; import com.cbidici.filepreviewer.model.entity.FileEntity; import com.cbidici.filepreviewer.repo.FileRepo; import co...
prateekfxtd/ns_Startup
venv/Lib/site-packages/PyQt4/examples/webkit/formextractor/formextractor_rc2.py
# -*- coding: utf-8 -*- # Resource object code # # Created: Wed Mar 20 13:51:02 2013 # by: The Resource Compiler for PyQt (Qt v4.8.4) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x03\xfd\ \x3c\ \x68\x74\x6d\x6c\x3e\x3c\x62\x6f\x64\x79\x3e\x0a\x...
bbglab/openvariant
tests/test_annotation/test_builder.py
import math import os import re import unittest from types import MethodType from openvariant.annotation.builder import AnnotationTypesBuilders, Builder from openvariant.config.config_annotation import AnnotationTypes from openvariant.plugins.context import Context class TestBuilder(unittest.TestCase): def test...
shreyasvj25/turicreate
deps/src/cmake-3.9.3/Tests/PerConfig/pcShared.h
<gh_stars>1-10 #ifndef pcShared_h #define pcShared_h #ifdef _WIN32 #ifdef pcShared_EXPORTS #define PC_EXPORT __declspec(dllexport) #else #define PC_EXPORT __declspec(dllimport) #endif #else #define PC_EXPORT #endif PC_EXPORT const char* pcShared(void); #endif
xiaobin3/mavenEEWeb
EEWebCase/src/main/java/com/xiaobin/listener/domian/TestCustomerActiveServlet.java
package com.xiaobin.listener.domian; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; public class TestCustomerActiveServlet exte...
DavidKo3/mctorch
caffe2/core/nomnigraph/include/nomnigraph/Graph/Graph.h
<reponame>DavidKo3/mctorch<filename>caffe2/core/nomnigraph/include/nomnigraph/Graph/Graph.h //===- nomnigraph/Graph/Graph.h - Basic graph implementation ----*- C++ -*-===// // // TODO Licensing. // //===----------------------------------------------------------------------===// // // This file defines a basic graph API...
hardik00079/Enterprise-Resource-Planing-for-IT-Company
company/src/controler/LoginServlet.java
package controler; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servl...
ahmed-basyouni/Capstone-Project
ArkWallpaper/app/src/main/java/com/ark/android/arkwallpaper/ui/customviews/AnimatedSvgView.java
<reponame>ahmed-basyouni/Capstone-Project package com.ark.android.arkwallpaper.ui.customviews; /** * Created by ahmed-basyouni on 4/17/17. */ import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.DashPathEffect; ...
tylerwinkler/msg-game
src/Components/ComponentFactory.cpp
<filename>src/Components/ComponentFactory.cpp #include "Components/ComponentFactory.hpp" #include "Components/AnimationComponent.hpp" #include "Components/CollisionComponent.hpp" #include "Components/DialogComponent.hpp" #include "Components/HealthComponent.hpp" #include "Components/InteractionComponent.hpp" #include ...
RWTH-OS/MP-MPICH
src/routing/rdebug.c
/* $Id$ * (c) 2005 Lehrstuhl fuer Betriebssysteme, RWTH Aachen, Germany * author: <NAME> email: <EMAIL> */ char RDEBUG_dbgprefix[256]; /* prefix to display in front of message */ char RDEBUG_serr[512]; /* string for formatting debug/error messages */ int RDEBUG_verbose = 0; /* switch for turning on verbo...
UserStack/ustackweb
Godeps/_workspace/src/github.com/beego/social-auth/apps/dropbox.go
<reponame>UserStack/ustackweb<gh_stars>1-10 // Copyright 2014 beego 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 // // Unle...
SMCPartners/shape
src/main/java/com/smcpartners/shape/frameworks/producers/DBProducer.java
package com.smcpartners.shape.frameworks.producers; import com.smcpartners.shape.frameworks.producers.annotations.ShapeDatabase; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.Produces; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; /** * Resp...
hjkim-haga/TF-OD-API
official/vision/keras_cv/layers/deeplab.py
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
unlimitedggames/gdxjam-ugg
core/src/com/ugg/gdxjam/model/enums/VelocityDataType.java
package com.ugg.gdxjam.model.enums; import com.ugg.gdxjam.model.data.BulletData; import com.ugg.gdxjam.model.data.VelocityData; public enum VelocityDataType { BulletNormal (new VelocityData(1f, 1f, 50f, VelocityType.Linear)), BulletImpulse (new VelocityData(1f, 1f, 0.5f, VelocityType.Impulse)), SlowBullet (new Vel...
Xaxetrov/OSCAR
oscar/meta_action/harvest.py
<gh_stars>1-10 from oscar.constants import * from oscar.util.selection import * def harvest_mineral(obs, queued=True): any_mineral = find_position(obs, ALL_MINERAL_FIELD, player_relative=PLAYER_NEUTRAL, select_method='random', ...
henrytao-me/react-native-mdcore-showcase
src/navigators/screen.js
import React from 'react' import { PropTypes, PureComponent, Utils } from 'react-native-mdcore' import { addNavigationHelpers, NavigationActions, StackNavigator } from 'react-navigation' import { BottomNavigation, Buttons, Cards, Splash, TextFields } from '@containers' import { Injector } from '@middle...
lowks/vidscraper
vidscraper/utils/feedparser.py
import datetime import re from vidscraper.utils.mimetypes import is_accepted_filename, is_accepted_type def struct_time_to_datetime(struct_time): """ Returns a python datetime for the passed-in ``struct_time``. """ return datetime.datetime(*struct_time[:6]) def _is_accepted_enclosure(enclosure): ...
gridgentoo/ServiceFabricAzure
src/prod/src/Management/RepairManager/ProcessRepairTaskContextsAsyncOperation.cpp
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
osak/mikutterd
core/plugin/mentions/mentions.rb
<reponame>osak/mikutterd<gh_stars>0 # -*- coding: utf-8 -*- # mentions.rb # # Reply display/post support Plugin.create :mentions do tab :mentions, _("Replies") do set_icon Skin.get("reply.png") timeline :mentions end on_mention do |service, messages| timeline(:mentions) << messages end on_favorite ...
shivi98g/EpilNet-EpilepsyPredictor
Mobile App/Code/sources/com/google/android/gms/analytics/C0547ab.java
<filename>Mobile App/Code/sources/com/google/android/gms/analytics/C0547ab.java package com.google.android.gms.analytics; import android.text.TextUtils; /* renamed from: com.google.android.gms.analytics.ab */ public class C0547ab { /* renamed from: Bu */ private String f188Bu; /* renamed from: Bv */ ...
anoworl/dyngoose
dist/decorator/attribute-types/number.spec.js
<reponame>anoworl/dyngoose "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const setup_tests_spec_1 = require("../../setup-tests.spec"); describe('AttributeType/Number', () => { let record; beforeEach(() => { record = new setup_tests_spec_1.Te...
swang927/CS585-Shaokang-Wang
game.m.cpp
<reponame>swang927/CS585-Shaokang-Wang // game.m.cpp // Author: <NAME> #include <iostream> #include <time.h> #include "src/engine/memory/counting_allocator.h" #include "src/engine/memory/default_allocator.h" #include "src/engine/memory/iallocator.h" #include "src/engine/memory/stack_guard.h" #include "src/eng...
consulo/consulo-play
src/main/java/consulo/play1/template/base/editor/highlight/PlayBaseTemplateSyntaxHighlighter.java
/* * Copyright 2013-2016 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Grace-Shopper-PPE/Grace-Shopper
server/db/models/user.spec.js
/* global describe beforeEach it */ const {expect} = require('chai') const db = require('../db') const {User, Order} = require('./index') const seed = require('../../../script/seed') describe('User model', () => { beforeEach(() => { return db.sync({force: true}) }) describe('Validations', () => { it('f...
Yuzhen11/tangram
core/scheduler/checkpoint_loader.cpp
#include "core/scheduler/checkpoint_loader.hpp" namespace xyz { void CheckpointLoader::LoadCheckpoint(int cid, std::string url, std::function<void()> f) { LOG(INFO) << "[CheckpointLoader] loading checkpoint for collection: " << cid; auto& collection_view = elem_->collection_map->Get(cid); loadcheckpoint...
Discord-Wiz/dyno-bot-master
dyno-bot-master/mobile-api-master/src/core/Client.js
<reponame>Discord-Wiz/dyno-bot-master<gh_stars>1-10 const Eris = require('eris'); const Server = require('./Server'); const config = require('./config'); const logger = require('./logger'); const { Dyno } = require('./models'); let client; class Client { constructor() { process.on('uncaughtException', thi...
cugone/Abrams2018
Engine/Code/Engine/System/System.hpp
<reponame>cugone/Abrams2018<filename>Engine/Code/Engine/System/System.hpp<gh_stars>0 #pragma once #include "Engine/System/Cpu.hpp" #include "Engine/System/Ram.hpp" #include "Engine/System/OS.hpp" #include <ostream> namespace System { struct SystemDesc { System::Ram::RamDesc ram{}; System::Cpu::CpuDesc cpu{}...
SonicYeager/CppPractice
ProjectReversi/Reversi/Reversi.cpp
#include "Reversi.h" #include <iostream> #include "ReversiKI.h" #include "ReversiKIPro.h" namespace Reversi { char row[] = { 'A', 'B', 'C' ,'D' ,'E' ,'F' ,'G' ,'H' }; char column[] = { '1', '2', '3' ,'4' ,'5' ,'6' ,'7' ,'8' }; void ShowBoard(const Board board) { char representative[] = { '.', 'O', '...
Levi-Armstrong/ign-gui
.v0_unported/src/Vector3dWidget_TEST.cc
/* * Copyright (C) 2017 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
Zirias/stoneage
src/eearth.c
<gh_stars>1-10 #include "eearth.h" #include "board.h" #include "screen.h" static void m_dispose(THIS) { METHOD(EEarth); DELETE(EEarth, this); } CTOR(EEarth) { Entity e; BASECTOR(EEarth, Entity); e = CAST(this, Entity); e->dispose = &m_dispose; e->bg = BG_Earth; return this; } DTOR(E...
Juicestus/Computer-Science
CS-1-Labs/FileLab03.java
<gh_stars>1-10 import java.util.Scanner; import java.io.IOException; import java.io.PrintWriter; import java.io.File; import java.io.FileWriter; public class FileLab03 { public static void main(String[] args) throws IOException { Scanner fileReader = new Scanner(new File("../dat/03.dat")); fileReader.nextLine(...
un-knower/embrace-datacollector3.0.1
spark-processor-protolib/src/main/java/com/streamsets/pipeline/stage/processor/spark/SparkProcessorConfigBean.java
/* * Copyright 2017 StreamSets Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
ccatterina/casl
packages/casl-ability/spec/rulesToAST.spec.js
<filename>packages/casl-ability/spec/rulesToAST.spec.js import { defineAbility } from '../src' import { rulesToAST } from '../src/extra' describe('rulesToAST', () => { it('returns empty "and" `Condition` if there are no conditions in `Ability`', () => { const ability = defineAbility(can => can('read', 'Post')) ...
zaqwes8811/smart-vocabulary-cards
projects/shadow/kmap-builder-java-desk/src/core/evaluators/NotesBuilder.java
package pipeline.evaluators; import com.google.common.base.Joiner; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import common.Tools; import frozen.crosscuttings.AppConstants; import frozen.dal.accessors_text_file_storage.ImmutableIdxGetters; import frozen.jobs_processors.ProcessorTargets; im...
alonmm/VCSamples
VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Network information sample (Windows 8)/C++/ProfileLocalUsageData.xaml.cpp
<filename>VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Network information sample (Windows 8)/C++/ProfileLocalUsageData.xaml.cpp //********************************************************* // // Copyright (c) Microsoft. All rights reserved. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND...
antkmsft/azure-sdk-for-go
sdk/resourcemanager/visualstudio/armvisualstudio/zz_generated_response_types.go
//go:build go1.18 // +build go1.18 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
lastwhispers/code
distributed/gateway/service-order-load1/src/main/java/cn/lastwhisper/service/ServiceB1Application.java
<reponame>lastwhispers/code package cn.lastwhisper.service; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java....
frankjoshua/PocketBot
src/main/java/com/tesseractmobile/pocketbot/service/VoiceRecognitionState.java
<reponame>frankjoshua/PocketBot package com.tesseractmobile.pocketbot.service; /** * Created by josh on 8/25/2015. */ public enum VoiceRecognitionState { BEGINNING_OF_SPEECH, END_OF_SPEECH, ERROR, READY, STARTING_LISTENING, READY_FOR_SPEECH }
egyware/fp4g
Apollo/src/com/apollo/messages/BeginContactMessage.java
<gh_stars>0 package com.apollo.messages; import com.apollo.Entity; import com.apollo.Message; import com.badlogic.gdx.physics.box2d.Contact; import com.badlogic.gdx.physics.box2d.Fixture; public class BeginContactMessage extends Message { public Entity other; public Fixture ownFixture; public Fixture otherFixture...
aakbar5/handy-c
advanced_linux_programming/chapter08/write_journal_entry.c
// Listing 8.3 (write_journal_entry.c) Write and Sync a Journal Entry #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> // // App entry point // int main() { const char* file_name = "journal.log"; int f...
olavloite/spanner-jdbc
src/main/java/nl/topicus/jdbc/statement/AbstractTablePartWorker.java
<reponame>olavloite/spanner-jdbc package nl.topicus.jdbc.statement; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.util.List; import java.util.concurrent.Callable; import com.google.cloud.sp...
huanglei579/eoscannon-online-tool
app/components/Header/styles.js
<filename>app/components/Header/styles.js import styled from 'styled-components' const BodyBox = styled.article` background: #262626; color: #eee; .ant-layout{ background: none; } .ant-btn{ color: #fff; } ` const ConBox = styled.div` box-sizing: border-box; position: relative; width: 100%; ...
skounis/ionic-stage
stage/e22/scripts/products/products.controller.js
<filename>stage/e22/scripts/products/products.controller.js (function() { 'use strict'; angular .module('catalogue.products') .filter('stripdecimals', function(){ return function(input){ return input.replace('.00', ''); } }) .controller('ProductsController', ProductsController); ProductsControlle...
TheidenHD/CompatSkills
src/main/java/codersafterdark/compatskills/common/compats/gamestages/gamestagelocks/GameStageLockTweaker.java
package codersafterdark.compatskills.common.compats.gamestages.gamestagelocks; import codersafterdark.compatskills.CompatSkills; import codersafterdark.compatskills.common.compats.gamestages.GameStageCompatHandler; import codersafterdark.compatskills.utils.CheckMethods; import codersafterdark.compatskills.utils.Utils;...
bingchunjin/1806_SDK
linux-4.14.90-dev/linux-4.14.90/drivers/clk/renesas/clk-r8a7778.c
/* * r8a7778 Core CPG Clocks * * Copyright (C) 2014 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. */ #include <linux/clk-provider.h> #include <linu...
sktocha/ab_admin
lib/generators/ab_admin/install/templates/helpers/admin/structures_helper.rb
<gh_stars>0 module Admin::StructuresHelper def edit_structure_record_path(structure) case structure.structure_type when StructureType.static_page if structure.static_page edit_admin_structure_static_page_path(structure_id: structure.id) else new_admin_structure_static_pa...
ctimbai/coding-demo
C/dpdk/cache_opt/c.c
<gh_stars>0 #include <stdio.h> #include <stdlib.h> #include "common.h" #define N 36*1024*1024 struct DATA { char a; int b; char c; }; int main(void) { int i; struct DATA* p = (struct DATA*) malloc(sizeof(struct DATA) * N); uint64_t start, stop; start = rte_rdtsc(); for(i=0; i<N; i++)...
DxChainNetwork/godx
common/bigint_test.go
<reponame>DxChainNetwork/godx // Copyright 2019 DxChain, All rights reserved. // Use of this source code is governed by an Apache // License 2.0 that can be found in the LICENSE file. package common import ( "math" "testing" ) func TestRandomBigIntRange(t *testing.T) { testingRange := []BigInt{ BigInt0, NewBi...
josebright/tulip_foundation_website
resources/js/react/Components/CountDown/EventTimer.js
<reponame>josebright/tulip_foundation_website import React, { Fragment, useState, useEffect } from 'react'; export default function EventTimer({ events }) { const [DayTime, setDay] = useState('00'); const [Hrs, setHrs] = useState('00'); const [Min, setMin] = useState('00'); const [Sec, setSec] = useState('00')...
LogSentinel/sentineldb-java-client
src/main/java/com/logsentinel/sentineldb/model/ChangePasswordRequest.java
<reponame>LogSentinel/sentineldb-java-client /* * SentinelDB RESTful API * Read more at https://docs.sentineldb.io * * OpenAPI spec version: 1 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. ...
solnic/rom-relation
spec/unit/rom/relation/restrict_spec.rb
# encoding: utf-8 require 'spec_helper' describe Relation, '#restrict' do include_context 'Relation' share_examples_for 'restricted relation' do specify do should eq([jane]) end end context 'with condition hash' do subject { relation.restrict(name: 'Jane').to_a } it_behaves_like 'rest...
UnknownStudio/KnownDomain
graphics/src/main/java/engine/graphics/texture/ColorFormat.java
package engine.graphics.texture; public enum ColorFormat { RGBA8, BGRA8, RGB8, BGR8, RG8, RED8, RGB10_A2, R11F_G11F_B10F, RGBA32F, RGBA16F, RGB32F, RGB16F, RED32F, RED16F, RGBA32UI, RED32UI, RED16UI, RED8UI, DEPTH32, DEPTH24, DEPTH24_S...
jamesjmurtagh/direktiv
scripts/testing/tests/_Isolates/isolate-validate/main.go
<reponame>jamesjmurtagh/direktiv /* Validate and sets plain varaibles */ package main import ( "bytes" "os" "encoding/gob" "encoding/json" "fmt" "io/ioutil" ) const code = "com.%s.error" type isolateInput struct { Validate []file `json:"validate"` Setter []variable `json:"set"` } type file struct {...
iduart/smefys
src/pages/verify-account.js
import React, { useState } from "react" import { Auth } from 'aws-amplify'; import queryString from 'query-string'; import { Link, navigate } from 'gatsby' import styled from "styled-components" import { Logo } from "../components/Icons" import { Input } from "../components/Input/Input" import { PrimaryButton } from "....
LittleShrimp1987/frostmourne
frostmourne-monitor/src/main/java/com/autohome/frostmourne/monitor/controller/AdminController.java
<reponame>LittleShrimp1987/frostmourne<filename>frostmourne-monitor/src/main/java/com/autohome/frostmourne/monitor/controller/AdminController.java<gh_stars>100-1000 package com.autohome.frostmourne.monitor.controller; import javax.annotation.Resource; import com.autohome.frostmourne.core.contract.PagerContract; impor...
fishKingYu/homeAndSchool
jiaxiaohuiDemo/jiaxiaohuiDemo/Class/Module/Home/JHHomeViewController.h
// // JHHomeViewController.h // jiaxiaohuiDemo // // Created by 陈钰全 on 16/6/15. // Copyright © 2016年 jiaXiaoHui. All rights reserved. // #import <UIKit/UIKit.h> @interface JHHomeViewController : UIViewController @end
ealuna/pedimap
public/assets/js/chart1.js
/** * Created by <NAME> on 03/10/17. */ var ctx = document.getElementById('myChart').getContext('2d'); function GenerarReporte() { $.ajax({ type: 'POST', url: '/terranorte/app/reporte/indicador1', contentType: "application/json", data: JSON.stringify({fechainicial: init, fechafi...
AlberLC/qt-app
utilities/searchs.py
from difflib import SequenceMatcher from utilities.various import operators, normalize, split_operator_filter, to_date, to_number, NumericFilter, DateFilter def match_ratio(string_a, string_b): return SequenceMatcher(None, string_a.lower(), string_b.lower()).ratio() def match_all_words(line_words, item_words):...
dhis2/maps-app
src/components/edit/shared/Labels.js
<gh_stars>10-100 import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import i18n from '@dhis2/d2-i18n'; import cx from 'classnames'; import { Checkbox, FontStyle } from '../../core'; import styles from '../styles/LayerDialog.module.css'; import { setLabels, set...