Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringlengths
7
94
repo_path
stringlengths
4
237
repo_head_hexsha
stringlengths
40
40
content
stringlengths
10
680k
apis
stringlengths
2
840k
MTES-MCT/sparte
public_data/serializers.py
3b8ae6d21da81ca761d64ae9dfe2c8f54487211c
from rest_framework_gis import serializers from rest_framework import serializers as s from .models import ( Artificialisee2015to2018, Artificielle2018, CommunesSybarval, CouvertureSol, EnveloppeUrbaine2018, Ocsge, Renaturee2018to2015, Sybarval, Voirie2018, ZonesBaties2018, ...
[((28, 17, 28, 42), 'rest_framework.serializers.SerializerMethodField', 's.SerializerMethodField', ({}, {}), '()', True, 'from rest_framework import serializers as s\n'), ((29, 17, 29, 42), 'rest_framework.serializers.SerializerMethodField', 's.SerializerMethodField', ({}, {}), '()', True, 'from rest_framework import s...
naman1901/django-quick-search
quick_search/admin.py
7b93554ed9fa4721e52372f9fd1a395d94cc04a7
from django.contrib import admin from .models import SearchResult # Register your models here. class SearchResultAdmin(admin.ModelAdmin): fields = ["query", "heading", "url", "text"] admin.site.register(SearchResult, SearchResultAdmin)
[((8, 0, 8, 52), 'django.contrib.admin.site.register', 'admin.site.register', ({(8, 20, 8, 32): 'SearchResult', (8, 34, 8, 51): 'SearchResultAdmin'}, {}), '(SearchResult, SearchResultAdmin)', False, 'from django.contrib import admin\n')]
Amirali-Shirkh/rasa-for-botfront
rasa/train.py
36aa24ad31241c5d1a180bbe34e1c8c50da40ff7
import asyncio import os import tempfile from contextlib import ExitStack from typing import Text, Optional, List, Union, Dict from rasa.importers.importer import TrainingDataImporter from rasa import model from rasa.model import FingerprintComparisonResult from rasa.core.domain import Domain from rasa.utils.common im...
[((116, 4, 119, 5), 'rasa.cli.utils.print_warning', 'print_warning', ({(117, 8, 118, 110): '"""Core training was skipped because no valid domain file was found. Only an nlu-model was created.Please specify a valid domain using \'--domain\' argument or check if the provided domain file exists."""'}, {}), '(\n "Core t...
Jahidul007/Python-Bootcamp
coding_intereview/1475. Final Prices With a Special Discount in a Shop.py
3c870587465ff66c2c1871c8d3c4eea72463abda
class Solution: def finalPrices(self, prices: List[int]) -> List[int]: res = [] for i in range(len(prices)): for j in range(i+1,len(prices)): if prices[j]<=prices[i]: res.append(prices[i]-prices[j]) break if j==len(p...
[]
timgates42/denite.nvim
rplugin/python3/denite/ui/default.py
12a9b5456f5a4600afeb0ba284ce1098bd35e501
# ============================================================================ # FILE: default.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ import re import typing from denite.util import echo, error, c...
[((177, 11, 177, 73), 're.search', 're.search', ({(177, 21, 177, 41): '"""\\\\[Command Line\\\\]$"""', (177, 43, 177, 72): 'self._vim.current.buffer.name'}, {}), "('\\\\[Command Line\\\\]$', self._vim.current.buffer.name)", False, 'import re\n'), ((814, 8, 814, 29), 'denite.util.clearmatch', 'clearmatch', ({(814, 19, 8...
yuanz271/PyDSTool
PyDSTool/core/context_managers.py
886c143cdd192aea204285f3a1cb4968c763c646
# -*- coding: utf-8 -*- """Context managers implemented for (mostly) internal use""" import contextlib import functools from io import UnsupportedOperation import os import sys __all__ = ["RedirectStdout", "RedirectStderr"] @contextlib.contextmanager def _stdchannel_redirected(stdchannel, dest_filename, mode="w")...
[((43, 17, 43, 70), 'functools.partial', 'functools.partial', ({(43, 35, 43, 57): '_stdchannel_redirected', (43, 59, 43, 69): 'sys.stdout'}, {}), '(_stdchannel_redirected, sys.stdout)', False, 'import functools\n'), ((44, 17, 44, 70), 'functools.partial', 'functools.partial', ({(44, 35, 44, 57): '_stdchannel_redirected...
Muzzy73/pos_kiosk
pos_kiosk/hooks.py
1ed42cfaeb15f009293b76d05dd85bd322b42f03
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "pos_kiosk" app_title = "Pos Kiosk" app_publisher = "9t9it" app_description = "Kiosk App" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "info@9t9it.com" app_license = "MIT" ...
[]
gcouti/pypagAI
pypagai/models/model_lstm.py
d08fac95361dcc036d890a88cb86ce090322a612
from keras import Model, Input from keras.layers import Dense, concatenate, LSTM, Reshape, Permute, Embedding, Dropout, Convolution1D, Flatten from keras.optimizers import Adam from pypagai.models.base import KerasModel class SimpleLSTM(KerasModel): """ Use a simple lstm neural network """ @staticmet...
[((14, 17, 14, 44), 'pypagai.models.base.KerasModel.default_config', 'KerasModel.default_config', ({}, {}), '()', False, 'from pypagai.models.base import KerasModel\n'), ((25, 16, 25, 59), 'keras.Input', 'Input', (), '', False, 'from keras import Model, Input\n'), ((26, 19, 26, 65), 'keras.Input', 'Input', (), '', Fals...
joelouismarino/variational_rl
lib/variables/latent_variables/__init__.py
11dc14bfb56f3ebbfccd5de206b78712a8039a9a
from .fully_connected import FullyConnectedLatentVariable from .convolutional import ConvolutionalLatentVariable
[]
lpj0822/image_point_cloud_det
easyai/model/backbone/cls/pnasnet.py
7b20e2f42f3f2ff4881485da58ad188a1f0d0e0f
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: ''' PNASNet in PyTorch. Paper: Progressive Neural Architecture Search ''' from easyai.base_name.block_name import NormalizationType, ActivationType from easyai.base_name.backbone_name import BackboneName from easyai.model.backbone.utility.base_backbone import * fr...
[((39, 17, 46, 75), 'easyai.model.base_block.utility.utility_block.ConvBNActivationBlock', 'ConvBNActivationBlock', (), '', False, 'from easyai.model.base_block.utility.utility_block import ConvBNActivationBlock\n')]
cugxy/map_download
map_download/cmd/TerrainDownloader.py
02142b33edb2bc163f7ae971f443efe84c13e029
# -*- coding: utf-8 -*- # coding=utf-8 import json import os import math import logging import requests import time from map_download.cmd.BaseDownloader import DownloadEngine, BaseDownloaderThread, latlng2tile_terrain, BoundBox def get_access_token(token): resp = None request_count = 0 url = "https://ap...
[((52, 11, 52, 36), 'os.path.exists', 'os.path.exists', ({(52, 26, 52, 35): 'file_path'}, {}), '(file_path)', False, 'import os\n'), ((97, 23, 97, 73), 'map_download.cmd.BaseDownloader.latlng2tile_terrain', 'latlng2tile_terrain', ({(97, 43, 97, 55): 'bbox.min_lat', (97, 57, 97, 69): 'bbox.min_lng', (97, 71, 97, 72): 'z...
End of preview. Expand in Data Studio

Dataset Card for "the-stack-python_api-10k"

More Information needed

Downloads last month
41