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 listlengths 7 549k |
|---|---|---|---|---|---|
tests/batch/plugins/DummyPlugin/__init__.py | j-h-m/Media-Journaling-Tool | 0 | 190003 | # =============================================================================
# Authors: PAR Government
# Organization: DARPA
#
# Copyright (c) 2016 PAR Government
# All rights reserved.
#==============================================================================
import maskgen
def transform(img,source,target,**... | [
1,
396,
1275,
9166,
9166,
9166,
9166,
4936,
25512,
13,
29937,
13189,
943,
29901,
349,
1718,
10354,
13,
29937,
9205,
2133,
29901,
360,
1718,
7228,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29953,
349... |
install_and_run.py | encukou/mufl | 1 | 107635 | import sys
if sys.version_info < (3, 8):
exit('This game requires Python 3.8+')
import os
from pathlib import Path
import subprocess
HERE = Path(__file__).parent
venv_path = HERE / 'venv'
possible_python_locations = 'bin/python', 'scripts/python'
def run(args, **kwargs):
kwargs.setdefault('check', True)
... | [
1,
1053,
10876,
13,
13,
361,
10876,
29889,
3259,
29918,
3888,
529,
313,
29941,
29892,
29871,
29947,
1125,
13,
1678,
6876,
877,
4013,
3748,
6858,
5132,
29871,
29941,
29889,
29947,
29974,
1495,
13,
13,
5215,
2897,
13,
3166,
2224,
1982,
10... |
dimred/data/oldloader1.py | kulkarnisp/dim-red | 1 | 190070 | import numpy as np
import os,sys
import matplotlib.pyplot as plt
import pathlib
import pandas as pd
# import plotly.express as px
# ipath__ = pathlib.Path(__file__) #.parent.resolve()
# ipath__= os.path.normpath(ipath__).split(os.path.sep)
# datapath__ = os.path.join(*ipath__[:-3],"datasets/")
datapath__ = os.path.... | [
1,
1053,
12655,
408,
7442,
13,
5215,
2897,
29892,
9675,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
2224,
1982,
13,
13,
5215,
11701,
408,
10518,
13,
13,
29937,
1053,
6492,
368,
29889,
17073,
408,
282,
29916,
13,
13,
2993... |
tkgeom/__init__.py | ezsolti/TKworkshop | 0 | 92277 | __package__ = 'tkgeom'
__title__ = 'tkgeom'
__description__ = '2D geometry module as an example for the TK workshop'
__copyright__ = '2019, <NAME>'
__version__ = '1.0.0'
| [
1,
4770,
5113,
1649,
353,
525,
11178,
479,
290,
29915,
13,
1649,
3257,
1649,
353,
525,
11178,
479,
290,
29915,
13,
1649,
8216,
1649,
353,
525,
29906,
29928,
16303,
3883,
408,
385,
1342,
363,
278,
323,
29968,
664,
19032,
29915,
13,
13,... |
backend/core/jobs/__init__.py | makakken/roseguarden | 0 | 149384 | """
The roseguarden project
Copyright (C) 2018-2020 <NAME>,
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is ... | [
1,
9995,
13,
1576,
11492,
2543,
7879,
2060,
13,
13,
11882,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29947,
29899,
29906,
29900,
29906,
29900,
29871,
529,
5813,
10202,
13,
13,
4013,
1824,
338,
3889,
7047,
29901,
366,
508,
2654,... |
src/history/migrations/0003_auto_20200710_0608.py | ritvikmahajan17/scrum-2 | 8 | 126882 | <filename>src/history/migrations/0003_auto_20200710_0608.py
# Generated by Django 3.0.7 on 2020-07-10 00:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('project', '0004_auto_20200701_0... | [
1,
529,
9507,
29958,
4351,
29914,
18434,
29914,
26983,
800,
29914,
29900,
29900,
29900,
29941,
29918,
6921,
29918,
29906,
29900,
29906,
29900,
29900,
29955,
29896,
29900,
29918,
29900,
29953,
29900,
29947,
29889,
2272,
13,
29937,
3251,
630,
4... |
lisa/target.py | mrkajetanp/lisa | 0 | 1659 | # SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2018, ARM Limited and contributors.
#
# 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
#
# ... | [
1,
396,
10937,
29928,
29990,
29899,
29931,
293,
1947,
29899,
12889,
29901,
13380,
29899,
29906,
29889,
29900,
13,
29937,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29947,
29892,
9033,
29924,
28873,
322,
17737,
2956... |
action-enigma2.py | torstenzey/snipsenigma2 | 0 | 162503 | <reponame>torstenzey/snipsenigma2
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import paho.mqtt.client as mqtt
import json
import httplib
def on_connect(client, userdata, flags, rc):
mqtt.subscribe('hermes/intent/torstenzey:switch_to')
mqtt.subscribe('hermes/intent/torstenzey:television_on')
mqtt.subscr... | [
1,
529,
276,
1112,
420,
29958,
7345,
3510,
911,
29891,
29914,
29879,
1240,
567,
264,
2934,
29906,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29906,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
... |
study_algorithm/python/Linked List/Cycle Check.py | AlphaSunny/study | 0 | 89793 | <gh_stars>0
class Node(object):
def __init__(self,value):
self.value = value
self.nextnode = None
def cycle_check(node):
# Begin both markers at the first node
marker1 = node
marker2 = node
# Go until end of list
while marker2 != None and ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
1990,
9071,
29898,
3318,
1125,
30004,
13,
1678,
6756,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1767,
1125,
30004,
13,
4706,
6756,
13,
4706,
1583,
29889,
1767,
353,
995,
30004,
13,... |
Algorithms/032_TREE.py | ChaoticMarauder/Project_Rosalind | 0 | 28278 | def connected_tree(n, edge_list):
current_edges = len(edge_list)
edges_needed = (n-1) - current_edges
return edges_needed
def main():
with open('datasets/rosalind_tree.txt') as input_file:
input_data = input_file.read().strip().split('\n')
n = int(input_data.pop(0))
edge_l... | [
1,
822,
6631,
29918,
8336,
29898,
29876,
29892,
7636,
29918,
1761,
1125,
13,
1678,
1857,
29918,
287,
2710,
353,
7431,
29898,
12864,
29918,
1761,
29897,
13,
1678,
12770,
29918,
484,
19226,
353,
313,
29876,
29899,
29896,
29897,
448,
1857,
2... |
aoc_cas/aoc2021/day9.py | TedCassirer/advent-of-code | 1 | 112574 | def getGrid(data):
return [[int(n) for n in row] for row in data.splitlines()]
def lowPoints(grid):
M, N = len(grid), len(grid[0])
for y, row in enumerate(grid):
for x, n in enumerate(row):
right = grid[y][x + 1] if x != N - 1 else 9
up = grid[y - 1][x] if y != 0 else 9
... | [
1,
822,
679,
5756,
29898,
1272,
1125,
13,
1678,
736,
5519,
524,
29898,
29876,
29897,
363,
302,
297,
1948,
29962,
363,
1948,
297,
848,
29889,
5451,
9012,
580,
29962,
13,
13,
13,
1753,
4482,
20325,
29898,
7720,
1125,
13,
1678,
341,
2989... |
rmon/processes/__init__.py | gnkr8/rmon | 1 | 145395 | <reponame>gnkr8/rmon
from .base import Process
| [
1,
529,
276,
1112,
420,
29958,
5138,
12748,
29947,
29914,
1758,
265,
13,
3166,
869,
3188,
1053,
10554,
13,
13,
2
] |
tests/band_tests.py | fortyninemaps/karta | 84 | 189578 | <reponame>fortyninemaps/karta<gh_stars>10-100
import unittest
import numpy as np
import numpy.testing as npt
from karta.raster import SimpleBand, CompressedBand
from karta.raster.band import BandIndexer
class GenericBandTests(object):
""" Tests that all Band classes must pass """
def test_get_dtype(self):
... | [
1,
529,
276,
1112,
420,
29958,
3921,
948,
262,
331,
2547,
29914,
29895,
16979,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
443,
27958,
13,
5215,
12655,
408,
7442,
13,
5215,
12655,
29889,
1342... |
receipt2vec/models/BaseEncoder.py | TinkoffCreditSystems/receipt2vec | 4 | 166070 | <gh_stars>1-10
from torch.nn import Module
from allennlp.common.registrable import Registrable
from abc import abstractmethod, abstractclassmethod, ABCMeta
from typing import Any, T, Type
class BaseEncoder(Module, Registrable, metaclass=ABCMeta):
def __init__(self):
super(BaseEncoder, self).__init__()
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
4842,
305,
29889,
15755,
1053,
15591,
13,
3166,
599,
2108,
22833,
29889,
9435,
29889,
1727,
12496,
569,
1053,
2169,
12496,
569,
13,
3166,
25638,
1053,
9846,
569... |
protos/model_pb2.py | ChenCongGit/Chinese-aster | 6 | 157963 | <filename>protos/model_pb2.py
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: Chinese_aster/protos/model.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message... | [
1,
529,
9507,
29958,
771,
29873,
359,
29914,
4299,
29918,
24381,
29906,
29889,
2272,
13,
29937,
3251,
630,
491,
278,
9608,
6835,
6516,
29889,
29871,
11662,
6058,
11488,
29991,
13,
29937,
2752,
29901,
10013,
29918,
1901,
29914,
771,
29873,
... |
scripts/master/master_gen.py | yjbanov/chromium_build | 0 | 74846 | <reponame>yjbanov/chromium_build<filename>scripts/master/master_gen.py
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import ast
import os
from buildbot.changes.filter import ChangeFilter
from buildbot.s... | [
1,
529,
276,
1112,
420,
29958,
17472,
2571,
586,
29914,
27433,
1974,
29918,
4282,
29966,
9507,
29958,
16713,
29914,
6207,
29914,
6207,
29918,
1885,
29889,
2272,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29946,
450,
678,
456,
1974,... |
2021/07.py | EwwPhysics/advent-of-code | 0 | 70239 | <filename>2021/07.py
from statistics import mean, median
import math
with open("input.txt") as fin:
positions = [int(i) for i in fin.read().split(",")]
def p1():
m = median(positions)
return sum(abs(m - x) for x in positions)
def p2():
m = mean(positions)
res = float("inf")
for m in range(... | [
1,
529,
9507,
29958,
29906,
29900,
29906,
29896,
29914,
29900,
29955,
29889,
2272,
13,
3166,
13964,
1053,
2099,
29892,
19194,
13,
5215,
5844,
13,
13,
13,
2541,
1722,
703,
2080,
29889,
3945,
1159,
408,
1436,
29901,
13,
1678,
11909,
353,
... |
test/hello.py | marcosfede/ec-archlinux | 0 | 1604324 | <gh_stars>0
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Simple test as an example
#
def test(helper):
helper.wait_output("--- UART initialized")
helper.ec_command("version")
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29896,
450,
678,
456,
1974,
6570,
13189,
943,
29889,
2178,
10462,
21676,
29889,
13,
29937,
4803,
310,
445,
2752,
775,
33... |
devops-console/apps/teams/models.py | lilinghell/devops | 4 | 52439 | <gh_stars>1-10
from django.db import models
from django.utils.translation import ugettext_lazy as _
from users.models import User
from common.mixin import BaseModelMixin
__all__ = ["Team", "Member"]
class Team(BaseModelMixin):
name = models.CharField(max_length=128, null=True, unique=True, verbose_name=_("TeamNa... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
318,
657,
726,
29918,
433,
1537,
408,
903,
13,
3166,
4160,
29889,
9794,
... |
hash&heap/0685_First_Unique_Number_in_Data_Stream.py | adwardlee/leetcode_solutions | 0 | 116596 | <filename>hash&heap/0685_First_Unique_Number_in_Data_Stream.py
'''
Description
Given a continuous stream of data, write a function that returns the first unique number (including the last number) when the terminating number arrives. If the terminating number is not found, return -1.
Example
Example1
Input:
[1, 2, 2,... | [
1,
529,
9507,
29958,
8568,
29987,
354,
481,
29914,
29900,
29953,
29947,
29945,
29918,
6730,
29918,
8110,
802,
29918,
4557,
29918,
262,
29918,
1469,
29918,
3835,
29889,
2272,
13,
12008,
13,
9868,
13,
29954,
5428,
263,
9126,
4840,
310,
848,... |
factom_core/blocks/admin_block.py | sourcery-ai-bot/factom-core | 0 | 59675 | <reponame>sourcery-ai-bot/factom-core<filename>factom_core/blocks/admin_block.py
import hashlib
from dataclasses import dataclass, field
from typing import List
from factom_core.block_elements.admin_messages import *
from factom_core.utils import varint
from .directory_block import DirectoryBlock
@dataclass
class Ad... | [
1,
529,
276,
1112,
420,
29958,
29879,
473,
29883,
708,
29899,
1794,
29899,
7451,
29914,
17028,
290,
29899,
3221,
29966,
9507,
29958,
17028,
290,
29918,
3221,
29914,
1271,
29879,
29914,
6406,
29918,
1271,
29889,
2272,
13,
5215,
6608,
1982,
... |
configfiles/emailsend.py | dgome/HL-StarterKit | 5 | 137761 | <gh_stars>1-10
#!/bin/bash
#Created by : <EMAIL> | <NAME>
import email, smtplib, ssl, os
from email import encoders
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.application import MIMEApplication
##Loading Environment
with... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
2109,
29914,
13067,
13,
29937,
20399,
491,
584,
529,
26862,
6227,
29958,
891,
529,
5813,
29958,
13,
13,
13,
5215,
4876,
29892,
1560,
9392,
1982,
29892,
... |
storage/cloud.py | labdave/Aries | 2 | 94806 | <gh_stars>1-10
import os
import datetime
import logging
import threading
from io import FileIO
from abc import ABC
from .base import StorageObject, StoragePrefixBase, StorageIOSeekable
logger = logging.getLogger(__name__)
class BucketStorageObject(StorageObject):
"""Represents a cloud storage object associated wi... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2897,
13,
5215,
12865,
13,
5215,
12183,
13,
5215,
3244,
292,
13,
3166,
12013,
1053,
3497,
5971,
13,
3166,
25638,
1053,
16417,
13,
3166,
869,
3188,
1053,
26162... |
virtool/caches/models.py | virtool/virtool | 39 | 89785 | from sqlalchemy import Column, DateTime, Enum, Integer, String
from sqlalchemy.sql.schema import UniqueConstraint
from virtool.pg.base import Base
from virtool.samples.models import ArtifactType
class SampleArtifactCache(Base):
"""
SQL model to store a cached sample artifact
"""
__tablename__ = "sa... | [
1,
515,
4576,
284,
305,
6764,
1053,
12481,
29892,
12315,
29892,
1174,
398,
29892,
8102,
29892,
1714,
13,
3166,
4576,
284,
305,
6764,
29889,
2850,
29889,
11010,
1053,
853,
1387,
21529,
13,
13,
3166,
10636,
10154,
29889,
4061,
29889,
3188,
... |
2750/solution_bubble.py | bossm0n5t3r/BOJ | 2 | 1618051 | <gh_stars>1-10
def sol():
data = []
for _ in range(int(input())):
data.append(int(input()))
bubble(data)
return data
def bubble(data):
while True:
flag = False
for index in range(len(data) - 1):
if data[index] > data[index + 1]:
temp = data[index... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
1753,
899,
7295,
13,
1678,
848,
353,
5159,
13,
1678,
363,
903,
297,
3464,
29898,
524,
29898,
2080,
22130,
29901,
13,
4706,
848,
29889,
4397,
29898,
524,
29898,
2080... |
pynq_networking/lib/mqttsn_sw.py | Xilinx/PYNQ-Networking | 40 | 30489 | <filename>pynq_networking/lib/mqttsn_sw.py<gh_stars>10-100
# Copyright (c) 2017, Xilinx, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must ... | [
1,
529,
9507,
29958,
29886,
948,
29939,
29918,
11618,
292,
29914,
1982,
29914,
28466,
698,
16586,
29918,
2774,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
259,
14187,
1266,
313,
2... |
toggl_dinero/dinero.py | esben/toggl-dinero | 1 | 135632 | """This module contains a class for providing access to Dinero API."""
from oauthlib.oauth2 import LegacyApplicationClient
from requests_oauthlib import OAuth2Session
import json
import logging
# Dinero invoice creation procedure
#
# Get an OAuth2 token from https://authz.dinero.dk/dineroapi/oauth/token
# and attach ... | [
1,
9995,
4013,
3883,
3743,
263,
770,
363,
13138,
2130,
304,
15651,
1489,
3450,
1213,
15945,
13,
13,
3166,
288,
5150,
1982,
29889,
23106,
29906,
1053,
5682,
4135,
4873,
4032,
13,
3166,
7274,
29918,
23106,
1982,
1053,
438,
6444,
29906,
73... |
equity/__init__.py | mitpokerbots/equity | 1 | 106799 | <reponame>mitpokerbots/equity<gh_stars>1-10
import os
from flask import Flask, request, render_template
from flask_sslify import SSLify
from pbots_calc import calc
app = Flask(__name__)
config_object_str = 'equity.config.ProdConfig' if os.environ.get('PRODUCTION', False) else 'equity.config.DevConfig'
app.config.from... | [
1,
529,
276,
1112,
420,
29958,
2415,
29886,
17933,
29890,
1862,
29914,
1686,
537,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2897,
13,
3166,
29784,
1053,
2379,
1278,
29892,
2009,
29892,
4050,
29918,
6886,
... |
mtsv/parsing.py | ktaed/MTSv | 0 | 156360 | import argparse
import configparser
import os
import sys
import ast
import logging
import numpy as np
from contextlib import suppress
from glob import glob
from collections import namedtuple
from mtsv.utils import(error, warn, specfile_read)
from mtsv.argutils import (read, export)
from mtsv import (DEFAULT_LOG_FNAME... | [
1,
1053,
1852,
5510,
13,
5215,
2295,
16680,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
8717,
13,
5215,
12183,
13,
5215,
12655,
408,
7442,
13,
3166,
3030,
1982,
1053,
21301,
13,
3166,
13149,
1053,
13149,
13,
3166,
16250,
1053,
4257,
23... |
auc_vs_p50_1_model_v2_val_folds.py | kkraoj/lfmc_for_ignitions | 0 | 109126 | # -*- coding: utf-8 -*-
"""
Created on Mon May 25 22:33:04 2020
@author: kkrao
"""
import os
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import sklearn.ensemble
import sklearn.metrics
import sklearn.model_selection
import statsmodels.api as sm
import init
sns.set(st... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
2598,
2610,
29871,
29906,
29945,
29871,
29906,
29906,
29901,
29941,
29941,
29901,
29900,
29946,
29871,
29906,
29900,
29906,
299... |
setup.py | Luke-Poeppel/treeplotter | 7 | 108357 | <reponame>Luke-Poeppel/treeplotter<filename>setup.py
####################################################################################################
# File: setup.py
# Purpose: Setup of the package.
#
# Author: <NAME>
#
# Location: Kent, CT 2021
##############################################################... | [
1,
529,
276,
1112,
420,
29958,
24126,
446,
29899,
29925,
7297,
17344,
29914,
8336,
5317,
357,
29966,
9507,
29958,
14669,
29889,
2272,
13,
13383,
13383,
13383,
13383,
13383,
13383,
4136,
13,
29937,
3497,
29901,
268,
6230,
29889,
2272,
13,
... |
explore/utils.py | WilliamQLiu/improved-parakeet | 2 | 93211 | from cStringIO import StringIO
from xml.etree import ElementTree as ET
import requests
from scrapy.selector import Selector, XmlXPathSelector
from scrapy.spider import Spider
def parse_single_element(element, name):
"""
Helper function to parse a single XML element for name,
returns dict of the key and t... | [
1,
515,
274,
1231,
5971,
1053,
1714,
5971,
13,
3166,
4903,
29889,
300,
929,
1053,
10619,
9643,
408,
382,
29911,
13,
13,
5215,
7274,
13,
3166,
24559,
2272,
29889,
14357,
1053,
7605,
272,
29892,
24409,
29990,
2605,
10378,
13,
3166,
24559,... |
oandapy/exceptions.py | extreme4all/oandapy | 0 | 22661 | <gh_stars>0
"""Exceptions."""
class OandaError(Exception):
""" Generic error class, catches oanda response errors
"""
def __init__(self, error_response):
self.error_response = error_response
msg = f"OANDA API returned error code {error_response['code']} ({error_response['message']}) "
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
2451,
29879,
1213,
15945,
13,
13,
13,
1990,
438,
5863,
2392,
29898,
2451,
1125,
13,
1678,
9995,
3251,
293,
1059,
770,
29892,
4380,
267,
288,
5863,
2933,
4436,
13,
1678,
... |
extensisq/common.py | WRKampi/extensisq | 2 | 103993 | <reponame>WRKampi/extensisq<filename>extensisq/common.py
import numpy as np
from math import sqrt, copysign
from warnings import warn
import logging
from scipy.integrate._ivp.common import (
validate_max_step, norm, validate_first_step, warn_extraneous)
from scipy.integrate._ivp.base import OdeSolver, DenseOutput
f... | [
1,
529,
276,
1112,
420,
29958,
9980,
29968,
1160,
29875,
29914,
1062,
6322,
29939,
29966,
9507,
29958,
1062,
6322,
29939,
29914,
9435,
29889,
2272,
13,
5215,
12655,
408,
7442,
13,
3166,
5844,
1053,
18074,
2273,
29892,
5614,
952,
647,
13,
... |
src/clarityv2/homepage/urls.py | Clarity-89/clarityv2 | 0 | 24179 | <reponame>Clarity-89/clarityv2<gh_stars>0
from django.urls import path
from .views import HomepageView
urlpatterns = [
path('', HomepageView.as_view(), name='home'),
]
| [
1,
529,
276,
1112,
420,
29958,
29907,
4675,
537,
29899,
29947,
29929,
29914,
16544,
537,
29894,
29906,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
9557,
29889,
26045,
1053,
2224,
13,
13,
3166,
869,
7406,
1053,
8778,
3488,
1043... |
tools/merge.py | mrjrty/rpaframework | 518 | 121276 | #!/usr/bin/env python3
import argparse
import json
import os
from pathlib import Path
FILENAME = "latest.json"
def main():
parser = argparse.ArgumentParser()
parser.add_argument("source", help="Path to directory of JSONs")
parser.add_argument("destination", help="Path to destination JSON")
args = par... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
5215,
1852,
5510,
13,
5215,
4390,
13,
5215,
2897,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
7724,
5813,
353,
376,
12333,
29889,
3126,
29908,
13,
13,
13,
1753,
1667,
7295,
13,... |
boardgame/connectfour/connectfourviewer.py | suryaambrose/boardgame | 0 | 24341 | import os
import sys
from ..gameviewer import GameViewer
class ConnectFourViewer(GameViewer):
def __init__(self):
super(ConnectFourViewer, self).__init__([6,7])
def showState(self, state):
os.system("clear")
sys.stdout.write("x\y|")
for k in range(0, self.map_width):
sys.stdout.write("%d "%(k))
sys.std... | [
1,
1053,
2897,
13,
5215,
10876,
13,
3166,
6317,
11802,
29894,
15580,
1053,
8448,
29963,
15580,
13,
13,
1990,
14971,
29943,
473,
29963,
15580,
29898,
14199,
29963,
15580,
1125,
13,
12,
1753,
4770,
2344,
12035,
1311,
1125,
13,
12,
12,
913... |
index.py | flyingraijin98/Naive-Bayes-Spam-Classifier | 0 | 135049 | <reponame>flyingraijin98/Naive-Bayes-Spam-Classifier<filename>index.py
from collections import Counter
import pandas as pd
import stop_words
import random
class NLP():
def __init__(self):
self.vocab = None
def count_vectorizer(self, text, train=True, stop_word=None, view=False):
... | [
1,
529,
276,
1112,
420,
29958,
29888,
5890,
336,
823,
262,
29929,
29947,
29914,
13695,
573,
29899,
29933,
388,
267,
29899,
5592,
314,
29899,
2385,
3709,
29966,
9507,
29958,
2248,
29889,
2272,
13,
3166,
16250,
1053,
315,
5336,
30004,
13,
... |
water_channel_assembly/sub_model.py | iorodeo/water_channel_mechanics | 0 | 1602642 | <filename>water_channel_assembly/sub_model.py
from __future__ import division
import scipy
from py2scad import *
class SubModel(object):
def __init__(self,params):
self.params = params
self.parts = {}
self.__make_mount_plate()
self.__make_hydrofoil()
self.__make_nozzle()
... | [
1,
529,
9507,
29958,
13405,
29918,
12719,
29918,
26936,
29914,
1491,
29918,
4299,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
5215,
4560,
2272,
13,
3166,
11451,
29906,
1557,
328,
1053,
334,
13,
13,
13,
1990,
3323,
31... |
mayan/apps/documents/tests/test_links.py | bonitobonita24/Mayan-EDMS | 343 | 28898 | from django.urls import reverse
from ..links.document_file_links import (
link_document_file_delete, link_document_file_download_quick
)
from ..links.favorite_links import (
link_document_favorites_add, link_document_favorites_remove
)
from ..links.trashed_document_links import link_document_restore
from ..mod... | [
1,
515,
9557,
29889,
26045,
1053,
11837,
13,
13,
3166,
6317,
4965,
29889,
3225,
29918,
1445,
29918,
4965,
1053,
313,
13,
1678,
1544,
29918,
3225,
29918,
1445,
29918,
8143,
29892,
1544,
29918,
3225,
29918,
1445,
29918,
10382,
29918,
24561,
... |
baghchal/matchup.py | neupane11/ai-wmacevoy | 0 | 131545 | from random import Random
from game import Game
from const import Const
from randomagent import RandomAgent
from agent import Agent
class Matchup:
'''
Pit two agents against each other in a game
'''
def __init__(self, verbose : bool = True):
self._game = Game()
self._goatAgent : Agent... | [
1,
515,
4036,
1053,
16968,
13,
13,
3166,
3748,
1053,
8448,
13,
3166,
1040,
1053,
5798,
13,
3166,
4036,
14748,
1053,
16968,
19661,
13,
3166,
10823,
1053,
28330,
13,
13,
13,
1990,
14514,
786,
29901,
13,
1678,
14550,
13,
1678,
29244,
102... |
PyScraper/server/models/project.py | nikan1996/PyScraper | 0 | 53129 | #!/usr/bin/env python
# encoding: utf-8
"""
@author:nikan
@file: project.py
@time: 2018/5/14 下午4:20
"""
import datetime
from sqlalchemy import text
from sqlalchemy.dialects import mysql
from PyScraper.server.extensions import db
class Project(db.Model):
__tablename__ = "project"
project_id = db.Column(d... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
8025,
29901,
23616,
29899,
29947,
13,
15945,
29908,
13,
13,
29992,
8921,
29901,
5585,
273,
13,
13,
29992,
1445,
29901,
2060,
29889,
2272,
13,
13,
29992,
2230,
29901,
29871,
29906,... |
mealpy/utils/visualize/linechart.py | thieu1995/mealpy | 162 | 26424 | #!/usr/bin/env python
# ------------------------------------------------------------------------------------------------------%
# Created by "Thieu" at 17:12, 09/07/2021 %
# ... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
2683,
2683,
2683,
2683,
2683,
2683,
807,
19222,
13,
29937,
6760,
630,
491,
376,
1349,
9532,
29908,
472,
29871,
29896,
29955,
29901,
29896,
29906,
29892,
29871,
29900,
29929,
... |
tests/test_ioutils.py | BiocomputeLab/curveball | 8 | 116860 | <filename>tests/test_ioutils.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of curveball.
# https://github.com/yoavram/curveball
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT-license
# Copyright (c) 2015, <NAME> <<EMAIL>>
from unittest import TestCase, main
from buil... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
29875,
449,
2719,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
29937,
910,
... |
model/QuerySpecificBBCluster.py | nihilistsumo/Blackbox_clustering | 1 | 45255 | from model.BBCluster import CustomSentenceTransformer, OptimCluster, euclid_dist
from experiments.treccar_run import prepare_cluster_data_train_only, prepare_cluster_data2, get_trec_dat, \
get_paratext_dict
from util.Data import InputTRECCARExample
import numpy as np
import torch
import torch.nn as nn
from torch im... | [
1,
515,
1904,
29889,
29933,
5371,
29880,
5402,
1053,
8701,
29903,
296,
663,
13372,
261,
29892,
20693,
326,
6821,
5402,
29892,
11878,
695,
333,
29918,
5721,
13,
3166,
15729,
29889,
2484,
617,
279,
29918,
3389,
1053,
19012,
29918,
19594,
29... |
basic_synthesizer/basic_synthesizer.py | Privacy-Police/Differential-Privacy | 0 | 182724 | <reponame>Privacy-Police/Differential-Privacy
import pandas as pd
from categorical import CategoricalDistribution
from gaussian import GaussianDistribution
class BasicSynthesizer:
"""
Basic Synthesizer to compare with Normalizing Flows model
"""
def __init__(self, dataset):
self.dataset = data... | [
1,
529,
276,
1112,
420,
29958,
29925,
1150,
4135,
29899,
7713,
625,
29914,
29928,
8349,
2556,
29899,
29925,
1150,
4135,
13,
5215,
11701,
408,
10518,
13,
13,
3166,
11608,
936,
1053,
315,
20440,
936,
13398,
3224,
13,
3166,
330,
17019,
105... |
src/sgp_ausgabe.py | TheresaHeim/Adafruit_Blinka | 0 | 127350 | <filename>src/sgp_ausgabe.py
""" Example for using the SGP30 with CircuitPython and the Adafruit library"""
import time
import board
import busio
import adafruit_sgp30
i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)
# Create library object on our I2C port
sgp30 = adafruit_sgp30.Adafruit_SGP30(i2c)
("SGP30 ... | [
1,
529,
9507,
29958,
4351,
29914,
5311,
29886,
29918,
1485,
14454,
29889,
2272,
13,
15945,
29908,
8741,
363,
773,
278,
317,
19903,
29941,
29900,
411,
12594,
3121,
11980,
322,
278,
23255,
29888,
9216,
3489,
15945,
29908,
13,
5215,
931,
13,... |
src/wi/utils/decorators.py | cc1-cloud/cc1 | 11 | 66230 | # -*- coding: utf-8 -*-
# @COPYRIGHT_begin
#
# Copyright [2010-2014] Institute of Nuclear Physics PAN, Krakow, Poland
#
# 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.apac... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
732,
3217,
20055,
22789,
3912,
29918,
463,
13,
29937,
13,
29937,
14187,
1266,
518,
29906,
29900,
29896,
29900,
29899,
29906,
29900,
29896,
29946,
29... |
queryable_properties/managers.py | W1ldPo1nter/django-queryable-properties | 36 | 15128 | # encoding: utf-8
from __future__ import unicode_literals
import six
from django.db.models import Manager
from django.db.models.query import QuerySet
from .compat import (ANNOTATION_SELECT_CACHE_NAME, ANNOTATION_TO_AGGREGATE_ATTRIBUTES_MAP, chain_query, chain_queryset,
ModelIterable, ValuesQuery... | [
1,
396,
8025,
29901,
23616,
29899,
29947,
13,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
13,
5215,
4832,
13,
3166,
9557,
29889,
2585,
29889,
9794,
1053,
15629,
13,
3166,
9557,
29889,
2585,
29889,
9794,
29889,
... |
tali/train.py | AntreasAntoniou/TALI-lightning-hydra-dev | 0 | 153065 | <gh_stars>0
import os
import pathlib
from typing import Dict, List, Optional
import hydra
import torch
from omegaconf import DictConfig
from pytorch_lightning import (
Callback,
LightningDataModule,
LightningModule,
seed_everything,
Trainer,
)
from pytorch_lightning.loggers import LightningLoggerBa... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
5215,
2224,
1982,
13,
3166,
19229,
1053,
360,
919,
29892,
2391,
29892,
28379,
13,
13,
5215,
27246,
336,
13,
5215,
4842,
305,
13,
3166,
2703,
2442,
5527,
1053,
360,
919... |
com/l3harrisbc/client/client.py | fedcalderon/L3H-Python-BookClub-Spring2020 | 0 | 160842 | #
# Hello World client in Python
# Connects REQ socket to tcp://localhost:5555
# Sends "Hello" to server, expects "World" back
#
# Adding ZeroMQ messaging library
import zmq
# Adding Python's logging library
import logging
print("Hello Client")
# Configuring logging example
logging.basicConfig(filename='client... | [
1,
396,
13,
29937,
259,
15043,
2787,
3132,
297,
5132,
13,
29937,
259,
14971,
29879,
5195,
29984,
9909,
304,
22729,
597,
7640,
29901,
29945,
29945,
29945,
29945,
13,
29937,
259,
317,
1975,
376,
10994,
29908,
304,
1923,
29892,
23347,
376,
... |
msgsender_sdk/api/custom_sender/list_support_infom_pb2.py | easyopsapis/easyops-api-python | 5 | 124733 | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: list_support_infom.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.p... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
3251,
630,
491,
278,
9608,
6835,
6516,
29889,
29871,
11662,
6058,
11488,
29991,
13,
29937,
2752,
29901,
1051,
29918,
5924,
29918,
7192,
290,
29889,
... |
problems/leetcode/lt-456.py | neerajp99/algorithms | 1 | 199696 | # 456. 132 Pattern
"""
Given an array of n integers nums, a 132 pattern is a subsequence of three integers nums[i], nums[j] and nums[k]
such that i < j < k and nums[i] < nums[k] < nums[j].
Return true if there is a 132 pattern in nums, otherwise, return false.
Follow up: The O(n^2) is trivial, could ... | [
1,
396,
29871,
29946,
29945,
29953,
29889,
29871,
29896,
29941,
29906,
25860,
13,
15945,
29908,
13,
1678,
11221,
385,
1409,
310,
302,
11920,
954,
29879,
29892,
263,
29871,
29896,
29941,
29906,
4766,
338,
263,
1014,
16506,
310,
2211,
11920,
... |
tests/modules/__init__.py | RecursionSpace/OpenPod | 1 | 146699 | ''' Required for tests to recognize folder and perform tests. '''
| [
1,
14550,
830,
5958,
363,
6987,
304,
18720,
4138,
322,
2189,
6987,
29889,
14550,
13,
2
] |
tests/greedy/test_oblate_system.py | rodluger/starry | 116 | 34794 | import starry
import numpy as np
import matplotlib.pyplot as plt
import pytest
@pytest.mark.parametrize("ydeg,nw", [[0, None], [0, 10], [1, None], [1, 10]])
def test_system(ydeg, nw):
# Oblate map
map = starry.Map(udeg=2, ydeg=ydeg, oblate=True, nw=nw)
map[1] = 0.5
map[2] = 0.25
map.omega = 0.5
... | [
1,
1053,
5810,
719,
13,
5215,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
11451,
1688,
13,
13,
13,
29992,
2272,
1688,
29889,
3502,
29889,
3207,
300,
374,
911,
703,
29891,
12163,
29892,
29876,
29893,
613,
... |
Pytorch/GANs/4 cGAN/dataset.py | muehlburger/Machine-Learning-Collection | 0 | 97745 | import pandas as pd
from torch.utils.data import (
Dataset,
DataLoader,
)
import torch.nn as nn
import torch
from torchaudio import transforms
class APGDataset(Dataset):
def __init__(self, csv_file, root_dir, transforms=None):
self.data = pd.read_csv(csv_file)
self.root_dir = root_dir
... | [
1,
1053,
11701,
408,
10518,
13,
3166,
4842,
305,
29889,
13239,
29889,
1272,
1053,
313,
13,
1678,
13373,
24541,
29892,
13,
1678,
3630,
10036,
29892,
13,
29897,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
5215,
4842,
305,
13,
... |
records/12-09/ffff.py | AaronYang2333/CSCI_570 | 36 | 5022 | <filename>records/12-09/ffff.py<gh_stars>10-100
__author__ = '<NAME>'
__email__ = '<EMAIL>'
__date__ = '12/9/2020 4:18 PM'
from abc import abstractmethod
class Product(object):
@abstractmethod
def setMsg(self, msg="default info"):
self.msg = msg
@abstractmethod
def info(self):
print... | [
1,
529,
9507,
29958,
3757,
4339,
29914,
29896,
29906,
29899,
29900,
29929,
29914,
17156,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
1649,
8921,
1649,
353,
12801,
5813,
16299,
13,
1649,
... |
exceltogdx/exceltogdx.py | diw-berlin/exceltogdx | 0 | 158533 | <filename>exceltogdx/exceltogdx.py
from gdxpds import load_gdxcc
from gdxpds.write_gdx import Translator
from openpyxl import load_workbook
from io import BytesIO
import pandas as pd
import numpy as np
import logging
import os
import re
logging.getLogger('gdxpds').setLevel(logging.ERROR)
def xlsdynamicecke(typ, cell,... | [
1,
529,
9507,
29958,
735,
29883,
2152,
468,
8235,
29914,
735,
29883,
2152,
468,
8235,
29889,
2272,
13,
3166,
330,
8235,
29886,
6289,
1053,
2254,
29918,
29887,
8235,
617,
13,
3166,
330,
8235,
29886,
6289,
29889,
3539,
29918,
29887,
8235,
... |
rest_framework/fields.py | treyhunner/django-rest-framework | 0 | 133853 | import copy
import datetime
import inspect
import warnings
from django.core import validators
from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.core.urlresolvers import resolve, get_script_prefix
from django.conf import settings
from django.forms import widgets
from django.forms.models... | [
1,
1053,
3509,
13,
5215,
12865,
13,
5215,
16096,
13,
5215,
18116,
13,
13,
3166,
9557,
29889,
3221,
1053,
2854,
4097,
13,
3166,
9557,
29889,
3221,
29889,
11739,
29879,
1053,
4669,
25125,
3664,
1252,
391,
29892,
15758,
362,
2392,
13,
3166... |
1.0/VIOS/website/urls.py | suyanan/vioser | 1 | 1616346 | from django.conf.urls import url
from . import views
app_name = 'website'
urlpatterns = [
url(r'^manual/$',views.manual,name='manual'),
url(r'^reference/$',views.reference,name='reference'),
url(r'^faq/$',views.faq,name='faq'),
url(r'^contact$',views.contact,name='contact'),
url(r'^vios_intro$',v... | [
1,
515,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
13,
13,
3166,
869,
1053,
8386,
13,
13,
932,
29918,
978,
353,
525,
22942,
29915,
13,
13,
2271,
11037,
29879,
353,
518,
13,
1678,
3142,
29898,
29878,
29915,
29985,
11288,
13346,
742,
... |
dbtools/admin.py | snowminc/Groupformer | 1 | 53710 | <filename>dbtools/admin.py
from django.contrib import admin
# Register your models here.
from .models import *
class GroupFormerAdmin(admin.ModelAdmin):
search_fields = ['class_section']
class ProjectAdmin(admin.ModelAdmin):
search_fields = ['project_name']
class AttributeAdmin(admin.ModelAdmin):
pass
... | [
1,
529,
9507,
29958,
2585,
8504,
29914,
6406,
29889,
2272,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
13,
29937,
12577,
596,
4733,
1244,
29889,
13,
13,
3166,
869,
9794,
1053,
334,
13,
13,
1990,
6431,
2500,
261,
12754,
29898,
6406,
... |
taskflow/repository.bzl | dldt/third_party.bzl | 1 | 157762 | <gh_stars>1-10
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def taskflow_repository():
maybe(
http_archive,
name = "taskflow",
urls = [
"https://github.com/taskflow/taskflow/archive/refs/tags/... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
1359,
29475,
27975,
295,
29918,
8504,
458,
8504,
29914,
4282,
29918,
1753,
29879,
29914,
20095,
29901,
13239,
29889,
29890,
29920,
29880,
613,
376,
26026,
1159,
13,
135... |
terrain_following/src/image_processor.py | ZhiangChen/ros_vision | 0 | 18758 | #!/usr/bin/env python
"""
<NAME>
Nov 2019
"""
import rospy
from sensor_msgs.msg import Image
from sensor_msgs.msg import Imu
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
import cv2
class Image_Processor(object):
def __init__(self):
rospy.Subscriber("/r200/depth/image_raw", Image, self.... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
15945,
29908,
13,
29966,
5813,
29958,
13,
25363,
29871,
29906,
29900,
29896,
29929,
13,
15945,
29908,
13,
13,
5215,
696,
1028,
29891,
13,
3166,
23530,
29918,
1516,
3174,
29889,
7645,
105... |
app/__init__.py | paulmunyao/Daily-Dossier-News | 0 | 48124 | from flask import Flask
from config import DevelopmentConfig
app = Flask(__name__)
app.config.from_object(DevelopmentConfig)
from app import routes,errors | [
1,
515,
29784,
1053,
2379,
1278,
13,
3166,
2295,
1053,
14650,
3991,
13,
13,
932,
353,
2379,
1278,
22168,
978,
1649,
29897,
13,
932,
29889,
2917,
29889,
3166,
29918,
3318,
29898,
21956,
358,
3991,
29897,
13,
13,
3166,
623,
1053,
12049,
... |
neurovault/apps/statmaps/tests/test_qa.py | abitrolly/NeuroVault | 68 | 23271 | import os
import nibabel as nb
import numpy as np
from django.test import TestCase
from neurovault.apps.statmaps.models import BaseStatisticMap
from neurovault.apps.statmaps.utils import is_thresholded, infer_map_type
class QATest(TestCase):
def setUp(self):
this_path = os.path.abspath(os.path.dirname(... | [
1,
1053,
2897,
13,
13,
5215,
302,
747,
1107,
408,
302,
29890,
13,
5215,
12655,
408,
7442,
13,
3166,
9557,
29889,
1688,
1053,
4321,
8259,
13,
13,
3166,
452,
2192,
29894,
1292,
29889,
13371,
29889,
6112,
10339,
29889,
9794,
1053,
7399,
... |
data_tests/test_data.py | warwickmm/openelections-data-tests | 0 | 154587 | <reponame>warwickmm/openelections-data-tests
import csv
import glob
import os
import unittest
from typing import Iterator
from data_tests.duplicate_entries import DuplicateEntries
def get_csv_files(root_path: str) -> Iterator[str]:
for file in glob.glob(os.path.join(root_path, "[0-9]" * 4, "**", "*"), recursive=... | [
1,
529,
276,
1112,
420,
29958,
4495,
6669,
4317,
29914,
459,
1600,
5942,
29899,
1272,
29899,
21150,
13,
5215,
11799,
13,
5215,
13149,
13,
5215,
2897,
13,
5215,
443,
27958,
13,
3166,
19229,
1053,
20504,
1061,
13,
13,
3166,
848,
29918,
... |
sleap/__init__.py | Tyelab/sleap | 0 | 94600 | <reponame>Tyelab/sleap
import logging
import sys
# Setup logging to stdout
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
# Import submodules we want available at top-level
from sleap.version import __version__, versions
from sleap.io.dataset import Labels, load_file
from sleap.io.video import Video, loa... | [
1,
529,
276,
1112,
420,
29958,
21314,
295,
370,
29914,
29879,
280,
481,
13,
5215,
12183,
13,
5215,
10876,
13,
13,
13,
29937,
3789,
786,
12183,
304,
27591,
13,
21027,
29889,
16121,
3991,
29898,
5461,
29922,
9675,
29889,
25393,
29892,
323... |
IPQualityScore/BinaryOption.py | IPQualityScore/PythonIPQSDBReader | 0 | 83246 | class BinaryOption:
def __init__(self):
self.__data = None
def SetData(self, bit):
self.__data = bit
def Has(self, value):
return (self.__data & value)
def Set(self, value):
self.__data = self.__data | value
@staticmethod
def Create(value):
... | [
1,
770,
29479,
8375,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
17255,
1272,
353,
6213,
13,
268,
13,
1678,
822,
3789,
1469,
29898,
1311,
29892,
2586,
1125,
13,
4706,
1583,
17255,
1272,
353,
2586,
13,
268,
13,... |
imageledger/urls.py | creativecommons/open-ledger | 46 | 114898 | from django.urls import include, path, re_path
from django.views.generic import RedirectView
from django.urls import reverse_lazy
from django.http import QueryDict
from rest_framework.urlpatterns import format_suffix_patterns
from django_cas_ng.views import login as cas_login, logout as cas_logout, callback as cas_cal... | [
1,
515,
9557,
29889,
26045,
1053,
3160,
29892,
2224,
29892,
337,
29918,
2084,
13,
3166,
9557,
29889,
7406,
29889,
19206,
1053,
4367,
1088,
1043,
13,
3166,
9557,
29889,
26045,
1053,
11837,
29918,
433,
1537,
13,
3166,
9557,
29889,
1124,
105... |
python/place_molex_conn.py | willdickson/roman_led_frame | 0 | 33447 | from __future__ import print_function
import os
import sys
import pcbnew
import numpy as np
import pprint
def inch_to_nanometer(value):
return (value*25.4)*1e6
def nanometer_to_inch(value):
return value/(25.4*1.e6)
def nm_to_mm(value):
return value*1.e-6
def mm_to_nm(value):
return value*1.e6
def... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
282,
10702,
1482,
13,
5215,
12655,
408,
7442,
13,
5215,
282,
2158,
13,
13,
13,
1753,
297,
305,
29918,
517,
29918,
13707,
8328,
29898,... |
hypha/apply/projects/models/project.py | slifty/hypha | 0 | 14203 | import collections
import decimal
import json
import logging
from django.apps import apps
from django.conf import settings
from django.contrib.contenttypes.fields import GenericRelation
from django.contrib.postgres.fields import JSONField
from django.core.exceptions import ValidationError
from django.core.validators i... | [
1,
1053,
16250,
13,
5215,
13677,
13,
5215,
4390,
13,
5215,
12183,
13,
13,
3166,
9557,
29889,
13371,
1053,
11446,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
21570,
29889,
3051,
8768,
29889,
9621,
1053,
3251,
293,
966... |
wraeblast/insights.py | darvid/wraeblast | 26 | 178492 | import collections.abc
import enum
import os
from typing import (
TYPE_CHECKING,
Annotated,
Any,
AsyncGenerator,
Optional,
Union,
)
import aiohttp
import inflection
import numpy as np
import pandas as pd
import pydantic
import structlog
import uplink
import uplink.converters
from pandera.decora... | [
1,
1053,
16250,
29889,
10736,
13,
5215,
14115,
13,
5215,
2897,
13,
3166,
19229,
1053,
313,
13,
1678,
323,
6959,
29918,
3210,
16658,
4214,
29892,
13,
1678,
530,
1333,
630,
29892,
13,
1678,
3139,
29892,
13,
1678,
20688,
21575,
29892,
13,
... |
tests/test_coesa.py | TheMagicNacho/artemis-nozzle | 89 | 183283 | # coding: utf-8
"""
Tests of the U.S. 1976 Standard Atmosphere implementation. All of them are
validated against the `standard`_.
.. _`standard`: http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19770009539_1977009539.pdf
"""
from __future__ import division, absolute_import
import numpy as np
from numpy.testin... | [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
13,
15945,
29908,
13,
24376,
310,
278,
501,
29889,
29903,
29889,
29871,
29896,
29929,
29955,
29953,
10117,
2180,
7681,
9085,
5314,
29889,
2178,
310,
963,
526,
13,
3084,
630,
2750,
278,
421,
... |
setup.py | Leschonander/Jump-Bike-D.C-Python-API-Wrapper | 0 | 197758 | from setuptools import setup
setup(name = "Jump Bike DC API Wrapper",
url = 'https://github.com/Leschonander/Jump-Bike-D.C-Python-API-Wrapper',
author = "<NAME>",
author_email = '<EMAIL>',
packages=['src'],
install_requires=['requests'],
version = '0.1',
license = 'MIT',
description = "... | [
1,
515,
731,
21245,
8789,
1053,
6230,
13,
13,
14669,
29898,
978,
353,
376,
29967,
3427,
3457,
446,
13681,
3450,
399,
6794,
613,
13,
1678,
3142,
353,
525,
991,
597,
3292,
29889,
510,
29914,
29931,
1968,
265,
3825,
29914,
29967,
3427,
2... |
parser/fase2/team29/analizer_pl/interpreter.py | estabanmike/tytus | 0 | 132793 | <gh_stars>0
from re import S
from sys import path
from os.path import dirname as dir
path.append(dir(path[0]))
from analizer_pl.C3D.operations import block
from analizer_pl.reports import BnfGrammar
from analizer_pl.abstract import global_env
import analizer_pl.grammar as grammar
def traducir(input):
result = gr... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
337,
1053,
317,
13,
3166,
10876,
1053,
2224,
13,
3166,
2897,
29889,
2084,
1053,
4516,
978,
408,
4516,
13,
13,
2084,
29889,
4397,
29898,
3972,
29898,
2084,
29961,
29900,
12622,
13,... |
x64/ascii/mixedcase/__init__.py | mitthu/alpha3 | 137 | 180154 | import rm64
encoders = rm64.encoders
for encoder in encoders:
encoder["case"] = "mixedcase"
| [
1,
1053,
20241,
29953,
29946,
30004,
13,
30004,
13,
3977,
397,
414,
353,
20241,
29953,
29946,
29889,
3977,
397,
414,
30004,
13,
1454,
2094,
6119,
297,
2094,
397,
414,
29901,
30004,
13,
29871,
2094,
6119,
3366,
4878,
3108,
353,
376,
2988... |
Task2F.py | J-uliette/Warning-System | 0 | 173679 | <filename>Task2F.py
from floodsystem.flood import stations_highest_rel_level
from floodsystem.stationdata import build_station_list, update_water_levels
from floodsystem.plot import plot_water_level_with_fit
from floodsystem.datafetcher import fetch_measure_levels
import datetime
N=5
p=4
dt = 2 #parameters
stations = ... | [
1,
529,
9507,
29958,
5398,
29906,
29943,
29889,
2272,
13,
3166,
5685,
397,
5205,
29889,
29888,
417,
397,
1053,
16355,
29918,
9812,
342,
29918,
2674,
29918,
5563,
13,
3166,
5685,
397,
5205,
29889,
19569,
1272,
1053,
2048,
29918,
19569,
299... |
python_exercises/52Primes_iterator.py | Matheus-IT/lang-python-related | 0 | 181285 | <gh_stars>0
class Primes:
def __init__(self, first, last=None):
self.curr = None
if last is None:
self.first = 2
self.last = first
else:
self.first = first
self.last = last
def __iter__(self):
return self
def __next__(self):
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
1990,
1588,
1355,
29901,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
937,
29892,
1833,
29922,
8516,
1125,
13,
4706,
1583,
29889,
21962,
353,
6213,
13,
13,
4706,
565,
1833,
338,
6213,... |
gnu_linux_box/utils/gcp_translate.py | shivag1992/WearableIntelligenceSystem | 0 | 125832 | import os
import sys
import threading
from queue import Empty
from google.cloud import translate
os.environ["GOOGLE_APPLICATION_CREDENTIALS"]=os.path.join(os.path.dirname(__file__), "creds.json")
def translate_text(translation_client, text="<NAME>", project_id="wearableai", source_language="es", target_language="en")... | [
1,
1053,
2897,
13,
5215,
10876,
13,
5215,
3244,
292,
13,
3166,
9521,
1053,
2812,
2349,
13,
3166,
5386,
29889,
9274,
1053,
14240,
13,
13,
359,
29889,
21813,
3366,
17080,
29949,
29954,
1307,
29918,
3301,
7390,
28541,
29918,
29907,
19386,
... |
resources/character.py | WareDave/flaskRepo | 0 | 1614194 | <filename>resources/character.py
from flask import Blueprint, jsonify, request
from playhouse.shortcuts import model_to_dict
from flask_login import current_user, login_required
import models
characters = Blueprint('characters', 'characters')
print()
# Index route
@characters.route('/', methods=["GET"])
def get_all_... | [
1,
529,
9507,
29958,
13237,
29914,
18609,
29889,
2272,
13,
3166,
29784,
1053,
10924,
2158,
29892,
4390,
1598,
29892,
2009,
13,
3166,
1708,
8697,
29889,
12759,
7582,
29879,
1053,
1904,
29918,
517,
29918,
8977,
13,
3166,
29784,
29918,
7507,
... |
classifier/crossValClass.py | alexander7161/FaceGen | 1 | 82421 | <reponame>alexander7161/FaceGen
from datasets import load_csv
from tensorflow.keras.preprocessing.image import ImageDataGenerator
import constants
import numpy as np
import random
import pandas as pd
from datasets import get_testing_data
# Class for cross validation
class CrossVal(object):
# Shuffle data using ... | [
1,
529,
276,
1112,
420,
29958,
744,
29916,
3825,
29955,
29896,
29953,
29896,
29914,
23360,
15462,
13,
3166,
20035,
1053,
2254,
29918,
7638,
13,
3166,
26110,
29889,
3946,
294,
29889,
1457,
19170,
29889,
3027,
1053,
7084,
1469,
21575,
13,
5... |
pyit/cops/tab_indentation.py | ysv/pyit | 0 | 152275 | from pyit.cop import IRawFileCop, Cop
from pyit.offence import Offence
class TabIndentationCop(Cop):
COP_CONFIG = {}
TAB_INDENT = '\t'
__implements__ = [IRawFileCop]
offences = []
def __init__(self, cop_conf=None):
if cop_conf is None:
self.cop_conf = {**self.DEFAULT_CONFIG... | [
1,
515,
11451,
277,
29889,
9708,
1053,
306,
22131,
2283,
29907,
459,
29892,
10061,
13,
3166,
11451,
277,
29889,
2696,
663,
1053,
5947,
663,
13,
13,
13,
1990,
11090,
2568,
9233,
29907,
459,
29898,
29907,
459,
1125,
13,
13,
1678,
315,
4... |
prep_scripts/depth/demo.py | nhh1501/SynthText-vietnamese | 0 | 83279 | <gh_stars>0
import argparse
import torch
import torch.nn.parallel
from models import modules, net, resnet, densenet, senet
import numpy as np
import loaddata_demo as loaddata
import pdb
import matplotlib.image
import matplotlib.pyplot as plt
plt.set_cmap("jet")
def define_model(is_resnet, is_densenet, is_senet):
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
1852,
5510,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
29889,
23482,
13,
13,
3166,
4733,
1053,
10585,
29892,
7787,
29892,
620,
1212,
29892,
6245,
264,
300,
29892,
694... |
integreat_cms/sitemap/views.py | Carlosbogo/integreat-cms | 1 | 131898 | <reponame>Carlosbogo/integreat-cms
"""
This module contains views for generating the sitemap dynamically.
The views are class-based patches of the inbuilt views :func:`~django.contrib.sitemaps.views.index` and
:func:`~django.contrib.sitemaps.views.sitemap` of the :mod:`django.contrib.sitemaps` :doc:`django:ref/contrib/... | [
1,
529,
276,
1112,
420,
29958,
8179,
5409,
29890,
10482,
29914,
6693,
7979,
271,
29899,
29883,
1516,
13,
15945,
29908,
13,
4013,
3883,
3743,
8386,
363,
14655,
278,
269,
667,
481,
11200,
29889,
13,
1576,
8386,
526,
770,
29899,
6707,
1326... |
bioparser/msigdb.py | dhimmel/serg-pycode | 0 | 119959 | <reponame>dhimmel/serg-pycode
import os
import csv
import data
# http://www.broadinstitute.org/gsea/downloads.jsp
abbrev_to_name = {
'c1.all': 'positional gene sets',
'c2.all': 'all curated gene sets',
'c2.cgp': 'chemical and genetic perturbations',
'c2.cp.all': 'all canonical pathways',
'c2.cp.bi... | [
1,
529,
276,
1112,
420,
29958,
12744,
6727,
295,
29914,
643,
29887,
29899,
2272,
401,
13,
5215,
2897,
13,
5215,
11799,
13,
13,
5215,
848,
13,
13,
29937,
1732,
597,
1636,
29889,
6729,
328,
2611,
12356,
29889,
990,
29914,
29887,
344,
29... |
2_Regression/ARX_Regression/empirical_id.py | abe-mart/arduino | 1 | 19291 | import numpy as np
import apm_id as arx
######################################################
# Configuration
######################################################
# number of terms
ny = 2 # output coefficients
nu = 1 # input coefficients
# number of inputs
ni = 1
# number of outputs
no = 1
# load data ... | [
1,
1053,
12655,
408,
7442,
30004,
13,
5215,
3095,
29885,
29918,
333,
408,
564,
29916,
30004,
13,
30004,
13,
13383,
13383,
13383,
4136,
2277,
30004,
13,
29937,
20999,
30004,
13,
13383,
13383,
13383,
4136,
2277,
30004,
13,
29937,
1353,
310,... |
old/ML models/SGD_Classifier.py | saisankargochhayat/doot | 0 | 145740 | <gh_stars>0
from sklearn.linear_model import SGDClassifier
# import pprint
data = []
labels = []
train_data = []
train_labels = []
test_data = []
test_labels = []
with open("../Server/sampledata.csv", 'r') as ppd:
for line in ppd:
attr = line.split(',')
data.append(attr)
with open("../Server/samp... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
2071,
19668,
29889,
10660,
29918,
4299,
1053,
317,
29954,
29928,
2385,
3709,
13,
29937,
1053,
282,
2158,
13,
13,
1272,
353,
5159,
13,
21134,
353,
5159,
13,
14968,
29918,
1272,
353... |
genhernquist/Normalisation.py | lauralwatkins/genhernquist | 2 | 108679 | <gh_stars>1-10
#!/usr/bin/env python
from astropy import units as u
from .Cumulative3D import Cumulative3D
def Normalisation(total, rs, alpha, beta, gamma):
"""
Normalisation of a generalised Hernquist model required to have a total
cumulative quantity.
INPUTS
total : total quantity e... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
3166,
8717,
14441,
1053,
10340,
408,
318,
13,
3166,
869,
29907,
398,
28524,
29941,
29928,
1053,
315,
398,
... |
investopedia_api/option_trade.py | kevihiiin/investopedia_simulator_api | 0 | 147400 | <filename>investopedia_api/option_trade.py
import re
import warnings
from lxml import html
from ratelimit import limits, sleep_and_retry
from investopedia_api.session_singleton import Session
from investopedia_api.trade_common import OrderType, Duration, Trade
from investopedia_api.utils import UrlHelper
class Opti... | [
1,
529,
9507,
29958,
262,
10147,
459,
1381,
29918,
2754,
29914,
3385,
29918,
3018,
311,
29889,
2272,
13,
5215,
337,
13,
5215,
18116,
13,
13,
3166,
301,
3134,
1053,
3472,
13,
3166,
7548,
295,
13083,
1053,
13071,
29892,
8709,
29918,
392,
... |
yt_concate/pipeline/steps/preflight.py | ThatMrWayne/yout_concate | 0 | 195297 | <filename>yt_concate/pipeline/steps/preflight.py
import logging
from yt_concate.pipeline.steps.step import Step
class Preflight(Step):
def process(self, inputs, utils, data):
logger = logging.getLogger('record')
logger.info('In preflight.')
utils.create_downloads_dirs()
| [
1,
529,
9507,
29958,
3637,
29918,
535,
29883,
403,
29914,
13096,
5570,
29914,
24530,
29914,
29886,
999,
4366,
29889,
2272,
13,
5215,
12183,
13,
3166,
343,
29873,
29918,
535,
29883,
403,
29889,
13096,
5570,
29889,
24530,
29889,
10568,
1053,
... |
tests/test_simpleflow/test_format.py | mookerji/simpleflow | 0 | 147817 | import json
import os
import unittest
import random
import boto
from moto import mock_s3
from simpleflow import constants, format
from simpleflow.storage import push_content
@mock_s3
class TestFormat(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
# reset jumbo fields bucket ... | [
1,
1053,
4390,
13,
5215,
2897,
13,
5215,
443,
27958,
13,
5215,
4036,
13,
13,
5215,
289,
3747,
13,
3166,
3184,
29877,
1053,
11187,
29918,
29879,
29941,
13,
13,
3166,
2560,
1731,
1053,
17727,
29892,
3402,
13,
3166,
2560,
1731,
29889,
12... |
geometry_utils/tests/test_bound_box.py | NOAA-ORR-ERD/geometry_utils | 0 | 13482 | #!/usr/bin/env python
"""
Test code for the BBox Object
"""
import numpy as np
import pytest
from geometry_utils.bound_box import (BBox,
asBBox,
NullBBox,
InfBBox,
f... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
15945,
29908,
13,
3057,
775,
363,
278,
350,
3313,
4669,
13,
15945,
29908,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
11451,
1688,
13,
13,
3166,
16303,
29918,
13239,
29889,
9917,
2... |
vfp2py/fxp_read.py | wroldwiedbwe/vfp2py | 36 | 1602501 | # coding=utf-8
from __future__ import absolute_import, division, print_function
import io
import sys
import os
import struct
from math import floor, log10
from datetime import datetime, timedelta
from collections import OrderedDict
import re
import errno
import dbf
HEADER_SIZE = 0x29
FOOTER_ENTRY_SIZE = 0x19
ENCRYP... | [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
13,
13,
5215,
12013,
13,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
2281,
13,
3166,
5844,
1053,... |
utils/app.py | dlzcn/MemoryMonitor | 0 | 176569 | <reponame>dlzcn/MemoryMonitor
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# ******************************************************
# @author: <NAME> - <EMAIL>
# @date (created): 2019-06-27 11:31
# @file: app.py
# @brief:
# @internal:
# revision: 8
# last modified: 2019-11... | [
1,
529,
276,
1112,
420,
29958,
11671,
29920,
18038,
29914,
16015,
7185,
2105,
13,
29937,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,... |
theory/conditionals.py | librity/nc_pyjobs | 0 | 161797 | # python3 theory/conditionals.py
def plus(a, b):
if type(a) is int or type(a) is float:
if type(b) is int or type(b) is float:
return a + b
else:
return None
else:
return None
print(plus(1, '10'))
def can_drink(age):
print(f"You are {age} years old.")
if age < 18:
print("You ca... | [
1,
396,
3017,
29941,
6368,
29914,
16122,
1338,
29889,
2272,
13,
13,
1753,
2298,
29898,
29874,
29892,
289,
1125,
13,
29871,
565,
1134,
29898,
29874,
29897,
338,
938,
470,
1134,
29898,
29874,
29897,
338,
5785,
29901,
13,
1678,
565,
1134,
... |
gamesystem.py | cristilianojr/JOKENPOH | 1 | 9454 | <reponame>cristilianojr/JOKENPOH
import random
from tkinter import PhotoImage
"""
Esse arquivo define os estados do game
"""
def ia_chocer():
"""IA faz a escolha de um numero aleatório"""
posibility = ['rock', 'paper', 'scissor']
value = posibility[random.randint(0, 2)]
return value
def battle_ver... | [
1,
529,
276,
1112,
420,
29958,
29883,
2021,
309,
3328,
29926,
29878,
29914,
29967,
8949,
1430,
13152,
29950,
13,
5215,
4036,
13,
3166,
18883,
1639,
1053,
1963,
3747,
2940,
13,
13,
13,
15945,
29908,
13,
14190,
344,
19325,
4243,
4529,
289... |
conda/core/link.py | astrojuanlu/conda | 0 | 76814 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from collections import defaultdict
from logging import getLogger
import os
from os.path import join
from subprocess import CalledProcessError, check_call
import sys
from traceback import format_exc
import warnin... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
8542,
29892,
1596,
29918,
2220,
29892,
29104,
29918,
20889,
1338,
13,
13,
3166,
16250,
1053,... |
api_server.py | ChristianKreuzberger/computer.vision.101 | 0 | 30228 | <reponame>ChristianKreuzberger/computer.vision.101
import os
os.environ["KERAS_BACKEND"] = "tensorflow"
import numpy as np
import keras
from keras.applications import imagenet_utils
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Conv2D, MaxPoo... | [
1,
529,
276,
1112,
420,
29958,
18687,
713,
29968,
276,
3365,
15734,
29914,
12097,
261,
29889,
4924,
29889,
29896,
29900,
29896,
13,
5215,
2897,
13,
359,
29889,
21813,
3366,
29968,
1001,
3289,
29918,
29933,
11375,
11794,
3108,
353,
376,
29... |
11_testing_best_practices/generate_maze_faster.py | krother/maze_run | 7 | 17856 |
# Improved version of the code from chapter 03
# created in chapter 11 to accelerate execution
import random
XMAX, YMAX = 19, 16
def create_grid_string(dots, xsize, ysize):
"""
Creates a grid of size (xx, yy)
with the given positions of dots.
"""
grid = ""
for y in range(ysize):
f... | [
1,
29871,
13,
29937,
1954,
771,
1490,
1873,
310,
278,
775,
515,
16385,
29871,
29900,
29941,
13,
29937,
2825,
297,
16385,
29871,
29896,
29896,
304,
15592,
403,
8225,
13,
13,
13,
5215,
4036,
13,
13,
29990,
12648,
29892,
612,
12648,
353,
... |
Chatbot.py | CeFlorian/ChatBot | 0 | 157474 | <filename>Chatbot.py
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
from chatterbot.trainers import ChatterBotCorpusTrainer
import discord
import base64
from Crypto import Random
from Crypto.Hash import SHA256
from Crypto.Cipher import AES
def cipherAES(password, iv):
key... | [
1,
529,
9507,
29958,
1451,
271,
7451,
29889,
2272,
13,
3166,
521,
2620,
7451,
1053,
29871,
678,
271,
29933,
327,
30004,
13,
3166,
521,
2620,
7451,
29889,
14968,
414,
1053,
2391,
5323,
4983,
30004,
13,
3166,
521,
2620,
7451,
29889,
14968... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.