repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
navikt/vtp
model/src/main/java/no/nav/foreldrepenger/vtp/testmodell/inntektytelse/arena/ArenaModell.java
package no.nav.foreldrepenger.vtp.testmodell.inntektytelse.arena; import java.util.List; import java.util.Optional; import com.fasterxml.jackson.annotation.JsonCreator; import no.nav.foreldrepenger.vtp.testmodell.Feilkode; public record ArenaModell(Feilkode feilkode, List<ArenaSak> saker) ...
lductrung92/openlayer4
public/assets/proj4js/lib/defs/EPSG25835.js
<filename>public/assets/proj4js/lib/defs/EPSG25835.js Proj4js.defs["EPSG:25835"] = "+proj=utm +zone=35 +ellps=GRS80 +units=m +no_defs "
vladyslavkarpovych/JavaRushTasks
4.JavaMultithreading/task/task35/task3513/Main.java
<gh_stars>0 package com.javarush.task.task35.task3513; import javax.swing.*; public class Main { public static void main(String[] args) { Model model = new Model(); Controller controller = new Controller(model); JFrame game = new JFrame(); game.setTitle("2048"); ...
lechium/iOS1351Headers
System/Library/PrivateFrameworks/TSUtility.framework/TSSPreset.h
<reponame>lechium/iOS1351Headers /* * This header is generated by classdump-dyld 1.5 * on Wednesday, October 27, 2021 at 3:17:07 PM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/...
juandx1/RiotAPI2
Masterify - WebApp/app/dto/TopChampionDTO.java
<filename>Masterify - WebApp/app/dto/TopChampionDTO.java package dto; /** * Created by <NAME> on 9/05/2016. */ public class TopChampionDTO { public int kills; public int deaths; public int assits; public int gold; public int win; public int lost; public int games; public TopChampion...
appotry/cosmopolitan
third_party/python/Modules/cjkcodecs/__gb2312_decmap.c
#include "libc/x/x.h" /* clang-format off */ static bool __gb2312_decmap_once; static void *__gb2312_decmap_ptr; static const unsigned char __gb2312_decmap_rodata[11651] = { 0xb5, 0xbb, 0x77, 0x54, 0x54, 0xd9, 0xd7, 0x2d, 0x7a, 0xe7, 0xae, 0x53, 0x45, 0x51, 0x14, 0x05, 0x14, 0x45, 0x46, 0x92, 0x48, 0x52, 0x10, 0x0...
collenirwin/Codewars-Solutions
Solutions/JavaScript/One line task Square Every Digit(6 kyu).js
sd=x=>+[...""+x].map(n=>n*n).join``
maboglia/Fintech2022
Prj02_Laboratorio/src/enumerazioni/Colori.java
<filename>Prj02_Laboratorio/src/enumerazioni/Colori.java package enumerazioni; public enum Colori { RED("#FF0000"), GREEN("#00FF00"), BLUE("#0000FF"); String esadecimale; private Colori(String esa) { esadecimale = esa; } @Override public String toString() { return esadecimale; } }
yogeshjain999/trb-endpoint
test/rails-app/app/concepts/timeline/operation/public.rb
module Timeline::Operation class Public < Trailblazer::Operation step :model def model(ctx, params:, **) ctx[:model] = Status.load(user: nil, limit: params[:limit].to_i) end end end
Mrjoy832/Chrome-Extension
screenshot and video recorder/chromeStoreCapture.js
function setScreenshotUrl(e) { document.getElementById("imgFixForLong").src = e; }
pbaris/jmix
jmix-ui/ui/src/main/java/io/jmix/ui/data/impl/SimpleDataItem.java
/* * Copyright 2021 Haulmont. * * 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...
philipsorst/gitki.java
src/main/java/net/dontdrinkandroot/gitki/service/wiki/DefaultWikiService.java
package net.dontdrinkandroot.gitki.service.wiki; import net.dontdrinkandroot.gitki.model.DirectoryPath; import net.dontdrinkandroot.gitki.model.FilePath; import net.dontdrinkandroot.gitki.model.GitUser; import net.dontdrinkandroot.gitki.model.LockInfo; import net.dontdrinkandroot.gitki.service.git.GitService; import n...
panosant/iot
src/main/java/org/antonakospanos/iot/atlas/web/dto/events/HeartbeatResponseData.java
<filename>src/main/java/org/antonakospanos/iot/atlas/web/dto/events/HeartbeatResponseData.java<gh_stars>0 package org.antonakospanos.iot.atlas.web.dto.events; import org.antonakospanos.iot.atlas.web.dto.ModuleActionDto; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; import org.apache.commons.lang3....
underlost/Replica
replica/api/urls.py
from __future__ import absolute_import from django.conf.urls import * from django.contrib.auth.decorators import login_required from django.views.generic import TemplateView from coreExtend import api as core_api from replica.pulse import api as pulse_api from replica.contrib.blip import api as blip_api class Simpl...
YolandaMDavis/nifi
nifi-nar-bundles/nifi-evtx-bundle/nifi-evtx-processors/src/main/java/org/apache/nifi/processors/evtx/XmlRootNodeHandler.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 ...
phanquanghiep123/fc40-fe
app/containers/NSC_CancelRequest/DetailPage/BasketsInUseTable/columnDefs.js
<filename>app/containers/NSC_CancelRequest/DetailPage/BasketsInUseTable/columnDefs.js /* eslint-disable indent */ import { formatToCurrency } from 'utils/numberUtils'; import CellRenderer from './CustomCellRenderer'; import CustomCellEditor from './CustomCellEditor'; import CustomSelectCellEditor from './CustomSelectCe...
soajs/soajs.controller
test/data/provision/marketplace/payment.js
<reponame>soajs/soajs.controller 'use strict'; let service = { _id: "5e1f3e71c5a59210a8152626", type: "service", name: "payment", configuration: { subType: "market", port: 4006, requestTimeout: 30, requestTimeoutRenewal: 5, group: "SOAJS Core Services" }, versions: [{ "version": "1", maintenance: { ...
MarcoBgn/maestrano-connector-rails
spec/integration/id_references_spec.rb
<filename>spec/integration/id_references_spec.rb require 'spec_helper' describe 'id references' do class Entities::IdReference < Maestrano::Connector::Rails::Entity def self.external_entity_name 'Payment' end def self.connec_entity_name 'Payment' end def self.mapper_class Pay...
Yurai-Kitadate/A_2108
src/repository/plan.go
<gh_stars>0 package repository import ( "sync" "github.com/jphacks/A_2108/src/domain" "gorm.io/gorm" ) type PlanRepository struct { db *gorm.DB } func NewPlanRepository(db *gorm.DB) *PlanRepository { return &PlanRepository{ db: db, } } type PlanError struct { s string } func (e PlanError) Error() string ...
EMGroup/js-eden
js/ast/basestatement.js
<filename>js/ast/basestatement.js Eden.AST.BaseStatement = function() { this.start = 0; this.end = 0; this.parent = undefined; this.errors = []; this.warning = undefined; this.executed = 0; this.numlines = -1; this.doxyComment = undefined; this.lock = 0; this.source = undefined; this.id = 0; this.stamp = 0;...
sramirez/jCOLIBRI-weka
src/jcolibri/method/retrieve/NNretrieval/similarity/local/MaxString.java
package jcolibri.method.retrieve.NNretrieval.similarity.local; import jcolibri.method.retrieve.NNretrieval.similarity.LocalSimilarityFunction; /** * This function returns a similarity value depending of the biggest substring * that belong to both strings. */ public class MaxString implements LocalSimilar...
lerry903/spring-boot-api-project-seed
src/main/java/com/company/project/auth/model/SysMenu.java
<filename>src/main/java/com/company/project/auth/model/SysMenu.java package com.company.project.auth.model; import java.io.Serializable; import javax.persistence.*; @Table(name = "t_sys_menu") public class SysMenu implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Lo...
Retraces/UkraineBot
venv/lib/python3.8/site-packages/parso/grammar.py
/home/runner/.cache/pip/pool/1a/e9/17/88dee50a7dd9787b2f25c32b1eab500c5ced2fe281b1d4307b3ab25c37
Neusoft-Technology-Solutions/aws-sdk-cpp
aws-cpp-sdk-rekognition/source/model/GetContentModerationResult.cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/rekognition/model/GetContentModerationResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #incl...
teknux-org/jetty-bootstrap
jetty-bootstrap/src/test/java/org/teknux/jettybootstrap/test/keystore/JettyKeystoreConvertorBuilderTest.java
<filename>jetty-bootstrap/src/test/java/org/teknux/jettybootstrap/test/keystore/JettyKeystoreConvertorBuilderTest.java /******************************************************************************* * (C) Copyright 2014 Teknux.org (http://teknux.org/). * * Licensed under the Apache License, Version 2.0 (the "Lice...
KailongPeng/rt-cloud
tests/test_bidsInterface.py
<filename>tests/test_bidsInterface.py import os import pytest from rtCommon.bidsArchive import BidsArchive from rtCommon.bidsIncremental import BidsIncremental from rtCommon.imageHandling import convertDicomImgToNifti, readDicomFromFile from rtCommon.clientInterface import ClientInterface from rtCommon.bidsInterface im...
AndGirl/MyNews
app/src/main/java/com/ybj/mynews/ui/main/activity/PhotosDetailActivity.java
<reponame>AndGirl/MyNews<gh_stars>0 package com.ybj.mynews.ui.main.activity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7...
raionik/Py4Bio
code/ch13/regexsys1.py
import re, sys myregex = re.compile(sys.argv[2]) counter = 0 with open(sys.argv[1]) as fh: for line in fh: if myregex.search(line): counter += 1 print(counter)
shiruka/network
src/main/java/io/github/shiruka/network/package-info.java
/** * the package that contains main classes. */ package io.github.shiruka.network;
rogeraime/microservices-java
adigitalwash/laundryservice/src/main/java/com/adesso/digitalwash/model/Laundry.java
<filename>adigitalwash/laundryservice/src/main/java/com/adesso/digitalwash/model/Laundry.java package com.adesso.digitalwash.model; import java.math.BigDecimal; import java.math.MathContext; import java.math.RoundingMode; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import java.util.O...
limuness/ThaumicPotatoes2
src/main/java/com/zxc74171/thaumicpotatoes/items/ItemMetaShovel.java
package com.zxc74171.thaumicpotatoes.items; import java.util.Set; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Sets; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemSpade; import net.minecr...
forkch/scrabble_ar
examples/book_androidstudio/VuforiaJME/app/src/main/java/com/ar4android/vuforiaJME/VuforiaJME.java
<filename>examples/book_androidstudio/VuforiaJME/app/src/main/java/com/ar4android/vuforiaJME/VuforiaJME.java /* VuforiaJME - VuforiaJME Example * * Example Chapter 5 * accompanying the book * "Augmented Reality for Android Application Development", Packt Publishing, 2013. * * Copyright 2013 <NAME>, <NAME> / Pa...
yutingwu000/RED4
src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin/src/org/robotframework/ide/eclipse/main/plugin/project/build/validation/GeneralSettingsTableValidator.java
<filename>src/Eclipse-IDE/org.robotframework.ide.eclipse.main.plugin/src/org/robotframework/ide/eclipse/main/plugin/project/build/validation/GeneralSettingsTableValidator.java<gh_stars>100-1000 /* * Copyright 2015 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file f...
DCarper/rubinius
lib/ext/melbourne/visitor19.cpp
#include <sstream> #include <stdint.h> #include "ruby.h" #include "parser_state19.hpp" #include "visitor19.hpp" #include "symbols.hpp" namespace melbourne { namespace grammar19 { void create_error(rb_parser_state *parser_state, char *msg) { VALUE err_msg; // Cleanup one of the common and ugly syntax er...
saulmaldonado/ds-and-algorithms
arrays/2sum/2sum.js
/** * @param {number[]} nums * @param {number} target * @return {number[]} */ function twoSum(nums, target) { const map = {}; for (let i = 0; i < nums.length; i++) { if (map[target - nums[i]] !== undefined) { return [map[target - nums[i]], i]; } map[nums[i]] = i; } return []; }
ahgamut/randonet
src/randonet/generator/__init__.py
<reponame>ahgamut/randonet from .param import IntParam, FloatParam, BinaryParam, ChoiceParam, TupleParam from .unit import Unit, Factory
tinours/PCSim2
src/gov/nist/javax/sip/header/AllowEventsList.java
<reponame>tinours/PCSim2<filename>src/gov/nist/javax/sip/header/AllowEventsList.java<gh_stars>1-10 /******************************************************************************* * Product of NIST/ITL Advanced Networking Technologies Division (ANTD). * ***********************************************************...
mferten/k12k20tr.com
public/js/USAStates/NY/mapdata.js
<reponame>mferten/k12k20tr.com<gh_stars>0 simplemaps_statemap_mapdata={ main_settings: { width: "responsive", background_color: "#FFFFFF", background_transparent: "yes", popups: "detect", state_description: "State description", state_color: "#88A4BC", state_hover_color: "#3B729F", stat...
alexgorbatchev/date-fns
src/is_same_minute/test.js
<filename>src/is_same_minute/test.js // @flow /* eslint-env mocha */ var assert = require('power-assert') var isSameMinute = require('./') describe('isSameMinute', function () { it('returns true if the given dates have the same minute', function () { var result = isSameMinute( new Date(2014, 8 /* Sep */, ...
yoooou/Nucleus
src/s1ap/handlers/paging.c
/* * Copyright (c) 2019, Infosys Ltd. * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include "ProtocolIE-Container.h" #include "ProtocolIE-ID.h" #include "ProtocolIE-Field.h" #include "log.h" #inc...
Roulbac/GanSeg
test.py
<reponame>Roulbac/GanSeg<gh_stars>10-100 from options.test_parser import TestParser from models import create_model, get_model_parsing_modifier from datasets import create_dataset, get_dataset_parsing_modifier parser = TestParser() model_name = parser.get_model_name() dataset_name = parser.get_dataset_name() print('M...
microjasa/javolution
src/test/java/org/javolution/lang/MathLibTest.java
<gh_stars>100-1000 /* * Javolution - Java(TM) Solution for Real-Time and Embedded Systems * Copyright (C) 2012 - Javolution (http://javolution.org/) * All rights reserved. * * Permission to use, copy, modify, and distribute this software is * freely granted, provided that this notice is preserved. */ package or...
jdleesmiller/writelatex-git-bridge
src/main/java/uk/ac/ic/wlgitbridge/snapshot/push/exception/InvalidPostbackKeyException.java
package uk.ac.ic.wlgitbridge.snapshot.push.exception; /** * Created by Winston on 04/12/14. */ public class InvalidPostbackKeyException extends Exception {}
keynes120/red-packet
node_modules/plupload/src/moxie/src/javascript/runtime/flash/file/FileReader.js
<filename>node_modules/plupload/src/moxie/src/javascript/runtime/flash/file/FileReader.js /** * FileReader.js * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing */ /** @class moxie/runtime/flas...
punzki/kotlin
libraries/stdlib/jvm/runtime/kotlin/jvm/internal/MutablePropertyReference1.java
<filename>libraries/stdlib/jvm/runtime/kotlin/jvm/internal/MutablePropertyReference1.java /* * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the license/LICENSE.txt file. */ package kotlin.jvm.internal; import kotlin.SinceKotlin; import ko...
adam-mautner/iMarcats-Market-System
marketmodel/src/main/java/com/imarcats/model/mutators/PropertyChangeListener.java
<reponame>adam-mautner/iMarcats-Market-System<filename>marketmodel/src/main/java/com/imarcats/model/mutators/PropertyChangeListener.java package com.imarcats.model.mutators; /** * Call-back Listener of Property Changes * * @author Adam * */ public interface PropertyChangeListener { /** * Called on...
JackDan9/hamal
hamal/hamal/auth/token.py
<reponame>JackDan9/hamal # _*_ coding:utf-8 _*_ from datetime import datetime, timedelta import jwt from oslo_log import log as logging import hamal.conf from hamal import exception from hamal.i18n import _, _LE, _LI CONF = hamal.conf.CONF LOG = logging.getLogger(__name__) def create_token(user): """Create to...
isuruuy429/product-ei
integration/mediation-tests/tests-common/integration-test-utils/src/main/java/org/wso2/esb/integration/common/utils/clients/jmsclient/JMSQueueMessageProducer.java
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
ant0ine/phantomjs
src/qt/src/3rdparty/webkit/Source/WebCore/storage/IDBObjectStore.h
<gh_stars>10-100 /* * Copyright (C) 2010 Google Inc. 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 copyright * notice, th...
onap/aai-aai-common
aai-core/src/main/java/org/onap/aai/serialization/queryformats/ChangesFormat.java
/** * ============LICENSE_START======================================================= * org.onap.aai * ================================================================================ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. * =======================================================...
ameryhan/amery_base_java
ahan/src/main/java/amery/interview/sortbigfile/MergerFileSortTask.java
<reponame>ameryhan/amery_base_java<gh_stars>1-10 package amery.interview.sortbigfile; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import java.util.concurrent.ExecutionException; import java.util.concurrent.RecursiveTask; publ...
WARMASTERS/rebellion_g54
lib/rebellion_g54/action/world_bank.rb
require 'rebellion_g54/action/base' require 'rebellion_g54/action/income' module RebellionG54; module Action; class WorldBank < Base @flavor_name = 'Banking' @description = 'Take all coins from the Bank' @required_role = :world_bank class State attr_reader :bank def initialize @bank = 0 end...
chao2zhang/androidx
car/app/app-samples/showcase/common/src/main/java/androidx/car/app/sample/showcase/common/templates/SignInWithGoogleActivity.java
/* * Copyright (C) 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
nickman/tsdb-csf
csf-hub/src/main/java/com/sun/jdmk/MBeanServerInt.java
/* * @(#)file MBeanServerInt.java * @(#)author Sun Microsystems, Inc. * @(#)version 1.18 * @(#)date 07/10/01 * * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved. * * The contents of this file are subject to the ter...
meir-galilsoftware/pro-gallery
packages/gallery/tests/e2e/styleParams/galleryTextAlign.e2e.spec.js
<reponame>meir-galilsoftware/pro-gallery import GalleryDriver from '../../drivers/pptrDriver'; import {toMatchImageSnapshot} from '../../drivers/matchers'; import GALLERY_CONSTS from '../../../src/common/constants'; jest.setTimeout(30000) expect.extend({ toMatchImageSnapshot }); describe('gallerytextAlign - e2e', ()...
ghsecuritylab/DIR600B2
dir600b_v2.03/kernels/rt305x/drivers/isdn/hardware/eicon/dbgioctl.h
<reponame>ghsecuritylab/DIR600B2<filename>dir600b_v2.03/kernels/rt305x/drivers/isdn/hardware/eicon/dbgioctl.h /* * Copyright (c) Eicon Technology Corporation, 2000. * This source file is supplied for the use with Eicon Technology Corporation's range of DIVA Server Adapters. * This program is free software; ...
mathiasbynens/unicode-data
6.1.0/blocks/Syloti-Nagri-regex.js
// Regular expression that matches all symbols in the Syloti Nagri block as per Unicode v6.1.0: /[\uA800-\uA82F]/;
mrneo240/suicide-barbie
Code/Modules/player/cfg.h
<filename>Code/Modules/player/cfg.h #ifndef MUTALISK_PLAYER__CFG_H_ #define MUTALISK_PLAYER__CFG_H_ #include <mutalisk/common.h> #if defined(WIN32) // disable: unreferenced local function has been removed #pragma warning(disable : 4505) // disable: assignment operator could not be generated #pragma warning(dis...
Hengle/huailiang.github.io-1
source/js/jax/output/HTML-CSS/fonts/STIX/General/Italic/CombDiactForSymbols.js
<reponame>Hengle/huailiang.github.io-1 MathJax.Hub.Insert( MathJax.OutputJax['HTML-CSS'].FONTDATA.FONTS['STIXGeneral-italic'], { 0x20D0: [760,-627,0,-453,-17], 0x20D1: [760,-627,0,-426,10], 0x20D2: [662,156,0,-300,-234], 0x20D6: [760,-548,0,-453,-17], 0x20D7: [760,-548,0,-45...
olegvn88/gostudy
app/main/app/switches/Switch.go
<filename>app/main/app/switches/Switch.go package switches import ( "fmt" "runtime" "time" ) func main() { for i := 0; i < 10; i++ { defer fmt.Println("Hello world") getCurrentTime() time.Sleep(time.Second) } } func GetKindOfOS() string { result := runtime.GOOS return result } func getCurrentTime() { ...
hac80310/openproject-heroku
db/migrate/20131015121430_index_on_users.rb
class IndexOnUsers < ActiveRecord::Migration def change add_index :users, [:type, :login], :length => {:type => 255, :login => 255} add_index :users, [:type, :status] end end
vespa-mrs/vespa
vespa/simulation/plot_panel_integral.py
<gh_stars>0 # Python modules # 3rd party modules import numpy as np # Our modules import vespa.common.wx_gravy.plot_panel as plot_panel class PlotPanelIntegral(plot_panel.PlotPanel): def __init__(self, parent, tab, **kwargs): plot_panel.PlotPanel.__init__( self, parent, **kwar...
namtel-hp/fundraising-website
team_fundraising/migrations/0011_fundraiser_photo.py
# Generated by Django 2.1.5 on 2019-02-03 22:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('team_fundraising', '0010_auto_20190131_0011'), ] operations = [ migrations.AddField( model_name='fundraiser', name='...
macinnir/dvc
core/lib/utils/log/ILog.go
package log // ILog defines the log type ILog interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Println(args ...interface{}) Printf(format st...
liningwang/mallplus-cloudok
mall-business/goods-center/src/main/java/com/mallplus/goods/service/impl/PmsSkuStockServiceImpl.java
package com.mallplus.goods.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.mallplus.common.entity.pms.PmsSkuStock; import com.mallplus.goods.mapper.PmsSkuStockMapper; import com.mallplus.goods.service.IPmsS...
sergmain/webmill
riverock-webmill-container/src/test/java/org/riverock/webmill/container/definition/PortletDefinitionProcessorTest.java
<reponame>sergmain/webmill /* * org.riverock.webmill.container - Webmill portlet container implementation * * Copyright (C) 2006, Riverock Software, All Rights Reserved. * * Riverock - The Open-source Java Development Community * http://www.riverock.org * * * This program is free software; you can redistribute...
trezy/trezy.com
scripts/addFieldToUser.js
require('dotenv').config() // Module imports const firebase = require('firebase-admin') const mri = require('mri') const argv = process.argv.slice(2) const args = mri(argv, { alias: { c: 'collection', d: ['default'], f: 'field', }, default: { collection: 'profiles', default: '', }, }) const app = f...
iranjunior/TinderMarvel
src/pages/Register/index.js
import React from 'react'; import { Container, BackButton, Header, Title, FormContainer, Form, LoginButton, LoginText, Footer, } from './styles'; import Name from '~/components/form/name'; import Email from '~/components/form/email'; import City from '~/components/form/city'; import Age from '~/compo...
fengzhao-study-notes/blueocean-plugin
blueocean-rest/src/main/java/io/jenkins/blueocean/rest/model/BlueTrend.java
<filename>blueocean-rest/src/main/java/io/jenkins/blueocean/rest/model/BlueTrend.java package io.jenkins.blueocean.rest.model; import io.jenkins.blueocean.rest.Navigable; import org.kohsuke.stapler.export.Exported; import java.util.Map; /** * A category of tabular data, typically one that changes over time (e.g. ac...
gitoscc/B4A
Libs_FirebaseNotifications/src/anywheresoftware/b4a/objects/FirebaseNotificationsService.java
/* * Copyright 2010 - 2020 Anywhere Software (www.b4x.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
plinck/TeamATC
client/src/components/Dashboard/GoogleMap/GoogleMap.js
<reponame>plinck/TeamATC import React, { useState } from 'react'; import Map from './Map' //import { Card, CardContent, Grid, Box, Typography, Table, TableHead, TableRow, TableCell, TableBody } from '@material-ui/core'; import { Card, CardContent, Grid, Box, Typography } from '@material-ui/core'; import { withStyles } ...
atnos/chouette
mobi.chouette.exchange/src/test/java/mobi/chouette/model/blueprint/NetworkBlueprint.java
package mobi.chouette.model.blueprint; import java.util.Date; import java.util.UUID; import mobi.chouette.model.Network; import mobi.chouette.model.type.PTNetworkSourceTypeEnum; import com.tobedevoured.modelcitizen.annotation.Blueprint; import com.tobedevoured.modelcitizen.annotation.Default; import com.tobedevoured...
xinzhang1234/peloton
src/include/wire/packet_manager.h
//===----------------------------------------------------------------------===// // // Peloton // // packet_manager.h // // Identification: src/include/wire/packet_manager.h // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===-------------------------------------------...
678ho/SpringbootFileUploadPractice
src/main/java/org/zerock/mreview/security/service/ClubOAuth2UserDetailsService.java
package org.zerock.mreview.security.service; import lombok.RequiredArgsConstructor; import lombok.extern.log4j.Log4j2; import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.security.oauth2.client.userin...
adite39/java-algorithms-data-structures
src/problems/leetcode/CountCompleteBinaryTreeNodes.java
<reponame>adite39/java-algorithms-data-structures<filename>src/problems/leetcode/CountCompleteBinaryTreeNodes.java package problems.leetcode; /** * https://leetcode.com/problems/count-complete-tree-nodes */ public class CountCompleteBinaryTreeNodes { private static class TreeNode { int val; Tree...
bitsnap/scunk
project/plugins.sbt
<reponame>bitsnap/scunk addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.2") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.12") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3") addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0") a...
oglimmer/BootsFaces-OSP
src/main/joda/DateTimeConverter.java
<reponame>oglimmer/BootsFaces-OSP package com.anem.green.web.convert; import java.util.Map; import jakarta.el.ELContext; import jakarta.el.ValueExpression; import jakarta.faces.component.UIComponent; import jakarta.faces.context.FacesContext; import jakarta.faces.convert.Converter; import jakarta.faces.convert.Conver...
vadi2/codeql
python/ql/test/3/library-tests/PointsTo/regressions/subprocess-assert/mwe_failure_2.py
import subprocess assert subprocess.call(['run-backup']) class TestCase: pass class MyTest(TestCase): pass
opentelekomcloud/alien4cloud
alien4cloud-rest-api/src/main/java/alien4cloud/utils/FileUploadUtil.java
package alien4cloud.utils; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.StandardCopyOption; import org.springframework.web.multipart.MultipartFile; import lombok.extern.slf4j.Slf4j; @Slf4j public final class FileUploadUtil { ...
ploukareas/Design-Patterns
Java/src/main/java/behavioralpatterns/strategy/Strategy.java
package behavioralpatterns.strategy; // ˅ // ˄ public interface Strategy { // Show a hand signal. HandSignal showHandSignal(); // Notify a game result. void notifyGameResult(GameResultType result, HandSignal ownHand, HandSignal opponentsHand); // ˅ // ˄ } // ˅ // ˄
rohscx/nodeUtilz
cusFun/lib/networkScope/minusEight.js
<reponame>rohscx/nodeUtilz<gh_stars>0 module.exports = function minusEight(n) { if (n <= 8) { return n; } else { return n - 8; } };
Dikaeinstein/book-a-meal
server/models/User.js
<filename>server/models/User.js module.exports = (sequelize, DataTypes) => { const User = sequelize.define('User', { name: { type: DataTypes.STRING, allowNull: false, }, email: { type: DataTypes.STRING, allowNull: false, }, password: { type: DataTypes.STRING, al...
spencercjh/sync-leetcode-today-problem-java-example
src/main/java/spencercjh/problems/MaxConsecutiveOnesIii.java
<filename>src/main/java/spencercjh/problems/MaxConsecutiveOnesIii.java package spencercjh.problems; /** * https://leetcode-cn.com/problems/max-consecutive-ones-iii/ * * @author spencercjh */ public class MaxConsecutiveOnesIii { public int longestOnes(int[] A, int K) { } }
Aneo-Development/Aneo
commands/fun/tweet.js
<reponame>Aneo-Development/Aneo<filename>commands/fun/tweet.js const Meme = require("memer-api") const memer = new Meme(); const { Client, Message, MessageEmbed, MessageAttachment } = require('discord.js'); module.exports = { name: 'tweet', /** * @param {Client} client * @param {Message} message ...
msgimanila/EXT-React-MSG
demos/jsx-in-ext-js-classic/app/desktop/src/view/main/footer/FooterView.js
Ext.define('jsxInExtJSClassic.view.main.footer.FooterView', { extend: 'Ext.panel.Panel', xtype: 'footerview', cls: 'footerview', title: 'Ext JS version: ' + Ext.versions.extjs.version });
theenergydetective/commander
commander/src/main/java/com/ted/commander/client/view/userSettings/ChangeEmailPresenter.java
/* * Copyright 2015 The Energy Detective. All Rights Reserved. */ package com.ted.commander.client.view.userSettings; import com.google.gwt.place.shared.Place; import com.google.gwt.user.client.ui.IsWidget; import com.google.gwt.user.client.ui.Widget; import com.ted.commander.client.callback.DefaultMethodCallback; ...
wernerdegroot/applicatives
processor/src/main/java/nl/wernerdegroot/applicatives/processor/domain/PackageName.java
package nl.wernerdegroot.applicatives.processor.domain; import nl.wernerdegroot.applicatives.processor.domain.containing.ContainingPackage; import java.util.Objects; public class PackageName { private final String packageName; public PackageName(String packageName) { this.packageName = packageName; ...
beaugunderson/hallway-pusher
lib/services/dwolla/map.js
exports.account = { id: 'Id', oembed: function(data) { var ret = { id: data.Id, title: data.Name, location: data.City + ' ' + data.State, provider_name: 'dwolla' }; return ret; } } exports.defaults = { self: 'account' }
Bluedz/XTKAnal
src/main/java/com/xtk/anal/model/auto/ResearchInforTstExample.java
package com.xtk.anal.model.auto; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * 调研信息登记表 ResearchInforTstExample * @author xtk_自动生成 * @email <EMAIL> * @date 2020-05-18 16:10:14 */ public class ResearchInforTstExample { protected String orderByClause; protected boolean di...
sarbull/components
packages/purplecoat.js
<filename>packages/purplecoat.js { "name": "purplecoat.js", "url": "https://github.com/ellekasai/purplecoat.js.git" }
robindittmar/mechanics
mechanics/src/core/Player.h
#ifndef __PLAYER_H__ #define __PLAYER_H__ // Purpose: Backtracking class CPlayer { public: CPlayer(); ~CPlayer(); private: float m_fSimulationTime; bool m_bIsDormant; }; #endif // __PLAYER_H__
MohammedBashiru/rave-android
rave_android/src/main/java/com/flutterwave/raveandroid/banktransfer/BankTransferFragment.java
package com.flutterwave.raveandroid.banktransfer; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import androi...
xiaoxiaoxin8/DesignPatternPro
src/main/java/com/proxy/staticproxy/pojo/GasProxy.java
package com.proxy.staticproxy.pojo; /** * @program: repertory * @description: 燃气充值代理服务 * @author: tangliang * @create: 2019-03-14 21:31 **/ public class GasProxy { GasCompany gasCompany; public GasProxy(GasCompany gasCompany){ this.gasCompany = gasCompany; } public void proxyRecharge(){...
dgumenyuk/Environment_generation
RQ3/Autonomous_robot/Player_pipeline_/run.py
''' Python script to run all the maps generated for robot and saved in the ".results" folder. ''' import json import re from RDP import rdp import os import time def modify(points, map_name): ''' Funtion to modify the "autonomous_agents", "events" and "stage" files to enter the new pooints and map nam...
OceanOPS/oceanops-api
src/main/java/org/oceanops/api/orm/auto/_NetworkSite.java
<gh_stars>1-10 package org.oceanops.api.orm.auto; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import org.apache.cayenne.BaseDataObject; import org.apache.cayenne.exp.property.EntityProperty; import org.apache.cayenne.exp.property.NumericProperty; import org.apache....
Novemser/LearnJava
src/main/java/Practice/P2.java
<filename>src/main/java/Practice/P2.java package Practice; import java.util.*; /** * * * Created by Novemser on 2016/9/29. */ public class P2 { public static void main(String... args) { P2 runner = new P2(); Scanner scanner = new Scanner(System.in); while (scanner.hasNex...
inh3rit/SmartIM
smartqq/src/main/java/com/scienjus/smartqq/model/DiscussMessage.java
<reponame>inh3rit/SmartIM package com.scienjus.smartqq.model; /** * 讨论组消息. * * @author ScienJus * @author <a href="http://88250.b3log.org"><NAME></a> * @date 15/12/19. */ public class DiscussMessage extends QQMessage { private long discussId; public long getDiscussId() { return discussI...
insphereapplication/rhodes
platform/shared/sync/SyncProtocol_3.h
<filename>platform/shared/sync/SyncProtocol_3.h #pragma once #include "ISyncProtocol.h" #include "common/StringConverter.h" #include "common/RhoFilePath.h" namespace rho { namespace sync { struct CSyncProtocol_3 : public ISyncProtocol { String m_strContentType; CSyncProtocol_3() { m_strContentTy...
islayy/Books-solutions
Python-For-Everyone-Horstmann/Chapter7-Files-and-Exceptions/P7.13.py
# Write a program that asks the user to input a set of floating-point # values. When the user enters a value that is not a number, # give the user a second chance to enter the value. After two chances, # quit reading input. Add all correctly specified values and # print the sum when the user is done entering data. Us...
contacttoakhil/LeetCode-1
leetcode/78. Subsets/s4.cpp
// OJ: https://leetcode.com/problems/subsets // Author: github.com/lzl124631x // Time: O(N^2 * 2^N) // Space: O(1) class Solution { public: vector<vector<int>> subsets(vector<int>& nums) { vector<vector<int>> ans(1); for (int i = 0; i < nums.size(); ++i) { int len = ans.size(); for (int j = 0; j <...