repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
leafiy/miniblog
website/vue.config.js
const path = require('path') const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin const HTMLWebpackPlugin = require('html-webpack-plugin') const webpack = require('webpack') module.exports = { devServer: { open: false, port: 8040, https: false, hotOnly: false, bonjo...
voxel-web/samson
test/controllers/versions_controller_test.rb
<gh_stars>1-10 # frozen_string_literal: true require_relative '../test_helper' SingleCov.covered! describe VersionsController do def create_version(user) PaperTrail.with_whodunnit_user(user) do PaperTrail.with_logging do stage.update_attribute(:name, 'Fooo') end end end let(:stage) ...
Amin-MAG/CodART
benchmark_projects/ganttproject/ganttproject/src/main/java/net/sourceforge/ganttproject/action/task/IndentTargetFunctionFactory.java
/* Copyright 2012 GanttProject Team This file is part of GanttProject, an opensource project management tool. GanttProject 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, either version 3 of the License, or (a...
Kamahl19/dokina
src/index.js
<gh_stars>0 import { AppRegistry, Platform } from 'react-native'; import KeyboardManager from 'react-native-keyboard-manager'; import Root from './app/containers/Root'; AppRegistry.registerComponent('dokina', () => Root); if (Platform.OS === 'ios') { KeyboardManager.setEnable(true); KeyboardManager.setEnableAutoT...
bryan-brancotte/rank-aggregation-with-ties
sources/rnt/mediane/algorithms/lri/ExactAlgorithm_preprocessing.py
from mediane.algorithms.lri.CondorcetPartitiong import CondorcetPartitioning from mediane.algorithms.lri.ExactAlgorithm_bis import ExactAlgorithmBis class ExactAlgorithmPreprocessing(CondorcetPartitioning): def __init__(self): super().__init__(ExactAlgorithmBis()) def get_full_name(self): ret...
coolgeeck/delwar1
azure_functions_devops_build/service_endpoint/github_service_endpoint_manager.py
import vsts.service_endpoint.v4_1.models as models from vsts.exceptions import VstsServiceError from ..base.base_manager import BaseManager from .service_endpoint_utils import sanitize_github_repository_fullname class GithubServiceEndpointManager(BaseManager): def __init__(self, organization_name, project_name, cr...
wanton-wind/M-compiler
idea/src/Compiler2018/Parser/MParser.java
// Generated from D:/Coding/M-compiler/idea/src/Compiler2018\M.g4 by ANTLR 4.7 package Compiler2018.Parser; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.atn.ATN; import org.antlr.v4.runtime.atn.ATNDeserializer; import org.antlr.v4.runtime.atn.ParserATNSimulator; import org.antlr.v4.runtime.atn.Prediction...
guanlichang/novel
src/main/java/org/yidu/novel/filter/GzipFilter.java
<gh_stars>0 package org.yidu.novel.filter; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServl...
LarryHsiao/Clotho
src/main/java/com/larryhsiao/clotho/date/DateEndCalendar.java
<reponame>LarryHsiao/Clotho package com.larryhsiao.clotho.date; import com.larryhsiao.clotho.Source; import java.util.Calendar; /** * Source to generate Calendar which time is 23:59 of the given timestamp. */ public class DateEndCalendar implements Source<Calendar> { private final long millis; private fina...
sw402f19/Ardu3K
src/exception/factory/SemanticException.java
package exception.factory; public abstract class SemanticException extends RuntimeException { public SemanticException() { } public SemanticException(String message) { super(message); } public SemanticException(Throwable cause) { super(cause.getMessage(), cause); } }
jimmyblylee/XXMPS
src/apms-serv/src/main/java/com/founder/bj/apms/auxpolice/entity/AuxWork.java
/* *************************************************************************** * EZ.JWAF/EZ.JCWAP: Easy series Production. * Including JWAF(Java-based Web Application Framework) * and JCWAP(Java-based Customized Web Application Platform). * Copyright (C) 2016-2017 the original author or authors. * * This library ...
ravikant7890/GoFFish_Giraph
giraph-block-app/src/main/java/org/apache/giraph/block_app/framework/piece/DefaultParentPiece.java
<reponame>ravikant7890/GoFFish_Giraph<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 ...
svendcsvendsen/judoassistant
src/ui/widgets/judoassistant_preferences_dialog.cpp
<reponame>svendcsvendsen/judoassistant<gh_stars>1-10 #include <QDialogButtonBox> #include <QVBoxLayout> #include <QHBoxLayout> #include <QStackedWidget> #include <QListWidget> #include <QTableView> #include "ui/widgets/judoassistant_preferences_dialog.hpp" #include "ui/widgets/web_connection_preferences_widget.hpp" #i...
camshaft/postcss-runtime
src/compiler/process/color.js
import parser from 'postcss-values-parser'; import Color from 'color'; const colorMod = process.env.POSTCSS_RUNTIME_PATH || 'postcss-runtime'; /** * color: color(red shade(20%)); */ export default function plugin(root, compilation) { root.walkDecls((rule) => { const value = rule.value; if (!value) return...
bangchuanliu/algorithm-examples
leetcode/src/main/java/common/QuickSort.java
package common; public class QuickSort { public void sort(int[] A) { if (A == null || A.length == 0) { return; } qSort(A, 0, A.length - 1); } public int partition(int[] A, int low, int high) { int r = A[high]; int i = low - 1; int j = low; while (j < high) { if (A[j] <= r) { i++; swap(A...
maddy-torqata/gokul-organics1
node_modules/@fortawesome/pro-solid-svg-icons/faMistletoe.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var prefix = 'fas'; var iconName = 'mistletoe'; var width = 576; var height = 512; var ligatures = []; var unicode = 'f7b4'; var svgPathData = 'M373.3 117.3c23.6 0 42.7-19.1 42.7-42.7S396.9 32 373.3 32s-42.7 19.1-42.7 42.7 19.2 42.6 42.7 42.6z...
gatordevin/BoofCV
main/boofcv-recognition/src/main/java/boofcv/deepboof/BaseImageClassifier.java
/* * Copyright (c) 2020, <NAME>. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.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...
darkma773r/commons-numbers
commons-numbers-gamma/src/test/java/org/apache/commons/numbers/gamma/LogBetaTest.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 ...
pmarkiewka/scm-manager
scm-core/src/main/java/sonia/scm/net/HttpConnectionOptions.java
/* * MIT License * * Copyright (c) 2020-present Cloudogu GmbH and Contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the r...
jforge/vaadin
test/dependency-rewrite-addon/src/main/java/com/vaadin/test/dependencyrewriteaddon/RewriteJQueryFilter.java
package com.vaadin.test.dependencyrewriteaddon; import java.util.ArrayList; import java.util.List; import java.util.Locale; import com.vaadin.server.DependencyFilter; import com.vaadin.server.ServiceInitEvent; import com.vaadin.server.VaadinServiceInitListener; import com.vaadin.ui.Dependency; import com.vaadin.ui.De...
AlexRogalskiy/DevArtifacts
master/Currency-Converter-master/Currency-Converter-master/js/translation.js
<filename>master/Currency-Converter-master/Currency-Converter-master/js/translation.js var Translation = { 'it': { 'app-description': 'Currency Converter è una semplice applicazione che ti aiuta a convertire da una valuta ad un\'altra. È anche possibile aggiornare i tassi di cambio ogni volta che si desidera c...
swingflip/C64_mini_VICE
src/arch/msdos/cbmcharsets.c
/* * cbmcharsets.c - CBM lookalike character sets. * * Written by * <NAME> / STA <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Pub...
trolleksii/kafka-ui
kafka-ui-e2e-checks/src/test/java/com/provectus/kafka/ui/pages/Pages.java
<gh_stars>1000+ package com.provectus.kafka.ui.pages; public class Pages { public static Pages INSTANCE = new Pages(); public MainPage mainPage = new MainPage(); public TopicsList topicsList = new TopicsList(); public TopicView topicView = new TopicView(); public ConnectorsList connectorsList = n...
vishal230400/Coding-Solutions
src/com/vishal/codeforces/Q339/Q339A/Solution339A.java
package com.vishal.codeforces.Q339.Q339A; import java.util.*; import static java.lang.String.valueOf; public class Solution339A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); char[]a=str.replace("+","").toCharArray(); ...
CogRob/TritonBot
cogrob_ros/speak_text_logging/src/speak_text_logger_node.cc
<gh_stars>1-10 // Copyright (c) 2018, The Regents of the University of California // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copy...
akarnokd/akarnokd-misc
src/test/java/hu/akarnokd/rxjava2/TestMockitoCalls.java
package hu.akarnokd.rxjava2; import static org.mockito.Mockito.*; import java.util.List; import org.junit.Test; import io.reactivex.subjects.CompletableSubject; public class TestMockitoCalls { @Test public void test() { @SuppressWarnings("unchecked") List<Integer> l...
g7401/pigeon
pigeon-gps/src/main/java/io/g740/pigeon/biz/object/dto/dictionary/UpdateDictionaryBuildProcessDefDto.java
package io.g740.pigeon.biz.object.dto.dictionary; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import io.g740.pigeon.biz.object.dto.general.SqlBuildStrategyContentDto; import io.g740.pigeon.biz.object.dto.serialization.DictionaryBuildStrategyTypeEnumDeserializer; import io.g740.pigeon.biz.object.d...
zzzhr1990/common-grpc
go/services/tickets/tickets/tickets.pb.go
<filename>go/services/tickets/tickets/tickets.pb.go<gh_stars>0 // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.15.5 // source: tickets/tickets.proto package tickets import ( common "github.com/zzzhr1990/common-grpc/go/common" protoreflect "google.golang.o...
jamesmunns/nRF5-sdk
examples/ble_central_and_peripheral/experimental/ble_app_att_mtu_throughput/main.c
<reponame>jamesmunns/nRF5-sdk /** * Copyright (c) 2016 - 2017, Nordic Semiconductor ASA * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code m...
opplatek/deSALT
src/deBGA-master/seed_ali_core.c
#include <time.h> #include <ctype.h> #include <inttypes.h> #include <omp.h> #include <math.h> //#include "global.h" #include "binarys_qsort.h" #include "LandauVishkin.h" #include "seed_ali_p.h" #include "bit_operation.h" #include "ksw.h" #ifdef PTHREAD_USE #include <pthread.h> #ifdef R_W_LOCK static void *worker(...
wokalski/Distraction-Free-Xcode-plugin
Archived/v1/WCDistractionFreeXcodePlugin/Headers/Frameworks/IDEKit/IDETemplateSection.h
<gh_stars>10-100 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "NSObject.h" #import "IDEKeyDrivenNavigableItemRepresentedObject.h" @class DVTDocumentLocation, DVTFileDataType, DVTPlatform, IDEFileReference, NSArray, NSImage...
openharmony-sig-ci/appexecfwk_standard
services/bundlemgr/include/ipc/installd_interface.h
<filename>services/bundlemgr/include/ipc/installd_interface.h<gh_stars>1-10 /* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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://...
chrisuehlinger/portfolio-gatsby
src/components/homepage/Talks.js
import React from 'react' import { StaticQuery, graphql } from "gatsby" import HomepageWaypoint from './parts/HomepageWaypoint'; import ShowCard from './parts/ShowCard'; import './talks.scss' const Talks = () => ( <HomepageWaypoint zone="TALKS"> <div className="talks-page" id="talks"> <h2>Talks</h2> ...
shantyps/openosrs-dev
runelite-api/src/main/java/net/runelite/api/events/NameChangeEvent.java
<gh_stars>1-10 package net.runelite.api.events; import lombok.Data; import net.runelite.api.Actor; /** * @author Kris | 07/01/2022 */ @Data public class NameChangeEvent { private final Actor actor; private final String oldName; private final String newName; }
askmohanty/metasfresh
misc/services/mobile-webui/mobile-webui-frontend/src/reducers/wfProcesses_status/confirmation.js
<gh_stars>0 import * as types from '../../constants/UserConfirmationTypes'; import * as CompleteStatus from '../../constants/CompleteStatus'; import { updateUserEditable } from './utils'; import { registerHandler } from './activityStateHandlers'; const COMPONENT_TYPE = 'common/confirmButton'; export const activityUs...
npillmayer/gotype
engine/khipu/linebreak/firstfit/firstfit_test.go
<reponame>npillmayer/gotype<gh_stars>1-10 package firstfit import ( "bytes" "io" "io/ioutil" "strings" "testing" "github.com/npillmayer/gotype/core/config/gtrace" "github.com/npillmayer/gotype/core/config/tracing" "github.com/npillmayer/gotype/core/config/tracing/gotestingadapter" "github.com/npillmayer/goty...
lishangwu/nodejs-mmall
src/dao/ShippingDao.js
<filename>src/dao/ShippingDao.js import { Const } from '../common' import { sequelize, Sequelize } from '../db/db' const Op = Sequelize.Op const model = require('../db/model') const Shipping = model[Const.Entity.Shipping] class ShippingDao { async insert(shipping) { return await Shipping.create(shipping)...
RobottDog/dcos-chronos
src/js/components/ConfigurationMapLabel.js
import React from "react"; const ConfigurationMapLabel = props => { return ( <div className="configuration-map-label"> {props.children} </div> ); }; module.exports = ConfigurationMapLabel;
NicholsTyler/cse_335
AquaLand/AquaLand/AquaLand/Fish.cpp
<gh_stars>0 /** * \file Fish.cpp * * \author <NAME> */ #include "pch.h" #include "Fish.h" #include "Aquarium.h" /// Maximum speed in the X direction in /// in pixels per second const double MaxSpeedX = 50; /// Maximum speed in the Y direction in /// in pixels per second const double MaxSpeedY = 50; /** * Const...
gedorinku/prolab-accounts
infra/record/entries.go
<filename>infra/record/entries.go // Code generated by SQLBoiler (https://github.com/volatiletech/sqlboiler). DO NOT EDIT. // This file is meant to be re-generated in place and/or deleted at any time. package record import ( "context" "database/sql" "fmt" "reflect" "strconv" "strings" "sync" "time" "github....
sdmg15/GoodDAPP
src/lib/share/__tests__/generateReceiveShareObject.js
<reponame>sdmg15/GoodDAPP import { generateReceiveShareObject, generateShareLink } from '../' const isReceiveLink = generateShareLink('receive', { amount: '123' }) describe('generateReceiveShareObject', () => { it(`should return an object for receipt with code, amount, to and from`, () => { // Given const ti...
fieldenms/
platform-pojo-bl/src/main/java/ua/com/fielden/platform/entity/annotation/CompanionObject.java
package ua.com.fielden.platform.entity.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import ua.com.fielden.platform.dao.IEntityDao; import ua.com.fielden.platform.entity.AbstractEntity; /** ...
Andreynnt/2018_1_Drive
public/js/services/user-service.js
import {httpModule} from '../modules/http'; export class UserService { checkAuth() { this.loadMe((err, me) => { if (err) { console.dir(me); console.log('Вы не авторизованы'); return; } console.log('me is', me); ...
faisalsanto007/Codes
data final practice/selection sort.cpp
#include <stdio.h> int min(int a[],int k,int n) { int i=k,l,m; for(i=i+1 ;i<n;i++) { if(a[k]>a[i]) { k=i; } } return k; } int main() { int i,j,k,l,a[1000],n; printf("Enter number of element: "); scanf("%d",&n); printf("Enter element: "); fo...
andytubeee/jamhacks.ca
2021/src/data/Navbar/Privacy.js
<filename>2021/src/data/Navbar/Privacy.js<gh_stars>0 const PrivacyNavData = [ { label: 'Definitions', id: 'definitions-section', enabled: true, }, { label: 'Data', id: 'data-section', enabled: true, }, { label: 'Privacy', id: 'privacy-section', enabled: true, }, { l...
ceekay1991/AliPayForDebug
AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/GO2OStackedGridHeaderProtocol-Protocol.h
<filename>AliPayForDebug/AliPayForDebug/AlipayWallet_Headers/GO2OStackedGridHeaderProtocol-Protocol.h<gh_stars>1-10 // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import "NSObject-Protoco...
wrldwzrd89/older-java-games
MasterMaze/src/com/puttysoftware/mastermaze/battle/BattleTarget.java
<filename>MasterMaze/src/com/puttysoftware/mastermaze/battle/BattleTarget.java /* MasterMaze: An RPG Copyright (C) 2011-2012 <NAME> Any questions should be directed to the author via email at: <EMAIL> */ package com.puttysoftware.mastermaze.battle; public enum BattleTarget { SELF, ONE_ALLY, ONE_ENEMY, ALL_ALLIE...
jayvdb/django-formidable
docs/tests/test_forms_field_validations.py
from copy import deepcopy from . import validator, _load_fixture def test_field_validations(): form = _load_fixture('0017_fields_validations.json') errors = sorted(validator.iter_errors(form), key=lambda e: e.path) assert len(errors) == 0 # An empty list should still validate form['fields'][0]['v...
yogjiao/midou
routers/Show/Show.js
<gh_stars>0 import React from 'react' import PageSpin from 'PageSpin/PageSpin.js' import ScrollingSpin from 'ScrollingSpin/ScrollingSpin.js' import Confirm from 'Confirm/Confirm.js' import Prompt from 'Prompt/Prompt.js' import { FETCH_STATUS_NO_MORE_PRODUCT, FETCH_SUCCESS, BASE_STATIC_DIR, BASE_PAGE_DIR, FETC...
farukranabappy89/google-ads-java
google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/enums/RecommendationTypeProto.java
<filename>google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/enums/RecommendationTypeProto.java // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v9/enums/recommendation_type.proto package com.google.ads.googleads.v9.enums; public final class RecommendationTypeProt...
satoshun/truth-android
truth-android/src/main/java/com/github/satoshun/truth/android/api/animation/AnimatorSetSubject.java
<filename>truth-android/src/main/java/com/github/satoshun/truth/android/api/animation/AnimatorSetSubject.java package com.github.satoshun.truth.android.api.animation; import android.animation.AnimatorSet; import android.annotation.TargetApi; import com.google.common.truth.FailureStrategy; import com.google.common.tru...
shashwatsingh/addons-server
src/olympia/translations/__init__.py
from django.conf import settings from django.utils.translation import trans_real from jinja2.filters import do_dictsort LOCALES = [(trans_real.to_locale(k).replace('_', '-'), v) for k, v in do_dictsort(settings.LANGUAGES)]
BennyJane/java-demo
java-base-demo/src/main/java/org/example/com/java8Demo/DateDemo.java
<filename>java-base-demo/src/main/java/org/example/com/java8Demo/DateDemo.java package org.example.com.java8Demo; import java.time.*; public class DateDemo { public static void main(String[] args) { methodTest(); } static void methodTest() { // Clock // 替代了 System.currentTimeMilli...
silvioedu/HackerRank-Python-Practice
basicDataTypes/FindTheRunnerUpScore.py
<reponame>silvioedu/HackerRank-Python-Practice if __name__ == '__main__': n = int(input()) arr = map(int, input().split()) lis = list(arr) z = max(lis) while max(lis) == z: lis.remove(max(lis)) print(max(lis))
gubaojian/weexuikit
RenderCore/render/platform/SharedBuffer.cpp
/* * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of s...
PeterDinda/palacios
misc/network_servers/vtl/debug.cc
#include "debug.h" #include <time.h> #include <stdio.h> #include <stdarg.h> static FILE * logfile = NULL; static int debug_on = 0; int vtl_debug_init(string logfilename, int debug_enable) { debug_on = debug_enable; logfile = fopen(logfilename.c_str(), "w+"); return 0; } void vtl_debug(const char * fmt...
popematt/ion-java
test/com/amazon/ion/impl/UnifiedInputStreamXTest.java
<reponame>popematt/ion-java /* * Copyright 2007-2019 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://www.apache.org/...
tangya3158613488/Java
exercise20_1_4/Example6.java
package exercise20_1_4; public class Example6 { public static void main(String args[]){ int elements[]={1,2,3,4}; int hold[]={10,9,8,7,6,5,4,3,2,1}; System.arraycopy(elements, 0, hold, 0, elements.length); System.out.println("长度为:"+hold.length); for(int i=0; i < hold.length; i++) System.out.print(" "+hol...
restapicoding/VMware-SDK
samples/vsphere/common/vapiconnect.py
""" * ******************************************************* * Copyright (c) VMware, Inc. 2016. All Rights Reserved. * SPDX-License-Identifier: MIT * ******************************************************* * * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, WHETHER O...
pauxy-qmc/pauxy
pauxy/thermal_propagation/continuous.py
import cmath import math import numpy import scipy.sparse.linalg import sys import time from pauxy.estimators.thermal import one_rdm_from_G, inverse_greens_function_qr from pauxy.propagation.operations import kinetic_real from pauxy.thermal_propagation.planewave import PlaneWave from pauxy.thermal_propagation.generic i...
nowkoai/test
ee/spec/features/groups/analytics/ci_cd_analytics_spec.rb
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'Group CI/CD Analytics', :js do let_it_be(:user) { create(:user) } let_it_be_with_refind(:group) { create(:group) } let_it_be(:subgroup) { create(:group, parent: group ) } let_it_be(:project_1) { create(:project, group: group) } let_it_be(:p...
Dazzed/dental-front
app/containers/AdminManagePage/actions.js
<gh_stars>0 import { CHANGE_PAGE_TITLE, FETCH_ACCOUNT_MANAGERS, SELECT_MANAGER, TOGGLE_ADDING_MANAGER, ADD_MANAGER, TOGGLE_EDITING_MANAGER, EDIT_MANAGER, FETCH_SERVICES_REQUEST, ADD_SERVICE_REQUEST, DELETE_SERVICE_REQUEST, TOGGLE_ADD_SERVICE, } from './constants'; export function changePageTitle...
photo/mobile-android
app/src/com/trovebox/android/app/ImageFragment.java
<filename>app/src/com/trovebox/android/app/ImageFragment.java package com.trovebox.android.app; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; i...
GnaneshKunal/unix-programming
14_7.c
<filename>14_7.c #include <stdio.h> #include <unistd.h> #include <signal.h> #include <fcntl.h> #include <stdlib.h> int lock_reg(int fd, int cmd, int type, off_t offset, int whence, off_t len); #define FILE_MODE (S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) #define writew_lock(fd, offset, whence, len) lock_reg(fd, F_SETLK, F_WRLC...
karthikswarna/cpg
src/main/java/de/fraunhofer/aisec/cpg/graph/statements/BreakStatement.java
<gh_stars>1-10 /* * Copyright (c) 2020, Fraunhofer AISEC. 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 ...
hangar18rip/backtotechtesting
go/internal/services/loadbalancer/backend_address_pool_address_resource_test.go
package loadbalancer_test import ( "context" "fmt" "testing" "github.com/Azure/azure-sdk-for-go/services/network/mgmt/2021-05-01/network" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terra...
kamenitxan/Jakon
src/test/scala/core/pagelet/TestJsonPagelet.scala
package core.pagelet import java.sql.Connection import core.pagelet.entity.TestJsonPageletData import cz.kamenitxan.jakon.core.dynamic.entity.JsonFailResponse import cz.kamenitxan.jakon.core.dynamic.{AbstractJsonPagelet, Get, JsonPagelet, Post} import spark.{Request, Response} /** * Created by TPa on 13.04.2020. ...
HeyLey/catboost
library/netliba/v12/local_ip_params.cpp
<gh_stars>1000+ #include "stdafx.h" #include "local_ip_params.h" namespace NNetliba_v12 { static ui32 GetIPv6SuffixCrc(const sockaddr_in6& addr) { TIPv6AddrUnion a; a.Addr = addr.sin6_addr; const ui64 suffix = a.Addr64[1]; return (suffix & 0xffffffffll) + (suffix >> 32); } ...
hjki456789/reportBuild
src/main/java/com/jump/utils/property/EnBizEnumProperty.java
package com.jump.utils.property; import com.google.common.collect.Maps; import java.util.List; import java.util.Map; /** * @author Jump * @date 2020/3/9 14:09 */ public class EnBizEnumProperty extends AbstractBizEnumProperty { private static Map<String,Map> propertyMap = Maps.newHashMap(); private static ...
gavar/google-front-end-web-developer
frontend-apps/wittr/public/js/settings/index.js
<filename>frontend-apps/wittr/public/js/settings/index.js import TestController from "./TestController"; const settingsForm = document.querySelector(".settings-form"); settingsForm.addEventListener("change", () => { fetch(settingsForm.action, { method: settingsForm.method, body: new FormData(setti...
xiaoliable/EssayClassifier
src/tw/edu/ntu/csie/libsvm/model/svm_print_interface.java
<gh_stars>1-10 package tw.edu.ntu.csie.libsvm.model; public interface svm_print_interface { public void print(String s); }
nablarch/nablarch-common-dao
src/main/java/nablarch/common/dao/NamingConversionUtil.java
<reponame>nablarch/nablarch-common-dao<filename>src/main/java/nablarch/common/dao/NamingConversionUtil.java<gh_stars>0 package nablarch.common.dao; /** * 変数名やクラス名を相互に変換するユーティリティクラス。 * * @author kawasima * @author <NAME> */ public final class NamingConversionUtil { /** 隠蔽コンストラクタ */ private NamingConversio...
thalida/wordbird
extension/public/app/app.module.js
'use strict'; angular .module( 'app', [ require('angular-animate'), require('angular-resource'), require('angular-sanitize'), require('angular-touch'), require('angular-ui-router'), require('angular-messages') ]) .config( require('./app.routes.js') );
14ms/Minecraft-Disclosed-Source-Modifications
Skizzle/us/myles/viaversion/bukkit/handlers/BukkitDecodeHandler.java
/* * Decompiled with CFR 0.150. * * Could not load the following classes: * io.netty.buffer.ByteBuf * io.netty.channel.ChannelHandlerContext * io.netty.handler.codec.ByteToMessageDecoder */ package us.myles.ViaVersion.bukkit.handlers; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerCon...
sho25/hive
itests/util/src/main/java/org/apache/hadoop/hive/ql/qoption/QTestAuthorizerHandler.java
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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...
JurrianFahner/ipf
commons/audit/src/main/java/org/openehealth/ipf/commons/audit/event/AuditMessageBuilder.java
/* * Copyright 2018 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 ...
Samuel-Rubin621/CS498
TowerDefense/Intermediate/Plugins/NativizedAssets/Windows/Game/Intermediate/Build/Win64/UE4/Inc/NativizedAssets/Struct_Green__pf3140832796.generated.h
// Copyright Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ========================================================================...
qiqingfu/examples-1
unittest/test/extend/request.test.js
<gh_stars>1000+ 'use strict'; const assert = require('assert'); const mock = require('egg-mock'); describe('test/extend/request.test.js', () => { let app; before(() => { app = mock.app(); return app.ready(); }); describe('isChrome()', () => { it('should true', () => { const ctx = app.mockCo...
bonsaiERP/bonsaiERP
db/migrate/20130702144114_add_tables_updater_id.rb
<reponame>bonsaiERP/bonsaiERP class AddTablesUpdaterId < ActiveRecord::Migration def up PgTools.with_schemas except: 'common' do add_column :account_ledgers, :updater_id, :integer add_index :account_ledgers, :updater_id add_column :accounts, :updater_id, :integer add_index :accounts, :upda...
quanpands/wflow
pcraster/pcraster-4.2.0/pcraster-4.2.0/source/fern/source/fern/language/io/uncertml2/uncertml2_parser.h
<reponame>quanpands/wflow<gh_stars>0 // ----------------------------------------------------------------------------- // Fern © Geoneric // // This file is part of Geoneric Fern which is available under the terms of // the GNU General Public License (GPL), version 2. If you do not want to // be bound by the terms of th...
dwws-ufes/2020-UMDb
umdb-app-server/src-gen/main/java/com/ufes/inf/dwws/umdb/persistence/MovieDAOJPA.java
package com.ufes.inf.dwws.umdb.persistence; import org.springframework.stereotype.Repository; import javax.persistence.PersistenceContext; @Repository public class MovieDAOJPA implements MovieDAOJPA{ @PersistenceContext EntityManager entityManager; @Override public Movie getByID(Long id) { /...
erdincozden/xs2a
consent-management/consent-xs2a-web/src/main/java/de/adorsys/psd2/consent/web/xs2a/controller/EventController.java
<reponame>erdincozden/xs2a<gh_stars>0 /* * Copyright 2018-2018 adorsys GmbH & Co KG * * 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 * *...
bengarrett/sauce
internal/layout/binarytext_test.go
<reponame>bengarrett/sauce // This is a raw memory copy of a text mode screen. Also known as a .BIN file. // This is essentially a collection of character and attribute pairs. // See http://www.acid.org/info/sauce/sauce.htm#FileType package layout import "testing" func TestBinaryText_String(t *testing.T) { tests := ...
esavard/SoulEVSpy
app/src/main/java/com/evranger/elm327/commands/protocol/can/CANSetProtocolCommand.java
package com.evranger.elm327.commands.protocol.can; import com.evranger.elm327.commands.AbstractCommand; /** * Created by <NAME> <<EMAIL>> on 2015-10-25. */ public class CANSetProtocolCommand extends AbstractCommand { public CANSetProtocolCommand(int protocolNo) { super("AT SPA" + protocolNo); ...
acostapazo/event-manager
tests/modules/tasks/create/acceptance/test_post_task.py
import json import pytest @pytest.mark.acceptance def test_should_return_a_200_when_post_task( client, database, given_any_title, given_any_description ): headers = {"Content-type": "application/json", "Accept": "text/plain"} data = {"title": given_any_title, "description": given_any_description} res...
lastweek/source-freebsd
src/sys/mips/atheros/ar531x/ar5312_chip.c
<gh_stars>0 /*- * Copyright (c) 2016 <NAME> * Copyright (c) 2010 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyrigh...
khangaikhuu-mstars/mstars-exercises
Baatarkhuu/Async programming/11.29/Exercise-01/app.js
<gh_stars>0 // const myPromise = new Promise((resolve, reject) => { // const xhr = new XMLHttpRequest(); // xhr.open("GET", "sidebar.html"); // xhr.onreadystatechange = function () { // if (!xhr.status == 200) { // document.getElementById("ajax").innerHTML = xhr.responseText; // return ...
larsbratholm/champs_kaggle
solutions/12/src/cormorant/tests/cormorant_tests.py
import torch from torch.utils.data import DataLoader import logging from cormorant.cg_lib import rotations as rot from cormorant.data import collate_fn def _gen_rot(data, angles, maxl): alpha, beta, gamma = angles D = rot.WignerD_list(maxl, alpha, beta, gamma) R = rot.EulerRot(alpha, beta, gamma) return D, R ...
Emersonxuelinux/aliyun-odps-python-sdk
odps/models/tests/test_partitions.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2017 Alibaba Group Holding Ltd. # # 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/LICENS...
jiusandeerduo/alumni-database-platform
cloudfunctions/cloud/project/controller/admin/admin_order_controller.js
/** * Notes: 资讯模块后台管理-控制器 * Ver : CCMiniCloud Framework 2.0.1 ALL RIGHTS RESERVED BY <EMAIL> * Date: 2021-07-11 10:20:00 */ const BaseAdminController = require('./base_admin_controller.js'); const AdminOrderService = require('../../service/admin/admin_order_service.js'); const timeUtil = require('../../../frame...
multei/web
src/services/healthcheck.js
import Api from "../api" export const getHealthCheckResponse = () => Api().get("/health-check")
subutai-io/subutai
management/server/subutai-common/src/main/java/io/subutai/common/peer/PeerNotRegisteredException.java
package io.subutai.common.peer; public class PeerNotRegisteredException extends PeerException { public PeerNotRegisteredException() { } public PeerNotRegisteredException( final String message ) { super( message ); } }
jingshuai5213/bus
bus-core/src/main/java/org/aoju/bus/core/toolkit/NameKit.java
/********************************************************************************* * * * The MIT License (MIT) * * ...
cod3cat/JavaMasterClass
Constructors/src/com/cod3cat/constructors/VipCustomer.java
<reponame>cod3cat/JavaMasterClass package com.cod3cat.constructors; public class VipCustomer { private String name; private int creditLimit; private String customerEMail; public VipCustomer() { this("default Name", 25000, "<EMAIL>"); } public VipCustomer(String name, String customerEM...
shaddyx/LaneJS
lane/js/FormElements/ActionlPanel.js
<filename>lane/js/FormElements/ActionlPanel.js /** * * @constructor */ var ActionPanel = function() { Panel.call(this); }; Util.extend(ActionPanel, Panel); ActionPanel.type = "ActionPanel";
MattDodsonEnglish/zitadel
internal/project/model/api_config.go
package model import ( "fmt" "strings" "github.com/caos/logging" "github.com/caos/zitadel/internal/crypto" "github.com/caos/zitadel/internal/errors" es_models "github.com/caos/zitadel/internal/eventstore/v1/models" "github.com/caos/zitadel/internal/id" ) type APIConfig struct { es_models.ObjectRoot AppID ...
meghana-rajashekar/testing-intersight
apis/workflow/v1alpha1/zz_generated.managedlist.go
/* Copyright 2021 The Crossplane Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
wesleyendliche/Python_exercises
World_1/018sincostan.py
<gh_stars>0 from math import radians, sin, cos, tan an = float(input('Digite o ângulo que você deseja: ')) seno = sin(radians(an)) print('O ângulo de {} tem o SENO de {:.2f}'.format(an, seno)) cosseno = cos(radians(an)) print('O ângulo de {} tem o COSSENO de {:.2f}'.format(an, cosseno)) tangente = tan(radians(an)) prin...
iamjli/pyranges
tests/test_pickle.py
<filename>tests/test_pickle.py import pyranges as pr import pickle def test_pickle(): gr = pr.data.f1() pickle.dump(gr, open("hi", "wb+")) gr2 = pickle.load(open("hi", "rb"))
homich1991/ignite
modules/core/src/test/java/org/apache/ignite/internal/processors/service/IgniteServiceReassignmentTest.java
<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, Version 2.0 * (the "Lice...