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/garrynigel/Priam/blob/master/priam/src/main/java/com/netflix/priam/config/PriamConfiguration.java | Github Open Source | Open Source | Apache-2.0 | null | Priam | garrynigel | Java | Code | 1,857 | 6,883 | /*
* Copyright 2018 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 24,503 |
https://github.com/gabzon/onlinedance/blob/master/resources/views/welcome.blade.php | Github Open Source | Open Source | MIT | null | onlinedance | gabzon | PHP | Code | 88 | 440 | <x-guest-layout>
<x-slot name="pixel">
{{ $settings->fb_pixel }}
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg">
<x-welcome.landing />
</div>
</div>
... | 16,747 |
https://github.com/three-lovely-idiots/dream/blob/master/myItems/application/common/validate/ProductPosterValidate.php | Github Open Source | Open Source | Apache-2.0 | 2,019 | dream | three-lovely-idiots | PHP | Code | 38 | 112 | <?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/4/10 0010
* Time: 下午 1:26
*/
namespace app\common\validate;
class ProductPosterValidate extends BaseValidate
{
protected $rule = [
'id'=>'require',//产品的id
];
protected $message = [
'id'=>'id必须存在',
];
} | 38,286 |
https://github.com/mtoto6469/vinton/blob/master/frontend/views/site/changepasword.php | Github Open Source | Open Source | BSD-3-Clause | null | vinton | mtoto6469 | PHP | Code | 129 | 580 | <?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$sesssion = Yii::$app->session;
if (!$sesssion->isActive) {
$sesssion->open();
}
if (isset($_SESSION['error'])){
if( $_SESSION['error'... | 50,230 |
https://github.com/QualitySolution/QSProjects/blob/master/QS.Project.Gtk/RepresentationModel.GtkUI/RepresentationAttributies.cs | Github Open Source | Open Source | Apache-2.0 | 2,023 | QSProjects | QualitySolution | C# | Code | 15 | 52 | using System;
namespace QS.RepresentationModel.GtkUI
{
[AttributeUsage (AttributeTargets.Property)]
public class UseForSearchAttribute : Attribute
{
}
}
| 43,786 |
https://github.com/Kerbores/NUTZ-ONEKEY/blob/master/thunder/thunder-bean/src/main/java/club/zhcs/thunder/bean/struts/package-info.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | NUTZ-ONEKEY | Kerbores | Java | Code | 5 | 21 | /**
*
*/
package club.zhcs.thunder.bean.struts; | 54 |
https://github.com/KasRoid/VegeXI/blob/master/VegeXI/VegeXI/Write/View/MyPageCategoryView.swift | Github Open Source | Open Source | MIT | 2,021 | VegeXI | KasRoid | Swift | Code | 384 | 1,705 | //
// MyPageCategoryView.swift
// VegeXI
//
// Created by Doyoung Song on 8/13/20.
// Copyright © 2020 TeamSloth. All rights reserved.
//
import UIKit
class MyPageCategoryView: UIView {
// MARK: - Properties
private let firstSection = UIView()
private let firstSectionLabel = UILabel().then {
... | 8,949 |
https://github.com/skill6/skill6-parent/blob/master/skill6-common/src/main/java/cn/skill6/common/encrypt/DesEncrypt.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | skill6-parent | skill6 | Java | Code | 361 | 1,371 | package cn.skill6.common.encrypt;
import cn.skill6.common.exception.tools.StackTrace2Str;
import lombok.extern.slf4j.Slf4j;
import javax.crypto.*;
import javax.crypto.spec.DESKeySpec;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecExcep... | 23,592 |
https://github.com/TheoChevalier/gaia/blob/master/dev_apps/uitest/js/UI/alert.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | gaia | TheoChevalier | JavaScript | Code | 94 | 494 | 'use strict';
var clickHandlers = {
'button1': function() {
window.parent.alert('Hello world!');
},
'button2': function() {
window.parent.alert(window.parent.confirm('Hello world?'));
},
'button3': function() {
window.parent.alert(window.parent.prompt('Hello world:', 'initial value'));
},
'bu... | 24,851 |
https://github.com/csoap/csoap.github.io/blob/master/sourceCode/dotNet4.6/wpf/src/Framework/MS/Internal/Printing/NativeMethods.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | csoap.github.io | csoap | C# | Code | 500 | 1,498 | using System;
using System.Runtime.InteropServices;
using System.Security;
using System.Security.Permissions;
namespace MS.Internal.Printing
{
internal static class NativeMethods
{
internal const UInt32 PD_ALLPAGES = 0x00000000;
internal const UInt32 PD_SELECTION = 0x00000001;
internal ... | 14,614 |
https://github.com/xygdev/XYG_ALB2B/blob/master/src/com/xinyiglass/springSample/controller/CustController.java | Github Open Source | Open Source | MIT | 2,017 | XYG_ALB2B | xygdev | Java | Code | 180 | 1,100 | package com.xinyiglass.springSample.controller;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.ann... | 45,685 |
https://github.com/karlatt/NativeScript-PluginsDemo/blob/master/app/ar/ar.module.ts | Github Open Source | Open Source | MIT | null | NativeScript-PluginsDemo | karlatt | TypeScript | Code | 69 | 228 | import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptCommonModule } from "nativescript-angular/common";
import { ARRoutingModule } from "./ar-routing.module";
import { ARComponent } from "./ar.component";
import { TNSFontIconModule } from "nativescript-ngx-fonticon";
import { DropDownModule... | 30,990 |
https://github.com/FuscaSoftware/qr-image-handler/blob/master/application/core/classes/Map.php | Github Open Source | Open Source | MIT | null | qr-image-handler | FuscaSoftware | PHP | Code | 430 | 1,288 | <?php
//require_once __DIR__ . "/Collection.php";
/**
* User: sbraun
* Date: 18.07.17
* Time: 14:02
*/
class Map extends stdClass implements Serializable, ArrayAccess, Countable {
protected $map = [];
public function __construct(array $map = null) {
if (!is_null($map) && is_array($map)) {
... | 14,488 |
https://github.com/rejasupotaro/RobotGirl/blob/master/RobotGirl/src/instrumentTest/java/rejasupotaro/robotgirl/test/UriTypeSerializer.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | RobotGirl | rejasupotaro | Java | Code | 64 | 201 | package rejasupotaro.robotgirl.test;
import android.net.Uri;
import com.activeandroid.serializer.TypeSerializer;
public class UriTypeSerializer extends TypeSerializer {
@Override
public Class<?> getDeserializedType() {
return Uri.class;
}
@Override
public Class<?> getSerializedType() {
... | 45,371 |
https://github.com/Khosiyat/anima/blob/master/anima/env/fusion/toolbox.py | Github Open Source | Open Source | MIT | 2,021 | anima | Khosiyat | Python | Code | 1,098 | 4,119 | # -*- coding: utf-8 -*-
import os
from anima.ui.base import AnimaDialogBase
from anima.ui.lib import QtCore, QtGui, QtWidgets
from anima.ui.utils import add_button, add_line
__here__ = os.path.abspath(__file__)
def UI(app_in=None, executor=None, **kwargs):
"""
:param environment: The
:class:`~stalker.... | 24,963 |
https://github.com/seblammers/dplyr/blob/master/tests/testthat/test-deprec-src-local.r | Github Open Source | Open Source | MIT | 2,021 | dplyr | seblammers | R | Code | 106 | 363 | test_that("src_tbls() includes all tbls (#4326)", {
withr::local_options(lifecycle_verbosity = "quiet")
expect_equal(
src_tbls(src_df(env = env(. = iris))),
"."
)
})
test_that("src_local only overwrites if overwrite = TRUE", {
withr::local_options(lifecycle_verbosity = "quiet")
env <- new.env(paren... | 44,148 |
https://github.com/josewilsoncc/MyCI/blob/master/.htaccess | Github Open Source | Open Source | MIT | 2,015 | MyCI | josewilsoncc | ApacheConf | Code | 11 | 62 | RewriteEngine on
RewriteCond $1 !^(index.php|public|robots.txt|assets|uploads)
RewriteRule ^(.*)$ /MyCI/index.php/$1 [L]
AddDefaultCharset UTF-8 | 39,670 |
https://github.com/kaka-lin/pycon.tw/blob/master/src/proposals/tests/forms/test_additional_speaker.py | Github Open Source | Open Source | MIT | 2,018 | pycon.tw | kaka-lin | Python | Code | 411 | 1,435 | import pytest
from proposals.forms import (
AdditionalSpeakerCancelForm, AdditionalSpeakerCreateForm,
AdditionalSpeakerSetStatusForm,
)
from proposals.models import AdditionalSpeaker
@pytest.fixture
def cancelled_additional_speaker(additional_speaker):
additional_speaker.cancelled = True
additional_s... | 4,637 |
https://github.com/samonzeweb/godb/blob/master/testallwithdocker.sh | Github Open Source | Open Source | MIT | 2,022 | godb | samonzeweb | Shell | Code | 256 | 956 | #!/usr/bin/env bash
COMPOSE_FILE="docker-compose-test.yml"
MARIADB_USER=godb
MARIADB_PASSWORD=godb
export GODB_MYSQL="$MARIADB_USER:$MARIADB_PASSWORD@/godb?parseTime=true"
POSTGRESQL_USER=godb
POSTGRESQL_PASSWORD=godb
export GODB_POSTGRESQL="postgres://$POSTGRESQL_USER:$POSTGRESQL_PASSWORD@localhost/godb?sslmode=dis... | 50,272 |
https://github.com/wavedigital/active_merchant/blob/master/test/unit/gateways/bpoint_test.rb | Github Open Source | Open Source | MIT | 2,020 | active_merchant | wavedigital | Ruby | Code | 766 | 6,647 | require 'test_helper'
class BpointTest < Test::Unit::TestCase
include CommStub
def setup
@gateway = BpointGateway.new(
username: '',
password: '',
merchant_number: ''
)
@credit_card = credit_card
@amount = 100
@options = {
order_id: '1',
billing_address: address... | 17,991 |
https://github.com/dlang/tools/blob/master/contributors.d | Github Open Source | Open Source | BSL-1.0 | 2,023 | tools | dlang | D | Code | 470 | 1,551 | #!/usr/bin/env rdmd
/**
Query contributors between two D releases.
Copyright: D Language Foundation 2017.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Example usage:
---
./contributors.d "v2.074.0..v2.075.0"
---
Author: Sebastian Wilzbach
*/
import std.array;
import std.algorithm;
import std.c... | 31,718 |
https://github.com/we4tech/restaurant-review-mobile/blob/master/Resources/window_nearby.js | Github Open Source | Open Source | Apache-2.0 | 2,011 | restaurant-review-mobile | we4tech | JavaScript | Code | 109 | 349 | //
// Create Window for nearby restaurants
//
var nearbyWindow = Titanium.UI.createWindow({
title: 'Nearby Restaurants',
backgroundColor: '#fff'
});
var nearbyTab = Titanium.UI.createTab({
icon: 'icon_nearby.png',
title: 'Nearby',
window: nearbyWindow
});
var nearbyTableHeader = Ti.UI.createLabel({... | 2,263 |
https://github.com/gregzakh/sketches/blob/master/cpp/curpshndlvals.cpp | Github Open Source | Open Source | MIT | 2,022 | sketches | gregzakh | C++ | Code | 147 | 514 | #ifndef UNICODE
#define UNICODE
#endif
#include <windows.h>
#include <winternl.h>
#include <iostream>
#include <string>
#include <vector>
#include <locale>
typedef LONG NTSTATUS;
#pragma comment (lib, "ntdll.lib")
#define ProcessHandleTable (static_cast<PROCESSINFOCLASS>(58))
#define NtCurrentProcess() (reinterpr... | 43,323 |
https://github.com/quangdangfit/go-admin/blob/master/app/middleware/cache/gredis.go | Github Open Source | Open Source | MIT | 2,021 | go-admin | quangdangfit | Go | Code | 316 | 887 | package cache
import (
"context"
"encoding/json"
"fmt"
"time"
"github.com/go-redis/redis/v8"
"github.com/quangdangfit/gocommon/logger"
"github.com/quangdangfit/go-admin/config"
)
// constants cache
const (
RedisExpiredTimes = 600
)
var ctx = context.Background()
// GRedis struct
type GRedis struct {
clie... | 7,342 |
https://github.com/goofwear/FormatDialogs/blob/master/dialogsearchstrings.cpp | Github Open Source | Open Source | MIT | 2,020 | FormatDialogs | goofwear | C++ | Code | 312 | 1,072 | // copyright (c) 2019-2020 hors<horsicq@gmail.com>
//
// 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, ... | 16,532 |
https://github.com/kutenai/sharpertool/blob/master/django_root/sharpertool/settings/dev.py | Github Open Source | Open Source | MIT | 2,015 | sharpertool | kutenai | Python | Code | 32 | 120 | print("Loading development settings.")
from .base import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Make this unique, and don't share it with anybody.
SECRET_KEY = "bungus"
RAVEN_CONFIG = {
'dsn': 'https://53acba3177ec4ce4be06cca3ba5602f3:4ee592373d8c41968c730327cfb6b808@app.getsentry.com/41135',
} | 19,204 |
https://github.com/hkalodner/buidler-issue/blob/master/contracts/Test.sol | Github Open Source | Open Source | Apache-2.0 | null | buidler-issue | hkalodner | Solidity | Code | 22 | 67 | // SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.5.11;
contract Test {
string public constant test = "test";
function shutdown() external {
selfdestruct(msg.sender);
}
}
| 41,672 |
https://github.com/getodk/collect/blob/master/collect_app/src/androidTest/java/org/odk/collect/android/feature/formentry/FormFinalizingTest.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | collect | getodk | Kotlin | Code | 138 | 990 | package org.odk.collect.android.feature.formentry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
import org.junit.runner.RunWith
import org.odk.collect.android.R
import org.odk.collect.android.support.pages.AccessControlPage
import org.... | 38,282 |
https://github.com/bettio/qt5-configuration-plugins/blob/master/qml/settings/hemeraqmlsimpleqmlapplication.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | qt5-configuration-plugins | bettio | C++ | Code | 154 | 431 | /*
*
*/
#ifndef HEMERA_QML_SETTINGS_SIMPLEQMLAPPLICATION_H
#define HEMERA_QML_SETTINGS_SIMPLEQMLAPPLICATION_H
#include "hemeraqmlsimplecppapplication.h"
namespace Hemera {
namespace Qml {
namespace Settings {
class SimpleQmlApplicationPrivate;
/**
* @class SimpleQmlApplication
* @ingroup HemeraQmlSettings
*
*... | 22,727 |
https://github.com/Knappek/mongodbatlas-operator/blob/master/vendor/github.com/operator-framework/operator-sdk/internal/util/k8sutil/object.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | mongodbatlas-operator | Knappek | Go | Code | 112 | 341 | package k8sutil
import (
yaml "github.com/ghodss/yaml"
"k8s.io/apimachinery/pkg/runtime"
)
// GetObjectBytes marshalls an object and removes runtime-managed fields:
// 'status', 'creationTimestamp'
func GetObjectBytes(obj interface{}) ([]byte, error) {
u, err := runtime.DefaultUnstructuredConverter.ToUnstructured(... | 15,480 |
https://github.com/Activiti/Activiti/blob/master/activiti-api/activiti-api-process-model/src/main/java/org/activiti/api/process/model/builders/CreateProcessPayloadBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | Activiti | Activiti | Java | Code | 178 | 427 | /*
* Copyright 2010-2020 Alfresco Software, Ltd.
*
* 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 ... | 2,580 |
https://github.com/AtriCZE23/POe-full/blob/master/PoE-Overlay-master/src/app/modules/market/component/market-panel-group/market-panel-group.component.spec.ts | Github Open Source | Open Source | MIT, CNRI-Python-GPL-Compatible, BSD-3-Clause | 2,020 | POe-full | AtriCZE23 | TypeScript | Code | 52 | 193 | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { MarketPanelGroupComponent } from './market-panel-group.component';
describe('MarketPanelGroupComponent', () => {
let component: MarketPanelGroupComponent;
let fixture: ComponentFixture<MarketPanelGroupComponent>;
beforeEa... | 48,225 |
https://github.com/jack5315/FedBE/blob/master/models/FedM.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | FedBE | jack5315 | Python | Code | 134 | 476 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python version: 3.6
import copy
import torch
from torch import nn
import numpy as np
def create_local_init(glob, local, bias_ratio):
assert bias_ratio <=1.0 and bias_ratio >= 0.0
for k in glob.keys():
if bias_ratio > 0:
glob[k] = glob[k]*(1-bias_r... | 10,731 |
https://github.com/superzanttu/ansible-awx-demo/blob/master/local_config.sh | Github Open Source | Open Source | MIT | 2,021 | ansible-awx-demo | superzanttu | Shell | Code | 6 | 28 | #!/bin/bash
ansible-playbook -i local_inventory -K local_config.yml
| 48,286 |
https://github.com/s-expressionists/Eclector/blob/master/test/code-reading-utilities.lisp | Github Open Source | Open Source | BSD-2-Clause | 2,023 | Eclector | s-expressionists | Common Lisp | Code | 106 | 416 | (cl:in-package #:eclector.test)
(defun map-all-system-files (function
&key (systems '("eclector"
"eclector/test"
"eclector-concrete-syntax-tree"
"eclector-... | 36,609 |
https://github.com/NoobsEnslaver/loris/blob/master/utils/test_call.js | Github Open Source | Open Source | Apache-2.0 | 2,018 | loris | NoobsEnslaver | JavaScript | Code | 579 | 2,126 | var host = window.location.origin;
var connection;
var token = "";
var loginPage = document.querySelector('#login-page'),
msisdnInput = document.querySelector('#msisdn'),
codeInput = document.querySelector('#code'),
loginButton = document.querySelector('#login'),
callPage = document.querySelector('#ca... | 7,637 |
https://github.com/andredezzy/exercises-runner/blob/master/src/main/java/me/andredezzy/exercisesrunner/exercises/oop/learning/Main.java | Github Open Source | Open Source | MIT | null | exercises-runner | andredezzy | Java | Code | 40 | 197 | package me.andredezzy.exercisesrunner.exercises.oop.learning;
import me.andredezzy.exercisesrunner.exercises.Exercise;
import me.andredezzy.exercisesrunner.exercises.oop.learning.models.Secretary;
import java.util.ArrayList;
import java.util.Arrays;
public class Main implements Exercise {
@Override
public v... | 12,184 |
https://github.com/blakemcbride/PC-LISP/blob/master/src/bufopen.c | Github Open Source | Open Source | BSD-2-Clause | 2,022 | PC-LISP | blakemcbride | C | Code | 262 | 549 |
/*
| PC-LISP (C) 1984-1989 Peter J.Ashwood-Smith
*/
#include <stdio.h>
#include <math.h>
#include "lisp.h"
/*************************************************************************
** bufopen: Open file with mode returns a new opened filecell. Note **
** that since a string or atom is allowed for either para... | 22,494 |
https://github.com/sqmedeiros/pegparser/blob/master/test/java18/test/no/InterfaceBodyErr.java | Github Open Source | Open Source | MIT | 2,021 | pegparser | sqmedeiros | Java | Code | 4 | 10 | public interface InterfaceBodyErr
} | 41,840 |
https://github.com/codeages/qiqiuyun-player-ios-sdk/blob/master/Example/QiqiuyunPlayerSDK/Video/ControlView/ESPopoverView.h | Github Open Source | Open Source | MIT | null | qiqiuyun-player-ios-sdk | codeages | C | Code | 109 | 439 | //
// ESPopoverView.h
// EduSoho
//
// Created by Edusoho on 14-10-10.
// Copyright (c) 2015年 Kuozhi Network Technology. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, ESPopoverAnimationType) {
ESPopoverAnimationNone = 0,
ESPopoverAnimationTypeLinear,
ESPopoverAnimationTyp... | 28,307 |
https://github.com/veceravojtech/graphQL/blob/master/src/Entity/User.php | Github Open Source | Open Source | MIT | null | graphQL | veceravojtech | PHP | Code | 347 | 1,107 | <?php
namespace App\Entity;
use App\Repository\UserRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Bridge\D... | 20,691 |
https://github.com/ortexx/museria-player/blob/master/src/client.js | Github Open Source | Open Source | MIT | 2,020 | museria-player | ortexx | JavaScript | Code | 18 | 44 | const Client = require('musiphone/src/client')();
module.exports = (Parent) => {
return class ClientMuseriaPlayer extends (Parent || Client) {}
}; | 23,008 |
https://github.com/delta94/CV-builder/blob/master/src/client/app/sidebar/add_section/AddSection.container.tsx | Github Open Source | Open Source | MIT | 2,020 | CV-builder | delta94 | TSX | Code | 226 | 856 | import React, { Component, ReactNode } from 'react';
import { withTranslation, WithTranslation } from 'react-i18next';
import Title from '@components/Title.view';
import Courses from '../courses/Courses.container';
import { Container, Body, Wrapper } from './AddSection.style';
interface Props extends WithTranslation {... | 30,288 |
https://github.com/ukc-co663/dependency-solver-2019-lBanks98/blob/master/version1/depsolver_1/Main.java | Github Open Source | Open Source | MIT | null | dependency-solver-2019-lBanks98 | ukc-co663 | Java | Code | 1,579 | 4,893 | package depsolver;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.*;
class Package {
private String name;
private String version;
private Integer size;
private List<Li... | 24,779 |
https://github.com/timefrozen/ahoviewer/blob/master/lib/ahoviewer/statusbar.rb | Github Open Source | Open Source | MIT | 2,014 | ahoviewer | timefrozen | Ruby | Code | 164 | 742 | module AhoViewer
class StatusBar < Gtk::HBox
include Singleton
module Priority
NORMAL = 0
HIGH = 1
end
def initialize
super(false, 2)
@page_info = Gtk::Label.new
@resolution = Gtk::Label.new
@filename = Gtk::Label.new
@msg_separator = Gtk::VSe... | 48,566 |
https://github.com/vantreeseba/coc-haxe/blob/master/src/commands/index.ts | Github Open Source | Open Source | MIT | 2,022 | coc-haxe | vantreeseba | TypeScript | Code | 22 | 66 | import GotoHxml from './GotoHxml';
import ChangeHxml from './ChangeHxml';
import RestartClient from './RestartClient';
import PrintConfig from './PrintConfig';
export default [GotoHxml, RestartClient, PrintConfig, ChangeHxml];
| 12,456 |
https://github.com/leeqiang250/Android_Reader/blob/master/PbbReader/src/main/java/cn/com/pyc/pbbonline/common/Code.java | Github Open Source | Open Source | MIT | null | Android_Reader | leeqiang250 | Java | Code | 334 | 1,168 | package cn.com.pyc.pbbonline.common;
/**
* 请求响应的状态码 <br/>
*
* @author hudq
*/
public final class Code
{
public static final String _SUCCESS = "1001"; //成功!
public static final String _8001 = "8001"; //请先领取分享
public static final String _8002 = "8002"; //请先绑定分享
public static final String _8003 = "8003"; ... | 12,338 |
https://github.com/NASA-LIS/lisf-test/blob/master/lis/surfacemodels/land/clm2/biogeophys/Biogeophysics2.F90 | Github Open Source | Open Source | Apache-2.0 | 2,021 | lisf-test | NASA-LIS | Fortran Free Form | Code | 842 | 2,527 | !-----------------------BEGIN NOTICE -- DO NOT EDIT-----------------------
! NASA Goddard Space Flight Center Land Information System (LIS) v7.2
!
! Copyright (c) 2015 United States Government as represented by the
! Administrator of the National Aeronautics and Space Administration.
! All Rights Reserved.
!-----------... | 47,410 |
https://github.com/Zwordi/koillection/blob/master/templates/App/_partials/_footer.html.twig | Github Open Source | Open Source | MIT | 2,022 | koillection | Zwordi | Twig | Code | 32 | 173 | <div class="spacer"></div>
<footer>
{{ 'global.created_at'|trans({'%date%': object.createdAt|date(app.user.dateFormat|default('Y-m-d'), app.user.timezone|default('UTC'))}) }}
{% if object.updatedAt %}
· {{ 'global.updated_at'|trans({'%date%': object.updatedAt|date(app.user.dateFormat|default('Y-m-d'), ... | 4,115 |
https://github.com/hafizurcsejnu/ecommerce-3dmodels/blob/master/public/assets/node_modules/.staging/jqtree-1b390ba5/src/tree.jquery.d.ts | Github Open Source | Open Source | MIT | null | ecommerce-3dmodels | hafizurcsejnu | TypeScript | Code | 525 | 1,617 | type NodeId = number | string;
type DefaultRecord = Record<string, unknown>;
type NodeData = string | DefaultRecord;
type IterateCallback = (node: INode, level: number) => boolean;
declare class INode {
public id?: NodeId;
public name: string;
public children: INode[];
public element: HTMLElement;
... | 6,299 |
https://github.com/mpaetzold/camel/blob/master/catalog/camel-main-maven-plugin/src/main/docs/camel-main-maven-plugin.adoc | Github Open Source | Open Source | Apache-2.0 | 2,020 | camel | mpaetzold | AsciiDoc | Code | 1,039 | 2,096 | = Camel Main Maven Plugin
The Camel Main Maven Plugin supports the following goals
- camel-main:generate - To pre-scan your project and prepare autowiring and sprint boot tooling support by classpath scanning.
== Autowiring
To pre-scan your project and prepare autowiring by classpath scanning.
The idea is to use t... | 21,681 |
https://github.com/achen163/cs152phase2/blob/master/miniL.lex | Github Open Source | Open Source | AFL-1.1 | null | cs152phase2 | achen163 | Lex | Code | 417 | 1,206 | /* cs152-miniL phase1 */
%{
/* write your C code here for definitions of variables and including headers */
#include "miniL-parser.h"
int currPosition = 1;
int currLine = 1;
%}
/* some common rules */
DIGIT [0-9]
LETTER [A-Za-z]
UNDERSCORE [_]
%%
/* specific lexer rules in r... | 8,107 |
https://github.com/OSDeploy/OSDBuilder/blob/master/Private/AllFunctions.ps1 | Github Open Source | Open Source | MIT | 2,023 | OSDBuilder | OSDeploy | PowerShell | Code | 20,000 | 68,676 | function Add-ContentADKWinPE { [CmdletBinding()] param () #================================================= # Abort #================================================= if (($ScriptName -ne 'New-OSBuild') -and ($ScriptName -ne 'New-PEBuild')) {Return} if ([string]::IsNullOrWhiteSpace($WinPEADKPE)) {Return} $global:Reapp... | 16,670 |
https://github.com/freesewing/freesewing/blob/master/packages/new-design/prebuild.mjs | Github Open Source | Open Source | MIT | 2,023 | freesewing | freesewing | JavaScript | Code | 67 | 163 | import path from 'path'
import fs from 'fs'
/*
* We don't run this in the linter
* because it slows down linting for no good reason
*/
if (!process.env.LINTER) {
// Avoid symlink so Windows users don't complain
const copyThese = [
{
from: ['..', '..', 'scripts', 'banner.mjs'],
to: ['lib', 'banne... | 2,613 |
https://github.com/thebergamo/pintora/blob/master/packages/pintora-diagrams/src/er/parser.ts | Github Open Source | Open Source | MIT | 2,022 | pintora | thebergamo | TypeScript | Code | 23 | 61 | import db from './db'
import grammar, { setYY } from './parser/erDiagram'
import { genParserWithRules } from '../util/parser-util'
setYY(db)
export const parse = genParserWithRules(grammar)
| 15,349 |
https://github.com/carlosalexandre3107/MaskDecimalWithMVVMCross/blob/master/Core/App.cs | Github Open Source | Open Source | MIT | null | MaskDecimalWithMVVMCross | carlosalexandre3107 | C# | Code | 44 | 135 | using MvvmCross;
using MvvmCross.ViewModels;
using System;
namespace MaskDecimal.Core
{
[Preserve(AllMembers = true, Conditional = true)]
public class App
: MvxApplication
{
public override void Initialize()
{
try
{
RegisterAppStart<MaskDecim... | 30,845 |
https://github.com/KqSMea8/rEpo_RP/blob/master/admin/includes/html/box/email_template_form.php | Github Open Source | Open Source | curl | 2,019 | rEpo_RP | KqSMea8 | PHP | Code | 464 | 2,196 | <?php
require_once($Prefix."classes/configure.class.php");
$objConfigure=new configure();
$ModuleName = "Email Template";
if(!empty($_POST)) {
/*******************/
$TemplateContent = $_POST['TemplateContent'];
CleanPost();
$_POST['TemplateContent'] = $TemplateContent;
/*******************/
$... | 47,536 |
https://github.com/tuwiendsg/MELA/blob/master/MELA-Core/MELA-Common/src/main/java/at/ac/tuwien/dsg/mela/common/elasticityAnalysis/concepts/elasticityDependencies/xmlAdapters/ElasticityDependencyStatisticsXMLAdapter.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | MELA | tuwiendsg | Java | Code | 114 | 339 | /*
* 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 at.ac.tuwien.dsg.mela.common.elasticityAnalysis.concepts.elasticityDependencies.xmlAdapters;
import java.util.HashMap;
import ... | 9,053 |
https://github.com/onezens/SmartQQ/blob/master/qqtw/qqheaders7.2/UserSummaryEditViewController.h | Github Open Source | Open Source | MIT | 2,018 | SmartQQ | onezens | Objective-C | Code | 586 | 3,093 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "QQViewController.h"
#import "LocationSelectViewControllerDelegate.h"
#import "QUIActionSheetDelegate.h"
#import "SexAgePickerDelegate.h"
#import "ThirdEntrySettingProtocol... | 24,945 |
https://github.com/turisap/nebula.gl/blob/master/modules/edit-modes/src/lib/draw-point-mode.ts | Github Open Source | Open Source | MIT | 2,022 | nebula.gl | turisap | TypeScript | Code | 95 | 317 | import { ClickEvent, PointerMoveEvent, ModeProps, TentativeFeature } from '../types';
import { FeatureCollection } from '../geojson-types';
import { GeoJsonEditMode } from './geojson-edit-mode';
export class DrawPointMode extends GeoJsonEditMode {
createTentativeFeature(props: ModeProps<FeatureCollection>): Tentativ... | 29,921 |
https://github.com/JonathanWilbur/x500-ts/blob/master/source/modules/DirectoryAbstractService/JoinAttPair.ta.ts | Github Open Source | Open Source | MIT | 2,019 | x500-ts | JonathanWilbur | TypeScript | Code | 747 | 2,509 | /* eslint-disable */
import {
ASN1Element as _Element,
ASN1TagClass as _TagClass,
OPTIONAL,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import {
JoinContextType,
_decode_JoinContextType,
_encode_JoinContextType,
} from "../DirectoryAbstractService/JoinContextType.ta";
im... | 35,436 |
https://github.com/AndrewDongminYoo/cucumber.com/blob/master/target/snippets/nearArticle/http-request.adoc | Github Open Source | Open Source | Apache-2.0 | 2,022 | cucumber.com | AndrewDongminYoo | AsciiDoc | Code | 10 | 53 | [source,http,options="nowrap"]
----
GET /api/articles/37.501086/127.0365988 HTTP/1.1
Accept: application/json
Host: localhost:8080
---- | 31,549 |
https://github.com/isabella232/federalist-infra/blob/master/terraform/dev/backend.tf | Github Open Source | Open Source | CC0-1.0, LicenseRef-scancode-public-domain | 2,021 | federalist-infra | isabella232 | HCL | Code | 40 | 136 | module "backend" {
source = "../modules/backend"
bucket = "federalist-commercial-terraform-state"
table = "federalist-terraform-locks"
}
# The backend configuration does not accept variables...
terraform {
backend "s3" {
bucket = "federalist-commercial-terraform-state"
key = "dev/t... | 22,652 |
https://github.com/jackoalan/bullet3/blob/master/Demos3/CpuDemos/rendering/RenderDemo.cpp | Github Open Source | Open Source | Zlib | 2,020 | bullet3 | jackoalan | C++ | Code | 83 | 545 | #include "RenderDemo.h"
#include "OpenGLWindow/GLInstancingRenderer.h"
#include "OpenGLWindow/ShapeData.h"
#include "Bullet3Common/b3Quaternion.h"
static b3Vector4 colors[4] =
{
b3MakeVector4(1,0,0,1),
b3MakeVector4(0,1,0,1),
b3MakeVector4(0,1,1,1),
b3MakeVector4(1,1,0,1),
};
void RenderDemo::initPhysics(con... | 35,632 |
https://github.com/asepmulyadi011/SistemRumahSakit/blob/master/application/views/rsvberanda.php | Github Open Source | Open Source | MIT | null | SistemRumahSakit | asepmulyadi011 | PHP | Code | 147 | 801 | <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>RSMH 2016</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta name="description" content="">
<meta name="author" content="">
<link rel="styleshe... | 48,894 |
https://github.com/fleskesvor/melosys-kodeverk/blob/master/src/behandlinger/behandlingstyper.js | Github Open Source | Open Source | MIT | null | melosys-kodeverk | fleskesvor | JavaScript | Code | 53 | 200 | /**
* Kodeverk/behandlingstyper
* @module
*/
const behandlingstyper = [
{
kode: 'SOEKNAD',
term: 'Søknad'
},
{
kode: 'SED',
term: 'SED'
},
{
kode: 'NY_VURDERING',
term: 'Ny vurdering'
},
{
kode: 'KLAGE',
term: 'Klage'
},
{
kode: 'ANKE',
term: 'Anke'
},
{
... | 4,989 |
https://github.com/muhdfaiz/laravel-sql-lens/blob/master/packages/renderer/assets/scss/app.scss | Github Open Source | Open Source | MIT | null | laravel-sql-lens | muhdfaiz | SCSS | Code | 111 | 538 | @import "@fontsource/poppins/100.css";
@import "@fontsource/poppins/200.css";
@import "@fontsource/poppins/300.css";
@import "@fontsource/poppins/400.css";
@import "@fontsource/poppins/500.css";
@import "@fontsource/poppins/600.css";
@import "@fontsource/poppins/700.css";
@import "@fontsource/poppins/800.css";
@import ... | 273 |
https://github.com/SCWells72/sirono-common/blob/master/force-app/main/default/classes/TriggerHandler.cls | Github Open Source | Open Source | Apache-2.0 | 2,023 | sirono-common | SCWells72 | Apex | Code | 222 | 405 | /*
* Copyright 2017-present Sirono LLC
*
* 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 agr... | 37,476 |
https://github.com/jatinrajani/Sorting/blob/master/quicksort.cpp | Github Open Source | Open Source | MIT | 2,017 | Sorting | jatinrajani | C++ | Code | 60 | 322 | #include<iostream>
using namespace std;
int Partioning(int *a,int start,int end){
int pivot=a[end];
int pindex=start;
for(int i=start;i<end;i++)
if(a[i]<=pivot){
int temp=a[pindex];
a[pindex]=a[i];
a[i]=temp;
pindex=pindex+1;
}
int temp1;
temp1=a[pindex];
a[pinde... | 23,888 |
https://github.com/caiorss/xlw-cmake-fork/blob/master/examples/sample-project/mylib.h | Github Open Source | Open Source | BSD-3-Clause | 2,020 | xlw-cmake-fork | caiorss | C | Code | 18 | 72 | #ifndef _mylib_h_
#define _mylib_h_
#include <xlw/xlw.h>
//<xlw:libraryname=MyLibrary
double //Square root of an argument
MySqrt(double x //argument
);
#endif
| 38,036 |
https://github.com/venicegeo/vzutil-versioning/blob/master/web/app/retriever.go | Github Open Source | Open Source | Apache-2.0 | 2,018 | vzutil-versioning | venicegeo | Go | Code | 1,058 | 3,434 | // Copyright 2018, RadiantBlue Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... | 5,714 |
https://github.com/b3nsn0w/artgen2/blob/master/webpack.config.js | Github Open Source | Open Source | WTFPL | null | artgen2 | b3nsn0w | JavaScript | Code | 94 | 367 | const CleanWebpackPlugin = require('clean-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HTMLWebpackPlugin = require('html-webpack-plugin')
const path = require('path')
const process = require('process')
const packageJson = require('./package.json')
const outputPath = path.resolve(__d... | 46,332 |
https://github.com/CommunityHiQ/Frends.Community.Odbc/blob/master/Frends.Community.Odbc.Tests/Frends.Community.Odbc.Tests.cs | Github Open Source | Open Source | MIT | 2,020 | Frends.Community.Odbc | CommunityHiQ | C# | Code | 136 | 405 | using NUnit.Framework;
using System.Threading;
namespace Frends.Community.Odbc.Tests
{
[TestFixture]
class TestClass
{
[Test]
public void ShouldReadFromMsAccessViaOdbc()
{
// Configure first ODBC at Control Panel->Administrative Tools->ODBC Data sources (64-bit) to point... | 16,168 |
https://github.com/fredj/mf-chsdi3/blob/master/chsdi/models/vector/bak.py | Github Open Source | Open Source | BSD-3-Clause | null | mf-chsdi3 | fredj | Python | Code | 193 | 861 | # -*- coding: utf-8 -*-
from sqlalchemy import Column, Integer
from sqlalchemy.types import Numeric, Unicode
from chsdi.models import register, bases
from chsdi.models.vector import Vector, Geometry2D
Base = bases['bak']
class Isos(Base, Vector):
__tablename__ = 'isos'
__table_args__ = ({'autoload': False... | 42,540 |
https://github.com/holmes2136/LineBotKit/blob/master/src/LineBotKit.Client/Request/LineGetStreamRequestcs.cs | Github Open Source | Open Source | Apache-2.0 | 2,020 | LineBotKit | holmes2136 | C# | Code | 49 | 178 | using LineBotKit.Client.Response;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace LineBotKit.Client.Request
{
internal class LineGetStreamRequest<T> : LineClientRequestBase
{
publ... | 47,016 |
https://github.com/scalapb/protoc-bridge/blob/master/bridge/src/test/scala/protocbridge/ProtocIntegrationSpec.scala | Github Open Source | Open Source | Apache-2.0 | 2,023 | protoc-bridge | scalapb | Scala | Code | 340 | 1,443 | package protocbridge
import java.io.File
import java.nio.file.Files
import java.util.concurrent.Executors
import com.google.protobuf.Descriptors.FileDescriptor
import com.google.protobuf.compiler.PluginProtos.{
CodeGeneratorRequest,
CodeGeneratorResponse
}
import scala.concurrent.duration.{Duration, SECONDS}
imp... | 1,521 |
https://github.com/Ligh7bringer/SET10108-practicals/blob/master/labs/lab02/condition-variables.cpp | Github Open Source | Open Source | MIT | null | SET10108-practicals | Ligh7bringer | C++ | Code | 321 | 883 | #include <condition_variable>
#include <iostream>
#include <chrono>
#include <mutex>
#include <thread>
std::mutex mut;
void task_1(std::condition_variable &condition) {
std::cout << "Task 1 sleeping for 3 seconds" << std::endl;
std::this_thread::sleep_for(std::chrono::seconds(3));
auto lock = std::unique_lock<std... | 6,804 |
https://github.com/bryant1410/sela/blob/master/include/lpc.h | Github Open Source | Open Source | MIT | 2,017 | sela | bryant1410 | C | Code | 63 | 347 | #ifndef _LPC_H_
#define _LPC_H_
#define SQRT2 1.4142135623730950488016887242096
#define MAX_LPC_ORDER 100
int32_t check_if_constant(const int16_t *data,int32_t num_elements);
void auto_corr_fun(double *x,int32_t N,int64_t k,int16_t norm,double *rxx);
void levinson(double *autoc,uint8_t max_order,double *ref,double lp... | 30,878 |
https://github.com/GirCore/gir.core/blob/master/src/Generation/Generator3/Model/Public/ReturnType/ReturnTypeFactory.cs | Github Open Source | Open Source | MIT | 2,020 | gir.core | GirCore | C# | Code | 67 | 229 | namespace Generator3.Model.Public
{
public static class ReturnTypeFactory
{
public static ReturnType CreatePublicModel(this GirModel.ReturnType returnValue) => returnValue.AnyType.Match<ReturnType>(
type => type switch
{
GirModel.Pointer => new PointerReturnType(... | 46,861 |
https://github.com/KajanM/DSVL/blob/master/flood/src/main/java/com/dsvl/flood/model/ForwardedQuery.java | Github Open Source | Open Source | MIT | 2,019 | DSVL | KajanM | Java | Code | 41 | 114 | package com.dsvl.flood.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Used to keep track of sent queries
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ForwardedQuery {
private String msgOwnerIp;
private int msgOwnerUdpPort;
private Stri... | 13,186 |
https://github.com/wallarelvo/CRoPS/blob/master/docs/html/boidsimulation_8py.js | Github Open Source | Open Source | Apache-2.0 | null | CRoPS | wallarelvo | JavaScript | Code | 15 | 96 | var boidsimulation_8py =
[
[ "FlockSim", "classboidsimulation_1_1FlockSim.html", "classboidsimulation_1_1FlockSim" ],
[ "__author__", "boidsimulation_8py.html#a70f722357d7e5a4b5ac85e726863a7ef", null ]
]; | 3,973 |
https://github.com/MrMimic/covid-19-applet/blob/master/src/main/scripts/vm_startup_script.sh | Github Open Source | Open Source | MIT | 2,020 | covid-19-applet | MrMimic | Shell | Code | 177 | 663 | #!/usr/bin/bash
# Create detached shell
tmux new -s APP
# Proxy update
gcloud compute firewall-rules create --network=covid-19-network default-allow-ssh --allow tcp:22
gcloud compute firewall-rules create --network=covid-19-network allow-debug-app --allow tcp:5000
# Setup python
sudo apt-get install -y software-prop... | 8,913 |
https://github.com/engalialaa/php-task/blob/master/resources/views/Front/layout/header.blade.php | Github Open Source | Open Source | MIT | null | php-task | engalialaa | PHP | Code | 466 | 2,504 | <?php
$Categories = App\Models\Category::where('is_shown','yes')->latest()->get();
?>
<?php
if (auth()->user()){
$Carts = \App\Models\Cart::where('user_id', auth()->user()->id)->latest()->get();
}else{
$Carts = [];
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">... | 34,924 |
https://github.com/rangaimal/HMS/blob/master/demo/App.vue | Github Open Source | Open Source | MIT | null | HMS | rangaimal | Vue | Code | 791 | 2,826 | <template>
<div id="demo" :class="[{'collapsed' : collapsed}]">
<div class="demo">
<div class="container">
<!-- <button
class="collapse-btn"
@click="toggleCollapse"
/>-->
<!-- <h1>
HMS
</h1> -->
<!-- <div>
Select theme:
... | 24,691 |
https://github.com/lulzzz/tellma/blob/master/Tellma.Database.Data/Provisioning/__Main.sql | Github Open Source | Open Source | Apache-2.0 | 2,023 | tellma | lulzzz | SQL | Code | 77 | 371 | --IF DB_NAME() = N'Tellma.Tests.101'
--BEGIN
-- -- Provision data for unit tests
-- :r .\Tests\00_Declarations.sql
-- :r .\Tests\01_Users.sql
-- :r .\Tests\02_Roles.sql
--END
--GO -- Important so that variable declarations do not conflict
:r .\000\a_Declarations.sql
:r .\000\b_AdminUser.sql
:r .\000\c_Currencies.s... | 41,319 |
https://github.com/leeeeeeeefulong/liwushuo/blob/master/liwushuo/liwushuo/Controllers/Mine/View/LWSMePromotionsControl.m | Github Open Source | Open Source | MIT | 2,018 | liwushuo | leeeeeeeefulong | Objective-C | Code | 175 | 863 | //
// LWSMePromotionsControl.m
// liwushuo
//
// Created by lee on 2017/12/29.
// Copyright © 2017年 Pinellia Zeit. All rights reserved.
//
#import "LWSMePromotionsControl.h"
#import "LWSMeImageBubbleView.h"
@interface LWSMePromotionsControl ()
@end
@implementation LWSMePromotionsControl
- (instancetype)initWi... | 1,533 |
https://github.com/RafaelMunizz/POO/blob/master/Unidade2/Atividade3/Quest5/main.cpp | Github Open Source | Open Source | MIT | null | POO | RafaelMunizz | C++ | Code | 93 | 252 | #include <iostream>
using std::cout;
using std::endl;
using std::cin;
#include "Array.h"
int main() {
Array a1(7); //array de 7 elementos
Array a2; //array de 10 elementos
cin >> a1; //lendo array
cin >> a2; //lendo array
//cout << a1; //escrevendo array
if (a1 == a2)
cout << "a1 e a... | 45,775 |
https://github.com/jinghewang/yii2-basic-2.0.6/blob/master/db/yii2basic.sql | Github Open Source | Open Source | BSD-3-Clause | 2,016 | yii2-basic-2.0.6 | jinghewang | PLpgSQL | Code | 183 | 553 | /*
Navicat Premium Data Transfer
Source Server : local
Source Server Type : MySQL
Source Server Version : 50710
Source Host : localhost
Source Database : yii2basic
Target Server Type : MySQL
Target Server Version : 50710
File Encoding : utf-8
Date: 03/07/2016 13:00:33 ... | 8,865 |
https://github.com/Ignishky/mtg-collection/blob/master/src/main/java/fr/ignishky/mtgcollection/MtgCollectionApplication.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | mtg-collection | Ignishky | Java | Code | 21 | 90 | package fr.ignishky.mtgcollection;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MtgCollectionApplication {
public static void main(String[] args) {
SpringApplication.run(MtgCollectionApplication... | 29,919 |
https://github.com/Edraak/code-dot-or/blob/master/apps/src/sites/studio/pages/pd/workshop_survey/new.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | code-dot-or | Edraak | JavaScript | Code | 26 | 124 | import React from 'react';
import ReactDOM from 'react-dom';
import WorkshopSurvey from '@cdo/apps/code-studio/pd/workshop_survey/WorkshopSurvey';
import getScriptData from '@cdo/apps/util/getScriptData';
document.addEventListener('DOMContentLoaded', function(event) {
ReactDOM.render(
<WorkshopSurvey {...getScri... | 11,021 |
https://github.com/Youssef1313/upgrade-assistant/blob/master/src/common/Microsoft.DotNet.UpgradeAssistant.Abstractions/ProjectExtensions.cs | Github Open Source | Open Source | MIT | null | upgrade-assistant | Youssef1313 | C# | Code | 86 | 228 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
namespace Microsoft.DotNet.UpgradeAssistant
{
public static class ProjectExtensions
{
public... | 43,419 |
https://github.com/halzhang/BDMyTracks/blob/master/MyTracks/src/com/google/android/apps/mytracks/maps/DynamicSpeedTrackPathPainter.java | Github Open Source | Open Source | WTFPL | 2,021 | BDMyTracks | halzhang | Java | Code | 469 | 1,313 | /*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 2,211 |
https://github.com/VenelinGP/EClassBook/blob/master/EClassBook.API/wwwroot/lib/spa/core/models/course.js | Github Open Source | Open Source | MIT | null | EClassBook | VenelinGP | JavaScript | Code | 27 | 74 | "use strict";
class Course {
constructor(name, userId, id, teacherName) {
this.Id = id;
this.Name = name;
this.UserId = userId;
this.TeacherName = teacherName;
}
}
exports.Course = Course;
| 22,628 |
https://github.com/Mikael-Francisco/ProjetoRPGMaker1/blob/master/RPGMaker/Views/User/Create.cshtml | Github Open Source | Open Source | MIT | 2,020 | ProjetoRPGMaker1 | Mikael-Francisco | HTML+Razor | Code | 169 | 872 | @model RPGMaker.Models.Inserts.UserInsertViewModel
@{
ViewData["Title"] = "Create";
}
<h1 class="d-flex justify-content-center">CADASTRO</h1>
<h4 class="d-flex justify-content-center">Inicie sua aventura!</h4>
<hr />
<div class="row d-flex justify-content-center">
<div class="col-md-4">
<form asp-ac... | 29,708 |
https://github.com/CIDARLAB/magelet/blob/master/src/magelets/optMAGE_1.java | Github Open Source | Open Source | BSD-3-Clause | null | magelet | CIDARLAB | Java | Code | 380 | 1,292 | package magelets;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Servlet implementation class optMAGE_1
*/... | 45,376 |
https://github.com/gizmore/gwf4/blob/master/inc/install/merge/mergefuncs.php | Github Open Source | Open Source | MIT | 2,019 | gwf4 | gizmore | PHP | Code | 694 | 3,180 | <?php
/**
* @return GDO_Database
*/
function merge_db($argv)
{
$db = gdo_db_instance('localhost', $argv[1], $argv[2], $argv[3]);
return $db;
}
function merge_usage()
{
echo "user pass db prefix prevar\n";
die(0);
}
/**
* Assume all users are new. Add them to real db with a prefix_
*/
function merge_core(GDO_D... | 24,345 |
https://github.com/vincentyang01/ruby-oo-relationships-practice-mini-mock-code-challenge/blob/master/console.rb | Github Open Source | Open Source | LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference | 2,020 | ruby-oo-relationships-practice-mini-mock-code-challenge | vincentyang01 | Ruby | Code | 43 | 183 | require 'pry'
require_relative './painter'
require_relative './artwork'
require_relative './painter_artwork'
painter1 = Painter.new("ace", 10)
painter2 = Painter.new("bob", 20)
painter3 = Painter.new("cal", 30)
artwork1 = Artwork.new("Mona Lisa")
artwork2 = Artwork.new("Trees")
artwork3 = Artwork.new("Grove")
pa1 = ... | 49,274 |
https://github.com/chandusekhar/UMaMES/blob/master/uma-mes/src/main/java/me/zhengjie/uma_mes/service/ChemicalFiberProductionService.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | UMaMES | chandusekhar | Java | Code | 117 | 588 | package me.zhengjie.uma_mes.service;
import com.lgmn.common.result.Result;
import me.zhengjie.uma_mes.domain.ChemicalFiberProduction;
import me.zhengjie.uma_mes.service.dto.ChemicalFiberProductionDTO;
import me.zhengjie.uma_mes.service.dto.ChemicalFiberProductionQueryCriteria;
import me.zhengjie.uma_mes.service.dto.Ch... | 7,433 |
https://github.com/frol/trek/blob/master/trek/src/lib.rs | Github Open Source | Open Source | MIT, Apache-2.0 | 2,019 | trek | frol | Rust | Code | 193 | 658 | use hyper::{
service::{make_service_fn, service_fn},
Body, Error, Response, Server,
};
use std::sync::Arc;
use trek_core::context::Context;
use trek_router::router::Router;
pub struct App<State> {
state: Arc<State>,
router: Arc<Router<Context<State>>>,
}
impl App<()> {
pub fn new() -> App<()> {
... | 9,553 |
https://github.com/snake0/barrelfish_sysbench/blob/master/lib/devif/backends/debug/devif_backend_debug.c | Github Open Source | Open Source | MIT | null | barrelfish_sysbench | snake0 | C | Code | 2,952 | 8,559 | /*
* Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
*/
#... | 7,270 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.