Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
50
981k
source
stringlengths
5
120
license
stringclasses
125 values
import requests import csv import json root_address = "https://netrunnerdb.com/api/2.0/" # For pulling from next rotation (AKA Mumbad-Gateway) valid_codes = [ "sansan", "honor-and-profit", "order-and-chaos", "data-and-destiny", "mumbad", "flashpoint", "red-sand", "kitara", "reign-a...
Chemscribbler/Netrunner
MIT
# coding: utf-8 ######################################################################### # 网站: <a href="http://www.crazyit.org">疯狂Java联盟</a> # # author yeeku.H.lee kongyeeku@163.com # # # # version 1.0 ...
CypHelp/TestNewWorldDemo
Apache-2.0
import os import itertools import numpy as np from PIL import Image import torchvision.transforms as transforms from torch.utils.data.sampler import Sampler NO_LABEL = -1 def cifar10(): channel_stats = dict(mean=[0.4914, 0.4822, 0.4465], std=[0.2470, 0.2435, 0.2616]) tra...
shenlong95/SSL-NAG
MIT
import sys import os import random import time import pygame import math from constants import * from pygame.locals import * from pynput.keyboard import Key, Controller class Square: """One tetris square""" def __init__(self, xcoord, ycoord): """Initialize the square Args: xcoord...
hakosaj/PygameAI
MIT
import attr @attr.dataclass(slots=True) class DataKeyDoc: key: str doc_count: float
hexatester/covid19-id
MIT
#!/usr/bin/env python """ Demos of real-time time encoding and decoding algorithms that use IAF neurons. """ # Copyright (c) 2009-2015, Lev Givon # All rights reserved. # Distributed under the terms of the BSD license: # http://www.opensource.org/licenses/bsd-license import sys import numpy as np # Set matplotlib b...
bionet/ted.python
BSD-3-Clause
#!/usr/bin/env python # -*- coding:utf-8 -*- """ @author: HJK @file: test_addon_migu2.py @time: 2019-06-10 """ import sys sys.path.append("..") from music_dl import config config.init() from music_dl.addons import migu2 def test_migu2(): songs_list = migu2.search("丢了你","井胧") print(songs_list) assert songs...
WuZhiChengHF/music-dl
MIT
import json, inspect from helper.cEmbed import granted_msg, denied_msg from helper.cLog import elog config = json.load(open('config.json', 'r')) path = __file__.split(config['split_path']) file = path[len(path) - 1][:-3] # ------------------ [ is_admin_only() ] ------------------ # # Anybody can use this command...
aub-cp-training/Discord-Bot
MIT
from .rule import Rule from abc import ABC, abstractmethod class CSVRule(Rule): '''el_id can be either id of a node or of a resource''' def __init__(self, name_in_csv, el_id): self.id = el_id self.name_in_csv = name_in_csv super().__init__() def get_name_in_csv(self): ...
ER-Visualizer/Visualizer
MIT
#!/usr/bin/env python # encoding: utf-8 """ A module for scheduling jobs Includes spawning, terminating, checking, and troubleshooting various jobs """ from __future__ import (absolute_import, division, print_function, unicode_literals) import time import os import datetime import numpy as np import math import shuti...
yunsiechung/ARC
MIT
from typing import Any, Callable import pytest from pydantic import BaseModel from moona.http.context import HTTPContext from moona.http.handlers import HTTPHandler, end from moona.http.response_body import negotiate, set_json, set_raw, set_text class TestInnerBaseModel(BaseModel): # noqa address: str phon...
katunilya/mona
MIT
"""REST API for accessing log files.""" from django.core.exceptions import ObjectDoesNotExist from django.utils.decorators import method_decorator from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework import generics, status from rest_framework.decorators import ( api_view...
FairphoneMirrors/hiccup-server
Apache-2.0
# anagram.py -- find the case-insensitive anagrams of input words. # Copyright (c) 2015 Scott Cheloha. All rights reserved. # See LICENSE for complete licensing details. from itertools import permutations import argparse wordSet = set() # Strip whitespace from a string and lowercase it def strip_and_lower(s): r...
skotchandsoda/yay-anagrams
BSD-3-Clause
""" Тестируется реакция кнопок меню на нажатия в их области и вне их области """ from state import * COUNT = 200 PAUSE = 1 RUN_TIME = 2 class PressChecker: def __init__(self, state, x, y, width, height, num): self.state = state self.xs = list(np.random.rand(num) * width + x) self.ys = li...
ficrus/battle-for-indent
MIT
# -*- coding: utf-8 -*- from setuptools import setup setup(name='Flask-PAM', version='0.1', description='Flask authentication using PAM', author='Kacper Kołodziej', author_email='kacper@kolodziej.in', url='https://github.com/KujiraProject/Flask-PAM', packages=['flask_pam', 'flask_pa...
UnicronNL/vyos-rest-api
MIT
import io import pytest from requests import get from urllib.parse import urljoin def test_my_uploads_page(wait_for_api, login_user): """ GIVEN a user has logged in (login_user) WHEN the '/my/uploads' page is navigated to (GET) THEN check the response is valid and page title is correct """ requ...
jounile/nollanet
MIT
class Field(object): def __init__(self, name=None, default=None, data_type=None): self.name = name self.default = default self.required = self.default is None self.type = data_type def build(self): result = {key: value for key, value in self.__dict__.items() if value is...
maxpowel/mapped_config
MIT
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware import uvicorn from app.api import gas_price_prediction, airbnb_predict app = FastAPI( title='RESFEBER CARTER DS API', description=""" Awesome Data Science Team. \n**INSTRUCTIONS** \n- To use the API, click on a *post* met...
EvidenceN/travel-price-predictions-api
MIT
from tool.runners.python import SubmissionPy class DivSubmission(SubmissionPy): def run(self, s): values = (int(x) for x in s.splitlines()) return sum((x//3-2) for x in values)
SilvestrePerret/adventofcode-2019
MIT
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
57