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/mmooksarin/project/blob/master/listnameuser_delete.php | Github Open Source | Open Source | CC-BY-3.0 | null | project | mmooksarin | PHP | Code | 41 | 161 | <?php
require('dbconnect.php');
if (isset($_GET['id_listname_user'])){
$id_listname_user = $_GET['id_listname_user'];
$sql = "DELETE from formlistnameuser where id_listname_user = 'id_listname_user'";
if ($conn->query($sql) === TRUE) {
echo "ลบข้อมูลสำเร็จ";
} else {
echo "Error: " . $sql . "<br>" . $conn->err... | 3,949 |
https://github.com/ngammoudi/ldap-configuration/blob/master/webapp/src/main/webapp/js/ldap.js | Github Open Source | Open Source | MIT | 2,015 | ldap-configuration | ngammoudi | JavaScript | Code | 423 | 2,901 | $(document).ready(function(){
$("#actionfail").hide();
$("#actionsuccess").hide();
$("#accordion").accordion({
heightStyle: 'content'
});
$('.input_control').prop('checked', false);
$('.input_control').click(function(){
if($('input[name='+ $(this).prop('value')+']').prop('disabled') =... | 14,569 |
https://github.com/ovidiubute/devblog/blob/master/config.js | Github Open Source | Open Source | MIT | 2,019 | devblog | ovidiubute | JavaScript | Code | 42 | 159 | module.exports = {
title: "Tech blog", // Required
author: 'Ovidiu Bute', // Required
description: 'Senior developer',
primaryColor: '#3498db', // Required
showHeaderImage: true,
showShareButtons: true,
postsPerPage: 5, // Required
social: {
website: 'https://ovidiu.dev',
github: 'https://github... | 8,116 |
https://github.com/mdresch/cba-mattercenter/blob/master/tree/master/cloud/src/solution/Microsoft.Legal.MatterCenter.Web/wwwroot/app/directives/drag.directive.js | Github Open Source | Open Source | MIT | 2,019 | cba-mattercenter | mdresch | JavaScript | Code | 40 | 179 |
var matterMain = angular.module("matterMain");
matterMain.directive('draggable', function(){
return function(scope, element){
var el = element[0];
el.draggable = true;
el.addEventListener(
'dragstart',
function(e){
e.dataTransfer.effectAllowed='move... | 42,979 |
https://github.com/nebulx29/LearnPython/blob/master/misc/modcsv.py | Github Open Source | Open Source | Apache-2.0 | null | LearnPython | nebulx29 | Python | Code | 30 | 139 | import csv
csv.register_dialect('myformat', delimiter=';', quoting=csv.QUOTE_NONNUMERIC, skipinitialspace=True, quotechar='"')
print(csv.list_dialects())
x = []
y = []
with open("network_inputs_draft4.csv") as f:
reader = csv.reader(f, 'myformat')
for row in reader:
x.append(row[0])
y.append(... | 15,356 |
https://github.com/tsybenko/timespan/blob/master/src/Timeline.php | Github Open Source | Open Source | MIT | 2,021 | timespan | tsybenko | PHP | Code | 468 | 1,139 | <?php
namespace Tsybenko\TimeSpan;
class Timeline
{
protected int $start = 0;
protected int $end = 0;
/** @var Span[] */
protected array $spans = [];
/**
* Returns starting timestamp of the timeline
*
* @return int
*/
public function getStart(): int
{
return $... | 50,460 |
https://github.com/Ritesh1991/mobile_app_server/blob/master/rocketchat/client/startup/unread.coffee | Github Open Source | Open Source | MIT | null | mobile_app_server | Ritesh1991 | CoffeeScript | Code | 380 | 1,453 | Meteor.startup ->
# 这个方式可以后面整合到某个lib文件下,避免多个地方重复编写
sendPersonalMessageWithURLToRoom = (message, url, title, description, mainImageUrl, roomName)->
url = if url? then url else 'http://www.tiegushi.com/'
#alink = document.createElement 'a'
#alink.href = url
currentRoomId = Session.get('openedRoom')
... | 42,549 |
https://github.com/rumart/ps/blob/master/ESXi/check_3par-AluaRule.ps1 | Github Open Source | Open Source | MIT | 2,022 | ps | rumart | PowerShell | Code | 255 | 835 | <#
.SYNOPSIS
Script to check for the existence of a 3PAR ALUA rule on ESXi hosts
.DESCRIPTION
The script connects to a vCenter to get a list of ESXi hosts and then
connects to each of these to create an ESXCLI object which is used
to check for the existence of a custom 3PAR VMW_... | 19,884 |
https://github.com/timoneluo/SmsServer/blob/master/potato-service/src/main/java/io/potato/ts/service/SmsSendingRecordService.java | Github Open Source | Open Source | Apache-2.0 | null | SmsServer | timoneluo | Java | Code | 800 | 2,889 | package io.potato.ts.service;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.springframework.bean... | 12,901 |
https://github.com/i4oolish/mindspore/blob/master/mindspore/lite/src/runtime/runtime_api.h | Github Open Source | Open Source | Apache-2.0 | 2,020 | mindspore | i4oolish | C | Code | 220 | 671 | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 22,594 |
https://github.com/hm-software56/moh/blob/master/views/employee-level/report.php | Github Open Source | Open Source | BSD-3-Clause | 2,019 | moh | hm-software56 | PHP | Code | 863 | 7,774 | <?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use app\models\Ministry;
use kartik\select2\Select2;
use app\models\EmployeeLevel;
?>
<?php $form = ActiveForm::begin([]); ?>
<?php
echo $form->field($model, 'year')->textInput();
?>
<?php
echo $form->field($model,... | 22,386 |
https://github.com/anaswaratrajan/RocketMeet-client/blob/master/src/store/auth/action.ts | Github Open Source | Open Source | MIT | 2,022 | RocketMeet-client | anaswaratrajan | TypeScript | Code | 97 | 214 | import { SET_LOGIN_STATE, RESET_LOGIN_STATE } from "./type";
// auth actions to dispatch from login components
// Usage: - import to desired components
// - `Usedispatch()` from "react-redux" to dispatch :D
export const login = ({
displayName,
username,
token,
}: {
displayName: string | null;
username: str... | 9,339 |
https://github.com/firechip/jekyll-theme/blob/master/_sass/@mozilla-protocol/core/protocol/css/components/_menu-item.scss | Github Open Source | Open Source | MIT | 2,020 | jekyll-theme | firechip | SCSS | Code | 268 | 1,107 | // This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
@import '../includes/lib';
$icon-size: 24px;
.mzp-c-menu-item {
border-radius: $border-radius-xs;
margin-bo... | 7,028 |
https://github.com/TomasTomecek/kubernetes-python/blob/master/kubernetes/client/models/v1beta1_custom_resource_definition_spec.py | Github Open Source | Open Source | Apache-2.0 | null | kubernetes-python | TomasTomecek | Python | Code | 1,235 | 3,151 | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | 25,015 |
https://github.com/fchanson/node-red-contrib-rpi-imagecapture/blob/master/imagecapture/imagecapture.js | Github Open Source | Open Source | MIT | null | node-red-contrib-rpi-imagecapture | fchanson | JavaScript | Code | 140 | 709 |
module.exports = function(RED) {
"use strict";
var fs = require('fs');
function Capture(n) {
RED.nodes.createNode(this,n);
this.name = n.name;
this.configfile = n.configfile;
var spawn = require('child_process').spawn;
var child;
var node = this;
... | 46,768 |
https://github.com/740326093/-/blob/master/YBL365/Class/Goods/GoodsDetail/View/YBLReferenceItemLineCollectionView.h | Github Open Source | Open Source | MIT | 2,022 | - | 740326093 | C | Code | 28 | 93 | //
// YBLReferenceCollectionView.h
// YBL365
//
// Created by 乔同新 on 2017/3/1.
// Copyright © 2017年 乔同新. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YBLReferenceItemLineCollectionView : UICollectionView
@end
| 49,273 |
https://github.com/73/wireguard-indicator/blob/master/po/ca.po | Github Open Source | Open Source | MIT | 2,021 | wireguard-indicator | 73 | Gettext Catalog | Code | 542 | 1,633 | # SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: WireGuard Indicator\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-09-20 07:27+0... | 23,321 |
https://github.com/echoprotocol/echojs-lib/blob/master/types/interfaces/objects/eth_sidechain.d.ts | Github Open Source | Open Source | MIT | 2,021 | echojs-lib | echoprotocol | TypeScript | Code | 56 | 199 | export interface ERC20DepositTokenObject {
id: string;
account: string;
erc20_addr: string;
value: string;
transaction_hash: string;
is_approved: boolean;
is_sent: boolean;
echo_block_number: number;
approves: string[];
extensions: unknown[];
}
export interface ERC20WithdrawTokenObject {
id: string;
withdr... | 20,286 |
https://github.com/xl-vision/xl-vision/blob/master/packages/react/src/Input/__doc__/Group.tsx | Github Open Source | Open Source | MIT | 2,023 | xl-vision | xl-vision | TSX | Code | 83 | 255 | import { useState } from 'react';
import { Button, Input } from '@xl-vision/react';
const { Group } = Input;
const Demo = () => {
const [value, handleValue] = useState<string>();
return (
<div>
<Group size='small'>
<Input addonBefore='URL' placeholder='Basic usage' value={value} onChange={handl... | 45,516 |
https://github.com/Sophia-Okito/codewars-handbook/blob/master/kata/6-kyu/pizza-pieces/main/Pizza.java | Github Open Source | Open Source | MIT | 2,022 | codewars-handbook | Sophia-Okito | Java | Code | 26 | 45 | interface Pizza {
static int maxPizza(int cut) {
return cut < 0 ? -1 : cut * (cut + 1) / 2 + 1;
}
}
| 35,425 |
https://github.com/abezpalov/anodos.ru/blob/master/anodos/trader/migrations/0004_auto_20210308_1418.py | Github Open Source | Open Source | MIT | 2,022 | anodos.ru | abezpalov | Python | Code | 76 | 408 | # Generated by Django 3.0.6 on 2021-03-08 14:18
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('trader', '0003_auto_20210213_0824'),
]
operations = [
migrations.AlterField(
model_... | 30,545 |
https://github.com/codenesium/blog/blob/master/code/NSwagClientGeneration/Controllers/ClientController.cs | Github Open Source | Open Source | MIT | null | blog | codenesium | C# | Code | 138 | 596 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using NSwag;
using NSwag.CodeGeneration.CSharp;
using NSwag.CodeGeneration.TypeScript;
namespace NSwagClientGenera... | 6,561 |
https://github.com/dimitar9111/Softuni-OOP-Advanced/blob/master/01.Generics Excercise/03.GenericSwapMethod/Box.cs | Github Open Source | Open Source | MIT | null | Softuni-OOP-Advanced | dimitar9111 | C# | Code | 30 | 84 | public class Box<T>
{
public Box(T type)
{
this.Type = type;
}
public T Type { get; private set; }
public override string ToString()
{
return $"{this.Type.GetType().FullName}: {this.Type}";
}
}
| 43,028 |
https://github.com/particle-iot/spark-sdk-android/blob/master/example_app/src/main/java/io/particle/cloudsdk/example_app/DeviceInfoActivity.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | spark-sdk-android | particle-iot | Java | Code | 281 | 1,274 | package io.particle.cloudsdk.example_app;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.... | 46,080 |
https://github.com/pehedepa/kender/blob/master/Skylab-Coders/3-FinalProject/frontend/src/redux/reducers/productListReducer.test.js | Github Open Source | Open Source | MIT | null | kender | pehedepa | JavaScript | Code | 174 | 437 | import ProductListReducer from './productListReducer'
import actionTypes from '../actions/actionTypes'
describe('Given a ProductListReducer function', () => {
let state
beforeEach(() => {
state = {}
})
describe('When invoked with its parameters, it enters case GET_ALL_PRODUCTS', () => {
test('Then shou... | 20,970 |
https://github.com/dpronin/conan-center-index/blob/master/recipes/crashpad/all/patches/cci.20210507-0005-allow-all-archs.patch | Github Open Source | Open Source | MIT | 2,021 | conan-center-index | dpronin | null | Spoken | 153 | 390 | --- third_party/mini_chromium/mini_chromium/build/config/BUILD.gn
+++ third_party/mini_chromium/mini_chromium/build/config/BUILD.gn
@@ -193,7 +193,7 @@
"arm64",
]
} else {
- assert(false, "Unsupported architecture")
+ print("Unknown architecture -> assume conan knows how to hand... | 16,161 |
https://github.com/victorfisac/Dissolver/blob/master/source/Assets/Project Resources/Models/Characters/Tank/tank_attack_02.anim | Github Open Source | Open Source | MIT | 2,022 | Dissolver | victorfisac | Unity3D Asset | Code | 20,000 | 76,229 | %YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!74 &7400000 AnimationClip: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_Name: tank_attack_02 serializedVersion: 6 m_Legacy: 0 m_Compressed: 0 m_UseHighQualityCurve: 1 m_RotationCurves: - curve: serializedVersion: 2 m_Curve: - seri... | 16,808 |
https://github.com/mediative/sangria-codegen/blob/master/.gitignore | Github Open Source | Open Source | Apache-2.0 | 2,017 | sangria-codegen | mediative | Ignore List | Code | 10 | 50 | target/
.DS_Store
.idea/
.iml
# Ensime
.ensime*
bin/.coursier
bin/.scalafmt-*
bin/.sangria-codegen-*
| 28,064 |
https://github.com/ZaWertun/ImapTray/blob/master/Configuration.cs | Github Open Source | Open Source | MIT | null | ImapTray | ZaWertun | C# | Code | 113 | 337 | using System;
using System.Linq;
using System.Runtime.Serialization;
namespace ImapTray
{
[DataContract]
class Configuration
{
[DataMember(Name = "accounts")]
private Account[] _accounts;
public Account[] Accounts
{
get { return _accounts; }
}
... | 8,659 |
https://github.com/thighmann/sipapi/blob/master/src/main/java/rps1.java | Github Open Source | Open Source | MIT | null | sipapi | thighmann | Java | Code | 5 | 32 | package me.alexthiemann.rps;
import java.uhl.concurrent.ThreadLocalRandom;
class
| 28,386 |
https://github.com/bargle/SympEngine/blob/master/Projects/Project-L/Game.h | Github Open Source | Open Source | MIT | null | SympEngine | bargle | C | Code | 103 | 344 | #ifndef _GAME_H_
#define _GAME_H_
#include "gameinterface.h"
#include "VideoInterface3D.h"
class SympSystem;
enum movement_e {
MOVE_NONE = 0,
MOVE_FORWARD,
MOVE_BACKWARD,
MOVE_RIGHT,
MOVE_LEFT,
MOVE_JUMP,
MOVE_JET,
};
class MyGame : public IGameInterface{
public:
MyGame();
~MyGame();
virtual int OnStartu... | 7,867 |
https://github.com/neevaco/TensorRT/blob/master/samples/python/uff_custom_plugin/sample.py | Github Open Source | Open Source | BSD-3-Clause, MIT, ISC, Apache-2.0, BSD-2-Clause, LicenseRef-scancode-unknown-license-reference | 2,022 | TensorRT | neevaco | Python | Code | 525 | 1,575 | #
# SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# 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... | 20,522 |
https://github.com/Camiloasc1/IntelligentSystemsUNAL/blob/master/IA/src/unalcol/agents/examples/squares/SII_20152/minotauro/SquaresPlayer.java | Github Open Source | Open Source | MIT | null | IntelligentSystemsUNAL | Camiloasc1 | Java | Code | 466 | 1,326 |
package unalcol.agents.examples.squares.SII_20152.minotauro;
import unalcol.agents.Action;
import unalcol.agents.AgentProgram;
import unalcol.agents.Percept;
import unalcol.agents.examples.squares.Squares;
/**
* @author Minotauro
*/
public class SquaresPlayer implements AgentProgram
{
private static final long... | 46,442 |
https://github.com/suluner/tencentcloud-sdk-cpp/blob/master/live/include/tencentcloud/live/v20180801/model/DescribeRecordTaskResponse.h | Github Open Source | Open Source | Apache-2.0 | 2,022 | tencentcloud-sdk-cpp | suluner | C | Code | 229 | 924 | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 2,742 |
https://github.com/shivakar/dotfiles-server/blob/master/bash/bashrc | Github Open Source | Open Source | MIT | 2,018 | dotfiles-server | shivakar | Shell | Code | 196 | 492 | #.bashrc
# Bash Configuration v1.0
#
# Create Date: 2018-04-09
#
# Modified Dates:
#
#
# Don't load this file if this is not an interactive session
[ -z "$PS1" ] && return
#------------------------------------------------------------------------------
# Shell options
#------------------------------------------------... | 22,473 |
https://github.com/tilark/geeknetcorestudy/blob/master/DISimpleStudy/Services/MyTransientService.cs | Github Open Source | Open Source | MIT | null | geeknetcorestudy | tilark | C# | Code | 22 | 72 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace DISimpleStudy.Services
{
public interface IMyTransientService { }
public class MyTransientService:IMyTransientService
{
}
}
| 26,613 |
https://github.com/jsbravo-sw/serviceApp/blob/master/config-google.js | Github Open Source | Open Source | MIT | null | serviceApp | jsbravo-sw | JavaScript | Code | 165 | 558 | const passport = require("passport");
const GoogleStrategy = require("passport-google-oauth20").Strategy;
const session = require("express-session");
const mu = require("./db/MongoUtils.js");
const env = require("node-env-file");
env(".env");
const configureAuthGoogle = (app) => {
// Configure the Google Strategy
... | 42,781 |
https://github.com/qvl/homebrew-tap/blob/master/Formula/httpsyet.rb | Github Open Source | Open Source | MIT | 2,021 | homebrew-tap | qvl | Ruby | Code | 65 | 513 | # This file was generated by GoReleaser. DO NOT EDIT.
class Httpsyet < Formula
desc "Find links you can update to HTTPS"
homepage "https://qvl.io/httpsyet"
version "0.2.1"
bottle :unneeded
if OS.mac?
url "https://github.com/qvl/httpsyet/releases/download/v0.2.1/httpsyet_0.2.1_mac_64bit.tar.gz"
sha256... | 34,396 |
https://github.com/FriedrichWilhelmNietzsche/LucaHome-WPFApplication/blob/master/Data/Properties/Settings.Designer.cs | Github Open Source | Open Source | MIT | 2,019 | LucaHome-WPFApplication | FriedrichWilhelmNietzsche | C# | Code | 242 | 1,130 | //------------------------------------------------------------------------------
// <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>
//--... | 12,723 |
https://github.com/PanTomko/ludum-dare-42-3.0.6/blob/master/.import/text-arrow-small.png-de1c9dbdd2004d62bc99541e162b8bc2.md5 | Github Open Source | Open Source | MIT | 2,018 | ludum-dare-42-3.0.6 | PanTomko | null | Spoken | 2 | 54 | source_md5="44aef1c96818c3be44d337d6815b455d"
dest_md5="0fcd51d19935770b22445f0015720f5d"
| 21,477 |
https://github.com/noplisu/GGJ2016/blob/master/Assets/Tiled2Unity/Meshes/level01.obj | Github Open Source | Open Source | MIT | 2,016 | GGJ2016 | noplisu | Wavefront Object | Code | 20,000 | 87,679 | # Wavefront OBJ file automatically generated by Tiled2Unity # Vertices (Count = 1089) v 0 -0.639999985694885 0 v -0.639999985694885 -0.639999985694885 0 v -0.639999985694885 0 0 v 0 0 0 v -1.27999997138977 -0.639999985694885 0 v -1.27999997138977 0 0 v -1.91999995708466 -0.639999985694885 0 v -1.91999995708466 0 0 v -... | 50,061 |
https://github.com/rlugojr/plunker_run/blob/master/middleware/subdomain.coffee | Github Open Source | Open Source | MIT | 2,018 | plunker_run | rlugojr | CoffeeScript | Code | 77 | 305 | nconf = require("nconf")
host = nconf.get("host")
hostEsc = host.replace(/[-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&")
plunkRe = new RegExp("^([0-9a-zA-Z]+)\.plunk\.#{hostEsc}$")
previewRe = new RegExp("^([0-9a-zA-Z]+)\.#{hostEsc}$")
recapitalize = (id) ->
id.replace /([a-z]/, ""
module.exports.middleware = (config... | 489 |
https://github.com/devtunnel1/ui-kit-react-13/blob/master/src/lib/components/icons/status/MobileEUMError.js | Github Open Source | Open Source | MIT | null | ui-kit-react-13 | devtunnel1 | JavaScript | Code | 52 | 274 | import React from 'react'
import SvgIcon from '@material-ui/core/SvgIcon'
function MobileEUMError (props) {
return (
<SvgIcon {...props}>
<path className="st0" d="M11.3 19.1H8.8V3.9h7.3v8.2h1.8V3.6c0-.9-.6-1.6-1.4-1.6H8.4C7.6 2 7 2.7 7 3.6v15.8c0 .9.6 1.6 1.4 1.6h2.9v-1.9z"/><path className="st0" d="M10.9 ... | 52,347 |
https://github.com/compomics/icelogo/blob/master/src/main/java/com/compomics/icelogo/gui/graph/SequenceLogoComponent.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | icelogo | compomics | Java | Code | 1,293 | 5,019 | package com.compomics.icelogo.gui.graph;
import com.compomics.icelogo.core.data.MainInformationFeeder;
import com.compomics.icelogo.core.data.RegulatedEntity;
import com.compomics.icelogo.core.data.RegulatedPosition;
import com.compomics.icelogo.core.enumeration.ColorScheme;
import com.compomics.icelogo.core.enumerati... | 21,769 |
https://github.com/edude545/system0/blob/master/src/main/java/net/ethobat/system0/registry/S0Commands.java | Github Open Source | Open Source | CC0-1.0 | null | system0 | edude545 | Java | Code | 145 | 661 | package net.ethobat.system0.registry;
import com.mojang.brigadier.Command;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import net.ethobat.system0.api.psionics.PsionicProfile;
import net.ethobat.system0.api.psionics.PsionicSchema;
import net.ethobat... | 30,251 |
https://github.com/bcl-lab-apps/EMRGENE/blob/master/hvsdk/Types/SessionCredential.cs | Github Open Source | Open Source | MS-PL | 2,018 | EMRGENE | bcl-lab-apps | C# | Code | 97 | 310 | // (c) Microsoft. All rights reserved
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace HealthVault.Foundation.Types
{
public partial class SessionCredential : IValidatable
{
public SessionCrede... | 42,352 |
https://github.com/xieweiAlex/LeetCode-Swift/blob/master/String/FindClosestPalindrome.swift | Github Open Source | Open Source | MIT | 2,022 | LeetCode-Swift | xieweiAlex | Swift | Code | 260 | 621 | /**
* Question Link: https://leetcode.com/problems/find-the-closest-palindrome/
* Primary idea: Five possible cases -- the numbers with digits less or greater than current number;
* the numbers with same digits' number but replication of the mutation
* (+1 or -1 if the original number itself is palindrom... | 31,799 |
https://github.com/ruixuantan/FourParts/blob/master/tests/test_processes/test_get_dyad_progression.py | Github Open Source | Open Source | MIT | null | FourParts | ruixuantan | Python | Code | 75 | 275 | from fourparts import Dyad, PreProcessor
from tests.samples import CHORALE_G_2PARTS_CSV
import pandas as pd
import pytest
def test_cases():
# Dyads should be able to be instantiated with
# Voice and its subtypes.
return [
(
pd.read_csv(CHORALE_G_2PARTS_CSV),
[
... | 43,583 |
https://github.com/IsekaiDev/WS-Packager/blob/master/view/base.tpl | Github Open Source | Open Source | MIT | null | WS-Packager | IsekaiDev | null | Spoken | 155 | 1,078 | <!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>{$smarty.const.WEB_TITLE}{block name="title"} - {$smarty.const.WEB_DESCRIPTION}{/block}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="IE=edge,chrome=1" http-equiv="X-... | 44,933 |
https://github.com/zxymike93/SICP/blob/master/chapter2/261.rkt | Github Open Source | Open Source | MIT | 2,022 | SICP | zxymike93 | null | Spoken | 103 | 278 | #lang sicp
;; Sets as ordered lists
(define (element-of-set? x set)
(cond [(null? set) false]
[(= x (car set)) true]
[(< x (car set)) false]
[else (element-of-set? x (cdr set))]))
(define (adjoin-set x set)
(define (adjoin x set1 set2)
(cond [(null? set1)
(append set2 (list... | 51,731 |
https://github.com/liyasthomas/liyasthomas.com/blob/master/src/components/AppHome.vue | Github Open Source | Open Source | MIT | 2,022 | liyasthomas.com | liyasthomas | Vue | Code | 8 | 32 | <template>
<div>
<AppLogo />
<ProfileIntroduction />
</div>
</template>
| 42,405 |
https://github.com/h4ck3rm1k3/federal-election-commission-aggregation-json-2011/blob/master/index/_record_type/_record_type/fec_version_v7_0_SH4/2011/20110411/721742.fec_1/a0a43db49acdde1a8c67229839b8ada579d81c7a.js | Github Open Source | Open Source | Unlicense | 2,013 | federal-election-commission-aggregation-json-2011 | h4ck3rm1k3 | JavaScript | Code | 1 | 36 | ../../../../../../../objects/a0/a43db49acdde1a8c67229839b8ada579d81c7a.js | 35,203 |
https://github.com/DDoublu/ASER/blob/master/test/vc/test_extraction.py | Github Open Source | Open Source | MIT | null | ASER | DDoublu | Python | Code | 333 | 1,438 | import ujson as json
import traceback
from pprint import pprint
from tqdm import tqdm
from aser.extract.eventuality_extractor import SeedRuleEventualityExtractor
from aser.extract.relation_extractor import SeedRuleRelationExtractor
from aser.extract.utils import sort_dependencies_position, parse_sentense_with_stanford
... | 21,226 |
https://github.com/gschizas/tab-organizer/blob/master/src/client/panel/ui/url-bar.js | Github Open Source | Open Source | MIT | null | tab-organizer | gschizas | JavaScript | Code | 273 | 1,056 | import * as dom from "../../../util/dom";
import * as mutable from "../../../util/mutable";
import { parse, minify } from "../../../util/url";
export const url_bar = mutable.make(null);
const top_style = dom.make_style({
// TODO hack to make it smoother when showing/hiding the URL bar
// TODO is this unneeded? m... | 35,301 |
https://github.com/manoalist/manoalist/blob/master/app/imports/ui/pages/Likes.jsx | Github Open Source | Open Source | MIT | 2,020 | manoalist | manoalist | null | Spoken | 322 | 960 | import React from 'react';
import { Meteor } from 'meteor/meteor';
import { _ } from 'meteor/underscore';
import { Container, Card, Header, Loader, Divider, Pagination, Icon } from 'semantic-ui-react';
import { withTracker } from 'meteor/react-meteor-data';
import PropTypes from 'prop-types';
import { Items } from '../... | 15,091 |
https://github.com/LeeYouRan/eduonline/blob/master/app/Http/Model/Profession.php | Github Open Source | Open Source | MIT | 2,018 | eduonline | LeeYouRan | PHP | Code | 63 | 303 | <?php
namespace App\Http\Model;
use Illuminate\Database\Eloquent\Model;
class Profession extends Model
{
/**
* 声明表名(注:laravel会自动加s所以自己声明覆盖)
* @var string
*/
protected $table = 'profession';
/**
* Unix时间戳形式填充创建于和更新于(注:模型默认托管时间但是是datetime类型)
* @var string
*/
protected $da... | 38,845 |
https://github.com/phlahut/Wonder.js/blob/master/lib/es6_global/src/api/detect/WorkerDetectAPI.js | Github Open Source | Open Source | MIT | 2,019 | Wonder.js | phlahut | JavaScript | Code | 63 | 243 |
import * as Curry from "../../../../../node_modules/bs-platform/lib/es6/curry.js";
import * as Worker$Wonderjs from "../../external/Worker.js";
import * as DomService$Wonderjs from "../../service/primitive/DomService.js";
import * as DetectService$Wonderjs from "../../service/primitive/DetectService.js";
function is... | 4,807 |
https://github.com/iomolecule/molecule/blob/master/molecule-api/src/test/java/com/iomolecule/util/UtilTests.java | Github Open Source | Open Source | Apache-2.0 | null | molecule | iomolecule | Java | Code | 154 | 411 | /*
* Copyright 2019 Vijayakumar Mohan
*
* 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... | 15,452 |
https://github.com/LemonBoy/zig/blob/master/deps/lld/test/ELF/mips-gprel-sec.s | Github Open Source | Open Source | LicenseRef-scancode-free-unknown, NCSA, MIT | 2,019 | zig | LemonBoy | Unix Assembly | Code | 123 | 379 | # REQUIRES: mips
# Check order of gp-relative sections, i.e. sections with SHF_MIPS_GPREL flag.
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
# RUN: ld.lld %t.o -shared -o %t.so
# RUN: llvm-readobj -s %t.so | FileCheck %s
.text
nop
.sdata
.word 0
# CHECK: Section {
# CHECK: ... | 27,674 |
https://github.com/dannygar/spp-partners/blob/master/src/Spp/Spp.Application.Services/SppDbService.cs | Github Open Source | Open Source | MIT | 2,018 | spp-partners | dannygar | C# | Code | 51 | 120 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*-------------------------------------------------------------------... | 408 |
https://github.com/soitun/taiga/blob/master/OpenSim/Framework/Communications/Services/HGLoginAuthService.cs | Github Open Source | Open Source | BSD-3-Clause | 2,011 | taiga | soitun | C# | Code | 1,135 | 3,456 | /*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must ... | 8,015 |
https://github.com/cbrumgard/jFUSE-ll/blob/master/src/jFUSE/lowlevel/lib/jFUSE_lowlevel_FLock.c | Github Open Source | Open Source | BSD-3-Clause | 2,021 | jFUSE-ll | cbrumgard | C | Code | 1,199 | 3,988 |
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <jni.h>
static inline struct flock *get_flock(JNIEnv *env, jobject jFlock)
{
/* Delcarations */
jclass class = NULL;
jfieldID fieldID = NULL;
/* Gets the field id from the object and class */
if(((class = (*env)->GetObjectClass(env, jFlock... | 9,351 |
https://github.com/primefaces/primefaces/blob/master/primefaces-integration-tests/src/main/java/org/primefaces/integrationtests/colorpicker/ColorPicker001.java | Github Open Source | Open Source | MIT | 2,023 | primefaces | primefaces | Java | Code | 302 | 697 | /*
* The MIT License
*
* Copyright (c) 2009-2023 PrimeTek Informatics
*
* 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
* ... | 37,301 |
https://github.com/sonpham08/dj_angular/blob/master/backend/env/lib/python3.6/site-packages/moment/parse.py | Github Open Source | Open Source | MIT | 2,019 | dj_angular | sonpham08 | Python | Code | 409 | 1,115 | from datetime import datetime
import dateparser
from .utils import STRING_TYPES
def parse_date_and_formula(*args):
"""Doesn't need to be part of core Moment class."""
date, formula = _parse_arguments(*args)
parse_settings = {"PREFER_DAY_OF_MONTH": "first"}
if date and formula:
if isinstance(... | 52,171 |
https://github.com/malachaifrazier/sharetribe/blob/master/app/assets/stylesheets/views/admin/_listing_shapes.css.scss | Github Open Source | Open Source | MIT | null | sharetribe | malachaifrazier | SCSS | Code | 7 | 30 | @import "mixins/all";
.listing-shape-label-disabled {
color: $border;
} | 22,376 |
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/PACT_com.pactforcure.app/javafiles/android/databinding/BaseObservable.java | Github Open Source | Open Source | MIT | 2,019 | AndroidPolicyAutomation | Andreas237 | Java | Code | 541 | 2,057 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.databinding;
// Referenced classes of package android.databinding:
// Observable, PropertyChangeRegistry
public class BaseObservable
... | 51,881 |
https://github.com/frc3512/AutonSelector/blob/master/host/cpp/autonselector/AutonSelector.cpp | Github Open Source | Open Source | BSD-3-Clause | null | AutonSelector | frc3512 | C++ | Code | 510 | 1,811 | // Copyright (c) 2016-2020 FRC Team 3512. All Rights Reserved.
#include "autonselector/AutonSelector.hpp"
#include <algorithm>
#include <fstream>
#include <memory>
#include <wpi/raw_ostream.h>
using namespace frc3512;
using namespace std::chrono_literals;
AutonSelector::AutonSelector(int port) : m_dsPort(port) {
... | 32,016 |
https://github.com/liveqmock/platform-tools-idea/blob/master/plugins/ui-designer/src/com/intellij/uiDesigner/designSurface/ListenerNavigateButton.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | platform-tools-idea | liveqmock | Java | Code | 669 | 2,395 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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... | 15,485 |
https://github.com/mahmoud-adel44/iti/blob/master/app/Http/Controllers/AuthController.php | Github Open Source | Open Source | MIT | null | iti | mahmoud-adel44 | PHP | Code | 143 | 551 | <?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
class AuthController extends Controller
{
public function register()
{
return view('auth.register');
}
public function handleRegister(Req... | 21,033 |
https://github.com/creatrixity/kay-portfolio/blob/master/src/components/Landing/Skills.js | Github Open Source | Open Source | MIT | null | kay-portfolio | creatrixity | JavaScript | Code | 238 | 891 | // @flow strict
import React, { useRef, useState } from 'react';
import cx from 'classnames';
import { useIntersectionObserver, useSiteMetadata } from '../../hooks';
import { getIcon } from '../../utils';
import styles from './Landing.module.scss';
import Entries from './Entries/Entries';
import EntryCard from './Entri... | 20,445 |
https://github.com/dalehenrich/rb/blob/master/repository/Refactoring-Spelling.package/RBInternalSpellChecker.class/class/createWordList..st | Github Open Source | Open Source | MIT | 2,021 | rb | dalehenrich | null | Spoken | 110 | 268 | private
createWordList: aString
"The input of the wordlist can be something from <http://wordlist.sourceforge.net/>."
"self createWordList: '/Users/renggli/Desktop/words.txt'"
| words input output zipped |
words := Set new.
input := FileStream fileNamed: aString.
input converter: Latin1TextConverter new.
[ inpu... | 41,925 |
https://github.com/miZyind/chronos/blob/master/src/client/reducers/index.ts | Github Open Source | Open Source | MIT | null | chronos | miZyind | TypeScript | Code | 30 | 69 | // Node module
import { combineReducers } from 'redux';
// Model
import { IStore } from '../models';
// Reducer
import main from '@reducers/main';
export default combineReducers<IStore>({
main
} as any);
| 30,140 |
https://github.com/stanford-mast/Silo/blob/master/include/silo.h | Github Open Source | Open Source | BSD-3-Clause, LicenseRef-scancode-unknown-license-reference | 2,018 | Silo | stanford-mast | C | Code | 570 | 981 | /*****************************************************************************
* Silo
* Multi-platform topology-aware memory management library.
* Supports multiple styles of NUMA-aware memory allocation.
*****************************************************************************
* Authored by Samuel Grossma... | 16,689 |
https://github.com/ianng89/airbnb-ruby-assessment/blob/master/app/models/user.rb | Github Open Source | Open Source | MIT | 2,016 | airbnb-ruby-assessment | ianng89 | Ruby | Code | 74 | 293 | require 'bcrypt'
class User < ActiveRecord::Base
validates :username, presence: true
validates :email, presence: true
validates_format_of :email, :with => /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/, message: "EMAIL NOT VALID", multiline: true
validates :first_name, presence: true
validates :last_name, pre... | 15,502 |
https://github.com/dsupriya/LeetCode/blob/master/283. Move Zeroes.java | Github Open Source | Open Source | MIT | 2,021 | LeetCode | dsupriya | Java | Code | 29 | 117 | class Solution {
public void moveZeroes(int[] a) {
int n =a.length;
//int temp=0;
for(int i=0,j=0;i<n&&j<n;i++)
{
if(a[i]!=0)
{
int temp = a[j];
a[j]=a[i];
a[i]=temp;
j++;
}
... | 33,761 |
https://github.com/pulumi/pulumi-aws/blob/master/sdk/go/aws/glue/partitionIndex.go | Github Open Source | Open Source | ECL-2.0, Apache-2.0 | 2,022 | pulumi-aws | pulumi | Go | Code | 1,396 | 4,616 | // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package glue
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## Example Usage
//
// ```... | 32,568 |
https://github.com/bssrdf/carcassonne/blob/master/wingedsheep/carcassonne/objects/coordinate.py | Github Open Source | Open Source | MIT | 2,021 | carcassonne | bssrdf | Python | Code | 30 | 88 | class Coordinate:
def __init__(self, row: int, column: int):
self.row = row
self.column = column
def __eq__(self, other):
return self.row == other.row and self.column == other.column
def __hash__(self):
return hash((self.row, self.column))
| 42,400 |
https://github.com/phenopolis/phenopolis_browser/blob/master/frontend/src/assets/echartJS/GenomePlot.js | Github Open Source | Open Source | MIT | 2,021 | phenopolis_browser | phenopolis | JavaScript | Code | 100 | 337 | export default {
grid: {
left: '3%',
right: '3%',
bottom: '10%',
containLabel: true,
},
tooltip: {
backgroundColor: 'rgba(0,0,0,0.9)',
trigger: 'item',
showDelay: 0,
axisPointer: {
show: false,
},
},
// color: ['#2E84CF'],
xAxis: [
{
name: 'chr12',
n... | 35,457 |
https://github.com/G-Almighty/U-232-Trinity-RC/blob/master/blocks/browse/top10_music_24.php | Github Open Source | Open Source | WTFPL | 2,023 | U-232-Trinity-RC | G-Almighty | PHP | Code | 214 | 1,006 | <?php
/**
* ------- U-232 Codename Trinity ----------*
* ---------------------------------------------*
* -------- @authors U-232 Team --------------*
* ---------------------------------------------*
* ----- @site https://u-232.duckdns.org/ ----*
* ---------------------------------------------*
* ----- ... | 45,725 |
https://github.com/Litabeach/Snueze/blob/master/client/src/components/Chart/DoughnutChart.js | Github Open Source | Open Source | MIT, LicenseRef-scancode-warranty-disclaimer | 2,021 | Snueze | Litabeach | JavaScript | Code | 256 | 716 | import React, { useState, useEffect } from "react";
import { Doughnut } from "react-chartjs-2";
import surveyAPI from "../../utils/surveyAPI";
function DoughnutChart() {
const [quality, setQuality] = useState([]);
const [userRes, setRes] = useState();
useEffect(() => {
getChartData();
}, [])
// gets ... | 733 |
https://github.com/vitorliu/EncryptionMail/blob/master/app/src/main/java/com/frestoinc/maildemo/activesync/ASPolicy.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | EncryptionMail | vitorliu | Java | Code | 1,529 | 5,644 | /*
*
*
* * Copyright (C) 2006 The Android Open Source Project
* *
* * 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
... | 24,657 |
https://github.com/ebruno/softwaretrace-ostools/blob/master/doc/childmgt_c/html/search/variables_f.js | Github Open Source | Open Source | BSD-3-Clause | null | softwaretrace-ostools | ebruno | JavaScript | Code | 5 | 64 | var searchData=
[
['utime',['utime',['../structSWTPROC__STAT__INFO.html#ac1848e512bfd95c550f3517a0978c84e',1,'SWTPROC_STAT_INFO']]]
];
| 18,129 |
https://github.com/chokomancarr/chokoengine2/blob/master/include/ce2/scene/component.hpp | Github Open Source | Open Source | Apache-2.0 | null | chokoengine2 | chokomancarr | C++ | Code | 329 | 756 | #include "chokoengine.hpp"
#include "enums/component_types.hpp"
#include "enums/callback_flags.hpp"
CE_BEGIN_NAMESPACE
class _Component : public _Object { CE_OBJECT_COMMON
public:
protected:
_Component(ComponentType t, const std::string& nm);
pSceneObject _object;
CompCallbackFlag::Tp _callbackMask;
virtual C... | 47,498 |
https://github.com/ScalablyTyped/Distribution/blob/master/m/matrix-js-sdk/src/main/scala/typings/matrixJsSdk/anon/MaxTimelineEntries.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 76 | 266 | package typings.matrixJsSdk.anon
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait MaxTimelineEntries extends StObject {
/**
* Default is 50.
*/
var maxTimelineEntries: js.UndefOr[Doubl... | 43,851 |
https://github.com/morgan-at-keysight/socketscpi/blob/master/socketscpi/socketscpi.py | Github Open Source | Open Source | MIT | 2,023 | socketscpi | morgan-at-keysight | Python | Code | 1,402 | 3,556 | """
socketscpi
Author: Morgan Allison, Keysight RF/uW Application Engineer
This program provides a socket interface to Keysight test equipment.
It handles sending commands, receiving query results,
reading/writing binary block data, and checking for errors.
"""
import warnings
import socket
import numpy as np
import i... | 45,269 |
https://github.com/UnknownArkish/MyGraphicsFramework-SZU-/blob/master/FinalAssignment_/BaseAnimationConroller.h | Github Open Source | Open Source | MIT | 2,019 | MyGraphicsFramework-SZU- | UnknownArkish | C++ | Code | 44 | 212 |
#ifndef _BASE_ANIMATION_CONTROLLER_H_
#define _BASE_ANIMATION_CONTROLLER_H_
#pragma once
#include"Node.h"
class BaseAnimationController :public Node
{
private:
vec3 m_Range; // 摆动范围
int m_KeyFrameNum; // 关键帧数量
int m_CurrentKeyFrame; // 当前关键帧
protected:
vec3 GetNextPlayTheta(); // 播放下一帧的角度大小
protect... | 38,977 |
https://github.com/maximus335/graphql-ruby/blob/master/lib/graphql/version.rb | Github Open Source | Open Source | MIT | 2,021 | graphql-ruby | maximus335 | Ruby | Code | 9 | 29 | # frozen_string_literal: true
module GraphQL
VERSION = "1.12.18"
end
| 38,589 |
https://github.com/sorindragan/pompfan-state-evaluation/blob/master/python/plot_opponent_utility.py | Github Open Source | Open Source | MIT | null | pompfan-state-evaluation | sorindragan | Python | Code | 140 | 528 | # %%
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from scipy.interpolate import make_interp_spline
# agent_name = "BOULWARE"
# agent_name = "CONCEDER"
# agent_name = "HARDLINER"
# agent_name = "LINEAR"
agent_name = "TFT"
smoothing = False
df = pd.read_csv(f"../eval/{agent_name.lower()}_bi... | 2,176 |
https://github.com/lemmi25/ESP32-Numitron-OTA-Watch/blob/master/src/main.cpp | Github Open Source | Open Source | MIT | 2,019 | ESP32-Numitron-OTA-Watch | lemmi25 | C++ | Code | 630 | 2,305 | /* Example sketch using TLC591x library to interface
with the Texas Instruments TLC5916 and TLC5917
8-Channel Constant-Current LED Sink Drivers.
https://gitlab.com/Andy4495/TLC591x
*/
/* Version History
1.0.0 08/06/2018 A.T. Original
*/
#include <TLC591x.h>
#include <WiFi.h>
#include <HTTPClient.h>
... | 29,217 |
https://github.com/2496772010/ol-ext/blob/master/src/source/FeatureBin.js | Github Open Source | Open Source | BSD-3-Clause | 2,020 | ol-ext | 2496772010 | JavaScript | Code | 206 | 576 | /* Copyright (c) 2019 Jean-Marc VIGLINO,
released under the CeCILL-B license (French BSD license)
(http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt).
*/
import ol_source_Vector from 'ol/source/Vector'
import ol_source_BinBase from './BinBase'
import {ol_ext_inherits} from '../util/ext'
/** A source for... | 50,723 |
https://github.com/odinsride/olubalance/blob/master/spec/factories/users.rb | Github Open Source | Open Source | MIT | 2,021 | olubalance | odinsride | Ruby | Code | 43 | 117 | # frozen_string_literal: true
FactoryBot.define do
factory :user do
sequence(:email) { |n| 'test#{n}@gmail.com' }
password { 'topsecret' }
password_confirmation { 'topsecret' }
first_name { 'John' }
last_name { 'Doe' }
timezone { 'Eastern Time (US & Canada)' }
confirmed_at { Time.now }
... | 15,237 |
https://github.com/blank-1/soul/blob/master/shenyu-e2e/shenyu-e2e-engine/src/main/java/org/apache/shenyu/e2e/engine/scenario/specification/ShenYuScenarioSpec.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | soul | blank-1 | Java | Code | 428 | 1,131 | /*
* 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 ... | 22,054 |
https://github.com/NazaraEngine/NazaraEngine/blob/master/src/Nazara/Renderer/RenderPipeline.cpp | Github Open Source | Open Source | GPL-3.0-only, MIT, BSD-3-Clause, LicenseRef-scancode-proprietary-license, Apache-2.0 | 2,023 | NazaraEngine | NazaraEngine | C++ | Code | 111 | 331 | // Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Renderer module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Renderer/RenderPipeline.hpp>
#include <Nazara/Renderer/RenderDevice.hpp>
#include <Nazara/Rende... | 52,110 |
https://github.com/appfeel/camera-component/blob/master/scripts/createReadme.sh | Github Open Source | Open Source | MIT | 2,022 | camera-component | appfeel | Shell | Code | 57 | 201 | #!/bin/sh
README=./readme.md
TEMPLATE=./readme-template.md
RM_COMPONENT=./src/components/camera-component/readme.md
RM_CONTROLLER=./src/components/camera-controller/readme.md
ROADMAP=./roadmap.md
echo '<!-- AUTO GENERATED: Do not edit this file, edit readme-template.md instead -->' > "$README"
echo '' >> "$README"
ca... | 39,475 |
https://github.com/znes/KlimaSchiff/blob/master/src/input-data-analysis/active_ships_per_hour.py | Github Open Source | Open Source | BSD-3-Clause | 2,022 | KlimaSchiff | znes | Python | Code | 90 | 356 | import json
import os
import pickle as pkl
from pathlib import PurePath
import re
import pandas as pd
with open("config.json") as file:
config = json.load(file)
datapath = PurePath(
os.path.expanduser("~"), config["intermediate_data"], "ship_routes"
)
imopath = PurePath(
os.path.expanduser("~"), config[... | 38,767 |
https://github.com/Happy-Ferret/sssrrr-boilerplate/blob/master/shared/routes.js | Github Open Source | Open Source | MIT | 2,016 | sssrrr-boilerplate | Happy-Ferret | JavaScript | Code | 57 | 143 | /**
* Shared routing configuration for browser and server.
*/
import React from 'react';
import {Router, Route} from 'react-router';
import Application from '../components/Application';
import About from '../components/About';
import Home from '../components/Home';
/* eslint-disable react/display-name */
export de... | 48,465 |
https://github.com/concasa/ConCasa/blob/master/src/BaselineOfConcasa/BaselineOfConcasa.class.st | Github Open Source | Open Source | BSD-3-Clause | null | ConCasa | concasa | null | Spoken | 84 | 297 | Class {
#name : #BaselineOfConcasa,
#superclass : #BaselineOf,
#category : #BaselineOfConcasa
}
{ #category : #baselines }
BaselineOfConcasa >> baseline: spec [
<baseline>
spec for: #common do: [
"Packages"
spec
package: 'Concasa';
package: 'Concasa-Tests' with: [ spec requires: #('Concasa') ];
pa... | 10,966 |
https://github.com/sffej/camel-splunk-httpec/blob/master/src/test/java/com/pronoia/camel/splunk/httpec/itest/VmToSplunkRouteWithAlternateSchemeBlueprintIT.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | camel-splunk-httpec | sffej | Java | Code | 235 | 973 | package com.pronoia.camel.splunk.httpec.itest;
import static com.pronoia.camel.splunk.httpec.itest.SplunkConnectionInfo.SPLUNK_AUTHORIZATION_TOKEN;
import static com.pronoia.camel.splunk.httpec.itest.SplunkConnectionInfo.SPLUNK_HOST;
import static com.pronoia.camel.splunk.httpec.itest.SplunkConnectionInfo.SPLUNK_PORT;... | 4,552 |
https://github.com/intel/oneccl/blob/master/src/comm/comm_selector.hpp | Github Open Source | Open Source | Apache-2.0 | 2,020 | oneccl | intel | C++ | Code | 189 | 527 | /*
Copyright 2016-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 47,299 |
https://github.com/IBM-CSM/Cognative/blob/master/Chapter08/TwitterService.py | Github Open Source | Open Source | MIT | 2,021 | Cognative | IBM-CSM | Python | Code | 35 | 269 | import tweepy
consumer_key = "fZEQIZmLjfdnMeqI9rIkBCmWh"
consumer_secret = "bJlMR8k9awL5KNzVtSj5A0aLjmtulWQi4Or6J4H6mk8Aod0jYw"
access_token = "3397145679-0qxjHB66sLOXETBSp5k52wNvYvoNKTZ5vOPjYW7"
access_secret = "0KqVTtisBQHrll6dmq56m1usfX2IQigCE2tDmHRjdeAK3"
def tweets(screen_name):
auth = tweepy.OAuthHandler(co... | 37,937 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.