repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
Qasak/csapp-notes-and_labs | all-code/code/netp/dd2hex.c | <gh_stars>1-10
/* $begin dd2hex */
#include "csapp.h"
int main(int argc, char **argv)
{
struct in_addr inaddr; /* Address in network byte order */
int rc;
if (argc != 2) {
fprintf(stderr, "usage: %s <dotted-decimal>\n", argv[0]);
exit(0);
}
rc = inet_pton(AF_INET, argv[1], &inaddr);
if (r... |
TearsOfKhyber/RPKit | bukkit/rpk-languages-bukkit/src/main/java/com/rpkit/languages/bukkit/database/jooq/rpkit/tables/RpkitCharacterLanguage.java | <reponame>TearsOfKhyber/RPKit
/*
* Copyright 2020 <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 app... |
SpontaneousCMS/spontaneous | lib/spontaneous/asset/app_compiler.rb | <filename>lib/spontaneous/asset/app_compiler.rb
require 'sprockets'
require 'uglifier'
require 'sass'
module Spontaneous::Asset
# Takes assets from a source directory & compiles them to some destination directory.
# This is deliberatly dumb about the path to the gem and destination
class AppCompiler
attr_rea... |
grovyle/schema-gen-greendao | gen/com/company/professor/PalParkDao.java | <gh_stars>0
package com.company.professor;
import java.util.List;
import java.util.ArrayList;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
import de.greenrobot.dao.AbstractDao;
import de.greenrobot.dao.Property;
import de.greenrobot.dao... |
RogerioY/starshatter-open | Doc/doxygen/html/_mod_info_dlg_8cpp.js | var _mod_info_dlg_8cpp =
[
[ "DEF_MAP_CLIENT", "_mod_info_dlg_8cpp.html#ab4e0f01db84a4f79d3ae7f829d36add5", null ]
]; |
Y-D-Lu/rr_frameworks_base | packages/SystemUI/src/com/android/systemui/qs/tiles/UserDetailItemView.java | <filename>packages/SystemUI/src/com/android/systemui/qs/tiles/UserDetailItemView.java
/*
* Copyright (C) 2014 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... |
egch/coding-challenges | src/main/java/org/enricogiurin/codingchallenges/leetcode/challenge022021/SearchA2DMatrixII.java | package org.enricogiurin.codingchallenges.leetcode.challenge022021;
import java.util.Arrays;
/*
Write an efficient algorithm that searches for a target value in an m x n integer matrix. The matrix has the following properties:
Integers in each row are sorted in ascending from left to right.
Integers in each column a... |
YC-S/LeetCode | src/all_problems/P1754_LargestMergeOfTwoStrings.java | <gh_stars>1-10
package all_problems;
public class P1754_LargestMergeOfTwoStrings {
public String largestMerge(String word1, String word2) {
if (word1.length() == 0 || word2.length() == 0) return word1 + word2;
if (word1.compareTo(word2) > 0)
return word1.charAt(0) + largestMerge(word1.substring(1), wor... |
denisbakhtin/projectmanager | controllers/mocks/task_logs_db_mock.go | package mocks
import (
"fmt"
"github.com/denisbakhtin/projectmanager/models"
)
//TaskLogsDBMock is a TaskLogsDB repository mock
type TaskLogsDBMock struct {
TaskLogs []models.TaskLog
}
//Create inserts new record in db
func (r *TaskLogsDBMock) Create(userID uint64, taskLog models.TaskLog) (models.TaskLog, error)... |
jingcao80/Elastos | Sources/Elastos/Frameworks/Droid/Base/Packages/SystemUI/src/elastos/droid/systemui/qs/tiles/CellularTile.cpp | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... |
xichen2020/eventdb | values/decoding/default_filtered_fs_value_iterator.gen.go | // This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/mauricelam/genny
package decoding
import (
"fmt"
"github.com/xichen2020/eventdb/document/field"
"github.com/xichen2020/eventdb/filter"
"github.com/xichen2020/eventdb/values/iter... |
d503int/sdl_ios | SmartDeviceLink/SDLAlertManeuverResponse.h | // SDLAlertManeuverResponse.h
//
#import "SDLRPCResponse.h"
/** SDLAlertManeuverResponse is sent, when SDLAlertManeuver has been called.
* @since SmartDeviceLink 1.0
*/
NS_ASSUME_NONNULL_BEGIN
@interface SDLAlertManeuverResponse : SDLRPCResponse
@end
NS_ASSUME_NONNULL_END
|
partials-dev/pulse | scripts/src/components/app.js | <gh_stars>0
import React from 'react'
import MetronomePage from './work/metronome-page'
import SearchPage from './work/search'
import { SET_SPIRIT_ANIMAL_SRC } from '../reducers/actions'
import gifCache from '../gif-cache'
import path from 'path'
import { connect } from 'react-redux'
function mapStateToProps ({ searc... |
mjrgh/mbed | libraries/mbed/targets/hal/TARGET_Freescale/TARGET_K20D50M/us_ticker.c | /* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM 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 re... |
tanbinh123/addax | addax/src/main/java/com/github/jitwxs/addax/core/mock/mocker/explicit/FloatMocker.java | <gh_stars>1-10
package com.github.jitwxs.addax.core.mock.mocker.explicit;
import com.github.jitwxs.addax.common.bean.MockConfig;
import com.github.jitwxs.addax.core.mock.mocker.IMocker;
import org.apache.commons.lang3.RandomUtils;
/**
* Float对象模拟器
*/
public class FloatMocker implements IMocker<Float> {
@Overri... |
rdunlop/unicycling-registration | spec/controllers/preliminary_external_results_controller_spec.rb | require 'spec_helper'
describe PreliminaryExternalResultsController do
before do
@admin_user = FactoryBot.create(:super_admin_user)
sign_in @admin_user
@competition = FactoryBot.create(:competition)
@competitor = FactoryBot.create(:event_competitor, competition: @competition)
end
# This should r... |
chenkanqin/uplus | src/config/index.js | const env = require('./env');
const setStorageSyncField = require('./setStorageSync-field');
// 全局配置
const config = {
title: 'QQ:2052021114',
currentService: env.currentService,
serverUrl: env.EVENTHOST,
pages: [],
routes: {},
// 保存到本地的字段
setStorageSyncField: {
...setStorageSyncField
},
// 本地存储时间... |
mattstyles/ecs-benchmark | src/cases/javelin-ecs/packed_1.js | import { createComponentType, createWorld, number, query } from "@javelin/ecs";
const A = createComponentType({
type: 0,
schema: {
value: number,
},
});
const B = createComponentType({
type: 1,
schema: {
value: number,
},
});
const C = createComponentType({
type: 2,
schema: {
value: number,... |
w99427/eNotes-Android-SDK | core/src/main/java/io/enotes/sdk/repository/api/entity/response/btc/chainso/SpendTxForChainSo.java | package io.enotes.sdk.repository.api.entity.response.btc.chainso;
import java.util.List;
public class SpendTxForChainSo {
private String status;
private Data data;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
... |
Ignite-Discord/Ignite | src/main/java/com/general_hello/commands/RPG/Commands/JourneyCommand.java | package com.general_hello.commands.RPG.Commands;
import com.general_hello.commands.RPG.RpgUser.RPGUser;
import com.general_hello.commands.commands.CommandContext;
import com.general_hello.commands.commands.CommandType;
import com.general_hello.commands.commands.ICommand;
import net.dv8tion.jda.api.EmbedBuilder;
import... |
Rubentxu/GDX-Logic-Bricks | gdx-logic-bricks/src/main/java/com/indignado/logicbricks/components/LightComponent.java | <gh_stars>1-10
package com.indignado.logicbricks.components;
import box2dLight.Light;
import com.badlogic.ashley.core.Component;
/**
* @author Rubentxu.
*/
public class LightComponent implements Component {
public Light light;
}
|
rockeet/terark-zip | src/terark/zbs/simple_zip_blob_store.cpp | #include "blob_store_file_header.hpp"
#include "simple_zip_blob_store.hpp"
#include <terark/io/FileStream.hpp>
#include <terark/io/MemStream.hpp>
#include <terark/io/DataIO.hpp>
#include <terark/util/mmap.hpp>
#include <terark/fsa/nest_louds_trie.hpp>
#include <assert.h>
#include <algorithm>
#if defined(_WIN32) || def... |
xraycat123/spaCy | spacy/tests/regression/test_issue1945.py | <reponame>xraycat123/spaCy
'''Test regression in Matcher introduced in v2.0.6.'''
from __future__ import unicode_literals
import pytest
from ...vocab import Vocab
from ...tokens import Doc
from ...matcher import Matcher
def test_issue1945():
text = "a a a"
matcher = Matcher(Vocab())
matcher.add('MWE', No... |
pythonpeixun/algo-1 | stack/postfix/postfix2.c | #include "postfix2.h"
/* The algorithm used is called "Shunting-yard" algorithm
* see more: https://en.wikipedia.org/wiki/Shunting-yard_algorithm
* Operator precedence assumed (from highest to lowest):
* ()
* ^
* *, /
* +, -
*/
void
infixTopostfix(char* filename)
{
int maxElements = 20;
Stack s = creat... |
kurpicz/pwm | external/wavelet_construction/onlineWT/src/strstream.hpp | <gh_stars>10-100
#ifndef STRSTREAM_H
#define STRSTREAM_H
#include <stddef.h>
#include "cocadautil.hpp"
/**
* @file strstream.h
* @author <NAME>
*
* @brief String stream.
*/
/**
* String stream type
*/
typedef struct _strstream strstream;
/**
* @brief Opens a stream for a in-memory source string.
* @par... |
smegurus/smegurus-django | tenant_configuration/tests/test_entrepreneur_view.py | from django.core.signing import Signer
from django.db import transaction
from django.contrib.auth.models import User, Group
from django.utils import translation
from django.core.urlresolvers import resolve, reverse
from rest_framework.authtoken.models import Token
from rest_framework.test import APITestCase
from rest_f... |
pmac1965/proteus | source/display/prSpriteAnimation.cpp | <reponame>pmac1965/proteus
/**
* prSpriteAnimation.cpp
*
* Copyright 2014 <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... |
Yechan0815/cubrid | src/method/method_query_util.cpp | /*
*
* Copyright 2016 CUBRID Corporation
*
* 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 la... |
oxygen1997/SpringCloud-OrderSys | order/src/main/java/com/czy/order/service/impl/OrderServiceImpl.java | package com.czy.order.service.impl;
import com.czy.order.client.ProductClient;
import com.czy.order.dao.OrderDetailRepository;
import com.czy.order.dao.OrderMasterRepository;
import com.czy.order.dto.CarDTO;
import com.czy.order.dto.OrderDTO;
import com.czy.order.enums.OrderStatusEnum;
import com.czy.order.enums.PaySt... |
crici/gradle-native | subprojects/internal-testing/src/main/java/dev/nokee/internal/testing/util/ProjectTestUtils.java | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
EbiDa/incubator-streampipes | streampipes-connect-container-worker/src/main/java/org/apache/streampipes/connect/container/worker/rest/RuntimeResolvableResource.java | <reponame>EbiDa/incubator-streampipes<filename>streampipes-connect-container-worker/src/main/java/org/apache/streampipes/connect/container/worker/rest/RuntimeResolvableResource.java
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distribut... |
ggml1/Competitive-Programming | UVa/11727.cpp | #include <bits/stdc++.h>
#define fast_io ios::sync_with_stdio(0);cin.tie(0)
using namespace std;
int main(){
fast_io;
int t; cin >> t;
int kse = 0;
while(t--){
++kse;
int a, b, c; cin >> a >> b >> c;
cout << "Case " << kse << ": " << a + b + c - min(a, min(b, c)) - max(a, max(b, c)) << endl;
}
ret... |
monaka/buck | test/com/facebook/buck/jvm/java/ExternalJavacTest.java | <gh_stars>1-10
/*
* Copyright 2012-present Facebook, 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 ap... |
yupengKenny/baw-server | spec/lib/modules/alphabetical_paginator_spec.rb | <gh_stars>1-10
# frozen_string_literal: true
describe 'alphabetical paginator activerecord extension' do
before :each do
FactoryBot.build(:user, user_name: '汉字 user').save(validate: false)
FactoryBot.create(:user, user_name: 'aauser')
FactoryBot.create(:user, user_name: 'anuser')
FactoryBot.create(... |
graehl/carmel | graehl/shared/normalize.hpp | <reponame>graehl/carmel
// Copyright 2014 <NAME> - http://graehl.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 req... |
jandppw/ppwcode | javascript/_obsolete/WaveMaker/common/packages/lib_merge.js | /*
Add custom widgets to projects made with WaveMaker Studio
Include a dojo require statement for each custom widget
you want to include in every WaveMaker project.
For project specific widgets, add the dojo.require statement to the project javascript file.
*/
// Example:
// dojo.require("wm.packages.example.Butto... |
lmarvaud/django-invite | invite/migrations/0004_family_host.py | <reponame>lmarvaud/django-invite
"""
Generated by Django 2.1.2 on 2018-11-01 10:41
"""
#pylint: disable=invalid-name
from django.db import migrations, models
class Migration(migrations.Migration):
"""Add the host to the family"""
dependencies = [
('invite', '0003_auto_20181101_1013'),
]
opera... |
isabella232/ion-1 | ion/port/logging_cerr.cc | /**
Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... |
rhencke/engine | src/third_party/angle/src/libANGLE/gen_overlay_fonts.py | #!/usr/bin/env vpython
#
# [VPYTHON:BEGIN]
# wheel: <
# name: "infra/python/wheels/freetype-py/${vpython_platform}"
# version: "version:2.1.0.post1"
# >
# [VPYTHON:END]
# Copyright 2019 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found ... |
yamacir-kit/meevax | src/kernel/syntactic_continuation.cpp | <filename>src/kernel/syntactic_continuation.cpp
/*
Copyright 2018-2021 <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
Unle... |
alexey-anufriev/intellij-community | platform/platform-api/src/com/intellij/ide/SearchTopHitProvider.java | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide;
import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.NlsSafe;
import... |
nasa/gunns | sims/SIM_mass_overflow/RUN_test/input.py | # @copyright Copyright 2019 United States Government as represented by the Administrator of the
# National Aeronautics and Space Administration. All Rights Reserved. */
#
#trick setup
trick.sim_services.exec_set_trap_sigfpe(1)
#simControlPanel = trick.SimControlPanel()
#trick.add_external_application(simCon... |
Kaleem2255/Cloud-Gaming-Windows-Sample | deps.win64/include/gpa/utility/range-spec-parser.h | /******************************************************************************
Copyright 2019 Intel Corporation.
This software and the related documents are Intel copyrighted materials,
and your use of them is governed by the express license under which they
were provided to you ("License"). Unless the Licens... |
tierklinik-dobersberg/userhub | internal/api/identityapi/manage_permissions.go | <reponame>tierklinik-dobersberg/userhub<filename>internal/api/identityapi/manage_permissions.go
package identityapi
import (
"context"
"net/http"
"github.com/labstack/echo/v4"
"github.com/tierklinik-dobersberg/cis/internal/app"
"github.com/tierklinik-dobersberg/cis/internal/identity"
"github.com/tierklinik-dobe... |
RichardLitt/go-filecoin | tools/faucet/main.go | package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"net/http"
"time"
"gx/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw/go-cid"
logging "gx/ipfs/QmcuXC5cxs79ro2cUuHs4HQ2bkDLJUYokwL8aivcX6HW3C/go-log"
"github.com/filecoin-project/go-filecoin/address"
"github.com/filecoin-project/go-filecoin... |
Fusion-Rom/android_external_chromium_org_third_party_WebKit | Source/core/animation/animatable/AnimatableValueKeyframe.h | <filename>Source/core/animation/animatable/AnimatableValueKeyframe.h
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef AnimatableValueKeyframe_h
#define AnimatableValueKeyframe_h
#include "core/a... |
jemiah-labs/SKRLS-COBOL | cobol85parser/src/main/java/io/proleap/cobol/asg/metamodel/procedure/read/impl/ReadStatementImpl.java | <reponame>jemiah-labs/SKRLS-COBOL<gh_stars>0
/*
* Copyright (C) 2017, <NAME> <<EMAIL>>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package io.proleap.cobol.asg.metamodel.procedure.read.impl;
import org.jemiah... |
wzx54321/LockDemo | aliocrlib/src/main/java/com/lib/aliocr/bean/ReqInput.java | <gh_stars>100-1000
package com.lib.aliocr.bean;
import java.io.Serializable;
/**
* 作者:xin on 2018/7/9 0009 15:03
* <p>
* 邮箱:<EMAIL>
* <P>
* https://github.com/wzx54321/XinFrameworkLib
*/
public class ReqInput implements Serializable {
private static final long serialVersionUID = 7540344538333996814L;
... |
lagerdata/unit-test_templates | cc3235sf/ti_sdk/simplelink_cc32xx_sdk_4_10_00_07/docs/wifi_host_driver_api/html/group___wlan_struct_sl_wlan_rx_filter_pattern_arg__t.js | var group___wlan_struct_sl_wlan_rx_filter_pattern_arg__t =
[
[ "Length", "group___wlan.html#aa28b6e5b77cd079809e345d284ce2068", null ],
[ "Offset", "group___wlan.html#a1881fc88f70ed8bdc975d6d055c1c149", null ],
[ "Reserved", "group___wlan.html#a2f1a76867fe7184d36fd5090caec3305", null ],
[ "Value", "grou... |
boostasoft/ecommerce | src/main/java/com/commerce/app/web/rest/vm/PaymentRequestVM.java | <filename>src/main/java/com/commerce/app/web/rest/vm/PaymentRequestVM.java
package com.commerce.app.web.rest.vm;
import com.adyen.model.BrowserInfo;
import com.adyen.model.checkout.DefaultPaymentMethodDetails;
import javax.validation.constraints.NotNull;
public class PaymentRequestVM {
@NotNull
private Defau... |
lechium/iOS1351Headers | System/Library/PrivateFrameworks/SpringBoard.framework/SBSnapshotSlotIdWrapper.h | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, October 27, 2021 at 3:23:48 PM Mountain Standard Time
* Operating System: Version 13.5.1 (Build 17F80)
* Image Source: /System/Library/PrivateFrameworks/SpringB... |
tusharchoudhary0003/Custom-Football-Game | sources/p024io/fabric/sdk/android/services/concurrency/C13952m.java | package p024io.fabric.sdk.android.services.concurrency;
import java.util.Collection;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import p024io.fabric.sdk.android.services.concurrency.C13940e.C13944d;
/* renamed from: io.fabric.sdk.android.services.concurrency.m */
/* compiled fr... |
cyjake/material | icons/VectorCircleVariantIcon.js | <filename>icons/VectorCircleVariantIcon.js
import React from 'react'
const DEFAULT_SIZE = 24
export default ({
fill = 'currentColor',
width = DEFAULT_SIZE,
height = DEFAULT_SIZE,
style = {},
...props
}) => (
<svg
viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` }
style={{ fill, width, height, .... |
garethhk/mldong | mldong-generator/src/main/java/com/mldong/Generator.java | package com.mldong;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.gson.Gson;
import com.mldong.generator.config.Generato... |
zemo/naali | Interfaces/RenderServiceInterface.h | // For conditions of distribution and use, see copyright notice in license.txt
#ifndef incl_Interfaces_RenderServiceInterface_h
#define incl_Interfaces_RenderServiceInterface_h
#include "IService.h"
#include "ResourceInterface.h"
#include "LogListenerInterface.h"
#include "CoreModuleApi.h"
#include "Vector3D.h"
#incl... |
edisonhello/dbux | samples/src/testutil/runSample.js | import dbuxRunFile from 'dbux-cli/src/dbuxRunFile';
import path from 'path';
const srcFolder = path.join(__dirname, '..');
const samplesFolder = path.join(srcFolder, '..');
const inputFolder = path.join(samplesFolder, '__samplesInput__');
export default function runSample(name, performTests) {
test(name, () => {
... |
tszielin/q-lab-editor | src/main/java/org/openide/filesystems/Repository.java | <gh_stars>1-10
/*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code ... |
anolson/wednesday_worlds | app/lib/ride_tweet.rb | class RideTweet
include ApplicationHelper
attr_accessor :event
def initialize(event)
@event = event
end
def to_s
%(#{date}. #{location}. #{time}. #{route}.)
end
def date
format_date(event.begins_at)
end
def location
event.ride.location
end
def time
format_time(event.begins... |
wlMalk/goms | generator/generators/service_main.go | package generators
import (
"strings"
"github.com/wlMalk/goms/constants"
"github.com/wlMalk/goms/generator/file"
"github.com/wlMalk/goms/generator/helpers"
"github.com/wlMalk/goms/parser/types"
)
func ServiceMainFunc(file file.File, service types.Service) error {
file.AddImport("", "io")
file.AddImport("", "o... |
mdiebolt/pixie.strd6.com | public/javascripts/jquery.tile_editor.js | /* DO NOT MODIFY. This file was compiled Thu, 26 May 2011 22:45:45 GMT from
* /home/daniel/apps/pixie.strd6.com/app/coffeescripts/jquery.tile_editor.coffee
*/
(function() {
$.fn.tileEditor = function(options) {
var addNewLayer, addScreenLayer, clearSelection, clickMode, createNewTile, createPixelEditor, create... |
banggibima/react_fitnesspro | src/screens/Download/Platform/index.js | import React from "react";
import cn from "classnames";
import styles from "./Platform.module.sass";
import Icon from "../../../components/Icon";
import ScrollParallax from "../../../components/ScrollParallax";
const items = [
{
title: "Fitness Pro for Mac OS",
description: "We realize ideas from simple.",
... |
AIS-Bonn/stillleben | include/stillleben/object.h | <gh_stars>10-100
// Scene object
// Author: <NAME> <<EMAIL>>
#ifndef STILLLEBEN_OBJECT_H
#define STILLLEBEN_OBJECT_H
#include <stillleben/common.h>
#include <stillleben/math.h>
#include <stillleben/physx.h>
#include <Magnum/Math/Range.h>
#include <Magnum/Math/Vector3.h>
#include <Magnum/Math/Color.h>
#include <Magnu... |
Damons-work/icodework_vue__back_end | src/main/java/cn/js/icode/tool/mapper/DbtableFieldMapper.java | package cn.js.icode.tool.mapper;
import team.bangbang.common.sql.IMybatisMapper;
import org.apache.ibatis.annotations.Mapper;
import cn.js.icode.tool.data.DbtableField;
/**
* 数据表字段 - Mapper
* 对应数据库表:tool_dbtable_field
*
* @author ICode Studio
* @version 1.0 2018-10-21
*/
@Mapper
public interface Dbta... |
wuxinshui/spring-boot-samples | spring-boot-sample-quartz/src/main/java/com/wxs/quartz/job/ServiceException.java | package com.wxs.quartz.job;
/**
* 业务异常
* @author Wuxinshui
*
*/
public class ServiceException extends RuntimeException {
private static final long serialVersionUID = 8624944628363400977L;
public ServiceException() {
super();
}
public ServiceException(String message, Throwable cause,
boolean enableSuppre... |
nfearnley/Mei | commands/pat.js | <reponame>nfearnley/Mei
module.exports = {
main: function(Bot, m, args, prefix) {
if (m.mentions.length > 2) {
Bot.createMessage(m.channel.id, "Thats too many pats to give :angry:")
return;
}
Bot.sendChannelTyping(m.channel.id).then(async () => {
if (m.men... |
oragejuice/restack | src/main/java/me/lnadav/restack/api/command/AbstractCommand.java | <gh_stars>10-100
package me.lnadav.restack.api.command;
public abstract class AbstractCommand {
private final String name;
private final String description;
private final String[] aliases;
private final int minArgs;
private final String usage;
public AbstractCommand(String name, String descr... |
spite/sketch | js/sceneBackdrop.js | <gh_stars>100-1000
import {
Group,
Mesh,
IcosahedronBufferGeometry,
} from "../third_party/three.module.js";
const group = new Group();
let backdrop;
let material;
async function generate() {
if (backdrop) {
group.remove(backdrop);
}
backdrop = new Mesh(new IcosahedronBufferGeometry(20, 4), material);... |
tausiq2003/C-with-DS | Opensource Programs/GretestCommonDivisor.cpp | <gh_stars>1-10
class GCD
{
int a,b;
public:
void getno();
void showdivisor();
};
void GCD::getno()
{
cout<<"enter two number";
cin>>a>>b;
}
void GCD::showdivisor()
{
while(a!=b)
{
if(a>b)
a=a-b;
if(b>a)
b=b-a;
}
cout<<"GCD="<<a;
}
void main()
{
GCD x;
x.getno();
x.showdivisor();
getch();
}
|
jiangshide/sdk | eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/LogCatMonitor.java | /*
* Copyright (C) 2011 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... |
Pix-00/olea-v2_flask_1_ | src/pink/pwd_tools.py | import lzma
import os
import pickle
import random
import string
from math import log2
from typing import Set
PWD_CHARS = string.digits + string.ascii_letters + string.punctuation
def generate_pwd() -> str:
random.seed(os.urandom(64))
return ''.join(random.choices(PWD_CHARS, k=20))
def is_common_pwd(pwd: st... |
guardaco/tzstats | src/components/Home/TransactionVolume/TransactionVolume.js | <gh_stars>10-100
import React from 'react';
import styled from 'styled-components';
import { Card, Value, Devices } from '../../Common';
import BarChart from './BarChart';
import _ from 'lodash';
const TransactionVolume = ({ txSeries, txVol24h }) => {
const avgVolume = _.sumBy(txSeries, o => o.value) / txSeries.leng... |
OpenMunicipality/api-service-casemanagement | src/main/generated-sources/cxf/se/tekis/servicecontract/GetRoller.java |
package se.tekis.servicecontract;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
... |
gb-6k-house/HuxiaoQiHuo | HuXiaoQiHuo/HuXiaoQiHuo/Public/NetWork/DataObj/GraphServerObj.h | //
// GraphServerObj.h
// traderex
//
// Created by zhouqing on 15/7/23.
// Copyright (c) 2015年 EasyFly. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface GraphServerObj : NSObject
@property(nonatomic,copy)NSString * GIP;
@property(nonatomic,copy)NSString * GPort;
@property(nonatomic,copy)NS... |
lhzheng880828/VOIPCall | doc/libjitisi/sources/net/sf/fmj/media/Module.java | <gh_stars>0
package net.sf.fmj.media;
import javax.media.Controls;
import javax.media.Format;
public interface Module extends Controls {
void connectorPushed(InputConnector inputConnector);
InputConnector getInputConnector(String str);
String[] getInputConnectorNames();
String getName();
Outpu... |
Ed-Fi-Exchange-OSS/SDCOE-Universal-Transcript | pdf-utils/write-metadata.js | <reponame>Ed-Fi-Exchange-OSS/SDCOE-Universal-Transcript<filename>pdf-utils/write-metadata.js
const fs = require('fs').promises;
const { PDFDocument, PDFName, PDFHexString } = require('pdf-lib');
/**
* This function takes the PDF file path and
* the key and value for custom metadata and writes the data in the PDF its... |
ingvr/test-store | client/src/actions/categories.js | import Axios from "axios";
import { CATEGORY_API_URL } from "../constants";
import { productsResetCategory, fetchProducts } from "./index";
export const categoriesRequested = payload => {
return {
type: "CATEGORIES_REQUESTED",
payload
};
};
export const categoriesReceived = payload => {
return {
ty... |
zhangpf/fuchsia-rs | zircon/kernel/top/debug.cc | <filename>zircon/kernel/top/debug.cc
// Copyright 2016 The Fuchsia Authors
// Copyright (c) 2008-2015 <NAME>
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <arch/ops.h>
#include <ctype.h>
#include <debug.h>... |
jaylinjiehong/NumberOfPasses | Android/android-30/android30_code_view/src/com/company/source/com/android/shell/HeapDumpReceiver.java | <reponame>jaylinjiehong/NumberOfPasses<filename>Android/android-30/android30_code_view/src/com/company/source/com/android/shell/HeapDumpReceiver.java
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... |
dawidkski/federated-faceid | src/facenet/train_triplet.py | import argparse
import dataclasses
import time
from dataclasses import dataclass
from pathlib import Path
from typing import Any, List, Mapping
import numpy as np
import torch
from torch.nn import Module
from torch.nn.modules.distance import PairwiseDistance
from torch.optim.optimizer import Optimizer
from torch.utils... |
SlimKatLegacy/android_external_chromium_org | net/tools/quic/quic_server_session_test.cc | // Copyright 2013 The Chromium 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 "net/tools/quic/quic_server_session.h"
#include "net/quic/crypto/quic_crypto_server_config.h"
#include "net/quic/crypto/quic_random.h"
#include ... |
puppup420247-org/federal_register | lib/federal_register/document_search_details.rb | <filename>lib/federal_register/document_search_details.rb
class FederalRegister::DocumentSearchDetails < FederalRegister::Base
extend FederalRegister::Utilities
add_attribute :filters,
:suggestions
def self.search(args)
response = get('/documents/search-details', query: args).parsed_response... |
HedgehogCode/javacpp-presets | llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITCSymbolMapPair.java | // Targeted by JavaCPP version 1.5.7-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.llvm.LLVM;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.llvm.global.LLVM.*;
/**
* Represents a ... |
CamDX/X-Road | src/proxy-ui-api/src/test/java/org/niis/xroad/restapi/service/ClientServiceIntegrationTest.java | <filename>src/proxy-ui-api/src/test/java/org/niis/xroad/restapi/service/ClientServiceIntegrationTest.java
/**
* The MIT License
* Copyright (c) 2018 Estonian Information System Authority (RIA),
* Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK)
* Copyright (c) 2015-2017 Eston... |
kowalt/neuroCloud | BE/nnCloudRESTService/src/main/java/com/mycompany/nncloudrestservice/pojo/User.java | <gh_stars>0
/*
* 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 com.mycompany.nncloudrestservice.pojo;
import java.util.ArrayList;
import java.util.Date;
import java.uti... |
hw233/home3 | core/common/data/commonData/src/main/java/com/home/commonData/message/login/serverRequest/login/login/ClientLoginTransferMO.java | <gh_stars>1-10
package com.home.commonData.message.login.serverRequest.login.login;
import com.home.commonData.data.login.ClientLoginDO;
/** 客户端登陆转移消息 */
public class ClientLoginTransferMO
{
/** 登录数据 */
ClientLoginDO data;
/** http消息ID */
int httpID;
/** ip地址 */
String ip;
}
|
antonpaly4/urbanizze | node_modules/webpack/node_modules/webpack-core/lib/ConcatSource.js | <reponame>antonpaly4/urbanizze
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author <NAME> @sokra
*/
var SourceMapNodeFastSource = require("./SourceMapNodeFastSource");
var SourceNode = require("source-map").SourceNode;
function ConcatSource() {
this.children = Array.prototype.slice.call(argumen... |
int-tt/aws-sdk-go-v2 | service/iot/api_op_ListAttachedPolicies.go | // Code generated by smithy-go-codegen DO NOT EDIT.
package iot
import (
"context"
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/service/iot/types"
"github.com/awslabs/smithy-go/middleware"
smithyhttp "github.com/awslabs/sm... |
TimeBombx/launch_academy | phase 11/exercises/ajax-and-rails/spec/models/format_spec.rb | <reponame>TimeBombx/launch_academy<filename>phase 11/exercises/ajax-and-rails/spec/models/format_spec.rb
require 'rails_helper'
RSpec.describe Format, type: :model do
it { should have_many(:videos) }
context "name" do
subject { Format.new(name: "VHS") }
it { should validate_presence_of(:name) }
it { s... |
jayliu9/OOD-exercises-NEU | Labs/lab6/src/main/java/problem2/EmptySet.java | package problem2;
/**
* Represents the empty set of integers.
*/
public class EmptySet implements ISet {
/**
* Checks if the set is empty
* @return true if the set is empty, false otherwise
*/
@Override
public Boolean isEmpty() {
return true;
}
/**
* Adds an integer to the set
* @param... |
sahujaunpuri/Backendless | src/com/backendless/media/StreamVideoQuality.java | /*
* ********************************************************************************************************************
* <p/>
* BACKENDLESS.COM CONFIDENTIAL
* <p/>
* ********************************************************************************************************************
* <p/>
* Copyright 20... |
kdl222/ISIS3 | isis/src/juno/objs/JunoCamera/JunoDistortionMap.cpp | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0... |
SmoothSync/smoothsetup | library/src/main/java/com/smoothsync/smoothsetup/wizard/RequestPermissions.java | /*
* Copyright (c) 2018 dmfs GmbH
*
* 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 t... |
joeyliu2012/js-practice | node/mvc-newslist/controller/admin.js | const adminService = require('../service/admin');
module.exports = {
async showIndex(ctx) {
// ctx.body = "admin homepage";
await ctx.render('admin/admin.pug')
},
async addNews(ctx) {
// ctx.body = "addNews page";
await ctx.render('admin/addNews.pug')
},
async newsLis... |
viloboda/DynamicEditor | app/src/main/java/com/example/vloboda/dynamicentityeditor/dynamic/DynamicAttributesFactoryImpl.java | <gh_stars>1-10
package com.example.vloboda.dynamicentityeditor.dynamic;
import android.util.SparseArray;
import com.example.bl.DynamicFieldsFactory;
import com.example.bl.ui.DymamicViewGroup;
import com.example.bl.ui.DynamicView;
import com.example.bl.ui.ViewFactory;
import com.example.bl.ui.DynamicViewContai... |
YJBeetle/QtAndroidAPI | android-28/android/widget/GridLayout_Spec.cpp | <reponame>YJBeetle/QtAndroidAPI<filename>android-28/android/widget/GridLayout_Spec.cpp
#include "./GridLayout_Alignment.hpp"
#include "../../JObject.hpp"
#include "./GridLayout_Spec.hpp"
namespace android::widget
{
// Fields
// QJniObject forward
GridLayout_Spec::GridLayout_Spec(QJniObject obj) : JObject(obj) {}
... |
egymgmbh/sitebricks | sitebricks-acceptance-tests/src/test/java/com/google/sitebricks/acceptance/HtmlValidatingAcceptanceTest.java | package com.google.sitebricks.acceptance;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.Test;
import com.google.sitebricks.acceptance.page.HtmlValidatingPage;
import com.google.sitebricks.acce... |
qq676708415/mq | common/src/main/java/com/hailiang/common/mq/thread/TaskProducer.java | package com.hailiang.common.mq.thread;
import com.hailiang.common.mq.queue.Queue;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
/**
* 阻塞消息队列管理类
... |
Darkdragon84/ldt | ldt/tests/dicts/test_resources.py | <filename>ldt/tests/dicts/test_resources.py
# -*- coding: utf-8 -*-
import unittest
import os
os.environ["TESTING_LDT"] = "TRUE"
import ldt
class Tests(unittest.TestCase):
"""
The tests in this block inspect the loading of various resources: names,
numbers, associations, file and url detection.
""... |
rohankumardubey/tinkerpop | gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/P.java | <filename>gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/P.java<gh_stars>1-10
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright owners... |
wolfram74/wolfram74.github.io | schmutz_jager/scripts/spaces.js | <reponame>wolfram74/wolfram74.github.io
var spaces = {
livingRoom: {
tasks: [
{
title: 'sweep',
weekPeriod: 1,
description:'Use a broom or vacuum cleaner to get clean the floor',
completionSigns:"You've swept over the floor and moved furniture at some point, it's hard to see ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.