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/zzjtnb/Alive_Gist/blob/master/src/main.js | Github Open Source | Open Source | MIT | null | Alive_Gist | zzjtnb | JavaScript | Code | 277 | 1,102 | import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './registerServiceWorker'
import util from './utils/util'
import 'normalize.css'
import 'material-design-icons/iconfont/material-icons.css'
// 按需引入
import {
Form, FormItem, Card, Button, Input, MessageBo... | 23,031 |
https://github.com/NaohiroTamura/ironic-staging-drivers/blob/master/ironic_staging_drivers/intel_nm/nm_vendor.py | Github Open Source | Open Source | Apache-2.0 | null | ironic-staging-drivers | NaohiroTamura | Python | Code | 1,257 | 3,960 | # 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 under t... | 25,731 |
https://github.com/rirwin/sandbox/blob/master/dns-perf-mon/dns_perf_mon.cpp | Github Open Source | Open Source | MIT | null | sandbox | rirwin | C++ | Code | 572 | 1,889 | #include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include <string>
#include <pthread.h>
#include <iostream>
#include <vector>
#include "MySQLQueryHandler.hpp"
#include "DNSQueryHandler.hpp"
/**
* Parsing/usage functions
*/
char *progname;
static void usage();
static void parse_args(int, char**,int*, int*)... | 29,461 |
https://github.com/johan-gorter/Instantlogic/blob/master/instantlogic-fabric/src/main/java/org/instantlogic/fabric/model/Entity.java | Github Open Source | Open Source | MIT | null | Instantlogic | johan-gorter | Java | Code | 680 | 2,334 | package org.instantlogic.fabric.model;
import java.util.Collections;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import org.instantlogic.fabric.Instance;
import org.instantlogic.fabric.text.TextTemplate;
/**
* Can be compared to a Class, only more powerful
*/
public a... | 28,644 |
https://github.com/wanchopeblanco/Buscocasa/blob/master/resources/views/admin/listing-types/index.blade.php | Github Open Source | Open Source | MIT | null | Buscocasa | wanchopeblanco | PHP | Code | 228 | 1,144 | @extends('layouts.master')
@section('head')
<title>Listing Types - {{ Settings::get('site_name') }}</title>
@endsection
@section('css')
@parent
<link href="{{ asset('/css/floatinglabel.css') }}" rel="stylesheet">
@endsection
@section('content')
<div class="uk-container uk-container-center uk-margin-top">
<di... | 33,531 |
https://github.com/dg227/NLSA/blob/master/nlsa/classes/@nlsaKoopmanOperator/getFDOrder.m | Github Open Source | Open Source | BSD-3-Clause | 2,023 | NLSA | dg227 | MATLAB | Code | 45 | 93 | function res = getFDOrder( obj )
% GEFDORDER Returns finite-differnce order of an array of nlsaKoopmanOperator
% objects.
%
% Modified 2020/04/09
res = zeros( size( obj ) );
for iObj = 1 : numel( obj )
res( iObj ) = obj( iObj ).fdOrd;
end
| 14,165 |
https://github.com/hyb1234hi/bitnotify/blob/master/bitnotify/management/commands/bitnotify_cron.py | Github Open Source | Open Source | MIT | 2,017 | bitnotify | hyb1234hi | Python | Code | 24 | 77 | from django.core.management.base import BaseCommand
from bitnotify.cron import cron
class Command(BaseCommand):
help = 'Run bitnotify cron task defined in bitnotify/cron.py'
def handle(self, *args, **options):
cron()
| 46,320 |
https://github.com/srghma/purescript-ocelot/blob/master/src/Blocks/ToggleButton.purs | Github Open Source | Open Source | Apache-2.0 | 2,022 | purescript-ocelot | srghma | PureScript | Code | 132 | 466 | module Ocelot.Block.ToggleButton where
import Prelude
import DOM.HTML.Indexed (HTMLinput, HTMLspan)
import Halogen.HTML as HH
import Halogen.HTML.Properties as HP
import Ocelot.HTML.Properties ((<&>))
toggleButton
:: ∀ p i
. Array (HH.IProp HTMLspan i)
-> Array (HH.IProp HTMLinput i)
-> Array (HH.HTML p i)
... | 1,593 |
https://github.com/capagot/swpathtracer/blob/master/primitives/smooth_triangle.cpp | Github Open Source | Open Source | MIT | 2,022 | swpathtracer | capagot | C++ | Code | 33 | 132 | #include "smooth_triangle.h"
SmoothTriangle::SmoothTriangle(const glm::vec3 &v0, const glm::vec3 &v1, const glm::vec3 &v2, const glm::vec3 &n0,
const glm::vec3 &n1, const glm::vec3 &n2, long unsigned int material_id)
: Triangle(v0, v1, v2, material_id), n0_(n0), n1_(n1), n2_(n2) {}
| 41,362 |
https://github.com/ahmedChaari/ask-blog/blob/master/resources/js/components/askHome.vue | Github Open Source | Open Source | MIT | 2,020 | ask-blog | ahmedChaari | Vue | Code | 46 | 203 | <template>
<v-parallax
dark
src="https://cdn.vuetifyjs.com/images/backgrounds/vbanner.jpg"
height="700"
>
<v-row
align="center"
justify="center"
>
<v-col class="text-center" cols="12">
<h1 class="display-1 font-weight-thin mb-4">Ask question in informatique</h1>
... | 45,421 |
https://github.com/ladenedge/FluentNHibernate.Cfg.Db.CsharpSqlite/blob/master/CsSQLiteConfiguration.cs | Github Open Source | Open Source | CC-PDDC, LicenseRef-scancode-public-domain | 2,013 | FluentNHibernate.Cfg.Db.CsharpSqlite | ladenedge | C# | Code | 69 | 237 |
using FluentNHibernate.Cfg.Db;
using NHibernate.Dialect;
namespace FluentNHibernate.Cfg.Db.CsharpSqlite
{
/// <summary>
/// Fluent configuration for the C#-SQLite driver.
/// </summary>
public class CsharpSqliteConfiguration : SQLiteConfiguration
{
/// <summary>
/// Instantiates a ... | 39,174 |
https://github.com/Northeastern-University-Blockchain/NeuCheck/blob/master/src/main/java/ru/smartdec/soliditycheck/Version.java | Github Open Source | Open Source | MIT | 2,021 | NeuCheck | Northeastern-University-Blockchain | Java | Code | 180 | 425 | package ru.smartdec.soliditycheck;
import java.util.Collections;
import java.util.List;
/**
*
*/
public final class Version implements Comparable<Version> {
/**
* @param list list
* @param index index
* @param value default value
* @param <T> list element type
* @return element at ... | 44,074 |
https://github.com/tniraj7/Nettofurixu/blob/master/Nettofurixu/Nettofurixu/Views/EpisodeView.swift | Github Open Source | Open Source | MIT | null | Nettofurixu | tniraj7 | Swift | Code | 137 | 574 | import SwiftUI
struct EpisodeView: View {
var episodes: [Episode]
@Binding var showSeasonPicker: Bool
@Binding var selectedSeason : Int
func getEpisodesForSeason(forSeason season: Int) -> [Episode] {
return episodes.filter({ $0.season == season})
}
var body: some Vi... | 18,017 |
https://github.com/chenpx976/cnpmcore/blob/master/app/schedule/CreateSyncBinaryTask.ts | Github Open Source | Open Source | MIT | 2,022 | cnpmcore | chenpx976 | TypeScript | Code | 92 | 262 | import { Subscription } from 'egg';
import { BinarySyncerService } from '../core/service/BinarySyncerService';
import binaries from '../../config/binaries';
const cnpmcoreCore = 'cnpmcoreCore';
export default class CreateSyncBinaryTask extends Subscription {
static get schedule() {
return {
// every 5 min... | 14,916 |
https://github.com/shrikar007/customer-rest-api/blob/master/go.mod | Github Open Source | Open Source | MIT | 2,020 | customer-rest-api | shrikar007 | Go Module | Code | 15 | 106 | module github.com/shrikar007/customer-rest-api
go 1.12
require (
github.com/go-chi/chi v4.1.1+incompatible
github.com/go-chi/render v1.0.1
github.com/go-sql-driver/mysql v1.5.0
github.com/jinzhu/gorm v1.9.12
)
| 24,378 |
https://github.com/worph/WFS/blob/master/src/main/java/net/worph/filesytem/nio/WFSNIOFileSystem.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | WFS | worph | Java | Code | 192 | 666 | package net.worph.filesytem.nio;
import java.io.IOException;
import java.nio.file.FileStore;
import java.nio.file.FileSystem;
import java.nio.file.Path;
import java.nio.file.PathMatcher;
import java.nio.file.WatchService;
import java.nio.file.attribute.UserPrincipalLookupService;
import java.nio.file.spi.FileSystemPro... | 46,270 |
https://github.com/treymerkley/minetest-mods/blob/master/tsm_railcorridors/gameconfig.lua | Github Open Source | Open Source | MIT | 2,018 | minetest-mods | treymerkley | Lua | Code | 423 | 1,144 | -- This file stores the various node types. This makes it easier to plug this mod into subgames
-- in which you need to change the node names.
-- Node names (Don't use aliases!)
tsm_railcorridors.nodes = {
dirt = "default:dirt",
chest = "default:chest",
rail = "default:rail",
torch_floor = "default:torch",
torch_... | 3,374 |
https://github.com/ajyan/list.en/blob/master/client/src/components/Playlists.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | list.en | ajyan | JavaScript | Code | 51 | 184 | import React from 'react';
function Playlists(props) {
return (
<div className="box is-primary column" id="playlistContainer">
{props.playlists &&
props.playlists.map((playlist, i) => {
return (
<div key={i}>
<br />
<div
id={i}
... | 6,557 |
https://github.com/maichong/alaska/blob/master/packages/alaska-email/locales/zh-CN/messages.js | Github Open Source | Open Source | MIT | 2,018 | alaska | maichong | JavaScript | Code | 58 | 245 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
Subject: '主题',
Driver: '驱动',
'Test Template Variables': '测试模板值',
'Test Send To': '测试发送到',
'Test Send': '测试发送',
'Email Task': '邮件任务',
Ready: '就绪',
Running: '运行中',
Run: '运行',
Pause: '暂停',
Resume: '继续'... | 32,635 |
https://github.com/eric-erki/waltz/blob/master/waltz-web/src/main/java/com/khartec/waltz/web/endpoints/api/EntitySearchEndpoint.java | Github Open Source | Open Source | Apache-2.0 | null | waltz | eric-erki | Java | Code | 212 | 673 | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | 26,642 |
https://github.com/michelada/ektar/blob/master/test/mailers/ektar/reset_password_mailer_test.rb | Github Open Source | Open Source | MIT | 2,021 | ektar | michelada | Ruby | Code | 39 | 139 | # typed: ignore
# frozen_string_literal: true
require "test_helper"
module Ektar
class ResetPasswordMailerTest < ActionMailer::TestCase
test "reset" do
user = ektar_users(:user)
user.update(reset_password_token: "8383833")
host = "https://ektar.io"
subject = ResetPasswordMailer.with(hos... | 8,569 |
https://github.com/twillouer/metrics/blob/master/metrics-httpclient5/src/test/java/com/codahale/metrics/httpclient5/InstrumentedHttpAsyncClientsTest.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | metrics | twillouer | Java | Code | 314 | 1,430 | package com.codahale.metrics.httpclient5;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.MetricRegistryListener;
import com.codahale.metrics.Timer;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpServer;
import org.apache.hc.client5.http.async.methods.SimpleHttpRe... | 30,325 |
https://github.com/anas-domesticus/gitlab-utils/blob/master/api-tool/go.mod | Github Open Source | Open Source | MIT | 2,020 | gitlab-utils | anas-domesticus | Go Module | Code | 11 | 57 | module api-tool
go 1.15
require (
github.com/sirupsen/logrus v1.7.0
github.com/xanzy/go-gitlab v0.40.1
)
| 34,528 |
https://github.com/2024davidchen/double-eagle/blob/master/src/main/java/frc/robot/subsystems/Climber.java | Github Open Source | Open Source | BSD-3-Clause | null | double-eagle | 2024davidchen | Java | Code | 85 | 316 | package frc.robot.subsystems;
import com.revrobotics.CANSparkMax;
import com.revrobotics.CANSparkMaxLowLevel.MotorType;
import frc.robot.Constants.CAN;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.CommandXboxController;
public class Climber extends SubsystemBase {
private final CANSparkMax ... | 22,251 |
https://github.com/NaskoVasilev/CSharp-Advanced/blob/master/Functional Programming/FunctionalProgramming-Exercise/KnightsOfHonor/KnightsOfHonor.cs | Github Open Source | Open Source | MIT | 2,020 | CSharp-Advanced | NaskoVasilev | C# | Code | 35 | 113 | using System;
using System.Linq;
namespace KnightsOfHonor
{
class KnightsOfHonor
{
static void Main(string[] args)
{
Console.ReadLine()
.Split(' ', StringSplitOptions.RemoveEmptyEntries)
.ToList()
.ForEach(editor);
}
... | 7,438 |
https://github.com/alwanof/whatsappneed/blob/master/resources/views/vendor/nova/partials/meta.blade.php | Github Open Source | Open Source | MIT | null | whatsappneed | alwanof | PHP | Code | 7 | 27 | <link rel="icon" type="image/png" href="{{ asset('/images/favicon.png') }} ">
| 22,683 |
https://github.com/NLnetLabs/kmip/blob/master/src/types/traits.rs | Github Open Source | Open Source | BSD-3-Clause | 2,021 | kmip | NLnetLabs | Rust | Code | 168 | 426 | //! Dynamic traits for sync or async use depending on the Cargo features used.
//!
//! The `ReadWrite` trait is the set of traits used by the [Client](crate::client::Client) to read/write to a TLS
//! stream.
//!
//! The exact composition of the set is dependent on the Cargo feature flags used to compile this crate.
//... | 48,193 |
https://github.com/inyeolsohnn/Squirrel/blob/master/src/squirrel/ir/IRQualityMetrics.java | Github Open Source | Open Source | MIT | null | Squirrel | inyeolsohnn | Java | Code | 358 | 840 | package squirrel.ir;
import squirrel.ir.retrieve.RT_Query;
/**
* IRQualityMetrics holds data about the quality of search for a particular
* query.
*
* @author Steffen Zschaler
*/
public class IRQualityMetrics {
private RT_Query query;
private int topK;
private double precision;
private double rPrecision;
... | 36,181 |
https://github.com/Jedy15/SARH/blob/master/application/views/Plantilla/v_frm_laboral.php | Github Open Source | Open Source | MIT | null | SARH | Jedy15 | PHP | Code | 1,513 | 7,144 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title> SARH | <?php echo $title;?> Registro</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" nam... | 40,125 |
https://github.com/zweifel/Physis-Shard/blob/master/agents/self_organized_systems/create_datasets.r | Github Open Source | Open Source | Apache-2.0 | 2,021 | Physis-Shard | zweifel | R | Code | 19 | 150 |
y <- runif(1:10000,min=0,max=180)
#exponential
x <- rexp(1:10000,3)
k2 <- cbind(x*sin(y),x*cos(y))
#uniform
x2 <- runif(1:10000,min=0,max=3)
k <- cbind(x2*sin(y),x2*cos(y))
write.table(k2,"circular_exp",row.names=F,col.names=F)
write.table(k,"circular_uniform",row.names=F,col.names=F)
| 11,282 |
https://github.com/kring/terriajs/blob/master/src/ViewModels/CatalogViewModel.js | Github Open Source | Open Source | Apache-2.0 | null | terriajs | kring | JavaScript | Code | 741 | 1,758 | 'use strict';
/*global require*/
var defaultValue = require('../../third_party/cesium/Source/Core/defaultValue');
var defined = require('../../third_party/cesium/Source/Core/defined');
var defineProperties = require('../../third_party/cesium/Source/Core/defineProperties');
var DeveloperError = require('../../third_pa... | 35,891 |
https://github.com/yscorecore/ys.knife/blob/master/gen/YS.Knife.Generator/ConvertTo/ConvertToAttribute.cs | Github Open Source | Open Source | MIT | 2,021 | ys.knife | yscorecore | C# | Code | 72 | 186 | using System;
using System.Collections.Generic;
using System.Text;
namespace YS.Knife
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
public sealed class ConvertToAttribute : Attribute
{
public ConvertToAttribute(Type sourceType, Type targetType)
{
... | 10,394 |
https://github.com/sy-data/dtzine/blob/master/views/index.ejs | Github Open Source | Open Source | MIT-0 | 2,021 | dtzine | sy-data | EJS | Code | 381 | 1,846 | <!DOCTYPE html>
<html lang="en">
<head>
<%- include('include/header-meta') %>
<%- include('include/header-css') %>
<%- include('include/header-js') %>
</head>
<body>
<header class="site-header sticky-top py-1">
<nav class="container d-flex flex-column flex-md-row justify-content-between... | 26,378 |
https://github.com/clinwiki-org/clinwiki/blob/master/front/src/services/search/api.ts | Github Open Source | Open Source | MIT | 2,021 | clinwiki | clinwiki-org | TypeScript | Code | 368 | 1,291 | import * as query from './queries';
import * as mutate from './mutations';
// import SearchPageParamsQuery from 'queries/SearchPageParamsQuery';
// import AUTOSUGGEST_QUERY from 'queries/CrumbsSearchPageAggBucketsQuery';
import {
callGraphql,
get_gql_url,
getGraphQLMigrationURL,
getHasuraClinwikiURL,
... | 14,603 |
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/a/ajoergensen/baseimage-centos-mono/Dockerfile | Github Open Source | Open Source | MIT | 2,018 | dockerfiles-1 | jsdelivrbot | Dockerfile | Code | 23 | 130 | FROM ajoergensen/baseimage-centos
RUN \
rpm --import
"http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
&& \
yum-config-manager --add-repo http://download.mono-project.com/repo/centos7/
&& \
yum install -y mono-complete && \
yum clean all
| 50,937 |
https://github.com/marinusmaurice/MvsSln/blob/master/MvsSln/Core/ProjectItem.cs | Github Open Source | Open Source | MIT | 2,022 | MvsSln | marinusmaurice | C# | Code | 926 | 2,570 | /*
* The MIT License (MIT)
*
* Copyright (c) 2013-2021 Denis Kuzmin <x-3F@outlook.com> github/3F
* Copyright (c) MvsSln contributors https://github.com/3F/MvsSln/graphs/contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation ... | 48,532 |
https://github.com/Sohl-Dickstein/NL-Augmenter/blob/master/analysis/filters_mapping_analysis.py | Github Open Source | Open Source | MIT | 2,022 | NL-Augmenter | Sohl-Dickstein | Python | Code | 217 | 735 | """
# Filter Mapping Analysis
This script analyses the filters in the
NL-Augmenter notebook and maps each filter into specific groups using the supplied metadata.
@author = Saad Mahamood
"""
import inspect
from importlib import import_module
from analysis.mapping_analysis_utils import MappingAnalysisUtilities
from in... | 35 |
https://github.com/AngelsAutoTowing/junkcarsmass.com/blob/master/src/pages/used-auto-parts.jsx | Github Open Source | Open Source | MIT | 2,021 | junkcarsmass.com | AngelsAutoTowing | JavaScript | Code | 1,050 | 3,022 | import React from 'react';
import { graphql, Link, useStaticQuery } from 'gatsby';
import { Container, Row, Col } from 'react-bootstrap';
import Img from 'gatsby-image';
import SEO from '../components/common/SEO/Seo';
import Header from '../components/layouts/Header/Header';
import Body from '../components/layouts/Bod... | 37,083 |
https://github.com/jasonTangxd/clockwork/blob/master/clockwork-common/src/main/java/com/creditease/adx/clockwork/common/entity/gen/TbClockworkTaskAndSlotRelationExample.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | clockwork | jasonTangxd | Java | Code | 2,268 | 6,754 | package com.creditease.adx.clockwork.common.entity.gen;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TbClockworkTaskAndSlotRelationExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table tb_clockwork_task_and... | 9,903 |
https://github.com/matthew-hilty/purescript-subcategory/blob/master/src/Functor/Functor.purs | Github Open Source | Open Source | MIT | 2,021 | purescript-subcategory | matthew-hilty | PureScript | Code | 48 | 107 | module Control.Subcategory.Functor
( class Functor
) where
import Control.Subcategory.Category (class Category)
import Control.Subcategory.Functor.HasMap (class HasMap)
import Record.Builder (Builder)
class (Category c, HasMap c f) <= Functor c f
instance functorBuilder :: HasMap Builder f => Functor Builder f
... | 46,437 |
https://github.com/gucong3000/sonar-web-frontend-plugin/blob/master/sonar-report-core/src/main/java/fr/sii/sonar/report/core/duplication/factory/DuplicationSaverFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | sonar-web-frontend-plugin | gucong3000 | Java | Code | 92 | 424 | package fr.sii.sonar.report.core.duplication.factory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.sii.sonar.report.core.common.PluginContext;
import fr.sii.sonar.report.core.common.exception.CreateException;
import fr.sii.sonar.report.core.common.factory.SaverFactory;
import fr.sii.sonar.report... | 24,340 |
https://github.com/wasit7/datascience/blob/master/01day03_etl1/day03_etl1_example/myproject/day03 ETL.ipynb | Github Open Source | Open Source | BSD-2-Clause | 2,019 | datascience | wasit7 | Jupyter Notebook | Code | 3,377 | 15,679 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Q1 How many transactions in the dataset?\n",
"\n",
"## Q2 What is the top-3 most expensive item in the database? \n",
"* show the price of item.\n",
"\n",
"## Q3 Show number of customers were born in each month.\... | 38,257 |
https://github.com/shoutem/extensions/blob/master/shoutem.auth/server/src/pages/protected-screens-page/components/protected-screen-row/index.js | Github Open Source | Open Source | BSD-3-Clause | 2,023 | extensions | shoutem | JavaScript | Code | 7 | 22 | import ProtectedScreenRow from './ProtectedScreenRow';
export default ProtectedScreenRow;
| 13,913 |
https://github.com/MichaelDiers/surveys/blob/master/frontend/SurveyFrame/client/scss/base/_typographie.scss | Github Open Source | Open Source | MIT | null | surveys | MichaelDiers | SCSS | Code | 31 | 105 | body {
font-family: 'Montserrat', sans-serif;
font-size: 110%;
}
h1 {
font-size: 3rem;
text-align: center;
}
form textarea {
text-align: left;
}
.table-header {
font-weight: bold;
}
.theme-toggle {
font-size: 70%;
}
| 26,589 |
https://github.com/jyi2ya/artifacts/blob/master/luogu.com.cn/P1015/a.c | Github Open Source | Open Source | MIT | null | artifacts | jyi2ya | C | Code | 105 | 579 | #define true (1)
#define false (0)
typedef int bool;
#define inline static
#include <stdio.h>
#include <ctype.h>
int num[10000],buf[10000];
int len,MODE;
void out(int* a){
for(int i=0;i<len;i++) printf("%d ",a[i]);
putchar('\n');
}
void add(int* dest ,int* src){
for(int i=0;i<len;i++){
dest[i]+=src[i];
dest[... | 30,703 |
https://github.com/devantennae786/idexy_custom_webapp/blob/master/src/app/pages/pages.module.ts | Github Open Source | Open Source | MIT | 2,022 | idexy_custom_webapp | devantennae786 | TypeScript | Code | 87 | 246 | import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { p404Component } from './404.component';
import { p500Component } from './500.component';
import { LoginComponent } from './login.component';
import { Reg... | 11,731 |
https://github.com/bhoffy2002/api-plugin-for-nopcommerce/blob/master/Nop.Plugin.Api/Services/IShipmentItemApiService.cs | Github Open Source | Open Source | MIT | null | api-plugin-for-nopcommerce | bhoffy2002 | C# | Code | 27 | 114 | using System.Collections.Generic;
using Nop.Core.Domain.Orders;
using Nop.Core.Domain.Shipping;
namespace Nop.Plugin.Api.Services
{
public interface IShipmentItemApiService
{
IList<ShipmentItem> GetShipmentItemsForShipment(Shipment shipment, int limit, int page, int sinceId);
int GetShipmentIt... | 23,205 |
https://github.com/halotron/ProtobufGenerator/blob/master/ProtobufGeneratorGRPC.cs | Github Open Source | Open Source | MIT | 2,019 | ProtobufGenerator | halotron | C# | Code | 185 | 479 | /***************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
This code is licensed under the Visual Studio SDK license terms.
THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
IMPLIED WARRANTIE... | 111 |
https://github.com/phadjido/CubismZ/blob/master/Tests/Test1_dp/genref.sh | Github Open Source | Open Source | BSD-2-Clause | 2,019 | CubismZ | phadjido | Shell | Code | 160 | 390 | #!/usr/bin/env bash
# genref.sh
# CubismZ
#
# Copyright 2018 ETH Zurich. All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#
set -x #echo on
[[ ! -f ../Data/demo_dp.h5 ]] && tar -C ../Data -xJf ../Data/data.tar.xz
h5... | 13,937 |
https://github.com/fusion-jena/CoMerger/blob/master/SourceCode/src/fusion/comerger/algorithm/merger/holisticMerge/localTest/StatisticTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | CoMerger | fusion-jena | Java | Code | 1,261 | 4,014 | package fusion.comerger.algorithm.merger.holisticMerge.localTest;
/*
* CoMerger: Holistic Ontology Merging
* %%
* Copyright (C) 2019 Heinz Nixdorf Chair for Distributed Information Systems, Friedrich Schiller University Jena
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use ... | 9,364 |
https://github.com/santicevic/askSplit/blob/master/client/src/utils/role.js | Github Open Source | Open Source | MIT | null | askSplit | santicevic | JavaScript | Code | 14 | 30 | const Role = { Guest: "Guest", User: "User", Admin: "Admin" };
export default Role;
| 18,530 |
https://github.com/calnet-oss/ucb-ldif-diff/blob/master/src/main/groovy/edu/berkeley/calnet/ldif/UidExtractor.groovy | Github Open Source | Open Source | Apache-2.0, BSD-2-Clause, BSD-3-Clause | 2,016 | ucb-ldif-diff | calnet-oss | Groovy | Code | 322 | 609 | /*
* Copyright (c) 2016, Regents of the University of California and
* contributors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* 1. Redistributions of source code must retain the a... | 24,399 |
https://github.com/Berkaroad/AutoTestFramework.Net/blob/master/src/Examples/AutoTestFrameworkWinFormDemo/frmMain.Designer.cs | Github Open Source | Open Source | MIT | 2,016 | AutoTestFramework.Net | Berkaroad | C# | Code | 921 | 4,589 | namespace AutoTestFrameworkWinForm
{
partial class frmMain
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资... | 34,949 |
https://github.com/imacks/HOCON/blob/master/src/HOCON/Impl/HoconField.cs | Github Open Source | Open Source | Apache-2.0 | null | HOCON | imacks | C# | Code | 538 | 1,668 | //-----------------------------------------------------------------------
// <copyright file="HoconField.cs" company="Hocon Project">
// Copyright (C) 2009-2018 Lightbend Inc. <http://www.lightbend.com>
// Copyright (C) 2013-2018 .NET Foundation <https://github.com/akkadotnet/hocon>
// </copyright>
//---------... | 35,408 |
https://github.com/IOriens/taro-ui/blob/master/packages/taro-ui-demo/src/pages/form/form/index.tsx | Github Open Source | Open Source | MIT | null | taro-ui | IOriens | TypeScript | Code | 288 | 1,156 | import React from 'react'
import {
AtButton,
AtCheckbox,
AtForm,
AtInput,
AtToast
} from '@ioriens/taro-ui'
import { CheckboxOption } from 'types/checkbox'
import { View } from '@tarojs/components'
import Taro from '@tarojs/taro'
import DocsHeader from '../../components/doc-header'
import './index.scss'
inte... | 50,756 |
https://github.com/zhouyanan617/admin-template-vue/blob/master/src/views/Layout/components/HeaderToolBar.vue | Github Open Source | Open Source | MIT | 2,020 | admin-template-vue | zhouyanan617 | Vue | Code | 109 | 383 | <template>
<div :class="`header-tool-theme-${theme}`" class="header-tool">
<FullScreen class="action" />
<SettingAction class="action" @click="openSetting" />
<UserMenu class="action" />
</div>
</template>
<script>
import FullScreen from './FullScreen';
import SettingAction from './SettingAction';
impo... | 43,695 |
https://github.com/bluehandle-open/bluehandle-pc/blob/master/src/my/sunny/communication/ServicesSearch.java | Github Open Source | Open Source | MIT | null | bluehandle-pc | bluehandle-open | Java | Code | 238 | 798 | package my.sunny.communication;
import java.io.IOException;
//import java.util.Enumeration;
import java.util.Vector;
import javax.bluetooth.*;
import my.sunny.IBluetoothConst;
public class ServicesSearch implements IBluetoothConst {
private final Vector<String> serviceFound = new Vector<String>();//服务列表
// private ... | 17,493 |
https://github.com/idorom/Library-Project/blob/master/src/Utils/MyFileLogWriter.java | Github Open Source | Open Source | MIT | null | Library-Project | idorom | Java | Code | 198 | 440 | package Utils;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
* A utility class for logging output text to a file
* note: final means that we can't extends this class
* @author Java Course Team 2019 - Ron Ellenbogen
* @author University Of Haifa - Israel
*/
public final class My... | 34,643 |
https://github.com/fomich-artem/poi/blob/master/src/scratchpad/src/org/apache/poi/hdgf/chunks/ChunkHeader.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | poi | fomich-artem | Java | Code | 514 | 1,272 | /* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to Y... | 3,502 |
https://github.com/henryyp/codevember2016/blob/master/client/common/wrapper/RootWrapper/RootWrapper.js | Github Open Source | Open Source | Apache-2.0 | null | codevember2016 | henryyp | JavaScript | Code | 36 | 118 | import React from 'react'
import './RootWrapper.scss'
class RootWrapper extends React.Component {
constructor() {
super()
}
componentWillMount() {
}
render() {
return(
<div className="rootwrapper__mediahelper">
<div className="rootwrapper__container">
{ this.props.childr... | 41,432 |
https://github.com/vangiaurecca/Course_CSharp_Basic/blob/master/HocListView/HocListView/SanPham.cs | Github Open Source | Open Source | MIT | null | Course_CSharp_Basic | vangiaurecca | C# | Code | 47 | 108 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HocListView
{
public class SanPham
{
public string Ma { get; set; }
public string Ten { get; set; }
public int Gia { get; set; }
public DanhMuc Nhom { g... | 29,412 |
https://github.com/vkorotenko/ChatApplication/blob/master/ChatApplication/rcv2/src/components/NavHeader.vue | Github Open Source | Open Source | MIT | 2,022 | ChatApplication | vkorotenko | Vue | Code | 309 | 1,178 | <template>
<div class="nav-header">
<div class="row btn_bar">
<div class="col-md-2 mp-0 w36">
<ul class="ul_btn_bar">
<li v-if="showBackButton" @click="backToTopics">
<img src="/img/rc/back_ico.png" class="back_span back_btn">
... | 26,798 |
https://github.com/BEP-store/bepstore-ui-user/blob/master/app/styles/profile.sass | Github Open Source | Open Source | MIT | null | bepstore-ui-user | BEP-store | Sass | Code | 47 | 185 | .big_picture
border-radius: 50%
height: 400px
width: 400px
margin-top: -150px
overflow: hidden
margin-left: 25%
margin-bottom: 20px
-webkit-box-shadow: 10px 10px 22px 12px rgba(0,0,0,0.75)
-moz-box-shadow: 10px 10px 22px 12px rgba(0,0,0,0.75)
box-shadow: 10px 10px 22px 12px rgba(0,0,0,0.75)
.name_pic
font-s... | 13,575 |
https://github.com/SapphireSuite/Engine/blob/master/Tests/UnitTests/Core/Debug/ToStringTests.cpp | Github Open Source | Open Source | MIT | 2,022 | Engine | SapphireSuite | C++ | Code | 287 | 1,200 | // Copyright (c) 2021 Sapphire's Suite. All Rights Reserved.
#include <UnitTestHelper>
#include <SA/Core/Debug/ToString.hpp>
using namespace Sa;
#if SA_LOGGING
namespace Sa::ToString_UT
{
enum class TestEnum
{
V1 = 1,
V2 = 2
};
struct A
{
int i = 0;
std::string ToString() const { return std::to_strin... | 18,556 |
https://github.com/tdurieux/smartbugs-wild/blob/master/contracts/0xd99aa77aa54f352f92b284c8a86521c93c067dc6.sol | Github Open Source | Open Source | Apache-2.0 | 2,022 | smartbugs-wild | tdurieux | Solidity | Code | 570 | 1,443 | pragma solidity ^0.4.19;
contract Ownable {
address public owner;
/**
* The address whcih deploys this contrcat is automatically assgined ownership.
* */
function Ownable() public {
owner = msg.sender;
}
/**
* Functions with this modifier can only be executed by the ow... | 13,343 |
https://github.com/KristiansKaneps/ToolModifiers/blob/master/src/main/java/k4neps/toolmodifiers/PermCheck.java | Github Open Source | Open Source | MIT | null | ToolModifiers | KristiansKaneps | Java | Code | 146 | 573 | package k4neps.toolmodifiers;
import org.bukkit.entity.Player;
/**
* Created by Kristians on 7/28/2017.
*
* @author Kristians
*/
public final class PermCheck
{
private PermCheck() {}
public static boolean hasPerm(Player p, String perm)
{
return p.hasPermission(perm);
}
public static boolean canUseHammer(... | 25,563 |
https://github.com/eFaps/eFaps-Kernel-Install/blob/master/src/main/efaps/ESJP/org/efaps/esjp/common/properties/PropertiesUtil_Base.java | Github Open Source | Open Source | Apache-2.0 | null | eFaps-Kernel-Install | eFaps | Java | Code | 930 | 2,254 | /*
* Copyright 2003 - 2016 The eFaps Team
*
* 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 ... | 46,768 |
https://github.com/berndpfrommer/image_denoising/blob/master/include/image_denoising/nl_means_filter.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | image_denoising | berndpfrommer | C | Code | 189 | 534 | // -*-c++-*--------------------------------------------------------------------
// Copyright 2021 Bernd Pfrommer <bernd.pfrommer@gmail.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... | 6,607 |
https://github.com/ScalablyTyped/Distribution/blob/master/w/wix-style-react/src/main/scala/typings/wixStyleReact/distTypesTestUtilsUtilsUnidriverReactBaseMod.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 61 | 282 | package typings.wixStyleReact
import typings.wixStyleReact.anon.BeforeInput
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object distTypesTestUtilsUtilsUnidriverReactBaseMod {
object ReactBase {
... | 29,867 |
https://github.com/tgraupmann/SwaggerJavaExportFixes/blob/master/src/main/java/io/swagger/client/model/TournamentQualifierTieBreakerModel.java | Github Open Source | Open Source | Apache-2.0 | null | SwaggerJavaExportFixes | tgraupmann | Java | Code | 471 | 1,623 | /*
* Polling API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class man... | 5,269 |
https://github.com/wuyinlei/CocosDemo/blob/master/assets/cases/02_ui/03_button/ButtonInScroll/ButtonControl.js | Github Open Source | Open Source | Apache-2.0 | null | CocosDemo | wuyinlei | JavaScript | Code | 97 | 262 | cc.Class({
extends: cc.Component,
properties: {
// foo: {
// default: null, // The default value will be used only when the component attaching
// to a node for the first time
// url: cc.Texture2D, // optional, default is typeof default
... | 46,341 |
https://github.com/inqwell/inq/blob/master/src/main/java/com/inqwell/any/channel/WriteClosedChannelException.java | Github Open Source | Open Source | BSD-3-Clause | 2,016 | inq | inqwell | Java | Code | 112 | 265 | /**
* Copyright (C) 2011 Inqwell Ltd
*
* You may distribute under the terms of the Artistic License, as specified in
* the README file.
*/
/*
* $Archive: /src/com/inqwell/any/channel/WriteClosedChannelException.java $
* $Author: sanderst $
* $Revision: 1.2 $
* $Date: 2011-04-07 22:18:22 $
*/
package com.inq... | 2,445 |
https://github.com/truthiswill/intellij-community/blob/master/plugins/maven/src/main/java/org/jetbrains/idea/maven/statistics/MavenActionsUsagesCollector.kt | Github Open Source | Open Source | Apache-2.0 | null | intellij-community | truthiswill | Kotlin | Code | 157 | 637 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.maven.statistics
import com.intellij.internal.statistic.service.fus.collectors.FUSProjectUsageTrigger
import com.intellij.internal.statistic.service.fu... | 15,322 |
https://github.com/umairakhtar/CareYou/blob/master/src/CompanyPayment.Designer.cs | Github Open Source | Open Source | MIT | null | CareYou | umairakhtar | C# | Code | 2,716 | 13,609 | namespace CareYou
{
partial class CompanyPayment
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <p... | 1,293 |
https://github.com/catberry/catberry-oauth2-client/blob/master/test/mocks/UHRMock.js | Github Open Source | Open Source | MIT | 2,022 | catberry-oauth2-client | catberry | JavaScript | Code | 69 | 231 | 'use strict';
class UHRMock {
constructor(locator) {
const config = locator.resolve('config');
this._handler = config.handler;
}
get(url, options) {
const parameters = Object.create(options);
parameters.method = 'GET';
parameters.url = url;
return this.request(parameters);
}
post(url, options) {
c... | 47,095 |
https://github.com/DeirdreHegarty/Java_Fun/blob/master/NestedLoops/NestedWhileLoop.java | Github Open Source | Open Source | MIT | null | Java_Fun | DeirdreHegarty | Java | Code | 35 | 103 | public class NestedWhileLoop{
public static void main (String [] args){
int x = 0;
int y = 1;
while(y <= 5){
x = y;
while(x > 0){
System.out.print("#");
x--;
}
y++;
System.out.println();
}
}
} | 48,720 |
https://github.com/skebix/algorithms/blob/master/merge_sort.py | Github Open Source | Open Source | MIT | null | algorithms | skebix | Python | Code | 110 | 298 | import random, time
def merge_sort(a):
"""
Sort an array recursively by sorting its halves
"""
n = len(a)
if n == 0 or n == 1:
return a
middle = n // 2
left = merge_sort(a[:middle])
right = merge_sort(a[middle:])
return merge(left, right)
def merge(left, right):
"""... | 32,696 |
https://github.com/zsiothsu/AVSI/blob/master/inc/flags.h | Github Open Source | Open Source | MIT | 2,020 | AVSI | zsiothsu | C | Code | 29 | 117 | /*
* @Author: your name
* @Date: 1970-01-01 08:00:00
* @LastEditTime: 2020-06-02 16:52:05
* @Description: file content
*/
#ifndef ___FLAGS_H___
#define ___FLAGS_H___
#include <gflags/gflags.h>
#include <gflags/gflags_declare.h>
DECLARE_bool(scope);
DECLARE_bool(callStack);
#endif | 28,461 |
https://github.com/mayuryeole/test-site/blob/master/easypost-php-master/examples/addresses.php | Github Open Source | Open Source | MIT | 2,018 | test-site | mayuryeole | PHP | Code | 281 | 1,153 | <?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once("../lib/easypost.php");
\EasyPost\EasyPost::setApiKey('aLmLoePe4FYBwC9WfoAmFg');
try {
// create address
$address_params = array("name" => "Sawyer Bateman",
"street1" => "388 Townasend St",
"street2" => "Apt 20",
... | 26,269 |
https://github.com/arjanfrans/pokewhat/blob/master/src/engine/three-bmfont-text/index.js | Github Open Source | Open Source | MIT | 2,021 | pokewhat | arjanfrans | JavaScript | Code | 363 | 996 | import { BufferGeometry, Box3, BufferAttribute, Sphere } from 'three';
import * as createIndices from 'quad-indices';
import * as vertices from './lib/vertices'
import * as utils from './lib/utils'
import {createLayout} from "./lib/layout-bmfont-text";
export class TextGeometry extends BufferGeometry {
constructor(... | 40,425 |
https://github.com/JLLeitschuh/myrrix-recommender/blob/master/web-common/src/net/myrrix/web/AllItemSimilarities.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | myrrix-recommender | JLLeitschuh | Java | Code | 470 | 1,360 | /*
* Copyright Myrrix 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 law or agreed to in wr... | 5,743 |
https://github.com/herzcthu/Laravel-HS/blob/master/database/migrations/2015_09_24_000015_create_projects_participants_table.php | Github Open Source | Open Source | MIT | 2,016 | Laravel-HS | herzcthu | PHP | Code | 83 | 402 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class CreateProjectsParticipantsTable
*
* Generated by ViKon\DbExporter
*/
class CreateProjectsParticipantsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public ... | 40,074 |
https://github.com/messa/bloom/blob/master/tests/test_main.py | Github Open Source | Open Source | MIT | 2,021 | bloom | messa | Python | Code | 282 | 1,260 | import gzip
import lzma
from pytest import fixture
import zlib
from bloom.main import construct_match_array, array_is_subset, construct_file_arrays, index_file, match_file, open_database
def test_construct_match_array():
array = construct_match_array(16, ['hello', 'world'], sample_sizes=[4])
assert isinstanc... | 44,272 |
https://github.com/getclasslabs/user/blob/master/internal/domains/user.go | Github Open Source | Open Source | MIT | null | user | getclasslabs | Go | Code | 81 | 297 | package domains
import (
"github.com/getclasslabs/user/internal/repository"
)
const (
StudentRegister = 0
TeacherRegister = 1
)
type User struct {
Domain
FirstName string
LastName string
BirthDate string
Gender int
Register int
Nickname string
Twitter string
Facebook string
Inst... | 30,080 |
https://github.com/ManGysT/nmoneys/blob/master/src/NMoneys.Serialization.Tests/MonetaryQuantityTester.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | nmoneys | ManGysT | C# | Code | 452 | 2,330 | using NMoneys.Extensions;
using NMoneys.Serialization.Entity_Framework;
using NUnit.Framework;
using Testing.Commons;
using Testing.Commons.NUnit.Constraints;
namespace NMoneys.Serialization.Tests
{
[TestFixture]
public class MonetaryQuantityTester
{
#region construction
[Test]
public void Ctor_InstanceWith... | 38,036 |
https://github.com/cathode/gear/blob/master/Gear.Client/SceneGraph/VisibilityGroup.cs | Github Open Source | Open Source | MIT | 2,015 | gear | cathode | C# | Code | 164 | 422 | /******************************************************************************
* Gear: An open-world sandbox game for creative people. *
* http://github.com/cathode/gear/ *
* Copyright © 2009-2017 William 'cathode' Shelley. All Rights Reserved. *... | 15,271 |
https://github.com/proudust/X4_ComplexCalculator/blob/master/X4_ComplexCalculator/DB/X4DB/Builder/ModuleBuilder.cs | Github Open Source | Open Source | Apache-2.0 | 2,022 | X4_ComplexCalculator | proudust | C# | Code | 203 | 943 | using Dapper;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using X4_ComplexCalculator.DB.X4DB.Entity;
using X4_ComplexCalculator.DB.X4DB.Interfaces;
using X4_ComplexCalculator.DB.X4DB.Manager;
namespace X4_ComplexCalculator.DB.X4DB.Builder
{
/// <summary>
/// <see cref... | 31,266 |
https://github.com/wollimchacha/chibi/blob/master/exp.py | Github Open Source | Open Source | MIT | 2,019 | chibi | wollimchacha | Python | Code | 282 | 935 |
class Val(object):
__slots__=['value']
def __init__(self, v = 0):
self.value = v
def __repr__(self):
return f'Val({self.value})'
def eval(self):
return self.value
v = Val(1)
print(v)
assert v.eval() == 1
class Add(object):
__slots__ = ['left', 'right']
def __init__(... | 47,175 |
https://github.com/microsoft/iclr2019-learning-to-represent-edits/blob/master/scripts/prof.sh | Github Open Source | Open Source | MIT | 2,021 | iclr2019-learning-to-represent-edits | microsoft | Shell | Code | 47 | 281 | #!/bin/bash
work_dir=exp_runs/align_rep_repo_change512_graph_prof
mkdir -p ${work_dir}
CUDA_VISIBLE_DEVICES=2 python -u -m diff_representation.exp train \
--cuda \
--mode tree \
--prune_grammar \
--train_file=data/commit_files.from_repo.processed.070523.jsonl.dev \
--dev_file=data/commit_files.from_repo.pro... | 24,316 |
https://github.com/iisg/redo/blob/master/src/AdminPanel/src/common/validation/rules/constraints/no-configuration-constraint-backend-validator.ts | Github Open Source | Open Source | MIT | 2,019 | redo | iisg | TypeScript | Code | 102 | 379 | import {SingleValueConstraintValidator} from "./constraint-validator";
import {autoinject} from "aurelia-dependency-injection";
import {BackendValidation} from "../../backend-validation";
import {I18N} from "aurelia-i18n";
import {Metadata} from "../../../../resources-config/metadata/metadata";
import {Resource} from "... | 9,759 |
https://github.com/darrenw2112/eqMac/blob/master/native/app/Source/Audio/Volume/VolumeState.swift | Github Open Source | Open Source | Apache-2.0 | 2,020 | eqMac | darrenw2112 | Swift | Code | 121 | 292 | //
// VolumeState.swift
// eqMac
//
// Created by Roman Kisil on 29/06/2018.
// Copyright © 2018 Roman Kisil. All rights reserved.
//
import Foundation
import ReSwift
import SwiftyUserDefaults
struct VolumeState: State {
var gain: Double = 0.5
var muted: Bool = false
var balance: Double = 0
var transition... | 40,098 |
https://github.com/Otarossoni/topicos1/blob/master/dev/app-intro2/src/pages/solicitante/SolicitanteCon.js | Github Open Source | Open Source | MIT | null | topicos1 | Otarossoni | JavaScript | Code | 333 | 1,238 | import React, { useState, useEffect, useRef } from "react";
import { Toast } from "primereact/toast";
import { ConfirmDialog, confirmDialog } from "primereact/confirmdialog";
import SolicitanteList from "./SolicitanteList";
import SolicitanteForm from "./SolicitanteForm";
import SolicitanteSrv from "./SolicitanteSrv";
... | 24,645 |
https://github.com/RedHatGov/workshop-terminal/blob/master/hack/build.sh | Github Open Source | Open Source | Apache-2.0 | 2,021 | workshop-terminal | RedHatGov | Shell | Code | 265 | 830 | #! /usr/bin/env bash
# change these
CONTAINER_IMAGE=workshop-terminal
DOCKERFILE_DIR=terminal
function print_usage() {
echo "usage: $0 [-l (local|quay)] [-p QUAY_PROJECT] [-t CONTAINER_TAG] [-- BUILD_ARGS]"
}
# parse args
while [ $# -gt 0 ]; do
case "$1" in
-l|--location=*)
if [ "$1" = '-l' ]; then
... | 1,471 |
https://github.com/kgullikson88/GSSP_Analyzer/blob/master/gsspy/fitting.py | Github Open Source | Open Source | MIT | null | GSSP_Analyzer | kgullikson88 | Python | Code | 1,579 | 6,419 | from __future__ import print_function, division, absolute_import
import numpy as np
import matplotlib.pyplot as plt
import os
import sys
import subprocess
from astropy.io import fits
from astropy import time
import DataStructures
from ._utils import combine_orders, read_grid_points, ensure_dir
from .analyzer import ... | 3,226 |
https://github.com/SnoBoarder/CS651-Websites/blob/master/Lecture10/bugui/scripts/controllers/basicCtrl.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | CS651-Websites | SnoBoarder | JavaScript | Code | 1,477 | 4,152 | 'use strict';
var app = angular.module('app');
// basic controller: show basic grid functionality
app.controller('basicCtrl', function appCtrl($scope, $compile, dataSvc) {
// data context
$scope.ctx = {
flex: null,
flexInline: null,
itemCount: 500,
data: dataSvc.getData(500),... | 8,170 |
https://github.com/vbillet/Torque3D/blob/master/Templates/Full/game/shaders/common/hlslStructs.h | Github Open Source | Open Source | MIT | 2,022 | Torque3D | vbillet | C | Code | 489 | 967 | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 20,379 |
https://github.com/abdul-qadirdeveloper/fluentpos/blob/master/src/server/Modules/People/Modules.People.Core/Features/Carts/Events/CartCreatedEvent.cs | Github Open Source | Open Source | MIT | 2,021 | fluentpos | abdul-qadirdeveloper | C# | Code | 53 | 157 | using System;
using FluentPOS.Modules.People.Core.Entities;
using FluentPOS.Shared.Core.Domain;
namespace FluentPOS.Modules.People.Core.Features.Carts.Events
{
public class CartCreatedEvent : Event
{
public Guid Id { get; }
public Guid CustomerId { get; }
public new DateTime Timestam... | 16,953 |
https://github.com/ejoebstl/sGrid/blob/master/sGridServer/Controllers/MasterPageController.cs | Github Open Source | Open Source | MIT | 2,015 | sGrid | ejoebstl | C# | Code | 1,105 | 3,228 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using sGridServer.Models;
using sGridServer.Code.DataAccessLayer.Models;
using sGridServer.Code.Security;
using sGridServer.Code.Achievements;
using sGridServer.Code.CoinExchange;
using sGridServer.Code.Utilities... | 13,662 |
https://github.com/elix22/urho/blob/master/Bindings/Portable/Runtime/ReferenceHolder.cs | Github Open Source | Open Source | MIT | 2,020 | urho | elix22 | C# | Code | 142 | 418 | using System;
namespace Urho
{
internal class ReferenceHolder<T> where T : class
{
public ReferenceHolder(T obj, bool weak)
{
if (weak)
WeakRef = new WeakReference<T>(obj);
else
StrongRef = obj;
}
public T StrongRef { get; private set; }
public WeakReference<T> WeakRef { get; private set; }
... | 43,258 |
https://github.com/DataCompressionPrimitives/DCP-Java/blob/master/src/main/java/org/dcp/io/impl/ChannelBitOutputStream.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | DCP-Java | DataCompressionPrimitives | Java | Code | 150 | 435 | /**
* Copyright 2019 DataCompressionPrimitives.
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package org.dcp.io.impl;
import org.dcp.entities.bit.Bit;
import org.dcp.io.BitOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.WritableByteChannel;
... | 37,379 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.