Datasets:

text
stringlengths
367
5.14M
id
stringlengths
19
24
metadata
dict
# defs.cna # Definitions for all the tips and commands. # Mostly r3dqu1nn's work, with a bit of help from 001SPARTaN # @database = @(%($cmd, $desc, @tags), %($cmd, $desc, @tags)) @database = @( %(cmd => 'ipconfig /all', desc => 'Display all network information for all interfaces.', tags => @( 'network', 'n...
train_000.parquet/500
{ "file_path": "defs.cna", "repo_id": "001SPARTaN/csfm", "size": 85495, "token_count": 29804 }
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obta...
train_000.parquet/501
{ "file_path": "rlottie/src/lottie/rapidjson/internal/itoa.h", "repo_id": "0015/esp_rlottie", "size": 10131, "token_count": 4738 }
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
train_000.parquet/502
{ "file_path": "rlottie/src/lottie/rapidjson/internal/dtoa.h", "repo_id": "0015/esp_rlottie", "size": 8125, "token_count": 3391 }
const uint8_t MatrixCodeNFI34[] PROGMEM = { 0x00, 0x00, 0x01, 0x38, 0x00, 0x00, 0x00, 0x0B, 0x00, 0x00, 0x00, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x21, 0x00, 0x00, 0x00, 0x1F, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x1C, 0x00, 0x00...
train_000.parquet/503
{ "file_path": "examples/Demo_TFT_eSPI_Japanese_LargeFont/MatrixCodeNFI34.h", "repo_id": "0015/TP_Arduino_DigitalRain_Anim", "size": 782883, "token_count": 748644 }
#!/usr/bin/env bash dependencies_dir="dependencies" output_dir="output" mkdir $output_dir; #mkdir -p $dependencies_dir/phantomjs; # Install sublis3r git clone https://github.com/aboul3la/Sublist3r.git $dependencies_dir/sublister; # Install wpscan git clone https://github.com/wpscanteam/wpscan.git $depende...
train_000.parquet/504
{ "file_path": "install.sh", "repo_id": "003random/003Recon", "size": 1113, "token_count": 493 }
## 📌 Description This repository contains some of my scripts that i created to automate some recon processes. It performs the following things; 1. Get subdomains of a domain 2. Filter out only online domains 3. Scan the domains for CRLF 4. Check for a CORS misconfigurations 5. Test for open redirec...
train_000.parquet/505
{ "file_path": "README.md", "repo_id": "003random/003Recon", "size": 1365, "token_count": 437 }
#This little script chains all the tools together. please read it through before using, so there wont be any unexpected results. tput setaf 3; echo "Please read through this script before executing, to prevent unexpected things from happening." home_dir=$(pwd) output_dir="output" tools_dir...
train_000.parquet/506
{ "file_path": "recon.sh", "repo_id": "003random/003Recon", "size": 3055, "token_count": 1207 }
# Beacon Log visualization # 001SPARTaN (for r3dqu1nn) import ui.*; import table.*; import java.awt.*; import javax.swing.*; import javax.swing.table.*; global('$model $console $table'); sub updateTable { fork({ local('$entry'); # Clear the model so we can put new stuff in it. [$model c...
train_000.parquet/507
{ "file_path": "visualizations/logvis.cna", "repo_id": "001SPARTaN/aggressor_scripts", "size": 6900, "token_count": 2216 }
# vis.cna # Experimenting with custom visualizations in Aggressor Script # Doesn't really do much right now # @001SPARTaN import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.table.*; import ui.*; import table.*; global('$model $console'); sub updateHosts...
train_000.parquet/508
{ "file_path": "visualizations/vis.cna", "repo_id": "001SPARTaN/aggressor_scripts", "size": 2681, "token_count": 935 }
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
train_000.parquet/509
{ "file_path": "rlottie/src/lottie/rapidjson/internal/meta.h", "repo_id": "0015/esp_rlottie", "size": 6641, "token_count": 2420 }
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obta...
train_000.parquet/510
{ "file_path": "rlottie/src/lottie/rapidjson/internal/swap.h", "repo_id": "0015/esp_rlottie", "size": 1419, "token_count": 506 }
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
train_000.parquet/511
{ "file_path": "rlottie/src/lottie/rapidjson/internal/biginteger.h", "repo_id": "0015/esp_rlottie", "size": 9143, "token_count": 3616 }
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
train_000.parquet/512
{ "file_path": "rlottie/src/lottie/rapidjson/error/en.h", "repo_id": "0015/esp_rlottie", "size": 3870, "token_count": 1217 }
// Tencent is pleased to support the open source community by making RapidJSON available. // // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obt...
train_000.parquet/513
{ "file_path": "rlottie/src/lottie/rapidjson/error/error.h", "repo_id": "0015/esp_rlottie", "size": 6213, "token_count": 2008 }
html, body, #map { height: 100%; margin: 0; padding: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f4f4; } #app-container { display: flex; height: 100%; width: 100%; } #map { flex: 3; height: 100%; z-index: 0; } #overlay { flex: 1; height: 100%; max...
train_000.parquet/514
{ "file_path": "static/style.css", "repo_id": "0015/OfflineMapDownloader", "size": 2718, "token_count": 1363 }
#!/usr/bin/python import re, requests, sys input_file = sys.argv[1] output_file = sys.argv[2] print("\n-- Extracting javascript files from domains in "+input_file+" with output file, "+output_file+" --\n") domains_file = open(input_file,'r') domains = domains_file.read().split('\n') file = open(output_file,"w+") ...
train_000.parquet/515
{ "file_path": "tools/javascript_files_extractor.py", "repo_id": "003random/003Recon", "size": 1593, "token_count": 711 }
#!/usr/bin/python import requests, sys input_file = sys.argv[1] output_file = sys.argv[2] payload_file = sys.argv[3] is_closed = True domains = open(input_file,'r').read().split('\n') info = [line.rstrip('\n').lower() for line in open(payload_file)] print("\n-- Checking for sensitive info in error pages "+input_fil...
train_000.parquet/516
{ "file_path": "tools/error_page_info_check.py", "repo_id": "003random/003Recon", "size": 1614, "token_count": 513 }
#!/usr/bin/python import requests,sys def start(): input_file = sys.argv[1] output_file = sys.argv[2] payload_file = sys.argv[3] print("\n-- Testing open redirects on domains in "+input_file+" with output file, "+output_file+" --") is_closed = True payloads = open(payload_file,'r').read().sp...
train_000.parquet/517
{ "file_path": "tools/open_redirect.py", "repo_id": "003random/003Recon", "size": 1494, "token_count": 441 }
import requests, sys input_file = sys.argv[1] output_file = sys.argv[2] payload_file = sys.argv[3] print("\n-- Testing for sensitive info in headers on domains in "+input_file+" with output file, "+output_file+" --\n") is_closed = True domains = open(input_file,'r').read().split('\n') headers = [line.rstrip('\n').lo...
train_000.parquet/518
{ "file_path": "tools/header_scan.py", "repo_id": "003random/003Recon", "size": 1094, "token_count": 451 }
#!/usr/bin/python import requests, sys, dns.resolver input_file = sys.argv[1] output_file = sys.argv[2] is_closed = True domains = open(input_file,'r').read().split('\n') take_over_cnames = ["createsend", "cargocollective", "cloudfront", "desk.com", "fastly.net", "feedpress.me", "freshdesk.com", "github.io", "helpj...
train_000.parquet/519
{ "file_path": "tools/subdomain_takeover_scan.py", "repo_id": "003random/003Recon", "size": 2819, "token_count": 1075 }
#!/usr/bin/python #This is an edit of /tools/javascript_files_extractor.py and /tools/javascript_files_link_extractor.sh #it combines those 2 and takes 1 domain as string as argument 1. not a domain file import re, requests, sys, os input_string = sys.argv[1] output_file = sys.argv[2] extractor_file = sys.argv[3] pr...
train_000.parquet/520
{ "file_path": "tools/edited_tools/files_and_links_extractor.py", "repo_id": "003random/003Recon", "size": 1675, "token_count": 732 }
# FHHFPSIndicator [![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/jvjishou/FHHFPSIndicator/master/LICENSE)  [![CocoaPods](http://img.shields.io/cocoapods/v/FHHFPSIndicator.svg?style=flat)](http://cocoapods.org/?q=FHHFPSIndicator)  [![CocoaPods]...
train_000.parquet/521
{ "file_path": "README.md", "repo_id": "002and001/FHHFPSIndicator", "size": 4387, "token_count": 1856 }
// // FHHFPSIndicator.m // FHHFPSIndicator // // Created by 002 on 16/6/27. // Copyright © 2016年 002. All rights reserved. // #import "FHHFPSIndicator.h" #define kScreenWidth ([[UIScreen mainScreen] bounds].size.width) #define SIZE_fpsLabel CGSizeMake(44, 15) #define FONT_SIZE_fpsLabel (12) #define TAG_fpsLabel (...
train_000.parquet/522
{ "file_path": "FHHFPSIndicator/FHHFPSIndicator.m", "repo_id": "002and001/FHHFPSIndicator", "size": 5409, "token_count": 2063 }
// // FHHFPSIndicator.h // FHHFPSIndicator:https://github.com/jvjishou/FHHFPSIndicator // // Created by 002 on 16/6/27. // Copyright © 2016年 002. All rights reserved. // // This source code is licensed under the MIT-style license found in the // LICENSE file in the root directory of this source tree. // #import ...
train_000.parquet/523
{ "file_path": "FHHFPSIndicator/FHHFPSIndicator.h", "repo_id": "002and001/FHHFPSIndicator", "size": 2361, "token_count": 728 }
// !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 25C90C9C1D227566002F1B5E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 25C90C9B1D227566002F1B5E /* main.m */; }; 25C90CA71D227566002F1B5E /* Assets.xcassets in Resources */ = {isa = P...
train_000.parquet/524
{ "file_path": "Demo/FHHFPSIndicatorDemo.xcodeproj/project.pbxproj", "repo_id": "002and001/FHHFPSIndicator", "size": 18633, "token_count": 10150 }
// // CommonColor.h // FHHFPSIndicatorDemo // // Created by hefanghui on 2017/9/5. // Copyright © 2017年 002. All rights reserved. // #ifndef CommonColor_h #define CommonColor_h #define RandomColor [UIColor colorWithRed:arc4random_uniform(255)/255.0 green:arc4random_uniform(255)/255.0 blue:arc4random_uniform(255)/...
train_000.parquet/525
{ "file_path": "Demo/FHHFPSIndicatorDemo/CommonColor.h", "repo_id": "002and001/FHHFPSIndicator", "size": 1538, "token_count": 822 }
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifi...
train_000.parquet/526
{ "file_path": "Demo/FHHFPSIndicatorDemo/Info.plist", "repo_id": "002and001/FHHFPSIndicator", "size": 1439, "token_count": 609 }
// // UIViewController+CustomNavigationBar.h // LoveTourGuide // // Created by 002 on 16/1/5. // Copyright © 2016年 fhhe. All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (CustomNavigationBar) @property (nonatomic, strong) UIView *navigationBar; // 自定义navigationBar @property (nonatomic...
train_000.parquet/527
{ "file_path": "Demo/FHHFPSIndicatorDemo/Utility/UIViewController+CustomNavigationBar.h", "repo_id": "002and001/FHHFPSIndicator", "size": 2173, "token_count": 895 }
// // ************************************************************************ // // UIViewController+CustomNavigationBar.m // LoveTourGuide // // Created by 002 on 2017/7/26. // Copyright © 2017年 hqyxedu. All rights reserved. // // Main function:自定义导航栏控制器分类 // // Other specifications: // // *******************...
train_000.parquet/528
{ "file_path": "Demo/FHHFPSIndicatorDemo/Utility/UIViewController+CustomNavigationBar.m", "repo_id": "002and001/FHHFPSIndicator", "size": 11010, "token_count": 3688 }
// // UIView+FHH.m // // // Created by 002 on 15/10/1. // Copyright (c) 2015年 002. All rights reserved. // #import "UIView+FHH.h" @implementation UIView (FHH) #pragma mark - Setter - (void)setX:(CGFloat)x { CGRect frame = self.frame; frame.origin.x = x; self.frame = frame; } - (void)setY:(CGFloat)y...
train_000.parquet/529
{ "file_path": "Demo/FHHFPSIndicatorDemo/Utility/UIView+FHH.m", "repo_id": "002and001/FHHFPSIndicator", "size": 3034, "token_count": 1248 }
// // LastHomeViewController.m // FHHFPSIndicator // // Created by 002 on 16/6/27. // Copyright © 2016年 002. All rights reserved. // #import "LastHomeViewController.h" #import "UIViewController+CustomNavigationBar.h" #import "WildernessViewController.h" #import "FHHFPSIndicator.h" @implementation LastHomeViewCont...
train_000.parquet/530
{ "file_path": "Demo/FHHFPSIndicatorDemo/Classes/LastHomeViewController.m", "repo_id": "002and001/FHHFPSIndicator", "size": 1097, "token_count": 419 }
// // AppDelegate.m // FHHFPSIndicatorDemo // // Created by 002 on 16/6/27. // Copyright © 2016年 002. All rights reserved. // #import "AppDelegate.h" #import "HomeViewController.h" #if defined(DEBUG) || defined(_DEBUG) #import "FHHFPSIndicator.h" #endif @interface AppDelegate () @end @implementation AppDelega...
train_000.parquet/531
{ "file_path": "Demo/FHHFPSIndicatorDemo/Classes/AppDelegate.m", "repo_id": "002and001/FHHFPSIndicator", "size": 2669, "token_count": 767 }
// // WildernessViewController.m // FHHFPSIndicator // // Created by 002 on 16/6/27. // Copyright © 2016年 002. All rights reserved. // #import "WildernessViewController.h" #import "UIViewController+CustomNavigationBar.h" #import "UIView+FHH.h" @interface WildernessViewController () @property (nonatomic, strong) ...
train_000.parquet/532
{ "file_path": "Demo/FHHFPSIndicatorDemo/Classes/WildernessViewController.m", "repo_id": "002and001/FHHFPSIndicator", "size": 1551, "token_count": 780 }
package main import ( "bufio" "flag" "fmt" "io" "log" "net/http" "os" "strings" "time" "github.com/003random/getJS/v2/runner" ) func main() { options, err := setup() if err != nil { log.Fatal(fmt.Errorf("parsing flags: %w", err)) } if err := runner.New(options).Run(); err != nil { log.Fatal(err) ...
train_000.parquet/533
{ "file_path": "main.go", "repo_id": "003random/getJS", "size": 4324, "token_count": 1695 }
<h1 align="center">JavaScript Extraction CLI & Package</h1> <p align="center"> <a href="https://pkg.go.dev/github.com/003random/getJS"> <img src="https://pkg.go.dev/badge/github.com/003random/getJS"> </a> <a href="https://github.com/003random/getJS/releases"> <img src="https://img.shields.io/github/relea...
train_000.parquet/534
{ "file_path": "README.md", "repo_id": "003random/getJS", "size": 4446, "token_count": 1482 }
package extractor import ( "fmt" "io" "log" "net/http" "net/url" "github.com/PuerkitoBio/goquery" ) // ExtractionPoints defines the default HTML tags and their attributes from which JavaScript sources are extracted. var ExtractionPoints = map[string][]string{ "script": {"src", "data-src"}, } // FetchResponse...
train_000.parquet/535
{ "file_path": "extractor/extractor.go", "repo_id": "003random/getJS", "size": 3223, "token_count": 1245 }
package runner import ( "bufio" "crypto/tls" "errors" "fmt" "io" "log" "net/http" "net/url" "sync" "github.com/003random/getJS/v2/extractor" ) // ExtractionPoints defines the default HTML tags and their attributes from which JavaScript sources are extracted. var ExtractionPoints = map[string][]string{ "sc...
train_000.parquet/536
{ "file_path": "runner/runner.go", "repo_id": "003random/getJS", "size": 4195, "token_count": 1784 }
# akashchat-api-go 基于 Go 语言开发的 REST API 服务,为 Akash Chat API 提供代理接口,支持文本和图像生成模型。 [![Go Version](https://img.shields.io/badge/Go-1.21+-blue.svg)](https://golang.org) [![License](https://img.shields.io/badge/license-AGPL_v3-green.svg)](LICENSE) [中文文档](README.md) | [English](README_EN.md) ## 功能特性 - **统一 API 接口**: 兼容 O...
train_000.parquet/537
{ "file_path": "README.md", "repo_id": "006lp/akashchat-api-go", "size": 5558, "token_count": 3048 }
# akashchat-api-go A Go-based REST API service that provides a proxy interface to Akash Chat API, supporting both text and image generation models. [![Go Version](https://img.shields.io/badge/Go-1.21+-blue.svg)](https://golang.org) [![License](https://img.shields.io/badge/license-AGPL_v3-green.svg)](LICENSE) [中文文档](...
train_000.parquet/538
{ "file_path": "README_EN.md", "repo_id": "006lp/akashchat-api-go", "size": 6845, "token_count": 2576 }
package main import ( "log" "github.com/006lp/akashchat-api-go/internal/config" "github.com/006lp/akashchat-api-go/internal/handler" "github.com/006lp/akashchat-api-go/internal/service" "github.com/gin-contrib/cors" "github.com/gin-gonic/gin" ) func main() { // Load configuration cfg := config.Load() // In...
train_000.parquet/539
{ "file_path": "cmd/server/main.go", "repo_id": "006lp/akashchat-api-go", "size": 1356, "token_count": 585 }
package service import ( "bufio" "bytes" "encoding/json" "fmt" "io" "net/http" "regexp" "strings" "time" "github.com/006lp/akashchat-api-go/internal/model" "github.com/006lp/akashchat-api-go/internal/utils" "github.com/006lp/akashchat-api-go/pkg/client" ) // AkashService handles communication with Akash ...
train_000.parquet/540
{ "file_path": "internal/service/akash.go", "repo_id": "006lp/akashchat-api-go", "size": 12285, "token_count": 4633 }
package service import ( "fmt" "net/http" "strings" "sync" "time" "github.com/006lp/akashchat-api-go/pkg/client" ) // SessionCache represents a cached session type SessionCache struct { Token string ExpiresAt time.Time } // SessionService manages session tokens type SessionService struct { httpClient *...
train_000.parquet/541
{ "file_path": "internal/service/session.go", "repo_id": "006lp/akashchat-api-go", "size": 2952, "token_count": 1200 }
package handler import ( "encoding/json" "io" "net/http" "github.com/006lp/akashchat-api-go/internal/model" "github.com/gin-gonic/gin" ) // ModelHandler handles model-related HTTP requests type ModelHandler struct{} // NewModelHandler creates a new ModelHandler instance func NewModelHandler() *ModelHandler { ...
train_000.parquet/542
{ "file_path": "internal/handler/model.go", "repo_id": "006lp/akashchat-api-go", "size": 1685, "token_count": 721 }
package handler import ( "net/http" "github.com/006lp/akashchat-api-go/internal/model" "github.com/006lp/akashchat-api-go/internal/service" "github.com/gin-gonic/gin" ) // ChatHandler handles chat-related HTTP requests type ChatHandler struct { sessionService *service.SessionService akashService *service.Aka...
train_000.parquet/543
{ "file_path": "internal/handler/chat.go", "repo_id": "006lp/akashchat-api-go", "size": 3564, "token_count": 1485 }
package model // APIResponse represents the standard API response format type APIResponse struct { Code int `json:"code"` Data interface{} `json:"data"` } // ImageGenerationData represents response data for image generation type ImageGenerationData struct { Model string `json:"model"` JobID string `json...
train_000.parquet/544
{ "file_path": "internal/model/response.go", "repo_id": "006lp/akashchat-api-go", "size": 2862, "token_count": 892 }
package main import ( "context" "log" "net/http" "sync" "time" "github.com/gin-gonic/gin" "go.uber.org/zap" "github.com/006lp/akashgen-api-go/config" "github.com/006lp/akashgen-api-go/handlers" "github.com/006lp/akashgen-api-go/middleware" ) var ( logger *zap.Logger concurrentLimiter chan str...
train_000.parquet/545
{ "file_path": "main.go", "repo_id": "006lp/akashgen-api-go", "size": 1600, "token_count": 690 }
<center> # AkashGen API Go [![Go Version](https://img.shields.io/badge/Go-1.21+-blue.svg)](https://golang.org) [![License](https://img.shields.io/badge/license-AGPL_v3-green.svg)](LICENSE) [![API](https://img.shields.io/badge/API-REST-orange.svg)](https://restfulapi.net/) A high-performance Go-based API proxy servic...
train_000.parquet/546
{ "file_path": "README.md", "repo_id": "006lp/akashgen-api-go", "size": 8992, "token_count": 3067 }
package model // ChatMessage represents a chat message type ChatMessage struct { Role string `json:"role" binding:"required"` Content string `json:"content" binding:"required"` } // ChatCompletionRequest represents the incoming request type ChatCompletionRequest struct { Messages []ChatMessage `json:"message...
train_000.parquet/547
{ "file_path": "internal/model/request.go", "repo_id": "006lp/akashchat-api-go", "size": 1454, "token_count": 460 }
<center> # AkashGen API Go [![Go Version](https://img.shields.io/badge/Go-1.21+-blue.svg)](https://golang.org) [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) [![API](https://img.shields.io/badge/API-REST-orange.svg)](https://restfulapi.net/) 一个基于 Go 语言的高性能 API 代理服务,用于访问 Akash Network 的图像生成...
train_000.parquet/548
{ "file_path": "README_CN.md", "repo_id": "006lp/akashgen-api-go", "size": 5991, "token_count": 3365 }
package client import ( "io" "net/http" "time" ) // HTTPClient wraps http.Client with additional functionality type HTTPClient struct { client *http.Client } // NewHTTPClient creates a new HTTPClient instance func NewHTTPClient() *HTTPClient { return &HTTPClient{ client: &http.Client{ Timeout: 60 * time.Se...
train_000.parquet/549
{ "file_path": "pkg/client/http.go", "repo_id": "006lp/akashchat-api-go", "size": 1043, "token_count": 416 }
package handlers import ( "context" "net/http" "sync" "github.com/gin-gonic/gin" "go.uber.org/zap" "github.com/006lp/akashgen-api-go/config" "github.com/006lp/akashgen-api-go/models" "github.com/006lp/akashgen-api-go/services" ) // HandleGenerate handles the image generation request func HandleGenerate(logg...
train_000.parquet/550
{ "file_path": "handlers/generate.go", "repo_id": "006lp/akashgen-api-go", "size": 2696, "token_count": 1143 }
package models // GenerateRequest represents the incoming request for image generation type GenerateRequest struct { Prompt string `json:"prompt" binding:"required"` Negative string `json:"negative"` Sampler string `json:"sampler" binding:"required"` Scheduler string `json:"scheduler" binding:"required"` } ...
train_000.parquet/551
{ "file_path": "models/types.go", "repo_id": "006lp/akashgen-api-go", "size": 1276, "token_count": 410 }
package services import ( "bytes" "context" "encoding/json" "fmt" "io" "net/http" "time" "go.uber.org/zap" "github.com/006lp/akashgen-api-go/config" "github.com/006lp/akashgen-api-go/models" "github.com/006lp/akashgen-api-go/utils" ) // AkashService handles communication with Akash network API type Akash...
train_000.parquet/552
{ "file_path": "services/akash.go", "repo_id": "006lp/akashgen-api-go", "size": 3796, "token_count": 1539 }
package services import ( "context" "fmt" "io" "net/http" "go.uber.org/zap" "github.com/006lp/akashgen-api-go/config" "github.com/006lp/akashgen-api-go/utils" ) // ImageService handles image fetching operations type ImageService struct { logger *zap.Logger client *http.Client } // NewImageService creates ...
train_000.parquet/553
{ "file_path": "services/image.go", "repo_id": "006lp/akashgen-api-go", "size": 1407, "token_count": 562 }
<?xml version="1.0" encoding="UTF-8" ?> <record> <attribute id="0x0001"> <sequence> <uuid value="0x1124" /> </sequence> </attribute> <attribute id="0x0004"> <sequence> <sequence> <uuid value="0x0100" /> <uint16 value="0x0011" /> </sequence> <sequence> <uuid value="0x0011" /> </sequen...
train_000.parquet/554
{ "file_path": "sdp_record_gamepad.xml", "repo_id": "007durgesh219/BTGamepad", "size": 2455, "token_count": 1364 }
import time from evdev import * class Gamepad: """docstring for Gamepad""" def __init__(self): self.mapping = {} self.mapping['KEY_A'] = 0 self.mapping['KEY_W'] = 1 self.mapping['KEY_D'] = 2 self.mapping['KEY_X'] = 3 self.mapping['KEY_H'] = 4 self.mapping[...
train_000.parquet/555
{ "file_path": "Gamepad.py", "repo_id": "007durgesh219/BTGamepad", "size": 1764, "token_count": 708 }
from bluetooth import * import dbus # Used to set up the SDP record class Bluetooth: """docstring for Gamepad""" HOST = 0 PORT = 1 P_CTRL = 17 P_INTR = 19 UUID = "1f16e7c0-b59b-11e3-95d2-0002a5d5c51b" def __init__(self, sdp, classname, devname): self.classname = classname sel...
train_000.parquet/556
{ "file_path": "Bluetooth.py", "repo_id": "007durgesh219/BTGamepad", "size": 2282, "token_count": 798 }
<?xml version="1.0" encoding="UTF-8" ?> <record> <attribute id="0x0001"> <sequence> <uuid value="0x1124" /> </sequence> </attribute> <attribute id="0x0004"> <sequence> <sequence> <uuid value="0x0100" /> <uint16 value="0x0011" /> </sequence> <sequence> <uuid value="0x0011" /> </seque...
train_000.parquet/557
{ "file_path": "sdp_record_kbd.xml", "repo_id": "007durgesh219/BTGamepad", "size": 2573, "token_count": 1482 }
# Convert value returned from Linux event device ("evdev") to a HID code. This # is reverse of what's actually hardcoded in the kernel. # # Lubomir Rintel <lkundrak@v3.sk> # License: GPL # # Ported to a Python module by Liam Fraser. # keytable = { "KEY_RESERVED" : 0, "KEY_ESC" : 41, "KEY_1" : 30, "KEY_...
train_000.parquet/558
{ "file_path": "keymap.py", "repo_id": "007durgesh219/BTGamepad", "size": 4239, "token_count": 2713 }
from evdev import * import keymap from Bluetooth import * class Keyboard: def __init__(self): self.state = [ 0xA1, 0x01, [ 0, 0, 0, 0, 0, 0, 0, ...
train_000.parquet/559
{ "file_path": "Keyboard.py", "repo_id": "007durgesh219/BTGamepad", "size": 1749, "token_count": 539 }
# Local Map Viewer Demo - Independent ESP32 Example Projects This project demonstrates how to use the **0015__map_tiles** component([ESP Registry](https://components.espressif.com/components/0015/map_tiles)) across multiple independent ESP-IDF projects. It showcases different use cases of interactive map display on ES...
train_000.parquet/560
{ "file_path": "README.md", "repo_id": "0015/map_tiles_projects", "size": 12625, "token_count": 4214 }
# # Automatically generated file. DO NOT EDIT. # Espressif IoT Development Framework (ESP-IDF) 5.4.2 Project Configuration # CONFIG_SOC_MPU_MIN_REGION_SIZE=0x20000000 CONFIG_SOC_MPU_REGIONS_MAX_NUM=8 CONFIG_SOC_ADC_SUPPORTED=y CONFIG_SOC_UART_SUPPORTED=y CONFIG_SOC_PCNT_SUPPORTED=y CONFIG_SOC_PHY_SUPPORTED=y CONFIG_SOC...
train_000.parquet/561
{ "file_path": "waveshare_esp32_s3_touch_amoled_1_75/sdkconfig", "repo_id": "0015/map_tiles_projects", "size": 84118, "token_count": 47151 }
# # Automatically generated file. DO NOT EDIT. # Espressif IoT Development Framework (ESP-IDF) 5.4.2 Project Configuration # CONFIG_SOC_ADC_SUPPORTED=y CONFIG_SOC_ANA_CMPR_SUPPORTED=y CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y CONFIG_SOC_UART_SUPPORTED=y CONFIG_SOC_GDMA_SUPPORTED=y CONFIG_SOC_AHB_GDMA_SUPPORTED=y CONFIG_SOC...
train_000.parquet/562
{ "file_path": "espressif_esp32_p4_function_ev_board/sdkconfig", "repo_id": "0015/map_tiles_projects", "size": 84589, "token_count": 47569 }
# This file was generated using idf.py save-defconfig. It can be edited manually. # Espressif IoT Development Framework (ESP-IDF) 5.4.0 Project Minimal Configuration # CONFIG_IDF_TARGET="esp32p4" CONFIG_ESPTOOLPY_FLASHMODE_QIO=y CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y CONFIG_PARTITION_TABLE_CUSTOM=y CONFIG_COMPILER_OPTIMIZAT...
train_000.parquet/563
{ "file_path": "espressif_esp32_p4_function_ev_board/sdkconfig.defaults", "repo_id": "0015/map_tiles_projects", "size": 1523, "token_count": 910 }
# # Automatically generated file. DO NOT EDIT. # Espressif IoT Development Framework (ESP-IDF) 5.4.2 Project Configuration # CONFIG_SOC_ADC_SUPPORTED=y CONFIG_SOC_ANA_CMPR_SUPPORTED=y CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y CONFIG_SOC_UART_SUPPORTED=y CONFIG_SOC_GDMA_SUPPORTED=y CONFIG_SOC_AHB_GDMA_SUPPORTED=y CONFIG_SOC...
train_000.parquet/564
{ "file_path": "waveshare_esp32_p4_wifi6_touch_lcd_xc/sdkconfig", "repo_id": "0015/map_tiles_projects", "size": 84971, "token_count": 47806 }
# Simple Map Test - ESP32 Map Display Example This project demonstrates how to use the **0015__map_tiles** component to create an interactive map display on ESP32 devices with LVGL 9.x. It provides a complete example of GPS-based map navigation with touch scrolling, zoom controls, and real-time coordinate updates. ##...
train_000.parquet/565
{ "file_path": "waveshare_esp32_p4_wifi6_touch_lcd_xc/README.md", "repo_id": "0015/map_tiles_projects", "size": 8442, "token_count": 2696 }
# This file was generated using idf.py save-defconfig. It can be edited manually. # Espressif IoT Development Framework (ESP-IDF) 5.4.0 Project Minimal Configuration # CONFIG_IDF_TARGET="esp32p4" CONFIG_ESPTOOLPY_FLASHMODE_QIO=y CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y CONFIG_PARTITION_TABLE_CUSTOM=y CONFIG_COMPILER_OPTIMIZAT...
train_000.parquet/566
{ "file_path": "waveshare_esp32_p4_wifi6_touch_lcd_xc/sdkconfig.defaults", "repo_id": "0015/map_tiles_projects", "size": 1625, "token_count": 972 }
#include "nvs_flash.h" #include "esp_log.h" #include "esp_err.h" #include "esp_check.h" #include "lvgl.h" #include "bsp/esp-bsp.h" #include "simple_map.hpp" extern "C" void app_main(void) { esp_err_t ret = nvs_flash_init(); if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) { ...
train_000.parquet/567
{ "file_path": "waveshare_esp32_s3_touch_amoled_1_75/main/main.cpp", "repo_id": "0015/map_tiles_projects", "size": 1469, "token_count": 654 }
menu "Board Support Package" config BSP_ERROR_CHECK bool "Enable error check in BSP" default y help Error check assert the application before returning the error code. menu "I2C" config BSP_I2C_NUM int "I2C peripheral index" default 1 ...
train_000.parquet/568
{ "file_path": "waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/Kconfig", "repo_id": "0015/map_tiles_projects", "size": 4104, "token_count": 1208 }
#include <stdio.h> #include "esp_lcd_panel_ops.h" #include "esp_lcd_panel_io.h" #include "esp_lcd_panel_io_additions.h" #include "esp_err.h" #include "esp_log.h" #include "esp_check.h" #include "esp_vfs_fat.h" #include "esp_spiffs.h" #include "driver/gpio.h" #include "driver/ledc.h" #include "freertos/FreeRTOS.h" #inc...
train_000.parquet/569
{ "file_path": "waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/esp32_s3_touch_amoled_1_75.c", "repo_id": "0015/map_tiles_projects", "size": 21555, "token_count": 9724 }
#pragma once #include "esp_check.h" #include "sdkconfig.h" #ifdef __cplusplus extern "C" { #endif /* Assert on error, if selected in menuconfig. Otherwise return error code. */ #if CONFIG_BSP_ERROR_CHECK #define BSP_ERROR_CHECK_RETURN_ERR(x) ESP_ERROR_CHECK(x) #define BSP_ERROR_CHECK_RETURN_NULL(x) ESP_ERROR_CH...
train_000.parquet/570
{ "file_path": "waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/priv_include/bsp_err_check.h", "repo_id": "0015/map_tiles_projects", "size": 1501, "token_count": 576 }
#pragma once #include "sdkconfig.h" #include "driver/gpio.h" #include "driver/i2c_master.h" #include "driver/sdmmc_host.h" #include "driver/i2s_std.h" #include "bsp/config.h" #include "bsp/display.h" #include "esp_codec_dev.h" #include "esp_io_expander_tca9554.h" #include "lvgl.h" #include "esp_lvgl_port.h" /*****...
train_000.parquet/571
{ "file_path": "waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/include/bsp/esp32_s3_touch_amoled_1_75.h", "repo_id": "0015/map_tiles_projects", "size": 11158, "token_count": 3878 }
#pragma once #include "esp_lcd_types.h" /* LCD color formats */ #define ESP_LCD_COLOR_FORMAT_RGB565 (1) #define ESP_LCD_COLOR_FORMAT_RGB888 (2) /* LCD display color format */ #define BSP_LCD_COLOR_FORMAT (ESP_LCD_COLOR_FORMAT_RGB565) /* LCD display color bytes endianess */ #define BSP_LCD_BIGENDIAN ...
train_000.parquet/572
{ "file_path": "waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/include/bsp/display.h", "repo_id": "0015/map_tiles_projects", "size": 3321, "token_count": 1151 }
#pragma once #include "lvgl.h" #include "map_tiles.h" class SimpleMap { public: // Initialize the simple map system static bool init(lv_obj_t* parent_screen); // Display map at specific coordinates static void show_location(double latitude, double longitude, int zoom_level = 18); // Upda...
train_000.parquet/573
{ "file_path": "shared_components/simple_map/simple_map.hpp", "repo_id": "0015/map_tiles_projects", "size": 2748, "token_count": 888 }
#include "simple_map.hpp" #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_timer.h" // Static member definitions lv_obj_t* SimpleMap::map_container = nullptr; lv_obj_t* SimpleMap::map_group = nullptr; lv_obj_t** SimpleMap::tile_widgets = nullptr; int SimpleMap::grid_cols = 0; ...
train_000.parquet/574
{ "file_path": "shared_components/simple_map/simple_map.cpp", "repo_id": "0015/map_tiles_projects", "size": 29883, "token_count": 11035 }
/* * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include "nvs_flash.h" #include "nvs.h" #include "esp_log.h" #include "esp_err.h" #include "esp_check.h" #include "esp_memory_utils.h" #include "bsp/esp-bsp.h" #include "bsp/display.h" #include "bsp_boar...
train_000.parquet/575
{ "file_path": "espressif_esp32_p4_function_ev_board/main/main.cpp", "repo_id": "0015/map_tiles_projects", "size": 1547, "token_count": 678 }
/* * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <stdint.h> #include <stdbool.h> #include <string.h> #include "esp_log.h" #include "esp_check.h" #include "esp_codec_dev_defaults.h" #include "esp_err.h" #include "esp_log.h" #include "esp_...
train_000.parquet/576
{ "file_path": "espressif_esp32_p4_function_ev_board/components/bsp_extra/src/bsp_board_extra.c", "repo_id": "0015/map_tiles_projects", "size": 7419, "token_count": 3034 }
/* * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include <sys/cdefs.h> #include <stdbool.h> #include "esp_codec_dev.h" #include "esp_err.h" #include "driver/gpio.h" #include "driver/i2s_std.h" #include "audio_player.h" #include "fi...
train_000.parquet/577
{ "file_path": "espressif_esp32_p4_function_ev_board/components/bsp_extra/include/bsp_board_extra.h", "repo_id": "0015/map_tiles_projects", "size": 5915, "token_count": 2011 }
#include "nvs_flash.h" #include "esp_check.h" #include "esp_log.h" #include "esp_err.h" #include "bsp_board_extra.h" #include "bsp/esp-bsp.h" #include "lvgl.h" #include "simple_map.hpp" extern "C" void app_main(void) { esp_err_t ret = nvs_flash_init(); if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NV...
train_000.parquet/578
{ "file_path": "waveshare_esp32_p4_wifi6_touch_lcd_xc/main/main.cpp", "repo_id": "0015/map_tiles_projects", "size": 1390, "token_count": 610 }
/* * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <stdint.h> #include <stdbool.h> #include <string.h> #include "esp_log.h" #include "esp_check.h" #include "esp_codec_dev_defaults.h" #include "esp_err.h" #include "esp_log.h" #include "esp_...
train_000.parquet/579
{ "file_path": "waveshare_esp32_p4_wifi6_touch_lcd_xc/components/bsp_extra/src/bsp_board_extra.c", "repo_id": "0015/map_tiles_projects", "size": 7419, "token_count": 3034 }
/* * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include <sys/cdefs.h> #include <stdbool.h> #include "esp_codec_dev.h" #include "esp_err.h" #include "driver/gpio.h" #include "driver/i2s_std.h" #include "audio_player.h" #include "fi...
train_000.parquet/580
{ "file_path": "waveshare_esp32_p4_wifi6_touch_lcd_xc/components/bsp_extra/include/bsp_board_extra.h", "repo_id": "0015/map_tiles_projects", "size": 5915, "token_count": 2011 }
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MainWindow</class> <widget class="QMainWindow" name="MainWindow"> <property name="enabled"> <bool>true</bool> </property> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>506</width> <height>399</height> </rect> ...
train_000.parquet/581
{ "file_path": "mainwindow.ui", "repo_id": "007LiZhen/FFmpeg-QT-rtsp", "size": 1640, "token_count": 656 }
/** * 李震 * 我的码云:https://git.oschina.net/git-lizhen * 我的CSDN博客:http://blog.csdn.net/weixin_38215395 * 联系:QQ1039953685 */ #include "videoplayer.h" extern "C" { #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavutil/pixfmt.h" #include "libswscale/swscale.h" } #includ...
train_000.parquet/582
{ "file_path": "videoplayer.cpp", "repo_id": "007LiZhen/FFmpeg-QT-rtsp", "size": 5036, "token_count": 2164 }
# FFmpeg-QT实现摄像头rtsp实时显示 1. 程序运行平台:(1)win10 64bit (2)Qt Creator 4.3.1 2. 程序需要的库:(1)Qt 5.9.1(MSVC 2015,32bit) (2)FFmpeg 2.5.2 3. 程序流程图: 程序流程图如图1所示,图中所示的主函数部分主要完成界面的构建、播放线程的建立以及参考坐标系的建立。图1展示了整个程序的运行流程。 ![图1 程序流程图](https://git.oschina.net/uploads/images/2017/0905/143250_0efc807a_1477507.jpeg "视频播放流程图.jpg") 4. ...
train_000.parquet/583
{ "file_path": "README.md", "repo_id": "007LiZhen/FFmpeg-QT-rtsp", "size": 828, "token_count": 685 }
/** * 李震 * 我的码云:https://git.oschina.net/git-lizhen * 我的CSDN博客:http://blog.csdn.net/weixin_38215395 * 联系:QQ1039953685 */ #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QImage> #include <QPaintEvent> #include <QWidget> #include "videoplayer/videoplayer.h" namespace Ui { class MainWin...
train_000.parquet/584
{ "file_path": "mainwindow.h", "repo_id": "007LiZhen/FFmpeg-QT-rtsp", "size": 929, "token_count": 424 }
/** * 李震 * 我的码云:https://git.oschina.net/git-lizhen * 我的CSDN博客:http://blog.csdn.net/weixin_38215395 * 联系:QQ1039953685 */ #include "mainwindow.h" #include "ui_mainwindow.h" #include <QPainter> #include <QInputDialog> #include <QtMath> #include<iostream> using namespace std; MainWindow::MainWindow(QWidget *parent...
train_000.parquet/585
{ "file_path": "mainwindow.cpp", "repo_id": "007LiZhen/FFmpeg-QT-rtsp", "size": 3538, "token_count": 1613 }
#!/usr/bin/env bash # shellcheck disable=SC2317,SC2181,SC2009,SC2129,SC2163 #-------------------------------------------------------------------------- # Backup Linux Plex Database to tgz file in Backup folder. # v1.3.10 3-Sep-2025 007revad # # MUST be run by a user in sudo, sudoers or wheel group, or as root # # T...
train_000.parquet/586
{ "file_path": "Linux_Plex_Backup.sh", "repo_id": "007revad/Linux_Plex_Backup", "size": 19456, "token_count": 7042 }
# 开源会议室 开源会议室预约小程序+Django服务端后台 ## 扫码体验 ![开源会议室](https://raw.githubusercontent.com/007gzs/meeting/master/resource/room_demo.jpg "开源会议室") ## 安装方式 本项目在以下代码托管网站同步更新: * 码云:https://gitee.com/007gzs/meeting * GitHub:https://github.com/007gzs/meeting ### 获取代码 git clone https://github.com/007gzs/meeting.git ### 服务端...
train_000.parquet/587
{ "file_path": "README.md", "repo_id": "007gzs/meeting", "size": 1769, "token_count": 848 }
## All my scripts, tools and guides <img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC"> #### Contents - [Plex](#plex) - [Synology docker](#synology-docker) - [Synology recovery](#synology-recovery) - [Other Synology...
train_000.parquet/588
{ "file_path": "my-other-scripts.md", "repo_id": "007revad/Linux_Plex_Backup", "size": 9099, "token_count": 3421 }
#!/usr/bin/env bash # shellcheck disable=SC2317,SC2181 #-------------------------------------------------------------------------- # Companion script for Linux Plex Backup script. # v1.1.7 3-Sep-2025 007revad # # MUST be run by a user in sudo, sudoers or wheel group, or as root # # To run the script: # sudo i /shar...
train_000.parquet/589
{ "file_path": "Restore_Linux_Plex_Backup.sh", "repo_id": "007revad/Linux_Plex_Backup", "size": 12981, "token_count": 4778 }
# Linux Plex Backup <a href="https://github.com/007revad/Linux_Plex_Backup/releases"><img src="https://img.shields.io/github/release/007revad/Linux_Plex_Backup.svg"></a> ![Badge](https://hitscounter.dev/api/hit?url=https%3A%2F%2Fgithub.com%2F007revad%2FLinux_Plex_Backup&label=Visitors&icon=github&color=%23198754&messa...
train_000.parquet/590
{ "file_path": "README.md", "repo_id": "007revad/Linux_Plex_Backup", "size": 9110, "token_count": 3212 }
"use strict"; //app.js const api = require("./utils/api.js") const request = require("./utils/request.js") const time = require('./utils/time.js') const meetings = require('./utils/meetings.js') App({ api: api, time: time, meetings: meetings, onLaunch: function (options) { if (wx.getUpdateManager){ co...
train_000.parquet/591
{ "file_path": "miniprogram/app.js", "repo_id": "007gzs/meeting", "size": 4580, "token_count": 1549 }
# encoding: utf-8 from __future__ import absolute_import, unicode_literals from django.conf.urls.static import static """meeting URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/dev/topics/http/urls/ Examples: Function views 1. ...
train_000.parquet/592
{ "file_path": "server/meeting/urls.py", "repo_id": "007gzs/meeting", "size": 1317, "token_count": 473 }
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import os from celery import Celery, signals from django.utils.log import configure_logging # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'meeting.settings') def configure_...
train_000.parquet/593
{ "file_path": "server/meeting/celery.py", "repo_id": "007gzs/meeting", "size": 1181, "token_count": 417 }
# encoding: utf-8 from __future__ import absolute_import, unicode_literals """ Django settings for meeting project. Generated by 'django-admin startproject' using Django 1.11.22. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their valu...
train_000.parquet/594
{ "file_path": "server/meeting/settings.py", "repo_id": "007gzs/meeting", "size": 10217, "token_count": 4291 }
# encoding: utf-8 from __future__ import absolute_import, unicode_literals import logging import os import tempfile import hashlib from django import forms from django.db import models from django.contrib.auth import models as auth_models from django.http import HttpResponse from django.template.loader import render_...
train_000.parquet/595
{ "file_path": "server/core/utils.py", "repo_id": "007gzs/meeting", "size": 10126, "token_count": 3331 }
# encoding: utf-8 from __future__ import absolute_import, unicode_literals from cool import model from django.db import models from django.utils import timezone from core import utils from core.utils import admin_register from . import constants @admin_register(addable=False, changeable=False) class User(utils.Bas...
train_000.parquet/596
{ "file_path": "server/apps/wechat/models.py", "repo_id": "007gzs/meeting", "size": 2099, "token_count": 723 }
# encoding: utf-8 from __future__ import absolute_import, unicode_literals from django.conf import settings from django.core.files.uploadedfile import InMemoryUploadedFile from redis import Redis from six import BytesIO from wechatpy import WeChatClient from wechatpy.crypto import WeChatWxaCrypto from wechatpy.session...
train_000.parquet/597
{ "file_path": "server/apps/wechat/biz.py", "repo_id": "007gzs/meeting", "size": 1297, "token_count": 475 }
# encoding: utf-8 from __future__ import absolute_import, unicode_literals from cool.views import ViewSite, CoolAPIException, ErrorCode from rest_framework import fields from django.contrib.auth import authenticate, login from core import utils from . import biz, models, serializer site = ViewSite(name='wechat', a...
train_000.parquet/598
{ "file_path": "server/apps/wechat/views.py", "repo_id": "007gzs/meeting", "size": 2409, "token_count": 788 }
# encoding: utf-8 from __future__ import absolute_import, unicode_literals from django.db import models from apps.wechat.models import User from core import utils from core.constants import DeleteCode from core.utils import admin_register from . import constants @admin_register(addable=False, changeable=False, lis...
train_000.parquet/599
{ "file_path": "server/apps/meetings/models.py", "repo_id": "007gzs/meeting", "size": 3355, "token_count": 1194 }