repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
mmontes11/iot | packages/biot/src/controllers/bot/authController.js | <gh_stars>10-100
import _ from "underscore";
import config from "../../config";
import errorMessages from "../../utils/errorMessages";
export class AuthController {
constructor(telegramBot) {
this.bot = telegramBot;
this.usersWhileList = config.telegramUsersWhiteList;
}
isAuthorized(msg) {
const user... |
OptimalBPM/qal | qal/tools/gui/frame_dataset_xpath.py | """
Created on Jan 26, 2014
@author: <NAME>
"""
import os
from qal.common.strings import empty_when_none
from qal.dataset.flatfile import FlatfileDataset
from qal.dataset.xpath import XpathDataset
from qal.tools.gui.frame_dataset_custom import FrameCustomFileDataset
from tkinter import Button, messagebox, SUNKEN, ttk,... |
enthought/traits-futures | docs/source/guide/examples/simple_blocking_call.py | <reponame>enthought/traits-futures
# (C) Copyright 2018-2021 Enthought, Inc., Austin, TX
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in LICENSE.txt and may be redistributed only under
# the conditions described in the aforementioned license. The li... |
ppasmanik01/aws-lambda-stream | test/unit/flavors/materialize.test.js | <gh_stars>0
import 'mocha';
import { expect } from 'chai';
import sinon from 'sinon';
import {
initialize, initializeFrom,
ttl,
} from '../../../src';
import { toKinesisRecords, fromKinesis } from '../../../src/from/kinesis';
import { updateExpression, timestampCondition } from '../../../src/utils/dynamodb';
imp... |
502627670/needle-store | booking-admin/src/main/java/org/needle/bookingdiscount/admin/repository/GoodsSpecificationRepository.java | package org.needle.bookingdiscount.admin.repository;
import java.util.List;
import org.needle.bookingdiscount.domain.product.GoodsSpecification;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface GoodsSpecificationRepository e... |
lgarciaaco/machina-api | business/broker/testbinance.go | package broker
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"github.com/lgarciaaco/machina-api/business/broker/encode"
)
// TestBinance manages calls to binance test api v3 if the endpoint
// has an test api. C... |
clevergy1/hs | js/app/Impianti/Operators/ManageParkingRepeater.js | /*
Impianti Operators Manage Parking Repeaters
------------------------------------------*/
$(function () {
$(document).ready(function () {
var $ParkAltitude;
ReadParking();
loadRepeaters();
setlanguage();
function ReadParking() {
var req = $.DataAc... |
CS2113-AY1819S1-W13-4/addressbook-level4 | src/test/java/seedu/address/logic/commands/AddCommandIntegrationTest.java | <reponame>CS2113-AY1819S1-W13-4/addressbook-level4
package seedu.address.logic.commands;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.address.testutil.TypicalBooks.getTypicalBookInve... |
hao-wang/Montage | js-test-suite/testsuite/1ef3e819a309ab4f4c0276cd107a2bd6.js | <filename>js-test-suite/testsuite/1ef3e819a309ab4f4c0276cd107a2bd6.js<gh_stars>10-100
load("201224b0d1c296b45befd2285e95dd42.js");
/* test Map.prototype.forEach */
load("19d7bc83becec11ee32c3a85fbc4d93d.js");
load("e2c808509c360663d6364e14c187fc8f.js");
// testing success conditions of Map.prototype.forEach
var test... |
billewanick/corteza-server | system/rest/request/queues.go | package request
// This file is auto-generated.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// Definitions file that controls how this file is generated:
//
import (
"encoding/json"
"fmt"
"github.com/cortezaproject/corteza-server/pkg/messagebus"
"gith... |
e-taka/xmlbeans | test/src/xmlobject/extensions/interfaceFeature/averageCase/existing/FooHandler.java | /* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
lucashsouza/Desafios-Python | CursoEmVideo/Aula17/ex081.py | print('=' * 30)
print('{:^30}'.format('Lista'))
print('=' * 30)
print('')
lista = []
c = 1
while True:
n = int(input(f'{c}° Valor: '))
resp = str(input('Continuar (S/N): ')).upper().strip()
print('')
lista.append(n)
if resp == 'S':
c += 1
else:
print('=' * 3... |
Clay-Ferguson/Quantizr | src/main/java/quanta/response/GetNodeStatsResponse.java | package quanta.response;
import java.util.ArrayList;
import quanta.response.base.ResponseBase;
public class GetNodeStatsResponse extends ResponseBase {
private String stats;
private ArrayList<String> topWords;
private ArrayList<String> topTags;
private ArrayList<String> topMentions;
pu... |
DronMDF/goost | goost/magma/SboxByte64Tab.cpp | // Copyright (c) 2017-2021 <NAME> <<EMAIL>>
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#include "SboxByte64Tab.h"
using namespace std;
using namespace goost::magma;
SboxByte64Tab::SboxByte64Tab(const vector<uint8_t> &uz, int offset)
... |
namuan/dev-rider | app/core/constants.py | from PyQt5.QtCore import Qt
TOOLS_COMBO_ROLE = Qt.UserRole + 100
DEVTOOLS_COMBO_NAME = "DevTools"
|
Snackhole/PyFifth | Interface/Dialogs/EditInitiativeEntryDialog.py | import copy
from PyQt5 import QtCore
from PyQt5.QtWidgets import QDialog, QGridLayout, QLabel, QMessageBox, QPushButton, QSpinBox
from Interface.Widgets.CenteredLineEdit import CenteredLineEdit
from Interface.Widgets.ToggleButtons import AliveButton, TurnTakenButton
class EditInitiativeEntryDialog(QDialog):
def... |
baviera08/romi-dashboard | packages/api-server/api_server/models/test_tasks.py | import unittest
from itertools import product
from pydantic import ValidationError
from rmf_task_msgs.msg import TaskType as RmfTaskType
from .tasks import SubmitTask
class TestSubmitTaskModel(unittest.TestCase):
def test_validate_task_description(self):
clean_desc = {"cleaning_zone": "test_zone"}
... |
BearerPipelineTest/sourcegraph | internal/codeintel/symbols/service.go | <reponame>BearerPipelineTest/sourcegraph
package symbols
import (
"context"
"github.com/sourcegraph/sourcegraph/internal/codeintel/symbols/internal/store"
"github.com/sourcegraph/sourcegraph/internal/codeintel/symbols/shared"
"github.com/sourcegraph/sourcegraph/internal/observation"
"github.com/sourcegraph/sourc... |
SWuchterl/cmssw | ElectroWeakAnalysis/ZMuMu/test/old/zToMuMuBackgroundAnalysis.py | from __future__ import print_function
import FWCore.ParameterSet.Config as cms
import copy
process = cms.Process("ZToMuMuBackgroundAnalysis")
process.include("FWCore/MessageLogger/data/MessageLogger.cfi")
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(True)
)
process.maxEvents = cms.untr... |
geogriff/wwwjdic | wwwjdic/src/org/nick/wwwjdic/ExampleSearchFragment.java | package org.nick.wwwjdic;
import org.nick.wwwjdic.history.HistoryDbHelper;
import org.nick.wwwjdic.model.SearchCriteria;
import org.nick.wwwjdic.utils.StringUtils;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.Layout... |
hariharanragothaman/Learning-STL | algorithms/binarySearch/binarySearch.cpp | <gh_stars>1-10
/*
Some General Advice
REMEMBER CLEAR GLOBAL STATE
REMEMBER READ THE PROBLEM STATEMENT AND DON'T SOLVE A DIFFERENT PROBLEM
remember hidden T factor of 1e2
read the bounds for stupid cases
did you restart your editor
pushing back vectors is garbage, pre-initialize them
func... |
njonsson/htty | lib/htty/cli/commands/cookies_remove_all.rb | require 'htty'
# Encapsulates the _cookies-remove-all_ command.
class HTTY::CLI::Commands::CookiesRemoveAll < HTTY::CLI::Command
# Returns the name of a category under which help for the _cookies-remove-all_
# command should appear.
def self.category
'Building Requests'
end
# Returns the help text for ... |
mboperator/js-ipfs | src/core/components/dns.js | <reponame>mboperator/js-ipfs<gh_stars>1-10
'use strict'
// dns-nodejs gets replaced by dns-browser when webpacked/browserified
const dns = require('../runtime/dns-nodejs')
const callbackify = require('callbackify')
function fqdnFixups (domain) {
// Allow resolution of .eth names via .eth.link
// More context at t... |
gourmetjs/gourmet-ssr | contrib/react-i80/gmsrc/index.client.js | <filename>contrib/react-i80/gmsrc/index.client.js
"use strict";
const parseHref = require("@gourmet/parse-href");
const Router = require("./Router");
const ActiveRoute = require("./ActiveRoute");
const Link = require("./Link");
class ClientRouter extends Router {
setRenderer(renderer) {
this.renderer = renderer... |
jadarve/lluvia-docs | static/api/cpp/search/related_0.js | var searchData=
[
['computenode_863',['ComputeNode',['../classll_1_1ImageView.html#a07a1e2fed4b858385051df49020b2da4',1,'ll::ImageView']]]
];
|
kubermatic/go-kubermatic | client/operations/create_o_id_c_kubeconfig_responses.go | <filename>client/operations/create_o_id_c_kubeconfig_responses.go
// Code generated by go-swagger; DO NOT EDIT.
package operations
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"io"
"github.com/go-openapi/runtim... |
leusonmario/2022PhDThesis | webbit/74d2d2b87704d003acacb34e4ca8fb5f897b938f/randoop_5/RegressionTest27.java | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest27 {
public static boolean debug = false;
@Test
public void test13501() throws Throwable {
if (debug)
System.out.for... |
BaptisteLafoux/free_swim_illum_var | utils/fasttrack2xarray.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 22 16:48:57 2021
This script clean data from FastTrack analysis to crate an Xarray object that is saved inside an twin folder, in a .nc file
@author: baptistelafoux
"""
#### WARNING : TO DO - Slide light signal time basis to account for differen... |
HansBug/hbutils | test/reflection/test_func.py | <reponame>HansBug/hbutils<filename>test/reflection/test_func.py
import inspect
import io
from functools import wraps
from typing import Callable, Any, Union, Optional, List, Tuple
import pytest
from hbutils.reflection import args_iter, dynamic_call, static_call, post_process, pre_process, freduce, raising, \
warn... |
karaulyanovsap/scimono | scimono-client/src/main/java/com/sap/scimono/client/authentication/OauthTokenProperties.java | package com.sap.scimono.client.authentication;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.Instant;
import static java.time.temporal.ChronoUnit.SECONDS;
@JsonIgnoreProperties... |
3Ution-BK/ModelViewer | ModelViewer/Event/KeyboardCode.hpp | <reponame>3Ution-BK/ModelViewer<filename>ModelViewer/Event/KeyboardCode.hpp
#ifndef MODELVIEWER_EVENT_KEYBOARDCODE_HPP_
#define MODELVIEWER_EVENT_KEYBOARDCODE_HPP_
#include "OpenGL/OpenGLLib.hpp"
namespace Event
{
/**
* \brief Represent the available keycode of the keyboard.
*
* The enum storage is the same as th... |
sensebox/remote-sensebox-react | src/Components/Blockly/blocks/index.js | import './loops';
import './sensebox';
import './logic';
import './sensebox-sensors';
import './sensebox-display';
import './sensebox-led';
import './text';
import './serial';
import './math';
import './map';
import './procedures';
import './time';
import './variables';
import './lists';
import '../helpers/types' |
sffc/fuchsia-clone | src/media/audio/lib/simple-codec/tests/test.cc | // Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <lib/simple-codec/simple-codec-client.h>
#include <lib/simple-codec/simple-codec-server.h>
#include <lib/sync/completion.h>
#include <sdk/lib/ins... |
webx-top/dbx | db_ex.go | //Package db Copyright (c) 2012-present upper.io/db authors. All rights reserved.
//Package db Copyright (c) 2017-present <NAME>. All rights reserved.
package db
import (
"context"
"fmt"
"sync"
)
func NewKeysValues() *KeysValues {
return &KeysValues{}
}
type KeysValues struct {
keys []string
... |
LuisFLCCQ/base_cod_java | c3.unicap.br.almir.ip1/test/ip2/main.java | <filename>c3.unicap.br.almir.ip1/test/ip2/main.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ip2;
import java.util.Scanner;
/**
*
* @author user
*/
public class ma... |
42voyager/c4b-backend | api/documentation/search/functions_7.js | var searchData=
[
['iscnpj_0',['IsCnpj',['../classbackend_1_1Attributes_1_1CustomCPFAttribute.html#a5a08abff2d09fbc256f2608cbaa27ae0',1,'backend::Attributes::CustomCPFAttribute']]],
['iscpf_1',['IsCpf',['../classbackend_1_1Attributes_1_1CustomCPFAttribute.html#a2bf27689023775b1301ac60012788cbd',1,'backend::Attribut... |
408794550/871AR | Temp/il2cppOutput/il2cppOutput/AssemblyU2DCSharp_Lean_Touch_LeanRotate827445339.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "UnityEngine_UnityEngine_MonoBehaviour1158329972.h"
#include "UnityEngine_UnityEngine_Vector32243707580.h"
// Lean.Touch.LeanSelectable
struct LeanSelectable_t3692576450;
//... |
Fried-Chicken/momo | packages/momo-cli-generators/src/generators/componentFunctionGenerator/index.js | <gh_stars>1-10
module.exports = require('./componentFunctionGenerator');
|
skillsapphire/blueseer | src/com/blueseer/fgl/ReconAccount.java | /*
The MIT License (MIT)
Copyright (c) <NAME> "VCSCode"
All rights reserved.
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 rights... |
solitary-s/JavaStudy | src/main/java/com/aloneness/java/design/simple/factroy/ConcreteProduct1.java | <reponame>solitary-s/JavaStudy
package com.aloneness.java.design.simple.factroy;
public class ConcreteProduct1 implements Product{
}
|
qhanam/Pangor | js-classify/src/ca/ubc/ece/salt/pangor/analysis/errorhandling/ErrorHandlingCheck.java | package ca.ubc.ece.salt.pangor.analysis.errorhandling;
import java.util.List;
import org.mozilla.javascript.ast.AstNode;
import ca.ubc.ece.salt.pangor.analysis.scope.Scope;
/**
* Stores the information from a potential exception handling repair.
*/
public class ErrorHandlingCheck {
public Scope<AstNode> scope;
... |
xxh160/alley-server | src/main/java/com/edu/nju/alley/controller/PostController.java | package com.edu.nju.alley.controller;
import com.edu.nju.alley.dto.CommentDTO;
import com.edu.nju.alley.dto.PostDTO;
import com.edu.nju.alley.service.PostService;
import com.edu.nju.alley.vo.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annot... |
Sanderson239/stock-market-tracker-api | src/controllers/daily_stock_info.js | 'use strict';
const knex = require('../../knex.js');
const { decamelizeKeys, camelizeKeys } = require('humps');
class DailyStockInfo {
getDailyStockInfo() {
return knex('daily_stock_info')
.orderBy('daily_stock_info_id')
.then((result) => camelizeKeys(result));
}
getDailyStockInfoById(daily_sto... |
jjsendor/surveylance | surveylance-web/src/main/webapp/js/jstorm/JStORM.Events.js | JStORM.Events = function()
{
this.$events = {};
}
JStORM.Events.prototype =
{
addListener:function(name,fn)
{
this.$events[name] = this.$events[name] || [];
this.$events[name].push(fn);
return this;
},
removeListener:function(name,fn)
{
if(this.$events[name])
this.$events[name].remove(... |
bestari30/manajemen-data-pelaporan | src/pages/mahasiswa/EditMahasiswa.js | import { React, useState, useEffect } from "react";
import { useHistory } from "react-router-dom";
import {
Grid,
Button,
TextField,
Select,
MenuItem,
InputLabel,
CircularProgress,
} from "@material-ui/core";
// components
import PageTitle from "../../components/PageTitle/PageTitle";
import { getMahasis... |
y2ghost/study | java/spring/src/main/java/study/ywork/spring/provider/FirstBean.java | <gh_stars>0
package study.ywork.spring.provider;
public class FirstBean {
public void doSomething() {
System.out.println("在FirstBean里面");
}
}
|
StefanLB/JS-Advanced-September-2019 | Lectures-And-Exercises/06.JS-Advanced-DOM-Manipulations-Lab/07. Dynamic-Validation/app.js | <reponame>StefanLB/JS-Advanced-September-2019<filename>Lectures-And-Exercises/06.JS-Advanced-DOM-Manipulations-Lab/07. Dynamic-Validation/app.js
function validate() {
const pattern = /^[a-z]+@[a-z]+\.[a-z]+$/g;
const email = document.getElementById('email');
email.addEventListener('change',checkEmail);
... |
wkoszek/book-programming-ruby | src/ex0278.rb | # Sample code from Programing Ruby, page 112
module D
def initialize(name)
@name =name
end
def to_s
@name
end
end
module Debug
include D
def who_am_i?
"#{self.class.name} (\##{self.id}): #{self.to_s}"
end
end
class Phonograph
include Debug
# .... |
consulo/consulo-dotnet | msil-psi-impl/src/main/java/consulo/msil/lang/psi/impl/MsilVisitor.java | /*
* Copyright 2013-2014 must-be.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
jdavidberger/libsurvive | include/libsurvive/survive.h | #ifndef _SURVIVE_H
#define _SURVIVE_H
#include "assert.h"
#include "poser.h"
#include "survive_types.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _MSC_VER
#define SURVIVE_EXPORT_CONSTRUCTOR SURVIVE_EXPORT
#else
#define SURVIVE_EXPO... |
byronwong-dev/vue-datepicker | tests/unit/components/VDPicker/utils/PickerDate.spec.js | import dayjs from 'dayjs';
import mockDate from 'mockdate';
import 'dayjs/locale/fr';
import { en, fr, es } from '@/locale';
import PickerDate from '@/components/VDPicker/utils/PickerDate';
describe('Dates: Functions', () => {
let todaysDate;
let dummyDate;
let newDate;
beforeEach(() => {
todaysDate = n... |
da-ferreira/ed-java | 07 - Fila/src/tests/NodeQueueTest.java | <filename>07 - Fila/src/tests/NodeQueueTest.java
package tests;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import fila.EmptyQueueException;
import fila.NodeQueue;
class NodeQueueTest {
Object o;
static final NodeQueue<Integer> a = new NodeQueue<Integer>();
@Test
void t... |
crazypoo/TumblrTable | Pods/PooTools/PooTools/SecurityUtil.h | //
// SecurityUtil.h
// Smile
//
// Created by apple on 15/8/25.
// Copyright (c) 2015年 Weconex. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "LGTMBase64.h"
@interface SecurityUtil : NSObject
#pragma mark - base64
/*! @brief 字符串加密(Base64)
*/
+ (NSString*)encodeBase64String:(NSString *)inpu... |
xiahongjian/boot-blog | src/main/java/tech/hongjian/blog/frm/aop/AccessLogProcessor.java | package tech.hongjian.blog.frm.aop;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.reflect.CodeSignature;
import org.springframework.b... |
daidi-double/_new_YWB | YuWa/YuWa/Contents/storm/Controller/ShopmodelTableViewCell.h | <reponame>daidi-double/_new_YWB
//
// ShopmodelTableViewCell.h
// YuWa
//
// Created by double on 17/6/30.
// Copyright © 2017年 Shanghai DuRui Information Technology Company. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ShopmodelTableViewCell : UITableViewCell
@property (nonatomic,strong)UILabel * f... |
henrytien/AlgorithmSolutions | leetcode/278.first_bad_version/278.FirstBadVersion_zhangsl.go | <reponame>henrytien/AlgorithmSolutions
// Source : https://leetcode.com/problems/first-bad-version/
// Author : zhangsl
// Date : 2020-07-27
package main
import "math"
/*****************************************************************************************************
*
* You are a product manager and currently... |
PasaLab/SparkDQ | sparkdq/repairs/transformers/replacers/RegexReplacer.py | from sparkdq.repairs.transformers.replacers.Replacer import Replacer
from pyspark.sql.functions import col
class RegexReplacer(Replacer):
def __init__(self, column, pattern, way, value=None, negative=False):
super(RegexReplacer, self).__init__(column, way, value)
self.pattern = pattern
s... |
fkorotkov/buck | src-gen/com/facebook/buck/distributed/thrift/MinionRequirements.java | /**
* Autogenerated by Thrift Compiler (0.10.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.facebook.buck.distributed.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thrift ... |
webdevhub42/Lambda | WEEKS/REFACTORED-PROj/JS-Exercise-Prototype/__tests__/index.test.js | import functions from "../index";
describe("fooFunction", () => {
it("foo returns foo", () => {
expect(functions.foo()).toBe("bar");
});
});
describe("Instances of Person", () => {
let neo;
const foods = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
beforeEach(() => {
neo = new functions.Person("Neo", 20);
});... |
liveqmock/platform-tools-idea | platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/GeneralHighlightingPass.java | <reponame>liveqmock/platform-tools-idea<gh_stars>1-10
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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/LICEN... |
pandorasbox110/myedge | public/js/dashboard/teacher.js | $(document).ready(function() {
checkStat();
task();
});
function checkStat(){
//for deleted stat
stat=$('#usersta').val();
if(stat == 1){//delete
showWarningAlert('Warning','Your account is deleted, Thank you');
window.location.href = '/logout';
}
// status
stat2... |
zettadb/zettalib | src/vendor/mariadb-10.6.7/storage/mroonga/vendor/groonga/lib/column.c | /* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2016 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation.
This library is distributed in the hope that it will be ... |
rifflearning/jitsi-meet-mobile | react/features/riff-dashboard-page/src/redux/listeners/webrtc.js | <reponame>rifflearning/jitsi-meet-mobile
/* ******************************************************************************
* webrtc.js *
* *************************************************************************/ /**
*
* @fileoverview Create a webr... |
JackTan25/matrixone | pkg/vm/engine/tae/tables/tables_test.go | <reponame>JackTan25/matrixone
// Copyright 2021 Matrix Origin
//
// 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 b... |
Yukun99/tp | src/main/java/seedu/notor/logic/executors/exceptions/ExecuteException.java | package seedu.notor.logic.executors.exceptions;
/**
* Represents a parse error encountered by a parser.
*/
public class ExecuteException extends Exception {
public ExecuteException(String message) {
super(message);
}
public ExecuteException(String message, Throwable cause) {
super(messa... |
webguru001/Python-Django-Web | Tan_ShinYi/Assignments/Python_Fundamentals/Average_List.py | <filename>Tan_ShinYi/Assignments/Python_Fundamentals/Average_List.py
a = [1, 2, 5, 10, 255, 3]
total=0
for i in range(len(a)):
total += a[i]
print total/len(a)
'''
for count in a[0:6]:
total += a[count]
print count/len(a)
'''
|
openharmony-gitee-mirror/app_samples | CompleteApps/DistributedShoppingCart/entry/src/main/java/ohos/samples/distributedshoppingcart/provider/ProductListProvider.java | <reponame>openharmony-gitee-mirror/app_samples
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.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... |
pnlbwh/BRAINSTools | ARCHIVE/BRAINSSurfaceTools/BRAINSSurfaceStat/BRAINSSurfaceStat.cxx | <reponame>pnlbwh/BRAINSTools
/*=========================================================================
*
* Copyright SINAPSE: Scalable Informatics for Neuroscience, Processing and Software Engineering
* The University of Iowa
*
* Licensed under the Apache License, Version 2.0 (the "License");
* yo... |
mbatc/ctools | modules/platform/include/file/ctFilename.h | <filename>modules/platform/include/file/ctFilename.h
// -----------------------------------------------------------------------------
// The MIT License
//
// Copyright(c) 2020 <NAME>,
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation... |
juliansangillo/nbg-unity-sdk | docs/html/d0/de4/class_naughty_biker_games_1_1_s_d_k_1_1_adapters_1_1_scene_utility_adapter.js | var class_naughty_biker_games_1_1_s_d_k_1_1_adapters_1_1_scene_utility_adapter =
[
[ "GetScenePathByBuildIndex", "d0/de4/class_naughty_biker_games_1_1_s_d_k_1_1_adapters_1_1_scene_utility_adapter.html#a7df3438e687226adeb86c47d98d72fb7", null ]
]; |
tapted/luci-go | resultdb/cmd/recorder/create_test_exoneration_test.go | <filename>resultdb/cmd/recorder/create_test_exoneration_test.go<gh_stars>0
// Copyright 2019 The LUCI 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... |
icyphox/x | cloudx/http_client.go | <reponame>icyphox/x
package cloudx
import (
"net/http"
"time"
)
type tokenTransporter struct {
http.RoundTripper
token string
}
func (t *tokenTransporter) RoundTrip(req *http.Request) (*http.Response, error) {
if t.token != "" {
req.Header.Set("Authorization", "Bearer "+t.token)
}
return t.RoundTripper.Roun... |
tudorv91/SparkJNI | core/src/main/java/sparkjni/utils/cpp/methods/EmptyCppConstructor.java | <reponame>tudorv91/SparkJNI
/**
* Copyright 2016 <NAME> and <NAME>, TUDelft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... |
Unkorunk/android-multiplayer-game | network/src/ru/timelimit/network/ConnectResponse.java | <filename>network/src/ru/timelimit/network/ConnectResponse.java
package ru.timelimit.network;
public class ConnectResponse extends Response {
public String accessToken;
}
|
zhipengzhaocmu/fpga2022_artifact | pigasus/software/src/stream/libtcp/tcp_segment_descriptor.h | <gh_stars>0
//--------------------------------------------------------------------------
// Copyright (C) 2015-2018 Cisco and/or its affiliates. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License Version 2 as published
... |
meandmax/flow-typed | definitions/npm/http-codes_v1.x.x/test_http-codes_v1.x.x.js | <filename>definitions/npm/http-codes_v1.x.x/test_http-codes_v1.x.x.js
import HttpCodes from 'http-codes';
(HttpCodes.IM_A_TEAPOT: 418)
// $FlowExpectedError
const x: 500 = HttpCodes.NOT_FOUND;
|
j-channings/rust-bindgen | tests/headers/whitelisted-item-references-no-partialeq.hpp | <filename>tests/headers/whitelisted-item-references-no-partialeq.hpp
// bindgen-flags: --with-derive-partialeq --whitelist-type "WhitelistMe" --no-partialeq "NoPartialEq"
struct NoPartialEq {};
class WhitelistMe {
NoPartialEq a;
};
|
golem131/akka | akka-docs/rst/common/code/docs/circuitbreaker/CircuitBreakerDocSpec.scala | <filename>akka-docs/rst/common/code/docs/circuitbreaker/CircuitBreakerDocSpec.scala
/**
* Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com>
*/
package docs.circuitbreaker
//#imports1
import scala.concurrent.duration._
import akka.pattern.CircuitBreaker
import akka.pattern.pipe
import akka.actor.{ Ac... |
dariol83/reatmetric | eu.dariolucia.reatmetric.processing/src/main/java/eu/dariolucia/reatmetric/processing/definition/ParameterSetterDefinition.java | <filename>eu.dariolucia.reatmetric.processing/src/main/java/eu/dariolucia/reatmetric/processing/definition/ParameterSetterDefinition.java<gh_stars>10-100
/*
* Copyright (c) 2020 <NAME> (https://www.dariolucia.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except... |
dinolinjob/opencollective-frontend | styleguide/mocks/payout-methods.js | export const payoutMethodPaypal = {
id: '4a5af568-5232-11ea-8d77-2e728ce88125',
type: 'PAYPAL',
data: {
email: '<EMAIL>',
},
};
export const payoutMethodOther = {
id: 'cab7f950-5231-11ea-8d77-2e728ce88125',
type: 'OTHER',
data: {
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ... |
JuGoo/android-library | urbanairship-core/src/test/java/com/urbanairship/UrbanAirshipProviderTest.java | /* Copyright Airship and Contributors */
package com.urbanairship;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import org.junit.Before;
import org.junit.Test;
import org.robolectric.RuntimeEnvironment;
import org.robolectric.an... |
eaglezzb/rsdc | Sankore-3.1/src/domain/UBItem.h | <filename>Sankore-3.1/src/domain/UBItem.h
/*
* Copyright (C) 2010-2013 Groupement d'Intérêt Public pour l'Education Numérique en Afrique (GIP ENA)
*
* This file is part of Open-Sankoré.
*
* Open-Sankoré is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License ... |
rajvijen/Industry-Visit-Planning-and-Booking | searchBar/chat/consumers.py | <reponame>rajvijen/Industry-Visit-Planning-and-Booking<gh_stars>0
from django.conf import settings
# from datetime import datetime
from channels.generic.websocket import AsyncJsonWebsocketConsumer
# from django.contrib.auth.models import User
from .exceptions import ClientError
from .utils import get_room_or_error
#... |
0sidamingbu0/node | src/main/java/com/mydreamplus/smartdevice/service/WebSocketService.java | <reponame>0sidamingbu0/node
package com.mydreamplus.smartdevice.service;
import com.mydreamplus.smartdevice.domain.EventLog;
import com.mydreamplus.smartdevice.domain.PingDto;
import com.mydreamplus.smartdevice.domain.message.Greeting;
import com.mydreamplus.smartdevice.util.JsonUtil;
import org.springframework.beans.... |
cnds/wxdemo | authorization/apps/base.py | <reponame>cnds/wxdemo<filename>authorization/apps/base.py
from flask.views import MethodView
from jybase import RedisBase
from jybase.utils import UtilBase, RequestEndpoint
from config import config
class BaseHandler(MethodView, UtilBase):
def __init__(self):
super(BaseHandler, self).__init__()
s... |
spittfree/camel | components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/actuate/health/CamelHealthCheckIndicator.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... |
srcarter3/awips2 | cave/com.raytheon.viz.gfe/python/autotest/RoutineLevel3_2_TestScript.py | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to ... |
willp-bl/verify-frontend | lib/analytics/reporter.rb |
module Analytics
class Reporter
def initialize(client, site_id)
@client = client
@site_id = site_id
end
def report_event(request, custom_variables, event_category, event_name, event_action)
event = {
'e_c' => event_category,
'e_n' => event_name,
'e_a' => e... |
phshaikh/fboss | fboss/agent/hw/bcm/tests/BcmTestUtils.cpp | /*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... |
bietje/etaos-site | docs/search/typedefs_62.js | var searchData=
[
['bool',['bool',['../include_2etaos_2types_8h.html#a97a80ca1602ebf2303258971a2c938e2',1,'types.h']]]
];
|
Piyusha23/IAFEMesh | Programs/FEMeshView/Resources/vtkSlicerMouseModeToolbar_ImageData.h | <reponame>Piyusha23/IAFEMesh
/*
* Resource generated for file:
* MouseDefineROIDisabled.png (zlib, base64) (image file)
*/
static const unsigned int image_MouseDefineROIDisabled_width = 21;
static const unsigned int image_MouseDefineROIDisabled_height = 21;
static const unsigned int image_Mou... |
dean-s-oliver/4DSEIS | _site/git/tmp-objdir.c | #include "cache.h"
#include "tmp-objdir.h"
#include "dir.h"
#include "sigchain.h"
#include "string-list.h"
#include "strbuf.h"
#include "argv-array.h"
#include "quote.h"
#include "object-store.h"
struct tmp_objdir {
struct strbuf path;
struct argv_array env;
};
/*
* Allow only one tmp_objdir at a time in a running... |
zhiming-shen/Xen-Blanket-NG | linux-kernel/linux-3.4.53-blanket/arch/arm/mach-lpc32xx/clock.c | /*
* arch/arm/mach-lpc32xx/clock.c
*
* Author: <NAME> <<EMAIL>>
*
* Copyright (C) 2010 NXP Semiconductors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licen... |
jimrhoskins/stevedore | app/models/repository.rb | <filename>app/models/repository.rb
class Repository < ActiveRecord::Base
has_many :repository_images, -> { order "idx" }
has_many :images, through: :repository_images
has_many :tokens
has_many :tags
def to_param
name
end
def self.put(name, images_json)
repo = find_or_create_by(name: name)
i... |
RakeshShrestha/kigs | framework/ImGui/Headers/ImGuiCustom.h | #pragma once
#include "imgui.h"
#include "imgui_internal.h"
#include "CoreSTL.h"
namespace ImGui
{
bool TextureButton(const std::string& texture_name, ImVec2 size = ImVec2(0, 0), const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), con... |
broadinstitute/thelma | internal/thelma/render/helmfile/stateval/stateval.go | <reponame>broadinstitute/thelma
// Package stateval is used for generating Helmfile state values.
// State values are consumed in both helmfile.yaml and values.yaml.gotmpl files.
//
// Note: We serialize yaml keys with upper case name for greater readability in Go templates.
// (so that we can use .Values.Release.Chart... |
GoddamnIndustries/GoddamnEngine | Source/Projects/GoddamnCore/Source/GoddamnEngine/Core/IO/StreamDelegate.h | // ==========================================================================================
// Copyright (C) Goddamn Industries 2018. All Rights Reserved.
//
// This software or any its part is distributed under terms of Goddamn Industries End User
// License Agreement. By downloading or using this software or any it... |
OscarGame/blade | Source/BladeBase/source/interface_imp/MemoryFileDevice.cc | /********************************************************************
created: 2014/04/02
filename: MemoryFileDevice.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include "MemoryFileDevice.h"
namespace Blade
{
const TString MemoryFile... |
rayminr/unitils | unitils-test/src/test/java/org/unitils/dbunit/DbUnitModuleDataSetOperationTest.java | <filename>unitils-test/src/test/java/org/unitils/dbunit/DbUnitModuleDataSetOperationTest.java
/*
* Copyright 2008, Unitils.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
*
* ... |
vault-the/changes | migrations/versions/47e23df5a7ed_add_testgroup_result.py | <filename>migrations/versions/47e23df5a7ed_add_testgroup_result.py
"""Add TestGroup.result
Revision ID: 47e23df5a7ed
Revises: 520eba1ce36e
Create Date: 2013-11-05 14:01:08.310862
"""
# revision identifiers, used by Alembic.
revision = '47e23df5a7ed'
down_revision = '520eba1ce36e'
from alembic import op
import sqlal... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.