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/role_filter.py | kjkszpj/mifans | 0 | 36789 | <gh_stars>0
import pickle
data = pickle.load(open('../data/record.pk', 'rb'))
namedict = pickle.load(open('../data/namedict.pk', 'rb'))
rndict = {v:k for k, v in namedict.items()}
pickle.dump(rndict, open('../data/rndict.pk', 'wb'))
cnt_name = {v:[0, 0, 0] for v in namedict.values()}
for record in data:
for a in r... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
5839,
280,
13,
13,
1272,
353,
5839,
280,
29889,
1359,
29898,
3150,
877,
6995,
1272,
29914,
11651,
29889,
20571,
742,
525,
6050,
8785,
13,
17514,
919,
353,
5839,
280,
29889,
1359,
... |
spotify_sort_by_release/__init__.py | mcieno/spotify-sort-by-release | 2 | 1613700 | <gh_stars>1-10
#!/usr/bin/env python3
# -*- coding: utf8 -*-
from .spotify_sort_by_release import *
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29947,
448,
29930,
29899,
13,
3166,
869,
17500,
1598,
2991... |
Python/run_lfca_example.py | subond/lfca | 9 | 77941 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Dec 16 17:58:52 2018
@author: Zhaoyi.Shen
"""
import sys
sys.path.append('/home/z1s/py/lib/')
from signal_processing import lfca
import numpy as np
import scipy as sp
from scipy import io
from matplotlib import pyplot as plt
filename = '/home/z1s/rese... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29906,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
20399,
373,
8991,
3826,
29871,
29896,
29953,
29871,
29896,
29955,
29901,
29945,
... |
sound.py | Artemia76/discord-audio-pipe | 0 | 47104 | import numpy as np
import sounddevice as sd
MME = 0
sd.default.channels = 2
sd.default.dtype = 'int16'
sd.default.latency = 'low'
sd.default.samplerate = 48000
class PCMStream:
def __init__(self):
self.stream = None
def read(self, num_bytes):
# frame is 4 bytes
... | [
1,
1053,
12655,
408,
7442,
30004,
13,
5215,
6047,
10141,
408,
28972,
30004,
13,
30004,
13,
29924,
2303,
353,
29871,
29900,
30004,
13,
4928,
29889,
4381,
29889,
305,
12629,
353,
29871,
29906,
30004,
13,
4928,
29889,
4381,
29889,
29881,
185... |
ppg-bp/file_2.py | hao203/journal-file | 0 | 85421 | import pathlib
import random
import tensorflow as tf
data_root = pathlib.Path(r'C:\Users\<NAME>\Documents\data')
all_images_paths = list(data_root.glob('*/*'))
all_images_paths = [str(path) for path in all_images_paths]
random.shuffle(all_images_paths)
label_names = sorted(item.name for item in data_root.glob('*/') ... | [
1,
1053,
2224,
1982,
13,
5215,
4036,
13,
5215,
26110,
408,
15886,
13,
13,
1272,
29918,
4632,
353,
2224,
1982,
29889,
2605,
29898,
29878,
29915,
29907,
3583,
5959,
4488,
5813,
14247,
20128,
29905,
1272,
1495,
13,
497,
29918,
8346,
29918,
... |
src/model/exception/emote_fetch_error.py | konrad2508/kokomi-discord-bot | 2 | 6540 | class EmoteFetchError(Exception):
'''Exception stating that there was a problem while fetching emotes from a source.'''
| [
1,
770,
2812,
866,
20927,
2392,
29898,
2451,
1125,
13,
1678,
14550,
2451,
23659,
393,
727,
471,
263,
1108,
1550,
6699,
292,
953,
4769,
515,
263,
2752,
29889,
12008,
13,
2
] |
013-Flareon 6 Reloadered/resolve.py | schommi/low-tech | 0 | 37362 | import itertools
secret = [
0x7A, 0x17, 0x08, 0x34, 0x17, 0x31, 0x3B, 0x25, 0x5B, 0x18, 0x2E, 0x3A, 0x15, 0x56, 0x0E, 0x11,
0x3E, 0x0D, 0x11, 0x3B, 0x24, 0x21, 0x31, 0x06, 0x3C, 0x26, 0x7C, 0x3C, 0x0D, 0x24, 0x16, 0x3A,
0x14, 0x79, 0x01, 0x3A, 0x18, 0x5A, 0x58, 0x73, 0x2E, 0x09, 0x00, 0x16, 0x00, 0x49, 0x22, 0x0... | [
1,
1053,
4256,
8504,
13,
13,
19024,
353,
518,
13,
259,
29900,
29916,
29955,
29909,
29892,
29871,
29900,
29916,
29896,
29955,
29892,
29871,
29900,
29916,
29900,
29947,
29892,
29871,
29900,
29916,
29941,
29946,
29892,
29871,
29900,
29916,
29896... |
src/utils/common_imaging.py | dovedevic/fullyautomatednutcracker | 5 | 1602110 | <filename>src/utils/common_imaging.py
import io
import requests
import random
from PIL import Image, ImageDraw, ImageFont
def resize(im, size):
bands = im.split()
bands = [b.resize(size, Image.LINEAR) for b in bands]
return Image.merge('RGBA', bands)
def resize_to_nearest(image, square_size):
bands... | [
1,
529,
9507,
29958,
4351,
29914,
13239,
29914,
9435,
29918,
326,
6751,
29889,
2272,
13,
5215,
12013,
13,
5215,
7274,
13,
5215,
4036,
13,
13,
3166,
349,
6227,
1053,
7084,
29892,
7084,
8537,
29892,
7084,
9824,
13,
13,
13,
1753,
19490,
... |
lib/metrics.py | jarobyte91/post_ocr_correction | 3 | 104623 | <reponame>jarobyte91/post_ocr_correction<gh_stars>1-10
import pandas as pd
from Levenshtein import distance
import re
from tqdm.notebook import tqdm
def levenshtein(reference, hypothesis, progress_bar = False):
assert len(reference) == len(hypothesis)
text = zip(reference, hypothesis)
if progress_ba... | [
1,
529,
276,
1112,
420,
29958,
4758,
18711,
371,
29929,
29896,
29914,
2490,
29918,
8415,
29918,
2616,
276,
428,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
11701,
408,
10518,
13,
3166,
951,
9852,
29882,
37... |
trove/guestagent/datastore/experimental/postgresql/service/process.py | cp16net/trove | 0 | 102940 | # 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/licenses/LICENSE-2.0
#
# Unless ... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29941,
4673,
7264,
10606,
13,
29937,
2178,
26863,
2538,
9841,
29889,
13,
29937,
13,
29937,
1678,
10413,
21144,
1090,
278,
13380,
19245,
29892,
10079,
29871,
29906,
29889,
2... |
tests/dialogs/wfDialComs.py | cefect/myCanFlood | 15 | 1604128 | <reponame>cefect/myCanFlood
'''
Created on Nov. 27, 2021
@author: cefect
commons for dialog workflow
'''
#==============================================================================
# imports---------------------------
#==============================================================================
#python standar... | [
1,
529,
276,
1112,
420,
29958,
346,
3647,
29914,
1357,
6028,
29943,
417,
397,
13,
12008,
13,
20399,
373,
2864,
29889,
29871,
29906,
29955,
29892,
29871,
29906,
29900,
29906,
29896,
13,
13,
29992,
8921,
29901,
274,
1389,
522,
13,
13,
223... |
tests/management/commands/test_create_command.py | kaozdl/django-extensions | 0 | 17322 | # -*- coding: utf-8 -*-
import os
import shutil
from django.conf import settings
from django.core.management import call_command
from django.test import TestCase
from six import StringIO
try:
from unittest.mock import patch
except ImportError:
from mock import patch
class CreateCommandTests(TestCase):
"... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
5215,
2897,
13,
5215,
528,
4422,
13,
13,
3166,
9557,
29889,
5527,
1053,
6055,
13,
3166,
9557,
29889,
3221,
29889,
21895,
1053,
1246,
29918,
6519,
13,
3... |
commit_data.py | iwangjian/ByteCup2018 | 80 | 45700 | <filename>commit_data.py
import os
import argparse
def process_decoded(args):
if not os.path.exists(args.result_dir):
os.mkdir(args.result_dir)
punct = ["/", "`", "+", "-", ";", "-lrb-", "-rrb-", "``", "|", "~", """]
for file in os.listdir(args.decode_dir):
file_path = os.path.join(ar... | [
1,
529,
9507,
29958,
15060,
29918,
1272,
29889,
2272,
13,
5215,
2897,
13,
5215,
1852,
5510,
13,
13,
13,
1753,
1889,
29918,
7099,
6797,
29898,
5085,
1125,
13,
1678,
565,
451,
2897,
29889,
2084,
29889,
9933,
29898,
5085,
29889,
2914,
2991... |
adminmgr/media/code/A3/task1/BD_1348_1576_1597_gO6b0h8.py | IamMayankThakur/test-bigdata | 9 | 179443 | import findspark
findspark.init()
import time
from pyspark.sql import SparkSession
from pyspark.streaming import StreamingContext
from pyspark.sql.types import StructType, StructField, StringType
from pyspark.sql import Row,SQLContext
from pyspark.sql.functions import explode, split
import sys
import requests
def ... | [
1,
1053,
1284,
12597,
13,
2886,
12597,
29889,
2344,
580,
13,
13,
5215,
931,
13,
3166,
282,
952,
6378,
29889,
2850,
1053,
20814,
7317,
13,
3166,
282,
952,
6378,
29889,
5461,
292,
1053,
13763,
292,
2677,
13,
3166,
282,
952,
6378,
29889,... |
latihan1.py | mprwgt/labpy03 | 0 | 155669 | <filename>latihan1.py
print("masukan nilai N: 5 ")
import random
j= 5
a= 0
for i in range(j):
i = random.uniform(.0,.5)
a +=1
print("data ke :", a, "==>", i)
print("selesai") | [
1,
529,
9507,
29958,
29880,
2219,
5403,
29896,
29889,
2272,
13,
2158,
703,
8247,
2679,
273,
4263,
1794,
405,
29901,
29871,
29945,
16521,
13,
5215,
4036,
13,
13,
29926,
29922,
29871,
29945,
13,
29874,
29922,
29871,
29900,
13,
1454,
474,
... |
test/programytest/config/sections/brain/test_dynamic.py | ItsPhant/program-y | 0 | 137825 | import unittest
from programy.config.file.yaml_file import YamlConfigurationFile
from programy.config.sections.brain.dynamic import BrainDynamicsConfiguration
from programy.config.sections.client.console import ConsoleConfiguration
class BrainDynamicsConfigurationTests(unittest.TestCase):
def test_with_data(self... | [
1,
1053,
443,
27958,
13,
13,
3166,
1824,
29891,
29889,
2917,
29889,
1445,
29889,
25162,
29918,
1445,
1053,
612,
8807,
8614,
2283,
13,
3166,
1824,
29891,
29889,
2917,
29889,
27117,
29889,
2634,
262,
29889,
16626,
1053,
5032,
262,
29928,
29... |
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/dark_lang/views.py | osoco/better-ways-of-thinking-about-software | 3 | 21903 | """
Views file for the Darklang Django App
"""
from django.contrib.auth.decorators import login_required
from django.http import Http404
from django.shortcuts import redirect
from django.template.loader import render_to_string
from django.utils.decorators import method_decorator
from django.utils.translation import L... | [
1,
9995,
13,
23825,
934,
363,
278,
15317,
3893,
15337,
2401,
13,
15945,
29908,
13,
13,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
19557,
4097,
1053,
6464,
29918,
12403,
13,
3166,
9557,
29889,
1124,
1053,
9056,
29946,
29900,
29946,
... |
Image2CAD/Core/Math/Constants.py | Elstargo00/image2cad-macos | 21 | 1606413 | <reponame>Elstargo00/image2cad-macos
# -*- coding: utf-8 -*-
"""
@author: <NAME>
Copyright (C) 2016, <NAME>.
Licensed under the Apache License 2.0. See LICENSE file in the project root for full license information.
"""
class Constants:
PI = 3.14159265358979
PRECISION = 0.000001
PIXEL_PRECISION = 1
| [
1,
529,
276,
1112,
420,
29958,
6489,
303,
7921,
29900,
29900,
29914,
3027,
29906,
29883,
328,
29899,
8628,
359,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
29992,
8921,
29901,
... |
src/cscli/views/__init__.py | ryohare/python-cscli | 0 | 95844 | <filename>src/cscli/views/__init__.py
from .hosts import HostsView
__all__ = [
"HostsView"
]
| [
1,
529,
9507,
29958,
4351,
29914,
29883,
1557,
492,
29914,
7406,
29914,
1649,
2344,
26914,
2272,
13,
3166,
869,
23525,
1053,
16956,
29879,
1043,
13,
13,
1649,
497,
1649,
353,
518,
13,
1678,
376,
8514,
29879,
1043,
29908,
13,
29962,
13,
... |
containerchaos/main.py | containerchaos/containerchaos | 0 | 105797 | <filename>containerchaos/main.py
import subprocess
import time
import measure_response_time
import utils
URL = "http://localhost/"
def _run(cmd: str):
print("Running cmd: {}".format(cmd))
print(subprocess.run(cmd, shell=True, capture_output=True, cwd="../docker-nginx-flask-redis-postgres/"))
def _sleep(t: in... | [
1,
529,
9507,
29958,
7611,
5815,
359,
29914,
3396,
29889,
2272,
13,
5215,
1014,
5014,
13,
5215,
931,
13,
5215,
5645,
29918,
5327,
29918,
2230,
13,
5215,
3667,
29879,
13,
13,
4219,
353,
376,
1124,
597,
7640,
12975,
13,
13,
1753,
903,
... |
ooobuild/cssdyn/drawing/framework/__init__.py | Amourspirit/ooo_uno_tmpl | 0 | 85289 | <filename>ooobuild/cssdyn/drawing/framework/__init__.py
# coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http: // www.apache.... | [
1,
529,
9507,
29958,
3634,
711,
29884,
789,
29914,
4268,
29881,
948,
29914,
4012,
292,
29914,
4468,
29914,
1649,
2344,
26914,
2272,
13,
29937,
14137,
29901,
23616,
29899,
29947,
13,
29937,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,... |
nldrp/feature_extraction/pipeline/utterance_feature_loader.py | etzinis/nldrp | 6 | 56337 | <gh_stars>1-10
"""!
\brief Utterance level feature loader pipeline for loading the
extracted features in appropriate format for utterance calssification
from scikit models and kfold--leave one out pipeline.
@author <NAME> {<EMAIL>}
@copyright National Technical University of Athens
"""
import argparse
import numpy as... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
15945,
29908,
29991,
13,
29905,
1182,
2575,
14950,
357,
749,
3233,
4682,
23466,
16439,
363,
8363,
278,
13,
21111,
287,
5680,
297,
8210,
3402,
363,
14401,
749,
1208,
... |
gaphor/RAAML/stpa/connectors.py | Texopolis/gaphor | 867 | 15054 | <filename>gaphor/RAAML/stpa/connectors.py<gh_stars>100-1000
from gaphor.diagram.connectors import Connector
from gaphor.diagram.presentation import Classified
from gaphor.RAAML.raaml import RelevantTo
from gaphor.RAAML.stpa import RelevantToItem
from gaphor.SysML.requirements.connectors import DirectedRelationshipPrope... | [
1,
529,
9507,
29958,
29887,
481,
2015,
29914,
4717,
23956,
29914,
303,
3274,
29914,
6915,
943,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29899,
29896,
29900,
29900,
29900,
13,
3166,
17261,
2015,
29889,
6051,
1... |
213. House Robber II.py | minyoungan/coding-interview | 1 | 96837 | <filename>213. House Robber II.py
class Solution:
def rob(self, nums: List[int]) -> int:
def recur(arr):
memo = {}
def dfs(i):
if i in memo:
return memo[i]
if i >= len(arr):
... | [
1,
529,
9507,
29958,
29906,
29896,
29941,
29889,
5619,
6417,
495,
1944,
29889,
2272,
13,
1990,
24380,
29901,
13,
1678,
822,
10832,
29898,
1311,
29892,
954,
29879,
29901,
2391,
29961,
524,
2314,
1599,
938,
29901,
13,
308,
13,
308,
13,
47... |
project_euler_20.py | andrazm123/Project-Euler | 0 | 127525 | def fakulteta(n):
if n == 0:
return 1
else:
return n * fakulteta(n - 1)
def vsota_stevk_fakultete(n):
seznam = [int(d) for d in str(fakulteta(n))]
vsota = 0
for i in range(0, len(seznam)):
vsota = vsota + seznam[i]
return(vsota)
print(vsota_stevk_fakultete(100)) | [
1,
822,
285,
26189,
1187,
29898,
29876,
1125,
13,
1678,
565,
302,
1275,
29871,
29900,
29901,
13,
4706,
736,
29871,
29896,
13,
1678,
1683,
29901,
13,
4706,
736,
302,
334,
285,
26189,
1187,
29898,
29876,
448,
29871,
29896,
29897,
13,
13,
... |
baselines/deepq/assembly/data/plot_result.py | DengYuelin/baselines-assembly | 1 | 28392 | # -*- coding: utf-8 -*-
"""
# @Time : 24/10/18 2:40 PM
# @Author : <NAME>
# @FileName: plot_result.py
# @Software: PyCharm
# @Github : https://github.com/hzm2016
"""
import collections
import matplotlib.pyplot as plt
import numpy as np
import pickle
import copy as cp
from baselines.deepq.assembly.src.value_funct... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
29937,
732,
2481,
1678,
584,
29871,
29906,
29946,
29914,
29896,
29900,
29914,
29896,
29947,
29871,
29906,
29901,
29946,
29900,
11278,
13,
... |
samcnet/simple.py | binarybana/samcnet | 12 | 98816 | <gh_stars>10-100
import numpy as np
import scipy.stats as st
class Simple():
def __init__(self, truemu=2.0, sigma=1.0, N=20, mu0=0.0, tau=5.0):
self.x = 0.0
self.old_x = 0.0
self.truemu = truemu
self.sigma = sigma
self.N = N
self.mu0 = mu0
self.tau = tau
... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
12655,
408,
7442,
13,
5215,
4560,
2272,
29889,
16202,
408,
380,
13,
13,
1990,
12545,
7295,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
534,
2... |
management/forms.py | packmas13/registration | 1 | 166191 | <reponame>packmas13/registration
from django import forms
from django.utils.translation import gettext_lazy as _
class SendSupportEmailForm(forms.Form):
SUBJECT_CHOICES = [
"",
_("Participant management"),
_("Feedback / Suggestion"),
_("Bug report"),
_("Other"),
]
... | [
1,
529,
276,
1112,
420,
29958,
4058,
8247,
29896,
29941,
29914,
1727,
8306,
13,
3166,
9557,
1053,
7190,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
679,
726,
29918,
433,
1537,
408,
903,
13,
13,
13,
1990,
15076,
14039,
9823,
... |
exec.py | developerHaneum/listBug | 2 | 24096 | <filename>exec.py
from clint.textui import *
def Write():
i = 0
while True:
i += 1
text = input(colored.cyan("%d: "%i))
if text == "q":
sys.exit(0)
def Print():
print(colored.cyan("-- Bug list --"))
print(colored.cyan("-- ") + colored.red("<q:quit>") + colored.cyan(... | [
1,
529,
9507,
29958,
4258,
29889,
2272,
13,
3166,
1067,
524,
29889,
726,
1481,
1053,
334,
13,
13,
1753,
14350,
7295,
13,
1678,
474,
353,
29871,
29900,
13,
1678,
1550,
5852,
29901,
13,
4706,
474,
4619,
29871,
29896,
13,
4706,
1426,
353... |
buildutil/main.py | TediCreations/buildutils | 0 | 4573 | #!/usr/bin/env python3
import os
import argparse
import subprocess
if __name__ == '__main__':
from version import __version__
from configParser import ConfigParser
else:
from .version import __version__
from .configParser import ConfigParser
def command(cmd):
"""Run a shell command"""
subprocess.call(cmd, sh... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
2897,
13,
5215,
1852,
5510,
13,
5215,
1014,
5014,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
13,
12,
3166,
1873,
1053,
4770,
3259,
1649,
13,
... |
tests/unit/test_categories.py | aeskincbr/kesher-backend | 1 | 177437 | <reponame>aeskincbr/kesher-backend
import json
from pytest_mock import MockerFixture
from service import report_category_handler
def test_get_report_categories_list(mocker: MockerFixture):
response = report_category_handler.get_report_categories_list(mocker.MagicMock(), mocker.MagicMock())
body = json.loads(r... | [
1,
529,
276,
1112,
420,
29958,
29874,
8488,
3742,
1182,
29914,
10794,
2276,
29899,
27852,
13,
5215,
4390,
13,
3166,
11451,
1688,
29918,
17640,
1053,
341,
8658,
18800,
15546,
13,
3166,
2669,
1053,
3461,
29918,
7320,
29918,
13789,
13,
13,
... |
tests/testConverters.py | ttm/musicLegacy | 2 | 90994 | <filename>tests/testConverters.py
import musicLegacy as m
import importlib
#from IPython.lib.deepreload import reload as dreload
importlib.reload(m.converters)
importlib.reload(m)
#dreload(m,exclude="pytz")
co=m.BasicConverter()
| [
1,
529,
9507,
29958,
21150,
29914,
1688,
1168,
369,
2153,
29889,
2272,
13,
5215,
4696,
22988,
4135,
408,
286,
13,
5215,
29871,
1053,
1982,
13,
29937,
3166,
5641,
1656,
29889,
1982,
29889,
24535,
28120,
1053,
19763,
408,
14724,
1359,
13,
... |
radssh/shell.py | Eli-Tarrago/radssh | 39 | 57028 | #
# Copyright (c) 2014, 2016, 2018, 2020 LexisNexis Risk Data Management Inc.
#
# This file is part of the RadSSH software package.
#
# RadSSH is free software, released under the Revised BSD License.
# You are permitted to use, modify, and redsitribute this software
# according to the Revised BSD License, a copy of wh... | [
1,
396,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29946,
29892,
29871,
29906,
29900,
29896,
29953,
29892,
29871,
29906,
29900,
29896,
29947,
29892,
29871,
29906,
29900,
29906,
29900,
15045,
275,
29940,
735,
275,
3... |
toontown/hood/GenericAnimatedBuilding.py | TheFamiliarScoot/open-toontown | 99 | 196320 | <reponame>TheFamiliarScoot/open-toontown<gh_stars>10-100
from toontown.hood import GenericAnimatedProp
class GenericAnimatedBuilding(GenericAnimatedProp.GenericAnimatedProp):
def __init__(self, node):
GenericAnimatedProp.GenericAnimatedProp.__init__(self, node)
def enter(self):
if base.config... | [
1,
529,
276,
1112,
420,
29958,
1576,
22555,
4447,
29903,
1111,
327,
29914,
3150,
29899,
517,
609,
776,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
3166,
304,
609,
776,
29889,
6614,
1053,
3251,
293,... |
Plots/Bar/NCL_bar_2.py | learn2free/GeoCAT-examples | 1 | 22387 | """
NCL_bar_2.py
===============
This script illustrates the following concepts:
- Drawing bars instead of curves in an XY plot
- Changing the aspect ratio of a bar plot
- Drawing filled bars up or down based on a Y reference value
- Setting the minimum/maximum value of the Y axis in a bar plot
- Using n... | [
1,
9995,
13,
29940,
6154,
29918,
1646,
29918,
29906,
29889,
2272,
13,
4936,
2751,
25512,
13,
4013,
2471,
8632,
1078,
278,
1494,
22001,
29901,
13,
259,
448,
18492,
292,
22306,
2012,
310,
19684,
297,
385,
1060,
29979,
6492,
13,
259,
448,
... |
scheduler/views.py | saketbairoliya2/salescheduler | 0 | 46239 | from django.contrib.auth import login, authenticate
from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseBadRequest
from django.contrib.auth.decorators import login_required
from django.views.decorato... | [
1,
515,
9557,
29889,
21570,
29889,
5150,
1053,
6464,
29892,
15585,
403,
13,
3166,
9557,
29889,
21570,
29889,
5150,
29889,
9514,
1053,
4911,
9832,
362,
2500,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
29892,
6684,
13,
3166,
955... |
src/__init__.py | smkell/pyfbl | 0 | 51303 | from flags import Flags
class PositionElgibility(Flags):
""" Bitwise enum for marking a player's egibility.abs
"""
catcher = ()
first_base = ()
second_base = ()
third_base = ()
short_stop = ()
outfield = ()
left_field = ()
center_field = ()
right_field = ()
designated_h... | [
1,
515,
13449,
1053,
2379,
810,
13,
13,
1990,
20627,
6489,
29887,
4127,
29898,
15675,
1125,
13,
1678,
9995,
18531,
3538,
14115,
363,
2791,
292,
263,
4847,
29915,
29879,
8087,
4127,
29889,
6897,
13,
1678,
9995,
13,
13,
1678,
4380,
261,
... |
api/files/api/app/google_billing.py | trackit/trackit-legacy | 2 | 116840 | import json
from app import app
from app.msol_util import checksum, day_allocations
from app.gcloud.buckets import get_billing_files, download_billing_file
from models import db, User, GoogleCloudIdentity
from datetime import datetime, time
from time import strptime, mktime
import oauth2client
import httplib2
import ms... | [
1,
1053,
4390,
13,
3166,
623,
1053,
623,
13,
3166,
623,
29889,
1516,
324,
29918,
4422,
1053,
1423,
2083,
29892,
2462,
29918,
15956,
800,
13,
3166,
623,
29889,
29887,
9274,
29889,
2423,
9737,
1053,
679,
29918,
29890,
8873,
29918,
5325,
2... |
renderer.py | shrionit/MyGameEngine | 0 | 96328 | import cv2
from glfw.GLFW import *
from OpenGL.GL import *
from PIL import Image
from model.loader import *
from model.model import *
from shader import *
from tool.gui import *
from tool.mmath import *
from tool.color import *
shaderProp = {
'renderprop': DProp({
'isvisible': True,
'img': 0,
... | [
1,
1053,
13850,
29906,
13,
3166,
3144,
25051,
29889,
7239,
29943,
29956,
1053,
334,
13,
3166,
29508,
29889,
7239,
1053,
334,
13,
3166,
349,
6227,
1053,
7084,
13,
13,
3166,
1904,
29889,
12657,
1053,
334,
13,
3166,
1904,
29889,
4299,
1053... |
devilry/project/common/devilry_test_runner.py | devilry/devilry-django | 29 | 160005 | <reponame>devilry/devilry-django
import warnings
from django.test.runner import DiscoverRunner
#from django.utils.deprecation import RemovedInDjango20Warning
class DevilryTestRunner(DiscoverRunner):
def setup_test_environment(self, **kwargs):
# warnings.filterwarnings('ignore', category=RemovedInDjango)
... | [
1,
529,
276,
1112,
420,
29958,
3359,
309,
719,
29914,
3359,
309,
719,
29899,
14095,
13,
5215,
18116,
13,
13,
3166,
9557,
29889,
1688,
29889,
27492,
1053,
8565,
957,
16802,
13,
29937,
3166,
9557,
29889,
13239,
29889,
311,
1457,
9252,
105... |
agent/python/lib/agentdb.py | herry13/nuri | 0 | 111420 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2014, Herry <<EMAIL>>
#
# This file is part of Nuri
#
# Nuri is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (a... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
29937,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29946,
29892,
2439,
719,
3532,
26862,
6227,
67... |
illud/ansi/escape_codes/control.py | AustinScola/illud | 1 | 117352 | """ANSI escape code prefixes for control escape codes."""
ESCAPE = '\x1b'
CONTROL_SEQUENCE_INTRODUCER = ESCAPE + '['
| [
1,
9995,
2190,
5425,
10169,
775,
10944,
267,
363,
2761,
10169,
11561,
1213,
15945,
13,
2890,
29907,
3301,
29923,
353,
11297,
29916,
29896,
29890,
29915,
13,
22412,
1672,
29931,
29918,
1660,
13356,
1430,
4741,
29918,
10192,
1672,
14849,
2990... |
agc/agc007/agc007a.py | c-yan/atcoder | 1 | 19495 | H, W = map(int, input().split())
A = [input() for _ in range(H)]
if H + W - 1 == sum(a.count('#') for a in A):
print('Possible')
else:
print('Impossible')
| [
1,
379,
29892,
399,
353,
2910,
29898,
524,
29892,
1881,
2141,
5451,
3101,
13,
29909,
353,
518,
2080,
580,
363,
903,
297,
3464,
29898,
29950,
4638,
13,
13,
361,
379,
718,
399,
448,
29871,
29896,
1275,
2533,
29898,
29874,
29889,
2798,
1... |
libs/clustermatch/settings.py | miltondp/clustermatch-gene-expr | 0 | 1613851 | """
General settings. This file is intended to be modified by the user. Each entry
also provides an alternative way to specify its value using an environment
variable.
"""
# Instead of changing this file, you can also use the environment variable name
# specified for each entry (environment variables supersede these s... | [
1,
9995,
13,
15263,
6055,
29889,
910,
934,
338,
9146,
304,
367,
9120,
491,
278,
1404,
29889,
7806,
6251,
13,
15189,
8128,
385,
8671,
982,
304,
6084,
967,
995,
773,
385,
5177,
13,
11918,
29889,
13,
15945,
29908,
13,
13,
29937,
8669,
... |
genesis/__main__.py | gjolly/genesis | 1 | 181855 | <reponame>gjolly/genesis<gh_stars>1-10
import genesis.build
if __name__ == '__main__':
genesis.build.main()
| [
1,
529,
276,
1112,
420,
29958,
29887,
29926,
18368,
29914,
1885,
6656,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
5215,
2531,
6656,
29889,
4282,
13,
13,
361,
4770,
978,
1649,
1275,
525,
1649,
3396,
1649,
2396,
... |
bcs-ui/backend/helm/toolkit/deployer.py | jamesgetx/bk-bcs | 0 | 193054 | <gh_stars>0
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
29911,
264,
1760,
338,
22301,
304,
2304,
278,
1722,
2752,
7881,
491,
3907,
29871,
235... |
hw1/deco.py | Tymeade/otus-python | 0 | 35253 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from functools import update_wrapper, wraps
def disable(func):
"""
Disable a decorator by re-assigning the decorator's name
to this function. For example, to turn off memoization:
>>> memo = disable
"""
return func
def decorator(decorator_func... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
2090,
312,
8789,
1053,
2767,
29918,
17699,
29892,
11463,
567,
13,
13,
13,
1753,
11262,
29898... |
mitzasql/db/connection.py | vladbalmos/mitzasql | 69 | 165577 | # Copyright (c) 2021 <NAME> <<EMAIL>>
# Author: <NAME> <<EMAIL>>
# See LICENSE file
import time
from datetime import datetime
import copy
import urwid
import mysql.connector
from mysql.connector import (errorcode, errors)
from ..logger import (LoggerMixin, logger)
class Connection(LoggerMixin):
SIGNAL_EXCEPTION... | [
1,
396,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29906,
29896,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
13361,
29901,
529,
5813,
29958,
3532,
26862,
6227,
6778,
13,
29937,
2823,
365,
2965,
1430,
1660,
934,
13,
13,... |
main.py | iandaamerican/ItsSpresDiscordBot | 0 | 98513 | import os
import requests
import json
import discord
from discord.ext import commands
client = commands.Bot(command_prefix=commands.when_mentioned_or("d/","D/"),help_command=None)
#api key references
my_secret = os.environ['TOKEN']
apiSecret = os.environ['apexApi']
#notify me when bot has come online
@client.event... | [
1,
1053,
2897,
13,
5215,
7274,
13,
5215,
4390,
13,
5215,
2313,
536,
13,
3166,
2313,
536,
29889,
1062,
1053,
8260,
13,
13,
13,
4645,
353,
8260,
29889,
29933,
327,
29898,
6519,
29918,
13506,
29922,
26381,
29889,
8256,
29918,
358,
28487,
... |
migration/lib/metadata_view.py | HumanCellAtlas/migration-service | 0 | 140636 | <gh_stars>0
import json
from .schema_reference import SchemaReference
class MetadataView(dict):
"""
A view representing the data that exists in a metadata file. The contents are stored as a dictionary with a
specific pointer to the metadata schema that was responsible for generating the view of the data ... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
4390,
13,
13,
3166,
869,
11010,
29918,
5679,
1053,
1102,
2603,
7422,
13,
13,
13,
1990,
4737,
7221,
1043,
29898,
8977,
1125,
13,
1678,
9995,
13,
1678,
319,
1776,
15783,
278,
848,... |
13.py | jakerella/advent2020 | 0 | 171386 | import sys
from helpers import read_data_file
print('\n************* Day 13 *************\n')
lines = read_data_file(sys.argv[1])
delay = int(lines[0])
bus_ids = list(map(lambda x:int(x) if x.isdigit() else x, lines[1].split(',')))
print(delay, bus_ids)
def part1():
next_bus = None
wait_time = 0
timesta... | [
1,
1053,
10876,
13,
3166,
1371,
414,
1053,
1303,
29918,
1272,
29918,
1445,
13,
13,
2158,
28909,
29876,
4189,
2328,
29930,
8373,
29871,
29896,
29941,
334,
4189,
2328,
29905,
29876,
1495,
13,
13,
9012,
353,
1303,
29918,
1272,
29918,
1445,
... |
bronzeDataBuilder.py | lucaspettit/GifTheRipper | 0 | 62557 | import giphypop
import requests
from os import path, makedirs
from PIL import Image, ImagePalette
import io
import argparse
import json
import time
from Utils import init_dirs
limit = 100
giphy = giphypop.Giphy(api_key='')
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--src', typ... | [
1,
1053,
4005,
561,
1478,
459,
13,
5215,
7274,
13,
3166,
2897,
1053,
2224,
29892,
2136,
287,
12935,
13,
3166,
349,
6227,
1053,
7084,
29892,
7084,
29925,
26456,
13,
5215,
12013,
13,
5215,
1852,
5510,
13,
5215,
4390,
13,
5215,
931,
13,
... |
Guitar Training Remote/music_theory/mode.py | keremkoseoglu/Python-Library | 3 | 31316 | import random
from music_theory.note import Note
class Mode:
def __init__(self):
self._modes = [
# Major oriented
"Ionian",
"Dorian",
"Phrygian",
"Lydian",
"Mixo",
"Aeolian",
"Locrian",
# Melodic ... | [
1,
1053,
4036,
13,
3166,
4696,
29918,
14138,
29889,
6812,
1053,
3940,
13,
13,
13,
1990,
21864,
29901,
13,
13,
1678,
822,
4770,
2344,
12035,
1311,
1125,
13,
4706,
1583,
3032,
1545,
267,
353,
518,
13,
9651,
396,
11019,
7769,
287,
13,
... |
magma/uniquification.py | leonardt/magma | 167 | 183523 | from dataclasses import dataclass
from enum import Enum, auto
from magma.is_definition import isdefinition
from magma.logging import root_logger
from magma.passes import DefinitionPass
_logger = root_logger()
class MultipleDefinitionException(Exception):
pass
class UniquificationMode(Enum):
WARN = auto()... | [
1,
515,
848,
13203,
1053,
848,
1990,
13,
3166,
14115,
1053,
1174,
398,
29892,
4469,
13,
13,
3166,
2320,
655,
29889,
275,
29918,
16553,
1053,
338,
16553,
13,
3166,
2320,
655,
29889,
21027,
1053,
3876,
29918,
21707,
13,
3166,
2320,
655,
... |
lib/PyAMF-0.7.2/pyamf/tests/remoting/__init__.py | MiCHiLU/google_appengine_sdk | 790 | 141857 | # Copyright (c) The PyAMF Project.
# See LICENSE.txt for details.
"""
Remoting tests.
@since: 0.1.0
"""
| [
1,
396,
14187,
1266,
313,
29883,
29897,
450,
10772,
5194,
29943,
8010,
29889,
13,
29937,
2823,
365,
2965,
1430,
1660,
29889,
3945,
363,
4902,
29889,
13,
13,
15945,
29908,
13,
7301,
11427,
6987,
29889,
13,
13,
29992,
16076,
29901,
29871,
... |
fable/fable_sources/fable/test/tst_show_calls.py | hickerson/bbn | 4 | 112983 | from __future__ import division
def run(args):
assert len(args) == 0
import libtbx.load_env
from cStringIO import StringIO
import os
op = os.path
t_dir = libtbx.env.under_dist(
module_name="fable", path="test/valid", test=op.isdir)
excluded_file_names = set("""\
blockdata_unnamed.f
""".splitlines())
... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
8542,
13,
1753,
1065,
29898,
5085,
1125,
13,
29871,
4974,
7431,
29898,
5085,
29897,
1275,
29871,
29900,
13,
29871,
1053,
619,
3116,
29890,
29916,
29889,
1359,
29918,
6272,
13,
29871,
515,
274,
1231,
... |
pytorch_toolkit/face_recognition/model/common.py | AnastasiaaSenina/openvino_training_extensions | 1 | 2316 | <reponame>AnastasiaaSenina/openvino_training_extensions
"""
Copyright (c) 2018 Intel Corporation
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,
529,
276,
1112,
420,
29958,
2744,
579,
26252,
29874,
29903,
264,
1099,
29914,
3150,
29894,
1789,
29918,
26495,
29918,
24299,
13,
15945,
29908,
13,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29947,
18555,
15025,
13,
10413... |
benchmark/bench_asynckafka.py | askuratovsky/asynckafka | 31 | 24075 | <gh_stars>10-100
import asyncio
from asynckafka import Producer, Consumer
import config
import utils
loop = asyncio.get_event_loop()
async def fill_topic_with_messages():
producer = Producer(
brokers=config.KAFKA_URL,
rdk_producer_config=config.RDK_PRODUCER_CONFIG,
rdk_topic_config=conf... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
408,
948,
3934,
13,
13,
3166,
408,
948,
384,
20817,
1053,
7138,
2265,
29892,
2138,
4680,
13,
13,
5215,
2295,
13,
5215,
3667,
29879,
13,
13,
78... |
core/storage/job/gae_models_test.py | aman-roy/oppia | 2 | 147275 | <filename>core/storage/job/gae_models_test.py
# Copyright 2018 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/... | [
1,
529,
9507,
29958,
3221,
29914,
12925,
29914,
9057,
29914,
3249,
29872,
29918,
9794,
29918,
1688,
29889,
2272,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29896,
29947,
450,
438,
407,
423,
13189,
943,
29889,
2178,
26863,
2538,
9841,
2988... |
tests/potential/EamPotential/Al__born_exp_fs/test____init__.py | eragasa/pypospack | 4 | 12330 | import pytest
from pypospack.potential import EamPotential
symbols = ['Al']
func_pair_name = "bornmayer"
func_density_name = "eam_dens_exp"
func_embedding_name = "fs"
expected_parameter_names_pair_potential = []
expected_parameter_names_density_function = []
expected_parameter_names_embedding_function = []
expected_... | [
1,
1053,
11451,
1688,
13,
3166,
11451,
1066,
4058,
29889,
17765,
2556,
1053,
382,
314,
29925,
327,
2556,
13,
13,
18098,
29879,
353,
6024,
2499,
2033,
13,
9891,
29918,
18784,
29918,
978,
353,
376,
4939,
29885,
2747,
29908,
13,
9891,
2991... |
videoanalyst/evaluation/got_benchmark/datasets/lasot.py | TragedyN/SiamFCpp | 737 | 1616108 | from __future__ import absolute_import, print_function
import glob
import json
import os
import pickle
from typing import Dict
import numpy as np
from loguru import logger
from tqdm import tqdm
_VALID_SUBSETS = ['train', 'test']
class LaSOT(object):
r"""`LaSOT <https://cis.temple.edu/lasot/>`_ Datasets.
P... | [
1,
515,
4770,
29888,
9130,
1649,
1053,
8380,
29918,
5215,
29892,
1596,
29918,
2220,
13,
13,
5215,
13149,
13,
5215,
4390,
13,
5215,
2897,
13,
5215,
5839,
280,
13,
3166,
19229,
1053,
360,
919,
13,
13,
5215,
12655,
408,
7442,
13,
3166,
... |
subscriptions/urls.py | praekeltfoundation/seed-stage-based-messaging | 1 | 144523 | <reponame>praekeltfoundation/seed-stage-based-messaging
from django.conf.urls import include, url
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r"subscriptions", views.SubscriptionViewSet)
router.register(r"failed-tasks", views.FailedTaskViewSet)
router.regist... | [
1,
529,
276,
1112,
420,
29958,
29886,
336,
1416,
2152,
11940,
362,
29914,
26776,
29899,
19190,
29899,
6707,
29899,
12062,
6751,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
3160,
29892,
3142,
13,
3166,
1791,
29918,
4468,
1053,
16053,
... |
cdk/consoleme_ecs_service/nested_stacks/vpc_stack.py | avishayil/consoleme-ecs-service | 2 | 23622 | """
VPC stack for running ConsoleMe on ECS
"""
import urllib.request
from aws_cdk import (
aws_ec2 as ec2,
core as cdk
)
class VPCStack(cdk.NestedStack):
"""
VPC stack for running ConsoleMe on ECS
"""
def __init__(self, scope: cdk.Construct, id: str, **kwargs) -> None:
super().__ini... | [
1,
9995,
13,
29963,
9026,
5096,
363,
2734,
9405,
6816,
373,
382,
9295,
13,
15945,
29908,
13,
13,
5215,
3142,
1982,
29889,
3827,
13,
13,
3166,
25879,
29918,
2252,
29895,
1053,
313,
13,
1678,
25879,
29918,
687,
29906,
408,
21226,
29906,
... |
model_vc.py | casperwang/autovc | 2 | 166832 | import torch
import pdb
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import pdb
class LinearNorm(torch.nn.Module):
def __init__(self, in_dim, out_dim, bias=True, w_init_gain='linear'):
super(LinearNorm, self).__init__()
self.linear_layer = torch.nn.Linear(in_dim, out_dim... | [
1,
1053,
4842,
305,
13,
5215,
282,
2585,
13,
5215,
4842,
305,
29889,
15755,
408,
302,
29876,
13,
5215,
4842,
305,
29889,
15755,
29889,
2220,
284,
408,
383,
13,
5215,
12655,
408,
7442,
13,
5215,
282,
2585,
13,
13,
1990,
22985,
29940,
... |
q_learning/backup_output_net1_discount_0_batch_400_random_mines/qnetwork.py | jakejhansen/minesweeper_solver | 32 | 161044 | <gh_stars>10-100
"""
This module contains a function to update another neural network by copying
all trainable variables and a class for a deep Q network.
"""
import os
import numpy as np
import tensorflow as tf
# Based on
# https://github.com/tomrunia/DeepReinforcementLearning-Atari
def update_target_ne... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
15945,
19451,
13,
4013,
3883,
3743,
263,
740,
304,
2767,
1790,
19677,
3564,
491,
17596,
30004,
13,
497,
7945,
519,
3651,
322,
263,
770,
363,
263,
6483... |
obs_movieconverter.py | zackees/productivity_cmds | 0 | 90120 | <filename>obs_movieconverter.py<gh_stars>0
""" Converts obs movies to a format usable by imovie """
import os
import sys
from shutil import copyfile
files = sorted([f for f in os.listdir('.') if '.mp4' in f and '2020' in f])
out_files = ['new_' + f + '.mov' for f in files]
rtn_codes = []
for count, f in enumerate(fi... | [
1,
529,
9507,
29958,
26290,
29918,
27362,
535,
13549,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
15945,
29908,
1281,
369,
1372,
20881,
2351,
583,
304,
263,
3402,
502,
519,
491,
527,
5672,
9995,
13,
13,
5215,
2897,
13... |
english/data_processing/lessons/code/graphplot.py | hrutkabence/tutorials | 0 | 1606876 | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Draw time series from csv files or lists
Data series come from the columns of the csv files multi columns can be used from
the same file. One column for x values (it can be numerical or date/time data) and
more columns for y1, y2, .., yn. Alternativel... | [
1,
396,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
1678,
18492,
931,
3652,
515,
11799,
2066,
470,
8857,
13,
13,
1678,
... |
65-Spam-filter/main.py | PawelZabinski/ocr-code-challenges-files | 0 | 30962 | # Spam filter
# Take a list of dishes from a menu and add “spam” to them. See https://en.wikipedia.org/wiki/Spam_(Monty_Python).
def main():
try:
dishCount = int(input('Enter number of dishes in menu > '))
dishes = [input(f'Enter Dish No.{i + 1} > ') for i in range(dishCount)]
dishes = [f'{dish} spam' ... | [
1,
396,
1706,
314,
4175,
13,
13,
29937,
11190,
263,
1051,
310,
270,
17006,
515,
263,
6143,
322,
788,
1346,
1028,
314,
30024,
304,
963,
29889,
2823,
2045,
597,
264,
29889,
6011,
29889,
990,
29914,
4594,
29914,
5592,
314,
23538,
24665,
... |
arpym/tools/forward_selection.py | dpopadic/arpmRes | 6 | 178733 | <filename>arpym/tools/forward_selection.py<gh_stars>1-10
# -*- coding: utf-8 -*-
import numpy as np
def forward_selection(g, n_, k_=None):
"""For details, see here.
Parameters
----------
g : function
n_ : int
k_ : int, optional
Returns
-------
s_star_fwd : list, ... | [
1,
529,
9507,
29958,
6834,
962,
29914,
8504,
29914,
11333,
29918,
21731,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
... |
asset_manager/assets/Asset.py | miquel-vv/asset_manager | 0 | 1605739 | from .errors import OutOfRangeError
from .PriceCleaner import PriceCleaner
from ..mappers.PriceMapper import PriceMapper
from ..mappers.OrderMapper import OrderMapper
from ..connectors import KrakenConnector
import pandas as pd
import datetime
class Asset:
def __init__(self, asset_id):
self.asset_id = asse... | [
1,
515,
869,
12523,
1053,
4451,
2776,
6069,
2392,
13,
3166,
869,
13026,
29907,
14044,
261,
1053,
20743,
29907,
14044,
261,
13,
3166,
6317,
655,
22437,
29889,
13026,
19968,
1053,
20743,
19968,
13,
3166,
6317,
655,
22437,
29889,
7514,
19968... |
ukbot/rules/image.py | danmichaelo/UKBot | 2 | 175098 | <gh_stars>1-10
# encoding=utf-8
# vim: fenc=utf-8 et sw=4 ts=4 sts=4 ai
import re
from mwclient.errors import InvalidPageTitle
import urllib
import logging
from ..common import _
from ..contributions import UserContribution
from .rule import Rule
from .decorators import family
logger = logging.getLogger(__name__)
cl... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
8025,
29922,
9420,
29899,
29947,
13,
29937,
325,
326,
29901,
285,
3977,
29922,
9420,
29899,
29947,
634,
2381,
29922,
29946,
18696,
29922,
29946,
380,
29879,
2992... |
run_exp.py | louisfaury/gnn-es | 3 | 172141 |
from distributions.distribution_factory import create_distribution
from objectives.objective_factory import create_objective
from samplers.sampler_factory import create_sampler
from algorithms.algo_factory import create_algorithm
import os
import argparse
import pprint as pp
import json
import tensorflow as tf
import ... | [
1,
29871,
13,
3166,
18822,
29889,
27691,
29918,
14399,
1053,
1653,
29918,
27691,
13,
3166,
1203,
3145,
29889,
3318,
573,
29918,
14399,
1053,
1653,
29918,
3318,
573,
13,
3166,
3514,
572,
414,
29889,
13445,
20069,
29918,
14399,
1053,
1653,
... |
4 kyu/Memoized Log Cutting.py | mwk0408/codewars_solutions | 6 | 113055 | <reponame>mwk0408/codewars_solutions<gh_stars>1-10
def cut_log(p, n):
maximum=[0]
for j in range(1, n+1):
comp=-float("inf")
for i in range(1, j+1): # Two nested loops = Θ(n^2)
comp=max(p[i-1+1]+maximum[j-i], comp)
maximum.append(comp)
return maximum[-1] | [
1,
529,
276,
1112,
420,
29958,
29885,
29893,
29895,
29900,
29946,
29900,
29947,
29914,
401,
29893,
1503,
29918,
2929,
17925,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
1753,
5700,
29918,
1188,
29898,
29886,
29892,
... |
src/npi/visualization/training.py | NancyFulda/towards-neural-programming-interfaces | 0 | 137110 | from matplotlib import pyplot as plt
def make_training_plots(
title: str, save_file_path: str, epoch_data, test_data, test_data_generated=None
):
"""
Make plots for training progress of NPI network
Arguments:
epoch_losses -- List of tuples: (epoch, avg_epoch_loss)
test_losses -- List of tuple... | [
1,
515,
22889,
1053,
11451,
5317,
408,
14770,
13,
13,
13,
1753,
1207,
29918,
26495,
29918,
26762,
29898,
13,
1678,
3611,
29901,
851,
29892,
4078,
29918,
1445,
29918,
2084,
29901,
851,
29892,
21502,
305,
29918,
1272,
29892,
1243,
29918,
12... |
bundle/completor.vim/pythonx/completers/cpp.py | wonwooddo/vim_setup | 0 | 102644 | # -*- coding: utf-8 -*-
import re
import os
from completor import Completor
from completor.compat import to_bytes
word_patten = re.compile('\w+$')
trigger = re.compile('(\.|->|#|::)\s*(\w*)$')
def sanitize(menu):
if not menu:
return menu
# type
menu = menu.replace(b'[#', b'').replace(b'#]', b'... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
337,
13,
5215,
2897,
13,
3166,
3315,
272,
1053,
15642,
7345,
13,
3166,
3315,
272,
29889,
12667,
1053,
304,
29918,
13193,
13,
13,
13,
1742,
... |
ui/notice.py | cfpb/regulations-xml-parser | 4 | 190977 | <reponame>cfpb/regulations-xml-parser<gh_stars>1-10
from dateutil import parser as date_parser
from lxml import etree
from inflect import engine
from operator import itemgetter
class Notice:
def __init__(self, filename):
self.filename = filename
self.terms = []
self.modified = False
... | [
1,
529,
276,
1112,
420,
29958,
6854,
24381,
29914,
1727,
8250,
29899,
3134,
29899,
16680,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
2635,
4422,
1053,
13812,
408,
2635,
29918,
16680,
13,
13,
3166,
301,
31... |
tests/test_hopfield_net.py | lantunes/cellpylib | 124 | 162762 | import unittest
import cellpylib as cpl
import numpy as np
import os
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class TestHopfieldNet(unittest.TestCase):
def test_hopfield_net(self):
np.random.seed(0)
# patterns for training
zero = [
0, 1, 1, 1, 0,
1, ... | [
1,
1053,
443,
27958,
13,
5215,
3038,
2272,
1982,
408,
274,
572,
13,
5215,
12655,
408,
7442,
13,
5215,
2897,
13,
13,
4690,
3235,
29918,
9464,
353,
2897,
29889,
2084,
29889,
25721,
29898,
359,
29889,
2084,
29889,
370,
1028,
493,
22168,
... |
NatualLangageProcessing/solution/2_1.py | vavalm/AI-Frameworks | 0 | 77058 | <reponame>vavalm/AI-Frameworks
ir = 0
print("Liste des tokens racinisé de la première ligne : " + train_array[0])
rw = data_train_OHE.getrow(ir)
pd.DataFrame([(v, vocabulary[v], k) for k,v in zip(rw.data,rw.indices)], columns=["indices","token","weight"]) | [
1,
529,
276,
1112,
420,
29958,
29894,
7712,
29885,
29914,
23869,
29899,
4308,
13129,
13,
381,
353,
29871,
29900,
13,
2158,
703,
29931,
2488,
553,
18897,
11021,
262,
11728,
316,
425,
8861,
7330,
584,
376,
718,
7945,
29918,
2378,
29961,
2... |
battlesim.py | Shashwat986/BattleSim | 0 | 178563 | <filename>battlesim.py
import random
from collections import defaultdict
matching = defaultdict(int,{
('P','K'):3,
('K','G'):3,
('G','L'):3,
('L','P'):3,
('K','P'):-3,
('G','K'):-3,
('L','G'):-3,
('P','L'):-3
})
def dieroll(n):
return sum([random.randrange(6) + 1 for i in range(n)])
class P... | [
1,
529,
9507,
29958,
29890,
1131,
793,
326,
29889,
2272,
13,
5215,
4036,
30004,
13,
3166,
16250,
1053,
2322,
8977,
30004,
13,
30004,
13,
4352,
292,
353,
2322,
8977,
29898,
524,
29892,
14626,
13,
12,
877,
29925,
3788,
29968,
29374,
29941... |
devopsipy/decorators.py | kharnam/devopsipy | 0 | 3109 | """
Module to contain Pywork decorators
"""
__author__ = '<NAME>'
import re
import time
import itertools
import logging
log = logging.getLogger(__name__)
| [
1,
9995,
13,
7355,
304,
1712,
10772,
1287,
10200,
4097,
13,
15945,
29908,
13,
13,
1649,
8921,
1649,
353,
12801,
5813,
16299,
13,
13,
5215,
337,
13,
5215,
931,
13,
5215,
4256,
8504,
13,
13,
5215,
12183,
13,
1188,
353,
12183,
29889,
6... |
setup.py | microsoft/ATAC | 9 | 159161 | from distutils.core import setup
setup(
name='ATAC',
version='0.1.0',
author='<NAME>',
author_email='<EMAIL>',
package_dir={'':'src'},
packages=['atac'],
url='https://github.com/chinganc/atac',
license='MIT LICENSE',
description='ATAC code',
long_description=open('README.md').re... | [
1,
515,
1320,
13239,
29889,
3221,
1053,
6230,
13,
13,
14669,
29898,
13,
1678,
1024,
2433,
1299,
2477,
742,
13,
1678,
1873,
2433,
29900,
29889,
29896,
29889,
29900,
742,
13,
1678,
4148,
2433,
29966,
5813,
29958,
742,
13,
1678,
4148,
2991... |
hwtLib/tests/types/union_test.py | optical-o/hwtLib | 24 | 79620 | <filename>hwtLib/tests/types/union_test.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from hwt.hdl.types.bits import Bits
from hwt.hdl.types.struct import HStruct
from hwt.hdl.types.union import HUnion
from hwtLib.types.ctypes import uint8_t, uint16_t, int8_t, uint32_t
from pyMathBitPrecise.bit_ut... | [
1,
529,
9507,
29958,
29882,
14554,
14868,
29914,
21150,
29914,
8768,
29914,
13094,
29918,
1688,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
... |
python_scripts/write_BCR_html.py | cregan727/ubiquitous-rotary-phone | 0 | 67729 | import altair as alt
import pandas as pd
import numpy as np
import sys
TRUSTTSV = sys.argv[1]
CELLNUM = sys.argv[2]
BCRTEMP = """
<div style="width: 100%; height: 700px; position: relative; clear:both;overflow: hidden; white-space:nowrap; padding-top: 10px;clear:both;">
<div style="width: 110%, position: absolute; ... | [
1,
1053,
21352,
381,
408,
5272,
13,
5215,
11701,
408,
10518,
13,
5215,
12655,
408,
7442,
13,
5215,
10876,
13,
13,
5659,
17321,
29911,
7597,
353,
10876,
29889,
19218,
29961,
29896,
29962,
13,
4741,
2208,
13967,
353,
10876,
29889,
19218,
... |
src/tasks/__init__.py | luke-james/setup-config | 0 | 87252 | <reponame>luke-james/setup-config<gh_stars>0
from . import setup_tasks | [
1,
529,
276,
1112,
420,
29958,
6092,
446,
29899,
29926,
1280,
29914,
14669,
29899,
2917,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
869,
1053,
6230,
29918,
20673,
2
] |
cogs/utils/classes/LohiEmbed.py | Sendouc/lohi-python | 0 | 45735 | # https://discordapp.com/developers/docs/resources/channel#embed-limits
import discord
from ..lists import (
weapons_english_internal,
abilities_short_to_emoji,
top_500_emoji,
weapons_to_emoji,
)
# Cheers to Lean
class LohiEmbed:
def __init__(
self,
title="\uFEFF",
descrip... | [
1,
396,
2045,
597,
2218,
16090,
932,
29889,
510,
29914,
17426,
29914,
2640,
29914,
13237,
29914,
12719,
29937,
17987,
29899,
12514,
13,
13,
5215,
2313,
536,
13,
13,
3166,
6317,
21513,
1053,
313,
13,
1678,
25340,
29918,
996,
1674,
29918,
... |
main_pro_window.py | Great-special/Trade_Copier | 0 | 154058 | <filename>main_pro_window.py
import tkinter as tk
from Slave_copier import *
from tkinter import ttk
# Creating the Copier User InterFace program
_window = tk.Tk()
_window.title('Trade Copier beta - Client')
_window.minsize(450,600)
_window.maxsize(450,600)
upper_frame = tk.Frame(_window, height=200, bg='... | [
1,
529,
9507,
29958,
3396,
29918,
771,
29918,
7165,
29889,
2272,
13,
5215,
18883,
1639,
408,
18883,
30004,
13,
3166,
317,
18398,
29918,
9708,
631,
1053,
334,
30004,
13,
3166,
18883,
1639,
1053,
260,
11178,
30004,
13,
30004,
13,
29937,
2... |
2019_Challenges/Week 03-21/JimPriorWordSearch.py | cohpy/DoJo-Challenges | 2 | 75472 | """
<NAME>'s solution to the DoJo problem of March 21,2019.
"""
from itertools import chain
def is_word_in_array(word, array):
left_to_right_strings = (''.join(row) for row in array)
top_to_bottom_strings = (''.join(column) for column in zip(*array))
all_strings = chain(left_to_right_strings, top_to_botto... | [
1,
9995,
13,
29966,
5813,
16299,
29879,
1650,
304,
278,
1938,
10844,
1108,
310,
4779,
29871,
29906,
29896,
29892,
29906,
29900,
29896,
29929,
29889,
13,
15945,
29908,
13,
13,
3166,
4256,
8504,
1053,
9704,
13,
13,
1753,
338,
29918,
1742,
... |
mumblr/templatetags/mumblr_tags.py | hmarr/django-mumblr | 35 | 28461 | <reponame>hmarr/django-mumblr
from django.template import Library, Node, TemplateSyntaxError
import re
from mumblr.entrytypes import EntryType
register = Library()
class LatestEntriesNode(Node):
def __init__(self, num, var_name):
self.num = int(num or 10)
self.var_name = var_name
def rend... | [
1,
529,
276,
1112,
420,
29958,
7184,
2749,
29914,
14095,
29899,
29885,
398,
2204,
29878,
13,
3166,
9557,
29889,
6886,
1053,
9538,
29892,
9071,
29892,
25663,
16676,
2392,
13,
13,
5215,
337,
13,
13,
3166,
286,
398,
2204,
29878,
29889,
826... |
source/lib/waflibv2.py | subanishaik27/aws-waf | 678 | 70171 | ######################################################################################################################
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# ... | [
1,
835,
13383,
13383,
13383,
13383,
13383,
13383,
13383,
2277,
29937,
13,
29937,
29871,
14187,
1266,
29871,
29906,
29900,
29906,
29900,
16631,
29889,
510,
29892,
9266,
29889,
470,
967,
23736,
1078,
29889,
2178,
26863,
2538,
9841,
29889,
462,
... |
learner2/pupil/migrations/0012_sessiondata.py | Arunkumar99/learners | 3 | 28049 | <reponame>Arunkumar99/learners
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pupil', '0011_questions_set_id'),
]
operations = [
migrations.CreateModel(
name='... | [
1,
529,
276,
1112,
420,
29958,
1433,
2960,
24540,
29929,
29929,
29914,
1945,
8397,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
3166,
4770,
29888,
9130,
1649,
1053,
29104,
29918,
20889,
1338,
13,
... |
testproject/users/serializers.py | joshua-hashimoto/django-channels-jwt-auth-middleware | 9 | 161776 | <filename>testproject/users/serializers.py
from django.contrib.auth import get_user_model
from dj_rest_auth.serializers import UserDetailsSerializer
from rest_framework.serializers import ModelSerializer, SerializerMethodField
User = get_user_model()
class UserSerializer(ModelSerializer):
profile_image = Serial... | [
1,
529,
9507,
29958,
1688,
4836,
29914,
7193,
29914,
15550,
19427,
29889,
2272,
13,
3166,
9557,
29889,
21570,
29889,
5150,
1053,
679,
29918,
1792,
29918,
4299,
13,
3166,
270,
29926,
29918,
5060,
29918,
5150,
29889,
15550,
19427,
1053,
4911,... |
custom_components/hacs/operational/setup_actions/sensor.py | sob/hass-conf | 27 | 1610939 | <gh_stars>10-100
""""Starting setup task: Sensor"."""
from homeassistant.helpers import discovery
from custom_components.hacs.const import DOMAIN
from custom_components.hacs.share import get_hacs
from ...enums import HacsSetupTask
async def async_add_sensor():
"""Async wrapper for add sensor"""
hacs = get_h... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
15945,
15945,
4763,
292,
6230,
3414,
29901,
317,
6073,
29908,
1213,
15945,
13,
3166,
3271,
465,
22137,
29889,
3952,
6774,
1053,
20699,
13,
13,
3166,
288... |
firebase-gist.py | darwin/firebase-gist | 1 | 1575 | from firebase import firebase
import os
import datetime
import json
import logging
from boto.s3.connection import S3Connection
from boto.s3.key import Key
from github3 import login
firebase_url = os.environ['FIREBASE_DB']
firebase_secret = os.environ['FIREBASE_SECRET']
firebase_path = os.environ['FIREBASE_PATH']
fireb... | [
1,
515,
16119,
1053,
16119,
13,
5215,
2897,
13,
5215,
12865,
13,
5215,
4390,
13,
5215,
12183,
13,
3166,
289,
3747,
29889,
29879,
29941,
29889,
9965,
1053,
317,
29941,
5350,
13,
3166,
289,
3747,
29889,
29879,
29941,
29889,
1989,
1053,
76... |
notebooks/main.py | Reasmey/adsi_beer_app | 0 | 189027 | <gh_stars>0
from fastapi import FastAPI
from starlette.responses import JSONResponse
from joblib import load
import pandas as pd
from fastapi.encoders import jsonable_encoder
#from pydantic import BaseModel
from torch.utils.data import DataLoader
from model import format_features, apply_scaler, single_tensor, Classifi... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
5172,
2754,
1053,
23786,
8787,
13,
3166,
5810,
20200,
29889,
26679,
267,
1053,
4663,
5103,
13,
3166,
4982,
1982,
1053,
2254,
13,
5215,
11701,
408,
10518,
13,
3166,
5172,
2754,
298... |
RegonAPI/converters.py | damianwasik98/RegonAPI | 10 | 39684 | <reponame>damianwasik98/RegonAPI
"""
Converters of codes
"""
from string import digits
from .exceptions import RegonConvertionError
from . import validators
REGON9_WEIGHTS = [8, 9, 2, 3, 4, 5, 6, 7]
REGON14_WEIGHTS = [2, 4, 8, 5, 0, 9, 7, 3, 6, 1, 2, 4, 8]
def regon8_to_9(regon8):
"""Convert REGON8 to REG... | [
1,
529,
276,
1112,
420,
29958,
16846,
713,
11102,
638,
29929,
29947,
29914,
4597,
265,
8787,
13,
15945,
29908,
13,
1678,
1281,
369,
2153,
310,
11561,
13,
15945,
29908,
13,
13,
3166,
1347,
1053,
13340,
13,
13,
3166,
869,
11739,
29879,
... |
qrand/caches/cache.py | LaurentAjdnik/qrand | 18 | 16435 | <filename>qrand/caches/cache.py<gh_stars>10-100
## _____ _____
## | __ \| __ \ AUTHOR: <NAME>
## | |__) | |__) | ---------------------------------
## | ___/| _ / DATE: May 18, 2021
## | | | | \ \ ---------------------------------
## |_| |_| \_\ https://github.com/pedrorrivero
##
... | [
1,
529,
9507,
29958,
29939,
9502,
29914,
29883,
14520,
29914,
8173,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
2277,
1678,
903,
7652,
29871,
903,
7652,
13,
2277,
259,
891,
29871,
4770,
... |
saleor/core/__init__.py | X10project/rob_photography | 3 | 164256 | <reponame>X10project/rob_photography
TOKEN_PATTERN = ('(?P<token>[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}'
'-[0-9a-z]{12})')
| [
1,
529,
276,
1112,
420,
29958,
29990,
29896,
29900,
4836,
29914,
13716,
29918,
561,
327,
5275,
13,
13,
4986,
29968,
1430,
29918,
29925,
1299,
4945,
29940,
353,
6702,
10780,
29925,
29966,
6979,
24566,
29900,
29899,
29929,
29874,
29899,
29920... |
Raspberry_Pi_Animated_Gif_Player/code.py | albinger/Adafruit_Learning_System_Guides | 0 | 31062 | # SPDX-FileCopyrightText: 2021 <NAME> for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import usb_cdc
import rotaryio
import board
import digitalio
serial = usb_cdc.data
encoder = rotaryio.IncrementalEncoder(board.ROTA, board.ROTB)
button = digitalio.DigitalInOut(board.SWITCH)
button.switch_to_input(pull=digi... | [
1,
396,
10937,
29928,
29990,
29899,
2283,
11882,
1266,
1626,
29901,
29871,
29906,
29900,
29906,
29896,
529,
5813,
29958,
363,
23255,
29888,
9216,
12157,
2722,
13,
29937,
13,
29937,
10937,
29928,
29990,
29899,
29931,
293,
1947,
29899,
12889,
... |
Modulo 3/Lista11/17.py | BelfortJoao/Programacao-1 | 2 | 173999 | <gh_stars>1-10
# “é múltiplo de 3” ou “não é múltiplo de 3”.
Num1 = int(input("Escreva um Numero: "))
if Num1 % 3 > 0:
print("não é múltiplo de 3")
else:
print("é múltiplo de 3") | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
1346,
29948,
286,
28961,
666,
417,
316,
29871,
29941,
30024,
2123,
1346,
29876,
1368,
904,
286,
28961,
666,
417,
316,
29871,
29941,
8643,
13,
8009,
29896,
353,... |
main/util/dto.py | emhayusa/4d_api | 0 | 54539 | from flask_restplus import Namespace, fields
class StatusDto:
api = Namespace('status', description='status related operations')
schema = api.model('status', {
'id': fields.Integer(dump_only=True),
'status_name': fields.String(required=True, description='status name')
})
entry = api.m... | [
1,
515,
29784,
29918,
5060,
11242,
1053,
14706,
3535,
29892,
4235,
13,
13,
12,
13,
1990,
16034,
29928,
517,
29901,
13,
1678,
7882,
353,
14706,
3535,
877,
4882,
742,
6139,
2433,
4882,
4475,
6931,
1495,
13,
1678,
10938,
353,
7882,
29889,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.