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 |
|---|---|---|---|---|---|
Parte 1/Lista 01/013.py | Raiane-nepomuceno/Python | 0 | 163057 | n1=int(input('Digite a idade da primeira pessoa:'))
n2=int(input('Digite a idade da segunda pessoa:'))
n3=int(input('Digite a idade da terceira pessoa:'))
#Maior ou igual a 100
#menor que 100
soma = n1+ n2+ n3
if soma > 100 or soma == 100:
print('Maior ou igual a 100')
else:
print('Menor que 100')
| [
1,
302,
29896,
29922,
524,
29898,
2080,
877,
14991,
568,
263,
1178,
1943,
1146,
20997,
23109,
29874,
29901,
8785,
13,
29876,
29906,
29922,
524,
29898,
2080,
877,
14991,
568,
263,
1178,
1943,
1146,
17329,
23109,
29874,
29901,
8785,
13,
298... |
override.py | Sp-X/PCAP | 0 | 109804 | class Mouse:
def __init__(self, name):
self.name = name
def __str__(self):
return "My name is " + self.name
class AncientMouse(Mouse):
def __str__(self):
return "Meum nomen est " + self.name
mus = AncientMouse("Caesar") # Prints "Meum nomen est Caesar"
print(mus)
| [
1,
29871,
30143,
1990,
25992,
29901,
30004,
13,
1678,
822,
4770,
2344,
12035,
1311,
29892,
1024,
1125,
30004,
13,
4706,
1583,
29889,
978,
353,
1024,
30004,
13,
30004,
13,
1678,
822,
4770,
710,
12035,
1311,
1125,
30004,
13,
4706,
736,
37... |
methods/final_solution/graph_metrics.py | PaulRaid/H-index-prediction | 0 | 72639 | <reponame>PaulRaid/H-index-prediction<gh_stars>0
import networkx as nx
import pandas as pd
import argparse
import progress_bar as pb
pb.init(1, _prefix="Refactoring metrics \t \t")
parser = argparse.ArgumentParser(
description="GCN")
parser.add_argument("edge_index")
parser.add_argument("author_abstract_count")
p... | [
1,
529,
276,
1112,
420,
29958,
18275,
29934,
29874,
333,
29914,
29950,
29899,
2248,
29899,
11965,
2463,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
3564,
29916,
408,
302,
29916,
13,
5215,
11701,
408,
10518,
13,
5215,
1852,
551... |
config_template.py | oholsen/scales | 0 | 193108 | <reponame>oholsen/scales<filename>config_template.py
wifi_ssid = ""
wifi_password = ""
mqtt_username = ""
mqtt_password = ""
mqtt_address = ""
mqtt_port = 8883
| [
1,
529,
276,
1112,
420,
29958,
1148,
3775,
264,
29914,
19529,
267,
29966,
9507,
29958,
2917,
29918,
6886,
29889,
2272,
13,
29893,
6832,
29918,
893,
333,
353,
5124,
13,
29893,
6832,
29918,
5630,
353,
5124,
13,
13,
28466,
698,
29918,
6786... |
certbot/compat/os.py | sharpmind-de/certbot | 4 | 129056 | """
This compat modules is a wrapper of the core os module that forbids usage of specific operations
(e.g. chown, chmod, getuid) that would be harmful to the Windows file security model of Certbot.
This module is intended to replace standard os module throughout certbot projects (except acme).
"""
from __future__ impor... | [
1,
9995,
13,
4013,
10007,
10585,
338,
263,
14476,
310,
278,
7136,
2897,
3883,
393,
19752,
4841,
8744,
310,
2702,
6931,
13,
29898,
29872,
29889,
29887,
29889,
521,
776,
29892,
521,
1545,
29892,
679,
5416,
29897,
393,
723,
367,
10311,
131... |
apps/ots/strategy/portfolio_hft.py | yt7589/iching | 32 | 43176 | #
from __future__ import print_function
import datetime as dt
import math
from apps.ots.strategy.performance import Performance
try:
import Queue as queue
except ImportError:
import queue
import numpy as np
import pandas as pd
#
from apps.ots.event.ots_event import OtsEvent
from apps.ots.event.signal_event impo... | [
1,
396,
13,
3166,
4770,
29888,
9130,
1649,
1053,
1596,
29918,
2220,
13,
5215,
12865,
408,
11636,
13,
5215,
5844,
13,
3166,
11446,
29889,
1862,
29889,
710,
8963,
29889,
546,
13390,
1053,
23768,
13,
2202,
29901,
13,
1678,
1053,
5462,
434,... |
src/pretix/base/migrations/0188_delete_requiredaction.py | fabm3n/pretix | 1,248 | 159486 | <reponame>fabm3n/pretix<gh_stars>1000+
# Generated by Django 3.2.2 on 2021-05-13 18:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pretixbase', '0187_normalize_salutation'),
]
operations = [
migrations.DeleteModel(
name='Require... | [
1,
529,
276,
1112,
420,
29958,
16582,
29885,
29941,
29876,
29914,
19819,
861,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29900,
29900,
29974,
13,
29937,
3251,
630,
491,
15337,
29871,
29941,
29889,
29906,
29889,
29906,
373,
29871,
... |
settings.py | Vetal1977/tf_aws_lambda | 31 | 109411 | <filename>settings.py
'''
Common settings for using in a project scope
'''
MODEL_ZIP_FILE_NAME_ENV_VAR = 'TF_AWS_MODEL_ZIP_FILE_NAME'
MODEL_PROTOBUF_FILE_NAME_ENV_VAR = 'TF_AWS_MODEL_PROTOBUF_FILE_NAME'
S3_MODEL_BUCKET_NAME_ENV_VAR = 'TF_AWS_S3_MODEL_BUCKET_NAME'
| [
1,
529,
9507,
29958,
11027,
29889,
2272,
13,
12008,
13,
18877,
6055,
363,
773,
297,
263,
2060,
6874,
13,
12008,
13,
20387,
29931,
29918,
29999,
5690,
29918,
7724,
29918,
5813,
29918,
25838,
29918,
26865,
353,
525,
8969,
29918,
29909,
7811... |
scieio/conditions/apps.py | arnelimperial/scieio | 0 | 1607269 | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class ConditionsConfig(AppConfig):
name = 'scieio.conditions'
verbose_name = _("Product Conditions")
| [
1,
515,
9557,
29889,
13371,
1053,
2401,
3991,
13,
3166,
9557,
29889,
13239,
29889,
3286,
18411,
1053,
679,
726,
29918,
433,
1537,
408,
903,
13,
13,
13,
1990,
11790,
2187,
3991,
29898,
2052,
3991,
1125,
13,
1678,
1024,
353,
525,
1557,
... |
pymer4/tests/test_utils.py | turbach/pymer4 | 127 | 104850 | <filename>pymer4/tests/test_utils.py
from __future__ import division
from pymer4.utils import con2R, R2con, get_resource_path, result_to_table
import pandas as pd
import numpy as np
from pymer4.models import Lm
import os
def test_con2R():
x = np.array([[-1, 0, 0, 1], [-0.5, -0.5, 0.5, 0.5], [-3 / 3, 1 / 3, 1 / 3,... | [
1,
529,
9507,
29958,
29886,
962,
261,
29946,
29914,
21150,
29914,
1688,
29918,
13239,
29889,
2272,
13,
3166,
4770,
29888,
9130,
1649,
1053,
8542,
13,
3166,
282,
962,
261,
29946,
29889,
13239,
1053,
378,
29906,
29934,
29892,
390,
29906,
53... |
src/tests/flow.py | SeleSchaefer/super_resolution | 5 | 13664 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import imageio
import numpy as np
from tar.miscellaneous import convert_flow_to_color
prev = imageio.imread("ressources/1_1.png")
prev = cv2.cvtColor(prev, cv2.COLOR_RGB2GRAY)
curr = imageio.imread("ressources/1_2.png")
curr = cv2.cvtColor(curr, cv2.COLOR_RGB... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
13850,
29906,
13,
5215,
1967,
601,
13,
5215,
12655,
408,
7442,
13,
13,
3166,
9913,
... |
magnolia/python/training/data_iteration/mix_data.py | rashley-iqt/Magnolia | 51 | 130168 | <filename>magnolia/python/training/data_iteration/mix_data.py<gh_stars>10-100
import argparse
import logging.config
import json
import numpy as np
import msgpack
import tqdm
from magnolia.utils.sample import Sample
from magnolia.utils.mixing import construct_mixed_sample
def main():
# parse command line arguments... | [
1,
529,
9507,
29958,
29885,
4211,
18001,
29914,
4691,
29914,
26495,
29914,
1272,
29918,
1524,
362,
29914,
28084,
29918,
1272,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
1852,
5510,
... |
sched_slack_bot/reminder/sender.py | Germandrummer92/SchedSlackBot | 0 | 23064 | <gh_stars>0
import abc
from sched_slack_bot.model.reminder import Reminder
class ReminderSender(abc.ABC):
@abc.abstractmethod
def send_reminder(self, reminder: Reminder) -> None:
raise NotImplementedError("Not Implemented")
@abc.abstractmethod
def send_skip_message(self, reminder: Reminder)... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
25638,
13,
13,
3166,
28598,
29918,
29879,
2364,
29918,
7451,
29889,
4299,
29889,
1745,
4995,
1053,
5240,
4995,
13,
13,
13,
1990,
5240,
4995,
29615,
29898,
10736,
29889,
19658,
1125,... |
neuroConstruct/pythonScripts/RegenerateNml2.py | OpenSourceBrain/L5bPyrCellHayEtAl2011 | 4 | 107391 | import sys
import os
try:
from java.io import File
except ImportError:
print "Note: this file should be run using ..\\..\\..\\nC.bat -python XXX.py' or '../../../nC.sh -python XXX.py'"
print "See http://www.neuroconstruct.org/docs/python.html for more details"
quit()
sys.path.append(os.environ["NC_HOM... | [
1,
1053,
10876,
13,
5215,
2897,
13,
13,
2202,
29901,
13,
1678,
515,
2115,
29889,
601,
1053,
3497,
13,
19499,
16032,
2392,
29901,
13,
1678,
1596,
376,
9842,
29901,
445,
934,
881,
367,
1065,
773,
6317,
1966,
636,
1966,
636,
1966,
29876,... |
FigureTable/NeuroPathRegions/barplots.py | vkola-lab/multi-task | 1 | 15579 | from correlate import *
import matplotlib
import matplotlib.pyplot as plt
import seaborn as sns
from matplotlib import rc, rcParams
rc('axes', linewidth=1)
rc('font', weight='bold', size=10)
def barplots(prefixes, regions, stains, corre, error, name, folder, ylim):
for stain in stains:
barplot(prefixes, r... | [
1,
515,
18088,
1053,
334,
13,
5215,
22889,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
5215,
409,
370,
1398,
408,
269,
1983,
13,
13,
3166,
22889,
1053,
364,
29883,
29892,
364,
29883,
9629,
13,
2214,
877,
1165,
267,
742,
1196,
... |
Robocop.py | kitlith/robocop-ng | 0 | 77223 | import os
import asyncio
import sys
import logging
import logging.handlers
import traceback
import aiohttp
import config
import discord
from discord.ext import commands
script_name = os.path.basename(__file__).split('.')[0]
log_file_name = f"{script_name}.log"
# Limit of discord (non-nitro) is 8MB (not MiB)
max_fil... | [
1,
1053,
2897,
13,
5215,
408,
948,
3934,
13,
5215,
10876,
13,
5215,
12183,
13,
5215,
12183,
29889,
3179,
9306,
13,
5215,
9637,
1627,
13,
5215,
263,
601,
1124,
13,
5215,
2295,
13,
13,
5215,
2313,
536,
13,
3166,
2313,
536,
29889,
1062... |
payments/migrations/0019_markdownx.py | jakereps/workshops.qiime2.org | 0 | 144383 | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2018, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | [
1,
396,
448,
2683,
2683,
2683,
2683,
1378,
5634,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29953,
29899,
29906,
29900,
29896,
29947,
29892,
660,
2687,
2303,
29871,
29906,
5849,
3815,
29889,
13,
29937,
13,
29937,... |
ykdl/extractors/sina/video.py | Fearyncess/ykdl | 2 | 132117 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ykdl.extractor import VideoExtractor
from ykdl.util.match import match1, matchall
from ykdl.util.html import get_content, get_location
from ykdl.videoinfo import VideoInfo
import json
def get_realurl(url):
location = get_location(url)
if location != url:
... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
343,
29895,
11671,
29889,
21111,
272,
1053,
13987,
5647,
28891,
13,
3166,
343,
29895,
11671,
... |
model-optimizer/extensions/front/caffe/correlation_ext_test.py | fujunwei/dldt | 1 | 140296 | <reponame>fujunwei/dldt
"""
Copyright (C) 2018-2020 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
Unless required by appli... | [
1,
529,
276,
1112,
420,
29958,
29888,
8016,
348,
26599,
29914,
29881,
430,
29873,
13,
15945,
29908,
13,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29896,
29947,
29899,
29906,
29900,
29906,
29900,
18555,
15025,
13,
13,
10413,
21144... |
Chapter02/Pandas_Join.py | PacktPublishing/Bioinformatics-with-Python-Cookbook-third-edition | 9 | 111492 | # # Pandas advanced
import numpy as np
import pandas as pd
# # Code to sample original data
#
# ```
# vdata = pd.read_csv("2021VAERSDATA.csv.gz", encoding="iso-8859-1")
# vdata.sample(frac=0.9).to_csv("vdata_sample.csv.gz", index=False)
# vax = pd.read_csv("2021VAERSVAX.csv.gz", encoding="iso-8859-1")
# vax.sample(fr... | [
1,
396,
396,
349,
7086,
12862,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
13,
29937,
396,
5920,
304,
4559,
2441,
848,
13,
29937,
13,
29937,
7521,
13,
29937,
325,
1272,
353,
10518,
29889,
949,
29918,
7638,
703,
... |
Chapter07/python/com/sparksamples/linearregression/LinearRegressionCrossValidationIterations.py | quguiliang/Machine-Learning-with-Spark-Second-Edition | 112 | 60670 | <reponame>quguiliang/Machine-Learning-with-Spark-Second-Edition
import os
import sys
import pylab as P
import matplotlib
import matplotlib.pyplot as plt
from com.sparksamples.util import evaluate
from com.sparksamples.linearregression.LinearRegressionUtil import get_train_test_data
try:
from pyspark import Spar... | [
1,
529,
276,
1112,
420,
29958,
339,
2543,
2638,
574,
29914,
29076,
29899,
29931,
799,
1076,
29899,
2541,
29899,
29903,
6378,
29899,
11863,
29899,
3853,
654,
13,
5215,
2897,
13,
5215,
10876,
13,
13,
5215,
282,
2904,
370,
408,
349,
13,
... |
Packs/mnemonicMDR/Integrations/ArgusManagedDefence/ArgusManagedDefence.py | matan-xmcyber/content | 0 | 5758 | import demistomock as demisto
from CommonServerPython import *
""" IMPORTS """
import json
import urllib3
import dateparser
import traceback
from typing import Any, Dict, List, Union
import logging
from argus_api import session as argus_session
from argus_api.api.currentuser.v1.user import get_current_user
from ... | [
1,
1053,
1261,
391,
290,
1698,
408,
1261,
5137,
13,
3166,
13103,
6004,
11980,
1053,
334,
13,
13,
15945,
29908,
306,
3580,
8476,
29903,
9995,
13,
13,
5215,
4390,
13,
5215,
3142,
1982,
29941,
13,
13,
5215,
2635,
16680,
13,
5215,
9637,
... |
src/GUI/__init__.py | shulip/ShoppingMallSystem | 0 | 140095 | <gh_stars>0
#!/usr/bin/env python
# -*- coding:utf-8 -*-
from .LCEOWindow import *
from .LProprietorWindow import *
from .LLoginWindow import *
from .LManagerWindow import *
| [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29871,
13,
29937,
448,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
869,
29931,
4741,
29949,
5907,
... |
src/make_notebooks/__init__.py | marskar/make_notebooks | 0 | 150508 | # -*- coding: utf-8 -*-
"""Top-level package for Make Notebooks."""
__author__ = """<NAME>"""
__version__ = '0.0.1'
| [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
15945,
29908,
7031,
29899,
5563,
3577,
363,
8561,
2216,
19273,
29879,
1213,
15945,
13,
13,
1649,
8921,
1649,
353,
9995,
29966,
5813,
11903,
15945,
13... |
tests/test_ms_sql_server.py | changrunner/zeppos_microsoft_sql_server | 0 | 37450 | import unittest
from zeppos_microsoft_sql_server.ms_sql_server import MsSqlServer
import pandas as pd
import pyodbc
import os
class TestTheProjectMethods(unittest.TestCase):
def test_constructor_methods(self):
self.assertEqual("<class 'zeppos_microsoft_sql_server.ms_sql_server.MsSqlServer'>", str(type(MsSq... | [
1,
1053,
443,
27958,
13,
3166,
3777,
407,
359,
29918,
4994,
29918,
2850,
29918,
2974,
29889,
1516,
29918,
2850,
29918,
2974,
1053,
341,
29879,
10520,
6004,
13,
5215,
11701,
408,
10518,
13,
5215,
11451,
10396,
29883,
13,
5215,
2897,
13,
... |
oommfc/oommf/oommf.py | spinachslayer420/MSE598-SAF-Project | 0 | 179634 | import os
import abc
import sys
import time
import datetime
import logging
import shutil
import oommfc as oc
import subprocess as sp
import ubermagutil as uu
import micromagneticmodel as mm
log = logging.getLogger(__name__)
_cached_oommf_runner = None
class OOMMFRunner(metaclass=abc.ABCMeta):
"""Abstract class f... | [
1,
1053,
2897,
13,
5215,
25638,
13,
5215,
10876,
13,
5215,
931,
13,
5215,
12865,
13,
5215,
12183,
13,
5215,
528,
4422,
13,
5215,
288,
3011,
13801,
408,
12954,
13,
5215,
1014,
5014,
408,
805,
13,
5215,
318,
495,
11082,
4422,
408,
318... |
__init__.py | allan920693/PTT-Photo-Crawler-with-Scrapy | 0 | 1600971 | # coding=utf-8
# This package will contain the spiders of your Scrapy project
#
# Please refer to the documentation for information on how to create and manage
# your spiders.
import scrapy
import logging
from scrapy.http import FormRequest
import datetime
from ptt.items import PostItem
import re
class PTTSpider(s... | [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
29937,
910,
3577,
674,
1712,
278,
805,
11376,
310,
596,
2522,
336,
2272,
2060,
13,
29937,
13,
29937,
3529,
2737,
304,
278,
5106,
363,
2472,
373,
920,
304,
1653,
322,
10933,
13,
29937,
596,... |
tests/test_utilities/test_csvgrep.py | diraol/csvkit | 0 | 1613485 | <filename>tests/test_utilities/test_csvgrep.py
#!/usr/bin/env python
import StringIO
import unittest
from csvkit import CSVKitReader
from csvkit.utilities.csvgrep import CSVGrep
from csvkit.exceptions import ColumnIdentifierError, RequiredHeaderError
class TestCSVGrep(unittest.TestCase):
def test_match(self):
... | [
1,
529,
9507,
29958,
21150,
29914,
1688,
29918,
4422,
1907,
29914,
1688,
29918,
7638,
22385,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
5215,
1714,
5971,
13,
5215,
443,
27958,
13,
13,
3166,
11799,
7354,
... |
pyspark/example/spark_core/4.7_spark_prog.py | chiliangpi/hellobi | 53 | 11562 | <reponame>chiliangpi/hellobi
import os
import numpy as np
import sys
import logging
LOG_PATH = os.environ['log']
spark_home = os.environ['SPARK_HOME']
sys.path.insert(0, os.path.join(spark_home, 'python'))
sys.path.insert(0, os.path.join(spark_home, 'python/lib/py4j-0.10.4-src.zip'))
from pyspark.sql import SparkSess... | [
1,
529,
276,
1112,
420,
29958,
305,
2638,
574,
1631,
29914,
3952,
2127,
29875,
13,
5215,
2897,
13,
5215,
12655,
408,
7442,
13,
5215,
10876,
13,
5215,
12183,
13,
13,
14480,
29918,
10145,
353,
2897,
29889,
21813,
1839,
1188,
2033,
13,
1... |
content_interactions_stats/migrations/0001_initial.py | aaboffill/django-content-interactions | 0 | 106224 | <reponame>aaboffill/django-content-interactions<filename>content_interactions_stats/migrations/0001_initial.py<gh_stars>0
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration... | [
1,
529,
276,
1112,
420,
29958,
29874,
370,
2696,
453,
29914,
14095,
29899,
3051,
29899,
1639,
7387,
29966,
9507,
29958,
3051,
29918,
1639,
7387,
29918,
16202,
29914,
26983,
800,
29914,
29900,
29900,
29900,
29896,
29918,
11228,
29889,
2272,
... |
ccnlab/utils.py | nikhilxb/ccnlab | 5 | 166264 | <reponame>nikhilxb/ccnlab
import fnmatch
from collections import defaultdict
def listdict_to_dictlist(ld):
dl = defaultdict(list)
keys = set(k for d in ld for k in d)
for d in ld:
for k in keys:
dl[k].append(d[k] if k in d else None)
return dl
class SearchableRegistry:
def __init__(self):
se... | [
1,
529,
276,
1112,
420,
29958,
5585,
29882,
309,
29916,
29890,
29914,
617,
29876,
8205,
13,
5215,
7876,
4352,
13,
3166,
16250,
1053,
2322,
8977,
13,
13,
13,
1753,
1051,
8977,
29918,
517,
29918,
8977,
1761,
29898,
430,
1125,
13,
29871,
... |
src/demo2.py | lorenzobini/3D-shape-retrieval-search-engine | 2 | 162128 | import os
import numpy as np
import matplotlib.pyplot as plt
from shape import Shape
from visualize import visualize
from normalize import normalize_data, normalize_shape
from dataLoader import import_dataset, import_normalised_data
from featureExtraction import *
from featureMatching import *
from utils import pick_f... | [
1,
1053,
2897,
13,
5215,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
3166,
8267,
1053,
1383,
4085,
13,
3166,
7604,
675,
1053,
7604,
675,
13,
3166,
4226,
675,
1053,
4226,
675,
29918,
1272,
29892,
4226,
675... |
tests/confmeasure.py | Mic92/vmsh | 39 | 130396 | <gh_stars>10-100
#!/usr/bin/env python3
import contextlib
import sys
from datetime import datetime
from pathlib import Path
from typing import List, Type, Optional
import pytest
from qemu import QemuVm, VmImage, spawn_qemu
from nix import notos_image, busybox_image
from root import TEST_ROOT
from vmsh import spawn_vm... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
5215,
3030,
1982,
13,
5215,
10876,
13,
3166,
12865,
1053,
12865,
13,
3166,
2224,
1982... |
utils/label_data.py | safdark/CarND-Capstone | 2 | 99907 | <filename>utils/label_data.py
import glob
import os
import time
import numpy as np
import tensorflow as tf
from PIL import Image
from lxml import etree
from tqdm import tqdm
flags = tf.app.flags
flags.DEFINE_string('data_dir', None, 'Path to the folder where the images are stored')
flags.DEFINE_string('labels_dir', ... | [
1,
529,
9507,
29958,
13239,
29914,
1643,
29918,
1272,
29889,
2272,
13,
5215,
13149,
13,
5215,
2897,
13,
5215,
931,
13,
13,
5215,
12655,
408,
7442,
13,
5215,
26110,
408,
15886,
13,
3166,
349,
6227,
1053,
7084,
13,
3166,
301,
3134,
1053... |
librs/dblib.py | mrabobi/ISChallenge | 1 | 163117 | <filename>librs/dblib.py
import os
import time
import traceback
from datetime import datetime
from sqlalchemy import create_engine, engine, text
cloud_sql_connection_name = os.getenv("CLOUD_SQL_CONNECTION_NAME")
db = create_engine(
engine.url.URL(
drivername="mysql+pymysql",
username=os.getenv("DB... | [
1,
529,
9507,
29958,
492,
1182,
29879,
29914,
2585,
1982,
29889,
2272,
13,
5215,
2897,
13,
5215,
931,
13,
5215,
9637,
1627,
13,
3166,
12865,
1053,
12865,
13,
13,
3166,
4576,
284,
305,
6764,
1053,
1653,
29918,
10599,
29892,
6012,
29892,
... |
14/python/collatz.py | tylermumford/euler | 1 | 54573 | #!/usr/bin/env python3
collatz_memo = {1: 1}
def collatz(n):
'''Return the length of the Collatz sequence for the given input'''
if n in collatz_memo:
result = collatz_memo[n]
elif n % 2 == 0:
collatz_memo[n] = 1 + collatz(n / 2)
result = collatz_memo[n]
else:
collatz_... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
29941,
13,
13,
22017,
4101,
29918,
6954,
29877,
353,
426,
29896,
29901,
29871,
29896,
29913,
13,
13,
1753,
5321,
4101,
29898,
29876,
1125,
13,
1678,
14550,
11609,
278,
3309,
310,
278,
13435,... |
build/lib.linux-x86_64-2.7_ucs4/mx/DateTime/ISO.py | mkubux/egenix-mx-base | 0 | 55207 | """ This module provides a set of constructors and routines to convert
between DateTime[Delta] instances and ISO representations of date
and time.
Note: Timezones are only interpreted by ParseDateTimeGMT(). All
other constructors silently ignore the time zone information.
Copyright (c) 1998-2000, ... | [
1,
9995,
910,
3883,
8128,
263,
731,
310,
3386,
943,
322,
6745,
1475,
304,
3588,
13,
1678,
1546,
12315,
29961,
5268,
29962,
8871,
322,
17723,
22540,
310,
2635,
13,
1678,
322,
931,
29889,
13,
13,
1678,
3940,
29901,
5974,
29920,
2873,
52... |
oks/elements/operation/eitem.py | alnvdl/oks | 2 | 107972 | <gh_stars>1-10
#!/usr/bin/env python
#-*- coding:utf-8 -*-
from core.output import *
from oks.elements.operation import OperationElement
import oks
class ExchangeItem(OperationElement):
TYPE = oks.EXCHANGE_ITEM
def __init__(self, **kwargs):
self.name = ""
self.quantity = 1
self... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
29899,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
13,
3166,
7136,
29889,
4905... |
test/resources/app.py | earwig/bitshift | 28 | 144896 | """
Module to contain all the project's Flask server plumbing.
"""
from flask import Flask
from flask import render_template, session
from bitshift import assets
# from bitshift.database import Database
# from bitshift.query import parse_query
app = Flask(__name__)
app.config.from_object("bitshift.config")
app_env ... | [
1,
9995,
13,
7355,
304,
1712,
599,
278,
2060,
29915,
29879,
2379,
1278,
1923,
715,
3774,
292,
29889,
13,
15945,
29908,
13,
13,
3166,
29784,
1053,
2379,
1278,
13,
3166,
29784,
1053,
4050,
29918,
6886,
29892,
4867,
13,
13,
3166,
2586,
1... |
peptidemapper/src/pepmapperapp/migrations/0002_mapperautocomplete.py | uvic-proteincentre/MRMAssayDB | 0 | 26357 | <filename>peptidemapper/src/pepmapperapp/migrations/0002_mapperautocomplete.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pepmapperapp', '0001_initial'),
]
operations = [
... | [
1,
529,
9507,
29958,
412,
415,
680,
655,
2496,
29914,
4351,
29914,
412,
29886,
655,
2496,
932,
29914,
26983,
800,
29914,
29900,
29900,
29900,
29906,
29918,
655,
2496,
6921,
8835,
29889,
2272,
13,
29937,
448,
29930,
29899,
14137,
29901,
23... |
assam/scheduling/scheduling_module.py | ykawashima/assam | 3 | 86826 | <reponame>ykawashima/assam<filename>assam/scheduling/scheduling_module.py<gh_stars>1-10
#!/usr/bin/env python
"""
MIT License
Copyright (c) 2020-2021 <NAME>
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 th... | [
1,
529,
276,
1112,
420,
29958,
29891,
1335,
29893,
1161,
2946,
29914,
465,
314,
29966,
9507,
29958,
465,
314,
29914,
816,
287,
19478,
29914,
816,
287,
19478,
29918,
5453,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
2... |
count_doubles.py | tiagocoutinho/tc-rusty | 0 | 114545 | <filename>count_doubles.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import random
import string
import itertools
import functools
import six
import numpy
from tools import GCContext, run
from tools import c_debug, c_release
from tools import rust_debug, rust_release
# ---- RUST ---------------------... | [
1,
529,
9507,
29958,
2798,
29918,
29881,
283,
7586,
29889,
2272,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
13,
5215,
2897,
13,
5215,
403... |
TrendTrading/BearBullIndicators/SPY DOW RUSS market.py | benjabee10/WKUResearch | 0 | 92571 | <gh_stars>0
import numpy as np
import pandas as pd
import talib
low=0.9
high=1.1
pct= 0.1
def initialize(context):
context.stocks= [sid(8347), sid(6653), sid(3149), sid(4151), sid(5061), sid(19675), sid(700), sid(8229)]
context.spy= sid(8554)
context.russ= sid(21519)
context.dow= sid(2174)
context.... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
12655,
408,
7442,
13,
5215,
11701,
408,
10518,
13,
5215,
5969,
747,
13,
13,
677,
29922,
29900,
29889,
29929,
13,
9812,
29922,
29896,
29889,
29896,
13,
29886,
312,
29922,
29871,
29... |
cosmoscope/server.py | cosmoscope/cosmo-server | 0 | 26781 | import logging
import signal
import gevent
import msgpack
from zerorpc import Publisher, Puller, Pusher, Server
import numpy as np
import jsonpickle
from .store import store
from .data import Data
from .operations.operation import Operation
from .utils.singleton import Singleton
__all__ = ['ServerAPI']
class Serve... | [
1,
1053,
12183,
13,
13,
5215,
7182,
13,
5215,
1737,
794,
13,
5215,
10191,
4058,
13,
3166,
503,
261,
272,
6739,
1053,
12904,
261,
29892,
349,
913,
261,
29892,
349,
1878,
261,
29892,
5656,
13,
5215,
12655,
408,
7442,
13,
5215,
4390,
2... |
gsea_api/gsea/java.py | krassowski/gsea-api | 8 | 97770 | <reponame>krassowski/gsea-api
import re
from glob import glob
from pathlib import Path
from shutil import rmtree
from tempfile import TemporaryDirectory
from typing import Union
from warnings import warn
from pandas import read_table, DataFrame
from .base import GSEA
from ..molecular_signatures_db import GeneSets
fro... | [
1,
529,
276,
1112,
420,
29958,
12748,
465,
11716,
29914,
29887,
344,
29874,
29899,
2754,
13,
5215,
337,
13,
3166,
13149,
1053,
13149,
13,
3166,
2224,
1982,
1053,
10802,
13,
3166,
528,
4422,
1053,
364,
4378,
929,
13,
3166,
5694,
1445,
... |
Drawing Book/code.py | swy20190/HackerRankChallenge | 0 | 38826 | <gh_stars>0
import os
def pageCount(n, p):
# Write your code here
front_flip = int(p/2)
end_flip = int(n/2)-front_flip
return min(front_flip, end_flip)
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
n = int(input().strip())
p = int(input().strip())
result =... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
2897,
13,
13,
13,
1753,
1813,
3981,
29898,
29876,
29892,
282,
1125,
13,
1678,
396,
14350,
596,
775,
1244,
13,
1678,
4565,
29918,
29888,
3466,
353,
938,
29898,
29886,
29914,
29906,... |
fairepart/backends/__init__.py | thoas/django-fairepart | 2 | 123264 | def get_backends():
from ..settings import BACKENDS
from ..utils import load_class
backends = {}
for backend_path in BACKENDS:
backend = load_class(backend_path)
backends[backend.name] = backend
return backends
| [
1,
822,
679,
29918,
1627,
1975,
7295,
13,
1678,
515,
6317,
11027,
1053,
350,
11375,
1430,
8452,
13,
1678,
515,
6317,
13239,
1053,
2254,
29918,
1990,
13,
13,
1678,
1250,
1975,
353,
6571,
13,
13,
1678,
363,
14998,
29918,
2084,
297,
350,... |
imports/download-json.py | UrbanDS/semantic-segmentation-editor | 0 | 192063 | import glob
import requests
import json
files = glob.glob('*.jpg')
for file in files:
base_file = file.split("/")[-1]
output = open(base_file.replace(".jpg", ".json"))
url = f"http://localhost:3000/api/json/{base_file}"
json.dump(requests.get(url).json(), output) | [
1,
1053,
13149,
13,
5215,
7274,
13,
5215,
4390,
13,
13,
5325,
353,
13149,
29889,
23705,
877,
10521,
6173,
1495,
13,
13,
1454,
934,
297,
2066,
29901,
13,
12,
3188,
29918,
1445,
353,
934,
29889,
5451,
11974,
1159,
14352,
29896,
29962,
1... |
app.py | SamEdwardes/wod-tracker | 0 | 1604905 | import os
import boto3
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
import numpy as np
import pandas as pd
import dash
from dash.dependencies import Input, Output, State
from src.aws import refresh_aws_table
from src.helpers import clean_text
dynamod... | [
1,
1053,
2897,
13,
13,
5215,
289,
3747,
29941,
13,
5215,
12569,
29918,
8704,
29918,
14036,
408,
4833,
29883,
13,
5215,
12569,
29918,
3221,
29918,
14036,
408,
270,
617,
13,
5215,
12569,
29918,
1420,
29918,
14036,
408,
3472,
13,
5215,
126... |
python-backend/tests/status/resources/test_mine_status_resource.py | MaxWardle/mds | 0 | 39031 | import json
from app.api.constants import MINE_STATUS_OPTIONS
from tests.constants import TEST_MINE_GUID
# GET
def test_get_mine_status_option(test_client, auth_headers):
get_resp = test_client.get('/mines/status', headers=auth_headers['full_auth_header'])
get_data = json.loads(get_resp.data.decode())
as... | [
1,
1053,
4390,
13,
13,
3166,
623,
29889,
2754,
29889,
3075,
1934,
1053,
341,
8895,
29918,
27047,
29918,
14094,
27946,
13,
3166,
6987,
29889,
3075,
1934,
1053,
17067,
1254,
29918,
29924,
8895,
29918,
29954,
11150,
13,
13,
13,
29937,
12354,... |
561. Array Partition I/main.py | Competitive-Programmers-Community/LeetCode | 2 | 102450 | class Solution:
def arrayPairSum(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums.sort()
s=0
for i in range(0,len(nums),2):
s+=nums[i]
return s
| [
1,
770,
24380,
29901,
13,
1678,
822,
1409,
20547,
11139,
29898,
1311,
29892,
954,
29879,
1125,
13,
4706,
9995,
13,
4706,
584,
1853,
954,
29879,
29901,
2391,
29961,
524,
29962,
13,
4706,
584,
29878,
1853,
29901,
938,
13,
4706,
9995,
13,
... |
systori/apps/equipment/urls.py | systori/systori | 12 | 8921 | <filename>systori/apps/equipment/urls.py
from django.conf.urls import url
from django.urls import path, include
from systori.apps.user.authorization import office_auth
from systori.apps.equipment.views import EquipmentListView, EquipmentView, EquipmentCreate, EquipmentDelete, EquipmentUpdate, RefuelingStopCreate, Refu... | [
1,
529,
9507,
29958,
29879,
858,
4170,
29914,
13371,
29914,
1686,
666,
358,
29914,
26045,
29889,
2272,
13,
3166,
9557,
29889,
5527,
29889,
26045,
1053,
3142,
13,
3166,
9557,
29889,
26045,
1053,
2224,
29892,
3160,
13,
13,
3166,
13107,
4170... |
app/core/models.py | echosisdev/openmrs-disa-sync | 0 | 11932 | from django.db import models
from django.db.models.signals import pre_save, post_save
from core.utils.constants import Constants
from core.utils.data_convertion import DataConversion
class ExcelFile(models.Model):
file_name = models.FileField(upload_to='uploads')
date_created = models.DateTimeField(auto_now_... | [
1,
515,
9557,
29889,
2585,
1053,
4733,
13,
3166,
9557,
29889,
2585,
29889,
9794,
29889,
4530,
1338,
1053,
758,
29918,
7620,
29892,
1400,
29918,
7620,
13,
13,
3166,
7136,
29889,
13239,
29889,
3075,
1934,
1053,
5798,
1934,
13,
3166,
7136,
... |
karte.py | goodmanjonathan/kattis-problems | 0 | 52183 | <filename>karte.py
import sys
def replicate(n, x):
ret = []
for _ in range(n):
ret.append(x)
return ret
line = input()
cards = replicate(53, False)
for i in range(0, len(line), 3):
card_num = int(line[i+1:i+3])
offset = 0
if line[i] == 'P':
pass
elif line[i] == 'K':
... | [
1,
529,
9507,
29958,
5689,
371,
29889,
2272,
13,
5215,
10876,
13,
13,
1753,
1634,
5926,
29898,
29876,
29892,
921,
1125,
13,
1678,
3240,
353,
5159,
13,
1678,
363,
903,
297,
3464,
29898,
29876,
1125,
13,
4706,
3240,
29889,
4397,
29898,
... |
glmsingle/utils/robustrange.py | gretatuckute/GLMsingle | 35 | 78064 | <gh_stars>10-100
import numpy as np
def robustrange(m):
"""
robustrange(m)
<m> is an array
figure out a reasonable range for the values in <m>,
that is, one that tries to include as many of the values
as possible, but also tries to exclude the effects of potential
outliers (so that... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
5215,
12655,
408,
7442,
13,
13,
13,
1753,
16424,
3881,
29898,
29885,
1125,
13,
1678,
9995,
13,
268,
16424,
3881,
29898,
29885,
29897,
13,
13,
268,
529... |
directory/factories.py | arogachev/dgtt | 0 | 94888 | <reponame>arogachev/dgtt
from functools import reduce
from random import randint
from django.contrib.gis.geos import Point
import factory
from faker.providers import BaseProvider
from .models import Building, Category, Organization
LOCALE = 'ru_RU'
class CoordinatesProvider(BaseProvider):
CENTER_COORDINATES = ... | [
1,
529,
276,
1112,
420,
29958,
279,
468,
1829,
29894,
29914,
20726,
698,
13,
3166,
2090,
312,
8789,
1053,
10032,
13,
3166,
4036,
1053,
20088,
524,
13,
13,
3166,
9557,
29889,
21570,
29889,
29887,
275,
29889,
479,
359,
1053,
8984,
13,
5... |
flashpandas/__init__.py | MaxTechniche/flash-pandas | 0 | 135779 | <reponame>MaxTechniche/flash-pandas<filename>flashpandas/__init__.py<gh_stars>0
import time
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
from flask import session
from dash.dependencies import Output, State, Input
from .app import APP, users, cards
from ... | [
1,
529,
276,
1112,
420,
29958,
7976,
7141,
3049,
4070,
29914,
28041,
29899,
15112,
29966,
9507,
29958,
28041,
15112,
29914,
1649,
2344,
26914,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
931,
13,
5215,
12569,
29918,
8704,
... |
config/experiments.b.py | shibaji7/model.CODE_BASE | 0 | 155305 | #!/usr/bin/env python
"""experiments.py: experiments python program for different experiment applications"""
__author__ = "<NAME>."
__copyright__ = "Copyright 2020, SuperDARN@VT"
__credits__ = []
__license__ = "MIT"
__version__ = "1.0."
__maintainer__ = "<NAME>."
__email__ = "<EMAIL>"
__status__ = "Research"
import ... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
13,
15945,
29908,
735,
546,
7862,
29889,
2272,
29901,
15729,
3017,
1824,
363,
1422,
7639,
8324,
15945,
29908,
13,
13,
1649,
8921,
1649,
353,
9872,
5813,
29958,
1213,
13,
1649,
8552,
12... |
config.py | HarryThuku/Group-of-Schools | 0 | 1609165 | <filename>config.py
import os, subprocess
appData = {
'institution_name' : os.environ.get("INSTITUTION_NAME"),
'institution_initials':os.environ.get("INSTITUTION_INITIALS"),
'app_base_url' : os.environ.get("APP_URL"),
'map_coordinates' : '',
'country' : os.environ.get("COUNTRY"),
'email' : os.e... | [
1,
529,
9507,
29958,
2917,
29889,
2272,
13,
5215,
2897,
29892,
1014,
5014,
13,
13,
932,
1469,
353,
426,
13,
1678,
525,
2611,
5008,
29918,
978,
29915,
584,
2897,
29889,
21813,
29889,
657,
703,
25580,
1806,
2692,
2725,
29918,
5813,
4968,
... |
chatbot/__init__.py | chengdrabin325/karina_botproject | 1 | 65099 | import re,random,requests,json
from os import path
from .DefaultSubs import *
from .spellcheck import correction,WORDS
try:
from urllib import quote
except ImportError as e:
from urllib.parse import quote
reflections = {
"i am" : "you are",
"i was" : "you were",
"i" : "you",
"i'm" ... | [
1,
1053,
337,
29892,
8172,
29892,
24830,
29892,
3126,
13,
3166,
2897,
1053,
2224,
13,
3166,
869,
4592,
4035,
29879,
1053,
334,
13,
3166,
869,
1028,
514,
3198,
1053,
26385,
29892,
11686,
8452,
13,
2202,
29901,
13,
29871,
515,
3142,
1982,... |
steampak/webapi/resources/user.py | idlesign/steampak | 24 | 94688 | <filename>steampak/webapi/resources/user.py
from ..settings import URL_COMMUNITY_BASE, APPID_STEAM
from ..utils import str_sub, DataFetcher
from ..exceptions import ResponseError
from .market import Item, Card, TAG_ITEM_CLASS_CARD
URL_USER_BASE = URL_COMMUNITY_BASE + '/id/$username'
URL_USER_INVENTORY_PUBLIC_BASE = U... | [
1,
529,
9507,
29958,
1655,
1160,
557,
29914,
2676,
2754,
29914,
13237,
29914,
1792,
29889,
2272,
13,
3166,
6317,
11027,
1053,
3988,
29918,
3217,
7428,
3904,
11937,
29918,
25416,
29892,
12279,
29925,
1367,
29918,
1254,
29923,
5194,
13,
3166,... |
plotting/single_trials.py | PFMassiani/vibly | 5 | 28241 | import numpy as np
import matplotlib.pyplot as plt
# colors corresponding to initial flight, stance, second flight
colors = ['k', 'b', 'g']
### The attributes of sol are:
## sol.t : series of time-points at which the solution was calculated
## sol.y : simulation results, size 6 x times
## sol.t_events : list of t... | [
1,
1053,
12655,
408,
7442,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
13,
29937,
11955,
6590,
304,
2847,
16286,
29892,
380,
749,
29892,
1473,
16286,
13,
27703,
353,
6024,
29895,
742,
525,
29890,
742,
525,
29887,
2033,
13,
13,
... |
detectron2/distiller_zoo/CC.py | lijingyao20010602/Dilation-FasterRCNN | 1 | 75286 | <reponame>lijingyao20010602/Dilation-FasterRCNN<gh_stars>1-10
from __future__ import print_function
import torch
import torch.nn as nn
class Correlation(nn.Module):
"""Correlation Congruence for Knowledge Distillation, ICCV 2019.
The authors nicely shared the code with me. I restructured their code to be
... | [
1,
529,
276,
1112,
420,
29958,
7267,
292,
3761,
29877,
29906,
29900,
29900,
29896,
29900,
29953,
29900,
29906,
29914,
29928,
8634,
29899,
29943,
1901,
10363,
10262,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
29900,
13,
3166,
... |
dota2MemComm/dota2comm.py | Keithenneu/dota2comm | 13 | 123457 | <filename>dota2MemComm/dota2comm.py
import sys
from ctypes import cdll, c_char_p, c_void_p, cast
class Dota2Comm:
def __init__(self, name):
self.__dota2comm = cdll.LoadLibrary("dota2comm.dll")
self.name = name
self.__name = name.encode()
self.__receiveMessage = self.__dota... | [
1,
529,
9507,
29958,
29881,
4616,
29906,
11442,
5261,
29914,
29881,
4616,
29906,
2055,
29889,
2272,
13,
5215,
10876,
13,
3166,
274,
8768,
1053,
274,
12396,
29892,
274,
29918,
3090,
29918,
29886,
29892,
274,
29918,
5405,
29918,
29886,
29892,... |
nvc-api/app/controllers/api/vm.py | BiznetGIO/nvc-lite | 0 | 1604264 | <reponame>BiznetGIO/nvc-lite<filename>nvc-api/app/controllers/api/vm.py
from app.helpers.rest import *
from neo.libs import vm
from neo.libs import orchestration as orch
from app.middlewares import auth
from app.helpers.session import *
from app.libs import neo, utils
from flask_restful import Resource, request
class... | [
1,
529,
276,
1112,
420,
29958,
29933,
466,
1212,
29954,
5971,
29914,
29876,
7071,
29899,
29880,
568,
29966,
9507,
29958,
29876,
7071,
29899,
2754,
29914,
932,
29914,
1285,
11897,
29914,
2754,
29914,
6925,
29889,
2272,
13,
3166,
623,
29889,
... |
software/python/addons/remote_console/server_demo.py | ltstein/SCUTTLE | 0 | 46424 | # This file is just a basic example of the server comunication structure to a client program.
# The server is run on the embedded computer and passes data to a client on your local pc
# over a direct wifi connection. This can be used to display telemetry.
import time
import json
import socket
def current_time(start_... | [
1,
396,
910,
934,
338,
925,
263,
6996,
1342,
310,
278,
1923,
419,
2523,
362,
3829,
304,
263,
3132,
1824,
29889,
13,
29937,
450,
1923,
338,
1065,
373,
278,
15685,
6601,
322,
14517,
848,
304,
263,
3132,
373,
596,
1887,
22844,
13,
2993... |
tests/benchmarks/garage/tf/algos/benchmark_ddpg.py | bainro/garage | 0 | 188937 | <filename>tests/benchmarks/garage/tf/algos/benchmark_ddpg.py
"""This script creates a regression test over garage-DDPG and baselines-DDPG.
It get Mujoco1M benchmarks from baselines benchmark, and test each task in
its trial times on garage model and baselines model. For each task, there will
be `trial` times with diffe... | [
1,
529,
9507,
29958,
21150,
29914,
1785,
16580,
29879,
29914,
5397,
482,
29914,
13264,
29914,
9564,
359,
29914,
1785,
16580,
29918,
1289,
4061,
29889,
2272,
13,
15945,
29908,
4013,
2471,
10017,
263,
17855,
1243,
975,
7171,
482,
29899,
7858,... |
examples/ecs/server_interface.py | wangrui1121/huaweicloud-sdk-python | 43 | 20046 | <filename>examples/ecs/server_interface.py<gh_stars>10-100
# -*-coding:utf-8 -*-
from openstack import connection
# create connection
username = "xxxxxx"
password = "<PASSWORD>"
projectId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # tenant ID
userDomainId = "xxxxxxxxxxxxxxxxxxxxxxxxxxxx" # user account ID
auth_url = "xxx... | [
1,
529,
9507,
29958,
19057,
29914,
687,
29879,
29914,
2974,
29918,
13248,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
448,
29930,
29899,
29883,
3689,
29901,
9420,
29899,
29947,
448,... |
REDServer/gunicorn.conf.py | illusioneering/RED | 1 | 25481 | bind = "0.0.0.0:80"
| [
1,
7868,
353,
376,
29900,
29889,
29900,
29889,
29900,
29889,
29900,
29901,
29947,
29900,
29908,
13,
2
] |
exec/compressible_mui/scripts/4spec/vert_stat.py | PeculiarOvertones/FHDeX | 3 | 143049 | import numpy as np
NSAMPLE=64
NSPEC=4
for spec in range(NSPEC):
list = []
for i in range(NSAMPLE):
infile = "RUN%d/res.mass_spec%d_final_vert" % (i+1,spec+1)
a = np.loadtxt(infile)
list.append(a)
list = np.transpose(np.array(list))
mean = np.mean(list,axis=1)
st... | [
1,
1053,
12655,
408,
7442,
13,
13,
3059,
19297,
1307,
29922,
29953,
29946,
13,
3059,
4162,
29907,
29922,
29946,
13,
13,
1454,
1580,
297,
3464,
29898,
3059,
4162,
29907,
1125,
13,
13,
1678,
1051,
353,
5159,
13,
13,
1678,
363,
474,
297,... |
EduData/Task/__init__.py | BAOOOOOM/EduData | 98 | 6513 | # coding: utf-8
# 2019/8/23 @ tongshiwei
| [
1,
396,
14137,
29901,
23616,
29899,
29947,
13,
29937,
29871,
29906,
29900,
29896,
29929,
29914,
29947,
29914,
29906,
29941,
732,
21861,
845,
29875,
26599,
13,
2
] |
L7-folsom-floodfreq.py | jdherman/eci273 | 10 | 159182 | <filename>L7-folsom-floodfreq.py
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
x = np.loadtxt('data/folsom-annual-peak-flow.csv',
delimiter=',',
skiprows=1, usecols=[1]) # data in cfs
y = np.log(x)
N = len(y)
# plt.hist(y)
# plt.show()
# what is the est... | [
1,
529,
9507,
29958,
29931,
29955,
29899,
29888,
3775,
290,
29899,
29888,
417,
397,
29888,
7971,
29889,
2272,
13,
5215,
12655,
408,
7442,
29871,
13,
5215,
22889,
29889,
2272,
5317,
408,
14770,
13,
3166,
4560,
2272,
1053,
22663,
13,
13,
... |
test/unit/test_structures.py | piotr-rusin/spam-lists | 7 | 1617001 | <reponame>piotr-rusin/spam-lists
# -*- coding: utf-8 -*-
"""Tests for functions and classes defined in spam_lists.structures."""
from __future__ import unicode_literals
# pylint: disable=redefined-builtin
from builtins import str, range, object
from nose_parameterized import parameterized
from spam_lists.exceptions i... | [
1,
529,
276,
1112,
420,
29958,
1631,
25730,
29899,
15816,
262,
29914,
1028,
314,
29899,
21513,
13,
29937,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
24376,
363,
3168,
322,
4413,
3342,
297,
8... |
Turtle-Alpha.py | Space-Luis/Python_Turtle_Example | 0 | 173787 | <reponame>Space-Luis/Python_Turtle_Example<gh_stars>0
import turtle
T = turtle.Turtle()
T.shape("Turtle") #Turtle의 모양을 거북이로 지정
T.color("LightBlue") #색깔을 LightBlue로 변경
T.forward(100) #Turtle을 앞으로 100만큼 가도록 실행
T.circle(100) #Turtle을 반지름이 100이도록 원을 그림
| [
1,
529,
276,
1112,
420,
29958,
14936,
29899,
29931,
4664,
29914,
11980,
29918,
29911,
4227,
280,
29918,
14023,
29966,
12443,
29918,
303,
1503,
29958,
29900,
13,
5215,
260,
4227,
280,
30004,
13,
30004,
13,
29911,
353,
260,
4227,
280,
29889... |
main.py | Abhay420000/List-of-all-Files-and-Directories | 0 | 71658 | # -*- coding: utf-8 -*-
"""
Created on Sat May 1 18:26:28 2021
@author: abhay
version: 0.0.1
"""
import os,argparse
stack = []
'''
Stack is Used as a directory(folder/path) pointer due to its property of LIFO
It's last element is current directory Current Directory
'''
ipath = ''
'''
This is ... | [
1,
396,
448,
29930,
29899,
14137,
29901,
23616,
29899,
29947,
448,
29930,
29899,
30004,
13,
15945,
19451,
13,
20399,
373,
12178,
2610,
259,
29896,
29871,
29896,
29947,
29901,
29906,
29953,
29901,
29906,
29947,
29871,
29906,
29900,
29906,
2989... |
src/kgmk/cp/read_stdin.py | kagemeka/python | 0 | 1603593 | import typing
class ReadStdin:
def __call__(
self,
) -> bytes:
return next(self.__chunks)
def __init__(
self,
) -> typing.NoReturn:
import sys
self.__buf = (
sys.stdin.buffer
)
self.__chunks = (
self.__read_chunks()
)
def int(
self,
) -> int:
re... | [
1,
1053,
19229,
13,
13,
13,
13,
1990,
7523,
855,
24581,
29901,
13,
29871,
822,
4770,
4804,
12035,
13,
1678,
1583,
29892,
13,
29871,
1723,
1599,
6262,
29901,
13,
1678,
736,
2446,
29898,
1311,
17255,
305,
18801,
29897,
13,
268,
13,
13,
... |
chapter_13/pymail.py | bimri/programming_python | 0 | 12819 | "A Console-Based Email Client"
#!/usr/local/bin/python
"""
##########################################################################
pymail - a simple console email interface client in Python; uses Python
poplib module to view POP email messages, smtplib to send new mails, and
the email package to extract mail header... | [
1,
376,
29909,
9405,
29899,
29933,
1463,
22608,
12477,
29908,
13,
13,
29937,
14708,
4855,
29914,
2997,
29914,
2109,
29914,
4691,
13,
15945,
29908,
13,
13383,
13383,
13383,
13383,
7346,
2277,
13,
2272,
2549,
448,
263,
2560,
2991,
4876,
506... |
pyExpenses/RecManip.py | JasonLai256/pyExpenses | 1 | 184620 | #! /usr/bin/env python
# -*- coding:utf-8 -*-
"""
pyExpenses.RecManip
~~~~~~~~~~~~~~~~~~~
Implements the interface's object that manipulator of records for pyExpenses.
:copyright: (c) 2012 by <NAME>.
:license: BSD, see LICENSE for more details.
"""
from datetime import date, timedelta
from Confi... | [
1,
396,
29991,
847,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
448,
29930,
29899,
14137,
29901,
9420,
29899,
29947,
448,
29930,
29899,
13,
15945,
29908,
13,
1678,
11451,
9544,
11259,
29889,
4789,
2517,
666,
13,
1678,
3695,
26594,
26... |
docs/rips/tests/test_surfaces.py | OPM/ResInsight-UserDocumentation | 1 | 14297 | import sys
import os
import tempfile
from pathlib import Path
import pytest
sys.path.insert(1, os.path.join(sys.path[0], "../../"))
import rips
import dataroot
@pytest.mark.skipif(
sys.platform.startswith("linux"),
reason="Brugge is currently exceptionally slow on Linux",
)
def test_create_and_export_surfac... | [
1,
1053,
10876,
13,
5215,
2897,
13,
5215,
5694,
1445,
13,
3166,
2224,
1982,
1053,
10802,
13,
5215,
11451,
1688,
13,
13,
9675,
29889,
2084,
29889,
7851,
29898,
29896,
29892,
2897,
29889,
2084,
29889,
7122,
29898,
9675,
29889,
2084,
29961,
... |
old_code/app.1.py | LucasBiason/python521 | 0 | 112685 | <filename>old_code/app.1.py
import flask
import pymongo
client = pymongo.MongoClient()
db = client.users
app = flask.Flask(__name__)
IS_AUTH = False
@app.route('users/sign-in', methods=['GET', 'POST'])
def sign_in():
if flask.request.method == 'POST':
form = flask.request.form
user = db.usuarios... | [
1,
529,
9507,
29958,
1025,
29918,
401,
29914,
932,
29889,
29896,
29889,
2272,
13,
5215,
29784,
13,
5215,
282,
962,
7443,
13,
13,
4645,
353,
282,
962,
7443,
29889,
29924,
7443,
4032,
580,
13,
2585,
353,
3132,
29889,
7193,
13,
13,
932,
... |
code/df_basics.py | jrihds/pdat.github.io | 0 | 61647 | #!/usr/bin/env python
"""Basic operations on dataframes."""
import pandas as pd
# This script isn't for execution, just for notes
# explore the shape and contents of a dataframe
df.describe()
df.info()
df.shape
df.columns
df.index
df.head(10)
df.tail(10)
type(df)
# <class 'pandas.core.frame.DataFrame'>
type(df['a']... | [
1,
18787,
4855,
29914,
2109,
29914,
6272,
3017,
13,
15945,
29908,
16616,
6931,
373,
848,
19935,
1213,
15945,
13,
13,
5215,
11701,
408,
10518,
13,
13,
29937,
910,
2471,
3508,
29915,
29873,
363,
8225,
29892,
925,
363,
11486,
13,
13,
29937... |
BOJ_Solved/BOJ-19698.py | CodingLeeSeungHoon/Python_Algorithm_TeamNote | 7 | 13701 | """
백준 19698번 : 헛간 청약
"""
N, W, H, L = map(int, input().split())
print(min(W//L * H//L, N)) | [
1,
9995,
13,
31989,
239,
167,
131,
29871,
29896,
29929,
29953,
29929,
29947,
238,
181,
139,
584,
29871,
240,
154,
158,
237,
179,
135,
29871,
239,
181,
176,
239,
152,
192,
13,
15945,
29908,
13,
13,
29940,
29892,
399,
29892,
379,
29892,... |
src/transformers/models/bert/modeling_flax_bert.py | manuelciosici/transformers | 8,028 | 103049 | # coding=utf-8
# Copyright 2021 The Google Flax Team Authors and The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | [
1,
396,
14137,
29922,
9420,
29899,
29947,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
450,
5087,
383,
21222,
8583,
13189,
943,
322,
450,
379,
688,
3460,
23360,
9266,
29889,
3815,
29889,
13,
29937,
13,
29937,
10413,
21144,
1... |
hex-to-dec/eval.py | adiyen/jetson-projects | 0 | 37283 | # MIT License
# Copyright (c) 2019 JetsonHacks
# See license
# Using a CSI camera (such as the Raspberry Pi Version 2) connected to a
# NVIDIA Jetson Nano Developer Kit using OpenCV
# Drivers for the camera and OpenCV are included in the base image
from __future__ import print_function
import os
import argparse
impor... | [
1,
396,
341,
1806,
19245,
13,
29937,
14187,
1266,
313,
29883,
29897,
29871,
29906,
29900,
29896,
29929,
27804,
1100,
29950,
26514,
13,
29937,
2823,
19405,
13,
29937,
5293,
263,
315,
5425,
10656,
313,
14565,
408,
278,
390,
4692,
16344,
736... |
deep_hipsc_tracking/plotting/compartment_plot.py | JackToppen/deep-hipsc-tracking | 2 | 36448 | """ Plot data split by compartments
Classes:
* :py:class:`CompartmentPlot`: compartment plotting tool
"""
# Standard lib
from typing import Tuple, Optional, Dict
# 3rd party imports
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
# Our own imports
from .styling impo... | [
1,
9995,
18399,
848,
6219,
491,
29078,
1860,
13,
13,
27403,
29901,
13,
13,
29930,
584,
2272,
29901,
1990,
18078,
1523,
8076,
20867,
6998,
29078,
358,
6492,
1259,
5780,
13,
13,
15945,
29908,
13,
13,
29937,
10117,
4303,
13,
3166,
19229,
... |
process/LanesFrom2D.py | sameeptandon/sail-car-log | 1 | 180021 | <reponame>sameeptandon/sail-car-log<filename>process/LanesFrom2D.py<gh_stars>1-10
import bisect
import cv2
import glob
import numpy as np
import sys
from ArgParser import parse_args
from GPSReader import GPSReader
from GPSTransforms import IMUTransforms, absoluteTransforms
from LaneMarkingHelper import get_transforms,... | [
1,
529,
276,
1112,
420,
29958,
17642,
29872,
415,
9214,
29914,
29879,
737,
29899,
4287,
29899,
1188,
29966,
9507,
29958,
5014,
29914,
29931,
17297,
4591,
29906,
29928,
29889,
2272,
29966,
12443,
29918,
303,
1503,
29958,
29896,
29899,
29896,
... |
AMIS-30543 Example.py | capella-ben/microPython_AMIS-30543 | 0 | 173495 | # Wiring:
# Pico - AMIS-30543
# SPIO-RX - DO (4.7K pullup)
# SPIO-TX - DI
# SPIO-CSK - CLK
# 5 - CS
# 15 - NXT
# Ground - GND
#
# Also connect the motor power and the stepper driver.
from machine import Pin
import time
from AMIS30543 import AMIS30543
stepPin = 1... | [
1,
396,
399,
8491,
29901,
13,
29937,
349,
1417,
418,
448,
1678,
13862,
3235,
29899,
29941,
29900,
29945,
29946,
29941,
13,
29937,
317,
2227,
29949,
29899,
29934,
29990,
259,
448,
1678,
11662,
268,
313,
29946,
29889,
29955,
29968,
8206,
78... |
example_consumer/settings.py | open-craft/django-openid-auth | 11 | 129564 | # django-openid-auth - OpenID integration for django.contrib.auth
#
# Copyright (C) 2007 <NAME>
# Copyright (C) 2008-2013 Canonical Ltd.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source... | [
1,
396,
9557,
29899,
3150,
333,
29899,
5150,
448,
29871,
4673,
1367,
13465,
363,
9557,
29889,
21570,
29889,
5150,
13,
29937,
13,
29937,
14187,
1266,
313,
29907,
29897,
29871,
29906,
29900,
29900,
29955,
529,
5813,
29958,
13,
29937,
14187,
... |
alembic/dev_seeds.py | ryanmahan/police-data-trust | 0 | 52950 | <gh_stars>0
from backend.database.core import db
from backend.database import User, UserRole
from backend.auth import user_manager
from backend.database.models.incident import Incident
from backend.database.models.officer import Officer
from backend.database.models.use_of_force import UseOfForce
def create_user(user)... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
3166,
14998,
29889,
9803,
29889,
3221,
1053,
4833,
13,
3166,
14998,
29889,
9803,
1053,
4911,
29892,
4911,
16727,
13,
3166,
14998,
29889,
5150,
1053,
1404,
29918,
12847,
13,
3166,
14998,
2... |
deepff/process.py | JunboLu/CP2K_kit | 16 | 41987 | #! /usr/env/bin python
import os
import linecache
import numpy as np
from collections import OrderedDict
from CP2K_kit.tools import call
from CP2K_kit.tools import data_op
from CP2K_kit.tools import file_tools
from CP2K_kit.tools import read_input
from CP2K_kit.tools import traj_info
from CP2K_kit.deepff import load_d... | [
1,
396,
29991,
847,
4855,
29914,
6272,
29914,
2109,
3017,
13,
13,
5215,
2897,
13,
5215,
1196,
8173,
13,
5215,
12655,
408,
7442,
13,
3166,
16250,
1053,
8170,
287,
21533,
13,
3166,
28505,
29906,
29968,
29918,
7354,
29889,
8504,
1053,
1246... |
project/evaluate/views.py | ktzoulas/stateless-password-manager | 0 | 47157 | """
Contains the views of the 'evaluate' blueprint.
"""
# pylint: disable=invalid-name
from flask import Blueprint, render_template, request
from project.evaluate.forms import EvaluateForm
from project.evaluate.helpers import evaluate_pass
evaluate_blueprint = Blueprint('evaluate', __name__, url_prefix='/evaluate... | [
1,
9995,
13,
1678,
2866,
2708,
278,
8386,
310,
278,
525,
24219,
403,
29915,
7254,
2158,
29889,
13,
15945,
29908,
13,
29937,
282,
2904,
524,
29901,
11262,
29922,
20965,
29899,
978,
13,
13,
3166,
29784,
1053,
10924,
2158,
29892,
4050,
299... |
iologik/e2210.py | shannon-jia/iologik | 0 | 15627 | import aiohttp
import asyncio
import async_timeout
import logging
from collections import namedtuple, deque
from .events import Events
from html.parser import HTMLParser
log = logging.getLogger(__name__)
class Parser(HTMLParser):
def handle_starttag(self, tag, attrs):
log.debug("Encountered a start tag:... | [
1,
1053,
263,
601,
1124,
13,
5215,
408,
948,
3934,
13,
5215,
7465,
29918,
15619,
13,
5215,
12183,
13,
3166,
16250,
1053,
4257,
23583,
29892,
316,
802,
13,
3166,
869,
13604,
1053,
28488,
13,
13,
3166,
3472,
29889,
16680,
1053,
4544,
11... |
mission/constants/teagle.py | cuauv/software | 70 | 51976 | from mission.constants.missions import Gate, Path
from conf.vehicle import is_mainsub
HYDROPHONES_PINGER_DEPTH = 3.0
NONSURFACE_MIN_DEPTH = 0.6
# gate = Gate(
# depth=1.0,
# initial_approach_target_percent_of_screen=.45,
# gate_width_threshold=0.4,
# pre_spin_charge_dist=16 if is_mainsub else 12,
# ... | [
1,
515,
10655,
29889,
3075,
1934,
29889,
29885,
6847,
1053,
22510,
29892,
10802,
13,
13,
3166,
1970,
29889,
345,
29882,
2512,
1053,
338,
29918,
3396,
1491,
13,
13,
29950,
29979,
29928,
1672,
19689,
1164,
2890,
29918,
29925,
4214,
1001,
29... |
built-in/MindSpore/Official/cv/detection/MaskRCNN_for_MindSpore/infer/sdk/main.py | Ascend/modelzoo | 12 | 69935 | <gh_stars>10-100
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29896,
29900,
29899,
29896,
29900,
29900,
13,
29937,
14187,
1266,
29871,
29906,
29900,
29906,
29896,
379,
3357,
26599,
8364,
11763,
3189,
1696,
19806,
13,
29937,
13,
29937,
10413,
21144,
1090,
278,
13... |
setup.py | acocac/scivision-test-plugin | 0 | 193317 | <gh_stars>0
#!/usr/bin/env python
from setuptools import find_packages, setup
requirements = []
with open("requirements.txt") as f:
for line in f:
stripped = line.split("#")[0].strip()
if len(stripped) > 0:
requirements.append(stripped)
setup(
name="scivision_test_plugin",
vers... | [
1,
529,
12443,
29918,
303,
1503,
29958,
29900,
13,
29937,
14708,
4855,
29914,
2109,
29914,
6272,
3017,
13,
3166,
731,
21245,
8789,
1053,
1284,
29918,
8318,
29892,
6230,
13,
13,
12277,
1860,
353,
5159,
13,
2541,
1722,
703,
12277,
1860,
2... |
ssd/modeling/backbone/backbone_cfg.py | xu-peng-tao/SSD-Pruning-and-quantization | 19 | 46336 | # !/usr/bin/env python
# coding:utf-8
# Author:XuPengTao
# Date: 2020/3/14
from ssd.layers import L2Norm
import torch.nn.functional as F
import torch.nn as nn
import torch
from ssd.modeling import registry
import os
import quantization.WqAq.dorefa.models.util_wqaq as dorefa
import quantization.WqAq.IAO.models.util_wqaq... | [
1,
396,
1738,
29914,
4855,
29914,
2109,
29914,
6272,
3017,
13,
29937,
14137,
29901,
9420,
29899,
29947,
13,
29937,
13361,
29901,
29990,
29884,
29925,
996,
29911,
6241,
13,
29937,
4712,
29901,
29871,
29906,
29900,
29906,
29900,
29914,
29941,
... |
vlcp/service/connection/tcpserver.py | geek-plus/vlcp | 1 | 20546 | <filename>vlcp/service/connection/tcpserver.py
'''
Created on 2015/10/19
:author: hubo
'''
from vlcp.server.module import Module, api
from vlcp.event import TcpServer
from vlcp.event.runnable import RoutineContainer
from vlcp.event.connection import Client
class TcpServerBase(Module):
'''
Generic tcp server o... | [
1,
529,
9507,
29958,
20901,
6814,
29914,
5509,
29914,
9965,
29914,
14246,
567,
261,
369,
29889,
2272,
13,
12008,
13,
20399,
373,
29871,
29906,
29900,
29896,
29945,
29914,
29896,
29900,
29914,
29896,
29929,
13,
13,
29901,
8921,
29901,
19766,... |
formapi/urls.py | reduxionist/django-formapi | 3 | 73787 | <filename>formapi/urls.py
# coding=utf-8
from . import views
from .api import API
from .compat import patterns, url
urlpatterns = patterns(
'',
url(r'discover/$', views.discover, name='api_discover'),
url(r'call/(?P<version>.+)/(?P<namespace>\w+)/(?P<call_name>\w+)/$',
views.call, name='api_call')... | [
1,
529,
9507,
29958,
689,
2754,
29914,
26045,
29889,
2272,
13,
29937,
14137,
29922,
9420,
29899,
29947,
13,
3166,
869,
1053,
8386,
13,
3166,
869,
2754,
1053,
3450,
13,
3166,
869,
12667,
1053,
15038,
29892,
3142,
13,
13,
13,
2271,
11037,... |
hello/views.py | CupOfJoe-L/python-docs-hello-django | 0 | 45889 | <reponame>CupOfJoe-L/python-docs-hello-django
from django.http import HttpResponse
from django.shortcuts import render
def hello(request):
return HttpResponse("Hello, World! And everyone out there! This is the Django Version of the App I'm trying to Deploy.")
| [
1,
529,
276,
1112,
420,
29958,
29907,
786,
2776,
29967,
7297,
29899,
29931,
29914,
4691,
29899,
2640,
29899,
12199,
29899,
14095,
13,
3166,
9557,
29889,
1124,
1053,
9056,
5103,
13,
3166,
9557,
29889,
12759,
7582,
29879,
1053,
4050,
13,
13... |
util.py | majora2007/easy-java | 1 | 159680 | import re
from collections import Counter
from re import split
from os import chdir, environ
from os.path import join, dirname
import sys
def pyinstaller_get_full_path(filename):
""" If bundling files in onefile with pyinstaller, use thise to get the temp directory where file actually resides """
if hasattr(s... | [
1,
1053,
337,
13,
3166,
16250,
1053,
315,
5336,
13,
3166,
337,
1053,
6219,
13,
13,
3166,
2897,
1053,
521,
3972,
29892,
12471,
13,
3166,
2897,
29889,
2084,
1053,
5988,
29892,
4516,
978,
13,
5215,
10876,
13,
13,
1753,
11451,
6252,
261,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.