identifier stringlengths 42 383 | collection stringclasses 1
value | open_type stringclasses 1
value | license stringlengths 0 1.81k | date float64 1.99k 2.02k ⌀ | title stringlengths 0 100 | creator stringlengths 1 39 | language stringclasses 157
values | language_type stringclasses 2
values | word_count int64 1 20k | token_count int64 4 1.32M | text stringlengths 5 1.53M | __index_level_0__ int64 0 57.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/jessesnare/SkyblockAddons/blob/master/src/main/java/codes/biscuit/skyblockaddons/mixins/MixinGuiDispenser.java | Github Open Source | Open Source | MIT | null | SkyblockAddons | jessesnare | Java | Code | 81 | 367 | package codes.biscuit.skyblockaddons.mixins;
import codes.biscuit.skyblockaddons.SkyblockAddons;
import codes.biscuit.skyblockaddons.utils.Feature;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.gui.inventory.GuiDispenser;
import net.minecraft.inventory.*;
import org.spongepowered.... | 50,278 |
https://github.com/webmin/webmin/blob/master/samba/conf_smb.cgi | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,023 | webmin | webmin | Perl | Code | 370 | 1,616 | #!/usr/local/bin/perl
# conf_smb.cgi
# Display Windows networking options
require './samba-lib.pl';
# check acls
&error_setup("$text{'eacl_aviol'}ask_epass.cgi");
&error("$text{'eacl_np'} $text{'eacl_pcs'}") unless $access{'conf_smb'};
&ui_print_header(undef, $text{'smb_title'}, "");
&get_share("global");
print &... | 53,329 |
https://github.com/BasilLiao/dtrioffice/blob/master/dtrioffice/src/dtri/com/bean/JsonTemplateBean.java | Github Open Source | Open Source | Apache-2.0 | null | dtrioffice | BasilLiao | Java | Code | 202 | 632 | package dtri.com.bean;
import org.json.JSONObject;
/**
* 包裝 template / templateInfo 內容
* **/
public class JsonTemplateBean {
private JSONObject bodyData;
private JSONObject headerData;
private JSONObject navData;
private JSONObject footerData;
private String webPageBody;
private String webPageHeader;
privat... | 52,849 |
https://github.com/Fedict/best-tools/blob/master/java/webservice/src/test/resources/data/postgis.sql | Github Open Source | Open Source | BSD-2-Clause | 2,023 | best-tools | Fedict | PLpgSQL | Code | 727 | 2,322 | /*CREATE EXTENSION postgis; */
/* CREATE EXTENSION fuzzystrmatch; */
CREATE EXTENSION pg_trgm;
CREATE EXTENSION unaccent;
/* wrapper function for unaccent to make it usable in index */
CREATE OR REPLACE FUNCTION im_unaccent(varchar)
RETURNS text AS $$
SELECT unaccent($1)
$$ LANGUAGE sql IMMUTABLE;
CREATE USE... | 14,830 |
https://github.com/mattrayner/ocean-dynamo/blob/master/spec/dynamo/schema_spec.rb | Github Open Source | Open Source | Apache-2.0 | 2,017 | ocean-dynamo | mattrayner | Ruby | Code | 640 | 2,119 | require 'spec_helper'
class Quux < OceanDynamo::Table
dynamo_schema(:index, :foo, table_name_suffix: Api.basename_suffix) do
attribute :index, :string, default: "unlikely"
attribute :foo, :string
attribute :bar, :string, default: "zuul"
attribute :baz, :float, default: 3.141... | 15,172 |
https://github.com/xbib/marc/blob/master/src/test/java/org/xbib/marc/ConcurrencyTest.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | marc | xbib | Java | Code | 378 | 1,351 | package org.xbib.marc;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
import org.junit.jupiter.api.Test;
import org.xbib.marc.json.MarcJsonWriter;
import org.xbib.marc.xml.MarcXchangeWriter;
import java.io.File;
import java.io.FileOutputStream;
... | 19,498 |
https://github.com/Yourens/libos/blob/master/src/pal/pal.h | Github Open Source | Open Source | BSD-3-Clause | 2,019 | libos | Yourens | C | Code | 59 | 214 | #ifndef _PAL_H_
#define _PAL_H_
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "sgx_error.h" /* sgx_status_t */
#include "sgx_eid.h" /* sgx_enclave_id_t */
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#define TOKEN_FILENAME "enclave.to... | 24,093 |
https://github.com/dotnet/templating/blob/master/test/Microsoft.TemplateEngine.Authoring.CLI.IntegrationTests/VerifyCommandTests.cs | Github Open Source | Open Source | MIT | 2,023 | templating | dotnet | C# | Code | 516 | 2,746 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using FluentAssertions;
using Microsoft.TemplateEngine.Authoring.TemplateVerifier;
using Microsoft.TemplateEngine.CommandUtils;
using Microsoft.TemplateEngine.TestHelper;
using Micr... | 49,938 |
https://github.com/Daniel-Fonseca-da-Silva/Design-Patterns-with-Java-/blob/master/creational-patterns/src/main/java/br/com/cod3r/abstractfactory/apple/factory/IPhoneXFactory.java | Github Open Source | Open Source | MIT | null | Design-Patterns-with-Java- | Daniel-Fonseca-da-Silva | Java | Code | 45 | 239 | package br.com.cod3r.abstractfactory.apple.factory;
import br.com.cod3r.abstractfactory.apple.factory.abstractFactory.CountryRulesAbstractFactory;
import br.com.cod3r.abstractfactory.apple.model.iphone.IPhone;
import br.com.cod3r.abstractfactory.apple.model.iphone.IPhoneX;
import br.com.cod3r.abstractfactory.apple.mod... | 30,084 |
https://github.com/quietust/dfhack-23a/blob/master/plugins/feature.cpp | Github Open Source | Open Source | Zlib, MIT, BSD-2-Clause, LicenseRef-scancode-public-domain | 2,023 | dfhack-23a | quietust | C++ | Code | 289 | 1,063 | // Map feature manager - list features and discover/undiscover individual ones
#include "Core.h"
#include "Console.h"
#include "Export.h"
#include "PluginManager.h"
#include "DataDefs.h"
#include "df/world.h"
#include "df/feature_init.h"
#include <stdlib.h>
using std::vector;
using std::string;
using std::endl;
usi... | 7,883 |
https://github.com/wanghongxiang2018/postgres-x2/blob/master/src/pgxc/tools/Makefile | Github Open Source | Open Source | PostgreSQL | 2,022 | postgres-x2 | wanghongxiang2018 | Makefile | Code | 46 | 144 | #----------------------------------------------------------------------------
#
# Postgres-XC documentation tool makefile
#
# Copyright (c) 2010-2012 Postgres-XC Development Group
#
# doc-xc/Makefile
#
#----------------------------------------------------------------------------
subdir = src/pgxc/tools
top_builddir = ... | 35,860 |
https://github.com/pjferrell/konk/blob/master/test/apiserver/cmd/apiserver/main.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | konk | pjferrell | Go | Code | 70 | 394 | package main
import (
// Make sure dep tools picks up these dependencies
_ "github.com/go-openapi/loads"
_ "k8s.io/apimachinery/pkg/apis/meta/v1"
_ "github.com/infobloxopen/konk/test/apiserver/pkg/auth/remoteheader"
_ "k8s.io/client-go/plugin/pkg/client/auth" // Enable cloud provider auth
"sigs.k8s.io/apiserver... | 26,524 |
https://github.com/Victor-Akio/CPP-42/blob/master/CPP_Module_05/ex01/Makefile | Github Open Source | Open Source | MIT | null | CPP-42 | Victor-Akio | Makefile | Code | 74 | 289 | NAME = forms
CC = g++
FLAG = -c \
-Wall \
-Wextra \
-Werror \
-Wshadow \
-Wno-Shadow \
-Wfatal-errors \
-std=c++98
SANIT = -fsanitize=address
RM = @/bin/rm -rf
SRCS = main.cpp \
Bureaucrat.cpp \
Form.cpp \
exZero.cpp \
exUm.cpp
OBJS = $(SRCS:%.cpp=%.o)
all: $(NAME... | 40,213 |
https://github.com/ChrisPelatari/SubText/blob/master/src/Subtext.Web/UI/Controls/ArchivePostPage.cs | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,010 | SubText | ChrisPelatari | C# | Code | 320 | 1,005 | #region Disclaimer/Info
///////////////////////////////////////////////////////////////////////////////////////////////////
// Subtext WebLog
//
// Subtext is an open source weblog system that is a fork of the .TEXT
// weblog system.
//
// For updated news and information please visit http://subtextproject.com/
// Su... | 23,232 |
https://github.com/Devansh3712/PySQL/blob/master/pysql/packages/dml_commands.py | Github Open Source | Open Source | MIT | 2,021 | PySQL | Devansh3712 | Python | Code | 1,112 | 2,478 | """
MIT License
Copyright (c) 2021 Devansh Singh
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
to use, copy, modify, merge, publish,... | 43,975 |
https://github.com/knowsWhereHisTowelIs/pi-pyth-serv-socketio/blob/master/cpp/utils/error.cpp | Github Open Source | Open Source | MIT | null | pi-pyth-serv-socketio | knowsWhereHisTowelIs | C++ | Code | 35 | 102 | #include "error.h"
void myError(const char *msg)
{
perror(msg);
exit(EXIT_FAILURE);
}
class HardwareException: public std::exception {
public:
HardwareException(const char* msg="General Hardware Exception"):
msg_(msg) {}
const char* getMsg() { return msg_; }
private:
const char *msg_;
};
| 21,225 |
https://github.com/chandraknight/vidbite-main/blob/master/app/Models/Campaign.php | Github Open Source | Open Source | MIT | null | vidbite-main | chandraknight | PHP | Code | 67 | 258 | <?php
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Campaign extends Model
{
use HasFactory;
protected $guarded = [];
protected $casts = [
'schedule' => 'datetime:Y-m-d',
'schedule_ends' => 'd... | 52,315 |
https://github.com/binance/binance-mp-demo/blob/master/bmp-components-demo/src/pages/extended/pages/navigation/CustomNavigationBar.tsx | Github Open Source | Open Source | MIT | 2,022 | binance-mp-demo | binance | TypeScript | Code | 110 | 371 | import * as React from 'react'
import mpService from '@binance/mp-service'
import { Icon, View } from '@binance/mp-components'
import './CustomNavigationBar.scss'
interface Props {
loading: boolean
show: boolean
color: string
background: string
title: string
back: boolean
paddingTop: number
}
export def... | 6,977 |
https://github.com/v3io/parquez/blob/master/core/kv_table.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | parquez | v3io | Python | Code | 198 | 826 | import requests
import json
SCHEMA = '.%23schema'
PARTITION_BY_FIELDS = ['year', 'month', 'day', 'hour']
def get_request_url(container_name, table_name, v3io_api_endpoint_host, v3io_api_endpoint_port):
return 'https://{}:{}/{}/{}/{}'.format(v3io_api_endpoint_host, v3io_api_endpoint_port, container_name, table_na... | 45,840 |
https://github.com/opensafely-core/stata-docker/blob/master/bin/ado/base/n/notes_dlg.sthlp | Github Open Source | Open Source | BSD-Source-Code | null | stata-docker | opensafely-core | null | Spoken | 25 | 101 | {smcl}
{* *! version 1.1.4 11feb2011}{...}
{vieweralsosee "[D] notes" "mansection D notes"}{...}
{title:Tool}
{stata varmanage:Variables Manager}
{title:Dialogs}
{dialog notes_list:List or search notes}
{dialog notes_renumber:Renumber notes}
| 33,386 |
https://github.com/loghole/dashboard/blob/master/pkg/entry/v1/entry_grpc.pb.go | Github Open Source | Open Source | MIT | null | dashboard | loghole | Go | Code | 333 | 928 | // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package entry
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package ... | 14,345 |
https://github.com/kaijs/kaijs.github.io/blob/master/kai/0.1/scripts/dojox/editor/plugins/nls/tr/ShowBlockNodes.js | Github Open Source | Open Source | BSD-3-Clause, AFL-2.1 | 2,018 | kaijs.github.io | kaijs | JavaScript | Code | 4 | 37 | define("dojox/editor/plugins/nls/tr/ShowBlockNodes",{showBlockNodes:"HTML Bloğu Öğelerini Göster"}); | 55,513 |
https://github.com/techno-express/node-7z-archive/blob/master/test/lib/fullArchive.test.js | Github Open Source | Open Source | MIT | 2,021 | node-7z-archive | techno-express | JavaScript | Code | 235 | 851 | /*global describe, it */
'use strict';
import chai from 'chai';
import fs from 'fs-extra';
import {
fullArchive
} from '../../lib/index.js';
const expect = chai.expect;
describe('Method: `fullArchive`', function () {
it('should return an error on 7z error', function (done) {
fullArchive('test/nothere.7z', '.t... | 6,082 |
https://github.com/spanoop11/StripeAppstore/blob/master/payments-core/build/generated/source/kapt/debug/com/stripe/android/payments/core/injection/Stripe3ds2TransactionModule_Companion_ProvideMessageVersionRegistryFactory.java | Github Open Source | Open Source | MIT | 2,022 | StripeAppstore | spanoop11 | Java | Code | 68 | 314 | // Generated by Dagger (https://dagger.dev).
package com.stripe.android.payments.core.injection;
import com.stripe.android.stripe3ds2.transaction.MessageVersionRegistry;
import dagger.internal.DaggerGenerated;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
@DaggerGenerated
@SuppressWarnings({
... | 42,652 |
https://github.com/apache/curator/blob/master/curator-client/src/main/java/org/apache/curator/HandleHolder.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | curator | apache | Java | Code | 457 | 1,216 | /*
* 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 ... | 46,256 |
https://github.com/YuriyParashchak/shop/blob/master/console/migrations/m190207_115446_add_imgUrl_goods_table.php | Github Open Source | Open Source | BSD-3-Clause | null | shop | YuriyParashchak | PHP | Code | 71 | 287 | <?php
use yii\db\Migration;
/**
* Class m190207_115446_add_imgUrl_goods_table
*/
class m190207_115446_add_imgUrl_goods_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('goods', 'img', $this->json()->comment('(DC2Type:json_array)'));
$... | 36,418 |
https://github.com/Bruno125/android-dev-peru-app/blob/master/app/src/main/java/dev/android/peru/modules/meetup/markAttendance/MarkAttendanceFragment.kt | Github Open Source | Open Source | Apache-2.0 | null | android-dev-peru-app | Bruno125 | Kotlin | Code | 87 | 363 | package dev.android.peru.modules.meetup.markAttendance
import android.app.AlertDialog
import android.os.Bundle
import android.view.View
import androidx.lifecycle.Observer
import dev.android.peru.modules.search.SearchUserFragment
import dev.android.peru.provide
import peru.android.dev.datamodel.Attendance
class MarkAt... | 17,005 |
https://github.com/ulcdenis/loono/blob/master/lib/ui/screens/prevention/examination_detail/new_time_screen.dart | Github Open Source | Open Source | MIT | 2,022 | loono | ulcdenis | Dart | Code | 276 | 1,243 | import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:intl/intl.dart';
import 'package:loono/constants.dart';
import 'package:loono/helpers/examination_detail_helpers.dart';
import 'package:loono/helpers/snackbar_message.dart';
import... | 38,884 |
https://github.com/shandyyyyy/react-blog/blob/master/src/views/archive/index.less | Github Open Source | Open Source | MIT | 2,020 | react-blog | shandyyyyy | Less | Code | 231 | 786 | .archives {
position: relative;
padding: 30px 10px;
.pagination {
width: 100%;
padding: 10px 0;
display: flex;
display: -webkit-flex;
flex-direction: row;
justify-content: center;
background-color: '#fff';
}
.archives-wrap {
position: relative;
w... | 31,066 |
https://github.com/Harhao/dva-admin/blob/master/src/components/menu/lang.js | Github Open Source | Open Source | MIT | 2,019 | dva-admin | Harhao | JavaScript | Code | 40 | 149 | import React from 'react';
import { Menu } from 'antd';
function menu(){
return (
<Menu style={{marginTop:'15px',width:'150px'}}>
<Menu.Item>
<a target="_blank" rel="noopener noreferrer">
CN 简体中文
</a>
</Menu.Item>
<Menu.... | 32,827 |
https://github.com/ElvisChiang/react-native-boilerplate/blob/master/fastlane/Fastfile | Github Open Source | Open Source | MIT | 2,018 | react-native-boilerplate | ElvisChiang | Ruby | Code | 163 | 466 | # More documentation about how to customize your build
# can be found here:
# https://docs.fastlane.tools
fastlane_version "1.109.0"
# This value helps us track success metrics for Fastfiles
# we automatically generate. Feel free to remove this line
# once you get things running smoothly!
generated_fastfile_id "27630d... | 39,368 |
https://github.com/Georgetown-University-Libraries/File-Analyzer/blob/master/core/src/main/gov/nara/nwts/ftapp/counter/RPT.java | Github Open Source | Open Source | MIT | 2,019 | File-Analyzer | Georgetown-University-Libraries | Java | Code | 200 | 877 | package gov.nara.nwts.ftapp.counter;
import gov.nara.nwts.ftapp.counterReport.BookReport1R4;
import gov.nara.nwts.ftapp.counterReport.BookReport2;
import gov.nara.nwts.ftapp.counterReport.BookReport2R4;
import gov.nara.nwts.ftapp.counterReport.DatabaseReport1;
import gov.nara.nwts.ftapp.counterReport.DatabaseReport1R4... | 38,641 |
https://github.com/fmidev/smartmet-plugin-backend/blob/master/backend/Plugin.h | Github Open Source | Open Source | MIT | null | smartmet-plugin-backend | fmidev | C | Code | 134 | 439 | // ======================================================================
/*!
* \brief SmartMet Backend plugin interface
*/
// ======================================================================
#pragma once
#include <engines/sputnik/Engine.h>
#include <spine/Reactor.h>
#include <spine/SmartMetPlugin.h>
namespa... | 19,995 |
https://github.com/Jcharis/neattext/blob/master/neattext/pattern_data/__init__.py | Github Open Source | Open Source | MIT | 2,022 | neattext | Jcharis | Python | Code | 4 | 8 | from .pattern_data import * | 13,239 |
https://github.com/pauloedspinho20/NFT-Dapp-Template/blob/master/dapp/src/components/Modal/ConnectWallet.jsx | Github Open Source | Open Source | MIT | 2,022 | NFT-Dapp-Template | pauloedspinho20 | null | Spoken | 268 | 850 | import { useEffect } from 'react';
import ButtonConnectWallet from 'components/Button/ConnectWallet';
import IconMetamask from 'components/Icon/Metamask/Metamask';
import Image from 'components/Image';
import { Link } from 'react-router-dom';
import Modal from 'components/Modal/Modal';
import useBepro, { updateConnect... | 27,004 |
https://github.com/logaritmdev/dezel-libs/blob/master/lib-style/src/press/PressStylesheet.cpp | Github Open Source | Open Source | MIT | 2,019 | dezel-libs | logaritmdev | C++ | Code | 299 | 1,169 | #include "PressStylesheet.h"
#include "PressMediaQuery.h"
namespace Press {
PressStylesheet::PressStylesheet() {
}
PressStylesheet::~PressStylesheet() {
}
PressRuleset *PressStylesheet::createPressRuleset(PressSelector &selector) {
std::list<TokenList>::iterator it;
PressRuleset *r = new PressRuleset(selector, *t... | 56,192 |
https://github.com/chenxiaobai521/1907/blob/master/resources/views/admin/goods/create.blade.php | Github Open Source | Open Source | MIT | 2,019 | 1907 | chenxiaobai521 | Blade | Code | 479 | 3,184 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="/static/admin/css/bootstrap.min.css">
<script src="/stat... | 1,489 |
https://github.com/pip-webui/pip-webui-files/blob/master/samples/files_success/files_success.js | Github Open Source | Open Source | MIT | null | pip-webui-files | pip-webui | JavaScript | Code | 44 | 153 | (function (angular) {
'use strict';
var thisModule = angular.module('appFiles.SuccessUpload', ['ngMockE2E']);
thisModule.controller('SuccessUploadController',
function ($scope, $interval, $timeout, $injector, pipTransaction) {
$scope.progress = 0;
$scope.state = 'upload'... | 15,274 |
https://github.com/itu-square/symsim/blob/master/src/test/scala/symsim/examples/concrete/windygrid/WindyGridIsAgentSpec.scala | Github Open Source | Open Source | Apache-2.0 | null | symsim | itu-square | Scala | Code | 17 | 70 | package symsim
package examples.concrete.windygrid
import laws.AgentLaws
class WindyGridIsAgentSpec
extends SymSimSpec:
checkAll ("concrete.windygrid.WindyGrid is an Agent", AgentLaws (WindyGrid).laws)
| 9,731 |
https://github.com/faille76/netcms/blob/master/src/Shared/Infrastructure/Storage/Mysql/AbstractDataProvider.php | Github Open Source | Open Source | 0BSD | 2,021 | netcms | faille76 | PHP | Code | 172 | 533 | <?php
declare(strict_types=1);
namespace App\Shared\Infrastructure\Storage\Mysql;
use App\Shared\Domain\Exception\NotFoundException;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Driver\Statement;
use Doctrine\DBAL\Query\QueryBuilder;
abstract class AbstractDataProvider
{
private Connection $connection;
... | 55,063 |
https://github.com/mbonsma/merely-useful.github.io/blob/master/src/unit/demo_test_weeks.py | Github Open Source | Open Source | CC-BY-4.0, LicenseRef-scancode-public-domain | 2,019 | merely-useful.github.io | mbonsma | Python | Code | 31 | 161 | import datetime
import wrappers
print('current', wrappers.weeks_since_01(datetime.date(2018, 8, 1)))
wrappers.TESTING_DATE = datetime.date(2018, 8, 30)
print('fixed', wrappers.weeks_since_01(datetime.date(2018, 8, 1)))
#--------------------
print('current', wrappers.weeks_since_02(datetime.date(2018, 8, 1)))
wrapper... | 34,976 |
https://github.com/enaml-ops/pluginlib/blob/master/productv1/rpc.go | Github Open Source | Open Source | Apache-2.0 | 2,017 | pluginlib | enaml-ops | Go | Code | 338 | 853 | package product
import (
"errors"
"net/rpc"
"github.com/enaml-ops/pluginlib/cred"
"github.com/enaml-ops/pluginlib/pcli"
"github.com/xchapter7x/lo"
)
type (
// Args contains the args for a GetProduct call.
Args struct {
Args []string
CloudConfig []byte
CredStore cred.Store
}
// Response contai... | 22,573 |
https://github.com/alexzk1/ed_highway/blob/master/widgets/edsmsystemsmodel.h | Github Open Source | Open Source | MIT | null | ed_highway | alexzk1 | C | Code | 138 | 459 | #ifndef EDSMSYSTEMSMODEL_H
#define EDSMSYSTEMSMODEL_H
#include <mutex>
#include <vector>
#include <QAbstractTableModel>
#include "utils/runners.h"
class EDSMSystemsModel : public QAbstractTableModel
{
Q_OBJECT
public:
explicit EDSMSystemsModel(QObject *parent = nullptr);
// Header:
QVariant headerD... | 24,745 |
https://github.com/pirocorp/Databases-Advanced---Entity-Framework/blob/master/Exercises/01. Entity Framework Introduction/02. Database First.Tests/DeleteProjectById/Test_000_001.cs | Github Open Source | Open Source | MIT | null | Databases-Advanced---Entity-Framework | pirocorp | C# | Code | 347 | 1,247 | namespace SoftUni.Tests.DeleteProjectById
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using NUnit.Framework;
using SoftUni;
using SoftUni.Data;
usi... | 5,358 |
https://github.com/gatherstars-com/jwz/blob/master/test/testdata/ham/0637.2eadb44dff5eb5df1615ff5e826bc69e.eml | Github Open Source | Open Source | Apache-2.0 | 2,023 | jwz | gatherstars-com | null | Spoken | 330 | 1,150 | From: fork-admin@xent.com Fri Sep 13 20:45:05 2002
Return-Path: <fork-admin@xent.com>
Delivered-To: yyyy@localhost.example.com
Received: from localhost (jalapeno [127.0.0.1])
by jmason.org (Postfix) with ESMTP id 26AB416F16
for <jm@localhost>; Fri, 13 Sep 2002 20:45:05 +0100 (IST)
Received: from jalapeno [127.0.0.1]... | 47,180 |
https://github.com/cywd/FitHub/blob/master/FitHub/Pods/FitRefresh/Sources/FRConst.swift | Github Open Source | Open Source | MIT | 2,021 | FitHub | cywd | Swift | Code | 186 | 888 | //
// FRConst.swift
// FitRefresh
//
// Created by Cyrill on 2016/12/30.
// Copyright © 2016年 Cyrill. All rights reserved.
//
import UIKit
/// 文字颜色
let RefreshLabelTextColor = FRColor(r: 100, g: 100, b: 100)
/// 字体大小
let RefreshLabelFont = UIFont.boldSystemFont(ofSize: 13)
/// 头部高度
let RefreshHeaderHeight: CGFlo... | 5,740 |
https://github.com/mmmika/GdxJRPG/blob/master/JRPG/src/com/jsandusky/jrpg/dataeditor/AnimEditor.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | GdxJRPG | mmmika | Java | Code | 336 | 1,216 | package com.jsandusky.jrpg.dataeditor;
import com.jsandusky.gdx.common.Menu;
import com.jsandusky.jrpg.model.*;
import com.badlogic.gdx.graphics.g3d.decals.*;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.Camera;
import com.badlogic.gdx.g... | 52,669 |
https://github.com/fossabot/gazetteer/blob/master/gazetteer-postgis/src/main/java/io/gazetteer/postgis/PostgisTileSource.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | gazetteer | fossabot | Java | Code | 168 | 670 | package io.gazetteer.postgis;
import com.github.benmanes.caffeine.cache.AsyncLoadingCache;
import com.github.benmanes.caffeine.cache.Caffeine;
import io.gazetteer.core.Tile;
import io.gazetteer.core.TileSource;
import io.gazetteer.core.XYZ;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java... | 5,389 |
https://github.com/SangYukekeaiai/Computational-Physics/blob/master/Project1/code/program.m | Github Open Source | Open Source | MIT | 2,021 | Computational-Physics | SangYukekeaiai | MATLAB | Code | 30 | 117 | clear all;clc;
a=[0.500 2.000 3.225 3.500 3.550 3.800];
tic
for j = 1:1:6;
for i=1:1:509
x(1) = 0.9 ;
x(i+1) = a(j).*x(i).*(1-x(i));
end
k = 450:1:510;
figure(j);
plot(k,x(k));
end
toc
| 38,996 |
https://github.com/intrinsically/george/blob/master/src/commonMain/kotlin/costanza/george/reflect/ObjectProperty.kt | Github Open Source | Open Source | Apache-2.0 | null | george | intrinsically | Kotlin | Code | 47 | 132 | package costanza.george.reflect
class ObjectProperty(
ri: ReflectBase,
val name: String,
val get: () -> IReflect?,
val set: (entity: IReflect?) -> Unit
) {
init {
ri.objects += this
}
}
fun ReflectBase.entity(
fnName: String,
get: () -> IReflect?,
set: (entity: IReflect?) -... | 18,558 |
https://github.com/Zackratos/GeekNews/blob/master/app/src/main/java/com/codeest/geeknews/base/contract/vtex/RepliesContract.java | Github Open Source | Open Source | MIT | 2,017 | GeekNews | Zackratos | Java | Code | 60 | 268 | package com.codeest.geeknews.base.contract.vtex;
import com.codeest.geeknews.base.BasePresenter;
import com.codeest.geeknews.base.BaseView;
import com.codeest.geeknews.model.bean.NodeListBean;
import com.codeest.geeknews.model.bean.RealmLikeBean;
import com.codeest.geeknews.model.bean.RepliesListBean;
import java.uti... | 51,381 |
https://github.com/Textualize/textual/blob/master/src/textual/drivers/headless_driver.py | Github Open Source | Open Source | MIT | 2,023 | textual | Textualize | Python | Code | 182 | 508 | from __future__ import annotations
import asyncio
from .. import events
from ..driver import Driver
from ..geometry import Size
class HeadlessDriver(Driver):
"""A do-nothing driver for testing."""
@property
def is_headless(self) -> bool:
"""Is the driver running in 'headless' mode?"""
r... | 22,547 |
https://github.com/henrypfhu/MoonGene/blob/master/src/gene/src/main/scala/com/moongene/GeneConfig.scala | Github Open Source | Open Source | MIT | 2,015 | MoonGene | henrypfhu | Scala | Code | 46 | 121 | //Copyright 2014, Alex Khilko.
//This file is part of MoonGene which is released under MIT.
//See file LICENSE.TXT or go to www.alexkhilko.com for full license details.
package com.moongene
import com.typesafe.config.ConfigFactory
object GeneConfig {
val config = ConfigFactory.load()
val serverPort = config.get... | 21,858 |
https://github.com/dcsobral/advxml/blob/master/src/test/scala/advxml/core/PredicateTests.scala | Github Open Source | Open Source | Apache-2.0 | null | advxml | dcsobral | Scala | Code | 122 | 364 | package advxml.core
import org.scalatest.funsuite.AnyFunSuite
class PredicateTests extends AnyFunSuite with PredicateAsserts {
test("Combine two predicate with in and") {
testAnd((p1, p2) => Predicate.and(p1, p2))
}
test("Combine two predicate with in or") {
testOr((p1, p2) => Predicate.or(p1, p2))
... | 19,931 |
https://github.com/MuazamAli69/ESOL-Plugin/blob/master/example/lib/models/plugins/fee_base.dart | Github Open Source | Open Source | Apache-2.0 | null | ESOL-Plugin | MuazamAli69 | Dart | Code | 69 | 218 | import 'plugin_base.dart';
abstract class FeePlugin extends Plugin {
String amount;
String type;
String receiverAddress;
String getAmountText();
FeePlugin({this.amount, this.type, this.receiverAddress, name, isActive})
: super(name: name, isActive: isActive);
num calcFee(tokensAmount) {
if (th... | 56,963 |
https://github.com/suj1th/vertx-futures/blob/master/src/main/scala/com/collectiive/vertx/completablefuture/stages/RunStage.scala | Github Open Source | Open Source | MIT | null | vertx-futures | suj1th | Scala | Code | 29 | 122 | package com.collectiive.vertx.completablefuture.stages
import java.util.concurrent.CompletionStage
import com.collectiive.vertx.completablefuture.VertxCompletableFuture
import scala.concurrent.Future
/**
* @author suj1th
*/
class RunStage[T](other: CompletionStage[_], action: Runnable) extends VertxCompletableFut... | 11,770 |
https://github.com/fengzilong/h5-scene-maker/blob/master/src/util/page-animate.js | Github Open Source | Open Source | MIT | 2,016 | h5-scene-maker | fengzilong | JavaScript | Code | 202 | 897 | export const DIRECTION = {
'LEFT_TO_RIGHT': 0,
'RIGHT_TO_LEFT': 1,
'BOTTOM_TO_TOP': 2,
'TOP_TO_BOTTOM': 3
};
const raf = window.requestAnimationFrame;
let animate = ( $from, $to, direction, callback ) => {
if( typeof direction === 'undefined' ){
direction = DIRECTION.RIGHT_TO_LEFT;
}
let classAnime = [
'p... | 21,156 |
https://github.com/Sashkis/vknotice/blob/master/src/SectionApp/sections/UserPage/js/UserPageCtrl.ts | Github Open Source | Open Source | MIT | null | vknotice | Sashkis | TypeScript | Code | 239 | 1,019 | module SectionsApp {
export interface IUserPageStateParams extends ng.ui.IStateService {
user_id: string,
}
enum Friend_Status {
NotFriend,
OutgoingRequest,
IncomingRequest,
IsFriend,
}
enum Relation {
Unknown,
Single,
InRelationship,
Engaged,
Married,
Complicated,
ActivelySearching,
Lo... | 47,736 |
https://github.com/StefanKubsch/lwmf/blob/master/src/lwmf_texture.hpp | Github Open Source | Open Source | Unlicense | 2,021 | lwmf | StefanKubsch | C++ | Code | 1,324 | 4,603 | /*
***************************************************
* *
* lwmf_texture - lightweight media framework *
* *
* (C) 2019 - present by Stefan Kubsch *
* *
*****... | 6,880 |
https://github.com/codecoy1212/MAMBURAO_SURVEY/blob/master/resources/views/philip.blade.php | Github Open Source | Open Source | MIT | null | MAMBURAO_SURVEY | codecoy1212 | PHP | Code | 488 | 2,942 |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="icon" type="image/x-icon" href="{{asset('dist/favicon.png')}}">
<title>Mamburao Survey App</title>
<link href="{{asset('dist/css/WEB_PROJECT_ABDU.css')}}" rel="stylesheet">
<link href="{{asset('dist/css/index.css')}}" rel="stylesheet">
<link href="{{as... | 52,043 |
https://github.com/enigmo/EGPageViewController/blob/master/EGPageViewController/Classes/EGTabBarCell.swift | Github Open Source | Open Source | MIT | 2,018 | EGPageViewController | enigmo | Swift | Code | 171 | 581 | //
// EGTabBarCell.swift
//
// Created by Adam Henry on 2017/12/06.
//
import UIKit
import SnapKit
import RxSwift
import RxCocoa
open class EGTabBarCell: UICollectionViewCell {
open var option: EGPagingOption = EGPagingOption()
let label = UILabel()
let indicatorBar = UIView()
var disposeBag = Dispo... | 3,007 |
https://github.com/GeekerClub/thirdparty/blob/master/jsoncpp/json.h | Github Open Source | Open Source | MIT | null | thirdparty | GeekerClub | C | Code | 2 | 25 | #include "thirdparty/jsoncpp-0.5.0/include/json/json.h"
| 2,741 |
https://github.com/cph-cachet/carp.core-kotlin/blob/master/carp.common/src/commonTest/kotlin/dk/cachet/carp/common/application/data/DataSerializationTest.kt | Github Open Source | Open Source | MIT | 2,023 | carp.core-kotlin | cph-cachet | Kotlin | Code | 148 | 630 | package dk.cachet.carp.common.application.data
import dk.cachet.carp.common.infrastructure.serialization.CLASS_DISCRIMINATOR
import dk.cachet.carp.common.infrastructure.serialization.CustomData
import dk.cachet.carp.common.infrastructure.test.StubDataPoint
import dk.cachet.carp.common.infrastructure.test.StubDataTypes... | 18,782 |
https://github.com/praxigento/mobi_mod_bonus_base/blob/master/Service/Period/Calc/Add.php | Github Open Source | Open Source | MIT | null | mobi_mod_bonus_base | praxigento | PHP | Code | 176 | 899 | <?php
/**
* User: Alex Gusev <alex@flancer64.com>
*/
namespace Praxigento\BonusBase\Service\Period\Calc;
use Praxigento\BonusBase\Config as Cfg;
use Praxigento\BonusBase\Repo\Data\Calculation as ECalc;
use Praxigento\BonusBase\Repo\Data\Period as EPeriod;
class Add
implements IAdd
{
/** @var \Praxigento\Bo... | 36,694 |
https://github.com/ferdinandl007/WWDC18ScholarshipSubmission/blob/master/Colors.playground/Pages/HSB Page.xcplaygroundpage/Contents.swift | Github Open Source | Open Source | BSD-4-Clause | 2,018 | WWDC18ScholarshipSubmission | ferdinandl007 | Swift | Code | 154 | 301 | //: [Previous](@previous)
import Foundation
import UIKit
import PlaygroundSupport
/*:
## HSB-Color-Space
The HSB abstraction makes it easier for humans to interact with a color space. Colors are defined by three numbers: hue, saturation and brightness *(or intensity, they are used synonym)*.
The hue value is defi... | 23,120 |
https://github.com/AjayGhanwat/AllWork/blob/master/SampleFirestore/app/src/main/java/com/bridgelabz/samplefirestore/userData.java | Github Open Source | Open Source | MIT | null | AllWork | AjayGhanwat | Java | Code | 109 | 263 | package com.bridgelabz.samplefirestore;
public class userData {
private String Title;
private String Desc;
private String Key;
private String Date;
public userData() {
}
public userData(String title, String desc, String key,String date) {
Title = title;
Desc = desc;
... | 19,657 |
https://github.com/KuoZD/BlueSkyFlightControl/blob/master/STMLIB/USBStack/SRC/usbd_core_msc.c | Github Open Source | Open Source | MIT | 2,018 | BlueSkyFlightControl | KuoZD | C | Code | 257 | 635 | /* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-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... | 25,517 |
https://github.com/loyabe/novel-cloud/blob/master/novel-monitor/src/main/java/com/java2nb/novel/monitor/NovelMonitorApplication.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | novel-cloud | loyabe | Java | Code | 37 | 158 | package com.java2nb.novel.monitor;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 监控服务启动器
* @author xiongxiaoyang
* @version 1.0
* @since 2020/5/27
*/
@EnableAdminServe... | 16,966 |
https://github.com/lucasrondon09/StartSite/blob/master/contatos_editar_action.php | Github Open Source | Open Source | MIT | 2,020 | StartSite | lucasrondon09 | PHP | Code | 49 | 186 | <?php include "conexao.php"?>
<?php include "header.php"?>
<?php include "funcoes.php"?>
<?php
$titulo = $_POST['titulo'];
$idcontato = $_POST['idcontato'];
$contato = $_POST['contato'];
$pagina = "contatos.php";
$query = "update contatos set titulo = '".$titulo."', contato = '".$contato."' where idcontatos =... | 46,329 |
https://github.com/Caetano388/Worlds/blob/master/Assets/Scripts/WorldEngine/Events/DecisionEvents/FosterTribeRelationDecisionEvent.cs | Github Open Source | Open Source | MIT | 2,020 | Worlds | Caetano388 | C# | Code | 564 | 2,123 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;
using UnityEngine.Profiling;
public class FosterTribeRelationDecisionEvent : PolityEvent
{
public const long DateSpanFactorConstant = CellGroup.GenerationSpan * 5;
public const flo... | 13,010 |
https://github.com/JueRei/intellij-obsolete-plugins/blob/master/JsTestDriver/plugin/src/main/java/com/google/jstestdriver/idea/server/ui/JstdServerConsoleTab.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | intellij-obsolete-plugins | JueRei | Java | Code | 222 | 968 | package com.google.jstestdriver.idea.server.ui;
import com.google.gson.JsonObject;
import com.google.jstestdriver.idea.server.JstdServer;
import com.google.jstestdriver.idea.server.JstdServerOutputListener;
import com.intellij.execution.filters.TextConsoleBuilder;
import com.intellij.execution.filters.TextConsoleBuild... | 25,760 |
https://github.com/abhchand/niram-color-picker/blob/master/src/js/components/icons/sun.jsx | Github Open Source | Open Source | MIT | 2,021 | niram-color-picker | abhchand | null | Spoken | 159 | 830 | import PropTypes from 'prop-types';
import React from 'react';
function SunIcon(props) {
return (
<svg
width={props.size}
height={props.size}
viewBox='0 0 100 100'
xmlns='http://www.w3.org/2000/svg'>
<title>sun</title>
<g id='sun' stroke='none' strokeWidth='1' fill='none' fill... | 51,851 |
https://github.com/muun/falcon/blob/master/falcon/app/Pods/GRDB.swift/GRDB/Core/Database+Schema.swift | Github Open Source | Open Source | MIT | 2,023 | falcon | muun | Swift | Code | 2,855 | 6,290 | #if SWIFT_PACKAGE
import CSQLite
#elseif GRDBCIPHER
import SQLCipher
#elseif !GRDBCUSTOMSQLITE && !GRDBCIPHER
import SQLite3
#endif
extension Database {
// MARK: - Database Schema
/// Clears the database schema cache.
///
/// You may need to clear the cache manually if the database schema is
... | 41,945 |
https://github.com/demo-hub/gateway/blob/master/src/route/data.route.ts | Github Open Source | Open Source | MIT | null | gateway | demo-hub | TypeScript | Code | 169 | 587 |
import {Request, Response} from 'express';
import {stringToBip39, stringToHash} from '../utility/bip39.utility';
import {transaction as getTransaction, tagValue} from '../query/transaction.query';
import {getTransactionOffset, getChunk} from '../query/chunk.query';
export const dataRouteRegex = /^\/?([a-zA-Z0-9-_]{43... | 10,768 |
https://github.com/rottenjonny88/opengrm-ngram/blob/master/src/test/ngramcompile_randgen_far.sh | Github Open Source | Open Source | Apache-2.0 | 2,019 | opengrm-ngram | rottenjonny88 | Shell | Code | 83 | 390 | #!/bin/bash
# Description:
# Compiles FARs required for testing command line binary ngramapply.
testdata=$srcdir/testdata
randgenname="${1}"
outpath="${2}"
FARNAME="${outpath}".apply
TAR="${randgenname}".apply.FSTtxt.tgz
SYM="${randgenname}".apply.sym
FSTOPTS="-keep_isymbols -keep_osymbols -keep_state_numbering"
set... | 18,477 |
https://github.com/connorcook/digidiet/blob/master/digidiet/public/js/controllers/postCtrl.js | Github Open Source | Open Source | MIT | 2,015 | digidiet | connorcook | JavaScript | Code | 70 | 250 | angular.module('postCtrl',[])
//inject the User service into the controller
.controller('postController', function($scope, $http, User)
{
$scope.loading = true;
Post.getFlags()
.success(function(data){
$scope.posts = data;
$scope.loading = false;
});
// $Post.o()
// .success(function(data){... | 41,954 |
https://github.com/wizawu/1c/blob/master/@types/jdk/javax.swing.JPopupMenu$Separator.d.ts | Github Open Source | Open Source | MIT | 2,020 | 1c | wizawu | TypeScript | Code | 20 | 61 | declare namespace javax {
namespace swing {
class JPopupMenu$Separator extends javax.swing.JSeparator {
public constructor()
public getUIClassID(): java.lang.String
}
}
}
| 31,543 |
https://github.com/justinkvang/Employee-Directory/blob/master/src/App.js | Github Open Source | Open Source | MIT | null | Employee-Directory | justinkvang | JavaScript | Code | 31 | 85 | import React from "react";
import Navbar from "./components/Navbar";
import MainContainer from "./components/MainContainer";
import "./components/style.css"
function App() {
return (
<div className="App">
<Navbar />
<MainContainer />
</div>
);
}
export default App;
| 1,210 |
https://github.com/khoadangatd/Movie/blob/master/resources/views/movie/watchMovie.blade.php | Github Open Source | Open Source | MIT | null | Movie | khoadangatd | PHP | Code | 500 | 3,042 |
@extends('layout.dash')
@section('css')
<link rel="stylesheet" href="{{ asset('Doanweb/movie/detail.css')}}?v=<?php echo time(); ?>">
<link rel="stylesheet" href="{{ asset('Doanweb/movie/watchMovie.css')}}?v=<?php echo time(); ?>">
@endsection
@section('js')
<script src="{{ asset('Doanweb/movie/watch... | 14,014 |
https://github.com/SpDkMn/Biblioteca/blob/master/resources/views/admin/md_books/show2.blade.php | Github Open Source | Open Source | MIT | 2,017 | Biblioteca | SpDkMn | Blade | Code | 500 | 2,947 | <div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title">Informacion del Libro</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse">
<i class="fa fa-minus"></i>
</button>
</div>
</div>
<div class="box-body">
... | 37,999 |
https://github.com/MikhailChe/TWM-LL-PC-Controller/blob/master/src/unidaq/IXUD_CARD_INFO.java | Github Open Source | Open Source | MIT | null | TWM-LL-PC-Controller | MikhailChe | Java | Code | 272 | 855 | package unidaq;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import unidaq.UniDaqLibrary.UCHAR;
/**
* This file was autogenerated by
* <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivi... | 30,669 |
https://github.com/laxmangordon/SFG/blob/master/SFG/SFG.ino | Github Open Source | Open Source | MIT | null | SFG | laxmangordon | null | Spoken | 29 | 141 | String ID="GLIDER NAME HERE";
void setup() {
initialize_board(115200,400000);
wait_for_serial(30);
initialize_PCF8523(); //RTC
initialize_SD(10);
//initialize_HMC6343(); //Compass
//initialize_BME280s(); //Internal atmo sensors.
//initialize_NEOM8U(); //GPS-Dead Reckoning
//initialize_VL6180();
dela... | 23,351 |
https://github.com/corda/jmeter-sampler/blob/master/build.gradle | Github Open Source | Open Source | Apache-2.0 | 2,020 | jmeter-sampler | corda | Gradle | Code | 337 | 970 | plugins {
id 'org.jetbrains.kotlin.jvm' version '1.2.60'
id 'maven'
}
group 'com.r3.corda'
version '1.0-SNAPSHOT'
// You can define this property in ~/.gradle/gradle.properties on your dev box.
if (! project.hasProperty('cordaArtifactoryUsername') || ext.cordaArtifactoryUsername == null) {
ext.cordaArtifa... | 4,380 |
https://github.com/wzh442718973/learn/blob/master/c/myfopen.c | Github Open Source | Open Source | BSD-2-Clause | 2,018 | learn | wzh442718973 | C | Code | 18 | 76 | #include <stdio.h>
int
main(int argc, char *argv[])
{
FILE *fp = fopen("/srv/tftp/test","w+");
fprintf(fp,"hello world\n");
fclose(fp);
return 0;
}
| 34,965 |
https://github.com/school-engagements/pikater-vaadin/blob/master/src/org/pikater/web/vaadin/gui/server/ui_expeditor/expeditor/boxmanager/BoxManagerToolbox.java | Github Open Source | Open Source | Apache-2.0 | null | pikater-vaadin | school-engagements | Java | Code | 411 | 1,396 | package org.pikater.web.vaadin.gui.server.ui_expeditor.expeditor.boxmanager;
import org.pikater.web.experiment.server.BoxInfoServer;
import org.pikater.web.vaadin.gui.server.components.toolbox.Toolbox;
import org.pikater.web.vaadin.gui.server.ui_expeditor.expeditor.boxmanager.views.AbstractBoxManagerView;
import org.p... | 9,869 |
https://github.com/LuShengDong/wasabi/blob/master/modules/eventlog/src/test/java/com/intuit/wasabi/eventlog/impl/EventLogEventEnvelopeTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | wasabi | LuShengDong | Java | Code | 147 | 386 | /*******************************************************************************
* Copyright 2016 Intuit
* <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.o... | 56,679 |
https://github.com/NerdCowboy/nerdcowboy/blob/master/src/components/svgs/BorderRounded/styles.module.scss | Github Open Source | Open Source | MIT | 2,022 | nerdcowboy | NerdCowboy | SCSS | Code | 10 | 36 | .borderRounded {
color: $brown-1000;
}
.isRightSide {
transform: rotate(180deg);
}
| 16,982 |
https://github.com/davidchase/hodge-podge/blob/master/client/src/common/header.js | Github Open Source | Open Source | MIT | 2,014 | hodge-podge | davidchase | JavaScript | Code | 34 | 103 | 'use strict';
var pubsub = require('./pubsub');
var basketCount = document.querySelector('.basket-count');
module.exports = function() {
pubsub.subscribe('quantityUpdate', function(data) {
var currentCount = parseInt(basketCount.textContent, 10);
var newCount = parseInt(data, 10);
basketCoun... | 39,059 |
https://github.com/constantinosgeorgiou/breezebnb/blob/master/client/src-backup/pages/Listing/components/Photos.jsx | Github Open Source | Open Source | MIT | null | breezebnb | constantinosgeorgiou | null | Spoken | 33 | 90 | import React from 'react'
import { Carousel } from "react-bootstrap";
const Photos = ({ photos }) => {
return (
<Carousel>
<Carousel.Item>
<img src={photos[0]} alt="" />
</Carousel.Item>
</Carousel>
);
};
export default Photos | 11,792 |
https://github.com/TuoYingtao/glume-mall/blob/master/glume-admin/src/main/java/com/glume/glumemall/admin/controller/MenuController.java | Github Open Source | Open Source | Apache-2.0 | null | glume-mall | TuoYingtao | Java | Code | 428 | 1,898 | package com.glume.glumemall.admin.controller;
import com.glume.common.core.utils.JwtUtils;
import com.glume.common.core.utils.R;
import com.glume.common.core.utils.SpringUtils;
import com.glume.common.core.annotation.valid.AddGroup;
import com.glume.common.core.annotation.valid.UpdateGroup;
import com.glume.common.my... | 16,958 |
https://github.com/Tatsinnit/P/blob/master/Src/PRuntimes/PSymbolicRuntime/src/main/java/psymbolic/runtime/machine/buffer/SymbolicBag.java | Github Open Source | Open Source | MIT | 2,021 | P | Tatsinnit | Java | Code | 304 | 1,067 | package psymbolic.runtime.machine.buffer;
import lombok.Getter;
import psymbolic.runtime.NondetUtil;
import psymbolic.runtime.*;
import psymbolic.runtime.machine.*;
import psymbolic.valuesummary.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.func... | 18,519 |
https://github.com/15520783/server_app_ait/blob/master/common/models/infomation.js | Github Open Source | Open Source | MIT | null | server_app_ait | 15520783 | JavaScript | Code | 7 | 22 | 'use strict';
module.exports = function(Infomation) {
};
| 11,305 |
https://github.com/DBatOWL/tutorials/blob/master/jee-7/src/main/java/com/baeldung/singleton/CarServiceSingleton.java | Github Open Source | Open Source | MIT | 2,022 | tutorials | DBatOWL | Java | Code | 104 | 329 | package com.baeldung.singleton;
import java.util.UUID;
import javax.inject.Singleton;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Singleton
public class CarServiceSingleton {
private static Logger LOG = LoggerFactory.getLogger(CarServiceSingleton.class);
private UUID id = UUID.randomUUID();
... | 34,129 |
https://github.com/hemashushu/clobaframe/blob/master/source/io/src/main/java/org/archboy/clobaframe/io/http/MultipartFormResourceInfo.java | Github Open Source | Open Source | Apache-2.0 | null | clobaframe | hemashushu | Java | Code | 115 | 281 | package org.archboy.clobaframe.io.http;
import java.nio.charset.Charset;
import org.archboy.clobaframe.io.ResourceInfo;
/**
* The multi-part POST FORM data.
*
* @author yang
*/
public interface MultipartFormResourceInfo extends ResourceInfo{
/**
* The field name.
*
* @return
*/
String getFieldName();
... | 48,630 |
https://github.com/dannnoon/Bookcase/blob/master/db/BooksDAO.cs | Github Open Source | Open Source | Apache-2.0 | null | Bookcase | dannnoon | C# | Code | 252 | 716 | using Bookcase.db;
using Bookcase.model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Bookcase.db
{
class BooksDAO
{
public static void AddBook(Book book)
{
using (var db = new BookcaseDB())
... | 16,075 |
https://github.com/asgarov1/manningSecureProject/blob/master/src/main/java/com/johnsonautoparts/db/DB.java | Github Open Source | Open Source | Apache-1.1 | null | manningSecureProject | asgarov1 | Java | Code | 355 | 957 | package com.johnsonautoparts.db;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
/**
* NO CHANGES NEEDED ON THIS CLASS FOR THE liveProject
*
* Class for handling database connections and calls when needed
*
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQ... | 50,722 |
https://github.com/cmhill/q-compression/blob/master/peerj_manuscript/Makefile | Github Open Source | Open Source | MIT | null | q-compression | cmhill | Makefile | Code | 42 | 157 | OUTNAME = compression-$(shell date +%F).pdf
all: compression.pdf
compression.pdf: manuscript.tex
pdflatex manuscript.tex; bibtex manuscript; pdflatex manuscript.tex; pdflatex manuscript.tex;
mv manuscript.pdf ${OUTNAME}
clean:
rm -rf q-compression*.pdf
rm -f q-compression.log
rm -f q-compression.dvi
rm -f q-co... | 55,607 |
https://github.com/team4099/Steamworks-2017/blob/master/src/main/java/org/usfirst/frc/team4099/auto/modes/BaselineMode.kt | Github Open Source | Open Source | MIT | null | Steamworks-2017 | team4099 | Kotlin | Code | 59 | 258 | package org.usfirst.frc.team4099.auto.modes
// go to the baseline
import org.usfirst.frc.team4099.auto.AutoModeEndedException
import org.usfirst.frc.team4099.auto.actions.ForwardAction
import org.usfirst.frc.team4099.lib.util.AutonomousInitParameters
/**
* Created by plato2000 on 2/13/17.
*/
class BaselineMode(ini... | 29,027 |
https://github.com/tonyhhyip/generator-404-busters/blob/master/__tests__/app.js | Github Open Source | Open Source | BSD-2-Clause-FreeBSD | null | generator-404-busters | tonyhhyip | JavaScript | Code | 68 | 262 | 'use strict';
const path = require('path');
const helpers = require('yeoman-test');
const assert = require('yeoman-assert');
/* globals it, describe, beforeEach, describe */
describe('404-busters', () => {
beforeEach(() => helpers.run(path.join(__dirname, '..', 'generators', 'app'))
.withPrompts({
name: ... | 22,717 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/米折-千万女性专属精选折扣正品-6.1.0(越狱应用)_headers/HBAppearance.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 51 | 158 | //
// 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 Steve Nygard.
//
#import <Foundation/NSObject.h>
@interface HBAppearance : NSObject
{
}
+ (void)setupViewController;
+ (void)setupSegmentedControl;
+ ... | 41,890 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.