repo_name stringlengths 7 94 | repo_path stringlengths 4 237 | repo_head_hexsha stringlengths 40 40 | content stringlengths 10 680k | apis stringlengths 2 680k |
|---|---|---|---|---|
KATO-Hiro/AtCoder | Others/code_festival/code-festival-2015-final-open/a.py | cbbdb18e95110b604728a54aed83a6ed6b993fde | # -*- coding: utf-8 -*-
def main():
s, t, u = map(str, input().split())
if len(s) == 5 and len(t) == 7 and len(u) == 5:
print('valid')
else:
print('invalid')
if __name__ == '__main__':
main()
| [] |
Zzz-ww/Python-prac | python_Project/Day_16-20/test_2.py | c97f2c16b74a2c1df117f377a072811cc596f98b | """
嵌套的列表的坑
"""
names = ['关羽', '张飞', '赵云', '马超', '黄忠']
courses = ['语文', '数学', '英语']
# 录入五个学生三门课程的成绩
scores = [[None] * len(courses) for _ in range(len(names))]
for row, name in enumerate(names):
for col, course in enumerate(courses):
scores[row][col] = float(input(f'请输入{name}的{course}的成绩:'))
print... | [] |
Z-yq/audioSamples.github.io | asr/dataloaders/am_dataloader.py | 53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3 | import logging
import random
import numpy as np
import pypinyin
import tensorflow as tf
from augmentations.augments import Augmentation
from utils.speech_featurizers import SpeechFeaturizer
from utils.text_featurizers import TextFeaturizer
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(le... | [((243, 350), 'logging.basicConfig', 'logging.basicConfig', ([], {'level': 'logging.INFO', 'format': '"""%(asctime)s - %(name)s - %(levelname)s - %(message)s"""'}), "(level=logging.INFO, format=\n '%(asctime)s - %(name)s - %(levelname)s - %(message)s')\n", (262, 350), False, 'import logging\n'), ((971, 1007), 'utils... |
AlexKouzy/ethnicity-facts-and-figures-publisher | migrations/versions/2018_04_20_data_src_refactor.py | 18ab2495a8633f585e18e607c7f75daa564a053d | """empty message
Revision ID: 2018_04_20_data_src_refactor
Revises: 2018_04_11_add_sandbox_topic
Create Date: 2018-04-20 13:03:32.478880
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
from sqlalchemy.dialects.postgresql import ARRAY
revision = '2018_04_20_data_src_refac... | [((520, 582), 'sqlalchemy.Enum', 'sa.Enum', (['"""ADMINISTRATIVE"""', '"""SURVEY"""'], {'name': '"""type_of_data_types"""'}), "('ADMINISTRATIVE', 'SURVEY', name='type_of_data_types')\n", (527, 582), True, 'import sqlalchemy as sa\n'), ((1113, 1126), 'alembic.op.get_bind', 'op.get_bind', ([], {}), '()\n', (1124, 1126), ... |
vikas-kundu/phonedict | lib/core/parse/cmdline.py | 6795cab0024e792340c43d95552162a985b891f6 | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# coded by Vikas Kundu https://github.com/vikas-kundu
# -------------------------------------------
import sys
import getopt
import time
import config
from lib.core.parse import banner
from lib.core import util
from lib.core import installer
def options():
... | [((377, 495), 'getopt.getopt', 'getopt.getopt', (['argv', '"""m:t:c:o:n:whi"""', "['mode', 'task', 'country', 'output', 'number', 'wizard', 'help', 'install']"], {}), "(argv, 'm:t:c:o:n:whi', ['mode', 'task', 'country', 'output',\n 'number', 'wizard', 'help', 'install'])\n", (390, 495), False, 'import getopt\n'), ((... |
shubhamdang/mistral | mistral/tests/unit/utils/test_utils.py | 3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d | # Copyright 2013 - Mirantis, Inc.
# Copyright 2015 - StackStorm, Inc.
# Copyright 2015 - 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:/... | [((1498, 1576), 'mistral.utils.ssh_utils._to_paramiko_private_key', 'ssh_utils._to_paramiko_private_key', ([], {'private_key_filename': 'None', 'password': '"""pass"""'}), "(private_key_filename=None, password='pass')\n", (1532, 1576), False, 'from mistral.utils import ssh_utils\n'), ((1099, 1123), 'mistral_lib.utils.i... |
scls19fr/shoutcast_api | shoutcast_api/shoutcast_request.py | 89a9e826b82411ae5f24ea28e1b1cb22eaaa0890 | import xmltodict
import json
from .models import Tunein
from .utils import _init_session
from .Exceptions import APIException
base_url = 'http://api.shoutcast.com'
tunein_url = 'http://yp.shoutcast.com/{base}?id={id}'
tuneins = [Tunein('/sbin/tunein-station.pls'), Tunein('/sbin/tunein-station.m3u'), Tunein('/sbin/tun... | [((604, 637), 'xmltodict.parse', 'xmltodict.parse', (['response.content'], {}), '(response.content)\n', (619, 637), False, 'import xmltodict\n')] |
amp89/django-app-permissions | django_app_permissions/management/commands/resolve_app_groups.py | 11f576d2118f5b73fdbefa0675acc3374a5a9749 | from django.core.management.base import BaseCommand, no_translations
from django.contrib.auth.models import Group
from django.conf import settings
import sys
class Command(BaseCommand):
def handle(self, *args, **options):
sys.stdout.write("\nResolving app groups")
app_list = [app_name.lower... | [((243, 288), 'sys.stdout.write', 'sys.stdout.write', (['"""\nResolving app groups"""'], {}), '("""\nResolving app groups""")\n', (259, 288), False, 'import sys\n'), ((559, 581), 'sys.stdout.write', 'sys.stdout.write', (['"""\n"""'], {}), "('\\n')\n", (575, 581), False, 'import sys\n'), ((438, 480), 'django.contrib.aut... |
sunzz679/swift-2.4.0--source-read | swift/common/db.py | 64355268da5265440f5f7e8d280dd8cd4c2cf2a2 | # Copyright (c) 2010-2012 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [] |
mcrav/xdl | xdl/utils/prop_limits.py | c120a1cf50a9b668a79b118700930eb3d60a9298 | """Prop limits are used to validate the input given to xdl elements. For
example, a volume property should be a positive number, optionally followed by
volume units. The prop limit is used to check that input supplied is valid for
that property.
"""
import re
from typing import List, Optional
class PropLimit(object):... | [((2535, 2562), 're.match', 're.match', (['self.regex', 'value'], {}), '(self.regex, value)\n', (2543, 2562), False, 'import re\n')] |
leoalfonso/dit | dit/utils/bindargs.py | e7d5f680b3f170091bb1e488303f4255eeb11ef4 | """
Provides usable args and kwargs from inspect.getcallargs.
For Python 3.3 and above, this module is unnecessary and can be achieved using
features from PEP 362:
http://www.python.org/dev/peps/pep-0362/
For example, to override a parameter of some function:
>>> import inspect
>>> def func(a, b=1, c=2,... | [((2471, 2505), 'inspect.getcallargs', 'getcallargs', (['func', '*args'], {}), '(func, *args, **kwargs)\n', (2482, 2505), False, 'from inspect import getcallargs\n'), ((2517, 2537), 'inspect.getfullargspec', 'getfullargspec', (['func'], {}), '(func)\n', (2531, 2537), False, 'from inspect import getfullargspec\n'), ((35... |
AmyYLee/gaia | tests/python/gaia-ui-tests/gaiatest/gaia_test.py | a5dbae8235163d7f985bdeb7d649268f02749a8b | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import json
import os
import sys
import time
from marionette import MarionetteTestCase
from marionette.by import By
fro... | [] |
certik/pyjamas | library/__mozilla__/pyjamas/DOM.py | 5bb72e63e50f09743ac986f4c9690ba50c499ba9 | def buttonClick(button):
JS("""
var doc = button.ownerDocument;
if (doc != null) {
var evt = doc.createEvent('MouseEvents');
evt.initMouseEvent('click', true, true, null, 0, 0,
0, 0, 0, false, false, false, false, 0, null);
button.d... | [] |
ExpoAshique/ProveBanking__s | apps/vendors/migrations/0090_auto_20160610_2125.py | f0b45fffea74d00d14014be27aa50fe5f42f6903 | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-10 21:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vendors', '0089_auto_20160602_2123'),
]
operations = [
migrations.AlterField... | [((399, 466), 'django.db.models.EmailField', 'models.EmailField', ([], {'blank': '(True)', 'max_length': '(254)', 'verbose_name': '"""Email"""'}), "(blank=True, max_length=254, verbose_name='Email')\n", (416, 466), False, 'from django.db import migrations, models\n')] |
fujihiraryo/library | graph/articulation_points.py | cdb01e710219d7111f890d09f89531916dd03533 | from depth_first_search import DFS
def articulation_points(graph):
n = len(graph)
dfs = DFS(graph)
order = [None] * n
for i, x in enumerate(dfs.preorder):
order[x] = i
lower = order[:]
for x in dfs.preorder[::-1]:
for y in graph[x]:
if y == dfs.parent[x]:
... | [((98, 108), 'depth_first_search.DFS', 'DFS', (['graph'], {}), '(graph)\n', (101, 108), False, 'from depth_first_search import DFS\n')] |
AndreAngelucci/popcorn_time_bot | database.py | 710b77b59d6c62569c1bf6984c7cf9adac8ea840 | import pymongo
from conf import Configuracoes
class Mongo_Database:
""" Singleton com a conexao com o MongoDB """
_instancia = None
def __new__(cls, *args, **kwargs):
if not(cls._instancia):
cls._instancia = super(Mongo_Database, cls).__new__(cls, *args, **kwargs)
return cls._in... | [((615, 650), 'pymongo.MongoClient', 'pymongo.MongoClient', (['string_conexao'], {}), '(string_conexao)\n', (634, 650), False, 'import pymongo\n'), ((440, 455), 'conf.Configuracoes', 'Configuracoes', ([], {}), '()\n', (453, 455), False, 'from conf import Configuracoes\n')] |
JorisHerbots/niip_iot_zombie_apocalypse | sensor_core/sleep.py | 3ff848f3dab1dde9d2417d0a2c56a76a85e18920 | import machine
import pycom
import utime
from exceptions import Exceptions
class Sleep:
@property
def wakeReason(self):
return machine.wake_reason()[0]
@property
def wakePins(self):
return machine.wake_reason()[1]
@property
def powerOnWake(self):
return... | [((1124, 1140), 'utime.ticks_ms', 'utime.ticks_ms', ([], {}), '()\n', (1138, 1140), False, 'import utime\n'), ((1534, 1570), 'pycom.nvs_get', 'pycom.nvs_get', (['Sleep.ACTIVE_TIME_KEY'], {}), '(Sleep.ACTIVE_TIME_KEY)\n', (1547, 1570), False, 'import pycom\n'), ((1602, 1640), 'pycom.nvs_get', 'pycom.nvs_get', (['Sleep.I... |
Supermaxman/pytorch-gleam | pytorch_gleam/search/rerank_format.py | 8b0d8dddc812e8ae120c9760fd44fe93da3f902d |
import torch
import argparse
from collections import defaultdict
import os
import json
def load_predictions(input_path):
pred_list = []
for file_name in os.listdir(input_path):
if file_name.endswith('.pt'):
preds = torch.load(os.path.join(input_path, file_name))
pred_list.extend(preds)
question_scores = ... | [((158, 180), 'os.listdir', 'os.listdir', (['input_path'], {}), '(input_path)\n', (168, 180), False, 'import os\n'), ((873, 898), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {}), '()\n', (896, 898), False, 'import argparse\n'), ((1193, 1222), 'json.dump', 'json.dump', (['question_scores', 'f'], {}), '(qu... |
LeonardoPereirajr/Curso_em_video_Python | des036.py | 9d8a97ba3389c8e86b37dfd089fab5d04adc146d | casa = int(input('Qual o valor da casa? '))
sal = int(input('Qual seu salario? '))
prazo = int(input('Quantos meses deseja pagar ? '))
parcela = casa/prazo
margem = sal* (30/100)
if parcela > margem:
print('Este negocio não foi aprovado, aumente o prazo .')
else:
print("Negocio aprovado pois a parcela é... | [] |
SukhadaM/HackBit-Interview-Preparation-Portal | HackBitApp/migrations/0003_roadmap.py | f4c6b0d7168a4ea4ffcf1569183b1614752d9946 | # Generated by Django 3.1.7 on 2021-03-27 18:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('HackBitApp', '0002_company_photo'),
]
operations = [
migrations.CreateModel(
name='Roadmap',
fields=[
... | [((329, 422), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n verbose_name='ID')\n", (345, 422), False, 'from django.db import migrations, models\... |
Romit-Maulik/Tutorials-Demos-Practice | Other_Python/Kernel_Methods/matrix_operations.py | a58ddc819f24a16f7059e63d7f201fc2cd23e03a | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 22 14:36:48 2020
@author: matth
"""
import autograd.numpy as np
#%% Kernel operations
# Returns the norm of the pairwise difference
def norm_matrix(matrix_1, matrix_2):
norm_square_1 = np.sum(np.square(matrix_1), axis = 1)
norm_square_1 = np.reshape(norm_square_... | [((297, 331), 'autograd.numpy.reshape', 'np.reshape', (['norm_square_1', '(-1, 1)'], {}), '(norm_square_1, (-1, 1))\n', (307, 331), True, 'import autograd.numpy as np\n'), ((414, 448), 'autograd.numpy.reshape', 'np.reshape', (['norm_square_2', '(-1, 1)'], {}), '(norm_square_2, (-1, 1))\n', (424, 448), True, 'import aut... |
meyerweb/wpt | cors/resources/cors-makeheader.py | f04261533819893c71289614c03434c06856c13e | import json
from wptserve.utils import isomorphic_decode
def main(request, response):
origin = request.GET.first(b"origin", request.headers.get(b'origin') or b'none')
if b"check" in request.GET:
token = request.GET.first(b"token")
value = request.server.stash.take(token)
if value is n... | [((2260, 2279), 'json.dumps', 'json.dumps', (['headers'], {}), '(headers)\n', (2270, 2279), False, 'import json\n'), ((2049, 2077), 'wptserve.utils.isomorphic_decode', 'isomorphic_decode', (['values[0]'], {}), '(values[0])\n', (2066, 2077), False, 'from wptserve.utils import isomorphic_decode\n'), ((2022, 2045), 'wptse... |
wlfyit/PiLightsLib | device_osc_grid.py | 98e39af45f05d0ee44e2f166de5b654d58df33ae | #!/usr/bin/env python3
from pythonosc import osc_bundle_builder
from pythonosc import osc_message_builder
from pythonosc import udp_client
from .device import DeviceObj
# OSC Grid Object
class OSCGrid(DeviceObj):
def __init__(self, name, width, height, ip, port, bri=1):
DeviceObj.__init__(self, name, "os... | [((420, 456), 'pythonosc.udp_client.SimpleUDPClient', 'udp_client.SimpleUDPClient', (['ip', 'port'], {}), '(ip, port)\n', (446, 456), False, 'from pythonosc import udp_client\n'), ((881, 919), 'pythonosc.osc_bundle_builder.OscBundleBuilder', 'osc_bundle_builder.OscBundleBuilder', (['(0)'], {}), '(0)\n', (916, 919), Fal... |
StevenSume/EasyCMDB | main/models.py | c2c44c9efe2de2729659d81ef886abff242ac1c5 | from .app import db
class Project(db.Model):
__tablename__ = 'projects'
id = db.Column(db.Integer,primary_key=True,autoincrement=True)
project_name = db.Column(db.String(64),unique=True,index=True)
def to_dict(self):
mydict = {
'id': self.id,
'project_name': self.projec... | [] |
iron-io/iron_cache_python | test.py | f68f5a5e216e3189397ffd7d243de0d53bf7c764 | from iron_cache import *
import unittest
import requests
class TestIronCache(unittest.TestCase):
def setUp(self):
self.cache = IronCache("test_cache")
def test_get(self):
self.cache.put("test_item", "testing")
item = self.cache.get("test_item")
self.assertEqual(item.value, "te... | [((1258, 1273), 'unittest.main', 'unittest.main', ([], {}), '()\n', (1271, 1273), False, 'import unittest\n')] |
sebasmurphy/iarpa | lib_exec/StereoPipeline/libexec/asp_image_utils.py | aca39cc5390a153a9779a636ab2523e65cb6d3b0 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# __BEGIN_LICENSE__
# Copyright (c) 2009-2013, United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration. All
# rights reserved.
#
# The NGT platform is licensed under the Apache License, Version 2.0 (the
# "Lic... | [] |
leipzig/gatk-sv | src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py | 96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a | #!/usr/bin/env python
import argparse
DELIMITER = "\t"
def merge(genotypes_filename, gq_filename, merged_filename):
with open(genotypes_filename, "r") as genotypes, open(gq_filename, "r") as gq, open(merged_filename, "w") as merged:
# Integrity check: do the files have same columns?
genotypes_... | [((1257, 1360), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '__doc__', 'formatter_class': 'argparse.RawDescriptionHelpFormatter'}), '(description=__doc__, formatter_class=argparse.\n RawDescriptionHelpFormatter)\n', (1280, 1360), False, 'import argparse\n')] |
fidelisrafael/esperanto-analyzer | esperanto_analyzer/web/__init__.py | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | from .api.server import run_app
| [] |
CSID-DGU/2021-2-OSSP2-TwoRolless-2 | crawling/sns/main.py | e9381418e3899d8e1e78415e9ab23b73b4f30a95 | import tweepy
import traceback
import time
import pymongo
from tweepy import OAuthHandler
from pymongo import MongoClient
from pymongo.cursor import CursorType
twitter_consumer_key = ""
twitter_consumer_secret = ""
twitter_access_token = ""
twitter_access_secret = ""
auth = OAuthHandler(twitter_consumer_key, twitter_... | [((277, 336), 'tweepy.OAuthHandler', 'OAuthHandler', (['twitter_consumer_key', 'twitter_consumer_secret'], {}), '(twitter_consumer_key, twitter_consumer_secret)\n', (289, 336), False, 'from tweepy import OAuthHandler\n'), ((410, 426), 'tweepy.API', 'tweepy.API', (['auth'], {}), '(auth)\n', (420, 426), False, 'import tw... |
jepabe/Demo_earth2 | demos/interactive-classifier/config.py | ab20c3a9114904219688b16f8a1273e68927e6f9 | #!/usr/bin/env python
"""Handles Earth Engine service account configuration."""
import ee
# The service account email address authorized by your Google contact.
# Set up a service account as described in the README.
EE_ACCOUNT = 'your-service-account-id@developer.gserviceaccount.com'
# The private key associated wit... | [((636, 697), 'ee.ServiceAccountCredentials', 'ee.ServiceAccountCredentials', (['EE_ACCOUNT', 'EE_PRIVATE_KEY_FILE'], {}), '(EE_ACCOUNT, EE_PRIVATE_KEY_FILE)\n', (664, 697), False, 'import ee\n')] |
Neo-sunny/pythonProgs | PythonScripting/NumbersInPython.py | a9d2359d8a09d005d0ba6f94d7d256bf91499793 | """
Demonstration of numbers in Python
"""
# Python has an integer type called int
print("int")
print("---")
print(0)
print(1)
print(-3)
print(70383028364830)
print("")
# Python has a real number type called float
print("float")
print("-----")
print(0.0)
print(7.35)
print(-43.2)
print("")
# Limited precision
print... | [] |
JoZimmer/Beam-Models | 3DBeam/source/solving_strategies/strategies/linear_solver.py | e701c0bae6e3035e7a07cc590da4a132b133dcff | from source.solving_strategies.strategies.solver import Solver
class LinearSolver(Solver):
def __init__(self,
array_time, time_integration_scheme, dt,
comp_model,
initial_conditions,
force,
structure_model):
super().__ini... | [] |
Littledelma/mofadog | payment/migrations/0002_auto_20171125_0022.py | 5a7c6672da248e400a8a5746506a6e7b273c9510 | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-24 16:22
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('payment', '0001_initial'),
]
... | [((483, 545), 'datetime.datetime', 'datetime.datetime', (['(2017)', '(11)', '(24)', '(16)', '(22)', '(1)', '(719840)'], {'tzinfo': 'utc'}), '(2017, 11, 24, 16, 22, 1, 719840, tzinfo=utc)\n', (500, 545), False, 'import datetime\n'), ((734, 796), 'datetime.datetime', 'datetime.datetime', (['(2017)', '(11)', '(24)', '(16)... |
NathanHowell/sqlfluff | src/sqlfluff/rules/L024.py | 9eb30226d77727cd613947e144a0abe483151f18 | """Implementation of Rule L024."""
from sqlfluff.core.rules.doc_decorators import document_fix_compatible
from sqlfluff.rules.L023 import Rule_L023
@document_fix_compatible
class Rule_L024(Rule_L023):
"""Single whitespace expected after USING in JOIN clause.
| **Anti-pattern**
.. code-block:: sql
... | [] |
mikeireland/chronostar | projects/scocen/cmd_components_simple.py | fcf37614e1d145f3a5e265e54512bf8cd98051a0 | """
Plot CMDs for each component.
"""
import numpy as np
from astropy.table import Table
import matplotlib.pyplot as plt
import matplotlib.cm as cm
plt.ion()
# Pretty plots
from fig_settings import *
############################################
# Some things are the same for all the plotting scripts and we put
# thi... | [((149, 158), 'matplotlib.pyplot.ion', 'plt.ion', ([], {}), '()\n', (156, 158), True, 'import matplotlib.pyplot as plt\n'), ((1275, 1292), 'numpy.poly1d', 'np.poly1d', (['fitpar'], {}), '(fitpar)\n', (1284, 1292), True, 'import numpy as np\n'), ((1297, 1319), 'numpy.linspace', 'np.linspace', (['(1)', '(4)', '(100)'], {... |
rhlahuja/snowflake-connector-python | test/test_cursor_binding.py | 6abc56c970cdb698a833b7f6ac9cbe7dfa667abd | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2018 Snowflake Computing Inc. All right reserved.
#
import pytest
from snowflake.connector.errors import (ProgrammingError)
def test_binding_security(conn_cnx, db_parameters):
"""
SQL Injection Tests
"""
try:
with conn_cnx()... | [((1537, 1568), 'pytest.raises', 'pytest.raises', (['ProgrammingError'], {}), '(ProgrammingError)\n', (1550, 1568), False, 'import pytest\n'), ((1778, 1809), 'pytest.raises', 'pytest.raises', (['ProgrammingError'], {}), '(ProgrammingError)\n', (1791, 1809), False, 'import pytest\n'), ((5052, 5083), 'pytest.raises', 'py... |
hectormartinez/rougexstem | taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py | 32da9eab253cb88fc1882e59026e8b5b40900a25 | # Natural Language Toolkit: Language Models
#
# Copyright (C) 2001-2008 University of Pennsylvania
# Author: Steven Bird <sb@csse.unimelb.edu.au>
# URL: <http://nltk.sf.net>
# For license information, see LICENSE.TXT
class ModelI(object):
"""
A processing interface for assigning a probability to the next word.... | [] |
JovaniPink/flask-apps | flask-graphene-sqlalchemy/models.py | de887f15261c286986cf38d234d49f7e4eb79c1a | import os
from graphene_sqlalchemy import SQLAlchemyObjectType
from sqlalchemy import Column, Integer, String, create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
POSTGRES_CONNECTION_STRING = (
os.environ.get("POSTGRES_CONNECTION_STRING")
... | [((392, 455), 'sqlalchemy.create_engine', 'create_engine', (['POSTGRES_CONNECTION_STRING'], {'convert_unicode': '(True)'}), '(POSTGRES_CONNECTION_STRING, convert_unicode=True)\n', (405, 455), False, 'from sqlalchemy import Column, Integer, String, create_engine\n'), ((559, 577), 'sqlalchemy.ext.declarative.declarative_... |
sean-mackenzie/curlypiv | curlypiv/synthetics/microsig.py | 21c96c1bb1ba2548c4d5bebb389eb66ff58f851d | # microsig
"""
Author: Maximilliano Rossi
More detail about the MicroSIG can be found at:
Website:
https://gitlab.com/defocustracking/microsig-python
Publication:
Rossi M, Synthetic image generator for defocusing and astigmatic PIV/PTV, Meas. Sci. Technol., 31, 017003 (2020)
DOI:10.1088/1361-6501/ab42bb.
"... | [((4197, 4204), 'tkinter.Tk', 'tk.Tk', ([], {}), '()\n', (4202, 4204), True, 'import tkinter as tk\n'), ((4283, 4415), 'tkinter.filedialog.askopenfilenames', 'filedialog.askopenfilenames', ([], {'title': '"""Select settings file"""', 'parent': 'root', 'filetypes': "(('txt files', '*.txt'), ('all files', '*.*'))"}), "(t... |
kmiya/AutowareArchitectureProposal.iv | planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py | 386b52c9cc90f4535ad833014f2f9500f0e64ccf | # Copyright 2020 Tier IV, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [] |
agokhale11/test2 | main/forms.py | deddf17e7bb67777251cf73cbdb5f6970c16050a | from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
from django.contrib.auth.models import User
from django import forms
class UploadFileForm(forms.Form):
title = forms.CharField(max_length=50)
file = forms.FileField()
# If you don't do this you cannot use Bootstrap CSS
class LoginFor... | [((192, 222), 'django.forms.CharField', 'forms.CharField', ([], {'max_length': '(50)'}), '(max_length=50)\n', (207, 222), False, 'from django import forms\n'), ((234, 251), 'django.forms.FileField', 'forms.FileField', ([], {}), '()\n', (249, 251), False, 'from django import forms\n'), ((445, 513), 'django.forms.TextInp... |
PythonProgramming/Pandas-Basics-with-2.7 | pandas 9 - Statistics Information on data sets.py | a6ecd5ac7c25dba83e934549903f229de89290d3 | import pandas as pd
from pandas import DataFrame
df = pd.read_csv('sp500_ohlc.csv', index_col = 'Date', parse_dates=True)
df['H-L'] = df.High - df.Low
# Giving us count (rows), mean (avg), std (standard deviation for the entire
# set), minimum for the set, maximum for the set, and some %s in that range.
print( df.des... | [((55, 120), 'pandas.read_csv', 'pd.read_csv', (['"""sp500_ohlc.csv"""'], {'index_col': '"""Date"""', 'parse_dates': '(True)'}), "('sp500_ohlc.csv', index_col='Date', parse_dates=True)\n", (66, 120), True, 'import pandas as pd\n'), ((1602, 1632), 'datetime.datetime', 'datetime.datetime', (['(2011)', '(10)', '(1)'], {})... |
songdaegeun/school-zone-enforcement-system | working/tkinter_widget/test.py | b5680909fd5a348575563534428d2117f8dc2e3f | import cv2
import numpy as np
import threading
def test():
while 1:
img1=cv2.imread('captured car1.jpg')
print("{}".format(img1.shape))
print("{}".format(img1))
cv2.imshow('asd',img1)
cv2.waitKey(1)
t1 = threading.Thread(target=test)
t1.start()
| [((250, 279), 'threading.Thread', 'threading.Thread', ([], {'target': 'test'}), '(target=test)\n', (266, 279), False, 'import threading\n'), ((86, 117), 'cv2.imread', 'cv2.imread', (['"""captured car1.jpg"""'], {}), "('captured car1.jpg')\n", (96, 117), False, 'import cv2\n'), ((198, 221), 'cv2.imshow', 'cv2.imshow', (... |
aristanetworks/ceilometer | ceilometer/compute/virt/hyperv/utilsv2.py | 8776b137f82f71eef1241bcb1600de10c1f77394 | # Copyright 2013 Cloudbase Solutions Srl
#
# Author: Claudiu Belu <cbelu@cloudbasesolutions.com>
# Alessandro Pilotti <apilotti@cloudbasesolutions.com>
#
# 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 o... | [((1131, 1158), 'ceilometer.openstack.common.log.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (1148, 1158), True, 'from ceilometer.openstack.common import log as logging\n'), ((2349, 2402), 'wmi.WMI', 'wmi.WMI', ([], {'moniker': "('//%s/root/virtualization/v2' % host)"}), "(moniker='//%s/root/vi... |
cajones314/avocd2019 | src/cli.py | 268e03c5d1bb5b3e14459b831916bb7846f40def | # system
from io import IOBase, StringIO
import os
# 3rd party
import click
# internal
from days import DayFactory
# import logging
# logger = logging.getLogger(__name__)
# logger.setLevel(logging.DEBUG)
# ch = logging.StreamHandler()
# logger.addHandler(ch)
@click.group(invoke_without_command=True)
@click.option... | [((266, 306), 'click.group', 'click.group', ([], {'invoke_without_command': '(True)'}), '(invoke_without_command=True)\n', (277, 306), False, 'import click\n'), ((715, 767), 'os.path.join', 'os.path.join', (['input', 'f"""{day:02}_puzzle_{puzzle}.txt"""'], {}), "(input, f'{day:02}_puzzle_{puzzle}.txt')\n", (727, 767), ... |
wrosecrans/colormap | option_c.py | 0b6a3b7e4caa5df72e7bad8ba196acfbbe5e5946 |
from matplotlib.colors import LinearSegmentedColormap
from numpy import nan, inf
# Used to reconstruct the colormap in viscm
parameters = {'xp': [-5.4895292543686764, 14.790571669586654, 82.5546687431056, 29.15531114139253, -4.1316769886951761, -13.002076438907238],
'yp': [-35.948168839230306, -42.27337... | [((16621, 16673), 'matplotlib.colors.LinearSegmentedColormap.from_list', 'LinearSegmentedColormap.from_list', (['__file__', 'cm_data'], {}), '(__file__, cm_data)\n', (16654, 16673), False, 'from matplotlib.colors import LinearSegmentedColormap\n'), ((17022, 17032), 'matplotlib.pyplot.show', 'plt.show', ([], {}), '()\n'... |
Aditya239233/MDP | RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py | 87491e1d67e547c11f4bdd5d784d120473429eae | import matplotlib.pyplot as plt
import numpy as np
import math
from algorithm.planner.utils.car_utils import Car_C
PI = np.pi
class Arrow:
def __init__(self, x, y, theta, L, c):
angle = np.deg2rad(30)
d = 0.3 * L
w = 2
x_start = x
y_start = y
x_end = x + L * np.co... | [((2498, 2641), 'numpy.array', 'np.array', (['[[-Car_C.TR, -Car_C.TR, Car_C.TR, Car_C.TR, -Car_C.TR], [Car_C.TW / 4, -\n Car_C.TW / 4, -Car_C.TW / 4, Car_C.TW / 4, Car_C.TW / 4]]'], {}), '([[-Car_C.TR, -Car_C.TR, Car_C.TR, Car_C.TR, -Car_C.TR], [Car_C.TW /\n 4, -Car_C.TW / 4, -Car_C.TW / 4, Car_C.TW / 4, Car_C.TW... |
RuiCoreSci/Flask-Restful | models/database_models/comment_model.py | 03f98a17487d407b69b853a9bf0ed20d2c5b003b | from sqlalchemy import Integer, Text, DateTime, func, Boolean, text
from models.database_models import Base, Column
class Comment(Base):
__tablename__ = "comment"
id = Column(Integer, primary_key=True, )
user_id = Column(Integer, nullable=False, comment="评论用户的 ID")
post_id = Column(Integer, nullable... | [((180, 213), 'models.database_models.Column', 'Column', (['Integer'], {'primary_key': '(True)'}), '(Integer, primary_key=True)\n', (186, 213), False, 'from models.database_models import Base, Column\n'), ((230, 281), 'models.database_models.Column', 'Column', (['Integer'], {'nullable': '(False)', 'comment': '"""评论用户的 ... |
jmsantorum/aws-deploy | aws_deploy/ecs/helper.py | f117cff3a5440ee42470feaa2a83263c3212cf10 | import json
import re
from datetime import datetime
from json.decoder import JSONDecodeError
import click
from boto3.session import Session
from boto3_type_annotations.ecs import Client
from botocore.exceptions import ClientError, NoCredentialsError
from dateutil.tz.tz import tzlocal
from dictdiffer import diff
JSON_... | [((333, 357), 're.compile', 're.compile', (['"""^\\\\[.*\\\\]$"""'], {}), "('^\\\\[.*\\\\]$')\n", (343, 357), False, 'import re\n'), ((1073, 1261), 'boto3.session.Session', 'Session', ([], {'aws_access_key_id': 'aws_access_key_id', 'aws_secret_access_key': 'aws_secret_access_key', 'aws_session_token': 'aws_session_toke... |
emmaling27/networks-research | sbm.py | be209e2b653a1fe9eec480a94538d59104e4aa23 | import networkx as nx
from scipy.special import comb
import attr
@attr.s
class Count(object):
"""Count class with monochromatic and bichromatic counts"""
n = attr.ib()
monochromatic = attr.ib(default=0)
bichromatic = attr.ib(default=0)
def count_edge(self, u, v):
if (u < self.n / 2) != (v... | [((168, 177), 'attr.ib', 'attr.ib', ([], {}), '()\n', (175, 177), False, 'import attr\n'), ((198, 216), 'attr.ib', 'attr.ib', ([], {'default': '(0)'}), '(default=0)\n', (205, 216), False, 'import attr\n'), ((235, 253), 'attr.ib', 'attr.ib', ([], {'default': '(0)'}), '(default=0)\n', (242, 253), False, 'import attr\n'),... |
PhilHarnish/forge | src/data/graph/ops/anagram_transform_op.py | 663f19d759b94d84935c14915922070635a4af65 | from typing import Callable, Collection, Iterable, List, Union
from data.anagram import anagram_iter
from data.graph import _op_mixin, bloom_mask, bloom_node, bloom_node_reducer
Transformer = Callable[['bloom_node.BloomNode'], 'bloom_node.BloomNode']
_SPACE_MASK = bloom_mask.for_alpha(' ')
def merge_fn(
host: 'b... | [((267, 292), 'data.graph.bloom_mask.for_alpha', 'bloom_mask.for_alpha', (['""" """'], {}), "(' ')\n", (287, 292), False, 'from data.graph import _op_mixin, bloom_mask, bloom_node, bloom_node_reducer\n'), ((946, 1019), 'data.graph.bloom_node_reducer.reduce', 'bloom_node_reducer.reduce', (['host'], {'whitelist': 'whitel... |
tikki/pygogapi | gogapi/api.py | f1b3a811444dc521ea4ad7884104086b52348995 | import json
import re
import logging
import html.parser
import zlib
import requests
from gogapi import urls
from gogapi.base import NotAuthorizedError, logger
from gogapi.product import Product, Series
from gogapi.search import SearchResult
DEBUG_JSON = False
GOGDATA_RE = re.compile(r"gogData\.?(.*?) = (.+);")
CLIEN... | [((276, 314), 're.compile', 're.compile', (['"""gogData\\\\.?(.*?) = (.+);"""'], {}), "('gogData\\\\.?(.*?) = (.+);')\n", (286, 314), False, 'import re\n'), ((1454, 1472), 'requests.Session', 'requests.Session', ([], {}), '()\n', (1470, 1472), False, 'import requests\n'), ((15689, 15720), 'gogapi.product.Product', 'Pro... |
gibsonMatt/stacks-pairwise | setup.py | 8f3cde603c2bfed255f6c399557e9332072886fb | import pathlib
import os
from setuptools import setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
# specify requirements of your package here
REQUIREMENTS = ['biopython', 'numpy', 'pandas']
setup(name='stacksPairwi... | [((296, 871), 'setuptools.setup', 'setup', ([], {'name': '"""stacksPairwise"""', 'version': '"""0.0.0"""', 'description': '"""Calculate pairwise divergence (pairwise pi) from Stacks `samples.fa` output fle"""', 'long_description': 'README', 'long_description_content_type': '"""text/markdown"""', 'url': '"""https://gith... |
komax/spanningtree-crossingnumber | csv_experiment.py | 444c8809a543905000a63c9d2ff1dcfb31835766 | #! /usr/bin/env python
import os
import sys
args = sys.argv[1:]
os.system('python -O -m spanningtree.csv_experiment_statistics ' +
' '.join(args))
| [] |
klemenkotar/dcrl | projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py | 457be7af1389db37ec12e165dfad646e17359162 | import torch
import torch.optim as optim
from torch.optim.lr_scheduler import LambdaLR
from allenact.algorithms.onpolicy_sync.losses import PPO
from allenact.algorithms.onpolicy_sync.losses.imitation import Imitation
from allenact.algorithms.onpolicy_sync.losses.ppo import PPOConfig
from allenact.utils.experiment_util... | [((952, 977), 'torch.cuda.is_available', 'torch.cuda.is_available', ([], {}), '()\n', (975, 977), False, 'import torch\n'), ((1760, 1771), 'allenact.algorithms.onpolicy_sync.losses.imitation.Imitation', 'Imitation', ([], {}), '()\n', (1769, 1771), False, 'from allenact.algorithms.onpolicy_sync.losses.imitation import I... |
DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool | BioCAT/src/Calculating_scores.py | d58d330e3e11380c0c917a0ad9c12a51447f1624 | from numpy import array
from pickle import load
from pandas import read_csv
import os
from BioCAT.src.Combinatorics import multi_thread_shuffling, multi_thread_calculating_scores, make_combine, get_score, get_max_aminochain, skipper
# Importing random forest model
modelpath = os.path.dirname(os.path.abspath(__file__)... | [((939, 1029), 'BioCAT.src.Combinatorics.multi_thread_shuffling', 'multi_thread_shuffling', (['matrix'], {'ShufflingType': '"""module"""', 'iterations': 'iterat', 'threads': 'cpu'}), "(matrix, ShufflingType='module', iterations=iterat,\n threads=cpu)\n", (961, 1029), False, 'from BioCAT.src.Combinatorics import mult... |
m4ta1l/deal | deal/linter/_extractors/returns.py | 2a8e9bf412b8635b00a2b798dd8802375814a1c8 | # built-in
from typing import Optional
# app
from .common import TOKENS, Extractor, Token, traverse
from .value import UNKNOWN, get_value
get_returns = Extractor()
inner_extractor = Extractor()
def has_returns(body: list) -> bool:
for expr in traverse(body=body):
if isinstance(expr, TOKENS.RETURN + TOK... | [] |
yourball/qubiter | qubiter/device_specific/chip_couplings_ibm.py | 5ef0ea064fa8c9f125f7951a01fbb88504a054a5 | def aaa():
# trick sphinx to build link in doc
pass
# retired
ibmqx2_c_to_tars =\
{
0: [1, 2],
1: [2],
2: [],
3: [2, 4],
4: [2]
} # 6 edges
# retired
ibmqx4_c_to_tars =\
{
0: [],
1: [0],
2: [0, 1, 4],
3: [2, 4],
4: []
} # 6 edges
# retired
ibmq16Rus_c_to_tars = \
{
... | [] |
rainshen49/citadel-trading-comp | Template.py | 3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5 | import signal
import requests
import time
from math import floor
shutdown = False
MAIN_TAKER = 0.0065
MAIN_MAKER = 0.002
ALT_TAKER = 0.005
ALT_MAKER = 0.0035
TAKER = (MAIN_TAKER + ALT_TAKER)*2
MAKER = MAIN_MAKER + ALT_MAKER
TAKEMAIN = MAIN_TAKER - ALT_MAKER
TAKEALT = ALT_TAKER - MAIN_MAKER
BUFFER = 0.0... | [((14446, 14490), 'signal.signal', 'signal.signal', (['signal.SIGINT', 'signal.SIG_DFL'], {}), '(signal.SIGINT, signal.SIG_DFL)\n', (14459, 14490), False, 'import signal\n'), ((14549, 14585), 'signal.signal', 'signal.signal', (['signal.SIGINT', 'sigint'], {}), '(signal.SIGINT, sigint)\n', (14562, 14585), False, 'import... |
souviksaha97/spydrnet-physical | examples/basic/wire_feedthrough.py | b07bcc152737158ea7cbebf0ef844abe49d29c5e | """
==========================================
Genrating feedthrough from single instance
==========================================
This example demostrates how to generate a feedthrough wire connection for
a given scalar or vector wires.
**Initial Design**
.. hdl-diagram:: ../../../examples/basic/_initial_design.v... | [((801, 847), 'spydrnet_physical.load_netlist_by_name', 'sdnphy.load_netlist_by_name', (['"""basic_hierarchy"""'], {}), "('basic_hierarchy')\n", (828, 847), True, 'import spydrnet_physical as sdnphy\n'), ((970, 1034), 'spydrnet.compose', 'sdn.compose', (['netlist', '"""_initial_design.v"""'], {'skip_constraints': '(Tru... |
sunnyfloyd/panderyx | workflows/workflow.py | 82f03625159833930ff044a43a6619ab710ff159 | from __future__ import annotations
from typing import Optional, Union
from tools import tools
from exceptions import workflow_exceptions
class Workflow:
"""A class to represent a workflow.
Workflow class provides set of methods to manage state of the workflow.
It allows for tool insertions, removals and... | [((916, 936), 'tools.tools.RootTool', 'tools.RootTool', ([], {'id': '(0)'}), '(id=0)\n', (930, 936), False, 'from tools import tools\n')] |
namtel-hp/fundraising-website | team_fundraising/text.py | 30cb0cd2bd4505454295d11715e70712525234a3 |
class Donation_text:
# Shown as a message across the top of the page on return from a donation
# used in views.py:new_donation()
thank_you = (
"Thank you for your donation. "
"You may need to refresh this page to see the donation."
)
confirmation_email_subject = (
'Thank y... | [] |
wagtail/wagtail-live | tests/wagtail_live/test_apps.py | dd769be089d457cf36db2506520028bc5f506ac3 | from django.apps import apps
from django.test import override_settings
from wagtail_live.signals import live_page_update
def test_live_page_update_signal_receivers():
assert len(live_page_update.receivers) == 0
@override_settings(
WAGTAIL_LIVE_PUBLISHER="tests.testapp.publishers.DummyWebsocketPublisher"
)
... | [((221, 318), 'django.test.override_settings', 'override_settings', ([], {'WAGTAIL_LIVE_PUBLISHER': '"""tests.testapp.publishers.DummyWebsocketPublisher"""'}), "(WAGTAIL_LIVE_PUBLISHER=\n 'tests.testapp.publishers.DummyWebsocketPublisher')\n", (238, 318), False, 'from django.test import override_settings\n'), ((393,... |
vtta2008/pipelineTool | PLM/options.py | 2431d2fc987e3b31f2a6a63427fee456fa0765a0 | # -*- coding: utf-8 -*-
"""
Script Name:
Author: Do Trinh/Jimmy - 3D artist.
Description:
"""
# -------------------------------------------------------------------------------------------------------------
""" Import """
import os
from PySide2.QtWidgets import (QFrame, QStyle, QAbstractItemView, QSizePolicy... | [((1733, 1746), 'PySide2.QtCore.QSize', 'QSize', (['(87)', '(20)'], {}), '(87, 20)\n', (1738, 1746), False, 'from PySide2.QtCore import QEvent, QSettings, QSize, Qt, QDateTime\n'), ((1777, 1798), 'PySide2.QtCore.QSize', 'QSize', (['(87 - 1)', '(20 - 1)'], {}), '(87 - 1, 20 - 1)\n', (1782, 1798), False, 'from PySide2.Qt... |
Nyapy/FMTG | Crawling/ssafyCrawling.py | dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import sys
import time
import urllib.request
import os
sys.stdin = open('idpwd.txt')
site = input()
id = input()
pwd = input()
# selenium에서 사용할 웹 드라이버 절대 경로 정보
chromedriver = 'C:\Webdriver\chromedriver.exe'
# selenum의 webdriver에 앞서 설치... | [((351, 381), 'selenium.webdriver.Chrome', 'webdriver.Chrome', (['chromedriver'], {}), '(chromedriver)\n', (367, 381), False, 'from selenium import webdriver\n'), ((1827, 1840), 'time.sleep', 'time.sleep', (['(2)'], {}), '(2)\n', (1837, 1840), False, 'import time\n'), ((2065, 2080), 'time.sleep', 'time.sleep', (['(0.4)... |
chainren/python-learn | 100days/day95/StringIO_demo.py | 5e48e96c4bb212806b9ae0954fdb368abdcf9ba3 |
from io import StringIO
# 定义一个 StringIO 对象,写入并读取其在内存中的内容
f = StringIO()
f.write('Python-100')
str = f.getvalue() # 读取写入的内容
print('写入内存中的字符串为:%s' %str)
f.write('\n') # 追加内容
f.write('坚持100天')
f.close() # 关闭
f1 = StringIO('Python-100' + '\n' + '坚持100天')
# 读取内容
print(f1.read())
f1.close()
# 假设的爬虫数据输出函数 outputDa... | [((63, 73), 'io.StringIO', 'StringIO', ([], {}), '()\n', (71, 73), False, 'from io import StringIO\n'), ((218, 258), 'io.StringIO', 'StringIO', (["('Python-100' + '\\n' + '坚持100天')"], {}), "('Python-100' + '\\n' + '坚持100天')\n", (226, 258), False, 'from io import StringIO\n'), ((577, 594), 'io.StringIO', 'StringIO', (['... |
veleritas/mychem.info | src/hub/dataload/sources/drugcentral/drugcentral_upload.py | bb22357d4cbbc3c4865da224bf998f2cbc59f8f2 | import biothings.hub.dataload.uploader as uploader
class DrugCentralUploader(uploader.DummySourceUploader):
name = "drugcentral"
__metadata__ = {
"src_meta" : {
"url" : "http://drugcentral.org/",
"license_url" : "http://drugcentral.org/privacy",
"lic... | [] |
Nate1729/FinPack | tests/test_cli.py | d76fd5e6538298d5596d5b0f7d3be2bc6520c431 | """Contains tests for finpack/core/cli.py
"""
__copyright__ = "Copyright (C) 2021 Matt Ferreira"
import os
import unittest
from importlib import metadata
from docopt import docopt
from finpack.core import cli
class TestCli(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.DATA_DIR = "temp"
... | [((329, 351), 'os.mkdir', 'os.mkdir', (['cls.DATA_DIR'], {}), '(cls.DATA_DIR)\n', (337, 351), False, 'import os\n'), ((406, 428), 'os.rmdir', 'os.rmdir', (['cls.DATA_DIR'], {}), '(cls.DATA_DIR)\n', (414, 428), False, 'import os\n'), ((510, 540), 'docopt.docopt', 'docopt', (['cli.__doc__'], {'argv': 'argv'}), '(cli.__do... |
zinderud/ysa | python/Patterns/inheritance/main.py | e34d3f4c7afab3976d86f5d27edfcd273414e496 | class Yaratik(object):
def move_left(self):
print('Moving left...')
def move_right(self):
print('Moving left...')
class Ejderha(Yaratik):
def Ates_puskurtme(self):
print('ates puskurtum!')
class Zombie(Yaratik):
def Isirmak(self):
print('Isirdim simdi!')
enemy =... | [] |
perathambkk/ml-techniques | clustering/graph_utils.py | 5d6fd122322342c0b47dc65d09c4425fd73f2ea9 | """
Author: Peratham Wiriyathammabhum
"""
import numpy as np
import pandas as pd
from sklearn.neighbors import NearestNeighbors
def affinity_graph(X):
'''
This function returns a numpy array.
'''
ni, nd = X.shape
A = np.zeros((ni, ni))
for i in range(ni):
for j in range(i+1, ni):
dist = ((X[i] - X[j])**... | [((227, 245), 'numpy.zeros', 'np.zeros', (['(ni, ni)'], {}), '((ni, ni))\n', (235, 245), True, 'import numpy as np\n'), ((625, 643), 'numpy.zeros', 'np.zeros', (['(ni, ni)'], {}), '((ni, ni))\n', (633, 643), True, 'import numpy as np\n'), ((915, 933), 'numpy.zeros', 'np.zeros', (['(ni, ni)'], {}), '((ni, ni))\n', (923,... |
Acidburn0zzz/luci | recipe_engine/internal/commands/__init__.py | d8993f4684839b58f5f966dd6273d1d8fd001eae | # Copyright 2019 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""This package houses all subcommands for the recipe engine.
See implementation_details.md for the expectations of the modules in this
directory... | [((719, 746), 'logging.getLogger', 'logging.getLogger', (['__name__'], {}), '(__name__)\n', (736, 746), False, 'import logging\n'), ((9386, 9457), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '"""Interact with the recipe system."""'}), "(description='Interact with the recipe system.')\n", ... |
sarthakpati/openfl | openfl/pipelines/stc_pipeline.py | 8edebfd565d94f709a7d7f06d9ee38a7975c066e | # Copyright (C) 2020-2021 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
"""STCPipelinemodule."""
import numpy as np
import gzip as gz
from .pipeline import TransformationPipeline, Transformer
class SparsityTransformer(Transformer):
"""A transformer class to sparsify input data."""
def __init__(s... | [((1225, 1253), 'numpy.zeros', 'np.zeros', (['flatten_data.shape'], {}), '(flatten_data.shape)\n', (1233, 1253), True, 'import numpy as np\n'), ((2852, 2882), 'numpy.asarray', 'np.asarray', (['x[idx[start_idx:]]'], {}), '(x[idx[start_idx:]])\n', (2862, 2882), True, 'import numpy as np\n'), ((2901, 2928), 'numpy.asarray... |
Rex0519/NessusToReport | modle/__init__.py | 047dd4a2f749addab3991b0ebc8ab609140c32a7 | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# ------------------------------------------------------------
# File: __init__.py.py
# Created Date: 2020/6/24
# Created Time: 0:12
# Author: Hypdncy
# Author Mail: hypdncy@outlook.com
# Copyright (c) 2020 Hypdncy
# ---------------------------------------------------------... | [] |
csdms/pymt | tests/component/test_grid_mixin.py | 188222d7858cd3e8eb15564e56d9b7f0cb43cae5 | import numpy as np
import pytest
from pytest import approx
from pymt.component.grid import GridMixIn
class Port:
def __init__(self, name, uses=None, provides=None):
self._name = name
self._uses = uses or []
self._provides = provides or []
def get_component_name(self):
return ... | [((7100, 7125), 'pytest.raises', 'pytest.raises', (['IndexError'], {}), '(IndexError)\n', (7113, 7125), False, 'import pytest\n'), ((1613, 1638), 'numpy.array', 'np.array', (['[3.0, 5.0, 7.0]'], {}), '([3.0, 5.0, 7.0])\n', (1621, 1638), True, 'import numpy as np\n'), ((2214, 2258), 'numpy.array', 'np.array', (['[[0.0, ... |
SnoozeTime/nes | scripts/compare.py | 4d60562c59e175485eb3dff043c0c78473034cdb | import sys
def load_log_sp(filename):
data = []
with open(filename) as f:
for line in f.readlines():
tokens = line.split(" ")
spidx = line.find("SP:")
endidx = line.find(' ', spidx)
data.append((line[0:4], line[spidx+3:endidx]))
return data
if __nam... | [] |
nahuelalmeira/deepLearning | tercer_modelo.py | f1fcd06f5735c8be9272b0c8392b1ae467c08582 | """Exercise 1
Usage:
$ CUDA_VISIBLE_DEVICES=2 python practico_1_train_petfinder.py --dataset_dir ../ --epochs 30 --dropout 0.1 0.1 --hidden_layer_sizes 200 100
To know which GPU to use, you can check it with the command
$ nvidia-smi
"""
import argparse
import os
import mlflow
import pickle
import numpy as np
impo... | [((475, 508), 'warnings.filterwarnings', 'warnings.filterwarnings', (['"""ignore"""'], {}), "('ignore')\n", (498, 508), False, 'import warnings\n'), ((654, 732), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {'description': '"""Training a MLP on the petfinder dataset"""'}), "(description='Training a MLP on... |
catmaid/catpy | catpy/applications/export.py | 481d87591a6dfaedef2767dcddcbed7185ecc8b8 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from pkg_resources import parse_version
from warnings import warn
from copy import deepcopy
import networkx as nx
from networkx.readwrite import json_graph
from catpy.applications.base import CatmaidClientApplication
NX_VERSION_INFO = parse_version(nx.... | [((1205, 1218), 'copy.deepcopy', 'deepcopy', (['jso'], {}), '(jso)\n', (1213, 1218), False, 'from copy import deepcopy\n'), ((303, 332), 'pkg_resources.parse_version', 'parse_version', (['nx.__version__'], {}), '(nx.__version__)\n', (316, 332), False, 'from pkg_resources import parse_version\n'), ((1038, 1166), 'warnin... |
Indexical-Metrics-Measure-Advisory/watchmen | packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/external_writer_service.py | c54ec54d9f91034a38e51fd339ba66453d2c7a6d | from typing import Optional
from watchmen_auth import PrincipalService
from watchmen_data_kernel.cache import CacheService
from watchmen_data_kernel.common import DataKernelException
from watchmen_data_kernel.external_writer import find_external_writer_create, register_external_writer_creator
from watchmen_meta.common... | [((640, 689), 'watchmen_data_kernel.external_writer.find_external_writer_create', 'find_external_writer_create', (['external_writer.type'], {}), '(external_writer.type)\n', (667, 689), False, 'from watchmen_data_kernel.external_writer import find_external_writer_create, register_external_writer_creator\n'), ((1547, 156... |
AlbertoAlfredo/exercicios-cursos | udemy-python/mediaponderada.py | 792096ad1f853188adec8fc3e5c629742c8dd7ab | nota1 = float(input('Digite a nota da primeira nota '))
peso1 = float(input('Digite o peso da primeira nota '))
nota2 = float(input('Digite a nota da seugundo nota '))
peso2 = float(input('Digite o peso da segundo nota '))
media = (nota1/peso1+nota2/peso2)/2
print('A média das duas notas é:', media)
| [] |
chasebrewsky/scrywarden | scrywarden/module.py | c6a5a81d14016ca58625df68594ef52dd328a0dd | from importlib import import_module
from typing import Any
def import_string(path: str) -> Any:
"""Imports a dotted path name and returns the class/attribute.
Parameters
----------
path: str
Dotted module path to retrieve.
Returns
-------
Class/attribute at the given import path.... | [((616, 642), 'importlib.import_module', 'import_module', (['module_path'], {}), '(module_path)\n', (629, 642), False, 'from importlib import import_module\n')] |
learningequality/klorimin | examples/oldexamples/sample_program.py | c569cd4048ac670bc55a83f4fdda0b818c7f626e | #!/usr/bin/env python
import json
import os
import re
from enum import Enum
from os.path import join
from le_utils.constants import content_kinds
from le_utils.constants import exercises
from le_utils.constants import file_formats
from le_utils.constants import licenses
from ricecooker.chefs import SushiChef
from ric... | [((1115, 1149), 'os.path.join', 'os.path.join', (['EXAMPLES_DIR', '"""data"""'], {}), "(EXAMPLES_DIR, 'data')\n", (1127, 1149), False, 'import os\n'), ((1164, 1201), 'os.path.join', 'os.path.join', (['EXAMPLES_DIR', '"""content"""'], {}), "(EXAMPLES_DIR, 'content')\n", (1176, 1201), False, 'import os\n'), ((1076, 1102)... |
dvgd/blender | release/scripts/modules/bl_i18n_utils/utils_spell_check.py | 4eb2807db1c1bd2514847d182fbb7a3f7773da96 | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [((17963, 17987), 're.compile', 're.compile', (['_valid_words'], {}), '(_valid_words)\n', (17973, 17987), False, 'import re\n'), ((18213, 18231), 'enchant.Dict', 'enchant.Dict', (['lang'], {}), '(lang)\n', (18225, 18231), False, 'import enchant\n'), ((18334, 18355), 'os.path.exists', 'os.path.exists', (['cache'], {}), ... |
gmeyerlee/NASLib | naslib/predictors/mlp.py | 21dbceda04cc1faf3d8b6dd391412a459218ef2b | import numpy as np
import os
import json
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import DataLoader, TensorDataset
from naslib.utils.utils import AverageMeterGroup
from naslib.predictors.utils.encodings import encode
from naslib.predictors imp... | [((366, 385), 'torch.device', 'torch.device', (['"""cpu"""'], {}), "('cpu')\n", (378, 385), False, 'import torch\n'), ((550, 580), 'torch.nn.functional.mse_loss', 'F.mse_loss', (['prediction', 'target'], {}), '(prediction, target)\n', (560, 580), True, 'import torch.nn.functional as F\n'), ((1248, 1275), 'torch.nn.Line... |
Joreshic/python-for-android | pythonforandroid/recipes/libx264/__init__.py | c60e02d2e32e31a3a754838c51e9242cbadcd9e8 | from pythonforandroid.toolchain import Recipe, shprint, current_directory, ArchARM
from os.path import exists, join, realpath
from os import uname
import glob
import sh
class LibX264Recipe(Recipe):
version = 'x264-snapshot-20170608-2245-stable' # using mirror url since can't use ftp
url = 'http://mirror.yand... | [((745, 770), 'sh.Command', 'sh.Command', (['"""./configure"""'], {}), "('./configure')\n", (755, 770), False, 'import sh\n'), ((1191, 1224), 'pythonforandroid.toolchain.shprint', 'shprint', (['sh.make', '"""-j4"""'], {'_env': 'env'}), "(sh.make, '-j4', _env=env)\n", (1198, 1224), False, 'from pythonforandroid.toolchai... |
QGB/QPSU | Win/reg.py | 7bc214676d797f42d2d7189dc67c9377bccdf25d | #coding=utf-8
try:
if __name__.startswith('qgb.Win'):
from .. import py
else:
import py
except Exception as ei:
raise ei
raise EnvironmentError(__name__)
if py.is2():
import _winreg as winreg
from _winreg import *
else:
import winreg
from winreg import *
def get(skey,name,root=HKEY_CURRENT_USER,returnTyp... | [((167, 175), 'py.is2', 'py.is2', ([], {}), '()\n', (173, 175), False, 'import py\n'), ((1014, 1028), 'py.isint', 'py.isint', (['type'], {}), '(type)\n', (1022, 1028), False, 'import py\n'), ((1035, 1050), 'py.isint', 'py.isint', (['value'], {}), '(value)\n', (1043, 1050), False, 'import py\n'), ((1063, 1077), 'py.istr... |
CJSoldier/webssh | tests/test_handler.py | b3c33ff6bd76f4f5df40cc1fe9a138cf0cecd08c | import unittest
import paramiko
from tornado.httputil import HTTPServerRequest
from tests.utils import read_file, make_tests_data_path
from webssh.handler import MixinHandler, IndexHandler, InvalidValueError
class TestMixinHandler(unittest.TestCase):
def test_get_real_client_addr(self):
handler = MixinH... | [((314, 328), 'webssh.handler.MixinHandler', 'MixinHandler', ([], {}), '()\n', (326, 328), False, 'from webssh.handler import MixinHandler, IndexHandler, InvalidValueError\n'), ((355, 381), 'tornado.httputil.HTTPServerRequest', 'HTTPServerRequest', ([], {'uri': '"""/"""'}), "(uri='/')\n", (372, 381), False, 'from torna... |
SCiO-systems/qcat | apps/notifications/tests/test_views.py | 8c2b8e07650bc2049420fa6de758fba7e50c2f28 | import logging
from unittest import mock
from unittest.mock import call
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.signing import Signer
from django.urls import reverse
from django.http import Http404
from django.test import RequestFactory
from braces.views import... | [((2679, 2743), 'unittest.mock.patch', 'mock.patch', (['"""apps.notifications.views.Log.actions.user_log_list"""'], {}), "('apps.notifications.views.Log.actions.user_log_list')\n", (2689, 2743), False, 'from unittest import mock\n'), ((2893, 2961), 'unittest.mock.patch', 'mock.patch', (['"""apps.notifications.views.Log... |
willvousden/clint | examples/resources.py | 6dc7ab1a6a162750e968463b43994447bca32544 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import os
sys.path.insert(0, os.path.abspath('..'))
from clint import resources
resources.init('kennethreitz', 'clint')
lorem = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt... | [((180, 219), 'clint.resources.init', 'resources.init', (['"""kennethreitz"""', '"""clint"""'], {}), "('kennethreitz', 'clint')\n", (194, 219), False, 'from clint import resources\n'), ((724, 764), 'clint.resources.user.write', 'resources.user.write', (['"""lorem.txt"""', 'lorem'], {}), "('lorem.txt', lorem)\n", (744, ... |
charlesmugambi/Instagram | photos/urls.py | 3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7 | from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^image/$', views.add_image, name='upload_image'),
url(r'^profile/$', views.profile_info, name='profile'),
url(r'... | [((151, 187), 'django.conf.urls.url', 'url', (['"""^$"""', 'views.index'], {'name': '"""index"""'}), "('^$', views.index, name='index')\n", (154, 187), False, 'from django.conf.urls import url\n'), ((194, 247), 'django.conf.urls.url', 'url', (['"""^image/$"""', 'views.add_image'], {'name': '"""upload_image"""'}), "('^i... |
vgfang/breadbot | bread.py | e58807431945e6d4de8dfc6c4dc4c90caebf88ca | import random
import math
from fractions import Fraction
from datetime import datetime
from jinja2 import Template
# empty class for passing to template engine
class Recipe:
def __init__(self):
return
# returns flour percent using flour type
def get_special_flour_percent(flourType: str, breadFlourPercent:int) -> ... | [((1058, 1078), 'fractions.Fraction', 'Fraction', (['multiplier'], {}), '(multiplier)\n', (1066, 1078), False, 'from fractions import Fraction\n'), ((3405, 3441), 'random.sample', 'random.sample', (['spicesList', 'spicesNum'], {}), '(spicesList, spicesNum)\n', (3418, 3441), False, 'import random\n'), ((5778, 5798), 'ra... |
msnitish/posthog | posthog/api/test/test_organization_domain.py | cb86113f568e72eedcb64b5fd00c313d21e72f90 | import datetime
from unittest.mock import patch
import dns.resolver
import dns.rrset
import pytest
import pytz
from django.utils import timezone
from freezegun import freeze_time
from rest_framework import status
from posthog.models import Organization, OrganizationDomain, OrganizationMembership, Team
from posthog.te... | [((7944, 8008), 'unittest.mock.patch', 'patch', (['"""posthog.models.organization_domain.dns.resolver.resolve"""'], {}), "('posthog.models.organization_domain.dns.resolver.resolve')\n", (7949, 8008), False, 'from unittest.mock import patch\n'), ((9236, 9300), 'unittest.mock.patch', 'patch', (['"""posthog.models.organiz... |
nataliapryakhina/FA_group3 | tutorial/test input.py | 3200464bc20d38a85af9ad3583a360db4ffb7f8d | import numpy as np
import tensorflow as tf
from tensorflow import keras
import matplotlib.pyplot as plt
from os import listdir
from tensorflow.keras.callbacks import ModelCheckpoint
dataDir = "./data/trainSmallFA/"
files = listdir(dataDir)
files.sort()
totalLength = len(files)
inputs = np.empty((len(files), 3, 64, 64)... | [((224, 240), 'os.listdir', 'listdir', (['dataDir'], {}), '(dataDir)\n', (231, 240), False, 'from os import listdir\n'), ((833, 863), 'numpy.amax', 'np.amax', (['targets[:, (0), :, :]'], {}), '(targets[:, (0), :, :])\n', (840, 863), True, 'import numpy as np\n'), ((413, 436), 'numpy.load', 'np.load', (['(dataDir + file... |
cltl/pepper | pepper/responder/brain.py | 5d34fc5074473163aa9273016d89e5e2b8edffa9 | from pepper.framework import *
from pepper import logger
from pepper.language import Utterance
from pepper.language.generation.thoughts_phrasing import phrase_thoughts
from pepper.language.generation.reply import reply_to_question
from .responder import Responder, ResponderType
from pepper.language import UtteranceTy... | [((544, 584), 'pepper.logger.getChild', 'logger.getChild', (['self.__class__.__name__'], {}), '(self.__class__.__name__)\n', (559, 584), False, 'from pepper import logger\n'), ((1323, 1365), 'pepper.language.generation.reply.reply_to_question', 'reply_to_question', (['brain_response_question'], {}), '(brain_response_qu... |
fedora-infra/fedora-college | fedora_college/modules/content/views.py | cf310dab2e4fea02b9ac5e7f57dc53aafb4834d8 | # -*- coding: utf-8 -*-
import re
from unicodedata import normalize
from flask import Blueprint, render_template, current_app
from flask import redirect, url_for, g, abort
from sqlalchemy import desc
from fedora_college.core.database import db
from fedora_college.modules.content.forms import * # noqa
from fedora_colle... | [] |
MrDelik/core | tests/components/airthings/test_config_flow.py | 93a66cc357b226389967668441000498a10453bb | """Test the Airthings config flow."""
from unittest.mock import patch
import airthings
from homeassistant import config_entries
from homeassistant.components.airthings.const import CONF_ID, CONF_SECRET, DOMAIN
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import RESULT_TYPE_CREATE_EN... | [((3159, 3245), 'tests.common.MockConfigEntry', 'MockConfigEntry', ([], {'domain': '"""airthings"""', 'data': 'TEST_DATA', 'unique_id': 'TEST_DATA[CONF_ID]'}), "(domain='airthings', data=TEST_DATA, unique_id=TEST_DATA[\n CONF_ID])\n", (3174, 3245), False, 'from tests.common import MockConfigEntry\n'), ((756, 811), '... |
scomup/StereoNet-ActiveStereoNet | utils/utils.py | 05994cf1eec4a109e095732fe01ecb5558880ba5 | # ------------------------------------------------------------------------------
# Copyright (c) NKU
# Licensed under the MIT License.
# Written by Xuanyi Li (xuanyili.edu@gmail.com)
# ------------------------------------------------------------------------------
import os
import torch
import torch.nn.functional as F
#... | [((535, 554), 'torch.nonzero', 'torch.nonzero', (['mask'], {}), '(mask)\n', (548, 554), False, 'import torch\n'), ((644, 679), 'torch.pow', 'torch.pow', (['(GT[mask] - pred[mask])', '(2)'], {}), '(GT[mask] - pred[mask], 2)\n', (653, 679), False, 'import torch\n')] |
Devalent/facial-recognition-service | worker/main.py | 342e31fa7d016992d938b0121b03f0e8fe776ea8 | from aiohttp import web
import base64
import io
import face_recognition
async def encode(request):
request_data = await request.json()
# Read base64 encoded image
url = request_data['image'].split(',')[1]
image = io.BytesIO(base64.b64decode(url))
# Load image data
np_array = face_recognition.... | [((303, 342), 'face_recognition.load_image_file', 'face_recognition.load_image_file', (['image'], {}), '(image)\n', (335, 342), False, 'import face_recognition\n'), ((386, 427), 'face_recognition.face_locations', 'face_recognition.face_locations', (['np_array'], {}), '(np_array)\n', (417, 427), False, 'import face_reco... |
TiKeil/Two-scale-RBLOD | rblod/setup.py | 23f17a3e4edf63ea5f208eca50ca90c19bf511a9 | # ~~~
# This file is part of the paper:
#
# " An Online Efficient Two-Scale Reduced Basis Approach
# for the Localized Orthogonal Decomposition "
#
# https://github.com/TiKeil/Two-scale-RBLOD.git
#
# Copyright 2019-2021 all developers. All rights reserved.
# License: Licensed as BSD 2-Clause ... | [((458, 628), 'setuptools.setup', 'setup', ([], {'name': '"""rblod"""', 'version': '"""2021.1"""', 'description': '"""Pymor support for RBLOD"""', 'author': '"""Tim Keil"""', 'author_email': '"""tim.keil@wwu.de"""', 'license': '"""MIT"""', 'packages': "['rblod']"}), "(name='rblod', version='2021.1', description='Pymor ... |
ndeporzio/cosmicfish | bin/euclid_fine_plot_job_array.py | f68f779d73f039512a958d110bb44194d0daceec | import os
import shutil
import numpy as np
import pandas as pd ... | [((665, 674), 'seaborn.set', 'sns.set', ([], {}), '()\n', (672, 674), True, 'import seaborn as sns\n'), ((1328, 1359), 'cosmicfish.makedirectory', 'cf.makedirectory', (['fp_resultsdir'], {}), '(fp_resultsdir)\n', (1344, 1359), True, 'import cosmicfish as cf\n'), ((3270, 3368), 'numpy.array', 'np.array', (['[0.65, 0.75,... |
XDZhelheim/CS205_C_CPP_Lab | project4/test/test_arm.py | f585fd685a51e19fddc9c582846547d34442c6ef | import os
if __name__ == "__main__":
dims = ["32", "64", "128", "256", "512", "1024", "2048"]
for dim in dims:
os.system(
f"perf stat -e r11 -x, -r 10 ../matmul.out ../data/mat-A-{dim}.txt ../data/mat-B-{dim}.txt ./out/out-{dim}.txt 2>>res_arm.csv"
)
print(f"Finished {dim}... | [((129, 276), 'os.system', 'os.system', (['f"""perf stat -e r11 -x, -r 10 ../matmul.out ../data/mat-A-{dim}.txt ../data/mat-B-{dim}.txt ./out/out-{dim}.txt 2>>res_arm.csv"""'], {}), "(\n f'perf stat -e r11 -x, -r 10 ../matmul.out ../data/mat-A-{dim}.txt ../data/mat-B-{dim}.txt ./out/out-{dim}.txt 2>>res_arm.csv'\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.