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 |
|---|---|---|---|---|---|
src/agent/ovs/ofctl_manager.py | SSICLOPS/interconnection-agent | 0 | 173057 | """
BSD 3-Clause License
Copyright (c) 2018, <NAME>, Aalto University, Finland
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, t... | [
1,
9995,
13,
29933,
7230,
29871,
29941,
29899,
20216,
1509,
19245,
13,
13,
11882,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
29892,
529,
5813,
10202,
319,
284,
517,
3014,
29892,
18312,
13,
3596,
10462,
21676,
29889,
13,
1... |
arrowhead/decorators.py | zyga/arrowhead | 2 | 82707 | import functools
import inspect
import types
from arrowhead.core import ErrorArrow
from arrowhead.core import NormalArrow
from arrowhead.core import Step
from arrowhead.core import ValueArrow
def step(func_or_label=None, **kwargs):
"""
Decorator for converting functions to steps.
This decorator can be a... | [
1,
1053,
2090,
312,
8789,
13,
5215,
16096,
13,
5215,
4072,
13,
13,
3166,
16578,
2813,
29889,
3221,
1053,
4829,
1433,
798,
13,
3166,
16578,
2813,
29889,
3221,
1053,
21981,
1433,
798,
13,
3166,
16578,
2813,
29889,
3221,
1053,
16696,
13,
... |
setup.py | c-rainbow/twitch-chat-analyzer-py | 0 | 184916 | <filename>setup.py
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="twitch-chat-analyzer", # Replace with your own username
version="0.0.5",
author="Rainbow",
author_email="<EMAIL>",
description="Twitch chat analyzer fr... | [
1,
529,
9507,
29958,
14669,
29889,
2272,
13,
5215,
731,
21245,
8789,
13,
13,
2541,
1722,
703,
16310,
2303,
29889,
3487,
613,
376,
29878,
613,
8025,
543,
9420,
29899,
29947,
1159,
408,
285,
29882,
29901,
13,
1678,
1472,
29918,
8216,
353,... |
src/pretix/api/serializers/organizer.py | NicsTr/pretix | 0 | 1616795 | <gh_stars>0
from decimal import Decimal
from django.db.models import Q
from django.utils.translation import get_language, gettext_lazy as _
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
from pretix.api.serializers.i18n import I18nAwareModelSerializer
from pretix.api.seri... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
13677,
1053,
3826,
3039,
13,
13,
3166,
9557,
29889,
2585,
29889,
9794,
1053,
660,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
679,
29918,
11675,
29892,
679,
726,
29918,
... |
cli/loc.py | deb17/moneycare | 0 | 63775 | import os
def file_len(filename, comment):
line_count = 0
with open(filename) as f:
for line in f:
if line.strip().startswith(comment):
continue
if line.strip():
line_count += 1
return line_count
def walk(path='.'):
loc = 0
for r... | [
1,
1053,
2897,
13,
13,
13,
1753,
934,
29918,
2435,
29898,
9507,
29892,
3440,
1125,
13,
13,
1678,
1196,
29918,
2798,
353,
29871,
29900,
13,
1678,
411,
1722,
29898,
9507,
29897,
408,
285,
29901,
13,
4706,
363,
1196,
297,
285,
29901,
13,... |
package.py | srini009/ascent | 0 | 46731 | <gh_stars>0
#!/bin/env python
###############################################################################
# Copyright (c) Lawrence Livermore National Security, LLC and other Ascent
# Project developers. See top-level LICENSE AND COPYRIGHT files for dates and
# other details. No copyright assignment is required to c... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
2109,
29914,
6272,
3017,
13,
13383,
13383,
13383,
13383,
7346,
4136,
2277,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
19520,
22469,
5514,
3086,
14223,
29892,
365,
12182... |
nova/pci/stats.py | 10088/nova | 0 | 718 | # Copyright (c) 2013 Intel, Inc.
# Copyright (c) 2013 OpenStack Foundation
# 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.org/li... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29941,
18555,
29892,
9266,
29889,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29941,
4673,
7264,
10606,
13,
29937,
2178,
26863,
2538,
9841,
29889,
... |
routine_qiime2_analyses/post_analyses.py | FranckLejzerowicz/routine_qiime2_analyses | 0 | 52416 | <reponame>FranckLejzerowicz/routine_qiime2_analyses
# ----------------------------------------------------------------------------
# Copyright (c) 2020, <NAME>.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -------------------... | [
1,
529,
276,
1112,
420,
29958,
7675,
384,
3226,
29926,
3298,
340,
5175,
29914,
14608,
457,
29918,
26461,
603,
29906,
29918,
7054,
952,
267,
13,
29937,
448,
2683,
2683,
2683,
2683,
1378,
5634,
13,
29937,
14187,
1266,
313,
29883,
29897,
2... |
fabfile.py | zzz123-tech/zhanzhenblog | 0 | 46113 | <gh_stars>0
from fabric import task
from invoke import Responder
from _credentials import github_username, github_password
def _get_github_auth_responders():
"""
返回 GitHub 用户名密码自动填充器
"""
username_responder = Responder(
pattern="Username for 'https://github.com':",
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
18187,
1053,
3414,
13,
3166,
15928,
1053,
2538,
27582,
13,
3166,
903,
11944,
9409,
1053,
18546,
29918,
6786,
29892,
18546,
29918,
5630,
13,
13,
13,
1753,
903,
657,
29918,
3292,
29... |
sources/praline/client/project/pipeline/stages/pull_dependencies_test.py | dansandu/praline | 0 | 1615411 | <filename>sources/praline/client/project/pipeline/stages/pull_dependencies_test.py
from os.path import basename, normpath
from praline.client.project.pipeline.stages.pull_dependencies import pull_dependencies
from praline.common.testing.file_system_mock import FileSystemMock
from typing import Any, Dict
from unittest i... | [
1,
529,
9507,
29958,
29879,
2863,
29914,
558,
284,
457,
29914,
4645,
29914,
4836,
29914,
13096,
5570,
29914,
303,
1179,
29914,
26746,
29918,
22594,
29918,
1688,
29889,
2272,
13,
3166,
2897,
29889,
2084,
1053,
2362,
3871,
29892,
6056,
2084,
... |
tests/conftest.py | Peter-Metz/taxdata | 0 | 29588 | import os
import json
import pytest
import pandas as pd
# TODO: revise the following constants when using new or revised CPS/PUF data
CPS_START_YEAR = 2014
PUF_START_YEAR = 2011
PUF_COUNT = 248591
LAST_YEAR = 2027
@pytest.fixture(scope='session')
def test_path():
return os.path.abspath(os.path.dirname(__file__)... | [
1,
1053,
2897,
13,
5215,
4390,
13,
5215,
11451,
1688,
13,
5215,
11701,
408,
10518,
13,
13,
13,
29937,
14402,
29901,
6664,
895,
278,
1494,
17727,
746,
773,
716,
470,
337,
11292,
315,
7024,
29914,
7056,
29943,
848,
13,
6271,
29903,
2991... |
cli_helpers/templates/bin/renamer.py | ppreeper/ansible_roles | 0 | 108602 | <reponame>ppreeper/ansible_roles
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import eyed3
import argparse
import re
us = re.compile(r' ')
sq = re.compile(r"'")
dq = re.compile(r'""')
ex = re.compile(r"!")
colon = re.compile(r":")
semicolon = re.compile(r";")
question = re.compile(r'\?')
parser = argpars... | [
1,
529,
276,
1112,
420,
29958,
407,
929,
546,
29914,
550,
1821,
29918,
307,
793,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
... |
user_role_mgmt/operations.py | sundarsms1975/user-role-management | 0 | 66932 | <reponame>sundarsms1975/user-role-management
from accounts import User,Role
import ast
import json
import os
import sys
from copy import deepcopy
# Operation List presented when the main program execution starts
def choice_list():
print('\n Choose the operation you would like to perform on User & Role List')
p... | [
1,
529,
276,
1112,
420,
29958,
29879,
870,
1503,
1516,
29896,
29929,
29955,
29945,
29914,
1792,
29899,
12154,
29899,
21895,
13,
3166,
15303,
1053,
4911,
29892,
16727,
13,
5215,
8717,
13,
5215,
4390,
13,
5215,
2897,
13,
5215,
10876,
13,
... |
scripts/featuresFromIntermediates.py | mkalte666/sdl2wrap | 0 | 174968 | import sys
import re
ignoreList = [
".*_h_$",
"^SDL_test.*",
"^SDLTest_.*",
"SDLCALL",
"^SDL_$",
".*_$",
"SDL_INLINE",
"^SDL$",
"^SDL_Read.*$",
"^SDL_Write.*$",
]
class ImplInfo:
def __init__(self):
self.implemented = "NO"
self.implName = ""
self.com... | [
1,
1053,
10876,
13,
5215,
337,
13,
13,
17281,
1293,
353,
518,
13,
1678,
376,
5575,
29918,
29882,
29918,
29938,
613,
13,
1678,
13898,
7230,
29931,
29918,
1688,
5575,
613,
13,
1678,
13898,
7230,
29931,
3057,
5396,
29930,
613,
13,
1678,
... |
examples/examples_interceptor.py | hatamiarash7/PacketTracer | 3 | 126791 | """
Interceptor example using ICMP
Requirements:
iptables -I INPUT 1 -p icmp -j NFQUEUE --queue-balance 0:2
"""
import time
from packetracer import interceptor
from packetracer.layer3 import ip, icmp
# Add iptables rule:
# iptables -I INPUT 1 -p icmp -j NFQUEUE --queue-balance 0:2
# ICMP Echo request intercepting... | [
1,
9995,
13,
24923,
1342,
773,
18340,
3580,
13,
13,
1123,
1548,
1860,
29901,
13,
21278,
1849,
448,
29902,
2672,
12336,
29871,
29896,
448,
29886,
16077,
1526,
448,
29926,
405,
29943,
11144,
4462,
1192,
9990,
29899,
5521,
749,
29871,
29900,... |
TCO2_Dashboard/content_BCT.py | originalpkbims/subgrounds-pkbims | 0 | 117049 | <gh_stars>0
from dash import html
from dash import dcc
import dash_bootstrap_components as dbc
from helpers import (date_manipulations, black_list_manipulations,
filter_carbon_pool)
from Figures_Carbon_Pool import deposited_over_time, redeemed_over_time
from data_related_constants import redeems_re... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
12569,
1053,
3472,
13,
3166,
12569,
1053,
270,
617,
13,
5215,
12569,
29918,
8704,
29918,
14036,
408,
4833,
29883,
13,
3166,
1371,
414,
1053,
313,
1256,
29918,
1171,
666,
8250,
298... |
src/nprintml/learn/__init__.py | nprint/nPrintML | 13 | 1604351 | from .automl import AutoML # noqa: F401
| [
1,
515,
869,
17405,
29880,
1053,
11133,
1988,
29871,
396,
694,
25621,
29901,
383,
29946,
29900,
29896,
13,
2
] |
test/__init__.py | shikajiro/picosdk-python-wrappers | 114 | 28921 | #
# Copyright (C) 2018 Pico Technology Ltd. See LICENSE file for terms.
#
| [
1,
396,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29947,
349,
1417,
17968,
19806,
29889,
2823,
365,
2965,
1430,
1660,
934,
363,
4958,
29889,
13,
29937,
13,
2
] |
configs/keypoints/cascade_mask_rcnn_x101_3x_coco.py | VGrondin/CBNetV2_mask_remote | 0 | 109190 | _base_ = '../cascade_rcnn/cascade_mask_rcnn_r50_fpn_mstrain_3x_coco.py'
model = dict(
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=8,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=Fa... | [
1,
903,
3188,
29918,
353,
525,
6995,
9398,
6332,
29918,
2214,
15755,
29914,
9398,
6332,
29918,
13168,
29918,
2214,
15755,
29918,
29878,
29945,
29900,
29918,
18091,
29876,
29918,
29885,
4151,
262,
29918,
29941,
29916,
29918,
29883,
6235,
29889... |
geekhours/database.py | YukieK/GeekHours | 3 | 175192 | <gh_stars>1-10
""" database.py is a module to communicate with a database. """
from datetime import datetime
import sqlite3
from typing import List
class Database:
""" Database class initializes and manipulates SQLite3 database. """
def __init__(self, db_name):
self.con = sqlite3.connect(db_name)
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
2566,
29889,
2272,
338,
263,
3883,
304,
23120,
411,
263,
2566,
29889,
9995,
13,
13,
3166,
12865,
1053,
12865,
13,
5215,
21120,
29941,
13,
3166,
19229,
... |
train.py | ostaptan/deeptrans | 0 | 105467 | <reponame>ostaptan/deeptrans<gh_stars>0
import argparse
import math
import os
import dill
from collections import OrderedDict
from tqdm import tqdm
from torchtext.legacy import data
from torchtext import datasets
from torchtext.vocab import Vectors
import torch
import torch.nn as nn
import torch.optim as optim
fro... | [
1,
529,
276,
1112,
420,
29958,
520,
2156,
273,
29914,
311,
29872,
7414,
550,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
1852,
5510,
13,
5215,
5844,
13,
5215,
2897,
13,
5215,
270,
453,
13,
13,
3166,
16250,
1053,
8170,
287,... |
train_medseg_timm-regnetx_002_grid_distortion.py | BrunoKrinski/segtool | 0 | 66955 | <reponame>BrunoKrinski/segtool
import os
ls=["python main.py --configs configs/train_medseg_unetplusplus_timm-regnetx_002_fold0_grid_distortion.yml",
"python main.py --configs configs/train_medseg_unetplusplus_timm-regnetx_002_fold1_grid_distortion.yml",
"python main.py --configs configs/train_medseg_unetplusplus_timm... | [
1,
529,
276,
1112,
420,
29958,
29933,
3389,
29877,
29968,
17056,
2574,
29914,
10199,
10154,
13,
5215,
2897,
13,
13,
3137,
29922,
3366,
4691,
1667,
29889,
2272,
1192,
2917,
29879,
2295,
29879,
29914,
14968,
29918,
2168,
10199,
29918,
348,
... |
examples/test_project/mlpa/models.py | movermeyer/madrona | 9 | 73710 | from django.contrib.gis.db import models
from madrona.features import register
from madrona.features.models import PointFeature, LineFeature, PolygonFeature, FeatureCollection
from madrona.layers.models import PrivateLayerList
from madrona.features.forms import FeatureForm, SpatialFeatureForm
DESIGNATION_CHOICES = (
... | [
1,
515,
9557,
29889,
21570,
29889,
29887,
275,
29889,
2585,
1053,
4733,
13,
3166,
10395,
1617,
29874,
29889,
22100,
1053,
6036,
13,
3166,
10395,
1617,
29874,
29889,
22100,
29889,
9794,
1053,
8984,
19132,
29892,
7407,
19132,
29892,
2043,
171... |
src/components/convLayer.py | JasonYuJjyu/unsupFlownet | 24 | 1606627 | <filename>src/components/convLayer.py
import tensorflow as tf
def convLayer(x,kernelSize, outMaps, stride): # default caffe style MRSA
with tf.variable_scope(None,default_name="conv"):
inMaps = x.get_shape()[3]
kShape = [kernelSize,kernelSize,inMaps,outMaps]
w = tf.get_variable("weights",shape=kShape,initializ... | [
1,
529,
9507,
29958,
4351,
29914,
14036,
29914,
20580,
14420,
29889,
2272,
13,
5215,
26110,
408,
15886,
13,
13,
1753,
7602,
14420,
29898,
29916,
29892,
17460,
3505,
29892,
714,
29924,
2547,
29892,
380,
2426,
1125,
396,
2322,
274,
3470,
29... |
route/recent_changes.py | lsh23/openNAMU | 0 | 195404 | <reponame>lsh23/openNAMU
from .tool.func import *
def recent_changes_2(conn, name, tool):
curs = conn.cursor()
if flask.request.method == 'POST':
return redirect(
'/diff/' + url_pas(name) +
'?first=' + flask.request.form.get('b', '1') +
'&second=' + flask.request.fo... | [
1,
529,
276,
1112,
420,
29958,
29880,
845,
29906,
29941,
29914,
3150,
3521,
29924,
29965,
13,
3166,
869,
10154,
29889,
9891,
1053,
334,
13,
13,
1753,
7786,
29918,
25990,
29918,
29906,
29898,
13082,
29892,
1024,
29892,
5780,
1125,
13,
1678... |
nipype/interfaces/semtools/diffusion/diffusion.py | sebastientourbier/nipype | 2 | 71827 | # -*- coding: utf-8 -*-
# -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
import os
from ...base import (CommandLine, CommandLineInputSpec, SEMLikeCommandLine,
TraitedSpec, File, Directory, traits, is... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29947,
448,
29930,
29899,
13,
15945,
29908,
6147,
468,
759,
630,
934,
448,
11662,
6058,
11488,
13,
3644,
3... |
neurodsp/sim/aperiodic.py | JanCBrammer/neurodsp | 154 | 69532 | """Simulating time series, with aperiodic activity."""
import numpy as np
from scipy.stats import zscore
from scipy.linalg import toeplitz, cholesky
from neurodsp.filt import filter_signal, infer_passtype
from neurodsp.filt.fir import compute_filter_length
from neurodsp.filt.checks import check_filter_definition
from... | [
1,
9995,
8942,
18099,
931,
3652,
29892,
411,
263,
19145,
293,
6354,
1213,
15945,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
4560,
2272,
29889,
16202,
1053,
503,
13628,
13,
3166,
4560,
2272,
29889,
29880,
979,
29887,
1053,
29363,
572,
278... |
yauber_algo/_algo/tests/test_featurewiz_categorize.py | LongNguyen1012/yauber-algo | 1 | 141031 | import unittest
from yauber_algo.errors import *
class CategorizeTestCase(unittest.TestCase):
def test_categorize(self):
import yauber_algo.sanitychecks as sc
from numpy import array, nan, inf
import os
import sys
import pandas as pd
import numpy as np
from... | [
1,
1053,
443,
27958,
13,
3166,
9343,
11234,
29918,
284,
1484,
29889,
12523,
1053,
334,
13,
13,
13,
1990,
315,
20440,
675,
3057,
8259,
29898,
348,
27958,
29889,
3057,
8259,
1125,
13,
1678,
822,
1243,
29918,
29883,
20440,
675,
29898,
1311... |
eda_scripts/pct_cans_interested_in.py | eitrheim/Resume-Screening-and-Selection | 14 | 174827 | <gh_stars>10-100
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
resume_text = pd.read_csv("~/data/Candidate Report_tokenized.csv").fillna('')
job_text = pd.read_csv("~/data/full_requisition_data_tokenized.csv").fillna('')
jobs_reviewed_atleast_once = ['Review',
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
11701,
408,
10518,
30004,
13,
5215,
12655,
408,
7442,
30004,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
30004,
13,
30004,
13,
690,
2017,
2991... |
check_logstash_hot_threads.py | adolci/nagios-plugins | 0 | 50349 | #!/usr/bin/env python
# coding=utf-8
# vim:ts=4:sts=4:sw=4:et
#
# Author: <NAME>
# Date: 2017-11-26 18:55:00 +0100 (Sun, 26 Nov 2017)
#
# https://github.com/harisekhon/nagios-plugins
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn
#... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
29871,
14137,
29922,
9420,
29899,
29947,
13,
29937,
29871,
325,
326,
29901,
1372,
29922,
29946,
29901,
303,
29879,
29922,
29946,
29901,
2774,
29922,
29946,
29901,
300,
13,
29937,
13... |
pseudo_dojo/refdata/nist/atomicdata.py | fnaccarato/pseudo_dojo | 0 | 28659 | #!/usr/bin/env python
import os.path
import sys
from pprint import pprint
import nist_database
def sort_dict(d, key=None, reverse=False):
"""
Returns an OrderedDict object whose keys are ordered according to their
value.
Args:
d:
Input dictionary
key:
functio... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
5215,
2897,
29889,
2084,
13,
5215,
10876,
13,
13,
3166,
282,
2158,
1053,
282,
2158,
13,
13,
5215,
302,
391,
29918,
9803,
13,
13,
13,
1753,
2656,
29918,
8977,
29898,
29881,
29892,
182... |
mumu/feature/_woe.py | mingminyu/mumu | 1 | 143814 | <filename>mumu/feature/_woe.py
# coding: utf-8
# ================================================
# Project: mumu
# File: feature/_woe.py
# Author: <NAME>
# Email: <EMAIL>
# Date: 2021/6/24 18:24
# Description:
# ================================================
import os
import string
import logging
import math
import ... | [
1,
529,
9507,
29958,
29885,
398,
29884,
29914,
14394,
19891,
827,
29872,
29889,
2272,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
29937,
1275,
9166,
9166,
4936,
2751,
1360,
13,
29937,
8010,
29901,
286,
398,
29884,
13,
29937,
3497,
2... |
projects/SalsaNext/salsa/crf.py | Gorilla-Lab-SCUT/gorilla-3d | 6 | 1617692 | <gh_stars>1-10
#!/usr/bin/env python3
# This file is covered by the LICENSE file in the root of this project.
import gorilla
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
class LocallyConnectedXYZLayer(nn.Module):
def __init__(self,
h: int,
w: i... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
910,
934,
338,
10664,
491,
278,
365,
2965,
1430,
1660,
934,
297,
278,
3876,
310,
445,
2060,
29... |
setup.py | rako233/rako-pyads | 1 | 52090 | from setuptools import setup, find_packages
exec(open('counsyl_pyads/version.py').read())
setup(
name='counsyl-pyads',
version=__version__,
packages=find_packages(),
scripts=['bin/twincat_plc_info.py'],
include_package_data=True,
zip_safe=False,
author='<NAME>.',
author_email='<EMAIL>'... | [
1,
515,
731,
21245,
8789,
1053,
6230,
29892,
1284,
29918,
8318,
13,
13,
4258,
29898,
3150,
877,
29883,
1309,
29879,
2904,
29918,
2272,
7925,
29914,
3259,
29889,
2272,
2824,
949,
3101,
13,
13,
14669,
29898,
13,
1678,
1024,
2433,
29883,
1... |
example/wallets/fetch_payment_address_by_id.py | oyeolamilekan/quidax-python | 1 | 111752 | from ..base import quidax
response = quidax.wallets.fetch_payment_address("<address_id>", "<currency>")
print(response)
| [
1,
515,
6317,
3188,
1053,
439,
333,
1165,
13,
13,
5327,
353,
439,
333,
1165,
29889,
14625,
10376,
29889,
9155,
29918,
27825,
29918,
7328,
28945,
7328,
29918,
333,
28341,
9872,
26095,
29958,
1159,
13,
13,
2158,
29898,
5327,
29897,
13,
2
... |
SVHN/core.py | IMBINGO95/FairMOT | 0 | 194818 | import threading, queue, time
from queue import Queue
from threading import Thread, currentThread
import os
from CalibrateTransfer.img_operation import ScreenSHot_batch
from CalibrateTransfer.data_preprocess import write_data_to_json_file, read_data_from_json_file_v2
import numpy as np
import torch.utils.data as data... | [
1,
1053,
3244,
292,
29892,
9521,
29892,
931,
13,
3166,
9521,
1053,
5462,
434,
13,
3166,
3244,
292,
1053,
10480,
29892,
1857,
4899,
13,
13,
5215,
2897,
13,
3166,
3037,
4626,
403,
4300,
571,
29889,
2492,
29918,
16453,
1053,
22666,
7068,
... |
tests/test_binary_sensor.py | dermotduffy/hass-motioneye | 13 | 71879 | """Tests for the motionEye binary sensor platform."""
from __future__ import annotations
import datetime
from datetime import timedelta
import logging
from unittest.mock import patch
from pytest_homeassistant_custom_component.common import async_fire_time_changed
from custom_components.motioneye import get_motioneye... | [
1,
9995,
24376,
363,
278,
10884,
29923,
4099,
7581,
23530,
7481,
1213,
15945,
13,
3166,
4770,
29888,
9130,
1649,
1053,
25495,
13,
13,
5215,
12865,
13,
3166,
12865,
1053,
5335,
287,
2554,
13,
5215,
12183,
13,
3166,
443,
27958,
29889,
176... |
datadog_checks_dev/datadog_checks/dev/tooling/commands/meta/windows/__init__.py | tdimnet/integrations-core | 663 | 86764 | <reponame>tdimnet/integrations-core
# (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import click
from ...console import CONTEXT_SETTINGS
from .pdh import pdh
ALL_COMMANDS = [pdh]
@click.group(context_settings=CONTEXT_SETTINGS, short_help='Windows ut... | [
1,
529,
276,
1112,
420,
29958,
1594,
326,
1212,
29914,
14146,
800,
29899,
3221,
13,
29937,
313,
29907,
29897,
13373,
328,
468,
29892,
9266,
29889,
29871,
29906,
29900,
29906,
29896,
29899,
6338,
13,
29937,
2178,
10462,
21676,
13,
29937,
1... |
accounts/tests/test_views.py | EliasOPrado/tour-project | 7 | 88347 | <filename>accounts/tests/test_views.py
from django.test import TestCase, Client
from django.shortcuts import redirect
from django.urls import reverse
from tour_store.models import Destinations
from django.utils import timezone
from django.contrib.auth.models import User
from django.contrib import messages
from django.c... | [
1,
529,
9507,
29958,
10149,
29879,
29914,
21150,
29914,
1688,
29918,
7406,
29889,
2272,
13,
3166,
9557,
29889,
1688,
1053,
4321,
8259,
29892,
12477,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
6684,
13,
3166,
9557,
29889,
26045,
1053,
... |
z2z_metadata/__init__.py | Mitchellpkt/z2z-metadata | 0 | 23832 | <gh_stars>0
"""Top-level package for z2z Metadata analysis."""
__author__ = """Isthmus // <NAME>"""
__email__ = '<EMAIL>'
__version__ = '0.0.1'
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
7031,
29899,
5563,
3577,
363,
503,
29906,
29920,
4737,
7221,
7418,
1213,
15945,
13,
13,
1649,
8921,
1649,
353,
9995,
29902,
303,
7184,
375,
849,
529,
5813,
11903,
15945,
1... |
Python/Fibonacci.py | kennethsequeira/Hello-world | 1 | 1762 | #Doesn't work.
import time
fibonacci = [1, 1]
n = int(input())
while len(fibonacci) < n:
fibonacci.append(fibonacci[-1] + fibonacci[-2])
for i in range(n):
print(fibonacci[i], end=' ')
| [
1,
396,
25125,
29876,
29915,
29873,
664,
22993,
13,
5215,
931,
30004,
13,
30004,
13,
29888,
747,
265,
21566,
353,
518,
29896,
29892,
29871,
29896,
29962,
30004,
13,
29876,
353,
938,
29898,
2080,
3101,
30004,
13,
8000,
7431,
29898,
29888,
... |
DynamicProgramming/solution.py | ylyzty/leecode_study | 0 | 80022 | from typing import List
class Solution:
@staticmethod
def fib(n: int) -> int:
"""
Offer 10-I 斐波那契数列
:param n:
:return:
"""
a, b = 0, 1
for _ in range(n):
a, b = b, a + b
return a % 1000000007
@staticmethod
def fib_2(n: int) -... | [
1,
515,
19229,
1053,
2391,
13,
13,
13,
1990,
24380,
29901,
13,
1678,
732,
7959,
5696,
13,
1678,
822,
18755,
29898,
29876,
29901,
938,
29897,
1599,
938,
29901,
13,
4706,
9995,
13,
4706,
4587,
571,
29871,
29896,
29900,
29899,
29902,
29871... |
app/models.py | marknesh/Blogging-website | 0 | 184165 | <gh_stars>0
from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
class User(UserMixin,db.Model):
__tablename__ = 'person'
id = db.Column(db.Integer,primary_key = True)
email = ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
869,
1053,
4833,
13,
3166,
23085,
13289,
29889,
8926,
1053,
5706,
29918,
5630,
29918,
8568,
29892,
3198,
29918,
5630,
29918,
8568,
13,
3166,
29784,
29918,
7507,
1053,
4911,
29924,
8... |
salty_listener.py | BatedUrGonnaDie/salty_bot | 12 | 70380 | <reponame>BatedUrGonnaDie/salty_bot
#! /usr/bin/env python2.7
# -*- coding: utf-8 -*-
import socket
import urlparse
import psycopg2
import psycopg2.extras
class WebRetrieve:
def __init__(self, dev, db_url, web_ip, web_port, web_secret):
self.development = dev
self.db_url = db_url
self.we... | [
1,
529,
276,
1112,
420,
29958,
29933,
630,
29965,
29878,
29954,
11586,
16334,
29914,
29879,
18745,
29918,
7451,
13,
29937,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29906,
29889,
29955,
13,
29937,
448,
29930,
29899,
14137,
29901,
23... |
tests/test_helper.py | xlsdnx/myambra | 0 | 125709 | <reponame>xlsdnx/myambra
import requests
import logging
import sys
import os
import pytest
import shlex
from singledispatch import singledispatch
from subprocess import call
import subprocess
from retry import retry
# TODO: perhaps this file should be moved to envoy?
logging.basicConfig(stream=sys.stderr )
logging.ge... | [
1,
529,
276,
1112,
420,
29958,
20267,
5200,
29916,
29914,
1357,
1117,
336,
13,
5215,
7274,
13,
5215,
12183,
13,
5215,
10876,
13,
5215,
2897,
13,
5215,
11451,
1688,
13,
5215,
528,
2506,
13,
3166,
1809,
839,
275,
5041,
1053,
1809,
839,
... |
photobooth/1-web-base-layout/app/views.py | albertoSoto/raspberry-tic-projects | 0 | 37274 | <filename>photobooth/1-web-base-layout/app/views.py<gh_stars>0
from flask import render_template, flash, redirect
from app import app
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'Berto'}
posts = [
{
'author': {'nickname': 'Alum Post 1'},
'body': 'This ... | [
1,
529,
9507,
29958,
561,
327,
711,
6983,
29914,
29896,
29899,
2676,
29899,
3188,
29899,
2680,
29914,
932,
29914,
7406,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
29784,
1053,
4050,
29918,
6886,
29892,
11013,
29892... |
comms.py | kajusz/ufscreenadsclient | 0 | 16103 | <reponame>kajusz/ufscreenadsclient<filename>comms.py
import zmq
context = zmq.Context()
socket = context.socket(zmq.PAIR)
address = "tcp://127.0.0.1:5000"
def client(address):
socket.connect(address)
def server(address):
socket.bind(address)
def send(data):
socket.send_string(data)
def recv():
try:... | [
1,
529,
276,
1112,
420,
29958,
29895,
1175,
10958,
29914,
1137,
10525,
328,
1557,
1593,
29966,
9507,
29958,
510,
1516,
29889,
2272,
13,
5215,
12162,
29939,
13,
4703,
353,
12162,
29939,
29889,
2677,
580,
13,
11514,
353,
3030,
29889,
11514,... |
nmfTools/NMFtoolbox/NMFdiag.py | avinashpujala/av_segmentation | 2 | 137603 | <gh_stars>1-10
"""
Name: NMFdiag
Date of Revision: Jun 2019
Programmer: <NAME>, <NAME>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
If you use the 'NMF toolbox' please refer to:
[1] <NAME>, <NAME>, <NAME>, and <NAME>
NMF Toolbox: Music Processing Applicatio... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
13,
1678,
4408,
29901,
405,
29924,
29943,
6051,
351,
13,
1678,
4712,
310,
830,
4924,
29901,
8378,
29871,
29906,
29900,
29896,
29929,
13,
1678,
7835,
105... |
functest/opnfv_tests/openstack/shaker/shaker.py | opnfv-poc/functest | 0 | 7959 | <filename>functest/opnfv_tests/openstack/shaker/shaker.py
#!/usr/bin/env python
# Copyright (c) 2018 Orange and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at... | [
1,
529,
9507,
29958,
7692,
312,
342,
29914,
459,
29876,
29888,
29894,
29918,
21150,
29914,
3150,
1429,
29914,
845,
5790,
29914,
845,
5790,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
29937,
14187,
1266,
31... |
sa/profiles/Zyxel/ZyNOS/get_switchport.py | xUndero/noc | 1 | 108678 | <reponame>xUndero/noc
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Zyxel.ZyNOS.get_switchport
# ---------------------------------------------------------------------
# Copyright (C) 2007-2015 The NOC Project
# See LICENSE for details
# -------------------------------... | [
1,
529,
276,
1112,
420,
29958,
29916,
25263,
1489,
29914,
10763,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29937,
448,
2683,
2683,
2683,
2683,
807,
13,
29937,
796,
29891,
29916,
295,
29889,
29... |
src/python/dart/engine/emr/add_sub_graphs.py | RetailMeNotSandbox/dart | 18 | 1603302 | import logging
import os
from dart.client.python.dart_client import Dart
from dart.config.config import configuration
from dart.engine.emr.metadata import EmrActionTypes
from dart.model.action import Action, ActionData, ActionState
from dart.model.graph import SubGraphDefinition, EntityType, Relationship, Ref, SubGraph... | [
1,
1053,
12183,
13,
5215,
2897,
13,
3166,
270,
442,
29889,
4645,
29889,
4691,
29889,
11353,
29918,
4645,
1053,
360,
442,
13,
3166,
270,
442,
29889,
2917,
29889,
2917,
1053,
5285,
13,
3166,
270,
442,
29889,
10599,
29889,
331,
29878,
2988... |
w2v_flask_app_run.py | dataquanty/Word2Vec-Search-API | 0 | 147625 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 22 16:12:00 2018
@author: dataquanty
"""
from flask import Flask, request, redirect, url_for, flash, jsonify
from textsearch import TextSearch
import json
"""
Flask API that returns the n closest match of a text query
Takes as input a json query ... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
498,
29884,
1085,
29871,
29906,
29906,
29871,
29896,
29953,
29901,
... |
authInterlink/authInterlink.py | danielSilva21/interlinker-service-augmenter | 0 | 169262 | from flask import Blueprint, jsonify, flash
import requests, math
from urllib.parse import urljoin, urlparse
import datetime
import uuid
from flask import current_app, g
from flask_babel import format_number,gettext,format_decimal, format_currency, format_percent
from flask import Flask, render_template, redirect, r... | [
1,
515,
29784,
1053,
10924,
2158,
29892,
4390,
1598,
29892,
11013,
13,
5215,
7274,
29892,
5844,
13,
3166,
3142,
1982,
29889,
5510,
1053,
3142,
7122,
29892,
3142,
5510,
13,
5215,
12865,
13,
5215,
318,
5416,
13,
3166,
29784,
1053,
1857,
2... |
Graphy.py | rasmdc/Graphy | 0 | 125467 | <gh_stars>0
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 11 17:47:37 2020
@author: Eriel
"""
from tkinter import *
from matplotlib import *
from PIL import Image, ImageTk
def menu():
# Menu Window
menu = Tk()
menu.geometry('500x500')
menu.title("Menu")
menu.iconbitmap(r'graphy... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
15945,
19451,
13,
20399,
373,
12178,
319,
558,
29871,
29896,
29896,
29871,
29896,
29955,
29901,
29... |
test_phyton/pages/func.py | gergo1001/conduit | 0 | 1606210 | import random
import string
webpage_visible = False
def random_email():
return "".join([random.choice(string.ascii_lowercase) for _ in range(8)]) + '@testemail.hu'
def random_user():
return "".join([random.choice(string.ascii_letters) for _ in range(6)])
def random_pass():
return "".join([random.choi... | [
1,
1053,
4036,
13,
5215,
1347,
13,
13,
2676,
3488,
29918,
12872,
353,
7700,
13,
13,
13,
1753,
4036,
29918,
5269,
7295,
13,
1678,
736,
376,
1642,
7122,
4197,
8172,
29889,
16957,
29898,
1807,
29889,
294,
18869,
29918,
13609,
4878,
29897,
... |
users/tests/test_models.py | City-of-Helsinki/apartment-application-service | 1 | 126879 | import pytest
from django.core.exceptions import ValidationError
from users.models import Profile
from users.tests.factories import ProfileFactory
@pytest.mark.django_db
def test_profile_exist_after_user_is_deleted():
profile = ProfileFactory()
profile.user.delete()
assert Profile.objects.all().count()... | [
1,
1053,
11451,
1688,
13,
3166,
9557,
29889,
3221,
29889,
11739,
29879,
1053,
15758,
362,
2392,
13,
13,
3166,
4160,
29889,
9794,
1053,
20802,
13,
3166,
4160,
29889,
21150,
29889,
17028,
3842,
1053,
20802,
5126,
13,
13,
13,
29992,
2272,
... |
main.py | hashc/Toward_Reuse | 24 | 156198 | '''Train CIFAR10 with PyTorch.'''
from __future__ import print_function
import sys
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
import config as cf
import torchvision
import torchvision.transforms as transforms
import os
import ar... | [
1,
14550,
5323,
262,
315,
6545,
1718,
29896,
29900,
411,
10772,
29911,
25350,
29889,
12008,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
13,
5215,
10876,
13,
5215,
4842,
305,
13,
5215,
4842,
305,
29889,
15755,
408,
30... |
tests/test_no_inputenc.py | vikorbit/PyLaTeX | 4 | 114398 | <filename>tests/test_no_inputenc.py
# -*- coding: utf-8 -*-
r"""A test to make sure the document compiles with inputenc set to `None`."""
from pylatex.base_classes import Arguments
from pylatex import Document
doc = Document('no_inputenc', inputenc=None)
doc.append('test text')
# Make sure inputenc isn't used
assert... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
1217,
29918,
2080,
3977,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
29878,
15945,
29908,
29909,
1243,
304,
1207,
1854,
278,
1842,
752,... |
calculator.py | rupen4678/botique_management_system | 0 | 5980 | <reponame>rupen4678/botique_management_system
from tkinter import *
import random
import time
from PIL import Image
from datetime import datetime
from tinydb import *
import os
import pickle
#from database1 import *
from random import randint
root = Tk()
root.geometry("1600x800+0+0")
root.title("Suman_dai_ko_DHOKAN")
... | [
1,
529,
276,
1112,
420,
29958,
582,
2238,
29946,
29953,
29955,
29947,
29914,
7451,
1387,
29918,
21895,
29918,
5205,
13,
3166,
18883,
1639,
1053,
334,
13,
5215,
4036,
13,
5215,
931,
13,
3166,
349,
6227,
1053,
7084,
13,
3166,
12865,
1053,... |
Server/manifest_server.py | llmay98/WSI-online-analysis-framework | 2 | 121806 | <gh_stars>1-10
from flask import render_template, request, redirect
from flask import jsonify
from flask_login import login_required
from Controller import manifest_controller
from Controller import thread_controller
from Controller import image_processing
from Controller import dataset_controller
from Controller impo... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
29784,
1053,
4050,
29918,
6886,
29892,
2009,
29892,
6684,
13,
3166,
29784,
1053,
4390,
1598,
13,
3166,
29784,
29918,
7507,
1053,
6464,
29918,
12403,
13,
13,
316... |
lib/EXP_label.py | devsecops-SRC/CVE-Flow | 0 | 169242 | <reponame>devsecops-SRC/CVE-Flow
import requests
import json
import math
import re
from bs4 import BeautifulSoup
import codecs
import os
import random
from multiprocessing import Process,Pool
import pandas
import configparser
from sqlite3_operate import SQLite,create_table
from utils import path,time_delta,get_ua,list2... | [
1,
529,
276,
1112,
420,
29958,
3359,
3471,
3554,
29899,
29903,
10363,
29914,
29907,
12064,
29899,
17907,
13,
5215,
7274,
13,
5215,
4390,
13,
5215,
5844,
13,
5215,
337,
13,
3166,
24512,
29946,
1053,
25685,
29903,
1132,
13,
5215,
775,
239... |
launch_jobs/ecs_control.py | rhodricusack/docker-hcp | 0 | 107000 | <reponame>rhodricusack/docker-hcp
import boto3
import os
import time
def register_task(client):
response = client.register_task_definition(
executionRoleArn='arn:aws:iam::807820536621:role/ecsTaskExecutionRole',
family='roi-extract',
taskRoleArn='arn:aws:iam::807820536621:role/cusacklab_el... | [
1,
529,
276,
1112,
420,
29958,
19046,
397,
2200,
375,
547,
29914,
14695,
29899,
29882,
6814,
13,
5215,
289,
3747,
29941,
13,
5215,
2897,
13,
5215,
931,
13,
13,
1753,
6036,
29918,
7662,
29898,
4645,
1125,
13,
13,
1678,
2933,
353,
3132,... |
ucf_sub_catkin_ros/src/sub_states/src/qual/test.py | RoboticsClubatUCF/RoboSub | 0 | 16780 | #!/usr/bin/env python
import rospy
import smach
import gate
import pole
class SubStates:
def __init__(self):
rospy.loginfo("State Machine has started.")
self.gate = smach.StateMachine(outcomes=['preempted', 'POLE', 'GATE'])
self.pole = smach.StateMachine(outc... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
696,
1028,
29891,
13,
5215,
1560,
496,
13,
13,
5215,
12417,
13,
5215,
22775,
13,
13,
1990,
3323,
855,
1078,
29901,
13,
13,
4706,
822,
4770,
2344,
12035,
1311,
1125,
13,
1... |
stamper/hashes.py | ISTU-Labs/stumper | 0 | 199286 | import bcrypt
import mmh3 as mmh3
def get_hashed_password(plain_text_password):
# Хэширует пароль в фазе его задания
# Используется модуль bcrypt, соль записывается в сам хэш
plain_text_password = as_bytes(plain_text_password)
return bcrypt.hashpw(plain_text_password, bcrypt.gensalt()).decode("utf-8")... | [
1,
1053,
289,
29883,
4641,
13,
5215,
5654,
29882,
29941,
408,
5654,
29882,
29941,
13,
13,
13,
1753,
679,
29918,
8568,
287,
29918,
5630,
29898,
24595,
29918,
726,
29918,
5630,
1125,
13,
1678,
396,
3004,
30051,
1911,
1086,
1257,
4554,
576... |
hub_module/tests/unittests/test_ernie_skep_sentiment_analysis.py | 18621579069/PaddleHub-yu | 4 | 1612336 | <reponame>18621579069/PaddleHub-yu<filename>hub_module/tests/unittests/test_ernie_skep_sentiment_analysis.py
# Copyright (c) 2020 PaddlePaddle 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 ob... | [
1,
529,
276,
1112,
420,
29958,
29896,
29947,
29953,
29906,
29896,
29945,
29955,
29929,
29900,
29953,
29929,
29914,
29925,
22352,
16046,
29899,
29891,
29884,
29966,
9507,
29958,
29882,
431,
29918,
5453,
29914,
21150,
29914,
348,
986,
9197,
299... |
hatsploit/utils/string.py | sunmughan/rat | 0 | 142802 | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
29937,
13,
29937,
341,
1806,
19245,
13,
29937,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29900,
29899,
29906,
29900,
29906,
29896,
4284,
29891,
7898... |
Curso_de_Python_ Curso_em_Video/PythonExercicios/ex113.py | DanilooSilva/Cursos_de_Python | 0 | 71162 | def leiaInt(mgn):
while True:
try:
n = int(input(mgn))
except (ValueError, TypeError):
print('\033[031mErro: por favor, digite um número interio válido.\033[m')
else:
return n
break
def leiaFloat(mgn):
while True:
try:
... | [
1,
822,
454,
423,
2928,
29898,
29885,
5138,
1125,
13,
1678,
1550,
5852,
29901,
13,
4706,
1018,
29901,
13,
9651,
302,
353,
938,
29898,
2080,
29898,
29885,
5138,
876,
13,
4706,
5174,
313,
1917,
2392,
29892,
20948,
1125,
13,
9651,
1596,
... |
prog/python/python tuto/snapper/Snapper.py | gribdesbois/prog-backup | 0 | 1606068 |
#handle text display
def display_scoreboard_data(scoreboard_text, alignment):
display_text = font.render(scoreboard_text, True, WHITE)
text_rect = display_text.get_rect()
text_loc = [0, 0]
if alignment == 'Left':
text_loc = [SCOREBOARD_MARGIN, SCREEN_HEIGHT - SCOREBOARD_HEIGHT]
elif alignment == 'Centre':
... | [
1,
29871,
13,
13,
29937,
8411,
1426,
2479,
13,
1753,
2479,
29918,
13628,
3377,
29918,
1272,
29898,
13628,
3377,
29918,
726,
29892,
22239,
1125,
13,
12,
4990,
29918,
726,
353,
4079,
29889,
9482,
29898,
13628,
3377,
29918,
726,
29892,
5852,... |
utopian.py | tolgahanuzun/curation | 0 | 132104 | <reponame>tolgahanuzun/curation
import requests
from bs4 import BeautifulSoup
from utils import avaible_link
utopian_link = 'https://utopian.rocks/queue'
exclude = 'https://steemit.com/utopian-io/@amosbastian/developing-the-new-utopian-bot'
def run():
r = requests.get(utopian_link)
data = r.text
soup =... | [
1,
529,
276,
1112,
420,
29958,
29873,
22991,
801,
273,
3365,
348,
29914,
29883,
2633,
13,
5215,
7274,
13,
3166,
24512,
29946,
1053,
25685,
29903,
1132,
13,
13,
3166,
3667,
29879,
1053,
1029,
1794,
569,
29918,
2324,
13,
13,
329,
459,
7... |
pysal/explore/pointpats/centrography.py | ocefpaf/pysal | 1 | 72736 | """
Centrographic measures for point patterns
TODO
- testing
- documentation
"""
__author__ = "<NAME> <EMAIL>"
__all__ = ['mbr', 'hull', 'mean_center', 'weighted_mean_center',
'manhattan_median', 'std_distance', 'euclidean_median', 'ellipse',
'skyum', 'dtot',"_circle"]
import sys
import nump... | [
1,
9995,
13,
23369,
307,
4262,
293,
15366,
363,
1298,
15038,
13,
13,
4986,
3970,
13,
13,
29899,
6724,
13,
29899,
5106,
13,
13,
15945,
29908,
13,
13,
1649,
8921,
1649,
353,
9872,
5813,
29958,
529,
26862,
6227,
11903,
13,
1649,
497,
1... |
toutiao-backend/toutiao/resources/user/profile.py | weiyunfei520/toutiao | 0 | 34324 | from flask import current_app
from flask import g
from flask import request
from flask_restful.reqparse import RequestParser
from flask_restful import Resource
from models import db
from models.user import User
from utils.decorators import login_required
from utils.parser import image_file
from utils.storage import up... | [
1,
515,
29784,
1053,
1857,
29918,
932,
13,
3166,
29784,
1053,
330,
13,
3166,
29784,
1053,
2009,
13,
3166,
29784,
29918,
5060,
1319,
29889,
7971,
5510,
1053,
10729,
11726,
13,
3166,
29784,
29918,
5060,
1319,
1053,
18981,
13,
13,
3166,
47... |
code/4chan-scraper-api/4chan_catalog_scraper_custom.py | interimblue/idp | 0 | 135159 |
"""
Created on 26/05/2020
4chan-scraper v0.2
@author: <NAME>
"""
import requests
import logging
import json
import os
import datetime as dt
import sys
import time
#===============================================================================
# Setup
#======================================... | [
1,
29871,
13,
15945,
29908,
13,
20399,
373,
29871,
29906,
29953,
29914,
29900,
29945,
29914,
29906,
29900,
29906,
29900,
13,
29946,
5083,
29899,
1557,
336,
546,
325,
29900,
29889,
29906,
13,
29992,
8921,
29901,
529,
5813,
29958,
13,
15945,
... |
src/cosmic_ray/tools/filters/filter_app.py | XD-DENG/cosmic-ray | 1 | 27937 | <gh_stars>1-10
"""A simple base for creating common types of work-db filters.
"""
import argparse
import logging
import sys
from exit_codes import ExitCode
from cosmic_ray.work_db import use_db
class FilterApp:
"""Base class for simple WorkDB filters.
This provides command-line handling for common filter o... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
29909,
2560,
2967,
363,
4969,
3619,
4072,
310,
664,
29899,
2585,
18094,
29889,
13,
15945,
29908,
13,
5215,
1852,
5510,
13,
5215,
12183,
13,
5215,
10876,... |
FaceSwapper/faceLandmarks.py | rahulsingh50/Computer-Vision-Projects | 1 | 71412 | import cv2
import dlib
import numpy as np
# Path to shape predictor file
PATH = 'shape_predictor_68_face_landmarks.dat'
# Our landpoints' predictor and detector objects
predictor = dlib.shape_predictor(PATH)
detector = dlib.get_frontal_face_detector()
# Reading our image
img = cv2.imread('images/mr_robot.jpg')
# D... | [
1,
1053,
13850,
29906,
13,
5215,
270,
1982,
13,
5215,
12655,
408,
7442,
13,
13,
29937,
10802,
304,
8267,
8500,
272,
934,
13,
10145,
353,
525,
12181,
29918,
27711,
272,
29918,
29953,
29947,
29918,
2161,
29918,
1049,
22848,
29889,
4130,
2... |
python/1931.py | zheedong/BaekJoon | 0 | 2785 | <filename>python/1931.py
n = int(input())
conf_set = []
for _ in range(n):
conf_set.append(tuple(map(int, input().split())))
conf_set.sort(key=lambda x : (x[1], x[0]))
# 끝나는 시간을 기준으로 정렬
# 시작과 종료가 같은 경우를 포함하기 위해선, 시작 시간도 오름차순으로 정렬해 줘야 한다
solution_list = [conf_set[0]]
# Greedy Algorithm
for conf in conf_set[1:]:... | [
1,
529,
9507,
29958,
4691,
29914,
29896,
29929,
29941,
29896,
29889,
2272,
13,
29876,
353,
938,
29898,
2080,
3101,
13,
13,
5527,
29918,
842,
353,
5159,
13,
13,
1454,
903,
297,
3464,
29898,
29876,
1125,
13,
1678,
1970,
29918,
842,
29889,... |
pulsar/apps/data/redis/store.py | goodboy/pulsar | 1 | 5857 | from functools import partial
from pulsar import Connection, Pool, get_actor
from pulsar.utils.pep import to_string
from pulsar.apps.data import RemoteStore
from pulsar.apps.ds import redis_parser
from .client import RedisClient, Pipeline, Consumer, ResponseError
from .pubsub import RedisPubSub, RedisChannels
class... | [
1,
515,
2090,
312,
8789,
1053,
7687,
13,
13,
3166,
282,
7273,
279,
1053,
15160,
29892,
28625,
29892,
679,
29918,
7168,
13,
3166,
282,
7273,
279,
29889,
13239,
29889,
412,
29886,
1053,
304,
29918,
1807,
13,
3166,
282,
7273,
279,
29889,
... |
script/rpi3-crowdmodel/init_reactions.py | ctuning/ck-rpi-optimization-results | 22 | 87058 | <reponame>ctuning/ck-rpi-optimization-results
#
# Collective Knowledge script
#
# See CK LICENSE.txt for licensing details
# See CK COPYRIGHT.txt for copyright details
#
# Developer: <NAME>, <EMAIL>, http://fursin.net, 2017
#
import ck.kernel as ck
import os
import json
improvement_threshold=1.05
r=ck.access({'actio... | [
1,
529,
276,
1112,
420,
29958,
312,
27964,
29914,
384,
29899,
29878,
1631,
29899,
20640,
2133,
29899,
9902,
13,
29937,
13,
29937,
24930,
573,
19320,
5485,
2471,
13,
29937,
13,
29937,
2823,
315,
29968,
365,
2965,
1430,
1660,
29889,
3945,
... |
bender_service/bender_service/urls.py | Dreem-Organization/bender-api | 0 | 83776 | <reponame>Dreem-Organization/bender-api
"""bender URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r... | [
1,
529,
276,
1112,
420,
29958,
29928,
276,
331,
29899,
27356,
2133,
29914,
29890,
1581,
29899,
2754,
13,
15945,
29908,
29890,
1581,
3988,
20999,
13,
13,
1576,
421,
2271,
11037,
29879,
29952,
1051,
12049,
24295,
304,
8386,
29889,
1152,
901... |
investing_algorithm_framework/core/models/__init__.py | coding-kitties/investing-algorithm-framework | 9 | 11277 | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
def create_all_tables():
db.create_all()
def initialize_db(app: Flask):
db.init_app(app)
db.app = app
from investing_algorithm_framework.core.models.order_status import OrderStatus
from investing_algorithm_framework.core... | [
1,
515,
29784,
1053,
2379,
1278,
13,
3166,
29784,
29918,
2850,
284,
305,
6764,
1053,
3758,
2499,
305,
6764,
13,
13,
2585,
353,
3758,
2499,
305,
6764,
580,
13,
13,
13,
1753,
1653,
29918,
497,
29918,
24051,
7295,
13,
1678,
4833,
29889,
... |
fudge-domain.py | jordantrc/domain-fudgery | 0 | 27748 | <filename>fudge-domain.py
#!/usr/bin/env python3
#
# fudge-domain.py
#
# Finds potentially useful domains
# which are visually similar to the
# target domain and ascertains whether
# these domains are currently available
# (not registered). Also checks if any TLDs
# are not registered for the domain.
#
# Usage:
# doma... | [
1,
529,
9507,
29958,
29888,
566,
479,
29899,
7247,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
13,
29937,
285,
566,
479,
29899,
7247,
29889,
2272,
13,
29937,
13,
29937,
10987,
29879,
19998,
5407,... |
common/doLoginOut.py | TamCharlene/automatic_testing | 0 | 178747 | import os
import json
import requests
from common.doConfig import GetInfo
class DoLoginOut:
def getUrl(self):
"""
从配置文件中接口url
:return: 接口url
"""
cf = GetInfo(os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + "/config/user_info.cfg")
base_interface = cf.... | [
1,
1053,
2897,
13,
5215,
4390,
13,
5215,
7274,
13,
3166,
3619,
29889,
1867,
3991,
1053,
3617,
3401,
13,
13,
13,
1990,
1938,
11049,
3744,
29901,
13,
13,
1678,
822,
679,
5983,
29898,
1311,
1125,
13,
4706,
9995,
13,
308,
31594,
31361,
... |
tests/test_experiments/test_n3_base_no_slash_after_colon.py | octadocs/octadocs | 1 | 75197 | """
Test for GitHub issue: https://github.com/RDFLib/rdflib/issues/1216
"""
import pytest
import rdflib
from octadocs.types import LOCAL
DOCUMENT = f"""
@base <{LOCAL}> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<class_to_class>
a
rdfs:Class ,
<Category> ;
<color> "blue" ;
<priority> 4 .... | [
1,
9995,
13,
3057,
363,
25492,
2228,
29901,
2045,
597,
3292,
29889,
510,
29914,
29934,
4037,
14868,
29914,
29878,
2176,
1982,
29914,
12175,
29914,
29896,
29906,
29896,
29953,
13,
15945,
29908,
13,
5215,
11451,
1688,
13,
5215,
364,
2176,
1... |
backend/plugins/bs4_spacer/models.py | Guanch1/rep1 | 20 | 170409 | from cms.models.pluginmodel import CMSPlugin
from django.db import models
class VerticalSpacerPlugin(CMSPlugin):
smart_space = models.PositiveIntegerField(
"Default Space",
default=0,
help_text="in px, for desktop, height on other devices is calculated automatically",
)
space_xs =... | [
1,
515,
274,
1516,
29889,
9794,
29889,
8582,
4299,
1053,
315,
4345,
16288,
13,
3166,
9557,
29889,
2585,
1053,
4733,
13,
13,
13,
1990,
11198,
936,
5592,
562,
261,
16288,
29898,
29907,
4345,
16288,
1125,
13,
1678,
15040,
29918,
3493,
353,... |
polyaxon/scheduler/job_scheduler.py | wbuchwalter/polyaxon | 0 | 78544 | <filename>polyaxon/scheduler/job_scheduler.py<gh_stars>0
import logging
from kubernetes.client.rest import ApiException
from django.conf import settings
from constants.jobs import JobLifeCycle
from docker_images.image_info import get_image_info
from libs.paths.exceptions import VolumeNotFoundError
from polyaxon.conf... | [
1,
529,
9507,
29958,
22678,
1165,
265,
29914,
816,
14952,
29914,
9057,
29918,
816,
14952,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12183,
13,
13,
3166,
413,
17547,
29889,
4645,
29889,
5060,
1053,
29749,
2451,
1... |
backend/medico/urls.py | danizavtz/desafiodrf | 0 | 95319 | <filename>backend/medico/urls.py
from django.urls import include, path
from rest_framework import routers
from .views import MedicoViewSet, EspecialidadeViewSet
router = routers.DefaultRouter()
router.register(r'medicos', MedicoViewSet, basename='medicos')
router.register(r'especialidades', EspecialidadeViewSet, basen... | [
1,
529,
9507,
29958,
27852,
29914,
2168,
1417,
29914,
26045,
29889,
2272,
13,
3166,
9557,
29889,
26045,
1053,
3160,
29892,
2224,
13,
3166,
1791,
29918,
4468,
1053,
16053,
2153,
13,
3166,
869,
7406,
1053,
3436,
1417,
1043,
2697,
29892,
342... |
features/steps/running.py | lstephen/construi | 27 | 94355 | import contextlib
import os
import re
import shlex
import subprocess
from behave import *
ANSI_ESCAPE = re.compile(r"\x1B\[[0-?]*[ -/]*[@-~]")
def strip_ansi_codes(inp):
return ANSI_ESCAPE.sub("", inp)
@contextlib.contextmanager
def pushd(new_dir):
old_dir = os.getcwd()
os.chdir(new_dir)
yield
... | [
1,
1053,
3030,
1982,
13,
5215,
2897,
13,
5215,
337,
13,
5215,
528,
2506,
13,
5215,
1014,
5014,
13,
13,
3166,
23389,
1053,
334,
13,
13,
2190,
5425,
29918,
2890,
29907,
3301,
29923,
353,
337,
29889,
12198,
29898,
29878,
26732,
29916,
29... |
exercicios/ex 061 a 070/ex063.py | CarlosWillian/python | 0 | 36319 | print('Sequência de Fibonacci')
print('='*24)
t = int(input('Número de termos da sequência: '))
print('='*24)
c = 3
termo1 = 0
termo2 = 1
print('A sequência é ({}, {}, '.format(termo1, termo2), end='')
while c <= t:
termo3 = termo1 + termo2
print('{}'.format(termo3), end='')
print(', ' if c < t else '', end... | [
1,
1596,
877,
16941,
10544,
316,
383,
747,
265,
21566,
1495,
13,
2158,
877,
2433,
29930,
29906,
29946,
29897,
13,
29873,
353,
938,
29898,
2080,
877,
29940,
30030,
1050,
29877,
316,
1840,
359,
1146,
8617,
10544,
29901,
525,
876,
13,
2158... |
xpanse/api/assets/v2/ip_range.py | PaloAltoNetworks/cortex-xpanse-python-sdk | 3 | 12173 | <reponame>PaloAltoNetworks/cortex-xpanse-python-sdk<gh_stars>1-10
from typing import Any, Dict, List
from xpanse.const import V2_PREFIX
from xpanse.endpoint import ExEndpoint
from xpanse.iterator import ExResultIterator
class IpRangeEndpoint(ExEndpoint):
"""
Part of the Assets v2 API for handling IP Ranges.
... | [
1,
529,
276,
1112,
420,
29958,
29925,
7003,
2499,
517,
13724,
29879,
29914,
2616,
4776,
29899,
29916,
8357,
344,
29899,
4691,
29899,
15348,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
19229,
1053,
3139,
2989... |
bluebottle/events/serializers.py | jayvdb/bluebottle | 0 | 141982 | <filename>bluebottle/events/serializers.py<gh_stars>0
from builtins import object
from rest_framework.validators import UniqueTogetherValidator
from rest_framework import serializers
from rest_framework_json_api.relations import ResourceRelatedField
from bluebottle.activities.utils import (
BaseActivitySerializer... | [
1,
529,
9507,
29958,
9539,
29890,
1501,
280,
29914,
13604,
29914,
15550,
19427,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
4240,
1144,
1053,
1203,
13,
3166,
1791,
29918,
4468,
29889,
3084,
4097,
1053,
853,
1387,
... |
classes_and_testsTest/DocumentationFromUnitTestsTestData/DataSet1_py_ClassFile.py | anconaesselmann/LiveUnit | 0 | 44045 | <reponame>anconaesselmann/LiveUnit<filename>classes_and_testsTest/DocumentationFromUnitTestsTestData/DataSet1_py_ClassFile.py
class DataClassFile():
def functionName1(self):
""" One Function (without parameters) with one test function (with single line comments)
where the documentation had not been ... | [
1,
529,
276,
1112,
420,
29958,
273,
535,
29874,
25583,
4403,
29914,
23859,
8325,
29966,
9507,
29958,
13203,
29918,
392,
29918,
21150,
3057,
29914,
6268,
362,
4591,
8325,
24376,
3057,
1469,
29914,
28449,
29896,
29918,
2272,
29918,
2385,
2283... |
src/complete_analysis.py | joigno/cloudlight | 3 | 58184 | #!/usr/bin/python
import sys
from cloudlight.classes.graph import Graph
from cloudlight.algorithms.plot import Plot
import cloudlight.tests.data_enc1
graph = Graph()
graph.debug = True
graph.input_debug_links = 200000
graph.output_debug_nodes = 100
graph.max_links_input = 5*10**7
graph.max_nodes_analysis = 10000
... | [
1,
18787,
4855,
29914,
2109,
29914,
4691,
13,
13,
13,
5215,
10876,
13,
13,
3166,
9570,
4366,
29889,
13203,
29889,
4262,
1053,
12367,
13,
3166,
9570,
4366,
29889,
9564,
12404,
29889,
5317,
1053,
18399,
13,
5215,
9570,
4366,
29889,
21150,
... |
lagom/core/transform/centralize.py | dkorduban/lagom | 0 | 46269 | <filename>lagom/core/transform/centralize.py
import numpy as np
from .base_transform import BaseTransform
class Centralize(BaseTransform):
r"""Centralize the input data to zero-centered.
Let :math:`x_1, \dots, x_N` be :math:`N` samples, the centralization does the following:
.. math::
... | [
1,
529,
9507,
29958,
3110,
290,
29914,
3221,
29914,
9067,
29914,
25171,
675,
29889,
2272,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
869,
3188,
29918,
9067,
1053,
7399,
13372,
13,
13,
13,
1990,
8068,
675,
29898,
5160,
13372,
1125,
13,
... |
tests/test_schwefel26_1981.py | kyawlin/smlb | 0 | 78304 | """Schefel26 1981 dataset tests.
Scientific Machine Learning Benchmark:
A benchmark of regression models in chem- and materials informatics.
(c) <NAME> 2020, Citrine Informatics.
"""
import pytest
import numpy as np
import smlb
def test_schwefel26_1981_examples():
"""Tests instantiating and evaluating Schwef... | [
1,
9995,
29903,
1173,
13287,
29906,
29953,
29871,
29896,
29929,
29947,
29896,
8783,
6987,
29889,
13,
13,
29903,
15566,
928,
6189,
29257,
4111,
16580,
29901,
29871,
13,
29909,
23513,
310,
17855,
4733,
297,
8950,
29899,
322,
17279,
1871,
271,... |
demos/wqztemplate/app.py | 13871433675/helloflask | 0 | 127877 | from flask import Flask, render_template
app = Flask(__name__)
namelist = ['chengli', 'qizhi', 'zhangsan', 'wangqizhi']
name2 = 'wangqizhi'
user = {
'username': 'Grey Li',
'bio': 'A boy who loves movies and music.',
}
movies = [
{'name': 'My Neighbor Totoro', 'year': '1988'},
{'name': 'Three Colours... | [
1,
515,
29784,
1053,
2379,
1278,
29892,
4050,
29918,
6886,
13,
13,
932,
353,
2379,
1278,
22168,
978,
1649,
29897,
13,
13,
8588,
295,
391,
353,
6024,
305,
996,
492,
742,
525,
29939,
466,
2918,
742,
525,
29920,
11895,
28455,
742,
525,
... |
setup.py | BerkeleyGW/BGWpy | 27 | 71104 | from __future__ import print_function
import sys
import os
from glob import glob
import shutil
try:
import setuptools
except ImportError:
sys.stderr.write(
"Please install setuptools before running this script. Exiting.")
sys.exit(1)
from setuptools import setup, find_packages
# --------------------... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
10876,
13,
5215,
2897,
13,
3166,
13149,
1053,
13149,
13,
5215,
528,
4422,
13,
13,
2202,
29901,
13,
1678,
1053,
731,
21245,
8789,
13,
19499,
16032,
2392,
29901,
13,
16... |
data/ebmnlp/stream.py | bepnye/tf_ner | 0 | 19647 | import os
import data_utils
from pathlib import Path
top_path = Path(os.path.dirname(os.path.abspath(__file__)))
EBM_NLP = Path('/Users/ben/Desktop/ebm_nlp/repo/ebm_nlp_2_00/')
NO_LABEL = '0'
def overwrite_tags(new_tags, tags):
for i, t in enumerate(new_tags):
if t != NO_LABEL:
tags[i] = t
def get_tags(d... | [
1,
1053,
2897,
13,
5215,
848,
29918,
13239,
13,
3166,
2224,
1982,
1053,
10802,
13,
13,
3332,
29918,
2084,
353,
10802,
29898,
359,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
370,
1028,
493,
22168,
1445,
1649,
4961,
13,
25... |
noxfile.py | Juh10/pytd | 16 | 191865 | <filename>noxfile.py
import nox
@nox.session
def lint(session):
lint_tools = ["black", "isort", "flake8"]
targets = ["pytd", "setup.py", "noxfile.py"]
session.install(*lint_tools)
session.run("flake8", *targets)
session.run("black", "--diff", "--check", *targets)
session.run("isort", "--diff",... | [
1,
529,
9507,
29958,
1217,
29916,
1445,
29889,
2272,
13,
5215,
694,
29916,
13,
13,
13,
29992,
1217,
29916,
29889,
7924,
13,
1753,
301,
524,
29898,
7924,
1125,
13,
1678,
301,
524,
29918,
8504,
353,
6796,
8517,
613,
376,
275,
441,
613,
... |
BinaryImageRec/2-class+Demo.py | apur27/public | 1 | 109063 | <filename>BinaryImageRec/2-class+Demo.py<gh_stars>1-10
# coding: utf-8
# In[ ]:
# In[5]:
# Building the CNN
from keras.models import Sequential
from keras.layers import Convolution2D
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from keras.layers import Dense
# Initializing the CNN
c... | [
1,
529,
9507,
29958,
25196,
2940,
4789,
29914,
29906,
29899,
1990,
29974,
23444,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
13,
29937,
512,
29961,
45... |
teacher/admin.py | Swarda6/TCS-Project | 0 | 153135 | <reponame>Swarda6/TCS-Project
from django.contrib import admin
from .models import Teacher
admin.site.register(Teacher)
# Register your models here.
| [
1,
529,
276,
1112,
420,
29958,
29903,
1328,
29874,
29953,
29914,
29911,
9295,
29899,
7653,
13,
3166,
9557,
29889,
21570,
1053,
4113,
13,
3166,
869,
9794,
1053,
1920,
11665,
13,
6406,
29889,
2746,
29889,
9573,
29898,
29911,
4204,
261,
2989... |
src/geni.py | hhugo/General | 7 | 138473 | <reponame>hhugo/General
import itertools
import functools
import os
import sys
import textwrap
max_arity = 6
def generate(*element, **kwds):
p = functools.partial(print, file=kwds.get("file"))
previous_line_was_end = False
for line in indent(element, kwds.get("indent", 0)):
line_is_end = line.st... | [
1,
529,
276,
1112,
420,
29958,
25446,
15490,
29914,
15263,
13,
5215,
4256,
8504,
13,
5215,
2090,
312,
8789,
13,
5215,
2897,
13,
5215,
10876,
13,
5215,
1426,
6312,
13,
13,
13,
3317,
29918,
279,
537,
353,
29871,
29953,
13,
13,
13,
175... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.