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/IAAA-Lab/xmihandler/blob/master/src/main/java/gov/nih/nci/ncicb/xmiinout/writer/UMLClassWriter.java | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,019 | xmihandler | IAAA-Lab | Java | Code | 46 | 199 | /*L
* Copyright Ekagra Software Technologies Ltd.
* Copyright SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/xmihandler/LICENSE.txt for details.
*/
package gov.nih.nci.ncicb.xmiinout.writer;
import gov.nih.nci.ncicb.xmiinout.domain.UMLClass;
import gov.nih.nci... | 22,262 |
https://github.com/jeromegamez/google-cloud-php/blob/master/AnalyticsAdmin/src/V1alpha/CustomMetric_RestrictedMetricType.php | Github Open Source | Open Source | Apache-2.0 | 2,018 | google-cloud-php | jeromegamez | PHP | Code | 51 | 196 | <?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/analytics/admin/v1alpha/resources.proto
namespace Google\Analytics\Admin\V1alpha;
if (false) {
/**
* This class is deprecated. Use Google\Analytics\Admin\V1alpha\CustomMetric\RestrictedMetricType instead.
* @deprecated
... | 49,367 |
https://github.com/imusk/seata-demo/blob/master/seata-common/src/main/java/com/github/imusk/seata/entity/Order.java | Github Open Source | Open Source | MIT | null | seata-demo | imusk | Java | Code | 167 | 478 | package com.github.imusk.seata.entity;
import java.io.Serializable;
/**
* @author: Musk
* @email: muskcool@protonmail.com
* @datetime: 2021-07-30 12:25
* @classname: Order
* @description: 订单表
*/
public class Order implements Serializable {
/**
* 编号
*/
private Integer id;
/**
* 订单号
... | 37,324 |
https://github.com/georgekatona/georgekatona.github.io/blob/master/urbana-crimes/vis.js | Github Open Source | Open Source | Apache-2.0 | null | georgekatona.github.io | georgekatona | JavaScript | Code | 2,037 | 7,679 | const normal_stroke_width = 0.3;
const selected_stroke_width = 2.3;
const normal_radius = 2;
const selected_radius = 5;
const histogramHeight = 300;
const histogramWidth = 500;
const ageBarsHeight = 150;
const ageBarsWidth = 40;
const ageBarsOffset = 2;
const ageBarsPaddingLeft = 40;
const ageBarsPaddingTop = 50;
c... | 39,762 |
https://github.com/sriramkrishnan/scalding/blob/master/scalding-serialization/src/main/scala/com/twitter/scalding/serialization/macros/impl/ordered_serialization/providers/ProductOrderedBuf.scala | Github Open Source | Open Source | Apache-2.0 | null | scalding | sriramkrishnan | Scala | Code | 594 | 1,852 | /*
Copyright 2014 Twitter, 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 writing, software... | 17,297 |
https://github.com/zhang3572215/zecheng/blob/master/src/store/modules/taskDetail.js | Github Open Source | Open Source | MIT | null | zecheng | zhang3572215 | JavaScript | Code | 423 | 1,692 | import { getTaskDetail, postNewTask } from '@/api/task'
import { testToken } from '@/api/user'
import { getToken, setToken, removeToken } from '@/utils/auth'
//验证任务类型
function validatType(rule, value, callBack) {
if (value == '') {
return callBack(new Error())
}
}
//验证设备类型
function validatEquipment(rule, valu... | 55,126 |
https://github.com/huangleiii/WanAndroid/blob/master/app/src/main/java/com/huanglei/wanandroid/base/view/IBaseView.java | Github Open Source | Open Source | Apache-2.0 | null | WanAndroid | huangleiii | Java | Code | 20 | 97 | package com.huanglei.wanandroid.base.view;
import android.content.Context;
/**
* Created by HuangLei on 2018/11/23.
*/
public interface IBaseView {
//接口中的方法或public方法都是希望别人可以利用该实例在外部调用的方法。
Context getViewContext();
}
| 654 |
https://github.com/4hmed/dialer/blob/master/app/Http/Controllers/ContactController.php | Github Open Source | Open Source | MIT | null | dialer | 4hmed | PHP | Code | 473 | 1,805 | <?php
namespace App\Http\Controllers;
use App\Contact;
use App\Contact_phone;
use App\Group;
use App\User;
use Auth;
use Illuminate\Http\Request;
class ContactController extends Controller
{
public function create()
{
return view('newContact');
}
/**
* Store a newly created resource in... | 9,014 |
https://github.com/elsys/c-programming-hw/blob/master/V/04/05/task02.c | Github Open Source | Open Source | MIT | 2,021 | c-programming-hw | elsys | C | Code | 29 | 186 | #include <stdio.h>
int main()
{
int n,i;
scanf("%d",&n);
int arr[n];
for(i=0;i<n;)
{
scanf("%d",&arr[i]);
if(arr[i]%2!=0)
{
i++;
}
}
for(i=0;i<n/2;i++)
{
printf("%d\n",arr[i]-arr[(n-1)-i]);
}
if(n%2!=0)
{
printf("%d\n",arr[n/2]);
}
return 0;
}
| 6,301 |
https://github.com/Mats-SX/front-end/blob/master/rewriting/src/test/scala/org/opencypher/v9_0/rewriting/conditions/NoDuplicatesInReturnItemsTest.scala | Github Open Source | Open Source | Apache-2.0 | null | front-end | Mats-SX | Scala | Code | 256 | 757 | /*
* Copyright © 2002-2018 Neo4j Sweden AB (http://neo4j.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 35,042 |
https://github.com/clearfunction/questionnaire/blob/master/Gemfile | Github Open Source | Open Source | MIT | 2,023 | questionnaire | clearfunction | Ruby | Code | 13 | 49 | source "https://rubygems.org"
ruby '2.4.1'
gemspec
gem "rdoc"
group :test do
gem 'sqlite3'
end
| 25,626 |
https://github.com/novel-parent/pengyuan/blob/master/src/main/resources/static/js/addProcedure.js | Github Open Source | Open Source | MIT | 2,019 | pengyuan | novel-parent | JavaScript | Code | 583 | 3,463 | $(function(){
//获取名字为AAA的模板信息,并加载到页面上
var ProcedureName='AAA';
$.ajax({
url:'getProcedureInfo.b',
type:'post',
data:'baseModel='+ProcedureName,
success: function(data){
if(data.code == -1){
alert(data.msg);
}else if(data.code == 1){
var dataString = data.obj.main;
... | 37,184 |
https://github.com/yondav/react-logos/blob/master/react-logos/src/lib/components/Google/Google_Analytics/index.js | Github Open Source | Open Source | MIT | null | react-logos | yondav | JavaScript | Code | 194 | 1,098 | import React, { useState } from 'react';
const GoogleAnalytics = (props) => {
const [color, setColor] = useState(props.color);
const fill = {
path_one: props.theme
? !color
? `${props.primaryWhite}c9` || '#ffffffc9'
: '#F9AB00'
: !color
? `${props.primaryDark}c9` || '#000000c... | 52,444 |
https://github.com/forcedotcom/doc-portal/blob/master/less/portal2.less | Github Open Source | Open Source | BSD-2-Clause | 2,021 | doc-portal | forcedotcom | Less | Code | 10 | 85 | @import "../vendor/twitter-bootstrap/less/bootstrap.less";
@import "../vendor/fontawesome/less/font-awesome.less";
@import "../vendor/fontawesome/less/font-awesome-ie7.less";
@import "portal2_customizations.less";
@import "app_customizations.less";
| 8,925 |
https://github.com/miquido/observable/blob/master/tests/Operator/FlatTest.php | Github Open Source | Open Source | MIT | 2,018 | observable | miquido | PHP | Code | 68 | 362 | <?php
declare(strict_types=1);
namespace Miquido\Observable\Tests\Operator;
use Miquido\Observable\Observable;
use Miquido\Observable\Observer;
use Miquido\Observable\ObserverInterface;
use Miquido\Observable\Operator\Flat;
use PHPUnit\Framework\TestCase;
final class FlatTest extends TestCase
{
public function ... | 49,423 |
https://github.com/michaellee8/xterm.dart/blob/master/lib/theme/terminal_theme.dart | Github Open Source | Open Source | MIT | 2,022 | xterm.dart | michaellee8 | Dart | Code | 107 | 315 | class TerminalTheme {
const TerminalTheme({
required this.cursor,
required this.selection,
required this.foreground,
required this.background,
required this.black,
required this.white,
required this.red,
required this.green,
required this.yellow,
required this.blue,
require... | 33,631 |
https://github.com/goantonioUW/news-flow/blob/master/client/src/components/SaveCard.js | Github Open Source | Open Source | MIT | 2,021 | news-flow | goantonioUW | JavaScript | Code | 149 | 584 | import React from 'react';
import { useAuthenticatedUser } from '../utils/auth';
import savedArticlesAPI from '../utils/savedArticlesAPI';
const SaveCard = ({ savedArticle: { title, description, url, publishedDate, thumbnail, provider }, getSavedArticles }) => {
const authData = useAuthenticatedUser();
const h... | 15,714 |
https://github.com/PostgresConf/pgem/blob/master/db/migrate/20180302155556_create_get_event_time_range_function.rb | Github Open Source | Open Source | MIT | 2,023 | pgem | PostgresConf | Ruby | Code | 77 | 244 | class CreateGetEventTimeRangeFunction < ActiveRecord::Migration
def self.up
execute <<-__EOI
CREATE OR REPLACE FUNCTION get_event_time_range(p_schedule_id int, p_event_id int, padding int DEFAULT 0)
RETURNS tsrange AS
$$
SELECT tsrange(es.start_time - (padding || ' minute')::interval, es.start_time + (et.lengt... | 18,970 |
https://github.com/FreeFalcon/freefalcon-central/blob/master/src/ui/src/common/targets.cpp | Github Open Source | Open Source | BSD-2-Clause | 2,014 | freefalcon-central | FreeFalcon | C++ | Code | 1,976 | 8,208 | // Targetting Code goes here
#include <windows.h>
#include "Graphics/Include/TimeMgr.h"
#include "Graphics/Include/imagebuf.h"
#include "Graphics/Include/renderow.h"
#include "Graphics/Include/RViewPnt.h"
#include "Graphics/Include/drawbrdg.h"
#include "Graphics/Include/drawplat.h"
#include "Graphics/Include/drawbsp.h"... | 55,928 |
https://github.com/mayi/linjiashop-flutter/blob/master/lib/page/card_order.dart | Github Open Source | Open Source | MIT | 2,022 | linjiashop-flutter | mayi | Dart | Code | 271 | 1,357 | import 'package:flutter/material.dart';
import 'package:flutter_app/models/cart_goods_query_entity.dart';
import 'package:flutter_app/models/order_entity.dart';
import 'package:flutter_app/routes/routes.dart';
import 'package:flutter_app/utils/app_size.dart';
import 'package:flutter_app/view/custom_view.dart';
import ... | 42,655 |
https://github.com/valorekhov/dynamic-coattention-network/blob/master/batch_reader.py | Github Open Source | Open Source | MIT | 2,017 | dynamic-coattention-network | valorekhov | Python | Code | 738 | 2,748 | """
Batch generator with bucketing support.
Modified ver. of https://github.com/tensorflow/models/blob/master/textsum/batch_reader.py
"""
import json
import queue
import time
from collections import namedtuple
from random import shuffle
from threading import Thread
import numpy as np
import tensorflow as tf
from dat... | 6,591 |
https://github.com/Shah56/rasa-ui/blob/master/server/db/regex.js | Github Open Source | Open Source | MIT | 2,018 | rasa-ui | Shah56 | JavaScript | Code | 183 | 702 | const db = require('./db')
function getAllRegex(req, res, next) {
console.log("regex.getAllRegex");
db.any('select * from regex')
.then(function (data) {
res.status(200)
.json(data);
})
.catch(function (err) {
return next(err);
});
}
function getSingleRegex(req, res, next) {
... | 50,976 |
https://github.com/FeizNouri/logisland/blob/master/logisland-components/logisland-processors/logisland-processor-cyber-security/src/main/java/com/hurence/logisland/processor/networkpacket/Constants.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | logisland | FeizNouri | Java | Code | 162 | 337 | /**
* Copyright (C) 2016 Hurence (support@hurence.com)
*
* 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 a... | 37,097 |
https://github.com/fitsuli/CDOITMO/blob/master/app/src/main/java/com/bukhmastov/cdoitmo/model/rating/top/RStudent.java | Github Open Source | Open Source | MIT | 2,020 | CDOITMO | fitsuli | Java | Code | 258 | 715 | package com.bukhmastov.cdoitmo.model.rating.top;
import com.bukhmastov.cdoitmo.model.JsonEntity;
import com.bukhmastov.cdoitmo.model.JsonProperty;
import java.util.Objects;
public class RStudent extends JsonEntity {
@JsonProperty("number")
private int number;
@JsonProperty("fio")
private String fio... | 20,721 |
https://github.com/REED14/FlashTask/blob/master/server-scripts/endChore.php | Github Open Source | Open Source | MIT | null | FlashTask | REED14 | PHP | Code | 59 | 291 | <?php
session_start();
require_once("connect_db.php");
$query_update = "UPDATE `chores` SET `choreStatus` = '3' WHERE `chores`.`id` = ". $_SESSION['choreID'];
$query_update_ok = mysqli_query($conn, $query_update);
$query_update = "DELETE FROM `chores_open` WHERE `chores_open`.`chore_id`... | 25,754 |
https://github.com/ranaaditya/processing-sketchbook/blob/master/processing-android-api-testing/Camera/printProjection.pde | Github Open Source | Open Source | MIT | 2,021 | processing-sketchbook | ranaaditya | null | Spoken | 31 | 103 |
size(100, 100, P3D);
printProjection();
// The program above prints this data:
// 01.7321 00.0000 00.0000 00.0000
// 00.0000 -01.7321 00.0000 00.0000
// 00.0000 00.0000 -01.0202 -17.4955
// 00.0000 00.0000 -01.0000 00.0000
| 45,695 |
https://github.com/agabaandre/everday/blob/master/dist/out-tsc/src/components/categories/categories.component.js | Github Open Source | Open Source | MIT | null | everday | agabaandre | JavaScript | Code | 170 | 530 | import * as tslib_1 from "tslib";
import { Component, Input } from '@angular/core';
import { ConfigService } from 'src/providers/config/config.service';
import { SharedDataService } from 'src/providers/shared-data/shared-data.service';
let CategoriesComponent = class CategoriesComponent {
constructor(config, shared... | 2,622 |
https://github.com/Akshat564/trackerica-2/blob/master/client/src/actions/auth.js | Github Open Source | Open Source | MIT | 2,021 | trackerica-2 | Akshat564 | JavaScript | Code | 78 | 193 | import { AUTH } from '../constants/actionTypes';
import * as api from '../api/index.js';
export const signin = (formData, router) => async (dispatch) => {
try {
const { data } = await api.signIn(formData);
dispatch({ type: AUTH, data });
router.push('/exercises');
} catch (error) {
console.log(er... | 54,977 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/WPS Office– 完美支持Word、PPT、Excel、PDF文档阅读编辑-7.4.0(越狱应用)_headers/WPSCommentEditorTitlebar.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 59 | 196 | //
// 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 "WPSHorizontalStrip.h"
@class WPSButton;
@interface WPSCommentEditorTitlebar : WPSHorizontalStrip
{
WPSButton *_finishBut... | 3,478 |
https://github.com/iuanshuai/Ticket-Service/blob/master/src/main/java/me/syus/ticketservice/repository/SeatRepositoryImpl.java | Github Open Source | Open Source | MIT, Apache-2.0 | 2,019 | Ticket-Service | iuanshuai | Java | Code | 173 | 649 | package me.syus.ticketservice.repository;
import me.syus.ticketservice.domain.Seat;
import me.syus.ticketservice.service.UserService;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
impor... | 39,021 |
https://github.com/ikatyang/types-ramda/blob/master/snapshots/mergeDeepRight.ts | Github Open Source | Open Source | MIT | 2,017 | types-ramda | ikatyang | TypeScript | Code | 39 | 130 | import * as R_mergeDeepRight from '../ramda/dist/src/mergeDeepRight';
declare const a_1: { a: 1 };
declare const b_2: { b: 2 };
// @dts-jest:pass -> (right: object) => object
R_mergeDeepRight(a_1);
// @dts-jest:pass -> object
R_mergeDeepRight(a_1)(b_2);
// @dts-jest:pass -> object
R_mergeDeepRight(a_1, b_2);
| 36,733 |
https://github.com/jdbi/jdbi/blob/master/core/src/test/java/org/jdbi/v3/core/mapper/reflect/FieldMapperPrivateAccessTest.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | jdbi | jdbi | Java | Code | 152 | 309 | /*
* 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 writing, software
* distributed u... | 12,524 |
https://github.com/Taoshuaixing/dtrz-web/blob/master/src/app/routes/yuqing-calendar/yuqing-calendar/yuqing-calendar-history-review/history-review-event-classify/history-review-event-classify.component.ts | Github Open Source | Open Source | MIT | null | dtrz-web | Taoshuaixing | TypeScript | Code | 766 | 3,301 | import {Component, OnInit} from '@angular/core';
import {CrudService} from "../../../../crud.service";
import {NzModalService} from "ng-zorro-antd/modal";
import {NzMessageService} from "ng-zorro-antd/message";
import {ActivatedRoute, Router} from "@angular/router";
import {SettingsService} from "@delon/theme";
import ... | 5,188 |
https://github.com/CapsicoHealth/Tilda/blob/master/src/tilda/db/metadata/IndexMeta.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Tilda | CapsicoHealth | Java | Code | 332 | 910 | /* ===========================================================================
* Copyright (C) 2017 CapsicoHealth 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.ap... | 26,588 |
https://github.com/apache/netbeans/blob/master/groovy/groovy.editor/test/unit/data/testfiles/completion/MethodCompletionTestCase.groovy | Github Open Source | Open Source | Apache-2.0 | 2,023 | netbeans | apache | Groovy | Code | 4 | 12 | new String().toS
new String().find
| 25,439 |
https://github.com/metrumresearchgroup/Torsten/blob/master/cmdstan/src/cmdstan/io/json/json_data_handler.hpp | Github Open Source | Open Source | BSD-3-Clause, GPL-2.0-only, Apache-2.0 | 2,022 | Torsten | metrumresearchgroup | C++ | Code | 1,105 | 3,499 | #ifndef CMDSTAN_IO_JSON_JSON_DATA_HANDLER_HPP
#define CMDSTAN_IO_JSON_JSON_DATA_HANDLER_HPP
#include <cmdstan/io/json/json_error.hpp>
#include <cmdstan/io/json/json_handler.hpp>
#include <cmdstan/io/json/rapidjson_parser.hpp>
#include <stan/io/var_context.hpp>
#include <cctype>
#include <iostream>
#include <limits>
#i... | 7,431 |
https://github.com/mahugnon/PetitParserTooling/blob/master/PetitParserTooling-Core/PPTGeneratorVisitor.class.st | Github Open Source | Open Source | MIT | 2,019 | PetitParserTooling | mahugnon | null | Spoken | 231 | 617 | Class {
#name : #PPTGeneratorVisitor,
#superclass : #Object,
#instVars : [
'generationStrategy',
'ruleReifications',
'ruleRenaming'
],
#category : #'PetitParserTooling-Core'
}
{ #category : #'instance creation' }
PPTGeneratorVisitor class >> newWithStrategy: aPPASTGeneratorStrategy onRule: aRule [
^ self n... | 41,551 |
https://github.com/damu1000/Uintah/blob/master/src/CCA/Components/Wasatch/Expressions/DensitySolvers/TwoStreamMixingDensity.h | Github Open Source | Open Source | MIT | 2,021 | Uintah | damu1000 | C | Code | 565 | 1,466 | /*
* The MIT License
*
* Copyright (c) 2012-2018 The University of Utah
*
* 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
* right... | 1,786 |
https://github.com/thinkloop/todo-react-components/blob/master/demo/todos/reducers/todos.js | Github Open Source | Open Source | MIT | 2,016 | todo-react-components | thinkloop | JavaScript | Code | 289 | 1,092 | const ON_NEW_SUBMIT = 'ON_NEW_SUBMIT';
const ON_TODO_BUTTON_CLICKED = 'ON_TODO_BUTTON_CLICKED';
const ON_TODO_CHECKBOX_TOGGLED = 'ON_TODO_CHECKBOX_TOGGLED';
const ON_SUMMARY_STATUS_SELECTED = 'ON_SUMMARY_STATUS_SELECTED';
import store from '../../store';
import { PENDING, COMPLETE, TOTAL } from '../../../src/todos/co... | 15,962 |
https://github.com/mercurio-ar/web-frontend-react/blob/master/src/translations/ActionsTranslations/DeleteVisualizationActionTranslations.ts | Github Open Source | Open Source | MIT | null | web-frontend-react | mercurio-ar | TypeScript | Code | 41 | 117 | export const DeleteVisualizationActionTranslations = {
delete: {
visualization: {
cancel: [
'Cancel',
'Cancelar'
],
confirm: [
'Delete',
'Eliminar'
],
confirmation: [
'... | 49,881 |
https://github.com/mariusbuescher/nunjucks-talk/blob/master/src/components/pattern/site-header/site-header.njs | Github Open Source | Open Source | MIT | null | nunjucks-talk | mariusbuescher | JavaScript | Code | 10 | 25 | <h1>{{ title }}</h1>
<p>{{ content | shorten( 12 ) }}</p>
| 30,298 |
https://github.com/dudeofawesome/resume-v2/blob/master/src/components/very-simple-markdown.tsx | Github Open Source | Open Source | MIT | null | resume-v2 | dudeofawesome | TypeScript | Code | 444 | 1,116 | import { CSSProperties, FC, useMemo } from 'react';
import styles from './header.module.scss';
/**
* A **VERY** simple Markdown parser.
*
* Supports _non-cascading_ bold, italics, and links using a Github flavored
* Markdown subset.
*
* @param md the markdown you want to parse
*/
export const VerySimpleMD: FC<A... | 44,787 |
https://github.com/erictapen/ispc/blob/master/builtins/target-neon-i32x4.ll | Github Open Source | Open Source | BSD-3-Clause | null | ispc | erictapen | LLVM | Code | 3,676 | 10,343 | ;;
;; target-neon-32.ll
;;
;; Copyright(c) 2012-2013 Matt Pharr
;; Copyright(c) 2013, 2015 Google, Inc.
;; Copyright(c) 2019 Intel
;;
;; All rights reserved.
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are
;; met:
... | 12,209 |
https://github.com/Aconka/BABOT/blob/master/database.js | Github Open Source | Open Source | WTFPL | null | BABOT | Aconka | JavaScript | Code | 978 | 2,914 | const fs = require('fs');
var babadata = require('./babotdata.json'); //baba configuration file
var mysql = require('mysql2');
const { FindDate } = require('./helperFunc');
var con;
function handleDisconnect(print)
{
console.log(print + " - Starting Database Connection");
con = mysql.createConnection({
host: bab... | 31,289 |
https://github.com/ast-decorators/core/blob/master/packages/utils/src/metadata/extractDecoratorMetadata.ts | Github Open Source | Open Source | MIT | null | core | ast-decorators | TypeScript | Code | 121 | 389 | // TODO: remove eslint-disable when typescript-eslint can handle TS 3.8 properly
/* eslint-disable @typescript-eslint/explicit-member-accessibility */
import {NodePath} from '@babel/traverse';
import {
Decorator,
Identifier,
isCallExpression,
MemberExpression,
} from '@babel/types';
import extractImportMetadata... | 9,460 |
https://github.com/deutandev/variable/blob/master/resources/views/themes/ezone/partials/slider.blade.php | Github Open Source | Open Source | MIT | null | variable | deutandev | PHP | Code | 61 | 298 | @if ($slides)
<div class="slider-area">
<div class="slider-active owl-carousel">
@foreach ($slides as $slide)
<div class="single-slider-4">
<div class="carousel-item active">
<img src="{{ asset('storage/'. $slide->extra_large) }}" alt="" class="d-block w-100">
</div>
{{-- <div class="container... | 51,000 |
https://github.com/chilbi/KasumiNotes/blob/master/app/src/main/java/com/kasuminotes/action/StatusFieldAction.kt | Github Open Source | Open Source | Apache-2.0 | null | KasumiNotes | chilbi | Kotlin | Code | 63 | 299 | package com.kasuminotes.action
import com.kasuminotes.R
import com.kasuminotes.data.SkillAction
import kotlin.math.roundToInt
fun SkillAction.getStatusField(skillLevel: Int): D {
val formula = when (actionDetail2) {
1 -> getBaseLvFormula(actionValue1, actionValue2, skillLevel)
2 -> D.Text("${actio... | 215 |
https://github.com/palaphon/wealthbot/blob/master/system/Pas/Unrealized.php | Github Open Source | Open Source | MIT | 2,022 | wealthbot | palaphon | PHP | Code | 225 | 899 | <?php
namespace Pas;
use Model\Pas\SystemClientAccount as SystemClientAccountModel;
use Model\Pas\Repository\LotRepository as LotRepo;
use Model\Pas\Repository\SecurityRepository as SecurityRepo;
use Model\Pas\Repository\SystemClientAccountRepository as SystemClientAccountRepo;
use Model\Pas\DocumentRepository\BaseRe... | 22,760 |
https://github.com/turningme/bc-bsp-2.0/blob/master/webapps/bcbsp/BspController.jsp | Github Open Source | Open Source | Apache-2.0 | 2,016 | bc-bsp-2.0 | turningme | null | Spoken | 112 | 988 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.chinamobile.bcbsp.bspcontroller.BSPController"%>
<%@ page import="com.chinamobile.bcbsp.bspcontroller.Cluste... | 44,698 |
https://github.com/devent/simplerest/blob/master/simplerest-oanda-rest/src/main/java/com/anrisoftware/simplerest/oanda/core/DefaultAccount.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | simplerest | devent | Java | Code | 391 | 1,028 | /*
* Copyright 2016 Erwin Müller <erwin.mueller@deventm.org>
*
* This file is part of simplerest-oanda-rest.
*
* simplerest-oanda-rest is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either versi... | 50,704 |
https://github.com/colemujadzic/old/blob/master/oldish-dotfiles/.vscode/extensions/peterjausovec.vscode-docker-0.3.1/node_modules/vscode-azureextensionui/node_modules/azure-arm-resource/lib/policy/models/policyAssignment.js | Github Open Source | Open Source | MIT | null | old | colemujadzic | JavaScript | Code | 422 | 1,061 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | 35,439 |
https://github.com/tectronics/DotNetProjects/blob/master/Daffodil_POS 08.04.07/DataAccessLayer/Imp/OpeningBalanceDALImp.cs | Github Open Source | Open Source | Apache-2.0 | 2,016 | DotNetProjects | tectronics | C# | Code | 530 | 2,748 | using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using DSL.POS.DTO.DTO;
using DSL.POS.DataAccessLayer.Common.Imp;
using DSL.POS.DataAccessLayer.Interface;
namespace DSL.POS.DataAccessLayer.Imp
{
class OpeningBalanceDALImp... | 16,095 |
https://github.com/BGTCapital/hummingbot/blob/master/test/debug/fixture_configs.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | hummingbot | BGTCapital | Python | Code | 108 | 348 | class FixtureConfigs:
in_mem_new_pass_configs = [
{"prompt": "Enter your new password >>> ", "input": "a"},
{"prompt": "Please reenter your password >>> ", "input": "a"},
{"prompt": "Import previous configs or create a new config file? (import/create) >>> ", "input": "create"}
]
pur... | 15,490 |
https://github.com/Egida/ProxyBuilder/blob/master/src/test/kotlin/BuildProxyArchive.kt | Github Open Source | Open Source | MIT | 2,021 | ProxyBuilder | Egida | Kotlin | Code | 247 | 1,027 | import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.add
import kotlinx.serialization.json.buildJsonObject
import kotlinx.serialization.json.putJsonArra... | 48,752 |
https://github.com/mciucu/stemjs/blob/master/src/ui/button/StateButton.jsx | Github Open Source | Open Source | LicenseRef-scancode-public-domain, CC0-1.0, Unlicense, MIT-0 | 2,023 | stemjs | mciucu | JavaScript | Code | 118 | 359 | import {ActionStatus} from "../Constants.js";
import {Button} from "./Button.jsx";
export class StateButton extends Button {
setOptions(options) {
options.state = (this.options && this.options.state) || options.state || ActionStatus.INITIAL;
super.setOptions(options);
this.options.statusO... | 15,578 |
https://github.com/hbradleyiii/portfolio/blob/master/resources/views/articles/index.blade.php | Github Open Source | Open Source | MIT | 2,016 | portfolio | hbradleyiii | Blade | Code | 29 | 146 | @extends('layouts.main')
@section('content')
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1>Articles</h1>
<ul class="list-group">
@foreach ($articles as $article)
<li class="list-group-item">
<a href="{{ URL::... | 44,350 |
https://github.com/tvihanta/gallery/blob/master/client/js/templates/image.hbs | Github Open Source | Open Source | MIT | 2,013 | gallery | tvihanta | null | Spoken | 9 | 50 |
<a href="#open" class="image-link">
<img src="{{domain}}{{path}}{{thumbnail}}"/>
<div class="image-wrapper">
</div>
</a> | 43,049 |
https://github.com/shalomacacio/js3wall/blob/master/resources/views/suporte/dashboard.blade.php | Github Open Source | Open Source | MIT | 2,021 | js3wall | shalomacacio | PHP | Code | 703 | 3,239 | @extends('layouts.admin')
@section('content')
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-he... | 31,254 |
https://github.com/Zorin95670/octo-spy/blob/master/src/main/java/com/octo/model/entity/LastDeploymentView.java | Github Open Source | Open Source | MIT | 2,021 | octo-spy | Zorin95670 | Java | Code | 92 | 242 | package com.octo.model.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* Entity of last deployment.
*
* @author Vincent Moittié
*
*/
@Entity
@Table(name = "last_deployments_view")
public class LastDeploymentView extends AbstractDeploymentView {
/... | 37,257 |
https://github.com/falkreon/CoPU-VM/blob/master/src/main/java/com/unascribed/copu/assembler/ImmediateValue.java | Github Open Source | Open Source | MIT | null | CoPU-VM | falkreon | Java | Code | 307 | 678 | /*
* MIT License
*
* Copyright (c) 2017 Falkreon
*
* 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,... | 44,201 |
https://github.com/madisonkoch/Learning-Activities/blob/master/Node/Band example/run.js | Github Open Source | Open Source | MIT | 2,018 | Learning-Activities | madisonkoch | JavaScript | Code | 94 | 221 | var bandList = require ("./band.js");
//Console log for all bands & their genre
// for (var key in bandList){
// console.log("A " + key + " band is " + bandList[key])
// }
const userArg = process.argv[2];
/**
*
* @param {array} bandArray
* @param {string} bandGenre
*/
function bandChecker(bandArray, band... | 50,781 |
https://github.com/xhaggi/android-tvheadend/blob/master/app/src/main/java/ie/macinnes/tvheadend/settings/SettingsFragment.java | Github Open Source | Open Source | Apache-2.0 | null | android-tvheadend | xhaggi | Java | Code | 256 | 798 | /*
* Copyright (c) 2016 Kiall Mac Innes <kiall@macinnes.ie>
*
* 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 appl... | 38,159 |
https://github.com/danbovey/SonarrPlex/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,018 | SonarrPlex | danbovey | Ignore List | Code | 3 | 15 | node_modules
chrome/js
chrome/css
| 31,040 |
https://github.com/WishCore/wish-api-node/blob/master/deps/wish_app_port_deps/unix/fs_port.h | Github Open Source | Open Source | Apache-2.0 | 2,019 | wish-api-node | WishCore | C | Code | 60 | 217 | #ifdef __cplusplus
extern "C" {
#endif
/* Unix port specific file I/O functions */
#include "wish_fs.h"
wish_file_t my_fs_open(const char *pathname);
int32_t my_fs_read(wish_file_t fd, void* buf, size_t count);
int32_t my_fs_write(wish_file_t fd, const void *buf, size_t count);
wish_offset_t my_fs_lseek(wish_file_t f... | 20,314 |
https://github.com/lasizoillo/docker-volume-nest/blob/master/resources/share/examples/zfs_remote/remove.sh | Github Open Source | Open Source | MIT | null | docker-volume-nest | lasizoillo | Shell | Code | 44 | 130 | #!/bin/bash -eu
# Removes a volume. Use stderr for errors and stdout to show path where volume was mounted
declare base_path=${BASE_PATH:-/mnt/nest}
declare base_mount=${BASE_MOUNT:-/mnt/docker-volume}
declare volname=$1
declare mount_point="${base_mount}/${volname}"
umount $mount_point > /dev/null
rmdir $mount_point
... | 46,624 |
https://github.com/TechneSecure/cardano-wallet/blob/master/lib/http-bridge/test/unit/Data/PackfileSpec.hs | Github Open Source | Open Source | MIT | 2,019 | cardano-wallet | TechneSecure | Haskell | Code | 447 | 1,224 | module Data.PackfileSpec
( spec
) where
import Prelude
import Cardano.Wallet.HttpBridge.Binary
( decodeBlock )
import Cardano.Wallet.HttpBridge.BinarySpec
( unsafeDeserialiseFromBytes )
import Cardano.Wallet.HttpBridge.Primitive.Types
( Tx )
import Cardano.Wallet.Primitive.Types
( Block (..), ... | 10,212 |
https://github.com/niello/deusexmachina/blob/master/DEM/Low/src/Debug/DebugServer.cpp | Github Open Source | Open Source | MIT | 2,022 | deusexmachina | niello | C++ | Code | 248 | 891 | #include "DebugServer.h"
#include <Events/EventServer.h>
#include <Core/Factory.h>
// Dbg menu plugins:
// console - OK
// texture browser - can create (CC)
// gfx resources - not usable (NU)
// hardpoints - NU
// scene control - NU
// watcher - OK
// system info - CC
// adjust display - CC
// character control - NU
... | 19,747 |
https://github.com/avrinfly/X6/blob/master/packages/x6/src/registry/port-label-layout/side.ts | Github Open Source | Open Source | MIT | 2,022 | X6 | avrinfly | TypeScript | Code | 164 | 451 | import { PortLabelLayout } from './index'
import { toResult } from './util'
export interface SideArgs extends PortLabelLayout.CommonOptions {}
export const manual: PortLabelLayout.Definition<SideArgs> = (
portPosition,
elemBBox,
args,
) => toResult({ position: elemBBox.getTopLeft() }, args)
export const left: ... | 32,019 |
https://github.com/peyeum/weather-app/blob/master/modules/clock.js | Github Open Source | Open Source | MIT | null | weather-app | peyeum | JavaScript | Code | 37 | 89 | /**
* clock
* @param {Element} element the clock element in DOM
*/
const clock = (element) => {
element.textContent = new Date().toLocaleTimeString([], {
hour: "2-digit",
minute: "2-digit",
});
setTimeout(() => clock(element), 1000);
};
export default clock;
| 3,160 |
https://github.com/douglasdcm/cloudify-stage/blob/master/widgets/blueprints/src/BlueprintsLabelFilter.tsx | Github Open Source | Open Source | Apache-2.0 | null | cloudify-stage | douglasdcm | TypeScript | Code | 76 | 262 | import React, { FunctionComponent, ComponentProps } from 'react';
import { FilterRuleType } from '../../common/src/filters/types';
type BlueprintsLabelFilterProps = Pick<
Stage.Types.CustomConfigurationComponentProps<any[]>,
'name' | 'onChange' | 'value' | 'widgetlessToolbox'
>;
const BlueprintsLabelFilter: F... | 56,534 |
https://github.com/Deleplace/datastore-key/blob/master/log.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | datastore-key | Deleplace | Go | Code | 20 | 60 | package datastorekey
import (
"context"
"log"
)
func logf(c context.Context, level, msg string, args ...interface{}) {
log.Printf(level+" "+msg, args...)
}
| 48,332 |
https://github.com/ElasticBTC-XBT/about.xbc.xbn.finance/blob/master/src/views/xbn/xbn_admin_quest_airdrop.vue | Github Open Source | Open Source | Unlicense | null | about.xbc.xbn.finance | ElasticBTC-XBT | Vue | Code | 584 | 2,490 | <template>
<div>
<section
class="signin section illustration-section-01"
:class="[
hasBgColor && 'has-bg-color',
invertColor && 'invert-color'
]">
<div class="container">
<div
class="signin-inner section-inner"
:class="[
... | 1,801 |
https://github.com/anshuman852/memocho/blob/master/render/components/body.js | Github Open Source | Open Source | MIT | 2,021 | memocho | anshuman852 | JavaScript | Code | 56 | 190 | const mainContent = require('./mainContent');
const footer = require('./footer');
module.exports = (m, {location, content, language}) => {
const isSnippet = location === 'snippet';
const scripts = ['/js/main.js', '/custom/addon.js'];
return m("body", [
mainContent(m, {location, content, language}... | 9,660 |
https://github.com/kerasking/HHHH/blob/master/old_bak/SMYS_CLIENT_IPHONE/Classes/Module/Auction_Item.h | Github Open Source | Open Source | MIT | 2,012 | HHHH | kerasking | C++ | Code | 91 | 291 | /*
* Auction_Item.h
* DragonDrive
*
* Created by wq on 11-4-18.
* Copyright 2011 __MyCompanyName__. All rights reserved.
*
*/
#ifndef __AUCTION_ITEM_H__
#define __AUCTION_ITEM_H__
#include "define.h"
#include "Item.h"
class Auction_Item : public Item {
public:
Auction_Item(int idItemType);
string getA... | 21,377 |
https://github.com/mafudelaptu/laravelD2L/blob/master/app/views/icons/match_canceled.blade.php | Github Open Source | Open Source | MIT | 2,014 | laravelD2L | mafudelaptu | Blade | Code | 5 | 18 | <i class="icon-remove t" title="Match canceled"></i> | 48,608 |
https://github.com/ovh/manager/blob/master/packages/manager/apps/web/client/app/domain/webhosting/order/steps/module/domain-webhosting-order-steps-module.constants.js | Github Open Source | Open Source | BSD-3-Clause | 2,023 | manager | ovh | JavaScript | Code | 43 | 121 | export const LATEST_MODULES = [
{ id: 0, label: 'wordpress', recommendedOffer: 'pro2014' },
{ id: 1, label: 'prestashop', recommendedOffer: 'perf2014x1' },
{ id: 2, label: 'joomla', recommendedOffer: 'pro2014' },
{ id: 3, label: 'drupal', recommendedOffer: 'pro2014' },
];
export default {
LATEST_MODULES,
};
| 20,517 |
https://github.com/clsrfish/dangerffmpeg/blob/master/src/tutorial01.cpp | Github Open Source | Open Source | Apache-2.0 | null | dangerffmpeg | clsrfish | C++ | Code | 717 | 2,203 |
#ifdef __cplusplus
extern "C" {
#endif
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#ifdef __cplusplus
}
#endif
#include <spdlog/spdlog.h>
#include <fstream>
#include <sstream>
#include <string>
#include "./tutorial01.hpp"
#define CHECK_BIT(state, bitIndex) state... | 25,719 |
https://github.com/acottais/portctl/blob/master/Makefile | Github Open Source | Open Source | Apache-2.0 | null | portctl | acottais | Makefile | Code | 548 | 1,088 | # I usually keep a `VERSION` file in the root so that anyone
# can clearly check what's the VERSION of `master` or any
# branch at any time by checking the `VERSION` in that git
# revision.
#
# Another benefit is that we can pass this file to our Docker
# build context and have the version set in the binary that ends
... | 15,582 |
https://github.com/Devsome/silkroad-laravel/blob/master/app/DataTables/Backend/Donations/MaxiCard/MaxiCardDataTable.php | Github Open Source | Open Source | MIT | 2,023 | silkroad-laravel | Devsome | PHP | Code | 342 | 1,670 | <?php
namespace App\DataTables\Backend\Donations\MaxiCard;
use App\DonationMaxiCard;
use Carbon\Carbon;
use Yajra\DataTables\DataTableAbstract;
use Yajra\DataTables\DataTables;
use Yajra\DataTables\Html\Builder;
use Yajra\DataTables\Html\Column;
use Yajra\DataTables\Services\DataTable;
class MaxiCardDataTable extend... | 30,113 |
https://github.com/Anilhub/anil1/blob/master/Camera2Sample/app/src/main/java/com/example/glass/camera2sample/MainActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | anil1 | Anilhub | Java | Code | 188 | 471 | /*
* Copyright 2019 Google 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 agreed to... | 26,643 |
https://github.com/whizsid/framework/blob/master/Database/Types.ts | Github Open Source | Open Source | MIT | null | framework | whizsid | TypeScript | Code | 486 | 1,176 | import { Query } from './Query';
import { Expression } from './Expression';
export enum Operators {
'=' = '=',
'<' = '<',
'<=' = '<=',
'>' = '>',
'>=' = '>=',
'!' = '!',
'AND' = 'AND',
'OR' = 'OR',
'IS' = 'IS',
'IN' = 'IN',
'LIKE' = 'LIKE',
'IS NOT' = 'IS NOT',
}
export... | 29,339 |
https://github.com/Majd-sufian/piral/blob/master/src/plugins/piral-urql/src/queries.ts | Github Open Source | Open Source | MIT | 2,022 | piral | Majd-sufian | TypeScript | Code | 309 | 643 | import { OperationResult, createRequest, Client } from 'urql';
import { pipe, subscribe, Source } from 'wonka';
import { GqlQueryOptions, GqlMutationOptions, GqlSubscriber, GqlSubscriptionOptions } from './types';
function pipeToPromise<T>(source: Source<OperationResult<T>>) {
return new Promise<T>((resolve, reject)... | 41,752 |
https://github.com/1282127821/summer-1/blob/master/constant/src/main/scala/com/code/server/constant/kafka/IKafkaMsg.java | Github Open Source | Open Source | MIT | 2,021 | summer-1 | 1282127821 | Java | Code | 15 | 43 | package com.code.server.constant.kafka;
/**
* Created by sunxianping on 2017/5/27.
*/
public interface IKafkaMsg {
}
| 34,490 |
https://github.com/chall3ng3r/GameOn/blob/master/Source/Windows/GameOn/FormMain.Designer.cs | Github Open Source | Open Source | MIT | 2,018 | GameOn | chall3ng3r | C# | Code | 171 | 703 | using System.Windows.Forms;
namespace GameOn
{
partial class FormMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </s... | 54,584 |
https://github.com/XYCodeTerminator/mobile/blob/master/app/MMB/src/scenes/tickets/boardingPasses/boardingPassInformation/BoardingPassInformation.js | Github Open Source | Open Source | MIT | 2,019 | mobile | XYCodeTerminator | JavaScript | Code | 149 | 512 | // @flow strict
import * as React from 'react';
import { graphql, createFragmentContainer } from '@kiwicom/mobile-relay';
import FutureBookingInformation from './FutureBookingInformation';
import BookingDetailContext from '../../../../context/BookingDetailContext';
import PastBookingInformation from './PastBookingInf... | 50,734 |
https://github.com/sbabikov/elevator/blob/master/src/Engine/ElevatorEngineInterface.php | Github Open Source | Open Source | MIT | null | elevator | sbabikov | PHP | Code | 57 | 123 | <?php
namespace Elevator\Engine;
/**
* ElevatorEngineInterface
* @author Sergii Babikov
*/
interface ElevatorEngineInterface
{
/**
* Move up the elevator
* @return void
*/
public function up(): void;
/**
* Move down the elevator
* @return void
*/
public function down(): vo... | 14,678 |
https://github.com/Osin/Webservice/blob/master/Library/Exception/BadParametersException.php | Github Open Source | Open Source | Apache-2.0 | null | Webservice | Osin | PHP | Code | 60 | 183 | <?php
/**
* Created by PhpStorm.
* @author: Housseini Toumani
* @package Osin/Tools
* @link https://github.com/Osin/Tools
* Date: 29/08/14
* Time: 18:30
*/
namespace Library\Exception;
use Library\Handler\TranslateHandler;
/**
* Class BadParametersException
* @package Library\Exception
*/
class BadParamete... | 40,359 |
https://github.com/RobsonCoura/Generation--Brasil_Bloco_I_Portugol/blob/master/Vetores e Matrizes/01.por | Github Open Source | Open Source | Apache-2.0 | 2,021 | Generation--Brasil_Bloco_I_Portugol | RobsonCoura | null | Spoken | 141 | 460 | programa
{
/*1. Faça um programa que crie um vetor por leitura com 5 valores de pontuação de uma atividade
e o escreva em seguida. Encontre após a maior pontuação e a apresente. */
funcao inicio()
{
real pontuacao[5],maiorPontuacao=0.0
inteiro cont
para (cont =0; cont <5; cont++)
{
escreva("Digit... | 1,220 |
https://github.com/GGn0/training_mern/blob/master/client/src/components/Ingredient_dialog/style.js | Github Open Source | Open Source | MIT | 2,021 | training_mern | GGn0 | JavaScript | Code | 26 | 89 | import { makeStyles } from '@material-ui/core/styles'
export default makeStyles((theme) => ({
root: {
paddingBottom: theme.spacing(3)
},
closeButton: {
position: 'absolute',
right: theme.spacing(1),
top: theme.spacing(1)
}
}))
| 50,840 |
https://github.com/MaximTiberiu/JavaBank/blob/master/src/main/java/javabank/console/Main.java | Github Open Source | Open Source | MIT | null | JavaBank | MaximTiberiu | Java | Code | 26 | 71 | package javabank.console;
import javabank.UI.UI;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
UI consoleApplication = new UI();
consoleApplication.startApp();
}
}
| 28,117 |
https://github.com/sshishe/JSDeodorant/blob/master/core/src/ca/concordia/jsdeodorant/analysis/decomposition/TypeDeclarationKind.java | Github Open Source | Open Source | MIT | 2,019 | JSDeodorant | sshishe | Java | Code | 10 | 41 | package ca.concordia.jsdeodorant.analysis.decomposition;
public enum TypeDeclarationKind {
CLASS, INTERFACE, ABSTRACT_CLASS
}
| 36,469 |
https://github.com/patm1987/advent-of-code-2021/blob/master/hydrothermal-venture/test/line_test.dart | Github Open Source | Open Source | Apache-2.0 | null | advent-of-code-2021 | patm1987 | Dart | Code | 35 | 105 | import 'dart:math';
import 'package:hydrothermal_venture/line.dart';
import 'package:test/test.dart';
void main() {
test('Test can parse a line from string', () {
var input = "0,9 -> 5,9";
var line = Line.parse(input);
expect(line, Line(Point(0, 9), Point(5, 9)));
});
}
| 6,371 |
https://github.com/wecanooo/gorani/blob/master/core/log.go | Github Open Source | Open Source | MIT | 2,021 | gorani | wecanooo | Go | Code | 159 | 679 | package core
import (
"fmt"
"github.com/natefinch/lumberjack"
"github.com/wecanooo/kora/core/pkg/timeutils"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"path"
"time"
)
// SetupLog creates a log instance
func SetupLog() {
writeSyncer := getLogWriter()
encoder := getEncoder()
core := zapcore.NewCore(encoder, ... | 26,767 |
https://github.com/qlba/FluorineEngine/blob/master/Src/Engine/FrClass.cpp | Github Open Source | Open Source | MIT | 2,017 | FluorineEngine | qlba | C++ | Code | 2,764 | 8,144 | /*=============================================================================
FrClass.cpp: Classes system implementation.
Copyright Jun.2016 Vlad Gordienko.
=============================================================================*/
#include "Engine.h"
/*-------------------------------------------------... | 37,158 |
https://github.com/alegemaate/simple-datatables/blob/master/src/components/SimpleTableFooter.tsx | Github Open Source | Open Source | MIT | null | simple-datatables | alegemaate | TypeScript | Code | 65 | 280 | import * as React from "react";
import TableFooter from "@mui/material/TableFooter";
import TableRow from "@mui/material/TableRow";
import {
RowsPerPageOption,
SimpleTablePagination,
} from "./SimpleTablePagination";
import { UsePaginationProps } from "hooks/usePagination";
interface SimpleTableFooterProps extends... | 9,735 |
https://github.com/m3hdiii/selenium-boot-framework/blob/master/selenium-boot-project/selenium-boot-spring/src/main/java/selenium/boot/spring/support/jackson/JsonSnakeCase.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | selenium-boot-framework | m3hdiii | Java | Code | 69 | 235 | package selenium.boot.spring.support.jackson;
import com.fasterxml.jackson.annotation.JacksonAnnotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marker annotation which indicates that th... | 54,732 |
https://github.com/wzt3309/tutorials/blob/master/project-docker-manager/dm-domain/src/main/java/io/zeddw/tutorial/domain/security/acl/TenantSid.java | Github Open Source | Open Source | MIT | null | tutorials | wzt3309 | Java | Code | 93 | 345 | package io.zeddw.tutorial.domain.security.acl;
import io.zeddw.tutorial.domain.security.tenant.OwnedByTenant;
import org.springframework.security.acls.domain.GrantedAuthoritySid;
import org.springframework.security.acls.domain.PrincipalSid;
import org.springframework.security.acls.model.Sid;
/**
* 扩展 ACL Sid 增加租户支持
... | 20,944 |
https://github.com/tytsp/jmq/blob/master/jmq-common/registry/registry-api/src/main/java/com/ipd/jmq/registry/RegistryException.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | jmq | tytsp | Java | Code | 165 | 475 | package com.ipd.jmq.registry;
/**
* 注册中心异常
*/
public class RegistryException extends Exception {
public RegistryException() {
super();
}
public RegistryException(String message, Throwable cause) {
super(message, cause);
}
public RegistryException(String message) {
super... | 3,110 |
https://github.com/nguyenlamlll/DrinkReminder/blob/master/src/main/java/com/letrannguyenlam/menuitems/HomeController.java | Github Open Source | Open Source | MIT | 2,019 | DrinkReminder | nguyenlamlll | Java | Code | 396 | 1,471 | package com.letrannguyenlam.menuitems;
import com.letrannguyenlam.Main;
import com.letrannguyenlam.WaterIntake;
import com.letrannguyenlam.logic.DrinkRecordLogic;
import com.letrannguyenlam.logic.UserLogic;
import com.letrannguyenlam.repositories.models.DrinkRecord;
import com.letrannguyenlam.services.TrayService;
imp... | 9,025 |
https://github.com/hallco978/entityframework/blob/master/test/EntityFramework/UnitTests/Core/Metadata/Edm/MetadataItemTests.cs | Github Open Source | Open Source | Apache-2.0 | 2,013 | entityframework | hallco978 | C# | Code | 460 | 2,301 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace System.Data.Entity.Core.Metadata.Edm
{
using System.Data.Entity.Resources;
using System.Linq;
using Xunit;
public class MetadataItemTests
{
[Fact]... | 31,591 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.