Dataset Viewer
Auto-converted to Parquet Duplicate
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
117
max_stars_count
int64
0
95.2k
id
stringlengths
1
7
content
stringlengths
12
593k
input_ids
sequencelengths
7
549k
office365/sharepoint/portal/group_site_manager.py
rikeshtailor/Office365-REST-Python-Client
0
9312
<reponame>rikeshtailor/Office365-REST-Python-Client from office365.runtime.client_object import ClientObject from office365.runtime.client_result import ClientResult from office365.runtime.http.http_method import HttpMethod from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office3...
[ 1, 529, 276, 1112, 420, 29958, 5357, 267, 400, 737, 272, 29914, 27247, 29941, 29953, 29945, 29899, 1525, 1254, 29899, 11980, 29899, 4032, 13, 3166, 8034, 29941, 29953, 29945, 29889, 15634, 29889, 4645, 29918, 3318, 1053, 12477, 2061, 13, ...
python/cracking_codes_with_python/k_columnar_transposition_cipher_hack.py
MerrybyPractice/book-challanges-and-tutorials
0
48975
# Columnar Transposition Hack per Cracking Codes with Python # https://www.nostarch.com/crackingcodes/ (BSD Licensed) import pyperclip from j_detect_english import is_english from g_decrypt_columnar_transposition_cipher import decrypt_message as decrypt def hack_transposition(text): print('Press Ctrl-C to quit a...
[ 1, 396, 12481, 279, 4103, 3283, 379, 547, 639, 14279, 384, 292, 315, 2631, 411, 5132, 13, 29937, 2045, 597, 1636, 29889, 6582, 1279, 29889, 510, 29914, 29883, 22282, 292, 18137, 29914, 313, 29933, 7230, 10413, 21144, 29897, 13, 13, 5215...
btree.py
chrisconley/python-data-structures
0
1607164
from collections import deque class BinarySearchTree: def __init__(self): self.root = None def get(self, key): return self._get(self.root, key) def _get(self, node, key): if node is None: return None if key < node.key: return self._get(node.left, k...
[ 1, 515, 16250, 1053, 316, 802, 13, 13, 13, 1990, 29479, 7974, 9643, 29901, 13, 1678, 822, 4770, 2344, 12035, 1311, 1125, 13, 4706, 1583, 29889, 4632, 353, 6213, 13, 13, 1678, 822, 679, 29898, 1311, 29892, 1820, 1125, 13, 4706, 736, ...
pastebin/migrations/0006_auto_20170129_1502.py
johannessarpola/django-pastebin
0
47244
<reponame>johannessarpola/django-pastebin<filename>pastebin/migrations/0006_auto_20170129_1502.py<gh_stars>0 # -*- coding: utf-8 -*- # Generated by Django 1.11a1 on 2017-01-29 15:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependenci...
[ 1, 529, 276, 1112, 420, 29958, 29926, 1148, 812, 404, 6834, 2963, 29914, 14095, 29899, 16179, 2109, 29966, 9507, 29958, 16179, 2109, 29914, 26983, 800, 29914, 29900, 29900, 29900, 29953, 29918, 6921, 29918, 29906, 29900, 29896, 29955, 29900, ...
3_2_HelloWorld.py
Asurada2015/TensorFlowactual-combat_code
4
159118
<reponame>Asurada2015/TensorFlowactual-combat_code #%% # Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache....
[ 1, 529, 276, 1112, 420, 29958, 2887, 332, 1114, 29906, 29900, 29896, 29945, 29914, 29911, 6073, 17907, 19304, 29899, 510, 10222, 29918, 401, 13, 29937, 7686, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29945, 450, 323, 6073, 17907, ...
DQN DDQN Dueling/network.py
eayvali/DeepRL
2
21356
# -*- coding: utf-8 -*- """ Created on Sun Jan 19 23:19:43 2020 @author: elif.ayvali """ import torch import torch.nn as nn import torch.nn.functional as F from collections import OrderedDict class deep_Q_net(nn.Module): """Actor (Policy) Model.""" def __init__(self, state_size, action_size, seed): ...
[ 1, 396, 448, 29930, 29899, 14137, 29901, 23616, 29899, 29947, 448, 29930, 29899, 13, 15945, 29908, 13, 20399, 373, 8991, 2627, 29871, 29896, 29929, 29871, 29906, 29941, 29901, 29896, 29929, 29901, 29946, 29941, 29871, 29906, 29900, 29906, 299...
javascript/forms.py
uadson/studies
0
99561
<reponame>uadson/studies<gh_stars>0 from django import forms class CalcImcForm(forms.Form): peso = forms.CharField( required=False) altura = forms.CharField( required=False)
[ 1, 529, 276, 1112, 420, 29958, 29884, 328, 1100, 29914, 18082, 583, 29966, 12443, 29918, 303, 1503, 29958, 29900, 13, 3166, 9557, 1053, 7190, 13, 13, 1990, 3037, 29883, 1888, 29883, 2500, 29898, 9514, 29889, 2500, 1125, 13, 1678, 8928, ...
src/bot/handlers/essence_part_handler.py
nchursin/claimant
3
34211
from typing import Optional, List from aiogram import types, Dispatcher, filters from aiogram.dispatcher import FSMContext from aiogram.dispatcher.filters.state import StatesGroup, State from aiogram.types import ReplyKeyboardMarkup from handlers.common_actions_handlers import process_manual_enter, process_option_sel...
[ 1, 515, 19229, 1053, 28379, 29892, 2391, 13, 13, 3166, 7468, 13342, 1053, 4072, 29892, 3295, 5041, 261, 29892, 18094, 13, 3166, 7468, 13342, 29889, 13369, 261, 1053, 383, 17061, 2677, 13, 3166, 7468, 13342, 29889, 13369, 261, 29889, 26705...
piccel/ui/__init__.py
lesca-research/piccel
2
188313
from .generated import access_ui from .generated import data_sheet_ui from .generated import form_item_ui from .generated import form_ui from .generated import item_boolean_checkboxes_ui from .generated import item_choice_radio_ui from .generated import item_datetime_ui from .generated import item_single_line_ui from ....
[ 1, 515, 869, 13525, 1053, 2130, 29918, 1481, 13, 3166, 869, 13525, 1053, 848, 29918, 9855, 29918, 1481, 13, 3166, 869, 13525, 1053, 883, 29918, 667, 29918, 1481, 13, 3166, 869, 13525, 1053, 883, 29918, 1481, 13, 3166, 869, 13525, 1053, ...
locan/data/hulls/__init__.py
super-resolution/Locan
8
9558
<filename>locan/data/hulls/__init__.py """ Hull objects of localization data. Submodules: ----------- .. autosummary:: :toctree: ./ hull alpha_shape """ from locan.data.hulls.alpha_shape import * from locan.data.hulls.hull import * __all__ = [] __all__.extend(hull.__all__) __all__.extend(alpha_shape.__al...
[ 1, 529, 9507, 29958, 2029, 273, 29914, 1272, 29914, 29882, 913, 29879, 29914, 1649, 2344, 26914, 2272, 13, 15945, 29908, 13, 29950, 913, 3618, 310, 1887, 2133, 848, 29889, 13, 13, 4035, 7576, 29901, 13, 1378, 5634, 13, 13, 636, 1120, ...
09-PiDay2022/IBM_quantum_randomness.py
StrangeGirlMurph/CodingProjects
0
175546
from qiskit import * from qiskit import IBMQ from qiskit.tools.monitor import job_monitor from qiskit.providers.ibmq import least_busy def random_qubit(): IBMQ.load_account() provider = IBMQ.get_provider("ibm-q") small_devices = provider.backends( filters=lambda x: x.configuration().n_qubits == 5...
[ 1, 515, 3855, 3873, 277, 1053, 334, 13, 3166, 3855, 3873, 277, 1053, 15731, 25566, 13, 3166, 3855, 3873, 277, 29889, 8504, 29889, 3712, 2105, 1053, 4982, 29918, 3712, 2105, 13, 3166, 3855, 3873, 277, 29889, 771, 29454, 29889, 747, 28466...
moredata/enricher/elasticsearch_connector/__init__.py
thomassonobe/more-data
0
57654
from .elasticsearch_connector import * from .index_handler import * from .policy_handler import *
[ 1, 515, 869, 295, 20291, 29918, 11958, 2801, 1053, 334, 13, 3166, 869, 2248, 29918, 13789, 1053, 334, 13, 3166, 869, 22197, 29918, 13789, 1053, 334, 13, 2 ]
scripts/03_glove_build_counts.py
svlandeg/sense2vec
1,140
124120
<reponame>svlandeg/sense2vec<gh_stars>1000+ #!/usr/bin/env python import os from pathlib import Path from wasabi import msg import typer def main( # fmt: off glove_dir: str = typer.Argument(..., help="Directory containing the GloVe build"), in_dir: str = typer.Argument(..., help="Directory with preprocess...
[ 1, 529, 276, 1112, 420, 29958, 4501, 28328, 29887, 29914, 29879, 1947, 29906, 2003, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29900, 29900, 29900, 29974, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 5215, 2897, 13, 3166, ...
Lib/vanilla/vanillaGradientButton.py
miguelsousa/vanilla
21
97761
from AppKit import * from vanillaButton import ImageButton class GradientButton(ImageButton): nsBezelStyle = NSSmallSquareBezelStyle
[ 1, 515, 2401, 13117, 1053, 334, 13, 3166, 1109, 2911, 3125, 1053, 7084, 3125, 13, 13, 13, 1990, 19295, 993, 3125, 29898, 2940, 3125, 1125, 13, 13, 1678, 17534, 3629, 10533, 5568, 353, 405, 1799, 29885, 497, 29903, 4718, 3629, 10533, 5...
ui_test/user_flows.py
uktrade/dit-contact-forms
2
156652
from ui_test.selectors.questionnaire import QUESTIONNAIRE from ui_test.selectors.form import FORM def select_questionnaire(browser, options): for key, value in options.items(): browser.find_by_css(QUESTIONNAIRE[key][value]).click() browser.find_by_css(QUESTIONNAIRE["continue"]).click() def submi...
[ 1, 515, 14313, 29918, 1688, 29889, 2622, 943, 29889, 12470, 15421, 1053, 660, 4462, 1254, 2725, 3521, 29902, 1525, 13, 3166, 14313, 29918, 1688, 29889, 2622, 943, 29889, 689, 1053, 383, 12054, 13, 13, 13, 1753, 1831, 29918, 12470, 15421, ...
pybomberman/__init__.py
pybomberman/pybomberman
2
32978
from .map import Map print("Soon... https://github.com/pybomberman/pybomberman")
[ 1, 515, 869, 1958, 1053, 7315, 13, 13, 2158, 703, 29903, 6150, 856, 2045, 597, 3292, 29889, 510, 29914, 2272, 29890, 290, 495, 1171, 29914, 2272, 29890, 290, 495, 1171, 1159, 13, 2 ]
base_python/tests/test_flatten.py
cogment/cogment-verse
23
106746
<reponame>cogment/cogment-verse # Copyright 2021 AI Redefined Inc. <<EMAIL>> # # 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 requi...
[ 1, 529, 276, 1112, 420, 29958, 29883, 468, 358, 29914, 29883, 468, 358, 29899, 3901, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29906, 29896, 319, 29902, 4367, 5598, 9266, 29889, 3532, 26862, 6227, 6778, 13, 29937, 13, 29937, 10413, 211...
cbh.py
jensengroup/fragreact
2
33656
<reponame>jensengroup/fragreact<gh_stars>1-10 #!/usr/bin/env python import numpy as np import re from rdkit import Chem from rdkit.Chem import rdMolDescriptors from itertools import combinations import copy def print_smiles(smiles_list, human=False): smiles_dict = count_smiles(smiles_list) keys = smiles_dic...
[ 1, 529, 276, 1112, 420, 29958, 29926, 14762, 2972, 29914, 29888, 1431, 8423, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 29937, 14708, 4855, 29914, 2109, 29914, 6272, 3017, 13, 13, 5215, 12655, 408, 7442, 13, 52...
mlcomp/parallelm/pipeline/component_dir_helper.py
lisapm/mlpiper
7
198337
<filename>mlcomp/parallelm/pipeline/component_dir_helper.py<gh_stars>1-10 import pkg_resources import logging import os from parallelm.common.base import Base class ComponentDirHelper(Base): def __init__(self, pkg, main_program): """ Extract component directory outside of egg, so an external com...
[ 1, 529, 9507, 29958, 828, 2388, 29914, 23482, 29885, 29914, 13096, 5570, 29914, 9700, 29918, 3972, 29918, 20907, 29889, 2272, 29966, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 5215, 282, 9415, 29918, 13237, 13, 5215, 12...
test.py
nerdingitout/STT--
0
28057
<gh_stars>0 import pandas as pd import json import csv # importing the module import json # Opening JSON file with open('response.json') as json_file: data = json.load(json_file) # for reading nested data [0] represents # the index value of the list print(data['results'][0]['alternatives...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29900, 13, 5215, 11701, 408, 10518, 13, 5215, 4390, 13, 5215, 11799, 13, 13, 13, 13, 29937, 28348, 278, 3883, 29871, 13, 5215, 4390, 29871, 13, 259, 13, 29937, 4673, 292, 4663, 934, 29871, 13, ...
vulnerable_people_form/integrations/google_analytics.py
uk-gov-mirror/alphagov.govuk-shielded-vulnerable-people-service
3
125960
import requests import sentry_sdk from flask import current_app def track_event(category, action, label=None, value=0): data = { "v": "1", # API Version. "tid": current_app.config["GA_TRACKING_ID"], # Tracking ID / Property ID. # Anonymous Client Identifier. Ideally, this should be a UUI...
[ 1, 1053, 7274, 13, 5215, 2665, 719, 29918, 15348, 13, 3166, 29784, 1053, 1857, 29918, 932, 13, 13, 13, 1753, 5702, 29918, 3696, 29898, 7320, 29892, 3158, 29892, 3858, 29922, 8516, 29892, 995, 29922, 29900, 1125, 13, 1678, 848, 353, 426,...
assignment3/code/q4.1.py
liusida/ds2
0
121156
# requirements.txt: # pyro 1.6.0 # torch 1.8.0 import pyro from pyro.distributions import Normal,Gamma,InverseGamma,Bernoulli,Poisson import matplotlib.pyplot as plt # import pyro.poutine as poutine pyro.set_rng_seed(101) def normal_density_estimation(obs, N): assert obs is None or N==obs.shape[0] loc = pyro....
[ 1, 396, 11780, 29889, 3945, 29901, 13, 29937, 11451, 307, 29871, 29896, 29889, 29953, 29889, 29900, 13, 29937, 4842, 305, 29871, 29896, 29889, 29947, 29889, 29900, 13, 13, 5215, 11451, 307, 13, 3166, 11451, 307, 29889, 27691, 29879, 1053, ...
openrave/docs/source/tutorials/openravepy_examples/simple_environment_loading.py
jdsika/TUM_HOly
2
88903
<gh_stars>1-10 """Loads up an environment, attaches a viewer, loads a scene, and requests information about the robot. """ from openravepy import * env = Environment() # create openrave environment env.SetViewer('qtcoin') # attach viewer (optional) env.Load('data/lab1.env.xml') # load a simple scene robot = env.GetRobo...
[ 1, 529, 12443, 29918, 303, 1503, 29958, 29896, 29899, 29896, 29900, 13, 15945, 29908, 5896, 29879, 701, 385, 5177, 29892, 10641, 267, 263, 6316, 556, 29892, 15376, 263, 9088, 29892, 322, 7274, 2472, 1048, 278, 19964, 29889, 13, 15945, 299...
TestMatrices.py
Tsyrema/Computing-the-Distance-Matrix-and-the-Covariance-Matrix-of-Data
0
108405
# script to test your computation code # do not change this file from ComputeMatrices import compute_distance_naive, \ compute_distance_smart, compute_correlation_naive, \ compute_correlation_smart import numpy as np from sklearn.datasets import load_iris # my computation def my_comp_distance(X): N = X.sh...
[ 1, 396, 2471, 304, 1243, 596, 16287, 775, 13, 29937, 437, 451, 1735, 445, 934, 13, 13, 3166, 11796, 29872, 29924, 8141, 1575, 1053, 10272, 29918, 19244, 29918, 1056, 573, 29892, 320, 13, 1678, 10272, 29918, 19244, 29918, 3844, 442, 2989...
sailfish/solvers/scdg_1d.py
Javk5pakfa/sailfish
1
94987
<reponame>Javk5pakfa/sailfish """ An n-th order discontinuous Galerkin solver for 1D scalar advection. """ from typing import NamedTuple from numpy.polynomial.legendre import leggauss, Legendre from sailfish.mesh import PlanarCartesianMesh from sailfish.solver import SolverBase class CellData: """ Gauss weig...
[ 1, 529, 276, 1112, 420, 29958, 29967, 485, 29895, 29945, 29886, 557, 5444, 29914, 29879, 737, 15161, 13, 15945, 29908, 13, 2744, 302, 29899, 386, 1797, 766, 20621, 681, 5208, 5968, 262, 899, 369, 363, 29871, 29896, 29928, 17336, 594, 34...
pychron/lasers/power/composite_calibration_manager.py
ASUPychron/pychron
31
2675
<reponame>ASUPychron/pychron # =============================================================================== # Copyright 2012 <NAME> # # 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 # # ht...
[ 1, 529, 276, 1112, 420, 29958, 3289, 4897, 3376, 1617, 29914, 2272, 5904, 13, 29937, 1275, 9166, 9166, 9166, 9166, 4936, 2751, 29922, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29896, 29906, 529, 5813, 29958, 13, 29937, 13, 29937, 10413...
library/modulemanager.py
l29ah/vk4xmpp
77
94195
<reponame>l29ah/vk4xmpp # coding: utf-8 # This file is a part of VK4XMPP transport # © simpleApps, 2015. """ Manages python modules as xmpppy handlers """ __author__ = "mrDoctorWho <<EMAIL>>" __version__ = "1.1" import os from writer import * from __main__ import Component, TransportFeatures, UserFeatures def prox...
[ 1, 529, 276, 1112, 420, 29958, 29880, 29906, 29929, 801, 29914, 29894, 29895, 29946, 29916, 29885, 407, 13, 29937, 14137, 29901, 23616, 29899, 29947, 13, 29937, 910, 934, 338, 263, 760, 310, 478, 29968, 29946, 29990, 3580, 29925, 8608, 13...
appengine-compat/exported_appengine_sdk/google/storage/speckle/proto/jdbc_type.py
speedplane/python-compat-runtime
26
6849
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # 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 o...
[ 1, 18787, 4855, 29914, 2109, 29914, 6272, 3017, 13, 29937, 13, 29937, 14187, 1266, 29871, 29906, 29900, 29900, 29955, 5087, 9266, 29889, 13, 29937, 13, 29937, 10413, 21144, 1090, 278, 13380, 19245, 29892, 10079, 29871, 29906, 29889, 29900, ...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
6