repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
rockychen-dpaw/it-assets
status/plugins.py
<gh_stars>0 import datetime import re import urllib3 from msal import ConfidentialClientApplication import boto3 import requests import pytz import socket from django.conf import settings from .utils import lookup TZ = pytz.timezone(settings.TIME_ZONE) urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarni...
chuiizeet/Pixel-Art-Headers
Headers/FBSDKURLSessionTask.h
// // 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 <objc/NSObject.h> @class NSURLSessionTask; @interface FBSDKURLSessionTask : NSObject { NSURLSessionTask *_task; CDUnknownBl...
scrutinizer-ci-testing/netguru-people
db/migrate/20150408092703_change_membership_start_and_end_date_columns_to_date.rb
<filename>db/migrate/20150408092703_change_membership_start_and_end_date_columns_to_date.rb class ChangeMembershipStartAndEndDateColumnsToDate < ActiveRecord::Migration def change change_column :memberships, :starts_at, :date change_column :memberships, :ends_at, :date end end
davideschiavone/pulpissimo
boot_code/include/archi/udma/i2s/v3/udma_i2s_v3_gvsoc.h
<reponame>davideschiavone/pulpissimo<filename>boot_code/include/archi/udma/i2s/v3/udma_i2s_v3_gvsoc.h /* THIS FILE HAS BEEN GENERATED, DO NOT MODIFY IT. */ /* * Copyright (C) 2018 ETH Zurich, University of Bologna * and GreenWaves Technologies * * Licensed under the Apache License, Version 2.0 (the "License"); ...
Antique/libxenserver
src/xen_dr_task.c
/* * Copyright (c) <NAME>, 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, this list of con...
w-nowak/event-sourced-ddd-restaurant
shared-kernel/src/test/java/com/wnowakcraft/samples/restaurant/core/infrastructure/messaging/mocking/BusinessFlowMock.java
package com.wnowakcraft.samples.restaurant.core.infrastructure.messaging.mocking; import com.wnowakcraft.samples.restaurant.core.domain.logic.BusinessFlowProvisioner; import com.wnowakcraft.samples.restaurant.core.domain.logic.DefaultBusinessFlowProvisioner.BusinessFlowProvisionerConfig; import com.wnowakcraft.samples...
myOmikron/TelegramBotSDK
telegram_bot_sdk/telegram_objects/encryptedPassportElement.py
from telegram_bot_sdk.telegram_objects.passportFile import PassportFile class EncryptedPassportElement: """This class contains information about documents or other Telegram Passport elements shared with the bot by\ the user :param type_result: Element type. One of “personal_details”, “passport”, “driver_...
xxxzhou/oeip
oeip-win-mf/ReaderCallback.cpp
#include "ReaderCallback.h" #include <shlwapi.h> #include "MediaStruct.h" ReaderCallback::ReaderCallback() { } ReaderCallback::~ReaderCallback() { } void ReaderCallback::setSourceReader(IMFSourceReader* pReader, unsigned long dwStreamIndex) { std::lock_guard<std::mutex> mtx_locker(mtx); reader = pReader; streamIn...
FantasyZsp/SpringBoot2.xDemo
jdk/src/main/java/xyz/mydev/jdk/genericity/complex/port/DefaultPorterV2.java
<reponame>FantasyZsp/SpringBoot2.xDemo<gh_stars>0 package xyz.mydev.jdk.genericity.complex.port; import lombok.Getter; import lombok.Setter; import lombok.extern.slf4j.Slf4j; import xyz.mydev.jdk.genericity.complex.msg.SerializableMessage; import java.io.Serializable; import java.util.concurrent.ExecutorService; /*...
liumapp/compiling-jvm
openjdk/jdk/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h
<reponame>liumapp/compiling-jvm<filename>openjdk/jdk/src/share/demo/jvmti/java_crw_demo/java_crw_demo.h /* * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
softicar/platform
platform-common/src/test/java/com/softicar/platform/common/string/csv/CsvTokenizerTest.java
package com.softicar.platform.common.string.csv; import com.softicar.platform.common.testing.AbstractTest; import java.util.Arrays; import java.util.List; import org.junit.Test; public class CsvTokenizerTest extends AbstractTest { private List<List<String>> tokenMatrix; public CsvTokenizerTest() { this.tokenMa...
anshusandhi6/project-calliope-frontend
src/shared/index.js
export { default as Navbar } from './Navbar'; export { default as Footer } from './Footer'; export { default as ArticleCard } from './ArticleCard'; export { default as EditorDeskCard } from './EditorDeskCard';
MarsonShine/Books
DesignPattern/DesignPatternGo/proxys/application.go
<gh_stars>10-100 package proxys type application struct { } func (app *application) requestHandle(url, method string) (int, string) { if url == "/app/status" && method == "GET" { return 200, "Ok" } if url == "/create/user" && method == "POST" { return 201, "User Created" } return 404, "Not Ok" }
jihwahn1018/ovirt-web-ui
src/helpers.test.js
<filename>src/helpers.test.js /* eslint-env jest */ import { userFormatOfBytes } from '_/helpers' describe('test userFormatOfBytes', function () { it('B to KiB', function () { const b = 1024 expect(userFormatOfBytes(b)) .toMatchObject({ str: '1.0 KiB', rounded: '1.0', suffix: 'KiB' }) }) it('B to ...
OpenSextant/Xponents
src/main/java/org/opensextant/extractors/geo/TagFilter.java
package org.opensextant.extractors.geo; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.apache.lucene.analysis.util.ClasspathResourceLoader; import org.opensextant.ConfigException; import org.opensextant.extraction.MatchFilter; import org.opensextant.util.LuceneStopwords; ...
FOC-framework/framework
foc/src/com/foc/business/notifier/actions/FocNotifActionFactory.java
/******************************************************************************* * Copyright 2016 <NAME> * * 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.apac...
staddi99/AdventOfCode
2020/day_8/code.js
import input from './input.js'; const inputArray = input.split('\n'); class Computer { constructor(input) { this.raw_input = input.slice(0); this.reset(); } reset() { this.program = this.parseInput(this.raw_input); this.accu = 0; this.instruction = 0; this.record = {}; } parseInput...
krattai/AEBL
blades/gnunet/src/util/load.c
<reponame>krattai/AEBL /* This file is part of GNUnet. Copyright (C) 2010, 2013 GNUnet e.V. GNUnet 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, or (at your optio...
devbrain/neutrino
src/thirdparty/freetype/src/autofit/aflatin.c
/**************************************************************************** * * aflatin.c * * Auto-fitter hinting routines for latin writing system (body). * * Copyright (C) 2003-2020 by * <NAME>, <NAME>, and <NAME>. * * This file is part of the FreeType project, and may only be used, * modified, and dist...
ktrzeciaknubisa/jxcore-binary-packaging
deps/mozjs/incs/nss/nss/lib/dev/devm.h
/* 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/. */ #ifndef DEVM_H #define DEVM_H #ifndef BASE_H #include "base.h" #endif /* BASE_H */ #ifndef DEV_H #include "dev.h...
bocke/ucc
test/cases/float/to_char.c
<gh_stars>10-100 // RUN: %ucc -c %s f(float f) { char c = f; }
gadzorg/gram2_api_server
spec/models/master_data/account_spec.rb
require 'rails_helper' RSpec.describe MasterData::Account, type: :model do it "has a valid factory" do expect(build(:master_data_account)).to be_valid end it "has an empty database" do expect(MasterData::Account.count).to eq(0) end describe "valid hruid" do it "generate uniq hurid" it "contai...
uk-gov-mirror/DFE-Digital.get-help-with-tech
app/mailers/invite_school_user_mailer.rb
<reponame>uk-gov-mirror/DFE-Digital.get-help-with-tech class InviteSchoolUserMailer < ApplicationMailer def nominated_contact_email @user = params[:user] template_mail( invite_user_template_id, to: @user.email_address, personalisation: personalisation, ) end private def personalis...
vusec/probeguard
analyzer/diagnoser/rdef_diagnoser.c
#include "unistd.h" #include "errno.h" #include "rdef_diagnoser.h" #define FILE_ACCESS_CHECK(F) \ if (-1 == access(F, R_OK)) \ { \ rdef_print_error("Error accessing file: %s (%s)\n", F, strerror(errno)); \ exit(errno); \ } // Cmd line argument values static char *prog_filename = NULL; static...
PiCoPress/Sprexor
sprexor-v3-core/src/main/java/sprexor/v3/cosmos/SprexorCmdlst.java
package sprexor.v3.cosmos; import sprexor.v3.IOCenter; import sprexor.v3.SManager; import sprexor.v3.components.SCommand; import sprexor.v3.components.SParameter; import sprexor.v3.components.annotations.CommandInfo; import sprexor.v3.lib.Utils; @CommandInfo(name = "commands", version = "0.0.1") public class SprexorC...
fc-dream/PDFTestForAndroid
sample/PDFtest/src/com/lowagie/examples/objects/tables/pdfptable/Tables.java
/* * $Id: Tables.java 3373 2008-05-12 16:21:24Z xlv $ * * This code is free software. It may only be copied or modified * if you include the following copyright notice: * * --> Copyright 2001-2005 by <NAME> and <NAME> <-- * * This code is part of the 'iText Tutorial'. * You can find the complete tutorial at th...
yurenfangzhou/bdp-gold
gold-shop/shop-core/src/main/java/com/platform/utils/BeanUtil.java
package com.platform.utils; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import org.springframework.cglib.beans.BeanMap; import javax.persistence.Column; import java.beans.PropertyDescriptor; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.ref...
tristandeleu/jax-meta-learning
jax_meta/utils/losses.py
import jax.numpy as jnp from jax import nn def nll_loss(log_likelihoods, targets): losses = jnp.take_along_axis(log_likelihoods, targets[..., None], axis=-1) return -jnp.squeeze(losses, axis=-1) def cross_entropy(logits, targets): log_likelihoods = nn.log_softmax(logits, axis=-1) return nll_loss(lo...
ksaracevic1/etf-alles-1
I semester/introduction-to-programming/labovi/T2/Z3/main.c
#include <stdio.h> int main(){ int dan, mjesec; printf("Dan: "); scanf("%d", &dan); printf("Mjesec: "); scanf("%d", &mjesec); /*if((dan>=20 && mjesec==1 || dan<=18 && mjesec==2)){ printf("Znak je: Vodolija"); }else if */ switch(mjesec...
Limmen/open_spiel
open_spiel/bots/gin_rummy/simple_gin_rummy_bot.cc
// Copyright 2021 DeepMind Technologies Limited // // 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 l...
Harreke/EasyApp
injection-processor/src/main/java/com/harreke/easyapp/injection/annotation/InjectIntArray.java
package com.harreke.easyapp.injection.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Created by huoqisheng on 2016/6/17. */ @Retention(RetentionPolicy.CLASS) @Target(Element...
sahirsharma/Martian
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/pyephem/pyephem-3.7.6.0/ephem/tests/test_stars.py
#!/usr/bin/env python import unittest from ephem import star class StarTests(unittest.TestCase): def test_Fomalhaut(self): s = star('Fomalhaut') self.assertEqual(s.name, 'Fomalhaut') self.assertRaises(RuntimeError, getattr, s, 'ra') def test_Fomalhaut_compute(self): s = star('...
mille2004/NoteItIOS
Vendor/Core/NSDictionary+BaseKit.h
<filename>Vendor/Core/NSDictionary+BaseKit.h // // Created by <NAME> on 2012 // Copyright 2012 BaseKit // // 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/licen...
bicepjai/mypuzzles
interviewstreet/archive/insertion_sort/insr_sort.py
#!/usr/bin/python import sys, re, math from itertools import permutations mswaps = 0 def merge(left, right): global mswaps result = [] i ,j = 0, 0 while i < len(left) and j < len(right): if left[i] <= right[j]: result.append(left[i]) i += 1 mswaps += 1 else: result.append(right[j]) j += 1 res...
SelfKeyFoundation/Identity-Wallet
src/common/wallet-tokens/types.js
/* istanbul ignore file */ const WALLET_TOKENS_UPDATE = 'app/wallet-tokens/UPDATE'; const WALLET_TOKENS_SET = 'app/wallet-tokens/SET'; const WALLET_TOKENS_LOAD = 'app/wallet-tokens/LOAD'; const WALLET_TOKENS_CREATE = 'app/wallet-tokens/CREATE'; const WALLET_TOKENS_STATE_EDIT = 'app/wallet-tokens/EDIT'; export { WALLE...
timboudreau/ANTLR4-Plugins-for-NetBeans
antlr-plugin/src/main/java/org/nemesis/antlr/v4/netbeans/v8/grammar/file/tool/extract/GenerateBuildAndRunGrammarResult.java
/* * Copyright 2016-2019 <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
hdm/mac-tracker
data/js/00/50/c2/fa/a0/00.36.js
macDetailCallback("0050c2faa000/36",[{"a":"#902, E&C Venture Tower GuroDong, GuroGu Seoul KR 152-719","o":"YJSYSTEM","d":"2012-06-17","t":"add","s":"ieee","c":"KR"}]);
JLLeitschuh/Multiverse-Inventories
src/main/java/com/onarandombox/multiverseinventories/blacklist/package-info.java
<filename>src/main/java/com/onarandombox/multiverseinventories/blacklist/package-info.java<gh_stars>10-100 /** * This package contains classes related to Item Blacklisting per world group/world. * It is also very unfinished and likely to be refactored later. */ package com.onarandombox.multiverseinventories.blacklis...
mattl-netflix/Priam
priam/src/main/java/com/netflix/priam/cryptography/pgp/PgpCredential.java
<gh_stars>100-1000 /** * Copyright 2017 Netflix, Inc. * * <p>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 * * <p>http://www.apache.org/licenses/LICENSE-2.0 * * <p>Unless required...
vikas-t/DS-Algo
functional-problems/rightViewOfBinaryTree.py
<gh_stars>0 #!/usr/bin/python3 # https://practice.geeksforgeeks.org/problems/right-view-of-binary-tree/1 class Node: def __init__(self, data): self.data = data self.left = None self.right = None def inOrder(root): if root == None: return inOrder(root.left) print(root.d...
Orig5826/Basics
Lang/Python/stdlib/012_tkinter.py
import tkinter as tk wind = tk.Tk() wind.title("tk 小程序") wind.geometry('300x200+500+300') # list ll = ["C", "C++", "Java", "Python", "Lua", "R"] lbox1 = tk.Listbox(wind) for item in ll: lbox1.insert(0, item) lbox1.pack() wind.mainloop()
jnthn/intellij-community
java/java-tests/testData/codeInsight/daemonCodeAnalyzer/typing/RehighlightInnerBlockAfterInline.java
<filename>java/java-tests/testData/codeInsight/daemonCodeAnalyzer/typing/RehighlightInnerBlockAfterInline.java class Ds { public int meth(int j) { int <caret>e = j; int d = e; if (j==0) { int e = j; } return 0; } }
MarouenMechtri/accords-platform-1
tools/codegen/OCCI/Action.py
''' Created on 15 Apr 2013 @author: jevc ''' class Action(object): ''' Class to represent an Action ''' def __init__(self, actionid): ''' Constructor @param id: action id ''' self.actionid = actionid # Gets resolved to action definition sel...
ivan909020/freelancehunt-sdk-java
src/main/java/com/github/ivan909020/freelancehunt/sdk/requests/projects/bids/RejectBidRequest.java
package com.github.ivan909020.freelancehunt.sdk.requests.projects.bids; import com.github.ivan909020.freelancehunt.sdk.exceptions.ApiException; import com.github.ivan909020.freelancehunt.sdk.exceptions.ApiValidationException; import com.github.ivan909020.freelancehunt.sdk.requests.PostApiRequest; import com.github.iva...
alqvia/layer0
cli/client/environment_test.go
<filename>cli/client/environment_test.go package client import ( "net/http" "testing" "github.com/quintilesims/layer0/common/models" "github.com/quintilesims/layer0/common/testutils" ) func TestCreateEnvironment(t *testing.T) { handler := func(w http.ResponseWriter, r *http.Request) { testutils.AssertEqual(t,...
hexacta/angular-js-cli
templates/full-app/_app/_layout/_components/_sidemenu/_sidemenu.spec.js
<reponame>hexacta/angular-js-cli /* eslint-env node, jasmine */ 'use strict'; describe('Sidemenu Component', function () { var $componentController, $state, SidemenuComponentCtrl, routerHelper; var states = [ { url: '/state-one', component: 'stateOne', resolv...
Mu-L/liteflow
liteflow-testcase-springboot/src/test/java/com/yomahub/liteflow/test/subflow/cmp2/HCmp.java
<gh_stars>0 package com.yomahub.liteflow.test.subflow.cmp2; import com.yomahub.liteflow.core.NodeComponent; import com.yomahub.liteflow.slot.DefaultContext; import org.springframework.stereotype.Component; import static com.yomahub.liteflow.test.subflow.ImplicitSubFlowSpringbootTest.RUN_TIME_SLOT; @Component("h") p...
johnGHB/fluid
Fluidium/lib/OmniGroup/Frameworks/OmniAppKit/Widgets.subproj/OAVectorView.h
// Copyright 2003-2006 Omni Development, Inc. All rights reserved. // // This software may only be used and reproduced according to the // terms in the file OmniSourceLicense.html, which should be // distributed with this project and can also be found at // <http://www.omnigroup.com/developer/sourcecode/sourcelicense/...
abdallahsafi-401-advanced-javascript/data-structures-and-algorithms
Data-Structures/stacksAndQueues/stacks.js
<reponame>abdallahsafi-401-advanced-javascript/data-structures-and-algorithms 'use strict'; const Node = require('./node.js'); const CustomError = require('./customError.js'); class Stack { constructor() { this.top = null; this.size = 0; } push(value) { if (!value) { throw new CustomError('In...
pengxianhong/xAndroidDemo
app/src/main/java/com/example/mutidemo/ui/NewsDetailsActivity.java
<gh_stars>1-10 package com.example.mutidemo.ui; import android.os.Build; import android.widget.TextView; import androidx.annotation.RequiresApi; import com.example.mutidemo.R; import com.example.mutidemo.util.ImageUtil; import com.pengxh.app.multilib.base.BaseNormalActivity; import com.qmuiteam.qmui.util.QMUIDisplay...
thaliproject/Thali_Codovaplugin
test/www/jxcore/meta_tests/testPouchDBAgent.js
'use strict'; var objectAssign = require('object-assign'); var ForeverAgent = require('forever-agent'); var express = require('express'); var expressPouchDB = require('express-pouchdb'); var http = require('http'); var tape = require('../lib/thaliTape'); var testUtils = require('../lib/testU...
hdachev/Nimble
src/nodes/stop_nans_node.cpp
<reponame>hdachev/Nimble<gh_stars>0 #include "stop_nans_node.h" #include "../render_graph.h" #include "../resource_manager.h" #include "../renderer.h" #include "../logger.h" namespace nimble { DEFINE_RENDER_NODE_FACTORY(StopNaNsNode) // ---------------------------------------------------------------------------------...
oliver-za/invictus-frontend
client/src/components/shared/ItemList.js
<gh_stars>0 import React from 'react' import {Link} from 'react-router-dom' function ItemList({itemKind, previousPrice}) { return ( <div className="Mens-Items-Wrapper"> {itemKind.map((item) => ( <li key={item._id} style={{ listStyleType: "none" }}> <div class...
reverie/jotleaf.com
jotleaf/static/js/views_errors.js
<filename>jotleaf/static/js/views_errors.js // Generated by CoffeeScript 1.4.0 var Error403, Error404, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.protot...
stutiredboy/obproxy
src/obproxy/proxy/api/ob_intercept_plugin.h
/** * Copyright (c) 2021 OceanBase * OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ...
gizmore/gdo
lib/GDO/Form/GDT_Select.rb
# # # class GDO::Form::GDT_Select < GDO::Form::GDT_ComboBox def initialize(name=nil) super @multiple = false end ########### ### GDT ### ########### def multiple(multiple=true); @multiple = multiple; self; end def _multiple; @multiple; end def to_value(var) var.split(',...
zhangkn/iOS14Header
System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NTKAVListing.h
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:52:20 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/NanoTimeKitCompanion.framework/NanoTimeKitCompanion * classdump-dyld is licensed under GPLv3, Copyri...
jayvdb/alcazar
tests/test_requests.py
#!/usr/bin/env python # -*- coding: utf-8 -*- #---------------------------------------------------------------------------------------------------------------------------------- # includes # 2+3 compat from __future__ import absolute_import, division, print_function, unicode_literals # standards import unittest # a...
yf9212/demo
src/main/java/com/yf/designPattern/filter/Criteria.java
<gh_stars>0 package com.yf.designPattern.filter; import java.util.List; public interface Criteria { public List<Person> metteCriteria(List<Person> persons); }
free-ice/ws-wss4j
ws-security-common/src/main/java/org/apache/wss4j/common/NamePasswordCallbackHandler.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 m...
Hanggansta/Nimble
src/shader_cache.cpp
<filename>src/shader_cache.cpp #include "shader_cache.h" #include "shader_library.h" namespace nimble { // ----------------------------------------------------------------------------------------------------------------------------------- void ShaderCache::shutdown() { for (auto& pair : m_library_cache) p...
mobile-club/adyen-api-js
test/model/NotificationRequestItemDetails.spec.js
/** * Adyen api * Operations about payments, recurring and payout * * OpenAPI spec version: 30 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.3.1 * * Do not edit the class manually. * */ (fun...
theusaf/mcfunction
lib/commands/replaceitem.js
const BaseCommand = require("../class/BaseCommand"), NullCommand = require("../class/NullCommand"), CommandNameOutput = require("../class/output/CommandNameOutput"), SelectorOutput = require("../class/output/SelectorOutput"), NumberOutput = require("../class/output/NumberOutput"), SlotOutput = require("../cla...
WhiteDOU/LeetCode
500.cpp
<gh_stars>1-10 class Solution { public: vector<string> findWords(vector<string> &words) { vector<char> v1 = {'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'}; set<char> row1(v1.begin(), v1.end()); vector<char> v2 = {'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'}; set<char> row2(v2.begin(), v2.end()); vecto...
IASA-GR/appdb-core
public/js/archive.js
var Endian = {BIG : 0,LITTLE : 1}; var ZipConstants = { LOCSIG: 0x04034b50, // "PK\003\004" LOCHDR: 30, // LOC header size LOCVER: 4, // version needed to extract LOCNAM: 26, // filename length EXTSIG: 0x08074b50, // "PK\007\008" EXTHDR: 16, // EXT header size CENSIG: 0x02014b50, /...
objectiser/overlord-commons
overlord-commons-ant/src/main/java/org/overlord/commons/ant/crypt/AesEncrypterTask.java
/* * Copyright 2014 JBoss 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 to i...
whskyneat/element-wheels-blog
web/app/plugins/quick-setup/js/gd-quick-setup.js
<filename>web/app/plugins/quick-setup/js/gd-quick-setup.js /*jslint nomen: true, plusplus: true, sloppy: true, vars: true, white: true, browser: true */ /** * Copyright 2013 Go Daddy Operating Company, LLC. All Rights Reserved. */ jQuery(document).ready(function($) { /* * Step 1 */ // Save the site type, th...
lechium/tvOS142Headers
System/Library/PrivateFrameworks/CoreRecognition.framework/CRColor.h
<gh_stars>1-10 /* * This header is generated by classdump-dyld 1.5 * on Tuesday, November 10, 2020 at 10:14:44 PM Mountain Standard Time * Operating System: Version 14.2 (Build 18K57) * Image Source: /System/Library/PrivateFrame...
openpreserve/plato
plato-model/src/main/java/eu/scape_project/planning/model/ResourceDescription.java
/******************************************************************************* * Copyright 2006 - 2012 Vienna University of Technology, * Department of Software Technology and Interactive Systems, IFS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
oxelson/gempak
gempak/source/diaglib/dg/dgcnrdt.c
<reponame>oxelson/gempak #include "dg.h" void dgc_nrdt ( const int *ifpn, const char *time1, const char *time2, const int *level1, const int *level2, const int *ivcord, const char *parm, float *grid, int *igx, int *igy, int *ighd, int *iret ) /***************************************************************...
ramonamela/compss
tests/sources/java/4_data_locality_basic/src/main/java/basicTest/DataLocality.java
package basicTest; public class DataLocality { private static int numTasks; private static String fileName; public static void main(String[] args) { // Check arguments if (args.length != 2) { System.out.println("[ERROR] Bad number of parameters"); System.out.print...
dynamicguy/ipf
archetypes/basic/src/main/resources/archetype-resources/src/main/java/SampleServer.java
<gh_stars>10-100 #set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) package ${package}; import org.apache.camel.spring.Main; public class SampleServer { public static void main(String[] args) throws Exception { Main.main("-ac", "/context.xml"); } }...
realkotob/phaser3-rex-notes
plugins/gameobjects/containerlite/ContainerLite.js
import Base from './Base.js'; import Methods from './Methods.js'; import { GetParent } from './GetParent.js'; class ContainerLite extends Base { constructor(scene, x, y, width, height, children) { super(scene, x, y, width, height); this.type = 'rexContainerLite'; this.isRexContainerLite = t...
nsmilyanski/Java-Fundamentals
src/Lists/lab/MergingLists.java
package Lists.lab; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; public class MergingLists { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); List<Integer> firstList = Arr...
valgur/OCP
opencascade/StepRepr_GlobalUncertaintyAssignedContext.hxx
<gh_stars>100-1000 // Created on: 1995-12-01 // Created by: EXPRESS->CDL V0.2 Translator // Copyright (c) 1995-1999 <NAME> // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under ...
hispindia/BIHAR-2.7
dhis-2/dhis-services/dhis-service-datamart-default/src/main/java/org/hisp/dhis/datamart/aggregation/cache/MemoryAggregationCache.java
package org.hisp.dhis.datamart.aggregation.cache; /* * Copyright (c) 2004-2012, University of Oslo * 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 re...
joaedwar/Tella-Android
mobile/src/main/java/rs/readahead/washington/mobile/domain/repository/IFeedbackRepository.java
<filename>mobile/src/main/java/rs/readahead/washington/mobile/domain/repository/IFeedbackRepository.java package rs.readahead.washington.mobile.domain.repository; import androidx.annotation.NonNull; import io.reactivex.Completable; import rs.readahead.washington.mobile.domain.entity.Feedback; public interface IFeed...
amaurirg/Web2Py
parameters_8080.py
<gh_stars>0 password="<PASSWORD>(1<PASSWORD>,20,<PASSWORD>"
abin-coding/baidu
src/utils/test/tprinter_test.cc
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #define private public #include "utils/tprinter.h" #include <glog/logging.h> #include <gtest/gtest.h> namespace tera { class TPrinterTest : public ::test...
teimurjan/teimurjan.github.io.development
src/templates/markdown/index.js
import React from 'react' import { Helmet } from 'react-helmet' import PropTypes from 'prop-types' import Layout from '../../components/layout' import { Container } from '../../components/container/index.styles' import { MarkdownTitle, MarkdownContent } from './index.styles' const MarkdownPage = ({ pageContext }) => {...
joeshannon/mockito
src/main/java/org/mockito/listeners/MockitoListener.java
/* * Copyright (c) 2016 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.listeners; /** * Marker interface for all types of Mockito listeners. * For more information, see {@link org.mockito.MockitoFramework#addListener(MockitoListener)}. */ public i...
pip-services3-go/pip-services3-expressions-go
tokenizers/TokenType.go
package tokenizers // Types (categories) of tokens such as "number", "symbol" or "word". const ( Unknown = iota Eof Eol Float Integer HexDecimal Number Symbol Quoted Word Keyword Whitespace Comment Special )
antonmedv/year
packages/2013/09/23/index.js
<gh_stars>1-10 module.exports = new Date(2013, 8, 23)
tonypilz/global-instances-access
devel/examples/globalDependency.h
#pragma once #include <src/globalInstances.h> #include <iostream> namespace dependency { struct A { A(); int val = 4; }; struct B { B(); int val = 5; }; A::A(){ global::instance<B>().ifAvailable([this](B& b){ std::cout<<"a is using value of b:" << b.val << "\n";}); } B::B(){ glo...
Exynos7580/android_hardware_samsung_slsi_exynos7580
mobicore/ClientLib/include/mcUuid.h
<reponame>Exynos7580/android_hardware_samsung_slsi_exynos7580<gh_stars>1-10 /* * Copyright (c) 2013-2015 TRUSTONIC LIMITED * 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. Redistribut...
pymma/drools47jdk8
experimental/drools-testing/src/org/drools/testing/core/model/RuleFiredAssertion.java
package org.drools.testing.core.model; public class RuleFiredAssertion implements IAssertion { private String ruleName; private boolean atLeastOnce = false; private int expectedFiredCount; private int actualFiredCount; private boolean success; }
abel1502/mipt_1s
SoftLang/dsl/stmttypes.dsl.h
DEF_TYPE(Compound) DEF_TYPE(Return) DEF_TYPE(Loop) DEF_TYPE(Cond) DEF_TYPE(VarDecl) DEF_TYPE(Expr) DEF_TYPE(Empty)
CertainLach/padla
java-commons/src/main/java/ru/progrm_jarvis/javacommons/bytecode/package-info.java
/** * Utilities related to JVM bytecode. */ package ru.progrm_jarvis.javacommons.bytecode;
opinary/gg-ez-vp
src/helpers/preloadIcons.js
export default function preloadIcons(iconsList, base = '.') { iconsList?.forEach(iconName => { const img = new Image(); img.src = `${base}/icons/${iconName}.svg`; }); }
fioresoft/NO5
NO5TL/containers.h
<reponame>fioresoft/NO5<filename>NO5TL/containers.h<gh_stars>1-10 // containers.h: interface for the containers class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_CONTAINERS_H__1AB52C89_927C_11D7_A17A_F575EA193B2C__INCLUDED_) #define AFX_CONTAINERS_H__1AB52C89_927C_1...
Sweetist/cangaroo
app/interactors/cangaroo/perform_flow.rb
module Cangaroo class PerformFlow include Interactor::Organizer organize ValidateJsonSchema, CountJsonObject, PerformJobs end end
otseobande/Book-A-Meal
client/src/components/PageNotFound/PageNotFound.js
import React from 'react'; import lost from '../../../assets/img/lost.svg'; import styles from './pagenotfound.scss'; const PageNotFound = () => ( <div className={styles.background}> <div className={styles.notFound}> <img src={lost} width="150" alt="not found" className={sty...
natpenguin/neo4j-ogm
neo4j-ogm-tests/neo4j-ogm-integration-tests/src/test/java/org/neo4j/ogm/utils/RelationshipUtilsTest.java
<gh_stars>0 /* * Copyright (c) 2002-2022 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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:/...
ford442/SDL2
src/test/SDL_test_memory.c
<filename>src/test/SDL_test_memory.c /* Simple DirectMedia Layer Copyright (C) 1997-2019 <NAME> <<EMAIL>> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to...
mwwx/ignite
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/schema/CacheTableImpl.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 ...
bogolla/mfl_api
chul/tests/test_models.py
from django.test import TestCase from model_mommy import mommy from ..models import ( CommunityHealthUnit, CommunityHealthWorker, CommunityHealthWorkerContact, Status, CommunityHealthUnitContact, Approver, CommunityHealthUnitApproval, CommunityHealthWorkerApproval, ApprovalStatus )...
vtfn/tolb
src/list/_internal/slice.js
<reponame>vtfn/tolb /* eslint-disable no-param-reassign */ export default function slice(start, end, list) { const length = list.length; if (end == null) end = length; if (typeof list === 'string') return list.slice(start, end); if (end < 0) end = length + end; if (end > length) end = length; if (star...
laserhenry/iStartalk-ios
libqimcommon-ios/QIMCommon/QIMKit/QIMKit+QIMMiddleVirtualAccountManager.h
<filename>libqimcommon-ios/QIMCommon/QIMKit/QIMKit+QIMMiddleVirtualAccountManager.h // // QIMKit+QIMMiddleVirtualAccountManager.h // QIMCommon // // StarTalk IMSDK-iOS // // Created by Lucas on 11/29/18. // Copyright © 2018 QIM. All rights reserved. // Copyright © 2021 StarTalk Limited. All rights reserved. // ...
shishuihao/third-party-api
third-party-api-push/src/main/java/cn/shishuihao/thirdparty/api/push/properties/package-info.java
/** * push properties. * * @author shishuihao * @version 1.0.0 */ package cn.shishuihao.thirdparty.api.push.properties;
lenxin/spring-security
web/src/main/java/org/springframework/security/web/jackson2/DefaultSavedRequestMixin.java
package org.springframework.security.web.jackson2; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import org.springframework.security.web.savedrequest.DefaultSavedRequest; /** * Jackson m...