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/joansmith1/rultor/blob/master/src/main/java/com/rultor/web/TkAppAuth.java | Github Open Source | Open Source | BSD-3-Clause | 2,020 | rultor | joansmith1 | Java | Code | 415 | 1,211 | /**
* Copyright (c) 2009-2015, rultor.com
* 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 above
* copyright notice, this list of conditio... | 50,341 |
https://github.com/jeansebastienh/scaleway-cli/blob/master/internal/core/printer_test.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | scaleway-cli | jeansebastienh | Go | Code | 541 | 2,183 | package core
import (
"context"
"reflect"
"testing"
)
func Test_CorePrinter(t *testing.T) {
type Human struct {
ID string `json:"id"`
Name string `json:"name"`
}
commands := NewCommands(
&Command{
Namespace: "get",
ArgsType: reflect.TypeOf(struct{}{}),
Run: func(ctx context.Context, argsI int... | 6,025 |
https://github.com/ph4z/bfx-hf-ui/blob/master/src/pages/Trading/Trading.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | bfx-hf-ui | ph4z | JavaScript | Code | 305 | 963 | import React from 'react'
import Joyride, { STATUS } from 'react-joyride'
import StatusBar from '../../components/StatusBar'
import ExchangeInfoBar from '../../components/ExchangeInfoBar'
import { propTypes, defaultProps } from './Trading.props'
import GridLayoutPage from '../../components/GridLayoutPage'
import './... | 14,419 |
https://github.com/ashutoshdumiyan/CSES-Solutions/blob/master/range/rangesumqueries2.cc | Github Open Source | Open Source | MIT | null | CSES-Solutions | ashutoshdumiyan | C++ | Code | 286 | 608 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
ll li[200001], st[800001];
void build(ll si, ll ss, ll se)
{
if (ss == se)
{
st[si] = li[ss];
return;
}
ll mid = (ss + se) / 2;
build(2 * si, ss, mid);
build(2 * si + 1, mid + 1, se);
st[si] = st[2 * si]... | 10,597 |
https://github.com/JobsDong/ApiNet/blob/master/src/main/java/com/weizoom/apiserver/cluster/operation/IClusterOperator.java | Github Open Source | Open Source | Apache-2.0 | null | ApiNet | JobsDong | Java | Code | 51 | 146 | /**
* Copyright : Copyright (c) 2006. Wintim Corp. All rights reserved
* File Summary :
* Create time : 2013-4-11
*/
package com.weizoom.apiserver.cluster.operation;
import com.weizoom.apiserver.cluster.ClusterState;
import com.weizoom.apiserver.cluster.TaskResult;
/**
*
* @author chuter & wuyadong
*
*... | 34,662 |
https://github.com/westernsam/samatra/blob/master/samatra-websockets/src/main/scala/com/springer/samatra/websockets/WsRoutings.scala | Github Open Source | Open Source | MIT | null | samatra | westernsam | Scala | Code | 749 | 2,623 | package com.springer.samatra.websockets
import java.net.HttpCookie
import java.nio.ByteBuffer
import java.security.Principal
import java.util
import javax.websocket._
import javax.websocket.server.{HandshakeRequest, ServerContainer, ServerEndpoint, ServerEndpointConfig}
import scala.jdk.CollectionConverters._
import s... | 38,893 |
https://github.com/RainYang0925/ApiIntelligenceRobot/blob/master/target/scala-2.11/twirl/main/views/html/scenarios/view/modal_tasks.template.scala | Github Open Source | Open Source | Apache-2.0 | 2,016 | ApiIntelligenceRobot | RainYang0925 | Scala | Code | 222 | 2,259 |
package views.html.scenarios.view
import play.twirl.api._
import play.twirl.api.TemplateMagic._
object modal_tasks_Scope0 {
import models._
import controllers._
import play.api.i18n._
import views.html._
import play.api.templates.PlayMagic._
import java.lang._
import java.util._
import scala.collection.JavaCon... | 44,117 |
https://github.com/dayangge/backend-manage/blob/master/src/pages/GameUser/restrictedMachineCode.js | Github Open Source | Open Source | MIT | 2,021 | backend-manage | dayangge | JavaScript | Code | 997 | 3,574 | import React, { Fragment, PureComponent } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Icon,
Badge,
Button,
Modal,
message,
DatePicker,
Table,
} from 'antd';
import StandardTable from '@/components/StandardTable';
impor... | 23,448 |
https://github.com/aksh4y/Computer-Architecture-Quiz/blob/master/Source/block.php | Github Open Source | Open Source | MIT | 2,018 | Computer-Architecture-Quiz | aksh4y | PHP | Code | 14 | 63 | <?php
$answer=$_POST['Answer'];
$response=strcasecmp($answer,"WE");
if(!$response)
header( 'Location: onewordanswer.html' ) ;
else
header( 'Location: blocknumber.html');
?>
| 9,372 |
https://github.com/swc-project/swc/blob/master/crates/swc_ecma_transforms_optimization/tests/remove_imports_with_side_effects.rs | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,023 | swc | swc-project | Rust | Code | 163 | 572 | use swc_common::{chain, pass::Repeat, Mark};
use swc_ecma_parser::{EsConfig, Syntax};
use swc_ecma_transforms_base::resolver;
use swc_ecma_transforms_optimization::simplify::dce::{dce, Config};
use swc_ecma_transforms_testing::test;
use swc_ecma_visit::Fold;
fn tr() -> impl Fold {
Repeat::new(dce(
Config {... | 13,617 |
https://github.com/Janichu/Docupaxx/blob/master/application/web/src/common/dashboard/dataitem/generaldocument/GeneralDocumentsTab.js | Github Open Source | Open Source | MIT | null | Docupaxx | Janichu | JavaScript | Code | 147 | 570 | import { DataTab } from "../../DataTab";
import { DataItemAbsentContent } from "../DataItemAbsentContent";
import { DataItemButtonContent } from "../DataItemButtonContent";
import { DataItemModel } from "../DataItemModel";
/**
* GENERAL_DOCUMENT_MODEL
*/
export const GENERAL_DOCUMENT_MODEL = DataItemModel({
icon... | 31,257 |
https://github.com/ComPlat/nmr_sim/blob/master/lib/nmr_sim.rb | Github Open Source | Open Source | MIT | 2,016 | nmr_sim | ComPlat | Ruby | Code | 5 | 19 | require "nmr_sim/engine"
module NmrSim
end
| 22,845 |
https://github.com/AnglewoodJack/bubbly/blob/master/bubbly/bubbly.py | Github Open Source | Open Source | MIT | 2,019 | bubbly | AnglewoodJack | Python | Code | 1,312 | 4,797 | import numpy as np
import pandas as pd
def bubbleplot(dataset, x_column, y_column, bubble_column, z_column=None,
time_column=None, size_column=None, color_column=None,
x_logscale=False, y_logscale=False, z_logscale=False,
x_range=None, y_range=None, z_range=None,
... | 1,428 |
https://github.com/wang12d/ProgrammingPractices/blob/master/ProjectEuler/pe371.cpp | Github Open Source | Open Source | MIT | null | ProgrammingPractices | wang12d | C++ | Code | 54 | 240 | #include <bits/stdc++.h>
using std::vector;
using std::cout;
using std::endl;
int
main(int argc, char** argv)
{
const auto maxn{500};
vector<vector<double>> expectation(maxn+1, vector<double>(2, 0.0));
for (int i{maxn-1}; i >= 0; --i) {
double prob{static_cast<double>(1000-2*i-2)/1000};
do... | 10,776 |
https://github.com/filmor/rsds/blob/master/src/bin/rsds.rs | Github Open Source | Open Source | MIT | null | rsds | filmor | Rust | Code | 118 | 504 | use std::net::{Ipv4Addr, SocketAddr};
use std::thread;
use structopt::StructOpt;
use tokio::net::TcpListener;
use tokio::runtime::Runtime;
use rsds::prelude::*;
use rsds::scheduler::interface::prepare_scheduler_comm;
#[derive(Debug, StructOpt)]
#[structopt(name = "rsds", about = "Rust Dask Scheduler")]
struct Opt {
... | 40,671 |
https://github.com/frank-bots/cqhttp.Cyan/blob/master/cqhttp.Cyan/Clients/Listener/IListener.cs | Github Open Source | Open Source | MIT | 2,021 | cqhttp.Cyan | frank-bots | C# | Code | 41 | 187 | using System;
using System.Threading.Tasks;
using cqhttp.Cyan.Events.CQEvents.Base;
using cqhttp.Cyan.Events.CQResponses.Base;
namespace cqhttp.Cyan.Clients.Listeners {
/// <summary>
///
/// </summary>
/// <remark>
/// 如果注册了多个handler,那么会取最后注册的handler的响应作为事件响应
/// </remark>
public interface... | 39,160 |
https://github.com/GEOS-ESM/AeroApps/blob/master/src/Components/misc/scat/mie.py | Github Open Source | Open Source | NASA-1.3, ECL-2.0, Apache-2.0 | 2,021 | AeroApps | GEOS-ESM | Python | Code | 1,222 | 3,321 | """
Implements Python interface to Mie Calculator. Based on f2py extension Mie_.
"""
from numpy import array, isfortran
from pylab import plot, axis, title
from MAPL import config
from Mie_ import *
def getDims(filename):
"""Return dimensions of GFIO-compatible file. The output tuple is
(tm,km,jm,im).""... | 12,113 |
https://github.com/surfaceowl/pythontalk_tdd_for_data/blob/master/src/excel_find_url.py | Github Open Source | Open Source | MIT | null | pythontalk_tdd_for_data | surfaceowl | Python | Code | 113 | 398 | # %load src/excel_find_url.py
# %%writefile src/excel_find_url.py
import re
from src.excel_read_cell_info import check_if_already_found
def find_url(content, result):
"""
finds url of school if it exists in cell
:param content: cell content from spreadsheet
:type content: string
:param result: ... | 10,206 |
https://github.com/derlin/phrasal/blob/master/src/showcase/pages/showcase.py | Github Open Source | Open Source | Apache-2.0 | 2,020 | phrasal | derlin | Python | Code | 310 | 1,103 | import base64
import pandas as pd
import streamlit as st
from get_html.env_defined_get import do_get
from utils.showcase_constants import Pipeline as p
pd.set_option('display.max_colwidth', None)
@st.cache
def fetch_url(p, url):
resp = do_get(url)
return p.converter.to_text(resp.content, encoding=resp.encod... | 3,227 |
https://github.com/OnSpecta/inference/blob/master/compliance/nvidia/TEST01/create_accuracy_baseline.py | Github Open Source | Open Source | Apache-2.0 | null | inference | OnSpecta | Python | Code | 181 | 414 | #! /usr/bin/env python3
#
# Copyright 2021 The MLPerf Authors. All Rights Reserved.
#
# 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
#
# Unl... | 5,053 |
https://github.com/Vectovox/MonoKle/blob/master/MonoKle/Converters/MPoint2Converter.cs | Github Open Source | Open Source | MS-PL | 2,020 | MonoKle | Vectovox | C# | Code | 91 | 265 | using System;
using System.ComponentModel;
using System.Globalization;
namespace MonoKle.Converters
{
public class MPoint2Converter : TypeConverter
{
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) =>
sourceType == typeof(string) || base.CanConvertFrom(... | 6,410 |
https://github.com/AudioAdventurer/satellite-audio-recording/blob/master/source/browser_apps/sar_site/src/Data/ProjectDao.js | Github Open Source | Open Source | MIT | 2,020 | satellite-audio-recording | AudioAdventurer | JavaScript | Code | 35 | 131 | import BaseDao from "./BaseDao.js"
export default class ProjectDao extends BaseDao {
getProjects() {
return this.read("/projects");
}
getProject(id) {
return this.read(`/projects/${id}`);
}
saveProject(proj) {
return this.write("/projects", proj);
}
importFountain(id, formData) {
retu... | 39,313 |
https://github.com/farmerconnect/farmerconnect-ui/blob/master/src/components/Orderer/styles.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | farmerconnect-ui | farmerconnect | TypeScript | Code | 58 | 175 | import styled from 'styled-components';
import { StyledArrow } from '../Icons/Arrow/styles';
export const Container = styled.div`
position: relative;
font-family: 'Red Hat Text', sans-serif;
`;
export const SortContainer = styled.div`
align-items: center;
display: flex;
`;
export const SortButton = styled.bu... | 6,136 |
https://github.com/Tharlei/web-alfred/blob/master/src/store/ducks/rootReducer.ts | Github Open Source | Open Source | MIT | null | web-alfred | Tharlei | TypeScript | Code | 15 | 39 | import { combineReducers } from 'redux';
import employees from './employees';
export default combineReducers({
employees,
});
| 20,780 |
https://github.com/80man/i-cmdb/blob/master/src/main/java/com/xtxb/cmdb/common/query/Group.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | i-cmdb | 80man | Java | Code | 44 | 143 | package com.xtxb.cmdb.common.query;
/**
* 作者: xtxb
* <p>
* 日期: 2020年06月24日-下午3:03
* <p>
* <p>
*/
public class Group extends QueryIterm {
private GroupType groupType;
public Group(GroupType groupType){
this.groupType=groupType;
}
public GroupType getGroupType() {
return groupType;... | 25,545 |
https://github.com/georgegu1997/filmsoc-frontend/blob/master/asset/js/admin/disk_view.js | Github Open Source | Open Source | BSD-3-Clause | 2,015 | filmsoc-frontend | georgegu1997 | JavaScript | Code | 1,766 | 7,519 | /**
* @fileoverview View concerning Disk.
*/
cr.define('cr.view.liba', function() {
var name = 'liba';
/**
* Generate Call number
* @param {Object} obj The disk
* @return {string} The callnumber
*/
function cn(obj) {
return obj.disk_type + pad(obj.id, 4);
}
/**
* Initialization of this... | 16,759 |
https://github.com/awesome-vedant/BloggingSystem/blob/master/application/models/load_data.php | Github Open Source | Open Source | MIT | null | BloggingSystem | awesome-vedant | PHP | Code | 149 | 733 | <?php
class load_data extends CI_Model{
public function verify($username,$password){
$this->load->database();
$query = $this->db->where(['username'=>$username,'password'=>$password])->get('user');
if($query->num_rows()){
$id = $query->row()->id;
return $id;
... | 28,296 |
https://github.com/Huhui-coder/baidu-pan/blob/master/src/components/charts/line-charts.vue | Github Open Source | Open Source | MIT | null | baidu-pan | Huhui-coder | Vue | Code | 546 | 1,979 | <template>
<div class="l-chart">
<div class="line-top clearfix">
<p style="padding-bottom: 10px;">{{ title }}</p>
<div class="line-title clearfix">
<span style="padding-right: 10px">时间:</span>
<el-radio-group v-model="time" size="small" @change="handleTimeChange">
<el-radio-b... | 35,100 |
https://github.com/phrappuccino/sqlmap-zap-addon/blob/master/addOns/openapi/src/main/java/org/zaproxy/zap/extension/openapi/automation/ExtensionOpenApiAutomation.java | Github Open Source | Open Source | Apache-2.0 | null | sqlmap-zap-addon | phrappuccino | Java | Code | 258 | 766 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2021 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 10,025 |
https://github.com/ChayBB/multi-vendor-multi-product-ecomerce/blob/master/app/Http/Controllers/Front/IndexController.php | Github Open Source | Open Source | MIT | 2,020 | multi-vendor-multi-product-ecomerce | ChayBB | PHP | Code | 395 | 1,908 | <?php
namespace App\Http\Controllers\Front;
use App\Plan;
use App\Product;
use App\ProductRate;
use App\Transaction;
use App\Subscribe;
use App\Rules\ValidateEmail;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
class IndexController extends Controller
{
pub... | 244 |
https://github.com/tideillusion/lgulife/blob/master/lgulife/utils.py | Github Open Source | Open Source | MIT | null | lgulife | tideillusion | Python | Code | 73 | 238 | class MyException(Exception):
def __init__(self, msg=None):
super().__init__(self)
self.msg = msg
def __str__(self):
pass
class NotFoundError(MyException):
def __str__(self):
return f"Request source {self.msg} not found on server."
class ReadOnlyError(MyException):
d... | 33,840 |
https://github.com/ceefour/glut101/blob/master/glut114/texture.cpp | Github Open Source | Open Source | Apache-2.0 | null | glut101 | ceefour | C++ | Code | 408 | 1,054 | #include "stdafx.h"
#include <stdio.h>
#include <windows.h>
#include "../glut/glut.h"
#include "texture.h"
/**********************************************************
*
* VARIABLES DECLARATION
*
*********************************************************/
int num_texture = -1; //Counter to keep track of the last loaded ... | 867 |
https://github.com/NarciSource/Rename/blob/master/Rename/Model/FileItem.cs | Github Open Source | Open Source | MIT | null | Rename | NarciSource | C# | Code | 69 | 184 | using System;
using System.IO;
namespace Rename.Model
{
public class FileItem : IEquatable<FileItem>
{
public FileInfo File { get; }
public String ActualName { get; set; }
public FileItem(FileInfo file)
{
File = file;
ActualName = file.Name;
... | 17,392 |
https://github.com/CallyyllaC/EndlessModding/blob/master/EndlessModding/EndlessSpace2/Common/Classes/MinigameDefinition.cs | Github Open Source | Open Source | BSD-3-Clause | null | EndlessModding | CallyyllaC | C# | Code | 542 | 2,352 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | 36,434 |
https://github.com/rajesh-ibm-power/xerces-c/blob/master/src/xercesc/framework/psvi/XSNamedMap.hpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | xerces-c | rajesh-ibm-power | C++ | Code | 498 | 1,211 | /*
* 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 ... | 30,448 |
https://github.com/sanfeijoo/prueba-katherine/blob/master/scss/_card.scss | Github Open Source | Open Source | MIT | null | prueba-katherine | sanfeijoo | SCSS | Code | 23 | 94 | .card{
border: $border;
padding: 12px 18px;
margin-bottom: 48px;
@extend .flex;
color: $grayscale-base;
justify-content: space-between;
p{
font-size: 12px;
}
h2{
font-size: 24px;
}
}
| 24,766 |
https://github.com/dnaeon/cl-covid19/blob/master/migrations/20200608135822-create_countries_table.down.sql | Github Open Source | Open Source | BSD-2-Clause | 2,022 | cl-covid19 | dnaeon | SQL | Code | 3 | 7 | DROP TABLE country;
| 14,937 |
https://github.com/Jubas/index-cost-sim/blob/master/OPTMEM_Pfiles_Read.py | Github Open Source | Open Source | MIT | 2,021 | index-cost-sim | Jubas | Python | Code | 53 | 288 | import Const
import RunClassCommon
OPT900P_costs = [0.0593, 0.0653, 0.0584, 0.0659, 0.0076, 0.0117, 0.0076, 0.0287]
OPTMem_costs = [0.1001, 0.4416, 0.0997, 0.4429, 0.0057, 0.0093, 0.0060, 0.0177]
experiment_list = [
{
'Experiment': Const.NVTREE,
'Setup': 'IntelMEM_ReproPfiles_FlushRead',
'Repro_Method... | 7,536 |
https://github.com/capricornstone/jeecg-3.8-hzwm/blob/master/src/main/resources/jeecg/template/onetomany/jspSubTemplate.ftl | Github Open Source | Open Source | Apache-2.0 | 2,019 | jeecg-3.8-hzwm | capricornstone | Fluent | Code | 227 | 1,382 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
$('#add${entityName}Btn').linkbutton({
iconCls: 'icon-add'
});
$('#del${entityName}Btn').linkbutton({
iconCls: 'icon-remove'
});
$('#... | 21,626 |
https://github.com/WillekeTraa/GIBBON/blob/master/lib/triSurfRemoveThreeConnect.m | Github Open Source | Open Source | BSD-3-Clause | 2,014 | GIBBON | WillekeTraa | MATLAB | Code | 324 | 1,466 | function [varargout]=triSurfRemoveThreeConnect(Fd,Vd,Cd)
% function [Ft,Vt,Ct,L]=triSurfRemoveThreeConnect(Fd,Vd,Cd)
% ------------------------------------------------------------------------
% In a surface triangulation "3-connected" locations often contain poor
% quality triangles of a locally smaller area then the ... | 30,942 |
https://github.com/jsgroth/advent-of-code-2020/blob/master/src/org/jsg/aoc2020/Day4.kt | Github Open Source | Open Source | Unlicense | null | advent-of-code-2020 | jsgroth | Kotlin | Code | 305 | 1,060 | package org.jsg.aoc2020
import java.nio.file.Files
import java.nio.file.Path
object Day4 {
enum class PassportField(val fieldName: String) {
BIRTH_YEAR("byr") {
override fun validate(fieldValue: String): Boolean {
return fieldValue.matches(Regex("""\d{4}""")) &&
... | 23,957 |
https://github.com/bocharsky-bw/JMSDebuggingBundle/blob/master/Problem/RemoteProblemSolver.php | Github Open Source | Open Source | Apache-2.0 | 2,015 | JMSDebuggingBundle | bocharsky-bw | PHP | Code | 162 | 694 | <?php
namespace JMS\DebuggingBundle\Problem;
use JMS\DebuggingBundle\Solution\RichClientSolution;
use Symfony\Component\Yaml\Yaml;
use Symfony\Component\HttpKernel\Profiler\Profiler;
use JMS\DebuggingBundle\Serializer\ProfilerNormalizer;
use Symfony\Component\HttpFoundation\Request;
/**
* Adds a rich Javascript cli... | 35,780 |
https://github.com/blair3sat/website/blob/master/next.config.js | Github Open Source | Open Source | MIT | 2,021 | website | blair3sat | JavaScript | Code | 157 | 540 | const readingTime = require('reading-time');
const withPlugins = require('next-compose-plugins');
const withVideos = require('next-videos');
const withOptimizedImages = require('next-optimized-images');
const withMdxEnhanced = require('next-mdx-enhanced');
module.exports = withPlugins(
[
withMdxEnhanced({
... | 3,562 |
https://github.com/rihorn/ky-libaries/blob/master/node_modules/arcgis-js-api/widgets/CoordinateConversion/support/Conversion.js | Github Open Source | Open Source | Apache-2.0 | null | ky-libaries | rihorn | JavaScript | Code | 135 | 509 | // COPYRIGHT © 2018 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... | 38,976 |
https://github.com/dawidlew/ralph/blob/master/src/ralph/domains/models/domains.py | Github Open Source | Open Source | Apache-2.0 | 2,016 | ralph | dawidlew | Python | Code | 201 | 805 | # -*- coding: utf-8 -*-
from dj.choices import Choices
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from ralph.assets.models import BaseObject
from ralph.assets.models.assets import AssetHolder, BusinessSegment
from ralph.lib.mixins.models impor... | 48,417 |
https://github.com/ScalablyTyped/ScalajsReactTyped/blob/master/t/ts-toolbelt/src/main/scala/typingsJapgolly/tsToolbelt/outListNullableKeysMod.scala | Github Open Source | Open Source | MIT | 2,022 | ScalajsReactTyped | ScalablyTyped | Scala | Code | 26 | 163 | package typingsJapgolly.tsToolbelt
import typingsJapgolly.tsToolbelt.outListObjectOfMod.ObjectOf
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object outListNullableKeysMod {
type NullableKeys[L /*... | 4,713 |
https://github.com/Ley21/ffxiv-collect/blob/master/db/migrate/20190517134131_add_icon_id_to_achievements.rb | Github Open Source | Open Source | MIT | 2,022 | ffxiv-collect | Ley21 | Ruby | Code | 12 | 47 | class AddIconIdToAchievements < ActiveRecord::Migration[5.2]
def change
add_column :achievements, :icon_id, :integer
end
end
| 37,213 |
https://github.com/rene-d/wowclp/blob/master/parser.py | Github Open Source | Open Source | Unlicense | 2,020 | wowclp | rene-d | Python | Code | 878 | 3,160 | import sys
import csv
import logging
import collections
import itertools
import combatlog9
import combatlog12
# Type
COMBATLOG_OBJECT_TYPE_MASK = 0x0000FC00
COMBATLOG_OBJECT_TYPE_OBJECT = 0x00004000
COMBATLOG_OBJECT_TYPE_GUARDIAN = 0x00002000
COMBATLOG_OBJECT_TYPE_PET = 0x00001000
COMBATLOG_OBJECT_TYPE_NPC = 0x000008... | 8,313 |
https://github.com/i-gaven/Just_a_dumper/blob/master/all_headers/WPS Office– 完美支持Word、PPT、Excel、PDF文档阅读编辑-7.4.0(越狱应用)_headers/FlurryWatchConnectivityProxy.h | Github Open Source | Open Source | MIT | 2,018 | Just_a_dumper | i-gaven | Objective-C | Code | 82 | 339 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <Foundation/NSProxy.h>
@class NSObject;
@protocol FlurryWatchConnectivityDelegate;
@interface FlurryWatchConnectivityProxy : ... | 46,605 |
https://github.com/Tilapiatsu/blender-custom_conf/blob/master/scripts/addons/animation_nodes/nodes/mesh/generation/grid.py | Github Open Source | Open Source | MIT | 2,022 | blender-custom_conf | Tilapiatsu | Python | Code | 184 | 576 | import bpy
from bpy.props import *
from .... base_types import AnimationNode
from .... algorithms.mesh_generation.grid import getGridMesh_Step, getGridMesh_Size
modeItems = [
("STEP", "Step", "Define the distance between the vertices", 0),
("SIZE", "Size", "Define how large the grid will be in total", 1)
]
cl... | 45,069 |
https://github.com/wanggaowan/PhotoPreview/blob/master/app/src/main/java/com/wgw/photopreview/TestFragment.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | PhotoPreview | wanggaowan | Java | Code | 126 | 603 | package com.wgw.photopreview;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView.ScaleType;
import com.wgw.photo.preview.IndicatorType;
import com... | 3,672 |
https://github.com/thinhdoan/MyRep/blob/master/tests/DbExtensions.Tests/Querying/SqlSetBehavior.cs | Github Open Source | Open Source | Apache-2.0 | null | MyRep | thinhdoan | C# | Code | 496 | 2,176 | using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DbExtensions.Tests.Querying {
[TestClass]
public class SqlSetBehavior {
readonly Database db = new Database(MySql.Data.MySqlClient.MySqlClientFactory.Instance.CreateConnect... | 38,538 |
https://github.com/davidvalen95/swrngadm/blob/master/src/app/page/module/advertisement/AdvertisementApiInterface.ts | Github Open Source | Open Source | MIT | null | swrngadm | davidvalen95 | TypeScript | Code | 78 | 344 | import {ApiBaseResponseInterface} from '../../../service/api/api.service';
import {UserDataInterface} from '../../../service/user/user.service';
import {PhotosDataInterface} from '../room/RoomApiInterface';
export interface AdvertisementTopInterface extends ApiBaseResponseInterface{
data:{
advertisementDes... | 44,981 |
https://github.com/Aviara/Headsolve/blob/master/admin/template/for.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | Headsolve | Aviara | PHP | Code | 1,025 | 6,009 |
<?php
include('header.php');
?>
<head>
<!-- start: PAGE CONTENT -->
<div class="row">
<div class="col-sm-12">
<!-- start: FORM WIZARD PANEL -->
<div class="panel panel-white">
<div class="panel-body">
<form action="#" role="form" class="smart-wizard ... | 38,151 |
https://github.com/ministryofjustice/opg-lpa/blob/master/service-admin/src/App/src/Handler/AbstractHandler.php | Github Open Source | Open Source | MIT, LicenseRef-scancode-proprietary-license | 2,023 | opg-lpa | ministryofjustice | PHP | Code | 229 | 736 | <?php
declare(strict_types=1);
namespace App\Handler;
use App\Handler\Initializers\TemplatingSupportInterface;
use App\Handler\Initializers\TemplatingSupportTrait;
use App\Handler\Initializers\UrlHelperInterface;
use App\Handler\Initializers\UrlHelperTrait;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\M... | 13,621 |
https://github.com/myusuf011/NGXSIS/blob/master/ngxsis.MVC/Views/SumberLoker/Index.cshtml | Github Open Source | Open Source | MIT | null | NGXSIS | myusuf011 | C# | Code | 126 | 568 |
@{
ViewBag.Title = "Sumber Loker";
}
<h3>List of @ViewBag.Title</h3>
<div class="panel panel-primary">
<!-- Default panel contents-->
<div class="panel-heading">
<input id="btn-create-new" type="button" class="btn btn-default btn-lg" value="Create New" />
</div>
<div class="panel-body">
... | 16,482 |
https://github.com/mygirl8893/swipechain-node/blob/master/x/thorchain/types/msg_network_fee.go | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,021 | swipechain-node | mygirl8893 | Go | Code | 209 | 662 | package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
"gitlab.com/thorchain/thornode/common"
cosmos "gitlab.com/thorchain/thornode/common/cosmos"
)
// MsgNetworkFee is message bifrost will be used to send chain related network fee to THORNode
type MsgNetworkFee struct {
BlockHeight int64 ... | 27,392 |
https://github.com/xushaomin/redisson/blob/master/src/main/java/org/redisson/RedissonObject.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | redisson | xushaomin | Java | Code | 306 | 883 | /**
* Copyright 2014 Nikita Koksharov, Nickolay Borbit
*
* 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 applic... | 17,634 |
https://github.com/OHSRobotics/369-2018-2019/blob/master/TeamCode/src/main/java/org/firstinspires/ftc/MovementHelper.java | Github Open Source | Open Source | MIT | null | 369-2018-2019 | OHSRobotics | Java | Code | 747 | 3,952 | package org.firstinspires.ftc;
import com.qualcomm.robotcore.hardware.DcMotor;
public class MovementHelper{
private boolean red;
private HardwareK9bot robot;
private OpModeBase opMode;
//private ElapsedTime runtime = new ElapsedTime();
//private static final int SLOW_DOWN_TURN_DEGREES = 20;
... | 6,603 |
https://github.com/VocaDB/vocadb/blob/master/VocaDbWeb/Scripts/Pages/Help/HelpRoutes.tsx | Github Open Source | Open Source | MIT | 2,023 | vocadb | VocaDB | TSX | Code | 85 | 302 | import { useVdb } from '@/VdbContext';
import React from 'react';
const HelpIndexEn = React.lazy(() => import('./HelpIndex'));
const HelpIndexJa = React.lazy(() => import('./HelpIndex.ja'));
const HelpIndexZhHans = React.lazy(() => import('./HelpIndex.zh-Hans'));
const HelpRoutes = (): React.ReactElement => {
const ... | 43,993 |
https://github.com/zhangqiancty/fee/blob/master/client/src/view/components/time-bar/quickBar.vue | Github Open Source | Open Source | MIT | 2,019 | fee | zhangqiancty | Vue | Code | 189 | 865 | <template>
<div>
<RadioGroup
v-model="radioValue"
@on-change="handleRadioChange"
type="button"
>
<Radio
label="today"
:disabled="disabledToday"
>今天</Radio>
<Radio
label="yesterday"
:disabled="disabledYesterday"
>昨天</Radio>
... | 44,386 |
https://github.com/Bia103/Proiect-MDS/blob/master/Music Hall of Fame/mylist.php | Github Open Source | Open Source | MIT | 2,020 | Proiect-MDS | Bia103 | PHP | Code | 595 | 1,869 | <!-- PHP ZONE! Don't touch it -->
<?php
$con = @mysqli_connect('localhost', 'root','root','proiectmds')
or die('Nu s-a putut efectua conectarea la baza de date. Eroare: ' . mysql_error());
session_start();
$username = $_SESSION['username'];
$song_title = "";
$song_artist = "";
if(isset($_POST['list_button']))
{
... | 23,062 |
https://github.com/massimilianonardi/m/blob/master/os/sunaptos_bak/bak/Sunaptos_03/core/datavector.cpp | Github Open Source | Open Source | MIT | 2,022 | m | massimilianonardi | C++ | Code | 255 | 773 | #include "datavector.h"
#include <iostream>
DataVector::DataVector()
{
}
DataVector::~DataVector()
{
}
void DataVector::read(StreamInput* si)
{
DataNumber vs = DataNumber(0);
vs.read(si);
long s = vs.getl();
std::cout << "\nDataVector::read size = " << s;
for(unsigned long i = 0; i < s; i++)
{
Data... | 6,578 |
https://github.com/Dbevan/SunderingShadows/blob/master/d/shadow/room/goblin/obj/chain.c | Github Open Source | Open Source | MIT | 2,021 | SunderingShadows | Dbevan | C | Code | 199 | 471 | //updated by Circe 6/1/04 with new desc, lore, etc by Shar
#include <std.h>
inherit "/d/common/obj/armour/schain.c";
void create() {
::create();
set_name("chain");
set_id(({"armor","chainmail","chainmail armor"}));
set_short("Chainmail armor");
set_long(
@CIRCE
Crafted from scavenged suits of chain... | 27,047 |
https://github.com/coky-t/vbs-parts/blob/master/vbs_/Test_MFileSystem.vbs | Github Open Source | Open Source | MIT | null | vbs-parts | coky-t | Visual Basic | Code | 297 | 646 | 'Attribute VB_Name = "Test_MFileSystem"
Option Explicit
'
' Copyright (c) 2020 Koki Takeyama
'
' 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 limitati... | 50,986 |
https://github.com/antonmedv/year/blob/master/packages/2023/12/17/index.js | Github Open Source | Open Source | MIT | 2,021 | year | antonmedv | JavaScript | Code | 6 | 15 | module.exports = new Date(2023, 11, 17)
| 16,481 |
https://github.com/gunters63/windicss/blob/master/src/lib/variants/theme.ts | Github Open Source | Open Source | MIT | null | windicss | gunters63 | TypeScript | Code | 96 | 253 | import { Style } from '../../utils/style';
import { DarkModeConfig } from '../../interfaces';
export function generateThemes (
darkMode?: DarkModeConfig
): { [key: string]: () => Style } {
if (!darkMode) return {};
return {
'@dark': () => new Style().atRule('@media (prefers-color-scheme: dark)'),
'@light... | 5,032 |
https://github.com/PipeRift/Pipeshot/blob/master/PipeShot.UI/App.xaml.cs | Github Open Source | Open Source | MIT | 2,019 | Pipeshot | PipeRift | C# | Code | 337 | 1,154 | using PipeShot.UI.Properties;
using Newtonsoft.Json;
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Windows;
using System.Windows.Markup;
using Microsoft.Shell;
using System.Collections.Generic;
nam... | 364 |
https://github.com/Ludo444/platform/blob/master/src/Oro/Bundle/ApiBundle/Processor/Shared/SetDefaultOrdering.php | Github Open Source | Open Source | MIT | null | platform | Ludo444 | PHP | Code | 141 | 432 | <?php
namespace Oro\Bundle\ApiBundle\Processor\Shared;
use Doctrine\Common\Collections\Criteria;
use Oro\Bundle\ApiBundle\Processor\Context;
use Oro\Bundle\ApiBundle\Util\DoctrineHelper;
use Oro\Component\ChainProcessor\ContextInterface;
use Oro\Component\ChainProcessor\ProcessorInterface;
/**
* Sets ordering be en... | 2,927 |
https://github.com/DionMontolalu/Portal-Web-University/blob/master/ika_admin/.htaccess | Github Open Source | Open Source | MIT | 2,019 | Portal-Web-University | DionMontolalu | ApacheConf | Code | 5 | 19 | RewriteEngine On
RewriteRule Admin.linux login.php
| 7,944 |
https://github.com/typeless-js/typeless/blob/master/examples/src/code-splitting/features/subB/components/SubBView.tsx | Github Open Source | Open Source | MIT | 2,020 | typeless | typeless-js | TSX | Code | 59 | 144 | import React from 'react';
import { useActions } from 'typeless';
import { SubBActions, getSubBState } from '../interface';
export function SubBView() {
const { decrease } = useActions(SubBActions);
const { counter } = getSubBState.useState();
return (
<div>
Module B. <br />
Counter {counter} <b... | 13,758 |
https://github.com/TsunamiNori/DEADCELL-CSGO/blob/master/csgo/sdk/interfaces/i_client_entity.h | Github Open Source | Open Source | MIT | 2,022 | DEADCELL-CSGO | TsunamiNori | C | Code | 25 | 90 | #pragma once
#include "i_client_unknown.h"
#include "i_client_renderable.h"
#include "i_client_networkable.h"
class i_client_entity : public i_client_unknown, public i_client_renderable, public i_client_networkable {
public:
virtual void release() = 0;
};
| 33,922 |
https://github.com/t3643797/ZrAdmin.NET/blob/master/ZR.Service/System/IService/ISysDeptService.cs | Github Open Source | Open Source | MIT | 2,021 | ZrAdmin.NET | t3643797 | C# | Code | 51 | 240 | using System;
using System.Collections.Generic;
using System.Text;
using ZR.Model.System;
using ZR.Model.Vo.System;
namespace ZR.Service.System.IService
{
public interface ISysDeptService : IBaseService<SysDept>
{
List<SysDept> GetSysDepts(SysDept dept);
string CheckDeptNameUnique(SysDept dept... | 44,940 |
https://github.com/raresraf/senpai/blob/master/sources/args.c | Github Open Source | Open Source | MIT | 2,021 | senpai | raresraf | C | Code | 443 | 1,604 | /*
* args.c
*
* Licensed under MIT license
*
*/
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "config.h"
#include "args.h"
#include "util.h"
#include "text.h"
args_t *args_init(args_t *args)
{
if (args == NULL)
return (retstr(NULL, TEXT_ARGS_INIT_FAILURE, __FILE__... | 24,081 |
https://github.com/Awful/Awful.appx/blob/master/Awful.Core/Entities/PostIcons/PostIconCategory.cs | Github Open Source | Open Source | MIT | null | Awful.appx | Awful | C# | Code | 114 | 276 | // <copyright file="PostIconCategory.cs" company="Drastic Actions">
// Copyright (c) Drastic Actions. All rights reserved.
// </copyright>
namespace Awful.Core.Entities.PostIcons
{
/// <summary>
/// Something Awful Post Icon Category.
/// </summary>
public class PostIconCategory
{
/// <sum... | 40,103 |
https://github.com/OpenUpSA/biz-portal/blob/master/biz_portal/apps/portal/migrations/0011_auto_20190712_1334.py | Github Open Source | Open Source | MIT | 2,019 | biz-portal | OpenUpSA | Python | Code | 37 | 191 | # Generated by Django 2.2.2 on 2019-07-12 13:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("portal", "0010_auto_20190712_1331")]
operations = [
migrations.RenameField(
model_name="business",
old_name="physical_address",
... | 19,637 |
https://github.com/loctran016/moon-design/blob/master/next-docs/public/examples/button/Animations.tsx | Github Open Source | Open Source | MIT | 2,022 | moon-design | loctran016 | TypeScript | Code | 41 | 121 | import { Button } from '@heathmont/moon-components';
const Example = () => (
<div className="flex justify-around w-full">
<Button progress variant="primary">
Default
</Button>
<Button success variant="primary">
Default
</Button>
<Button oops variant="primary">
Default
</Butt... | 47,112 |
https://github.com/aristotelis-metsinis/hex-to-unicode/blob/master/ucs2hextoconsole.py | Github Open Source | Open Source | MIT | null | hex-to-unicode | aristotelis-metsinis | Python | Code | 87 | 214 | #!/usr/bin/env python3
#
# Usage :
#
# $ python3 ./ucs2hextoconsole.py "062706440633064406270645002006390644064a06430645"
# السلام عليكم
# $
#
# May peace be upon you | As-salamu Alaikum | السلام عليكم
#
import binascii, sys
import pdb
if len( sys.argv ) != 2:
print( "Missing parameter. Please supply the hex string ... | 40,579 |
https://github.com/Deepbody-me/methylprep/blob/master/tests/utils/test_files.py | Github Open Source | Open Source | MIT | 2,020 | methylprep | Deepbody-me | Python | Code | 249 | 1,185 | # LIb
from io import StringIO, BytesIO
from pathlib import Path
from unittest.mock import patch
import pytest
# App
from methylprep.utils.files import (
download_file,
ensure_directory_exists,
read_and_reset,
)
@pytest.fixture(scope='function')
def file_obj():
# setup code
infile = StringIO()
... | 42,498 |
https://github.com/SyncMonk-Technologies/OpenNSL/blob/master/include/sal/driver.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | OpenNSL | SyncMonk-Technologies | C | Code | 403 | 848 | /*********************************************************************
*
* (C) Copyright Broadcom Corporation 2013-2017
*
* 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.... | 20,291 |
https://github.com/patrickpl/leitstand-ui/blob/master/leitstand-ui-model/src/main/java/io/leitstand/ui/model/ViewModelProperty.java | Github Open Source | Open Source | Apache-2.0 | null | leitstand-ui | patrickpl | Java | Code | 149 | 455 | /*
* (c) RtBrick, Inc - All rights reserved, 2015 - 2019
*/
package io.leitstand.ui.model;
import static io.leitstand.commons.model.BuilderUtil.assertNotInvalidated;
import io.leitstand.commons.model.ValueObject;
public class ViewModelProperty extends ValueObject {
public static class Builder {
private Vi... | 32,935 |
https://github.com/MatthewJHBerry/topaz/blob/master/scripts/globals/items/warrior_die.lua | Github Open Source | Open Source | FTL | null | topaz | MatthewJHBerry | Lua | Code | 24 | 100 | -----------------------------------------
-- ID: 5477
-- Warrior Die
-- Teaches the job ability Fighter's Roll
-----------------------------------------
function onItemCheck(target)
return target:canLearnAbility(tpz.jobAbility.FIGHTERS_ROLL)
end
function onItemUse(target)
target:addLearnedAbility(tpz.jobAbili... | 6,182 |
https://github.com/hwbeeson/wepppy/blob/master/wepppy/wepp/soils/soilsdb/data/Database/nd/LINDAAS(SICL).sol | Github Open Source | Open Source | BSD-3-Clause | null | wepppy | hwbeeson | Solidity | Code | 78 | 239 | 95.1
# This WEPP soil input file was made using USDA-SCS Soil-5 (1992) data
# base. Assumptions: soil albedo=0.23, initial sat.=0.75. If you have
# any question, please contact Reza Savabi, Ph: (317)-494-5051
# Soil Name: LINDAAS Rec. ID: ND0005 Tex.:silty clay loam
1 1
'LINDAAS' 'S... | 17,272 |
https://github.com/cocoatomo/asakusafw/blob/master/testing-project/asakusa-test-inprocess/src/test/java/com/asakusafw/testdriver/inprocess/MockTestExecutionPlanBuilder.java | Github Open Source | Open Source | Apache-2.0 | null | asakusafw | cocoatomo | Java | Code | 304 | 733 | /**
* Copyright 2011-2017 Asakusa Framework 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... | 2,593 |
https://github.com/ironmonk88/foundryvtt-starfinder/blob/master/src/module/engine/engine.js | Github Open Source | Open Source | MIT, ISC | 2,021 | foundryvtt-starfinder | ironmonk88 | JavaScript | Code | 128 | 374 |
import { Context } from './context.js';
import { ClosureRegistry } from './closure/closure-registry.js';
export default class Engine {
constructor() {
this.services = {};
this.closures = new ClosureRegistry(this);
}
add(definition, options) {
const closureOrClosures = this.closure... | 30,524 |
https://github.com/arvinbera/teachyleaferp_amit/blob/master/app/Models/StudentRolls.php | Github Open Source | Open Source | MIT | null | teachyleaferp_amit | arvinbera | PHP | Code | 360 | 1,255 | <?php
namespace App\Models;
use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;
/**
* Class StudentRolls
* @package App\Models
* @version October 27, 2021, 12:09 pm UTC
*
* @property string $name
* @property string $email
* @property stri... | 8,124 |
https://github.com/MitulMistry/mm-webdev-portfolio-v3/blob/master/src/appData.js | Github Open Source | Open Source | 0BSD | 2,022 | mm-webdev-portfolio-v3 | MitulMistry | JavaScript | Code | 184 | 541 | module.exports = {
profileText: {
name: "Mitul Mistry",
title: "Full Stack Web Developer",
subtitle: "I'm a software engineer with experience in Rails and React.",
bio: [
"I take web applications from design to implementation and I'm comfortable working in both the front and back end.",
"I... | 2,005 |
https://github.com/bbqgophers/qpid/blob/master/vendor/github.com/hybridgroup/gobot/platforms/gpio/led_driver_test.go | Github Open Source | Open Source | Apache-2.0, MIT | 2,017 | qpid | bbqgophers | Go | Code | 174 | 813 | package gpio
import (
"errors"
"testing"
"github.com/hybridgroup/gobot/gobottest"
)
func initTestLedDriver(conn DigitalWriter) *LedDriver {
testAdaptorDigitalWrite = func() (err error) {
return nil
}
testAdaptorPwmWrite = func() (err error) {
return nil
}
return NewLedDriver(conn, "bot", "1")
}
func Tes... | 16,223 |
https://github.com/tomrom95/mapbox-navigation-android/blob/master/app/src/main/java/com/mapbox/services/android/navigation/testapp/example/ui/callout/ExampleCalloutManager.java | Github Open Source | Open Source | MIT | 2,019 | mapbox-navigation-android | tomrom95 | Java | Code | 404 | 1,974 | package com.mapbox.services.android.navigation.testapp.example.ui.callout;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.os.AsyncTask;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Text... | 12,289 |
https://github.com/milenevlacerda/howCanIHelp/blob/master/api/src/routes/login.js | Github Open Source | Open Source | MIT | 2,017 | howCanIHelp | milenevlacerda | JavaScript | Code | 37 | 119 | const express = require('express');
const LoginController = require('../controllers/LoginController');
const LoginSchema = require('./schemas/LoginSchema');
const router = express.Router({ mergeParams: true });
/* POST /login */
router.post('/', LoginSchema.post, LoginController.post);
/* DELETE /login/:loginId */
/... | 50,108 |
https://github.com/blocklytics/foam-subgraph/blob/master/src/mapping.ts | Github Open Source | Open Source | MIT | 2,019 | foam-subgraph | blocklytics | TypeScript | Code | 737 | 3,467 | import { BigInt, log } from "@graphprotocol/graph-ts"
import {
RegistryContract,
_Application,
_Challenge,
_Deposit,
_Withdrawal,
_ApplicationWhitelisted,
_ListingWithdrawn,
_TouchAndRemoved,
_ChallengeFailed,
_ChallengeSucceeded,
_RewardClaimed
} from "../generated/RegistryContract/RegistryContra... | 11,191 |
https://github.com/CrypticSwarm/mootools-depender/blob/master/django/mootools/depender/views.py | Github Open Source | Open Source | MIT | 2,009 | mootools-depender | CrypticSwarm | Python | Code | 533 | 1,283 | #!/usr/bin/env python2.5
#
# JavaScript depender. Loads and concatenates necessary
# JavaScript files.
import logging
import datetime
import re
from django.http import HttpResponse, HttpResponseNotModified
from django.conf import settings
from depender.core import Depender
LOG = logging.getLogger(__name__)
def ma... | 28,574 |
https://github.com/badgerious/ompi/blob/master/opal/mca/common/ofi/common_ofi.h | Github Open Source | Open Source | BSD-3-Clause-Open-MPI | 2,018 | ompi | badgerious | C | Code | 120 | 488 | /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2015 Intel, Inc. All rights reserved.
* Copyright (c) 2017 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2020 Triad National Security, LLC. All rights
* ... | 9,647 |
https://github.com/smithersstonerandal/libphonenumber/blob/master/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/RangeTreeFactorizer.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | libphonenumber | smithersstonerandal | Java | Code | 1,083 | 2,385 | /*
* Copyright (C) 2017 The Libphonenumber 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 l... | 46,760 |
https://github.com/RichardP932/mod-uk-design-system/blob/master/packages/react-component-library/src/components/TopLevelNavigation/Masthead/partials/StyledOptions.tsx | Github Open Source | Open Source | Apache-2.0 | 2,021 | mod-uk-design-system | RichardP932 | TypeScript | Code | 17 | 51 | import styled from 'styled-components'
export const StyledOptions = styled.div`
display: flex;
a:hover {
text-decoration: none;
}
`
| 9,737 |
https://github.com/sun3bow/dii/blob/master/tests/Fake/TestFoo.php | Github Open Source | Open Source | MIT | 2,021 | dii | sun3bow | PHP | Code | 10 | 29 | <?php
namespace Koriym\Dii;
final class TestFoo implements FooInterface
{
}
| 9,363 |
https://github.com/achristensen6/tvOS130Headers/blob/master/Applications/TVSettings/TVSettingsMainViewController.h | Github Open Source | Open Source | MIT | 2,019 | tvOS130Headers | achristensen6 | Objective-C | Code | 106 | 397 | /*
* This header is generated by classdump-dyld 1.0
* on Tuesday, November 5, 2019 at 1:59:23 PM Mountain Standard Time
* Operating System: Version 13.0 (Build 17J586)
* Image Source: /Applications/TVSettings.app/TVSettings
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/
#import <T... | 13,719 |
https://github.com/alessadge/UXFinal/blob/master/src/Componentes/Login.js | Github Open Source | Open Source | Apache-2.0 | null | UXFinal | alessadge | JavaScript | Code | 219 | 957 | import React, { Component } from 'react'
import firebase, { app } from 'firebase';
import '../App.css';
import '../App.js';
import swal from 'sweetalert';
import './Nav.js';
import Nav from './Nav.js';
class Login extends Component {
constructor(props){
super(props);
this.login = this.login.bind(this);
... | 36,164 |
https://github.com/c0fec0de/anytree/blob/master/anytree/importer/jsonimporter.py | Github Open Source | Open Source | Apache-2.0 | 2,022 | anytree | c0fec0de | Python | Code | 174 | 556 | # -*- coding: utf-8 -*-
import json
from .dictimporter import DictImporter
class JsonImporter:
def __init__(self, dictimporter=None, **kwargs):
"""
Import Tree from JSON.
The JSON is read and converted to a dictionary via `dictimporter`.
Keyword Arguments:
dictimport... | 984 |
https://github.com/dilan80/hms/blob/master/application/controllers/login.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,018 | hms | dilan80 | PHP | Code | 103 | 404 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class login extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->library('session');
$this->load->helper('cookie');
$this->load->helper('form');
$this->load->model('userModel', '', TRUE);
$this-... | 9,349 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.