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/CleanData/data-network/blob/master/app/CleanData/views.py | Github Open Source | Open Source | BSD-2-Clause | 2,014 | data-network | CleanData | Python | Code | 23 | 89 | from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.template import RequestContext
from django.http import HttpResponse
def frontpage(request):
#return HttpResponse("this is a test")
return render_to_response('front/index.html',{},context_instance=RequestContext(request))
| 37,586 |
https://github.com/osehra-ocp/c2s-sof-ui/blob/master/app/components/PurposeOfUse/AddPurposeOfUse.js | Github Open Source | Open Source | Apache-2.0 | null | c2s-sof-ui | osehra-ocp | JavaScript | Code | 199 | 802 | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { FormControlLabel, FormGroup } from 'material-ui-next/Form';
import Checkbox from 'material-ui-next/Checkbox';
import { Cell, Grid } from 'styled-css-grid';
import uniqueId from 'lodash/uniqueId';
impor... | 17,173 |
https://github.com/xiongchiamiov/IMathAS/blob/master/course/uploadmultgrades.php | Github Open Source | Open Source | FTL | null | IMathAS | xiongchiamiov | PHP | Code | 1,185 | 4,648 | <?php
//IMathAS: Upload multiple grades from .csv file
//(c) 2009 David Lippman
/*** master php includes *******/
require("../validate.php");
//set some page specific variables and counters
$overwriteBody = 0;
$body = "";
$pagetitle = "Upload Multiple Grades";
//CHECK PERMISSIONS AND SET FLAGS
if (!(isset($tea... | 31,106 |
https://github.com/Fs02/alpakka/blob/master/mqtt-streaming/src/main/scala/akka/stream/alpakka/mqtt/streaming/scaladsl/Mqtt.scala | Github Open Source | Open Source | Apache-2.0 | 2,018 | alpakka | Fs02 | Scala | Code | 187 | 484 | /*
* Copyright (C) 2016-2018 Lightbend Inc. <http://www.lightbend.com>
*/
package akka.stream.alpakka.mqtt.streaming
package scaladsl
import akka.NotUsed
import akka.stream.scaladsl.BidiFlow
import akka.util.ByteString
object Mqtt {
/**
* Create a bidirectional flow that maintains client session state with a... | 49,266 |
https://github.com/fossnsbm/Privacy-Dashboad/blob/master/src/Routes.js | Github Open Source | Open Source | 2,021 | Privacy-Dashboad | fossnsbm | JavaScript | Code | 115 | 377 | import React from 'react';
import { Route, BrowserRouter as Router, Switch } from "react-router-dom";
import LandingPage from './Components/Pages/LandingPage/LandingPage';
import MobileNavigation from './Components/Elements/MobileNavigation';
export default function Routes() {
const routes = [
{
... | 27,440 | |
https://github.com/btc-ag/redg/blob/master/redg-runtime/src/main/java/com/btc/redg/runtime/visualization/RedGVisualization.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | redg | btc-ag | Java | Code | 185 | 425 | /*
* Copyright 2017 BTC Business Technology AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 14,424 |
https://github.com/pikju/api-umbrella/blob/master/src/api-umbrella/utils/mkdir_p.lua | Github Open Source | Open Source | MIT | 2,023 | api-umbrella | pikju | Lua | Code | 25 | 80 | local shell_blocking_capture_combined = require("shell-games").capture_combined
return function(path)
local _, err = shell_blocking_capture_combined({ "mkdir", "-p", path })
if err then
return false, err
end
return true
end
| 37,799 |
https://github.com/karim/adila/blob/master/database/src/main/java/adila/db/sh02e_sh2d02e.java | Github Open Source | Open Source | MIT | 2,016 | adila | karim | Java | Code | 38 | 94 | // This file is automatically generated.
package adila.db;
/*
* Sharp AQUOS PHONE ZETA SH-02E
*
* DEVICE: SH02E
* MODEL: SH-02E
*/
final class sh02e_sh2d02e {
public static final String DATA = "Sharp|AQUOS PHONE ZETA SH-02E|";
}
| 35,634 |
https://github.com/charnelclamosa/REST-API/blob/master/database/seeds/CRUDTableSeeder.php | Github Open Source | Open Source | MIT | 2,020 | REST-API | charnelclamosa | PHP | Code | 49 | 148 | <?php
use App\crud;
use Illuminate\Database\Seeder;
class CRUDTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// Truncate
crud::truncate();
// Create
crud::create([
'name' => 'Charnel S. ... | 18,616 |
https://github.com/geelen/traits/blob/master/react-native/typography.js | Github Open Source | Open Source | MIT | 2,020 | traits | geelen | JavaScript | Code | 423 | 1,675 | import { chain, containsPhrase } from './helpers';
import { Platform } from 'react-native';
// typography props
const markProBold = 'MarkPro-Bold';
export const systemFont = 'System';
const bodyColor = Platform.select({
ios: '',
android: ''
});
export default {
bold: `font-family: ${markProBold};`,
regular: ... | 45,718 |
https://github.com/bidtime/idbutils/blob/master/idbutils/src/main/java/org/bidtime/dbutils/jdbc/rs/handle/MaxIdHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | idbutils | bidtime | Java | Code | 89 | 416 | package org.bidtime.dbutils.jdbc.rs.handle;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.bidtime.dbutils.jdbc.rs.handle.ext.ResultSetExHandler;
/**
* @author jss
*
* 提供对从ResultSet进行预处理的功能,继承自dbutils的ResultSetHandler类
*
*/
@SuppressWarnings("serial")
p... | 18,664 |
https://github.com/saas786/laraveljetstreamblog/blob/master/routes/web.php | Github Open Source | Open Source | Apache-2.0 | 2,021 | laraveljetstreamblog | saas786 | PHP | Code | 114 | 473 | <?php
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Route;
use Illuminate\Http\Request;
use Inertia\Inertia;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where... | 10,175 |
https://github.com/ottowan/appro/blob/master/application/logs/log-2018-06-06.php | Github Open Source | Open Source | MIT | null | appro | ottowan | PHP | Code | 20,000 | 50,897 | <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> DEBUG - 2018-06-06 02:51:54 --> UTF-8 Support Enabled DEBUG - 2018-06-06 02:51:54 --> No URI present. Default controller set. DEBUG - 2018-06-06 02:51:54 --> Global POST, GET and COOKIE data sanitized DEBUG - 2018-06-06 02:51:54 --> Encryption: Au... | 49,797 |
https://github.com/project-smartlog/smartlog-client/blob/master/src/main/java/oasis/names/specification/ubl/schema/xsd/commonaggregatecomponents_2/QualificationResolutionType.java | Github Open Source | Open Source | Apache-2.0 | null | smartlog-client | project-smartlog | Java | Code | 1,013 | 5,058 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.11.... | 30,815 |
https://github.com/rusty1s/hyper-happy-hacking/blob/master/view/.gitignore | Github Open Source | Open Source | MIT | 2,017 | hyper-happy-hacking | rusty1s | Ignore List | Code | 5 | 26 | /node_modules
/coverage
/build
.DS_Store
npm-debug.log*
| 6,619 |
https://github.com/cezarykluczynski/stapi/blob/master/etl/src/test/groovy/com/cezarykluczynski/stapi/etl/technology/creation/configuration/TechnologyCreationConfigurationTest.groovy | Github Open Source | Open Source | MIT | 2,023 | stapi | cezarykluczynski | Groovy | Code | 135 | 695 | package com.cezarykluczynski.stapi.etl.technology.creation.configuration
import com.cezarykluczynski.stapi.etl.common.configuration.AbstractCreationConfigurationTest
import com.cezarykluczynski.stapi.etl.configuration.job.service.StepCompletenessDecider
import com.cezarykluczynski.stapi.etl.technology.creation.process... | 26,100 |
https://github.com/apache/etch/blob/master/binding-c/runtime/c/src/main/common/etch_thread.c | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,021 | etch | apache | C | Code | 3,023 | 9,047 | /* $Id$
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "Lice... | 9,827 |
https://github.com/LSFLK/copper/blob/master/copper-server/service_images/groupoffice-6.3.66/groupoffice-6.3.66-php-70/modules/groups/UsersGrid.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | copper | LSFLK | JavaScript | Code | 172 | 718 | /**
* Copyright Intermesh
*
* This file is part of Group-Office. You should have received a copy of the
* Group-Office license along with Group-Office. See the file /LICENSE.TXT
*
* If you have questions write an e-mail to info@intermesh.nl
*
* @version $Id: UsersGrid.js 22112 2018-01-12 07:59:41Z mschering... | 211 |
https://github.com/centrifuge/go-substrate-rpc-client/blob/master/registry/retriever/extrinsic_retriever_live_test.go | Github Open Source | Open Source | Apache-2.0 | 2,023 | go-substrate-rpc-client | centrifuge | Go | Code | 486 | 2,126 | //go:build live
package retriever
import (
"errors"
"log"
"os"
"strconv"
"sync"
"testing"
"time"
gsrpc "github.com/centrifuge/go-substrate-rpc-client/v4"
"github.com/centrifuge/go-substrate-rpc-client/v4/registry"
"github.com/centrifuge/go-substrate-rpc-client/v4/registry/exec"
"github.com/centrifuge/go-s... | 25,513 |
https://github.com/vnigade/pytorch-YOLOv4/blob/master/convert_darknet2pytorch.py | Github Open Source | Open Source | Apache-2.0 | null | pytorch-YOLOv4 | vnigade | Python | Code | 150 | 630 | import argparse
from tool.darknet2pytorch import Darknet
import torch
import os
FRAME_SIZES = [64, 96, 128, 160, 192, 224, 256,
288, 320, 352, 384, 416, 448, 480,
512, 544, 576, 608, 640]
def parse_opts():
parser = argparse.ArgumentParser(description='Convert darknet model to pyto... | 32,608 |
https://github.com/morristech/HttpUtilForAndroid/blob/master/app/src/main/java/com/hss01248/netdemo/SplashActy.java | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,018 | HttpUtilForAndroid | morristech | Java | Code | 76 | 391 | package com.hss01248.netdemo;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import com.hss01248.netdemo.akulaku.AkulakuActy;
import butterknife.BindView;
import butterknife.Butt... | 19,262 |
https://github.com/bhamail/liftwizard/blob/master/liftwizard-reladomo/liftwizard-reladomo-operation-grammar/src/main/java/io/liftwizard/model/reladomo/operation/listener/ReladomoOperationThrowingListener.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | liftwizard | bhamail | Java | Code | 2,042 | 8,723 | /*
* Copyright 2020 Craig Motlin
*
* 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... | 46,247 |
https://github.com/pgq/pgq/blob/master/sql/trigger_backup.sql | Github Open Source | Open Source | ISC | 2,022 | pgq | pgq | PLpgSQL | Code | 163 | 443 |
\set VERBOSITY 'terse'
set client_min_messages = 'warning';
set datestyle = 'iso, ymd';
create or replace function pgq.insert_event(queue_name text, ev_type text, ev_data text, ev_extra1 text, ev_extra2 text, ev_extra3 text, ev_extra4 text)
returns bigint as $$
begin
raise warning 'insert_event(q=[%], t=[%], d=[%... | 40,654 |
https://github.com/yoomoney/yoomoney-sdk-java/blob/master/src/main/java/com/yoo/money/api/time/Period.java | Github Open Source | Open Source | MIT | 2,021 | yoomoney-sdk-java | yoomoney | Java | Code | 560 | 1,112 | /*
* The MIT License (MIT)
*
* Copyright (c) 2020 NBCO YooMoney 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 restriction, including without limitation the rights
* to... | 12,186 |
https://github.com/ag-sbogd/mono-changelog/blob/master/core/core/src/features/statistics/components/StatisticsGraphItem/StatisticsGraphItem.test.tsx | Github Open Source | Open Source | MIT | null | mono-changelog | ag-sbogd | TypeScript | Code | 81 | 226 | import React from 'react';
import { mount } from 'enzyme';
import { StatisticsGraphItem, IOwnProps } from './StatisticsGraphItem';
describe( '<StatisticsGraphItem />', () => {
const initialProps: IOwnProps = {
bet: {
betType: '3rdColumn',
percentage: 50.02,
count: 5,
},
height:... | 10,927 |
https://github.com/marvinquiet/RefConstruction_supervisedCelltyping/blob/master/run_MARS_pipeline.slurm | Github Open Source | Open Source | MIT | 2,022 | RefConstruction_supervisedCelltyping | marvinquiet | Shell | Code | 411 | 2,218 | #!/bin/bash
#SBATCH --job-name=MARS
#SBATCH --output=celltyping_MARS.out
#SBATCH --gres=gpu:1
#SBATCH --cpus-per-task=32
source ~/.bashrc
PROJECT_PATH=""
ENV_PATH=""
conda activate $ENV_PATH/mars ## mars environment
cd $PROJECT_PATH
## 1. PBMC_batch1_indS1_to_indS5
task="PBMC_batch1_ind"
train="1154"
test="1085"
... | 28,518 |
https://github.com/slackcpy/api-gateway/blob/master/src/app.module.ts | Github Open Source | Open Source | MIT | null | api-gateway | slackcpy | TypeScript | Code | 37 | 114 | import { Module } from '@nestjs/common';
import { GraphQLGatewayModule } from '@nestjs/graphql';
import { ConfigModule } from '@nestjs/config';
import { AsyncGatewayOptionsFactory } from './gatewayOptions.factory';
@Module({
imports: [
ConfigModule.forRoot(),
GraphQLGatewayModule.forRootAsync({
useClass:... | 15,304 |
https://github.com/sonnat/sonnat-ui/blob/master/packages/sonnat-ui/src/utils/getVar.js | Github Open Source | Open Source | MIT | 2,022 | sonnat-ui | sonnat | JavaScript | Code | 29 | 60 | export default function getVar(variable, fallback, condition) {
const baseCondition = variable == null;
const returnStatement = baseCondition ? fallback : variable;
if (condition) return returnStatement;
else return returnStatement;
}
| 33,427 |
https://github.com/jackthgu/K-AR_HYU_Deform_Simulation/blob/master/src/taesooLib/BaseLib/utility/GArray.cpp | Github Open Source | Open Source | MIT | 2,021 | K-AR_HYU_Deform_Simulation | jackthgu | C++ | Code | 94 | 436 | // GArray.cpp: implementation of the GArray class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
//#include "stdtemplate.h"
#include "GArray.h"
#include <list>
bool GElt::operator==(const GElt& other) const
{
if(m_eType!=other.m_eType) return false;
switch(m_eType)
... | 4,769 |
https://github.com/SpenQ/rabe-keyserver/blob/master/migrations/2018-06-18-173122_init/up.sql | Github Open Source | Open Source | MIT | 2,019 | rabe-keyserver | SpenQ | SQL | Code | 68 | 168 | -- Your SQL goes here
create table sessions (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
random_session_id TEXT,
scheme TEXT,
key_material TEXT,
attributes TEXT,
is_initialized TINYINT(1)
);
create table users (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
session_id INT NOT NULL,
usernam... | 7,196 |
https://github.com/JasonTheKitten/exobot/blob/master/chat4j/src/main/java/everyos/bot/chat4j/functionality/message/EmbedCreateSpec.java | Github Open Source | Open Source | MIT | 2,022 | exobot | JasonTheKitten | Java | Code | 7 | 29 | package everyos.bot.chat4j.functionality.message;
public interface EmbedCreateSpec {
}
| 38,140 |
https://github.com/willisplummer/newest-york/blob/master/src/templates/author.js | Github Open Source | Open Source | MIT | 2,018 | newest-york | willisplummer | JavaScript | Code | 129 | 374 | import React from 'react';
import Helmet from 'react-helmet';
import { graphql } from 'gatsby';
import Content, { HTMLContent } from '../components/shared/Content';
export const AuthorTemplate = ({ name, bio, contentComponent, helmet }) => {
const PostContent = contentComponent || Content;
return (
<section c... | 5,979 |
https://github.com/phil-dragon/Sudoku/blob/master/Sudoku.Core/Data/GridMap.cs | Github Open Source | Open Source | MIT | 2,020 | Sudoku | phil-dragon | C# | Code | 3,988 | 10,754 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using Sudoku.Constants;
using Sudoku.Data.Collections;
using Sudoku.DocComments;
using Sudoku.Extensions;
using static ... | 33,270 |
https://github.com/mathdeziel/Jotunn/blob/master/JotunnDoc/Docs/ShaderDoc.cs | Github Open Source | Open Source | MIT | 2,022 | Jotunn | mathdeziel | C# | Code | 127 | 472 | using System.Linq;
using System.Text;
using Jotunn.Managers;
using UnityEngine;
namespace JotunnDoc.Docs
{
public class ShaderDoc : Doc
{
public ShaderDoc() : base("prefabs/shader-list.md")
{
On.Player.OnSpawned += DocShaders;
}
private void DocShaders(On.Player.or... | 24,569 |
https://github.com/pbsherwood/schedulr/blob/master/login.php | Github Open Source | Open Source | MIT | 2,021 | schedulr | pbsherwood | PHP | Code | 358 | 1,650 | <?php include_once("header_code.php"); ?>
<?php
if (isset($_POST['login']) && isset($_POST['password']) && $_POST['login'] != '' && $_POST['password'] != '')
{
// Create connection
$conn = new mysqli(constant("global_mysql_server"), constant("global_mysql_user"), constant("global_mysql_password"), constant("globa... | 802 |
https://github.com/jianghfeng/springBoot_DatabaseSeparate/blob/master/web2/src/main/java/com/qiansheng/web2/modules/test/service/impl/StudentServiceImpl.java | Github Open Source | Open Source | MIT | 2,020 | springBoot_DatabaseSeparate | jianghfeng | Java | Code | 66 | 341 | package com.qiansheng.web2.modules.test.service.impl;
import com.qiansheng.web2.modules.test.Entity.Student;
import com.qiansheng.web2.modules.test.mapper.StuMapper;
import com.qiansheng.web2.modules.test.service.StuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowire... | 9,904 |
https://github.com/camplight/hylo-evo/blob/master/src/components/PostCard/PostTitle/PostTitle.scss | Github Open Source | Open Source | Apache-2.0 | 2,022 | hylo-evo | camplight | SCSS | Code | 203 | 719 | .cardPadding {
padding: 0px $space-4x;
}
.constrained.cardPadding {
padding: 0px 0px;
}
.body {
margin-bottom: 36px;
}
.smallMargin {
margin-bottom: 12px;
}
.title {
composes: cardPadding;
margin-bottom: 12px;
}
.constrained.title {
font-size: 14px;
margin-bottom: 0;
white-space: nowrap;
overfl... | 40,083 |
https://github.com/gongchangwangpi/zb-demo/blob/master/Algorithms/src/main/java/com/books/jeektime/beautyalgorithms/ArrayStack.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | zb-demo | gongchangwangpi | Java | Code | 137 | 414 | package com.books.jeektime.beautyalgorithms;
import com.alibaba.fastjson.JSON;
/**
* @author zhangbo
*/
public class ArrayStack {
private Object[] items;
private int count;
private int size;
public ArrayStack(int size) {
if (size < 1) {
throw new IllegalArgumentExceptio... | 26,217 |
https://github.com/lamp13580179149/CarBBS/blob/master/resources/views/admin/users/edit.blade.php | Github Open Source | Open Source | MIT | 2,019 | CarBBS | lamp13580179149 | PHP | Code | 175 | 925 | @extends('admin.layout.index')
@section('content')
<!-- 显示验证错误信息 -->
@if (count($errors) > 0)
<div class="mws-form-message error">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<div class="mw... | 26,713 |
https://github.com/h4ck3rm1k3/federal-election-commission-aggregation-json-2011/blob/master/index/ELECTION/CODE/P2012/2011/20110504/727357.fec_1/73e7324240bd8bf39de2a8973ccc10af69231a4c.js | Github Open Source | Open Source | Unlicense | 2,013 | federal-election-commission-aggregation-json-2011 | h4ck3rm1k3 | JavaScript | Code | 1 | 32 | ../../../../../../../objects/73/e7324240bd8bf39de2a8973ccc10af69231a4c.js | 34,386 |
https://github.com/kibabajw/sylviaandedwards/blob/master/application/views/admin/fragments/recall_order.php | Github Open Source | Open Source | MIT | null | sylviaandedwards | kibabajw | PHP | Code | 303 | 1,304 | <body class="container">
<div id="dialog-confirm" title="Recall order" style="display: none;">
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:2px 12px 20px 0;"></span>
Are you sure you want to recall this order ?
</p>
</div>
<div id="dialog-confirm-delete" title="Delete order" style="display... | 18,223 |
https://github.com/richardlalancette/AfterEffectsExperimentations/blob/master/Examples/Effect/Resizer/Resizer.cpp | Github Open Source | Open Source | MIT | 2,022 | AfterEffectsExperimentations | richardlalancette | C++ | Code | 1,470 | 6,523 | /*******************************************************************/
/* */
/* ADOBE CONFIDENTIAL */
/* _ _ _ _ _ _ _ _ _ _ _ _ _ */
/* ... | 1,734 |
https://github.com/griffinjoshs/HW-11-MySQL/blob/master/server.js | Github Open Source | Open Source | Apache-2.0 | 2,020 | HW-11-MySQL | griffinjoshs | JavaScript | Code | 976 | 2,884 | var mysql = require("mysql");
var inquirer = require("inquirer");
var connection = mysql.createConnection({
host: "localhost",
// Your port; if not 3306
port: 3306,
// Your username
user: "root",
// Your password
password: "password",
database: "employeeTracker"
});
let query;
function runSearch() {
... | 41,915 |
https://github.com/Microndgt/rfdmovies/blob/master/migrations/rfdmovie/versions/20180212095733_init_db.py | Github Open Source | Open Source | MIT | 2,019 | rfdmovies | Microndgt | Python | Code | 104 | 618 | """init db
Revision ID: f1f409fc80b8
Revises:
Create Date: 2018-02-12 09:57:33.656298
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'f1f409fc80b8'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
op.create_table(
'movi... | 31,795 |
https://github.com/fatemezahralotfi/SCM-frontend/blob/master/node_modules/react-cosmos-shared2/dist/FixtureLoader/FixtureCapture/props/useFixtureProps.d.ts | Github Open Source | Open Source | MIT | 2,021 | SCM-frontend | fatemezahralotfi | TypeScript | Code | 21 | 71 | import React from 'react';
import { FixtureDecoratorId, FixtureState } from '../../../fixtureState';
export declare function useFixtureProps(fixture: React.ReactNode, fixtureState: FixtureState, decoratorId: FixtureDecoratorId): React.ReactNode;
| 47,948 |
https://github.com/thervh70/ContextProject_RDD/blob/master/src/octopeer-github/test/content/ElementSelectionBehaviour/ElementSelectionBehaviourFactoryTest.ts | Github Open Source | Open Source | CC-BY-4.0 | 2,016 | ContextProject_RDD | thervh70 | TypeScript | Code | 85 | 317 | /// <reference path="../../../content/ElementSelectionBehaviour/ElementSelectionBehaviourFactory.ts"/>
/**
* Created by Mathias on 2016-05-31.
*/
describe("An ElementSelectionBehaviourFactory", function () {
const esbFactory = new ElementSelectionBehaviourFactory();
const database = new ConsoleLogDatabaseAda... | 40,975 |
https://github.com/strawberry-graphql/strawberry/blob/master/strawberry/types/fields/resolver.py | Github Open Source | Open Source | MIT, LicenseRef-scancode-unknown-license-reference | 2,023 | strawberry | strawberry-graphql | Python | Code | 970 | 3,098 | from __future__ import annotations as _
import inspect
import sys
import warnings
from functools import cached_property
from inspect import isasyncgenfunction, iscoroutinefunction
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
Generic,
List,
Mapping,
NamedTuple,
Optional,
... | 33,513 |
https://github.com/regreceive/echoex/blob/master/src/routes/home/Home.scss | Github Open Source | Open Source | MIT | null | echoex | regreceive | SCSS | Code | 13 | 36 | .root {
}
.container {
margin: 0 auto;
padding: 0;
max-width: 1920px;
}
| 47,087 |
https://github.com/0xCopy/RelaxFactory/blob/master/rxf-guice/src/main/java/rxf/couch/guice/CouchServiceProvider.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | RelaxFactory | 0xCopy | Java | Code | 75 | 266 | package rxf.couch.guice;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.name.Named;
import rxf.couch.CouchService;
import rxf.couch.CouchServiceFactory;
import java.util.concurrent.ExecutionException;
public class CouchServiceProvider<T extends CouchService<?>> implement... | 8,864 |
https://github.com/eruffaldi/depthcapture/blob/master/timingex.hpp | Github Open Source | Open Source | Apache-2.0 | null | depthcapture | eruffaldi | C++ | Code | 378 | 1,024 | /**
* Simple class with statistics for service time and period
*/
#pragma once
#include <iostream>
#include <chrono>
template <class T>
struct UnitName
{
};
template <>
struct UnitName<std::chrono::microseconds>
{
static constexpr const char * name = "us";
};
template <>
struct UnitName<std::chrono::mil... | 5,045 |
https://github.com/wzh18188/NCBack/blob/master/public/theme/ncsd/sass/element/_table.scss | Github Open Source | Open Source | MIT | 2,015 | NCBack | wzh18188 | SCSS | Code | 102 | 408 | .table {
background-color: $white;
margin-top: $line-height;
margin-bottom: $line-height;
width: 100%;
td,
th {
border: 1px solid $black-bg;
line-height: $line-height;
padding: (($cell-height - $line-height) / 2) $grid-gutter (($cell-height - $line-height) / 2 - 1);
vertical-align: top;
&.nowrap {
wh... | 49,523 |
https://github.com/alldatacenter/alldata/blob/master/ai/modelscope/modelscope/utils/chinese_utils.py | Github Open Source | Open Source | Apache-2.0, BSD-3-Clause, MIT | 2,023 | alldata | alldatacenter | Python | Code | 116 | 394 | # Copyright (c) Alibaba, Inc. and its affiliates.
def is_chinese_char(word: str):
chinese_punctuations = {
',', '。', ';', ':'
'!', '?', '《', '》', '‘', '’', '“', '”', '(', ')', '【', '】'
}
return len(word) == 1 \
and ('\u4e00' <= word <= '\u9fa5' or word in chinese_punctuations)
de... | 8,196 |
https://github.com/matrixorigin/matrixcube/blob/master/components/prophet/prophet_handler.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | matrixcube | matrixorigin | Go | Code | 1,304 | 4,406 | // Copyright 2020 MatrixOrigin.
//
// 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 i... | 32,477 |
https://github.com/somjade/scbs_google-bigquery/blob/master/bigquery-job.sh | Github Open Source | Open Source | MIT | 2,022 | scbs_google-bigquery | somjade | Shell | Code | 129 | 377 | #!/usr/bin/env bash
dockerimage="openbridge/ob_google-bigquery"
args=("$@")
function mode() {
if [[ ${args[0]} = "prod" ]]; then MODE="prod" && export MODE=${1}; else export MODE="test"; fi
if [[ -z ${args[1]} ]]; then START=$(date -d "1 day ago" "+%Y-%m-%d"); else START="${args[1]}" && echo "OK: START date pas... | 24,216 |
https://github.com/isopov/kubernetes-client-java/blob/master/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | kubernetes-client-java | isopov | Java | Code | 183 | 1,007 | package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.VisitableBuilder;
import java.lang.Object;
import java.lang.Boolean;
public class V1ResourceFieldSelectorBuilder extends io.kubernetes.client.openapi.models.V1ResourceFieldSelectorFluentImpl<io.kubernetes.client.openapi.models.V1ResourceF... | 19,810 |
https://github.com/ikoblik/Entwined-STM/blob/master/src/test/java/cern/entwined/AllSTMTests.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | Entwined-STM | ikoblik | Java | Code | 141 | 439 | /*
* Entwined STM
*
* (c) Copyright 2013 CERN. This software is distributed under the terms of the Apache License Version 2.0, copied
* verbatim in the file "COPYING". In applying this licence, CERN does not waive the privileges and immunities granted
* to it by virtue of its status as an Intergovernmental Organi... | 10,958 |
https://github.com/rareseanu/Kastel-Planner/blob/master/Frontend/src/app/role-form/role-form.component.ts | Github Open Source | Open Source | MIT | 2,021 | Kastel-Planner | rareseanu | TypeScript | Code | 316 | 1,127 | import { ChangeDetectionStrategy, Component, EventEmitter, forwardRef, OnInit, Output } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms';
import { Subscription } from 'rxjs';
import { RegisterService } from '../shared/register.service';
import ... | 38,622 |
https://github.com/jaredjj3/stringsync/blob/master/api/src/util/identity.ts | Github Open Source | Open Source | MIT | 2,021 | stringsync | jaredjj3 | TypeScript | Code | 9 | 17 | export const identity = <T>(i: T): T => i;
| 27,069 |
https://github.com/primefaces/primevue/blob/master/api-generator/components/menubar.js | Github Open Source | Open Source | MIT | 2,023 | primevue | primefaces | JavaScript | Code | 157 | 414 | const MenubarProps = [
{
name: 'modelValue',
type: 'array',
default: 'null',
description: 'An array of menuitems.'
},
{
name: 'exact',
type: 'boolean',
default: 'true',
description: "Whether to apply 'router-link-active-exact' class if route ex... | 11,967 |
https://github.com/glucaci/CrystalQuartz/blob/master/src/CrystalQuartz.Application.Client/app/offline-mode/offline-mode-view.ts | Github Open Source | Open Source | MIT | 2,022 | CrystalQuartz | glucaci | TypeScript | Code | 39 | 224 | import TEMPLATE from './offline-mode.tmpl.html';
import { OfflineModeViewModel } from "./offline-mode-view-model";
export class OfflineModeView implements js.IView<OfflineModeViewModel> {
template = TEMPLATE;
init(dom: js.IDom, viewModel: OfflineModeViewModel) {
setTimeout(() => dom.root.$.addClass('v... | 50,107 |
https://github.com/januarbr/web-mikasi/blob/master/resources/views/admin/materi/framework/create.blade.php | Github Open Source | Open Source | MIT | null | web-mikasi | januarbr | PHP | Code | 126 | 606 | @extends('layouts.admin')
@section('content')
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Tammbah Materi Matakuliah</h1>
</div>
@if ($errors->any())
... | 30,603 |
https://github.com/MISTikus/ToDoApp/blob/master/ToDoApp/Models/ToDoItem.cs | Github Open Source | Open Source | MIT | 2,021 | ToDoApp | MISTikus | C# | Code | 25 | 62 | using System;
namespace ToDoApp {
public record ToDoItem(
Guid Id,
DateTime Created,
string Name,
string Content,
ToDoState State = ToDoState.Created,
DateTime? Archived = null);
} | 38,834 |
https://github.com/Llelepipede/projet_web_SOLO/blob/master/storage/framework/views/89709529dbce6ef5a7bc0e3fd98d36ad75ace5b8.php | Github Open Source | Open Source | MIT | null | projet_web_SOLO | Llelepipede | PHP | Code | 38 | 223 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php echo $__env->make('header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?p... | 2,615 |
https://github.com/message-blocks/ramco/blob/master/lib/ramco/version.rb | Github Open Source | Open Source | MIT | 2,023 | ramco | message-blocks | Ruby | Code | 6 | 20 | class Ramco
VERSION = "0.2.4"
end
| 4,679 |
https://github.com/Heufneutje/WinWeeRelay/blob/master/WinWeelay.Utils/ChangeTrackingIgnoreAttribute.cs | Github Open Source | Open Source | MIT | null | WinWeeRelay | Heufneutje | C# | Code | 27 | 72 | using System;
namespace WinWeelay.Utils
{
/// <summary>
/// Attribute to exclude a property from change tracking.
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class ChangeTrackingIgnoreAttribute : Attribute
{
}
}
| 38,736 |
https://github.com/GarciaLab/mRNADynamics/blob/master/src/deprecated/FixLineage.m | Github Open Source | Open Source | MIT | 2,021 | mRNADynamics | GarciaLab | MATLAB | Code | 1,277 | 6,361 | function schnitzcells=FixLineage(Prefix, FrameInfo)
% Finds the times of cell division (by using nuclei radius,
% and orphan the nuclei if they survive mitosis)
% Note: This function has many nested functions, which are a bit
% complicated in Matlab.
% TrackNucleiDV(Prefix);
%% Extract all data
%Get the folders, in... | 23,649 |
https://github.com/sun-iot/trickster/blob/master/pkg/backends/prometheus/handler_unsupported_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | trickster | sun-iot | Go | Code | 168 | 365 | /*
* Copyright 2018 The Trickster Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 19,331 |
https://github.com/ghuntley/xamarin-macios/blob/master/src/UIKit/UITextView.cs | Github Open Source | Open Source | BSD-3-Clause | 2,017 | xamarin-macios | ghuntley | C# | Code | 36 | 94 | //
// UITextView.cs: Extensions to UITextView
//
// Authors:
// Geoff Norton
//
// Copyright 2009, Novell, Inc.
//
#if !WATCH
namespace XamCore.UIKit {
public partial class UITextView : IUITextInputTraits {
}
}
#endif // !WATCH
| 29,408 |
https://github.com/lzhlyle/leetcode/blob/master/src/main/java/com/lzhlyle/contest/biweekly/biweekly29/Contest3.java | Github Open Source | Open Source | MIT | 2,020 | leetcode | lzhlyle | Java | Code | 120 | 340 | package com.lzhlyle.contest.biweekly.biweekly29;
public class Contest3 {
// dp
public int longestSubarray(int[] nums) {
int n = nums.length;
if (n == 1) return nums[0];
int[][] dp = new int[n][2]; // 以 i 结尾,0:无零, 1:有零,不包括 0 的全长
if (nums[0] == 1) dp[0][0] = 1;
int max =... | 19,903 |
https://github.com/cmyster/coti/blob/master/functions/get_ntpd_settings.sh | Github Open Source | Open Source | Apache-2.0 | 2,019 | coti | cmyster | Shell | Code | 10 | 37 | get_ntpd_settings ()
{
grep -v "#\|^$" /etc/ntp.conf > ntp.conf
}
| 336 |
https://github.com/jasonprado/coopcycle-app/blob/master/src/components/NavigationAwareMap.js | Github Open Source | Open Source | MIT | null | coopcycle-app | jasonprado | JavaScript | Code | 254 | 886 | import React, { Component } from 'react'
import { StyleSheet, View } from 'react-native'
import MapView from 'react-native-maps'
import { featureCollection, center, point } from '@turf/turf'
import _ from 'lodash'
class NavigationAwareMap extends Component {
constructor(props) {
super(props)
this.state = {... | 12,525 |
https://github.com/monix/monix/blob/master/monix-reactive/shared/src/test/scala/monix/reactive/subjects/ProfunctorSubjectSuite.scala | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | monix | monix | Scala | Code | 733 | 2,064 | /*
* Copyright (c) 2014-2022 Monix Contributors.
* See the project homepage at: https://monix.io
*
* 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... | 9,699 |
https://github.com/pangor/tilebasedwordsearch/blob/master/web/elements/wordherd_new_game.dart | Github Open Source | Open Source | BSD-3-Clause | 2,014 | tilebasedwordsearch | pangor | Dart | Code | 252 | 808 | import 'package:polymer/polymer.dart'; // XXX DO NOT USE SHOW HERE
import 'dart:async' show Future;
import 'dart:html' show Element, Event, HttpRequest, Node, document, window;
import 'dart:convert' show JSON;
import 'package:logging/logging.dart' show Logger;
import 'package:wordherd/shared_html.dart' show Player;
im... | 785 |
https://github.com/maurycupitt/gradle-examples/blob/master/multi-project-build/settings.gradle | Github Open Source | Open Source | Apache-2.0 | 2,023 | gradle-examples | maurycupitt | Gradle | Code | 4 | 12 | include 'app'
include 'core'
| 18,444 |
https://github.com/LoraMS/ProgrammingBasicsPHP/blob/master/ExamPreparation/Exam25-06-2017/fruit-cocktail.php | Github Open Source | Open Source | MIT | null | ProgrammingBasicsPHP | LoraMS | PHP | Code | 179 | 395 | <?php
$fruit = strtolower(readline());
$size = strtolower(readline());
$drinks = intval(readline());
$price = 0.00;
if ($fruit === "watermelon") {
if ($size === "small") {
$price = 56 * 2 * $drinks;
} elseif ($size === "big") {
$price = 28.70 * 5 * $drinks;
}
} elseif ($fruit === "mango")... | 13,338 |
https://github.com/trustedshops/domain-protect/blob/master/terraform-modules/lambda/scripts/create-package.sh | Github Open Source | Open Source | Apache-2.0 | null | domain-protect | trustedshops | Shell | Code | 79 | 270 | #!/bin/bash
set -e
echo "Executing create_package.sh..."
function_list=${function_names//:/ }
for i in $function_list
do
dir_name=lambda_dist_pkg_$i/
mkdir -p $path_module/build/$dir_name
# Installing python dependencies...
FILE=$path_module/code/$i/requirements.txt
if [ -f "$FILE" ]; then
echo "Inst... | 866 |
https://github.com/lemastero/mantis/blob/master/src/main/scala/io/iohk/ethereum/consensus/difficulty/DifficultyCalculator.scala | Github Open Source | Open Source | Apache-2.0 | 2,022 | mantis | lemastero | Scala | Code | 73 | 314 | package io.iohk.ethereum.consensus.difficulty
import io.iohk.ethereum.consensus.pow.difficulty.EthashDifficultyCalculator
import io.iohk.ethereum.consensus.pow.difficulty.TargetTimeDifficultyCalculator
import io.iohk.ethereum.domain.BlockHeader
import io.iohk.ethereum.utils.BlockchainConfig
trait DifficultyCalculator... | 31,368 |
https://github.com/VGamezz19/MDitor/blob/master/client/src/components/MyEditor/MyEditor.js | Github Open Source | Open Source | MIT | 2,018 | MDitor | VGamezz19 | JavaScript | Code | 167 | 572 | import React from 'react';
import Draft, { Editor } from 'draft-js';
import PropTypes from 'prop-types';
import File from 'mditor-types';
class MyEditor extends React.Component {
constructor(props) {
super(props);
/**
* Next Feature...
*
* Remember focus Editor
... | 26,214 |
https://github.com/banksbestrates/BankFx/blob/master/news/wp-content/plugins/formidable-signature/views/front_field.php | Github Open Source | Open Source | GPL-2.0-or-later, GPL-1.0-or-later, GPL-2.0-only, LicenseRef-scancode-unknown-license-reference, MIT | 2,020 | BankFx | banksbestrates | PHP | Code | 159 | 530 | <div class="sigPad" <?php
if ( ! isset( $plus_id ) || empty( $plus_id ) ) {
?>id="sigPad<?php echo esc_attr( (int) $field['id'] ); ?>"<?php
}
?> style="max-width:<?php echo esc_attr( (int) $styles['width'] ); ?>px;">
<div class="sig sigWrapper" style="<?php echo esc_attr( $styles['css'] ); ?>">
<?php if ( ! $styles... | 22,223 |
https://github.com/XamlEngine/Core/blob/master/src/XamlWindow.h | Github Open Source | Open Source | MIT | 2,020 | Core | XamlEngine | C | Code | 26 | 81 | #pragma once
namespace CoreVar
{
namespace Xaml
{
class XamlWindow
{
protected:
virtual void onShow() = 0;
public:
void show()
{
onShow();
}
};
}
} | 4,848 |
https://github.com/breadexemplar/hapibread-web/blob/master/index.js | Github Open Source | Open Source | MIT | 2,016 | hapibread-web | breadexemplar | JavaScript | Code | 21 | 65 | 'use strict';
const Server = require('./lib/server');
Server.start((err) => {
if (err) {
throw err;
}
Server.log([], `Server started at ${Server.info.uri}`);
});
| 3,873 |
https://github.com/yaoqi/chat/blob/master/src/main/java/com/mercury/chat/common/exception/ErrorCode.java | Github Open Source | Open Source | BSD-2-Clause | null | chat | yaoqi | Java | Code | 56 | 193 | package com.mercury.chat.common.exception;
public enum ErrorCode {
CLOSED(1, "Connection Closed"),
NOT_CONNECTED(2, "Not Connected"),
UNAUTHORIZED(3, "Unauthorized"),
NOT_LOGINED(4, "Not Logined"),
LOGINED(5, "Logined"),
TIME_OUT(6, "Time Out");
private int key;
private String message;
private ErrorCo... | 40,530 |
https://github.com/LeJTao/gblog/blob/master/resources/assets/js/frontend/pages/categories/Index.vue | Github Open Source | Open Source | MIT | 2,021 | gblog | LeJTao | Vue | Code | 150 | 600 | <template>
<main class="site-main">
<transition enter-active-class="animated fadeInUp">
<div class="container wrapper py4 md-py6" v-show="show">
<div class="category mb4" v-for="category in categories" :key="category.id">
<router-link :to="{name: 'frontend.cat... | 29,598 |
https://github.com/remote-anu/wa_sevaa/blob/master/public/js/navigation.js | Github Open Source | Open Source | MIT | null | wa_sevaa | remote-anu | JavaScript | Code | 61 | 325 | /*$(function() {
$("#navigation").load("navigation.html");
});*/
$('body').bind('copy paste cut drag drop', function (e) {
e.preventDefault();
});
$.get("navigation.html", function(data){
var html = $(data);
if (localStorage['userId']!==null && localStorage['userId'] !== undefined) {
$("#... | 29,267 |
https://github.com/markheger/streamsx.topology/blob/master/java/src/com/ibm/streamsx/rest/internal/icp4d/Element.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | streamsx.topology | markheger | Java | Code | 337 | 820 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this 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 ... | 15,177 |
https://github.com/Damoy/Cpp-3D-game-engine/blob/master/CppProject5_3D/CppProject5/src/input/MouseTransformer.h | Github Open Source | Open Source | MIT | 2,017 | Cpp-3D-game-engine | Damoy | C++ | Code | 194 | 483 | #pragma once
#include "entities\graphics\Camera.h"
#include "world\Level.h"
/*
The Mouse Transformer is an important class.
It allows to convert from simple 2D mouse coordinates to game-world ones.
To do such, there are multiple conversions that need to be performed.
Screen (viewport) Space -> Normalized Space ->... | 50,457 |
https://github.com/ContinuumIO/airflow/blob/master/airflow/hooks/oracle_hook.py | Github Open Source | Open Source | Apache-2.0 | 2,016 | airflow | ContinuumIO | Python | Code | 404 | 1,126 | import cx_Oracle
from airflow.hooks.dbapi_hook import DbApiHook
from builtins import str
from past.builtins import basestring
from datetime import datetime
import numpy
import logging
class OracleHook(DbApiHook):
"""
Interact with Oracle SQL.
"""
conn_name_attr = 'oracle_conn_id'
default_conn_name... | 3,949 |
https://github.com/metageek-llc/inSSIDer-2/blob/master/MetaScanner/Properties/Settings.Designer.cs | Github Open Source | Open Source | Apache-2.0 | 2,021 | inSSIDer-2 | metageek-llc | C# | Code | 834 | 4,520 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17020
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 12,047 |
https://github.com/Neovision-xin/dev/blob/master/infra/util/src/main/java/com/evolveum/midpoint/util/exception/ObjectNotFoundException.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | dev | Neovision-xin | Java | Code | 207 | 455 | /*
* Copyright (c) 2010-2013 Evolveum
*
* 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 agre... | 38,813 |
https://github.com/lyle8341/socket-program/blob/master/src/com/lyle/non/block/nio/Server.java | Github Open Source | Open Source | MIT | null | socket-program | lyle8341 | Java | Code | 409 | 1,480 | package com.lyle.non.block.nio;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.StandardSocketOptions;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChanne... | 482 |
https://github.com/NoahAndrews/pebble-timer-plus/blob/master/src/timer.h | Github Open Source | Open Source | MIT | 2,019 | pebble-timer-plus | NoahAndrews | C | Code | 286 | 525 | //! @file timer.h
//! @brief Data and controls for timer
//!
//! Contains data and all functions for setting and accessing
//! a timer. Also saves and loads timers between closing and reopening.
//!
//! @author Eric D. Phillips
//! @data October 26, 2015
//! @bugs No known bugs
#include <pebble.h>
//! Get timer valu... | 35,772 |
https://github.com/FreshetDMS/kafka/blob/master/core/src/main/scala/kafka/coordinator/transaction/TransactionMetadata.scala | Github Open Source | Open Source | Apache-2.0 | null | kafka | FreshetDMS | Scala | Code | 820 | 1,775 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | 8,011 |
https://github.com/kstrauss/slab/blob/master/source/Src/SemanticLogging/Schema/EventSourceSchemaReader.cs | Github Open Source | Open Source | Apache-2.0 | null | slab | kstrauss | C# | Code | 767 | 2,607 | // Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using Microsoft.Diagnostics.Tracing;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml.Linq;
using Microsoft.Practices.Enter... | 17,335 |
https://github.com/agileseason/agileseason-v1/blob/master/app/assets/stylesheets/pages/p-settings-show.sass | Github Open Source | Open Source | MIT | null | agileseason-v1 | agileseason | Sass | Code | 209 | 807 | @import mixins/button
$image-path: 'pages/p-settings-show'
.p-settings-show
.b-menu
margin-bottom: 0
.title
padding-bottom: 30px
.columns-block
display: inline-block
width: 700px
vertical-align: top
.actions
float: right
display: none
a
height: 20px
... | 46,734 |
https://github.com/AtelierNum/workshop_code_creatif_2021/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,021 | workshop_code_creatif_2021 | AtelierNum | Ignore List | Code | 2 | 13 | AirSet/.DS_Store
.DS_Store
| 37,069 |
https://github.com/vue-polkadot/apps/blob/master/dashboard/src/components/shared/wrapper/ItemCard.vue | Github Open Source | Open Source | MIT | 2,022 | apps | vue-polkadot | Vue | Code | 48 | 166 | <template>
<div class="card item-card">
<div class="card-content item-card-content columns is-vcentered">
<slot />
</div>
<slot name="additional"></slot>
</div>
</template>
<style scoped>
.card.item-card{
margin-bottom: 1em;
}
.card-content.item-card-content {
padding: 0 0.5em;
}
</style>
<... | 18,719 |
https://github.com/glovenkevin/go-git-puller/blob/master/commands/command.go | Github Open Source | Open Source | Apache-2.0 | null | go-git-puller | glovenkevin | Go | Code | 705 | 1,744 | package commands
import (
"errors"
"fmt"
"os"
"regexp"
"strings"
"github.com/schollz/progressbar/v3"
"go.uber.org/zap"
)
type Options struct {
// Flag for activating logging while the program running
Verbose bool
// Define action to be executed in command
Action string
// Define root directory of the a... | 382 |
https://github.com/KVGarg/openhub-django/blob/master/tests/models/test_outside_committer_model.py | Github Open Source | Open Source | MIT | 2,021 | openhub-django | KVGarg | Python | Code | 128 | 778 | from django.test import TestCase
from openhub_django.models import (
OutsideCommitter,
ContributionsToPortfolioProject)
from openhub_django.variables import ORG_NAME
class OutsideCommitterModelTest(TestCase):
@classmethod
def setUpTestData(cls):
# Set up non-modified objects used by all meth... | 6,667 |
https://github.com/AinyFeng/ngx-admin/blob/master/projects/web/src/app/modules/administration/components/search-profile/search-profile.component.ts | Github Open Source | Open Source | MIT | null | ngx-admin | AinyFeng | TypeScript | Code | 1,061 | 4,054 | import { Component, OnDestroy, OnInit } from '@angular/core';
import { NzMessageService, NzModalService } from 'ng-zorro-antd';
import { drawerAnimation } from '../../../../@uea/animations/drawer.animation';
import {
DicDataService,
ApiAdminDailyManagementService,
CommunityDataService,
FileDownloadUtils, FILE_T... | 43,937 |
https://github.com/shaunabanana/timeliner/blob/master/src/theme.js | Github Open Source | Open Source | MIT | 2,022 | timeliner | shaunabanana | JavaScript | Code | 20 | 60 | const Theme = {
// photoshop colors
a: '#343434',
b: '#535353',
c: '#b8b8b8',
d: '#d6d6d6',
};
export { Theme } | 33,221 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.