Retroacció: ')\n else:\n self.body.append(' value, mds[comp][md_name] --> value\n \"\"\"\n data = self.read_yaml(settings_file)\n # Rearrange data from data[comp][type][prop_name] --> type[comp][prop_name],\n # type is 'properties' or 'metadata'\n mds = {}\n props = {}\n for comp in data:\n mds[comp] = data[comp].get('metadata', {})\n props[comp] = data[comp].get('properties', {})\n if not isinstance(mds[comp], Mapping):\n raise ValueError(\"Persistent metadata for component %s is not a mapping.\" % comp)\n if not isinstance(props[comp], Mapping):\n raise ValueError(\"Persistent properties for component %s is not a mapping.\" % comp)\n return props, mds\n\n def get_persistent(self, comp_name):\n \"\"\"\n List all persistent properties and metadata as specified in the model file.\n comp_name (str): name of the component\n return (2 lists of str): VA names, metadata keys\n \"\"\"\n attrs = self.ast[comp_name]\n persistent = attrs.get(\"persistent\", {})\n prop_names = persistent.get(\"properties\", [])\n md_names = persistent.get(\"metadata\", [])\n\n if not self._can_persist and (prop_names or md_names):\n logging.warning(\"Component %s has persistent settings, but no persistent file available\",\n comp_name)\n\n return prop_names, md_names\n\n","repo_name":"delmic/odemis","sub_path":"src/odemis/odemisd/modelgen.py","file_name":"modelgen.py","file_ext":"py","file_size_in_byte":46142,"program_lang":"python","lang":"en","doc_type":"code","stars":40,"dataset":"github-code","pt":"85"}
+{"seq_id":"4395817297","text":"#!/Users/spherik/anaconda3/envs/mayavi_env/bin/python\n\n# Mostrar dipSignal a part (mes amunt)\n# Checkbox normalitzar senyals x = x-min/max-min\n# menu toogle visualize per ocultar dipol - done\n# mostrar correl_slider i time_slider\n# Veure el num de dipols mostrats (despres de filtrar per correlacio)\n\n\n# First, and before importing any Enthought packages, set the ETS_TOOLKIT\n# environment variable to qt4, to tell Traits that we will use Qt.\nimport os\nos.environ['ETS_TOOLKIT'] = 'qt4'\n# By default, the PySide binding will be used. If you want the PyQt bindings\n# to be used, you need to set the QT_API environment variable to 'pyqt'\n#os.environ['QT_API'] = 'pyqt'\n\n# To be able to use PySide or PyQt4 and not run in conflicts with traits,\n# we need to import QtGui and QtCore from pyface.qt\nfrom pyface.qt import QtGui, QtCore\n# Alternatively, you can bypass this line, but you need to make sure that\n# the following lines are executed before the import of PyQT:\n# import sip\n# sip.setapi('QString', 2)\n\nimport scipy.io as sio\nimport numpy as np\n\nfrom MPLQWidget import MPLQWidget\nfrom MayaviQWidget import MayaviQWidget\nfrom ChacoQWidget import ChacoQWidget\n################################################################################\n# The QMainWindow\nclass MainWindow(QtGui.QMainWindow):\n def __init__(self):\n QtGui.QMainWindow.__init__(self)\n self._BuildLayout()\n self._BuildMenu()\n\n def _OpenMatFile(self):\n title = \"Select mat file\"\n filename = QtGui.QFileDialog.getOpenFileName(self,\n\t\t\t\t\t\ttitle,\n\t\t\t\t\t\tos.path.expanduser(\"~\"),\n\t\t\t\t\t\t\"Mat files (*.mat)\")\n\n if filename:\n mat_data = sio.loadmat(filename)\n # Anatomy meshes\n self.cortex_vertices = mat_data['cortex_vertices']\n self.cortex_triangles = mat_data['cortex_triangles']-1\n self.head_vertices = mat_data['head_vertices']\n self.head_triangles = mat_data['head_triangles']-1\n\n # Simulated signal\n self.virtual_sensor_positions = mat_data['posVS']\n self.time = mat_data['time'][0,:]\n self.virtual_sensors_signals = mat_data['signalproj']\n self.correl = np.abs(mat_data['correl'])\n\n # Dipole\n self.dipole_position = mat_data['origDipolePos'][0]\n self.dipole_momentum = mat_data['origDipoleMom'][0]/np.linalg.norm(mat_data['origDipoleMom'][0])\n self.dipole_signal = mat_data['dipSignal'][0]\n\n print(self.dipole_position)\n print(self.dipole_momentum)\n print(self.virtual_sensors_signals.shape)\n\n self.time_slider.setRange(0, self.time.shape[0])\n self.time_slider.setSingleStep(1)\n self.time_slider.setTickInterval(10)\n self.time_slider.setTickPosition(QtGui.QSlider.TicksBelow)\n\n self.correl_slider.setRange(0, self.correl.shape[1])\n self.correl_slider.setSingleStep(1)\n self.correl_slider.setTickInterval(10)\n self.correl_slider.setTickPosition(QtGui.QSlider.TicksBelow)\n\n self.time_slider.valueChanged.connect(self._TimeChanged)\n self.correl_slider.valueChanged.connect(self._CorrelChanged)\n\n self._BuildScene()\n self._BuildPlot()\n\n def _BuildLayout(self):\n container = QtGui.QWidget()\n container.setWindowTitle(\"Brain signal visualizer\")\n # define a \"complex\" layout to test the behaviour\n layout = QtGui.QVBoxLayout(container) #QGridLayout(container)\n\n # Plot and scene\n #scroll = QtGui.QScrollArea(self)\n self.plot_widget = QtGui.QWidget()\n self.mpl_widget = ChacoQWidget(self)\n\n vbox = QtGui.QVBoxLayout()\n vbox.addWidget(self.mpl_widget) # the chaco canvas\n self.plot_widget.setLayout(vbox)\n\n self.mayavi_widget = MayaviQWidget(self)\n\n visualization_layout = QtGui.QSplitter(container)\n visualization_layout.addWidget(self.plot_widget)\n visualization_layout.addWidget(self.mayavi_widget)\n layout.addWidget(visualization_layout)\n\n # Controls\n self.time_slider = QtGui.QSlider(self)\n self.time_slider.setOrientation(QtCore.Qt.Horizontal)\n self.time_slider.setRange(0,1000)\n self.time_slider.setValue(0)\n self.time_slider.setEnabled(False)\n\n self.time_text = QtGui.QLineEdit()\n self.time_text.setText('0')\n self.time_text.editingFinished.connect(self._TimeTextChanged)\n self.time_text.setEnabled(False)\n\n self.correl_slider = QtGui.QSlider(self)\n self.correl_slider.setOrientation(QtCore.Qt.Horizontal)\n self.correl_slider.setRange(0,1000)\n self.correl_slider.setValue(0)\n\n self.correl_text = QtGui.QLineEdit()\n self.correl_text.setText('0')\n self.correl_text.editingFinished.connect(self._CorrelTextChanged)\n self.correl_text.setEnabled(False)\n\n controls_layout = QtGui.QGridLayout(container)\n controls_layout.addWidget(self.time_slider,0,0)\n controls_layout.addWidget(self.time_text,0,1)\n controls_layout.addWidget(self.correl_slider,1,0)\n controls_layout.addWidget(self.correl_text,1,1)\n layout.addLayout(controls_layout)\n controls_layout.activate()\n self.correl_text.resize(self.correl_text.sizeHint())\n self.time_text.resize(self.time_text.sizeHint())\n #layout.addWidget(mayavi_widget, 1, 1)\n\n container.show()\n self.setCentralWidget(container)\n\n def _BuildMenu(self):\n bar = self.menuBar()\n\n # File menu\n file_menu = bar.addMenu('File')\n\n open_action = QtGui.QAction('Open',self,triggered = self._OpenMatFile)\n open_action.setShortcut('Ctrl+O')\n file_menu.addAction(open_action)\n\n # Visualization menuBar\n visualization_menu = bar.addMenu('Visualization')\n\n self.head_visual_action = QtGui.QAction('Head', self, triggered = self._ToggleHeadVisibility)\n self.head_visual_action.setCheckable(True)\n self.head_visual_action.setChecked(True)\n self.head_visual_action.setEnabled(False)\n visualization_menu.addAction(self.head_visual_action)\n\n self.cortex_visual_action = QtGui.QAction('Cortex', self, triggered = self._ToggleCortexVisibility)\n self.cortex_visual_action.setCheckable(True)\n self.cortex_visual_action.setChecked(True)\n self.cortex_visual_action.setEnabled(False)\n visualization_menu.addAction(self.cortex_visual_action)\n\n self.dipole_visual_action = QtGui.QAction('Dipole',self, triggered = self._ToggleDipoleVisibility)\n self.dipole_visual_action.setCheckable(True)\n self.dipole_visual_action.setChecked(True)\n self.dipole_visual_action.setEnabled(False)\n visualization_menu.addAction(self.dipole_visual_action)\n\n def _BuildScene(self):\n selected_correl_value = self.correl.min()\n self.selected_ids = np.ravel_multi_index(np.where(self.correl>=selected_correl_value), self.correl.shape)\n self.mayavi_widget.SetPoints(self.virtual_sensor_positions[:,0],\n self.virtual_sensor_positions[:,1],\n self.virtual_sensor_positions[:,2],\n self.virtual_sensors_signals[self.time_slider.value()-1,self.selected_ids])\n\n self.mayavi_widget.SetScalarsRange(self.virtual_sensors_signals.min(),self.virtual_sensors_signals.max())\n self.mayavi_widget.ToggleScalarBarVisibility(True)\n\n self.mayavi_widget.AddCortex(self.cortex_vertices, self.cortex_triangles)\n self.mayavi_widget.AddHead(self.head_vertices, self.head_triangles)\n\n self.mayavi_widget.AddDipole(self.dipole_position, self.dipole_momentum)\n\n def _BuildPlot(self):\n self.mpl_widget.SetDipoleSignal(self.time,self.dipole_signal)\n self.mpl_widget.SetSignals(self.time, self.virtual_sensors_signals[self.selected_ids,:], self.time_slider.value()-1)\n\n def _TimeChanged(self, value):\n self.mayavi_widget.SetScalars(self.virtual_sensors_signals[self.selected_ids,value])\n self.mpl_widget.SetTimeIndex(value)\n self.time_text.setText(str(value))\n\n def _CorrelChanged(self, value):\n selected_correl_value = self.correl.min()+((self.correl.max()-self.correl.min())*float(value)/(self.correl.shape[1]-1))\n self.selected_ids = np.ravel_multi_index(np.where(self.correl>=selected_correl_value), self.correl.shape)\n\n # Update 3D scene\n self.mayavi_widget.SetPoints(self.virtual_sensor_positions[self.selected_ids,0],\n self.virtual_sensor_positions[self.selected_ids,1],\n self.virtual_sensor_positions[self.selected_ids,2],\n self.virtual_sensors_signals[self.selected_ids,self.time_slider.value()-1])\n # Update signal Plot\n self.mpl_widget.SetSignals(self.time,self.virtual_sensors_signals[self.selected_ids,:],time_index = self.time_slider.value()-1)\n\n self.correl_text.setText(str(value))\n\n def _TimeTextChanged(self):\n value = int(self.time_text.text())\n self.time_slider.setValue(value)\n self.mayavi_widget.SetScalars(self.virtual_sensors_signals[self.selected_ids,value])\n self.mpl_widget.SetTimeIndex(value)\n\n def _CorrelTextChanged(self):\n value = int(self.correl_text.text())\n self.correl_slider.setValue(value)\n\n selected_correl_value = self.correl.min()+((self.correl.max()-self.correl.min())*float(value)/(self.correl.shape[1]-1))\n self.selected_ids = np.ravel_multi_index(np.where(self.correl>=selected_correl_value), self.correl.shape)\n\n # Update 3D scene\n self.mayavi_widget.SetPoints(self.virtual_sensor_positions[self.selected_ids,0],\n self.virtual_sensor_positions[self.selected_ids,1],\n self.virtual_sensor_positions[self.selected_ids,2],\n self.virtual_sensors_signals[self.selected_ids,self.time_slider.value()-1])\n # Update signal Plot\n self.mpl_widget.SetSignals(self.virtual_sensors_signals[self.selected_ids,:], time_index = self.time_slider.value()-1)\n\n def _ToggleHeadVisibility(self, is_checked):\n self.mayavi_widget.ToggleHeadVisibility(is_checked)\n\n def _ToggleCortexVisibility(self, is_checked):\n self.mayavi_widget.ToggleCortexVisibility(is_checked)\n\n def _ToggleDipoleVisibility(self, is_checked):\n self.mayavi_widget.ToggleDipoleVisibility(is_checked)\n\nif __name__ == \"__main__\":\n # Don't create a new QApplication, it would unhook the Events\n # set by Traits on the existing QApplication. Simply use the\n # '.instance()' method to retrieve the existing one.\n app = QtGui.QApplication.instance()\n\n window = MainWindow()\n\n window.show()\n\n # Start the main event loop.\n app.exec_()\n","repo_name":"spherik/meg","sub_path":"QtMEG/qt_meg.py","file_name":"qt_meg.py","file_ext":"py","file_size_in_byte":11018,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"85"}
+{"seq_id":"16995578165","text":"import torch\nimport torch.nn as nn\nfrom .mlp import MLP\n\nclass Net(nn.Module):\n \"\"\"\n EWC [Kirkpatrick et al., 2017], where the loss is regularized to avoid catastrophic forgetting\n \"\"\"\n def __init__(\n self,\n n_inputs: int,\n n_outputs: int,\n n_tasks: int,\n args\n ):\n \"\"\"\n Parameters\n ----------\n n_inputs : int\n Number of inputs\n\n n_outputs : int\n Number of outputs\n\n n_tasks : int\n Number of tasks\n\n args\n Command line arguments\n \"\"\"\n super(Net, self).__init__()\n num_layers = args.num_layers\n hidden_size = args.hidden_size\n self.reg = args.memory_strength\n\n self.net = MLP([n_inputs] + [hidden_size] * num_layers + [n_outputs])\n\n # Set up optimizer\n self.opt = torch.optim.SGD(self.parameters(), lr=args.lr)\n\n # Set up losses\n self.loss = nn.CrossEntropyLoss()\n self.num_classes_per_task = n_outputs\n self.n_outputs = n_outputs\n self.n_memories = args.n_memories\n\n # Set up memories\n self.current_task = 0\n self.fisher = {}\n self.optpar = {}\n self.memx = None\n self.memy = None\n\n\n def forward(self, x, t):\n output = self.net(x)\n return output\n \n def observe(self, x, t, y):\n self.train()\n\n if t != self.current_task:\n self.opt.zero_grad()\n\n # Compute Fisher\n self.loss(self(self.memx, self.current_task), self.memy).backward()\n self.fisher[self.current_task] = []\n self.optpar[self.current_task] = []\n\n for p in self.net.parameters():\n pd = p.data.clone()\n pg = p.grad.data.clone().pow(2)\n self.fisher[self.current_task].append(pg)\n self.optpar[self.current_task].append(pd)\n\n self.current_task = t\n self.memx = None\n self.memy = None\n\n if self.memx is None:\n self.memx = x.data.clone()\n self.memy = y.data.clone()\n else:\n if self.memx.size()[0] < self.n_memories:\n self.memx = torch.cat((self.memx, x.data.clone()), 0)\n self.memy = torch.cat((self.memy, y.data.clone()), 0)\n if self.memx.size()[0] > self.n_memories:\n self.memx = self.memx[:self.n_memories]\n self.memy = self.memy[:self.n_memories]\n\n self.opt.zero_grad()\n loss = self.loss(self(x, t), y)\n for tt in range(t):\n for i, p in enumerate(self.net.parameters()):\n l = self.reg * self.fisher[tt][i]\n l = l * (p - self.optpar[tt][i]).pow(2)\n loss += l.sum()\n\n loss.backward()\n self.opt.step()","repo_name":"Minhchuyentoancbn/Continual-Learning","sub_path":"GEM/model/ewc.py","file_name":"ewc.py","file_ext":"py","file_size_in_byte":2846,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"19821100358","text":"# pylint: skip-file\n\"\"\"add includes_excludes_key to datapoint table\n\nRevision ID: d59ee5722264\nRevises: 36a3a319fd8f\nCreate Date: 2022-10-14 11:54:15.344773\n\n\"\"\"\nimport sqlalchemy as sa\nfrom alembic import op\n\n# revision identifiers, used by Alembic.\nrevision = \"d59ee5722264\"\ndown_revision = \"36a3a319fd8f\"\nbranch_labels = None\ndepends_on = None\n\n\ndef upgrade() -> None:\n # ### commands auto generated by Alembic - please adjust! ###\n op.add_column(\n \"datapoint\", sa.Column(\"includes_excludes_key\", sa.String(), nullable=True)\n )\n op.drop_constraint(\"unique_datapoint\", \"datapoint\", type_=\"unique\")\n op.create_unique_constraint(\n \"unique_datapoint\",\n \"datapoint\",\n [\n \"report_id\",\n \"start_date\",\n \"end_date\",\n \"dimension_identifier_to_member\",\n \"context_key\",\n \"includes_excludes_key\",\n \"metric_definition_key\",\n \"source_id\",\n ],\n )\n # ### end Alembic commands ###\n\n\ndef downgrade() -> None:\n # ### commands auto generated by Alembic - please adjust! ###\n op.drop_constraint(\"unique_datapoint\", \"datapoint\", type_=\"unique\")\n op.create_unique_constraint(\n \"unique_datapoint\",\n \"datapoint\",\n [\n \"report_id\",\n \"start_date\",\n \"end_date\",\n \"dimension_identifier_to_member\",\n \"context_key\",\n \"metric_definition_key\",\n \"source_id\",\n ],\n )\n op.drop_column(\"datapoint\", \"includes_excludes_key\")\n # ### end Alembic commands ###\n","repo_name":"Recidiviz/pulse-data","sub_path":"recidiviz/persistence/database/migrations/justice_counts/versions/2022_10_14_1154_d59ee5722264_add_includes_excludes_key_to_datapoint_.py","file_name":"2022_10_14_1154_d59ee5722264_add_includes_excludes_key_to_datapoint_.py","file_ext":"py","file_size_in_byte":1586,"program_lang":"python","lang":"en","doc_type":"code","stars":35,"dataset":"github-code","pt":"85"}
+{"seq_id":"2038667065","text":"from pexpect import popen_spawn\nimport os\nimport json\nfrom gamestate import GameState\n\nclass Game():\n round_info = None\n child = None\n ATTACKS = [\"Rock\", \"Paper\",\"Scissors\",\"Shoot the moom\",\"ROF Rock\",\"ROF Paper\",\"ROF Scissors\",\"ROF Shoot the moon\", \"ROF ROF\"]\n def __init__(self):\n self.child = child\n self.gamestate = GameState(1,1)\n self.game_finished = False\n \n def __del__(self):\n self.child.proc.terminate()\n \n def sendAttack(self, attackArr):\n cooldowns = list(self.gamestate.me_cooldowns.values())\n for i, cooldown in enumerate(cooldowns):\n if cooldown != 0:\n if i == 4:\n for j in range(len(attackArr)):\n if j >= 4: attackArr[j] = 0\n else:\n attackArr[i] = 0\n attackIndex = attackArr.index(max(attackArr)) + 1\n \n\n if(attackIndex > 4):\n self.child.sendline(\"{}\\r\\n\".format(5).encode('UTF-8'))\n self.child.sendline(\"{}\\r\\n\".format(attackIndex - 4).encode('UTF-8'))\n else:\n self.child.sendline(\"{}\\r\\n\".format(attackIndex).encode('UTF-8'))\n\n if self.gamestate.me_health <= 0 or self.gamestate.op_health <= 0:\n self.game_finished = True\n\n def get_fitness(self):\n if self.gamestate.op_health < 0:\n self.gamestate.op_health = 0\n return self.gamestate.me_health - self.gamestate.op_health\n\n def get_net_data(self):\n return self.gamestate.get_net_data()\n\n @staticmethod\n def remember(gamestate):\n json_string = Game.child.readline()\n Game.round_info = json.loads(str(json_string)[2:-5])\n gamestate.remember_turn(Game.round_info)\n print(json_string)","repo_name":"uwp-mlc/BattlePetsGeneticBot","sub_path":"ClassProject/ProjectWorkspace/FurbiesFighters/game.py","file_name":"game.py","file_ext":"py","file_size_in_byte":1786,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"22896892256","text":"from pyrogram import idle\n\nfrom config import *\nfrom PunyaAlby import BOTLOG_CHATID, LOGGER, LOOP, bots\nfrom PunyaAlby.helpers.misc import git, heroku\n\nMSG_ON = \"\"\"\n**ALBY-PYROBOT DIAKTIFKAN**🔥\n (\\︵/) \n ⫺( •ᆺ•)⫹ \n┏━∪ ━━━━━━━━\n➠ **Userbot Version -** `{}`\n➠ **Ketik** `{}alby` **untuk Mengecheck Bot**\n┗━━━━━━━━━━\n\"\"\"\n\n\nasync def main():\n for bot in bots:\n try:\n await bot.start()\n bot.me = await bot.get_me()\n await bot.join_chat(\"ruangdiskusikami\")\n await bot.join_chat(\"ruangprojects\")\n await bot.join_chat(\"ruang_gabutku\")\n await bot.send_message(BOTLOG_CHATID, MSG_ON.format(BOT_VER, CMD_HANDLER))\n except Exception as a:\n LOGGER(\"main\").warning(a)\n await idle()\n\n\nif __name__ == \"__main__\":\n LOGGER(\"PunyaAlby\").info(\"Starting ALBY-PYROBOT\")\n git()\n heroku()\n LOGGER(\"PunyaAlby\").info(f\"ALBY-PYROBOT v{BOT_VER} [🔥 BERHASIL DIAKTIFKAN! 🔥]\")\n LOOP.run_until_complete(main())\n","repo_name":"bitchlah/cadangan","sub_path":"PunyaAlby/__main__.py","file_name":"__main__.py","file_ext":"py","file_size_in_byte":1064,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"3948005017","text":"import random\n\nNUM_STANDARD_DICE = 5\n\ndef __mostFrequent(List):\n maxElement = max(set(List), key = List.count)\n numElement = List.count(maxElement)\n return numElement, maxElement\n\n# Roll a dice once\ndef __individualRoll():\n return random.randrange(1,7)\n \n# Roll 5 dice once each\ndef standardRoll(numDice: int = NUM_STANDARD_DICE):\n values = []\n\n for i in range(numDice):\n values.append(__individualRoll())\n\n return values\n\n# This is weighted since we will save the best\n# dice from the previous roll and reroll the rest\ndef weightedRoll(previousRoll: list):\n countMostFrequentOccurence, mostFrequentDiceElement = __mostFrequent(previousRoll)\n savedDice = [mostFrequentDiceElement] * countMostFrequentOccurence\n\n # Roll remaining dice that are not the majority\n roll = standardRoll(NUM_STANDARD_DICE-countMostFrequentOccurence)\n combination = savedDice + roll\n \n return combination \n\nif __name__ == \"__main__\":\n print(\"Cannot run this file as a stand alone script.\")","repo_name":"DennisPlaydon/yahtzee-calculator","sub_path":"engine/yahtzeeRoller.py","file_name":"yahtzeeRoller.py","file_ext":"py","file_size_in_byte":1020,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"35727210411","text":"# 조합 dp | bj 5569 출근 경로\nimport sys\n\n# import itertools\n# from math import factorial\n# from collections import deque\n\n# sys.setrecursionlimit(int(1e9))\ninp = sys.stdin.readline\n\nw, h = map(int, inp().split())\n# dp의 첫인자가 0 => 1칸이동 1 => 2칸이동 즉, 1이면 방향전환이 가능하다는것\n# dp의 두번째인자가 0 => 동으로 이동 1 => 북으로 이동\ndp = [[[[0, 0] for _ in range(2)] for _ in range(101)] for _ in range(101)]\n\nMOD = 100000\n\nfor row in range(2, h + 1):\n dp[row][1][0][0] = 1\nfor col in range(2, w + 1):\n dp[1][col][0][1] = 1\n\nfor row in range(2, h + 1):\n for col in range(2, w + 1):\n # 방향 전환이 불가능한 경우 = 첫번째 인자가 0인 경우\n # 이전칸에서 방향 전환을 한 경우이다\n dp[row][col][1][0] = dp[row - 1][col][0][1] % MOD\n dp[row][col][1][1] = dp[row][col - 1][0][0] % MOD\n # 방향전환이 가능한 경우는 = 첫번째 인자가 1인 경우\n # 이전칸에서 방향전환이 가능할때 + 불가능할때 이다\n dp[row][col][0][0] = (dp[row - 1][col][0][0] + dp[row - 1][col][1][0]) % MOD\n dp[row][col][0][1] = (dp[row][col - 1][0][1] + dp[row][col - 1][1][1]) % MOD\n\nanswer = 0\nfor i in range(2):\n for j in range(2):\n answer += dp[h][w][i][j]\n\nprint(answer%MOD)\n","repo_name":"chj3748/TIL","sub_path":"Algorithm/baekjoon/bj_5569#.py","file_name":"bj_5569#.py","file_ext":"py","file_size_in_byte":1343,"program_lang":"python","lang":"ko","doc_type":"code","stars":1,"dataset":"github-code","pt":"85"}
+{"seq_id":"39253716926","text":"# -----------\n# Automating Video\n# Week 1\n\n# Switch between two videos frames \n# -----------\n\nfrom random import randint, uniform\nimport moviepy.editor as mp\n\n# load the videos\nvideo = mp.VideoFileClip(\"videos/president.mp4\")\nvideo2 = mp.VideoFileClip(\"videos/day.mp4\")\n\nclips = []\n\n# create random short videos with the input videos\nfor i in range(0, 10):\n start = uniform(0, video.duration - 1)\n end = start + 1\n clip1 = video.subclip(start, end)\n\n start = uniform(0, video2.duration - 1)\n end = start + 1\n clip2 = video2.subclip(start, end)\n\n clips.append(clip1)\n clips.append(clip2)\n\n# make the videos\ncomposition = mp.concatenate(clips)\ncomposition.write_videofile(\"videos/juxtapose.mp4\", fps=25)\n","repo_name":"cvalenzuela/automating_video","sub_path":"inclass/week1/switch_bt_videos.py","file_name":"switch_bt_videos.py","file_ext":"py","file_size_in_byte":710,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"85"}
+{"seq_id":"31897271802","text":"import os\nimport random\nimport numpy as np\nimport torch\nfrom torch.utils.data import DataLoader\nfrom torchvision import transforms\nfrom torchvision.datasets import ImageFolder\nfrom models.moriaty import Moriaty\nfrom models.watson import Watson\nfrom torchsummary import summary\n\n\ndef model_summary_custom(model):\n \"\"\"Print out pretty model summary including parameter counts\"\"\"\n\n print(\"\\nLayer_name\" + \"\\t\" * 7 + \"Number of Parameters\")\n print(\"=\" * 100)\n\n model_parameters = [layer for layer in model.parameters()]\n layer_name = [child for child in model.children()]\n j, total_params = 0, 0\n print(\"\\t\" * 10)\n for i in layer_name:\n print()\n param = 0\n try:\n bias = (i.bias is not None)\n except:\n bias = False \n if not bias:\n param = model_parameters[j].numel() + model_parameters[j+1].numel()\n j = j+2\n else:\n param = model_parameters[j].numel()\n j = j+1\n print(str(i) + \"\\t\" * 3 + \"Parameters in Layer: \" + str(param))\n total_params += param\n print(\"=\" * 100)\n print(f\"Total Params: {total_params}\\n\")\n\n\ndef model_summary(model, model_name, printModel=False):\n \"\"\"Print out pretty model summary including parameter counts\"\"\"\n\n if printModel:\n print(\"Model:\")\n print(model)\n print()\n\n print(\"Model summary:\")\n if model_name in ['Moriaty', 'Moriaty_untrained']:\n model_summary_custom(model)\n else:\n summary(model, (3, 224, 224))\n\n\ndef set_seed(seed):\n \"\"\"Set ALL random seeds\"\"\"\n\n random.seed(seed)\n os.environ[\"PYTHONHASHSEED\"] = str(seed)\n np.random.seed(seed)\n torch.manual_seed(seed)\n if torch.cuda.is_available():\n torch.cuda.manual_seed_all(seed)\n torch.backends.cudnn.deterministic = True\n\n\nclass EarlyStopping:\n \"\"\"Early stops the training if validation loss doesn't improve after a given patience.\"\"\"\n\n def __init__(self, patience=7, verbose=False, delta=0, path='checkpoint.pt', trace_func=print, saveEveryEpoch=False):\n \"\"\"\n Args:\n patience (int): How long to wait after last time validation loss improved.\n Default: 7\n verbose (bool): If True, prints a message for each validation loss improvement. \n Default: False\n delta (float): Minimum change in the monitored quantity to qualify as an improvement.\n Default: 0\n path (str): Path for the checkpoint to be saved to.\n Default: 'checkpoint.pt'\n trace_func (function): trace print function.\n Default: print \n \"\"\"\n\n self.patience = patience\n self.verbose = verbose\n self.counter = 0\n self.best_score = None\n self.early_stop = False\n self.val_loss_min = np.Inf\n self.delta = delta\n self.path = path\n self.trace_func = trace_func\n self.saveEveryEpoch = saveEveryEpoch\n\n def __call__(self, val_loss, model, epoch):\n score = -val_loss\n\n if self.saveEveryEpoch:\n path = self.path[:-3] + \"_epoch_\" + str(epoch) + \".pt\"\n self.save_checkpoint(val_loss, model, path)\n\n if self.best_score is None:\n self.best_score = score\n self.save_checkpoint(val_loss, model, self.path)\n elif score < self.best_score + self.delta:\n self.counter += 1\n self.trace_func(f'EarlyStopping counter: {self.counter} out of {self.patience}')\n if self.counter >= self.patience:\n self.early_stop = True\n else:\n self.best_score = score\n self.save_checkpoint(val_loss, model, self.path)\n self.counter = 0\n\n def save_checkpoint(self, val_loss, model, path):\n \"\"\"Saves model when validation loss decreases.\"\"\"\n\n if self.verbose:\n self.trace_func(f'Val loss decreased ({self.val_loss_min:.6f} --> {val_loss:.6f}). Saving model...\\n')\n torch.save(model.state_dict(), path)\n self.val_loss_min = val_loss\n\n\ndef load_model(model_name, config, device, finetune=False):\n \"\"\"\"Load specified model from checkpoint onto device.\"\"\"\n\n if model_name == \"Moriaty_untrained\":\n path_model = None\n model = Moriaty().to(device)\n elif model_name == \"Moriaty\":\n path_model = config['path_model_moriaty']\n model = Moriaty().to(device)\n model.load_state_dict(torch.load(path_model, map_location=device))\n elif model_name == 'Moriaty_adv':\n path_model = config['path_model_moriaty_adv']\n model = Moriaty().to(device)\n model.load_state_dict(torch.load(path_model, map_location=device))\n elif model_name == \"Polimi\":\n from polimi.gan_vs_real_detector import Detector as PolimiNet\n path_model = None\n model = PolimiNet(device) # note: object is not a neural net\n elif model_name == \"Lestrade\":\n path_model = None\n model = Watson(finetune=finetune).to(device)\n elif model_name == \"Watson\":\n path_model = config['path_model_watson']\n model = Watson(finetune=finetune).to(device)\n model.load_state_dict(torch.load(path_model, map_location=device))\n elif model_name == 'Sherlock':\n path_model = config['path_model_sherlock']\n model = Watson(finetune=finetune).to(device)\n model.load_state_dict(torch.load(path_model, map_location=device))\n else:\n raise ValueError(\"Need to specify 'Lestrade', 'Sherlock', 'Watson' or 'Polimi'\")\n\n print(f\"Loaded model: {model_name} onto device: {device} from: {path_model}\")\n\n return model, model_name, path_model, device\n\n\ndef load_data(data_path, batch_size, model_name, seed, num_workers, adverserial_training=False):\n \"\"\"\"\n Load data from specified path and return dataloader with batch size.\n\n Automatic class assignments by ImageFolder function are done in order \n of folders in specified directory, so to obtain implicit class assignments \n (0: real, 1: fake) need to rename real FFHQ image folders as \"ffhq\" and \n fake StyleGAN image folders as \"stylegan\" (f < s for alphabetical ordering).\n This naming is also strictly necessary to pass the assert statement.\n\n Data folder structure/naming:\n - train\n - ffhq\n - stylegan2\n - val\n - ffhq\n - stylegan2\n - test\n - ffhq\n - stylegan3\n \"\"\"\n print('modelname:', model_name)\n\n # Set seed\n def seed_worker(worker_id):\n worker_seed = torch.initial_seed() % 2**32\n np.random.seed(worker_seed)\n random.seed(worker_seed)\n g = torch.Generator()\n g.manual_seed(seed)\n\n if model_name in ['Lestrade', 'Watson', 'Sherlock']:\n if adverserial_training == True:\n print(\"Use transformation for ResNet18 but without normalization\")\n transform = transforms.Compose([\n transforms.Resize(224),\n transforms.ToTensor(),\n ])\n else:\n print(\"Use transformation for ResNet18 with normalization\")\n transform = transforms.Compose([\n transforms.Resize(224),\n transforms.ToTensor(),\n transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])\n ])\n else:\n print(\"Use no transformation\")\n transform = transforms.Compose([\n transforms.ToTensor()\n ])\n\n data = ImageFolder(root=data_path, transform=transform)\n dataloader = DataLoader(\n data, \n batch_size=batch_size, \n shuffle=True,\n num_workers=num_workers,\n worker_init_fn=seed_worker,\n generator=g\n )\n\n assert data.class_to_idx == {'ffhq': 0, 'stylegan2': 1} or data.class_to_idx == {'ffhq': 0, 'stylegan3': 1}\n assert len(np.unique(data.targets)) == 2, \"More than two classes.\"\n print(\"Dataset size:\", len(dataloader.dataset))\n print(\"Class mapping:\", data.class_to_idx) # 0: Real, 1: Fake\n print(f\"Batch size: {batch_size}\")\n\n return dataloader\n","repo_name":"municola/robust-deepfake-detector","sub_path":"utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":8169,"program_lang":"python","lang":"en","doc_type":"code","stars":5,"dataset":"github-code","pt":"85"}
+{"seq_id":"11641345667","text":"from __future__ import unicode_literals\nimport os\nimport frappe\nimport libzfs\nimport subprocess\nfrom frappe.utils import cint\nfrom frappe.model.document import Document\nfrom zfs_admin.utils import run_command, sync_properties\n\nclass ZFSPool(Document):\n\t@property\n\tdef zpool(self):\n\t\tif not hasattr(self, \"_zpool\"):\n\t\t\tself._zpool = libzfs.ZFS().get(self.name)\n\t\treturn self._zpool\n\n\tdef sync(self):\n\t\tself.sync_properties()\n\t\tself.sync_vdev()\n\t\tself.save()\n\t\tself.sync_datasets()\n\n\tdef on_update(self):\n\t\tself.update_disks()\n\n\tdef sync_vdev(self):\n\t\t\"\"\"Sync virtual devices\"\"\"\n\t\tself.load_vdevs()\n\t\tself.fix_vdev_ordering()\n\n\tdef sync_datasets(self):\n\t\t\"\"\"Sync dataset info\"\"\"\n\t\tself.added = []\n\n\t\t# sync root dataset\n\t\tself.sync_one_dataset(self.zpool.root_dataset)\n\t\tself.added.append(self.zpool.root_dataset.name)\n\n\t\t# sync all children\n\t\tfor c in self.zpool.root_dataset.children_recursive:\n\t\t\tself.sync_one_dataset(c)\n\n\t\t# sync all snapshots\n\t\tfor c in self.zpool.root_dataset.snapshots_recursive:\n\t\t\tself.sync_one_dataset(c)\n\n\t\t# delete unsued\n\t\tfor d in frappe.db.sql_list(\"\"\"select name from `tabZFS Dataset`\n\t\t\twhere zfs_pool = %s and name not in ({0})\"\"\".format(\", \".join([\"%s\"] * len(self.added))),\n\t\t\t\t[self.name] + self.added):\n\t\t\tfrappe.delete_doc(\"ZFS Dataset\", d)\n\n\tdef sync_one_dataset(self, d):\n\t\tif frappe.db.exists(\"ZFS Dataset\", d.name):\n\t\t\tzdataset = frappe.get_doc(\"ZFS Dataset\", d.name)\n\t\telse:\n\t\t\tzdataset = frappe.new_doc(\"ZFS Dataset\")\n\t\t\tzdataset.name = d.name\n\n\t\tzdataset.sync_properties(d)\n\t\tzdataset.zfs_pool = self.name\n\t\tzdataset.save()\n\n\t\tself.added.append(zdataset.name)\n\n\tdef update_disks(self):\n\t\t\"\"\"Update Disk with pool and health status\"\"\"\n\t\tfor vdev in self.virtual_devices:\n\t\t\tif vdev.type == \"disk\":\n\t\t\t\tdisk_name = vdev.device_name\n\n\t\t\t\t# TODO: diskname wit partion suffix like ada0p1\n\t\t\t\t# this needs to be synced better\n\t\t\t\tif disk_name[-2] == \"p\":\n\t\t\t\t\tdisk_name = disk_name[:-2]\n\n\t\t\t\tdisk = frappe.get_doc(\"Disk\", disk_name)\n\t\t\t\tdisk.zfs_pool = self.name\n\t\t\t\tdisk.health = vdev.status\n\t\t\t\tdisk.save()\n\n\tdef load_vdevs(self):\n\t\t\"\"\"Load videvs from libzfs\"\"\"\n\t\tfor group in (\"data\", \"cache\", \"log\", \"spare\"):\n\t\t\tgroup_vdevs = self.zpool.groups.get(group)\n\t\t\tadded = {}\n\n\t\t\tfor i, vdev in enumerate(group_vdevs):\n\t\t\t\tparent_row = self.add_vdev(vdev)\n\n\t\t\t\tif parent_row.type == \"disk\":\n\t\t\t\t\tparent_row.device_name = self.get_disk_name(vdev.path)\n\t\t\t\telse:\n\t\t\t\t\tvdev_len = len([v for v in group_vdevs if v.type==vdev.type])\n\t\t\t\t\tif vdev_len > 1:\n\t\t\t\t\t\t# name as mirror-1, mirror-2 etc.\n\t\t\t\t\t\tvdev_id = added.setdefault(vdev.type, 1)\n\t\t\t\t\t\tparent_row.device_name = \"{0}-{1}\".format(vdev.type, vdev_id)\n\t\t\t\t\t\tadded[vdev.type] += 1\n\t\t\t\t\telse:\n\t\t\t\t\t\tparent_row.device_name = vdev.type\n\n\t\t\t\t\tfor disk in vdev.children:\n\t\t\t\t\t\trow = self.add_vdev(disk, True)\n\t\t\t\t\t\trow.group_type = parent_row.type\n\t\t\t\t\t\trow.device_name = self.get_disk_name(disk.path)\n\t\t\t\t\t\trow.parent_device_name = parent_row.device_name\n\n\tdef fix_vdev_ordering(self):\n\t\t\"\"\"Remove unused vdev records and order them so that the groups and disks\n\t\tappear below each other\"\"\"\n\t\tnew_list = []\n\t\tfor d in getattr(self, \"virtual_devices\", []):\n\t\t\tif getattr(d, \"mapped\", False):\n\t\t\t\tnew_list.append(d)\n\n\t\t# reorder in groups\n\t\tnew_order = []\n\t\tfor d in new_list:\n\t\t\tif d.parent_device_name: continue\n\t\t\tnew_order.append(d)\n\t\t\td.idx = len(new_order)\n\t\t\tif d.type != \"disk\":\n\t\t\t\tfor child in new_list:\n\t\t\t\t\tif child.parent_device_name == d.device_name:\n\t\t\t\t\t\tnew_order.append(child)\n\t\t\t\t\t\tchild.idx = len(new_order)\n\n\t\tself.virtual_devices = new_order\n\n\tdef get_disk_name(self, disk_path):\n\t\treturn os.path.split(disk_path)[-1]\n\n\tdef add_vdev(self, vdev, is_child=False):\n\t\t\"\"\"Add a new virtual device row\"\"\"\n\t\trow = self.get_vdev_row(vdev.guid)\n\t\tif not row:\n\t\t\trow = self.append(\"virtual_devices\", {\"guid\": vdev.guid})\n\n\t\trow.status = vdev.status\n\t\trow.type = vdev.type\n\t\trow.guid = vdev.guid\n\t\tif not is_child:\n\t\t\trow.size = vdev.size\n\n\t\trow.mapped = True\n\n\t\treturn row\n\n\tdef sync_properties(self):\n\t\t\"\"\"Sync ZFS Pool properties\"\"\"\n\t\tsync_properties(self, self.zpool.properties)\n\n\tdef get_vdev_row(self, guid):\n\t\tfor d in getattr(self, \"virtual_devices\", []):\n\t\t\tif str(d.guid) == str(guid):\n\t\t\t\treturn d\n\n\tdef zpool_add(self, type, disk1, disk2):\n\t\t\"\"\"Runs zpool add\"\"\"\n\t\tself.has_permission(\"write\")\n\n\t\tif type.lower()==\"disk\":\n\t\t\targs = [\"sudo\", \"zpool\", \"add\", self.name, disk1]\n\t\telse:\n\t\t\targs = [\"sudo\", \"zpool\", \"add\", self.name, type.lower(), disk1, disk2]\n\n\t\tout = run_command(args)\n\t\tif out==\"okay\":\n\t\t\tself.sync()\n\t\t\treturn out\n\n\tdef zpool_detach(self, disk):\n\t\t\"\"\"Runs zpool detach\"\"\"\n\t\tself.has_permission(\"write\")\n\t\tout = run_command([\"sudo\", \"zpool\", \"detach\", self.name, disk])\n\t\tif out==\"okay\":\n\t\t\tself.sync()\n\t\t\treturn out\n\n\tdef zpool_destroy(self):\n\t\t\"\"\"Runs zpool destroy\"\"\"\n\t\tself.has_permission(\"delete\")\n\n\t\tout = run_command([\"sudo\", \"zpool\", \"destroy\", self.name])\n\t\tif out==\"okay\":\n\t\t\t# remove references from disk\n\t\t\tfrappe.db.sql(\"update tabDisk set zfs_pool='' where zfs_pool=%s\", self.name)\n\n\t\t\t# delete zfs dataset records\n\t\t\tfor d in frappe.db.get_all(\"ZFS Dataset\", filters={\"zfs_pool\": self.name}):\n\t\t\t\tfrappe.delete_doc(\"ZFS Dataset\", d.name)\n\n\t\t\t# delete record\n\t\t\tself.delete()\n\t\t\treturn \"okay\"\n\ndef zpool_create(name, type, disk1, disk2):\n\t\"\"\"zpool create\"\"\"\n\tif type==\"Disk\":\n\t\targs = [\"sudo\", \"zpool\", \"create\", name, disk1]\n\telse:\n\t\targs = [\"sudo\", \"zpool\", \"create\", name, type.lower(), disk1, disk2]\n\n\tif run_command(args)==\"okay\":\n\t\tzfs_pool = frappe.new_doc(\"ZFS Pool\")\n\t\tzfs_pool.name = name\n\t\tzfs_pool.sync()\n\t\treturn \"okay\"\n","repo_name":"rmehta/zfs_admin","sub_path":"zfs_admin/zfs_admin/doctype/zfs_pool/zfs_pool.py","file_name":"zfs_pool.py","file_ext":"py","file_size_in_byte":5571,"program_lang":"python","lang":"en","doc_type":"code","stars":8,"dataset":"github-code","pt":"85"}
+{"seq_id":"17502532948","text":"from typing import List, Optional, Dict\nimport datetime\nfrom django.db import models, transaction\nfrom django.utils import timezone\nfrom django.utils.html import format_html\nfrom django.core.exceptions import ValidationError\nfrom django.contrib.postgres.fields import JSONField\nfrom django.conf import settings\n\nfrom project.common_data import Choices\nfrom project import common_data\nfrom project.util.site_util import absolute_reverse, get_site_name\nfrom project.util.instance_change_tracker import InstanceChangeTracker\nfrom users.models import JustfixUser\nfrom .landlord_lookup import lookup_landlord\n\n\nLOB_STRICTNESS_HELP_URL = \\\n \"https://lob.com/resources/guides/general/verification-of-mailing-addresses\"\n\nLOC_MAILING_CHOICES = Choices.from_file('loc-mailing-choices.json')\n\nLOC_REJECTION_CHOICES = Choices.from_file('loc-rejection-choices.json')\n\nUSPS_TRACKING_URL_PREFIX = common_data.load_json(\"loc.json\")[\"USPS_TRACKING_URL_PREFIX\"]\n\n# The amount of time a user has to change their letter of request\n# content after originally submitting it.\nLOC_CHANGE_LEEWAY = datetime.timedelta(hours=1)\n\n# Maximum length of a landlord address.\nADDR_LENGTH = 1000\n\n\nclass AccessDateManager(models.Manager):\n @transaction.atomic\n def set_for_user(self, user: JustfixUser, dates: List[datetime.date]):\n self.filter(user=user).delete()\n self.bulk_create([\n AccessDate(user=user, date=date)\n for date in dates\n ])\n\n def get_for_user(self, user: JustfixUser) -> List[datetime.date]:\n return [ad.date for ad in user.access_dates.all()]\n\n\nclass AccessDate(models.Model):\n class Meta:\n unique_together = ('user', 'date')\n\n user = models.ForeignKey(\n JustfixUser, on_delete=models.CASCADE, related_name='access_dates',\n help_text=\"The user whose dwelling this access date this is for.\")\n\n date = models.DateField(\n help_text=\"The date on which the user's dwelling will be accessible.\")\n\n objects = AccessDateManager()\n\n\nclass LandlordDetails(models.Model):\n '''\n This represents the landlord details for a user's address, either\n manually entered by them or automatically looked up by us (or a\n combination of the two, if the user decided to change what we\n looked up).\n '''\n\n user = models.OneToOneField(\n JustfixUser, on_delete=models.CASCADE, related_name='landlord_details',\n help_text=\"The user whose landlord details this is for.\")\n\n name = models.CharField(\n max_length=100, help_text=\"The landlord's name.\")\n\n address = models.CharField(\n max_length=ADDR_LENGTH,\n help_text=\"The full mailing address for the landlord.\")\n\n lookup_date = models.DateField(\n null=True,\n blank=True,\n help_text=\"When we last tried to look up the landlord's details.\"\n )\n\n is_looked_up = models.BooleanField(\n default=False,\n help_text=(\n \"Whether the name and address was looked up automatically, \"\n \"or manually entered by the user.\"\n )\n )\n\n @property\n def address_lines_for_mailing(self) -> List[str]:\n '''Return the full mailing address as a list of lines.'''\n\n if not self.address:\n return []\n return self.address.split('\\n')\n\n @classmethod\n def create_lookup_for_user(cls, user: JustfixUser) -> Optional['LandlordDetails']:\n '''\n Create an instance of this class by attempting to look up details on the\n given user's address.\n\n Assumes that the user does not yet have an instance of this class associated\n with them.\n\n If the lookup fails, this method will still create an instance of this class,\n but it will set the lookup date, so that another lookup can be attempted\n later.\n\n However, if the user doesn't have any address information, this will return\n None, as it has no address to lookup the landlord for.\n '''\n\n if hasattr(user, 'onboarding_info'):\n oi = user.onboarding_info\n info = lookup_landlord(\n oi.full_address,\n oi.pad_bbl,\n oi.pad_bin\n )\n details = LandlordDetails(\n user=user,\n lookup_date=timezone.now()\n )\n if info:\n details.name = info.name\n details.address = info.address\n details.is_looked_up = True\n details.save()\n return details\n return None\n\n\nclass AddressDetails(models.Model):\n '''\n A model that maps address \"blobs\" of text to individual fields that\n represent the address.\n '''\n\n class Meta:\n verbose_name_plural = \"Address details\"\n\n created_at = models.DateTimeField(auto_now_add=True)\n\n updated_at = models.DateTimeField(auto_now=True)\n\n address = models.CharField(\n max_length=ADDR_LENGTH,\n unique=True,\n help_text=(\n 'This is the address represented as a single string. Sometimes '\n 'we need to manually break it up into its constituent parts so '\n 'it is easier for machines to understand, which is what all '\n 'the other fields in this model are for.'\n )\n )\n\n primary_line = models.CharField(\n max_length=255,\n blank=True,\n help_text='Usually the first line of the address, e.g. \"150 Court Street\"'\n )\n\n secondary_line = models.CharField(\n max_length=255,\n blank=True,\n help_text='Optional. Usually the second line of the address, e.g. \"Suite 2\"'\n )\n\n urbanization = models.CharField(\n max_length=80,\n blank=True,\n help_text='Optional. Only used for addresses in Puerto Rico.'\n )\n\n city = models.CharField(\n max_length=80,\n blank=True,\n help_text='The city of the address, e.g. \"Brooklyn\".'\n )\n\n state = models.CharField(\n max_length=2,\n blank=True,\n help_text='The two-letter state for the address, e.g. \"NY\".'\n )\n\n zip_code = models.CharField(\n max_length=10,\n blank=True,\n help_text='The zip code of the address, e.g. \"11201\" or \"94107-2282\".'\n )\n\n is_definitely_deliverable = models.BooleanField(\n verbose_name=(\n \"This address is definitely deliverable \"\n \"(manually override Lob's address verification)\"\n ),\n default=False,\n help_text=(\n \"If you know for certain that this address is deliverable, even if Lob thinks \"\n \"otherwise, check this box. This will manually override Lob's verification \"\n \"and force any letters sent to this address to be mailed, assuming you have \"\n \"configured your \"\n f\"Lob strictness settings to 'Relaxed'.\"\n )\n )\n\n notes = models.TextField(\n blank=True,\n help_text=(\n \"Notes about this address. In particular, if you had to override the deliverability \"\n \"of this address or change it in non-trivial ways, please add your rationale here.\"\n )\n )\n\n # Attributes that map to keys used by Lob's verifications API:\n LOB_ATTRS = ['primary_line', 'secondary_line', 'urbanization', 'city', 'state', 'zip_code']\n\n def is_populated(self) -> bool:\n '''\n Return whether the model contains enough filled-out fields to be a useful\n substitute to the address string.\n '''\n\n return bool(self.primary_line and self.city and self.state and self.zip_code)\n\n def as_lob_params(self) -> Dict[str, str]:\n '''\n Returns a dictionary representing the address that can be passed directly\n to Lob's verifications API: https://lob.com/docs#us_verifications_create\n '''\n\n if not self.is_populated():\n return {'address': self.address}\n result: Dict[str, str] = {}\n for attr in self.LOB_ATTRS:\n value = getattr(self, attr)\n if value:\n result[attr] = value\n return result\n\n def __str__(self):\n return self.address.replace(\"\\n\", \" / \")\n\n\nclass LetterRequest(models.Model):\n '''\n A completed letter of complaint request submitted by a user.\n '''\n\n created_at = models.DateTimeField(auto_now_add=True)\n\n updated_at = models.DateTimeField(auto_now=True)\n\n user = models.OneToOneField(\n JustfixUser, on_delete=models.CASCADE, related_name='letter_request')\n\n mail_choice = models.TextField(\n max_length=30,\n choices=LOC_MAILING_CHOICES.choices,\n help_text=\"How the letter of complaint will be mailed.\")\n\n html_content = models.TextField(\n blank=True,\n help_text=\"The HTML content of the letter at the time it was requested.\"\n )\n\n lob_letter_object = JSONField(\n blank=True,\n null=True,\n help_text=(\n \"If the letter was sent via Lob, this is the JSON response of the API call that \"\n \"was made to send the letter, documented at https://lob.com/docs/python#letters.\"\n )\n )\n\n tracking_number = models.CharField(\n max_length=100,\n blank=True,\n help_text=(\n \"The tracking number for the letter. Note that when this is changed, \"\n \"the user will be notified via SMS and added to a LOC follow-up campaign, \"\n \"if one has been configured.\"\n ),\n )\n\n letter_sent_at = models.DateTimeField(\n null=True,\n blank=True,\n help_text=\"When the letter was mailed through the postal service.\"\n )\n\n rejection_reason = models.CharField(\n max_length=100,\n blank=True,\n choices=LOC_REJECTION_CHOICES.choices,\n help_text=\"The reason we didn't mail the letter, if applicable.\"\n )\n\n def __init__(self, *args, **kwargs) -> None:\n super().__init__(*args, **kwargs)\n self.__tracker = InstanceChangeTracker(self, ['mail_choice', 'html_content'])\n self.__tracking_number_tracker = InstanceChangeTracker(self, ['tracking_number'])\n\n @property\n def will_we_mail(self) -> bool:\n '''\n Whether or not the user wants us to mail the letter for them.\n '''\n\n return self.mail_choice == LOC_MAILING_CHOICES.WE_WILL_MAIL\n\n @property\n def admin_pdf_url(self) -> str:\n '''\n A link where an administrative/staff user can view the\n letter of complaint as a PDF.\n\n If we don't have enough information to generate such a link,\n this will be an empty string.\n '''\n\n if self.pk is None:\n return ''\n return absolute_reverse('loc_for_user', kwargs={'user_id': self.user.pk})\n\n def __str__(self):\n if not (self.created_at and self.user and self.user.full_name):\n return super().__str__()\n return (\n f\"{self.user.full_name}'s letter of complaint request from \"\n f\"{self.created_at.strftime('%A, %B %d %Y')}\"\n )\n\n @property\n def lob_letter_html_description(self) -> str:\n '''\n Return an HTML string that describes the mailed Lob letter. If\n the letter has not been sent through Lob, return an empty string.\n '''\n\n lob_url = self.lob_url\n return lob_url and format_html(\n 'The letter was '\n 'sent via Lob with the tracking number {} and '\n \"has an expected delivery date of {}.\",\n lob_url,\n self.lob_letter_object['tracking_number'],\n self.lob_letter_object['expected_delivery_date']\n )\n\n @property\n def lob_url(self) -> str:\n '''\n Return the URL on Lob where more information about the mailed Lob\n version of this letter can be found.\n\n If the letter has not been sent through Lob, return an empty string.\n '''\n\n if not self.lob_letter_object:\n return ''\n ltr_id = self.lob_letter_object['id']\n\n # This URL structure isn't formally documented anywhere, it was\n # just inferred, so it could technically break at any time, but\n # it's better than nothing!\n return f\"https://dashboard.lob.com/#/letters/{ltr_id}\"\n\n @property\n def usps_tracking_url(self) -> str:\n '''\n Return the URL on the USPS website where more information about\n the mailed letter can be found.\n\n If the letter has not been sent, return an empty string.\n '''\n\n if not self.tracking_number:\n return ''\n\n return f\"{USPS_TRACKING_URL_PREFIX}{self.tracking_number}\"\n\n def can_change_content(self) -> bool:\n if self.__tracker.original_values['mail_choice'] == LOC_MAILING_CHOICES.USER_WILL_MAIL:\n return True\n if self.lob_letter_object is not None:\n return False\n if self.tracking_number:\n return False\n if self.created_at is None:\n return True\n return timezone.now() - self.created_at < LOC_CHANGE_LEEWAY\n\n def clean(self):\n super().clean()\n user = self.user\n\n if self.rejection_reason and self.tracking_number:\n raise ValidationError('Letter cannot be both rejected and mailed!')\n\n if user and self.mail_choice == LOC_MAILING_CHOICES.WE_WILL_MAIL:\n if user.issues.count() == 0 and user.custom_issues.count() == 0:\n raise ValidationError(\n 'Please select at least one issue from the issue checklist.')\n if user.access_dates.count() == 0:\n raise ValidationError(\n 'Please provide at least one access date.')\n if not hasattr(user, 'landlord_details'):\n raise ValidationError(\n 'Please provide contact information for your landlord.')\n\n if self.__tracker.has_changed() and not self.can_change_content():\n raise ValidationError('Your letter is already being mailed!')\n\n def regenerate_html_content(self, author: str):\n from .views import render_letter_body\n\n header = (\n f'\\n'\n )\n self.html_content = header + render_letter_body(self.user)\n\n def _on_tracking_number_changed(self):\n if not self.tracking_number:\n return\n self.user.send_sms_async(\n f\"{get_site_name()} here - \"\n f\"We've mailed the letter of complaint to your landlord. \"\n f\"You can track its progress here: {self.usps_tracking_url} \"\n f\"(link may take a day to update)\"\n )\n self.user.send_sms_async(\n f\"We'll follow up in about a week to see how things are going.\"\n )\n self.user.trigger_followup_campaign_async(\"LOC\")\n\n def save(self, *args, **kwargs):\n super().save(*args, **kwargs)\n self.__tracker.set_to_unchanged()\n\n if self.__tracking_number_tracker.has_changed():\n self._on_tracking_number_changed()\n\n self.__tracking_number_tracker.set_to_unchanged()\n","repo_name":"ma8642/tenants2","sub_path":"loc/models.py","file_name":"models.py","file_ext":"py","file_size_in_byte":15339,"program_lang":"python","lang":"en","doc_type":"code","dataset":"github-code","pt":"85"}
+{"seq_id":"37854752838","text":"from rest_framework import serializers\n\nfrom . import models\n\n\nclass GenreSerializer(serializers.ModelSerializer):\n class Meta:\n model = models.Genre\n fields = '__all__'\n\n\nclass PersonSerializer(serializers.ModelSerializer):\n class Meta:\n model = models.Person\n fields = '__all__'\n\n\nclass RoleSerializer(serializers.ModelSerializer):\n # name = serializers.StringRelatedField(source='person')\n # Return list of names ['..'] instead a list of objects {name: '...'}\n def to_representation(self, obj):\n return obj.person.credited_name\n\n def to_internal_value(self, data):\n role = {\n \"person_id\": data\n }\n return role\n\n class Meta:\n model = models.Role\n\n fields = ['person']\n\n\nclass Country:\n pass\n\n\nclass CountrySerializer(serializers.ModelSerializer):\n class Meta:\n model = Country\n fields = '__all__'\n\nclass MovieSerializer(serializers.ModelSerializer):\n\n class Meta:\n model = models.Movie\n fields = '__all__'\n\n def create(self, validated_data):\n genre_data = validated_data.pop('genres')\n movie = models.Movie.objects.create(**validated_data)\n for genre in genre_data:\n movie.genres.add(genre.pk)\n return movie\n\n def update(self, instance, validated_data):\n print(validated_data)\n genre_data = validated_data.pop('genres')\n instance.movie_title = validated_data.get('movie_title', instance.movie_title)\n instance.runtime = validated_data.get('runtime', instance.runtime)\n instance.released = validated_data.get('released', instance.released)\n instance.country = validated_data.get('country', instance.country)\n instance.save()\n\n instance.genres.clear()\n\n for genre in genre_data:\n print(genre)\n instance.genres.add(genre.pk)\n\n return instance\n","repo_name":"raphi98/GreenGuru","sub_path":"backend/wapdev2/yamod/serializers.py","file_name":"serializers.py","file_ext":"py","file_size_in_byte":1918,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"71470869077","text":"def main():\n \"\"\"Searches for a record from the file 'records.txt'.\"\"\"\n found = False\n search = input('Enter a description to search for: ')\n records_file = open('records.txt', 'r')\n descr = records_file.readline()\n\n while descr != '':\n qty = float(records_file.readline())\n descr = descr.rstrip('\\n')\n if descr == search:\n print('Description:', descr)\n print('Quantity:', qty)\n print()\n found = True\n\n descr = records_file.readline()\n\n records_file.close()\n\n if not found:\n print('That item was not found in the file.')\n\n\nmain()\n","repo_name":"squidmin/python-labs","sub_path":"14_files_and_exceptions/13_search_records.py","file_name":"13_search_records.py","file_ext":"py","file_size_in_byte":632,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"14901808594","text":"import drawlibrary as dl\nimport naivesim as ns\n\n# todo - refactor functions to accomodate knockoutstage procedure rather than separate functions\n# todo - automate this more, rather than in test?\n# todo - sort prints by records\n\nclass Tournamentmaster:\n def __init__(self, players):\n # assume number of players is correct, and always 32 -> so max 5 rounds\n self.active_players = players\n self.eliminated_players = []\n self.games_played = 0\n self.matchups = None\n self.latest_winners = None\n self.knockoutstage = False\n self.knockoutbracket = None\n\n def get_active_players(self):\n return self.active_players\n\n def get_all_players(self):\n return self.active_players + self.eliminated_players\n\n def get_eliminated_players(self):\n return self.eliminated_players\n\n def get_player(self, name):\n for player in self.active_players:\n if player.name == name:\n return player\n for player in self.eliminated_players:\n if player.name == name:\n return player\n return None\n\n def get_matchups(self):\n return self.matchups\n\n def get_knockout_brackets(self):\n return self.knockoutbracket\n\n def simulate_round(self):\n self.latest_winners = ns.generate_results(self.matchups)\n self.__update_records()\n self.print_results()\n\n def __update_records(self):\n self.games_played += 1\n for i in range(0,len(self.matchups)):\n (p1,p2) = self.matchups[i]\n winner = self.latest_winners[i]\n if winner is p1:\n p1.update_record(True)\n p2.update_record(False)\n (p2w, p2l) = p2.get_record()\n if p2l > 2:\n self.active_players.remove(p2)\n self.eliminated_players.append(p2)\n else:\n p2.update_record(True)\n p1.update_record(False)\n (p1w, p1l) = p1.get_record()\n if p1l > 2:\n self.active_players.remove(p1)\n self.eliminated_players.append(p1)\n if self.games_played is 5:\n self.knockoutstage = True\n # todo - handle knockoutstage scenario\n\n def draw_matchups(self):\n players_by_losses = self.__sort_by_records()\n newmatchups = []\n for i in range(0, self.games_played+1):\n newmatchups += dl.draw_matchups(players_by_losses[i])\n self.matchups = newmatchups\n\n # sort list of players by records for drawing purposes\n def __sort_by_records(self):\n players_by_losses = {}\n for i in range(0,self.games_played+1):\n players_by_losses[i] = []\n for player in self.active_players:\n (pwin, ploss) = player.get_record()\n players_by_losses[ploss] += [player]\n return players_by_losses\n\n def draw_knockout_brackets(self):\n players_by_losses = self.__sort_by_records()\n self.knockoutbracket = dl.draw_knockout_brackets(players_by_losses[0],players_by_losses[1],players_by_losses[2])\n\n def simulate_ko_round(self):\n bracketsleft = len(self.knockoutbracket)\n # each bracket has 2 matches, except if 1 bracket left\n if bracketsleft is 1:\n if len(self.knockoutbracket[0]) is 2:\n winners = ns.generate_results(self.knockoutbracket[0])\n self.knockoutbracket = [[(winners[0],winners[1])]]\n else:\n winner = ns.generate_results(self.knockoutbracket[0])[0]\n print(\"YOUR WINNER IS \" + str(winner.get_name()))\n else:\n allwinners = []\n for bracket in self.knockoutbracket:\n winners = ns.generate_results(bracket)\n allwinners += winners\n newbrackets = []\n newnumbrackets = int(bracketsleft/2)\n for i in range(0,newnumbrackets):\n newbrackets += [[(allwinners[4*i+0],allwinners[4*i+1]),(allwinners[4*i+2],allwinners[4*i+3])]]\n self.knockoutbracket = newbrackets\n\n # assume that winners list and matchups match up\n def print_results(self):\n for i in range(0,len(self.matchups)):\n (p1,p2) = self.matchups[i]\n winner = self.latest_winners[i]\n if winner is p1:\n print(str(p1.get_name()) + \" BEATS \" + str(p2.get_name()))\n else:\n print(str(p2.get_name()) + \" BEATS \" + str(p1.get_name()))\n\n def print_matchups(self):\n for (p1, p2) in self.matchups:\n print(str(p1.get_name()) + \" VS \" + str(p2.get_name()))\n\n def print_all_records(self):\n for player in self.active_players:\n name, team, record = player.get_profile()\n (wins, losses) = record\n print(name + \" : (\" + str(wins) +\"-\"+str(losses)+\")\")\n for player in self.eliminated_players:\n name, team, record = player.get_profile()\n (wins, losses) = record\n print(name + \" : (\" + str(wins) +\"-\"+str(losses)+\")\")\n\n def print_active_records(self):\n for player in self.active_players:\n name, team, record = player.get_profile()\n (wins, losses) = record\n print(name + \" : (\" + str(wins) +\"-\"+str(losses)+\")\")\n\n def print_ko_draw(self):\n index = 1\n numbrackets = len(self.knockoutbracket)\n for bracket in self.knockoutbracket:\n if numbrackets is 1:\n if len(self.knockoutbracket[0]) is 1:\n print(\"YOUR FINAL:\")\n else:\n print(\"SEMIS:\")\n elif numbrackets is 2:\n if index is 1:\n print(\"TOP HALF:\")\n else:\n print(\"BOTTOM HALF:\")\n else:\n print(\"Section \"+str(index)+\":\")\n for (p1,p2) in bracket:\n print(str(p1.get_name()) + \" VS \" + str(p2.get_name()))\n index +=1\n\n def print_KO_results(self):\n pass\n","repo_name":"zfegd/Swiss-Format-Tracker","sub_path":"tournamentmaster.py","file_name":"tournamentmaster.py","file_ext":"py","file_size_in_byte":6091,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"70913035797","text":"import argparse\nimport os\nimport gc\nimport sys\nsys.path.append('./Grounded-Segment-Anything')\n\nimport numpy as np\nimport torch\nfrom PIL import Image\n\nfrom segment_anything import build_sam, SamPredictor, build_sam_vit_l, build_sam_vit_b, sam_model_registry\nfrom maskrcnn_benchmark.config import cfg\nfrom maskrcnn_benchmark.engine.predictor_glip import GLIPDemo\n\n\nclass SemanticPredGLIPSAM():\n\n def __init__(self, args, categories):\n self.caption = ' . '.join(categories) + '.'\n self.num_sem_categories = args.num_sem_categories\n\n # update the config options with the config file\n # manual override some options\n cfg.local_rank = 0\n cfg.num_gpus = 1\n cfg.merge_from_file(args.det_config_file)\n cfg.merge_from_list([\"MODEL.WEIGHT\", args.det_weight])\n cfg.merge_from_list([\"MODEL.DEVICE\", \"cuda\"])\n\n self.glip_demo = GLIPDemo(\n cfg,\n # min_image_size=800,\n confidence_threshold=args.det_thresh,\n show_mask_heatmaps=False\n )\n self.thresh = args.det_thresh\n self.device = \"cuda:0\"\n\n # initialize SAM\n self.predictor = SamPredictor(sam_model_registry[args.sam_type](checkpoint=args.sam_checkpoint).to(self.device))\n torch.cuda.set_device(args.sem_gpu_id)\n\n def get_prediction(self, img):\n H, W, _ = img.shape\n # convert to RGB\n rgb = img[:, :, [2, 1, 0]]\n\n top_predictions = self.glip_demo.inference(img, self.caption)\n print(top_predictions)\n\n labels = top_predictions.get_field('labels').numpy()\n print('seg labels: ', labels)\n\n if self.glip_demo.cfg.MODEL.RPN_ARCHITECTURE == \"VLDYHEAD\":\n plus = 1\n else:\n plus = 0\n\n semantic_input = np.zeros((H, W, self.num_sem_categories))\n\n if labels.shape[0] > 0:\n boxes_filt = top_predictions.bbox\n\n self.predictor.set_image(rgb)\n transformed_boxes = self.predictor.transform.apply_boxes_torch(boxes_filt, (H, W)).to(self.device)\n\n masks, _, _ = self.predictor.predict_torch(\n point_coords=None,\n point_labels=None,\n boxes=transformed_boxes.to(self.device),\n multimask_output=False,\n )\n\n masks = masks.cpu().numpy() * 1.0\n\n for j in range(len(labels)):\n class_idx = labels[j]\n if class_idx <= self.num_sem_categories:\n obj_mask = masks[j]\n semantic_input[:, :, class_idx - plus] += np.squeeze(obj_mask)\n\n return semantic_input, img\n","repo_name":"liangcici/MO-VLN","sub_path":"agents/utils/glip_sam_prediction.py","file_name":"glip_sam_prediction.py","file_ext":"py","file_size_in_byte":2641,"program_lang":"python","lang":"en","doc_type":"code","stars":14,"dataset":"github-code","pt":"85"}
+{"seq_id":"13153072042","text":"from pacfish import PAData\nfrom pacfish.qualitycontrol import CompletenessChecker, ConsistencyChecker\n\n\ndef quality_check_pa_data(pa_data: PAData, verbose: bool = False, log_file_path: str = None) -> bool:\n \"\"\"\n This is a convenience method that instantiates both a completeness and a consistency checker\n and evaluates the given PAData instance.\n\n Parameters\n ----------\n pa_data: PAData\n The PAData instance to check\n verbose: bool\n Specifies if the log report should be printed to the console\n log_file_path: str\n A path to a log file to write to\n\n Return\n ------\n bool\n True if and only if all completeness and quality checks are passed.\n \"\"\"\n completeness = CompletenessChecker(verbose=verbose, log_file_path=log_file_path)\n consistency = ConsistencyChecker(verbose=verbose, log_file_path=log_file_path)\n\n b1 = completeness.check_acquisition_meta_data(pa_data.meta_data_acquisition)\n b2 = consistency.check_acquisition_meta_data(pa_data.meta_data_acquisition)\n\n b3 = completeness.check_device_meta_data(pa_data.meta_data_device)\n b4 = consistency.check_device_meta_data(pa_data.meta_data_device)\n\n b5 = consistency.check_binary_data(pa_data.binary_time_series_data)\n\n return b1 and b2 and b3 and b4 and b5","repo_name":"IPASC/PACFISH","sub_path":"pacfish/qualitycontrol/PADataIntegrityCheck.py","file_name":"PADataIntegrityCheck.py","file_ext":"py","file_size_in_byte":1298,"program_lang":"python","lang":"en","doc_type":"code","stars":5,"dataset":"github-code","pt":"85"}
+{"seq_id":"22798112674","text":"import tornado.websocket\nfrom models import users\n\nnotifiers = {}\n\nclass NotificationsWebSocket(tornado.websocket.WebSocketHandler):\n\n def open(self):\n self.user = int(self.get_secure_cookie(\"user\"))\n notifiers[self.user] = self\n print('Notifications connected.')\n\n def on_message(self, target_id):\n print('--------MATCH----------')\n print(self.user, target_id)\n # check all connections and notify the other matched user\n target_id = int(target_id)\n if int(target_id) in notifiers:\n user = users.get_user(self.user)\n notifiers[int(target_id)].write_message(user['name'])\n\n def on_close(self):\n if self in notifiers:\n notifiers.remove(self)\n\n","repo_name":"omarmjhd/codr","sub_path":"server/api/notifications.py","file_name":"notifications.py","file_ext":"py","file_size_in_byte":746,"program_lang":"python","lang":"en","doc_type":"code","stars":8,"dataset":"github-code","pt":"85"}
+{"seq_id":"34806116745","text":"#!/usr/bin/env python\n# coding: utf-8\n# author email: erfan.molaei@gmail.com\nimport os\nimport pickle\nimport joblib\n\nimport numpy as np\nfrom scipy.stats import norm\n\nimport tensorflow as tf\nfrom tensorflow.keras import layers\nimport datetime\n\nfrom utils import load_datasets, encode_sequences\nfrom matplotlib.colors import LinearSegmentedColormap\nimport matplotlib.pyplot as plt \n\n# from Loss import plotLoss\n# from Latent import plotLatent1d, plotLatent2d\n\n# class metricsByEpoch(keras.callbacks.Callback):\n\n# def on_epoch_end(self, epoch, target_epochs):\n# if epoch in target_epoch:\n\n \n\ndef __create_callbacks__(metric, ld=6, epochs=1, optimizer='adam', batch_size=1):\n # cpk_path = f'./drive/My Drive/ShiLab/training_checkpoints/HLA/mixed_pop/mixed_best_model_{kfold}.h5'\n\n # checkpoint = tf.keras.callbacks.ModelCheckpoint(\n # filepath=cpk_path,\n # monitor= metric,\n # mode='min',\n # save_best_only=True,\n # verbose=1,\n # )\n\n log_dir = \"logs/fit/\" + f\"latent_dim_{ld}_bs_{batch_size}_epochs_{epochs}_optimizer_{optimizer}_\" + \\\n datetime.datetime.now().strftime(\"%Y%m%d-%H%M%S\")\n tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir, histogram_freq=1)\n\n reducelr = tf.keras.callbacks.ReduceLROnPlateau(\n monitor=metric,\n mode='min',\n factor=0.2,\n patience=10,\n verbose=0\n )\n\n earlystop = tf.keras.callbacks.EarlyStopping(\n monitor=metric,\n mode='min',\n patience=25,\n verbose=1,\n restore_best_weights=True\n )\n\n callbacks = [\n # checkpoint,\n # reducelr,\n # earlystop,\n tensorboard_callback]\n\n return callbacks\n\n\n@tf.function()\ndef _data_mapper(X_sample, q):\n # return tf.one_hot(X_sample, q)\n return tf.reshape(tf.one_hot(X_sample, q), [X_sample.shape[0], q, 1])\n # return tf.reshape(tf.one_hot(X_sample, q), [-1])\n\n\ndef _get_dataset(X, bs, q, training=True):\n AUTO = tf.data.experimental.AUTOTUNE\n dataset = tf.data.Dataset.from_tensor_slices((X))\n if training:\n dataset = dataset.shuffle(X.shape[0], reshuffle_each_iteration=True)\n dataset = dataset.repeat()\n # Add Attention Mask\n dataset = dataset.map(lambda x: _data_mapper(x, q), num_parallel_calls=AUTO, deterministic=False)\n # Prefetech to not map the whole dataset\n dataset = dataset.prefetch(AUTO)\n dataset = dataset.batch(bs, drop_remainder=False)\n return dataset\n\nclass Sampling(layers.Layer):\n \"\"\"Uses (z_mean, z_log_var) to sample z, the vector encoding a digit.\"\"\"\n\n def call(self, inputs, training=None):\n z_mean, z_log_var = inputs\n batch = tf.shape(z_mean)[0]\n dim = tf.shape(z_mean)[1]\n epsilon = tf.keras.backend.random_normal(shape=(batch, dim))\n return z_mean + tf.exp(0.5 * z_log_var) * epsilon\n\n\nclass BaseVAE(tf.keras.Model):\n def __init__(self, encoder, decoder, **kwargs):\n super(BaseVAE, self).__init__(**kwargs)\n self.encoder = encoder\n self.decoder = decoder\n self._set_inputs(inputs=self.encoder.inputs, outputs=decoder.outputs)\n self.total_loss_tracker = tf.keras.metrics.Mean(name=\"total_loss\")\n self.reconstruction_loss_tracker = tf.keras.metrics.Mean(\n name=\"reconstruction_loss\"\n )\n self.kl_loss_tracker = tf.keras.metrics.Mean(name=\"kl_loss\")\n self.hamming_loss_tracker = tf.keras.metrics.Mean(name=\"hamming_loss\")\n\n @property\n def metrics(self):\n return [\n self.total_loss_tracker,\n self.reconstruction_loss_tracker,\n self.kl_loss_tracker,\n self.hamming_loss_tracker,\n ]\n\n #def call(self, inputs, training=None):\n # return self.decoder(self.encoder(inputs, training=training)[-1], training=training)\n\n def train_step(self, data):\n with tf.GradientTape() as tape:\n z_mean, z_log_var, z = self.encoder(data)\n reconstruction = self.decoder(z)\n reconstruction_loss = tf.reduce_mean(\n tf.reduce_sum(\n tf.keras.losses.binary_crossentropy(data, reconstruction), axis=(1, 2)\n )\n )\n kl_loss = -0.5 * (1 + z_log_var - tf.square(z_mean) - tf.exp(z_log_var))\n kl_loss = tf.reduce_mean(tf.reduce_sum(kl_loss, axis=1))\n # hamming_loss = tfa.metrics.hamming_loss_fn(data, reconstruction, threshold=0.6, mode='multiclass')\n total_loss = reconstruction_loss + kl_loss\n\n grads = tape.gradient(total_loss, self.trainable_weights)\n self.optimizer.apply_gradients(zip(grads, self.trainable_weights))\n self.total_loss_tracker.update_state(total_loss)\n self.reconstruction_loss_tracker.update_state(reconstruction_loss)\n self.kl_loss_tracker.update_state(kl_loss)\n # self.hamming_loss_tracker.update_state(hamming_loss)\n return {\n \"loss\": self.total_loss_tracker.result(),\n \"reconstruction_loss\": self.reconstruction_loss_tracker.result(),\n \"kl_loss\": self.kl_loss_tracker.result(),\n # \"hamming_loss\": self.hamming_loss_tracker.result(),\n }\n\n def test_step(self, data):\n # Compute predictions\n z_mean, z_log_var, z = self.encoder(data)\n reconstruction = self.decoder(z)\n # Updates the metrics tracking the loss\n # hamming_loss = tfa.metrics.hamming_loss_fn(data, reconstruction, threshold=0.6, mode='multiclass')\n reconstruction_loss = tf.reduce_mean(\n tf.reduce_sum(\n tf.keras.losses.binary_crossentropy(data, reconstruction), axis=(1, 2)\n )\n )\n kl_loss = -0.5 * (1 + z_log_var - tf.square(z_mean) - tf.exp(z_log_var))\n kl_loss = tf.reduce_mean(tf.reduce_sum(kl_loss, axis=1))\n total_loss = reconstruction_loss + kl_loss\n self.total_loss_tracker.update_state(total_loss)\n self.reconstruction_loss_tracker.update_state(reconstruction_loss)\n self.kl_loss_tracker.update_state(kl_loss)\n # self.hamming_loss_tracker.update_state(hamming_loss)\n return {\n \"loss\": self.total_loss_tracker.result(),\n \"reconstruction_loss\": self.reconstruction_loss_tracker.result(),\n \"kl_loss\": self.kl_loss_tracker.result(),\n # \"hamming_loss\": self.hamming_loss_tracker.result(),\n }\n\n\nclass VAE:\n \"\"\"\n Abstract Base class for all VAEs. Does not specify layers, you must\n subclass it and provide an _enc_dec_layers method. The inputs are\n shaped as (L, q, 1) and the outputs of decoder layers should be of size L*q in any shape.\n \"\"\"\n\n def __init__(self, save_path='saved models', **kwargs):\n self.optimizer = None\n self.METRIC = None\n self.N = None\n self.save_root_dir = save_path + os.path.sep\n self.optimizers = {'adam': tf.keras.optimizers.Adam(),\n 'rmsprop': tf.keras.optimizers.RMSprop(),\n 'sgd': tf.keras.optimizers.SGD()}\n self.L, self.q = None, None\n self.batch_size, self.latent_dim = None, None\n self.z_mean = None\n self.z_log_var = None\n self._sampling = None\n self.vae = None\n self.hist = None\n\n def instantiate_model(self, L, q, latent_dim, batch_size, activation, **kwargs):\n self.L, self.q = L, q\n self.batch_size, self.latent_dim = batch_size, int(latent_dim)\n enc_layers, dec_layers = self._enc_dec_layers(self.L, self.q,\n self.latent_dim, self.batch_size,\n activation=activation, **kwargs)\n\n # Build the encoder\n encoder_inputs = x = tf.keras.layers.Input(shape=(self.L, self.q, 1))\n for layer in enc_layers:\n x = layer(x)\n\n self.z_mean = layers.Dense(self.latent_dim, name=\"z_mean\")(x)\n self.z_log_var = layers.Dense(latent_dim, name=\"z_log_var\")(x)\n self._sampling = z = Sampling()([self.z_mean, self.z_log_var])\n encoder = tf.keras.Model(encoder_inputs, [self.z_mean, self.z_log_var, z], name=\"encoder\")\n\n # Build the decoder\n latent_inputs = x = tf.keras.layers.Input(shape=(self.latent_dim,))\n for layer in dec_layers:\n x = layer(x)\n decoder_outputs = layers.Reshape((self.L, self.q, 1))(x)\n decoder = tf.keras.Model(latent_inputs, decoder_outputs, name=\"decoder\")\n self.vae = BaseVAE(encoder, decoder, **kwargs)\n\n def _enc_dec_layers(self, L, q, latent_dim, batch_size, activation, **kwargs):\n raise NotImplementedError()\n\n def train_vae(self, train_seqs, epochs, optimizer,\n val_seqs=None, save_history=True, verbose=2,\n use_callbacks=True):\n \"\"\"\n train_seqs: ndarray of shape (n_samples, L)\n val_seqs: ndarray of shape (n_samples, L)\n optimizer: string\n \"\"\"\n if val_seqs is not None:\n self.METRIC = \"val_loss\"\n else:\n self.METRIC = \"loss\"\n\n assert (self.L == train_seqs.shape[1])\n self.N = train_seqs.shape[0]\n self.optimizer = self.optimizers[optimizer]\n steps_per_epoch = np.ceil(train_seqs.shape[0] / self.batch_size)\n validation_steps = np.ceil(val_seqs.shape[0] / self.batch_size)\n assert (train_seqs.shape[0] <= val_seqs.shape[0])\n\n x_train = _get_dataset(train_seqs, self.batch_size, self.q, training=True)\n x_valid = _get_dataset(val_seqs, self.batch_size, self.q, training=False)\n\n callbacks = __create_callbacks__(metric=self.METRIC,\n ld=self.latent_dim,\n epochs=epochs,\n optimizer=self.optimizer._name,\n batch_size=self.batch_size)\n # super(BaseVAE, self).build(input_shape)\n self.vae.compile(optimizer=self.optimizer)\n self.hist = self.vae.fit(x_train,\n epochs=epochs,\n steps_per_epoch=steps_per_epoch,\n validation_steps=validation_steps,\n validation_data=x_valid,\n callbacks=callbacks if use_callbacks else None,\n verbose=verbose,\n )\n # if save_history:\n # with open(\n # f\"logs/logs_Latent_{self.latent_dim}_batch_size_\"\n # f\"{self.batch_size}_epochs_{epochs}_optimizer_{self.optimizer._name}\" + \".pkl\",\n # 'wb') as f:\n # pickle.dump(hist.history, f)\n\n def summarize(self):\n self.vae.encoder.summary()\n self.vae.decoder.summary()\n\n def save_model(self, name, path):\n print(\"Saving Model...\")\n path = path +\"/model/\"\n tf.keras.models.save_model(self.vae.encoder, path + name + \"_enc\", save_format=\"tf\", include_optimizer=True)\n \n tf.keras.models.save_model(self.vae.decoder, path + name + \"_dec\", save_format=\"tf\")\n\n with open(path + '{}_param.pkl'.format(name), 'wb') as f:\n d = (self.batch_size, self.L, self.q, self.latent_dim,\n self.vae.optimizer.get_config(), self.__class__.__name__)\n joblib.dump(d, f)\n \n print(\"Model Saved Successfully!\")\n\n def _extract_layers(self):\n # self.encoder = self.vae.get_layer('encoder')\n # self.decoder = self.vae.get_layer('decoder')\n self.z_mean = self.vae.encoder.get_layer('z_mean').output\n self.z_log_var = self.vae.encoder.get_layer('z_log_var').output\n self._sampling = Sampling()([self.z_mean, self.z_log_var])\n\n def load_model(self, name, path):\n print(\"Loading Model...\")\n path = path + \"/model/\"\n with open(path + '{}_param.pkl'.format(name), 'rb') as f:\n d = joblib.load(f)\n self.batch_size, self.L, self.q, self.latent_dim, opt_config, cls = d\n\n encoder = tf.keras.models.load_model(path + name + \"_enc\", compile=False)\n decoder = tf.keras.models.load_model(path + name + \"_dec\", compile=False)\n self.vae = BaseVAE(encoder, decoder)\n\n self._extract_layers()\n # self.vae.optimizer.from_config(opt_config)\n print(\"Model Loaded Successfully!\")\n pass\n\n def encode(self, data):\n z_mean, z_log_var, _ = self.vae.encoder.predict(tf.keras.utils.to_categorical(data, self.q))\n return z_mean, z_log_var\n\n def decode_bernoulli(self, z):\n brnll = self.vae.decoder.predict(z)\n brnll = brnll.reshape((z.shape[0], self.L, self.q))\n # clip like in Keras categorical_crossentropy used in vae_loss\n brnll = np.clip(brnll, 1e-7, 1 - 1e-7)\n brnll = brnll / np.sum(brnll, axis=-1, keepdims=True)\n return brnll\n\n def single_sample(self, data):\n return self.vae.predict(tf.keras.utils.to_categorical(data, self.q))\n\n def lELBO(self, seqs, n_samples=1000):\n N, L = seqs.shape\n rN, rL = np.arange(N)[:,None], np.arange(L)\n\n zm, zlv = self.vae.encode(seqs)\n zstd = np.exp(zlv/2)\n\n kl_loss = 0.5*np.sum(1 + zlv - np.square(zm) - np.exp(zlv), axis=-1)\n\n xent_loss = np.zeros(N, dtype=float)\n for n in range(n_samples):\n z = norm.rvs(zm, zstd)\n brnll = self.decode_bernoulli(z)\n xent_loss += np.sum(-np.log(brnll[rN, rL, seqs]), axis=-1)\n xent_loss /= n_samples\n\n return xent_loss - kl_loss\n\n def logp(self, seqs, n_samples=1000):\n N, L = seqs.shape\n rN, rL = np.arange(N)[:,None], np.arange(L)\n\n zm, zlv = self.vae.encode(seqs)\n zstd = np.exp(zlv/2)\n\n logp = None\n for n in range(n_samples):\n z = norm.rvs(zm, zstd)\n brnll = self.decode_bernoulli(z)\n\n lqz_x = np.sum(norm.logpdf(z, zm, zstd), axis=-1)\n lpx_z = np.sum(np.log(brnll[rN, rL, seqs]), axis=-1)\n lpz = np.sum(norm.logpdf(z, 0, 1), axis=-1)\n lpxz = lpz + lpx_z\n\n if logp is None:\n logp = lpxz - lqz_x\n else:\n np.logaddexp(logp, lpxz - lqz_x, out=logp)\n\n return logp - np.log(n_samples)\n\n def generate(self, N):\n # returns a generator yielding sequences in batches\n assert(N % self.batch_size == 0)\n\n print(\"\")\n for n in range(N // self.batch_size):\n print(\"\\rGen {}/{}\".format(n*self.batch_size, N), end='')\n\n z = norm.rvs(0., 1., size=(self.batch_size, self.latent_dim))\n brnll = self.decode_bernoulli(z)\n\n c = np.cumsum(brnll, axis=2)\n c = c/c[:,:,-1,None] # correct for fp error\n r = np.random.rand(self.batch_size, self.L)\n\n seqs = np.sum(r[:,:,None] > c, axis=2, dtype='u1')\n yield seqs\n print(\"\\rGen {}/{} \".format(N, N))\n\n def getLoss(self):\n loss = {}\n\n loss['kl'] = self.hist.history['kl_loss']\n loss['val_kl'] = self.hist.history['val_kl_loss']\n loss['rec'] = self.hist.history['reconstruction_loss']\n loss['val_rec'] = self.hist.history['val_reconstruction_loss']\n loss['total'] = self.hist.history['loss']\n loss['val_total'] = self.hist.history['val_loss']\n\n return loss\n\n # def get_config(self):\n # return{\"optimizer\": self.optimizer,\n # \"METRIC\": self.METRIC,\n # \"N\": self.N, \n # \"save_root_dir\": self.save_root_dir,\n # \"optimizers\": self.optimizers,\n # \"L\": self.L,\n # \"q\": self.q,\n # \"batch_size\": self.batch_size,\n # \"latent_dim\": self.latent_dim,\n # \"z_mean\": self.z_mean,\n # \"z_log_var\": self.z_log_var,\n # \"_sampling\": self._sampling,\n # \"vae\": self.vae,\n # \"hist\": self.hist\n # }\n \n # @classmethod\n # def from_config(cls, config):\n # return cls(**config)\n\nclass SVAE(VAE):\n def __init__(self, **kwargs):\n super(SVAE, self).__init__(**kwargs)\n self._is_graph_network=False\n\n def instantiate_model(self, L, q, latent_dim, batch_size, activation, inner_dim):\n self.inner_dim = inner_dim\n super(SVAE, self).instantiate_model(L, q, latent_dim, batch_size, activation)\n\n def _enc_dec_layers(self, L, q, latent_dim, batch_size, activation):\n enc_layers = [layers.Flatten(),\n layers.Dense(self.inner_dim, activation=activation),\n layers.Dropout(0.3),\n layers.Dense(self.inner_dim, activation=activation),\n layers.BatchNormalization(),\n layers.Dense(self.inner_dim, activation=activation)]\n\n dec_layers = [layers.Dense(self.inner_dim, activation=activation),\n layers.Dense(self.inner_dim, activation=activation),\n layers.Dropout(0.3),\n layers.Dense(self.inner_dim, activation=activation),\n layers.Dense(L * q, activation='sigmoid'),\n ]\n\n return enc_layers, dec_layers\n\n def get_config(self):\n return{\"optimizer\": self.optimizer,\n \"METRIC\": self.METRIC,\n \"N\": self.N, \n \"save_root_dir\": self.save_root_dir,\n \"optimizers\": self.optimizers,\n \"L\": self.L,\n \"q\": self.q,\n \"batch_size\": self.batch_size,\n \"latent_dim\": self.latent_dim,\n \"z_mean\": self.z_mean,\n \"z_log_var\": self.z_log_var,\n \"_sampling\": self._sampling,\n \"vae\": self.vae,\n \"hist\": self.hist\n }\n \n @classmethod\n def from_config(cls, config):\n return cls(**config)\n","repo_name":"jclamanna/neoTesting","sub_path":"newVaes.py","file_name":"newVaes.py","file_ext":"py","file_size_in_byte":18106,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"30819474711","text":"# this is the run file\nfrom datetime import datetime\nfrom simulation_0_0 import simulate\n\n\ndef run(param):\n start = datetime.now()\n now = start.strftime(\"%d/%m/%Y %H:%M:%S\")\n print(' =============================================== \\n',\n 'DECISION SUPPORT FOR SUSTAINABLE PROCESS DESIGN \\n',\n now, '\\n',\n '===============================================',\n )\n\n months = 240 + 48\n\n sim = simulate(months, table=False, plot=True, Excel_p=False,\n # manufacturer settings\n capacity_root_coeff=2.0, speed_of_build=0.3, time_to_build=6.0,\n # regulator settings\n notice_period=30, fraction=0.1, start_levy=0.5, ratio_jump=0.2, wait_time=48,\n compliance_threshold=0.5,\n decade_jump=0.8)\n\n end = datetime.now()\n now = end.strftime(\"%d/%m/%Y %H:%M:%S\")\n print('\\n ==================== \\n',\n 'SIMULATION COMPLETE \\n',\n now, '\\n',\n '==================== \\n',\n )\n return\n\n\nif __name__ == '__main__':\n for x in [1.0]:\n run(x)\n","repo_name":"EugeCarr/decision-support-2","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":1128,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"75165313558","text":"\"\"\"Main OOP implementation of our application.\"\"\"\n# Internal Imports\nimport maze\nimport tkColourPicker\nfrom database import Database\nfrom help import HelpMenu\n\n# External imports\n# Tkinter, ttk and messagebox libraries used for GUI aspects of the program.\nimport tkinter as tk\nimport tkinter.ttk as ttk\nimport tkinter.messagebox as mb\nfrom tkinter.filedialog import asksaveasfilename, askopenfilename\n# os used for handling directories.\nimport os\n# sys used for getting resource paths for packed program.\nfrom utils import getResourcePath, loadFont\n\n\"\"\"\nBUGS:\n MAJOR - When maze is solved, it can then be continued from solving\n menus, causing issues\n MINOR - Slight visual blank area at bottom of maze on occasion.\n\"\"\"\n\n\"\"\"\nTODO:\n Help Button, HOME PAGE, Top left\n WHEN MAZE LOADED, CHANGE APP Title TO REFLECT FILE\n\"\"\"\n\n\nclass Application(tk.Tk):\n \"\"\"Class used to house the GUI aspects of the application.\"\"\"\n\n def __init__(self, *args, **kwargs):\n \"\"\"Initialise Application class.\"\"\"\n super().__init__()\n\n # Set the Title and icon of our application.\n self.title(\"PathFinding\")\n self.Title = \"PathFinding\"\n\n # Set default background and foreground colours for all widgets.\n self.tk_setPalette(background=\"#D9D9D9\", foreground=\"#000000\")\n\n # Set our programs icon for the top left.\n self.iconbitmap(getResourcePath(\"assets/maze.ico\"))\n\n # Load in Database\n dirPath = os.path.join(os.environ['APPDATA'], 'PathFinding')\n if not os.path.exists(dirPath):\n os.makedirs(dirPath)\n filePath = os.path.join(dirPath, \"userData.db\")\n self.db = Database(filePath, maze.tileColours)\n\n # Add current user\n self.userID, colours = self.db.loginUser(os.getlogin())\n\n # Stop the user from resizing the screen.\n self.screenSize = 750\n # Take away 5 to account for border of screen so maze fits properly\n self.minsize(width=self.screenSize - 5, height=self.screenSize - 5)\n\n self.resizable(False, False)\n\n # Create all styles to be used for our GUI.\n self.loadStyles()\n\n # Ensure all placed items are centered.\n self.grid_columnconfigure(0, weight=1)\n\n # Create a dictionary for the screen tabs and populate it.\n self.frames = dict()\n\n # Load in all tabs and put them in our dictionary.\n self.frames[HomeScreen] = HomeScreen(self)\n self.frames[MazeScreen] = MazeScreen(self)\n\n # Load the homescreen\n self.changeFrame(HomeScreen)\n\n # Create a dictionary for the side menus and populate it.\n self.menus = dict()\n\n # Load in all menus and put them in our dictionary.\n self.menus[MenuList] = MenuList(self)\n self.menus[ColourSettings] = ColourSettings(self)\n self.menus[SolverSettings] = SolverSettings(self)\n self.menus[GenerationSettings] = GenerationSettings(self)\n self.menus[SolverMenu] = SolverMenu(self)\n self.menus[EditMenu] = EditMenu(self)\n\n # Load Maze\n self.loadMaze()\n\n # Load in Top Menu\n self.loadTopMenu()\n\n # Bind for Easter Egg\n self.EESequence = [38, 38, 40, 40, 37, 39, 37, 39, 66, 65]\n self.EEPos = 0\n self.bind(\"\", self.keyPress)\n\n def keyPress(self, event):\n \"\"\"Handle key presses on the main menu.\"\"\"\n if event.keycode == self.EESequence[self.EEPos]:\n self.EEPos += 1\n else:\n self.EEPos = 0\n\n if self.EEPos == len(self.EESequence):\n mb.showinfo(self.Title,\n u\"Found it!\\n31.9505\\u00B0 S, 115.8605\\u00B0 E\")\n self.EEPos = 0\n\n def loadStyles(self):\n \"\"\"\n Load the different styles needed for labels, buttons as well as\n loading in a custom font.\n \"\"\"\n # Load in a custom font\n loadFont(\"assets/fonts/AlegreyaSansSC-Regular.ttf\")\n # Load a style object\n self.style = ttk.Style()\n\n # Set the default background for all widgets to a specific colour\n self.style.configure(\".\", background=\"#d9d9d9\")\n\n # Load in styles for any situation we need.\n self.style.configure(\"Header.TLabel\",\n font=(\"Alegreya Sans SC Regular\",\n 15, \"bold italic\"))\n\n self.style.configure(\"Subheading.TLabel\",\n font=(\"Alegreya Sans SC Regular\", 13))\n\n self.style.configure(\"Footer.TLabel\",\n font=(\"Alegreya Sans SC Regular\", 12, \"roman\"))\n\n self.style.configure(\"Settings.TButton\",\n height=2, width=20,\n font=(\"Alegreya Sans SC Regular\", 15))\n\n def loadTopMenu(self):\n \"\"\"\n Method for loading in the top menu of the screen.\n \"\"\"\n self.menubar = tk.Menu(self)\n\n self.menubar.add_command(label=\"Home\",\n command=lambda: self.changeFrame(HomeScreen))\n\n fileMenu = tk.Menu(self.menubar, tearoff=False)\n fileMenu.add_command(label=\"Save Maze\", command=self.saveMazeFile)\n fileMenu.add_command(label=\"Load Maze\", command=self.loadMazeFile)\n fileMenu.add_separator()\n fileMenu.add_command(label=\"Save Solve\",\n command=lambda: print(\"Save Solve\"))\n fileMenu.add_command(label=\"Load Solve\",\n command=lambda: print(\"Load Solve\"))\n\n self.menubar.add_cascade(label=\"File\", menu=fileMenu)\n\n self.menubar.add_command(label=\"Generate Maze\",\n command=self.generateMaze)\n\n # If we are currently solving a maze, this brings up the Solver Menu,\n # otherwise it solves the Maze.\n self.menubar.add_command(label=\"Solve Current Maze\",\n command=lambda: self.changeMenu(SolverMenu)\n if self.maze.solving else self.solveMaze())\n\n self.menubar.add_command(label=\"Enter edit mode\",\n command=self.editMode)\n\n self.menubar.add_command(label=\"Settings\",\n command=lambda: self.changeMenu(MenuList))\n\n def changeFrame(self, newFrame):\n \"\"\"\n Internal method for changing the current frame shown on screen.\n Arguments:\n newFrame -- The frame to change to\n \"\"\"\n # Loop through all frames that are currently on the grid and remove\n # them from the grid\n for frame in self.grid_slaves():\n if frame.grid_info()[\"column\"] == 0:\n frame.grid_forget()\n # If we're going to the home screen, remove the menubar from the Top\n # Otherwise, place our menubar there.\n if newFrame == HomeScreen:\n self.changeMenu(None)\n emptyMenu = tk.Menu(self)\n self.config(menu=emptyMenu)\n else:\n self.config(menu=self.menubar)\n # Load the new frame\n frame = self.frames[newFrame]\n # Place our new frame onto the grid\n frame.grid(row=0, column=0)\n frame.grid(row=0, column=0, sticky=\"N\")\n\n def changeMenu(self, newMenu):\n \"\"\"\n Internal method for changing the current frame shown on screen.\n Arguments:\n newFrame -- The frame to change to\n \"\"\"\n # Loop through all frames that are currently on the grid and remove\n # them from the grid\n for frame in self.grid_slaves():\n if frame.grid_info()[\"column\"] == 1:\n frame.grid_forget()\n\n # Disable edit mode\n self.frames[MazeScreen].editMode = False\n\n if newMenu is not None:\n # Load the new frame\n frame = self.menus[newMenu]\n # Place our new frame onto the grid\n frame.grid(row=0, column=1, sticky=\"NE\")\n\n def saveMazeFile(self):\n \"\"\"\n Method used to translate a maze object into a binary file.\n Displays a dialog box for user to select file path and\n translates object.\n Arguments:\n NONE\n \"\"\"\n # Open a file save dialog for the user.\n filePath = asksaveasfilename(initialdir=\"./saves/\",\n filetypes=[('MAZ Files', '.maz')],\n title=\"Where to save file?\")\n\n # If the file path fits the form of '*.maz' then save it.\n # Otherwise don't.\n if filePath.endswith(\".maz\"):\n self.maze.toFile(filePath)\n elif filePath.strip(\" \") == \"\":\n return\n else:\n self.maze.toFile(filePath+\".maz\")\n\n def loadMazeFile(self):\n \"\"\"\n Load a maze object from a binary file.\n\n Displays a dialog box for user to select file path and\n translates object.\n Arguments:\n NONE\n \"\"\"\n if self.maze.solving:\n mb.showerror(\"ERROR\", \"Maze already being solved\")\n return\n # Display a dialog box to get file path.\n filePath = askopenfilename(initialdir=\"./saves/\",\n filetypes=[('MAZ Files', '.maz')],\n title=\"Please select a .MAZ file\")\n # Ensure the filepath has a .maz suffix and if not, show an error.\n if filePath.endswith(\".maz\"):\n self.maze.fromFile(filePath)\n self.changeFrame(MazeScreen)\n self.title(\"PathFinding | {}\".format(filePath))\n elif filePath != \"\":\n mb.showerror(self.Title, \"That is not a valid filename.\\n \" +\n \"Please ensure the filePath fits \" +\n \"the form of '*.maz'\")\n\n def loadMaze(self, size=51):\n \"\"\"\n Load in a blank Maze object.\n Arguments:\n size -- The width and height of the new Maze\n \"\"\"\n # Load the frame we are going to attach it to.\n frame = self.frames[MazeScreen]\n self.maze = None\n self.maze = maze.Maze(frame, canvasSize=self.screenSize, size=size)\n self.maze.canvas.grid(row=0, column=0)\n\n def generateMaze(self):\n \"\"\"\n Method used to generate a maze based on current settings\n from the settings menu.\n Arguments:\n NONE\n \"\"\"\n if self.maze.solving:\n mb.showerror(\"ERROR\", \"Maze already being solved\")\n return\n # Copy the GenerationSettings for easier referencing.\n settings = self.menus[GenerationSettings]\n\n # Get the algorithm choice and load that algorithms Generator.\n algorithm = settings.algorithmChoice.get()\n\n if algorithm == \"Flood Fill\":\n from generators.floodfill import Generator\n elif algorithm == \"Kruskals Algorithm\":\n from generators.kruskals import Generator\n elif algorithm == \"Subchamber Division\":\n from generators.subchamberdivision import Generator\n elif algorithm == \"Blank Maze\":\n from generators.blankmaze import Generator\n else:\n mb.showerror(\"ERROR\", \"Error loading generator, \" +\n \"please choose another generator\")\n return\n\n # Load in the size of the maze from settings\n size = int(settings.mazeSize.get())\n\n # Reset the current maze and generate a new one from the\n # loaded generator.\n self.loadMaze(size)\n Generator(self.maze)\n\n # Reset the programs title\n self.title(\"PathFinding\")\n\n def solveMaze(self):\n \"\"\"\n Method used to solve a maze based on current settings from\n the settings menu.\n Arguments:\n NONE\n \"\"\"\n if self.maze.solving:\n mb.showerror(\"ERROR\", \"Maze already being solved\")\n return\n\n # Copy the GenerationSettings for easier referencing.\n settings = self.menus[SolverSettings]\n\n # Get the algorithm choice and load that algorithms Generator.\n algorithm = settings.solverChoice.get()\n\n if algorithm == \"Recursive Backtracker\":\n from solvers.recursivebacktracker import Solver\n elif algorithm == \"Dijkstra's Algorithm\":\n from solvers.dijkstras import Solver\n elif algorithm == \"A*\":\n from solvers.AStar import Solver\n else:\n mb.showerror(\"ERROR\", \"Error loading solver, \" +\n \"please choose another solver\")\n return\n\n self.changeMenu(SolverMenu)\n # Use the solver to solve our maze.\n self.maze.unvisitTiles()\n self.maze.solving = True\n self.solver = Solver(self, self.maze, settings, self.menus[SolverMenu])\n\n def editMode(self):\n if not self.maze.solving:\n self.changeMenu(EditMenu)\n\n self.frames[MazeScreen].editMode = True\n else:\n mb.showerror(self.Title, \"Cannot enter edit mode whilst \" +\n \"maze is being solved.\")\n\n\nclass HomeScreen(tk.Frame):\n \"\"\"\n Class for the applications Home Screen\n \"\"\"\n def __init__(self, parent):\n super().__init__()\n \"\"\"\n Arguments\n parent -- The parent tkinter object for this screen.\n \"\"\"\n self.parent = parent\n\n self.loadGUI()\n\n def loadGUI(self):\n \"\"\"\n Method used to load the GUI aspects of the homescreen.\n Arguments:\n NONE\n \"\"\"\n self.titleImage = tk.PhotoImage(\n file=getResourcePath(\"assets/home/title.png\"))\n self.title = ttk.Label(self, image=self.titleImage,\n text=\"Path Finding Thing\",\n style=\"Title.TLabel\")\n self.title.grid(row=0, column=0, pady=50)\n\n self.settingsImage = tk.PhotoImage(\n file=getResourcePath(\"assets/home/settings.png\"))\n self.settingsButton = tk.Button(\n self, image=self.settingsImage,\n command=lambda: self.parent.changeMenu(MenuList), borderwidth=0)\n self.settingsButton.grid(row=0, column=0, sticky=\"NE\", pady=5, padx=5)\n\n self.helpImage = tk.PhotoImage(\n file=getResourcePath(\"assets/home/help.png\"))\n self.helpButton = tk.Button(self, image=self.helpImage,\n command=self.showHelp, borderwidth=0)\n self.helpButton.grid(row=0, column=0, sticky=\"NW\", pady=5, padx=5)\n\n self.generateImage = tk.PhotoImage(\n file=getResourcePath(\"assets/home/generate.png\"))\n self.generateButton = tk.Button(self, image=self.generateImage,\n command=self.generateMaze,\n borderwidth=0)\n self.generateButton.grid(row=1, column=0, pady=30)\n\n self.loadImage = tk.PhotoImage(\n file=getResourcePath(\"assets/home/load.png\"))\n self.loadButton = tk.Button(self, image=self.loadImage,\n command=self.parent.loadMazeFile,\n borderwidth=0)\n self.loadButton.grid(row=2, column=0, pady=30)\n\n self.grid_rowconfigure(10, weight=100)\n\n self.footer = ttk.Label(self, text=\"Created By Felix J. Randle\",\n style=\"Footer.TLabel\")\n self.footer.grid(row=10, column=0, sticky=\"S\", pady=(80, 0))\n\n def generateMaze(self):\n \"\"\"\n Method used to generate a maze and change the screen.\n Arguments:\n NONE\n \"\"\"\n self.parent.generateMaze()\n self.parent.changeFrame(MazeScreen)\n\n def showHelp(self):\n \"\"\"\n Method for showing the help menu.\n \"\"\"\n self.helpMenu = HelpMenu()\n\n\nclass MazeScreen(tk.Frame):\n \"\"\"\n Class for the applications Maze Screen\n \"\"\"\n def __init__(self, parent):\n \"\"\"\n Arguments:\n parent -- The parent tkinter object for this screen.\n \"\"\"\n super().__init__()\n self.parent = parent\n\n self.editMode = False\n\n\nclass MenuList(tk.Frame):\n \"\"\"\n Class for the applications Menu list\n \"\"\"\n def __init__(self, parent):\n \"\"\"\n Arguments:\n parent -- The parent tkinter object for this screen.\n \"\"\"\n super().__init__()\n self.parent = parent\n\n self.loadWidgets()\n\n def loadWidgets(self):\n \"\"\"\n Method for creating all the pages widgets\n \"\"\"\n self.exitImage = tk.PhotoImage(\n file=getResourcePath(\"assets/settings/exit.png\"))\n self.exitButton = tk.Button(\n self, image=self.exitImage,\n command=lambda: self.parent.changeMenu(None),\n borderwidth=0)\n self.exitButton.grid(row=0, column=0, sticky=\"NE\", pady=5, padx=5)\n\n self.ColourSettingsIcon = tk.PhotoImage(\n file=getResourcePath(\"assets/settings/colourTitle.png\"))\n tk.Button(self, image=self.ColourSettingsIcon, borderwidth=0,\n command=lambda: self.parent.changeMenu(ColourSettings)\n ).grid(row=0, column=0, pady=70, padx=40)\n\n self.SolverSettingsIcon = tk.PhotoImage(\n file=getResourcePath(\"assets/settings/solverTitle.png\"))\n tk.Button(self, image=self.SolverSettingsIcon, borderwidth=0,\n command=lambda: self.parent.changeMenu(SolverSettings)\n ).grid(row=5, column=0, pady=70, padx=40)\n\n self.GenerationSettingsIcon = tk.PhotoImage(\n file=getResourcePath(\"assets/settings/generationTitle.png\"))\n tk.Button(self, image=self.GenerationSettingsIcon, borderwidth=0,\n command=lambda: self.parent.changeMenu(GenerationSettings)\n ).grid(row=10, column=0, pady=70, padx=40)\n\n\nclass SettingsMenu(tk.Frame):\n def __init__(self, parent, back=None):\n \"\"\"\n Arguments:\n parent -- The parent tkinter object for this screen\n back -- None if there is no menu to go back to. Otherwise\n the menu that the back button should lead to.\n \"\"\"\n super().__init__()\n self.parent = parent\n\n # If we need a back button, load the icon and create the button.\n if back is not None:\n self.backImage = tk.PhotoImage(\n file=getResourcePath(\"assets/settings/back.png\"))\n self.backButton = tk.Button(\n self, image=self.backImage,\n command=lambda: parent.changeMenu(back),\n borderwidth=0)\n self.backButton.grid(row=0, column=0, sticky=\"NW\", pady=5, padx=5)\n\n # Create the exit button after loading the icon.\n self.exitImage = tk.PhotoImage(\n file=getResourcePath(\"assets/settings/exit.png\"))\n self.exitButton = tk.Button(self, image=self.exitImage,\n command=self.exitMenu, borderwidth=0)\n self.exitButton.grid(row=0, column=0, sticky=\"NE\", pady=5, padx=5)\n\n def exitMenu(self):\n \"\"\"\n Method for exiting the current menu.\n \"\"\"\n self.parent.changeMenu(None)\n\n def loadTitle(self, source):\n \"\"\"\n Load a Title image from the given source.\n \"\"\"\n self.titleImage = tk.PhotoImage(file=source)\n\n tk.Label(self, image=self.titleImage).grid(row=0, column=0,\n pady=50, padx=40)\n\n\nclass ColourSettings(SettingsMenu):\n \"\"\"\n Class for the applications Colour Menu\n \"\"\"\n def __init__(self, parent):\n \"\"\"\n Arguments:\n parent -- The parent tkinter object for this screen.\n \"\"\"\n super().__init__(parent, MenuList)\n self.parent = parent\n\n self.loadTitle(getResourcePath(\"assets/settings/colourTitle.png\"))\n\n self.loadWidgets()\n\n def loadWidgets(self):\n \"\"\"\n Method used to create menu's widgets\n \"\"\"\n # Loop through all the keys and items in our current tileColours\n for key, item in maze.tileColours.items():\n # Remove all underscores from the keys string version\n tileName = key.name.replace(\"_\", \" \").title()\n\n # Create a container to place our items in\n container = tk.Frame(self, width=200)\n container.grid(row=key.value + 1, column=0, pady=0)\n\n title = ttk.Label(container, style=\"Header.TLabel\", text=tileName)\n title.grid(row=0, column=0, columnspan=19)\n\n # Create widgets for picking both the foreground and background of\n # each of the tiles.\n fgTitle = ttk.Label(container, style=\"Subheading.TLabel\",\n text=\"FG :\")\n fgTitle.grid(row=1, column=0)\n\n fgColour = tkColourPicker.ColourPicker(container, 2, 1, key=key,\n command=self.setColour,\n index=1)\n fgColour.grid(row=1, column=1)\n fgColour.set(maze.tileColours[key][1])\n\n divider = ttk.Label(container, style=\"Subheading.TLabel\",\n text=\" \")\n divider.grid(row=1, column=3)\n\n bgTitle = ttk.Label(container, style=\"Subheading.TLabel\",\n text=\"BG :\")\n bgTitle.grid(row=1, column=4)\n\n bgColour = tkColourPicker.ColourPicker(container, 2, 1, key=key,\n command=self.setColour,\n index=0)\n bgColour.grid(row=1, column=5)\n bgColour.set(maze.tileColours[key][0])\n\n # Add a reload button to use the users changes without reloading\n # the entire maze.\n self.reloadButton = ttk.Button(self, style=\"Settings.TButton\",\n text=\"Reload Colours\",\n command=self.updateColours)\n self.reloadButton.grid(row=100, column=0, pady=3)\n\n def setColour(self, key, newColour, index):\n \"\"\"\n Method to change the colour stored in both the database and the\n tileColours dictionary\n \"\"\"\n if newColour is not None:\n maze.tileColours[key][index] = newColour\n\n self.parent.db.updateUserColours(self.parent.userID,\n key.name.upper(), index,\n newColour)\n\n def updateColours(self):\n \"\"\"\n Method to update the colours across the entire maze\n \"\"\"\n for row in self.parent.maze.tiles:\n for tile in row:\n tile.updateColour()\n\n\nclass GenerationSettings(SettingsMenu):\n def __init__(self, parent):\n \"\"\"\n Arguments:\n parent -- The parent tkinter object for this screen.\n \"\"\"\n super().__init__(parent, MenuList)\n self.parent = parent\n\n # Load a Title button with the given file\n self.loadTitle(getResourcePath(\"assets/settings/generationTitle.png\"))\n\n self.container = tk.Frame(self)\n self.container.grid(row=10, column=0, sticky=\"S\")\n\n ttk.Label(self.container, text=\"Generation Algorithm\",\n style=\"Header.TLabel\").grid(row=1, column=0, pady=20)\n\n generators = (\n \"Flood Fill\",\n \"Subchamber Division\",\n \"Kruskals Algorithm\",\n \"Blank Maze\"\n )\n\n self.algorithmChoice = ttk.Combobox(self.container, values=generators,\n state=\"readonly\", width=20,\n font=(\"arial\", 14))\n self.algorithmChoice.current(2)\n self.algorithmChoice.grid(row=2, column=0, pady=20)\n\n ttk.Label(self.container, text=\"Maze Size\",\n style=\"Header.TLabel\").grid(row=3, column=0, pady=20)\n\n self.mazeSize = ttk.Scale(self.container, from_=21, to=75,\n orient=tk.HORIZONTAL, value=37,\n command=self.oddOnly, length=200)\n self.mazeSize.grid(row=4, column=0, pady=20)\n\n self.mazeSizeLabel = ttk.Label(self.container, text=51,\n style=\"Header.TLabel\")\n self.mazeSizeLabel.grid(row=5, column=0, pady=20)\n\n def oddOnly(self, event):\n value = self.mazeSize.get()\n if (int(value) != value):\n if int(value) % 2 == 0:\n value += 1\n self.mazeSize.set(int(value))\n\n self.mazeSizeLabel.config(text=int(value))\n\n\nclass SolverSettings(SettingsMenu):\n def __init__(self, parent):\n \"\"\"\n Arguments:\n parent -- The parent tkinter object for this screen.\n \"\"\"\n super().__init__(parent, MenuList)\n\n self.loadTitle(getResourcePath(\"assets/settings/solverTitle.png\"))\n\n solvers = (\n \"Recursive Backtracker\",\n \"Dijkstra's Algorithm\",\n \"A*\"\n )\n\n self.solverChoice = ttk.Combobox(self, values=solvers,\n state=\"readonly\", width=20,\n font=(\"arial\", 14))\n self.solverChoice.set(solvers[2])\n self.solverChoice.grid(row=2, column=0, pady=20)\n\n self.autoStepEnabled = True\n self.autoStepButton = ttk.Button(self, text=\"Disable AutoStep\",\n style=\"Settings.TButton\",\n command=self.toggleAutoStep)\n self.autoStepButton.grid(row=3, column=0, pady=20)\n\n self.speedsFrame = tk.Frame(self)\n self.speedsFrame.grid(row=4, column=0, pady=20)\n\n self.speedDisplay = ttk.Label(self.speedsFrame,\n text=\"Current Speed: X1\",\n style=\"Subheading.TLabel\")\n self.speedDisplay.grid(row=0, column=0, columnspan=1000)\n\n self.speeds = [1, 2, 5, 10, 50, 100]\n self.speedItems = {}\n\n for speed in self.speeds:\n image = tk.PhotoImage(\n file=getResourcePath(\"assets/speeds/X{}.png\".format(speed)))\n button = tk.Button(self.speedsFrame, image=image,\n command=lambda x=speed: self.setSpeed(x),\n borderwidth=0)\n button.grid(row=1, column=speed)\n\n self.speedItems.update({speed: {\"image\": image, \"button\": button}})\n\n self.speed = tk.DoubleVar()\n self.speed.set(1)\n self.speed.trace(\"w\", self.updateLabel)\n\n def toggleAutoStep(self):\n if self.autoStepEnabled:\n self.autoStepButton[\"text\"] = \"Enable AutoStep\"\n self.autoStepEnabled = False\n else:\n self.autoStepButton[\"text\"] = \"Disable AutoStep\"\n self.autoStepEnabled = True\n\n def setSpeed(self, newSpeed):\n self.speed.set(newSpeed)\n\n def updateLabel(self, *args):\n speed = int(self.speed.get())\n self.speedDisplay.config(text=f\"Current Speed: X{speed}\")\n self.parent.menus[SolverMenu].speedDisplay.config(\n text=f\"Current Speed: X{speed}\")\n\n def solveMaze(self):\n self.parent.solveMaze()\n\n\nclass SolverMenu(SettingsMenu):\n def __init__(self, parent):\n super().__init__(parent)\n\n self.loadTitle(getResourcePath(\"assets/settings/solverTitle.png\"))\n\n self.autoStepControls = tk.Frame(self)\n self.autoStepControls.grid(row=1, column=0)\n\n self.play = tk.PhotoImage(\n file=getResourcePath(\"assets/solving/playButton.png\"))\n self.playButton = tk.Button(self.autoStepControls,\n image=self.play,\n command=self.startAutoStep, borderwidth=0)\n self.playButton.grid(row=0, column=0)\n\n self.pause = tk.PhotoImage(\n file=getResourcePath(\"assets/solving/pauseButton.png\"))\n self.pauseButton = tk.Button(self.autoStepControls, image=self.pause,\n command=self.stopAutoStep, borderwidth=0)\n self.pauseButton.grid(row=0, column=1)\n\n self.stop = tk.PhotoImage(\n file=getResourcePath(\"assets/solving/stopButton.png\"))\n self.stopButton = tk.Button(self.autoStepControls, image=self.stop,\n command=self.stopSolve, borderwidth=0)\n self.stopButton.grid(row=0, column=2)\n\n self.speedsFrame = tk.Frame(self)\n self.speedsFrame.grid(row=4, column=0, pady=20)\n\n self.speedDisplay = ttk.Label(self.speedsFrame,\n text=\"Current Speed: X1\",\n style=\"Subheading.TLabel\")\n self.speedDisplay.grid(row=0, column=0, columnspan=1000)\n\n self.speeds = [1, 2, 5, 10, 50, 100]\n self.speedItems = {}\n\n for speed in self.speeds:\n image = tk.PhotoImage(\n file=getResourcePath(\"assets/speeds/X{}.png\".format(speed)))\n button = tk.Button(\n self.speedsFrame, image=image,\n command=lambda x=speed: self.parent.solver.setSpeed(x),\n borderwidth=0)\n button.grid(row=1, column=speed)\n\n self.speedItems.update({speed: {\"image\": image, \"button\": button}})\n\n self.stepButton = tk.Button(self, width=10, height=2, text=\"Step\",\n command=self.step)\n self.stepButton.grid(row=10, column=0, pady=5)\n\n self.advancedInfo = tk.IntVar()\n self.advancedInfoButton = ttk.Checkbutton(\n self, text=\"Show Advanced Information?\",\n variable=self.advancedInfo)\n self.advancedInfoButton.grid(row=11, column=0, pady=5)\n self.advancedInformationFrame = tk.Frame(self)\n self.advancedInformationFrame.grid(row=15, column=0, pady=10)\n\n self.advancedInformation = ttk.Label(\n self.advancedInformationFrame,\n text=\"Advanced Solver Information\",\n style=\"Subheading.TLabel\")\n self.advancedInformation.grid(row=0, column=0, pady=10)\n\n self.stepCount = tk.Label(self.advancedInformationFrame,\n text=\"Steps: 0\",\n font=(\"Helvetica\", 12, \"bold italic\"))\n self.stepCount.grid(row=1, column=0)\n\n def startAutoStep(self):\n if not self.parent.solver.solved:\n self.parent.solver.autorun = True\n self.parent.solver.step()\n\n def stopAutoStep(self):\n self.parent.solver.autorun = False\n\n def stopSolve(self):\n if mb.askyesno(\"End Solve?\",\n \"Are you sure you want to stop the current solve?\"):\n self.stopAutoStep()\n self.parent.maze.solving = False\n self.parent.solver = None\n self.parent.changeMenu(None)\n\n self.parent.after(1, self.parent.maze.unvisitTiles)\n\n def step(self):\n self.parent.solver.step() if not self.parent.solver.autorun else \\\n mb.showerror(\"ERROR\", \"Cannot force step whilst autorunning\")\n self.parent.solver.step(force=True) if not self.parent.solver.autorun \\\n else mb.showerror(\"ERROR\", \"Cannot force step whilst autorunning\")\n\n def updateLabel(self, newValue):\n self.autoStepDelayLabel.config(text=\"{:.3f}\".format(float(newValue)))\n self.parent.solver.delay = float(newValue)\n\n\nclass EditMenu(SettingsMenu):\n def __init__(self, parent):\n super().__init__(parent)\n\n self.loadTitle(getResourcePath(\"assets/settings/solverTitle.png\"))\n\n ttk.Label(self, text=\"Current Tile:\",\n style=\"Header.TLabel\").grid(row=1, column=0)\n\n self.currentTileLabel = ttk.Label(self, text=\"None\",\n style=\"Subheading.TLabel\")\n self.currentTileLabel.grid(row=2, column=0, pady=5)\n\n self.currentTile = tk.Button(self, width=2, height=1, bg=\"grey\")\n self.currentTile.grid(row=3, column=0, pady=5)\n\n ttk.Label(self, text=\"Please click on a tile to select it\",\n style=\"Subheading.TLabel\").grid(row=5, column=0)\n\n availableTiles = [\"WALL\", \"PATH\", \"START\", \"END\"]\n\n currentRow = 10\n\n firstItem = True\n\n for key, item in maze.tileColours.items():\n if key.name in availableTiles:\n if firstItem:\n self.changeTile(key, key.name.title(), item)\n\n firstItem = False\n ttk.Label(self, text=key.name.title(),\n style=\"Subheading.TLabel\").grid(row=currentRow,\n column=0, pady=5)\n tk.Button(self, width=2, height=1, bg=item[1],\n highlightbackground=item[0],\n command=lambda key=key, name=key.name.title(),\n colours=item:\n self.changeTile(key, name, colours)\n ).grid(row=currentRow + 1, column=0, pady=5)\n\n currentRow += 5\n\n def changeTile(self, key, tileName, colours):\n self.currentTileLabel.config(text=tileName)\n self.currentTile.config(bg=colours[1])\n\n try:\n self.parent.maze.currentEdit = key\n except AttributeError:\n pass\n\n def exitMenu(self):\n self.parent.frames[MazeScreen].editMode = False\n self.parent.changeMenu(None)\n","repo_name":"FelixRandle/PathFinding","sub_path":"application.py","file_name":"application.py","file_ext":"py","file_size_in_byte":33702,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"28147543441","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Sun Jan 13 21:25:06 2019\n\n@author: Aidan\n\"\"\"\n\nimport numpy as np\nfrom matplotlib import pyplot as plt\n\ntd = np.array([1, 4, 8, 16])\navg_time = np.array([307.31, 77.45, 39.46, 27.19])\n\n\none = np.array([308.097, 304.901, 309.126, 305.047, 309.379])\nfour = np.array([76.9488, 78.2809, 76.8299, 78.2478, 76.9655])\neight = np.array([39.4189, 39.8951, 39.2331, 39.9419, 38.8113 ])\nsixteen = np.array([24.2101, 25.7484, 24.177, 31.6769, 30.1301 ])\nto_plot = [one, four, eight, sixteen]\nfig=plt.figure(1,figsize=(9,6))\nax=fig.add_subplot(111)\nplt.xlabel(\"Number of threads\")\nplt.ylabel(\"Runtime (seconds)\")\nplt.title(\"Shared Memory Performance\")\nbp=ax.boxplot(to_plot)\nfig.savefig('boxplot.png',bbox_inches='tight')\nplt.show()\n\nplt.xlabel(\"Number of shared memory threads\")\nplt.ylabel(\"Runtime (seconds)\")\nplt.title(\"Shared Memory Performance\")\nplt.scatter(td, avg_time)\nplt.show()\n\nefficiency = [0.992, 0.973, 0.706]\n\nplt.xlabel(\"Number of shared memory threads\")\nplt.ylabel(\"Efficiency\")\nplt.title(\"Parallel efficiency\")\nplt.scatter(td[1:], efficiency)\nplt.show()\n\n\nobjects = (\"Static\", \"Dynamic\")\ny_pos = np.arange(len(objects))\ntime = [32.28, 21.06]\n \nplt.bar(y_pos, time, align='center', alpha=0.5)\nplt.xticks(y_pos, objects)\nplt.ylabel('Runtime (seconds)')\nplt.title('Parallel Scheduling')\nplt.show()\n","repo_name":"PuppyQ08/CS420HW","sub_path":"molecular-dynamics-master/Plots/runtime_analysis.py","file_name":"runtime_analysis.py","file_ext":"py","file_size_in_byte":1338,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"35938133312","text":"\n# Anniversary_Promo_2018.py\n# Author: Jason Greve\n# Client: ObjectRocket\n# Created: 2018-SEP-17-MON\n# Updated:\n# Description: Data for Farmers_Market.py (Register Class)\n\n\nfrom collections import OrderedDict\nfrom Anniversary_Specials_2018 import AnniversarySpecials2018 as AnSpec\n\n# OrderedDict ensures that APOM will be applied before APPL.\n# This ensures that the customer will get the largest discount\n# when buying 3 or more bags of apples and one or more bags of \n# oatmeal. (The rules interact and are not commutative)\n\n# The following example shows different ways to calculate the \n# price for a bag of apples when both APOM and APPL apply:\n# (6 * 0.5) * 0.75 = 2.25 APOM >> APPL \"ratio\" discount\n# (6 * 0.75) * 0.5 = 2.25 APPL >> APOM \"ratio\" discount\n# (6 * 0.5) - 1.25 = 1.75 APOM >> APPL \"fixed\" discount <<--- Best Price for Customer\n# (6 - 1.25) * 0.5 = 2.375 APPL >> APOM \"fixed\" discount\n\nanniversary_promo_2018 = OrderedDict()\nanniversary_promo_2018['BOGO'] = AnSpec.bogo\nanniversary_promo_2018['CHMK'] = AnSpec.chmk\nanniversary_promo_2018['APOM'] = AnSpec.apom\nanniversary_promo_2018['APPL'] = AnSpec.appl\n\n\n\n","repo_name":"jbgreve/ObjectRocket","sub_path":"Anniversary_Promo_2018.py","file_name":"Anniversary_Promo_2018.py","file_ext":"py","file_size_in_byte":1134,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"85"}
+{"seq_id":"71597805405","text":"import argparse\nimport logging\nfrom datetime import datetime\nfrom math import ceil\nimport os\nimport sys\nfrom multiprocessing import Pool\n\nfrom numpy import float64, poly\n\nfrom core.boundary import Boundary\nfrom core.config import Config\nfrom core.filler import PointsFiller\nfrom core.frame import create_frames\n\nfrom core.plotter import Plotter\nfrom gds_parser import GDSParser\n\ndef get_boundary(polygons):\n x_max = polygons[0].points[0].x\n x_min = polygons[0].points[0].x\n y_max = polygons[0].points[0].y\n y_min = polygons[0].points[0].y\n\n for polygon in polygons:\n for point in polygon.points:\n if point.x > x_max:\n x_max = point.x\n if point.x < x_min:\n x_min = point.x\n if point.y > y_max:\n y_max = point.y\n if point.y < y_min:\n y_min = point.y\n\n return x_max, x_min, y_max, y_min\n\ndef map_frame_polygons(frames, polygons):\n \"\"\"map polygons to frames, one polygon may be placed in several frames\"\"\"\n map_fp = {}\n\n for frame in frames:\n for polygon in polygons:\n if frame.intersect_polygon(polygon):\n if frame not in map_fp:\n map_fp[frame] = []\n map_fp[frame].append(polygon)\n\n return map_fp\n\ndef check_drc(polygons):\n for i, p1 in enumerate(polygons[:-1]):\n print(f'check polygon {i+1} of {len(polygons)}')\n for p2 in polygons[i+1:]:\n if p1.intersect_polygon(p2):\n return (p1, p2)\n\nif __name__ == \"__main__\":\n parser = argparse.ArgumentParser()\n parser.add_argument('gds_file', help=\"input GDSII file name with path\")\n parser.add_argument('direction', default=\"left-right\", help=\"beam movement direction, possuble valuses are: left-rignt or down-top\")\n parser.add_argument('frame_size', help=\"size of FIB frame in um. For example 51.2\", type=float64)\n parser.add_argument('time_in_point', default=4000, help=\"time for FIB staying in one point, integer\", type=int)\n parser.add_argument('-v', '--verbose', default=False, help=\"enable debug messages\", type=bool)\n\n\n args = parser.parse_args()\n\n # load parsed arguments to config\n config = Config()\n\n config.gds_file = args.gds_file\n config.direction = args.direction\n config.frame_size = args.frame_size\n config.time_in_point = args.time_in_point\n config.verbose = args.verbose\n config.frame_points = 4096\n config.output_path = f'output/processed_{datetime.today().strftime(\"%A_%d_%B_%Y__%I_%M_%S\")}'\n\n # calculate step\n config.fib_step = config.frame_size / config.frame_points\n # calculate multiplier\n config.multiply = config.frame_points / config.frame_size\n\n os.makedirs(config.output_path, exist_ok=True)\n\n logging.basicConfig(filename='main.log', level=logging.DEBUG)\n log = logging.getLogger(__name__)\n log.info('Started with parameters:')\n for k, v in config.__dict__.items():\n log.info(f'\\t{k}\\t{v}')\n\n # parse GDSII and extract polygons\n print(f'parsing {config.gds_file}')\n gds_parser = GDSParser(config.gds_file)\n gds_parser.parse()\n polygons = gds_parser.objects\n print(f'polygons extracted: {len(polygons)}')\n print('done')\n print()\n\n print('extracting boundary')\n x_max, x_min, y_max, y_min = get_boundary(polygons)\n boundary = Boundary()\n boundary.set_boundary(x_min, x_max, y_min, y_max)\n print(boundary)\n print('done')\n print()\n\n print('checking drc...')\n res = check_drc(polygons)\n if res:\n p1, p2 = res\n print(f'Error')\n print('----------------------------')\n print(f'polygon\\n{p1}\\n\\nintersects polygon\\n{p2}')\n print('----------------------------')\n print('Fix GDS and rerun program')\n sys.exit(0)\n\n # generate frames of defied size\n print('creating frames...')\n frames = create_frames(\n boundary.xmax,\n boundary.xmin,\n boundary.ymax,\n boundary.ymin,\n config.frame_size\n )\n # plot frames\n config.multiply = 1\n plotter = Plotter(ceil(x_max - x_min), ceil(y_max - y_min))\n plotter.plot(\n polygons=polygons,\n frames=frames,\n d_x=x_min,\n d_y=y_min,\n output_path=os.path.join(config.output_path, 'figure.png')\n )\n\n print(f'frames created: {len(frames)}')\n print('done')\n print()\n\n print('mapping polygons to frames...')\n map_fp = map_frame_polygons(frames, polygons)\n print(f'frames with polygons: {len(map_fp)}')\n print('done')\n print()\n\n print('processing')\n\n\n i = 1\n for f, polys in map_fp.items():\n print('-------------------------------')\n print(f'processing {i} of {len(map_fp)} frame\\n{f}')\n filler = PointsFiller(f, polys)\n filler.fill()\n print('printing...')\n filler.print_points()\n print('plotting...')\n filler.plot()\n print('done')\n\n i += 1\n\n print('==============================================')\n print('GDS file processing done')\n","repo_name":"ghost211221/fib_points","sub_path":"src/main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":5056,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"17158560097","text":"import numpy as np\n\nprint(\"Método de Jacobi\")\n\nn=3\na=np.array([[4., -1., 0.], [-1., 4., -1.], [0., -1, 4]])\nb=np.ones(n)\neps = 1.0e-06\nitmax = 2\n\nprint(\"Matriz A:\")\nprint(np.matrix(a))\nprint('Matriz B:')\nprint(np.matrix(b))\n\nalfa=np.zeros(n)\nx=np.zeros(n)\nxold=np.zeros(n)\n\n\nprint(\"Verificando critério das linhas ou diagonal dominância\")\nfor i in range(0,n):\n for j in range(0,i):\n alfa[i] = alfa[i]+np.abs(a[i,j])\n for j in range(i+1,n):\n alfa[i] = alfa[i]+np.abs(a[i,j])\n alfa[i] = alfa[i] / np.abs(a[i,i])\n print(\"alfa\",i+1,\"=\",alfa[i])\nalfamax = np.max(alfa)\nif (alfamax >= 1.):\n print(\" critério das linhas não satisfeito, taxa definida arbitrariamente\")\n taxa = 10000\nelse:\n taxa=alfamax/(1.-alfamax)\nprint(\"alfamax = \",alfamax)\n#\nprint(\"x (\",0,\") = \", np.matrix(x))\nprint('')\nfor k in range(0,itmax):\n for i in range(0,n):\n x[i]=b[i]\n for j in range(0,i):\n x[i] = x[i]-a[i,j]*xold[j]\n for j in range(i+1,n):\n x[i] = x[i]-a[i,j]*xold[j]\n x[i] = x[i] / a[i,i]\n error = taxa*np.max(np.abs(x-xold))\n print(\"após iteração \",k+1, \"erro estimado \",error)\n print(\"x (\",k+1,\") = \", np.matrix(x))\n print('')\n if (error < eps):\n break\n xold = np.copy(x)\n#\n# Verificando se temos a solução bem aproximada\n#\nax = np.matmul(a,x)\nprint(\" Ax = \",ax)\nprint(\"máximo do resíduo\",np.max(np.abs(b-ax)))\n","repo_name":"politecmedio/numerico","sub_path":"jacobi.py","file_name":"jacobi.py","file_ext":"py","file_size_in_byte":1420,"program_lang":"python","lang":"pt","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"42798321878","text":"import flask\nimport datetime\n\nimport talisker\nfrom canonicalwebteam.flask_base.app import FlaskBase\nfrom canonicalwebteam.yaml_responses.flask_helpers import (\n prepare_deleted,\n prepare_redirects,\n)\nfrom canonicalwebteam import image_template\n\nfrom webapp.handlers import add_headers\nfrom webapp.jaasai.views import jaasai\nfrom webapp.template_utils import current_url_with_query, static_url\n\nsession = talisker.requests.get_session()\n\n\ndef create_app(testing=False):\n app = FlaskBase(\n __name__,\n \"jaas.ai\",\n template_folder=\"../templates\",\n static_folder=\"../static\",\n )\n\n app.testing = testing\n app.after_request(add_headers)\n app.before_request(prepare_redirects(\"redirects.yaml\"))\n app.before_request(\n prepare_redirects(\"permanent-redirects.yaml\", permanent=True)\n )\n app.before_request(prepare_deleted())\n\n # Handlers\n # ===\n @app.errorhandler(404)\n def page_not_found(error):\n \"\"\"\n For 404 pages, display the 404.html template,\n passing through the error description.\n \"\"\"\n\n return flask.render_template(\"404.html\", error=error.description), 404\n\n @app.errorhandler(500)\n def internal_server_error(error):\n \"\"\"\n For 500 pages, display the 500.html template,\n passing through the error.\n \"\"\"\n\n return flask.render_template(\"500.html\", error=error), 500\n\n @app.errorhandler(410)\n def gone(error):\n \"\"\"\n For 410 pages, display the 410.html template,\n passing through the error.\n \"\"\"\n\n return flask.render_template(\"410.html\", error=error), 410\n\n # Blueprints\n # ===\n app.register_blueprint(jaasai)\n\n # Dashboard and redirect views\n # ===\n @app.route(\"/models\")\n @app.route(\"/models/\")\n @app.route(\"/controllers\")\n @app.route(\"/controllers/\")\n def dashboard_index(path=None):\n \"\"\"\n Send /models and /controllers to the index page\n \"\"\"\n\n return flask.render_template(\"dashboard/index.html\")\n\n @app.route(\"/config.js\")\n @app.route(\"/manifest.json\")\n @app.route(\"/version.json\")\n @app.route(\"/ghost-bundle.svg\")\n def dashboard_files():\n \"\"\"\n Load dashboard files directly\n \"\"\"\n return flask.send_from_directory(\n \"../templates/dashboard\",\n flask.request.path.strip(\"/\"),\n )\n\n @app.route(\"/q/\")\n @app.route(\"/q/\")\n def search_redirect(path=None):\n \"\"\"\n Handle redirects from jujucharms.com search URLS to the jaas.ai format.\n e.g. /q/k8s/demo?sort=-name&series=xenial will redirect to\n /search?q=k8s+demo&sort=-name&series=xenial\n \"\"\"\n query_string = []\n if path:\n query_string.append(\"q={}\".format(path.replace(\"/\", \"+\")))\n if flask.request.query_string:\n query_string.append(str(flask.request.query_string, \"utf-8\"))\n return flask.redirect(\n \"/search?{}\".format(\"&\".join(query_string)), code=302\n )\n\n @app.route(\"/\")\n @app.route(\"//\")\n @app.route(\"///\")\n def details_redirect(\n charm_or_bundle_name,\n series_or_version=None,\n version=None,\n ):\n charmhub_url = \"https://charmhub.io/\" + charm_or_bundle_name\n return flask.redirect(charmhub_url, code=301)\n\n # Template filters\n # ===\n @app.template_filter(\"pluralize\")\n def pluralize_filter(count):\n if int(count) > 1:\n return \"s\"\n else:\n return \"\"\n\n @app.context_processor\n def inject_utilities():\n return {\n \"current_url_with_query\": current_url_with_query,\n \"static_url\": static_url,\n }\n\n @app.context_processor\n def inject_today_date():\n return {\"current_year\": datetime.date.today().year}\n\n app.jinja_env.add_extension(\"jinja2.ext.do\")\n\n @app.context_processor\n def utility_processor():\n return {\"image\": image_template}\n\n return app\n","repo_name":"canonical/jaas.ai","sub_path":"webapp/app.py","file_name":"app.py","file_ext":"py","file_size_in_byte":4143,"program_lang":"python","lang":"en","doc_type":"code","stars":7,"dataset":"github-code","pt":"86"}
+{"seq_id":"32051502876","text":"#!/usr/bin/env python3\n\nimport molsturm\nimport common\nfrom matplotlib import pyplot as plt\nimport numpy as np\n\n\nBASIS_SETS = [\"STO-3G\", \"cc-pVDZ\", \"pc-1\", \"pc-3\", \"cc-pV6Z\"]\n\n\ndef plot_overview():\n plt.close()\n plt.figure(figsize=(5.5, 3.5))\n\n for baset in BASIS_SETS:\n bas = molsturm.construct_basis(\"gaussian\", \"H\", basis_set_name=baset)\n coeff = common.do_hydrogen_scf(bas)\n\n rab = np.linspace(0, 1, 5000), np.linspace(1, 10, 5000)\n r = np.concatenate(rab)\n r, locen = common.hydrogen_local_energy(bas, coeff, r, dr=1e-6)\n plt.plot(r, locen, label=baset)\n\n plt.xlabel(common.XLABEL)\n plt.ylabel(common.ELLABEL)\n\n plt.ylim(-5, 5)\n if -0.5 not in plt.yticks()[0]:\n plt.yticks(list(plt.yticks()[0]) + [-0.5])\n plt.legend(loc='upper right')\n\n\ndef plot_closeup():\n plt.close()\n plt.figure(figsize=(5.5, 3.5))\n\n for baset in BASIS_SETS:\n bas = molsturm.construct_basis(\"gaussian\", \"H\", basis_set_name=baset)\n coeff = common.do_hydrogen_scf(bas)\n\n rab = np.linspace(0, 0.05, 5000), np.linspace(0.05, 0.5, 5000)\n r = np.concatenate(rab)\n r, locen = common.hydrogen_local_energy(bas, coeff, r, dr=1e-6)\n plt.plot(r, locen, label=baset)\n\n plt.xlabel(common.XLABEL)\n plt.ylabel(common.ELLABEL)\n\n plt.ylim(-5, 5)\n if -0.5 not in plt.yticks()[0]:\n plt.yticks(list(plt.yticks()[0]) + [-0.5])\n\n\ndef plot_relative_error(log=False):\n plt.close()\n plt.figure(figsize=(5.5, 3.5))\n\n for baset in BASIS_SETS:\n bas = molsturm.construct_basis(\"gaussian\", \"H\", basis_set_name=baset)\n coeff = common.do_hydrogen_scf(bas)\n\n rab = np.linspace(0, 1, 10000), np.linspace(1, 10, 10000)\n r = np.concatenate(rab)\n r, err = common.hydrogen_relative_error(bas, coeff, r)\n\n if log:\n plt.semilogy(r, np.abs(err), label=baset)\n extra = \"absolute of \"\n else:\n plt.plot(r, err, label=baset)\n extra = \"\"\n\n plt.xlabel(common.XLABEL)\n plt.ylabel(extra + common.RELABEL)\n\n plt.legend(loc='lower right')\n plt.ylim(-0.2, 0.2)\n\n\ndef main():\n common.setup()\n\n plot_overview()\n plt.savefig(\"local_energy_cgto.pdf\", bbox_inches=\"tight\")\n\n plot_closeup()\n plt.savefig(\"local_energy_cgto_zoom.pdf\", bbox_inches=\"tight\")\n\n plot_relative_error(log=False)\n plt.savefig(\"relative_error_cgto.pdf\", bbox_inches=\"tight\")\n\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"mfherbst/dissertation","sub_path":"4_solving_hf/hydrogen_comparison/cgtos.py","file_name":"cgtos.py","file_ext":"py","file_size_in_byte":2484,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"2529350057","text":"from django.http import HttpResponseRedirect\nfrom django.shortcuts import get_object_or_404, render\nfrom django.contrib.auth import logout as auth_logout\n\nfrom models import Problem, ProblemSolution, User\nfrom forms import UserForm\n\n\ndef index(request):\n\treturn render(request, 'index.html')\n\ndef logout(request):\n \"\"\"Logs out user\"\"\"\n auth_logout(request)\n return HttpResponseRedirect('/')\n\ndef detail(request, problem_id):\n problem = get_object_or_404(Problem, pk=problem_id)\n\n if request.user.is_authenticated():\n solved = ProblemSolution.objects.get_or_none(problem=problem, user=request.user)\n if solved is not None:\n solution = solved.solution\n return render(request, 'problem/detail.html', { 'problem': problem, 'solved': solved.checked, 'load': solved is not None, 'solution': solution })\n\n return render(request, 'problem/detail.html', {'problem': problem, 'solved': False, 'load': False })\n\ndef problems(request):\n prob_solved = []\n if request.user.is_authenticated():\n prob_solved = ProblemSolution.objects.filter(user=request.user, checked=True)\n prob_solved = map(lambda prob: prob.problem.id, prob_solved)\n \n\n categories = ['Starter', 'Easy', 'Medium', 'Hard']\n probs = list(Problem.objects.all())\n probs.sort(key=lambda t: categories.index(t.category))\n\n return render(request, 'problem/list.html', {'problems': probs, 'solved': prob_solved})\n\ndef search(request):\n if 'search' not in request.POST:\n return problems(request)\n\n name = request.POST['search']\n prob_solved = []\n\n categories = ['Starter', 'Easy', 'Medium', 'Hard']\n probs = list(Problem.objects.filter(title__icontains=name))\n probs.sort(key=lambda t: categories.index(t.category))\n\n if request.user.is_authenticated():\n prob_solved = ProblemSolution.objects.filter(user=request.user)\n prob_solved = map(lambda prob: prob.problem.id, prob_solved)\n \n return render(request, 'problem/list.html', {'problems': probs, 'solved': prob_solved})\n\ndef profile(request, user):\n user = get_object_or_404(User, username=user)\n\n prob_solved = map(lambda prob: prob.problem.id, ProblemSolution.objects.filter(user=user, checked=True))\n problems_cat = map(lambda prob: prob.category, Problem.objects.filter(id__in=prob_solved))\n points = 0\n\n for p in problems_cat:\n if p == \"Starter\":\n points += 10\n elif p == \"Easy\":\n points += 50\n elif p == \"Medium\":\n points += 250\n elif p == \"Hard\":\n points += 2000\n\n return render(request, 'profile/profile.html', {'u': user, 'problems': len(prob_solved), 'points': points})\n\ndef profile_edit(request):\n if not request.user.is_authenticated():\n return HttpResponseRedirect('/')\n return render(request, 'profile/edit.html')\n\ndef profile_save(request):\n if not request.user.is_authenticated():\n return HttpResponseRedirect('/')\n if request.method == 'POST':\n form = UserForm(request.POST)\n\n username = request.POST['username']\n user_error = None\n user = None\n\n try:\n user = User.objects.get(username=username)\n except User.DoesNotExist:\n pass\n \n if user is not None and user.username.lower() != request.user.username.lower():\n user_error = 'Username is already taken!'\n if form.is_valid() and user_error is None:\n request.user.username = username\n request.user.first_name = form.cleaned_data['first_name']\n request.user.last_name = form.cleaned_data['last_name']\n request.user.bio = form.cleaned_data['bio']\n request.user.website = form.cleaned_data['website']\n request.user.facebook = form.cleaned_data['facebook']\n request.user.twitter = form.cleaned_data['twitter']\n request.user.linkedin = form.cleaned_data['linkedin']\n request.user.github = form.cleaned_data['github']\n\n request.user.save()\n\n return render(request, 'profile/edit.html', {'ok': 'Changes saved!'})\n else:\n return render(request, 'profile/edit.html', {'ok': None, 'errors': form.errors, 'user_error': user_error})\n\n return HttpResponseRedirect('/profile/edit/')","repo_name":"joseotoro/GoCodeGo","sub_path":"gocodego/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":4320,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"25788830548","text":"# -*- coding: utf-8 -*-\nimport re\n\n\nclass RegexBuilder:\n r\"\"\"Builds regex using arguments passed into a pattern template.\n\n Builds a regex object for which the pattern is made from an argument\n passed into a template. If more than one argument is passed (iterable),\n each pattern is joined by \"|\" (regex alternation 'or') to create a\n single pattern.\n\n Args:\n pattern_args (iteratable): String element(s) to be each passed to\n ``pattern_func`` to create a regex pattern. Each element is\n ``re.escape``'d before being passed.\n pattern_func (callable): A 'template' function that should take a\n string and return a string. It should take an element of\n ``pattern_args`` and return a valid regex pattern group string.\n flags: ``re`` flag(s) to compile with the regex.\n\n Example:\n To create a simple regex that matches on the characters \"a\", \"b\",\n or \"c\", followed by a period::\n\n >>> rb = RegexBuilder('abc', lambda x: \"{}\\.\".format(x))\n\n Looking at ``rb.regex`` we get the following compiled regex::\n\n >>> print(rb.regex)\n 'a\\.|b\\.|c\\.'\n\n The above is fairly simple, but this class can help in writing more\n complex repetitive regex, making them more readable and easier to\n create by using existing data structures.\n\n Example:\n To match the character following the words \"lorem\", \"ipsum\", \"meili\"\n or \"koda\"::\n\n >>> words = ['lorem', 'ipsum', 'meili', 'koda']\n >>> rb = RegexBuilder(words, lambda x: \"(?<={}).\".format(x))\n\n Looking at ``rb.regex`` we get the following compiled regex::\n\n >>> print(rb.regex)\n '(?<=lorem).|(?<=ipsum).|(?<=meili).|(?<=koda).'\n\n \"\"\"\n\n def __init__(self, pattern_args, pattern_func, flags=0):\n self.pattern_args = pattern_args\n self.pattern_func = pattern_func\n self.flags = flags\n\n # Compile\n self.regex = self._compile()\n\n def _compile(self):\n alts = []\n for arg in self.pattern_args:\n arg = re.escape(arg)\n alt = self.pattern_func(arg)\n alts.append(alt)\n\n pattern = \"|\".join(alts)\n return re.compile(pattern, self.flags)\n\n def __repr__(self): # pragma: no cover\n return str(self.regex)\n\n\nclass PreProcessorRegex:\n r\"\"\"Regex-based substitution text pre-processor.\n\n Runs a series of regex substitutions (``re.sub``) from each ``regex`` of a\n :class:`gtts.tokenizer.core.RegexBuilder` with an extra ``repl``\n replacement parameter.\n\n Args:\n search_args (iteratable): String element(s) to be each passed to\n ``search_func`` to create a regex pattern. Each element is\n ``re.escape``'d before being passed.\n search_func (callable): A 'template' function that should take a\n string and return a string. It should take an element of\n ``search_args`` and return a valid regex search pattern string.\n repl (string): The common replacement passed to the ``sub`` method for\n each ``regex``. Can be a raw string (the case of a regex\n backreference, for example)\n flags: ``re`` flag(s) to compile with each `regex`.\n\n Example:\n Add \"!\" after the words \"lorem\" or \"ipsum\", while ignoring case::\n\n >>> import re\n >>> words = ['lorem', 'ipsum']\n >>> pp = PreProcessorRegex(words,\n ... lambda x: \"({})\".format(x), r'\\\\1!',\n ... re.IGNORECASE)\n\n In this case, the regex is a group and the replacement uses its\n backreference ``\\\\1`` (as a raw string). Looking at ``pp`` we get the\n following list of search/replacement pairs::\n\n >>> print(pp)\n (re.compile('(lorem)', re.IGNORECASE), repl='\\1!'),\n (re.compile('(ipsum)', re.IGNORECASE), repl='\\1!')\n\n It can then be run on any string of text::\n\n >>> pp.run(\"LOREM ipSuM\")\n \"LOREM! ipSuM!\"\n\n See :mod:`gtts.tokenizer.pre_processors` for more examples.\n\n \"\"\"\n\n def __init__(self, search_args, search_func, repl, flags=0):\n self.repl = repl\n\n # Create regex list\n self.regexes = []\n for arg in search_args:\n rb = RegexBuilder([arg], search_func, flags)\n self.regexes.append(rb.regex)\n\n def run(self, text):\n \"\"\"Run each regex substitution on ``text``.\n\n Args:\n text (string): the input text.\n\n Returns:\n string: text after all substitutions have been sequentially\n applied.\n\n \"\"\"\n for regex in self.regexes:\n text = regex.sub(self.repl, text)\n return text\n\n def __repr__(self): # pragma: no cover\n subs_strs = []\n for r in self.regexes:\n subs_strs.append(\"({}, repl='{}')\".format(r, self.repl))\n return \", \".join(subs_strs)\n\n\nclass PreProcessorSub:\n r\"\"\"Simple substitution text preprocessor.\n\n Performs string-for-string substitution from list a find/replace pairs.\n It abstracts :class:`gtts.tokenizer.core.PreProcessorRegex` with a default\n simple substitution regex.\n\n Args:\n sub_pairs (list): A list of tuples of the style\n ``(, )``\n ignore_case (bool): Ignore case during search. Defaults to ``True``.\n\n Example:\n Replace all occurences of \"Mac\" to \"PC\" and \"Firefox\" to \"Chrome\"::\n\n >>> sub_pairs = [('Mac', 'PC'), ('Firefox', 'Chrome')]\n >>> pp = PreProcessorSub(sub_pairs)\n\n Looking at the ``pp``, we get the following list of\n search (regex)/replacement pairs::\n\n >>> print(pp)\n (re.compile('Mac', re.IGNORECASE), repl='PC'),\n (re.compile('Firefox', re.IGNORECASE), repl='Chrome')\n\n It can then be run on any string of text::\n\n >>> pp.run(\"I use firefox on my mac\")\n \"I use Chrome on my PC\"\n\n See :mod:`gtts.tokenizer.pre_processors` for more examples.\n\n \"\"\"\n\n def __init__(self, sub_pairs, ignore_case=True):\n def search_func(x):\n return u\"{}\".format(x)\n\n flags = re.I if ignore_case else 0\n\n # Create pre-processor list\n self.pre_processors = []\n for sub_pair in sub_pairs:\n pattern, repl = sub_pair\n pp = PreProcessorRegex([pattern], search_func, repl, flags)\n self.pre_processors.append(pp)\n\n def run(self, text):\n \"\"\"Run each substitution on ``text``.\n\n Args:\n text (string): the input text.\n\n Returns:\n string: text after all substitutions have been sequentially\n applied.\n\n \"\"\"\n for pp in self.pre_processors:\n text = pp.run(text)\n return text\n\n def __repr__(self): # pragma: no cover\n return \", \".join([str(pp) for pp in self.pre_processors])\n\n\nclass Tokenizer:\n r\"\"\"An extensible but simple generic rule-based tokenizer.\n\n A generic and simple string tokenizer that takes a list of functions\n (called `tokenizer cases`) returning ``regex`` objects and joins them by\n \"|\" (regex alternation 'or') to create a single regex to use with the\n standard ``regex.split()`` function.\n\n ``regex_funcs`` is a list of any function that can return a ``regex``\n (from ``re.compile()``) object, such as a\n :class:`gtts.tokenizer.core.RegexBuilder` instance (and its ``regex``\n attribute).\n\n See the :mod:`gtts.tokenizer.tokenizer_cases` module for examples.\n\n Args:\n regex_funcs (list): List of compiled ``regex`` objects. Each\n functions's pattern will be joined into a single pattern and\n compiled.\n flags: ``re`` flag(s) to compile with the final regex. Defaults to\n ``re.IGNORECASE``\n\n Note:\n When the ``regex`` objects obtained from ``regex_funcs`` are joined,\n their individual ``re`` flags are ignored in favour of ``flags``.\n\n Raises:\n TypeError: When an element of ``regex_funcs`` is not a function, or\n a function that does not return a compiled ``regex`` object.\n\n Warning:\n Joined ``regex`` patterns can easily interfere with one another in\n unexpected ways. It is recommanded that each tokenizer case operate\n on distinct or non-overlapping chracters/sets of characters\n (For example, a tokenizer case for the period (\".\") should also\n handle not matching/cutting on decimals, instead of making that\n a seperate tokenizer case).\n\n Example:\n A tokenizer with a two simple case (*Note: these are bad cases to\n tokenize on, this is simply a usage example*)::\n\n >>> import re, RegexBuilder\n >>>\n >>> def case1():\n ... return re.compile(\"\\,\")\n >>>\n >>> def case2():\n ... return RegexBuilder('abc', lambda x: \"{}\\.\".format(x)).regex\n >>>\n >>> t = Tokenizer([case1, case2])\n\n Looking at ``case1().pattern``, we get::\n\n >>> print(case1().pattern)\n '\\\\,'\n\n Looking at ``case2().pattern``, we get::\n\n >>> print(case2().pattern)\n 'a\\\\.|b\\\\.|c\\\\.'\n\n Finally, looking at ``t``, we get them combined::\n\n >>> print(t)\n 're.compile('\\\\,|a\\\\.|b\\\\.|c\\\\.', re.IGNORECASE)\n from: [, ]'\n\n It can then be run on any string of text::\n\n >>> t.run(\"Hello, my name is Linda a. Call me Lin, b. I'm your friend\")\n ['Hello', ' my name is Linda ', ' Call me Lin', ' ', \" I'm your friend\"]\n\n \"\"\"\n\n def __init__(self, regex_funcs, flags=re.IGNORECASE):\n self.regex_funcs = regex_funcs\n self.flags = flags\n\n try:\n # Combine\n self.total_regex = self._combine_regex()\n except (TypeError, AttributeError) as e: # pragma: no cover\n raise TypeError(\n \"Tokenizer() expects a list of functions returning \"\n \"regular expression objects (i.e. re.compile). \" + str(e)\n )\n\n def _combine_regex(self):\n alts = []\n for func in self.regex_funcs:\n alts.append(func())\n\n pattern = \"|\".join(alt.pattern for alt in alts)\n return re.compile(pattern, self.flags)\n\n def run(self, text):\n \"\"\"Tokenize `text`.\n\n Args:\n text (string): the input text to tokenize.\n\n Returns:\n list: A list of strings (token) split according to the tokenizer cases.\n\n \"\"\"\n return self.total_regex.split(text)\n\n def __repr__(self): # pragma: no cover\n return str(self.total_regex) + \" from: \" + str(self.regex_funcs)\n","repo_name":"pndurette/gTTS","sub_path":"gtts/tokenizer/core.py","file_name":"core.py","file_ext":"py","file_size_in_byte":10908,"program_lang":"python","lang":"en","doc_type":"code","stars":2027,"dataset":"github-code","pt":"86"}
+{"seq_id":"27273976801","text":"class Solution:\n def titleToNumber( columnTitle: str) -> int:\n l = {chr(64+i):i for i in range(1,27)}\n ind = 0\n out = 0\n for i in columnTitle[::-1]:\n out +=l[i]*26**ind\n ind+=1\n return out\n print(titleToNumber(\"XYZ\"))","repo_name":"yesetoda/leetcodeSolutions","sub_path":"excelSheetColumnNumber.py","file_name":"excelSheetColumnNumber.py","file_ext":"py","file_size_in_byte":280,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"7343333825","text":"# reduce no le aplica la función al primer número de la lista para funciones dobles. \n\nfrom functools import reduce\n\ndef SumatorioClasico(l):\n resultado = 0\n for valor in l:\n resultado += valor\n \n return resultado\n\ndef SumatorioDobleClasico(l):\n resultado = 0\n for valor in l:\n resultado += valor*2\n \n return resultado\n\ndef ProductoTotal(l):\n resultado = 0\n for valor in l:\n resultado *= valor\n return resultado\n\n\nlista = [1, 3, -1, 15, 9]\n\nsumatorio = reduce(lambda x, y: x + y, lista)\n\n# Creo una copia de la lista.\n\nl = lista[:]\n\n# Añado el neutro para la suma en la posición cero: lista = [0, 1, 3, -1, 15, 9]\n# Como reduce no afecta al primero, si metemos el cero, entonces ahora si que afecta al 1. \n\nl.insert(0,0)\nsumatorioDobles = reduce(lambda x, y: x + y*2, l)\n\n\n\nprint(sumatorio)\nprint(sumatorioDobles)\n\n\n \n ","repo_name":"yalaska04/m02_boot_0","sub_path":"ReduceProblems.py","file_name":"ReduceProblems.py","file_ext":"py","file_size_in_byte":895,"program_lang":"python","lang":"es","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"20357545759","text":"###################################################################\n# Music Analyzer\n# Victor Peralta\n# This Program prompts the user for a playlist data file from apple\n# music or itunes to analyze. The program then dislpays a report of\n# contents of the file.\n#\n####################################################################\n\nimport csv\n#This function asks the user for the name of a file path and returns that name as a string\ndef get_user_info(): \n info = \" \"\n while(True):\n try:\n info = input(\"Please provide the name of your playlist data file: (.csv/.txt) \")\n if(\".txt\" not in info and \".csv\" not in info): #Ensures user at least submits a .txt/,csv file name\n print(\"Please enter a .txt or .csv file: \")\n continue\n except:\n print('Something went wrong. Please try again')\n continue\n else:\n break\n return info\n\n#This function takes in the name of a file, opens it, reads the file as a tab delimited file, and puts that reading into a list\n#This list is then returned from the function\ndef load_music(file_path):\n music_list = []\n try:\n with open(file_path, 'r', encoding='utf-16', newline='') as file:\n csv_reader = csv.reader(file, delimiter = '\\t')\n for row_of_music_as_string in csv_reader:\n music_list.append(row_of_music_as_string)\n except:\n print(f\"An error occured when trying to open {file_path}\")\n\n return music_list\n\n#This function calculates and prints the number of songs for each year within the playlist\ndef num_songs_in_year(mlist): \n years = [] #This will hold the different years\n info2 = [] #This will hold all occurences of each year\n for row in mlist: #traverse throught provided list, in order to populate our lists\n try:\n if(row[16] not in years): #check for duplicates\n years.append(row[16]) \n info2.append(row[16]) #duplicates included\n except:\n continue\n \n years.remove(\"Year\")\n years.sort()\n years.pop(0) #Assumes that there was a blank year value in the file. Which is why we remove it from consideration\n info2.remove(\"Year\") #Both removes of year are just so we don't consider this string in calculations\n \n for year in years: #Prints the number of songs for each year\n print(f\"\\nNumber of songs in the year {year}: {info2.count(year)}\")\n\n#This function finds the longest song with the greatest Time value in the given list.\n#This song(or songs')'s info is then displayed to the user\ndef find_longest_song(mlist):\n info = [] #This will hold all instances of largest Time values\n largest = 0\n lindex = 0 #This is the index of the last value put into info (-1)\n for row in mlist:\n try:\n if(int(row[11]) >= largest):\n largest = int(row[11])\n \n info.append(row)\n lindex+=1 \n except:\n continue\n\n llist = [] # This holds the rows of information that share the greatest values in Time\n llist.append(info[lindex-1])\n for row in info:\n if(row[11] == info[lindex-1]): #We know that the last index in info is the greatest, but we check if any other song in info shares this Time value\n llist.append(row) \n\n iterable = 0\n print(f\"Longest song(s) (based on time):\")\n for row in llist:\n print(f\"Name: {llist[iterable][0]} Artist: {llist[iterable][1]} Time: {largest}\") \n iterable+=1\n print(\"\\n\")\n#This function finds the shortest song with the least Time value in the given list\n#The song's(or songs') info is then displayed to the user\ndef find_shortest_song(mlist):\n info = [] #This will hold every instance of the smallest value\n smallest = 999999999999999999999\n lindex = 0\n for row in mlist:\n try:\n if(int(row[11]) <= smallest):\n smallest = int(row[11]) \n info.append(row)\n lindex+=1 \n except:\n continue\n\n slist = [] #This will hold mutiple of songs that hold the same lowest Time value\n slist.append(info[lindex-1])\n for row in info:\n if(row[11] == info[lindex-1]): #We know the last index of info is the shortest song, but we have to check entire list to see if any other songs have the same value \n slist.append(row) \n iterable2 = 0\n\n print(f\"Shortest song(s) (based on time):\")\n for row in slist:\n print(f\"Name: {slist[iterable2][0]} Artist: {slist[iterable2][1]} Time: {smallest}\") \n iterable2 += 1\n print(\"\\n\")\n\n#This function provides: the number of songs, the longest song by Name and\n#Artist (list multiple if more than one), the shortest song by Name and Artist (\n#list multiple if more than one), of each genre in the given list.\ndef collect_genre_info(mlist):\n index = 0\n genres = [] #this holds every genre in the list\n info2 = [] #this holds every instance of a genre in the list\n for row in mlist:\n try:\n if(row[9] not in genres):\n genres.append(row[9])\n \n info2.append(row[9])\n except:\n continue\n index+=1\n genres.remove(\"Genre\")\n genres.sort()\n genres.pop(0) #Assumes that ther is at least one blank genre spot, which is why it is removed\n \n info2.remove(\"Genre\")\n \n for genre in genres:\n print(f\"\\nNumber of {genre} songs: {info2.count(genre)}\")\n songs = []\n for row in mlist:\n if(row[9] == genre):\n songs.append(row)\n\n find_longest_song(songs) \n find_shortest_song(songs) #Calls to functions made earlier\n\n#his function calculates the number of songs that have been played in a given list \n#This value is then returned\ndef get_num_songs_played(mlist):\n info = []\n for row in mlist:\n info.append(row[25])\n info.sort()\n \n info.pop(len(info)-1) #Removes the \"Plays' column in the first row\n count = 0\n for value in info:\n if(value.isnumeric()):\n count+=1\n return count\n\n#This funciton calculates the number of songs that have not been played in a given list\n#This value is then returned\ndef get_num_songs_not_played(mlist):\n info = []\n for row in mlist:\n info.append(row[25])\n info.sort()\n \n info.pop(len(info)-1) #Removes the \"Plays' column in the first row\n count = 0\n for value in info:\n if(not value.isnumeric()):\n count+=1\n return count\ndef main():\n while(True):\n file_path = get_user_info()\n mlist = load_music(file_path)\n if(mlist):\n print(f\"Numer of songs in {file_path}: {len(mlist)-1}\\n\")\n num_songs_in_year(mlist)\n print(\"\\n\")\n find_longest_song(mlist)\n find_shortest_song(mlist)\n collect_genre_info(mlist)\n count = get_num_songs_not_played(mlist)\n print(f\"\\nThe amount of songs not played is {count}\")\n count2 = get_num_songs_played(mlist)\n print(f\"The amount of songs played is {count2}\\n\")\n another_analyze = input(\"\\nWould you like to analyze another music file?: (y/n) \")\n if(another_analyze != 'y'):\n break\n\nmain()\n","repo_name":"ElM3roM3ro/CS","sub_path":"PythonApps/music_analyzer/music_analyzer.py","file_name":"music_analyzer.py","file_ext":"py","file_size_in_byte":7528,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"42523016519","text":"import os, os.path\nimport json\nfrom ase.io import read\nimport ase.db\nfrom gpaw import GPAW, PW, FermiDirac\nfrom gpaw.response.df import DielectricFunction\nfrom ase.parallel import parprint\n\ndef excited(base_dir=\"./\"):\n gs_gpw = os.path.join(base_dir, \"gs.gpw\")\n es_gpw = os.path.join(base_dir, \"es.gpw\")\n if os.path.exists(es_gpw):\n parprint(\"Excited states calculated, will use gpw file directly!\")\n return\n \n if not os.path.exists(gs_gpw):\n raise FileNotFoundError(\"Ground state not calculated!\")\n\n curr_dir = os.path.dirname(os.path.abspath(__file__))\n param_file = os.path.join(curr_dir, \"../parameters.json\")\n if os.path.exists(param_file):\n params = json.load(open(param_file, \"r\"))\n else:\n raise FileNotFoundError(\"no parameter file!\")\n\n calc = GPAW(gs_gpw)\n calc.set(**params[\"es\"])\n calc.get_potential_energy()\n calc.diagonalize_full_hamiltonian(nbands=60)\n calc.write(es_gpw, mode=\"all\") # full matrix\n\ndef permittivity(base_dir=\"./\", mode=\"df\"):\n curr_dir = os.path.dirname(os.path.abspath(__file__))\n es_gpw = os.path.join(base_dir, \"es.gpw\")\n param_file = os.path.join(curr_dir, \"../parameters.json\")\n\n if os.path.exists(param_file):\n params = json.load(open(param_file, \"r\"))\n else:\n raise FileNotFoundError(\"no parameter file!\")\n\n # No reason to use 2D truncation for dielectric\n params[\"df\"].pop(\"truncation\", None)\n params[\"tetra\"].pop(\"truncation\", None)\n \n if not os.path.exists(es_gpw):\n raise FileNotFoundError(\"Excited state not calculated!\")\n \n if mode not in (\"df\", \"tetra\"):\n raise ValueError(\"Mode should be df or tetra\")\n \n data_file = os.path.join(base_dir,\n \"eps_{}.npz\".format(mode))\n\n if os.path.exists(data_file):\n parprint(\"Polarizability file exists!\")\n return 0\n \n df = DielectricFunction(calc=es_gpw,\n **params[mode])\n eps0x, epsx = df.get_dielectric_function(q_c=[0, 0, 0],\n direction=\"x\",\n filename=None)\n eps0y, epsy = df.get_dielectric_function(q_c=[0, 0, 0],\n direction=\"y\",\n filename=None)\n eps0z, epsz = df.get_dielectric_function(q_c=[0, 0, 0],\n direction=\"z\",\n filename=None)\n \n freq = df.get_frequencies()\n data = dict(frequencies=freq,\n eps_x=epsx,\n eps_y=epsy,\n eps_z=epsz,\n eps_x0=eps0x,\n eps_y0=eps0y,\n eps_z0=eps0z,)\n from ase.parallel import world\n import numpy\n if world.rank == 0:\n numpy.savez_compressed(data_file, **data)\n","repo_name":"alchem0x2A/2D_dielectric","sub_path":"src/dielectric.py","file_name":"dielectric.py","file_ext":"py","file_size_in_byte":2886,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"42086927166","text":"#!/usr/bin/env python\n# coding: utf-8\n\n# In[13]:\n\n\nget_ipython().run_line_magic('config', 'IPCompleter.greedy=True')\n\n\n# In[2]:\n\n\nimport pandas as pd\nimport os\nimport csv\n\n\n# In[9]:\n\n\nmiPath = \"C:/Users/User/Documents/Udemy-Cursos/DataScience-Python/python-ml-course/datasets\"\nmiArchivo =\"/titanic/titanic3.xls\"\nmiArchivo2 =\"/titanic/titanic3.xlsx\"\n\n\n# In[10]:\n\n\ntitanic3 = pd.read_excel(miPath + \"/\" + miArchivo, \"titanic3\")\ntitanic2 = pd.read_excel(miPath + \"/\" + miArchivo2, \"titanic3\")\n\n\n# In[11]:\n\n\ntitanic2.head()\n\n\n# In[ ]:\n\n\n\n\n\n# In[12]:\n\n\ntitanic3.to_csv(miPath + \"/titanic/archivo-Titanic-CSV.csv\")\n\n","repo_name":"pablopetito/DataSciense","sub_path":"tema-Leer-DataExcel.py","file_name":"tema-Leer-DataExcel.py","file_ext":"py","file_size_in_byte":610,"program_lang":"python","lang":"es","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"15027735777","text":"import matplotlib.pyplot as plt\nimport numpy as np\nfrom scipy.signal import hilbert\nfrom obspy import Stream, Trace\n\n\ndef stack_all(stream, pws=False):\n \"\"\"\n Stack all traces in ``Stream`` objects.\n\n Args:\n stream (:class:`~obspy.core.Stream`):\n Contains traces to stack\n pws (bool):\n Enables Phase-Weighted Stacking\n\n Returns:\n :class:`~obspy.core.Trace`:\n Stacked trace\n\n \"\"\"\n\n # Copy stats from stream\n str_stats = stream[0].stats\n\n # Initialize arrays\n tmp = np.zeros(len(stream[0].data))\n weight = np.zeros(len(stream[0].data), dtype=complex)\n\n # Stack all traces\n for tr in stream:\n tmp += tr.data\n hilb = hilbert(tr.data)\n phase = np.arctan2(hilb.imag, hilb.real)\n weight += np.exp(1j * phase)\n\n # Normalize\n tmp = tmp / float(len(stream))\n\n # Phase-weighting\n if pws:\n weight = weight / float(len(stream))\n weight = np.real(abs(weight))\n else:\n weight = np.ones(len(stream[0].data))\n\n # Put back into traces\n stack = Trace(data=weight * tmp, header=str_stats)\n\n return stack\n\n\ndef rf_wiggles(\n rflist,\n btyp=\"baz\",\n wvtype=\"P\",\n pws=False,\n tmin=-5.0,\n tmax=20,\n scale=None,\n pcolor=\"red\",\n ncolor=\"blue\",\n save=False,\n axs=None,\n ftitle=\"Figure_rf_wiggle\",\n fmt=\"png\",\n plot_kwargs={\"linewidth\": 0.1, \"color\": \"black\"},\n figure_kwargs={},\n):\n \"\"\"\n Plot receiver function seismograms sorted by back-azimuth or slowness.\n\n Args:\n rflist (list or prs.Result):\n list of `obspy.core.Stream `_ objects\n containing receiver functions\n btyp (str):\n Type of sorting for panel\n wvtype (str):\n Wavet type ('P', 'SV', or 'SH')\n pws (bool):\n Enables Phase-Weighted Stacking\n tmin (float):\n Lower bound of time axis (s)\n tmax (float):\n Upper bound of time axis (s)\n scale (float):\n Amplitude scaling factor\n save (bool):\n Whether or not to save the figure\n axs (4*tuple):\n matplotlib axes to place the subplots.\n\n * axs[0]: radial stack\n * axs[1]: radial section\n * axs[2]: transverse stack\n * axs[3]: transverse section\n\n pcolor (str):\n Color to fill positive wiggles\n ncolor (str):\n Color to fill negative wiggles\n ftitle (str):\n Filename of figure to be saved (without format suffix, see fmt)\n fmt (str):\n Output format ('png', 'jpg', or 'eps', etc.)\n plot_kwargs (dict):\n Keyword arguments passed to\n `matplotlib.pyplot.plot() `_\n figure (dict):\n Keyword arguments passed to\n `matplotlib.pyplot.figure() `_\n\n Returns:\n :class:`matplotlib.pyplot.figure` :\n Figure handle\n \"\"\"\n\n if not (btyp == \"baz\" or btyp == \"slow\" or btyp == \"dist\"):\n raise ValueError('type has to be \"baz\" or \"slow\" or \"dist\"')\n\n if not fmt in [\"png\", \"PNG\", \"jpg\", \"JPG\", \"eps\", \"EPS\", \"pdf\", \"PDF\"]:\n raise ValueError(\"'fmt' has to be one of 'png', 'jpg', 'eps', 'pdf'\")\n\n # Re-order streams in list\n str1 = Stream(traces=[st[0] for st in rflist.rfs])\n str2 = Stream(traces=[st[1] for st in rflist.rfs])\n\n # Get stacked traces\n tr1 = stack_all(str1, pws=pws)\n tr2 = stack_all(str2, pws=pws)\n\n # Time axis\n time = str1[0].stats.taxis\n\n # Initialize figure\n if not axs:\n fig = plt.figure(**figure_kwargs)\n plt.clf()\n\n # Get more control on subplots\n ax1 = fig.add_axes([0.1, 0.825, 0.3, 0.05])\n ax2 = fig.add_axes([0.1, 0.1, 0.3, 0.7])\n ax3 = fig.add_axes([0.45, 0.825, 0.3, 0.05])\n ax4 = fig.add_axes([0.45, 0.1, 0.3, 0.7])\n else:\n ax1, ax2, ax3, ax4 = axs\n fig = ax1.get_figure()\n\n # Plot stack of all traces from str1 on top left\n ax1.fill_between(\n time,\n 0.0,\n tr1.data,\n where=tr1.data + 1e-6 <= 0.0,\n facecolor=ncolor,\n linewidth=0,\n interpolate=True,\n )\n ax1.fill_between(\n time,\n 0.0,\n tr1.data,\n where=tr1.data + 1e-6 >= 0.0,\n facecolor=pcolor,\n linewidth=0,\n interpolate=True,\n )\n ax1.plot(time, tr1.data, **plot_kwargs)\n ax1.set_ylim(-np.max(np.abs(tr1.data)), np.max(np.abs(tr1.data)))\n ax1.set_yticks(())\n ax1.set_xticks(())\n ax1.set_title(\"Radial\")\n ax1.set_xlim(tmin, tmax)\n\n # Plot stack of all SH traces on top right\n ax3.fill_between(\n time,\n 0.0,\n tr2.data,\n where=tr2.data + 1e-6 <= 0.0,\n facecolor=ncolor,\n linewidth=0,\n interpolate=True,\n )\n ax3.fill_between(\n time,\n 0.0,\n tr2.data,\n where=tr2.data + 1e-6 >= 0.0,\n facecolor=pcolor,\n linewidth=0,\n interpolate=True,\n )\n ax3.plot(time, tr2.data, **plot_kwargs)\n ax3.set_xlim(tmin, tmax)\n ax3.set_ylim(-np.max(np.abs(tr1.data)), np.max(np.abs(tr1.data)))\n ax3.set_yticks(())\n ax3.set_xticks(())\n ax3.set_title(\"Transverse\")\n\n axes = [ax2, ax4]\n streams = [str1, str2]\n\n for ax, st in zip(axes, streams):\n\n # Plot sorted traces from str1 on bottom left panel\n for tr in st:\n\n if scale:\n maxval = scale\n # Define y axis\n if btyp == \"baz\":\n y = tr.stats.baz\n elif btyp == \"slow\":\n y = tr.stats.slow\n elif btyp == \"dist\":\n y = tr.stats.slow\n else:\n # Define y axis\n if btyp == \"baz\":\n y = tr.stats.baz\n maxval = 180\n elif btyp == \"slow\":\n y = tr.stats.slow\n maxval = 0.02\n elif btyp == \"dist\":\n y = tr.stats.slow\n maxval = 20\n\n # Fill positive in red, negative in blue\n ax.fill_between(\n time,\n y,\n y + tr.data * maxval,\n where=tr.data + 1e-6 <= 0.0,\n facecolor=ncolor,\n linewidth=0,\n interpolate=True,\n )\n ax.fill_between(\n time,\n y,\n y + tr.data * maxval,\n where=tr.data + 1e-6 >= 0.0,\n facecolor=pcolor,\n linewidth=0,\n interpolate=True,\n )\n ax.plot(time, y + tr.data * maxval, **plot_kwargs)\n\n ax.set_xlim(tmin, tmax)\n\n if btyp == \"baz\":\n ax.set_ylim(-5, 370)\n ax.set_ylabel(\"Back-azimuth (degree)\")\n\n elif btyp == \"slow\":\n if wvtype == \"P\":\n ax.set_ylim(0.038, 0.082)\n elif wvtype == \"S\":\n ax.set_ylim(0.07, 0.125)\n elif wvtype == \"SKS\":\n ax.set_ylim(0.03, 0.06)\n ax.set_ylabel(\"Slowness (s/km)\")\n elif btyp == \"dist\":\n if wvtype == \"P\":\n ax.set_ylim(28.0, 92.0)\n elif wvtype == \"S\":\n ax.set_ylim(53.0, 107.0)\n elif wvtype == \"SKS\":\n ax.set_ylim(83.0, 117.0)\n ax.set_ylabel(\"Distance (degree)\")\n\n ax.set_xlabel(\"Time (seconds)\")\n ax.grid(ls=\":\")\n\n # Remove labels on axis 4\n ax4.set_ylabel(\"\")\n ax4.set_yticklabels(())\n\n if save:\n plt.savefig(ftitle + \".\" + fmt, bbox_inches=\"tight\", format=fmt)\n else:\n plt.show()\n\n return fig\n\n\ndef stream_wiggles(\n streamlist,\n btyp=\"baz\",\n wvtype=\"P\",\n tmin=-5.0,\n tmax=20.0,\n scale=None,\n pcolor=\"red\",\n ncolor=\"blue\",\n save=False,\n axs=None,\n ftitle=\"Figure_pw_wiggles\",\n fmt=\"png\",\n plot_kwargs={\"linewidth\": 0.1, \"color\": \"black\"},\n figure_kwargs={},\n):\n \"\"\"\n Plot displacement seismograms sorted by back-azimuth or slowness.\n\n Args:\n streamlist (list or prs.Result):\n list of `obspy.core.Stream `_ objects\n containing displacement seismograms\n btyp (str):\n Type of sorting for panel\n wvtype (str):\n Wave type ('P', 'SV', or 'SH')\n tmin (float):\n Lower bound of time axis (s)\n tmax (float):\n Upper bound of time axis (s)\n scale (float):\n Scaling factor\n pcolor (str):\n Color to fill positive wiggles\n ncolor (str):\n Color to fill negative wiggles\n save (bool):\n Whether or not to save the figure\n axs (3*tuple):\n matplotlib axes to place the subplots.\n\n * axs[0]: P or R section\n * axs[1]: V or T section\n * axs[2]: H or Z section\n\n ftitle (str):\n Filename of figure to be saved (without format suffix, see fmt)\n fmt (str):\n Output format ('png', 'jpg', or 'eps', etc.)\n plot_kwargs (dict):\n Keyword arguments passed to\n `matplotlib.pyplot.plot() `_\n figure (dict):\n Keyword arguments passed to\n `matplotlib.pyplot.figure() `_\n\n Returns:\n :class:`matplotlib.pyplot.figure` :\n Figure handle\n \"\"\"\n\n if not (btyp == \"baz\" or btyp == \"slow\" or btyp == \"dist\"):\n msg = 'type has to be \"baz\" or \"slow\" or \"dist\"'\n raise ValueError(msg)\n\n # Re-order streams in list\n str1 = Stream(traces=[st[0] for st in streamlist.streams])\n str2 = Stream(traces=[st[1] for st in streamlist.streams])\n str3 = Stream(traces=[st[2] for st in streamlist.streams])\n\n # Time axis\n time = str1[0].stats.taxis\n\n # Initialize figure\n if not axs:\n fig = plt.figure(**figure_kwargs)\n plt.clf()\n\n # Get more control on subplots\n ax1 = fig.add_axes([0.1, 0.1, 0.25, 0.83])\n ax2 = fig.add_axes([0.4, 0.1, 0.25, 0.83])\n ax3 = fig.add_axes([0.7, 0.1, 0.25, 0.83])\n axes = [ax1, ax2, ax3]\n else:\n axes = axs\n fig = ax1.get_figure()\n\n streams = [str1, str2, str3]\n\n for ax, st in zip(axes, streams):\n\n for tr in st:\n if scale:\n maxval = scale\n # Define y axis\n if btyp == \"baz\":\n y = tr.stats.baz\n elif btyp == \"slow\":\n y = tr.stats.slow\n elif btyp == \"dist\":\n y = tr.stats.slow\n else:\n # Define y axis\n if btyp == \"baz\":\n y = tr.stats.baz\n maxval = 100\n elif btyp == \"slow\":\n y = tr.stats.slow\n maxval = 0.02\n elif btyp == \"dist\":\n y = tr.stats.slow\n maxval = 20\n\n # Fill positive in red, negative in blue\n ax.fill_between(\n time,\n y,\n y + tr.data * maxval,\n where=tr.data + 1e-6 <= 0.0,\n facecolor=ncolor,\n linewidth=0,\n interpolate=True,\n )\n ax.fill_between(\n time,\n y,\n y + tr.data * maxval,\n where=tr.data + 1e-6 >= 0.0,\n facecolor=pcolor,\n linewidth=0,\n interpolate=True,\n )\n ax.plot(time, y + tr.data * maxval, **plot_kwargs)\n\n ax.set_xlim(tmin, tmax)\n\n if btyp == \"baz\":\n ax.set_ylim(-5, 370)\n ax.set_ylabel(\"Back-azimuth (degree)\")\n\n elif btyp == \"slow\":\n if wvtype == \"P\":\n ax.set_ylim(0.038, 0.082)\n elif wvtype == \"S\":\n ax.set_ylim(0.07, 0.125)\n elif wvtype == \"SKS\":\n ax.set_ylim(0.03, 0.06)\n ax.set_ylabel(\"Slowness (s/km)\")\n elif btyp == \"dist\":\n if wvtype == \"P\":\n ax.set_ylim(28.0, 92.0)\n elif wvtype == \"S\":\n ax.set_ylim(53.0, 107.0)\n elif wvtype == \"SKS\":\n ax.set_ylim(83.0, 117.0)\n ax.set_ylabel(\"Distance (degree)\")\n\n ax.set_xlabel(\"Time (seconds)\")\n ax.set_title(st[0].stats.channel)\n ax.grid(ls=\":\")\n\n # Remove labels on axes 2 and 3\n axes[1].set_ylabel(\"\")\n axes[2].set_ylabel(\"\")\n axes[1].set_yticklabels(())\n axes[2].set_yticklabels(())\n\n if save:\n plt.savefig(ftitle + \".\" + fmt, bbox_inches=\"tight\", format=fmt)\n else:\n plt.show()\n\n return fig\n\n\ndef seis_wiggles(\n stream,\n tmin=-5.0,\n tmax=20.0,\n save=False,\n ftitle=\"Figure_pw_wiggles_3c\",\n fmt=\"png\",\n figure_kwargs={},\n):\n \"\"\"\n Plots 3-component wiggles.\n\n Args:\n stream (:class:`~obspy.core.Stream`):\n `obspy.core.Stream `_ containing 3 traces\n tmin (float):\n Lower bound of time axis (s)\n tmax (float, optional):\n Upper bound of time axis (s)\n save (bool):\n Whether or not to save the figure\n ftitle (str):\n Filename of figure to be saved (without format suffix, see fmt)\n fmt (str):\n Output format ('png', 'jpg', or 'eps', etc.)\n\n Returns:\n :class:`matplotlib.pyplot.figure` :\n Figure handle\n \"\"\"\n\n nt = stream[0].stats.npts\n dt = stream[0].stats.delta\n\n # Clear figure\n fig = plt.figure(**figure_kwargs)\n\n # Time axis\n time = stream[0].stats.taxis\n\n max1 = np.max(np.abs(stream[0].data))\n max2 = np.max(np.abs(stream[1].data))\n max3 = np.max(np.abs(stream[2].data))\n\n ax = fig.add_subplot(313)\n maxv = np.max(np.array([max1, max2, max3]))\n ax.plot(time, stream[2].data / maxv, \"k\", label=\"Vertical component\", lw=0.75)\n ax.set_xlim(tmin, tmax)\n ax.set_ylim(-1.1, 1.1)\n ax.set_xlabel(\"Time following $P$-wave arrival (seconds)\")\n\n plt.legend()\n\n ax = fig.add_subplot(312)\n ax.plot(time, stream[0].data / maxv, \"k\", label=\"North component\", lw=0.75)\n ax.set_xlim(tmin, tmax)\n ax.set_ylim(-1.1, 1.1)\n ax.set_xticklabels(())\n\n plt.legend()\n\n ax = fig.add_subplot(311)\n ax.plot(time, stream[1].data / maxv, \"k\", label=\"East component\", lw=0.75)\n ax.set_xlim(tmin, tmax)\n ax.set_ylim(-1.1, 1.1)\n ax.set_xticklabels(())\n\n plt.legend()\n\n plt.legend()\n plt.tight_layout()\n\n if save:\n plt.savefig(ftitle + \".\" + fmt, bbox_inches=\"tight\", format=fmt)\n else:\n plt.show()\n\n return fig\n","repo_name":"paudetseis/PyRaysum","sub_path":"pyraysum/plot.py","file_name":"plot.py","file_ext":"py","file_size_in_byte":14986,"program_lang":"python","lang":"en","doc_type":"code","stars":31,"dataset":"github-code","pt":"86"}
+{"seq_id":"25107047363","text":"import os\nimport pytest\nfrom unittest.mock import MagicMock\nfrom genie.testbed import load\nfrom lab_api.services import ISE, Appliance, DNAC, DeviceLab\n\n\n# DeviceLab Setup\n\n\n@pytest.fixture()\ndef testbed():\n # Setup testbed for testing\n yield load(os.getenv(\"CIVLAB_NETDEVICE_DATA\"))\n\n\n@pytest.fixture()\ndef devicelab(testbed):\n # Setup LabDevice object\n obj = DeviceLab(testbed)\n yield obj\n\n\n@pytest.fixture()\ndef device():\n # Mock device\n obj = MagicMock()\n obj.connect = MagicMock()\n obj.api.get_platform_default_dir = MagicMock(return_value=\"test\")\n obj.api.verify_file_exists = MagicMock(return_value=True)\n obj.api.get_running_config_dict = MagicMock(return_value=\"test\")\n obj.api.get_config_from_file = MagicMock(return_value=\"test\")\n obj.api.compare_config_dicts = MagicMock(return_value=\"\")\n yield obj\n\n\n# DeviceLab tests\n\n\ndef test_devicelab_testbed(testbed, devicelab):\n assert testbed == devicelab.testbed\n\n\ndef test_devicelab_default_cfg_file(testbed, devicelab):\n assert testbed.custom.default_cfg_file == devicelab.default_cfg_file\n\n\ndef test_devicelab_get_default_cfg_exists(devicelab, device):\n devicelab.get_default_cfg_exists(device)\n device.api.get_platform_default_dir.assert_called_once()\n device.api.verify_file_exists.assert_called_once_with(device.default_cfg_path)\n assert device.default_config_exists\n\n\ndef test_devicelab_get_default_cfg_exists_all(devicelab, device):\n devicelab.get_default_cfg_exists = MagicMock()\n devicelab.get_default_cfg_exists_all()\n devicelab.get_default_cfg_exists.assert_called()\n\n\ndef test_devicelab_get_running_default_cfg_diff(devicelab, device):\n device.connect()\n devicelab.get_running_default_cfg_diff(device)\n device.api.get_running_config_dict.assert_called_once()\n device.api.get_config_from_file.assert_called_with(\n device.default_dir, devicelab.default_cfg_file\n )\n device.api.compare_config_dicts.assert_called_with(\n device.running_cfg, device.default_cfg\n )\n\n\ndef test_devicelab_get_running_default_cfg_diff_all(devicelab, device):\n devicelab.get_running_default_cfg_diff = MagicMock()\n devicelab.get_running_default_cfg_diff_all()\n devicelab.get_running_default_cfg_diff.assert_called()\n\n\ndef test_devicelab_reset_device_to_default(devicelab, device):\n # Mock setup\n devicelab.get_running_default_cfg_diff = MagicMock(return_value=\"test\")\n device.default_cfg_path = \"test\"\n device.api.execute_copy_to_startup_config = MagicMock()\n device.api.execute_reload = MagicMock()\n # Test\n devicelab.reset_device_to_default(device, sleep=1, timeout=2)\n # Asserts\n device.api.execute_copy_to_startup_config.assert_called_once_with(\n device.default_cfg_path\n )\n device.api.execute_reload.assert_called_once_with(\n prompt_recovery=False,\n reload_creds=\"default\",\n sleep_after_reload=1,\n timeout=2,\n )\n\n\n# Appliance Setup\n\n\n@pytest.fixture()\ndef appliance(mocker):\n mocker.patch(\"paramiko.SSHClient\")\n appl = Appliance(\"10.1.1.1\", \"test\", \"test\", 22)\n yield appl\n\n\n@pytest.fixture()\ndef dnac(mocker):\n mocker.patch(\"paramiko.SSHClient\")\n dnac = DNAC(\"10.1.1.1\", \"test\", \"test\", 22)\n yield dnac\n\n\n@pytest.fixture()\ndef ise(mocker):\n mocker.patch(\"paramiko.SSHClient\")\n ise = ISE(\"10.1.1.1\", \"test\", \"test\", 22)\n yield ise\n\n\n# Test Appliance\n\n\ndef test_appliance_connect(mocker, appliance):\n mocker.patch.object(Appliance, \"_connect_ssh\")\n r = appliance.connect()\n Appliance._connect_ssh.assert_called_once()\n assert r\n assert appliance.connected\n\n\ndef test_appliance_disconnect(mocker, appliance):\n appliance.connect()\n mocker.patch.object(appliance, \"_disconnect\")\n appliance._disconnect.return_value = False\n r = appliance.disconnect()\n appliance._disconnect.assert_called_once()\n assert not r\n\n\ndef test_appliance__disconnect(mocker, appliance):\n appliance.connect()\n mocker.patch.object(appliance, \"_ssh\")\n mocker.patch.object(appliance, \"_do_before_disconnect\")\n mocker.patch.object(appliance, \"_do_after_disconnect\")\n r = appliance._disconnect()\n appliance._ssh.close.assert_called_once()\n appliance._do_before_disconnect.assert_called_once()\n appliance._do_after_disconnect.assert_called_once()\n assert not r\n\n\ndef test_appliance__connect_ssh(mocker, appliance):\n mocker.patch.object(appliance, \"_ssh\")\n r = appliance._connect_ssh()\n appliance._ssh.connect.assert_called_once_with(\"10.1.1.1\", 22, \"test\", \"test\")\n appliance._ssh.invoke_shell.assert_called_once()\n assert r\n\n\ndef test_appliance__send_command(mocker, appliance):\n cmd = \"test\"\n cmd_nl = f\"{cmd}\\n\"\n mocker.patch.object(appliance, \"_shell\")\n mocker.patch.object(appliance, \"_read_shell\")\n appliance._shell.send.return_value = len(cmd_nl.encode(\"utf-8\"))\n appliance._read_shell.return_value = cmd\n r = appliance._send_command(cmd)\n appliance._shell.send.assert_called_once_with(cmd_nl)\n appliance._read_shell.assert_called_once()\n assert r == cmd\n\n\ndef test_appliance__read_shell_recv_ready(mocker, appliance):\n data = \"test\"\n mocker.patch.object(appliance, \"_shell\")\n appliance._shell.recv_ready.return_value = True\n appliance._shell.recv.return_value = data.encode(\"utf-8\")\n r = appliance._read_shell(wait=1)\n appliance._shell.recv_ready.assert_called_once()\n assert r == data\n\n\n# Test DNAC\n\n\ndef test_dnac__handle_kong_prompt(mocker, dnac):\n dummy_usr_prompt = \" [administration] username \"\n dummy_pwd_prompt = \" [administration] password \"\n mocker.patch.object(dnac, \"_send_command\")\n dnac._send_command.return_value = dummy_pwd_prompt\n r = dnac._handle_kong_prompt(dummy_usr_prompt)\n dnac._send_command.assert_called_with(\"test\")\n dnac._send_command.assert_called_with(dnac.password)\n assert r == dummy_pwd_prompt\n\n\ndef test_dnac__parse_maglev_restore_history(dnac):\n with open(\"mock_data/dnac_maglev_restore_history\") as stream:\n data = stream.read()\n r = dnac._parse_maglev_restore_history(data, dnac._default_result)\n assert \"ee84abae-a11b-45c6-94c3-d578cfe888f6\" == r[\"restore_id\"]\n\n\ndef test_dnac_get_status(mocker, dnac):\n dummy_resp = 'test'\n mocker.patch.object(dnac, \"_send_command\")\n mocker.patch.object(dnac, \"_handle_kong_prompt\")\n mocker.patch.object(dnac, \"_parse_maglev_restore_history\")\n dnac._send_command.return_value = dummy_resp\n dnac._handle_kong_prompt.return_value = dummy_resp\n dnac._parse_maglev_restore_history.return_value = dummy_resp\n dnac.get_status()\n dnac._send_command.assert_called_once_with(dnac._status_cmd)\n dnac._handle_kong_prompt.assert_called_once_with(dummy_resp)\n dnac._parse_maglev_restore_history.assert_called_once_with(dummy_resp, dnac._default_result)\n\n\n# Test ISE\n\n\ndef test_ise__parse_show_restore_history(ise):\n with open(\"mock_data/ise_show_restore_history\") as stream:\n data = stream.read()\n r = ise._parse_show_restore_history(data)\n assert \"ise-with-users-ready4DNACb-CFG10-220325-1518.tar.gpg\" == r[\"restore_file\"]\n\n\ndef test_ise___do_after_connect(mocker, ise):\n mocker.patch.object(ise, \"_handle_session_prompt\")\n mocker.patch.object(ise, \"_send_command\")\n ise._do_after_connect()\n ise._handle_session_prompt.assert_called_once()\n ise._send_command.assert_called_once_with(ise._term_len_cmd)\n\n\ndef test_ise__handle_session_prompt(mocker, ise):\n mocker.patch.object(ise, \"_read_shell\")\n mocker.patch.object(ise, \"_send_command\")\n ise._read_shell.return_value = \" press to start a new one: \"\n ise._handle_session_prompt()\n ise._read_shell.assert_called_once()\n ise._send_command.assert_called_once_with(\"\")\n\n\ndef test_ise_get_status(mocker, ise):\n dummy_resp = \"test\"\n mocker.patch.object(ise, \"_send_command\")\n mocker.patch.object(ise, \"_parse_show_restore_history\")\n ise._send_command.return_value = dummy_resp\n ise._parse_show_restore_history.return_value = dummy_resp\n r = ise.get_status()\n assert r == dummy_resp\n ise._send_command.assert_called_once_with(ise._status_cmd)\n ise._parse_show_restore_history.assert_called_once_with(dummy_resp)\n","repo_name":"sambyers/fedciv-lab-api","sub_path":"tests/test_services.py","file_name":"test_services.py","file_ext":"py","file_size_in_byte":8227,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"4655270629","text":"import pandas as pd\r\nimport statistics\r\n\r\ndf = pd.read_csv('test_score.csv')\r\n\r\nMath_score = df['math score'].tolist()\r\n\r\nMean = statistics.mean(Math_score)\r\nMedian = statistics.median(Math_score)\r\nMode = statistics.mode(Math_score)\r\nsd = statistics.stdev(Math_score)\r\n\r\nsd1start, sd1end = Mean - sd, Mean + sd\r\nsd2start, sd2end = Mean - (2*sd), Mean + (2*sd)\r\nsd3start, sd3end = Mean - (3*sd), Mean + (3*sd)\r\n\r\ndata_within_sd1 = [ data for data in Math_score if data > sd1start and data < sd1end]\r\ndata_within_sd2 = [ data for data in Math_score if data > sd2start and data < sd2end]\r\ndata_within_sd3 = [ data for data in Math_score if data > sd3start and data < sd3end]\r\n\r\nprint('{}% of data lies within 1sd'.format(len(data_within_sd1)*100/len(Math_score)))\r\nprint('{}% of data lies within 2sd'.format(len(data_within_sd2)*100/len(Math_score)))\r\nprint('{}% of data lies within 3sd'.format(len(data_within_sd3)*100/len(Math_score)))","repo_name":"Aanadanbiswas/PRO-109","sub_path":"PRO-109/score.py","file_name":"score.py","file_ext":"py","file_size_in_byte":934,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"20825877393","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Wed Dec 28 10:01:30 2016\n\nThe Fibonacci sequence is defined by the recurrence relation:\n\nFn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1.\nHence the first 12 terms will be:\n\nF1 = 1\nF2 = 1\nF3 = 2\nF4 = 3\nF5 = 5\nF6 = 8\nF7 = 13\nF8 = 21\nF9 = 34\nF10 = 55\nF11 = 89\nF12 = 144\nThe 12th term, F12, is the first term to contain three digits.\n\nWhat is the index of the first term in the Fibonacci sequence to contain 1000 digits?\n\"\"\"\n\ndef number_25(x):\n fibo = [1, 1]\n length = len(str(fibo[len(fibo)-1]))\n while length < x:\n fibo.append(fibo[len(fibo)-1]+fibo[len(fibo)-2])\n length = len(str(fibo[len(fibo)-1]))\n return len(fibo)-1","repo_name":"zlatankr/Coding-Challenges","sub_path":"ProjectEuler/Project Euler 25.py","file_name":"Project Euler 25.py","file_ext":"py","file_size_in_byte":682,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"7927045","text":"import js\nfrom RobotRaconteur.Client import *\nimport importlib_resources\nimport traceback\nimport numpy as np\nimport base64\nfrom RobotRaconteurCompanion.Util.GeometryUtil import GeometryUtil\nfrom pyri.webui_browser import util\nfrom pyri.webui_browser.util import to_js2\n\nclass NewRobotOriginCalibrationDialog:\n def __init__(self, new_name, core, device_manager):\n self.vue = None\n self.core = core\n self.device_manager = device_manager\n self.new_name = new_name\n\n def init_vue(self,vue):\n self.vue = vue\n\n def handle_create(self,*args):\n try:\n robot_local_device_name = getattr(self.vue,\"$data\").robot_selected\n intrinsic_calib = getattr(self.vue,\"$data\").camera_intrinsic_selected\n extrinsic_calib = getattr(self.vue,\"$data\").camera_extrinsic_selected\n image_sequence_global_name = getattr(self.vue,\"$data\").image_sequence_selected\n aruco_dict = getattr(self.vue,\"$data\").aruco_dict_selected\n aruco_tag_id = int(getattr(self.vue,\"$data\").aruco_tag_id)\n aruco_tag_size = float(getattr(self.vue,\"$data\").aruco_tag_size)\n xyz = np.zeros((3,),dtype=np.float64)\n rpy = np.zeros((3,),dtype=np.float64)\n xyz[0] = float(getattr(self.vue,\"$data\").marker_pose_x)\n xyz[1] = float(getattr(self.vue,\"$data\").marker_pose_y)\n xyz[2] = float(getattr(self.vue,\"$data\").marker_pose_z)\n rpy[0] = float(getattr(self.vue,\"$data\").marker_pose_r_r)\n rpy[1] = float(getattr(self.vue,\"$data\").marker_pose_r_p)\n rpy[2] = float(getattr(self.vue,\"$data\").marker_pose_r_y)\n\n rpy = np.deg2rad(rpy)\n\n robot_calib = self.core.device_manager.get_device_subscription(\"vision_robot_calibration\").GetDefaultClient()\n geom_util = GeometryUtil(client_obj = robot_calib)\n marker_pose = geom_util.xyz_rpy_to_pose(xyz, rpy)\n \n self.core.create_task(do_calibration(robot_local_device_name,intrinsic_calib,extrinsic_calib,\\\n image_sequence_global_name,aruco_dict,aruco_tag_id, aruco_tag_size, marker_pose, self.new_name,self.core))\n except:\n traceback.print_exc()\n\n def handle_hidden(self,*args):\n try:\n l = getattr(self.vue,\"$el\")\n l.parentElement.removeChild(l)\n except:\n traceback.print_exc()\n \n \nasync def do_show_new_robot_origin_calibration_dialog(new_name: str, variable_type: str, variable_tags: str, core: \"PyriWebUIBrowser\"):\n try:\n \n core.device_manager.connect_device(\"vision_robot_calibration\")\n\n dialog_html = importlib_resources.read_text(__package__,\"new_calibrate_robot_origin_dialog.html\")\n\n dialog_obj = NewRobotOriginCalibrationDialog(new_name, core, core.device_manager)\n\n el = js.document.createElement('div')\n el.id = \"new_calibrate_robot_origin_dialog_wrapper\"\n js.document.getElementById(\"wrapper\").appendChild(el)\n\n dialog = js.Vue.new(to_js2({\n \"el\": \"#new_calibrate_robot_origin_dialog_wrapper\",\n \"template\": dialog_html,\n \"data\":\n {\n \"robot_selected\": \"\",\n \"robot_select_options\": [],\n \"camera_intrinsic_selected\": \"\",\n \"camera_intrinsic_select_options\": [],\n \"camera_extrinsic_selected\": \"\",\n \"camera_extrinsic_select_options\": [],\n \"image_sequence_selected\": \"\",\n \"image_sequence_select_options\": [],\n \"aruco_dict_selected\": \"\",\n \"aruco_dict_select_options\": [],\n \"aruco_tag_id\": \"120\",\n \"aruco_tag_size\": \"0.06\",\n \"marker_pose_x\": \"0\",\n \"marker_pose_y\": \"0\",\n \"marker_pose_z\": \"0\",\n \"marker_pose_r_r\": \"0\",\n \"marker_pose_r_p\": \"0\",\n \"marker_pose_r_y\": \"0\",\n \n },\n \"methods\":\n {\n \"handle_create\": dialog_obj.handle_create,\n \"handle_hidden\": dialog_obj.handle_hidden\n }\n }))\n\n dialog_obj.init_vue(dialog)\n\n robots = []\n robot_names = util.get_devices_with_type(core, \"com.robotraconteur.robotics.robot.Robot\")\n robots = util.device_names_to_dropdown_options(robot_names)\n \n getattr(dialog,\"$data\").robot_select_options = to_js2(robots)\n if len(robots) > 0:\n getattr(dialog,\"$data\").robot_selected = robots[0][\"value\"]\n\n db = core.device_manager.get_device_subscription(\"variable_storage\").GetDefaultClient()\n\n intrins_var_names = await db.async_filter_variables(\"globals\",\"\",[\"camera_calibration_intrinsic\"],None)\n intrins_vars = []\n for v in intrins_var_names:\n intrins_vars.append({\"value\": v, \"text\": v})\n getattr(dialog,\"$data\").camera_intrinsic_select_options = to_js2(intrins_vars)\n if len(intrins_vars) > 0:\n getattr(dialog,\"$data\").camera_intrinsic_selected = intrins_vars[0][\"value\"]\n\n extrins_var_names = await db.async_filter_variables(\"globals\",\"\",[\"camera_calibration_extrinsic\"],None)\n extrins_vars = []\n for v in extrins_var_names:\n extrins_vars.append({\"value\": v, \"text\": v})\n getattr(dialog,\"$data\").camera_extrinsic_select_options = to_js2(extrins_vars)\n if len(extrins_vars) > 0:\n getattr(dialog,\"$data\").camera_extrinsic_selected = extrins_vars[0][\"value\"]\n\n \n seq_var_names = await db.async_filter_variables(\"globals\",\"\",[\"image_sequence\"],None)\n\n seq_vars = []\n for v in seq_var_names:\n seq_vars.append({\"value\": v, \"text\": v})\n getattr(dialog,\"$data\").image_sequence_select_options = to_js2(seq_vars)\n if len(seq_vars) > 0:\n getattr(dialog,\"$data\").image_sequence_selected = seq_vars[0][\"value\"]\n\n aruco_dicts = ['DICT_4X4_100', 'DICT_4X4_1000', 'DICT_4X4_250', \\\n 'DICT_4X4_50', 'DICT_5X5_100', 'DICT_5X5_1000', 'DICT_5X5_250', \\\n 'DICT_5X5_50', 'DICT_6X6_100', 'DICT_6X6_1000', 'DICT_6X6_250', \\\n 'DICT_6X6_50', 'DICT_7X7_100', 'DICT_7X7_1000', 'DICT_7X7_250', \\\n 'DICT_7X7_50', 'DICT_APRILTAG_16H5', 'DICT_APRILTAG_16h5', 'DICT_APRILTAG_25H9', \\\n 'DICT_APRILTAG_25h9', 'DICT_APRILTAG_36H10', 'DICT_APRILTAG_36H11', 'DICT_APRILTAG_36h10', \\\n 'DICT_APRILTAG_36h11', 'DICT_ARUCO_ORIGINAL']\n\n aruco_opts = [{\"value\": v,\"text\": v} for v in aruco_dicts]\n\n getattr(dialog,\"$data\").aruco_dict_select_options = to_js2(aruco_opts)\n getattr(dialog,\"$data\").aruco_dict_selected = 'DICT_6X6_250'\n \n getattr(dialog,\"$bvModal\").show(\"new_vision_camera_calibrate_robot_origin\")\n except:\n js.alert(f\"Calibration failed:\\n\\n{traceback.format_exc()}\")\n\ndef show_new_robot_origin_calibration_dialog(new_name: str, variable_type: str, variable_tags: str, core: \"PyriWebUIBrowser\"):\n core.create_task(do_show_new_robot_origin_calibration_dialog(new_name, variable_type, variable_tags, core))\n\nasync def do_calibration(robot_local_device_name, intrinsic_calib, extrinsic_calib, \\\n image_sequence_global_name, aruco_dict, aruco_tag_id, aruco_tag_size, marker_pose, new_name, core):\n\n try:\n robot_calib = core.device_manager.get_device_subscription(\"vision_robot_calibration\").GetDefaultClient()\n\n calib_res = await robot_calib.async_calibrate_robot_origin(robot_local_device_name, intrinsic_calib, \\\n extrinsic_calib, image_sequence_global_name, aruco_dict, aruco_tag_id, aruco_tag_size, \\\n marker_pose, new_name, None)\n\n except:\n js.alert(f\"Calibration failed:\\n\\n{traceback.format_exc()}\")\n return\n\n try:\n do_show_new_robot_origin_calibration_dialog2(new_name, calib_res.robot_pose, calib_res.display_images, core)\n except:\n traceback.print_exc()\n\n\ndef do_show_new_robot_origin_calibration_dialog2(new_name: str, robot_pose, display_images, core: \"PyriWebUIBrowser\"):\n try:\n dialog2_html = importlib_resources.read_text(__package__,\"new_calibrate_robot_origin_dialog2.html\")\n\n robot_calib = core.device_manager.get_device_subscription(\"vision_robot_calibration\").GetDefaultClient()\n geom_util = GeometryUtil(client_obj = robot_calib)\n marker_xyz, marker_rpy, _, _ = geom_util.named_pose_to_xyz_rpy(robot_pose.pose)\n\n el = js.document.createElement('div')\n el.id = \"new_calibrate_robot_origin_dialog2_wrapper\"\n js.document.getElementById(\"wrapper\").appendChild(el)\n\n def handle_hidden(*args):\n try:\n el.parentElement.removeChild(el)\n except:\n traceback.print_exc()\n\n x = f\"{marker_xyz[0]:4e}\"\n y = f\"{marker_xyz[1]:4e}\"\n z = f\"{marker_xyz[2]:4e}\"\n r_r = f\"{marker_rpy[0]:4e}\"\n r_p = f\"{marker_rpy[1]:4e}\"\n r_y = f\"{marker_rpy[2]:4e}\"\n \n\n imgs = []\n i=0\n for d in display_images:\n d_encoded = str(base64.b64encode(d.data))[2:-1]\n d2 = {\n \"id\": i,\n \"caption\": f\"Calibration result {i+1}\",\n \"img\": \"data:image/jpeg;base64,\" + d_encoded\n }\n del d_encoded\n imgs.append(d2)\n i+=1\n #TODO: check for png?\n\n dialog = js.Vue.new(to_js2({\n \"el\": \"#new_calibrate_robot_origin_dialog2_wrapper\",\n \"template\": dialog2_html,\n \"data\":\n {\n \"x\": x,\n \"y\": y,\n \"z\": z,\n \"r_r\": r_r,\n \"r_p\": r_p,\n \"r_y\": r_y,\n \"display_images\": imgs\n },\n \"methods\":\n {\n \"handle_hidden\": handle_hidden\n }\n\n }))\n\n getattr(dialog,\"$bvModal\").show(\"new_vision_camera_calibrate_robot_origin2\")\n\n except:\n traceback.print_exc()","repo_name":"pyri-project/pyri-vision-browser","sub_path":"src/pyri/vision_browser/dialogs/new_calibrate_robot_origin_dialog.py","file_name":"new_calibrate_robot_origin_dialog.py","file_ext":"py","file_size_in_byte":10108,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"24409756321","text":"from neural_net import NeuralNetwork, NetworkFramework\nfrom neural_net import Node, Target, Input\nimport random\n\n\n# <--- Problem 3, Question 1 --->\n\ndef FeedForward(network, input):\n \"\"\"\n Arguments:\n ---------\n network : a NeuralNetwork instance\n input : an Input instance\n\n Returns:\n --------\n Nothing\n\n Description:\n -----------\n This function propagates the inputs through the network. That is,\n it modifies the *raw_value* and *transformed_value* attributes of the\n nodes in the network, starting from the input nodes.\n\n Notes:\n -----\n The *input* arguments is an instance of Input, and contains just one\n attribute, *values*, which is a list of pixel values. The list is the\n same length as the number of input nodes in the network.\n\n i.e: len(input.values) == len(network.inputs)\n\n This is a distributed input encoding (see lecture notes 7 for more\n informations on encoding)\n\n In particular, you should initialize the input nodes using these input\n values:\n\n network.inputs[i].raw_value = input[i]\n \"\"\"\n network.CheckComplete()\n numInputs = len(input.values)\n #print input.values\n # 1) Assign input values to input nodes\n for i in range(numInputs):\n network.inputs[i].raw_value = input.values[i]\n network.inputs[i].transformed_value = input.values[i]\n # 2) Propagates to hidden layer\n for i in range(len(network.hidden_nodes)):\n raw = NeuralNetwork.ComputeRawValue(network.hidden_nodes[i])\n network.hidden_nodes[i].raw_value = raw\n network.hidden_nodes[i].transformed_value = NeuralNetwork.Sigmoid(raw)\n # 3) Propagates to the output layer\n for i in range(len(network.outputs)):\n raw = NeuralNetwork.ComputeRawValue(network.outputs[i])\n network.outputs[i].raw_value = raw\n network.outputs[i].transformed_value = NeuralNetwork.Sigmoid(raw)\n\n # network.outputs[3].raw_value\n\n#< --- Problem 3, Question 2\n\ndef Backprop(network, input, target, learning_rate):\n \"\"\"\n Arguments:\n ---------\n network : a NeuralNetwork instance\n input : an Input instance\n target : a target instance\n learning_rate : the learning rate (a float)\n\n Returns:\n -------\n Nothing\n\n Description:\n -----------\n The function first propagates the inputs through the network\n using the Feedforward function, then backtracks and update the\n weights.\n\n Notes:\n ------\n The remarks made for *FeedForward* hold here too.\n\n The *target* argument is an instance of the class *Target* and\n has one attribute, *values*, which has the same length as the\n number of output nodes in the network.\n\n i.e: len(target.values) == len(network.outputs)\n\n In the distributed output encoding scenario, the target.values\n list has 10 elements.\n\n When computing the error of the output node, you should consider\n that for each output node, the target (that is, the true output)\n is target[i], and the predicted output is network.outputs[i].transformed_value.\n In particular, the error should be a function of:\n\n target[i] - network.outputs[i].transformed_value\n \n \"\"\"\n network.CheckComplete()\n\n # 1) We first propagate the input through the network\n FeedForward(network,input)\n\n delta_out = []\n\n # 2) Then we compute the errors and update the weigths starting with the last layer\n for j in range(len(network.outputs)):\n myoutput = network.outputs[j]\n y = target[j]\n s = myoutput.transformed_value\n e = y - s\n delta = (e * s * (1 - s))\n delta_out.append(delta)\n for m in range(len(myoutput.inputs)):\n myoutput.weights[m].value = myoutput.weights[m].value + (learning_rate*myoutput.inputs[m].transformed_value*delta)\n \n # 3) We now propagate the errors to the hidden layer, and update the weights there too\n for j in range(len(network.hidden_nodes)):\n mynode = network.hidden_nodes[j]\n e = sum(map(lambda n: mynode.forward_weights[n].value*delta_out[n], range(len(mynode.forward_weights))))\n s = mynode.transformed_value\n delta = e * s * (1 - s)\n for m in range(len(mynode.inputs)):\n mynode.weights[m].value = mynode.weights[m].value + (learning_rate*mynode.inputs[m].transformed_value*delta)\n \n\n# <--- Problem 3, Question 3 --->\n\ndef Train(network, inputs, targets, learning_rate, epochs):\n \"\"\"\n Arguments:\n ---------\n network : a NeuralNetwork instance\n inputs : a list of Input instances\n targets : a list of Target instances\n learning_rate : a learning_rate (a float)\n epochs : a number of epochs (an integer)\n\n Returns:\n -------\n Nothing\n\n Description:\n -----------\n This function should train the network for a given number of epochs. That is,\n run the *Backprop* over the training set *epochs*-times\n \"\"\"\n network.CheckComplete()\n\n for i in range(epochs):\n for j in range(len(inputs)):\n Backprop(network, inputs[j], targets[j], learning_rate)\n if j == 0:\n first = [n.value for n in network.weights]\n if j == 1:\n second = [n.value for n in network.weights]\n\n \n\n\n# <--- Problem 3, Question 4 --->\n\nclass EncodedNetworkFramework(NetworkFramework):\n def __init__(self):\n \"\"\"\n Initializatio.\n YOU DO NOT NEED TO MODIFY THIS __init__ method\n \"\"\"\n super(EncodedNetworkFramework, self).__init__() # < Don't remove this line >\n \n # <--- Fill in the methods below --->\n\n def EncodeLabel(self, label):\n \"\"\"\n Arguments:\n ---------\n label: a number between 0 and 9 (ARE THESE INTS??!!)\n\n Returns:\n ---------\n a list of length 10 representing the distributed\n encoding of the output.\n\n Description:\n -----------\n Computes the distributed encoding of a given label.\n\n Example:\n -------\n 0 => [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\n 3 => [0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\n\n Notes:\n ----\n Make sure that the elements of the encoding are floats.\n \n \"\"\"\n # Replace line below by content of function\n assert(isinstance(label,int)), \"label must be an integer\"\n assert(label > -1 and label < 10), \"label must be between 0 and 9\"\n array = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\n array[label] = float(1)\n return array\n\n def GetNetworkLabel(self):\n \"\"\"\n Arguments:\n ---------\n Nothing\n\n Returns:\n -------\n the 'best matching' label corresponding to the current output encoding\n\n Description:\n -----------\n The function looks for the transformed_value of each output, then decides \n which label to attribute to this list of outputs. The idea is to 'line up'\n the outputs, and consider that the label is the index of the output with the\n highest *transformed_value* attribute\n\n Example:\n -------\n\n # Imagine that we have:\n map(lambda node: node.transformed_value, self.network.outputs) => [0.2, 0.1, 0.01, 0.7, 0.23, 0.31, 0, 0, 0, 0.1, 0]\n\n # Then the returned value (i.e, the label) should be the index of the item 0.7,\n # which is 3\n \n \"\"\"\n # Replace line below by content of function\n lst = map(lambda node: node.transformed_value, self.network.outputs)\n label = lst.index(max(lst))\n return label\n\n def Convert(self, image):\n \"\"\"\n Arguments:\n ---------\n image: an Image instance\n\n Returns:\n -------\n an instance of Input\n\n Description:\n -----------\n The *image* arguments has 2 attributes: *label* which indicates\n the digit represented by the image, and *pixels* a matrix 14 x 14\n represented by a list (first list is the first row, second list the\n second row, ... ), containing numbers whose values are comprised\n between 0 and 256.0. The function transforms this into a unique list\n of 14 x 14 items, with normalized values (that is, the maximum possible\n value should be 1).\n \n \"\"\"\n # Replace line below by content of function\n # function goes through image pixels first through rows then through columns\n dim = 14\n assert (dim == len(image.pixels)), \"dimension mismatch\"\n\n inputs = Input()\n\n for i in range(dim):\n for j in range(dim):\n newpixel = float(image.pixels[i][j]/256.0)\n inputs.values.append(newpixel)\n\n return inputs\n\n def InitializeWeights(self):\n \"\"\"\n Arguments:\n ---------\n Nothing\n\n Returns:\n -------\n Nothing\n\n Description:\n -----------\n Initializes the weights with random values between [-0.01, 0.01].\n\n Hint:\n -----\n Consider the *random* module. You may use the the *weights* attribute\n of self.network.\n \n \"\"\"\n # replace line below by content of function\n for weight in self.network.weights:\n weight.value = random.uniform(-0.01, 0.01)\n\n# Problem 3, Q5: Since our output values are between 0 and 1, normalizing the input values\n# prevents us from having to normalize in later functions\n\n#<--- Problem 3, Question 6 --->\n\nclass SimpleNetwork(EncodedNetworkFramework):\n def __init__(self):\n \"\"\"\n Arguments:\n ---------\n Nothing\n\n Returns:\n -------\n Nothing\n\n Description:\n -----------\n Initializes a simple network, with 196 input nodes,\n 10 output nodes, and NO hidden nodes. Each input node\n should be connected to every output node.\n \"\"\"\n super(SimpleNetwork, self).__init__() # < Don't remove this line >\n \n # 1) Adds an input node for each pixel. \n # defines the dimensions of the image\n DIM = 14\n DIGITS = 10\n newinputs = []\n for i in range(DIM*DIM):\n newin = Node()\n newinputs.append(newin)\n self.network.AddNode(newin,self.network.INPUT)\n\n # 2) Add an output node for each possible digit label.\n for j in range(DIGITS):\n newout = Node()\n for k in range(DIM*DIM):\n newout.AddInput(newinputs[k],None,self.network)\n self.network.AddNode(newout,self.network.OUTPUT)\n\n\n\n\n#<---- Problem 3, Question 7 --->\n\nclass HiddenNetwork(EncodedNetworkFramework):\n def __init__(self, number_of_hidden_nodes=15):\n \"\"\"\n Arguments:\n ---------\n number_of_hidden_nodes : the number of hidden nodes to create (an integer)\n\n Returns:\n -------\n Nothing\n\n Description:\n -----------\n Initializes a network with a hidden layer. The network\n should have 196 input nodes, the specified number of\n hidden nodes, and 10 output nodes. The network should be,\n again, fully connected. That is, each input node is connected\n to every hidden node, and each hidden_node is connected to\n every output node.\n \"\"\"\n super(HiddenNetwork, self).__init__() # < Don't remove this line >\n\n # 1) Adds an input node for each pixel\n # from above\n DIM = 14\n DIGITS = 10\n newinputs = []\n newhidden = []\n for i in range(DIM*DIM):\n newin = Node()\n newinputs.append(newin)\n self.network.AddNode(newin,self.network.INPUT)\n # 2) Adds the hidden layer\n for i in range(number_of_hidden_nodes):\n newhid = Node()\n for k in range(DIM*DIM):\n newhid.AddInput(newinputs[k],None,self.network)\n newhidden.append(newhid)\n self.network.AddNode(newhid,self.network.HIDDEN)\n # 3) Adds an output node for each possible digit label.\n for j in range(DIGITS):\n newout = Node()\n for k in range(number_of_hidden_nodes):\n newout.AddInput(newhidden[k],None,self.network)\n self.network.AddNode(newout,self.network.OUTPUT)\n \n\n#<--- Problem 3, Question 8 ---> \n\nclass CustomNetwork(EncodedNetworkFramework):\n def __init__(self, number_of_hidden_nodes=10):\n \"\"\"\n Arguments:\n ---------\n number_of_hidden_nodes : the number of hidden nodes to create (an integer) for each quadrant\n\n Returns:\n --------\n Nothing\n\n Description:\n -----------\n Has a hidden layer that is not fully connected. The image is split into 4 quadrants, which are \n trained on separately before combined\n 0 1 2 3 4 5 6 | 7 8 9 10 11 12 13\n 14 15 16 17 18 19 20 | 21 22 23 24 25 26 27\n 28 29 30 31 32 33 34 | 35 36 37 38 39 40 41\n 42 43 44 45 46 47 48 | 49 50 51 52 53 54 55\n 56 57 58 59 60 61 62 | 63 64 65 66 67 68 69\n 70 71 72 73 74 75 76 | 77 78 79 80 81 82 83 \n 84 85 86 87 88 89 90 | 91 92 93 94 95 96 97\n ---------------------------|--------------------------- \n 98 99 100 ... |\n ... |\n 182 183 184 185 186 187 188| 189 190 191 192 193 194 195\n\n quadrant 1: i < 98, i%14 < 7\n quadrant 2: i < 98, i%14 > 6\n quadrant 3: i > 97, i%14 < 7\n quadrant 4: i > 97, i%14 > 6\n\n\n \"\"\"\n super(CustomNetwork, self).__init__() # \n \n # 1) Adds an input node for each pixel\n # from above\n DIM = 14\n DIGITS = 10\n q1inputs = []\n q2inputs = []\n q3inputs = []\n q4inputs = []\n q1hidden = []\n q2hidden = []\n q3hidden = []\n q4hidden = []\n for i in range(DIM*DIM):\n newin = Node()\n if i < 98 and i%14 < 7:\n q1inputs.append(newin)\n elif i < 98 and i%14 > 6:\n q2inputs.append(newin)\n elif i > 97 and i%14 < 7:\n q3inputs.append(newin)\n else:\n q4inputs.append(newin)\n self.network.AddNode(newin,self.network.INPUT)\n\n # 2) Adds the hidden layer\n for i in range(number_of_hidden_nodes):\n newq1 = Node()\n newq2 = Node()\n newq3 = Node()\n newq4 = Node()\n for k in range(DIM*DIM/4):\n newq1.AddInput(q1inputs[k],None,self.network)\n newq2.AddInput(q2inputs[k],None,self.network)\n newq3.AddInput(q3inputs[k],None,self.network)\n newq4.AddInput(q4inputs[k],None,self.network)\n q1hidden.append(newq1)\n q2hidden.append(newq2)\n q3hidden.append(newq3)\n q4hidden.append(newq4)\n self.network.AddNode(newq1,self.network.HIDDEN)\n self.network.AddNode(newq2,self.network.HIDDEN)\n self.network.AddNode(newq3,self.network.HIDDEN)\n self.network.AddNode(newq4,self.network.HIDDEN)\n # 3) Adds an output node for each possible digit label.\n for j in range(DIGITS):\n newout = Node()\n for k in range(number_of_hidden_nodes):\n newout.AddInput(q1hidden[k],None,self.network)\n newout.AddInput(q2hidden[k],None,self.network)\n newout.AddInput(q3hidden[k],None,self.network)\n newout.AddInput(q4hidden[k],None,self.network)\n self.network.AddNode(newout,self.network.OUTPUT)\n","repo_name":"kslin/CS181","sub_path":"hw2/neural_net_impl.py","file_name":"neural_net_impl.py","file_ext":"py","file_size_in_byte":14328,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"35355226496","text":"from telethon import events\n\nimport asyncio\n\nfrom userbot.utils import admin_cmd\n\n@borg.on(admin_cmd(\"impress\"))\nasync def _(event):\n if event.fwd_from:\n return\n animation_interval = 2\n animation_ttl = range(0,36)\n #input_str = event.pattern_match.group(1)\n # if input_str == \"impress\":\n await event.edit(\"impress\")\n animation_chars = [\n \"Suno na👀\",\n \"❤️ I LOVE U ❤️\",\n \"🥺 PLZZ MERI GF BN JAO 🥺\",\n \"🙏 HAMESHA KHUSH RAKHUGA 🙏\",\n \"🔥 APNE SE JYADA TUMSE LOVE KRTA HU 😘\",\n \"💝 APAN SATH RAHEGE POORI LIFE 💝\",\n \"💘 MERI JAAN HE TU 💓\",\n \"😊 POORI LIFE SAATH RAHUGA 🥺❤️\",\n \"😘 MERI LIFE HE TU 😘\",\n \"😍 TERE SARE NAKHRE SEH LUGA 😍\",\n \"🙂 HAR BAAT MANUGA ☺️\",\n \"💥ME LOVE U MORE THEN MYSELF💥\",\n ]\n\n for i in animation_ttl:\n \n await asyncio.sleep(animation_interval)\n await event.edit(animation_chars[i % 18])\n\n","repo_name":"dixitpal79/Sabkabaap","sub_path":"userbot/plugins/Impress.py","file_name":"Impress.py","file_ext":"py","file_size_in_byte":1061,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"28971765035","text":"__author__ = 'alefur'\n\nfrom spsGUIActor.common import ComboBox\nfrom spsGUIActor.control import ControlPanel, CommandsGB\nfrom spsGUIActor.widgets import ValueGB, DoubleSpinBoxGB, CmdButton, CustomedCmd\n\n\nclass MoveCmd(CustomedCmd):\n limits = dict(penta=(-450, 450),\n detector=(0, 12))\n\n def __init__(self, controlPanel, stage):\n CustomedCmd.__init__(self, controlPanel, buttonLabel='MOVE')\n\n self.stage = stage\n l_bound, u_bound = MoveCmd.limits[stage]\n\n self.combo = ComboBox()\n self.combo.addItems(['abs', 'rel'])\n\n self.distSpinbox = DoubleSpinBoxGB('Dist', l_bound, u_bound, 3)\n\n self.addWidget(self.combo, 0, 1)\n self.addWidget(self.distSpinbox, 0, 2)\n\n def buildCmd(self):\n reference = '' if self.combo.currentText() == 'rel' else self.combo.currentText()\n cmdStr = 'sac move %s=%.2f %s' % (self.stage, self.distSpinbox.getValue(), reference)\n return cmdStr\n\n\nclass StagePanel(ControlPanel):\n def __init__(self, controlDialog, stage):\n self.stage = stage\n ControlPanel.__init__(self, controlDialog)\n self.addCommandSet(StageCommands(self, stage))\n\n def createWidgets(self):\n label = self.stage.capitalize()\n self.state = ValueGB(self.moduleRow, 'ls%s' % label, '', 0, '{:s}')\n self.substate = ValueGB(self.moduleRow, 'ls%s' % label, '', 1, '{:s}')\n self.position = ValueGB(self.moduleRow, 'ls%s' % label, 'Position', 2, '{:.3f}')\n\n def setInLayout(self):\n self.grid.addWidget(self.state, 0, 0)\n self.grid.addWidget(self.substate, 0, 1)\n self.grid.addWidget(self.position, 0, 2)\n\n\nclass StageCommands(CommandsGB):\n def __init__(self, controlPanel, stage):\n CommandsGB.__init__(self, controlPanel)\n self.statusButton = CmdButton(controlPanel=controlPanel, label='STATUS', cmdStr='sac stages %s status' % stage)\n self.initButton = CmdButton(controlPanel=controlPanel, label='INIT', cmdStr='sac stages %s init' % stage)\n\n self.moveCmd = MoveCmd(controlPanel=controlPanel, stage=stage)\n\n self.grid.addWidget(self.statusButton, 0, 0)\n self.grid.addWidget(self.initButton, 0, 1)\n self.grid.addLayout(self.moveCmd, 1, 0, 1, 3)\n","repo_name":"Subaru-PFS/ics_spsGUIActor","sub_path":"python/spsGUIActor/sac/stage.py","file_name":"stage.py","file_ext":"py","file_size_in_byte":2258,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"23375117703","text":"class Solution:\n def balancedStringSplit(self, s: str) -> int:\n balance = 0\n out = 0\n\n for letter in s:\n if letter == 'R':\n balance += 1\n else:\n balance -= 1\n\n if balance == 0:\n out += 1\n print(out, letter)\n\n return out\n\n\ns = \"RLRRLLRLRL\"\ns = \"RLLLLRRRLR\"\ns = \"RLRRRLLRLL\"\nprint(Solution().balancedStringSplit(s))\n","repo_name":"zzz136454872/leetcode","sub_path":"balancedStringSplit.py","file_name":"balancedStringSplit.py","file_ext":"py","file_size_in_byte":434,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"21025970354","text":"from flask import Blueprint, session, render_template, redirect\nimport logging\nfrom netaddr import *\n\nfrom frontend.lib import web_handler, ip_lookup\n\nip_details_pages_blueprint = Blueprint('ip_detail_pages_blueprint', __name__)\n\n#PER INSTANCE SYSTEM USERS PAGE\n@ip_details_pages_blueprint.route(\"/ip_details/\", methods=[\"GET\", \"POST\"])\ndef ip_details(ip):\n if web_handler.basic_page_verify(session[\"id\"]) == True:\n if IPAddress(ip).is_private() is True:\n return render_template(\"index.html\", heading=\"Private IP Lookup\", messages=\"You have tried to perform a lookup on a private IP address. These IP Addresses are you exclusively for private networks such as internal business or home networks\") \n elif IPAddress(ip).is_loopback() is True:\n return render_template(\"index.html\", heading=\"Loopback IP Lookup\", messages=\"You have tried to perform a lookup on a loopback IP address.\") \n else:\n try:\n ip_details = ip_lookup.get_ip_details(ip)\n final_tup = [\n [\"IP\", ip_details[\"ip\"]], \n [\"Country\", ip_details[\"country\"]], \n [\"Region\", ip_details[\"region\"]], \n [\"City\", ip_details[\"city\"]], \n [\"ISP\", ip_details[\"connection\"][\"isp\"]], \n [\"Organisation\", ip_details[\"connection\"][\"org\"]]\n ]\n fol_map = ip_lookup.show_ip_map(ip_details)\n fol_map.get_root().width = \"800px\"\n fol_map.get_root().height = \"600px\"\n fol_iframe = fol_map.get_root()._repr_html_()\n return render_template(\"iframe.html\", heading=\"IP Details\", messages=final_tup, iframe=fol_iframe)\n except:\n return render_template(\"index.html\", heading=\"Error When Looking Up IP Details\", messages=\"Error\")\n else:\n web_handler.user_auth_error_page()","repo_name":"Trippik/PfSense_Dashboard-Frontend","sub_path":"frontend/blueprints/ip_detail_pages.py","file_name":"ip_detail_pages.py","file_ext":"py","file_size_in_byte":1937,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"41913615909","text":"from typing import Iterable\n\nfrom .text_model import GroupedText, ModeText\nfrom ..model import Mode, InvalidCharacterError\n\n\ndef char2mode(char: str) -> Mode:\n \"\"\"\n 文字に対応している最も低位のモードを取得する\n\n :param char: 文字\n :return: 対応するモード\n \"\"\"\n modes = [\n Mode.Numeric,\n Mode.AlphaNumeric,\n Mode.Kanji,\n Mode.EightBitByte,\n ]\n for mode in modes:\n if mode.is_valid(char):\n return mode\n raise InvalidCharacterError(f'Invalid character', char)\n\n\ndef grouping(text: str) -> GroupedText:\n \"\"\"\n 同じモードが連続する箇所でグループ化する\n\n :param text: グループ化するテキスト\n :return: グループ化したテキスト\n \"\"\"\n\n modes = [char2mode(c) for c in text]\n if len(modes) == 0:\n return GroupedText()\n\n # 下のループのために番兵を仕込む\n modes += [...]\n text += '$'\n\n # モードが連続する箇所をまとめる\n result = GroupedText()\n prev = ModeText(modes[0], text[0])\n for mode, char in zip(modes[1:], text[1:]):\n if mode == prev.mode:\n prev.text += char\n else:\n result.append(prev)\n prev = ModeText(mode, char)\n return result\n\n\ndef list2str(lst: Iterable):\n \"\"\"リストを文字列に変換する\"\"\"\n return '[' + ', '.join((str(x) for x in lst)) + ']'\n","repo_name":"tkamiya22/mkmqr","sub_path":"mkmqr/optimization/util.py","file_name":"util.py","file_ext":"py","file_size_in_byte":1431,"program_lang":"python","lang":"ja","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"24767940639","text":"import chromadb\r\nfrom chromadb.config import Settings\r\n#settings is used to configure the database \r\n\r\n#chromadb client is created by calling the Client constructor \r\n#client constructor is passed a Settings object as an argument\r\n#'chroma_db_impl' is used to specify the type of database to be used\r\n#'persist_directory' specifies the directory where the database will be stored\r\n#client = chromadb.Client(Settings(chroma_db_impl='duckdb+parquet', persist_directory='/db'))\r\nclient = chromadb.PersistentClient(path=\"/db\")\r\n\r\n#Reseting the database so that all the consecutive commands can run smoothly\r\nclient.delete_collection(name='Students')\r\nclient.delete_collection(name='Students2')\r\n\r\n#A collection object is crated using the client, it is similar to creating a table in a traditional database\r\ncollection = client.create_collection(name='Students')\r\n\r\n\r\n#initializing text about student, club, and university\r\nstudent_info = \"\"\"\r\nAlexandra Thompson, a 19-year-old computer science sophomore with a 3.7 GPA,\r\nis a member of the programming and chess clubs who enjoys pizza, swimming, and hiking\r\nin her free time in hopes of working at a tech company after graduating from the University of Washington.\r\n\"\"\"\r\n\r\nclub_info = \"\"\"\r\nThe university chess club provides an outlet for students to come together and enjoy playing\r\nthe classic strategy game of chess. Members of all skill levels are welcome, from beginners learning\r\nthe rules to experienced tournament players. The club typically meets a few times per week to play casual games,\r\nparticipate in tournaments, analyze famous chess matches, and improve members' skills.\r\n\"\"\"\r\n\r\nuniversity_info = \"\"\"\r\nThe University of Washington, founded in 1861 in Seattle, is a public research university\r\nwith over 45,000 students across three campuses in Seattle, Tacoma, and Bothell.\r\nAs the flagship institution of the six public universities in Washington state,\r\nUW encompasses over 500 buildings and 20 million square feet of space,\r\nincluding one of the largest library systems in the world.\r\n\"\"\"\r\n\r\n\r\n#The data is added with metadata and unique IDs\r\n#chromadb will automatically convert the text into embeddings and store it in the Studnets collection\r\n#It uses the 'all-MiniLM-L6-v2' model to convert text into embeddings\r\ncollection.add(\r\n documents = [student_info, club_info, university_info],\r\n metadatas= [{'source': 'student_info'}, {'source': 'club_info'}, {'source': 'university_info'}],\r\n ids= ['id1', 'id2', 'id3']\r\n)\r\n\r\n\r\n#the query function is used to used to ask questions in natural language for a similarity search\r\n#It will convert the query into embedding and use similarity search to come up with similar results\r\nresults = collection.query(\r\n query_texts=['What is the student name?'],\r\n n_results=2\r\n)\r\n\r\n\r\n# results variable consists of the 2 files that I closest to our expected output\r\nprint(results)\r\n\r\n\r\n#we can choose the embedding function or even create our oen embedding function\r\n#text documents are then added to create embeddings\r\nfrom chromadb.utils import embedding_functions\r\nimport openai\r\nopenai.api_key = ('add_openai_api_key')\r\nopenai_ef = embedding_functions.OpenAIEmbeddingFunction(\r\n model_name=\"text-embedding-ada-002\"\r\n )\r\nstudents_embeddings = openai_ef([student_info, club_info, university_info])\r\nprint(students_embeddings)\r\n\r\n#Now we will use the above mentioned embedding model in the new database\r\n#We will now use the 'get_or_create_collection', as the name suggests it will either create a collection or get it if it already exists\r\n#we used the embedding function to create the embeddings and then feed it to the collection\r\ncollection2 = client.get_or_create_collection(name='Students2')\r\n\r\ncollection2.add(\r\n embeddings= students_embeddings,\r\n documents= [student_info, club_info, university_info],\r\n metadatas= [{'source': 'student info'}, {'source': 'club info'}, {'source': 'university info'}],\r\n ids= ['id1', 'id2', 'id3']\r\n)\r\n\r\n#We can use an easier way wherein instead of feeding the embeddings we will specify the embedding function while creating of the collection\r\ncollection2 = client.get_or_create_collection(name='Students2', embedding_function=openai_ef)\r\n\r\ncollection2.add(\r\n documents = [student_info, club_info, university_info],\r\n metadatas= [{'source': 'student info'}, {'source': 'club info'}, {'source': 'university info'}],\r\n ids = ['id1', 'id2', 'id3']\r\n)\r\n\r\nresults = collection2.query(\r\n query_texts=['What is the student name?'],\r\n n_results=2\r\n)\r\n\r\nprint(results)\r\n\r\n#Updating data\r\n#To alter the text or the meta data we provide the id\r\ncollection2.update(\r\n ids=[\"id1\"],\r\n documents=[\"Kristiane Carina, a 19-year-old computer science sophomore with a 3.7 GPA\"],\r\n metadatas=[{\"source\": \"student info\"}],\r\n)\r\n\r\nresults = collection2.query(\r\n query_texts=[\"What is the student name?\"],\r\n n_results=2\r\n)\r\n\r\nprint(results)\r\n\r\n#Removing data\r\ncollection2.delete(ids = ['id1'])\r\n\r\nresults = collection2.query(\r\n query_texts=['What is the student name?'],\r\n n_results=2\r\n)\r\n\r\nprint(results)\r\n\r\n#Collection Management\r\nvector_collections = client.create_collection(\"vectordb\")\r\n\r\n\r\nvector_collections.add(\r\n documents=[\"This is Chroma DB CheatSheet\",\r\n \"This is Chroma DB Documentation\",\r\n \"This document Chroma JS API Docs\"],\r\n metadatas=[{\"source\": \"Chroma Cheatsheet\"},\r\n {\"source\": \"Chroma Doc\"},\r\n {'source':'JS API Doc'}],\r\n ids=[\"id1\", \"id2\", \"id3\"]\r\n)\r\n\r\n#Count the records in the collection\r\nvector_collections.count()\r\n\r\n#View all the records in the collection\r\nvector_collections.get()\r\n\r\n#change the name of the collection\r\nvector_collections.modify(name='chroma_info')\r\n\r\n#list all the collections in the client\r\nclient.list_collections()\r\n\r\n#Access a new collection\r\nvector_collection_new = client.get_collection(name='chroma_info')\r\n\r\n#Delete a collection\r\nclient.delete_collection(name='chroma_info')\r\nclient.list_collections()\r\n\r\n#Delete the entire database/client\r\nclient.reset()\r\nclient.list_collections()\r\n\r\n\r\n\r\n","repo_name":"Noor-Kaur/ChromaDB-Tutorial","sub_path":"chromadb_tutorial.py","file_name":"chromadb_tutorial.py","file_ext":"py","file_size_in_byte":6099,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"23853848930","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Mon Jun 15 00:33:38 2020\n\n@author: canok\n\"\"\"\n\n\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Sun Jun 14 03:27:45 2020\n\n@author: canok\n\"\"\"\n\n\nimport numpy as np\nimport keras\nfrom PIL import Image\nimport os \nimport glob\nimport cv2\nfrom keras.preprocessing import image\nimport numpy as np\nfrom natsort import natsorted, ns\nimport pandas as pd\n\n\n\n######################### DataGenerator\n\n\ncurrent_dir = os.path.dirname(__file__)\n\n\npath_org=os.path.join(current_dir,'signatures/full_org')\npath_frog= os.path.join(current_dir,'signatures/full_forg')\n\ndef get_dataframe():\n forg_images=[]\n for indis in range(1,56):#55 different classes #56\n if(indis==41):\n continue\n else:\n for j in range(1,25): #25\n #path=os.path.join(path_frog,'/forgeries_'+str(indis)+'_'+str(j)+'.png')\n path=(path_frog+'/forgeries_'+str(indis)+'_'+str(j)+'.png')\n #img=cv2.imread(path)\n # p.append(path)\n forg_images.append(path)\n \n \n org_images=[]\n for indis in range(1,56):#55 different classes #56\n if(indis==41):\n continue\n else:\n for j in range(1,25): #24 farklı gerçek-gerçek veya gerçek-sahte imza çifti\n #path=os.path.join(path_org,'/original_'+str(indis)+'_'+str(j)+'.png')\n path=(path_org+'/original_'+str(indis)+'_'+str(j)+'.png')\n #img=cv2.imread(path)\n #p.append(path)\n\n org_images.append(path) \n\n no_of_ppl = len(org_images)//24 #her kisi icin 24 sample var\n #find the number of class \n \n raw_data = {\"sing_1\":[], \"sign_2\":[], \"label\":[]}\n \n for i in range(no_of_ppl):\n i1_batch_1 = []\n i1_batch_2 = []\n i2_batch = []\n\n start = i*24\n end = (i+1)*24\n \n for j in range(start,end): \n i1_batch_1.append(org_images[j])\n i1_batch_2.append(org_images[j])\n raw_data[\"label\"].append(1)#0\n\n temp_rot = (i1_batch_1[-12:]+i1_batch_1[:-12])\n i1_batch_1.extend(i1_batch_2)\n\n for elem in temp_rot:\n i2_batch.append(elem)\n\n for j in range(start,end): \n i2_batch.append(forg_images[j])\n raw_data[\"label\"].append(0)#1\n\n raw_data[\"sing_1\"].extend(i1_batch_1)\n raw_data[\"sign_2\"].extend(i2_batch)\n df = pd.DataFrame(raw_data, columns = [\"sing_1\",\"sign_2\",\"label\"])\n df=df.reindex(df.index)\n return df\n\n\n\n\n\n\nfrom sklearn.model_selection import train_test_split\n\n\ndef get_dataset():\n df = get_dataframe()\n #print(df.shape)\n \n train_set, val_set = train_test_split(df,test_size=0.3,random_state=0)\n \n return train_set, val_set\n\nds_train,ds_val = get_dataset()\nprint(len(ds_val))\n\n\nimport numpy as np\nimport keras\nfrom PIL import Image\nimport cv2\n\n\n\n\n\n\n\n\nclass SignatureSequence(keras.utils.Sequence):\n \n def __init__(self, df, batch_size, dim):\n self.dim = dim\n self.batch_size = batch_size\n self.df = df\n self.labels = df[\"label\"]\n \n self.on_epoch_end()\n\n def __len__(self):\n s_df=self.df.shape[0]\n n=np.floor(s_df/self.batch_size)\n return int(n)\n\n def __getitem__(self, indis):\n #indexes\n batches = self.indises[indis*self.batch_size:(indis+1)*self.batch_size]\n items = [self.df.iloc[k] for k in batches]\n part1,part2 = self.generator(items)\n return part1,part2\n\n def on_epoch_end(self):\n self.indises = np.arange(self.df.shape[0])\n \n\n def generator(self, items):\n part_1 = np.empty((self.batch_size, *self.dim,1))#working with gray images\n part_2 = np.empty((self.batch_size, *self.dim,1))#working with gray images\n label = np.empty((self.batch_size), dtype=int)\n \n for i in range(len(items)):\n #image 1\n signature_1 = cv2.imread(items[i][\"sing_1\"])\n \n resized_signature = cv2.resize(signature_1,(220,155))\n gray_signature=cv2.cvtColor(resized_signature, cv2.COLOR_BGR2GRAY)\n ret,thr_img = cv2.threshold(gray_signature, 0, 255, cv2.THRESH_OTSU)\n normalized_signature=thr_img/255\n signature_expanded = normalized_signature[:, :, np.newaxis]\n signature_1=np.array(signature_expanded)\n\n #image 2\n signature_2 = cv2.imread(items[i][\"sign_2\"])\n \n resized_signature = cv2.resize(signature_2,(220,155))\n gray_signature=cv2.cvtColor(resized_signature, cv2.COLOR_BGR2GRAY)\n ret,thr_img = cv2.threshold(gray_signature, 0, 255, cv2.THRESH_OTSU)\n normalized_signature=thr_img/255\n signature_expanded = normalized_signature[:, :, np.newaxis]\n signature_2=np.array(signature_expanded)\n \n\n \n \n label[i] = items[i][\"label\"]\n part_1[i,] = signature_1\n part_2[i,] = signature_2 \n\n return [part_1 ,part_2], label\n\n###DataGenerator\n\n\n\n\nimport numpy as np\nimport keras\nfrom PIL import Image\nimport cv2\n\n\n\n\n\nimg_width= 155\nimg_height = 220\n\n\ndim=(img_width,img_height)\nbatch_size=64\ntrain_datagen = SignatureSequence(ds_train,batch_size,dim)\nvalidation_datagen = SignatureSequence(ds_val,batch_size,dim)\n\n###DataGenerator\n\n\n\n\n\n\nfrom keras.models import load_model\nfrom keras import backend as K\n\n\ndef contrastive_loss(l, y_pred):\n #l=label(y_true)\n margin = 1\n #http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf\n margin_square = (K.maximum(margin - y_pred, 0))**2\n\n # α,β= ½ \n return K.mean((l * (y_pred)**2)*l + (1 - l)* margin_square)\n\n\n\nmod = load_model('siyam_model.h5',custom_objects={'contrastive_loss':contrastive_loss})\n\n\n\ny_pred = mod.predict_generator(validation_datagen)#, steps=25\n\nprint(\"count pred:\"+str(len(y_pred)))\nds_labels=validation_datagen.labels[0:768]\nprint(\"count of labels: \"+str(len(ds_labels)))\n\n\n\n\n\n\n\nfrom keras.models import load_model\nfrom keras import backend as K\n\n\ndef contrastive_loss(l, y_pred):\n #l=label(y_true)\n margin = 1\n #http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf\n margin_square = (K.maximum(margin - y_pred, 0))**2\n\n # α,β= ½ \n return K.mean((l * (y_pred)**2)*l + (1 - l)* margin_square)\n\n\n\nmod = load_model('siyam_RMSProp_model.h5',custom_objects={'contrastive_loss':contrastive_loss})\n\n\n\ny_pred = mod.predict_generator(validation_datagen)#, steps=25\nds_labels=validation_datagen.labels[0:768]\n\n\n\n\n\ndef accuracy_hesapla(y_pred, y_true):\n '''Compute ROC accuracy with a range of thresholds on distances.\n '''\n df_max = np.max(y_pred)\n df_min = np.min(y_pred)\n number_of_sim = np.sum(y_true == 1)\n number_of_diff = np.sum(y_true == 0)\n \n step = 0.01\n max_acc = 0\n best_thresh=0\n \n true_pos_rate_list=[]\n for distance in np.arange(df_min, df_max+step, step):\n idx1 = y_pred.ravel() <= distance\n idx2 = y_pred.ravel() > distance\n \n true_pos_rate = float(np.sum(y_true[idx1] == 1)) / number_of_sim\n true_neg_rate = float(np.sum(y_true[idx2] == 0)) / number_of_diff\n acc = 0.5 * (true_pos_rate + true_neg_rate ) \n# \n \n true_pos_rate_list.append(true_pos_rate)\n if (acc > max_acc):\n max_acc, best_thresh = acc, distance\n \n return max_acc, best_thresh,true_pos_rate_list\n\n\nmax_acc,threshold,tpr_list=accuracy_hesapla(y_pred,ds_labels)\n\nprint(\"Max Accuracy:\"+str(max_acc))\nprint(\"Best thresh:\"+str(threshold))\n\n\nfrom sklearn import metrics as m\n#threshold=0.5203162277571391\nconfusionmatrix = m.confusion_matrix(ds_labels, y_pred 0.19\nimport random \nN = int(input('Введите размер списка: '))\na = [round(random.randint(1, 1000) * random.random(), 2) for i in range(N)]\nprint('Исходный массив: ', *a)\nmaxDrob = 0\nminDrob = 1\nfor i in range(N):\n drob = a[i]\n if a[i] > 1:\n drob = round(a[i] % int(a[i]), 2) \n if drob > maxDrob:\n maxDrob = drob\n if drob < minDrob:\n minDrob = drob\nprint(f'Разница между максимальным и минимальным значением дробной части элементов: {round(maxDrob - minDrob, 2)}')","repo_name":"VitaminPC/PythonPractise","sub_path":"3/task3.py","file_name":"task3.py","file_ext":"py","file_size_in_byte":929,"program_lang":"python","lang":"ru","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"9796186059","text":"from django import forms\nfrom datetime import datetime\nfrom codemirror.widgets import CodeMirrorTextarea\nfrom .models import PriceNavigator\nfrom django.utils.html import mark_safe\nfrom django.conf import settings\nfrom .utils import SHOP_PRICE_DIR\n\n\nclass PriceNavigatorForm(forms.ModelForm):\n\n class Meta:\n model = PriceNavigator\n widgets = {\n 'template': CodeMirrorTextarea(mode='xml', config={\n 'fixedGutter': True,\n 'lineWrapping': True,\n }),\n }\n exclude = []\n\n def __init__(self, *args, **kwargs):\n super(PriceNavigatorForm, self).__init__(*args, **kwargs)\n if self.instance:\n prices_url = settings.MEDIA_URL + SHOP_PRICE_DIR.split(\n '/media/')[-1]\n files_links = []\n for lang in settings.LANGUAGES:\n files_links.append(\n '{lang_name} '.format(**{\n 'lang_url': '%s%s_%s' % (\n prices_url, lang[0], self.instance.file_name),\n 'lang_name': lang[1]\n })\n )\n file_name_help_text = mark_safe(' / '.join(files_links))\n self.fields['file_name'].help_text = file_name_help_text\n\n\n def clean_update_times(self):\n update_times = self.cleaned_data.get('update_times')\n if update_times:\n try:\n now = datetime.now()\n [datetime.combine(now, datetime.strptime(update_time.strip(\n ' '), '%H:%M').time()) for update_time in update_times.split(',')]\n except:\n raise forms.ValidationError(_(u\"Invalid data\"))\n return update_times","repo_name":"phonxis/konkord","sub_path":"konkord/apps/price_navigator/forms.py","file_name":"forms.py","file_ext":"py","file_size_in_byte":1757,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"36834812572","text":"import sys\n\nstring = list(sys.stdin.readline().rstrip())\nanswer = []\n\n# 대문자: 65~90\n# 소문자: 97~122\n\nfor i in string:\n alpha = ord(i)\n if (65<=alpha<=90):\n new = alpha+13\n if (new) > 90:\n new -= 26\n answer.append(chr(new))\n new = 0 \n elif (97<=alpha<=122):\n new = ord(i)+13\n if (new) > 122:\n new-= 26\n answer.append(chr(new))\n new = 0\n else:\n answer.append(i)\n \nfor i in answer:\n print(i, end='')\n ","repo_name":"drizzle0171/StudyAlgorithm","sub_path":"BOJ/11655: ROC13.py","file_name":"11655: ROC13.py","file_ext":"py","file_size_in_byte":516,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"45234321317","text":"class Solution:\n def minimumTotal(self, triangle) -> int:\n # self.ans = float('inf')\n\n # def bk(row, col, num):\n # if row > len(triangle) - 1:\n # self.ans = min(self.ans, num)\n # return\n # bk(row + 1, col, num + triangle[row][col])\n # bk(row + 1, col + 1, num + triangle[row][col])\n # bk(0, 0, 0)\n\n # return self.ans\n if len(triangle) == 0: return 0\n if len(triangle) == 1: return triangle[0][0]\n\n for i in range(1, len(triangle)):\n for j in range(len(triangle[i])):\n if j == 0:\n triangle[i][j] += triangle[i - 1][j]\n elif j == len(triangle[i]) - 1:\n triangle[i][j] += triangle[i - 1][j - 1]\n else:\n triangle[i][j] += min(triangle[i - 1][j], triangle[i - 1][j - 1])\n return min(triangle[-1])\n \ndef main():\n triangle = [[]]\n a = Solution()\n print(a.minimumTotal(triangle))\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"fukode/leetcode","sub_path":"101-120/minimumTotal.py","file_name":"minimumTotal.py","file_ext":"py","file_size_in_byte":1131,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"8517047963","text":"# pandas读取文件:csv & json\n# 读取csv:\nimport pandas as pd\ndata = pd.read_csv(\"path\",chunksize= 1000) # 分块读入,每一块1000行\ndata = pd.read_csv(\"path\",)\n# 写入csv\ndata.to_csv(\"path\")\n\n# 读取json\n# python:\n# 读取 ==> python_object = json.loads(json) ;\n# 写入 ==> json = json.dumps(python_object);\ndata = pd.read_json(\"path_or_pro\")","repo_name":"P79N6A/pyprojects","sub_path":"newprojects/pyProject-learning/pandas_learning/pandas_files.py","file_name":"pandas_files.py","file_ext":"py","file_size_in_byte":364,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"72314010524","text":"import unified_planning\nfrom unified_planning.shortcuts import *\nfrom unified_planning.domains import Domain\n\n\nclass Stuck_Car(Domain):\n def __init__(self, kind, deadline, object_amount, garbage_amount=None):\n Domain.__init__(self, 'stuck_car', kind)\n self.object_amount = object_amount\n self.user_types()\n self.objects()\n self.fluents()\n self.actions()\n self.add_goal(deadline)\n\n def user_types(self):\n Robot = UserType('Robot')\n Car = UserType('Car')\n GasPedal = UserType('GasPedal')\n Rock = UserType('Rock')\n BodyPart = UserType('BodyPart')\n\n self.userTypes = dict(Robot=Robot, Car=Car, GasPedal=GasPedal, Rock=Rock, BodyPart=BodyPart)\n\n def objects(self):\n \"\"\" Init things that can be pushed \"\"\"\n\n \"\"\" Init robot \"\"\"\n robot_names = ['r' + str(i) for i in range(self.object_amount)]\n robots = [unified_planning.model.Object(r, self.userTypes['Robot']) for r in robot_names]\n self.problem.add_objects(robots)\n\n \"\"\" Init car \"\"\"\n car_names = ['c' + str(i) for i in range(self.object_amount)]\n cars = [unified_planning.model.Object(c, self.userTypes['Car']) for c in car_names]\n self.problem.add_objects(cars)\n\n gasPedal = unified_planning.model.Object('gasPedal', self.userTypes['GasPedal'])\n self.problem.add_object(gasPedal)\n\n \"\"\" Init rocks \"\"\"\n rocks_names = ['bad', 'good']\n rocks = [unified_planning.model.Object(r, self.userTypes['Rock']) for r in rocks_names]\n self.problem.add_objects(rocks)\n\n \"\"\" Init body parts -\n when performing an action at least one of the body parts will be occupied\n \"\"\"\n bodyParts_names = ['hands', 'legs']\n bodyParts = [unified_planning.model.Object(b, self.userTypes['BodyPart']) for b in bodyParts_names]\n self.problem.add_objects(bodyParts)\n\n def fluents(self):\n car_out = unified_planning.model.Fluent('car_out', BoolType(), c=self.userTypes['Car'])\n self.problem.add_fluent(car_out, default_initial_value=False)\n\n tired = unified_planning.model.Fluent('tired', BoolType(), ro=self.userTypes['Robot'])\n self.problem.add_fluent(tired, default_initial_value=False)\n\n got_rock = unified_planning.model.Fluent('got_rock', BoolType(), ro=self.userTypes['Robot'],\n r=self.userTypes['Rock'])\n self.problem.add_fluent(got_rock, default_initial_value=False)\n\n free = unified_planning.model.Fluent('free', BoolType(), ro=self.userTypes['Robot'],\n b=self.userTypes['BodyPart'])\n if self.kind == 'combination':\n self.problem.add_fluent(free, default_initial_value=False)\n if self.kind == 'regular':\n self.problem.add_fluent(free, default_initial_value=True)\n\n rock_under_car = unified_planning.model.Fluent('rock_under_car', BoolType(), c=self.userTypes['Car'],\n r=self.userTypes['Rock'])\n self.problem.add_fluent(rock_under_car, default_initial_value=False)\n\n gas_pressed = unified_planning.model.Fluent('gas_pressed', BoolType(), c=self.userTypes['Car'])\n self.problem.add_fluent(gas_pressed, default_initial_value=False)\n\n if self.kind == 'combination':\n ready = unified_planning.model.Fluent('ready', BoolType(), ro=self.userTypes['Robot'],\n b=self.userTypes['BodyPart'])\n self.problem.add_fluent(ready, default_initial_value=True)\n\n def add_goal(self, deadline):\n car_out = self.problem.fluent_by_name('car_out')\n cars_list = self.get_objects(['c' + str(i) for i in range(self.object_amount)])\n\n for c in cars_list:\n self.problem.add_goal(car_out(c))\n\n deadline_timing = Timing(delay=deadline, timepoint=Timepoint(TimepointKind.START))\n self.problem.set_deadline(deadline_timing)\n\n def use_bodyPart(self, action, robot, bodyPart):\n ready, free = self.get_fluents(['ready', 'free'])\n\n if self.kind == 'combination':\n action.add_precondition(OverallPreconditionTiming(), ready(robot, bodyPart), True)\n action.add_effect(ready(robot, bodyPart), False)\n action.add_effect(free(robot, bodyPart), True)\n\n if self.kind == 'regular':\n self.use(action, free(robot, bodyPart))\n\n def actions(self):\n self.rest_action()\n self.place_rock_action()\n self.search_rock_action()\n self.push_car_action()\n self.push_gas_action()\n self.push_car_gas_action()\n if self.kind == 'combination':\n self.turn_on()\n\n def tired_prob(self, robot):\n tired = self.problem.fluent_by_name('tired')\n\n def tired_probability(state, actual_params):\n p = 0.4\n robot_param = actual_params.get(robot)\n return {p: {tired(robot_param): True}, 1 - p: {tired(robot_param): False}}\n\n return tired_probability\n\n def push_prob(self, car, probs):\n car_out, rock_under_car = self.get_fluents(['car_out', 'rock_under_car'])\n bad, good = self.get_objects(['bad', 'good'])\n\n def push_probability(state, actual_params):\n # The probability of getting the car out when pushing\n p = 1\n car_param = actual_params.get(car)\n predicates = state.predicates\n\n if car_out(car_param) not in predicates:\n # The bad rock is under the car\n if rock_under_car(car_param, bad) in predicates:\n p = probs['bad']\n\n # The good rock is under the car\n elif rock_under_car(car_param, good) in predicates:\n p = probs['good']\n\n # There isn't a rock under the car\n else:\n p = probs['none']\n\n return {p: {car_out(car_param): True}, 1 - p: {}}\n\n return push_probability\n\n def turn_on(self):\n ready, free = self.get_fluents(['ready', 'free'])\n\n turn_on = unified_planning.model.InstantaneousAction('turn_on', robot=self.userTypes['Robot'],\n bodyPart=self.userTypes['BodyPart'])\n robot = turn_on.parameter('robot')\n bodyPart = turn_on.parameter('bodyPart')\n\n turn_on.add_precondition(free(robot, bodyPart), True)\n turn_on.add_effect(free(robot, bodyPart), False)\n turn_on.add_effect(ready(robot, bodyPart), True)\n\n self.problem.add_action(turn_on)\n\n def rest_action(self):\n \"\"\" Rest Action \"\"\"\n tired, free = self.get_fluents(['tired', 'free'])\n hands, legs = self.get_objects(['hands', 'legs'])\n\n rest = unified_planning.model.DurativeAction('rest', robot=self.userTypes['Robot'])\n robot = rest.parameter('robot')\n\n if self.kind == 'regular':\n rest.add_precondition(OverallPreconditionTiming(), free(robot, hands), True)\n rest.add_precondition(OverallPreconditionTiming(), free(robot, legs), True)\n\n if self.kind == 'combination':\n self.use_bodyPart(rest, robot, hands)\n self.use_bodyPart(rest, robot, legs)\n\n rest.set_fixed_duration(1)\n rest.add_effect(tired(robot), False)\n\n self.problem.add_action(rest)\n\n def place_rock_action(self):\n \"\"\" Place a rock under the car Action \"\"\"\n tired, got_rock, rock_under_car, free = self.get_fluents(['tired', 'got_rock', 'rock_under_car', 'free'])\n hands, legs = self.get_objects(['hands', 'legs'])\n\n place_rock = unified_planning.model.DurativeAction('place_rock', robot=self.userTypes['Robot'],\n car=self.userTypes['Car'], rock=self.userTypes['Rock'])\n robot = place_rock.parameter('robot')\n car = place_rock.parameter('car')\n rock = place_rock.parameter('rock')\n\n place_rock.set_fixed_duration(2)\n place_rock.add_precondition(OverallPreconditionTiming(), got_rock(robot, rock), True)\n place_rock.add_precondition(StartPreconditionTiming(), tired(robot), False)\n\n self.use_bodyPart(place_rock, robot, hands)\n self.use_bodyPart(place_rock, robot, legs)\n\n place_rock.add_effect(rock_under_car(car, rock), True)\n place_rock.add_effect(got_rock(robot, rock), False)\n place_rock.add_probabilistic_effect([tired(robot)], self.tired_prob(robot))\n\n self.problem.add_action(place_rock)\n\n def search_rock_action(self):\n \"\"\" Search a rock Action\n the robot can find a one of the rocks\"\"\"\n\n tired, free, got_rock = self.get_fluents(['tired', 'free', 'got_rock'])\n bad, good, hands = self.get_objects(['bad', 'good', 'hands'])\n\n search = unified_planning.model.action.DurativeAction('search', robot=self.userTypes['Robot'])\n robot = search.parameter('robot')\n search.set_fixed_duration(2)\n\n search.add_precondition(StartPreconditionTiming(), tired(robot), False)\n\n self.use_bodyPart(search, robot, hands)\n\n def rock_probability(state, actual_params):\n # The probability of finding a good rock when searching\n p = 0.1\n robot_param = actual_params.get(robot)\n return {p: {got_rock(robot_param, bad): True},\n 1 - p: {got_rock(robot_param, good): True}}\n\n search.add_probabilistic_effect([got_rock(robot, bad), got_rock(robot, good)], rock_probability)\n self.problem.add_action(search)\n\n def push_gas_action(self):\n \"\"\" Push Gas Pedal Action\n The probability of getting the car out is lower than push car but the robot won't get tired\"\"\"\n\n tired, car_out, free, = self.get_fluents(['tired', 'car_out', 'free'])\n legs = self.problem.object_by_name('legs')\n\n push_gas = unified_planning.model.action.DurativeAction('push_gas', robot=self.userTypes['Robot'],\n car=self.userTypes['Car'])\n robot = push_gas.parameter('robot')\n car = push_gas.parameter('car')\n push_gas.set_fixed_duration(2)\n\n push_gas.add_precondition(StartPreconditionTiming(), tired(robot), False)\n\n self.use_bodyPart(push_gas, robot, legs)\n\n push_gas.add_probabilistic_effect([car_out(car)], self.push_prob(car, probs=dict(bad=0.2, good=0.4, none=0.1)))\n self.problem.add_action(push_gas)\n\n def push_car_action(self):\n \"\"\" Push Car Action\n The probability of getting the car out is higher than push gas but the robot can get tired\"\"\"\n\n tired, car_out, free = self.get_fluents(['tired', 'car_out', 'free'])\n hands, legs = self.get_objects(['hands', 'legs'])\n\n push_car = unified_planning.model.action.DurativeAction('push_car', robot=self.userTypes['Robot'],\n car=self.userTypes['Car'])\n robot = push_car.parameter('robot')\n car = push_car.parameter('car')\n push_car.set_fixed_duration(2)\n\n push_car.add_precondition(StartPreconditionTiming(), tired(robot), False)\n\n self.use_bodyPart(push_car, robot, hands)\n\n push_car.add_probabilistic_effect([car_out(car)], self.push_prob(car, probs=dict(bad=0.3, good=0.48, none=0.1)))\n push_car.add_probabilistic_effect([tired(robot)], self.tired_prob(robot))\n self.problem.add_action(push_car)\n\n def push_car_gas_action(self):\n tired, car_out, free = self.get_fluents(['tired', 'car_out', 'free'])\n hands, legs = self.get_objects(['hands', 'legs'])\n\n push_car_gas = unified_planning.model.action.DurativeAction('push_car_gas', robot=self.userTypes['Robot'],\n car=self.userTypes['Car'])\n robot = push_car_gas.parameter('robot')\n car = push_car_gas.parameter('car')\n push_car_gas.set_fixed_duration(4)\n\n push_car_gas.add_precondition(StartPreconditionTiming(), tired(robot), False)\n\n self.use_bodyPart(push_car_gas, robot, hands)\n self.use_bodyPart(push_car_gas, robot, legs)\n\n push_car_gas.add_probabilistic_effect([car_out(car)],\n self.push_prob(car, probs=dict(bad=0.4, good=0.9, none=0.2)))\n push_car_gas.add_probabilistic_effect([tired(robot)], self.tired_prob(robot))\n\n self.problem.add_action(push_car_gas)\n\n# run_regular(kind='regular', deadline=10, search_time=1, search_depth=20, selection_type='avg',exploration_constant=10)\n","repo_name":"taliBerman5/CSTP","sub_path":"unified_planning/domains/stuck_car.py","file_name":"stuck_car.py","file_ext":"py","file_size_in_byte":12756,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"44477115908","text":"# 2022_03_02_1\n# 약수 구하기\nn, k = map(int, input().split())\ncount = 0\nfor i in range(1, n+1):\n if n % i == 0:\n count +=1\n if count == k:\n break\n if i >= n and count < k:\n i = 0\n break\nprint(i) # 조건 잘못 설정시 포문이 끝까지 돌아 i가 최대 범위로 반환\n# 배열(리스트)에 모든 약수를 저장하고 k가 리스트 길이보다 크면 0반환하는 방법도 있다. ","repo_name":"motoloj/CodingStudy2022","sub_path":"baek_joon/2501.py","file_name":"2501.py","file_ext":"py","file_size_in_byte":439,"program_lang":"python","lang":"ko","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"16239257864","text":"# Import from cohortextractor\nfrom cohortextractor import StudyDefinition, patients\n\n# Import variables\nfrom data_processing import loop_over_codes\nfrom common_variables import common_variables\n\n\n# Import codelist\nfrom codelist import proactive_codes\n\nfrom data_processing import loop_over_codes\n\n\n# Study definition\nstudy = StudyDefinition(\n # set index_date\n index_date=\"2019-04-01\",\n # Define default expectations\n default_expectations={\n \"date\": {\"earliest\": \"2019-04-01\", \"latest\": \"2022-02-01\"},\n \"incidence\": \"1\",\n \"rate\": \"uniform\",\n },\n # Define population inclusion criteria\n population=patients.satisfying(\n \"\"\"\n (has_proactive_code) AND\n (age > 0 AND age <= 120) AND\n (region != \"\") AND\n (imd_quintile != 0)\n \"\"\",\n has_proactive_code=patients.with_these_clinical_events(\n proactive_codes, between=[\"index_date\", \"index_date + 6 days\"]\n ),\n ),\n # proactive care date\n # Code to loop over proactive_codes to find the first match in the period\n **loop_over_codes(\n proactive_codes, \"index_date\", returning=\"number_of_matches_in_period\"\n ),\n # Loop over the common variables\n **common_variables\n)\n","repo_name":"opensafely/Uptake-of-NHS-home-interventions-during-COVID-19","sub_path":"analysis/study_definition_proactive.py","file_name":"study_definition_proactive.py","file_ext":"py","file_size_in_byte":1258,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3213847517","text":"import json\n\n# 打开包含 JSON 数据的文件\n\nvalue = {\"srcmsg\": \"\", \"dstmsg\": \"\", \"edge_type\": \"\", \"time\": \"\"}\nopen_set = [\"ProcessStart\"]\nread_set = [\"RegistryOpen\", \"ProcessDCStart\", \"FileIORead\", \"RegistryQuery\", \"RegistryEnumerateKey\",\n \"RegistryEnumerateValueKey\", \"RegistryQueryValue\", \"RegistryQueryMultipleValue\", \"FileIOQueryInfo\"]\ncreate_set = [\"RegistryCreate\", \"FileIOCreate\", \"RegistryKCBCreate\", \"FileIOFileCreate\"]\nmessage_set = [\"TcpIpSendIPV4\", \"TcpIpRecvIPV4\", \"TcpIpDisconnectIPV4\", \"TcpIpRetransmitIPV4\", \"TcpIpReconnectIPV4\",\n \"TcpIpTCPCopyIPV4\", \"TcpIpAcceptIPV4\", \"TcpIpFailed\"]\nmodify_set = [\"RegistrySetValue\", \"RegistrySetInformation\"]\nstart_set = [\"TcpIpConnectIPV4\"]\nrename_set = [\"FileIORename\"]\ndelete_set = [\"RegistryDelete\", \"RegistryDeleteValue\", \"RegistryKCBDelete\", \"FileIODelete\", \"FileIOFileDelete\"]\nterminal_set = [\"ProcessEnd\"]\nwrite_set = [\"FileIOWrite\"]\nunknown_set = [\"ThreadCSwitch\", \"DiskIOWrite\", \"DiskIOWriteInit\", \"ProcessDCEnd\", \"ProcessDefunct\", \"ThreadEnd\",\n \"ThreadDCEnd\", \"RegistryKCBRundownEnd\", \"FileIOOperationEnd\", \"FileIOCleanup\", \"FileIOClose\",\n \"RegistryKCBRundownBegin\", \"FileIOSetInfo\", \"DiskIORead\", \"DiskIOReadInit\", \"FileIODirEnum\",\n \"ProcessPerfCtr\", \"ProcessPerfCtrRundown\", \"RegistryVirtualize\", \"RegistryClose\", \"RegistryFlush\",\n \"FileIOFlush\", \"DiskIOFlushInit\", \"DiskIOFlushBuffers\", \"DiskIODrvComplReq\", \"DiskIODrvComplReqRet\",\n \"DiskIODrvComplRout\", \"DiskIODrvMjFnCall\", \"DiskIODrvMjFnRet\", \"PerfInfoThreadDPC\", \"PerfInfoDPC\",\n \"PerfInfoTimerDPC\", \"PerfInfoISR\", \"PerfInfoSysClEnter\", \"PerfInfoSysClEnter\", \"ImageLoad\",\n \"ImageUnload\", \"ImageDCStart\", \"ImageDCEnd\", \"FileIODirNotify\", \"FileIOFSControl\", \"FileIOName\",\n \"FileIOFileRundown\", \"ALPC-Receive-Message\", \"ALPC-Send-Message\", \"ALPC-Unwait\",\n \"ALPC-Wait-For-New-Message\", \"ALPC-Wait-For-Reply\", \"ThreadStart\", \"ThreadDCStart\", \"TcpIpSendIPV6\",\n \"TcpIpRecvIPV6\", \"TcpIpDisconnectIPV6\", \"TcpIpRetransmitIPV6\", \"TcpIpReconnectIPV6\", \"TcpIpTCPCopyIPV6\",\n \"TcpIpConnectIPV6\", \"TcpIpAcceptIPV6\"]\n\nregistry_set = [\"RegistryCreate\", \"RegistryOpen\", \"RegistryDelete\", \"RegistryQuery\", \"RegistrySetValue\",\n \"RegistryDeleteValue\", \"RegistryQueryValue\", \"RegistryEnumerateKey\", \"RegistryEnumerateValueKey\",\n \"RegistryQueryMultipleValue\", \"RegistrySetInformation\", \"RegistryFlush\", \"RegistryKCBCreate\",\n \"RegistryKCBDelete\", \"RegistryKCBRundownBegin\", \"RegistryKCBRundownEnd\", \"RegistryVirtualize\",\n \"RegistryClose\"]\nprocess_set = [\"ProcessStart\", \"ProcessEnd\", \"ProcessDCStart\", \"ProcessDCEnd\", \"ProcessDefunct\", \"ProcessPerfCtr\",\n \"ProcessPerfCtrRundown\"]\nthread_set = [\"ThreadStart\", \"ThreadEnd\", \"ThreadDCStart\", \"ThreadDCEnd\", \"ThreadCSwitch\"]\nnetwork_set = [\"TcpIpSendIPV4\", \"TcpIpSendIPV6\", \"TcpIpRecvIPV4\", \"TcpIpDisconnectIPV4\", \"TcpIpRetransmitIPV4\",\n \"TcpIpReconnectIPV4\", \"TcpIpTCPCopyIPV4\", \"TcpIpRecvIPV6\", \"TcpIpDisconnectIPV6\", \"TcpIpRetransmitIPV6\",\n \"TcpIpReconnectIPV6\", \"TcpIpTCPCopyIPV6\", \"TcpIpConnectIPV4\", \"TcpIpAcceptIPV4\", \"TcpIpConnectIPV6\",\n \"TcpIpAcceptIPV6\", \"TcpIpFailed\"]\nfileio_set = [\"FileIOCreate\", \"FileIODirEnum\", \"FileIODirNotify\", \"FileIOSetInfo\", \"FileIODelete\", \"FileIORename\",\n \"FileIOQueryInfo\", \"FileIOFSControl\", \"FileIOName\", \"FileIOFileCreate\", \"FileIOFileDelete\",\n \"FileIOFileRundown\", \"FileIOOperationEnd\", \"FileIORead\", \"FileIOWrite\", \"FileIOCleanup\", \"FileIOClose\",\n \"FileIOFlush\"]\ndiskio_set = [\"DiskIOWrite\", \"DiskIORead\", \"DiskIOReadInit\", \"DiskIOWriteInit\", \"DiskIOFlushInit\", \"DiskIOFlushBuffers\",\n \"DiskIODrvComplReq\", \"DiskIODrvComplReqRet\", \"DiskIODrvComplRout\", \"DiskIODrvMjFnCall\",\n \"DiskIODrvMjFnRet\"]\nalpc_set = [\"ALPC-Receive-Message\", \"ALPC-Send-Message\", \"ALPC-Unwait\", \"ALPC-Wait-For-New-Message\",\n \"ALPC-Wait-For-Reply\"]\nother_set = [\"PerfInfoThreadDPC\", \"PerfInfoDPC\", \"PerfInfoTimerDPC\", \"PerfInfoISR\", \"PerfInfoSysClEnter\",\n \"PerfInfoSysClEnter\", \"ImageLoad\", \"ImageUnload\", \"ImageDCStart\", \"ImageDCEnd\"]\n\n\ndef getEdge_type(eventname):\n if eventname in open_set: return \"OPEN\"\n if eventname in read_set: return \"READ\"\n if eventname in create_set: return \"CREATE\"\n if eventname in message_set: return \"MESSAGE\"\n if eventname in modify_set: return \"MODIFY\"\n if eventname in start_set: return \"START\"\n if eventname in rename_set: return \"RENAME\"\n if eventname in delete_set: return \"DELETE\"\n if eventname in terminal_set: return \"TERMINAL\"\n if eventname in write_set: return \"WRITE\"\n if eventname in unknown_set: return \"FALSE\"\n\n\ndef getSrcmsg(eventname, event):\n ret = {}\n if eventname in message_set:\n ret[\"FLOW\"] = event[\"args\"][\"saddr\"] + \":\" + str(event[\"args\"][\"sport\"])\n else:\n ret[\"PROCESS\"] = event[\"PName\"]\n return ret\n\n\ndef getDstmsg(eventname, event):\n ret = {}\n if eventname in message_set:\n ret[\"FLOW\"] = event[\"args\"][\"daddr\"] + \":\" + str(event[\"args\"][\"dport\"])\n elif eventname in registry_set:\n ret[\"FILE\"] = event[\"args\"][\"KeyName\"]\n elif eventname in start_set:\n ret[\"PROCESS\"] = event[\"args\"][\"ImageFileName\"]\n elif eventname in fileio_set:\n try:\n ret[\"FILE\"] = event[\"args\"][\"OpenPath\"]\n except:\n ret[\"FILE\"] = event[\"args\"][\"FileName\"]\n return ret\n\n\ni = 1\nwith open(\"test.json\", \"r\") as source_file, open(\"output.json\", \"w\") as target_file, open(\"prase_error.txt\",\n \"w\") as error_file:\n # 逐行读取源文件\n for line in source_file:\n try:\n data = json.loads(line)\n eventName = data[\"Event\"]\n edge_type = getEdge_type(eventName)\n value[\"time\"] = data[\"TimeStamp\"]\n value[\"edge_type\"] = getEdge_type(eventName)\n value[\"srcmsg\"] = getSrcmsg(eventName, data)\n value[\"dstmsg\"] = getDstmsg(eventName, data)\n if value[\"dstmsg\"] != \"{}\":\n print(i)\n i = i + 1\n target_file.write(json.dumps(value) + \"\\n\")\n else:\n continue\n except:\n error_file.write(line + \"\\n\")\n","repo_name":"Wind-Enchanter/node_detection","sub_path":"parse_log/parse.py","file_name":"parse.py","file_ext":"py","file_size_in_byte":6465,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"12792948334","text":"import os\n\n#file_arr = ['crop\\\\1', 'crop\\\\2_start', 'crop\\\\2_end', 'crop\\\\3_start', 'crop\\\\3_end', 'crop\\\\4_start', 'crop\\\\4_end', 'crop\\\\5_start', 'crop\\\\5_end', 'crop\\\\6', 'crop\\\\7', 'crop\\\\8', 'crop\\\\9', 'crop\\\\10', 'crop\\\\11'] # 15 classes\n\n#file_arr = ['crop\\\\1', 'crop\\\\2_start', 'crop\\\\2_end', 'crop\\\\3_start', 'crop\\\\3_end', 'crop\\\\4_start', 'crop\\\\4_end', 'crop\\\\5_start', 'crop\\\\5_end', 'crop\\\\6', 'crop\\\\7', 'crop\\\\9', 'crop\\\\10'] # 13 classes\n\nfile_arr = ['crop\\\\1', 'crop\\\\2_start', 'crop\\\\2_end', 'crop\\\\3', 'crop\\\\4_start', 'crop\\\\4_end', 'crop\\\\5', 'crop\\\\6', 'crop\\\\7', 'crop\\\\9', 'crop\\\\10'] # 11 classes\n\nperson_index_1 = [[1,136],[137,150],[151,160],[161,162],[163,173],[174,179],[180,188],[178,196],[197,204],[205,217],[218,245],[246,264],[265,276]]\n\nperson_index_2 = [[1,83],[84,97],[98,112],[113,125],[126,144],[145,154],[155,169],[170,184],[185,199],[200,214],[215,235],[236,263],[264,281]]\n\nperson_index_3 = [[1,76],[77,90],[91,105],[106,118],[119,137],[138,147],[148,162],[163,177],[178,192],[193,207],[208,228],[229,256],[257,274]]\n\nperson_index_4 = [[],[1,15],[16,29],[30,37],[38,62],[63,80],[81,95],[96,110],[111,125],[126,139],[140,160],[161,180],[]]\n\nperson_index_5 = [[],[1,15],[16,31],[32,46],[47,69],[64,78],[79,93],[94,108],[109,122],[123,137],[138,157],[158,177],[]]\n\nperson_index_6 = [[],[1,15],[16,30],[31,42],[43,56],[57,71],[72,86],[87,101],[102,115],[116,130],[131,150],[151,170],[]]\n\nperson_index_7 = [[],[1,14],[15,27],[28,39],[40,54],[55,71],[72,85],[86,100],[101,115],[116,131],[132,151],[152,172],[173,191]]\n\ndef MOD_X(MOD_NUM=3):\n\n print('MOD_' + str(MOD_NUM))\n\n f_train = open('my_train.txt', 'w')\n f_test = open('my_test.txt', 'w')\n\n #size_1 = 34\n #size_2 = 38\n\n label_arr = [' 1\\n', ' 2\\n', ' 3\\n', ' 4\\n', ' 5\\n', ' 6\\n', ' 7\\n', ' 8\\n', ' 9\\n', ' 10\\n', ' 11\\n', ' 12\\n', ' 13\\n', ' 14\\n', ' 15\\n']\n\n for arr in range(len(file_arr)):\n cou = 0\n for dirPath, dirNames, fileNames in os.walk(file_arr[arr]):\n #print(dirPath, dirNames)\n s = 'D:\\\\Code\\\\Hololens_Project\\\\Dataset\\\\my_dataset_holo\\\\' + dirPath + ' ' + str(len(fileNames)) + label_arr[arr]\n if len(fileNames) != 0:\n if cou % MOD_NUM == 0:\n f_test.write(s)\n cou += 1\n else:\n f_train.write(s)\n cou += 1\n\n\n f_train.close()\n f_test.close()\n\ndef for_7_class(MOD_NUM=3):\n f_train = open('my_train.txt', 'w')\n f_test = open('my_test.txt', 'w')\n\n file_arr = ['crop\\\\1', 'crop\\\\2_start', 'crop\\\\2_end', 'crop\\\\3', 'crop\\\\4', 'crop\\\\5', 'crop\\\\6']\n label_arr = [' 1\\n', ' 2\\n', ' 3\\n', ' 4\\n', ' 5\\n', ' 6\\n', ' 7\\n']\n\n for arr in range(len(file_arr)):\n cou = 0\n for dirPath, dirNames, fileNames in os.walk(file_arr[arr]):\n #print(dirPath, dirNames)\n s = 'D:\\\\Code\\\\Hololens_Project\\\\Dataset\\\\my_dataset_holo\\\\' + dirPath + ' ' + str(len(fileNames)) + label_arr[arr]\n if len(fileNames) != 0:\n if cou % MOD_NUM == 0:\n f_test.write(s)\n cou += 1\n else:\n f_train.write(s)\n cou += 1\n\n\n f_train.close()\n f_test.close()\n\ndef for_cross_val_7_class():\n f_train = open('my_train.txt', 'w')\n f_test = open('my_test.txt', 'w')\n\n file_arr = ['crop\\\\1', 'crop\\\\2_start', 'crop\\\\2_end', 'crop\\\\3', 'crop\\\\4', 'crop\\\\5', 'crop\\\\6']\n label_arr = [' 1\\n', ' 2\\n', ' 3\\n', ' 4\\n', ' 5\\n', ' 6\\n', ' 7\\n']\n\n #test_person = [1,4,7] # 13個人當中選3個來當testing data\n test_person = [11] # 13個人當中選1個來當testing data\n\n print('test_person = ', end='')\n print(test_person)\n\n for arr in range(len(file_arr)):\n for dirPath, dirNames, fileNames in os.walk(file_arr[arr]):\n #print(dirPath, dirNames)\n s = 'D:\\\\Code\\\\Hololens_Project\\\\Dataset\\\\my_dataset_holo\\\\' + dirPath + ' ' + str(len(fileNames)) + label_arr[arr]\n if len(dirPath) == 13 or len(dirPath) == 17 or len(dirPath) == 15:\n if len(dirPath) == 13:\n my_index = int(dirPath.split('_')[-1])\n elif len(dirPath) == 17 or len(dirPath) == 15:\n my_index = int(dirPath.split('\\\\')[-1])\n for_loop_cou = 0\n for i in range(len(test_person)):\n if dirPath.split('\\\\')[1] == '1' and person_index_1[test_person[i]][0] <= my_index and my_index <= person_index_1[test_person[i]][1]:\n f_test.write(s)\n elif dirPath.split('\\\\')[1] == '2_start' and person_index_2[test_person[i]][0] <= my_index and my_index <= person_index_2[test_person[i]][1]:\n f_test.write(s)\n elif dirPath.split('\\\\')[1] == '2_end' and person_index_3[test_person[i]][0] <= my_index and my_index <= person_index_3[test_person[i]][1]:\n f_test.write(s)\n elif dirPath.split('\\\\')[1] == '3' and person_index_4[test_person[i]][0] <= my_index and my_index <= person_index_4[test_person[i]][1]:\n f_test.write(s)\n elif dirPath.split('\\\\')[1] == '4' and person_index_5[test_person[i]][0] <= my_index and my_index <= person_index_5[test_person[i]][1]:\n f_test.write(s)\n elif dirPath.split('\\\\')[1] == '5' and person_index_6[test_person[i]][0] <= my_index and my_index <= person_index_6[test_person[i]][1]:\n f_test.write(s)\n elif dirPath.split('\\\\')[1] == '6' and person_index_7[test_person[i]][0] <= my_index and my_index <= person_index_7[test_person[i]][1]:\n f_test.write(s)\n else:\n for_loop_cou += 1\n if for_loop_cou == len(test_person):\n f_train.write(s)\n\n f_train.close()\n f_test.close()\n\n\nif __name__ == \"__main__\":\n MOD_X(MOD_NUM=4)\n #for_7_class(MOD_NUM=3)\n #for_cross_val_7_class()\n ","repo_name":"chang-chih-yao/Hololens_Project","sub_path":"Dataset/my_dataset_holo/gen_train_test_file.py","file_name":"gen_train_test_file.py","file_ext":"py","file_size_in_byte":6101,"program_lang":"python","lang":"en","doc_type":"code","stars":7,"dataset":"github-code","pt":"86"}
+{"seq_id":"42746106294","text":"#Binary Search\n\ndef binary_search(nums,target):\n low=mid=0\n high=len(nums)-1\n while low<=high:\n mid=(low+high)//2\n if(nums[mid]target):\n high=mid-1\n else:\n return mid\n return -1\n\n# Test array\nnums = [ 2, 3, 4, 10, 40 ]\ntarget = 10\n \n# Function call\nresult = binary_search(nums, target)\n \nif result != -1:\n print(\"Element is present at index\", str(result))\nelse:\n print(\"Element is not present in array\")\n","repo_name":"krithika117/program-solutions","sub_path":"binary-search.py","file_name":"binary-search.py","file_ext":"py","file_size_in_byte":478,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"23179872180","text":"# Importa Symbol - possibilidade de operacoes com simbolos\n# Importa solve - permite solucao de equacoes\n# Importa funcoes seno(sin), cosseno(cos), tangente(tan)\n\nfrom sympy import Symbol, solve, sin, cos, tan\n\n# Define uma nova funcao\n\n\ndef calcula_f(x):\n return (sin(2 * x))**2 - cos(2 * x) - tan(2*x) - 1\n\n\nprint(\"\\n\" * 100)\n\n# Define x como uma variavel\nx = Symbol('x')\n\n# Resolve a equacao calcula_f = 0\ny = calcula_f(x)\n\nresultado = solve(y)\nprint(\"\\n\")\nprint(\"Resultado da equacao (sin(2*x))**2 - cos(2 * x) - tan(2*x) - 1 = 0\")\nprint(\"x = \", resultado)\n","repo_name":"IgorTerriaga/MathwithPython","sub_path":"EquacaoInequacao/SolucaoEquacaoTrigonometrica.py","file_name":"SolucaoEquacaoTrigonometrica.py","file_ext":"py","file_size_in_byte":564,"program_lang":"python","lang":"pt","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3581624379","text":"from django.core.paginator import Paginator\nfrom django.shortcuts import render, redirect\nfrom django.views import View\nfrom Tour.models.Package import Package\n\nclass Package_page(View):\n def get(self, request):\n # Get the search query from the request\n search_query = request.GET.get('search', '')\n\n # Get all packages\n all_packages = Package.get_all_packages(search_query)\n\n # Set the number of packages to display per page\n packages_per_page = 12\n\n # Get the current page number from the request's GET parameters\n page_number = request.GET.get('page', 1)\n\n # Create a Paginator instance and get the current page\n paginator = Paginator(all_packages, packages_per_page)\n current_page = paginator.get_page(page_number)\n\n return render(request, 'Package_page.html', {'Packages': current_page, 'search_query': search_query})\n\n def post(self, request):\n # Check if the form is submitted for adding to the wishlist\n if 'package' in request.POST:\n # Get the package ID from the submitted form\n package = request.POST.get('package')\n\n # Retrieve the user's wishlist from the session or create an empty dictionary\n wishlist = request.session.get('wishlist', {})\n\n # Check if the package is already in the wishlist\n if package not in wishlist:\n # Package is not in the wishlist, add it to the dictionary\n wishlist[package] = 1 # You can use any value; here, I'm using 1\n\n # Update the session with the modified wishlist\n request.session['wishlist'] = wishlist\n\n # Print the updated wishlist to the console for debugging\n print(request.session['wishlist'])\n\n # Redirect the user back to the 'Package_page'\n return redirect('Package_page')\n","repo_name":"Sagun9391/Final_Project","sub_path":"Tour/Views/package.py","file_name":"package.py","file_ext":"py","file_size_in_byte":1905,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"17037165665","text":"from tkinter import *\n# import tkinter.ttk import *\n\nfrom plotdata import regression_plot\nfrom stats import stats_columns\n\n\nclass Application(Frame):\n def __init__(self, master=None):\n super().__init__(master)\n self.master = master\n self.b = Button(master, text=\"Blammo!\", command=lambda: self.onClick())\n self.b.pack()\n\n def onClick(self):\n anotherWindow=Application(self.master)\n anotherWindow.pack()\n\n\nroot = Tk()\napp = Application(master=root)\napp.mainloop()\n","repo_name":"jessica-dyer/wiggles_work","sub_path":"dataview.py","file_name":"dataview.py","file_ext":"py","file_size_in_byte":511,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"38747738823","text":"import time\nfrom selenium import webdriver\nfrom selenium.webdriver.common.by import By\nfrom selenium.webdriver.chrome.options import Options\nfrom concurrent.futures import ProcessPoolExecutor\nimport os\nimport threading\nimport pandas as pd\nfrom naver_reviews import naver_reviews_list\nfrom search_restaurant_url import restaurant\nfrom image_crawling import image_crawling\nfrom inform_restaurant import inform_restaurant\nimport warnings\n\nwarnings.filterwarnings(\"ignore\")\n\nchrome_options = Options()\nchrome_options.add_argument(\"--no-sandbox\")\nchrome_options.add_argument(\"--headless\")\n\n\ndef fetch_review(url):\n print(f\"{os.getpid()} process | {threading.get_ident()} thread, {url}\")\n try:\n driver = webdriver.Chrome(\n \"/Users/seop/Documents/GitHub/Trend_Analysis_and_Recommendation_System_Project/Place_crawling/chromedriver\",\n chrome_options=chrome_options,\n )\n driver.get(url[:-4] + \"review/visitor\")\n except:\n print(url, \"| HTTP Error 500: Internal Server Error\")\n return naver_reviews_list(driver, url, 5)\n\n\ndef fetch_image_food(url):\n # print(f\"{os.getpid()} process | {threading.get_ident()} thread, {url}\")\n try:\n driver = webdriver.Chrome(\n \"/Users/seop/Documents/GitHub/Trend_Analysis_and_Recommendation_System_Project/Place_crawling/chromedriver\",\n chrome_options=chrome_options,\n )\n driver.get(url[:-4] + \"photo?filterType=음식\")\n except:\n print(url, \"| HTTP Error 500: Internal Server Error\")\n return image_crawling(driver, url, 30)\n\n\ndef fetch_image_inner(url):\n # print(f\"{os.getpid()} process | {threading.get_ident()} thread, {url}\")\n try:\n driver = webdriver.Chrome(\n \"/Users/seop/Documents/GitHub/Trend_Analysis_and_Recommendation_System_Project/Place_crawling/chromedriver\",\n chrome_options=chrome_options,\n )\n driver.get(url[:-4] + \"photo?filterType=내부\")\n except:\n print(url, \"| HTTP Error 500: Internal Server Error\")\n return image_crawling(driver, url, 30)\n\n\ndef main():\n df = pd.DataFrame(\n columns=[\n \"name\",\n \"address\",\n \"sort\",\n \"menu\",\n \"mean_price\",\n \"score\",\n \"people_give_score\",\n \"review_count\",\n ]\n )\n\n region_df = pd.read_csv(\"/Users/seop/Downloads/Report.csv\")\n region_df = region_df.drop(index=[0, 1, 2], axis=0)\n\n for region in region_df[\"법정동\"][:1]:\n\n print(\"현재 지역 :\", region)\n urls = restaurant(region, 3)\n\n executor = ProcessPoolExecutor(max_workers=10)\n\n result_rivew = list(executor.map(fetch_review, urls))\n result_food = list(executor.map(fetch_image_food, urls))\n result_inner = list(executor.map(fetch_image_inner, urls))\n\n for idx, url in enumerate(urls):\n result_df = inform_restaurant(url)\n df = pd.concat(\n [df, pd.DataFrame(result_df, index=[idx])], ignore_index=False\n )\n\n result = {}\n result[\"review_list\"] = []\n result[\"img_food\"] = []\n result[\"img_inner\"] = []\n\n for i, j, k in zip(result_rivew, result_food, result_inner):\n\n result[\"review_list\"].append(i)\n result[\"img_food\"].append(j)\n result[\"img_inner\"].append(k)\n\n result_selenium = pd.DataFrame(result)\n df = pd.concat([df, result_selenium], axis=1)\n df.to_csv(f\"{region}.csv\", encoding=\"utf-8-sig\")\n\n return df, result_selenium\n\n\nif __name__ == \"__main__\":\n\n start = time.time()\n df, result_selenium = main()\n end = time.time()\n print(end - start, \" second\")\n\n# 60초\n","repo_name":"assayw119/Trend_Analysis_and_Recommendation_System_Project","sub_path":"Place_crawling/naver_test.py","file_name":"naver_test.py","file_ext":"py","file_size_in_byte":3702,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"4304179845","text":"# -*- coding: utf-8 -*-\nfrom formalchemy.ext.pylons.controller import _ModelsController as Base\nfrom fa.jquery.utils import TemplateEngine\nfrom fa.jquery.utils import Flash\nfrom fa.jquery.fanstatic_resources import fa_admin, fa_jqgrid\nfrom js import jqueryui\nfrom js import jqgrid\nfrom webhelpers.html import literal\nfrom formalchemy.ext.pylons.controller import model_url\nfrom formalchemy.ext.pylons.controller import request\nfrom formalchemy import fields\nfrom formalchemy import fatypes\nfrom routes.util import GenerationException\nget_lang = __import__(\"pylons\").i18n.translation.get_lang\nfrom simplejson import dumps\nimport renderers\nimport logging\n\nlog = logging.getLogger(__name__)\n\nclass _ModelsController(Base):\n engine = TemplateEngine()\n template = 'restfieldset.mako'\n\n def update_resources(self):\n jqueryui.redmond.need()\n fa_admin.need()\n needed_resource = getattr(jqgrid, 'jqgrid_i18n_%s' % get_lang(),\n jqgrid.jqgrid_i18n_en)\n needed_resource.need()\n fa_jqgrid.need()\n\n def index(self, *args, **kwargs):\n kwargs['pager'] = ''\n return Base.index(self, *args, **kwargs)\n\n def get_page(self, **kwargs):\n if 'collection' not in kwargs:\n model = self.get_model()\n params = request.params\n session = self.Session()\n fields = model._sa_class_manager\n collection = session.query(model)\n # FIXME: use id by default but should use pk field\n sidx = params.get('sidx', 'id').decode()\n if sidx and fields.has_key(sidx):\n sidx = fields[sidx]\n sord = params.get('sord', 'asc').decode().lower()\n if sord in ['asc', 'desc']:\n collection = collection.order_by(getattr(sidx, sord)())\n if 'searchField' in params:\n field = fields.get(params['searchField'], None)\n if field:\n op = params['searchOper']\n value = params['searchString']\n if op == 'cn':\n value = '%%%s%%' % value\n filter = field.ilike(value)\n else:\n filter = field==value\n collection = collection.filter(filter)\n kwargs.update(collection=collection)\n if 'items_per_page' not in kwargs:\n kwargs.update(items_per_page=int(request.GET.get('rows', 20)))\n return Base.get_page(self, **kwargs)\n\n def render_xhr_format(self, fs=None, **kwargs):\n html = Base.render_xhr_format(self, fs=fs, **kwargs)\n if fs and request.POST and 'field' not in request.GET:\n flash = Flash()\n if fs.errors:\n errors = [f.label() for f in fs.render_fields.values() if f.errors]\n flash.error('Field(s) %s have errors' % ','.join(errors))\n else:\n flash.info('Record saved')\n html = literal(html) + flash.render()\n return html\n\n def update_grid(self, grid, *args, **kwargs):\n for field in grid.render_fields.values():\n metadata = dict(search=0)\n searchoptions = dict(sopt=['eq', 'cn'])\n if field.is_relation:\n metadata.update(width=100)\n elif isinstance(field.type, fatypes.Text):\n field.set(renderer=renderers.ellipsys(field.renderer))\n metadata.update(search=1)\n elif isinstance(field.type, (fatypes.String, fatypes.Unicode)):\n metadata.update(search=1)\n elif isinstance(field.type, (fatypes.Date, fatypes.Integer)):\n metadata.update(width=70, align='\"center\"')\n elif isinstance(field.type, fatypes.DateTime):\n metadata.update(width=120, align='\"center\"')\n elif isinstance(field.type, fatypes.Boolean):\n metadata.update(width=30, align='\"center\"')\n if metadata['search']:\n metadata['searchoptions'] = dumps(searchoptions)\n metadata.update(field.metadata)\n field.set(metadata=metadata)\n\ndef ModelsController(cls, prefix_name, member_name, collection_name):\n \"\"\"wrap a controller with :class:~formalchemy.ext.pylons.controller._ModelsController\"\"\"\n return type(cls.__name__, (cls, _ModelsController),\n dict(prefix_name=prefix_name, member_name=member_name, collection_name=collection_name))\n\ndef RelationRenderer(renderer=fields.SelectFieldRenderer, **jq_options):\n class Renderer(renderer):\n def render(self, *args, **kwargs):\n html = super(Renderer, self).render(*args, **kwargs)\n fk_class = self.field.relation_type()\n model_name = fk_class.__name__\n try:\n field_url = '%s.xhr?field=%s' % (model_url('model', id=fields._pk(self.field.model)), self.field.key)\n except GenerationException:\n field_url = '%s.xhr?field=%s' % (model_url('new_model'), self.field.key)\n new_url = '%s.xhr' % model_url('new_model', model_name=model_name)\n html += literal('New %s ' % (\n field_url, new_url, model_name))\n return html\n return renderers.jQueryFieldRenderer('relation', show_input=True, renderer=Renderer, **jq_options)\n\n@renderers.alias(RelationRenderer, renderer=renderers.checkboxset())\ndef relations(): pass\n\n@renderers.alias(RelationRenderer, renderer=renderers.radioset())\ndef relation(): pass\n\ntry:\n import pyramid_formalchemy\nexcept ImportError:\n # this only works with pylons 1.0\n renderers.default_renderers['dropdown'] = RelationRenderer()\n\n","repo_name":"FormAlchemy/fa.jquery","sub_path":"fa/jquery/pylons.py","file_name":"pylons.py","file_ext":"py","file_size_in_byte":5798,"program_lang":"python","lang":"en","doc_type":"code","stars":19,"dataset":"github-code","pt":"86"}
+{"seq_id":"44374417154","text":"import pandas as pd\nimport sqlite3\nimport surprise\nimport os\n# Python이 실행될 때 DJANGO_SETTINGS_MODULE이라는 환경 변수에 현재 프로젝트의 settings.py파일 경로를 등록합니다.\nos.environ.setdefault(\"DJANGO_SETTINGS_MODULE\", \"recoduct.settings\")\n# 이제 장고를 가져와 장고 프로젝트를 사용할 수 있도록 환경을 만듭니다.\nimport django\ndjango.setup()\n\nfrom catalog.models import Profile\nfrom catalog.models import Item\nfrom catalog.models import Rate\nfrom django.contrib.auth.models import User\n\n\ndef load_item():\n con = sqlite3.connect(\"C:\\dev\\glowpickDB.db\")\n item_df = pd.read_sql(\"SELECT product_id, name, product_image FROM merged_data\", con)\n return item_df\n\n\ndef load_user():\n con = sqlite3.connect(\"C:\\dev\\glowpickDB.db\")\n user_df = pd.read_sql(\"SELECT user_id, age, gender, skin_type, nickname, profile_image FROM merged_data\", con)\n return user_df\n\n\ndef load_rate():\n con = sqlite3.connect(\"C:\\dev\\glowpickDB.db\")\n rate_df = pd.read_sql(\"SELECT user_id, product_id, rating, contents, created_at FROM merged_data\", con)\n return rate_df\n\n\nif __name__=='__main__':\n# item_df = load_item()\n# for idx in range(len(item_df)):\n# Item(item_id=item_df.iloc[idx, 0], name=item_df.iloc[idx, 1], image=item_df.iloc[idx, 2], brand='이니스프리').save()\n# print(\"완료\")\n user_df = load_user()\n for idx in range(len(user_df)):\n user_obj = User(id=user_df.iloc[idx, 0], password=user_df.iloc[idx, 0], username=user_df.iloc[idx, 0])\n user_obj.save()\n Profile(user=user_obj, profile_id=user_df.iloc[idx, 0], age=user_df.iloc[idx, 1], gender=user_df.iloc[idx, 2], skin_type=user_df.iloc[idx, 3], nickname=user_df.iloc[idx, 4], image=user_df.iloc[idx, 5]).save()\n print(\"완료\")\n rate_df = load_rate()\n for idx in range(len(rate_df)):\n Rate(user_id=rate_df.iloc[idx, 0], item_id=rate_df.iloc[idx, 1], rate=rate_df.iloc[idx, 2], review=rate_df.iloc[idx, 3], created_at=rate_df.iloc[idx, 4]).save()\n print(\"완료\")\n\n#prediction_df = load_prediction()\n#for idx in range(len(prediction_df)):\n#Prediction(user_id=prediction_df.iloc[idx, 0], item_id=prediction_df.iloc[idx, 1], prediction=prediction_df.iloc[idx, 2]).save()\n\n#userId=pd.to_numeric(df['user_id'])\n#productId=pd.to_numeric(df['product_id'])\n#rating=pd.to_numeric(df['rating'])\n\n#temp={\"user\":userId,'item':productId,'rating':rating}\n\n#df2=pd.DataFrame(temp,columns = ['user', 'item','rating'])","repo_name":"dlawjdqls10/finalProject","sub_path":"data_load.py","file_name":"data_load.py","file_ext":"py","file_size_in_byte":2489,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"6080381462","text":"import os\nimport json\nimport subprocess\nimport shutil\nfrom pathlib import Path\nfrom contextlib import contextmanager\nfrom .utils import temp_dir, print_header, print_section, format_filesize, \\\n print_info, print_error, print_warn, listify\nfrom .utils.env import ensure_root\nfrom .utils.command import safe_run\nfrom .utils.zstd_tar import compress_directory, decompress_tarball, ensure_tar_zstd\nfrom .nspawn import nspawn_run_helper_persist, nspawn_run_persist\nfrom .aptcache import APTCache\n\n\nclass OSBase:\n '''\n Describes an OS base registered with debspawn\n '''\n\n def __init__(self, gconf, suite, arch, variant=None, base_suite=None, cachekey=None):\n self._gconf = gconf\n self._suite = suite\n self._base_suite = base_suite\n self._arch = arch\n self._variant = variant\n self._name = self._make_name()\n self._results_dir = self._gconf.results_dir\n self._cachekey = cachekey\n if self._cachekey:\n self._cachekey = self._cachekey.replace(' ', '')\n\n self._aptcache = APTCache(self)\n\n # ensure we can (de)compress zstd tarballs\n ensure_tar_zstd()\n\n def _make_name(self):\n if not self._arch:\n out, _, ret = safe_run(['dpkg-architecture', '-qDEB_HOST_ARCH'])\n if ret != 0:\n raise Exception('Running dpkg-architecture failed: {}'.format(out))\n\n self._arch = out.strip()\n if self._variant:\n return '{}-{}-{}'.format(self._suite, self._arch, self._variant)\n else:\n return '{}-{}'.format(self._suite, self._arch)\n\n @property\n def name(self) -> str:\n return self._name\n\n @property\n def suite(self) -> str:\n return self._suite\n\n @property\n def base_suite(self) -> str:\n return self._base_suite\n\n @property\n def arch(self) -> str:\n return self._arch\n\n @property\n def variant(self) -> str:\n return self._variant\n\n @property\n def global_config(self):\n return self._gconf\n\n @property\n def aptcache(self):\n return self._aptcache\n\n @property\n def has_base_suite(self) -> bool:\n return True if self.base_suite and self.base_suite != self.suite else False\n\n @property\n def results_dir(self):\n Path(self._results_dir).mkdir(parents=True, exist_ok=True)\n return self._results_dir\n\n @results_dir.setter\n def results_dir(self, path):\n self._results_dir = path\n Path(self._results_dir).mkdir(exist_ok=True)\n\n def _copy_helper_script(self, osroot_path):\n script_location = os.path.join(osroot_path, 'usr', 'lib', 'debspawn')\n Path(script_location).mkdir(parents=True, exist_ok=True)\n script_fname = os.path.join(script_location, 'dsrun')\n\n if os.path.isfile(script_fname):\n os.remove(script_fname)\n shutil.copy2(self._gconf.dsrun_path, script_fname)\n\n os.chmod(script_fname, 0o0755)\n\n def get_image_location(self):\n return os.path.join(self._gconf.osroots_dir, '{}.tar.zst'.format(self.name))\n\n def get_image_cache_dir(self):\n cache_img_dir = os.path.join(self._gconf.osroots_dir, 'dcache', self.name)\n Path(cache_img_dir).mkdir(parents=True, exist_ok=True)\n return cache_img_dir\n\n def get_cache_image_location(self):\n if not self._cachekey:\n return None\n return os.path.join(self.get_image_cache_dir(), '{}.tar.zst'.format(self._cachekey))\n\n def get_config_location(self):\n return os.path.join(self._gconf.osroots_dir, '{}.json'.format(self.name))\n\n def exists(self):\n return os.path.isfile(self.get_image_location())\n\n def cacheimg_exists(self):\n location = self.get_cache_image_location()\n if not location:\n return False\n return os.path.isfile(location)\n\n def ensure_exists(self):\n '''\n Ensure the container image exists, and terminate the\n program with an error code in case it does not.\n '''\n import sys\n if not self.exists():\n print_error('The container image for \"{}\" does not exist. Please create it first.'.format(self.name))\n sys.exit(3)\n\n def new_nspawn_machine_name(self):\n import platform\n from random import choice\n from string import ascii_lowercase, digits\n\n nid = ''.join(choice(ascii_lowercase + digits) for _ in range(4))\n\n # on Linux, the maximum hostname length is 64, so we simple set this as general default for\n # debspawn here.\n # shorten the hostname part or replace the suffix, depending on what is longer.\n # This should only ever matter if the hostname of the system already is incredibly long\n uniq_suffix = '{}-{}'.format(self.name, nid)\n if len(uniq_suffix) > 48:\n uniq_suffix = ''.join(choice(ascii_lowercase + digits) for _ in range(12))\n node_name_prefix = platform.node()[:63 - len(uniq_suffix)]\n\n return '{}-{}'.format(node_name_prefix, uniq_suffix)\n\n def _write_config_json(self, mirror, components, extra_suites, extra_source_lines):\n '''\n Create configuration file for this container base image\n '''\n\n print_info('Saving configuration settings.')\n data = {'Suite': self.suite,\n 'Architecture': self.arch}\n if self.variant:\n data['Variant'] = self.variant\n if mirror:\n data['Mirror'] = mirror\n if components:\n data['Components'] = components\n if extra_suites:\n data['ExtraSuites'] = extra_suites\n if extra_source_lines:\n data['ExtraSourceLines'] = extra_source_lines\n\n with open(self.get_config_location(), 'wt') as f:\n f.write(json.dumps(data, sort_keys=True, indent=4))\n\n def _clear_image_tree(self, image_dir):\n ''' Clear files from a directory tree that we don't want in the tarball. '''\n\n if os.path.ismount(image_dir):\n print_warn('Preparing OS tree for compression, but /dev is still mounted.')\n return\n\n for sdir, _, files in os.walk(os.path.join(image_dir, 'dev')):\n for f in files:\n fname = os.path.join(sdir, f)\n if os.path.lexists(fname) and not os.path.isdir(fname) and not os.path.ismount(fname):\n os.remove(fname)\n\n def _create_internal(self, mirror=None, components=None, extra_suites=[], extra_source_lines=None, show_header=True):\n ''' Create new container base image (internal method) '''\n\n if self.exists():\n print_error('An image already exists for this configuration. Can not create a new one.')\n return False\n\n # ensure image location exists\n Path(self._gconf.osroots_dir).mkdir(parents=True, exist_ok=True)\n\n if show_header:\n print_header('Creating new base: {} [{}]'.format(self.suite, self.arch))\n else:\n print_section('Creating new base: {} [{}]'.format(self.suite, self.arch))\n\n print('Using mirror: {}'.format(mirror if mirror else 'default'))\n if self.variant:\n print('variant: {}'.format(self.variant))\n cmd = ['debootstrap',\n '--arch={}'.format(self.arch),\n '--include=python3-minimal,eatmydata']\n if components:\n cmd.append('--components={}'.format(','.join(components)))\n if self.variant:\n cmd.append('--variant={}'.format(self.variant))\n\n with temp_dir() as tdir:\n bootstrap_suite = self.suite\n if self.has_base_suite:\n bootstrap_suite = self.base_suite\n cmd.extend([bootstrap_suite, tdir])\n print('Bootstrap suite: {}'.format(bootstrap_suite))\n if extra_suites:\n print('Additional suites: {}'.format(', '.join(extra_suites)))\n if extra_source_lines:\n print('Custom sources.list lines will be added:')\n for line in extra_source_lines.split('\\\\n'):\n print(' {}'.format(line))\n if mirror:\n cmd.append(mirror)\n\n print_section('Bootstrap')\n proc = subprocess.run(cmd)\n if proc.returncode != 0:\n return False\n\n # create helper script runner\n self._copy_helper_script(tdir)\n\n # if we bootstrapped the base suite, add the primary suite to\n # sources.list. We also add any explicit extra suites and source lines\n if self.has_base_suite or extra_suites or extra_source_lines:\n import re\n\n sourceslist_fname = os.path.join(tdir, 'etc', 'apt', 'sources.list')\n if not mirror:\n with open(sourceslist_fname, 'r') as f:\n contents = f.read()\n matches = re.findall('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\\\(\\\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', contents)\n if not matches:\n print_error('Unable to detect default APT repository URL (no regex matches).')\n return False\n mirror = matches[0]\n if not mirror:\n print_error('Unable to detect default APT repository URL.')\n return False\n\n if not components:\n components = ['main'] # FIXME: We should really be more clever here, e.g. depend on python-apt and parse sources.list properly\n with open(sourceslist_fname, 'a') as f:\n if self.has_base_suite:\n f.write('deb {mirror} {suite} {components}\\n'.format(mirror=mirror, suite=self.suite, components=' '.join(components)))\n\n if extra_suites:\n f.write('\\n')\n for esuite in extra_suites:\n if esuite == self.suite or esuite == bootstrap_suite:\n # don't add existing suites multiple times\n continue\n f.write('deb {mirror} {esuite} {components}\\n'.format(mirror=mirror, esuite=esuite, components=' '.join(components)))\n\n if extra_source_lines:\n f.write('\\n')\n for line in extra_source_lines.split('\\\\n'):\n f.write('{}\\n'.format(line.strip()))\n\n print_section('Configure')\n if nspawn_run_helper_persist(self, tdir, self.new_nspawn_machine_name(), '--update') != 0:\n return False\n\n print_section('Creating Tarball')\n self._clear_image_tree(tdir)\n compress_directory(tdir, self.get_image_location())\n\n # store configuration settings, so we can later recreate this tarball\n # or just display information about it\n self._write_config_json(mirror, components, extra_suites, extra_source_lines)\n\n return True\n\n def create(self, mirror=None, components=None, extra_suites=[], extra_source_lines=None):\n ''' Create new container base image (internal method) '''\n ensure_root()\n\n if self.exists():\n print_error('This configuration has already been created. You can only delete or update it.')\n return False\n\n ret = self._create_internal(mirror=mirror,\n components=components,\n extra_suites=extra_suites,\n extra_source_lines=extra_source_lines,\n show_header=True)\n if ret:\n print_info('Done.')\n\n return ret\n\n def delete(self):\n ''' Remove container base image '''\n ensure_root()\n\n if not self.exists():\n print_error('Can not delete \"{}\": The configuration does not exist.'.format(self.name))\n return False\n\n print_header('Removing base image {}'.format(self.name))\n\n print_section('Deleting cache')\n # remove packages cache\n cache_size = self._aptcache.clear()\n print_info('Removed {} cached packages.'.format(cache_size))\n self._aptcache.delete()\n # remove cached images\n shutil.rmtree(self.get_image_cache_dir())\n print_info('Cache directory removed.')\n\n print_section('Deleting base tarball')\n os.remove(self.get_image_location())\n\n config_fname = self.get_config_location()\n if os.path.isfile(config_fname):\n print_section('Deleting configuration manifest')\n os.remove(config_fname)\n\n print_info('Done.')\n return True\n\n @contextmanager\n def new_instance(self, basename=None):\n with temp_dir() as tdir:\n if self.cacheimg_exists():\n image_fname = self.get_cache_image_location()\n else:\n image_fname = self.get_image_location()\n decompress_tarball(image_fname, tdir)\n yield tdir, self.new_nspawn_machine_name()\n\n def make_instance_permanent(self, instance_dir):\n ''' Add changes done in the current instance to the main tarball of this OS tree, replacing it. '''\n\n # remove unwanted files from the tarball\n self._clear_image_tree(instance_dir)\n\n if self._cachekey:\n tarball_name = self.get_cache_image_location()\n else:\n tarball_name = self.get_image_location()\n tarball_name_old = '{}.old'.format(tarball_name)\n\n if os.path.isfile(tarball_name):\n os.replace(tarball_name, tarball_name_old)\n compress_directory(instance_dir, tarball_name)\n if os.path.isfile(tarball_name_old):\n os.remove(tarball_name_old)\n\n tar_size = os.path.getsize(tarball_name)\n if self._cachekey:\n print_info('New compressed tarball size (for {}) is {}'.format(self._cachekey, format_filesize(tar_size)))\n else:\n print_info('New compressed tarball size is {}'.format(format_filesize(tar_size)))\n\n def update(self):\n ''' Update container base image '''\n ensure_root()\n\n if not self.exists():\n print_error('Can not update \"{}\": The configuration does not exist.'.format(self.name))\n return False\n\n print_header('Updating container image')\n\n with self.new_instance() as (instance_dir, machine_name):\n # ensure helper script runner exists and is up to date\n self._copy_helper_script(instance_dir)\n\n print_section('Update')\n if nspawn_run_helper_persist(self, instance_dir, self.new_nspawn_machine_name(), '--update') != 0:\n return False\n\n print_section('Recreating tarball')\n self.make_instance_permanent(instance_dir)\n\n print_section('Cleaning up cache')\n cache_size = self._aptcache.clear()\n print_info('Removed {} cached packages.'.format(cache_size))\n # remove now-outdated cached images\n shutil.rmtree(self.get_image_cache_dir())\n\n print_info('Done.')\n return True\n\n def recreate(self):\n ''' Recreate a container base image '''\n ensure_root()\n\n if not self.exists():\n print_error('Can not recreate \"{}\": The image does not exist.'.format(self.name))\n return False\n\n config_fname = self.get_config_location()\n if not os.path.isfile(config_fname):\n print_error('Can not recreate \"{}\": Unable to find configuration data for this image.'.format(self.name))\n return False\n\n print_header('Recreating container image')\n\n # read configuration data\n with open(config_fname, 'rt') as f:\n cdata = json.loads(f.read())\n self._suite = cdata.get('Suite', self.suite)\n self._arch = cdata.get('Architecture', self.arch)\n self._variant = cdata.get('Variant', self.variant)\n mirror = cdata.get('Mirror')\n components = cdata.get('Components')\n extra_suites = cdata.get('ExtraSuites', [])\n extra_source_lines = cdata.get('ExtraSourceLines')\n\n print_section('Deleting cache')\n cache_size = self._aptcache.clear()\n print_info('Removed {} cached packages.'.format(cache_size))\n self._aptcache.delete()\n print_info('Cache directory removed.')\n\n # move old image tarball out of the way\n image_name = self.get_image_location()\n image_name_old = self.get_image_location() + '.old'\n if os.path.isfile(image_name_old):\n print_info('Removing cruft image')\n os.remove(image_name_old)\n os.rename(image_name, image_name_old)\n print_info('Old tarball moved.')\n\n # ty to create the tarball again\n try:\n ret = self._create_internal(mirror=mirror,\n components=components,\n extra_suites=extra_suites,\n extra_source_lines=extra_source_lines,\n show_header=False)\n except Exception as e:\n print_error('Error while trying to create image: {}'.format(str(e)))\n ret = False\n\n if ret:\n if os.path.isfile(image_name_old):\n print_info('Removing old image')\n os.remove(image_name_old)\n\n print_info('Removing outdated cached images')\n shutil.rmtree(self.get_image_cache_dir())\n\n print_info('Done.')\n return True\n else:\n print_info('Restoring old tarball')\n if os.path.isfile(image_name):\n print_info('Removing failed new image')\n os.remove(image_name)\n os.rename(image_name_old, image_name)\n print_info('Recreation failed.')\n return False\n\n def login(self, persistent=False, allowed=[]):\n ''' Interactive shell login into the container '''\n ensure_root()\n\n if not self.exists():\n print_info('Can not enter \"{}\": The configuration does not exist.'.format(self.name))\n return False\n\n print_header('Login (persistent changes) for {}'.format(self.name) if persistent else 'Login for {}'.format(self.name))\n with self.new_instance() as (instance_dir, machine_name):\n # ensure helper script runner exists and is up to date\n self._copy_helper_script(instance_dir)\n\n # run an interactive shell in the new container\n nspawn_run_persist(self,\n instance_dir,\n self.new_nspawn_machine_name(),\n '/srv',\n verbose=True,\n allowed=allowed)\n\n if persistent:\n print_section('Recreating tarball')\n self.make_instance_permanent(instance_dir)\n else:\n print_info('Changes discarded.')\n\n print_info('Done.')\n return True\n\n def _copy_command_script_to_instance_dir(self, instance_dir: str, command_script: str) -> str:\n '''\n Copy a script from the host to the current instance directory and make it\n executable.\n Contains the path to the executable script as seen from inside the container.\n '''\n host_script = os.path.abspath(command_script)\n if not os.path.isfile(host_script):\n return None\n\n script_location = os.path.join(instance_dir, 'srv', 'tmp')\n Path(script_location).mkdir(parents=True, exist_ok=True)\n script_fname = os.path.join(script_location, os.path.basename(host_script))\n\n if os.path.isfile(script_fname):\n os.remove(script_fname)\n shutil.copy2(host_script, script_fname)\n os.chmod(script_fname, 0o0755)\n\n return os.path.join('/srv', 'tmp', os.path.basename(host_script))\n\n def run(self, command, build_dir, artifacts_dir, init_command=None, copy_command=False, header_msg=None, allowed=[]):\n ''' Run an arbitrary command or script in the container '''\n ensure_root()\n\n if not self.exists():\n print_error('Can not run command in \"{}\": The base image does not exist.'.format(self.name))\n return False\n\n if len(command) <= 0:\n print_error('No command was given. Can not continue.')\n return False\n\n if isinstance(init_command, str):\n if init_command:\n import shlex\n init_command = shlex.split(init_command)\n init_command = listify(init_command)\n\n # ensure we have absolute paths\n if build_dir:\n build_dir = os.path.abspath(build_dir)\n if artifacts_dir:\n artifacts_dir = os.path.abspath(artifacts_dir)\n\n if self._cachekey and init_command and not self.cacheimg_exists():\n print_header('Preparing template for `{}`'.format(self._cachekey))\n\n # we do not have a cached image prepared, let's do that now!\n with self.new_instance() as (instance_dir, machine_name):\n # ensure helper script runner exists and is up to date\n self._copy_helper_script(instance_dir)\n\n if copy_command:\n # copy initialization script from host to container\n host_script = init_command[0]\n init_command[0] = self._copy_command_script_to_instance_dir(instance_dir, host_script)\n if not init_command[0]:\n print_error('Unable to find initialization script \"{}\", can not copy it to the container. Exiting.'.format(host_script))\n return False\n\n r = nspawn_run_helper_persist(self,\n instance_dir,\n machine_name,\n '--prepare-run',\n '/srv')\n if r != 0:\n print_error('Container setup failed.')\n return False\n # we do not want some permissions to be in effect here,\n # as they may have unwanted effects on the final cached image\n banned_permissions = ['full-dev', 'full-proc', 'read-kmods']\n filtered_allowed = []\n for perm in allowed:\n if perm not in banned_permissions:\n filtered_allowed.append(perm)\n r = nspawn_run_persist(self,\n instance_dir,\n machine_name,\n '/srv',\n init_command,\n allowed=filtered_allowed)\n if r != 0:\n return False\n\n print_info('Storing prepared image in cache')\n self.make_instance_permanent(instance_dir)\n\n if header_msg:\n print_header(header_msg)\n if self._cachekey and init_command and self.cacheimg_exists():\n print_info('Using cached container image `{}`'.format(self._cachekey))\n\n with self.new_instance() as (instance_dir, machine_name):\n # ensure helper script runner exists and is up to date\n self._copy_helper_script(instance_dir)\n\n if copy_command:\n # copy the script from the host into our container and execute it there\n host_script = command[0]\n command[0] = self._copy_command_script_to_instance_dir(instance_dir, host_script)\n if not command[0]:\n print_error('Unable to find script \"{}\", can not copy it to the container. Exiting.'.format(host_script))\n return False\n\n r = nspawn_run_helper_persist(self,\n instance_dir,\n machine_name,\n '--prepare-run',\n '/srv')\n if r != 0:\n print_error('Container setup failed.')\n return False\n\n print_section('Running Task')\n\n nspawn_flags = []\n chdir = '/srv'\n if artifacts_dir:\n nspawn_flags.extend(['--bind={}:/srv/artifacts/'.format(os.path.normpath(artifacts_dir))])\n if build_dir:\n nspawn_flags.extend(['--bind={}:/srv/build/'.format(os.path.normpath(build_dir))])\n chdir = '/srv/build'\n\n r = nspawn_run_persist(self,\n instance_dir,\n machine_name,\n chdir,\n command,\n nspawn_flags,\n allowed=allowed)\n if r != 0:\n return False\n\n print_info('Done.')\n return True\n\n\ndef print_container_base_image_info(gconf):\n '''\n Search for all available container base images and list information\n about them.\n '''\n from glob import glob\n\n osroots_dir = gconf.osroots_dir\n tar_files = []\n if os.path.isdir(osroots_dir):\n tar_files = list(glob(os.path.join(osroots_dir, '*.tar.zst')))\n if not tar_files:\n print_info('No container base images have been found!')\n return False\n tar_files_len = len(tar_files)\n\n for i, tar_fname in enumerate(tar_files):\n img_basepath = os.path.splitext(os.path.splitext(tar_fname)[0])[0]\n config_fname = img_basepath + '.json'\n imgid = os.path.basename(img_basepath)\n print('[{}]'.format(imgid))\n\n cache_files = list(glob(os.path.join(osroots_dir, 'dcache', imgid, '*.tar.zst')))\n cached_names = []\n for cfile in cache_files:\n cname = os.path.basename(os.path.splitext(os.path.splitext(cfile)[0])[0])\n cached_names.append(cname)\n\n # read configuration data if it exists\n if os.path.isfile(config_fname):\n with open(config_fname, 'rt') as f:\n cdata = json.loads(f.read())\n for key, value in cdata.items():\n if type(value) is list:\n value = '; '.join(value)\n print('{} = {}'.format(key, value))\n\n tar_size = os.path.getsize(tar_fname)\n print('Size = {}'.format(format_filesize(tar_size)))\n\n if cached_names:\n print('CachedImages = {}'.format('; '.join(cached_names)))\n if i != tar_files_len - 1:\n print()\n","repo_name":"angdraug/debspawn","sub_path":"debspawn/osbase.py","file_name":"osbase.py","file_ext":"py","file_size_in_byte":26941,"program_lang":"python","lang":"en","doc_type":"code","dataset":"github-code","pt":"86"}
+{"seq_id":"35650583005","text":"import numpy as np\nimport sys\nimport os\nsys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))\nimport os\nfrom shape import Shape\n\nfrom pathlib import Path\nfrom file_reader import FileReader\n\ndef test_barycenter(shape):\n assert abs(shape.processed_vertices.mean(axis=0).max())<1e-5, \"Not translated to barycenter!\"\n\ndef test_alignment(shape):\n vertices = shape.processed_vertices.flatten()\n vertices = vertices.reshape((3,-1),order=\"F\")\n cov = np.cov(vertices)\n eigenvalues, eigenvectors = np.linalg.eig(cov)\n assert (abs(eigenvectors.sum(axis=0) -1) <1e-5).sum()==3, \"Eigenvectors are not aligned with standard basis!\"\n\ndef test_bounding(shape):\n assert ((shape.bounding_rect_vertices.reshape((-1,3)).max(axis=0) - shape.processed_vertices.max(axis=0))==0).sum()==3, \"Pos values above bounding box!\"\n assert ((abs(shape.bounding_rect_vertices.reshape((-1,3)).min(axis=0)) - abs(shape.processed_vertices.min(axis=0)))==0).sum()==3, \"Neg values below bounding box!\"\n \n\n\n\n\n\nif __name__ == '__main__':\n\n ant_path = Path(r\"data/benchmark/db/0/m0/m0.off\")\n path = Path(r\"data/test.ply\")\n max_path = Path('data/benchmark/db/17/m1755/m1755.off')\n problem_path = \"data/benchmark/db/2/m201/m201.off\"\n path = ant_path\n\n\n\n reader = FileReader()\n vertices, element_dict, info = reader.read(path)\n shape = Shape(vertices,element_dict,info)\n shape.process_shape()\n \n \n test_barycenter(shape)\n test_alignment(shape)\n test_bounding(shape)\n \n","repo_name":"SamGalanakis/MIR_Pipeline_Project","sub_path":"src/tests/normalization_test.py","file_name":"normalization_test.py","file_ext":"py","file_size_in_byte":1517,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"70796206044","text":"import logging\nfrom typing import Dict, List, Set, Union\n\nimport sympy\nfrom pysmt.formula import FNode\nfrom pysmt.shortcuts import (\n GE,\n LE,\n REAL,\n TRUE,\n And,\n Equals,\n Minus,\n Or,\n Plus,\n Real,\n Symbol,\n Times,\n)\n\nfrom funman.model.model import Model\nfrom funman.translate.simplifier import FUNMANSimplifier\nfrom funman.utils.sympy_utils import (\n rate_expr_to_pysmt,\n series_approx,\n sympy_subs,\n to_sympy,\n)\n\nfrom .translate import Encoder, Encoding\n\nl = logging.getLogger(__file__)\n\n\nclass PetrinetEncoder(Encoder):\n _transition_rate_cache: Dict[str, List[sympy.Expr]] = {}\n\n def encode_model(self, model: \"Model\") -> Encoding:\n \"\"\"\n Encode a model into an SMTLib formula.\n\n Parameters\n ----------\n model : Model\n model to encode\n\n Returns\n -------\n Encoding\n formula and symbols for the encoding\n \"\"\"\n return Encoding(formula=TRUE(), symbols={})\n\n def _encode_next_step(\n self,\n scenario: \"AnalysisScenario\",\n step: int,\n next_step: int,\n substitutions={},\n ) -> FNode:\n l.debug(f\"Encoding step: {step} to {next_step}\")\n state_vars = scenario.model._state_vars()\n transitions = scenario.model._transitions()\n\n step_size = next_step - step\n current_state = {\n scenario.model._state_var_id(s): self._encode_state_var(\n scenario.model._state_var_name(s), time=step\n )\n for s in state_vars\n }\n next_state = {\n scenario.model._state_var_id(s): self._encode_state_var(\n scenario.model._state_var_name(s), time=next_step\n )\n for s in state_vars\n }\n\n time_var = scenario.model._time_var()\n if time_var:\n time_var_name = scenario.model._time_var_id(time_var)\n time_symbol = self._encode_state_var(\n time_var_name\n ) # Needed so that there is a pysmt symbol for 't'\n current_time_var = self._encode_state_var(time_var_name, time=step)\n next_time_var = self._encode_state_var(\n time_var_name, time=next_step\n )\n current_state[time_var_name] = current_time_var\n next_state[time_var_name] = next_time_var\n\n # Each transition corresponds to a term that is the product of current state vars and a parameter\n transition_terms = {\n scenario.model._transition_id(t): self._encode_transition_term(\n t,\n current_state,\n next_state,\n scenario,\n substitutions=substitutions,\n )\n for t in transitions\n }\n\n if self.config.substitute_subformulas:\n if all(\n isinstance(t, sympy.Expr)\n for k, v in transition_terms.items()\n for t in v\n ):\n # substitutions are FNodes\n # transition terms are sympy.Expr\n # convert relevant substitutions to sympy.Expr\n # sympy subs transition term with converted subs\n # simplify/approximate substituted formula\n # convert to pysmt formula\n # TODO store substitutions as both FNode and pysmt.Expr to avoid extra conversion\n transition_terms = {\n k: [\n FUNMANSimplifier.sympy_simplify(\n t,\n parameters=scenario.model_parameters(),\n substitutions=substitutions,\n threshold=self.config.series_approximation_threshold,\n taylor_series_order=self.config.taylor_series_order,\n )\n for t in v\n ]\n for k, v in transition_terms.items()\n }\n else:\n transition_terms = {\n k: v.substitute(substitutions)\n for k, v in transition_terms.items()\n }\n else:\n # Need to convert transition terms to pysmt without substituting\n transition_terms = {\n k: [rate_expr_to_pysmt(t, current_state) for t in v]\n for k, v in transition_terms.items()\n }\n\n # for each var, next state is the net flow for the var: sum(inflow) - sum(outflow)\n net_flows = []\n for var in state_vars:\n state_var_flows = []\n for transition in transitions:\n state_var_id = scenario.model._state_var_id(var)\n\n transition_id = scenario.model._transition_id(transition)\n outflow = scenario.model._num_flow_from_state_to_transition(\n state_var_id, transition_id\n )\n inflow = scenario.model._flow_into_state_via_transition(\n state_var_id, transition_id\n )\n net_flow = inflow - outflow\n\n if net_flow != 0:\n state_var_flows.append(\n [\n Times(Real(net_flow) * t)\n for t in transition_terms[transition_id]\n ]\n )\n if len(state_var_flows) > 0:\n # FIXME: the below should involve computing update as the cross product of all transition_rate equations\n flows = Plus(\n Times(\n Real(step_size),\n Plus(\n [s[0] for s in state_var_flows]\n ), # FIXME see above\n ), # .simplify()\n current_state[state_var_id],\n ) # .simplify()\n if self.config.substitute_subformulas:\n # flows = flows.substitute(substitutions)\n flows = FUNMANSimplifier.sympy_simplify(\n # flows.substitute(substitutions),\n to_sympy(\n flows.substitute(substitutions).simplify(),\n scenario.model._symbols(),\n ),\n parameters=scenario.model_parameters(),\n threshold=self.config.series_approximation_threshold,\n taylor_series_order=self.config.taylor_series_order,\n )\n else:\n flows = current_state[state_var_id]\n # .substitute(substitutions)\n\n net_flows.append(Equals(next_state[state_var_id], flows))\n if self.config.substitute_subformulas:\n substitutions[next_state[state_var_id]] = flows\n\n # If any variables depend upon time, then time updates need to be encoded.\n if time_var is not None:\n time_increment = (\n Plus(current_time_var, Real(step_size))\n .substitute(substitutions)\n .simplify()\n )\n time_update = Equals(next_time_var, time_increment)\n if self.config.substitute_subformulas:\n substitutions[next_time_var] = time_increment\n else:\n time_update = TRUE()\n\n return (\n And(net_flows + [time_update]),\n substitutions,\n )\n\n def _define_init(\n self, scenario: \"AnalysisScenario\", init_time: int = 0\n ) -> FNode:\n initial_state, substitutions = super()._define_init(\n scenario, init_time=init_time\n )\n # state_var_names = scenario.model._state_var_names()\n # initial_substitution = {}\n\n if self.config.use_compartmental_constraints:\n compartmental_bounds = self._encode_compartmental_bounds(\n scenario, 0\n )\n if self.config.substitute_subformulas and substitutions:\n compartmental_bounds = compartmental_bounds.substitute(\n substitutions\n ).simplify()\n else:\n compartmental_bounds = TRUE()\n initial_state = And(initial_state, compartmental_bounds).simplify()\n\n return initial_state, substitutions\n\n def _encode_compartmental_bounds(\n self,\n scenario: \"AnalysisScenario\",\n step,\n substitutions: Dict[FNode, FNode] = {},\n ):\n bounds = []\n\n if self.config.normalize:\n population = Real(1.0)\n else:\n population = (\n Plus(\n [\n self._encode_state_var(\n scenario.model._state_var_name(var1), time=step\n )\n for var1 in scenario.model._state_vars()\n ]\n )\n .substitute(substitutions)\n .simplify()\n )\n\n for var in scenario.model._state_vars():\n lb = GE(\n self._encode_state_var(\n scenario.model._state_var_name(var), time=step\n ),\n Real(0.0),\n )\n ub = LE(\n self._encode_state_var(\n scenario.model._state_var_name(var), time=step\n ),\n population,\n )\n\n bounds += [lb, ub]\n # noise_var = Symbol(\"noise\", REAL)\n noise_const = Real(1e-3)\n sum_vars = Plus(\n [\n self._encode_state_var(\n scenario.model._state_var_name(var), time=step\n )\n for var in scenario.model._state_vars()\n ]\n )\n total = And(\n LE(sum_vars, Plus(population, noise_const)),\n LE(Minus(population, noise_const), sum_vars),\n )\n\n return And(bounds + [total])\n\n def _encode_transition_term(\n self, transition, current_state, next_state, scenario, substitutions={}\n ) -> Union[sympy.Expr, FNode]:\n transition_id = scenario.model._transition_id(transition)\n input_edges = scenario.model._input_edges()\n output_edges = scenario.model._output_edges()\n state_subs = {s: str(f) for s, f in current_state.items()}\n\n ins = [\n current_state[scenario.model._edge_source(edge)]\n for edge in input_edges\n if scenario.model._edge_target(edge) == transition_id\n ]\n # The model expresses each rate with untimed variable symbols.\n # If not yet approximated, approximate and cache term.\n # Substitute current time variable symbols\n if (\n scenario.model._transition_id(transition)\n not in self._transition_rate_cache\n ):\n model_transition_rates = scenario.model._transition_rate(\n transition\n )\n if all(\n isinstance(r, str) or isinstance(r, float)\n for r in model_transition_rates\n ):\n self._transition_rate_cache[\n scenario.model._transition_id(transition)\n ] = model_transition_rates\n elif all(\n isinstance(r, sympy.Expr) for r in model_transition_rates\n ):\n self._transition_rate_cache[\n scenario.model._transition_id(transition)\n ] = [\n series_approx(\n (\n r\n if isinstance(r, sympy.Expr)\n else to_sympy(r, scenario.model._symbols())\n ),\n vars=[\n mp.name\n for mp in scenario.model_parameters()\n if mp in scenario.synthesized_parameters()\n ],\n )\n for r in scenario.model._transition_rate(transition)\n ]\n else:\n raise Exception(\n f\"Cannot encode model transition rate: {model_transition_rates}\"\n )\n\n transition_rates = []\n for r in self._transition_rate_cache[\n scenario.model._transition_id(transition)\n ]:\n if isinstance(r, sympy.Expr):\n # is a custom rate expression\n transition_rates.append(sympy_subs(r, state_subs))\n elif isinstance(r, str):\n # Is a single parameter\n transition_rates.append(substitutions[Symbol(r, REAL)])\n elif isinstance(r, float):\n # Is a constant\n transition_rates.append(Real(r))\n\n if all(isinstance(t, sympy.Expr) for t in transition_rates):\n return transition_rates # Need to build Or(transition_rates) later after converting to FNodes\n else:\n return (\n Or([(Times([tr] + ins)) for tr in transition_rates])\n # .substitute(substitutions)\n # .simplify()\n )\n\n def _get_timed_symbols(self, model: Model) -> Set[str]:\n \"\"\"\n Get the names of the state (i.e., timed) variables of the model.\n\n Parameters\n ----------\n model : Model\n The petrinet model\n\n Returns\n -------\n List[str]\n state variable names\n \"\"\"\n state_vars = set(model._state_var_names())\n time_var = model._time_var()\n if time_var:\n state_vars.add(f\"timer_{time_var.id}\")\n return state_vars\n","repo_name":"siftech/funman","sub_path":"src/funman/translate/petrinet.py","file_name":"petrinet.py","file_ext":"py","file_size_in_byte":13745,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"10459873676","text":"# films/forms.py\n\nfrom django import forms\nfrom films.models import Film, Director\nfrom .models import Review\n\n\nclass FilmForm(forms.ModelForm):\n class Meta:\n model = Film\n fields = ('title', 'created_in_country',\n 'available_in_countries', 'category', 'director')\n\n\nclass DirectorForm(forms.ModelForm):\n class Meta:\n model = Director\n fields = ('first_name', 'last_name')\n\n\nclass ReviewForm(forms.ModelForm):\n class Meta:\n model = Review\n fields = ['content']\n widgets = {\n 'content': forms.Textarea(attrs={'rows': 4}),\n }\n\n def save(self, commit=True, user=None):\n review = super().save(commit=False)\n if user:\n review.review_author = user\n if commit:\n review.save()\n return review\n","repo_name":"davidholo2/DI_Bootcamp_April2023","sub_path":"Week6/Day2/dc/FilmProject/films/forms.py","file_name":"forms.py","file_ext":"py","file_size_in_byte":830,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"44170216612","text":"class Solution:\n\n def merge(self,head1,len1,head2,len2):\n vHead=ListNode(0)\n cur=vHead\n p=q=0\n while p=len2 or head1.val.cts\\\"',\n metavar = 'STATION_NAME',\n dest = 'tsf'\n)\n\nparser.add_argument('-c', '--comment',\n action = 'store',\n required = False,\n help = 'If specified, only records containing this string as description will '\n 'be read and exported',\n metavar = 'COMMENT',\n dest = 'reccom',\n default = None\n)\n\nparser.add_argument('-t', '--topocentric',\n action = 'store_true',\n required = False,\n help = 'Transform the time-series from (geocentric) cartesian to a topocentric '\n 'reference frame',\n #metavar = 'TRANSFORM_TOPOCENTRIC',\n dest = 'totopo'\n)\n\n\n## Parse command line arguments\nargs = parser.parse_args()\n\n## The time-series file\nts_file = args.tsf + '.cts'\n\n## read in the time-series file\nots = gts.readers.read_cts(ts_file, args.reccom)\n\n## trasnform to topocentric if needed\nif args.totopo:\n ots = ots.transform(ts.CoordinateType.Topocentric)\n\n## print the time-series\nots.print_as_cts()\n\nsys.exit(EXIT_SUCCESS)\n","repo_name":"xanthospap/gnss-ts","sub_path":"python/tsclear.py","file_name":"tsclear.py","file_ext":"py","file_size_in_byte":1481,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"31464894585","text":"import pandas as pd\nimport logging\nimport re\nimport datetime\nimport json\nfrom typing import List, Union, Optional, Any\n\nfrom googleapiclient.errors import HttpError as GoogleApiHttpError\nfrom google.api_core.exceptions import ResourceExhausted, InvalidArgument, PermissionDenied\nimport google.analytics.data_v1beta.types as ga_data_types\n\nfrom . import googlepandas as gpd\nfrom .utils import general_utils\nfrom .utils.ga4_parser import parse_ga4_response, parse_ga3_response, join_ga4_responses\nfrom . import pga_logger\n\n\nclass MissingID(AttributeError):\n \"\"\"Error raised when Property ID is not specified\"\"\"\n def __init__(self, message=\"Missing ID\"):\n self.message = message\n super().__init__(self.message)\n\n\nclass GoogalyticsWrapper:\n \"\"\"\n The GoogalyticsWrapper requires the following arguments to access data:\n - for GSC data: sc_domain. This is the url-like string you see in the Google Search Console web application\n when selecting the site. It is either a full url (e.g. `https://www.example.com/`) or something like `sc_domain:example.com`\n - for GA3 data: the \"view_id\" you see in \"settings\" on the GA web application. This is usually an 8- or 9-digit number, passed as a string\n - for GA4 data: the ga4 property id.\n \"\"\"\n def __init__(self,\n gsc_resource,\n ga3_resource,\n ga4_resource,\n sc_domain: str = None,\n view_id: str = None,\n ga4_property_id: str = None):\n\n self.sc_domain: str = sc_domain\n self.view_id: str = view_id\n self.ga4_property_id: str = ga4_property_id\n\n self._api_test_gsc: dict = dict()\n self._api_test_ga3: dict = dict()\n self._api_test_ga4: dict = dict()\n\n self.gsc_resource = gsc_resource\n self.ga3_resource = ga3_resource\n self.ga4_resource = ga4_resource\n\n pga_logger.debug(f\"initialising GoogalyticsWrapper object\")\n\n # *****************************************************************\n # *** GAPI_WRAPPER STATS ******************************************\n\n def __dict__(self) -> dict:\n _dates_test = self.available_dates\n gsc_date_range_str = general_utils.date_range_string(dates=_dates_test.get(\"GSC\"),\n alternate_text=\"No dates available from GSC\")\n ga3_date_range_str = general_utils.date_range_string(dates=_dates_test.get(\"GA3\"),\n alternate_text=\"No dates available from GA3\")\n\n return {\n \"API config\": {\n \"GSC sc-domain\": self.sc_domain,\n \"GA3 View ID\": self.view_id,\n \"GA4 Property ID\": self.ga4_property_id\n },\n \"API status\": {\n \"GSC status\": self.api_test_gsc.get('status'),\n \"GA3 status\": self.api_test_ga3.get('status'),\n \"GSC error\": self.api_test_gsc.get('error'),\n \"GA3 error\": self.api_test_ga3.get('error')\n },\n \"Available datas\": {\n \"GSC\": gsc_date_range_str,\n \"GA3\": ga3_date_range_str\n }\n }\n\n def __repr__(self):\n _s = \"GoogalyticsWrapper object:\\n\"\n _s += json.dumps(self.__dict__(), indent=2)\n return _s\n\n @property\n def api_summary(self) -> dict:\n _dates_test = self.available_dates\n _sc_domain = \"\"\n if re.match(\"sc-domain:.+\", self.sc_domain):\n _sc_domain = self.sc_domain\n return {\"GA3 view id\": self.view_id,\n \"sc-domain\": _sc_domain,\n \"GA3 API\": self.api_test_ga3.get('status'),\n \"GSC API\": self.api_test_gsc.get('status'),\n \"GA3 dates\": len(_dates_test.get(\"GA3\")),\n \"GSC dates\": len(_dates_test.get(\"GSC\")),\n }\n\n def _perform_api_test_gsc(self):\n \"\"\"test GSC API\"\"\"\n pga_logger.debug(f\"{self.__class__.__name__}.api_test() :: testing GSC api\")\n\n _api_error = None\n\n try:\n _ = self.get_gsc_response(start_date=datetime.date.today() + datetime.timedelta(days=-7),\n raise_http_error=True)\n _api_status = \"Success\"\n pga_logger.debug(f\"{self.__class__.__name__}.api_test() :: GSC api successful\")\n except GoogleApiHttpError as http_e:\n _api_status = \"HttpError\"\n _api_error = http_e.reason.split('See also')[0]\n pga_logger.debug(f\"{self.__class__.__name__}.api_test() :: GSC api failed\")\n except Exception as http_e:\n _api_status = \"Other Error\"\n _api_error = repr(http_e)\n pga_logger.debug(f\"{self.__class__.__name__}.api_test() :: GSC api failed\")\n # The HttpError for GSC contains this unhelpful \"See also this answer to a question...\"\n # which is just a link to an FAQ with a 404 error\n\n self._api_test_gsc = {'status': _api_status, 'error': _api_error, 'timestamp': datetime.datetime.utcnow()}\n\n @property\n def api_test_gsc(self) -> dict:\n if self._api_test_gsc.get('status') is None:\n self._perform_api_test_gsc()\n return self._api_test_gsc\n\n @property\n def api_test_ga3(self) -> dict:\n if self._api_test_ga3.get('status') is None or not general_utils.test_time(self._api_test_ga3.get('timestamp'), 3600):\n self._perform_api_test_ga3()\n return self._api_test_ga3\n\n def _perform_api_test_ga3(self):\n \"\"\"test GA API\"\"\"\n pga_logger.debug(f\"{self.__class__.__name__}.api_test() :: testing GA api\")\n _api_error = None\n if not self.view_id:\n _api_status = \"No view id\"\n try:\n _ = self.get_ga3_response(start_date=datetime.date.today() + datetime.timedelta(days=-7),\n raise_http_error=True, log_error=False)\n _api_status = \"Success\"\n pga_logger.debug(f\"{self.__class__.__name__}.api_test() :: GA api successful\")\n except GoogleApiHttpError as http_e:\n _api_status = \"HttpError\"\n _api_error = repr(http_e)\n pga_logger.debug(f\"{self.__class__.__name__}.api_test() :: GA api failed\")\n except Exception as http_e:\n _api_status = \"Other Error\"\n _api_error = repr(http_e)\n pga_logger.debug(f\"{self.__class__.__name__}.api_test() :: GA api failed\")\n self._api_test_ga3 = {'status': _api_status, 'error': _api_error, 'timestamp': datetime.datetime.utcnow()}\n\n @property\n def api_test_ga4(self) -> dict:\n return self._api_test_ga4\n\n # *****************************************************************************************\n\n @property\n def available_dates(self) -> dict:\n gsc_date_list: List[datetime.date] = self.get_dates(result=\"GSC\")\n ga3_date_list: List[datetime.date] = self.get_dates(result=\"GA3\")\n ga4_date_list: List[datetime.date] = self.get_dates(result=\"GA4\")\n return {\"GA3\": ga3_date_list, \"GA4\": ga4_date_list, \"GSC\": gsc_date_list}\n\n # *** Calls to Google API *****************************************************************\n\n def get_inspection_response(self,\n inspection_url: str):\n gsc_request = {\n 'siteUrl': self.sc_domain,\n 'inspectionUrl': inspection_url,\n }\n gsc_response = self.gsc_resource.urlInspection().index().inspect(body=gsc_request).execute()\n return gsc_response\n\n def get_gsc_response(self,\n start_date: Union[str, datetime.date],\n end_date: Optional[Union[str, datetime.date]] = None,\n gsc_dimensions: Optional[Union[List[str], str]] = None,\n row_limit: int = 25000,\n start_row: int = 0,\n raise_http_error: bool = False,\n _print_log: bool = False):\n\n # dimension \"searchAppearance\" cannot be used alongside any other dimension\n\n if end_date is None:\n end_date = start_date\n\n if isinstance(start_date, str):\n start_date = datetime.datetime.strptime(start_date, \"%Y-%m-%d\").date()\n if isinstance(end_date, str):\n end_date = datetime.datetime.strptime(end_date, \"%Y-%m-%d\").date()\n\n start_date_string = start_date.strftime(\"%Y-%m-%d\")\n end_date_string = end_date.strftime(\"%Y-%m-%d\")\n\n if gsc_dimensions is None:\n gsc_dimensions = ['country', 'device', 'page', 'query']\n elif isinstance(gsc_dimensions, str):\n gsc_dimensions = [gsc_dimensions]\n\n gsc_request = {\n 'startDate': start_date_string,\n 'endDate': end_date_string,\n 'dimensions': gsc_dimensions,\n # 'dimensionFilterGroups': [{\n # 'filters': [\n # {'dimension': 'country', 'expression': 'GBR'}\n # ]\n # }],\n # 'aggregationType': aggregation_type,\n 'rowLimit': row_limit,\n 'startRow': start_row\n }\n\n try:\n gsc_response = self.gsc_resource.searchanalytics().query(siteUrl=self.sc_domain,\n body=gsc_request).execute()\n except GoogleApiHttpError as http_error:\n if re.match(\".*user does not have sufficient permissions\", repr(http_error).lower()):\n pga_logger.error(\n f\"{self.__class__.__name__}.get_gsc_response() :: user does not have sufficient permissions\")\n if raise_http_error:\n raise http_error\n else:\n if _print_log:\n print(f\"{self.__class__.__name__}.get_gsc_response() :: GoogleApiHttpError\")\n print(http_error)\n return None\n\n try:\n _rows = gsc_response.get(\"rows\", None)\n except AttributeError:\n _rows = None\n\n if _rows is None:\n pga_logger.debug(f\"{self.__class__.__name__}.get_gsc_response() :: empty gsc response\")\n if _print_log:\n print(f\"{self.__class__.__name__}.get_gsc_response() :: empty gsc response\")\n # raise EmptyResponseError(\"GSC\", start_date=start_date, end_date=end_date)\n return None\n\n return gsc_response\n\n def get_ga3_response(self,\n start_date: datetime.date,\n end_date: datetime.date,\n dimensions: list[str] | str | None = None,\n metrics: list[str] | str | None = None,\n ga_filters: dict | None = None,\n raise_http_error: bool = False,\n log_error: bool = True,\n filter_google_organic: bool = False,\n _print_log: bool = False) -> Optional[dict]:\n\n ga_dimensions = ['ga:' + _s if not re.match(r'ga:', _s) else _s for _s in dimensions]\n ga_metrics = ['ga:'+_s if not re.match(r'ga:', _s) else _s for _s in metrics]\n\n r = self._ga3_response_raw(\n start_date=start_date,\n end_date=end_date,\n ga_dimensions=ga_dimensions,\n ga_metrics=ga_metrics,\n ga_filters=ga_filters,\n filter_google_organic=filter_google_organic,\n page_token=None\n )\n\n data = r.get('reports', [{}])[0].get('data', {}).get('rows', [])\n column_header = r.get('reports', [{}])[0].get('columnHeader')\n next_page_token = r.get('reports', [{}])[0].get('nextPageToken')\n error = r.get('error', None)\n error_type = r.get('error_type', None)\n\n while next_page_token and not error:\n r = self._ga3_response_raw(\n start_date=start_date,\n end_date=end_date,\n ga_dimensions=ga_dimensions,\n ga_metrics=ga_metrics,\n ga_filters=ga_filters,\n filter_google_organic=filter_google_organic,\n page_token=next_page_token\n )\n error = r.get('error', None)\n error_type = r.get('error_type', None)\n _d = r.get('reports', [dict()])[0].get('data', dict()).get('rows', [])\n data.extend(_d)\n next_page_token = r.get('reports', [{}])[0].get('nextPageToken')\n\n # print(f\"\\ndimensions: {ga_dimensions} \\n\"\n # f\"metrics: {ga_metrics} \\n \"\n # f\"data: len={len(data)}, \\n\"\n # f\"error_type: {error_type} \\n\"\n # f\"column_header: {column_header} \\n\")\n\n if column_header is not None:\n response = parse_ga3_response(column_header=column_header, response_rows=data)\n else:\n response = {\n 'dimension_headers': dimensions,\n 'metric_headers': metrics,\n 'row_count': 0,\n 'rows': []\n }\n\n response['response_type'] = 'GA3'\n response['start_date'] = start_date\n response['end_date'] = end_date\n\n response['error'] = error\n response['error_type'] = error_type\n\n return response\n\n def _ga3_response_raw(self,\n start_date: datetime.date,\n end_date: datetime.date,\n ga_dimensions: list[str],\n ga_metrics: List[str],\n ga_filters: dict | None = None,\n filter_google_organic: bool = False,\n return_raw_response: bool = False,\n page_token: str = None,\n _print_log: bool = False):\n\n if not self.view_id:\n _r = {\n 'error': PermissionError(\"view_id is not set\"),\n 'error_type': 'missing_view_id'\n }\n return _r\n\n start_date_string = start_date.strftime(\"%Y-%m-%d\")\n end_date_string = end_date.strftime(\"%Y-%m-%d\")\n\n _dfc = [] # dimension filter clauses\n _mfc = [] # metric filter clauses\n _orderby = []\n\n if ga_filters:\n for filter_dict in ga_filters:\n if not isinstance(filter_dict.get('filters'), list):\n continue\n if len(filter_dict.get('filters')) != 0:\n if filter_dict.get('filters')[0].get('dimensionName'):\n _dfc.append(filter_dict)\n elif filter_dict.get('filters')[0].get('metricName'):\n _mfc.append(filter_dict)\n\n if filter_google_organic is True:\n _dfc.append({\"operator\": 'OR',\n \"filters\": [{\"dimensionName\": 'ga:sourceMedium',\n \"not\": 'false',\n \"operator\": 'EXACT',\n \"expressions\": ['google / organic'],\n \"caseSensitive\": 'false'\n }]\n })\n\n if 'ga:itemRevenue' in ga_metrics:\n _orderby.append({\n \"fieldName\": 'ga:itemRevenue',\n \"orderType\": 'VALUE',\n \"sortOrder\": 'DESCENDING'\n })\n\n _request_dict = {\n 'viewId': self.view_id,\n 'dateRanges': [{'startDate': start_date_string, 'endDate': end_date_string}],\n # 'dimensions': [{'name': 'ga:productName'}],\n # 'metrics': [{'expression': 'ga:itemRevenue'}]\n 'dimensions': [{'name': _d} for _d in ga_dimensions],\n \"dimensionFilterClauses\": _dfc,\n \"metricFilterClauses\": _mfc,\n \"orderBys\": _orderby,\n 'metrics': [{'expression': _m} for _m in ga_metrics],\n 'pageSize': 100_000\n }\n\n if page_token:\n _request_dict.update({'pageToken': page_token})\n\n ga3_request = {'reportRequests': [_request_dict]}\n\n _error = None\n _error_type = None\n try:\n ga3_response = self.ga3_resource.reports().batchGet(body=ga3_request).execute()\n if return_raw_response:\n pga_logger.info(f\"{self.__class__.__name__}.get_ga3_response() :: returning raw response\")\n return ga3_response\n except GoogleApiHttpError as http_error:\n _error = http_error\n _msg = ''\n if re.match(\".*user does not have sufficient permissions\", repr(http_error).lower()):\n _error_type = 'insufficient_permissions'\n _msg = f\"{self.__class__.__name__}.get_ga3_response() :: user does not have sufficient permissions\"\n if re.match(\".*viewid must be set\", repr(http_error).lower()):\n _error_type = 'missing_view_id'\n _msg = f\"{self.__class__.__name__}.get_ga3_response() :: view id is not set\"\n ga3_response = None\n except Exception as _e:\n _error = _e\n _error_type = 'other'\n ga3_response = None\n\n if ga3_response is None:\n ga3_response = dict()\n else:\n try:\n _rows = ga3_response.get('reports', [])[0].get('data').get('rows', None)\n except (AttributeError, KeyError) as _e:\n _rows = None\n\n if _rows is None:\n _error = AttributeError('ga3_response in incorrect format.')\n _error_type = 'empty_response'\n pga_logger.debug(f\"{self.__class__.__name__}.get_ga3_response() :: empty ga response\")\n # raise EmptyResponseError(\"GA3\", start_date=start_date, end_date=end_date)\n\n ga3_response['error'] = _error\n ga3_response['error_type'] = _error_type\n\n return ga3_response\n\n def _ga4_response_raw(self,\n start_date: datetime.date,\n end_date: datetime.date,\n ga4_dimensions: list[ga_data_types.Dimension],\n ga4_metrics: list[ga_data_types.Metric],\n limit: int,\n offset: int):\n\n if not self.ga4_property_id:\n raise MissingID(\"ga4_property_id is not set\")\n\n request = ga_data_types.RunReportRequest(\n property=f\"properties/{self.ga4_property_id}\",\n dimensions=ga4_dimensions,\n metrics=ga4_metrics,\n date_ranges=[\n ga_data_types.DateRange(\n start_date=start_date.strftime(\"%Y-%m-%d\"),\n end_date=end_date.strftime(\"%Y-%m-%d\")\n )\n ],\n limit=limit,\n offset=offset,\n return_property_quota=True\n )\n ga4_response = self.ga4_resource.run_report(request)\n\n return ga4_response\n\n def get_ga4_response(self,\n start_date: datetime.date,\n end_date: datetime.date,\n dimensions: list[str],\n metrics: list[str],\n limit: int | None = None) -> (list, dict, Any):\n\n ga_dimensions = [ga_data_types.Dimension(name=_) for _ in dimensions]\n ga_metrics = [ga_data_types.Metric(name=_) for _ in metrics]\n\n request_limit = 100_000\n if limit is None:\n limit = 1_000_000_000\n elif limit < 100_000:\n request_limit = limit\n\n complete: bool = False\n error_type: str | None = None\n responses: list[dict] = []\n error = None\n offset: int = 0\n\n while not complete:\n num_tries = 0\n success = False\n response = dict()\n while num_tries < 3 and not success:\n error = None\n try:\n ga4_response = self._ga4_response_raw(\n start_date=start_date,\n end_date=end_date,\n ga4_dimensions=ga_dimensions,\n ga4_metrics=ga_metrics,\n limit=request_limit,\n offset=offset\n )\n response = parse_ga4_response(ga4_response)\n success = True\n except PermissionDenied as _permission_denied_error:\n complete = True\n error_type = 'permission_denied'\n error = _permission_denied_error\n num_tries = 1_000\n except ResourceExhausted as _resource_exhausted_error:\n error_type = 'quota_reached'\n complete = True\n error = _resource_exhausted_error\n num_tries = 1_000\n except MissingID as _id_error:\n complete = True\n error_type = 'missing_id'\n error = _id_error\n num_tries = 1_000\n except InvalidArgument as _invalid_argument_error:\n if re.search(r\"metrics are incompatible\", _invalid_argument_error.message):\n error_type = 'invalid_arguments'\n complete = True\n error = _invalid_argument_error\n num_tries = 1_000\n except Exception as _e:\n error = _e\n num_tries += 1\n\n if success:\n offset += response.get('row_count', 0)\n if offset >= limit:\n complete = True\n if response.get('row_count', 0) == 0 or offset >= response.get('meta_row_count', 1_000_000_000):\n complete = True\n\n responses.append(response)\n\n if len(responses) > 1:\n response = join_ga4_responses(responses)\n if response.get('row_count', 0) == 0:\n error = AttributeError(\"Empty response\")\n error_type = \"empty_response\"\n elif len(responses) == 1:\n response = responses[0]\n if response.get('row_count', 0) == 0:\n error = AttributeError(\"Empty response\")\n error_type = \"empty_response\"\n else:\n response = {\n 'response_type': 'GA4',\n 'dimension_headers': dimensions,\n 'metric_headers': metrics,\n 'rows': []\n }\n\n response['start_date'] = start_date\n response['end_date'] = end_date\n\n response['error'] = error\n response['error_type'] = error_type\n\n return response\n\n def get_dates(self,\n result: str,\n start_date: Optional[Union[datetime.date, str, int]] = None,\n end_date: Optional[Union[datetime.date, str]] = None,\n reverse: bool = False) -> List[datetime.date]:\n\n # set the end_date to yesterday by default.\n # GA data is \"available\" for today but it is not the whole day.\n if end_date is None:\n end_date = datetime.date.today() + datetime.timedelta(days=-1)\n\n if isinstance(start_date, str):\n start_date = datetime.datetime.strptime(start_date, '%Y-%m-%d').date()\n if isinstance(end_date, str):\n end_date = datetime.datetime.strptime(end_date, '%Y-%m-%d').date()\n\n if isinstance(start_date, int):\n start_date = end_date + datetime.timedelta(days=-1 * start_date)\n\n if re.match(r\"GA3\", result):\n if start_date is None:\n start_date = datetime.date.today() + datetime.timedelta(days=-1500)\n dimensions = ['ga:date']\n metrics = ['ga:sessions']\n elif re.match(r\"GA4\", result):\n if start_date is None:\n start_date = datetime.date.today() + datetime.timedelta(days=-1500)\n dimensions = ['date']\n metrics = ['sessions']\n elif re.match(r\"GSC\", result):\n if start_date is None:\n start_date = datetime.date.today() + datetime.timedelta(days=-500)\n dimensions = ['date']\n metrics = None\n else:\n raise KeyError(f\"invalid result {result}\")\n\n _df = self.get_df(result=result,\n start_date=start_date,\n end_date=end_date,\n dimensions=dimensions,\n metrics=metrics,\n add_boolean_metrics=False)\n\n if \"record_date\" not in _df.columns or len(_df) == 0:\n return []\n\n if \"record_date\" not in _df.columns or len(_df) == 0:\n return []\n else:\n return sorted(list(_df[\"record_date\"]), reverse=reverse)\n\n # *****************************************************************************************\n # *** Return dataframe *****************************************************************\n\n def get_df(self,\n result: str,\n start_date: Union[str, datetime.date] = None,\n end_date: Optional[Union[str, datetime.date]] = None,\n dimensions: Optional[Union[str, List[str]]] = None,\n metrics: Optional[Union[str, List[str]]] = None,\n row_limit: Optional[int] = None,\n url_list: Optional[Union[str, List[str]]] = None,\n filter_google_organic: bool = False,\n filters: List[dict] = None,\n add_boolean_metrics: bool = False,\n _return_response: bool = False,\n raise_errors: bool = True\n ) -> Union[gpd.GADataFrame, gpd.GSCDataFrame, pd.DataFrame]:\n \"\"\"\n The `get_df` method accepts the following values for the `result` argument:\n - \"GSC\": for Google Search Console data\n - \"GA3\": for Google Analytics 3 (UA) data\n - \"URL\": for Google Search Console URL inspection data\n - \"GA4\": for Google Analytics 4 data (note, this is not yet available in production)\n \"\"\"\n\n if start_date is None:\n if result == \"GSC\":\n start_date = datetime.date.today() + datetime.timedelta(days=-3)\n else:\n start_date = datetime.date.today()\n\n if end_date is None:\n end_date = start_date\n\n if isinstance(start_date, str):\n start_date = datetime.datetime.strptime(start_date, '%Y-%m-%d').date()\n if isinstance(end_date, str):\n end_date = datetime.datetime.strptime(end_date, '%Y-%m-%d').date()\n\n if isinstance(dimensions, str):\n dimensions = [dimensions]\n if isinstance(metrics, str):\n metrics = [metrics]\n if isinstance(url_list, str):\n url_list = [url_list]\n\n if re.match(r\"GA4\", result):\n return self._get_analytics_df(\n response_type='GA4',\n start_date=start_date,\n end_date=end_date,\n dimensions=dimensions,\n metrics=metrics,\n add_boolean_metrics=add_boolean_metrics,\n limit=row_limit,\n filters=filters,\n return_response=_return_response,\n )\n elif re.match(r\"GA3\", result):\n return self._get_analytics_df(\n response_type='GA3',\n start_date=start_date,\n end_date=end_date,\n dimensions=dimensions,\n metrics=metrics,\n filters=filters,\n add_boolean_metrics=add_boolean_metrics,\n return_response=_return_response\n )\n elif re.match(r\"GSC\", result) and result != \"GSCQ\":\n if row_limit is None:\n row_limit = 100000\n return self._get_gsc_df(start_date=start_date,\n end_date=end_date,\n gsc_dimensions=dimensions,\n row_limit=row_limit,\n add_boolean_metrics=add_boolean_metrics)\n elif result == 'GSCQ':\n if row_limit is None:\n row_limit = 100000\n return self._get_gsc_df(start_date=start_date,\n end_date=end_date,\n gsc_dimensions=['query'],\n row_limit=row_limit,\n add_boolean_metrics=add_boolean_metrics)\n elif result == 'URL':\n return self._get_urlinspection_df(url_list=url_list)\n else:\n raise KeyError(f\"invalid result {result}\")\n\n def _get_gsc_df_raw(self,\n start_date: datetime.date,\n end_date: datetime.date,\n row_limit: int,\n gsc_dimensions: List[str]) -> Optional[gpd.GSCDataFrame]:\n\n gsc_response = self.get_gsc_response(start_date=start_date, end_date=end_date,\n gsc_dimensions=gsc_dimensions,\n row_limit=min(row_limit, 25000))\n\n if gsc_response is None:\n # Make an empty GSCDataFrame\n gsc_df = gpd.GSCDataFrame(df_input=None,\n gsc_dimensions=gsc_dimensions)\n _response_aggregation = None\n else:\n # Make a dataframe of the gsc response\n gsc_df = gpd.from_response(response=gsc_response,\n response_type=\"GSC\",\n gsc_dimensions=gsc_dimensions)\n _response_aggregation = gsc_df.response_aggregation\n\n if (row_limit > 25000) and (len(gsc_df) == 25000):\n temp_row_limit = row_limit - 25000\n temp_start_row = 25000 # not 25001: \"Zero-based index of the first row in the response\"\n frames = [gsc_df]\n while temp_row_limit > 0:\n\n gsc_response2 = self.get_gsc_response(start_date=start_date, end_date=end_date,\n gsc_dimensions=gsc_dimensions,\n row_limit=min(temp_row_limit, 25000),\n start_row=temp_start_row)\n if gsc_response2 is None:\n break # exit the while loop if we get an empty response\n\n # Make a dataframe of the second gsc response\n new_gsc_df = gpd.from_response(response=gsc_response2,\n response_type=\"GSC\",\n gsc_dimensions=gsc_dimensions)\n frames.append(new_gsc_df)\n\n temp_row_limit -= 25000\n temp_start_row += 25000\n\n if len(frames) > 1:\n gsc_df = gpd.GSCDataFrame(pd.concat(frames, ignore_index=True),\n gsc_dimensions=gsc_dimensions)\n\n gsc_df.response_aggregation = _response_aggregation\n\n return gsc_df\n\n def _get_gsc_df(self,\n start_date: datetime.date,\n end_date: datetime.date,\n row_limit: int = 200000,\n gsc_dimensions: Optional[List[str]] = None,\n add_boolean_metrics: bool = True) -> Optional[gpd.GSCDataFrame]:\n\n if gsc_dimensions is None:\n gsc_dimensions = ['date', 'country', 'device', 'page', 'query']\n\n gsc_df = self._get_gsc_df_raw(start_date=start_date,\n end_date=end_date,\n row_limit=row_limit,\n gsc_dimensions=gsc_dimensions)\n\n if gsc_df is None:\n return None\n\n if add_boolean_metrics:\n gsc_df.add_question_column()\n gsc_df.add_transactional_column()\n gsc_df.add_investigation_column()\n\n return gsc_df\n\n def _get_analytics_df(self,\n response_type: str,\n start_date: datetime.date | str,\n end_date: datetime.date | str | None = None,\n dimensions: Optional[List[str]] = None,\n metrics: list[str] | list[list[str]] = None,\n add_boolean_metrics: bool = True,\n filters: Optional[dict] = None,\n limit: int | None = 100_000_000,\n return_response: bool = False,\n raise_errors: bool = False) -> gpd.GADataFrame:\n\n if dimensions is None:\n dimensions = ['dateHour']\n elif isinstance(dimensions, str):\n dimensions = dimensions.split(';')\n dimensions = [re.sub(r\"^ga:\", \"\", _) for _ in dimensions]\n\n if metrics is None:\n metrics = ['itemRevenue']\n\n if not end_date:\n end_date = start_date\n if isinstance(start_date, str):\n start_date = general_utils.parse_date(start_date)\n if isinstance(end_date, str):\n end_date = general_utils.parse_date(end_date)\n if end_date < start_date:\n raise ValueError(\"date range incompatible: end_date < start_date\")\n if start_date > datetime.date.today():\n raise ValueError(\"date range incompatible: start_date in the future\")\n\n if isinstance(metrics, str):\n metrics = metrics.split(';')\n if all(isinstance(_, str) for _ in metrics):\n metrics = [metrics]\n\n metrics_list: list[list[str]] = []\n for _list in metrics:\n metrics_list.extend([_list[10 * i:10 * i + 10] for i in range((len(_list) - 1) // 10 + 1)])\n metrics_list = [[re.sub(r\"^ga:\", \"\", _m) for _m in _sub_list] for _sub_list in metrics_list]\n\n responses: list = []\n breaking_error: bool = False\n breaking_error_type: str | None = None\n for _metrics in metrics_list:\n if response_type == 'GA3':\n _r = self.get_ga3_response(\n start_date=start_date,\n end_date=end_date,\n dimensions=dimensions,\n metrics=_metrics,\n ga_filters=filters,\n raise_http_error=False\n )\n elif response_type == 'GA4':\n _r = self.get_ga4_response(\n start_date=start_date,\n end_date=end_date,\n dimensions=dimensions,\n metrics=_metrics,\n limit=limit\n )\n else:\n raise KeyError(\"response_type not recognised\")\n\n responses.append(_r)\n if _r.get('error_type') is not None:\n if _r.get('error_type') != 'empty_response':\n breaking_error = True\n breaking_error_type = _r.get('error_type')\n break\n\n if return_response:\n return responses\n\n if raise_errors:\n _errors = [_r.get('error') for _r in responses if _r.get('error') is not None]\n if len(_errors) > 0:\n raise _errors[0]\n\n if breaking_error:\n frames = []\n else:\n frames = [gpd.from_response(response=_r) for _r in responses]\n\n # if len(frames)>0:\n # return frames\n\n if len(frames) == 0:\n dataframe = gpd.GADataFrame(df_input=None,\n dimensions=dimensions,\n metrics=general_utils.expand_list(metrics_list),\n start_date=start_date,\n end_date=end_date,\n error = breaking_error_type)\n\n elif all(len(_frame) == 0 for _frame in frames):\n dataframe = gpd.GADataFrame(df_input=None,\n dimensions=dimensions,\n metrics=general_utils.expand_list(metrics_list),\n start_date=start_date,\n end_date=end_date,\n error = breaking_error_type)\n elif len(frames) == 1:\n dataframe = frames[0]\n else:\n dataframe = frames[0]\n for i in range(1, len(frames)):\n dataframe = dataframe.join_on_dimensions(frames[i], how=\"outer\")\n if len(dataframe) == 0 and not dataframe.error:\n dataframe.error = 'empty_response'\n\n if add_boolean_metrics:\n dataframe.add_google_organic_column()\n dataframe.add_has_item_column()\n dataframe.add_new_user_column()\n dataframe.add_shopping_stage_all_column()\n dataframe.add_has_site_search_column()\n\n dataframe.fill_nan_with_zeros()\n\n return dataframe\n\n\n def urlinspection_dict(self, url: str, inspection_index: int = None) -> dict:\n _now = datetime.datetime.utcnow()\n _d = {\"record_date\": _now.date(),\n \"record_time\": _now.time(),\n \"url\": url}\n\n try:\n response = self.get_inspection_response(url)\n except Exception as _e:\n _d.update({\"response\": repr(_e)})\n return _d\n\n _inspectionResult = response.get(\"inspectionResult\")\n if _inspectionResult is None:\n _d.update({\"response\": \"empty\"})\n return _d\n\n _d.update({\"response\": \"success\"})\n\n _indexStatusResult = _inspectionResult.get(\"indexStatusResult\")\n if _indexStatusResult is not None:\n _last_crawl_time = _indexStatusResult.get(\"lastCrawlTime\")\n if _last_crawl_time is not None:\n _last_crawl_time = datetime.datetime.strptime(_last_crawl_time, \"%Y-%m-%dT%H:%M:%SZ\")\n _d.update({\"index_status_result_verdict\": _indexStatusResult.get(\"verdict\"),\n \"coverage_state\": _indexStatusResult.get(\"coverageState\"),\n \"robotstxt_state\": _indexStatusResult.get(\"robotsTxtState\"),\n \"indexing_state\": _indexStatusResult.get(\"indexingState\"),\n \"last_crawl_time\": _last_crawl_time,\n \"page_fetch_state\": _indexStatusResult.get(\"pageFetchState\"),\n \"google_canonical\": _indexStatusResult.get(\"googleCanonical\"),\n \"user_canonical\": _indexStatusResult.get(\"userCanonical\"),\n \"sitemap\": _indexStatusResult.get(\"sitemap\"),\n \"referring_urls\": _indexStatusResult.get(\"referringUrls\"),\n \"crawled_as\": _indexStatusResult.get(\"crawledAs\")})\n\n _mobileUsabilityResult = _inspectionResult.get(\"mobileUsabilityResult\")\n if _mobileUsabilityResult is not None:\n _d.update({\"mobile_usability_result_verdict\": _mobileUsabilityResult.get(\"verdict\")\n })\n\n _mobileUsabilityIssue = _inspectionResult.get(\"mobileUsabilityIssue\")\n if _mobileUsabilityIssue is not None:\n _d.update({\"mobile_usability_result_verdict\": _mobileUsabilityResult.get(\"verdict\")\n })\n return _d\n\n def _get_urlinspection_df(self,\n url_list: List[str]) -> pd.DataFrame:\n if isinstance(url_list, str):\n url_list = [url_list]\n pga_logger.info(f\"{self.__class__.__name__}.get_urlinspection_df() :: \"\n f\"requesting url inspection for {len(url_list)} urls\")\n _frames = []\n for _i, url in enumerate(url_list):\n _frames.append(self.urlinspection_dict(url, inspection_index=_i))\n\n if len(_frames) == 0:\n return pd.DataFrame()\n\n df = pd.DataFrame(_frames)\n\n df.rename(columns={'url': 'url_full'}, inplace=True)\n\n df['url_parameter'] = df['url_full'].apply(general_utils.url_extract_parameter)\n df['url'] = df['url_full'].apply(general_utils.strip_url)\n df['url_nodomain'] = df['url_full'].apply(general_utils.url_strip_domain)\n\n return df\n","repo_name":"Blink-SEO/pygoogalytics","sub_path":"pygoogalytics/googalytics_wrapper.py","file_name":"googalytics_wrapper.py","file_ext":"py","file_size_in_byte":40439,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5420688605","text":"from sys import stdin\nfrom collections import deque\n\ndx = [-1, 1, 0, 0]\ndy = [0, 0, -1, 1]\n\nn, m, k = map(int, stdin.readline().split())\nvisited = [[-1] * m for _ in range(n)]\ngraph = []\nfor _ in range(n):\n graph.append(list(stdin.readline().strip()))\nx1, x2, y1, y2 = map(int, stdin.readline().split())\nx1, x2, y1, y2 = x1 - 1, x2 - 1, y1 - 1, y2 - 1\n\nqueue = deque([(x1, x2)])\nvisited[x1][x2] = 0\n\nwhile queue:\n x, y = queue.popleft()\n if x == y1 and y == y2:\n break\n for i in range(4):\n # 한 방향으로 제한 거리까지 이동해보기\n for j in range(k):\n nx = x + dx[i] * (j + 1)\n ny = y + dy[i] * (j + 1)\n if nx < 0 or nx >= n or ny < 0 or ny >= m or graph[nx][ny] == '#':\n break\n if visited[nx][ny] == visited[x][y] + 1:\n continue\n elif visited[nx][ny] == -1:\n visited[nx][ny] = visited[x][y] + 1\n queue.append((nx, ny))\n else:\n break\n\nprint(visited[y1][y2])\n","repo_name":"H43RO/PythonAlgorithm","sub_path":"00.Solve/BOJ/16000-17000/16930.py","file_name":"16930.py","file_ext":"py","file_size_in_byte":1046,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"24231492711","text":"inp = 1634\r\nnum = inp\r\ndup = inp\r\nsum = 0\r\nno_of_digits = 0\r\n\r\nwhile dup > 0:\r\n dup = int(dup / 10)\r\n no_of_digits = no_of_digits + 1\r\n\r\nwhile num > 0:\r\n part = num % 10\r\n print(part)\r\n val = (part**no_of_digits)\r\n sum = sum + val\r\n print('SUM = {} and VAL = {}\\n'.format(sum,val))\r\n num = int(num / 10)\r\n\r\nif sum == inp:\r\n print(\"Armstrong Number:\",sum)\r\nelse:\r\n print(\"Not Armstrong Number:\",sum)","repo_name":"GitSyedUmar/GitPrograms","sub_path":"Own Sample Programs/ArmstrongNumber.py","file_name":"ArmstrongNumber.py","file_ext":"py","file_size_in_byte":408,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34280557989","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Fri Nov 10 08:20:33 2017\n\n@author: Stebbins\n\"\"\"\n\nimport random\nimport time\nfrom itertools import combinations\n\nnumber = [\"1\",\"2\",\"3\"] # number of shapes\nshape = [\"S\",\"D\",\"C\"] # Square, Diamond, Circle\ncolors = [\"R\",\"G\",\"P\"] # Red, Green, Purple\nfill = [\"S\",\"E\",\"T\"] # Solid, Empty, Transparent\n\n# Create 81 cards, 1 of each combination\noutput_list = []\nfor i in number:\n for j in shape:\n for k in colors:\n for m in fill:\n temp = i+j+k+m\n output_list.append(temp)\n \n#print (output_list)\n#print(\"--------------------------------------------------------\")\n\n \n\n#print (temp_list)\n#print(\"--------------------------------------------------------\")\n#print(output_list)\n#print(\"--------------------------------------------------------\")\n\ndef allUnique(x):\n seen = set()\n return not any(i in seen or seen.add(i) for i in x)\n\ndef allSame(x):\n return x[1:] == x[:-1]\n\ndef dealHand():\n # create a copy of the main list and shuffle it\n temp_list = output_list[:]\n random.shuffle(temp_list) \n \n #Grab the first 12 cards out of the shuffled list for this hand\n this_hand = temp_list[0:6]\n# print (this_hand)\n# print(\"--------------------------------------------------------\")\n\n sets_in_hand = 0\n #Look for a match\n for combo in combinations(this_hand,3):\n# print (combo)\n \n temp1 = combo[0][0]+combo[1][0]+combo[2][0]\n if allSame(temp1) == True or allUnique(temp1) == True:\n \n temp2 = combo[0][1]+combo[1][1]+combo[2][1]\n if allSame(temp2) == True or allUnique(temp2) == True:\n \n temp3 = combo[0][2]+combo[1][2]+combo[2][2]\n if allSame(temp3) == True or allUnique(temp3) == True:\n \n temp4 = combo[0][3]+combo[1][3]+combo[2][3]\n if allSame(temp4) == True or allUnique(temp4) == True:\n# print(\"SET!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\")\n sets_in_hand = sets_in_hand + 1\n# print(\"Total sets in this hand = \",sets_in_hand)\n \n handToString(this_hand,sets_in_hand)\n \n if sets_in_hand > 0:\n return True\n else:\n return False\n \ndef handToString(input_hand,sets_in_hand):\n f = open('OUTPUT.txt','a') \n \n output_string = \"\"\n i = 1\n for each in input_hand:\n output_string = output_string + str(i) + \",\" + each[0] + \",\" + each[1] + \",\" + each[2] + \",\" + each[3] + \"/\"\n i = i + 1\n output_string = output_string + str(sets_in_hand)\n# print (output_string)\n f.write('\\n'+output_string)\n f.close\n \nt = time.time()\nhands = 100000\nhands_with_a_set = 0\nfor i in range (0,hands):\n temp = dealHand()\n \n if temp == True:\n hands_with_a_set = hands_with_a_set + 1\n \nelapsed_time = time.time() - t\nprint(\"\")\nprint(\"Number of hands out of\",hands,\"that contain a set is =\",hands_with_a_set)\nprint(\"time to complete =\",elapsed_time,\"seconds\") ","repo_name":"mikestebbins/SetCardGameGenerator","sub_path":"SetCardGameHandBuilder.py","file_name":"SetCardGameHandBuilder.py","file_ext":"py","file_size_in_byte":3077,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"13589422251","text":"from datetime import timedelta, datetime\nfrom random import randint\n\nfrom airflow import DAG\nfrom airflow.contrib.operators.dataproc_operator import DataProcHiveOperator\n\nUSERNAME = 'asamoilov'\n\ndefault_args = {\n 'owner': USERNAME,\n 'start_date': datetime(2012, 1, 1, 0, 0, 0)\n}\n\ndag = DAG(\n USERNAME + '_data_lake_etl_issue',\n default_args=default_args,\n description='Data Lake ETL tasks',\n schedule_interval=\"0 0 1 1 *\",\n)\n\nods_issue = DataProcHiveOperator(\n task_id='ods_issue',\n dag=dag,\n query=\"\"\"\n INSERT OVERWRITE TABLE asamoilov.ods_issue PARTITION (year = {{ execution_date.year }})\n SELECT CAST(user_id AS BIGINT) as user_id,\n CAST(start_time AS TIMESTAMP) AS start_time,\n CAST(end_time AS TIMESTAMP) AS end_time,\n title,\n description,\n service\n FROM asamoilov.stg_issue WHERE year(start_time) = {{ execution_date.year }};\n \"\"\",\n cluster_name='cluster-dataproc',\n job_name=USERNAME + '_ods_issue_{{ execution_date.year }}_{{ params.job_suffix }}',\n params={\"job_suffix\": randint(0, 100000)},\n region='europe-west3',\n)\n","repo_name":"alexandersamoylov/de-training-airflow","sub_path":"data_lake_etl_issue.py","file_name":"data_lake_etl_issue.py","file_ext":"py","file_size_in_byte":1146,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"20356426596","text":"from pymongo import MongoClient\nfrom bson import ObjectId\nimport cv2\n\n\n\n\n\nclass profile:\n def __init__(self,server=''):\n if server =='':\n self.client = MongoClient('mongodb://10.34.33.28:33333')\n else:\n self.client =MongoClient(server)\n self.db = self.client.database\n self.profilelist =[]\n\n\n\n\n def create (self,imagepath, source, web_url, image_url, datetime, keyword, height, width):\n prev_id = self.db.crawl.count()\n\n documentformatter={\n \"source\":source,\n \"web url\": web_url,\n \"image url\":image_url,\n \"keyword\":keyword,\n \"height\":height,\n \"width\":width,\n \"datetime\": datetime,\n \"_id\" : ObjectId(repr(prev_id+1))\n }\n self.db.crawl.insert([documentformatter])\n\n\n def find_bykeyword (self,tags):\n count = self.db.crawl.find({\"keyword\":{\"$all\":tags}}).count()\n if count > 0:\n for users in count:\n self.profilelist[users] = self.db.crawl.find_one({\"keyword\":{\"$all\":tags}}).skip(users)\n return self.db.crawl.find({\"keyword\":{\"$all\":tags}}).count()\n else:\n return -1\n\n def update(self, tag, change):\n numupdates = self.find_bykeyword(tag)\n\n if numupdates > 0:\n self.db.collection.update({\"keyword\":tag},{\"keyword\":change} )\n#update keywords\n\n \n def delete(self, tag):\n numdeletes = self.find_bykeyword(tag)\n if numdeletes > 0:\n self.db.collection.remove({\"keyword\":tag})\n\n\ntest = profile()\ntest.imagepath = print(\"\\home\\katiechang\\Documents\\\\\")\n\n\n\n\n \n","repo_name":"kkaatttiechang/Database","sub_path":"document.py","file_name":"document.py","file_ext":"py","file_size_in_byte":1660,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32947684508","text":"import numpy as np\nimport random\nimport copy\n\nclass Solver:\n def __init__(self, vehicle_count, track_count, vehicle_lengths, vehicle_series,\n vehicle_restrictions, track_lengths, departure_times,\n schedule_type, blocking_tracks):\n\n #########################\n # Load instance data #\n #########################\n self.vehicle_count = vehicle_count\n self.track_count = track_count\n self.vehicle_lengths = vehicle_lengths\n self.vehicle_series = vehicle_series\n self.vehicle_restrictions = np.array(vehicle_restrictions)\n self.track_lengths = track_lengths\n self.departure_times = departure_times\n self.schedule_type = schedule_type\n self.blocking_tracks = blocking_tracks\n\n self.track_length_sum = sum(self.track_lengths)\n self.vehicle_length_sum = sum(self.vehicle_lengths)\n\n # tracks that are not blocking and are not blocked\n blocked = [item - 1 for sublist in self.blocking_tracks.values() for item in sublist]\n blocking = [item - 1 for item in self.blocking_tracks.keys()]\n self.nonblocking_tracks = [t for t in list(range(self.track_count))\n if t not in blocked + blocking]\n\n # initial solution\n self.initial_solution = self.generate_initial_solution()\n\n def global_goal_first(self, solution):\n # first subfunction\n\n f_1 = 0\n temp_first = None\n for first, second in zip(solution.series_on_track, solution.series_on_track[1:]):\n if first is not None and second is not None and first != second:\n f_1 += 1\n elif first is not None and second is None:\n temp_first = first\n elif first is None and second is not None and temp_first:\n if temp_first != second:\n f_1 += 1\n temp_first = None\n p_1 = 1.0 / (solution.used_tracks_count - 1)\n\n # second subfunction\n f_2 = solution.used_tracks_count\n p_2 = 1.0 / self.track_count\n\n # third subfunction\n f_3 = 0\n for used, leftover in zip(solution.series_on_track, solution.unused_track_capacity):\n if used is not None:\n f_3 += leftover\n p_3 = 1.0 / (self.track_length_sum - self.vehicle_length_sum)\n \n return (p_1 * f_1) + (p_2 * f_2) + (p_3 * f_3)\n\n def global_goal_second(self, solution):\n # first subfunction\n g_1 = 0\n for track_schedule in solution.schedule:\n if len(track_schedule) > 1:\n for first, second in zip(track_schedule, track_schedule[1:]):\n if self.schedule_type[first] == self.schedule_type[second]:\n g_1 += 1\n r_1 = 1.0 / (self.vehicle_count - solution.used_tracks_count)\n\n # second subfunction\n g_2 = 0\n temp_first = None\n for first, second in zip(solution.schedule, solution.schedule[1:]):\n if (len(first) != 0 and len(second) != 0 and\n self.schedule_type[first[-1]] == self.schedule_type[second[0]]):\n g_2 += 1\n elif len(first) != 0 and len(second) == 0:\n temp_first = first[-1]\n elif len(first) == 0 and len(second) != 0 and temp_first:\n if self.schedule_type[temp_first] == self.schedule_type[second[0]]:\n g_2 += 1\n temp_first = None\n r_2 = 1.0 / (solution.used_tracks_count - 1)\n\n # third subfunction\n g_3 = 0\n pair_counter = 0\n for track_schedule in solution.schedule:\n if len(track_schedule) > 1:\n for first, second in zip(track_schedule, track_schedule[1:]):\n g_3 += self.__get_vehicle_departure_gap_factor(first, second)\n pair_counter += 1\n r_3 = 1.0 / (15 * pair_counter)\n\n return (r_1 * g_1) + (r_2 * g_2) + (r_3 * g_3)\n\n def __get_vehicle_departure_gap_factor(self, vehicle_1, vehicle_2):\n deprature_diff = self.departure_times[vehicle_2] - self.departure_times[vehicle_1]\n if deprature_diff >= 10 and deprature_diff <= 20:\n return 15\n elif deprature_diff > 20:\n return 10\n else:\n return -4 * (10 - deprature_diff)\n\n def fitness_func(self, solution):\n return self.global_goal_second(solution) / self.global_goal_first(solution)\n\n def generate_initial_solution(self):\n s = Solution(self.track_count, self.track_lengths)\n\n # generate vehicle list and sort it by departure time (this is priority!)\n vehicles = list(range(self.vehicle_count))\n vehicles_sorted = self.__sort_by_departure_time(vehicles)\n\n tracks = list(range(self.track_count))\n\n for vehicle in vehicles_sorted:\n track_availability = self.vehicle_restrictions[vehicle]\n # Get all tracks that have current vehicle series assigned to them\n # and find the best one that vehicle fits in if it exists\n assigned_tracks = [t for t in tracks\n if s.series_on_track[t] == self.vehicle_series[vehicle]]\n best_capacity = None\n best_track = None\n for t in assigned_tracks:\n if not track_availability[t]:\n continue\n # check for blocking tracks constraint validation\n blocked_tracks = self.blocking_tracks.get(t + 1)\n if blocked_tracks:\n invalid_flag = False\n for bt in blocked_tracks:\n if len(s.schedule[bt - 1]) > 0:\n if (self.departure_times[s.schedule[bt - 1][0]] <\n self.departure_times[vehicle]):\n invalid_flag = True\n if invalid_flag:\n continue\n\n new_capacity = s.unused_track_capacity[t] - self.vehicle_lengths[vehicle] - 0.5\n if new_capacity < 0:\n continue\n elif best_capacity is None or best_capacity > new_capacity:\n best_capacity = new_capacity\n best_track = t\n\n if best_track is not None:\n s.unused_track_capacity[best_track] = best_capacity\n s.schedule[best_track].append(vehicle)\n\n # no track in assigned track was found, need to assign new track to this vehicle series\n else:\n # generate list of tracks that current vehicle can park on\n available_tracks = [t for t in tracks\n if track_availability[t] and s.series_on_track[t] is None]\n # get blocking and non blocking tracks first, if there is no such track left,\n # only then take from blocked tracks\n blocking_tracks = [t - 1 for t in self.blocking_tracks.keys()]\n usable_tracks = [t for t in available_tracks\n if t in self.nonblocking_tracks + blocking_tracks]\n if len(usable_tracks) == 0:\n usable_tracks = available_tracks\n # find track that can store smallest number of vehicle series and use that one\n # this prioritizes less flexible tracks for vehicles that can go into them\n best_can_hold_types = self.vehicle_count + 1\n best_track = None\n for t in usable_tracks:\n can_hold_types = list(self.vehicle_restrictions[:, t]).count(True)\n if (can_hold_types < best_can_hold_types and\n self.vehicle_lengths[vehicle] <= self.track_lengths[t]):\n best_can_hold_types = can_hold_types\n best_track = t\n\n if best_track is not None:\n s.unused_track_capacity[best_track] -= self.vehicle_lengths[vehicle]\n s.series_on_track[best_track] = self.vehicle_series[vehicle]\n s.used_tracks_count += 1\n s.schedule[best_track].append(vehicle)\n else:\n s.unscheduled_vehicles.add(vehicle)\n\n return s\n\n def __sort_by_departure_time(self, target_list):\n zipped_pairs = zip(self.departure_times, target_list)\n z = [x for _, x in sorted(zipped_pairs)]\n return z\n\n def is_valid(self, solution):\n \"\"\"This function checks if solution respects all of constraints.\"\"\"\n tracks = list(range(self.track_count))\n for track, track_index in zip(solution.schedule, tracks):\n if len(track) > 1:\n for first, second in zip(track, track[1:]):\n if self.departure_times[first] > self.departure_times[second]:\n return (False,\n 'Vehicle {} departs later than vehicle {}!'.format(first + 1,\n second + 1))\n if self.vehicle_series[first] != self.vehicle_series[second]:\n return (False,\n 'Vehicle {} is not same series as vehicle {}!'.format(first + 1,\n second + 1))\n for vehicle in track:\n if not self.vehicle_restrictions[vehicle][track_index]:\n return (False,\n 'Vehicle {} is restricted to park on track {}!'.format(vehicle + 1,\n track_index + 1))\n if solution.unused_track_capacity[track_index] < 0:\n return (False,\n 'Track {} is over its capacity!'.format(track_index + 1))\n for blocking_track in self.blocking_tracks.keys():\n for blocked_track in self.blocking_tracks[blocking_track]:\n blocking_schedule = solution.schedule[blocking_track - 1]\n blocked_schedule = solution.schedule[blocked_track - 1]\n if len(blocked_schedule) > 0 and len(blocking_schedule) > 0:\n if (self.departure_times[blocking_schedule[-1]] >\n self.departure_times[blocked_schedule[0]]):\n #print(self.departure_times[blocking_schedule[-1]])\n #print(self.departure_times[blocked_schedule[0]])\n return (False,\n 'First vehicle in blocked track {} departs sooner than last vehicle in blocking track {}'.format(blocked_track,\n blocking_track))\n return (True, '')\n\n def generate_neighbourhood(self, initial_solution, neighbourhood_length):\n neighbourhood = set()\n\n # try to add unscheduled vehicles to produce neighbourhood\n # check if unused capacity is bigger then some of the unscheduled vehicles\n \n unscheduled_neighbourhood = self.generate_unscheduled_neughbourhood(initial_solution)\n for s in unscheduled_neighbourhood:\n if self.is_valid(s)[0] != False and s.schedule != self.initial_solution.schedule:\n neighbourhood.add(s)\n \n while len(neighbourhood) < neighbourhood_length:\n s = copy.deepcopy(initial_solution)\n if len(self.initial_solution.unscheduled_vehicles) > 0:\n # add unscheduled vehicles to scheduled\n s.schedule.append(list(s.unscheduled_vehicles))\n\n tracks_count = len(s.schedule)\n\n # find random track\n selected_track1_index = random.randrange(tracks_count)\n # randomly find track and cannot choose two empty tracks\n selected_track2_index = random.randrange(tracks_count)\n while len(s.schedule[selected_track1_index]) == 0 and len(s.schedule[selected_track2_index]) == 0:\n selected_track2_index = random.randrange(tracks_count) \n\n selected_track2_count = len(s.schedule[selected_track2_index]) \n selected_track1_count = len(s.schedule[selected_track1_index])\n if selected_track1_count > 0 and selected_track2_count > 0:\n \n selected_vehicle1_index = random.randrange(selected_track1_count)\n selected_vehicle2_index = random.randrange(selected_track2_count)\n\n # swap vehicles\n tmp = s.schedule[selected_track1_index][selected_vehicle1_index]\n s.schedule[selected_track1_index][selected_vehicle1_index] = s.schedule[selected_track2_index][selected_vehicle2_index] \n s.schedule[selected_track2_index][selected_vehicle2_index] = tmp\n elif selected_track1_count == 0:\n # first track is empty\n selected_vehicle2_index = random.randrange(selected_track2_count)\n selected_vehicle2 = s.schedule[selected_track2_index].pop(selected_vehicle2_index)\n s.schedule[selected_track1_index].append(selected_vehicle2) \n elif selected_track2_count == 0:\n # second track is empty\n selected_vehicle1_index = random.randrange(selected_track1_count)\n selected_vehicle1 = s.schedule[selected_track1_index].pop(selected_vehicle1_index)\n s.schedule[selected_track2_index].append(selected_vehicle1)\n # update solution\n # remove unscheduled vehicles\n if len(s.unscheduled_vehicles) > 0:\n unscheduled_vehicles = set(s.schedule.pop())\n s.unscheduled_vehicles = unscheduled_vehicles\n\n s.used_tracks_count = self.count_used_tracks(s)\n s.series_on_track = self.initialize_series_on_track(s)\n s.unused_track_capacity = self.update_unused_track_capacity(s)\n if self.is_valid(s)[0] != False and s.schedule != self.initial_solution.schedule:\n neighbourhood.add(s)\n\n return neighbourhood\n\n def generate_unscheduled_neughbourhood(self, solution):\n unused_track_capacity = solution.unused_track_capacity\n unscheduled_neighbourhood = []\n\n for vehicle in solution.unscheduled_vehicles:\n for track_number in range(0, len(solution.schedule)):\n if unused_track_capacity[track_number] >= self.vehicle_lengths[vehicle] + 1:\n # vehicles can park between all other vehicles in track\n # add vehicle to schedule between all elements\n for vehicle_position in range(0, len(solution.schedule[track_number]) + 1):\n s = copy.deepcopy(solution)\n s.schedule[track_number].insert(vehicle_position, vehicle)\n s.unscheduled_vehicles.remove(vehicle)\n s = self.update_solution(s)\n unscheduled_neighbourhood.append(s)\n elif unused_track_capacity[track_number] >= self.vehicle_lengths[vehicle] + 0.5:\n # vehicle can park as first or last in track\n s = copy.deepcopy(solution)\n s.schedule[track_number].insert(0, vehicle)\n s.unscheduled_vehicles.remove(vehicle)\n s = self.update_solution(s)\n unscheduled_neighbourhood.append(s)\n\n s = copy.deepcopy(solution)\n s.schedule[track_number].append()\n s.unscheduled_vehicles.remove(vehicle)\n s = self.update_solution(s)\n unscheduled_neighbourhood.append(s)\n\n return unscheduled_neighbourhood\n\n def update_solution(self, solution):\n s = copy.deepcopy(solution)\n s.used_tracks_count = self.count_used_tracks(s)\n s.series_on_track = self.initialize_series_on_track(s)\n s.unused_track_capacity = self.update_unused_track_capacity(s)\n return s\n\n def count_used_tracks(self, solution):\n count = 0\n for track in solution.schedule:\n if len(track) != 0:\n count += 1\n return count\n\n def initialize_series_on_track(self, solution):\n series_on_track = [None] * self.track_count\n for i in range(0, self.track_count):\n if (len(solution.schedule[i]) > 0):\n series_on_track[i] = self.vehicle_series[solution.schedule[i][0]]\n return series_on_track\n\n def update_unused_track_capacity(self, solution):\n track_lengths = self.track_lengths.copy()\n unused_tracks_capacity = []\n for track, unused_track in zip(solution.schedule, track_lengths):\n for vehicle in track:\n unused_track -= (self.vehicle_lengths[vehicle] + 0.5)\n unused_track += 0.5\n unused_tracks_capacity.append(unused_track)\n return unused_tracks_capacity\n\n def taboo_search(self, taboo_duration, iterations, neighbourhood_length, reset_iteration):\n taboo_list = []\n best_solution = self.initial_solution\n current_solution = best_solution\n current_iteration = 0\n\n while current_iteration < iterations:\n \n neighbourhood = self.generate_neighbourhood(best_solution, neighbourhood_length)\n\n for neighbour in neighbourhood:\n if not (neighbour in taboo_list) and self.fitness_func(best_solution) < self.fitness_func(neighbour):\n best_solution = neighbour\n taboo_list.insert(0, neighbour)\n if taboo_duration == len(taboo_list):\n taboo_list.pop()\n\n current_iteration += 1\n if current_iteration % reset_iteration == 0 or current_iteration == iterations - 1:\n if self.fitness_func(current_solution) < self.fitness_func(best_solution):\n # print('current:', current_solution)\n current_solution = best_solution\n best_solution = self.initial_solution\n print(current_iteration)\n return current_solution\n\n\nclass Solution:\n def __init__(self, track_count, track_lengths):\n\n ##################################\n # Initialize solution attributes #\n ##################################\n\n # List notes which series of vehicle is parked on which track\n self.series_on_track = [None] * track_count\n self.used_tracks_count = 0\n\n # List of empty space left in each track\n self.unused_track_capacity = track_lengths.copy()\n\n # Result data structure - list of tracks where every element is list of vehicles\n self.schedule = [[] for _ in range(track_count)]\n\n # Set of vehicles that couldn't fit anywhere\n self.unscheduled_vehicles = set()\n\n def __str__(self):\n string_schedule = []\n for track in self.schedule:\n string_schedule.append(' '.join([str(v + 1) for v in track]) if len(track) > 0 else '')\n return '\\n'.join(string_schedule)\n \n def __eq__(self, other):\n if isinstance(other, Solution):\n return ((self.schedule == other.schedule) and (self.unscheduled_vehicles == other.unscheduled_vehicles) and (self.series_on_track == other.series_on_track)\n and self.used_tracks_count == other.used_tracks_count and self.unused_track_capacity == other.unused_track_capacity)\n else:\n return False\n def __hash__(self):\n return hash((tuple(self.series_on_track), self.used_tracks_count,(tuple(val) for val in self.schedule), tuple(self.unused_track_capacity), tuple(self.unscheduled_vehicles)))\n pass\n","repo_name":"creationspirit/public-transport-garage-optimization","sub_path":"heuristic.py","file_name":"heuristic.py","file_ext":"py","file_size_in_byte":20038,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"35290168848","text":"# python3 -m pytest test_parameterization.py -v -s\n\nimport requests\nimport json\nimport jsonpath\nimport pytest\nclass TestCases:\n file = open('/Users/user/Desktop/APIAutomation/GetRequest/postData.json', 'r')\n json_input = file.read()\n requests_json = json.loads(json_input)\n @pytest.mark.parametrize(\"nameJob\", requests_json)\n def test_create_new_user(self,nameJob):\n urlPOST = \"https://reqres.in/api/users\"\n response = requests.post(urlPOST, nameJob)\n print(response.content)\n assert response.status_code == 201\n # print(response.headers.get('Content-Length'))\n response_json1 = json.loads(response.text)\n # print(requests_json)\n id = jsonpath.jsonpath(response_json1, 'id')\n print(\"New located id is:\"+id[0])\n\n @pytest.mark.parametrize(\"userIDs\", [\"2\",\"7\"])\n def test_fetch_user_data(self,userIDs):\n urlGET = \"https://reqres.in/api/users/\"+(userIDs)\n response = requests.get(urlGET)\n json_response = json.loads(response.text)\n #print(json_response)\n data = jsonpath.jsonpath(json_response, 'data')\n print(data)\n assert response.status_code == 200\n\n @pytest.mark.parametrize(\"updateUserID\", [\"2\"])\n def test_update_user_data(self,updateUserID):\n urlPut = \"https://reqres.in/api/users/\"+(updateUserID)\n response = requests.put(urlPut)\n assert response.status_code == 200\n response_json1 = json.loads(response.text)\n updated = jsonpath.jsonpath(response_json1, 'updatedAt')\n print(\"Updated data is at: \"+updated[0])\n\n @pytest.mark.parametrize(\"deleteUserID\", [\"2\"])\n def test_delete_user_data(self,deleteUserID):\n urlDELETE = \"https://reqres.in/api/users/\"+(deleteUserID)\n response = requests.delete(urlDELETE)\n assert response.status_code == 204","repo_name":"pitz-qa/API_Automation","sub_path":"Python_pytest/GetRequest/testCases/test_parameterization.py","file_name":"test_parameterization.py","file_ext":"py","file_size_in_byte":1852,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27866142640","text":"import streamlit as st\nimport markdown\nimport matplotlib.image as mpimg\n\ndef main():\n st.title(\"Ipotesi di Business plan\")\n\n show_footer()\n\ndef show_footer():\n \n st.markdown(\"\"\" \n ## Business model canvas\n \n \"\"\")\n img2=mpimg.imread('p5_bmc.png')\n st.image(img2, caption='',use_column_width=True)\n\n\nif __name__ == \"__main__\":\n main()","repo_name":"hananeRaziq/project_work_iot_FAV","sub_path":"pag5_business_plan.py","file_name":"pag5_business_plan.py","file_ext":"py","file_size_in_byte":361,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"11807033746","text":"from typing import Dict, NoReturn, Any\r\n\r\nfrom tp2_utils.message_pipeline.operations.group_aggregates.count import Count\r\nfrom tp2_utils.message_pipeline.operations.group_aggregates.group_aggregate import GroupAggregate\r\nfrom tp2_utils.message_pipeline.operations.group_aggregates.sum import Sum\r\n\r\n\r\nclass Mean(GroupAggregate):\r\n def __init__(self, mean_value: str, mean_suffix: str = '_mean'):\r\n \"\"\"\r\n\r\n :param mean_value: the value to calculate the mean\r\n :param mean_suffix: the suffix to add to the output key\r\n \"\"\"\r\n self.mean_value = mean_value\r\n self.mean_suffix = mean_suffix\r\n self.count = Count()\r\n self.sum = Sum(mean_value)\r\n\r\n def add(self, key: str, values: Dict) -> NoReturn:\r\n \"\"\"\r\n Adds an element to the group statistic\r\n\r\n :param key: the key of the element\r\n :param values: the values associated\r\n \"\"\"\r\n self.count.add(key, values)\r\n self.sum.add(key, values)\r\n\r\n def dump(self) -> Dict[Any, Dict]:\r\n \"\"\"\r\n Dumps all the statistics to a dict\r\n :return: the dict with the group value as key and a dict of statistics\r\n \"\"\"\r\n counts = self.count.dump()\r\n sums = self.sum.dump()\r\n return {k: {self.mean_value + self.mean_suffix: v[self.mean_value + '_sum'] / counts[k]['count']}\r\n for k, v in sums.items()}\r\n","repo_name":"jian01/tp2-distro","sub_path":"tp2_utils_package/tp2_utils/message_pipeline/operations/group_aggregates/mean.py","file_name":"mean.py","file_ext":"py","file_size_in_byte":1403,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"41592190502","text":"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"\nApply susceptibility distortion correction (SDC)\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n.. topic :: Abbreviations\n\n fmap\n fieldmap\n VSM\n voxel-shift map -- a 3D nifti where displacements are in pixels (not mm)\n DFM\n displacements field map -- a nifti warp file compatible with ANTs (mm)\n\n\"\"\"\nfrom __future__ import print_function, division, absolute_import, unicode_literals\n\nimport pkg_resources as pkgr\n\nfrom niworkflows.nipype.pipeline import engine as pe\nfrom niworkflows.nipype.interfaces import afni, ants, fsl, utility as niu\nfrom niworkflows.interfaces import CopyHeader\nfrom niworkflows.interfaces.registration import ANTSApplyTransformsRPT, ANTSRegistrationRPT\n\nfrom fmriprep.interfaces import itk\nfrom fmriprep.interfaces import ReadSidecarJSON\nfrom fmriprep.interfaces.bids import DerivativesDataSink\n\nfrom fmriprep.interfaces import StructuralReference\nfrom fmriprep.workflows.util import init_enhance_and_skullstrip_epi_wf\n\n\ndef init_sdc_unwarp_wf(reportlets_dir, omp_nthreads, fmap_bspline,\n fmap_demean, debug, name='sdc_unwarp_wf'):\n \"\"\"\n This workflow takes in a displacements fieldmap and calculates the corresponding\n displacements field (in other words, an ANTs-compatible warp file).\n\n It also calculates a new mask for the input dataset that takes into account the distortions.\n The mask is restricted to the field of view of the fieldmap since outside of it corrections\n could not be performed.\n\n .. workflow ::\n :graph2use: orig\n :simple_form: yes\n\n from fmriprep.workflows.fieldmap.unwarp import init_sdc_unwarp_wf\n wf = init_sdc_unwarp_wf(reportlets_dir='.', omp_nthreads=8,\n fmap_bspline=False, fmap_demean=True,\n debug=False)\n\n\n Inputs\n\n in_reference\n the reference image\n in_mask\n a brain mask corresponding to ``in_reference``\n name_source\n path to the original _bold file being unwarped\n fmap\n the fieldmap in Hz\n fmap_ref\n the reference (anatomical) image corresponding to ``fmap``\n fmap_mask\n a brain mask corresponding to ``fmap``\n\n\n Outputs\n\n out_reference\n the ``in_reference`` after unwarping\n out_reference_brain\n the ``in_reference`` after unwarping and skullstripping\n out_warp\n the corresponding :abbr:`DFM (displacements field map)` compatible with\n ANTs\n out_jacobian\n the jacobian of the field (for drop-out alleviation)\n out_mask\n mask of the unwarped input file\n out_mask_report\n reportled for the skullstripping\n\n \"\"\"\n\n workflow = pe.Workflow(name=name)\n inputnode = pe.Node(niu.IdentityInterface(\n fields=['in_reference', 'in_reference_brain', 'in_mask', 'name_source',\n 'fmap_ref', 'fmap_mask', 'fmap']), name='inputnode')\n outputnode = pe.Node(niu.IdentityInterface(\n fields=['out_reference', 'out_reference_brain', 'out_warp', 'out_mask',\n 'out_jacobian', 'out_mask_report']), name='outputnode')\n\n meta = pe.Node(ReadSidecarJSON(), name='meta')\n\n # Register the reference of the fieldmap to the reference\n # of the target image (the one that shall be corrected)\n ants_settings = pkgr.resource_filename('fmriprep', 'data/fmap-any_registration.json')\n if debug:\n ants_settings = pkgr.resource_filename(\n 'fmriprep', 'data/fmap-any_registration_testing.json')\n fmap2ref_reg = pe.Node(\n ANTSRegistrationRPT(\n generate_report=True, from_file=ants_settings, output_inverse_warped_image=True,\n output_warped_image=True, num_threads=omp_nthreads),\n name='fmap2ref_reg')\n fmap2ref_reg.interface.num_threads = omp_nthreads\n\n ds_reg = pe.Node(\n DerivativesDataSink(base_directory=reportlets_dir,\n suffix='fmap_reg'), name='ds_reg')\n\n # Map the VSM into the EPI space\n fmap2ref_apply = pe.Node(ANTSApplyTransformsRPT(\n generate_report=True, dimension=3, interpolation='BSpline', float=True),\n name='fmap2ref_apply')\n\n fmap_mask2ref_apply = pe.Node(ANTSApplyTransformsRPT(\n generate_report=False, dimension=3, interpolation='NearestNeighbor',\n float=True),\n name='fmap_mask2ref_apply')\n\n ds_reg_vsm = pe.Node(\n DerivativesDataSink(base_directory=reportlets_dir,\n suffix='fmap_reg_vsm'), name='ds_reg_vsm')\n\n # Fieldmap to rads and then to voxels (VSM - voxel shift map)\n torads = pe.Node(niu.Function(function=_hz2rads), name='torads')\n\n gen_vsm = pe.Node(fsl.FUGUE(save_unmasked_shift=True), name='gen_vsm')\n # Convert the VSM into a DFM (displacements field map)\n # or: FUGUE shift to ANTS warping.\n vsm2dfm = pe.Node(itk.FUGUEvsm2ANTSwarp(), name='vsm2dfm')\n jac_dfm = pe.Node(ants.CreateJacobianDeterminantImage(\n imageDimension=3, outputImage='jacobian.nii.gz'), name='jac_dfm')\n\n unwarp_reference = pe.Node(ANTSApplyTransformsRPT(dimension=3,\n generate_report=False,\n float=True,\n interpolation='LanczosWindowedSinc'),\n name='unwarp_reference')\n\n fieldmap_fov_mask = pe.Node(niu.Function(function=_fill_with_ones), name='fieldmap_fov_mask')\n\n fmap_fov2ref_apply = pe.Node(ANTSApplyTransformsRPT(\n generate_report=False, dimension=3, interpolation='NearestNeighbor',\n float=True),\n name='fmap_fov2ref_apply')\n\n apply_fov_mask = pe.Node(fsl.ApplyMask(), name=\"apply_fov_mask\")\n\n enhance_and_skullstrip_epi_wf = init_enhance_and_skullstrip_epi_wf()\n\n workflow.connect([\n (inputnode, meta, [('name_source', 'in_file')]),\n (inputnode, fmap2ref_reg, [('fmap_ref', 'moving_image')]),\n (inputnode, fmap2ref_apply, [('in_reference', 'reference_image')]),\n (fmap2ref_reg, fmap2ref_apply, [\n ('composite_transform', 'transforms')]),\n (inputnode, fmap_mask2ref_apply, [('in_reference', 'reference_image')]),\n (fmap2ref_reg, fmap_mask2ref_apply, [\n ('composite_transform', 'transforms')]),\n (inputnode, ds_reg_vsm, [('name_source', 'source_file')]),\n (fmap2ref_apply, ds_reg_vsm, [('out_report', 'in_file')]),\n (inputnode, fmap2ref_reg, [('in_reference_brain', 'fixed_image')]),\n (inputnode, ds_reg, [('name_source', 'source_file')]),\n (fmap2ref_reg, ds_reg, [('out_report', 'in_file')]),\n (inputnode, fmap2ref_apply, [('fmap', 'input_image')]),\n (inputnode, fmap_mask2ref_apply, [('fmap_mask', 'input_image')]),\n (fmap2ref_apply, torads, [('output_image', 'in_file')]),\n (meta, gen_vsm, [(('out_dict', _get_ec), 'dwell_time'),\n (('out_dict', _get_pedir_fugue), 'unwarp_direction')]),\n (meta, vsm2dfm, [(('out_dict', _get_pedir_bids), 'pe_dir')]),\n (torads, gen_vsm, [('out', 'fmap_in_file')]),\n (vsm2dfm, unwarp_reference, [('out_file', 'transforms')]),\n (inputnode, unwarp_reference, [('in_reference', 'reference_image')]),\n (inputnode, unwarp_reference, [('in_reference', 'input_image')]),\n (vsm2dfm, outputnode, [('out_file', 'out_warp')]),\n (vsm2dfm, jac_dfm, [('out_file', 'deformationField')]),\n (inputnode, fieldmap_fov_mask, [('fmap_ref', 'in_file')]),\n (fieldmap_fov_mask, fmap_fov2ref_apply, [('out', 'input_image')]),\n (inputnode, fmap_fov2ref_apply, [('in_reference', 'reference_image')]),\n (fmap2ref_reg, fmap_fov2ref_apply, [('composite_transform', 'transforms')]),\n (fmap_fov2ref_apply, apply_fov_mask, [('output_image', 'mask_file')]),\n (unwarp_reference, apply_fov_mask, [('output_image', 'in_file')]),\n (apply_fov_mask, enhance_and_skullstrip_epi_wf, [('out_file', 'inputnode.in_file')]),\n (apply_fov_mask, outputnode, [('out_file', 'out_reference')]),\n (enhance_and_skullstrip_epi_wf, outputnode, [\n ('outputnode.mask_file', 'out_mask'),\n ('outputnode.out_report', 'out_mask_report'),\n ('outputnode.skull_stripped_file', 'out_reference_brain')]),\n (jac_dfm, outputnode, [('jacobian_image', 'out_jacobian')]),\n ])\n\n if not fmap_bspline:\n workflow.connect([\n (fmap_mask2ref_apply, gen_vsm, [('output_image', 'mask_file')])\n ])\n\n if fmap_demean:\n # Demean within mask\n demean = pe.Node(niu.Function(function=_demean), name='demean')\n\n workflow.connect([\n (gen_vsm, demean, [('shift_out_file', 'in_file')]),\n (fmap_mask2ref_apply, demean, [('output_image', 'in_mask')]),\n (demean, vsm2dfm, [('out', 'in_file')]),\n ])\n\n else:\n workflow.connect([\n (gen_vsm, vsm2dfm, [('shift_out_file', 'in_file')]),\n ])\n\n return workflow\n\n\ndef init_pepolar_unwarp_wf(fmaps, bold_file, omp_nthreads, layout=None,\n fmaps_pes=None, bold_file_pe=None,\n name=\"pepolar_unwarp_wf\"):\n \"\"\"\n This workflow takes in a set of EPI files with opposite phase encoding\n direction than the target file and calculates a displacements field\n (in other words, an ANTs-compatible warp file).\n\n This procedure works if there is only one '_epi' file is present\n (as long as it has the opposite phase encoding direction to the target\n file). The target file will be used to estimate the field distortion.\n However, if there is another '_epi' file present with a matching\n phase encoding direction to the target it will be used instead.\n\n Currently, different phase encoding dimension in the target file and the\n '_epi' file(s) (for example 'i' and 'j') is not supported.\n\n The warp field correcting for the distortions is estimated using AFNI's\n 3dQwarp, with displacement estimation limited to the target file phase\n encoding direction.\n\n It also calculates a new mask for the input dataset that takes into\n account the distortions.\n\n .. workflow ::\n :graph2use: orig\n :simple_form: yes\n\n from fmriprep.workflows.fieldmap.unwarp import init_pepolar_unwarp_wf\n wf = init_pepolar_unwarp_wf(fmaps=['/dataset/sub-01/fmap/sub-01_epi.nii.gz'],\n fmaps_pes=['j-'],\n bold_file='/dataset/sub-01/func/sub-01_task-rest_bold.nii.gz',\n bold_file_pe='j',\n omp_nthreads=8)\n\n\n Inputs\n\n in_reference\n the reference image\n in_reference_brain\n the reference image skullstripped\n in_mask\n a brain mask corresponding to ``in_reference``\n name_source\n not used, kept for signature compatibility with ``init_sdc_unwarp_wf``\n\n Outputs\n\n out_reference\n the ``in_reference`` after unwarping\n out_reference_brain\n the ``in_reference`` after unwarping and skullstripping\n out_warp\n the corresponding :abbr:`DFM (displacements field map)` compatible with\n ANTs\n out_mask\n mask of the unwarped input file\n out_mask_report\n reportlet for the skullstripping\n\n \"\"\"\n if not bold_file_pe:\n bold_file_pe = layout.get_metadata(bold_file)[\"PhaseEncodingDirection\"]\n\n usable_fieldmaps_matching_pe = []\n usable_fieldmaps_opposite_pe = []\n args = '-noXdis -noYdis -noZdis'\n rm_arg = {'i': '-noXdis',\n 'j': '-noYdis',\n 'k': '-noZdis'}[bold_file_pe[0]]\n args = args.replace(rm_arg, '')\n\n for i, fmap in enumerate(fmaps):\n if fmaps_pes:\n fmap_pe = fmaps_pes[i]\n else:\n fmap_pe = layout.get_metadata(fmap)[\"PhaseEncodingDirection\"]\n if fmap_pe[0] == bold_file_pe[0]:\n if len(fmap_pe) != len(bold_file_pe):\n add_list = usable_fieldmaps_opposite_pe\n else:\n add_list = usable_fieldmaps_matching_pe\n add_list.append(fmap)\n\n if len(usable_fieldmaps_opposite_pe) == 0:\n raise Exception(\"None of the discovered fieldmaps has the right \"\n \"phase encoding direction. Possibly a problem with \"\n \"metadata. If not, rerun with '--ignore fieldmaps' to \"\n \"skip distortion correction step.\")\n\n workflow = pe.Workflow(name=name)\n inputnode = pe.Node(niu.IdentityInterface(\n fields=['in_reference', 'in_reference_brain', 'in_mask', 'name_source']), name='inputnode')\n\n outputnode = pe.Node(niu.IdentityInterface(\n fields=['out_reference', 'out_reference_brain', 'out_warp', 'out_mask',\n 'out_mask_report']),\n name='outputnode')\n\n prepare_epi_opposite_wf = init_prepare_epi_wf(ants_nthreads=omp_nthreads,\n name=\"prepare_epi_opposite_wf\")\n prepare_epi_opposite_wf.inputs.inputnode.fmaps = usable_fieldmaps_opposite_pe\n\n qwarp = pe.Node(afni.QwarpPlusMinus(pblur=[0.05, 0.05],\n blur=[-1, -1],\n noweight=True,\n minpatch=9,\n nopadWARP=True,\n environ={'OMP_NUM_THREADS': str(omp_nthreads)},\n args=args),\n name='qwarp')\n qwarp.interface.num_threads = omp_nthreads\n\n workflow.connect([\n (inputnode, prepare_epi_opposite_wf, [('in_reference_brain', 'inputnode.ref_brain')]),\n (prepare_epi_opposite_wf, qwarp, [('outputnode.out_file', 'base_file')]),\n ])\n\n if usable_fieldmaps_matching_pe:\n prepare_epi_matching_wf = init_prepare_epi_wf(ants_nthreads=omp_nthreads,\n name=\"prepare_epi_matching_wf\")\n prepare_epi_matching_wf.inputs.inputnode.fmaps = usable_fieldmaps_matching_pe\n\n workflow.connect([\n (inputnode, prepare_epi_matching_wf, [('in_reference_brain', 'inputnode.ref_brain')]),\n (prepare_epi_matching_wf, qwarp, [('outputnode.out_file', 'source_file')]),\n ])\n else:\n workflow.connect([(inputnode, qwarp, [('in_reference_brain', 'source_file')])])\n\n to_ants = pe.Node(niu.Function(function=_fix_hdr), name='to_ants')\n\n cphdr_warp = pe.Node(CopyHeader(), name='cphdr_warp')\n\n unwarp_reference = pe.Node(ANTSApplyTransformsRPT(dimension=3,\n generate_report=False,\n float=True,\n interpolation='LanczosWindowedSinc'),\n name='unwarp_reference')\n\n enhance_and_skullstrip_epi_wf = init_enhance_and_skullstrip_epi_wf()\n\n workflow.connect([\n (inputnode, cphdr_warp, [('in_reference', 'hdr_file')]),\n (qwarp, cphdr_warp, [('source_warp', 'in_file')]),\n (cphdr_warp, to_ants, [('out_file', 'in_file')]),\n (to_ants, unwarp_reference, [('out', 'transforms')]),\n (inputnode, unwarp_reference, [('in_reference', 'reference_image'),\n ('in_reference', 'input_image')]),\n (unwarp_reference, enhance_and_skullstrip_epi_wf, [('output_image', 'inputnode.in_file')]),\n (unwarp_reference, outputnode, [('output_image', 'out_reference')]),\n (enhance_and_skullstrip_epi_wf, outputnode, [\n ('outputnode.mask_file', 'out_mask'),\n ('outputnode.out_report', 'out_report'),\n ('outputnode.skull_stripped_file', 'out_reference_brain')]),\n (to_ants, outputnode, [('out', 'out_warp')]),\n ])\n\n return workflow\n\n\ndef init_prepare_epi_wf(ants_nthreads, name=\"prepare_epi_wf\"):\n \"\"\"\n This workflow takes in a set of EPI files with with the same phase\n encoding direction and returns a single 3D volume ready to be used in\n field distortion estimation.\n\n The procedure involves: estimating a robust template using FreeSurfer's\n 'mri_robust_template', bias field correction using ANTs N4BiasFieldCorrection\n and AFNI 3dUnifize, skullstripping using FSL BET and AFNI 3dAutomask,\n and rigid coregistration to the reference using ANTs.\n\n .. workflow ::\n :graph2use: orig\n :simple_form: yes\n\n from fmriprep.workflows.fieldmap.unwarp import init_prepare_epi_wf\n wf = init_prepare_epi_wf(ants_nthreads=8)\n\n\n Inputs\n\n fmaps\n list of 3D or 4D NIfTI images\n ref_brain\n coregistration reference (skullstripped and bias field corrected)\n\n Outputs\n\n out_file\n single 3D NIfTI file\n\n \"\"\"\n inputnode = pe.Node(niu.IdentityInterface(fields=['fmaps', 'ref_brain']),\n name='inputnode')\n\n outputnode = pe.Node(niu.IdentityInterface(fields=['out_file']),\n name='outputnode')\n\n split = pe.MapNode(fsl.Split(dimension='t'), iterfield='in_file',\n name='split')\n\n merge = pe.Node(\n StructuralReference(auto_detect_sensitivity=True,\n initial_timepoint=1,\n fixed_timepoint=True, # Align to first image\n intensity_scaling=True,\n # 7-DOF (rigid + intensity)\n no_iteration=True,\n subsample_threshold=200,\n out_file='template.nii.gz'),\n name='merge')\n\n enhance_and_skullstrip_epi_wf = init_enhance_and_skullstrip_epi_wf()\n\n ants_settings = pkgr.resource_filename('fmriprep',\n 'data/translation_rigid.json')\n fmap2ref_reg = pe.Node(ants.Registration(from_file=ants_settings,\n output_warped_image=True,\n num_threads=ants_nthreads),\n name='fmap2ref_reg')\n fmap2ref_reg.interface.num_threads = ants_nthreads\n\n workflow = pe.Workflow(name=name)\n\n def _flatten(l):\n return [item for sublist in l for item in sublist]\n\n workflow.connect([\n (inputnode, split, [('fmaps', 'in_file')]),\n (split, merge, [(('out_files', _flatten), 'in_files')]),\n (merge, enhance_and_skullstrip_epi_wf, [('out_file', 'inputnode.in_file')]),\n (enhance_and_skullstrip_epi_wf, fmap2ref_reg, [\n ('outputnode.skull_stripped_file', 'moving_image')]),\n (inputnode, fmap2ref_reg, [('ref_brain', 'fixed_image')]),\n (fmap2ref_reg, outputnode, [('warped_image', 'out_file')]),\n ])\n\n return workflow\n\n\n# Helper functions\n# ------------------------------------------------------------\n\n\ndef _fix_hdr(in_file):\n import nibabel as nb\n import os\n\n nii = nb.load(in_file)\n hdr = nii.header.copy()\n hdr.set_data_dtype(' 0])\n nb.Nifti1Image(data, nii.affine, nii.header).to_filename(\n out_file)\n return out_file\n\n\ndef _fill_with_ones(in_file):\n import nibabel as nb\n import numpy as np\n import os\n\n nii = nb.load(in_file)\n data = np.ones(nii.shape)\n\n out_name = os.path.abspath(\"out.nii.gz\")\n nb.Nifti1Image(data, nii.affine, nii.header).to_filename(out_name)\n\n return out_name\n","repo_name":"vsoch/fmriprep-debug","sub_path":"fmriprep/workflows/fieldmap/unwarp.py","file_name":"unwarp.py","file_ext":"py","file_size_in_byte":21126,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"42696236444","text":"import pandas as pd\nimport numpy as np\nimport yaml\ndef np_encoder(object):\n if isinstance(object, np.generic):\n return object.item()\n\n\n# def save_data(data):\n# if data['ten']=='iot':\n# thoi_gian=data['thoi_gian']\n# # t=np.array(thoi_gian.replace(\"[\",\"\").replace(\"]\",\"\").split(\", \")).astype(int)\n# t=thoi_gian\n# from datetime import datetime\n# d = datetime(t[0],t[1],t[2],t[3],t[4],t[5],)+ pd.Timedelta(hours=7)\n# data['thoi_gian']=d.strftime(\"%a %b %d %H:%M:%S %Y\")\n \n# df = pd.read_csv('weather.csv')\n# df = df.dropna()\n# if len(df.columns)==len(pd.DataFrame(pd.Series(data)).T.columns):\n# df = df.append(pd.DataFrame(pd.Series(data)).T, ignore_index=True)\n\n# df = df.dropna()\n# df.to_csv('weather.csv', index=None)\n# return True\n# else:\n# return False\n\n\n\ndef get_config(config_path: str):\n if config_path.endswith(\"json\"):\n with open(config_path, 'r') as f:\n config = json.load(f)\n elif config_path.endswith(\"yml\"):\n with open(config_path, 'r') as f:\n config = yaml.load(f, Loader=yaml.FullLoader)\n return config\n","repo_name":"nvhuy898/weather_api","sub_path":"utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":1181,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"31047024655","text":"from odoo import models\nfrom odoo.exceptions import UserError\nfrom odoo.tests.common import Form\n\n\nCOUNTRY_EAS = {\n 'HU': 9910,\n\n 'AD': 9922,\n 'AL': 9923,\n 'BA': 9924,\n 'BE': 9925,\n 'BG': 9926,\n 'CH': 9927,\n 'CY': 9928,\n 'CZ': 9929,\n 'DE': 9930,\n 'EE': 9931,\n 'UK': 9932,\n 'GR': 9933,\n 'HR': 9934,\n 'IE': 9935,\n 'LI': 9936,\n 'LT': 9937,\n 'LU': 9938,\n 'LV': 9939,\n 'MC': 9940,\n 'ME': 9941,\n 'MK': 9942,\n 'MT': 9943,\n 'NL': 9944,\n 'PL': 9945,\n 'PT': 9946,\n 'RO': 9947,\n 'RS': 9948,\n 'SI': 9949,\n 'SK': 9950,\n 'SM': 9951,\n 'TR': 9952,\n 'VA': 9953,\n\n 'SE': 9955,\n\n 'FR': 9957\n}\n\n\nclass AccountEdiFormat(models.Model):\n ''' This edi_format is \"abstract\" meaning that it provides an additional layer for similar edi_format (formats\n deriving from EN16931) that share some functionalities but needs to be extended to be used.\n '''\n _inherit = 'account.edi.format'\n\n ####################################################\n # Export\n ####################################################\n\n def _get_bis3_values(self, invoice):\n values = super()._get_ubl_values(invoice)\n values.update({\n 'customization_id': 'urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0',\n 'profile_id': 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0',\n })\n\n all_tax_detail_per_tax = {}\n for line_vals in values['invoice_line_vals_list']:\n line_vals['price_subtotal_with_no_tax_closing'] = line_vals['line'].price_subtotal\n tax_detail_per_tax = {}\n for tax_detail_vals in line_vals['tax_detail_vals_list']:\n tax = tax_detail_vals['tax']\n\n tax_percent = tax.amount\n tax_category = 'S' if tax_percent else 'Z'\n key = (tax_category, tax_percent)\n tax_detail_per_tax.setdefault(key, {\n 'base': tax_detail_vals['tax_base_amount'],\n 'base_currency': tax_detail_vals['tax_base_amount_currency'],\n 'amount': 0.0,\n 'amount_currency': 0.0,\n 'tax_percent': tax_percent,\n 'tax_category': tax_category,\n })\n vals = tax_detail_per_tax[key]\n\n vals['amount'] += tax_detail_vals['tax_amount_closing']\n vals['amount_currency'] += tax_detail_vals['tax_amount_currency_closing']\n delta_tax = tax_detail_vals['tax_amount_currency'] - tax_detail_vals['tax_amount_currency_closing']\n line_vals['price_subtotal_with_no_tax_closing'] += delta_tax\n\n if len(tax_detail_per_tax) > 1:\n raise UserError(\"Multiple vat percentage not supported on the same invoice line\")\n\n line_vals['tax_detail_vals'] = list(tax_detail_per_tax.values())[0]\n\n for key, tax_vals in tax_detail_per_tax.items():\n all_tax_detail_per_tax.setdefault(key, {\n **tax_vals,\n 'base': 0.0,\n 'base_currency': 0.0,\n 'amount': 0.0,\n 'amount_currency': 0.0,\n })\n vals = all_tax_detail_per_tax[key]\n vals['base'] += tax_vals['base']\n vals['base_currency'] += tax_vals['base_currency']\n vals['amount'] += tax_vals['amount']\n vals['amount_currency'] += tax_vals['amount_currency']\n\n values['tax_detail_vals_list'] = list(all_tax_detail_per_tax.values())\n values['total_untaxed_amount'] = sum(x['price_subtotal_with_no_tax_closing'] for x in values['invoice_line_vals_list'])\n values['total_tax_amount'] = sum(x['amount'] for x in values['tax_detail_vals_list'])\n values['total_tax_amount_currency'] = sum(x['amount_currency'] for x in values['tax_detail_vals_list'])\n\n for partner_vals in (values['customer_vals'], values['supplier_vals']):\n partner = partner_vals['partner']\n if partner.country_id.code in COUNTRY_EAS:\n partner_vals['bis3_endpoint'] = partner.vat\n partner_vals['bis3_endpoint_scheme'] = COUNTRY_EAS[partner.country_id.code]\n\n return values\n\n ####################################################\n # Import\n ####################################################\n\n def _bis3_get_extra_partner_domains(self, tree):\n \"\"\" Returns an additional domain to find the partner of the invoice based on specific implementation of BIS3.\n TO OVERRIDE\n\n :returns: a list of domains\n \"\"\"\n return []\n\n def _decode_bis3(self, tree, invoice):\n \"\"\" Decodes an EN16931 invoice into an invoice.\n :param tree: the UBL (EN16931) tree to decode.\n :param invoice: the invoice to update or an empty recordset.\n :returns: the invoice where the UBL (EN16931) data was imported.\n \"\"\"\n def _find_value(path, root=tree):\n element = root.find(path)\n return element.text if element is not None else None\n\n element = tree.find('./{*}InvoiceTypeCode')\n if element is not None:\n type_code = element.text\n move_type = 'in_refund' if type_code == '381' else 'in_invoice'\n else:\n move_type = 'in_invoice'\n\n default_journal = invoice.with_context(default_move_type=move_type)._get_default_journal()\n\n with Form(invoice.with_context(default_move_type=move_type, default_journal_id=default_journal.id)) as invoice_form:\n # Reference\n element = tree.find('./{*}ID')\n if element is not None:\n invoice_form.ref = element.text\n\n # Dates\n element = tree.find('./{*}IssueDate')\n if element is not None:\n invoice_form.invoice_date = element.text\n element = tree.find('./{*}DueDate')\n if element is not None:\n invoice_form.invoice_date_due = element.text\n\n # Currency\n currency = self._retrieve_currency(_find_value('./{*}DocumentCurrencyCode'))\n if currency:\n invoice_form.currency_id = currency\n\n # Partner\n specific_domain = self._bis3_get_extra_partner_domains(tree)\n invoice_form.partner_id = self._retrieve_partner(\n name=_find_value('./{*}AccountingSupplierParty/{*}Party/*/{*}Name'),\n phone=_find_value('./{*}AccountingSupplierParty/{*}Party/*/{*}Telephone'),\n mail=_find_value('./{*}AccountingSupplierParty/{*}Party/*/{*}ElectronicMail'),\n vat=_find_value('./{*}AccountingSupplierParty/{*}Party/{*}PartyTaxScheme/{*}CompanyID'),\n domain=specific_domain,\n )\n\n # Lines\n for eline in tree.findall('.//{*}InvoiceLine'):\n with invoice_form.invoice_line_ids.new() as invoice_line_form:\n # Product\n invoice_line_form.product_id = self._retrieve_product(\n default_code=_find_value('./{*}Item/{*}SellersItemIdentification/{*}ID', eline),\n name=_find_value('./{*}Item/{*}Name', eline),\n barcode=_find_value('./{*}Item/{*}StandardItemIdentification/{*}ID[@schemeID=\\'0160\\']', eline)\n )\n\n # Quantity\n element = eline.find('./{*}InvoicedQuantity')\n quantity = element is not None and float(element.text) or 1.0\n invoice_line_form.quantity = quantity\n\n # Price Unit\n element = eline.find('./{*}Price/{*}PriceAmount')\n price_unit = element is not None and float(element.text) or 0.0\n line_extension_amount = element is not None and float(element.text) or 0.0\n invoice_line_form.price_unit = price_unit or line_extension_amount / invoice_line_form.quantity or 0.0\n\n # Name\n element = eline.find('./{*}Item/{*}Description')\n invoice_line_form.name = element is not None and element.text or ''\n\n # Taxes\n tax_elements = eline.findall('./{*}Item/{*}ClassifiedTaxCategory')\n invoice_line_form.tax_ids.clear()\n for tax_element in tax_elements:\n invoice_line_form.tax_ids.add(self._retrieve_tax(\n amount=_find_value('./{*}Percent', tax_element),\n type_tax_use=invoice_form.journal_id.type\n ))\n\n return invoice_form.save()\n","repo_name":"Kinal-dev/crm","sub_path":"addons/account_edi_ubl_bis3/models/account_edi_format.py","file_name":"account_edi_format.py","file_ext":"py","file_size_in_byte":8794,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"13360366059","text":"# Tests for sprinkler.py\nimport unittest\nimport time\nimport pickle\nfrom mock import *\n\n# We need to mock RPi (that is used internally by \n# the sprinkler to active the pins) in order to make\n# the test run.\nmock = Mock()\nwith patch.dict('sys.modules', {'RPIO': mock, 'RPi': mock}):\n\timport sprinkler\n\n\tclass SprinklerTest(unittest.TestCase):\n\n\t\tdef setUp(self):\n\t\t\tself.sprinkler = sprinkler.Sprinkler('configuration.yaml', 5, [ 1, 2 ])\n\n\t\tdef test_when_operate_called_setup_pid(self):\n\t\t\t# when\n\t\t\tself.sprinkler.start()\n\t\t\ttime.sleep(0.5) # Just make sure sprinkler has read the file\n\t\t\t# then - we know the pid location\n\t\t\t_f = open('/tmp/sprinkler.pid')\n\t\t\t_isRunning = pickle.load(_f)\n\t\t\t_f.close()\n\t\t\t# assert\n\t\t\tassert _isRunning is 1\n\n\t\tdef test_when_finished_operate_setup_pid_to_0(self):\n\t\t\t# when\n\t\t\t#self.sprinkler.start()\n\t\t\ttime.sleep(0.5) # Just make sure sprinkler has read the file\n\t\t\t# then\n\t\t\ttime.sleep(6)\n\t\t\t_f = open('/tmp/sprinkler.pid')\n\t\t\t_isRunning = pickle.load(_f)\n\t\t\t_f.close()\n\t\t\t# assert\n\t\t\tassert _isRunning is 0\n","repo_name":"djalexd/py-sprinkler","sub_path":"test_sprinkler.py","file_name":"test_sprinkler.py","file_ext":"py","file_size_in_byte":1045,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"1445662105","text":"\"\"\"\nMLSTRUCTFP - SETUP\n\nSetup distribution.\n\"\"\"\n\n# Library imports\nfrom setuptools import setup, find_packages\nimport MLStructFP\n\n# Load readme\nwith open('README.rst') as f:\n long_description = f.read()\n\n# Load requirements\nrequirements = [\n 'IPython == 8.12.2',\n 'matplotlib == 3.5.3',\n 'numpy == 1.18.5',\n 'opencv-python == 4.5.1.48',\n 'Pillow == 9.5.0',\n 'plotly == 5.11.0',\n 'requests == 2.31.0',\n 'six == 1.16.0',\n 'tabulate == 0.9.0'\n]\n\n# Setup library\nsetup(\n author=MLStructFP.__author__,\n author_email=MLStructFP.__email__,\n classifiers=[\n 'Natural Language :: English',\n 'Operating System :: OS Independent',\n 'Programming Language :: Python :: 3.8',\n 'Programming Language :: Python',\n 'Topic :: Scientific/Engineering',\n 'Topic :: Scientific/Engineering :: Artificial Intelligence',\n 'Topic :: Scientific/Engineering :: Image Recognition',\n 'Topic :: Scientific/Engineering :: Visualization'\n ],\n description=MLStructFP.__description__,\n long_description=long_description,\n include_package_data=True,\n install_requires=requirements,\n extras_require={\n 'test': ['nose2[coverage_plugin]']\n },\n keywords=MLStructFP.__keywords__,\n name='MLStructFP',\n packages=find_packages(exclude=[\n '.idea',\n '.ipynb_checkpoints',\n 'test'\n ]),\n platforms=['any'],\n project_urls={\n 'Bug Tracker': MLStructFP.__url_bug_tracker__,\n 'Documentation': MLStructFP.__url_documentation__,\n 'Source Code': MLStructFP.__url_source_code__\n },\n python_requires='>=3.8',\n url=MLStructFP.__url__,\n version=MLStructFP.__version__\n)\n","repo_name":"MLSTRUCT/MLSTRUCT-FP","sub_path":"setup.py","file_name":"setup.py","file_ext":"py","file_size_in_byte":1705,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"72402305884","text":"import pyspark\nfrom delta import *\n\nfrom spark.session_manager import SparkSessionManager\n\nif __name__ == '__main__':\n builder = pyspark.sql.SparkSession.builder.appName(\"main\") \\\n .config(\"hive.metastore.uris\", \"thrift://localhost:9083\")\n\n spark = configure_spark_with_delta_pip(builder) \\\n .enableHiveSupport() \\\n .getOrCreate()\n\n r = spark.conf.get(\"spark.sql.catalogImplementation\")\n print(r)\n","repo_name":"jinho-yoo-jack/spark_with_deltalake","sub_path":"lakehouse/main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":430,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"11981186977","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Fri Jul 9 20:08:41 2020\n\n@author: jiching\n\n\"\"\"\nimport numpy as np\nimport pandas as pd\nfrom pandas.core.frame import DataFrame\n\ndef save_1array(title,path,array1,name1):\n aaa=DataFrame(array1,columns=[str(name1)])\n aaa.to_csv(path+'/'+str(title)+'.csv',index=False)\n\ndef save_2array(title,path,array1,array2,name1,name2):\n aaa=DataFrame(array1,columns=[str(name1)])\n bbb=DataFrame(array2,columns=[str(name2)])\n n2 = pd.concat([aaa,bbb],axis=1)\n n2.to_csv(path+'/'+str(title)+'.csv',index=False)\n \ndef save_3array(title,path,array1,array2,array3,name1,name2,name3):\n aaa=DataFrame(array1,columns=[str(name1)])\n bbb=DataFrame(array2,columns=[str(name2)])\n ccc=DataFrame(array3,columns=[str(name3)])\n n3 = pd.concat([aaa,bbb,ccc],axis=1)\n n3.to_csv(path+'/'+str(title)+'.csv',index=False)\n \ndef save_4array(title,path,array1,array2,array3,array4,name1,name2,name3,name4):\n aaa=DataFrame(array1,columns=[str(name1)])\n bbb=DataFrame(array2,columns=[str(name2)])\n ccc=DataFrame(array3,columns=[str(name3)])\n ddd=DataFrame(array4,columns=[str(name4)])\n n4 = pd.concat([aaa,bbb,ccc,ddd],axis=1)\n n4.to_csv(path+'/'+str(title)+'.csv',index=False) \n\ndef save_5array(title,path,array1,array2,array3,array4,array5,name1,name2,name3,name4,name5):\n aaa=DataFrame(array1,columns=[str(name1)])\n bbb=DataFrame(array2,columns=[str(name2)])\n ccc=DataFrame(array3,columns=[str(name3)])\n ddd=DataFrame(array4,columns=[str(name4)])\n eee=DataFrame(array5,columns=[str(name5)])\n n5 = pd.concat([aaa,bbb,ccc,ddd,eee],axis=1)\n n5.to_csv(path+'/'+str(title)+'.csv',index=False)\n \ndef save_6array(title,path,array1,array2,array3,array4,array5,array6,name1,name2,name3,name4,name5,name6):\n aaa=DataFrame(array1,columns=[str(name1)])\n bbb=DataFrame(array2,columns=[str(name2)])\n ccc=DataFrame(array3,columns=[str(name3)])\n ddd=DataFrame(array4,columns=[str(name4)])\n eee=DataFrame(array5,columns=[str(name5)])\n fff=DataFrame(array6,columns=[str(name6)])\n n6 = pd.concat([aaa,bbb,ccc,ddd,eee,fff],axis=1)\n n6.to_csv(path+'/'+str(title)+'.csv',index=False)\n\ndef read_data(title,path):\n file=pd.read_csv(path+'/'+title+'.csv')\n file=np.array(file)\n return file\ndef read_data_column(title,path,column_index):\n file=pd.read_csv(path+'/'+title+'.csv')\n temp2=file[(column_index-1)]\n temp2=temp2.tolist()\n return temp2\ndef save_1txt(title,path,array1):\n f = open(path +\"/\"+ title + \".txt\",'w')\n for kk in range(len(array1)):\n f.write('%f\\n'%array1[kk])\n f.close()\ndef save_2txt(title,path,array1,array2):\n f = open(path +\"/\"+ title + \".txt\",'w')\n for kk in range(len(array1)):\n f.write('%f '%array1[kk])\n f.write('%f\\n'%array2[kk])\n f.close()\ndef save_3txt(title,path,array1,array2,array3):\n f = open(path +\"/\"+ title + \".txt\",'w')\n for kk in range(len(array1)):\n f.write('%f '%array1[kk])\n f.write('%f '%array2[kk])\n f.write('%f\\n'%array3[kk])\n f.close()\ndef save_4txt(title,path,array1,array2,array3,array4):\n f = open(path +\"/\"+ title + \".txt\",'w')\n for kk in range(len(array1)):\n f.write('%f '%array1[kk])\n f.write('%f '%array2[kk])\n f.write('%f '%array3[kk])\n f.write('%f\\n'%array4[kk])\n f.close()\ndef save_5txt(title,path,array1,array2,array3,array4,array5):\n f = open(path +\"/\"+ title + \".txt\",'w')\n for kk in range(len(array1)):\n f.write('%f '%array1[kk])\n f.write('%f '%array2[kk])\n f.write('%f '%array3[kk])\n f.write('%f '%array4[kk])\n f.write('%f\\n'%array5[kk])\n f.close()\ndef save_6txt(title,path,array1,array2,array3,array4,array5,array6):\n f = open(path +\"/\"+ title + \".txt\",'w')\n for kk in range(len(array1)):\n f.write('%f '%array1[kk])\n f.write('%f '%array2[kk])\n f.write('%f '%array3[kk])\n f.write('%f '%array4[kk])\n f.write('%f '%array5[kk])\n f.write('%f\\n'%array6[kk])\n f.close()\n","repo_name":"chingchenn/pythonFLAC","sub_path":"function_savedata.py","file_name":"function_savedata.py","file_ext":"py","file_size_in_byte":4027,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"24905883837","text":"import argparse\nimport json\nimport os\nimport random\nimport tarfile\n\nparser = argparse.ArgumentParser(\n description=\"Convert an existing ASR dataset to tarballs compatible with TarredAudioToTextDataLayer.\"\n)\nparser.add_argument(\n \"--manifest_path\", default=None, type=str, required=True, help=\"Path to the existing dataset's manifest.\"\n)\n\n# Optional arguments\nparser.add_argument(\n \"--target_dir\",\n default='./tarred',\n type=str,\n help=\"Target directory for resulting tarballs and manifest. Defaults to `./tarred`. Creates the path if ncessary.\",\n)\nparser.add_argument(\n \"--num_shards\",\n default=1,\n type=int,\n help=\"Number of shards (tarballs) to create. Used for partitioning data among workers.\",\n)\nparser.add_argument(\n '--max_duration',\n default=None,\n type=float,\n help='Maximum duration of audio clip in the dataset. By default, it is None and will not filter files.',\n)\nparser.add_argument(\n '--min_duration',\n default=None,\n type=float,\n help='Minimum duration of audio clip in the dataset. By default, it is None and will not filter files.',\n)\nparser.add_argument(\n \"--shuffle\",\n action='store_true',\n help=\"Whether or not to randomly shuffle the samples in the manifest before tarring/sharding.\",\n)\nparser.add_argument(\"--shuffle_seed\", type=int, help=\"Random seed for use if shuffling is enabled.\")\nargs = parser.parse_args()\n\n\ndef create_shard(entries, target_dir, new_entries, shard_id):\n \"\"\"Creates a tarball containing the audio files from `entries`.\n \"\"\"\n tar = tarfile.open(os.path.join(target_dir, f'audio_{shard_id}.tar'), mode='w')\n\n for entry in entries:\n # We squash the filename since we do not preserve directory structure of audio files in the tarball.\n base, ext = os.path.splitext(entry['audio_filepath'])\n base = base.replace('/', '_')\n # Need the following replacement as long as WebDataset splits on first period\n base = base.replace('.', '_')\n squashed_filename = f'{base}{ext}'\n tar.add(entry['audio_filepath'], arcname=squashed_filename)\n\n new_entry = {\n 'audio_filepath': squashed_filename,\n 'duration': entry['duration'],\n 'text': entry['text'],\n 'shard_id': shard_id, # Keep shard ID for recordkeeping\n }\n new_entries.append(new_entry)\n\n tar.close()\n\n\ndef main():\n manifest_path = args.manifest_path\n target_dir = args.target_dir\n num_shards = args.num_shards\n max_duration = args.max_duration\n min_duration = args.min_duration\n shuffle = args.shuffle\n seed = args.shuffle_seed\n\n if not os.path.exists(target_dir):\n os.makedirs(target_dir)\n\n # Read the existing manifest\n entries = []\n filtered_entries = 0\n with open(manifest_path, 'r') as m:\n for line in m:\n entry = json.loads(line)\n if (max_duration is None or entry['duration'] < max_duration) and (\n min_duration is None or entry['duration'] > min_duration\n ):\n entries.append(entry)\n else:\n filtered_entries += 1\n\n if filtered_entries > 0:\n print(f\"Filtered {filtered_entries} files.\")\n\n if shuffle:\n random.seed(seed)\n print(\"Shuffling...\")\n random.shuffle(entries)\n\n # Create shards and updated manifest entries\n new_entries = []\n print(f\"Remainder: {len(entries) % num_shards}\")\n for i in range(num_shards):\n start_idx = (len(entries) // num_shards) * i\n end_idx = start_idx + (len(entries) // num_shards)\n print(f\"Shard {i} has entries {start_idx} ~ {end_idx}\")\n if i == num_shards - 1:\n # We discard in order to have the same number of entries per shard.\n print(f\"Have {len(entries) - end_idx} entries left over that will be discarded.\")\n\n create_shard(entries[start_idx:end_idx], target_dir, new_entries, i)\n\n # Write manifest\n new_manifest_path = os.path.join(target_dir, 'tarred_audio_manifest.json')\n with open(new_manifest_path, 'w') as m2:\n for entry in new_entries:\n json.dump(entry, m2)\n m2.write('\\n')\n\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"kssteven418/Q-ASR","sub_path":"scripts/convert_to_tarred_audio_dataset.py","file_name":"convert_to_tarred_audio_dataset.py","file_ext":"py","file_size_in_byte":4222,"program_lang":"python","lang":"en","doc_type":"code","stars":29,"dataset":"github-code","pt":"86"}
+{"seq_id":"71531919963","text":"import zmq\nimport sys\nimport json\nfrom os import remove, mkdir\nfrom os.path import exists\nfrom hashlib import sha256\n\ncontext = zmq.Context()\nsockets = {}\nproxySocket = context.socket(zmq.REQ)\nproxySocket.connect(\"tcp://localhost:7556\")\nPS = 1024*1024*5\n\ndef full_hash(name):\n f = open(name, \"rb\")\n sha = sha256()\n i = 0\n while True:\n f.seek(PS*i)\n data = f.read(PS)\n if data:\n i+=1\n sha.update(data)\n else:\n f.close()\n return sha.hexdigest()\n\ndef hash_parts(name):\n h = [] #Lista de hashes de cada una de las partes\n sha = sha256() # Variable para el hash del archihvo completo\n with open(name, \"rb\") as f:\n while True:\n data = f.read(PS)\n if data:\n h.append(sha256(data).hexdigest()) #Se agrega el sha de una parte a la lista\n sha.update(data) #Se actualiza el sha del archivo completo agregando una parte\n else:\n break\n return sha.hexdigest(), h\n\ndef download(name):\n # try:\n print(name)\n proxySocket.send_multipart((b\"#client-download\", name.encode()))\n parts = proxySocket.recv_json()\n if not \"Error\" in parts:\n d = {}\n for server in parts:\n socket = context.socket(zmq.REQ)\n socket.connect(server)\n for p in parts[server]:\n path = \"downloaded/\"+parts[server][p]\n socket.send_multipart((b\"#d\", parts[server][p].encode()))\n msg = socket.recv_multipart()\n if msg[0] == b\"ok\":\n sha = sha256(msg[2]).hexdigest()\n if sha == parts[server][p]:\n msg[1] = msg[1].decode()\n f = open(path, \"wb\")\n f.write(msg[2])\n f.close()\n d[int(p)] = msg[1]\n else:\n print(\"Error del servidor\")\n s = dict(sorted(d.items()))\n file = open(\"downloaded/\"+name,\"ab\")\n for p in s:\n part = open(\"downloaded/\"+s[p], \"rb\")\n data = part.read()\n file.seek(PS*p)\n file.write(data)\n part.close()\n remove(\"downloaded/\"+s[p])\n file.close()\n else:\n print(\"Error del proxy\")\n\ndef upload(name):\n try:\n sha_file, parts = hash_parts(name)\n msg = [b\"#client-upload\", sha_file.encode(), name.encode()]\n for p in parts:\n msg.append(p.encode())\n proxySocket.send_multipart(tuple(msg))\n d = proxySocket.recv_json()\n i = 0\n for server in d:\n socket = context.socket(zmq.REQ)\n socket.connect(server)\n f = open(name, \"rb\")\n print(server)\n for p in d[server]:\n print(p)\n socket.send(b\"#u\")\n socket.recv()\n f.seek(PS*int(p))\n data = f.read(PS)\n sha = sha256(data).hexdigest()\n if not sha == d[server][p]:\n raise Exception\n i+=1\n socket.send_multipart((sha.encode(),data,sha_file.encode(), name.encode()))\n sha_server = socket.recv().decode()\n if sha == sha_server:\n print(\"Parte\",i,\"subida\")\n else:\n raise Exception\n f.close()\n socket.close()\n dictt = json.load(open(\"files.json\",\"r\"))\n if not name in dictt[\"files\"]:\n dictt[\"files\"][name] = sha_file\n if not sha_file in dictt[\"parts\"]:\n dictt[\"parts\"][sha_file] = d\n with open(\"files.json\", \"w+\") as file:\n file.write(json.dumps(dictt,indent=4))\n file.close()\n except:\n print(\"Error\")\n socket.send(b\"end\")\n\ndef listar():\n proxySocket.send(b\"#list\")\n cad = proxySocket.recv().decode()\n files = cad.split(\",\")\n for f in files:\n print(f)\n\ndef main():\n if not exists(\"downloaded\"):\n mkdir(\"downloaded\")\n if len(sys.argv) >= 2:\n if sys.argv[1] == \"upload\":\n print(\"Subiendo...\")\n upload(sys.argv[2])\n print(\"Terminado\")\n elif sys.argv[1] == \"download\":\n download(sys.argv[2])\n elif sys.argv[1] == \"listar\":\n listar()\n else:\n print(\"Uso incorrecto\")\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"maicandrew/ClienteServidor","sub_path":"Proxy/client/cliente.py","file_name":"cliente.py","file_ext":"py","file_size_in_byte":4528,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5893641604","text":"\"\"\"\nFind the maximum sublist sum of an array containing positive and negative integers.\n\"\"\"\nfrom typing import List, Optional\n\nNO_SOLUTION = -999\n\n\ndef max_sublist_sum(data: List[int]) -> Optional[int]:\n # return _solve_brute_force(data)\n # return _solve_iterative(data)\n return _solve_linear(data)\n\n\ndef _solve_linear(data: List[int]) -> Optional[int]:\n # For the whole array from 0 -> (n-1):\n # - If index 0 is negative, we don't want that element.\n # - If index 0 is positive, and sum(index 0 -> k) is negative, then item k must be sufficiently negative to wipe\n # out positivity from 0 -> k-1.\n #\n # Index: 0 k\n # P------------------>PN\n # ----------------------\n #\n # Notes:\n # - There is no way for sum(index 1 -> k-1) to be more positive than what k would wipe out, because that would\n # imply index 0 to be negative, and if index 0 is negative, there's no reason to start accumulating from that\n # index.\n # - During the time when we're traversing the array, we should record our best solution.\n #\n # If we want to track the indices of the best solution:\n # - Track the start index of the current solution.\n # - Every time we update the best solution, the best solution goes from start index of the current solution to\n # current index.\n best_solution = NO_SOLUTION\n cur_solution = 0\n for val in data:\n cumulative_sum = cur_solution + val\n\n # Update the best solution.\n best_solution = max(best_solution, cumulative_sum)\n\n # Decide whether or not to reset the current solution.\n if cumulative_sum < 0:\n cur_solution = 0\n else:\n cur_solution = cumulative_sum\n\n return best_solution if best_solution != NO_SOLUTION else None\n\n\ndef _solve_iterative(data: List[int]) -> int:\n max_sum = 0\n for i in range(0, len(data)):\n cumulative_sum = 0\n for j in range(i, len(data)):\n cumulative_sum += data[j]\n if cumulative_sum > max_sum:\n max_sum = cumulative_sum\n return max_sum\n\n\ndef _solve_brute_force(data: List[int]) -> int:\n # O(n^3) because for each of n^2 sublists, we have to pull up to n items from the list.\n max_sum = 0\n for i in range(0, len(data)):\n for j in range(i + 1, len(data) + 1):\n cur_sum = sum(data[i:j])\n print('{}-{}: {}'.format(i, j, cur_sum))\n if cur_sum > max_sum:\n max_sum = cur_sum\n return max_sum\n","repo_name":"r7wang/algorithm","sub_path":"src/array/max_sublist_sum/default.py","file_name":"default.py","file_ext":"py","file_size_in_byte":2551,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12611749825","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Thu Jan 7 10:59:23 2016\n\n@author: Philip Djakovic\n\"\"\"\n\nimport markup as mup\nimport codecs\n\n\n\"\"\"\nDefinition Section-Klasse -> für jede Section wird Objekt\ndieser Klasse erstellt und landet in einer Liste\n\"\"\"\nclass section:\n \n def __init__(self, name, parameters):\n self.name = name\n self.parameters = parameters\n\n \n\"\"\"\nDefinition Parameter-Klasse\n-> für jeden Parameter einer Section wird Objekt dieser Klasse erstellt,\nalle Parameter einer Section landen in einer Liste und diese Liste wird\nmit dem jew. Section-Objekt über das Element parameters verknüpft\n\"\"\" \nclass parameter:\n \n def __init__(self, paraname, erkl, default, bed):\n self.paraname = paraname\n self.erkl = erkl\n self.default = default\n self.bed = bed\n\n\n\"\"\"\nFunktion zum Herausschneiden des Section-Namen aus einer Zeile\n\"\"\"\ndef sectInLine(line):\n start = line.index('[') + 1\n end = line.index(']')\n return line[start:end]\n\n\n\"\"\"\nFunktion zum Herausschneiden aller Parameter-relevanten Infos\naus einer Zeile -> Name, Erklärung, Default-Wert, Bedingung\nNeues Parameter-Objekt mit diesen Infos wird erstellt\n\"\"\"\ndef parInLine(line):\n name_start = 0\n name_end = line.index('=')\n erkl_start = line.index('\"')\n erkl_end = line.index('\"', erkl_start+1)\n def_start = line.index('(')\n def_end = line.index(',')\n bed_start = line.index('\\'', def_end)\n bed_end = line.index('\\'', bed_start+1)\n \n name = line[name_start:name_end].strip()\n erkl = line[erkl_start+1:erkl_end]\n default = (line[def_start+1:def_end].strip()).replace('\\'', '')\n bed = line[bed_start+1:bed_end]\n \n newpar = parameter(name, erkl, default, bed)\n return newpar\n\n\n\"\"\"\nFunktion zum Erstellen des HTML-Eintrags eines Parameters + Infos\nmittels markup.py\n\"\"\" \ndef createtable(page, par):\n page.h3(par.paraname)\n page.p(par.erkl)\n page.table(cellpadding=5)\n page.tr()\n page.td()\n page.b('Default')\n page.td.close()\n page.td(par.default)\n page.tr.close()\n page.tr()\n page.td()\n page.b('Condition')\n page.td.close()\n page.td(par.bed)\n page.tr.close()\n page.table.close()\n page.br()\n return page\n\n\nsect_list = []\n#UTF-8-Einlesen sonst werden Umlaute falsch angezeigt\nf1 = codecs.open('parameters.db', 'r', 'UTF-8')\n\n\"\"\"\nSchleife über alle Zeilen der parameters.db\n-> Section-Zeile: Name herausschneiden, neues Section-Objekt erstellen\n -> zu Section-Liste hinzufügen\n-> Parameter-Zeile: alle relevanten Parameter-Infos filtern -> Objekt erstellen\n -> zu Parameter-Liste des jew. Section-Objekts (letzter\n Section-Listeneintrag) hinzufügen\n\"\"\"\nfor line in f1:\n if '=' not in line and '[' in line:\n sect_name = sectInLine(line) \n newsect = section(sect_name,[]) \n sect_list.append(newsect) \n \n if '=' in line:\n newpar = parInLine(line)\n sect_list[len(sect_list)-1].parameters.append(newpar)\n \nf1.close()\n\n#alphabetische Sortierung der Section-Liste nach dem Section-Namen\nsect_list.sort(key = lambda x: x.name)\n\n#Initialisierung von index.html mittels markup.py\nmainpage = mup.page()\nmainpage.init(title = 'index')\nmainpage.h1('Liste aller Sections')\n\n\n\"\"\"\nSchleife über alle Section-Listeneinträge\n-> Erstellen der Section-Liste in index.html mittels markup.py\n-> Sortierung der Parameter-Einträge jeder Section\n-> Erstellen der Section-HTML-Seiten mittels markup.py\n-> Befüllen der Seiten mit entspr. Parametern\n-> Erstellen der Section-HTML-Dateien mit markup-Inhalt\n\"\"\"\nfor sect in sect_list:\n name = sect.name\n \n sect_path = name + '.html'\n mainpage.a(name, href=sect_path)\n mainpage.br()\n \n pars = sect.parameters\n \n pars.sort(key = lambda x: x.paraname)\n sect_page = mup.page()\n sect_header = 'Liste aller Parameter von ' + name\n sect_page.init(title = name)\n sect_page.h1(sect_header)\n \n for par in pars: \n sect_page = createtable(sect_page, par) \n \n f3 = open(sect_path, 'w')\n f3.write(str(sect_page))\n f3.close()\n\n\n\"\"\"\nErstellen der Index-Datei -> mit markup-Inhalt mainpage befüllen \n\"\"\"\nindex_path = 'index.html'\n\nf2 = open(index_path, 'w')\nf2.write(str(mainpage))\nf2.close()","repo_name":"hobler/miniTopSim15","sub_path":"manual.py","file_name":"manual.py","file_ext":"py","file_size_in_byte":4321,"program_lang":"python","lang":"de","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"7144978554","text":"\"\"\"Add Label to each component port.\"\"\"\n\nfrom __future__ import annotations\n\nfrom collections.abc import Callable\nfrom functools import partial\n\nimport gdsfactory as gf\nfrom gdsfactory.component import Component, ComponentReference\nfrom gdsfactory.component_layout import _parse_layer\nfrom gdsfactory.port import Port\nfrom gdsfactory.typings import ComponentOrReference, Label, LayerSpec\n\n\ndef get_input_label_text_dash(\n port: Port,\n gc: ComponentReference | Component,\n gc_index: int | None = None,\n component_name: str | None = None,\n prefix: str = \"\",\n suffix: str = \"\",\n) -> str:\n \"\"\"Returns text with `GratingName-ComponentName-PortName`.\"\"\"\n gc_name = gc.name if isinstance(gc, Component) else gc.parent.name\n return f\"{prefix}{gc_name}-{component_name or port.parent.name}-{port.name}{suffix}\"\n\n\ndef get_input_label_text_dash_loopback(\n port: Port,\n gc: ComponentReference | Component,\n gc_index: int | None = None,\n component_name: str | None = None,\n prefix: str = \"\",\n) -> str:\n \"\"\"Returns text with `GratingName-ComponentName-Loopback`.\"\"\"\n gc_name = gc.name if isinstance(gc, Component) else gc.parent.name\n return f\"{prefix}{gc_name}-{component_name or port.parent.name}-loopback_{gc_index}\"\n\n\ndef get_input_label_text(\n port: Port,\n gc: ComponentReference | Component,\n gc_index: int | None = None,\n component_name: str | None = None,\n component_prefix: str = \"\",\n prefix: str = \"opt\",\n suffix: str = \"\",\n) -> str:\n \"\"\"Returns text string for an optical port based on grating coupler.\n\n {label_prefix}_{polarization}_{wavelength_nm}_({prefix}{component_name})\n\n Args:\n port: to label.\n gc: grating coupler component or reference.\n gc_index: grating_coupler index, which grating_coupler we are labelling.\n component_name: optional name.\n component_prefix: component prefix.\n prefix: prefix to add to the label.\n \"\"\"\n polarization = gc.info.get(\"polarization\") or gc.metadata_child.get(\"polarization\")\n wavelength = gc.info.get(\"wavelength\") or gc.metadata_child.get(\"wavelength\")\n\n if polarization not in [\"te\", \"tm\"]:\n raise ValueError(f\"polarization {polarization!r} needs to be [te, tm]\")\n if not isinstance(wavelength, int | float) or not 0.5 < wavelength < 5.0:\n raise ValueError(\n f\"{wavelength} needs to be > 0.5um and < 5um. Make sure it's in um\"\n )\n\n component_name = component_name or port.parent.metadata_child.get(\"name\")\n\n text = f\"{prefix}_{polarization}_{int(wavelength*1e3)}_({component_prefix}{component_name}){suffix}\"\n if isinstance(gc_index, int):\n text += f\"_{gc_index}_{port.name}\"\n else:\n text = f\"_{port.name}\"\n\n return text\n\n\nget_input_label_text_loopback = partial(get_input_label_text, prefix=\"loopback_\")\n\n\ndef get_input_label(\n port: Port,\n gc: ComponentReference,\n gc_index: int | None = None,\n gc_port_name: str = \"o1\",\n layer_label: LayerSpec = \"TEXT\",\n component_name: str | None = None,\n get_input_label_text_function=get_input_label_text,\n) -> Label:\n \"\"\"Returns a label with component info for a given grating coupler.\n\n Test equipment to extract grating coupler coordinates and match it to the component.\n\n Args:\n port: port to label.\n gc: grating coupler reference.\n gc_index: grating coupler index.\n gc_port_name: name of grating coupler port.\n layer_label: layer of the label.\n component_name: for the label.\n get_input_label_text_function: function to get input label.\n \"\"\"\n text = get_input_label_text_function(\n port=port, gc=gc, gc_index=gc_index, component_name=component_name\n )\n\n if gc_port_name is None:\n gc_port_name = list(gc.ports.values())[0].name\n\n layer, texttype = gf.get_layer(layer_label)\n return Label(\n text=text,\n origin=gc.ports[gc_port_name].center,\n anchor=\"o\",\n layer=layer,\n texttype=texttype,\n )\n\n\nget_input_label_dash = partial(\n get_input_label, get_input_label_text_function=get_input_label_text_dash\n)\n\n\ndef get_input_label_electrical(\n port: Port,\n gc_index: int = 0,\n component_name: str | None = None,\n layer_label: LayerSpec = \"TEXT\",\n gc: ComponentReference | None = None,\n) -> Label:\n \"\"\"Returns a label to test component info for a given electrical port.\n\n This is the label used by T&M to extract grating coupler coordinates\n and match it to the component.\n\n Args:\n port: to label.\n gc_index: index of the label.\n component_name: Optional component_name.\n layer_label: for label.\n gc: ignored.\n \"\"\"\n if component_name:\n name = component_name\n elif isinstance(port.parent, gf.Component):\n name = port.parent.name\n else:\n name = port.parent.ref_cell.name\n\n text = f\"elec_{gc_index}_({name})_{port.name}\"\n layer_label = gf.get_layer(layer_label)\n layer, texttype = _parse_layer(layer_label)\n return Label(\n text=text,\n origin=port.center,\n anchor=\"o\",\n layer=layer,\n texttype=texttype,\n )\n\n\ndef add_labels(\n component: Component,\n get_label_function: Callable = get_input_label_electrical,\n layer_label: LayerSpec = \"TEXT\",\n gc: Component | None = None,\n **kwargs,\n) -> Component:\n \"\"\"Returns component with labels on ports.\n\n Args:\n component: to add labels to.\n get_label_function: function to get label.\n layer_label: layer_label.\n gc: Optional grating coupler.\n\n keyword Args:\n layer: port GDS layer.\n prefix: with in port name.\n suffix: select ports with port name suffix.\n orientation: in degrees.\n width: for ports to add label.\n layers_excluded: List of layers to exclude.\n port_type: optical, electrical, ...\n clockwise: if True, sort ports clockwise, False: counter-clockwise.\n\n Returns:\n original component with labels.\n \"\"\"\n ports = component.get_ports_list(**kwargs)\n\n for i, port in enumerate(ports):\n label = get_label_function(\n port=port,\n gc=gc,\n gc_index=i,\n component_name=component.name,\n layer_label=layer_label,\n )\n component.add(label)\n\n return component\n\n\ndef add_siepic_labels(\n component: Component,\n model: str = \"auto\",\n library: str = \"auto\",\n label_layer: LayerSpec = \"DEVREC\",\n spice_params: dict | list | str | None = None,\n label_spacing: float = 0.2,\n) -> Component:\n \"\"\"Adds labels and returns the same component.\n\n Args:\n component: component.\n model: Lumerical Interconnect model.\n 'auto' attempts to extract this from the cross_section.\n library: Lumerical Interconnect library.\n 'auto' attempts to extract this from the cross_section.\n label_layer: layer for writing SiEPIC labels.\n spice_params: spice parameters (in microns).\n Either pass in a dict with parameter, value pairs, or pass\n a list of values to extract from component info.\n label_spacing: separation distance between labels in um.\n \"\"\"\n c = component\n\n labels = []\n if model:\n if model == \"auto\" and \"model\" in c.info:\n model = c.info[\"model\"]\n labels.append(f\"Component={model}\")\n if library:\n if library == \"auto\" and \"library\" in c.info:\n library = c.info[\"library\"]\n labels.append(f\"Lumerical_INTERCONNECT_library={library}\")\n if spice_params and c.info[\"layout_model_property_pairs\"]:\n if spice_params == \"auto\":\n pairs = c.info[\"layout_model_property_pairs\"]\n spice_params = {pair[1]: c.info[pair[0]] for pair in pairs}\n param_str = \"\"\n for param in spice_params:\n val = spice_params[param]\n param_str += f\"{param}={val:.3f}u \"\n labels.append(f\"Spice_param:{param_str}\")\n\n for i, text in enumerate(labels):\n c.add_label(\n text=text, position=(0, i * label_spacing), layer=label_layer, anchor=\"w\"\n )\n return c\n\n\ndef add_labels_to_ports(\n component: Component,\n label_layer: LayerSpec = \"TEXT\",\n port_type: str | None = None,\n **kwargs,\n) -> Component:\n \"\"\"Add labels to component ports.\n\n Args:\n component: to add labels.\n label_layer: layer spec for the label.\n port_type: to select ports.\n\n keyword Args:\n layer: select ports with GDS layer.\n prefix: select ports with prefix in port name.\n suffix: select ports with port name suffix.\n orientation: select ports with orientation in degrees.\n width: select ports with port width.\n layers_excluded: List of layers to exclude.\n port_type: select ports with port_type (optical, electrical, vertical_te).\n clockwise: if True, sort ports clockwise, False: counter-clockwise.\n \"\"\"\n ports = component.get_ports_list(port_type=port_type, **kwargs)\n for port in ports:\n component.add_label(text=port.name, position=port.center, layer=label_layer)\n\n return component\n\n\ndef add_labels_to_ports_x_y(\n component: Component,\n label_layer: LayerSpec = \"TEXT\",\n port_type: str | None = None,\n **kwargs,\n) -> Component:\n \"\"\"Add labels to component ports. Prepends -x-y coordinates\n\n Args:\n component: to add labels.\n label_layer: layer spec for the label.\n port_type: to select ports.\n\n keyword Args:\n layer: select ports with GDS layer.\n prefix: select ports with prefix in port name.\n suffix: select ports with port name suffix.\n orientation: select ports with orientation in degrees.\n width: select ports with port width.\n layers_excluded: List of layers to exclude.\n port_type: select ports with port_type (optical, electrical, vertical_te).\n clockwise: if True, sort ports clockwise, False: counter-clockwise.\n \"\"\"\n ports = component.get_ports_list(port_type=port_type, **kwargs)\n for port in ports:\n x, y = port.center\n component.add_label(\n text=f\"{port.name}/{int(x)}/{int(y)}\",\n position=port.center,\n layer=label_layer,\n )\n\n return component\n\n\nadd_labels_to_ports_electrical = partial(\n add_labels_to_ports,\n port_type=\"electrical\",\n)\nadd_labels_to_ports_optical = partial(\n add_labels_to_ports,\n port_type=\"optical\",\n)\nadd_labels_to_ports_vertical_dc = partial(\n add_labels_to_ports,\n port_type=\"vertical_dc\",\n)\nadd_labels_to_ports_opt = partial(add_labels_to_ports, prefix=\"opt\", port_type=None)\n\n\ndef get_labels(\n component: ComponentOrReference,\n get_label_function: Callable = get_input_label_electrical,\n layer_label: LayerSpec = \"TEXT\",\n gc: Component | None = None,\n component_name: str | None = None,\n **kwargs,\n) -> list[Label]:\n \"\"\"Returns component labels on ports.\n\n Args:\n component: to add labels to.\n get_label_function: function to get label.\n layer_label: layer_label.\n gc: Optional grating coupler.\n component_name: optional component name.\n\n keyword Args:\n layer: port GDS layer.\n prefix: look for prefix in port name.\n suffix: select ports with port name suffix.\n orientation: in degrees.\n width: for ports to add label.\n layers_excluded: List of layers to exclude.\n port_type: optical, electrical, ...\n clockwise: if True, sort ports clockwise, False: counter-clockwise.\n\n Returns:\n list of component labels.\n \"\"\"\n labels = []\n ports = component.get_ports_list(**kwargs)\n component_name = component_name or component.name\n\n for i, port in enumerate(ports):\n label = get_label_function(\n port=port,\n gc=gc,\n gc_index=i,\n component_name=component_name,\n layer_label=layer_label,\n )\n labels.append(label)\n\n return labels\n\n\nif __name__ == \"__main__\":\n # c = gf.components.mzi_phase_shifter()\n # add_labels_ports(c, c.get_ports_list(port_type=\"electrical\"), prefix=\"pad_\")\n # from gdsfactory.tests.test_labels import test_add_labels_electrical\n # c = test_add_labels_optical()\n # c = test_add_labels_electrical()\n # c = gf.routing.add_fiber_single(c)\n\n c = gf.components.pad(decorator=add_labels_to_ports_vertical_dc)\n c.show(show_ports=True)\n","repo_name":"gdsfactory/gdsfactory","sub_path":"gdsfactory/add_labels.py","file_name":"add_labels.py","file_ext":"py","file_size_in_byte":12531,"program_lang":"python","lang":"en","doc_type":"code","stars":318,"dataset":"github-code","pt":"86"}
+{"seq_id":"733979556","text":"# -*- coding:utf-8 -*-\n# 使用CNN实现验证码识别\n# Author : fx\n# E-mail : pythonist@126.com\nimport numpy as np\nimport tensorflow as tf\nfrom utils import read_data\n\ntrain_dir = \"data\"\ntest_dir = \"test_data\"\n# train标志着是训练还是测试\ntrain = False\n# 模型最后的保存路径\nmodel_path = \"model/image_model\"\n\n# 这是样本的标签种类\nchar_to_digit = [\"零\",\"壹\",\"贰\",\"叁\",\"肆\",\"伍\",\"陆\",\"柒\",\"捌\",\"玖\",\"拾\",\"一\",\"二\",\"三\",\"四\",\"五\",\"六\",\"七\",\"八\",\"九\",\"加\",\"减\",\"乘\",\"除\"]\n\nfpaths, datas, labels = read_data(train_dir)\ntest_fpath, test_datas, test_labels = read_data(test_dir)\ndata_len = datas.shape[0]\n\n# n_classes 表示有多少类图片\nn_classes = len(set(labels))\n\n\n# 定义占位符,存放图片和对应的标签 图片数据大小为30*26*1,存放的数据为像素值归一化后的值\nX = tf.placeholder(tf.float32, [None, 30, 26, 1])\nY = tf.placeholder(tf.int32, [None])\n\n# drop为dropout参数,为一个百分比,表示反向传播时,选取一部分参数不进行更新,减少过拟合,训练时为0.25,测试时为0\ndrop = tf.placeholder(tf.float32)\n\n# 定义第一层卷积,20个卷积核,核大小为1*1,即全卷积,relu激活\nconv1 = tf.layers.conv2d(X, 20, 1, activation=tf.nn.relu)\n\n# 定义第二层卷积, 20个卷积核, 核大小为1*1,Relu激活\nconv2 = tf.layers.conv2d(conv1, 20, 1, activation=tf.nn.relu)\n\n\n# 将三维向量拉伸为一维\nflat = tf.layers.flatten(conv2)\n\n# 全连接,将输入转换成一个1000维向量,还是采用relu激活\nfc = tf.layers.dense(flat, 1000, activation=tf.nn.relu)\n\n# 计算dropout\ndrop_func = tf.layers.dropout(fc, drop)\n\n# 这里再次全连阶,压缩到与分类维度对应的向量\nlogits = tf.layers.dense(drop_func, n_classes)\n\n# tf.argmax返回的是指定维度上最大值的索引值index\n# 这里pred_labels可以用来标志最后的预测结果\npred_labels = tf.argmax(logits, 1)\n\n\n# 损失函数采用交叉熵,\nloss = tf.nn.softmax_cross_entropy_with_logits(\n labels=tf.one_hot(Y, n_classes),\n logits=logits\n)\n# softmax_cross_entropy_with_logits返回的不是一个具体的值,而是一个向量,这里需要求平均值\nm_loss = tf.reduce_mean(loss)\n\n# 定义优化器,学习率为0.001\noptimizer = tf.train.AdamOptimizer(learning_rate=1e-3).minimize(m_loss)\n\n\n# saver用来保存训练的模型\nsaver = tf.train.Saver()\nif __name__ == '__main__':\n with tf.Session() as sess:\n\n if train:\n print(\"train\")\n # init\n sess.run(tf.global_variables_initializer())\n # 迭代50次\n for i in range(100):\n _, loss_v = sess.run([optimizer, m_loss], feed_dict={\n X: datas,\n Y: labels,\n drop: 0,\n }\n )\n if i % 10 == 0:\n print(\"step:{}-->loss:{}\".format(i, loss_v))\n saver.save(sess, model_path)\n print(\"Done!,save as :{}\".format(model_path))\n else:\n # 测试\n print(\"test\")\n saver.restore(sess, model_path)\n print(\"recover from:{}\".format(model_path))\n # label_map是模型输出值与实际分类标签的分类\n label_map = {k: v for k, v in enumerate(char_to_digit)}\n pred_val = sess.run(pred_labels, feed_dict={\n X: test_datas,\n Y: test_labels,\n drop: 0\n })\n err_count = 0\n for fpath, real_label, predicted_label in zip(test_fpath, test_labels, pred_val):\n # 将预测的标签索引值转换为对应分类\n real_label_name = label_map[real_label]\n pred_name = label_map[predicted_label]\n if real_label_name != pred_name:\n err_count += 1\n print(1 - err_count/len(test_datas))\n\n","repo_name":"Super-Storm/tensorflow-captcha","sub_path":"CNN_captcha.py","file_name":"CNN_captcha.py","file_ext":"py","file_size_in_byte":4152,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"41653043675","text":"# Flow control\ndisastertype = 'tornado'\n\nif disastertype == 'earthquake':\n print('woah!')\nelif disastertype == 'hurricane':\n print('nooo!')\nelse:\n print('oh no!')\n\n# Ternary if (in-line)\nmy_values = { 'red': ['7'], 'blue': [0], 'green': [3] }\nred = my_values.get('red', [''])\nred = int(red[0]) if red[0] else 0\nprint(red)\n\n# Looping\ncount = 1\n\n#while count > 0:\n# stuff = input('String to capitalize [q to quit]: ')\n#\n# if stuff == 'q':\n# break; # continue also supported\n#\n# print(stuff.upper())\n# count += 1\n\nrabbits = ['tom', 'bugs', 'roger', 'jerry']\n\nfor name in rabbits:\n print(name)\n\nword = 'mississippi'\n\nfor c in word:\n print(c)\n\nauthors = {\n 'king': ['It', 'Christine', 'The Shining'],\n 'card': ['Ender''s Game', 'Speaker for the Dead'],\n 'heinlein': ['Stranger in a Strange Land', 'Starship Troopers']\n }\n\nfor author in authors:\n print(author)\n\nfor books in authors.values():\n print(books)\n\nfor author, books in authors.items(): # tuple assignment\n print(author, books)\n\nindexes = [1, 2, 3]\nvalues = ['one', 'two', 'three']\n\nfor index, value in zip(indexes, values):\n print(index, value)\n\nprint(list(zip(indexes, values))) # list of tuples\nprint(dict(zip(indexes, values))) # dictionary\n\nfor n in range(0, 10, 2): # slice\n print(n)\n\n# Use enumerate over range when scanning a list:\nflavor_list = ['one', 'two', 'three']\nfor i, flavor in enumerate(flavor_list):\n print('%d: %s' % (i + 1, flavor))\n\n# Comprehensions\nnumbers = [n for n in range(0, 11, 2)] # kind of like math set notation \nodds = [n + 1 for n in range(0, 11, 2)]\nodds2 = [n for n in range(0, 51) if n % 2 == 1]\nxy = [(x, y) for x in range(1, 5) if x % 2 == 0 for y in range(1, 5) if y % 2 == 1] # cartesian product (l to r)\n\nmatrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nflat = [x for row in matrix for x in row] # l to r, row then element\nprint(flat)\n\nsquared = [[x**2 for x in row] for row in matrix] # square a matrix\nprint(squared)\n\nprint(numbers)\nprint(odds)\nprint(odds2)\nprint(xy)\n\nword = 'hello world!!!'\nletter_counts = {letter: word.count(letter) for letter in set(word)}\nletter_index = {letter: word.index(letter) for letter in set(word)}\n\nprint(letter_counts)\nprint(letter_index)\n\nset1 = {n for n in range(1, 10, 3)}\n\nprint(set1)\n\n# Generator comprehensions (like an enumerator)\n# More memory efficient than comprehensions (like a stream)\nnums = (n for n in range(0, 10))\n\nprint(nums)\n\nfor n in nums: # enumerate\n print(n)\n\nprint(list(nums)) # empty (implicitly iterates)\n\n# Functions!\n\ndef myFirstFun(anything = 'default value'):\n return 'Hello World!' + anything\n\nprint(myFirstFun(anything = '!!!'))\n\ndef printArgs(*args):\n print(args)\n\ndef log(message, *values): # any number of args after the first\n if not values:\n print(message)\n else:\n values_str = ', '.join(str(x) for x in values)\n print(f'{message}: {values_str}')\n\ndef printArgsKV(**args): # create dictionary\n print(args)\n\n# * indicates the end of positional arguments and the beginning of keyword-only arguments\ndef safe_division_c(number, divisor, *,\n ignore_overflow=False,\n ignore_zero_division=False):\n pass\n\nprintArgs('1', '2', '3')\n\nl = ['1', '2', '3', '4']\nprintArgs(*l) # scatters list into arguments\n\nprintArgsKV(key1='val1', key2='val2', key3='val3')\n\ndef times3(*args):\n return sum(args)\n\ndef invoke(func, *args): # function delegate\n print(func(*args))\n\ninvoke(times3, 1, 2, 3, 4, 5)\n\ndef outer(a, b):\n def inner(c, d):\n return c - d\n return a + b + inner(a, b)\n\nprint(outer(1, 2))\n\ndef returnClosure(str1):\n 'Returns a closure: function'\n def inner():\n print(\"The arg is: %s\" % str1)\n\n return inner\n\nfunc1 = returnClosure(\"hellow\")\nfunc1()\n\ndef iterate1(words, func1):\n for w in words:\n print(func1(w))\n\niterate1(['a', 'nice', 'day'], lambda word: word.upper() + '!') # lambda syntax\n\n# Generator functions / iterators\n# More memory efficient than building a list and returning it.\ndef my_range(first, last, step):\n num = first\n\n while first < last:\n yield first # creates state machine\n first += step\n\nfor n in my_range(0, 10, 2):\n print(n)\n\n# Decorator: takes a func as an arg and returns another function\ndef docFunc(func):\n def decorateFunc(*args, **kwargs):\n print('Running function:', func.__name__)\n print('Positional arguments:', args)\n print('Keyword arguments:', kwargs)\n result = func(*args, **kwargs)\n print('Result:', result)\n return result\n return decorateFunc\n\ndef myAdd(p, q, **kwargs):\n return p + q\n\nnewFunc = docFunc(myAdd) # manual decorator assignment\nnewFunc(2, 4, key1='val1', key2='val2')\n\n# Or\n# Same as: myAdd2 = docFunc(myAdd2)\n@docFunc\ndef myAdd2(p, q, **kwargs):\n return p + q\n\nmyAdd2(4, 6, key1='val1', key2='val2')\n\ndef squareIt(func):\n def newFunction(*args, **kwargs):\n result = func(*args, **kwargs)\n return result * result\n \n return newFunction\n\n# Chained decorators\n@docFunc\n@squareIt\ndef myAdd3(p, q, **kwargs):\n return p + q\n\nmyAdd3(1, 2)\n\n# Global variable scope\nanimal = \"kitten\"\n\ndef changeGlobal():\n global animal # without this variable is scoped to function\n animal = animal.upper() + '!'\n\nprint(animal)\nchangeGlobal()\nprint(animal)\n\ndef changeLocal():\n animal = 'tiger'\n print('locals: ', locals())\n\nchangeLocal()\nprint('globals: ', globals())\n\n# Exception / Try Catch\ntry:\n mylist = [1, 2, 3]\n print(mylist[5])\nexcept IndexError as e:\n print(\"Out of bounds!: \", e)\nexcept Exception as e:\n print(\"Unknown: \", e)\nfinally:\n print('Always run this!')\n\nmylist2 = {1, 2, 3, 4}\n\nfor n in mylist2:\n if n % 2 == 0:\n raise Exception('Even number!')\n\n# Enums\nfrom enum import Enum\n\nclass State(Enum):\n COMPLETE = 1\n PARTIAL = 2\n BLANK = 3\n\n","repo_name":"shermanflan/py-methods","sub_path":"py-techniques/codestructures.py","file_name":"codestructures.py","file_ext":"py","file_size_in_byte":5885,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"34754802296","text":"\nclass Solution:\n def longestIncreasingPath(self, matrix: List[List[int]]) -> int:\n if not matrix:\n return 0\n \n m, n = len(matrix), len(matrix[0])\n memo = [[0] * n for _ in range(m)] # 初始化记忆化数组\n \n def dfs(i, j):\n if memo[i][j] > 0: # 如果已经计算过路径长度,直接返回之前的结果\n return memo[i][j]\n \n directions = [(0, 1), (0, -1), (1, 0), (-1, 0)]\n res = 1 # 如果四个方向都搜索不到递增路径,则默认路径长度为 1\n for di, dj in directions: # 对于每一个方向\n ni, nj = i + di, j + dj\n if 0 <= ni < m and 0 <= nj < n and matrix[ni][nj] > matrix[i][j]:\n # 如果当前方向对应位置的数值严格大于当前位置的数值\n # 沿着当前方向继续递归,得到从当前位置出发的最长递增路径长度\n res = max(res, dfs(ni, nj) + 1)\n \n memo[i][j] = res # 记录当前位置的最长递增路径长度\n return res\n \n ans = 0\n for i in range(m):\n for j in range(n):\n ans = max(ans, dfs(i, j)) # 枚举每个位置,计算所有位置中最长递增路径的长度\n return ans\n\n# https://leetcode.cn/problems/longest-increasing-path-in-a-matrix/submissions/\n","repo_name":"leejamesss/Leetcode_daily","sub_path":"8.8/1.py","file_name":"1.py","file_ext":"py","file_size_in_byte":1442,"program_lang":"python","lang":"zh","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"39967960486","text":"class TreeNode:\n def __init__(self, data):\n self.data = data\n self.left = None\n self.right = None\n\n def __str__(self) -> str: #Retornando o dado do nó em string\n return str(self.data)\n\nclass BinaryTree:\n def __init__(self, data = None):\n if data:\n node = TreeNode(data)\n self.root = node\n else:\n self.root = None\n\n def simetric_traversal(self, node = None): #Encaminhamento em ordem\n if node is None:\n node = self.root #Partindo por padrão a partir da raiz\n if node.left:\n print('(', end='')\n self.simetric_traversal(node.left)\n print(node, end = '')\n if node.right:\n self.simetric_traversal(node.right)\n print(')', end='')\n\n def postorder_traversal(self, node = None):\n if node is None:\n node = self.root #Partindo por padrão a partir da raiz\n if node.left:\n self.postorder_traversal(node.left)\n if node.right:\n self.postorder_traversal(node.right)\n print(node, end='')\n\n def height(self, node = None):\n if node is None:\n node = self.root #Partindo por padrão a partir da raiz\n hleft = 0\n hright = 0\n if node.left:\n hleft = self.height(node.left)\n if node.right:\n hright = self.height(node.right)\n if hright > hleft:\n return hright + 1 \n return hleft + 1\n\n \n\ndef postorder_example_tree():\n tree = BinaryTree()\n n1 = TreeNode('I')\n n2 = TreeNode('N')\n n3 = TreeNode('S')\n n4 = TreeNode('C')\n n5 = TreeNode('R')\n n6 = TreeNode('E')\n n7 = TreeNode('V')\n n8 = TreeNode('A')\n n10 = TreeNode('-')\n n9 = TreeNode('S')\n n0 = TreeNode('E')\n\n n0.left = n6\n n0.right = n9\n n6.left = n1\n n6.right = n5\n n5.left = n2\n n5.right = n4\n n4.right = n3\n n9.left = n10\n n10.right = n8\n n8.right = n7\n\n tree.root = n0\n return tree\n\ndef inorder_traversal_example():\n tree = BinaryTree()\n n1 = TreeNode('a')\n n2 = TreeNode('+')\n n3 = TreeNode('*')\n n4 = TreeNode('b')\n n5 = TreeNode('-')\n n6 = TreeNode('/')\n n7 = TreeNode('c')\n n8 = TreeNode('d')\n n9 = TreeNode('e')\n\n n6.left = n7\n n6.right = n8\n n5.left = n6\n n5.right = n9\n n3.left = n4\n n3.right = n5\n n2.left = n1\n n2.right = n3\n\n tree.root = n2\n tree.simetric_traversal()\n print()\n\n '''\n '+'\n / \\\n 'a' '*'\n / \\ \n 'b' '-'\n / \\\n '/' 'e'\n / \\ \n 'c' 'd'\n '''\n\nif __name__ == \"__main__\":\n\n tree = postorder_example_tree()\n print('Percurso em pós ordem:')\n tree.postorder_traversal()\n print(f'\\nAltura: {tree.height()}')","repo_name":"tuliooarauj/algoritmo-estrutura_dados","sub_path":"Arvores Binaris/tree.py","file_name":"tree.py","file_ext":"py","file_size_in_byte":2871,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32105612293","text":"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"Console script for cmip6_object_store.\"\"\"\n\nimport argparse\nimport os\nimport shutil\nimport sys\n\nfrom cmip6_object_store import CONFIG, logging\nfrom cmip6_object_store.cmip6_zarr.batch import BatchManager\nfrom cmip6_object_store.cmip6_zarr.caringo_store import CaringoStore\nfrom cmip6_object_store.cmip6_zarr.compare import compare_zarrs_with_ncs\nfrom cmip6_object_store.cmip6_zarr.results_store import get_results_store, get_verification_store\nfrom cmip6_object_store.cmip6_zarr.task import TaskManager\nfrom cmip6_object_store.cmip6_zarr.intake_cat import create_intake_catalogue\nfrom cmip6_object_store.cmip6_zarr.utils import (\n get_credentials,\n get_zarr_url,\n)\n\nLOGGER = logging.getLogger(__file__)\n\n\ndef _add_arg_parser_run(parser):\n\n _add_arg_parser_project(parser, description=\"convert to Zarr in Object Store\")\n\n group = parser.add_mutually_exclusive_group()\n\n group.add_argument(\n \"--slurm-array-member\",\n action=\"store_true\",\n required=False,\n help=(\"Not for interactive use. \\n\"\n \"Batch number will be taken from SLURM_ARRAY_TASK_ID environment variable.\"),\n )\n\n group.add_argument(\n \"-b\",\n \"--batches\",\n type=str,\n default=\"all\",\n required=False,\n help=\"Batches to run, default is 'all'. Also accepts comma separated \"\n \"list of batch numbers and/or ranges specified with a hyphen. E.g: \"\n \"'1,2,3' or '1-5'.\",\n )\n\n parser.add_argument(\n \"-d\",\n \"--datasets\",\n type=str,\n default=None,\n required=False,\n help=\"Datasets to run. Also accepts comma separated \"\n \"list of datasets. E.g.: -d cmip6...gn.v20190910,cmip6...v20200202\",\n )\n\n parser.add_argument(\n \"-r\",\n \"--run-mode\",\n type=str,\n default=\"lotus\",\n required=False,\n help=\"Mode to run in, either 'lotus' (default) or 'local'.\",\n )\n\n\ndef _range_to_list(range_string, sep):\n start, end = [int(val) for val in range_string.split(sep)]\n return list(range(start, end + 1))\n\n\ndef parse_args_run(args):\n # Parse batches into a single value\n slurm_array_member = args.slurm_array_member\n batches = args.batches\n datasets = args.datasets\n\n if slurm_array_member:\n batches = [int(os.environ[\"SLURM_ARRAY_TASK_ID\"])]\n \n elif batches == \"all\":\n batches = None\n else:\n items = batches.split(\",\")\n batches = []\n\n for item in items:\n if \"-\" in item:\n batches.extend(_range_to_list(item, \"-\"))\n else:\n batches.append(int(item))\n\n batches = sorted(list(set(batches)))\n\n if datasets:\n datasets = datasets.split(\",\")\n\n return args.project, batches, datasets, args.run_mode\n\n\ndef run_main(args):\n project, batches, datasets, run_mode = parse_args_run(args)\n\n tm = TaskManager(project, batches=batches, datasets=datasets, run_mode=run_mode)\n tm.run_tasks()\n\n\ndef _add_arg_parser_project(parser, description=\"\"):\n\n parser.add_argument(\n \"-p\",\n \"--project\",\n type=str,\n default=CONFIG[\"workflow\"][\"default_project\"],\n required=False,\n help=f\"Project {description}\",\n )\n\n\ndef parse_args_project(args):\n return args.project\n\n\ndef _add_arg_parser_create(parser):\n _add_arg_parser_project(parser)\n parser.add_argument(\"--all\", action=\"store_true\",\n help=\"include all datasets in batches (default is to check if already done)\")\n \ndef create_main(args):\n project = parse_args_project(args)\n bm = BatchManager(project, exclude_done=not args.all)\n bm.create_batches()\n\n\ndef _add_arg_parser_intake(parser):\n _add_arg_parser_project(parser, description=\"to create intake catalog for\")\n parser.add_argument(\"--limit\", type=int,\n help=\"maximum number of datasets to include\")\n\ndef intake_main(args):\n project = parse_args_project(args)\n create_intake_catalogue(project, limit=args.limit)\n \n \ndef _add_arg_parser_clean(parser):\n\n _add_arg_parser_project(parser, description=\"to clean out directories for\")\n\n parser.add_argument(\n \"-D\",\n \"--delete-objects\",\n action=\"store_true\",\n help=\"Delete all the objects in the Object Store - DANGER!!!\",\n )\n\n parser.add_argument(\n \"-b\",\n \"--buckets\",\n default=[],\n nargs=\"*\",\n help=\"Identifiers of buckets TO DELETE!\",\n )\n\n\ndef parse_args_clean(args):\n return args.project, args.delete_objects, args.buckets\n\n\ndef clean_main(args):\n project, delete_objects, buckets_to_delete = parse_args_clean(args)\n\n if delete_objects:\n resp = input(\"DO YOU REALLY WANT TO DELETE THE BUCKETS? [Y/N] \")\n if resp != \"Y\":\n print(\"Exiting.\")\n sys.exit()\n\n batch_dir = BatchManager(project)._version_dir\n log_dir = os.path.join(CONFIG[\"log\"][\"log_base_dir\"], project)\n to_delete = [log_dir, batch_dir]\n\n for dr in to_delete:\n if os.path.isdir(dr):\n LOGGER.warning(f\"Deleting: {dr}\")\n shutil.rmtree(dr)\n\n if buckets_to_delete:\n LOGGER.warning(\"Starting to delete buckets from Object Store!\")\n caringo_store = CaringoStore(creds=get_credentials())\n\n for bucket in buckets_to_delete:\n LOGGER.warning(f\"DELETING BUCKET: {bucket}\")\n caringo_store.delete(bucket)\n\n\ndef _add_arg_parser_list(parser):\n\n _add_arg_parser_project(parser, description=\"to list directories for\")\n\n parser.add_argument(\n \"-c\",\n \"--count-only\",\n action=\"store_true\",\n help=\"Only show the total count of records processed.\",\n )\n\n\ndef parse_args_list(args):\n return args.project, args.count_only\n\n\ndef list_main(args):\n project, count_only = parse_args_list(args)\n results_store = get_results_store(project)\n \n records = results_store.get_successful_runs()\n\n if not count_only:\n for _, dataset_id in records:\n zarr_url = get_zarr_url(dataset_id, project)\n print(f\"Record: {zarr_url}\")\n\n print(f\"\\nTotal records: {len(records)}\")\n\n\ndef verify_main(args):\n project = parse_args_project(args)\n results_store = get_results_store(project)\n verified_store = get_verification_store(project)\n \n successes, out_of = compare_zarrs_with_ncs(project, dataset_id=args.dataset)\n print(f\"\\nVerified {successes} out of {out_of} datasets.\")\n\n print(\"\\n\\nResults of all verifications so far:\")\n\n n_verified_successes = verified_store.count_successes()\n n_total_successes = results_store.count_successes()\n n_total = results_store.count_results()\n\n print(f\"\"\"{n_verified_successes} successfully verified\n{n_total_successes} total claimed successes\n{n_total} total results including failures\"\"\")\n\n\ndef show_errors_main(args):\n project = parse_args_project(args)\n results_store = get_results_store(project) \n\n errors = results_store.get_failed_runs()\n \n for dataset_id, error in errors.items():\n print(\"\\n===================================================\")\n print(f\"{dataset_id}:\")\n print(\"===================================================\\n\")\n print(\"\\t\" + error)\n\n print(f\"\\nFound {len(errors)} errors.\")\n\n\ndef main():\n \"\"\"Console script for cmip6_object_store.\"\"\"\n main_parser = argparse.ArgumentParser()\n main_parser.set_defaults(func=lambda args: main_parser.print_help())\n subparsers = main_parser.add_subparsers()\n\n run_parser = subparsers.add_parser(\"run\")\n _add_arg_parser_run(run_parser)\n run_parser.set_defaults(func=run_main)\n\n create_parser = subparsers.add_parser(\"create-batches\")\n _add_arg_parser_create(create_parser)\n create_parser.set_defaults(func=create_main)\n\n clean_parser = subparsers.add_parser(\"clean\")\n _add_arg_parser_clean(clean_parser)\n clean_parser.set_defaults(func=clean_main)\n\n list_parser = subparsers.add_parser(\"list\")\n _add_arg_parser_list(list_parser)\n list_parser.set_defaults(func=list_main)\n\n verify_parser = subparsers.add_parser(\"verify\")\n _add_arg_parser_project(verify_parser)\n\n verify_parser.add_argument(\n \"-d\",\n \"--dataset\",\n type=str,\n default=None,\n required=False,\n help=\"Single dataset ID to verify (defaults to choosing a sample)\"\n )\n\n verify_parser.set_defaults(func=verify_main)\n\n intake_parser = subparsers.add_parser(\"create-intake\")\n _add_arg_parser_intake(intake_parser)\n intake_parser.set_defaults(func=intake_main)\n\n show_errors_parser = subparsers.add_parser(\"show-errors\")\n _add_arg_parser_project(show_errors_parser)\n show_errors_parser.set_defaults(func=show_errors_main)\n\n args = main_parser.parse_args()\n args.func(args)\n\n\nif __name__ == \"__main__\":\n\n sys.exit(main()) # pragma: no cover\n","repo_name":"cedadev/cmip6-object-store","sub_path":"cmip6_object_store/cmip6_zarr/cli.py","file_name":"cli.py","file_ext":"py","file_size_in_byte":8919,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"8578113712","text":"from fastapi import APIRouter, Request\nfrom app.core.tools.database import find_one, update_one \n\nfrom app.core.tools.jwt import FastJWT\n\ntelegram_router = APIRouter(prefix=\"/telegram\")\n\n@telegram_router.post(\"/set\")\nasync def get_profile_items_event(request: Request, telegram_id: str):\n auth_token = request.headers[\"Authorisation\"]\n auth_token = await FastJWT().decode(auth_token)\n user = await find_one(\"users_db\", {\"email\": auth_token[\"email\"]})\n\n user[\"telegram\"] = telegram_id\n await update_one(\"users_db\", {\"email\": auth_token[\"email\"]}, user)\n\n return {\"message\": \"Updated.\"}","repo_name":"denver-code/stuff_accounting_backend","sub_path":"v1/private/profile/telegram.py","file_name":"telegram.py","file_ext":"py","file_size_in_byte":602,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32906885282","text":"#Napisać funkcję sum_seq(sequence) obliczającą sumę liczb zawartych w sekwencji, która może zawierać zagnieżdżone\n# podsekwencje. Wskazówka: rozważyć wersję rekurencyjną, a sprawdzanie, czy element jest sekwencją,\n# wykonać przez isinstance(item, (list, tuple)).\n\ndef sum_seq(sequence):\n result = 0\n if isinstance(sequence, (list,tuple)) == True:\n for item in sequence:\n result += sum_seq(item)\n else:\n return sequence\n return result\n\nprint(sum_seq([(1,[1,2]),3,[2,3],(1,1)])) # result = 14","repo_name":"zarrock256/python","sub_path":"4.6.py","file_name":"4.6.py","file_ext":"py","file_size_in_byte":543,"program_lang":"python","lang":"pl","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"28898021379","text":"#!/usr/bin/env python\r\n## Win32 EXE Builder using PyInstaller 2.0\r\n## Luis Rodil-Fernandez \r\n##\r\n## As of pyinstaller 2 there's no need for the 2-step process\r\n## executables can now be build in a single call:\r\n##\r\n## $ python pyinstaller.py [opts] yourprogram.py\r\n##\r\n## see documentation for further details:\r\n## http://www.pyinstaller.org/export/v2.0/project/doc/Manual.html?format=raw\r\nimport os, sys\r\nimport time, string\r\nimport subprocess\r\nimport shutil\r\nimport urlparse\r\n\r\nPYINST_DEFAULT_PATH = 'C:\\Python27\\Lib\\site-packages\\PyInstaller'\r\n\r\n# Apps to build, specifying the entry point script and the icon to\r\n# embed in the executable file as a resource\r\nAPPS = [\r\n\t\t{'script': 'viperclient.py', 'icon': 'resources/icons/online.ico'}\r\n\t ]\r\n\r\n# PyInstaller options\r\nOPTS = ['--onefile', '--noconsole']\r\n\r\n# Additional application resources\r\nRES = ['README.md', 'resources', 'third-party/tap-windows', 'third-party/openvpn'] #, 'dist/viperclient.exe']\r\n\r\n# Build byproducts to delete after build\r\nCLEAN = ['dist/viperclient.exe']\r\n\r\n# third-party binaries\r\nOVPN_DOWNLOAD_URL = \"http://swupdate.openvpn.org/community/releases/\"\r\nOVPN_DOWNLOAD = \"openvpn-install-{0}-{1}.exe\"\r\nOVPN_VERSION = \"2.3.6-I601\"\r\nTUNTAP_DOWNLOAD = \"tap-windows-{0}.exe\"\r\nTUNTAP_VERSION = \"9.21.1\"\r\n\r\n# relative to the CWD\r\ndef get_build_path():\r\n\tp = os.path.join(os.getcwd(), \"dist\")\r\n\tif not os.path.exists(p):\r\n\t\tos.makedirs(p)\r\n\r\n\treturn p\r\n\r\ndef get_ovpn_platform_suffix():\r\n\t\"\"\" get the platform from the python API and translate it to the suffix used in OpenVPN releases \"\"\"\r\n\tPLATFORM = {'32bit' : \"i686\", '64bit' : \"x86_64\"}\r\n\timport platform\r\n\tb, l = platform.architecture()\r\n\treturn PLATFORM[b]\r\n\r\ndef download_binaries():\r\n\timport urllib\r\n\tdownloader = urllib.URLopener()\r\n\r\n\tovpnfn = OVPN_DOWNLOAD.format(OVPN_VERSION, get_ovpn_platform_suffix())\r\n\tovpnurl = urlparse.urljoin(OVPN_DOWNLOAD_URL, ovpnfn)\r\n\tprint(\"Downloading\", ovpnurl)\r\n\tdownloader.retrieve(ovpnurl, ovpnfn)\r\n\r\n\ttuntapfn = TUNTAP_DOWNLOAD.format(TUNTAP_VERSION)\r\n\ttuntapurl = urlparse.urljoin(OVPN_DOWNLOAD_URL, tuntapfn)\r\n\tprint(\"Downloading\", tuntapurl)\r\n\tdownloader.retrieve(tuntapurl, tuntapfn)\r\n\r\n# absolute path to PyInstaller - expects an environment variable pointing to it\r\ndef get_pyinstaller_path():\r\n\tp = os.getenv(\"PYINSTALLER_HOME\")\r\n\tif p:\r\n\t\treturn p\r\n\telse:\r\n\t\tprint(\"(!!!) The environment variable PYINSTALLER_HOME is not defined, resorting to default...\")\r\n\t\treturn PYINST_DEFAULT_PATH\r\n\r\n# build actual command call to PyInstaller\r\ndef create_executables():\r\n\tprint(\"Creating executables...\")\r\n\tpath = get_pyinstaller_path()\r\n\tcmd = os.path.join(path, \"main.py\")\r\n\topt = string.join(OPTS)\r\n\tfor app in APPS:\r\n\t\t# build actual command to execute for this application\r\n\t\tsc = cmd + \" \" + opt + \" -i \" + app['icon'] + \" \" + app['script']\r\n\t\tprint(sc)\r\n\t\tsubprocess.call(sc, shell=True)\r\n\r\n\r\n# Copy additional resources\r\ndef copy_resources():\r\n\tprint(\"Including resources...\")\r\n\tfor r in RES:\r\n\t\tprint(\"Copying resource %s\" % (r,))\r\n\t\tif not os.path.exists(r):\r\n\t\t\tprint(\"WARNING: The requested resource %s could not be copied because source doesn't exist.\" % (r,))\r\n\t\t\tcontinue\r\n\t\tif os.path.isdir(r):\r\n\t\t\tprint(\"\\t-> as directory tree\")\r\n\t\t\tshutil.copytree(r, os.path.join(get_build_path(), os.path.basename(r)) )\r\n\t\telse:\r\n\t\t\tprint(\"\\t-> as file\")\r\n\t\t\tshutil.copy(r, os.path.join(get_build_path(), os.path.basename(r)) )\r\n\r\n# Build windows services (PyInstaller doesn't seem to support services)\r\ndef py2exe_build_services():\r\n\tprint(\"Building the windows service...\")\r\n\tsubprocess.call(\"python setup.py py2exe\", shell=True)\r\n\tprint(\"Sometimes when executing the py2exe command from a python script certain DLLs are not copied.\\n\\nRun this command to make sure they are copied: python setup.py py2exe\")\r\n\r\ndef cleanup():\r\n\tfor r in CLEAN:\r\n\t\tprint(\"Cleaning byproduct %s\" % (r,))\r\n\t\tif os.path.isfile(r):\r\n\t\t\tos.remove(r)\r\n\t\telse:\r\n\t\t\tprint(\"File doesn't exist, skipping.\")\r\n\r\n##\r\n## Main loop\r\n##\r\nif __name__ == '__main__':\r\n\t#create_executables()\r\n\tcopy_resources()\r\n\tcleanup()\r\n\t#py2exe_build_services()\r\n\r\n","repo_name":"greenhost/viper","sub_path":"buildexe.py","file_name":"buildexe.py","file_ext":"py","file_size_in_byte":4111,"program_lang":"python","lang":"en","doc_type":"code","stars":6,"dataset":"github-code","pt":"86"}
+{"seq_id":"13700018914","text":"\nwith open('kek.43319559636b94db1c945834340b65d68f90b6ecbb70925f7b24f6efc5c2524e.txt', 'r') as readin:\n for line in readin:\n output = line.split()\n\nprint(output)\nmorse = ''\nflag = 1\nfor each in output:\n if each[0] == 'K' and each[1] == 'E' and each[2] == 'K':\n if flag == 0:\n morse = morse + ('.' * (len(each) - 3))\n else:\n morse = morse + ('-' * (len(each) - 3))\n if each[0] == 'T' and each[1] == 'O' and each[2] == 'P':\n morse = morse + ' '\n flag = (flag + 1)%2\nfp = open('morsecode.txt', 'w')\nfp.write(morse)\nfp.close()\n","repo_name":"rd-li/CTF","sub_path":"htv/others/topkek/topkek.py","file_name":"topkek.py","file_ext":"py","file_size_in_byte":589,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12482460462","text":"import json\nimport re\nimport traceback\nfrom helpers import aeshelper\nfrom objects import glob\nfrom common.ripple import userUtils\n\nfrom . import flavours\nfrom . import ice_coffee\nfrom . import police\n\n#Cornflakes is nice when 90% is sugar\nsugar = {\n\t\"hash\": [],\n\t\"path\": [],\n\t\"file\": [],\n\t\"title\": []\n}\n\ninitialized_eggs = False\n\n#Eggs\ndef init_eggs():\n\teggs = glob.db.fetchAll(\"SELECT * FROM eggs\", [])\n\tif eggs is not None:\n\t\tfor egg in eggs:\n\t\t\tif egg[\"type\"] not in [\"hash\", \"path\", \"file\", \"title\"]:\n\t\t\t\tcontinue\n\t\t\tsugar[egg[\"type\"]].append(egg)\n\n\tcompile_regex()\n\n\tinitialized_eggs = True\n\ndef compile_regex():\n\t#Cache regex searches\n\tfor carbohydrates in sugar:\n\t\tfor speed in sugar[carbohydrates]:\n\t\t\tif speed[\"is_regex\"]:\n\t\t\t\tspeed[\"regex\"] = re.compile(speed[\"value\"])\n\n#Since this is still being worked on everything is in a try catch\ndef bake(submit, score):\n\t\"\"\"\n\tWe have deprecated the process list scanning.\n\tThere is no config to re-enable this.\n\tIf you know what you are doing however you know how to re-enable this feature.\n\t\"\"\"\n\treturn\n\ttry:\n\t\tif not initialized_eggs:\n\t\t\tinit_eggs()\n\t\t\n\t\tif not score.passed:\n\t\t\treturn\n\t\t\n\t\tdetected = []\n\t\tflags = 0\n\n\t\tif \"osuver\" in submit.request.arguments:\n\t\t\taeskey = \"osu!-scoreburgr---------{}\".format(submit.get_argument(\"osuver\"))\n\t\telse:\n\t\t\taeskey = \"h89f2-890h2h89b34g-h80g134n90133\"\n\t\tiv = submit.get_argument(\"iv\")\n\n\t\tscore_data = aeshelper.decryptRinjdael(aeskey, iv, submit.get_argument(\"score\"), True).split(\":\")\n\t\tusername = score_data[1].strip()\n\n\t\tuser_id = userUtils.getID(username)\n\t\trestricted = userUtils.isRestricted(user_id)\n\n\t\tif restricted == True or user_id == 0: #We dont care about this since this person is already taken care off\n\t\t\treturn\n\n\t\tflags = score_data[17].count(' ')\n\n\t\ttry:\n\t\t\tpl = aeshelper.decryptRinjdael(aeskey, iv, submit.get_argument(\"pl\"), True).split(\"\\r\\n\")\n\t\texcept:\n\t\t\tpolice.call(\"Unable to decrypt process list from USERNAME()\", user_id=user_id)\n\t\t\tdetected.append({\n\t\t\t\t\"tag\":\"Unable to decrypt process list (Hacked)\",\n\t\t\t\t\"ban\": False\n\t\t\t\t})\n\t\t\teat(score, {}, detected, flags)\n\t\t\treturn\n\n\t\tpl = sell(pl)\n\n\t\t#I dont really like chocolate that much >.<\n\t\tfor p in pl:\n\t\t\tfor t in sugar.keys():\n\t\t\t\tif p[t] is None:\n\t\t\t\t\tcontinue\n\n\t\t\t\tfor speed in sugar[t]:\n\t\t\t\t\tif speed in detected:\n\t\t\t\t\t\tcontinue\n\n\t\t\t\t\tif speed[\"is_regex\"]:\n\t\t\t\t\t\tif \"regex\" not in speed: #Some weird bug where it unsets itself\n\t\t\t\t\t\t\tspeed[\"regex\"] = re.compile(speed[\"value\"])\n\n\t\t\t\t\t\tif speed[\"regex\"].search(p[t]) is not None:\n\t\t\t\t\t\t\t\tdetected.append(speed)\n\t\t\t\t\telse:\n\t\t\t\t\t\tif speed[\"value\"] == p[t]:\n\t\t\t\t\t\t\tdetected.append(speed)\n\n\t\teat(score, pl, detected, flags)\n\texcept:\n\t\tpolice.call(traceback.format_exc(), discord_m=True)\n\t\tpolice.call(\"Oh no! The cake is on fire! Abort!\")\n\ndef sell(processes):\n\tformatted_pl = []\n\tfor p in processes: #Formats the process list\n\t\ttry:\n\t\t\tt = p.split(\" | \", 1)\n\t\t\ttry:\n\t\t\t\td = t[0].split(\" \", 1)\n\t\t\t\tfile_hash = d[0]\n\t\t\t\tfile_path = d[1]\n\t\t\texcept:\n\t\t\t\tfile_hash = None\n\t\t\t\tfile_path = None\n\n\t\t\th = t[1].split(\" (\", 1)\n\t\t\tfile_name = h[0]\n\n\t\t\tfile_title = None\n\t\t\tif len(h[1]) > 1:\n\t\t\t\tfile_title = h[1][:-1]\n\n\t\t\tformatted_pl.append({\"hash\":file_hash, \"path\":file_path,\n\t\t\t\t\t\t\t\t \"file\":file_name, \"title\":file_title})\n\t\texcept:\n\t\t\tcontinue\n\n\treturn formatted_pl\n\ndef eat(score, processes, detected, flags):\n\tif flavours.config is None:\n\t\tpolice.cache_config()\n\n\tdo_restrict = False\n\tfor toppings in detected:\n\t\tif toppings[\"ban\"]:\n\t\t\tdo_restrict = True\n\n\ttag_list = [x[\"tag\"] for x in detected]\n\n\thax_flags = flags & ~ice_coffee.IGNORE_HAX_FLAGS\n\tbeatmap_id = get_beatmap_id(score.fileMd5)[\"beatmap_id\"]\n\t\n\tusername = userUtils.getUsername(score.playerUserID)\n\n\tfields = [\n\t\t{\n\t\t\t\"name\": \"BeatmapID: {}\".format(beatmap_id),\n\t\t\t\"value\": \"[Download Beatmap](http://{}/b/{})\".format(flavours.config[\"urls\"][\"main_domain\"], beatmap_id),\n\t\t\t\"inline\": True\n\t\t},\n\t\t{\n\t\t\t\"name\": \"ScoreID: {}\".format(score.scoreID),\n\t\t\t\"value\": \"[Download Replay](http://{}/web/replays/{})\".format(flavours.config[\"urls\"][\"main_domain\"], score.scoreID),\n\t\t\t\"inline\": True\n\t\t}\n\t]\n\n\tif len(detected) > 0:\n\t\treason = \" & \".join(tag_list)\n\t\tif len(reason) > 86:\n\t\t\treason = \"reasons...\"\n\n\t\textra_data = \"\"\n\t\tif hax_flags != 0:\n\t\t\textra_data = \"\\nHad bad flags: ({}) -> ({})\".format(flags, make_flags_string(flags))\n\n\t\tif do_restrict:\n\t\t\tuserUtils.restrict(score.playerUserID)\n\t\t\tuserUtils.appendNotes(score.playerUserID, \"Restricted due to {}\".format(reason))\n\t\t\tpolice.call(\"{} was restricted for: {} {}\".format(username, reason, extra_data), \n\t\t\t\tdiscord_m=True,\n\t\t\t\tembed_args={\n\t\t\t\t\t\t\"color\": 0xd9534f,\n\t\t\t\t\t\t\"title\": \"Bad cake detected\",\n\t\t\t\t\t\t\"title_url\": \"http://old.{}/index.php?p=129&sid={}\".format(flavours.config[\"urls\"][\"main_domain\"], score.scoreID),\n\t\t\t\t\t\t\"desc\": \"Restricted for: {} {}\".format(reason, extra_data),\n\t\t\t\t\t\t\"author\": username,\n\t\t\t\t\t\t\"author_icon\": \"http://a.{}/{}\".format(flavours.config[\"urls\"][\"main_domain\"], score.playerUserID),\n\t\t\t\t\t\t\"author_url\": \"http://{}/u/{}\".format(flavours.config[\"urls\"][\"main_domain\"], score.playerUserID),\n\t\t\t\t\t\t\"thumbnail\": flavours.config[\"images\"][\"bad_cake_ban\"],\n\t\t\t\t\t\t\"fields\": fields\n\t\t\t\t\t}\n\t\t\t\t)\n\t\telse:\n\t\t\tuserUtils.appendNotes(score.playerUserID, reason)\n\t\t\tpolice.call(\"{} submitted bad cake: {} {}\".format(username, reason, extra_data), \n\t\t\t\tdiscord_m=True,\n\t\t\t\tembed_args={\n\t\t\t\t\t\t\"color\": 0xf0ad4e,\n\t\t\t\t\t\t\"title\": \"Bad cake detected\",\n\t\t\t\t\t\t\"title_url\": \"http://old.{}/index.php?p=129&sid={}\".format(flavours.config[\"urls\"][\"main_domain\"], score.scoreID),\n\t\t\t\t\t\t\"desc\": \"Had bad cake: {} {}\".format(reason, extra_data),\n\t\t\t\t\t\t\"author\": username,\n\t\t\t\t\t\t\"author_icon\": \"http://a.{}/{}\".format(flavours.config[\"urls\"][\"main_domain\"], score.playerUserID),\n\t\t\t\t\t\t\"author_url\": \"http://{}/u/{}\".format(flavours.config[\"urls\"][\"main_domain\"], score.playerUserID),\n\t\t\t\t\t\t\"thumbnail\": flavours.config[\"images\"][\"bad_cake\"],\n\t\t\t\t\t\t\"fields\": fields\n\t\t\t\t\t}\n\t\t\t\t)\n\telif hax_flags != 0:\n\t\tpolice.call(\"{} submitted bad flags: ({}) -> ({})\".format(username, flags, make_flags_string(flags)),\n\t\t\tdiscord_m=True, \n\t\t\tembed_args={\n\t\t\t\t\t\"color\": 0xf0ad4e,\n\t\t\t\t\t\"title\": \"Bad flags detected\",\n\t\t\t\t\t\"title_url\": \"http://old.{}/index.php?p=129&sid={}\".format(flavours.config[\"urls\"][\"main_domain\"], score.scoreID),\n\t\t\t\t\t\"desc\": \"({}) -> ({})\".format(flags, make_flags_string(flags)),\n\t\t\t\t\t\"author\": username,\n\t\t\t\t\t\"author_icon\": \"http://a.{}/{}\".format(flavours.config[\"urls\"][\"main_domain\"], score.playerUserID),\n\t\t\t\t\t\"author_url\": \"http://{}/u/{}\".format(flavours.config[\"urls\"][\"main_domain\"], score.playerUserID),\n\t\t\t\t\t\"thumbnail\": flavours.config[\"images\"][\"bad_flag\"],\n\t\t\t\t\t\"fields\": fields\n\t\t\t\t}\n\t\t\t)\n\n\tglob.db.execute(\"INSERT INTO cakes(id, userid, score_id, processes, detected, flags) VALUES (NULL,%s,%s,%s,%s,%s)\", [score.playerUserID, score.scoreID, json.dumps(processes), json.dumps(tag_list), flags])\n\ndef make_flags_string(i):\n\ts = []\n\tflags = [e for e in ice_coffee.Flags]\n\n\tfor flag in flags:\n\t\tif i & flag.value and i & ~ice_coffee.IGNORE_HAX_FLAGS:\n\t\t\ts.append(flag.name)\n\t\n\treturn \", \".join(s)\n\ndef get_beatmap_id(hash):\n\tquery = \"SELECT beatmap_id,beatmapset_id FROM beatmaps WHERE beatmap_md5 = %s\"\n\treturn glob.db.fetch(query, [hash])","repo_name":"light-ripple/Light-Ripple-Windows","sub_path":"lets/secret/butterCake.py","file_name":"butterCake.py","file_ext":"py","file_size_in_byte":7202,"program_lang":"python","lang":"en","doc_type":"code","stars":13,"dataset":"github-code","pt":"86"}
+{"seq_id":"8256330475","text":"\"\"\"\nA unit test for the pyxsim analysis module.\n\"\"\"\n\nimport os\nimport shutil\nimport tempfile\n\nimport numpy as np\nfrom numpy.testing import assert_allclose\nfrom soxs import ApecGenerator\nfrom yt.utilities.cosmology import Cosmology\nfrom yt.utilities.physical_constants import clight\n\nfrom pyxsim import CIESourceModel, make_photons, project_photons\nfrom pyxsim.tests.utils import (\n BetaModelSource,\n ParticleBetaModelSource,\n events_ks_testing,\n)\n\ncosmo = Cosmology()\n\nckms = clight.in_units(\"km/s\").v\n\n\ndef test_beta_model(check_dir):\n bms = BetaModelSource()\n do_beta_model(bms, check_dir)\n\n\ndef test_beta_model_nomove(check_dir):\n bms = BetaModelSource()\n do_beta_model(bms, check_dir, axis=\"x\", prng=89)\n\n\ndef test_beta_model_offaxis(check_dir):\n bms = BetaModelSource()\n do_beta_model(bms, check_dir, axis=[1.0, -2.0, 5.0], prng=78)\n\n\ndef test_particle_beta_model(check_dir):\n bms = ParticleBetaModelSource()\n do_beta_model(bms, check_dir, prng=29)\n\n\ndef test_particle_beta_model_nomove(check_dir):\n bms = ParticleBetaModelSource()\n do_beta_model(bms, check_dir, axis=\"x\", prng=72)\n\n\ndef test_particle_beta_model_offaxis(check_dir):\n bms = ParticleBetaModelSource()\n do_beta_model(bms, check_dir, prng=67, axis=[1.0, -2.0, 5.0])\n\n\ndef do_beta_model(source, check_dir, axis=\"z\", prng=None):\n tmpdir = tempfile.mkdtemp()\n curdir = os.getcwd()\n os.chdir(tmpdir)\n\n if prng is None:\n prng = source.prng\n\n ds = source.ds\n\n A = 30000.0\n exp_time = 1.0e4\n redshift = 0.05\n nH_sim = 0.02\n\n sphere = ds.sphere(\"c\", (0.5, \"Mpc\"))\n\n kT_sim = source.kT\n Z_sim = source.Z\n\n thermal_model = CIESourceModel(\"apec\", 0.1, 11.5, 20000, Z_sim, prng=prng)\n make_photons(\"my_photons\", sphere, redshift, A, exp_time, thermal_model)\n\n D_A = cosmo.angular_diameter_distance(0.0, redshift).to_value(\"cm\")\n\n norm_sim = sphere.quantities.total_quantity((\"gas\", \"emission_measure\"))\n norm_sim *= 1.0e-14 / (4 * np.pi * D_A * D_A * (1.0 + redshift) * (1.0 + redshift))\n norm_sim = float(norm_sim.in_cgs())\n\n v1, v2 = sphere.quantities.weighted_standard_deviation(\n (\"gas\", \"velocity_z\"), (\"gas\", \"emission_measure\")\n )\n\n if isinstance(axis, str):\n if axis == \"z\":\n fac = 1.0\n else:\n fac = 0.0\n else:\n axis /= np.sqrt(np.dot(axis, axis))\n fac = np.dot(axis, [0.0, 0.0, 1.0])\n\n sigma_sim = fac * float(v1.in_units(\"km/s\"))\n mu_sim = -fac * float(v2.in_units(\"km/s\"))\n\n project_photons(\n \"my_photons\",\n \"my_events\",\n axis,\n [30.0, 45.0],\n absorb_model=\"tbabs\",\n nH=nH_sim,\n prng=prng,\n )\n\n redshift_sim = (1.0 + mu_sim / ckms) * (1.0 + redshift) - 1.0\n\n agen = ApecGenerator(0.3, 8.0, 10000)\n spec = agen.get_spectrum(kT_sim, Z_sim, redshift_sim, norm_sim, velocity=sigma_sim)\n spec.apply_foreground_absorption(nH_sim, model=\"tbabs\")\n\n pvalue = events_ks_testing(\"my_events.h5\", spec, exp_time, A, check_dir)\n\n assert pvalue > 0.05\n\n os.chdir(curdir)\n shutil.rmtree(tmpdir)\n\n\ndef test_vapec_beta_model(check_dir):\n bms = BetaModelSource()\n\n tmpdir = tempfile.mkdtemp()\n curdir = os.getcwd()\n os.chdir(tmpdir)\n\n prng = 50\n\n ds = bms.ds\n\n A = 30000.0\n exp_time = 1.0e5\n redshift = 0.05\n nH_sim = 0.02\n\n sphere = ds.sphere(\"c\", (0.5, \"Mpc\"))\n\n kT_sim = bms.kT\n Z_sim = bms.Z\n O_sim = bms.O\n Ca_sim = bms.Ca\n\n var_elem = {\"O\": (\"stream\", \"oxygen\"), \"Ca\": (\"stream\", \"calcium\")}\n\n thermal_model = CIESourceModel(\n \"apec\", 0.1, 11.5, 20000, (\"gas\", \"metallicity\"), var_elem=var_elem, prng=prng\n )\n\n make_photons(\"my_photons\", sphere, redshift, A, exp_time, thermal_model)\n\n D_A = cosmo.angular_diameter_distance(0.0, redshift).to(\"cm\")\n\n norm_sim = sphere.quantities.total_quantity(\"emission_measure\")\n norm_sim *= 1.0e-14 / (4 * np.pi * D_A * D_A * (1.0 + redshift) * (1.0 + redshift))\n norm_sim = float(norm_sim.in_cgs())\n\n project_photons(\n \"my_photons\",\n \"my_events\",\n \"z\",\n [30.0, 45.0],\n absorb_model=\"tbabs\",\n nH=nH_sim,\n prng=prng,\n no_shifting=True,\n )\n\n agen = ApecGenerator(0.2, 10.0, 10000, var_elem=[\"O\", \"Ca\"])\n spec = agen.get_spectrum(\n kT_sim, Z_sim, redshift, norm_sim, elem_abund={\"O\": O_sim, \"Ca\": Ca_sim}\n )\n spec.apply_foreground_absorption(nH_sim, model=\"tbabs\")\n\n pvalue = events_ks_testing(\"my_events.h5\", spec, exp_time, A, check_dir)\n\n print(pvalue)\n assert pvalue > 0.05\n\n os.chdir(curdir)\n shutil.rmtree(tmpdir)\n\n\ndef test_beta_model_fields():\n bms = BetaModelSource()\n ds = bms.ds\n\n redshift = 0.2\n\n sphere = ds.sphere(\"c\", (0.5, \"Mpc\"))\n\n kT_sim = bms.kT\n Z_sim = bms.Z\n\n D_A = cosmo.angular_diameter_distance(0.0, redshift).to_value(\"cm\")\n D_L = cosmo.luminosity_distance(0.0, redshift).to_value(\"cm\")\n\n norm = (\n 1.0e-14\n * sphere.sum((\"gas\", \"emission_measure\")).v\n / (4.0 * np.pi * D_A * D_A * (1 + redshift) ** 2)\n )\n\n agen = ApecGenerator(0.1, 11.5, 2000)\n\n spec = agen.get_spectrum(kT_sim, Z_sim, redshift, norm)\n pflux, eflux = spec.get_flux_in_band(0.5 / (1.0 + redshift), 7.0 / (1.0 + redshift))\n lum = 4.0 * np.pi * D_L**2 * eflux.value\n plum = 4.0 * np.pi * D_L**2 * pflux.value / (1.0 + redshift)\n\n thermal_model = CIESourceModel(\"apec\", 0.1, 11.5, 2000, Z_sim)\n\n xray_fields = thermal_model.make_source_fields(ds, 0.5, 7.0)\n lum1 = sphere.sum(xray_fields[1]).value\n plum1 = (sphere[xray_fields[-2]] * sphere[\"cell_volume\"]).sum().value\n plum2 = sphere[xray_fields[-1]].sum().value\n\n int_fields = thermal_model.make_intensity_fields(\n ds, 0.5 / (1.0 + redshift), 7.0 / (1.0 + redshift), redshift=redshift\n )\n angular_scale = 1.0 / cosmo.angular_scale(0.0, redshift).to(\"cm/arcsec\")\n\n eflux2 = (sphere[int_fields[0]] * sphere[\"cell_volume\"]).sum() * angular_scale**2\n pflux2 = (sphere[int_fields[1]] * sphere[\"cell_volume\"]).sum() * angular_scale**2\n\n assert np.abs(lum1 - lum) / lum < 0.001\n assert np.abs(plum1 - plum) / plum < 0.01\n assert np.abs(plum2 - plum) / plum < 0.01\n\n assert np.abs(eflux2.value - eflux.value) / eflux.value < 0.001\n assert np.abs(pflux2.value - pflux.value) / pflux.value < 0.01\n\n\ndef test_beta_model_spectrum():\n bms = BetaModelSource()\n ds = bms.ds\n\n redshift = 0.2\n\n sphere = ds.sphere(\"c\", (0.5, \"Mpc\"))\n\n kT_sim = bms.kT\n Z_sim = bms.Z\n\n D_A = cosmo.angular_diameter_distance(0.0, redshift).to_value(\"cm\")\n\n norm1 = 1.0e-14 * sphere.sum((\"gas\", \"emission_measure\")).v\n norm2 = norm1 / (4.0 * np.pi * D_A * D_A * (1 + redshift) ** 2)\n\n agen = ApecGenerator(0.2, 7.0, 2000)\n\n spec1 = agen.get_spectrum(kT_sim, Z_sim, redshift, norm2)\n\n thermal_model = CIESourceModel(\"apec\", 0.2, 7.0, 2000, Z_sim)\n spec2 = thermal_model.make_spectrum(\n sphere, 0.2, 7.0, 2000, redshift=redshift, cosmology=cosmo\n )\n assert_allclose(spec1.flux.value, spec2.flux.value)\n\n spec3 = agen.get_spectrum(kT_sim, Z_sim, 0.0, norm1)\n\n spec4 = thermal_model.make_spectrum(sphere, 0.2, 7.0, 2000)\n\n assert_allclose(spec3.flux.value, spec4.flux.value)\n","repo_name":"jzuhone/pyxsim","sub_path":"pyxsim/tests/test_beta_model.py","file_name":"test_beta_model.py","file_ext":"py","file_size_in_byte":7275,"program_lang":"python","lang":"en","doc_type":"code","stars":19,"dataset":"github-code","pt":"86"}
+{"seq_id":"30734990036","text":"import configparser\nimport datetime\nfrom enum import Enum\nimport os\n\nimport openpyxl\nimport yaml\n\nSEPARATOR = \"_\"\nTEMPLATE_SUFFIX = SEPARATOR + \"template\"\n# TODO: someday: move this into the config\nUNITS_SUFFIX = SEPARATOR + \"units\"\nPHI_SUFFIX = SEPARATOR + \"phi\"\n# All field names should be lowercase and contain only alphanumeric and underscores.\n# No field name can start with a number\nFIELD_NAME_REGEX = \"^[a-z][a-z0-9_]*$\"\nNON_WIZARD_XLSX_ERROR_PREFIX = \"Spreadsheet does not appear to have been produced by QIIMP: \"\n# TODO: someday: this duplicates a definition in xlsx_builder, which would be a circular reference here; refactor!\nWORKBOOK_PASSWORD = \"kpcofGs\" # Kingdom phylum class order family Genus species\nSAMPLE_NAME_HEADER = \"sample_name\"\nNAME_KEY = \"name\"\nDISPLAY_NAME_KEY = \"display_name\"\nDOWNLOAD_URL_FOLDER = \"/download\"\nPACKAGE_URL_FOLDER = \"/package\"\nUPLOAD_URL_FOLDER = \"/upload\"\n# Per Austin, make default column width \"at least wide enough to handle\n# host_scientific_name our largest mandatory metadata title\";\n# Sizing approach (magic # 1.25 ~= width of 1 character) from\n# https://stackoverflow.com/questions/29463274/simulate-autofit-column-in-\n# xslxwriter#comment90864296_37218180\nMIN_COL_WIDTH = len(\"host_scientific_name\") * 1.25\n\n\ndef get_single_key_and_subdict(a_dict):\n if len(a_dict.keys()) != 1:\n raise ValueError(\n \"Dictionary '{0}' is mis-structured; must have only one top-level key.\".format(a_dict))\n\n single_key = list(a_dict.keys())[0]\n return single_key, a_dict[single_key]\n\n\ndef load_yaml_from_wizard_xlsx(filepath, yaml_sheetname):\n assumed_cell = \"A1\"\n wb = openpyxl.load_workbook(filename=filepath)\n check_is_metadata_wizard_file(wb, yaml_sheetname, filepath)\n\n yaml_sheet = wb[yaml_sheetname]\n yaml_string = yaml_sheet[assumed_cell].value\n yaml_dict = yaml.load(yaml_string)\n return yaml_dict\n\n\n# TODO: someday: grrr ... this doesn't really belong here, I feel, but can't move it xlsx_basics because that\n# would create a circular reference, so some refactoring is called for ...\ndef check_is_metadata_wizard_file(openpyxl_workbook, yaml_sheetname, filepath):\n sheet_names = openpyxl_workbook.sheetnames\n if yaml_sheetname not in sheet_names:\n error_msg = \"{0}'{1}' .\".format(NON_WIZARD_XLSX_ERROR_PREFIX, filepath)\n raise ValueError(error_msg)\n\n\ndef _load_yaml_from_fp(filepath):\n with open(filepath, 'r') as stream:\n result = yaml.load(stream)\n return result\n\n\nclass ValidationKeys(Enum):\n type = \"type\"\n required = \"required\"\n allowed = \"allowed\"\n default = \"default\"\n empty = \"empty\"\n anyof = \"anyof\"\n min_inclusive = \"min\"\n min_exclusive = \"min_exclusive\"\n max_inclusive = \"max\"\n max_exclusive = \"max_exclusive\"\n forbidden = \"forbidden\"\n regex = \"regex\"\n unique = \"unique\"\n\n\nclass CerberusDataTypes(Enum):\n Text = \"string\"\n Integer = \"integer\"\n Decimal = \"number\"\n DateTime = \"datetime\"\n # Note: time is NOT a built-in Cerberus data type;\n # if we ever decide to actually use Cerberus validation of the\n # QIIMP schemas, we will need to create this as a custom Cerberus type\n # (see http://docs.python-cerberus.org/en/stable/customize.html#new-types )\n Time = \"time\"\n\n\nclass EbiMissingValues(Enum):\n # values from https://www.ebi.ac.uk/ena/about/missing-values-reporting\n ebi_not_applicable = \"not applicable\"\n ebi_not_collected = \"not collected\"\n ebi_not_provided = \"not provided\"\n ebi_restricted = \"restricted access\"\n\n\nclass InputNames(Enum):\n study_name = \"study_name\"\n field_name = \"field_name\"\n field_type = \"field_type\"\n field_desc = \"field_desc\"\n allowed_missing_vals = \"allowed_missing_vals[]\"\n default_value = \"default_value\"\n allowed_missing_default_select = \"allowed_missing_default_select\"\n categorical_default_select = \"categorical_default_select\"\n continuous_default = \"continuous_default\"\n boolean_default_select = \"boolean_default_select\"\n text_default = \"text_default\"\n datetime_default = \"datetime_default\"\n true_value = \"true_value\"\n false_value = \"false_value\"\n data_type = \"data_type\"\n categorical_values = \"categorical_values\"\n minimum_comparison = \"minimum_comparison\"\n minimum_value = \"minimum_value\"\n maximum_comparison = \"maximum_comparison\"\n maximum_value = \"maximum_value\"\n units = \"units\"\n is_unitless = \"is_unitless\"\n is_phi = \"is_phi\"\n environment = \"env\"\n sample_type = \"sample_type\"\n\n\nclass FieldTypes(Enum):\n Boolean = \"boolean\"\n Categorical = \"categorical\"\n Continuous = \"continuous\"\n Text = CerberusDataTypes.Text.value\n\n\ndef _get_field_type_to_tooltip_dict():\n return {\n FieldTypes.Text.value: \"Free Text\",\n FieldTypes.Boolean.value: \"Boolean (True/False)\",\n FieldTypes.Categorical.value: \"Categorical (Group A, B, C, etc.)\",\n FieldTypes.Continuous.value: \"Continous (Numbers, dates, etc.)\"\n }\n\n\nclass DefaultTypes(Enum):\n no_default = \"no_default\"\n boolean_default = \"boolean_default\"\n allowed_missing_default = \"allowed_missing_default\"\n categorical_default = \"categorical_default\"\n continuous_default = \"continuous_default\"\n text_default = \"text_default\"\n\n\nclass MetadataWizardState(object):\n def __init__(self):\n # I think this should NOT be in the config; new versions SHOULD involve changing code.\n self.VERSION = \"v0.3\"\n\n # TODO: someday: these file path definitions should move into the config\n self.RESERVED_WORDS_YAML_PATH = \"reserved_words.yaml\"\n self.REGEX_YAML_PATH = 'regex_definitions.yaml'\n self.README_TEXT_PATH = \"readme_template.txt\"\n self.DEFAULT_LOCALES_YAML_PATH = \"default_locales.yaml\"\n self.ENVIRONMENTS_YAML_PATH = \"environments.yaml\"\n self.SAMPLETYPES_YAML_PATH = \"sampletypes.yaml\"\n self.FIELD_TYPE_TOOLTIPS = _get_field_type_to_tooltip_dict()\n self.TUTORIAL_LINK = \"http://metadata-wizard-tutorial.readthedocs.io/en/latest/\"\n self.TUTORIAL_BLURB = \"Need help? Visit the tutorial ! (Opens in new tab.)\"\n\n self.install_dir = None\n self.static_path = None\n self.url_subfolder = None\n self.static_url_folder = None\n self.static_url_prefix = None\n self.packages_dir_path = None\n self.settings_dir_path = None\n self.templates_dir_path = None\n self.client_scripts_dir_path = None\n\n self.main_url = None\n self.partial_package_url = None\n self.partial_download_url = None\n self.partial_upload_url = None\n self.full_upload_url = None\n #self.full_merge_url = None\n self.listen_port = None\n self.use_ssl = True\n self.protocol = None\n\n self.regex_handler = None\n\n self.default_locales_list = None\n self.reserved_words_list = None\n self.displayname_by_sampletypes_list = None\n self.environment_definitions = None\n\n self.combinations_display_dicts_list = None\n self.envs_display_dicts_list = None\n self.sampletype_display_dicts_list = None\n self.parent_stack_by_env_name = None\n self.env_schemas = None\n\n # self.merge_info_by_merge_id = {}\n\n def set_up(self, is_deployed):\n self.install_dir = os.path.dirname(__file__)\n self.settings_dir_path = os.path.join(self.install_dir, \"settings\")\n self.packages_dir_path = os.path.join(self.settings_dir_path, \"packages\")\n self.templates_dir_path = os.path.join(self.install_dir, \"templates\")\n self.client_scripts_dir_path = os.path.join(self.install_dir, \"client_scripts\")\n\n self._get_config_values(is_deployed)\n\n self.use_ssl = bool(self.certificate_file and self.key_file)\n self.protocol = \"https\" if self.use_ssl else \"http\"\n if self.static_path == \"\": self.static_path = self.install_dir\n\n self.static_url_prefix = self._get_url(self.static_url_folder)\n self.partial_package_url = self._get_url(PACKAGE_URL_FOLDER)\n self.partial_download_url = self._get_url(DOWNLOAD_URL_FOLDER)\n self.partial_upload_url = self._get_url(UPLOAD_URL_FOLDER)\n self.full_upload_url = self._get_url(UPLOAD_URL_FOLDER, True)\n # self.full_merge_url = \"{0}://{1}/merge\".format(self.protocol, self.main_url)\n\n self.regex_handler = RegexHandler(self._get_settings_item_path(self.REGEX_YAML_PATH))\n self.reserved_words_list = _load_yaml_from_fp(self._get_settings_item_path(self.RESERVED_WORDS_YAML_PATH))\n self.default_locales_list = _load_yaml_from_fp(self._get_settings_item_path(self.DEFAULT_LOCALES_YAML_PATH))\n self.displayname_by_sampletypes_list = _load_yaml_from_fp(self._get_settings_item_path(self.SAMPLETYPES_YAML_PATH))\n self.environment_definitions = _load_yaml_from_fp(self._get_settings_item_path(self.ENVIRONMENTS_YAML_PATH))\n\n def set_env_and_sampletype_infos(self, env_and_sampletype_infos_tuple):\n # NB: These values come from metadata_package_schema_builder.load_environment_and_sampletype_info; a more\n # explicit output rather than an arbitrarily ordered tuple wouldn't be a bad idea :)\n self.combinations_display_dicts_list = env_and_sampletype_infos_tuple[0]\n self.envs_display_dicts_list = env_and_sampletype_infos_tuple[1]\n self.sampletype_display_dicts_list = env_and_sampletype_infos_tuple[2]\n self.parent_stack_by_env_name = env_and_sampletype_infos_tuple[3]\n self.env_schemas = env_and_sampletype_infos_tuple[4]\n\n def get_output_path(self, file_name):\n return os.path.join(self.install_dir, self.get_partial_output_path(file_name))\n\n def get_partial_output_path(self, file_name):\n return os.path.join(\"output\", file_name)\n\n def make_readme_text(self):\n with open(self._get_settings_item_path(self.README_TEXT_PATH), 'r') as f:\n readme_text = f.read()\n\n now = datetime.datetime.now()\n readme_text = readme_text.replace(\"VERSION\", self.VERSION)\n readme_text = readme_text.replace(\"GENERATION_TIMESTAMP\", now.strftime(\"%Y-%m-%d %H:%M:%S\"))\n return readme_text\n\n def _get_config_values(self, is_deployed):\n section_name = \"DEPLOYED\" if is_deployed else \"LOCAL\"\n config_parser = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())\n config_parser.read_file(open(os.path.join(self.settings_dir_path, 'config.txt')))\n\n self.static_path = os.path.expanduser(config_parser.get(section_name, \"static_path\"))\n self.url_subfolder = config_parser.get(section_name, \"url_subfolder\")\n self.static_url_folder = config_parser.get(section_name, \"static_url_folder\")\n self.listen_port = os.path.expanduser(config_parser.get(section_name, \"listen_port\"))\n self.main_url = config_parser.get(section_name, \"main_url\")\n self.certificate_file = self._apply_default_path(os.path.expanduser(config_parser.get(section_name, 'CERTIFICATE_FILE')))\n self.key_file = self._apply_default_path(os.path.expanduser(config_parser.get(section_name, 'KEY_FILE')))\n\n def _apply_default_path(self, file_name):\n # assume that, if the file name doesn't already include a path,\n # the file is located in the settings directory\n result = file_name\n if result:\n if not os.path.dirname(file_name):\n result = os.path.join(self.settings_dir_path, file_name)\n return result\n\n def _get_settings_item_path(self, item_file_name):\n return self._get_item_path(self.settings_dir_path, item_file_name)\n\n def _get_url(self, desired_subfolder=\"\", make_full_url=False):\n result = self.url_subfolder + desired_subfolder + \"/\"\n if make_full_url:\n result = \"{0}://{1}{2}\".format(self.protocol, self.main_url, result)\n return result\n\n @staticmethod\n def _get_item_path(parent_dir, file_name):\n return os.path.join(parent_dir, file_name)\n\n\nclass RegexHandler(object):\n FORMULA_KEY = \"formula\"\n REGEX_KEY = \"regex\"\n MESSAGE_KEY = \"message\"\n\n def __init__(self, regex_definitions_yaml_fp):\n with open(regex_definitions_yaml_fp) as f:\n self._dict_of_regex_dicts = yaml.load(f)\n\n def get_regex_val_by_name(self, regex_name):\n return self._get_relevant_item_dict_if_any(regex_name, self.REGEX_KEY)\n\n def get_formula_or_message_for_regex(self, regex_value, get_formula=True):\n result = None\n for _, details_dict in self._dict_of_regex_dicts.items():\n curr_regex_value = details_dict[self.REGEX_KEY]\n if curr_regex_value == regex_value:\n result = details_dict[self.FORMULA_KEY] if get_formula else \\\n details_dict[self.MESSAGE_KEY]\n break\n\n if result is None:\n raise ValueError(\"unrecognized regex {0}\".format(regex_value))\n return result\n\n def _get_relevant_item_dict_if_any(self, section_key, item_key):\n result = None\n if section_key in self._dict_of_regex_dicts:\n section_dict = self._dict_of_regex_dicts[section_key]\n if item_key in section_dict:\n result = section_dict[item_key]\n\n return result\n","repo_name":"ucsd-ccbb/qiimp","sub_path":"qiimp/metadata_wizard_settings.py","file_name":"metadata_wizard_settings.py","file_ext":"py","file_size_in_byte":13368,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"29992485534","text":"import numpy as np\nfrom sklearn import datasets\nfrom sklearn.neighbors import KNeighborsClassifier\n\niris = datasets.load_iris()\niris_X = iris.data # use iris_X.shape --> SHAPE shows the dimensions. it's a property of numpy arrays\niris_Y = iris.target\n\nnp.random.seed(0)\nindices = np.random.permutation(len(iris_X))\nprint(indices)\niris_X_train = iris_X[indices[:-10]] # use index -10 as [:-10] to avoid having to specify the length of the array and just select all data from 0 except the last 10\niris_Y_train = iris_Y[indices[:-10]] # WHAT IS indices? --> is the array went through a permutation with all the indices (all indices are the size of iris_X\niris_X_test = iris_X[indices[-10:]]\niris_Y_test = iris_Y[indices[-10:]]\n\nknn = KNeighborsClassifier() # typing knn in the console shows you hte details of the classifier or regressor\nknn.fit(iris_X_train,iris_Y_train)\nprint(knn.predict(iris_X_test))\nprint(iris_Y_test) #changing the seed used for the permutation, determines different train and test and therefore changes the fit\n\n#PRESS SHIFT 2 TIMES TO SEARCH EVERYWHERE","repo_name":"fedegott/Intro_Machine_Learning","sub_path":"Intro_ML.py","file_name":"Intro_ML.py","file_ext":"py","file_size_in_byte":1076,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34184874627","text":"from know_me import models\nfrom know_me.serializers import subscription_serializers\n\n\ndef test_serialize_inactive():\n \"\"\"\n If an inactive subscription is serialized, ``is_active`` should be\n ``False`` and all other fields should be ``None``.\n \"\"\"\n subscription = models.Subscription(is_active=False)\n serializer = subscription_serializers.SubscriptionSerializer(subscription)\n\n assert serializer.data == {\n \"apple_receipt\": None,\n \"is_active\": False,\n \"is_legacy_subscription\": False,\n }\n\n\ndef test_serialize_apple_receipt(apple_receipt_factory):\n \"\"\"\n If a subscription backed by an Apple receipt is serialized, it\n should return information about the Apple receipt.\n \"\"\"\n receipt = apple_receipt_factory(subscription__is_active=True)\n serializer = subscription_serializers.SubscriptionSerializer(\n receipt.subscription\n )\n\n # Child serializers\n receipt_serializer = subscription_serializers.AppleReceiptInfoSerializer(\n receipt\n )\n\n assert serializer.data == {\n \"apple_receipt\": receipt_serializer.data,\n \"is_active\": True,\n \"is_legacy_subscription\": False,\n }\n\n\ndef test_serialize_legacy(subscription_factory):\n \"\"\"\n If a subscription is marked as a legacy subscription, it should\n include a flag indicating that.\n \"\"\"\n subscription = subscription_factory(is_legacy_subscription=True)\n serializer = subscription_serializers.SubscriptionSerializer(subscription)\n\n assert serializer.data == {\n \"apple_receipt\": None,\n \"is_active\": subscription.is_active,\n \"is_legacy_subscription\": True,\n }\n","repo_name":"knowmetools/km-api","sub_path":"km_api/know_me/journal/tests/serializers/test_subscription_serializer.py","file_name":"test_subscription_serializer.py","file_ext":"py","file_size_in_byte":1653,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"14545601579","text":"from django.test import TestCase\nfrom django.db import IntegrityError\nfrom ..models import *\n\nclass StockTestCases(TestCase):\n # Create a Stock item\n def setUp(self):\n self.org_code = generate_random_org_code()\n self.org = Organisation.objects.create(code = self.org_code, name = \"Org\", logo=\"img\")\n self.p_name = \"Eggs\"\n self.p = Produce.objects.create(organisation=self.org, name=self.p_name)\n self.pv_name = \"Variety\"\n self.pv = ProduceVariety.objects.create(variety=self.pv_name, produce_id=self.p)\n self.pqs_suffix = \"kg\"\n self.pqs_base = 1000\n self.pqs = ProduceQuantitySuffix.objects.create(suffix=self.pqs_suffix, base_equivalent = self.pqs_base, produce_id = self.p)\n self.s_name = \"Supplier\"\n self.s_pn = \"012456789\"\n self.s = Supplier.objects.create(organisation=self.org, name = self.s_name, phone_number = self.s_pn)\n self.ac_name = \"Area Code\"\n self.ac_desc = \"It's an area code\"\n self.ac = AreaCode.objects.create(organisation=self.org, area_code = self.ac_name, description = self.ac_desc)\n self.qty = 123\n self.aqty = 123\n self.date_seeded = \"2022-10-01\"\n self.date_planted = \"2022-10-02\"\n self.date_picked = \"2022-10-03\"\n self.ehd = \"2022-12-01\"\n self.stock = Stock.objects.create(organisation=self.org, quantity=self.qty, quantity_available=self.aqty, date_seeded=self.date_seeded, date_planted = self.date_planted, date_picked = self.date_picked, ehd = self.ehd, date_completed = None, produce_id = self.p, variety_id = self.pv, quantity_suffix_id = self.pqs, supplier_id = self.s, area_code_id = self.ac)\n\n # Test whether the fields of the created stock are correct or not\n def test_stock_fields(self):\n self.assertEquals(self.stock.quantity, self.qty)\n self.assertEquals(self.stock.quantity_available, self.aqty)\n self.assertEquals(self.stock.date_seeded, self.date_seeded)\n self.assertEquals(self.stock.date_planted, self.date_planted)\n self.assertEquals(self.stock.date_picked, self.date_picked)\n self.assertEquals(self.stock.ehd, self.ehd)\n self.assertEquals(self.stock.date_completed, None)\n self.assertEquals(self.stock.produce_id, self.p)\n self.assertEquals(self.stock.variety_id, self.pv)\n self.assertEquals(self.stock.quantity_suffix_id, self.pqs)\n self.assertEquals(self.stock.supplier_id, self.s)\n self.assertEquals(self.stock.area_code_id, self.ac)\n\n # Ensure that null org raises integrity error\n def test_stock_creation_exception(self):\n with self.assertRaises(IntegrityError):\n Stock.objects.create(organisation=None, quantity_available=self.aqty, date_seeded=self.date_seeded, date_planted = self.date_planted, date_picked = self.date_picked, ehd = self.ehd, date_completed = None, produce_id = self.p, variety_id = self.pv, quantity_suffix_id = self.pqs, supplier_id = self.s, area_code_id = self.ac)","repo_name":"MatthewKarko/Farmware","sub_path":"farmware/core/api/tests/test_stock_model.py","file_name":"test_stock_model.py","file_ext":"py","file_size_in_byte":3012,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"39302115491","text":"# 완전검색\ndef dfs(arr, path, visited, res):\n global min_num\n if sum(visited) == n:\n res += arr[path[-1][0]]\n if min_num > res:\n min_num = res\n else:\n prior = path[-1]\n for i in range(n):\n if visited[i]:\n continue\n else:\n visited[i] = 1\n res += arr[path[-1][0]]\n path.append(i)\n\nimport sys\nsys.stdin = open('input.txt', 'r')\nfor tc in range(1, int(input())+1):\n n = int(input())\n arr = [list(map(int, input().split())) for _ in range(n)]\n visited = [0] * n\n visited[0] = 1\n min_num = 99999\n res = 0\n dfs(arr, [0], visited, res)\n\n\n","repo_name":"otterji/algorithms","sub_path":"1909/190918/카트/카트.py","file_name":"카트.py","file_ext":"py","file_size_in_byte":685,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"1180968732","text":"#Python libraries for math and graphics\nimport numpy as np\nimport mpmath as mp\nimport matplotlib.pyplot as plt\nfrom numpy import linalg as LA\n\nimport sys #for path to external scripts\n#sys.path.insert(0,'/storage/emulated/0/github/cbse-papers/CoordGeo') #path to my scripts\nsys.path.insert(0,'/sdcard/fwc/circle/CoordGeo')\n\n\n#local imports\nfrom line.funcs import *\nfrom triangle.funcs import *\nfrom conics.funcs import circ_gen\n\n#if using termux\nimport subprocess\nimport shlex\n#end if\ndef circ_gen(O,r):\n\tlen = 50\n\ttheta = np.linspace(0,2*np.pi,len)\n\tx_circ = np.zeros((2,len))\n\tx_circ[0,:] = r*np.cos(theta)\n\tx_circ[1,:] = r*np.sin(theta)\n\tx_circ = (x_circ.T + O).T\n\treturn x_circ\n\ndef line_gen(A,B):\n len =10\n dim = A.shape[0]\n x_AB = np.zeros((dim,len))\n lam_1 = np.linspace(0,1,len)\n for i in range(len):\n temp1 = A + lam_1[i]*(B-A)\n x_AB[:,i]= temp1.T\n return x_AB\n\ndef line_dir_pt(m,G,k1,k2):\n len = 10\n dim = G.shape[0]\n x_LC = np.zeros((dim,len))\n lam_1 = np.linspace(k1,k2,len)\n for i in range(len):\n temp1 = G + lam_1[i]*m\n x_LC[:,i]= temp1.T\n return x_LC\n\n#for intersection tangent\nx1 = np.array(([5,0],[0,5]))\ne,p = np.linalg.eig(x1)\nw = np.array(([np.sqrt(e[0]),np.sqrt(e[1])]))\nq = np.array(([np.sqrt(e[0]),-np.sqrt(e[1])]))\nK = np.array(([w,q]))\nn3 = p@w\nn4 = p@q\nC = np.array(([9.8,2.8]))\nN = np.linalg.inv(K)@C\nprint(N)\nprint(\"norm :\",n3)\nprint(\"norm :\",n4)\nb = np.array(([2.23,-2.23]))\nc = np.array(([2.23,2.23]))\n\n#Standard basis vectors\ne1 = np.array((1,0)).reshape(2,1)\ne2 = np.array((0,1)).reshape(2,1)\n\n#Input parameters\nr1 = 1\nr2 = 4\ntheta=np.pi/3\nh=np.array((2/3,0)).reshape(2,1)\nV1 = np.eye(2)\nu1 = np.array((-2,-1)).reshape(2,1)\nf1 =4\nV2=np.eye(2)\nu2=np.array((-6,-4)).reshape(2,1)\nf2 = 36\nS1 = (V1@h+u1)@(V1@h+u1).T-(h.T@V1@h+2*u1.T@h+f1)*V1\nS2 = (V2@h+u2)@(V2@h+u2).T-(h.T@V2@h+2*u2.T@h+f2)*V2\nO1 = -u1.T\nO2 = -u2.T\nprint(\"S matrix :\",S1,S2)\nm = np.array(([6,-8]))\nn = np.array(([8,6]))\np = np.array(([2,1]))\nC = 32\nf0 = u1.T@V1@u1-f1\ni = (f0)/(n.T@V1@n)\nki = np.sqrt(i)\nX = V1*ki*n-u1\nP = np.array(([m@p,C]))\nM = np.vstack(([m,n]))\nX = np.linalg.inv(M)@P\nA = np.array(([2/3,0]))\nprint(\"intersection :\",X)\n\nk1 = 0.5\nk2 = -0.5\nx_X = line_dir_pt(m,X,k1,k2)\n\nk1 = 1\nk2 = -1\nx_A = line_dir_pt(b,N,k1,k2)\n\nk1 = 3\nk2 = -1.5\nx_c = line_dir_pt(c,N,k1,k2)\n\n#Intermediate parameters\nf01 = np.abs(-f1+u1.T@LA.inv(V1)@u1)\nf02 = np.abs(-f2+u2.T@LA.inv(V2)@u2)\n\n#Eigenvalues and eigenvectors\nD_vec1,P1 = LA.eig(S1)\nlam1 = D_vec1[0]\nlam2 = D_vec1[1]\np1 = P1[:,1].reshape(2,1)\np2 = P1[:,0].reshape(2,1)\nD = np.diag(D_vec1)\nt1= np.sqrt(np.abs(D_vec1))\nnegmat = np.block([e1,-e2])\nt2 = negmat@t1\n\n\n#Normal vectors to the conic\nn1 = P1@t1\nn2 = P1@t2\nprint(\":\",n1,n2)\nx=n1@n2\ny = np.linalg.norm(n1)*np.linalg.norm(n2)\ntheta = np.arccos(x/y)\ntheta1 = theta*180/np.pi\nprint(\"theta: \",theta1)\n\n#kappa\nden1 = n1.T@LA.inv(V1)@n1\nden2 = n2.T@LA.inv(V1)@n2\nk1 = np.sqrt(f01/(den1))\nk2 = np.sqrt(f01/(den2))\n\n#q11 = LA.inv(V1)@((k1*n1-u1.T).T)\nq12 = LA.inv(V1)@((-k1*n1-u1.T).T)\n#q21 = LA.inv(V1)@((k2*n2-u1.T).T)\nq22 = LA.inv(V1)@((-k2*n2-u1.T).T)\nprint(\"point of contact :\",q12,q22)\n\n\n#Eigenvalues and eigenvectors\nD_vec2,P2 = LA.eig(S2)\nlam11 = D_vec2[0]\nlam21 = D_vec2[1]\np11 = P2[:,1].reshape(2,1)\np21 = P2[:,0].reshape(2,1)\nD1 = np.diag(D_vec2)\nt11= np.sqrt(np.abs(D_vec2))\nnegmat = np.block([e1,-e2])\nt21 = negmat@t11\n\n#Normal vectors to the conic\nn11 = P2@t11\nn21 = P2@t21\nprint(\"normal :\",n1,n11,n2,n21)\n#kappa\nden11 = n11.T@LA.inv(V2)@n11\nden21 = n21.T@LA.inv(V2)@n21\n\nk11 = np.sqrt(f02/(den11))\nk21 = np.sqrt(f02/(den21))\n\n#q11_1 = LA.inv(V2)@((k11*n11-u2.T).T)\nq12_1 = LA.inv(V2)@((-k11*n11-u2.T).T)\n#q21_1 = LA.inv(V2)@((k21*n21-u2.T).T)\nq22_1 = LA.inv(V2)@((-k21*n21-u2.T).T)\nprint(\"point of contact :\",q12_1,q22_1)\n\n#Generating the lines\nx_hq22 = line_gen(h,q22)\nx_hq12 = line_gen(h,q12)\nx_q22q22_1 = line_gen(q22,q22_1)\nx_q12q12_1 = line_gen(q12,q12_1)\n\n\n##Generating the circle\nx_circ= circ_gen(O1,r1)\nx_circ1=circ_gen(O2,r2)\n\n##Plotting all lines\nplt.plot(x_hq22[0,:],x_hq22[1,:],color='green')\nplt.plot(x_hq12[0,:],x_hq12[1,:],color='red')\nplt.plot(x_q22q22_1[0,:],x_q22q22_1[1,:],label='$tangent1$',color='green')\nplt.plot(x_q12q12_1[0,:],x_q12q12_1[1,:],label='$tangent2$',color='red')\nplt.plot(x_X[0,:],x_X[1,:],color='black',label='$tangent3$')\nplt.plot(x_A[0,:],x_A[1,:],color='blue')\nplt.plot(x_c[0,:],x_c[1,:],color='violet')\n\n#Plotting the circle\nplt.plot(x_circ[0,:],x_circ[1,:],label='$Circle$')\nplt.plot(x_circ1[0,:],x_circ1[1,:],label='$circle1$')\n\n#Labeling the coordinates\ntri_coords = np.vstack((h.T,q12.T,q22.T,O1,O2,q12_1.T,q22_1.T,X.T)).T\nplt.scatter(tri_coords[0,:], tri_coords[1,:])\nvert_labels = ['h','q12','q22','O1','O2','q12_1','q22_1','X']\nfor i, txt in enumerate(vert_labels):\n plt.annotate(txt, # this is the text\n (tri_coords[0,i], tri_coords[1,i]), # this is the point to label\n textcoords=\"offset points\", # how to position the text\n xytext=(0,10), # distance from text to points (x,y)\n ha='center') # horizontal alignment can be left, right or center\n\nplt.xlabel('$x$')\nplt.ylabel('$y$')\nplt.legend(loc='best')\nplt.grid() # minor\nplt.axis('equal')\n#\n#if using termux\nplt.savefig('/sdcard/fwc/circle/fig.pdf')\n#subprocess.run(shlex.split(\"termux-open /sdcard/fwc/circle/circle.pdf\"))\nplt.show()\n","repo_name":"Sairaghavendra36/Fwc-2022","sub_path":"matrices/circle/code/circle.py","file_name":"circle.py","file_ext":"py","file_size_in_byte":5394,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"24290387510","text":"import os\nimport argparse\nimport requests\nfrom dotenv import load_dotenv\nfrom work_with_files import save_images\nfrom work_with_files import define_filetype\nfrom pathlib import Path\n\n\ndef get_response_images(params):\n url_day_photo = 'https://api.nasa.gov/planetary/apod'\n response = requests.get(\n url_day_photo,\n params=params\n )\n response.raise_for_status()\n response_images = response.json()\n return response_images\n\n\ndef get_APOD(params, day=None):\n response_images = get_response_images(params)\n os.makedirs('Photos_of_the_day', exist_ok=True)\n if day:\n response_images = [response_images]\n for response_image in response_images:\n date = response_image['date']\n if response_image['media_type'] != \"image\":\n print(f'За дату {date} нет изображения')\n\n else:\n try:\n url = response_image['hdurl']\n except KeyError:\n url = response_image['url']\n filetype = define_filetype(url)\n save_images(\n url,\n Path.cwd() / 'Photos_of_the_day' / f'image_for_{date}{filetype}'\n )\n\n\ndef main():\n load_dotenv()\n nasa_api = os.environ['NASA_API']\n parser = argparse.ArgumentParser(\n description='Программа скачивает фотографии дня в файл '\n '\"Photos_of_the_day\" в рабочей директории,'\n ' (если нет создает)'\n )\n parser.add_argument(\n \"--count\",\n type=int,\n help=\"Укажите количество случайных фотографий\"\n )\n parser.add_argument(\n \"--day\",\n help=\"Укажите день, за который нужно\"\n \" получить фото, в формате YYYY-MM-DD\"\n )\n parser.add_argument(\n \"--days\",\n help=\"Укажите промежуток дней, за которые хотите\"\n \" получить фотографии,\"\n \" в формате YYYY-MM-DD-YYYY-MM-DD\"\n )\n args = parser.parse_args()\n if args.count:\n params = {\n 'count': args.count,\n 'api_key': nasa_api\n }\n get_APOD(params)\n if args.day:\n params = {\n 'date': args.day,\n 'api_key': nasa_api\n }\n get_APOD(params, args.day)\n if args.days:\n params = {\n 'start_date': args.days[:10],\n 'end_date': args.days[11:],\n 'api_key': nasa_api\n }\n get_APOD(params)\n\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"BAIBASH1/Download_photos_from_NASA","sub_path":"get_APOD.py","file_name":"get_APOD.py","file_ext":"py","file_size_in_byte":2681,"program_lang":"python","lang":"ru","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34073341847","text":"#!/usr/bin/env python3\n#\n# Cross Platform and Multi Architecture Advanced Binary Emulation Framework\n#\n\nimport sys\nsys.path.append(\"../..\")\n\nfrom qiling.core import Qiling\nfrom qiling.const import QL_VERBOSE\nfrom qiling.extensions.mcu.gd32vf1 import gd32vf103\nfrom qiling.const import QL_ARCH, QL_OS\n\n\nql = Qiling(['../rootfs/mcu/gd32vf103/blink.hex'], archtype=QL_ARCH.RISCV64, ostype=QL_OS.MCU,\n env=gd32vf103, verbose=QL_VERBOSE.DEBUG)\n\nql.hw.create('rcu')\nql.hw.create('gpioa').watch()\nql.hw.create('gpioc').watch()\n\ndelay_cycles_begin = 0x800015c\ndelay_cycles_end = 0x800018c\n\n\ndef skip_delay(ql):\n ql.arch.regs.pc = delay_cycles_end\n\n\nql.hook_address(skip_delay, delay_cycles_begin)\nql.hw.gpioc.hook_set(13, lambda : print('Set PC13'))\n\nql.run(count=20000)\n","repo_name":"qilingframework/qiling","sub_path":"examples/mcu/gd32vf103_blink.py","file_name":"gd32vf103_blink.py","file_ext":"py","file_size_in_byte":777,"program_lang":"python","lang":"en","doc_type":"code","stars":4307,"dataset":"github-code","pt":"86"}
+{"seq_id":"23762152269","text":"#load CSV \nimport csv\nimport numpy as np\nfrom pandas import read_csv\nfrom pandas import set_option\n\n# load using csv\n# filename = 'pima-indians-diabetes.data.csv'\n# raw_data = open(filename, 'r')\n# reader = csv.reader(raw_data, delimiter = ',', quoting = csv.QUOTE_NONE)\n# x = list(reader)\n# data = np.array(x).astype('float')\n# print(data.shape)\n\n# load using pandas and some operations\nfilename = 'pima-indians-diabetes.data.csv'\nnames = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class']\ndata = read_csv(filename, names = names)\nset_option('display.width', 100)\nset_option('precision', 3)\ndescription = data.describe()\npeek = data.head(20)\ntypes = data.dtypes\nclass_counts = data.groupby('class').size()\ncorrelations = data.corr(method = 'pearson')\nskew = data.skew()\nprint(skew)\n","repo_name":"KrisCheng/Hitchhiker-Guide-to-Machine-Learning","sub_path":"archive/Model/others/load_csv.py","file_name":"load_csv.py","file_ext":"py","file_size_in_byte":805,"program_lang":"python","lang":"en","doc_type":"code","stars":5,"dataset":"github-code","pt":"86"}
+{"seq_id":"42315033847","text":"# -*- coding:utf-8 -*-\n\n__author__ = 'huanghf'\n\n\"\"\"\n在给定的网格中,每个单元格可以有以下三个值之一:\n值 0 代表空单元格;\n值 1 代表新鲜橘子;\n值 2 代表腐烂的橘子。\n每分钟,任何与腐烂的橘子(在 4 个正方向上)相邻的新鲜橘子都会腐烂。\n返回直到单元格中没有新鲜橘子为止所必须经过的最小分钟数。如果不可能,返回 -1。\n\n示例 1:\n输入:[[2,1,1],[1,1,0],[0,1,1]]\n输出:4\n\n示例 2:\n输入:[[2,1,1],[0,1,1],[1,0,1]]\n输出:-1\n解释:左下角的橘子(第 2 行, 第 0 列)永远不会腐烂,因为腐烂只会发生在 4 个正向上。\n\n示例 3:\n输入:[[0,2]]\n输出:0\n解释:因为 0 分钟时已经没有新鲜橘子了,所以答案就是 0 。\n\n提示:\n1 <= grid.length <= 10\n1 <= grid[0].length <= 10\ngrid[i][j] 仅为 0、1 或 2\n\n链接: https://leetcode-cn.com/problems/rotting-oranges/\n\"\"\"\n\nfrom typing import List\n\n\nclass Solution:\n def orangesRotting(self, grid: List[List[int]]) -> int:\n \"\"\"\n 带状态的 bfs\n :param grid:\n :return:\n \"\"\"\n m, n = len(grid), len(grid[0])\n ds = [(1, 0), (-1, 0), (0, 1), (0, -1)]\n\n # 初始队列\n queue = [[i, j, 0] for i in range(m) for j in range(n) if grid[i][j] == 2]\n res = 0\n\n while queue:\n i, j, res = queue.pop(0) # i, j 存储已经传染的橘子的坐标, res 表示当前已经经过的时间\n for dx, dy in ds:\n x = i + dx\n y = j + dy\n if (0 <= x < m and 0 <= y < n and grid[x][y] == 1):\n grid[x][y] = 2\n queue.append([x, y, res + 1])\n\n # 还有橘子没有腐烂\n if any(grid[i][j] == 1 for i in range(m) for j in range(n)):\n return -1\n\n return res\n\n\ngrid = [[2, 1, 1],\n [1, 1, 0],\n [0, 1, 1]]\n\ns = Solution()\nprint(s.orangesRotting(grid))\n","repo_name":"lovehhf/LeetCode","sub_path":"994_腐烂的橘子.py","file_name":"994_腐烂的橘子.py","file_ext":"py","file_size_in_byte":1976,"program_lang":"python","lang":"zh","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"1590400181","text":"from unittest import mock\nfrom unittest.mock import PropertyMock\n\nimport pytest\nfrom airflow import models\nfrom impala.hiveserver2 import HiveServer2Connection, HiveServer2Cursor\n\nfrom astronomer.providers.apache.hive.hooks.hive import HiveCliHookAsync\n\nTEST_TABLE = \"test_table\"\nTEST_SCHEMA = \"test_schema\"\nTEST_POLLING_INTERVAL = 5\nTEST_PARTITION = \"state='FL'\"\nTEST_METASTORE_CONN_ID = \"metastore_default\"\nTEST_CONN_TYPE = \"metastore\"\nTEST_PORT = 10000\nTEST_HOST = \"localhost\"\n\n\nclass TestHiveCliHookAsync:\n @mock.patch(\"astronomer.providers.apache.hive.hooks.hive.HiveCliHookAsync.get_connection\")\n @mock.patch(\"airflow.configuration.AirflowConfigParser.get\")\n @mock.patch(\"impala.hiveserver2.connect\")\n def test_get_hive_client_with_conf(self, mock_get_connect, mock_get_conf, mock_get_connection):\n \"\"\"Checks the connection to hive client\"\"\"\n mock_get_connect.return_value = mock.AsyncMock(HiveServer2Connection)\n mock_get_conf.return_value = \"kerberos\"\n mock_get_connection.return_value = models.Connection(\n conn_id=TEST_METASTORE_CONN_ID,\n conn_type=TEST_CONN_TYPE,\n port=TEST_PORT,\n host=TEST_HOST,\n )\n hook = HiveCliHookAsync(TEST_METASTORE_CONN_ID)\n result = hook.get_hive_client()\n assert isinstance(result, HiveServer2Connection)\n\n @mock.patch(\"astronomer.providers.apache.hive.hooks.hive.HiveCliHookAsync.get_connection\")\n @mock.patch(\"impala.hiveserver2.connect\")\n def test_get_hive_client(self, mock_get_connect, mock_get_connection):\n \"\"\"Checks the connection to hive client\"\"\"\n mock_get_connect.return_value = mock.AsyncMock(HiveServer2Connection)\n mock_get_connection.return_value = models.Connection(\n conn_id=TEST_METASTORE_CONN_ID,\n conn_type=TEST_CONN_TYPE,\n port=TEST_PORT,\n host=TEST_HOST,\n )\n hook = HiveCliHookAsync(TEST_METASTORE_CONN_ID)\n result = hook.get_hive_client()\n assert isinstance(result, HiveServer2Connection)\n\n @pytest.mark.asyncio\n @pytest.mark.parametrize(\n \"result,response\",\n [\n ([\"123\"], \"success\"),\n ([], \"failure\"),\n ],\n )\n @mock.patch(\"astronomer.providers.apache.hive.hooks.hive.HiveCliHookAsync.get_connection\")\n @mock.patch(\"astronomer.providers.apache.hive.hooks.hive.HiveCliHookAsync.get_hive_client\")\n async def test_partition_exists(self, mock_get_client, mock_get_connection, result, response):\n \"\"\"\n Tests to check if a partition in given table in hive\n is found or not\n \"\"\"\n hook = HiveCliHookAsync(metastore_conn_id=TEST_METASTORE_CONN_ID)\n hiveserver_connection = mock.AsyncMock(HiveServer2Connection)\n mock_get_client.return_value = hiveserver_connection\n cursor = mock.AsyncMock(HiveServer2Cursor)\n hiveserver_connection.cursor.return_value = cursor\n cursor.is_executing = PropertyMock(side_effect=[True, False])\n cursor.fetchall.return_value = result\n res = await hook.partition_exists(\"test_table\", TEST_SCHEMA, TEST_PARTITION, TEST_POLLING_INTERVAL)\n assert res == response\n\n @pytest.mark.parametrize(\n \"partition,expected\",\n [\n (\"user_profile/city=delhi\", (\"default\", \"user_profile\", \"city=delhi\")),\n (\"user.user_profile/city=delhi\", (\"user\", \"user_profile\", \"city=delhi\")),\n ],\n )\n def test_parse_partition_name_success(self, partition, expected):\n \"\"\"Assert that `parse_partition_name` correctly parse partition string\"\"\"\n actual = HiveCliHookAsync.parse_partition_name(partition)\n assert actual == expected\n\n def test_parse_partition_name_exception(self):\n \"\"\"Assert that `parse_partition_name` throw exception if partition string not correct\"\"\"\n with pytest.raises(ValueError):\n HiveCliHookAsync.parse_partition_name(\"user_profile.city=delhi\")\n\n @pytest.mark.parametrize(\n \"result,expected\",\n [\n ([\"123\"], True),\n ([], False),\n ],\n )\n @mock.patch(\"astronomer.providers.apache.hive.hooks.hive.HiveCliHookAsync.get_connection\")\n @mock.patch(\"astronomer.providers.apache.hive.hooks.hive.HiveCliHookAsync.get_hive_client\")\n def test_check_partition_exists(self, mock_get_client, mock_get_connection, result, expected):\n \"\"\"Assert that `check_partition_exists` return True if partition found else return False.\"\"\"\n hook = HiveCliHookAsync(metastore_conn_id=TEST_METASTORE_CONN_ID)\n hiveserver_connection = mock.AsyncMock(HiveServer2Connection)\n mock_get_client.return_value = hiveserver_connection\n cursor = mock.AsyncMock(HiveServer2Cursor)\n hiveserver_connection.cursor.return_value = cursor\n cursor.is_executing.return_value = False\n cursor.fetchall.return_value = result\n actual = hook.check_partition_exists(TEST_SCHEMA, \"test_table\", TEST_PARTITION)\n assert actual == expected\n","repo_name":"astronomer/astronomer-providers","sub_path":"tests/apache/hive/hooks/test_hive.py","file_name":"test_hive.py","file_ext":"py","file_size_in_byte":5045,"program_lang":"python","lang":"en","doc_type":"code","stars":122,"dataset":"github-code","pt":"86"}
+{"seq_id":"33931086697","text":"#!/usr/bin/env python3\nimport machine_data_structures as ds\nimport collections\n\n# Holds all machines\nall_machines=[]\n\n# Define default machines, used if actual machine can't be determined\ndefault_win = ds.machine('unknown_win', 'win', ('ssh', 'sh', 'bash', 'vim', 'git', 'tmux', 'opt'), {})\ndefault_mac = ds.machine('unknown_mac', 'mac', ('ssh', 'sh', 'bash', 'vim', 'git', 'tmux', 'opt'), {})\ndefault_nix = ds.machine('unknown_nix', 'nix', ('ssh', 'sh', 'bash', 'vim', 'X', 'git', 'gnome2', 'selected_editor', 'tmux', 'opt'), {})\n\n# Define known machines\nall_machines.append(\n ds.machine('deb7',\n 'nix',\n ('ssh', 'sh', 'bash', 'kde', 'vim', 'X', 'git', 'gnome2', 'selected_editor', 'tmux', 'opt'),\n {}))\nall_machines.append(\n ds.machine('wintermute',\n 'nix',\n ('ssh', 'sh', 'bash', 'kde', 'vim', 'X', 'git', 'gnome2', 'selected_editor', 'tmux', 'opt'),\n {}))\nall_machines.append(\n ds.machine('aurora',\n 'nix',\n ('ssh', 'sh', 'bash', 'kde', 'vim', 'X', 'git', 'gnome2', 'selected_editor', 'tmux', 'opt'),\n {}))\nall_machines.append(\n ds.machine('base',\n 'nix',\n ('ssh', 'sh', 'bash', 'git', 'opt', 'X'),\n {'prereq.sh': ('root',)}))\nall_machines.append(\n ds.machine('developer',\n 'nix',\n ('ssh', 'sh', 'bash', 'git', 'opt'),\n {}))\nall_machines.append(\n ds.machine('perigee.local',\n 'mac',\n ('ssh', 'sh', 'bash', 'vim', 'git', 'tmux', 'opt'),\n {}))\nall_machines.append(\n ds.machine('AE-3NJ28V1',\n 'win',\n ('ssh', 'sh', 'bash', 'vim', 'git', 'tmux', 'opt'),\n {}))\n\nemacs_setup_scripts = collections.OrderedDict()\nemacs_setup_scripts['python2.sh'] = ()\nemacs_setup_scripts['java10.sh'] = ()\nemacs_setup_scripts['clojure.sh'] = ()\nemacs_setup_scripts['heroku.sh'] = ()\nemacs_setup_scripts['emacs.sh'] = ('25','root')\nemacs_setup_scripts['name.sh'] = ('emacs',)\nall_machines.append(\n ds.machine('emacs',\n 'nix',\n ('ssh', 'sh', 'bash', 'git', 'opt'),\n emacs_setup_scripts))\n","repo_name":"hibes/dotfiles","sub_path":"machine_configuration.py","file_name":"machine_configuration.py","file_ext":"py","file_size_in_byte":2162,"program_lang":"python","lang":"vi","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"38695719548","text":"from bot import Bot\nfrom server import SERVER_THREAD\n\n\ndef parse_token(filename: str = \"token.key\") -> str | None:\n token = None\n try:\n with open(filename) as token_file:\n content = token_file.read()\n token = content.strip()\n return token\n except Exception:\n return None\n\n\ntoken = parse_token()\nif token is None:\n print(\"Failed to parse a token from 'token.key' file.\")\n exit(-1)\n\nbot = Bot(token)\nbot.run()\n\ntry:\n SERVER_THREAD.join(0.1)\nexcept Exception:\n pass\n","repo_name":"ivatolm/itmo-schedule-export","sub_path":"src/main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":531,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"31521470665","text":"symbols = []\nf = open('symbols.txt', 'r')\ns = f.readline()\nwhile(s):\n symbols.append(s.replace('\\n',''))\n s = f.readline()\nf.close()\n\nfile = '/home/suneel/Downloads/CASH_Orders_20012021.DAT'\noutputfiles = [s.replace('b','').lower() for s in symbols]\n\nfor i,symbol in enumerate(symbols):\n f = open(file, 'r')\n ell = f.readline()\n data = []\n while(ell):\n if(ell[38:48] == symbol):\n session = ell[0:2]\n orderid = ell[6:22]\n time = ell[22:36]\n side = ell[36:37]\n action = ell[37:38]\n dquant = ell[50:58]\n fquant = ell[58:66]\n price = ell[66:74]\n triggerprice = ell[74:82]\n market = ell[82:83]\n stoploss = ell[83:84]\n ioc = ell[84:85]\n row = '|'.join([session, orderid, side, action, time, price, fquant, dquant, market, ioc, stoploss, triggerprice])\n data.append(row)\n ell = f.readline()\n\n f.close()\n f = open('/home/suneel/Teaching/Finance_Analytics/data/highfreq/' + outputfiles[i]+'.order', 'w')\n data = '\\n'.join(data)\n f.write(data)\n f.close()\n\n\n","repo_name":"prakhar-chaurasiya/final_project_nism","sub_path":"extract_stock_orders.py","file_name":"extract_stock_orders.py","file_ext":"py","file_size_in_byte":1148,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"73429961564","text":"#!/usr/bin/python3\n\nimport sys\nfrom collections import defaultdict\n\nTHRESHOLD=2\n\ndebugging = True\ndef dprint(msg):\n if debugging:\n print(msg)\n\nif len(sys.argv) != 1:\n sys.stderr.write(\"Usage: %s < parse_trees_file > struct_freq\\n\" % sys.argv[0])\n sys.exit(1)\n\nword2id = {}\nid2word = []\ndef getWord(num):\n if 0 <= num and num < len(id2word):\n return id2word[num]\n return \"-UNK-\"\ndef getID(word):\n if word not in word2id:\n word2id[word] = len(id2word)\n id2word.append(word)\n return word2id[word]\ndef getPhrase(idvec):\n return str.join(' ', map(getWord, idvec))\ndef getIDVec(phrase):\n if type(phrase) == str:\n return tuple( map(getID, phrase.split()) )\n return tuple( map(getID, phrase) )\n\ndef parse(expr, i = 0):\n cont = ''\n while i < len(expr):\n #dprint('Expr[%s]: %s' % (i, expr[i]))\n if expr[i] == '(':\n #dprint('Push')\n cont = []\n while i < len(expr):\n if expr[i] == ')':\n #dprint(\"Closing: %s\" % cont)\n return cont, i + 1\n item, i = parse(expr, i + 1)\n if item:\n #print(\"Appending: %s\" % item)\n cont.append(item)\n return cont, i\n elif expr[i] == ')':\n #dprint(\"Closing: \" + cont)\n return cont, i\n elif expr[i] == ' ':\n #dprint('Elem: ' + cont)\n return cont, i\n else:\n cont += expr[i]\n i += 1\n return cont, i\n\ndef extractPhrase(tree):\n words = ()\n if type(tree) == list:\n for elem in tree[1:None]:\n words += extractPhrase(elem)\n else:\n words += (getID(tree),)\n return words\n\ndef countPhrases(tree, counter = defaultdict(int)):\n if type(tree) == list:\n if len(tree) >= 3:\n words = extractPhrase(tree)\n #print(words)\n counter[words] += 1\n for elem in tree[1:None]:\n countPhrases(elem, counter)\n else:\n #print(getIDVec(tree))\n counter[getIDVec(tree)] += 1\n\ncounter = defaultdict(int)\nfor line in sys.stdin:\n line = line.strip()\n tree, _ = parse(line)\n #print(tree)\n if tree:\n countPhrases(tree, counter)\n\nfor key in counter.keys():\n count = counter[key]\n if count >= THRESHOLD:\n print(\"%s\\t%s\" % (getPhrase(key),count))\n\n","repo_name":"akivajp/naacl2016","sub_path":"script/count-parsed-phrases.py","file_name":"count-parsed-phrases.py","file_ext":"py","file_size_in_byte":2407,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32896262471","text":"from genomics_utils import LightningModuleExtended\n\n\nclass FullModelTraining(LightningModuleExtended):\n def training_step(self, batch, batch_ix, hiddens):\n X_batch, y_batch = batch\n logits, hiddens = self.forward(X_batch, hiddens)\n y_one_hot = one_hot_encoding(y_batch, self.n_output, device=self.device)\n loss = self.loss(logits, y_one_hot)\n self.log(\"train_loss\", loss, on_step=True, on_epoch=True)\n return {'loss': loss,\n 'hiddens': hiddens\n }\n\n def test_step(self, batch, batch_idx) -> Any:\n X_batch, y_batch = batch\n logits = self.forward(X_batch)\n preds = torch.exp(logits)\n preds = torch.flatten(preds, start_dim=0, end_dim=1)\n \n # y_batch = torch.argmax(y_batch, dim=-1)\n y = y_batch.flatten()\n \n preds = preds.cpu().detach()\n self.logger.log_coalescent_heatmap(self.name, [preds.T, y.T], batch_idx)\n \n \n \n def tbptt_split_batch(self, batch: torch.Tensor, split_size: int) -> list:\n X_batch = batch[0]\n Y_batch = batch[1]\n batch_len = len(X_batch)\n \n distances_dims = [len(X) for X in batch[0]]\n max_time_dim = np.max(distances_dims)\n \n splits = []\n x_split_size = split_size\n y_t_indexes = [0 for _ in range(batch_len)]\n \n for x_t in range(0, max_time_dim, x_split_size):\n batch_split = []\n \n split_x = [[] for _ in range(batch_len)]\n split_y = [[] for _ in range(batch_len)]\n \n for batch_idx in range(batch_len):\n if x_t > len(X_batch[batch_idx]):\n continue\n elif x_t + x_split_size > len(X_batch[batch_idx]):\n current_x_sample = X_batch[batch_idx][x_t: len(X_batch[batch_idx])]\n else:\n current_x_sample = X_batch[batch_idx][x_t:x_t + x_split_size]\n \n y_t = y_t_indexes[batch_idx]\n y_split_size = int(np.sum(current_x_sample))\n split_x[batch_idx] = current_x_sample\n split_y[batch_idx] = Y_batch[batch_idx][y_t:y_t + y_split_size]\n \n y_t_indexes[batch_idx] = y_t + y_split_size\n \n batch_split.append(split_x)\n batch_split.append(split_y)\n \n splits.append(batch_split)\n \n return splits\n\ndef one_hot_encoding(y_data, num_class, device):\n batch_size, seq_len = y_data.shape\n y_one_hot = torch.FloatTensor(batch_size, seq_len, num_class).to(device)\n \n y_one_hot.zero_()\n y_one_hot.scatter_(2, y_data.unsqueeze(2), 1)\n return y_one_hot","repo_name":"Genomics-HSE/DeepModels2","sub_path":"src/full_models/training.py","file_name":"training.py","file_ext":"py","file_size_in_byte":2736,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"29061602852","text":"# -*- coding: utf-8 -*-\n# create by yihui 11:32 18/12/19\nimport logging\nimport os\nfrom logging.handlers import TimedRotatingFileHandler\n\nfrom src.env.EnvWrapper import env_wrapper\n\n\nclass LoggerWrapper:\n def __init__(self):\n self._logger = {}\n self._console_init = False\n\n @staticmethod\n def _get_path(action, path=\"\"):\n \"\"\"\n 根据日志名,创建对应的日志路径\n :param path:\n :return:\n \"\"\"\n if action != 'logs':\n action = \"logs/\" + action + \"/\"\n\n path = env_wrapper.get_module_path() + \"/\" + action + path\n if not os.path.exists(path):\n # 当目录不存在时,主动创建\n os.makedirs(path)\n\n return path\n\n def _gen_logger(self, path='logs', log_name='Crawler'):\n base_logger = logging.getLogger(log_name)\n base_logger.setLevel(logging.INFO)\n\n log_file = self._get_path(path, log_name) + \"/\" + log_name + \".log\"\n ch = TimedRotatingFileHandler(log_file, when='D', encoding=\"utf-8\")\n ch.setLevel(logging.INFO)\n formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')\n ch.setFormatter(formatter)\n base_logger.addHandler(ch)\n base_logger.propagate = 0\n\n if env_wrapper.console_log_enable(): # and not self._console_init:\n console = logging.StreamHandler()\n console.setLevel(logging.DEBUG)\n console.setFormatter(formatter)\n base_logger.addHandler(console)\n self._console_init = True\n\n return base_logger\n\n def get_logger(self, name=None):\n if name is None:\n key = env_wrapper.get_current_task_name()\n else:\n key = name\n\n if key not in self._logger:\n log_name, path = key, env_wrapper.get_current_task_name()\n self._logger[key] = self._gen_logger(path, log_name)\n\n return self._logger[key]\n\n def error(self, msg, name=None):\n log = self.get_logger(name)\n log.error(msg)\n\n def warn(self, msg, name=None):\n log = self.get_logger(name)\n log.warning(msg)\n\n def info(self, msg, name=None):\n log = self.get_logger(name)\n log.info(msg)\n\n def debug(self, msg, name=None):\n log = self.get_logger(name)\n log.debug(msg)\n\n def exception(self, msg, name=None):\n \"\"\"\n 打印堆栈信息\n :param msg:\n :param name:\n :return:\n \"\"\"\n log = self.get_logger(name)\n log.exception(msg)\n\n\nSpiderLogger = LoggerWrapper()\nlogger = SpiderLogger.get_logger\ndebug = SpiderLogger.debug\ninfo = SpiderLogger.info\nerror = SpiderLogger.error\nwarning = SpiderLogger.warn\nexception = SpiderLogger.exception\n","repo_name":"liuyueyi/python-task-engine","sub_path":"src/plugins/logger/LoggerWrapper.py","file_name":"LoggerWrapper.py","file_ext":"py","file_size_in_byte":2757,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"73548545245","text":"from threading import Thread\nfrom time import sleep\nfrom typing import Iterable, Union\n\nfrom microbit_protocol.commands import MicrobitCommand\nfrom microbit_protocol.commands.microbit.display import (\n DISPLAY_MAX_X,\n DISPLAY_MAX_Y,\n DISPLAY_MIN_X,\n DISPLAY_MIN_Y,\n LED_MAX_VALUE,\n LED_MIN_VALUE,\n MicrobitDisplayClearCommand,\n MicrobitDisplayOffCommand,\n MicrobitDisplayOnCommand,\n MicrobitDisplayReadLightLevelCommand,\n MicrobitDisplaySetPixelCommand,\n MicrobitDisplayShowCommand,\n)\nfrom microbit_protocol.peer import MicrobitPeer\n\nfrom microbit_client.image import Image\n\n\nclass Display:\n \"\"\"Represents a micro:bit's display client.\"\"\"\n\n def __init__(self, peer: MicrobitPeer) -> None:\n \"\"\"Initialises `self` to a new Display instance.\n\n Args:\n peer (MicrobitPeer): The peer to communicate with.\n \"\"\"\n self.__peer = peer\n self.__light_level = 0\n self.on()\n self.clear()\n\n def listener(command: MicrobitCommand) -> None:\n if isinstance(command, MicrobitDisplayReadLightLevelCommand):\n self.__light_level = command.light_level\n\n peer.add_listener(listener)\n\n def get_pixel(self, x: int, y: int) -> int:\n \"\"\"Gets the brightness of the LED at the given position.\n\n Args:\n x (int): The x position of the LED.\n y (int): The y position of the LED.\n\n Returns:\n int: The brightness of the LED.\n \"\"\"\n assert isinstance(x, int), f\"x must be an int, not {type(x).__name__}\"\n assert isinstance(y, int), f\"y must be an int, not {type(y).__name__}\"\n\n if (\n x < DISPLAY_MIN_X\n or DISPLAY_MAX_X < x\n or y < DISPLAY_MIN_Y\n or DISPLAY_MAX_Y < y\n ):\n raise ValueError(f\"invalid position {x}, {y}\")\n\n return self.__pixels[y][x]\n\n def set_pixel(self, x: int, y: int, value: int) -> None:\n \"\"\"Sets the brightness of the LED at the given position.\n\n Args:\n x (int): The x position of the LED.\n y (int): The y position of the LED.\n value (int): The brightness of the LED.\n\n Raises:\n ValueError: If `value` is not between 0 and 9 inclusive.\n ValueError: If `x` or `y` are not between 0 and 4 inclusive.\n \"\"\"\n assert isinstance(x, int), f\"x must be an int, not {type(x).__name__}\"\n assert isinstance(y, int), f\"y must be an int, not {type(y).__name__}\"\n assert isinstance(\n value, int\n ), f\"value must be an int, not {type(value).__name__}\"\n\n if value < LED_MIN_VALUE or LED_MAX_VALUE < value:\n raise ValueError(\"brightness out of bounds\")\n\n if (\n x < DISPLAY_MIN_X\n or DISPLAY_MAX_X < x\n or y < DISPLAY_MIN_Y\n or DISPLAY_MAX_Y < y\n ):\n raise ValueError(f\"invalid position {x}, {y}\")\n\n self.__pixels[y][x] = value\n\n self.__peer.send_command(MicrobitDisplaySetPixelCommand(x=x, y=y, value=value))\n\n def clear(self) -> None:\n \"\"\"Set the brightness of all LEDs to 0 (off).\"\"\"\n self.__pixels = [[0 for _ in range(5)] for _ in range(5)]\n self.__peer.send_command(MicrobitDisplayClearCommand())\n\n def show( # noqa: PLR0913\n self,\n image: Union[Image, str, float, int, Iterable[Image]],\n delay: int = 400,\n *,\n wait: bool = True,\n loop: bool = False,\n clear: bool = False,\n ) -> None:\n \"\"\"Displays an image on the micro:bit's display.\n\n Args:\n image (Union[Image, str, float, int, Iterable[Image]]): The image\n to display.\n delay (int, optional): The delay between each frame in milliseconds.\n Defaults to 400.\n wait (bool, optional): Whether to wait for the animation to finish.\n Defaults to True.\n loop (bool, optional): Whether to loop the animation.\n Defaults to False.\n clear (bool, optional): Whether to clear the display after the animation.\n Defaults to False.\n\n Raises:\n ValueError: If `delay` is negative.\n \"\"\"\n if isinstance(image, Image):\n self.__send_image(image)\n return\n\n assert isinstance(image, (str, float, int, Iterable)), (\n \"image must be a str, float, int or Iterable[Image],\"\n f\"got {type(image).__name__}\"\n )\n assert isinstance(\n delay, int\n ), f\"delay must be an int, not {type(delay).__name__}\"\n assert isinstance(wait, bool), f\"wait must be a bool, not {type(wait).__name__}\"\n assert isinstance(loop, bool), f\"loop must be a bool, not {type(loop).__name__}\"\n assert isinstance(\n clear, bool\n ), f\"clear must be a bool, not {type(clear).__name__}\"\n\n if delay < 0:\n raise ValueError(\"delay must be positive\")\n\n if isinstance(image, (int, float)):\n image = str(image)\n\n images: Iterable[Image]\n if isinstance(image, str):\n images = [Image(letter) for letter in image]\n else:\n images = image\n\n def target() -> None:\n self.__send_images(images, delay)\n while loop:\n self.__send_images(images, delay)\n\n if clear:\n self.clear()\n\n if wait:\n target()\n else:\n Thread(target=target, daemon=True).start()\n\n def scroll( # noqa: PLR0913\n self,\n text: Union[str, int, float],\n delay: int = 150,\n *,\n wait: bool = True,\n loop: bool = False,\n monospace: bool = False,\n ) -> None:\n \"\"\"Scrolls text across the micro:bit's display.\n\n Args:\n text (Union[str, int, float]): The text to scroll.\n delay (int, optional): The delay between each frame in milliseconds.\n Defaults to 150.\n wait (bool, optional): Whether to wait for the animation to finish.\n Defaults to True.\n loop (bool, optional): Whether to loop the animation.\n Defaults to False.\n monospace (bool, optional): Whether to use monospace font.\n Defaults to False.\n\n Raises:\n ValueError: If `delay` is negative.\n \"\"\"\n assert isinstance(\n text, (str, int, float)\n ), f\"text must be a str, int or float, not {type(text).__name__}\"\n assert isinstance(\n delay, int\n ), f\"delay must be an int, not {type(delay).__name__}\"\n assert isinstance(wait, bool), f\"wait must be a bool, not {type(wait).__name__}\"\n assert isinstance(loop, bool), f\"loop must be a bool, not {type(loop).__name__}\"\n assert isinstance(\n monospace, bool\n ), f\"monospace must be a bool, not {type(monospace).__name__}\"\n\n if delay < 0:\n raise ValueError(\"delay must be positive\")\n\n if isinstance(text, (int, float)):\n text = str(text)\n\n if monospace:\n image = self.__get_scroll_image_monospace(text)\n else:\n image = self.__get_scroll_image(text)\n\n def target() -> None:\n self.__scroll_image(image, delay)\n while loop:\n self.__scroll_image(image, delay)\n\n if wait:\n target()\n else:\n Thread(target=target, daemon=True).start()\n\n def on(self) -> None:\n \"\"\"Turns the display on.\"\"\"\n self.__is_on = True\n self.__peer.send_command(MicrobitDisplayOnCommand())\n\n def off(self) -> None:\n \"\"\"Turns the display off.\"\"\"\n self.__is_on = False\n self.__peer.send_command(MicrobitDisplayOffCommand())\n\n def is_on(self) -> bool:\n \"\"\"Returns whether the display is on.\n\n Returns:\n bool: Whether the display is on.\n \"\"\"\n return self.__is_on\n\n def read_light_level(self) -> int:\n \"\"\"Reads the light level from the display.\n\n Returns:\n int: The light level.\n \"\"\"\n return self.__light_level\n\n def __scroll_image(self, image: Image, delay: int) -> None:\n \"\"\"Scrolls an image across the display.\n\n Args:\n image (Image): The image to scroll.\n delay (int): The delay between each frame in milliseconds.\n \"\"\"\n for i in range(image.width() + 1):\n self.__send_image(image.crop(i, 0, 5, 5))\n sleep(delay / 1000)\n\n def __send_images(self, images: Iterable[Image], delay: int) -> None:\n \"\"\"Sends images to the display.\n\n Args:\n images (Iterable[Image]): The images to send.\n delay (int): The delay between each frame in milliseconds.\n \"\"\"\n for image in images:\n self.__send_image(image)\n sleep(delay / 1000)\n\n def __send_image(self, image: Image) -> None:\n \"\"\"Sends an image to the display.\n\n Args:\n image (Image): The image to send.\n \"\"\"\n self.__peer.send_command(\n MicrobitDisplayShowCommand(\n image=[\n [image.get_pixel(x, y) for x in range(image.width())]\n for y in range(image.height())\n ]\n )\n )\n\n @classmethod\n def __get_scroll_image_monospace(cls, text: str) -> Image:\n \"\"\"Gets an image of the text in monospace to scroll.\n\n Args:\n text (str): The text to scroll.\n\n Returns:\n Image: The image of the text.\n \"\"\"\n scroll_image = Image(4 + 5 * len(text), 5)\n\n for i, char in enumerate(text):\n scroll_image.blit(Image(char), 0, 0, 5, 5, 4 + 5 * i, 0)\n\n return scroll_image\n\n @classmethod\n def __get_scroll_image(cls, text: str) -> Image:\n \"\"\"Gets an image of the text to scroll.\n\n Args:\n text (str): The text to scroll.\n\n Returns:\n Image: The image of the text.\n \"\"\"\n images: list[Image] = []\n images_width = 0\n\n for char in text:\n if char == \" \":\n image = Image(3, 5)\n else:\n image = cls.__remove_image_void(Image(char))\n\n images.append(image)\n images_width += image.width()\n\n scroll_image = Image(4 + images_width + len(images) - 1, 5)\n\n current_width = 4\n for image in images:\n scroll_image.blit(image, 0, 0, image.width(), 5, current_width, 0)\n current_width += image.width() + 1\n\n return scroll_image\n\n @classmethod\n def __remove_image_void(cls, image: Image) -> Image:\n \"\"\"Removes the void pixels from an image.\n\n Args:\n image (Image): The image to remove the void pixels from.\n\n Returns:\n Image: The image without the void pixels.\n \"\"\"\n start = 0\n while start < image.width() and cls.__is_column_void(image, start):\n start += 1\n\n end = image.width() - 1\n while start < end and cls.__is_column_void(image, end):\n end -= 1\n\n width = end - start + 1\n\n return image.crop(start, 0, width, image.height())\n\n @classmethod\n def __is_column_void(cls, image: Image, column: int) -> bool:\n \"\"\"Returns whether a column is void.\n\n Args:\n image (Image): The image to check.\n column (int): The column to check.\n\n Returns:\n bool: Whether the column is void.\n \"\"\"\n for y in range(image.height()):\n if image.get_pixel(column, y) != 0:\n return False\n return True\n","repo_name":"BergLucas/microbit-python-simulator","sub_path":"src/microbit_client/display.py","file_name":"display.py","file_ext":"py","file_size_in_byte":11790,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"32109456303","text":"import argparse\nimport shlex\nimport os\nimport sys\nimport toml\nimport time\n\n\ndef main(args, subject=None, message=None, to_email=None, bcc=None,\n sender=None, reply_to=None):\n \"\"\"\n Sends a test email message to check configurations.\n \"\"\"\n\n # Get the current time and date\n localtime = time.asctime(time.localtime(time.time()))\n # Use configurations for required fields if nothing is provided\n if not subject:\n subject = \"Test message\"\n if not message:\n message = (\"This is a test email. If you are reading this, the \"\n \"configured values probably work!
{}
Current \"\n \"configuration: {}
\").format(localtime, cfg.email)\n if not to_email:\n to_email = cfg.email.admin_emails\n if not sender:\n sender = cfg.email.from_email\n if not reply_to:\n reply_to = cfg.email.reply_to\n\n # Attempt to send emails\n actions.send_email(\n subject,\n message,\n to_email,\n bcc,\n sender,\n reply_to=reply_to\n )\n\ndef bootstrap(args):\n \"\"\"\n Configures the program so that it can function correctly. This is done by\n changing into the arbiter directory and then importing arbiter functions.\n \"\"\"\n # Make the path to files absolute. This makes behavior consistent when\n # changing directories. Otherwise, configuration files would be relative to\n # the arbiter/ directory\n args.configs = [os.path.abspath(path) for path in args.configs]\n os.chdir(args.arbdir)\n insert(args.arbdir)\n insert(args.etc)\n\n import cfgparser\n try:\n if not cfgparser.load_config(*args.configs, check=False):\n print(\"There was an issue with the specified configuration (see \"\n \"above). You can investigate this with the cfgparser.py \"\n \"tool.\")\n sys.exit(2)\n except (TypeError, toml.decoder.TomlDecodeError) as err:\n print(\"Configuration error:\", str(err), file=sys.stderr)\n sys.exit(2)\n\n\ndef insert(context):\n \"\"\"\n Appends a path to into the python path.\n \"\"\"\n context_path = os.path.dirname(__file__)\n sys.path.insert(0, os.path.abspath(os.path.join(context_path, context)))\n\n\ndef arbiter_environ():\n \"\"\"\n Returns a dictionary with the ARB environment variables. If a variable is\n not found, it is not in the dictionary.\n \"\"\"\n env = {}\n env_vars = {\n \"ARBETC\": (\"-e\", \"--etc\"),\n \"ARBDIR\": (\"-a\", \"--arbdir\"),\n \"ARBCONFIG\": (\"-g\", \"--config\")\n }\n for env_name, ignored_prefixes in env_vars.items():\n env_value = os.environ.get(env_name)\n if not env_value:\n continue\n warn = lambda i, s: print(\"{} in {} {}\".format(i, env_name, s))\n expanded_path = lambda p: os.path.expandvars(os.path.expanduser(p))\n\n for prefix in ignored_prefixes:\n if env_value.startswith(prefix):\n env_value = env_value.lstrip(prefix).lstrip()\n break\n\n if env_name == \"ARBCONFIG\":\n config_paths = shlex.split(env_value, comments=False, posix=True)\n valid_paths = []\n for path in config_paths:\n if not os.path.isfile(expanded_path(path)):\n warn(path, \"does not exist\")\n continue\n valid_paths.append(path)\n\n if valid_paths:\n env[env_name] = valid_paths\n continue\n\n expanded_value = expanded_path(env_value)\n if not os.path.exists(expanded_value):\n warn(env_value, \"does not exist\")\n continue\n if not os.path.isdir(expanded_value):\n warn(env_value, \"is not a directory\")\n continue\n if env_name == \"ARBDIR\" and not os.path.exists(expanded_value + \"/arbiter.py\"):\n warn(env_value, \"does not contain arbiter modules! (not arbiter/ ?)\")\n continue\n if env_name == \"ARBETC\" and not os.path.exists(expanded_value + \"/integrations.py\"):\n warn(env_value, \"does not contain etc modules! (no integrations.py)\")\n continue\n env[env_name] = expanded_value\n return env\n\n\nif __name__ == \"__main__\":\n parser = argparse.ArgumentParser(description=\"Arbiter email tester\")\n arb_environ = arbiter_environ()\n parser.add_argument(\"-a\", \"--arbdir\",\n type=str,\n help=\"Sets the directory in which arbiter modules \"\n \"are loaded from. Defaults to $ARBDIR if \"\n \"present or ../arbiter otherwise.\",\n default=arb_environ.get(\"ARBDIR\", \"../arbiter\"),\n dest=\"arbdir\")\n parser.add_argument(\"-g\", \"--config\",\n type=str,\n nargs=\"+\",\n help=\"The configuration files to use. Configs will be \"\n \"cascaded together starting at the leftmost (the \"\n \"primary config) going right (the overwriting \"\n \"configs). Defaults to $ARBCONFIG if present or \"\n \"../etc/config.toml otherwise.\",\n default=arb_environ.get(\"ARBCONFIG\", [\"../etc/config.toml\"]),\n dest=\"configs\")\n parser.add_argument(\"-e\", \"--etc\",\n type=str,\n help=\"Set the directory in which configurable modules \"\n \"are loaded from (e.g. integrations.py). If a \"\n \"required module does not exist in the given \"\n \"directory, the default module will be loaded \"\n \"from $ARBETC if present or ../etc otherwise.\",\n default=arb_environ.get(\"ARBETC\", \"../etc\"),\n dest=\"etc\")\n parser.add_argument(\"--to\",\n type=str,\n nargs=\"+\",\n default=[],\n help=\"The users who will receive the test message\",\n dest=\"to\")\n parser.add_argument(\"--bcc\",\n type=str,\n nargs=\"+\",\n default=[],\n help=\"Users to be added to BCC headers of messages\",\n dest=\"bcc\")\n parser.add_argument(\"--from\",\n type=str,\n default=\"\",\n help=\"The sending email address\",\n dest=\"sender\")\n parser.add_argument(\"--replyto\",\n type=str,\n default=\"\",\n help=\"The reply-to address of emails\",\n dest=\"replyto\")\n parser.add_argument(\"--message\",\n type=str,\n default=\"\",\n help=\"The message to send, if a custom message is \"\n \"desired\",\n dest=\"message\")\n parser.add_argument(\"--subject\",\n type=str,\n default=\"\",\n help=\"The subject to send, if a custom subject is \"\n \"desired\",\n dest=\"subject\")\n args = parser.parse_args()\n bootstrap(args)\n from cfgparser import cfg, shared\n import actions\n main(args, subject=args.subject, message=args.message, to_email=args.to,\n bcc=args.bcc, sender=args.sender, reply_to=args.replyto)\n","repo_name":"CHPC-UofU/arbiter2","sub_path":"tools/test_email.py","file_name":"test_email.py","file_ext":"py","file_size_in_byte":7575,"program_lang":"python","lang":"en","doc_type":"code","stars":35,"dataset":"github-code","pt":"86"}
+{"seq_id":"42314595377","text":"# -*- coding:utf-8 -*-\n\n__author__ = 'huanghf'\n\n\"\"\"\n给定两个以升序排列的整形数组 nums1 和 nums2, 以及一个整数 k。\n\n定义一对值 (u,v),其中第一个元素来自 nums1,第二个元素来自 nums2。\n\n找到和最小的 k 对数字 (u1,v1), (u2,v2) ... (uk,vk)。\n\n示例 1:\n\n输入: nums1 = [1,7,11], nums2 = [2,4,6], k = 3\n输出: [1,2],[1,4],[1,6]\n解释: 返回序列中的前 3 对数:\n [1,2],[1,4],[1,6],[7,2],[7,4],[11,2],[7,6],[11,4],[11,6]\n示例 2:\n\n输入: nums1 = [1,1,2], nums2 = [1,2,3], k = 2\n输出: [1,1],[1,1]\n解释: 返回序列中的前 2 对数:\n [1,1],[1,1],[1,2],[2,1],[1,2],[2,2],[1,3],[1,3],[2,3]\n示例 3:\n\n输入: nums1 = [1,2], nums2 = [3], k = 3 \n输出: [1,3],[2,3]\n解释: 也可能序列中所有的数对都被返回:[1,3],[2,3]\n\"\"\"\n\nimport heapq\n\n\nclass Solution(object):\n def kSmallestPairs(self, nums1, nums2, k):\n \"\"\"\n 优化堆\n :param nums1:\n :param nums2:\n :param k:\n :return:\n \"\"\"\n if not nums1 or not nums2:\n return []\n m, n = len(nums1), len(nums2)\n heap = []\n res = []\n vis = [[0]*n for _ in range(m)]\n heapq.heappush(heap, (nums1[0] + nums2[0], 0, 0))\n while k and heap:\n x, i, j = heapq.heappop(heap)\n res.append([nums1[i], nums2[j]])\n if i < m - 1 and not vis[i+1][j]:\n heapq.heappush(heap, (nums1[i + 1] + nums2[j], i + 1, j))\n vis[i+1][j] = 1\n if j < n - 1 and not vis[i][j+1]:\n heapq.heappush(heap, (nums1[i] + nums2[j + 1], i, j + 1))\n vis[i][j+1] = 1\n k -= 1\n return res\n\n def kSmallestPairs2(self, nums1, nums2, k):\n \"\"\"\n 暴力做法\n :type nums1: List[int]\n :type nums2: List[int]\n :type k: int\n :rtype: List[List[int]]\n \"\"\"\n nums = [[x, y] for x in nums1 for y in nums2]\n return heapq.nsmallest(k, nums, key=lambda x: x[0] + x[1])\n\n\ns = Solution()\nnums1 = [1, 2, 4]\nnums2 = [-1, 1, 2]\nk = 100\nprint(s.kSmallestPairs(nums1, nums2, k))\nprint(s.kSmallestPairs2(nums1, nums2, k))\n","repo_name":"lovehhf/LeetCode","sub_path":"373_查找和最小的K对数字.py","file_name":"373_查找和最小的K对数字.py","file_ext":"py","file_size_in_byte":2173,"program_lang":"python","lang":"zh","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"25322602441","text":"# coding=utf-8\n\n\"\"\"\nrequirements:\n1. 用当前项目的coroutine, 替换本文件的coroutine\n2. 用当前项目的Future, 替换本文件的Future\n\n\"\"\"\n\nimport time\nimport hashlib\n\nfrom tornado.gen import coroutine, Future\n\n\ndef _timestamp():\n return int(time.time())\n\n\ndef _params_sign(*args, **kwargs):\n\n result = []\n\n if args:\n result.extend(str(val) for val in args)\n\n if kwargs:\n\n kwargs_part = r'&'.join(r'{0}={1}'.format(key, val) for key, val in sorted(kwargs.items(), key=lambda x: x[0]))\n\n result.append(kwargs_part)\n\n raw_str = r'&'.join(result)\n\n raw_b = bytes(raw_str, r'utf-8')\n\n return hashlib.md5(raw_b).hexdigest()\n\n\nclass TimedCache(object):\n\n def __init__(self, ttl=0):\n\n self._ttl = ttl\n self._data = dict()\n\n def get(self, key):\n\n result = None\n\n if key in self._data:\n\n item = self._data[key]\n\n if item[0] > _timestamp():\n result = item[1]\n else:\n del self._data[key]\n\n return result\n\n def set(self, key, val, expire=0):\n\n if expire <= 0:\n expire = self._ttl\n\n now_time = _timestamp()\n\n self._data[key] = (now_time + expire, val)\n\n del_keys = []\n\n for key, val in self._data.items():\n if val[0] < now_time:\n del_keys.append(key)\n\n for key in del_keys:\n del self._data[key]\n\n def delete(self, key):\n\n if key in self._data:\n del self._data[key]\n\n def exists(self, key):\n\n result = False\n\n if key in self._data:\n\n item = self._data[key]\n\n if item[0] > _timestamp():\n result = True\n else:\n del self._data[key]\n\n return result\n\n def size(self):\n\n length = 0\n\n now_time = _timestamp()\n\n del_keys = []\n\n for key, val in self._data.items():\n if val[0] > now_time:\n length += 1\n else:\n del_keys.append(key)\n\n for key in del_keys:\n del self._data[key]\n\n return length\n\n\ndef func_cache(expire, func):\n\n __cache = TimedCache()\n\n def __wrapper(*args, **kwargs):\n\n func_sign = _params_sign(func, *args, **kwargs)\n\n result = __cache.get(func_sign)\n\n if result is None:\n\n result = func(*args, **kwargs)\n\n if isinstance(result, Future):\n result = yield result\n\n __cache.set(func_sign, result, expire)\n\n return result\n\n return coroutine(__wrapper)\n","repo_name":"XTAYJGDUFVF/prize_server","sub_path":"prize_server/util/mem_cache.py","file_name":"mem_cache.py","file_ext":"py","file_size_in_byte":2593,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"4394881261","text":"from rembg import remove, new_session\nimport sys, os, shutil, cv2, re\nimport numpy as np\nimport multiprocessing\nimport tqdm\nimport base64\n\nn=0\n\n#Create mask as _mask.png at pathToFolder\ndef createMask(dirpath, mask_abs_path):\n extensions = ['.jpg','.JPG','.png','.PNG']\n paths = [str for str in os.listdir(dirpath) if any(sub in str for sub in extensions)]\n no_of_image = len(paths)\n paths = [(dirpath, str, mask_abs_path, no_of_image) for str in sorted(paths) if 'mask' not in str]\n pool = multiprocessing.Pool()\n pool.starmap(run_mask, paths)\n pool.close()\n pool.join\n #for path in paths:\n # run_mask(*path)\n\ndef run_mask(dirpath, file, mask_abs_path, no_of_image):\n input_path = os.path.join(dirpath,file)\n #ext = file.split('.')[-1]\n ext = 'png'\n output_path = os.path.join(dirpath, file.split('.')[0]+f'_mask.{ext}')\n finalmask_path = os.path.join(mask_abs_path, file.split('.')[0]+f'_mask.{ext}')\n maskprocess=False\n if not os.path.exists(finalmask_path):\n maskprocess=True\n with open(input_path, 'rb') as i:\n input = i.read()\n session=new_session('u2netp')\n output_byte = remove(data=input, session=session, only_mask=True)\n convertMask(output_path,output_byte) \n \n global n\n if maskprocess:\n print(file,'masked')\n #print(file,'masked','('+str(n+1)+'/'+str(no_of_image)+')')\n else:\n print(os.path.basename(finalmask_path),'already exists')\n #print(finalmask_path,'already exists','('+str(n+1)+'/'+str(no_of_image)+')')\n n+=1\n \n return 0\n \n#convert and replaces mask to single channel, black n white\ndef convertMask(image_path, image_byte):\n #image_path = path\n im = np.frombuffer(image_byte, np.uint8)\n im = cv2.imdecode(im, cv2.IMREAD_COLOR)\n im = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)\n im = np.greater_equal(im, 40) #10\n im = np.where(im, 255, 0)\n cv2.imwrite(image_path, im)\n\n#move masks to pathToMask directory\ndef moveMask(path0, path1):\n if not os.path.exists(path1):\n os.mkdir(path1)\n for file in os.listdir(path0):\n if '_mask' in file:\n input_path = os.path.join(path0, file)\n output_path = os.path.join(path1,file)\n if not os.path.exists(output_path):\n shutil.move(input_path,output_path)\n\ndef main():\n pathToFolder = sys.argv[1]\n if not os.path.exists(pathToFolder):\n print('rembg: folder does not exists: ',pathToFolder)\n sys.exit(1)\n if len(sys.argv) > 2:\n pathToMask = sys.argv[2]\n else:\n parent_Folder = os.path.join(pathToFolder, os.pardir)\n pathToMask = os.path.join(parent_Folder,'masks')\n print('rembg: image directory:', pathToFolder)\n print('rembg: mask directory:',pathToMask) \n createMask(pathToFolder,pathToMask)\n moveMask(pathToFolder, pathToMask)\n print('rembg: completed')\n\nmain()","repo_name":"rexliuser/scripts_odm","sub_path":"removeBG_parallel.py","file_name":"removeBG_parallel.py","file_ext":"py","file_size_in_byte":2929,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12784595770","text":"import logging\nfrom asyncio import sleep\nfrom datetime import datetime, timedelta\nfrom typing import Optional\n\nimport requests\nfrom aiogram import Bot\nfrom aiogram.exceptions import TelegramForbiddenError\nfrom aiogram.types import ChatPermissions, Chat, User, Message\n\nSTATE_PASS = 'pass'\nSTATE_NOT_PERFORMED = 'not performed'\n\n\n# STATE_FAIL = 'fail'\n\n\nclass UserState:\n def __init__(self, chat_id: int, group_tim_msg: Message, state: str = STATE_NOT_PERFORMED,\n private_tip_msg: Optional[Message] = None):\n self.chat_id = chat_id\n self.group_tip_msg = group_tim_msg\n self.state = state\n self.private_tip_msg = private_tip_msg # 私聊中的提示信息,完成后删除\n\n\nuser_states: dict[int, UserState] = {}\n\n\nasync def verification(chat: Chat,\n group_tip_message: Message,\n user: User,\n bot: Bot,\n shutup_before_verification: bool,\n test_time: int,\n ban: bool,\n ban_time: int | None):\n \"\"\"\n 缓存数据,发送提示信息,等待私聊验证,超市则踢出用户\n :param chat: 群组\n :param group_tip_message: 提示信息,验证后删除\n :param user: 被验证用户\n :param bot: Bot\n :param shutup_before_verification: 在通过验证前是否禁言\n :param test_time: 超过这个时间将被封禁\n :param ban: 验证失败后是否封禁\n :param ban_time: 封禁时间,空为永久\n \"\"\"\n user_states[user.id] = UserState(chat.id, group_tip_message) # 缓存正在用户的信息\n\n if shutup_before_verification:\n await bot.restrict_chat_member(\n chat_id=chat.id,\n user_id=user.id,\n permissions=ChatPermissions(),\n )\n\n await sleep(test_time)\n\n if user_states[user.id].state == STATE_PASS:\n \"\"\"\n 通过验证后消息的删除,与通过的提醒在 handlers.web_callback_handler 中处理了\n \"\"\"\n user_states.pop(user.id)\n return\n\n msg = await bot.send_message(chat.id, f\"{user.full_name[0] + '███' + user.full_name[-1]} 验证超时,已被踢出\")\n await bot.ban_chat_member(\n chat_id=chat.id,\n user_id=user.id,\n until_date=datetime.now() + timedelta(seconds=ban_time) if ban_time is not None else None)\n\n if not ban:\n await bot.unban_chat_member(chat.id, user.id)\n elif ban_time is not None:\n try:\n await bot.send_message(user.id, f\"未通过验证,已被踢出,请在 {test_time} 秒后重试\")\n except TelegramForbiddenError:\n logging.info(f\"{user.full_name} 未私聊,无法发送消息\")\n else:\n try:\n await bot.send_message(user.id, f\"未通过验证,已被永久封禁,请联系管理员\")\n except TelegramForbiddenError:\n logging.info(f\"{user.full_name} 未私聊,无法发送消息\")\n user_states.pop(user.id)\n await sleep(10)\n\n await bot.delete_message(chat.id, msg.message_id)\n await bot.delete_message(chat.id, group_tip_message.message_id)\n\n\n# 验证客户端传回来的 recaptcha response\ndef verify_recaptcha(user_data: str, token: str, proxy: str = None):\n data = {\n \"secret\": token,\n \"response\": user_data\n }\n result = requests.post(\n url=\"https://www.google.com/recaptcha/api/siteverify\",\n data=data,\n proxies={\"https\": proxy} if proxy else None\n ).json()\n if \"score\" in result: # for v3\n return result['success'] and result['score'] > 0.5\n return result['success'] # for v2\n\n\ndef verify_turnstile(user_data: str, token: str, proxy: str = None):\n data = {\n \"secret\": token,\n \"response\": user_data\n }\n result = requests.post(\n url=\"https://challenges.cloudflare.com/turnstile/v0/siteverify\",\n data=data,\n proxies={\"https\": proxy} if proxy else None\n ).json()\n return result['success']\n","repo_name":"tobyprime/VerificationBot","sub_path":"verification.py","file_name":"verification.py","file_ext":"py","file_size_in_byte":4028,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32702967078","text":"\n#### Usage: python3 this.py\n#### [Pgen_counts.csv] [should_sort_idx_output]\n#### Options: [should_sort_idx_output] (default: True)\n#### Input: 15 columns\n#### Note: is actually not used so far\n#### Output: STDOUT .csv (';'-separated, idx-sorted)\n#### add 3+4+8+8+6(+1)=29(30) columns\n#### 3(16-18th) V_name,D_name,J_name\n#### 4(19-22th) P(V),P(J|V),P(D|V,J),P(V,D,J)\n#### 2*4=8(23-30th) V3_delLen, P(V3_delLen|V), D5_delLen, P(.|D), D3_delLen, P(,|D), J5_delLen, P(.|J)\n#### 4*2=8(31-38th) VD_insLen, P(VD_insLen), VD_insNt, P(VD_insNt), DJ_...\n#### 1(39th) P_recomb = P(V,D,J)*P(V3_delLen|V)*...*P(VD_insLen)*P(VD_InsNt)*...\n#### 1(40th) P_mismatch = error_rate ^ num_mismatch\n#### 1(41th) P_scenario = P_recomb * P_mismatch\n#### 1(42th) P_posterior = P_scenario / P_read\n#### 1(43th) P_read = sum P_scenario\n#### 1(44th) P_gen = sum P_recomb\n#### 1(45th) Pgen (if [Pgen_counts.csv] is provided)\n#### each best_scenario followed by 6 lines for sequence alignment: read, match, VDJjoin, V, D, J\n\nimport sys\nimport numpy as np\n\nref_dirPath, idx_seq_filename, parms_filename, marginals_filename, bestScenarios_filename = sys.argv[1:6]\nPgen_filename = None\nif len(sys.argv) > 6:\n\tPgen_filename = sys.argv[6]\n\ndef str2bool(x):\n\ttry:\n\t\tx = int(x)\n\t\treturn x > 0\n\texcept ValueError:\n\t\treturn x.lower() in ('true', 't', 'yes', 'y')\n\nshould_sort_idx_output = True\nif len(sys.argv) > 7:\n\tshould_sort_idx_output = str2bool(sys.argv[7])\n\t\n\n# for debug\nprint('ref_dirPath = {}'.format(ref_dirPath), file=sys.stderr)\nprint('idx_seq_filename = {}'.format(idx_seq_filename), file=sys.stderr)\nprint('parms_filename = {}'.format(parms_filename), file=sys.stderr)\nprint('marginals_filename = {}'.format(marginals_filename), file=sys.stderr)\nprint('bestScenarios_filename = {}'.format(bestScenarios_filename), file=sys.stderr)\nprint('Pgen_filename = {}'.format(Pgen_filename), file=sys.stderr)\n\n\n\ndef str_left(str, Len, fill=''):\n\tif Len > len(str):\n\t\treturn str + fill * (Len - len(str))\n\telse:\n\t\treturn str[0:Len]\n\t\ndef str_right(str, Len, fill=''):\n\tif Len > len(str):\n\t\treturn fill * (Len - len(str)) + str\n\telse:\n\t\treturn str[(len(str)-Len):]\n\ndef str_trim_left(str, Len):\n\treturn str[Len:]\n\ndef str_trim_right(str, Len):\n\tif Len > len(str):\n\t\treturn ''\n\telse:\n\t\treturn str[0:(len(str)-Len)]\n\ndef str_left_match(str, target):\n\treturn str_left(str, len(target)) == target\n\ndef str_right_match(str, target):\n\treturn str_right(str, len(target)) == target\n\n\ndef read_parms_Event_list(parms_filename):\n\tparms_event = {}\n\t# parms_event[nick] = {key_idx:name, ..., name:int(idx)}\n\tVDJ_alleles = {'V':{}, 'D':{}, 'J':{}}\n\t# VDJ_alleles['V'/'D'/'J'] = {key_idx:seq, name:seq}\n\terror_rate = -1\n\t\n\twith open(parms_filename, 'r') as fin:\n\t\tpart = ''\n\t\tsubpart = ''\n\t\ttype, gene, side, prio, nick = [''] * 5\n\t\tfor line in fin:\n\t\t\tline = line.rstrip()\n\t\t\tif line[0] == '@':\n\t\t\t\tpart = line[1:]\n\t\t\t\tif part != 'Event_list':\n\t\t\t\t\tpass # do nothing\n#\t\t\t\t\tbreak # end of reading\n\t\t\telif line[0] == '#':\n\t\t\t\tif part == 'Event_list':\n\t\t\t\t\tsubpart = line[1:]\n\t\t\t\t\ttype, gene, side, prio, nick = subpart.split(';')\n\t\t\t\t\tif nick not in parms_event:\n\t\t\t\t\t\tparms_event[nick] = {}\n\t\t\t\telif part == 'ErrorRate':\n\t\t\t\t\tsubpart = line[1:]\n\t\t\telif line[0] == '%':\n\t\t\t\tif part == 'Event_list':\n\t\t\t\t\tF = line[1:].split(';')\n\t\t\t\t\tname = F[0]\n\t\t\t\t\tidx = F[len(F)-1]\n\t\t\t\t\tparms_event[nick]['key_' + idx] = name\n\t\t\t\t\tparms_event[nick][name] = int(idx)\n\t\t\t\tif nick == 'v_choice' or nick == 'j_choice' or nick == 'd_gene':\n\t\t\t\t\tVDJ = nick[0].upper()\n\t\t\t\t\tseq = F[1]\n\t\t\t\t\tVDJ_alleles[VDJ]['key_' + idx] = seq\n\t\t\t\t\tVDJ_alleles[VDJ][name] = seq\n\t\t\telse:\n\t\t\t\tif part == 'ErrorRate' and subpart == 'SingleErrorRate':\n\t\t\t\t\terror_rate = float(line)\n\t\t\t\t\tsubpart = 'SingleErrorRate_alreadyRead'\n\t\t\t\t\t\n\treturn parms_event, VDJ_alleles, error_rate\n\t\t\t\t\ndef read_marginals(marginals_filename):\n\tmarginals = {}\n\t# marginals[nick] = np.array()\n\n\twith open(marginals_filename, 'r') as fin:\n\t\tfor line in fin:\n\t\t\tline = line.rstrip()\n\t\t\tif line[0] == '@':\n\t\t\t\tnick = line[1:]\n\t\t\telif line[0] == '$':\n\t\t\t\tdim = line[5:(len(line)-1)]\n\t\t\t\tdim = list(map(int, dim.split(',')))\n\t\t\t\tmarginals[nick] = np.zeros(dim)\n\t\t\telif line[0] == '#':\n\t\t\t\tnamedDim = line[2:(len(line)-1)]\n\t\t\t\tif namedDim == '':\n\t\t\t\t\theadIdxes = []\n\t\t\t\telse:\n\t\t\t\t\tnamedDim = namedDim.split('],[')\n\t\t\t\t\theadIdxes = [int(x.split(',')[1]) for x in namedDim]\n\t\t\telif line[0] == '%':\n\t\t\t\tvec = list(map(float, line[1:].split(',')))\n\t\t\t\tif len(headIdxes) == 0:\n\t\t\t\t\tmarginals[nick] = np.array(vec)\n\t\t\t\t\tif str_right_match(nick, '_dinucl'):\n\t\t\t\t\t\tmarginals[nick] = np.reshape(vec, (4,4))\n\t\t\t\telif len(headIdxes) == 1:\n\t\t\t\t\tmarginals[nick][headIdxes[0]] = vec\n\t\t\t\telif len(headIdxes) == 2:\n\t\t\t\t\tmarginals[nick][headIdxes[0]][headIdxes[1]] = vec\n\t\t\t\telse:\n\t\t\t\t\tprint('Warning: dim > 3 ?!', file=sys.stderr)\n\t\n\treturn marginals\n\n\nVDJ2nick = {\n\t'V' : 'v_choice',\n\t'J' : 'j_choice',\n\t'D' : 'd_gene'\n}\nVDJdel2fullPrefix = {\n\t'V3' : 'Deletion_V_gene_Three_prime',\n\t'D5' : 'Deletion_D_gene_Five_prime',\n\t'D3' : 'Deletion_D_gene_Three_prime',\n\t'J5' : 'Deletion_J_gene_Five_prime'\n}\nntCode2Nt = {\n\t'0' : 'A',\n\t'1' : 'C',\n\t'2' : 'G',\n\t'3' : 'T'\n}\nnt2intCode = {\n\t'A' : 0,\n\t'C' : 1,\n\t'G' : 2,\n\t'T' : 3\n}\ndef getNtFromNtCode(ntCode):\n\tif ntCode in ntCode2Nt:\n\t\treturn ntCode2Nt[ntCode]\n\telse:\n\t\tprint('Warning: unknown ntCode={}, so I return ?'.format(ntCode), file=sys.stderr)\n\t\treturn '?'\n\ndef get_VDJidx(VDJname, VDJ):\n\tVDJidx = -1\n\tif VDJname in parms_event[VDJ2nick[VDJ]]:\n\t\tVDJidx = parms_event[VDJ2nick[VDJ]][VDJname]\n\telse:\n\t\tprint('Warning: cannot find {} {}'.format(VDJ, VDJname), file=sys.stderr)\n\treturn VDJidx\n\ndef get_P_VDJchoice(Vidx, Didx, Jidx):\n\tans = [-1] * 4\n\t# ans = [P(V), P(J|V), P(D|V,J), P(V,D,J)]\n\tif Vidx < marginals['v_choice'].shape[0]:\n\t\tans[0] = marginals['v_choice'][Vidx]\n\t\tif Jidx < marginals['j_choice'][Vidx].shape[0]:\n\t\t\tans[1] = marginals['j_choice'][Vidx][Jidx]\n\t\t\tif Didx < marginals['d_gene'][Vidx][Jidx].shape[0]:\n\t\t\t\tans[2] = marginals['d_gene'][Vidx][Jidx][Didx]\n\t\t\t\tans[3] = ans[0] * ans[1] * ans[2]\n\treturn ans\n\n\ndef fields_to_field2idx(fields):\n\tans = {}\n\tfor i, x in enumerate(fields):\n\t\tans[x] = i\n\treturn ans\n\ndef fields_prefix_match_idx(query, fields):\n\tquery_len = len(query)\n\tans = []\n\tfor i in range(len(fields)):\n\t\tif fields[i][0:query_len] == query:\n\t\t\tans.append(i)\n\treturn ans\n\t\ndef read_Pgen(Pgen_filename):\n\tans = {}\n\t# ans[idx] = Pgen_estimate\n\t\n\tis_headline = True\n\tfields = []\n\tfield2idx = {}\n\twith open(Pgen_filename, 'r') as fin:\n\t\tfor line in fin:\n\t\t\tline = line.rstrip()\n\t\t\tF = line.split(';')\n\t\t\tif is_headline:\n\t\t\t\tis_headline = False\n\t\t\t\tfields = F\n\t\t\t\tfield2idx = fields_to_field2idx(F)\n\t\t\telse:\n\t\t\t\tif 'seq_index' not in field2idx:\n\t\t\t\t\tprint('Warning: I cannot find seq_idx column in Pgen file {}'.format(Pgen_filename), file=sys.stderr)\n\t\t\t\tif 'Pgen_estimate' not in field2idx:\n\t\t\t\t\tprint('Warning: I cannot find Pgen_estimate column in Pgen file {}'.format(Pgen_filename), file=sys.stderr)\n#\t\t\t\tidx, Pgen = F[0:2]\n\t\t\t\tidx = F[field2idx['seq_index']]\n\t\t\t\tPgen = F[field2idx['Pgen_estimate']]\n\t\t\t\tans[idx] = Pgen\n\n\treturn ans\n\ndef read_idx_seq(idx_seq_filename):\n\tinput_idx2seq = {}\n\tis_headline = True\n\tfields = []\n\tfield2idx = {}\n\twith open(idx_seq_filename, 'r') as fin:\n\t\tfor line in fin:\n\t\t\tline = line.rstrip()\n\t\t\tF = line.split(';')\n\t\t\tif is_headline:\n\t\t\t\tis_headline = False\n\t\t\t\tfields = F\n\t\t\t\tfield2idx = fields_to_field2idx(F)\n\t\t\telse:\n\t\t\t\tif 'seq_index' not in field2idx:\n\t\t\t\t\tprint('Warning: I cannot find seq_idx column in idx_seq file {}'.format(idx_seq_filename), file=sys.stderr)\n\t\t\t\tif 'sequence' not in field2idx:\n\t\t\t\t\tprint('Warning: I cannot find sequence column in idx_seq file {}'.format(idx_seq_filename), file=sys.stderr)\n\t\t\t\t\t\n\t\t\t\tidx = F[field2idx['seq_index']]\n\t\t\t\tseq = F[field2idx['sequence']]\n\t\t\t\tinput_idx2seq['key_' + idx] = seq\n\treturn input_idx2seq\n\t\n\t\ndef get_P_delLen(VDJidx, VDJdelLenIdx):\n\tVDJdelLen = {}\n\tP_VDJdel = {}\n\tfor VDJdel in ('V3', 'D5', 'D3', 'J5'):\n\t\tnick = VDJdel[0].lower() + '_' + VDJdel[1] + '_del'\n\t\tnowLenIdx = VDJdelLenIdx[VDJdel]\n\t\tP_VDJdel[VDJdel] = marginals[nick][VDJidx[VDJdel[0]]][nowLenIdx]\n\t\tif VDJdel == 'D3':\n\t\t\t# P(D3|D,D5)\n\t\t\tP_VDJdel[VDJdel] = marginals[nick][VDJidx[VDJdel[0]]][VDJdelLenIdx['D5']][nowLenIdx]\n\t\t\t# I have checked and confirmed this extraction is correct\n\t\tVDJdelLen[VDJdel] = int(parms_event[nick]['key_' + str(nowLenIdx)])\n#\t\t## for simple convenience\n#\t\tif VDJdelLen[VDJdel] < 0:\n#\t\t\tVDJdelLen[VDJdel] = 0\n\treturn P_VDJdel, VDJdelLen\n\ndef get_P_insLen(VDJinsLenIdx):\n\tVDJinsLen = {}\n\tP_VDJins = {}\n\tfor VDJins in ('VD', 'DJ'):\n\t\tnick = VDJins.lower() + '_ins'\n\t\tnowLenIdx = VDJinsLenIdx[VDJins]\n\t\tP_VDJins[VDJins] = marginals[nick][nowLenIdx]\n\t\tVDJinsLen[VDJins] = int(parms_event[nick]['key_' + str(nowLenIdx)])\n\treturn P_VDJins, VDJinsLen\n\ndef get_P_insDinucl(VDJinsNt, initNt={}):\n\tP_VDJinsNt = {}\n\tfor VDJins in ('VD', 'DJ'):\n\t\tnick = VDJins.lower() + '_dinucl'\n\t\tntVec = VDJinsNt[VDJins]\n\t\tans = 1\n\t\tfor i in range(len(ntVec)):\n\t\t\tprevNt = None\n\t\t\tif i > 0:\n\t\t\t\tprevNt = ntVec[i-1]\n\t\t\telif VDJins in initNt:\n\t\t\t\tprevNt = initNt[VDJins]\n\t\t\tnextNt = ntVec[i]\n#\t\t\tprint('{} {}'.format(prevNt, nextNt)) # for debug\n\t\t\tif prevNt is None or prevNt == '':\n\t\t\t\tprint('Warning: no initNt, so I skip the first base transition (when calling get_P_insDinucl)', file=sys.stderr)\n\t\t\t\tcontinue # skip the first nt if initNt == None (prevNt==None)\n\t\t\tif prevNt == '?' or nextNt == '?':\n\t\t\t\tprint('Warning: prevNt == \"?\" or nextNt == \"?\", so I skip this base transition (when calling get_P_insDinucl)', file=sys.stderr)\n\t\t\t\tcontinue # skip the first nt if prevNt == \"?\" or nextNt == \"?\"\n\t\t\tprevNtCode = nt2intCode[prevNt]\n\t\t\tnextNtCode = nt2intCode[nextNt]\n\t\t\tans *= marginals[nick][prevNtCode, nextNtCode]\n\t\tP_VDJinsNt[VDJins] = ans\n\treturn P_VDJinsNt\n\ndef get_match_mismatch_str(query, subjt, caseSensitive=False):\n\tif not caseSensitive:\n\t\tquery = query.upper()\n\t\tsubjt = subjt.upper()\n\t\t\n\tfrom itertools import zip_longest\n\tans = []\n\tfor a, b in zip_longest(query, subjt):\n\t\tif a is None:\n\t\t\tbreak\n\t\tif b is None:\n\t\t\tans.append(a)\n\t\telif a==b:\n\t\t\tans.append('.')\n\t\telse:\n\t\t\tans.append(a)\n\treturn ''.join(ans)\n\t\ndef find_max_match_shift(query, subjt):\n\tmax_match = -1\n\tmax_match_shift = 0\n\tfor shift in range(0, -len(query), -1):\n\t\tnum_match = get_match_mismatch_str(query, ' '*(-shift) + subjt).count('.')\n#\t\tprint('{} {}'.format(shift, num_match)) # for debug\n\t\tif num_match > max_match:\n\t\t\tmax_match_shift = shift\n\t\t\tmax_match = num_match\n\tfor shift in range(1, len(subjt)):\n\t\tnum_match = get_match_mismatch_str(' '*(shift) + query, subjt).count('.')\n#\t\tprint('{} {}'.format(shift, num_match)) # for debug\n\t\tif num_match > max_match:\n\t\t\tmax_match_shift = shift\n\t\t\tmax_match = num_match\n\treturn max_match_shift\n\ndef continuous_LCS_DP(query, subjt, caseSensitive=False):\n\tif not caseSensitive:\n\t\tquery = query.upper()\n\t\tsubjt = subjt.upper()\n\t\t\n\tlen1 = len(query)\n\tlen2 = len(subjt)\n\tmax_LCS_len = 0\n\tmax_len_i, max_len_j = -1, -1\n\tDPmat = np.zeros((len1+1, len2+1), dtype='int')\n\tfor i in range(1, len1+1):\n\t\tfor j in range(1, len2+1):\n\t\t\tif query[i-1] == subjt[j-1]:\n\t\t\t\tDPmat[i,j] = DPmat[i-1,j-1] + 1\n\t\t\t\tif DPmat[i,j] > max_LCS_len:\n\t\t\t\t\tmax_LCS_len = DPmat[i,j]\n\t\t\t\t\tmax_len_i, max_len_j = i, j\n\t\n\treturn max_LCS_len, max_len_i, max_len_j\n\t# max_match_shift = j - i\n\ndef generate_scenario_alignment_str(input_read_seq, VDJidx, VDJdelLen, VDJinsNt, VDJinsLen={}, output_prefix=''):\n\tVDJseq = {}\n\tfor VDJ in ('V', 'D', 'J'):\n\t\tVDJseq[VDJ] = VDJ_alleles[VDJ]['key_' + str(VDJidx[VDJ])]\n\tmyVDJinsLen = {}\n\tfor VDJins in ('VD', 'DJ'):\n\t\tif VDJins in VDJinsLen:\n\t\t\tif VDJinsLen[VDJins] != len(VDJinsNt[VDJins]):\n\t\t\t\tprint('Warning: len(VDJinsNt[\"{}\"]={} != VDJinsLen={}'.format(VDJins, len(VDJinsNt[VDJins]), VDJinsLen[VDJins]), file=sys.stderr)\n\t\tmyVDJinsLen[VDJins] = len(VDJinsNt[VDJins])\n\t\n\t# del\n#\tVseq = str_trim_right(VDJseq['V'], VDJdelLen['V3'])\n#\tDseq = str_trim_right(str_trim_left(VDJseq['D'], VDJdelLen['D5']), VDJdelLen['D3'])\n#\tJseq = str_trim_left(VDJseq['J'], VDJdelLen['J5'])\n\tif VDJdelLen['V3'] >= 0:\n\t\tVseq = str_trim_right(VDJseq['V'], VDJdelLen['V3'])\n\telse:\n\t\tVseq = VDJseq['V'] + '?' * - VDJdelLen['V3']\n\tif VDJdelLen['D5'] >= 0:\n\t\tDseq = str_trim_left(VDJseq['D'], VDJdelLen['D5'])\n\telse:\n\t\tDseq = '?' * - VDJdelLen['D5'] + VDJseq['D']\n\tif VDJdelLen['D3'] >= 0:\n\t\tDseq = str_trim_right(Dseq, VDJdelLen['D3'])\n\telse:\n\t\tDseq = Dseq + '?' * - VDJdelLen['D3'] \n\tif VDJdelLen['J5'] >= 0:\n\t\tJseq = str_trim_left(VDJseq['J'], VDJdelLen['J5'])\n\telse:\n\t\tJseq = '?' * - VDJdelLen['J5'] + VDJseq['J']\n\t## 2018-12-04 Note: I found that IGoR DJins dinuc is probably from J to D (3'->5' direction, + strand)\n\tVDJjoinSeq = Vseq.upper() + VDJinsNt['VD'].lower() + Dseq.upper() + ''.join(reversed(VDJinsNt['DJ'])).lower() + Jseq.upper()\n\tVDJseqStart = {'V' : 0}\n\tVDJseqStart['D'] = VDJseqStart['V'] + len(Vseq) + myVDJinsLen['VD'] - VDJdelLen['D5']\n\tVDJseqStart['J'] = VDJseqStart['V'] + len(Vseq) + myVDJinsLen['VD'] + len(Dseq) + myVDJinsLen['DJ'] - VDJdelLen['J5']\n\t\n#\tmyShift = find_max_match_shift(input_read_seq, VDJjoinSeq)\n\ttmp = continuous_LCS_DP(input_read_seq, VDJjoinSeq)\n\tmyShift = tmp[2] - tmp[1]\n\t\n\tans = output_prefix\n\tif myShift >= 0:\n\t\tans += ' ' * myShift + input_read_seq\n\t\tans += '\\n' + output_prefix + get_match_mismatch_str(' ' * myShift + input_read_seq, VDJjoinSeq)\n\telse:\n\t\tans += input_read_seq\n\t\tans += '\\n' + output_prefix + get_match_mismatch_str(input_read_seq, ' ' * (-myShift) + VDJjoinSeq)\n\t\toutput_prefix += ' ' * (-myShift)\n\tans += '\\n' + output_prefix + VDJjoinSeq\n\tans += '\\n' + output_prefix + ' '*VDJseqStart['V'] + Vseq.upper() + str_right(VDJseq['V'], VDJdelLen['V3']).lower()\n\tans += '\\n' + output_prefix + ' '*VDJseqStart['D'] + str_left(VDJseq['D'], VDJdelLen['D5']).lower() + Dseq.upper() + str_right(VDJseq['D'], VDJdelLen['D3']).lower()\n\tans += '\\n' + output_prefix + ' '*VDJseqStart['J'] + str_left(VDJseq['J'], VDJdelLen['J5']).lower() + Jseq.upper()\n\treturn ans, VDJjoinSeq, Vseq, Dseq, Jseq\n\t\n\t\ndef read_bestScenarios(bestScenarios_filename):\n\tcontents = {}\n\tinput_idx_order = []\n\t# contents[idx][rank] = F(list of the line)\n\n\tis_headline = True\n\tfields = []\n\tfield2idx = {}\n\tVDJchoice_colidx = {'V':-1, 'D':-1, 'J':-1}\n\tVDJdel_colidx = {'V':-1, 'D':-1, 'J':-1}\n\tVDJins_colidx = {'V':-1, 'D':-1, 'J':-1}\n\tVDJinsNt_colidx = {'V':-1, 'D':-1, 'J':-1}\n\tseq_idx_colidx, scenario_rank_colidx, mismatch_colidx = -1, -1, -1\n\twith open(bestScenarios_filename, 'r') as fin:\n\t\tfor line in fin:\n\t\t\tline = line.rstrip()\n\t\t\tF = line.split(';')\n\t\t\tif is_headline:\n\t\t\t\tis_headline = False\n\t\t\t\tfields = F\n\t\t\t\tfield2idx = fields_to_field2idx(F)\n\t\t\t\t\n\t\t\t\tfor VDJ in ('V','D','J'):\n\t\t\t\t\tVDJchoice_colidx[VDJ] = fields_prefix_match_idx('GeneChoice_'+VDJ+'_gene_', fields)\n\t\t\t\t\tif len(VDJchoice_colidx[VDJ]) <= 0:\n\t\t\t\t\t\tprint('Error: cannot find GeneChoice_{}_gene_ column in bestScenarios input file {}'.format(VDJ, bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\t\treturn None\n\t\t\t\t\tif len(VDJchoice_colidx[VDJ]) > 1:\n\t\t\t\t\t\tprint('Warning: multiple GeneChoice_{}_gene_ columns in bestScenarios input file {}. I just use the left-most column'.format(VDJ, bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\tVDJchoice_colidx[VDJ] = VDJchoice_colidx[VDJ][0]\n\t\t\t\tfor VDJdel in ('V3', 'D5', 'D3', 'J5'):\n\t\t\t\t\tVDJdel_colidx[VDJdel] = fields_prefix_match_idx(VDJdel2fullPrefix[VDJdel], fields)\n\t\t\t\t\tif len(VDJdel_colidx[VDJdel]) <= 0:\n\t\t\t\t\t\tprint('Error: cannot find ' + VDJdel2fullPrefix[VDJdel] + ' column in bestScenarios input file {}'.format(VDJ, bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\t\treturn None\n\t\t\t\t\tif len(VDJdel_colidx[VDJdel]) > 1:\n\t\t\t\t\t\tprint('Warning: multiple ' + VDJdel2fullPrefix[VDJdel] + ' columns in bestScenarios input file {}. I just use the left-most column'.format(VDJ, bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\tVDJdel_colidx[VDJdel] = VDJdel_colidx[VDJdel][0]\n\t\t\t\tfor VDJins in ('VD', 'DJ'):\n\t\t\t\t\tVDJins_colidx[VDJins] = fields_prefix_match_idx('Insertion_'+VDJins+'_gene', fields)\n\t\t\t\t\tif len(VDJins_colidx[VDJins]) <= 0:\n\t\t\t\t\t\tprint('Error: cannot find Insertion_{}_gene column in bestScenarios input file {}'.format(VDJins, bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\t\treturn None\n\t\t\t\t\tif len(VDJins_colidx[VDJins]) > 1:\n\t\t\t\t\t\tprint('Warning: multiple Insertion_{}_gene columns in bestScenarios input file {}. I just use the left-most column'.format(VDJins, bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\tVDJins_colidx[VDJins] = VDJins_colidx[VDJins][0]\n\t\t\t\t\n\t\t\t\t\tVDJinsNt_colidx[VDJins] = fields_prefix_match_idx('DinucMarkov_'+VDJins+'_gene', fields)\n\t\t\t\t\tif len(VDJinsNt_colidx[VDJins]) <= 0:\n\t\t\t\t\t\tprint('Error: cannot find DinucMarkov_{}_gene column in bestScenarios input file {}'.format(VDJins, bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\t\treturn None\n\t\t\t\t\tif len(VDJinsNt_colidx[VDJins]) > 1:\n\t\t\t\t\t\tprint('Warning: multiple DinucMarkov_{}_gene columns in bestScenarios input file {}. I just use the left-most column'.format(VDJins, bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\tVDJinsNt_colidx[VDJins] = VDJinsNt_colidx[VDJins][0]\n\t\t\t\t\n\t\t\t\tif 'seq_index' in field2idx:\n\t\t\t\t\tseq_idx_colidx = field2idx['seq_index']\n\t\t\t\telse:\n\t\t\t\t\tprint('Error: cannot find Mismatches column in bestScenarios input file {}'.format(bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\treturn None\n\t\t\t\tif 'scenario_rank' in field2idx:\n\t\t\t\t\tscenario_rank_colidx = field2idx['scenario_rank']\n\t\t\t\telse:\n\t\t\t\t\tprint('Error: cannot find Mismatches column in bestScenarios input file {}'.format(bestScenarios_filename), file=sys.stderr)\n\t\t\t\t\treturn None\n\t\t\t\tif 'Mismatches' in field2idx:\n\t\t\t\t\tmismatch_colidx = field2idx['Mismatches']\n\t\t\t\telse:\n\t\t\t\t\tprint('Warning: cannot find Mismatches column in bestScenarios input file {}'.format(bestScenarios_filename), file=sys.stderr)\n\t\t\telse:\n#\t\t\t\tidx, rank = F[0:2]\n\t\t\t\tidx = F[seq_idx_colidx]\n\t\t\t\trank = F[scenario_rank_colidx]\n\t\t\t\tinput_read_seq = ''\n\t\t\t\tif 'key_' + idx in input_idx2seq:\n\t\t\t\t\tinput_read_seq = input_idx2seq['key_' + idx]\n\t\t\t\tVDJidx = {'V':-1, 'D':-1, 'J':-1}\n\t\t\t\tVDJname = {'V':'?','D':'?','J':'?'}\n\t\t\t\tVDJdelLenIdx = {'V3':-1, 'D5':-1, 'D3':-1, 'J5':-1}\n\t\t\t\tVDJinsLenIdx = {'VD':-1, 'DJ':-1}\n\t\t\t\tVDJinsNt = {'VD':'?', 'DJ':'?'}\n\t\t\t\tfor VDJ in ('V','D','J'):\n\t\t\t\t\tVDJidx[VDJ] = F[VDJchoice_colidx[VDJ]]\n\t\t\t\t\tVDJidx[VDJ] = VDJidx[VDJ][1:(len(VDJidx[VDJ])-1)] # remove outer ()\n\t\t\t\t\tif 'key_' + VDJidx[VDJ] in parms_event[VDJ2nick[VDJ]]:\n\t\t\t\t\t\tVDJname[VDJ] = parms_event[VDJ2nick[VDJ]]['key_' + VDJidx[VDJ]]\n\t\t\t\t\tVDJidx[VDJ] = int(VDJidx[VDJ])\n\t\t\t\tfor VDJdel in ('V3', 'D5', 'D3', 'J5'):\n\t\t\t\t\tVDJdelLenIdx[VDJdel] = F[VDJdel_colidx[VDJdel]]\n\t\t\t\t\tVDJdelLenIdx[VDJdel] = int(VDJdelLenIdx[VDJdel][1:(len(VDJdelLenIdx[VDJdel])-1)]) # remove outer ()\n\t\t\t\tfor VDJins in ('VD', 'DJ'):\n\t\t\t\t\tVDJinsLenIdx[VDJins] = F[VDJins_colidx[VDJins]]\n\t\t\t\t\tVDJinsLenIdx[VDJins] = int(VDJinsLenIdx[VDJins][1:(len(VDJinsLenIdx[VDJins])-1)]) # remove outer ()\n\t\t\t\t\tVDJinsNt[VDJins] = F[VDJinsNt_colidx[VDJins]]\n\t\t\t\t\tVDJinsNt[VDJins] = VDJinsNt[VDJins][1:(len(VDJinsNt[VDJins])-1)] # remove outer ()\n#\t\t\t\t\tprint(VDJins) # for debug\n#\t\t\t\t\tprint('\"' + VDJinsNt[VDJins] + '\"')\n#\t\t\t\t\tprint(F) # for debug\n\t\t\t\t\tif len(VDJinsNt[VDJins]) > 0:\n\t\t\t\t\t\tVDJinsNt[VDJins] = ''.join([ getNtFromNtCode(x) for x in VDJinsNt[VDJins].split(',') ])\n\t\t\t\t\telse:\n\t\t\t\t\t\tVDJinsNt[VDJins] = ''\n\t\t\t\tmismatches = []\n\t\t\t\tif mismatch_colidx >= 0:\n\t\t\t\t\tmismatches = F[mismatch_colidx]\n\t\t\t\t\tmismatches = mismatches[1:(len(mismatches)-1)] # remove outer ()\n\t\t\t\t\tmismatches = mismatches.split(',')\n\t\t\t\tif len(mismatches) == 1 and mismatches[0] == '':\n\t\t\t\t\tmismatches = []\n\t\t\t\t\t\n#### add 3+4+1(+1)=8(9) columns\n#### 3 V_name,D_name,J_name\n\t\t\t\tF.append(VDJname['V'])\n\t\t\t\tF.append(VDJname['D'])\n\t\t\t\tF.append(VDJname['J'])\n#### 4 P(V),P(J|V),P(D|V,J),P(V,D,J)\n#\t\t\t\tprint(VDJidx) # for debug\n#\t\t\t\tprint(get_P_VDJchoice(VDJidx['V'], VDJidx['D'], VDJidx['J']))\n\t\t\t\tP_VDJchoice = get_P_VDJchoice(VDJidx['V'], VDJidx['D'], VDJidx['J'])\n\t\t\t\tF.extend(list(map(str, P_VDJchoice)))\n\t\t\t\tP_scenario = P_VDJchoice[3]\n#### 2*4=8 V3_delLen, P(V3_delLen|V), D5_delLen, P(.|D), D3_delLen, P(,|D, D5_delLen), J5_delLen, P(.|J)\n\t\t\t\tP_VDJdel, VDJdelLen = get_P_delLen(VDJidx, VDJdelLenIdx)\n#\t\t\t\tprint(VDJidx) # for debug\n#\t\t\t\tprint(VDJdelLenIdx) # for debug\n#\t\t\t\tprint(VDJdelLen) # for debug\n#\t\t\t\tprint(P_VDJdel) # for debug\n\t\t\t\t\n\t\t\t\tfor VDJdel in ('V3', 'D5', 'D3', 'J5'):\n\t\t\t\t\tF.extend(list(map(str, (VDJdelLen[VDJdel], P_VDJdel[VDJdel]))))\n\t\t\t\t\tP_scenario *= P_VDJdel[VDJdel]\n#### 4*2=8 VD_insLen, P(VD_insLen), VD_insNt, P(VD_insNt), DJ_...\n\t\t\t\tP_VDJins, VDJinsLen = get_P_insLen(VDJinsLenIdx)\n\t\t\t\talignStr, VDJjoinSeq, Vseq, Dseq, Jseq = generate_scenario_alignment_str(input_read_seq, VDJidx, VDJdelLen, VDJinsNt, VDJinsLen)\n\t\t\t\tinitNt = {'VD':str_right(Vseq,1), 'DJ':str_right(Dseq,1)}\n\t\t\t\tif initNt['DJ'] == '':\n\t\t\t\t\tinitNt['DJ'] = str_right(VDJinsNt['VD'], 1)\n\t\t\t\tP_VDJinsNt = get_P_insDinucl(VDJinsNt, initNt)\n\t\t\t\tfor VDJins in ('VD', 'DJ'):\n\t\t\t\t\tF.extend(list(map(str, (VDJinsLen[VDJins], P_VDJins[VDJins], VDJinsNt[VDJins], P_VDJinsNt[VDJins]))))\n\t\t\t\t\tP_scenario *= P_VDJins[VDJins] * P_VDJins[VDJins] * P_VDJinsNt[VDJins]\n#### 1 P_mismatch = error_rate ^ num_mismatch\n\t\t\t\tP_mismatch = (error_rate/3) ** len(mismatches) * (1-error_rate) ** len(input_read_seq)\n#\t\t\t\tprint('{} {} {}'.format(mismatches, len(mismatches), P_mismatch)) # for debug\n\t\t\t\tP_recomb = P_scenario\n\t\t\t\tP_scenario *= P_mismatch\n\t\t\t\tF.append(str(P_recomb))\n\t\t\t\tF.append(str(P_mismatch))\n#### 1 P_scenario = P(V,D,J)*P(V3_delLen|V)*...*P(VD_insLen)*P(VD_InsNt)*...\n\t\t\t\tF.append(str(P_scenario))\n#\t\t\t\tfor i, x in enumerate(F): # for debug\n#\t\t\t\t\tprint('{} {}'.format(i, x))\n#\t\t\t\tbreak\n\t\t\t\t\n\t\t\t\tF.append(alignStr) # push, wait for pop\n\t\t\t\t\n#### 1 P(V,D,J)_weighted_mean (weighted by scenario_proba_cond_seq)\n#### 1 P_scenario_weighted_mean (weighted by scenario_proba_cond_seq)\n#### 1 Pgen (if [Pgen_counts.tsv] is provided)\n\n\t\t\t\tif idx not in contents:\n\t\t\t\t\tcontents[idx] = {}\n\t\t\t\t\tinput_idx_order.append(idx)\n\t\t\t\tcontents[idx][rank] = F\n\n\toutput_fields = fields\n\toutput_fields.extend(['V_name', 'D_name', 'J_name', 'P_V', 'P_J_given_V', 'P_D_given_V_J', 'P_VDJ'])\n\tfor VDJdel in ('V3', 'D5', 'D3', 'J5'):\n\t\toutput_fields.extend([VDJdel + '_delLen', 'P_' + VDJdel + '_delLen_given_' + VDJdel[0]])\n\t\tif VDJdel == 'D3':\n\t\t\toutput_fields[len(output_fields)-1] = 'P_D3_delLen_given_D_and_D5_delLen'\n\tfor VDJins in ('VD', 'DJ'):\n\t\toutput_fields.extend([VDJins + '_insLen', 'P_' + VDJins + '_insLen', VDJins + 'insNt', 'P_' + VDJins + 'insNt'])\n\toutput_fields.append('P_recomb')\n\toutput_fields.append('P_mismatch')\n\toutput_fields.append('P_scenario')\n#\tfor i, x in enumerate(output_fields): # for debug\n#\t\tprint('{} {}'.format(i, x))\n\treturn {'fields':output_fields, 'contents':contents, 'input_idx_order':input_idx_order}\n\n\n\n\nprint('Now read two model files ...', file=sys.stderr)\nparms_event, VDJ_alleles, error_rate = read_parms_Event_list(parms_filename)\nmarginals = read_marginals(marginals_filename)\ninput_idx2seq = read_idx_seq(idx_seq_filename)\n\nif Pgen_filename is not None:\n\tprint('Now read Pgen file ...', file=sys.stderr)\n\tPgen_hash = read_Pgen(Pgen_filename)\n\nprint('Now read best_scenariors file ...', file=sys.stderr)\nbestScenario_hash = read_bestScenarios(bestScenarios_filename)\n\n#### 1(39th) P_recomb = P(V,D,J)*P(V3_delLen|V)*...*P(VD_insLen)*P(VD_InsNt)*...\n#### 1(40th) P_mismatch = error_rate ^ num_mismatch\n#### 1(41th) P_scenario = P_recomb * P_mismatch\n#### 1(42th) P_posterior = P_scenario / P_read\n#### 1(43th) P_read = sum P_scenario\n#### 1(44th) P_gen = sum P_recomb\n#### 1(45th) Pgen (if [Pgen_counts.csv] is provided)\noutput_fields = bestScenario_hash['fields']\nfield2idx = fields_to_field2idx(output_fields)\noutput_fields.append('P_posterior')\noutput_fields.append('P_read')\noutput_fields.append('P_gen')\nif Pgen_filename is not None:\n\toutput_fields.append('Pgen_estimate')\nprint(';'.join(output_fields))\n## sort, 2-pass for weighted mean, and output\nif should_sort_idx_output:\n\tidxes = sorted(bestScenario_hash['contents'].keys(), key=int)\nelse:\n\tidxes = bestScenario_hash['input_idx_order']\nfor idx in idxes:\n\tthis_seqIdx_Fs = bestScenario_hash['contents'][idx].values()\n#\tprint(this_seqIdx_Fs) # for debug\n\tnum_sce = len(this_seqIdx_Fs)\n#\tsce_probs = [ F[field2idx['scenario_proba_cond_seq']] for F in this_seqIdx_Fs ]\n#\tsce_probs = list(map(float, sce_probs))\n#\tsum_sce_prob = sum(sce_probs)\n\t\n\tP_scenarios = [ F[field2idx['P_scenario']] for F in this_seqIdx_Fs ]\n\tP_scenarios = list(map(float, P_scenarios))\n\tP_read = sum(P_scenarios)\n\tP_recombs = [ F[field2idx['P_recomb']] for F in this_seqIdx_Fs ]\n\tP_recombs = list(map(float, P_recombs))\n#\tP_posteriors = [x/P_read for x in P_scenarios]\n\tP_gen = sum(P_recombs)\n\t\n\tfor rank in sorted(bestScenario_hash['contents'][idx].keys(), key=int):\n\t\tF = bestScenario_hash['contents'][idx][rank]\n\t\talignStr = F[len(F)-1]\n\t\tF = F[0:(len(F)-1)] # pop\n\t\t\n\t\tF.append(str(float(F[field2idx['P_scenario']]) / P_read)) # P_posterior\n\t\tF.append(str(P_read))\n\t\tF.append(str(P_gen))\n\t\tif Pgen_filename is not None:\n\t\t\tif idx in Pgen_hash:\n\t\t\t\tF.append(Pgen_hash[idx])\n\t\t\telse:\n\t\t\t\tF.append('-1')\n#\t\tprint(F) # for debug\n\t\tprint(';'.join(F))\n\t\tprint(alignStr)\n","repo_name":"Yyx2626/HTGTSrep","sub_path":"IGoR/scripts/yyx_annotate_bestScenarios.20181206.py","file_name":"yyx_annotate_bestScenarios.20181206.py","file_ext":"py","file_size_in_byte":25745,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"31751441453","text":"import pytest\n\nimport ray\nfrom ray.tests.conftest import * # noqa\n\nNUM_REPEATS = 10\nNUM_TASKS = 10\n\n\n# This test can be flaky if there is resource deadlock between the pipeline\n# stages. Run it a lot to ensure no regressions.\ndef test_basic_actors(shutdown_only):\n ray.init(num_cpus=2)\n for _ in range(NUM_REPEATS):\n ds = ray.data.range(NUM_TASKS)\n ds = ds.window(blocks_per_window=1)\n assert sorted(ds.map(lambda x: x + 1, compute=\"actors\").take()) == list(\n range(1, NUM_TASKS + 1)\n )\n\n\nif __name__ == \"__main__\":\n import sys\n\n sys.exit(pytest.main([\"-v\", __file__]))\n","repo_name":"merlinepedra/RAY-1","sub_path":"python/ray/data/tests/test_pipeline_nohang.py","file_name":"test_pipeline_nohang.py","file_ext":"py","file_size_in_byte":622,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"34831147188","text":"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\nimport glob\nimport re\nimport subprocess\nimport os\nimport argparse\nimport csc\n\ndef DefineArguments():\n \"\"\"Argument parser.\"\"\"\n parser = argparse.ArgumentParser(\n description='Determine which CSC to generate State Machine tests.')\n parser.add_argument(\n '-c',\n '--csc',\n metavar='CSC',\n dest='csc',\n type = str.lower,\n required=True,\n choices=str(csc.csc_array)[1:-1],\n help='''For which CSC do you want to generate tests? ''')\n args = parser.parse_args()\n return args\n\ndef CreateLocalVars(csc):\n\t# Create/Open GlobalVars file.\n\tprint(\"Creating \" + csc + \"_LocalVars.robot\")\n\ttry:\n\t\tos.chdir(\"robotframework_\" + csc)\n\texcept FileNotFoundError:\n\t\tos.makedirs(\"robotframework_\" + csc, exist_ok=False)\n\t\tos.chdir(\"robotframework_\" + csc)\n\tfinally:\n\t\tf = open(csc + \"_LocalVars.txt\",\"w\")\n\n\t# Create the header.\n\tf.write(\"# vi:syntax=cmake\\n\")\n\tf.write(\"# Arguments file for testing the \" + csc + \"\\n\")\n\tf.write(\"\\n\")\n\n\t# Define location test reports\n\tf.write(\"# Output directory\\n\")\n\tf.write(\"-d \" + os.environ['HOME'] + \"/Reports/\" + csc + \"_RegressionTests\\n\")\n\tf.write(\"\\n\")\n\n\t# Define tests to skip\n\tf.write(\"# Specify tags to NOT run\\n\")\n\tf.write(\"-e skipped\\n\")\n\tf.write(\"#-e TSS*\\n\")\n\tf.write(\"\\n\")\n\n\t# Define non-critical tags\n\tf.write(\"# Specify non-critical failures\\n\")\n\tf.write(\"--noncritical TSS*\\n\")\n\tf.write(\"\\n\")\n\n\t# Set dry run mode\n\tf.write(\"# Dry run mode\\n\")\n\tf.write(\"#--dryrun\\n\")\n\tf.write(\"\\n\")\n\n\t# User informatin\n\tf.write(\"# Redefine default variables\\n\")\n\tf.write(\"--variable UserName:FILLMEIN\\n\")\n\tf.write(\"--variable PassWord:FILLMEIN\\n\")\n\tf.write(\"--variable OpenspliceVersion:6.7.170523OSS\\n\")\n\tf.write(\"--variable OpenspliceDate:2017-07-31\\n\")\n\tf.write(\"--variable SALVersion:3.7.0\\n\")\n\tf.write(\"\\n\")\n\n\t# Return to calling directory.\n\tos.chdir(\"../\")\n\nif __name__ == '__main__':\n\t# Get the arguments.\n\targs = DefineArguments()\n\n\tCreateLocalVars(args.csc)\n","repo_name":"lsst-ts/robotframework_template","sub_path":"Vars.py","file_name":"Vars.py","file_ext":"py","file_size_in_byte":2008,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"13192520937","text":"import BaseHTTPServer\nimport handlerutils\nimport rssfeed\nimport datetime\nimport iso8601\nimport textwrap\nfrom utctz import UTCTZ\nimport urlparse\nimport htmlutils\n\n_rss_mime_type = 'text/xml'\n_html_mime_type = 'text/html'\n_plain_mime_type = 'text/plain'\n_allowed_fetch_domains = set(('facebook.com','www.facebook.com'))\n_allowed_fetch_schemes = set(('http','https'))\n_allowed_fetch_ports = set((80,443,None))\n\nclass GateHandler(BaseHTTPServer.BaseHTTPRequestHandler,\n handlerutils.HandlerUtilsMixIn):\n def __init__(self, request, client_address, server, env):\n self.env = env\n BaseHTTPServer.BaseHTTPRequestHandler.__init__(self,\n request, client_address, server)\n\n def r_hello(self):\n \"\"\" Test route \"\"\"\n self.finalize('Hello World!\\n',\n headers = (('Content-Type', _plain_mime_type),))\n\n def r_feed(self):\n if self.command == 'HEAD':\n self.finalize(headers = (('Content-Type', _rss_mime_type),))\n return\n\n args = self.get_args()\n if 'id' not in args:\n self.send_error(400, 'Missing required query parameter: id')\n return\n\n try:\n ID = int(args['id'])\n except:\n self.send_error(400, 'Unable to parse integer parameter: id')\n return\n\n try:\n feedobj = self.env.graphapi.get_feed(ID, limit=100)\n except:\n self.send_error(500, 'Unable to fetch feed')\n return\n \n try:\n groupobj = self.env.graphapi.get_group(ID)\n groupname = groupobj['name']\n except:\n groupname = 'Facebook feed %d' % (ID,)\n \n feed = rssfeed.RSSFeed(\n 'https://facebook.com/%s' % (ID,),\n groupname,\n groupname,\n datetime.datetime.now(UTCTZ())\n )\n \n for post in feedobj['data']:\n posturl = 'https://facebook.com/' + post['id']\n feed.append_item(posturl,\n textwrap.wrap(post['message'])[0] + '...' if 'message' in post else post.get('story') or post['id'],\n post['message'] if 'message' in post else post.get('story', '') + ':' + posturl,\n iso8601.parse_date(post['updated_time']),\n post['id']\n )\n\n self.send_response(200)\n self.send_header('Content-Type', _rss_mime_type)\n self.send_header('Connection', 'close')\n self.end_headers()\n feed.marshal(self.wfile)\n\n def r_icon(self):\n self.serve_static('favicon.ico')\n\n def r_resolver(self):\n if self.command == 'HEAD':\n self.finalize(headers = (('Content-Type', _plain_mime_type),))\n return\n\n args = self.get_args()\n if 'url' not in args:\n self.send_error(400, 'Missing required query parameter: url')\n return\n\n url = args['url']\n uc = urlparse.urlparse(url, 'http')\n\n if uc.username is not None or uc.password is not None:\n self.send_error(400, 'HTTP Basic auth not allowed')\n return\n\n if uc.port not in _allowed_fetch_ports:\n self.send_error(400, 'Port not allowed')\n return\n\n if uc.scheme not in _allowed_fetch_schemes:\n self.send_error(400, 'URL scheme not allowed')\n return\n\n if uc.hostname not in _allowed_fetch_domains:\n self.send_error(400, 'URL domain not allowed')\n return\n\n try:\n text = self.env.fbuser.fetch_url(url)\n except:\n self.send_error(500, 'Unable to fetch URL')\n return\n\n try:\n te = htmlutils.TagExtractor(['html','head','meta'], [('property', 'al:android:url')])\n te.feed(text)\n except:\n self.send_error(500, 'Unable to parse document body')\n return\n\n if te.found is None:\n self.send_error(500, 'Unable to parse document body')\n return\n\n ta = dict(te.found)\n if 'content' not in ta:\n self.send_error(500, 'Unable to parse document body')\n return\n\n ID = ''.join([c for c in ta['content'][::-1] if c.isdigit()][::-1])\n self.finalize(ID)\n\n def r_index(self):\n self.serve_static('index.html')\n\n routes = {\n '/': r_index,\n '/index.html': r_index,\n '/index.htm': r_index,\n '/rss/v1.0/hello': r_hello,\n '/rss/v1.0/feed': r_feed,\n '/resolve/v1.0/page_id': r_resolver,\n '/favicon.ico': r_icon\n }\n\n def do_GET(self):\n self.route(self.routes)\n","repo_name":"Snawoot/fbfeed2rss","sub_path":"gatehandler.py","file_name":"gatehandler.py","file_ext":"py","file_size_in_byte":4616,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"11068122972","text":"# https://leetcode.com/problems/number-of-provinces/\n\n# CodeHelp\n\nclass Solution:\n def dfs(self, vis, src, isConnected):\n vis[src] = True\n # row -> src\n # col -> we will write a loop\n size = len(isConnected[src])\n for col in range(size):\n if src != col and isConnected[src][col] == 1:\n # col is a nbr\n if col not in vis or not vis[col]: # map\n # if not vis[col]: #list but In cpp same used in map\n self.dfs(vis, col, isConnected)\n\n def findCircleNum(self, isConnected: List[List[int]]) -> int:\n\n # map\n visited = {}\n\n # n = len(isConnected)\n # visited = [0] * n\n\n count = 0\n n = len(isConnected)\n # i represents nodes here\n for i in range(n):\n if i not in visited: # map\n # if not visited[i]: # list but In cpp same used in map\n self.dfs(visited, i, isConnected)\n count += 1\n return count\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n # # Devsnest\n # n = len(isConnected)\n # # Create a visited list to keep track of which cities have been visited\n # visited = [0] * n\n # # Initialize the number of provinces to 0\n # num_provinces = 0\n\n # for i in range(n):\n # # If the city has not been visited yet\n # if visited[i] == 0:\n # # Use BFS to traverse all the cities that are directly or indirectly connected to it\n # queue = deque([i])\n # visited[i] = 1\n # while queue:\n # city = queue.popleft()\n # for j in range(n):\n # if isConnected[city][j] == 1 and visited[j] == 0:\n # queue.append(j)\n # visited[j] = 1\n # # Increase the number of provinces by 1\n # num_provinces += 1\n # return num_provinces","repo_name":"anshawasthi01/Supreme-DSA","sub_path":"20. Graph - II/1. Graph/1. Number of Provinces[L - 547].py","file_name":"1. Number of Provinces[L - 547].py","file_ext":"py","file_size_in_byte":2028,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"15124992606","text":"from flask import Flask, render_template, request,jsonify\nimport numpy as np\nfrom keras.models import load_model\nfrom keras.preprocessing.image import load_img, img_to_array\nfrom keras.applications.vgg16 import preprocess_input\nfrom flask_cors import CORS\n\napp = Flask(__name__)\nCORS(app)\nmodel_path = \"E:\\pymodel\\model\\modelMLtest.h5\"\nmodel = load_model(model_path)\n\n@app.route('/', methods=['GET'])\ndef index():\n return render_template('testml.html')\n\n@app.route('/predict', methods=['POST'])\ndef predict():\n imagefile = request.files['imagefile']\n image_path = \"./images/\" + imagefile.filename\n imagefile.save(image_path)\n\n # โหลดรูปภาพและปรับขนาด\n image = load_img(image_path, target_size=(256, 256))\n image = img_to_array(image)\n image = image.reshape((1, image.shape[0], image.shape[1], image.shape[2]))\n image = preprocess_input(image)\n\n # ทำนายผลลัพธ์ด้วยโมเดล\n yhat = model.predict(image)\n class_index = np.argmax(yhat)\n \n # รายชื่อคลาส\n label_names = ['Astrophytum', 'Mammillaria', 'Melocactus', 'cactus']\n classification = label_names[class_index]\n\n return render_template('testml.html', prediction=classification)\n\nif __name__ == '__main__':\n app.run(host='0.0.0.0', port=5000, debug=True)","repo_name":"KheperX/ml_cactus","sub_path":"app.py","file_name":"app.py","file_ext":"py","file_size_in_byte":1361,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"36319212149","text":"#! usr/bin/env Python3\ndef synchronize(l1, l2):\n mapping = dict(zip(sorted(l1), sorted(l2)))\n return [mapping[x] for x in l1]\n\nwhile True:\n n = int(input())\n if n != 0:\n listOne, listTwo = [], []\n for i in range(n): listOne.append(int(input()))\n for i in range(n): listTwo.append(int(input()))\n ans = (synchronize(listOne, listTwo))\n for i in range(len(ans)):\n print(ans[i])\n else: break\n","repo_name":"FarOutWest/Kattis","sub_path":"synclists.py","file_name":"synclists.py","file_ext":"py","file_size_in_byte":449,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"37223458339","text":"from core import FreqOracleClient\n\nimport numpy as np\nimport math\nimport random\n\nclass MultiPCMSMeanClient(FreqOracleClient):\n def __init__(self, epsilon, hash_funcs, m, is_hadamard=False, index_mapper=None):\n super().__init__(epsilon, None, index_mapper)\n self.sketch_based = True\n self.is_hadamard = is_hadamard\n self.update_params(hash_funcs, m, epsilon)\n\n def update_params(self, hash_funcs=None, m=None, epsilon=None, index_mapper=None):\n if hash_funcs is not None:\n self.hash_funcs = hash_funcs\n self.k = len(self.hash_funcs)\n\n self.epsilon = epsilon if epsilon is not None else self.epsilon\n self.m = m if m is not None else self.m\n\n if epsilon is not None:\n if self.is_hadamard:\n self.prob = 1 / (1 + math.pow(math.e, self.epsilon))\n else:\n self.prob = 1 / (1 + math.pow(math.e, self.epsilon / self.m))\n\n def _one_hot(self, data):\n j = random.randint(0, self.k-1)\n h_j = self.hash_funcs[j]\n v = [0] * self.m if self.is_hadamard else np.full(self.m, -1)\n for i in range(len(data)):\n v[h_j(str(data[i]))] = 1\n return v, j\n\n def _perturb(self, data):\n v, j = self._one_hot(data) # modify the encode, and self.prob\n np.random.seed()\n r = np.random.rand(*v.shape)\n v[r < self.prob] *= -1 # \"flip\" bits with prob\n return v, j\n\n def privatise(self, data):\n return self._perturb(data)","repo_name":"Lyinger/PrivSketch","sub_path":"frequency_oracles/pcms/multi_pcms_mean_client.py","file_name":"multi_pcms_mean_client.py","file_ext":"py","file_size_in_byte":1518,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"27293307258","text":"import datetime\nimport os\nimport sys\nimport time\nimport warnings\n\nsys.path.append('../utils')\n# import presets\nimport torch\nimport torch.utils.data\nimport torchvision\nimport torchvision.transforms\nimport transforms\nimport utils\nfrom torch import nn\nfrom torch.utils.data.dataloader import default_collate\nfrom torchvision.transforms.functional import InterpolationMode\n\n@torch.no_grad()\ndef get_all_preds(model, loader):\n all_preds = torch.tensor([])\n for batch in loader:\n images, labels = batch\n\n preds = model(images)\n all_preds = torch.cat((all_preds, preds) ,dim=0)\n\n return all_preds \n\n@torch.no_grad()\ndef get_acc(test_loader, model, device): \n correct = 0\n total = 0\n model.eval()\n \n # with torch.no_grad():\n for data in test_loader:\n images, targets = data\n images, targets = images.to(device), targets.to(device)\n outputs = model(images)\n _, predicted = torch.max(outputs.data, 1)\n total += targets.size(0)\n correct += (predicted == targets).sum().item()\n\n return 100 * correct / total\n\ndef train_one_epoch(model, criterion, optimizer, data_loader, device, epoch, args, model_ema=None, scaler=None):\n model.train()\n\n header = f\"Epoch: [{epoch}]\"\n for i, (image, target) in enumerate((data_loader)):\n image, target = image.to(device), target.to(device)\n with torch.cuda.amp.autocast(enabled=scaler is not None):\n output = model(image)\n loss = criterion(output, target)\n\n optimizer.zero_grad()\n if scaler is not None:\n scaler.scale(loss).backward()\n if args.clip_grad_norm is not None:\n # we should unscale the gradients of optimizer's assigned params if do gradient clipping\n scaler.unscale_(optimizer)\n nn.utils.clip_grad_norm_(model.parameters(), args.clip_grad_norm)\n scaler.step(optimizer)\n scaler.update()\n else:\n loss.backward()\n if args.clip_grad_norm is not None:\n nn.utils.clip_grad_norm_(model.parameters(), args.clip_grad_norm)\n optimizer.step()\n\n if model_ema and i % args.model_ema_steps == 0:\n model_ema.update_parameters(model)\n if epoch < args.lr_warmup_epochs:\n # Reset ema buffer to keep copying weights during warmup period\n model_ema.n_averaged.fill_(0)\n \n # acc1 = get_acc(test_loader, model, device)\n \n \ndef get_args_parser(add_help=True):\n import argparse\n\n parser = argparse.ArgumentParser(description=\"PyTorch Classification Training\", add_help=add_help)\n\n parser.add_argument(\"--data-path\", default=\"/datasets01/imagenet_full_size/061417/\", type=str, help=\"dataset path\")\n parser.add_argument(\"--model\", default=\"resnet18\", type=str, help=\"model name\")\n parser.add_argument(\"--device\", default=\"cuda\", type=str, help=\"device (Use cuda or cpu Default: cuda)\")\n parser.add_argument(\n \"-b\", \"--batch-size\", default=32, type=int, help=\"images per gpu, the total batch size is $NGPU x batch_size\"\n )\n parser.add_argument(\"--epochs\", default=90, type=int, metavar=\"N\", help=\"number of total epochs to run\")\n parser.add_argument(\n \"-j\", \"--workers\", default=16, type=int, metavar=\"N\", help=\"number of data loading workers (default: 16)\"\n )\n parser.add_argument(\"--opt\", default=\"sgd\", type=str, help=\"optimizer\")\n parser.add_argument(\"--lr\", default=0.1, type=float, help=\"initial learning rate\")\n parser.add_argument(\"--momentum\", default=0.9, type=float, metavar=\"M\", help=\"momentum\")\n parser.add_argument(\n \"--wd\",\n \"--weight-decay\",\n default=1e-4,\n type=float,\n metavar=\"W\",\n help=\"weight decay (default: 1e-4)\",\n dest=\"weight_decay\",\n )\n parser.add_argument(\n \"--norm-weight-decay\",\n default=None,\n type=float,\n help=\"weight decay for Normalization layers (default: None, same value as --wd)\",\n )\n parser.add_argument(\n \"--bias-weight-decay\",\n default=None,\n type=float,\n help=\"weight decay for bias parameters of all layers (default: None, same value as --wd)\",\n )\n parser.add_argument(\n \"--transformer-embedding-decay\",\n default=None,\n type=float,\n help=\"weight decay for embedding parameters for vision transformer models (default: None, same value as --wd)\",\n )\n parser.add_argument(\n \"--label-smoothing\", default=0.0, type=float, help=\"label smoothing (default: 0.0)\", dest=\"label_smoothing\"\n )\n parser.add_argument(\"--mixup-alpha\", default=0.0, type=float, help=\"mixup alpha (default: 0.0)\")\n parser.add_argument(\"--cutmix-alpha\", default=0.0, type=float, help=\"cutmix alpha (default: 0.0)\")\n parser.add_argument(\"--lr-scheduler\", default=\"steplr\", type=str, help=\"the lr scheduler (default: steplr)\")\n parser.add_argument(\"--lr-warmup-epochs\", default=0, type=int, help=\"the number of epochs to warmup (default: 0)\")\n parser.add_argument(\n \"--lr-warmup-method\", default=\"constant\", type=str, help=\"the warmup method (default: constant)\"\n )\n parser.add_argument(\"--lr-warmup-decay\", default=0.01, type=float, help=\"the decay for lr\")\n parser.add_argument(\"--lr-step-size\", default=30, type=int, help=\"decrease lr every step-size epochs\")\n parser.add_argument(\"--lr-gamma\", default=0.1, type=float, help=\"decrease lr by a factor of lr-gamma\")\n parser.add_argument(\"--lr-min\", default=0.0, type=float, help=\"minimum lr of lr schedule (default: 0.0)\")\n parser.add_argument(\"--print-freq\", default=10, type=int, help=\"print frequency\")\n parser.add_argument(\"--output-dir\", default=\".\", type=str, help=\"path to save outputs\")\n parser.add_argument(\"--resume\", default=\"\", type=str, help=\"path of checkpoint\")\n parser.add_argument(\"--start-epoch\", default=0, type=int, metavar=\"N\", help=\"start epoch\")\n parser.add_argument(\n \"--cache-dataset\",\n dest=\"cache_dataset\",\n help=\"Cache the datasets for quicker initialization. It also serializes the transforms\",\n action=\"store_true\",\n )\n parser.add_argument(\n \"--sync-bn\",\n dest=\"sync_bn\",\n help=\"Use sync batch norm\",\n action=\"store_true\",\n )\n parser.add_argument(\n \"--test-only\",\n dest=\"test_only\",\n help=\"Only test the model\",\n action=\"store_true\",\n )\n parser.add_argument(\"--auto-augment\", default=None, type=str, help=\"auto augment policy (default: None)\")\n parser.add_argument(\"--ra-magnitude\", default=9, type=int, help=\"magnitude of auto augment policy\")\n parser.add_argument(\"--augmix-severity\", default=3, type=int, help=\"severity of augmix policy\")\n parser.add_argument(\"--random-erase\", default=0.0, type=float, help=\"random erasing probability (default: 0.0)\")\n\n # Mixed precision training parameters\n parser.add_argument(\"--amp\", action=\"store_true\", help=\"Use torch.cuda.amp for mixed precision training\")\n\n # distributed training parameters\n parser.add_argument(\"--world-size\", default=1, type=int, help=\"number of distributed processes\")\n parser.add_argument(\"--dist-url\", default=\"env://\", type=str, help=\"url used to set up distributed training\")\n parser.add_argument(\n \"--model-ema\", action=\"store_true\", help=\"enable tracking Exponential Moving Average of model parameters\"\n )\n parser.add_argument(\n \"--model-ema-steps\",\n type=int,\n default=32,\n help=\"the number of iterations that controls how often to update the EMA model (default: 32)\",\n )\n parser.add_argument(\n \"--model-ema-decay\",\n type=float,\n default=0.99998,\n help=\"decay factor for Exponential Moving Average of model parameters (default: 0.99998)\",\n )\n parser.add_argument(\n \"--use-deterministic-algorithms\", action=\"store_true\", help=\"Forces the use of deterministic algorithms only.\"\n )\n parser.add_argument(\n \"--interpolation\", default=\"bilinear\", type=str, help=\"the interpolation method (default: bilinear)\"\n )\n parser.add_argument(\n \"--val-resize-size\", default=256, type=int, help=\"the resize size used for validation (default: 256)\"\n )\n parser.add_argument(\n \"--val-crop-size\", default=224, type=int, help=\"the central crop size used for validation (default: 224)\"\n )\n parser.add_argument(\n \"--train-crop-size\", default=224, type=int, help=\"the random crop size used for training (default: 224)\"\n )\n parser.add_argument(\"--clip-grad-norm\", default=None, type=float, help=\"the maximum gradient norm (default None)\")\n parser.add_argument(\"--ra-sampler\", action=\"store_true\", help=\"whether to use Repeated Augmentation in training\")\n parser.add_argument(\n \"--ra-reps\", default=3, type=int, help=\"number of repetitions for Repeated Augmentation (default: 3)\"\n )\n parser.add_argument(\"--weights\", default=None, type=str, help=\"the weights enum name to load\")\n parser.add_argument(\"--backend\", default=\"PIL\", type=str.lower, help=\"PIL or tensor - case insensitive\")\n parser.add_argument(\"--use-v2\", action=\"store_true\", help=\"Use V2 transforms\")\n return parser ","repo_name":"YuBeomGon/vit_cifar10","sub_path":"utils/train.py","file_name":"train.py","file_ext":"py","file_size_in_byte":9289,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3898767302","text":"# -*- coding: utf-8 -*-\n# project: PycharmProjects\n# file: loggerhandler\n# author: gichen\n# create time: 2018/6/7 4:23 PM\n# product name: PyCharm\nimport logging\nimport os\nimport re\nimport sys\nimport time\nfrom stat import ST_MTIME\n\ntry:\n import uwsgi\n\n uwsgi_mode = True\nexcept:\n uwsgi_mode = False\n\n# prepare env\nfrom logging.handlers import TimedRotatingFileHandler\n\n\ndef check_version():\n if sys.version_info < (3, 0):\n reload(sys)\n sys.setdefaultencoding('utf-8')\n sys.getfilesystemencoding = lambda: 'UTF-8'\n reload(sys)\n # else:\n # sys.stdout.write('Please use python 2.x to run this script!\\n')\n # sys.exit(255)\n\n\ncheck_version()\n\n# basicConfig 打印library日志\nlogging.basicConfig(level=logging.INFO)\nfor hd in logging.getLogger().handlers:\n if isinstance(hd, logging.StreamHandler):\n hd.setLevel(20)\n\n\n# make sure dir exist\ndef __makesuredirexist__(path):\n if not os.path.exists(path):\n sys.stdout.write('path does not exist: {}\\n'.format(path))\n sys.stdout.write('auto create {}\\n'.format(path))\n os.makedirs(path, 0o775)\n\n\nclass mylogger():\n def __init__(self, classname, log_path, when='midnight', interval=1, backupCount=0, level=10):\n \"\"\"\n ���定保存日志的文件路径,日志级别,以及调用文件\n 将日志存入到指定的文件中\n :param classname:\n :param log_path:\n :param when:\n :param interval:\n :param backupCount:\n :param level: default DEBUG=10\n \"\"\"\n # self attributes setting\n if uwsgi_mode:\n wk_id = uwsgi.worker_id()\n self.log_path = log_path + '.{}'.format(wk_id)\n else:\n self.log_path = log_path\n\n # 创建log文件父目录\n __makesuredirexist__(os.path.dirname(log_path))\n\n # 创建一个logger\n self.logger = logging.getLogger(classname)\n self.logger.setLevel(level)\n self.logger.propagate = 0\n\n # 创建一个handler,用于写入日志文件\n fh = TimedRotatingFileHandler(log_path, when=when, interval=interval, backupCount=backupCount, encoding='utf-8')\n fh.setLevel(logging.DEBUG)\n\n # 再创建一个handler,用于输出到控制台\n ch = logging.StreamHandler()\n ch.setLevel(logging.INFO)\n\n # 定义handler的输出格式\n formatter = logging.Formatter('[%(asctime)s - %(name)s - %(levelname)s - %(process)d] %(message)s')\n fh.setFormatter(formatter)\n ch.setFormatter(formatter)\n\n # 给logger添加handler\n for hdlr in self.logger.handlers:\n self.logger.removeHandler(hdlr)\n self.logger.addHandler(fh)\n self.logger.addHandler(ch)\n\n # 添加下面一句,在记录日志之后移除句柄\n # self.logger.removeHandler(ch)\n # self.logger.removeHandler(fh)\n # 关闭打开的文件\n fh.close()\n ch.close()\n\n def _check_basefilename(self):\n \"\"\"\n Only if uwsgi_mode is True, then check basefilename works.\n Aim to locate correct log file in case of multi processes.\n :return:\n \"\"\"\n if uwsgi_mode:\n wk_id = uwsgi.worker_id()\n for h in self.logger.handlers:\n if isinstance(h, TimedRotatingFileHandler):\n if h.baseFilename.endswith('.log'):\n base_filename = h.baseFilename + '.{}'.format(wk_id)\n h.baseFilename = base_filename\n self.__reset_log_file(h)\n continue\n if re.match(r\".*\\.[0-9]\", h.baseFilename) and not re.match(r\".*\\.{}\".format(wk_id), h.baseFilename):\n base_filename = '.'.join(h.baseFilename.split('.')[:-1]) + '.{}'.format(wk_id)\n h.baseFilename = base_filename\n self.__reset_log_file(h)\n continue\n\n def __reset_log_file(self, handler):\n \"\"\"\n change log file stream;\n change rolloverat\n re-open stream\n :param handler:\n :return:\n \"\"\"\n if handler.stream:\n handler.stream.close()\n handler.stream = None\n if os.path.exists(handler.baseFilename):\n t = os.stat(handler.baseFilename)[ST_MTIME]\n else:\n t = int(time.time())\n handler.stream = handler._open()\n newRolloverAt = handler.computeRollover(t)\n while newRolloverAt <= t:\n newRolloverAt = newRolloverAt + handler.interval\n handler.rolloverAt = newRolloverAt\n\n def getlog(self):\n return self.logger\n\n def debug(self, msg, *args, **kwargs):\n self._check_basefilename()\n self.logger.debug(msg, *args, **kwargs)\n\n def info(self, msg, *args, **kwargs):\n self._check_basefilename()\n self.logger.info(msg, *args, **kwargs)\n\n def error(self, msg, *args, **kwargs):\n self._check_basefilename()\n self.logger.error(msg, *args, **kwargs)\n\n def warning(self, msg, *args, **kwargs):\n self._check_basefilename()\n self.logger.warning(msg, *args, **kwargs)\n\n def critical(self, msg, *args, **kwargs):\n self._check_basefilename()\n self.logger.critical(msg, *args, **kwargs)\n","repo_name":"xunfengqiyang/baseProjects","sub_path":"python3/bin/Utils/loggerhandler.py","file_name":"loggerhandler.py","file_ext":"py","file_size_in_byte":5339,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"8114847287","text":"import sys\n\nfrom match import Match\nfrom team import Team\nfrom player import Batsman\n\n\ndef get_players_probability():\n \"\"\" players probability \"\"\"\n return {\n 'Kirat Boli': { '0':5, '1':30, '2':25, '3':10, '4':15, '5':1 ,'6':9,'out':5 },\n 'N.S Nodhi': { '0':10, '1':40, '2':20, '3':5, '4':10, '5':1, '6':4, 'out':10 },\n 'R Rumrah': { '0':20, '1':30, '2':15, '3':5, '4':5, '5':1, '6':4, 'out':20 },\n 'Shashi Henra': { '0':30, '1':25, '2':5, '3':0, '4':5, '5':1, '6':4, 'out':30 }\n }\n\ndef get_inputs():\n \"\"\" take inputs from the user \"\"\" \n team_1 = str(input(\"Enter Batting Team: \"))\n team_2 = str(input(\"Enter Bowling Team: \"))\n no_of_balls = input(\"Enter No of Balls: \")\n no_of_wickets = input(\"Enter no of wickets: \")\n runs_to_win = input(\"Enter runs to win: \")\n\n return team_1, team_2, no_of_balls, no_of_wickets, runs_to_win\n\ndef create_team(team, is_batting=True):\n return Team(team, is_batting)\n\ndef create_batsman(player_name, team, probability):\n return Batsman(player_name, team, probability)\n\n\ndef validation(team_1, team_2, no_of_balls, no_of_wickets, runs_to_win):\n\n \"\"\" validation of team name, balls, wickets and runs to win \"\"\"\n if team_1 == team_2:\n return \"Both teams can't be of same name\"\n try:\n no_of_balls = int(no_of_balls)\n except Exception:\n return \"no of balls should be an integer\"\n\n try:\n no_of_wickets = int(no_of_wickets)\n except Exception as e:\n return \"no of wickets should be an integer\"\n\n try:\n runs_to_win = int(runs_to_win)\n except Exception as e:\n return \"no of runs should be an integer\"\n\ndef main(team_1, team_2, no_of_balls, no_of_wickets, runs_to_win):\n \n \"\"\" main func \"\"\"\n val = validation(team_1, team_2, no_of_balls, no_of_wickets, runs_to_win)\n if val:\n return val\n\n no_of_balls = int(no_of_balls)\n no_of_wickets = int(no_of_wickets)\n runs_to_win = int(runs_to_win)\n\n team_1 = create_team(team_1, True)\n team_2 = create_team(team_2, False)\n \n players_probability = get_players_probability()\n\n player_1 = create_batsman(\"Kirat Boli\", team_1, players_probability[\"Kirat Boli\"])\n player_1.came_to_bat = True\n\n player_2 = create_batsman(\"N.S Nodhi\", team_1, players_probability[\"N.S Nodhi\"])\n player_2.came_to_bat = True\n\n player_3 = create_batsman(\"R Rumrah\", team_1, players_probability[\"R Rumrah\"])\n player_4 = create_batsman(\"Shashi Henra\", team_1, players_probability[\"Shashi Henra\"])\n\n striker = player_1\n non_striker = player_2\n rest_players = [player_3, player_4]\n\n match = Match(no_of_balls, no_of_wickets, runs_to_win, team_1, team_2, striker, non_striker, rest_players)\n\n output = match.main()\n return output\n\n \n\nif __name__ == \"__main__\":\n\n \"\"\" calling the main func \"\"\"\n team_1, team_2, no_of_balls, no_of_wickets, runs_to_win = get_inputs()\n results = main(team_1, team_2, no_of_balls, no_of_wickets, runs_to_win)\n for result in results:\n print (result)\n","repo_name":"poojasalecha/probability_a_team_can_win","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":3042,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"43618085930","text":"'''\n歡迎訂閱我們的Youtube頻道Coding Kevin BKH,影片中會使用動畫解釋演算法,同時也有Leetcode實戰解題。\nCheck out our Youtube channel, we explain the solutions step by step. Please subscribe!\nThe audio is in Mandarin\n\nCoding Kevin BKH\n\n'''\n\n### solution 1 ###\nclass Solution:\n def shortestToChar(self, S: str, C: str) -> List[int]:\n pos = [i for i in range(len(S)) if S[i] == C]\n pos_len = len(pos)\n dis = []\n curr = 0\n for i in range(len(S)):\n if curr >= pos_len:\n dis.append(abs(pos[curr-1]-i))\n elif curr-1 < 0:\n dis.append(abs(pos[curr]-i))\n else:\n dis.append(min(abs(pos[curr]-i), abs(pos[curr-1]-i)))\n if curr < pos_len and i == pos[curr]:\n curr += 1\n return dis\n\n### solution 2 ###\nclass Solution:\n def shortestToChar(self, S: str, C: str) -> List[int]:\n import math\n\n dis = []\n prev = None\n for i in range(len(S)):\n if S[i] == C:\n prev = i\n if prev != None:\n dis.append(i-prev)\n else:\n dis.append(math.inf)\n prev = None\n for i in range(len(dis)-1, -1, -1):\n if S[i] == C:\n prev = i\n if prev != None:\n dis[i] = min(prev-i, dis[i])\n return dis\n","repo_name":"codingkevinbkh/leetcode","sub_path":"python/problems-0801-0900/0821-shortest-distance-to-a-character.py","file_name":"0821-shortest-distance-to-a-character.py","file_ext":"py","file_size_in_byte":1412,"program_lang":"python","lang":"en","doc_type":"code","stars":10,"dataset":"github-code","pt":"86"}
+{"seq_id":"70352064604","text":"import redis\nimport app.actions.ec2 as action\nimport app.config.default as cfg\nfrom app.notifications.client import post_message_init\n# State\nstate_active = \"1\"\nstate_inactive = \"0\"\n\n\n# Redis\nr = redis.Redis(host=cfg.redis_host, port=cfg.redis_port, db=0)\npub_sub = r.pubsub()\npub_sub.psubscribe('*:battleNetworkStatus')\npost_message_init()\n\n# Dicts\nnetworks_state = {}\ninstance_state = {}\n\n\ndef start_network(network_name):\n print('starting network {}'.format(network_name))\n h_get_all = r.hgetall(name='mappingInstanceNetwork')\n for key, value in h_get_all.items():\n instance_state[key.decode(\"utf-8\")] = value.decode(\"utf-8\")\n action.instance_action_start(instance_id=[tuple(instance_state[network_name].split())])\n\n\ndef stop_network(network_name):\n print('stopping network {}'.format(network_name))\n h_get_all = r.hgetall(name='mappingInstanceNetwork')\n for key, value in h_get_all.items():\n instance_state[key.decode(\"utf-8\")] = value.decode(\"utf-8\")\n action.instance_action_stop(instance_id=[tuple(instance_state[network_name].split())])\n\n\ndef convert_hash_set(networks_state):\n result = new_d = {network.decode('utf-8'): state.decode('utf-8') for network, state in networks_state.items()}\n return result\n\n\ndef add_networks(old_state, new_state):\n for network, state in new_state.items():\n if network in old_state:\n continue\n old_state[network] = state\n if state == state_active:\n start_network(network)\n else:\n stop_network(network)\n\n\ndef update_networks(old_state, new_state):\n for network, state in new_state.items():\n if (not network in old_state) or (state == old_state[network]):\n continue\n old_state[network] = state\n if state == state_active:\n start_network(network)\n else:\n stop_network(network)\n\n\ndef remove_deleted_networks(old_state, new_state):\n for network in list(old_state.keys()):\n if network in new_state:\n continue\n state = old_state.pop(network, None)\n if state == state_active:\n stop_network(network)\n\n\nwhile True:\n for m in pub_sub.listen():\n if cfg.debug:\n print(m)\n updated_networks_state = r.hgetall('battleNetworkStatus')\n updated_networks_state = convert_hash_set(updated_networks_state)\n if cfg.debug:\n print('old_state:')\n print(networks_state)\n print('new_state:')\n print(updated_networks_state)\n add_networks(networks_state, updated_networks_state)\n update_networks(networks_state, updated_networks_state)\n remove_deleted_networks(networks_state, updated_networks_state)\n if cfg.debug:\n print('old_state:')\n print(networks_state)\n print('new_state:')\n print(updated_networks_state)","repo_name":"nikolay-semenov/scripts","sub_path":"instance-start-stop/main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":2894,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"29376292556","text":"# https://programmers.co.kr/learn/courses/30/lessons/12977\n# 프로그래머스 <소수 만들기>\nnums = [1,2,7,6,4]\n\"\"\"def prime_check(number):\n flag = 0\n for i in range(2, number):\n if number % i == 0:\n flag = 1\n break\n if flag == 1:\n return False\n else:\n return True\"\"\"\n# 에라토스테네스의 체 활용하기\ndef prime_list(n):\n sieve = [True] * n\n m = int(n ** 0.5)\n for i in range(2, m+1):\n if sieve[i]:\n for j in range(i+i, n, i):\n sieve[j] = False\n return [i for i in range(2,n) if sieve[i]]\ndef solution(nums):\n answer = 0\n tmp = 0\n prime = prime_list(3000)\n for i in range(len(nums)):\n for j in range(i+1, len(nums)):\n for k in range(j+1, len(nums)):\n if (nums[i] + nums[j] + nums[k]) in prime:\n answer +=1 \n return answer\nprint(solution(nums))\n\n\n\"\"\"for i in range(len(nums)-2):\n tmp += nums[i]\n for j in range(i+1, len(nums)-1):\n tmp += nums[j]\n for k in range(j+1, len(nums)):\n tmp += nums[k]\n if prime_check(tmp):\n tmp -= nums[k]\n answer += 1\n else:\n tmp -= nums[k]\n tmp -= nums[j]\n tmp -= nums[i]\"\"\"","repo_name":"201810756/Programmers_practice","sub_path":"소수 만들기.py","file_name":"소수 만들기.py","file_ext":"py","file_size_in_byte":1342,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"725097121","text":"import rhgamestationFiles\nfrom generators.Generator import Generator\nimport os.path\nimport glob\nimport sys\nimport shutil\nimport amiberryController\nimport sys\nimport amiberryConfig\nimport binascii\nfrom settings.unixSettings import UnixSettings\n\nmountPointWHDL = rhgamestationFiles.amiberryMountPoint + \"/WHDL\"\nwhdFilespath = rhgamestationFiles.BIOS + \"/amiga/whdl\"\n\n\ndef generateWHDL(fullName, romFolder, gameName, amigaHardware, controller):\n print(\"execute WHDLoad : <%s>\" % os.path.join(romFolder, gameName))\n\n # ----- check Bios -----\n if not amiberryConfig.hasKickstarts(amigaHardware, whdl=True):\n raise IOError(\"No %s kickstarts found\" % amigaHardware)\n\n amiberryConfig.initMountpoint(rhgamestationFiles.amiberryMountPoint)\n os.makedirs(mountPointWHDL)\n\n # ------------ copy WHDL structure Files ------------\n print(\"Copy WHDL bootstrap files from %s to %s\" % (whdFilespath, mountPointWHDL))\n # TODO REDO IN PYTHON (not easily done)\n os.popen('cp -R ' + whdFilespath + '/* ' + mountPointWHDL)\n\n # ---- copy BIOS as equivalent into WHDL structure ----\n whdlKickstarts = os.path.join(mountPointWHDL, \"Devs\", \"Kickstarts\")\n shutil.copy2(os.path.join(rhgamestationFiles.BIOS, \"kick13.rom\"), os.path.join(whdlKickstarts, \"kick33180.A500\"))\n shutil.copy2(os.path.join(rhgamestationFiles.BIOS, \"kick13.rom\"), os.path.join(whdlKickstarts, \"kick33192.A500\"))\n shutil.copy2(os.path.join(rhgamestationFiles.BIOS, \"kick13.rom\"), os.path.join(whdlKickstarts, \"kick34005.A500\"))\n # shutil.copy2(os.path.join(rhgamestationFiles.BIOS,\"kick20.rom\"),os.path.join(whdlKickstart,))\n shutil.copy2(os.path.join(rhgamestationFiles.BIOS, \"kick31.rom\"), os.path.join(whdlKickstarts, \"kick40068.A1200\"))\n\n # ------------ copy game folder & uae ------------\n whdlDir = os.path.join(romFolder, gameName)\n whdlZip = whdlDir + \".zip\"\n if os.path.exists(whdlZip):\n print(\"Unzip game folder %s\" % whdlZip)\n os.popen('unzip \"' + whdlZip + '\" -d ' + mountPointWHDL)\n else:\n print(\"Copy game folder and uae %s\" % whdlDir)\n # TODO REDO IN PYTHON (not easily done)\n os.popen('cp -R \"' + whdlDir + '/\"* ' + mountPointWHDL)\n shutil.copy2(whdlDir + \".uae\", os.path.join(rhgamestationFiles.amiberryMountPoint, \"amiberry\", \"conf\", \"uaeconfig.uae\"))\n\n # ------------ Build reference ------------\n referenceFiles = {}\n buildReferenceFile(mountPointWHDL, referenceFiles)\n # for key, val in referenceFiles.items():\n # print key, \"=>\", val\n\n # ------------ copy game saved files from previous sessions ------------\n handleBackupToGame(gameName, amigaHardware)\n\n # ------------ Complete UAE ----------------\n uaeConfig = os.path.join(rhgamestationFiles.amiberryMountPoint, \"amiberry\", \"conf\", \"uaeconfig.uae\")\n\n fUaeConfig = UnixSettings(uaeConfig, separator='', defaultComment=';')\n uaeConfigIsEmpty = os.path.getsize(uaeConfig) == 0\n\n # Needed or too speedy\n amiberryConfig.generateConfType(fUaeConfig)\n # Allow custom controllers conf in file\n if uaeConfigIsEmpty or not ';controls' in open(uaeConfig).read():\n amiberryController.generateControllerConf(fUaeConfig)\n\n amiberryController.generateSpecialKeys(fUaeConfig, controller)\n amiberryConfig.generateGUIConf(fUaeConfig, 'false')\n amiberryConfig.generateKickstartPathWHDL(fUaeConfig, amigaHardware)\n # Allow custom hardware conf in file\n if uaeConfigIsEmpty or not ';hardware' in open(uaeConfig).read():\n amiberryConfig.generateHardwareConf(fUaeConfig, amigaHardware)\n # Add Z3 Mem to load whole game in memory\n amiberryConfig.generateZ3Mem(fUaeConfig)\n if uaeConfigIsEmpty or not ';graphics' in open(uaeConfig).read():\n amiberryConfig.generateGraphicConf(fUaeConfig)\n amiberryConfig.generateSoundConf(fUaeConfig)\n generateHardDriveConf(fUaeConfig)\n\n # ------------ Create StartupSequence with right slave files ------------\n customLaunch = os.path.join(romFolder, gameName + \".whdl\")\n gotAddedParams = os.path.exists(customLaunch) and not os.path.getsize(customLaunch) == 0\n\n fStartupSeq = open(os.path.join(mountPointWHDL, \"S\", \"Startup-Sequence\"), \"a+\")\n try:\n slaveFiles = [filename for filename in os.listdir(mountPointWHDL) if\n filename.endswith(\".Slave\") or filename.endswith(\".slave\")]\n print(slaveFiles)\n if len(slaveFiles) == 0:\n raise IOError(\"This is not a valid WHD game\")\n\n for slaveFile in slaveFiles:\n if gotAddedParams:\n addedParams = open(customLaunch, \"r\").readlines()[0].rstrip('\\n\\r ')\n print(\"Using slave file %s with custom params %s\" % (slaveFile, addedParams))\n fStartupSeq.write(\"WHDload \" + slaveFile + \" Preload \" + addedParams + \"\\n\")\n else:\n print(\"Using slave file %s\" % slaveFile)\n fStartupSeq.write(\"WHDload \" + slaveFile + \" Preload\\n\")\n\n # comment for now\n # fStartupSeq.write(\"exitemu\\n\")\n finally:\n fStartupSeq.close()\n\n return referenceFiles\n\n\ndef generateHardDriveConf(fUaeConfig):\n fUaeConfig.save(\"rtg_nocustom\", \"true\")\n fUaeConfig.save(\"filesystem2\", \"rw,DH0:DH0:\" + mountPointWHDL + \"/,0\")\n fUaeConfig.save(\"uaehf0\", \"dir,rw,DH0:DH0:\" + mountPointWHDL + \"/,0\")\n\n\ndef handleBackupToGame(gameName, amigaHardware):\n saveDir = os.path.join(rhgamestationFiles.amiberrySaves, amigaHardware, gameName)\n if os.path.exists(saveDir):\n print(\"Copy saved files to game folder. From %s to %s\" % (saveDir, mountPointWHDL))\n restoreModifiedFiles(saveDir, mountPointWHDL)\n else:\n print(\"No saved data.\")\n\n\ndef handleBackupFromGame(fullName, romFolder, gameName, amigaHardware, reference):\n # ------------ clean WHDL structure Files before backup of backups ------------\n shutil.rmtree(os.path.join(mountPointWHDL, 'S'))\n shutil.rmtree(os.path.join(mountPointWHDL, 'C'))\n shutil.rmtree(os.path.join(mountPointWHDL, 'Devs'))\n\n # ------------ detect changes in remaining games files for backuping saves ------------\n saveDir = os.path.join(rhgamestationFiles.amiberrySaves, amigaHardware, gameName)\n romDir = os.path.join(romFolder, gameName)\n print(\"Backup changed files from %s to %s\" % (mountPointWHDL, saveDir))\n backupModifiedFiles(mountPointWHDL, saveDir, reference)\n\n\ndef makedirectories(path):\n try:\n os.makedirs(path)\n except OSError as exc: # Python >2.5\n if exc.errno == errno.EEXIST and os.path.isdir(path):\n pass\n else:\n raise\n\n\ndef backupModifiedFiles(source, target, reference):\n print(\"backup dir <%s> to <%s>\" %(source, target))\n for f in os.listdir(source):\n sourcePath = os.path.join(source, f)\n destinationPath = os.path.join(target, f)\n print (\"backup file : %s/%s\" %(source, f))\n if os.path.isdir(sourcePath):\n backupModifiedFiles(sourcePath, destinationPath, reference)\n else:\n if not sourcePath in reference:\n # if this is a new file, just copy\n print(\"new file : %s backup %s -> %s\" % (f, source, target))\n # create target path if necessary\n if not os.path.isdir(target):\n makedirectories(target)\n shutil.copy2(sourcePath, target)\n else:\n # file exists, compate datetime to detect any change\n datetime = int(os.path.getmtime(sourcePath))\n if datetime != reference[sourcePath]:\n # create target path if necessary\n if not os.path.isdir(target):\n makedirectories(target)\n print(\"changed file : %s backup %s -> %s\" % (f, source, target))\n shutil.copy2(sourcePath, target)\n\n\ndef restoreModifiedFiles(source, target):\n print(\"restore dir <%s> to <%s>\" %(source, target))\n for f in os.listdir(source):\n sourcePath = os.path.join(source, f)\n destinationPath = os.path.join(target, f)\n print (\"restore file : %s/%s\" %(source, f))\n if os.path.isdir(sourcePath):\n restoreModifiedFiles(sourcePath, destinationPath)\n else:\n if not os.path.isdir(target):\n makedirectories(target)\n shutil.copy2(sourcePath, target)\n\n\ndef buildReferenceFile(source, referenceFiles):\n for f in os.listdir(source):\n sourcePath = os.path.join(source, f)\n if os.path.isdir(sourcePath):\n buildReferenceFile(sourcePath, referenceFiles)\n else:\n referenceFiles[sourcePath] = int(os.path.getmtime(sourcePath))\n\n\ndef CRC32_from_file(filename):\n buf = open(filename, 'rb').read()\n buf = (binascii.crc32(buf) & 0xFFFFFFFF)\n return \"%08X\" % buf\n","repo_name":"pmoran13800/rhgamestation-configgen","sub_path":"configgen/generators/amiberry/whdlGenerator.py","file_name":"whdlGenerator.py","file_ext":"py","file_size_in_byte":8842,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"13452084416","text":"# -*- coding: utf-8 -*-\n__all__ = ('TemplateTransformationSchema', 'TemplateTransformationSchemaConfig')\n\nimport typing\nfrom typing import Any, ClassVar, Iterator, Mapping, NoReturn, Optional\n\nimport attr\nfrom comby import Comby\n\nfrom .base import Transformation, TransformationSchema\nfrom .config import TransformationSchemaConfig\nfrom .. import exceptions as exc\n\nif typing.TYPE_CHECKING:\n from ..problem import Problem\n from ..snippet import SnippetDatabase\n\n\n@attr.s(auto_attribs=True)\nclass TemplateTransformationSchema(TransformationSchema):\n _problem: 'Problem' = attr.ib(repr=False, eq=False, hash=False)\n _comby: 'Comby' = attr.ib(repr=False, eq=False, hash=False)\n match: str\n rewrite: str\n\n def find_all_in_file(self, filename: str) -> Iterator[Transformation]:\n m = (\"template-based transformations should be supported in \"\n \"Darjeeling within the next few days (Dec. 6, 2020).\")\n raise NotImplementedError(m)\n\n\n@attr.s(frozen=True, auto_attribs=True)\nclass TemplateTransformationSchemaConfig(TransformationSchemaConfig):\n NAME: ClassVar[str] = 'template'\n\n match: str\n rewrite: str\n\n @classmethod\n def from_dict(cls,\n dict_: Mapping[str, Any],\n dir_: Optional[str] = None\n ) -> TransformationSchemaConfig:\n def err(message: str) -> NoReturn:\n raise exc.BadConfigurationException(message)\n\n def read_string_property(name: str) -> str:\n if name not in dict_:\n err(f'missing \"{name}\" property in template transformation config')\n\n value = dict_[name]\n\n if not isinstance(value, str):\n err(f'expected \"{name}\" property in template transformation config'\n f' to be a str but was a {value.__class__.__name__}')\n\n return value\n\n match = read_string_property('match')\n rewrite = read_string_property('rewrite')\n\n return TemplateTransformationSchemaConfig(\n match=match,\n rewrite=rewrite,\n )\n\n def build(self,\n problem: 'Problem',\n snippets: 'SnippetDatabase'\n ) -> 'TransformationSchema':\n return TemplateTransformationSchema(\n problem=problem,\n comby=problem.environment.comby,\n match=self.match,\n rewrite=self.rewrite,\n )\n","repo_name":"squaresLab/Darjeeling","sub_path":"src/darjeeling/transformation/template.py","file_name":"template.py","file_ext":"py","file_size_in_byte":2410,"program_lang":"python","lang":"en","doc_type":"code","stars":27,"dataset":"github-code","pt":"86"}
+{"seq_id":"16110162068","text":"import unittest\nfrom unittest.mock import patch\nfrom employee import Employee\n\n\nclass TestEmployee(unittest.TestCase):\n\n @classmethod\n def setUpClass(cls):\n print('setupClass')\n\n @classmethod\n def tearDownClass(cls):\n print('teardownClass')\n\n def setUp(self):\n print('setUp')\n self.emp_1 = Employee('Leon', 'Lei', 50000)\n self.emp_2 = Employee('John', 'Smith', 60000)\n\n def tearDown(self):\n print('tearDown\\n')\n\n def test_email(self):\n print('test_email')\n self.assertEqual(self.emp_1.email, 'Leon.Lei@gmail.com')\n self.assertEqual(self.emp_2.email, 'John.Smith@gmail.com')\n\n self.emp_1.first = 'Leonidas'\n self.emp_2.first = 'Jane'\n\n self.assertEqual(self.emp_1.email, 'Leonidas.Lei@gmail.com')\n self.assertEqual(self.emp_2.email, 'Jane.Smith@gmail.com')\n\n def test_fullname(self):\n print('test_fullname')\n self.assertEqual(self.emp_1.fullname, 'Leon Lei')\n self.assertEqual(self.emp_2.fullname, 'John Smith')\n\n self.emp_1.first = 'Alpha'\n self.emp_2.first = 'Gamma'\n self.emp_1.last = 'Beta'\n self.emp_2.last = 'Delta'\n\n self.assertEqual(self.emp_1.fullname, 'Alpha Beta')\n self.assertEqual(self.emp_2.fullname, 'Gamma Delta')\n\n def test_apply_raise(self):\n print('test_apply_raise')\n self.emp_1.apply_raise()\n self.emp_2.apply_raise()\n\n self.assertEqual(self.emp_1.pay, 52500)\n self.assertEqual(self.emp_2.pay, 63000)\n\n def test_monthly_schedule(self):\n print('test_monthly_schedule')\n with patch('employee.requests.get') as mocked_get:\n mocked_get.return_value.ok = True\n mocked_get.return_value.text = 'Success'\n\n schedule = self.emp_1.monthly_schedule('May')\n mocked_get.assert_called_with('http://company.com/Lei/May')\n self.assertEqual(schedule, 'Success')\n\n # Mock situation where web site is down\n mocked_get.return_value.ok = False\n\n schedule = self.emp_2.monthly_schedule('June')\n mocked_get.assert_called_with('http://company.com/Smith/June')\n self.assertEqual(schedule, 'Bad Response!')\n\n\nif __name__ == '__main__':\n unittest.main()","repo_name":"leon-lei/learning-materials","sub_path":"unit_testing_tutorials/test_employee.py","file_name":"test_employee.py","file_ext":"py","file_size_in_byte":2292,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"35804381059","text":"# This class simplifies the input from a robot's sensors into two values,\n# representing the nearest neighbour (of a particular object type) that is detected:\n# (1) distance (in the range [0, 1], where 0 = no object detected, and 1 = object detected as close as possible)\n# (2) angle (in the range (-1, 1], where negative represents left and positive represents right)\n\nimport util.globals as globals\nimport util.categorise as categorise\nimport numpy as np\n\nclass RadarSensor:\n\n def __init__(self, agent, type, range, fov=(-180, 180)):\n self.agent = agent\n self.type = type # wall, dog or sheep\n self.range = range # sensory radius in pixels\n self.fov = fov # tuple with max left angle and max right angle in degrees\n\n def detect(self, normalised=True):\n # get all distance detections and sensor angles (in either absolute values (pixels and degrees) or normalised values)\n distances = self.agent.get_all_distances() * globals.config.get(\"gSensorRange\", \"int\")\n distances[distances > self.range] = -1 # undetected (becomes 0 when normalised)\n if normalised:\n distances[distances != -1] = 1 - (distances[distances != -1] / self.range)\n angles = self.agent.get_all_sensor_angles() / np.pi\n min_angle = self.fov[0] / 180\n max_angle = self.fov[1] / 180\n undetected_distance = 0\n closest_distance = 0\n else:\n angles = (self.agent.get_all_sensor_angles() / np.pi) * 180\n min_angle = self.fov[0]\n max_angle = self.fov[1]\n undetected_distance = -1\n closest_distance = 9999999999999\n # filter distance detections based on object type for radar\n if self.type == \"wall\":\n is_walls = self.agent.get_all_walls()\n distances = np.where(is_walls, distances, undetected_distance)\n elif self.type == \"dog\":\n robot_ids = self.agent.get_all_robot_ids()\n distances = list(map(lambda i: distances[i] if categorise.is_dog(robot_ids[i]) else undetected_distance, range(len(robot_ids))))\n elif self.type == \"sheep\":\n robot_ids = self.agent.get_all_robot_ids()\n distances = list(map(lambda i: distances[i] if categorise.is_sheep(robot_ids[i]) else undetected_distance, range(len(robot_ids))))\n distances[distances == -1] = undetected_distance\n # exclude distance detections that are outside FOV range\n distances = [distances[i] for i in range(len(angles)) if min_angle <= angles[i] and angles[i] <= max_angle]\n angles = [angle for angle in angles if min_angle <= angle and angle <= max_angle]\n # get nearest distance detection to return\n closest_index = -1\n for i in range(len(distances)):\n if (normalised and distances[i] > closest_distance) or (not normalised and distances[i] != -1 and distances[i] < closest_distance):\n closest_index = i\n closest_distance = distances[i]\n if closest_index == -1:\n return (undetected_distance, 0)\n else:\n return (distances[closest_index], angles[closest_index])\n","repo_name":"scotthallauer/sheepdogai","sub_path":"controller/radar.py","file_name":"radar.py","file_ext":"py","file_size_in_byte":2954,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"38366267116","text":"#!/usr/bin/python\n\n# (c) 2019, NetApp, Inc\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\n\nANSIBLE_METADATA = {'metadata_version': '1.1',\n 'status': ['preview'],\n 'supported_by': 'community'}\n\nDOCUMENTATION = '''\nauthor: NetApp Ansible Team (@carchi8py) \ndescription:\n - Create/Delete/Modify Name Service Switch\nextends_documentation_fragment:\n - netapp.ontap.netapp.na_ontap\nmodule: na_ontap_name_service_switch\noptions:\n state:\n choices: ['present', 'absent']\n description:\n - Whether the specified ns-switch should exist or not.\n default: present\n type: str\n vserver:\n description:\n - Name of the vserver to use.\n required: true\n type: str\n database_type:\n description:\n - Name services switch database.\n choices: ['hosts','group', 'passwd', 'netgroup', 'namemap']\n required: true\n type: str\n sources:\n description:\n - Type of sources.\n - Possible values include files,dns,ldap,nis.\n type: list\n elements: str\n\nshort_description: \"NetApp ONTAP Manage name service switch\"\n'''\n\nEXAMPLES = \"\"\"\n - name: create name service database\n na_ontap_name_service_switch:\n state: present\n database_type: namemap\n sources: files,ldap\n vserver: \"{{ Vserver name }}\"\n username: \"{{ netapp_username }}\"\n password: \"{{ netapp_password }}\"\n hostname: \"{{ netapp_hostname }}\"\n\n - name: modify name service database sources\n na_ontap_name_service_switch:\n state: present\n database_type: namemap\n sources: files\n vserver: \"{{ Vserver name }}\"\n username: \"{{ netapp_username }}\"\n password: \"{{ netapp_password }}\"\n hostname: \"{{ netapp_hostname }}\"\n\"\"\"\n\nRETURN = \"\"\"\n\"\"\"\n\nimport traceback\nfrom ansible.module_utils.basic import AnsibleModule\nfrom ansible.module_utils._text import to_native\nimport ansible_collections.netapp.ontap.plugins.module_utils.netapp as netapp_utils\nfrom ansible_collections.netapp.ontap.plugins.module_utils.netapp_module import NetAppModule\n\nHAS_NETAPP_LIB = netapp_utils.has_netapp_lib()\n\n\nclass NetAppONTAPNsswitch(object):\n \"\"\"\n Class with NVMe service methods\n \"\"\"\n\n def __init__(self):\n\n self.argument_spec = netapp_utils.na_ontap_host_argument_spec()\n self.argument_spec.update(dict(\n state=dict(required=False, type='str', choices=['present', 'absent'], default='present'),\n vserver=dict(required=True, type='str'),\n database_type=dict(required=True, type='str', choices=['hosts', 'group', 'passwd', 'netgroup', 'namemap']),\n sources=dict(required=False, type='list', elements='str')\n ))\n\n self.module = AnsibleModule(\n argument_spec=self.argument_spec,\n supports_check_mode=True\n )\n\n self.na_helper = NetAppModule()\n self.parameters = self.na_helper.set_parameters(self.module.params)\n\n if HAS_NETAPP_LIB is False:\n self.module.fail_json(msg=\"the python NetApp-Lib module is required\")\n else:\n self.server = netapp_utils.setup_na_ontap_zapi(module=self.module, vserver=self.parameters['vserver'])\n\n def get_name_service_switch(self):\n \"\"\"\n get current name service switch config\n :return: dict of current name service switch\n \"\"\"\n nss_iter = netapp_utils.zapi.NaElement('nameservice-nsswitch-get-iter')\n nss_info = netapp_utils.zapi.NaElement('namservice-nsswitch-config-info')\n db_type = netapp_utils.zapi.NaElement('nameservice-database')\n db_type.set_content(self.parameters['database_type'])\n query = netapp_utils.zapi.NaElement('query')\n nss_info.add_child_elem(db_type)\n query.add_child_elem(nss_info)\n nss_iter.add_child_elem(query)\n result = self.server.invoke_successfully(nss_iter, True)\n return_value = None\n if result.get_child_by_name('num-records') and int(result.get_child_content('num-records')) == 1:\n nss_sources = result.get_child_by_name('attributes-list').get_child_by_name(\n 'namservice-nsswitch-config-info').get_child_by_name('nameservice-sources')\n sources = [sources.get_content() for sources in nss_sources.get_children()]\n return_value = {\n 'sources': sources\n }\n return return_value\n\n def create_name_service_switch(self):\n \"\"\"\n create name service switch config\n :return: None\n \"\"\"\n nss_create = netapp_utils.zapi.NaElement('nameservice-nsswitch-create')\n nss_create.add_new_child('nameservice-database', self.parameters['database_type'])\n nss_sources = netapp_utils.zapi.NaElement('nameservice-sources')\n nss_create.add_child_elem(nss_sources)\n for source in self.parameters['sources']:\n nss_sources.add_new_child('nss-source-type', source.strip())\n try:\n self.server.invoke_successfully(nss_create,\n enable_tunneling=True)\n except netapp_utils.zapi.NaApiError as error:\n self.module.fail_json(msg='Error on creating name service switch config on vserver %s: %s'\n % (self.parameters['vserver'], to_native(error)),\n exception=traceback.format_exc())\n\n def delete_name_service_switch(self):\n \"\"\"\n delete name service switch\n :return: None\n \"\"\"\n nss_delete = netapp_utils.zapi.NaElement.create_node_with_children(\n 'nameservice-nsswitch-destroy', **{'nameservice-database': self.parameters['database_type']})\n try:\n self.server.invoke_successfully(nss_delete,\n enable_tunneling=True)\n except netapp_utils.zapi.NaApiError as error:\n self.module.fail_json(msg='Error on deleting name service switch config on vserver %s: %s'\n % (self.parameters['vserver'], to_native(error)),\n exception=traceback.format_exc())\n\n def modify_name_service_switch(self, modify):\n \"\"\"\n modify name service switch\n :param modify: dict of modify attributes\n :return: None\n \"\"\"\n nss_modify = netapp_utils.zapi.NaElement('nameservice-nsswitch-modify')\n nss_modify.add_new_child('nameservice-database', self.parameters['database_type'])\n nss_sources = netapp_utils.zapi.NaElement('nameservice-sources')\n nss_modify.add_child_elem(nss_sources)\n if 'sources' in modify:\n for source in self.parameters['sources']:\n nss_sources.add_new_child('nss-source-type', source.strip())\n try:\n self.server.invoke_successfully(nss_modify, enable_tunneling=True)\n except netapp_utils.zapi.NaApiError as error:\n self.module.fail_json(msg='Error on modifying name service switch config on vserver %s: %s'\n % (self.parameters['vserver'], to_native(error)),\n exception=traceback.format_exc())\n\n def apply(self):\n netapp_utils.ems_log_event(\"na_ontap_name_service_switch\", self.server)\n current = self.get_name_service_switch()\n cd_action, modify = None, None\n cd_action = self.na_helper.get_cd_action(current, self.parameters)\n modify = self.na_helper.get_modified_attributes(current, self.parameters)\n\n if self.na_helper.changed:\n if self.module.check_mode:\n pass\n else:\n if cd_action == 'create':\n self.create_name_service_switch()\n elif cd_action == 'delete':\n self.delete_name_service_switch()\n elif modify:\n self.modify_name_service_switch(modify)\n self.module.exit_json(changed=self.na_helper.changed)\n\n\ndef main():\n '''Applyoperations from playbook'''\n nss = NetAppONTAPNsswitch()\n nss.apply()\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"ansible-collections/netapp","sub_path":"ansible_collections/netapp/ontap/plugins/modules/na_ontap_name_service_switch.py","file_name":"na_ontap_name_service_switch.py","file_ext":"py","file_size_in_byte":8301,"program_lang":"python","lang":"en","doc_type":"code","stars":46,"dataset":"github-code","pt":"86"}
+{"seq_id":"11301200711","text":"import os, sys, argparse, logging\nimport json\nimport zlib\nimport base64\nimport struct\nimport urllib.request\nimport urllib.error\n\n\ntry: import NexonAPI\nexcept ImportError:\n\tNexonAPI = None\nelse:\n\timport getpass\n#endtry\n\n\nclass PatchServerError(Exception): pass\n\nclass PatchServer:\n\t# Ideally one would log in and retrieve this from the Nexon API, but I'm not going to publish that!\n\tGAME_ID = \"10200\"\n\tBASE_URL = \"https://download2.nexon.net/Game/nxl/games/\" + GAME_ID + \"/\"\n\n\tHASH_URL = \"{gameID}.{version}R.manifest.hash\"\n\tMANIFEST_URL = \"{hash}\"\n\tPART_URL = \"{gameID}/{part:.2}/{part}\"\n\n\tdef __init__(self):\n\t\t# But if you have a library for it already...\n\t\tif NexonAPI:\n\t\t\tself.BASE_URL = NexonAPI.getBaseURL()\n\t\t#endif\n\n\t\tself.local_version = None\n\t\tself.target_version = None\n\n\t\tself.manifest = None\n\t\tself.manifestVersion = None\n\t#enddef\n\n\tdef _getURL(self, url, fileName=None, serverName=None):\n\t\ttry:\n\t\t\treturn urllib.request.urlopen(url)\n\t\texcept urllib.error.HTTPError as err:\n\t\t\tif fileName is None: fileName = url.split(\"/\")[-1]\n\t\t\traise PatchServerError(\"Error retrieving {}: {}\".format(fileName, str(err)))\n\t\texcept urllib.error.URLError as err:\n\t\t\tif serverName is None: serverName = url.split(\"/\", maxsplit=3)[2]\n\t\t\traise PatchServerError(\"Could not connect {}: {}\".format(serverName, str(err)))\n\t\t#endtry\n\t#enddfe\n\n\tdef getWebLaunchStatus(self):\n\t\t\"\"\" Returns true if the web launcher thinks the game is up. \"\"\"\n\t\tconn = self._getURL(\"http://www.nexon.net/json/game_status.js\", \"status file\")\n\n\t\t# Have to de-JSONp this.\n\t\tresponse = json.loads(conn.read()[len(\"nexon.games.playGame(\") : -2].decode(\"utf8\"))\n\n\t\t# This is Mabi's ID here\n\t\tstatus = response[\"SVG012\"]\n\t\tlogging.info(\"Web launch status is: {}.\".format(\"UP\" if status else \"DOWN\"))\n\t\treturn status\n\t#enddef\n\n\tdef legacyGetLatestVersion(self):\n\t\t\"\"\" Get the latest version as reported by the legacy launcher info. \"\"\"\n\t\tconn = self._getURL(\"http://mabipatchinfo.nexon.net/patch/patch.txt\", \"patch info file\")\n\n\t\t# Format is a list of var=val, one per line.\n\t\ttxt = conn.read().decode(\"utf8\").split(\"\\n\")\n\t\tfor line in txt:\n\t\t\tvar, val = line.split(\"=\", maxsplit=1)\n\t\t\tif var.strip() == \"main_version\": return int(val.strip())\n\t\t#endfor\n\n\t\traise PatchServerError(\"Version not found in patch info.\")\n\t#enddef\n\n\tdef getLatestVersion(self):\n\t\t\"\"\" Get the latest version as reported by some server. \"\"\"\n\t\tif NexonAPI is None:\n\t\t\tver = self.legacyGetLatestVersion()\n\t\telse:\n\t\t\tver = NexonAPI.getLatestVersion()\n\t\t#endif\n\n\t\tlogging.info(\"Read latest version as {}.\".format(ver))\n\t\tself.target_version = ver\n\t\treturn ver\n\t#enddef\n\n\tdef getLocalVersion(self, path):\n\t\t\"\"\" Get the verion of the Mabinogi installed at the given path. \"\"\"\n\t\ttry:\n\t\t\twith open(os.path.join(path, \"version.dat\"), \"rb\") as f:\n\t\t\t\tver = struct.unpack(\"= len(arr)):\n return 0\n\n # add it to target\n return (findTotalWays(arr, i + 1, k) +\n findTotalWays(arr, i + 1, k - arr[i]) +\n findTotalWays(arr, i + 1, k + arr[i]))\n\n\n# In terms of time complexity, the function is in constant time O(1) but linear space because the\n# function is recursive in nature and needs more space in the call stack.\n# I had help from geek of geeks\n","repo_name":"Jeon316upzx/Others","sub_path":"nelititest/question4.py","file_name":"question4.py","file_ext":"py","file_size_in_byte":790,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"8497308738","text":"from visualizers import surface_plot\nimport data.sample\nimport graph\nimport train\n\nimport tensorflow as tf\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport pdb\nimport os\n\ndef get_prediction_surface(\n network,\n sess,\n domain,\n steps):\n \n meshgrid, grid_data = data.sample.sample_grid_data(\n domain,\n steps,\n reshape=True)\n\n inputs = {'data' : grid_data, 'is_training' : False}\n feed_dict = network.create_feed_dict(inputs)\n prob = sess.run(network.inference.get_prob(),feed_dict=feed_dict)\n\n fig = surface_plot.pred_surf_plot(\n meshgrid,\n prob[:,0],\n domain,\n rstride=5,\n cstride=5,\n pred_format='array')\n\n return fig\n\n\ndef get_gt_surface(\n func,\n domain,\n steps):\n\n meshgrid, grid_data = data.sample.sample_grid_data(\n domain,\n steps,\n reshape=True)\n\n \n prob_1 = 0.5*(func(grid_data)+1.)\n\n fig = surface_plot.pred_surf_plot(\n meshgrid,\n prob_1,\n domain,\n rstride=5,\n cstride=5,\n pred_format='array')\n\n return fig\n\n \ndef run(c):\n train_data = data.sample.sample_training_data(\n c.num_train_samples,\n c.domain,\n seed=0)\n\n network = graph.Graph(\n c.input_dims,\n c.hidden_units,\n c.residual,\n c.activation,\n c.keep_prob,\n c.use_batchnorm,\n c.learning_rate)\n\n sess = tf.Session(graph=network.tf_graph)\n\n labels = c.decision_func(train_data)\n\n train.train_model(\n network,\n sess,\n train_data,\n labels,\n c.batch_size,\n c.num_epochs,\n seed=1)\n\n experiments_dir = c.get_experiments_dir()\n\n pred_filepath = os.path.join(\n experiments_dir,\n c.pred_filename)\n\n gt_filepath = os.path.join(\n experiments_dir,\n c.gt_filename)\n\n fig = get_prediction_surface(\n network,\n sess,\n c.domain,\n c.steps)\n \n plt.savefig(\n pred_filepath,\n dpi=300,\n bbox_inches='tight',\n pad_inches = 0.3)\n\n fig = get_gt_surface(\n c.decision_func,\n c.domain,\n c.steps)\n\n plt.savefig(\n gt_filepath,\n dpi=300,\n bbox_inches='tight',\n pad_inches = 0.3)\n \n\n sess.close()\n","repo_name":"BigRedT/nn_pred_surf","sub_path":"experiments/run_experiment.py","file_name":"run_experiment.py","file_ext":"py","file_size_in_byte":2344,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"40636011168","text":"\"\"\"Holds the Historical Feature Store writer class.\"\"\"\n\nimport os\nfrom typing import Any\n\nfrom pyspark.sql.dataframe import DataFrame\nfrom pyspark.sql.functions import dayofmonth, month, year\n\nfrom butterfree.clients import SparkClient\nfrom butterfree.configs import environment\nfrom butterfree.configs.db import AbstractWriteConfig, MetastoreConfig\nfrom butterfree.constants import columns\nfrom butterfree.constants.spark_constants import DEFAULT_NUM_PARTITIONS\nfrom butterfree.dataframe_service import repartition_df\nfrom butterfree.hooks import Hook\nfrom butterfree.hooks.schema_compatibility import SparkTableSchemaCompatibilityHook\nfrom butterfree.load.writers.writer import Writer\nfrom butterfree.transform import FeatureSet\n\n\nclass HistoricalFeatureStoreWriter(Writer):\n \"\"\"Enable writing feature sets into the Historical Feature Store.\n\n Attributes:\n db_config: Datalake configuration for Spark, by default on AWS S3.\n For more information check module 'butterfree.db.configs'.\n database: database name to use in Spark metastore.\n By default FEATURE_STORE_HISTORICAL_DATABASE environment variable.\n num_partitions: value to use when applying repartition on the df before save.\n validation_threshold: lower and upper tolerance to using in count validation.\n The default value is defined in DEFAULT_VALIDATION_THRESHOLD property.\n For example: with a validation_threshold = 0.01 and a given calculated\n count on the dataframe equal to 100000 records, if the feature store\n return a count equal to 995000 an error will not be thrown.\n Use validation_threshold = 0 to not use tolerance in the validation.\n debug_mode: \"dry run\" mode, write the result to a temporary view.\n\n Example:\n Simple example regarding HistoricalFeatureStoreWriter class instantiation.\n We can instantiate this class without db configurations, so the class get the\n S3Config() where it provides default configurations about AWS S3 service.\n\n >>> spark_client = SparkClient()\n >>> writer = HistoricalFeatureStoreWriter()\n >>> writer.write(feature_set=feature_set,\n ... dataframe=dataframe,\n ... spark_client=spark_client)\n\n However, we can define the db configurations,\n like write mode, file format and S3 bucket,\n and provide them to HistoricalFeatureStoreWriter.\n\n >>> spark_client = SparkClient()\n >>> config = MetastoreConfig(path=\"my_s3_bucket_name\",\n ... mode=\"overwrite\",\n ... format_=\"parquet\")\n >>> writer = HistoricalFeatureStoreWriter(db_config=config)\n >>> writer.write(feature_set=feature_set,\n ... dataframe=dataframe,\n ... spark_client=spark_client)\n\n For what settings you can use on S3Config and default settings,\n to read S3Config class.\n\n We can write with interval mode, where HistoricalFeatureStoreWrite\n will need to use Dynamic Partition Inserts,\n the behaviour of OVERWRITE keyword is controlled by\n spark.sql.sources.partitionOverwriteMode configuration property.\n The dynamic overwrite mode is enabled Spark will only delete the\n partitions for which it has data to be written to.\n All the other partitions remain intact.\n\n >>> spark_client = SparkClient()\n >>> writer = HistoricalFeatureStoreWriter(interval_mode=True)\n >>> writer.write(feature_set=feature_set,\n ... dataframe=dataframe,\n ... spark_client=spark_client)\n\n We can instantiate HistoricalFeatureStoreWriter class to validate the df\n to be written.\n\n >>> spark_client = SparkClient()\n >>> writer = HistoricalFeatureStoreWriter()\n >>> writer.validate(feature_set=feature_set,\n ... dataframe=dataframe,\n ... spark_client=spark_client)\n\n Both methods (write and validate) will need the Spark Client, Feature Set\n and DataFrame, to write or to validate, according to the Writer's arguments.\n\n P.S.: When writing, the HistoricalFeatureStoreWrite partitions the data to\n improve queries performance. The data is stored in partition folders in AWS S3\n based on time (per year, month and day).\n\n \"\"\"\n\n PARTITION_BY = [\n columns.PARTITION_YEAR,\n columns.PARTITION_MONTH,\n columns.PARTITION_DAY,\n ]\n\n DEFAULT_VALIDATION_THRESHOLD = 0.01\n\n __name__ = \"Historical Feature Store Writer\"\n\n def __init__(\n self,\n db_config: AbstractWriteConfig = None,\n database: str = None,\n num_partitions: int = None,\n validation_threshold: float = DEFAULT_VALIDATION_THRESHOLD,\n debug_mode: bool = False,\n interval_mode: bool = False,\n check_schema_hook: Hook = None,\n row_count_validation: bool = True,\n ):\n super(HistoricalFeatureStoreWriter, self).__init__(\n db_config or MetastoreConfig(),\n debug_mode,\n interval_mode,\n False,\n row_count_validation,\n )\n self.database = database or environment.get_variable(\n \"FEATURE_STORE_HISTORICAL_DATABASE\"\n )\n self.num_partitions = num_partitions or DEFAULT_NUM_PARTITIONS\n self.validation_threshold = validation_threshold\n self.check_schema_hook = check_schema_hook\n\n def write(\n self, feature_set: FeatureSet, dataframe: DataFrame, spark_client: SparkClient,\n ) -> None:\n \"\"\"Loads the data from a feature set into the Historical Feature Store.\n\n Args:\n feature_set: object processed with feature_set informations.\n dataframe: spark dataframe containing data from a feature set.\n spark_client: client for spark connections with external services.\n\n If the debug_mode is set to True, a temporary table with a name in the format:\n historical_feature_store__{feature_set.name} will be created instead of writing\n to the real historical feature store.\n\n \"\"\"\n dataframe = self._create_partitions(dataframe)\n\n dataframe = self._apply_transformations(dataframe)\n\n if self.interval_mode:\n partition_overwrite_mode = spark_client.conn.conf.get(\n \"spark.sql.sources.partitionOverwriteMode\"\n ).lower()\n\n if partition_overwrite_mode != \"dynamic\":\n raise RuntimeError(\n \"m=load_incremental_table, \"\n \"spark.sql.sources.partitionOverwriteMode={}, \"\n \"msg=partitionOverwriteMode have to \"\n \"be configured to 'dynamic'\".format(partition_overwrite_mode)\n )\n\n if self.debug_mode:\n spark_client.create_temporary_view(\n dataframe=dataframe,\n name=f\"historical_feature_store__{feature_set.name}\",\n )\n return\n\n s3_key = os.path.join(\"historical\", feature_set.entity, feature_set.name)\n\n spark_client.write_table(\n dataframe=dataframe,\n database=self.database,\n table_name=feature_set.name,\n partition_by=self.PARTITION_BY,\n **self.db_config.get_options(s3_key),\n )\n\n def _assert_validation_count(\n self, table_name: str, written_count: int, dataframe_count: int\n ) -> None:\n lower_bound = (1 - self.validation_threshold) * written_count\n upper_bound = (1 + self.validation_threshold) * written_count\n validation = lower_bound <= dataframe_count <= upper_bound\n assert validation, (\n \"Data written to the Historical Feature Store and read back \"\n f\"from {table_name} has a different count than the feature set dataframe. \"\n f\"\\nNumber of rows in {table_name}: {written_count}.\"\n f\"\\nNumber of rows in the dataframe: {dataframe_count}.\"\n )\n\n def validate(\n self, feature_set: FeatureSet, dataframe: DataFrame, spark_client: SparkClient\n ) -> None:\n \"\"\"Calculate dataframe rows to validate data into Feature Store.\n\n Args:\n feature_set: object processed with feature_set informations.\n dataframe: spark dataframe containing data from a feature set.\n spark_client: client for spark connections with external services.\n\n Raises:\n AssertionError: if count of written data doesn't match count in current\n feature set dataframe.\n \"\"\"\n table_name = (\n os.path.join(\"historical\", feature_set.entity, feature_set.name)\n if self.interval_mode and not self.debug_mode\n else (\n f\"{self.database}.{feature_set.name}\"\n if not self.debug_mode\n else f\"historical_feature_store__{feature_set.name}\"\n )\n )\n\n written_count = (\n spark_client.read(\n self.db_config.format_,\n path=self.db_config.get_path_with_partitions(\n table_name, self._create_partitions(dataframe)\n ),\n ).count()\n if self.interval_mode and not self.debug_mode\n else spark_client.read_table(table_name).count()\n )\n\n dataframe_count = dataframe.count()\n\n self._assert_validation_count(table_name, written_count, dataframe_count)\n\n def _create_partitions(self, dataframe: DataFrame) -> DataFrame:\n # create year partition column\n dataframe = dataframe.withColumn(\n columns.PARTITION_YEAR, year(dataframe[columns.TIMESTAMP_COLUMN])\n )\n # create month partition column\n dataframe = dataframe.withColumn(\n columns.PARTITION_MONTH, month(dataframe[columns.TIMESTAMP_COLUMN])\n )\n # create day partition column\n dataframe = dataframe.withColumn(\n columns.PARTITION_DAY, dayofmonth(dataframe[columns.TIMESTAMP_COLUMN])\n )\n return repartition_df(dataframe, self.PARTITION_BY, self.num_partitions)\n\n def check_schema(\n self, client: Any, dataframe: DataFrame, table_name: str, database: str = None\n ) -> DataFrame:\n \"\"\"Instantiate the schema check hook to check schema between dataframe and database.\n\n Args:\n client: client for Spark or Cassandra connections with external services.\n dataframe: Spark dataframe containing data from a feature set.\n table_name: table name where the dataframe will be saved.\n database: database name where the dataframe will be saved.\n \"\"\"\n if not self.check_schema_hook:\n self.check_schema_hook = SparkTableSchemaCompatibilityHook(\n client, table_name, database\n )\n\n return self.check_schema_hook.run(dataframe)\n","repo_name":"quintoandar/butterfree","sub_path":"butterfree/load/writers/historical_feature_store_writer.py","file_name":"historical_feature_store_writer.py","file_ext":"py","file_size_in_byte":10926,"program_lang":"python","lang":"en","doc_type":"code","stars":269,"dataset":"github-code","pt":"86"}
+{"seq_id":"5291834857","text":"\"\"\"fulfills Ynon Perek's nontrivial python, Decorator & Generators, par1\"\"\"\nclass after5(object):\n \"\"\"\"\"\"\n def __init__(self, func):\n \"\"\"setc count and stores func as attribute\"\"\"\n self.count = 0\n self.func = func\n\n def __call__(self):\n \"\"\"checks count, calls func if count < 4, count++\"\"\"\n count = self.count\n\n if(count > 4):\n self.func()\n\n self.count = count + 1\n\n\n@after5\ndef doit():\n \"\"\"prints 'Yo!'\"\"\"\n print(\"Yo!\")\n\n\ndef main():\n # ignore the first 5 calls\n doit()\n doit()\n doit()\n doit()\n doit()\n\n # so only print yo once\n doit()\n\nif __name__ == '__main__':\n main()\n","repo_name":"manvillej/NonTrivialPython","sub_path":"decorator1.py","file_name":"decorator1.py","file_ext":"py","file_size_in_byte":675,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"763464587","text":"# coding=utf-8\nfrom django.contrib.auth.decorators import login_required\nfrom django.shortcuts import render_to_response, render\nfrom api.models import TaskList\nfrom instance.models import Instance\nfrom server.models import Server, SBasicStat\nfrom server.models import IosTemplate\nfrom server.models import VmFile\nfrom django.db.models import Q\nimport json\n\n\n# Create your views here.\n@login_required\ndef server_list(request):\n errors = list([])\n if request.method == 'GET':\n order_by = request.GET.get('order_by', 'sn')\n sort = request.GET.get('sort', 'up')\n word = request.GET.get('word', '')\n\n if sort == 'down':\n new_sort = 'up'\n order_str = '-' + order_by\n else:\n new_sort = 'down'\n order_str = order_by\n\n try:\n word = json.loads(word)\n except:\n word = word\n\n all_servers = Server.objects.all().count()\n online_servers = Server.objects.filter(status=1).count()\n\n if '' == word:\n hosts_info = Server.objects.filter().order_by(order_str)\n elif isinstance(word, int):\n hosts_info = Server.objects.filter(status=word).order_by(order_str)\n else:\n hosts_info = Server.objects.filter(\n Q(sn=word) | Q(name__contains=word) | Q(alias__contains=word)\n ).order_by(order_str)\n\n return render(request, 'server/server_list.html',\n {\n 'sort': new_sort,\n 'word': word,\n 'all_servers': all_servers,\n 'online_servers': online_servers,\n 'hosts_info': hosts_info\n })\n else:\n errors.append('你咋发的不是GET, 搞笑啊!!!')\n return render(request, '444.html', {'errors': errors})\n\n\n@login_required\ndef server_info(request, sn, tab):\n data = list([])\n iostemp_list = list([])\n vm_files_list = list([])\n\n errors = list([])\n if request.method == 'GET':\n if Server.objects.filter(sn=sn).count():\n name = Server.objects.get(sn=sn).name\n if tab != 'packages':\n iostemp_list = IosTemplate.objects.filter(server__sn=sn)\n else:\n vm_files_list = VmFile.objects.filter(server__sn=sn)\n\n if tab == 'logs':\n data.append('logs')\n elif tab == 'instances':\n data = Instance.objects.filter(server__sn=sn)\n elif tab == 'tasks_all':\n data.append(TaskList.objects.order_by('-create_time').filter(server__sn=sn))\n data.append(['创建未发布', '发布未领取', '领取未完成', '完成且成功', '完成却失败', '取消'])\n elif tab == 'tasks':\n # data[0] 创建未发布任务清单\n data.append(TaskList.objects.order_by('-create_time').filter(server__sn=sn, status=0))\n\n # data[1] 发布未领取任务清单\n data.append(TaskList.objects.order_by('-create_time').filter(server__sn=sn, status=1))\n\n # data[2] 领取处理中任务清单\n data.append(TaskList.objects.order_by('-create_time').filter(server__sn=sn, status=2))\n\n # data[3] 取消任务清单\n data.append(TaskList.objects.order_by('-create_time').filter(server__sn=sn, status=5))\n\n # data[4] 领取已完成任务清单\n data.append(TaskList.objects.order_by('-create_time').filter(Q(server__sn=sn), Q(status=3) | Q(status=4)))\n\n elif tab == 'setting':\n data.append('setting')\n elif tab == 'packages':\n data = IosTemplate.objects.filter(server__sn=sn)\n else:\n tab = 'overview'\n # ------ 顶部状态\n # 服务器基本信息 data[0]\n data.append(Server.objects.get(sn=sn))\n\n # 服务器最近的状态信息 data[1]\n basic_stat = dict({})\n try:\n basic_stat['cpu'] = SBasicStat.objects.filter(server__sn=sn, stat_type='cpu_used').last().value\n except:\n basic_stat['cpu'] = 0\n try:\n basic_stat['disk'] = SBasicStat.objects.filter(server__sn=sn, stat_type='disk_used').last().value\n except:\n basic_stat['disk'] = 0\n try:\n basic_stat['mem'] = SBasicStat.objects.filter(server__sn=sn, stat_type='mem_used').last().value\n except:\n basic_stat['mem'] = 0\n\n # 在线虚拟机数量\n basic_stat['runserver'] = Instance.objects.filter(status=1, server__sn=sn).count()\n data.append(basic_stat)\n\n # ------ 业务详情\n # VM_files详情 data[2]\n vm_files = VmFile.objects.filter(server__sn=sn)\n data.append(vm_files)\n\n # 任务详情 data[3]\n task_info = dict({})\n task_info[\"task0\"] = TaskList.objects.filter(server__sn=sn, status=0).count()\n task_info[\"task1\"] = TaskList.objects.filter(server__sn=sn, status=1).count()\n task_info[\"task2\"] = TaskList.objects.filter(server__sn=sn, status=2).count()\n task_info[\"task3\"] = TaskList.objects.filter(server__sn=sn, status=3).count()\n task_info[\"task4\"] = TaskList.objects.filter(server__sn=sn, status=4).count()\n task_info[\"task5\"] = TaskList.objects.filter(server__sn=sn, status=5).count()\n data.append(task_info)\n\n return render(request, 'server/server_info.html',\n {'name': name,\n 'sn': sn,\n 'tab': tab,\n 'data': data,\n 'iostemp_list': iostemp_list,\n 'vm_files_list': vm_files_list\n })\n else:\n return render_to_response('444.html', {'errors': ['SN不存在']})\n else:\n errors.append('你咋发的不是GET, 搞笑啊!!!')\n return render(request, '444.html', {'errors': errors})","repo_name":"crazw/webkvmmgr","sub_path":"web/server/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":6327,"program_lang":"python","lang":"en","doc_type":"code","stars":24,"dataset":"github-code","pt":"86"}
+{"seq_id":"73429963484","text":"#!/usr/bin/python3\n\nimport argparse\nimport codecs\nimport subprocess\nimport sys\nfrom collections import defaultdict\n\nimport argparse\n\nparser = argparse.ArgumentParser(description='Translate phrases (arg1) if they are in phrase table (stdin)')\nparser.add_argument('phrasePath', type=str, help='path to file including phrases')\nparser.add_argument('--progress', '-p', action='store_true',\n help = 'show progress bar (pv command should be installed')\nargs = parser.parse_args()\n#if len(sys.argv) != 2:\n# print(\"Usage: %s ngrams < phrasetable\" % sys.argv[0], file=sys.stderr)\n# sys.exit(1)\n\nCMD='cat'\nif args.progress and subprocess.call('which pv > /dev/null', shell=True) == 0:\n CMD='pv -Wl'\n\nsrctrg_list = []\nsrc_map = {}\n\n#sys.stderr.write(\"Loading: %s\\n\" % sys.argv[1])\nsys.stderr.write(\"Loading: %s\\n\" % args.phrasePath)\n#p = subprocess.Popen(\"%s %s\" % (CMD, sys.argv[1]), shell=True, stdout=subprocess.PIPE)\np = subprocess.Popen(\"%s %s\" % (CMD, args.phrasePath), shell=True, stdout=subprocess.PIPE)\n#with open(sys.argv[1]) as ngram_file:\nif p:\n ngram_file = codecs.getreader('utf-8')(p.stdout)\n for line in ngram_file:\n tup = line.strip().split(\"\\t\")\n if len(tup) != 2: continue\n k, v = tup\n src_map[k] = len(srctrg_list)\n srctrg_list.append( (k, \"\", -1.0e99, float(v)) )\n ngram_file.close()\n\nsys.stderr.write(\"Loading StdIn\\n\")\np = subprocess.Popen(\"%s\" % (CMD), shell=True, stdout=subprocess.PIPE)\nif p:\n reader = codecs.getreader('utf-8')(p.stdout)\n# for line in sys.stdin:\n for line in reader:\n src, trg, score = line.strip().split(\"\\t\")\n score = float(score)\n if src in src_map:\n src_id = src_map[src]\n if srctrg_list[src_id][2] < score:\n srctrg_list[src_id] = (src, trg, score, srctrg_list[src_id][3])\n reader.close()\n\np = subprocess.Popen(\"%s\" % (CMD), shell=True, stdin=subprocess.PIPE)\nif p:\n writer = codecs.getwriter('utf-8')(p.stdin)\n for src, trg, score, select in srctrg_list:\n writer.write(\"%s\\t%s\\t%.4g\\t%.4g\\n\" % (src, trg, score, select))\n# print(\"%s\\t%s\\t%.4g\\t%.4g\" % (src, trg, score, select))\n\n","repo_name":"akivajp/naacl2016","sub_path":"script/generate-translations.py","file_name":"generate-translations.py","file_ext":"py","file_size_in_byte":2181,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"23082539962","text":"import turtle\nfrom turtle import*\nfrom random import randint\n#Configurações de entradas.\naldeia = turtle.Screen() #Criação da tela para o jogo.\naldeia.tracer(0)\naldeia.title('Naruto Shippuden') #Título da janela.\naldeia.setup(height=1280, width=860, starty= 10) #Definição da janela.\naldeia.addshape('Naruto1.gif') #Adicionando os formatos a serem utilizados.\naldeia.addshape('ramen.gif')\naldeia.addshape('fundo.gif')\naldeia.addshape('shuriken.gif')\naldeia.addshape('kunai.gif')\naldeia.bgcolor('black')\n\n#Configurações de objetos.\nestrada = turtle.Turtle() #Criação do objeto que terá o formato da estrada.\nestrada.penup()\nestrada.shape('fundo.gif') #Definição do formato da estrada.\nestrada2 = turtle.Turtle()\nestrada2.penup()\nestrada2.shape('fundo.gif')\nestrada2.rt(90)\nestrada2.hideturtle()\nestrada2.goto(0, 800)\n\n#Criação do jogador.\nnaruto = turtle.Turtle() #Jogador adicionado.\nnaruto.up() #Jogador operando sem deixar rastros.\nnaruto.goto(0, -300) #Posição inicial do jogador.\nnaruto.shape('Naruto1.gif') #Adicionando o formato do personagem do jogador.\n\n#Obstáculos.\nobstaculo1 = turtle.Turtle() #Primeiro obstáculo.\nobstaculo1.up() #Não deixará rastros.\nobstaculo1.shape('shuriken.gif') #Adicionando o formato.\nobstaculo1.rt(90)\nobstaculo1.goto(randint(-200, 150), 600)\nobstaculo2 = turtle.Turtle() #Segundo obstáculo.\nobstaculo2.up() #Não deixará rastros.\nobstaculo2.shape('kunai.gif') #Adicionando o formato.\nobstaculo2.rt(90)\nobstaculo2.goto(randint(-200, 150), 600)\n\n#Combustível.\nramen = turtle.Turtle() #Criando o combustível que gerará a pontuação.\nramen.shape('ramen.gif') #Definindo o formato do combustível.\nramen.up() #Impedindo que o combustível deixe ratros.\nramen.speed(0) #Definindo a velocidade do combustível.\nramen.rt(90)\nramen.goto(randint(-200, 150), 600) #randint(min, max)\n\n\n#Pontuação & Tanque de Combustível.\nscore = turtle.Turtle()\nscore.up\nscore.goto\nscore.hideturtle()\n\n#Funções\n#def geracaoObs():\n\n\ndef direita(): #Definindo a primeira tecla de movimento e o espaço percorrido.\n if naruto.xcor() >= 150:\n naruto.setpos(naruto.xcor(), naruto.ycor())\n else:\n naruto.fd(50) #Quantidade de pixels que irá movimentar para a direita.\n\ndef esquerda(): #Definindo a segunda tecla de movimento e o espaço percorrido.\n if naruto.xcor() <= -200:\n naruto.setpos(naruto.xcor(), naruto.ycor())\n else:\n naruto.bk(50) #Quantidade de pixels percorridos para a esquerda.\n\n\ndef lacoPrincipal(): #Laço onde toda a \"mágica\" ocorre.\n #estrada.setpos(estrada.xcor(), estrada.ycor()-10)\n meiofio() #Chamando a função que irá definir o limite da estrada.\n #if estrada.ycor() == -700:\n #estrada2.showturtle()\n #estrada2.fd(10)\n aldeia.update()\n aldeia.ontimer(lacoPrincipal, 1000 // 60)\n\ndef meiofio(): #Limite da estrada para que ocorra a pausa.\n if naruto.xcor() >= 200 or naruto.xcor() <= -250: #Parâmetros dos limites.\n naruto.setpos(naruto.xcor(), naruto.ycor()) #Caso o jogador atinja o limite, o jogador pausará.\n\n#Chamadas de teclas.\nonkeypress(esquerda, 'Left') #Definindo a entrada da tecla de movimento para a esquerda.\nonkeypress(direita, 'Right') #Definindo a entrada da tecla de movimento para a direita.\nlisten() #Dizendo ao programa para entender(\"escutar\") quando uma das duas teclas forem pressionadas.\n\nlacoPrincipal()\naldeia.mainloop() #Girando o loop da tela.","repo_name":"VitorGabriel0501/Programa","sub_path":"AldeiaDaFolha.py","file_name":"AldeiaDaFolha.py","file_ext":"py","file_size_in_byte":4608,"program_lang":"python","lang":"pt","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"24768161219","text":"from flask import Flask, request, jsonify\nimport os\nimport subprocess\n\napp = Flask(__name__)\n\nUPLOAD_FOLDER = 'uploads'\napp.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER\n\n@app.route('/upload', methods=['POST'])\ndef upload_file():\n if 'file' not in request.files:\n return jsonify({'error': 'No file part'})\n\n file = request.files['file']\n if file.filename == '':\n return jsonify({'error': 'No selected file'})\n\n filename = os.path.join(app.config['UPLOAD_FOLDER'], file.filename)\n file.save(filename)\n\n # Use the 'file' command to get information about the uploaded file\n file_info = subprocess.check_output(['file', filename]).decode('utf-8')\n\n return jsonify({'filename': file.filename, 'info': file_info})\n\nif __name__ == '__main__':\n app.run(debug=True)\n","repo_name":"noor02arora/Api_file","sub_path":"app.py","file_name":"app.py","file_ext":"py","file_size_in_byte":792,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"71998714843","text":"import os\nimport json\n\nfrom api import decimalencoder\nimport boto3\nfrom botocore.exceptions import ClientError\nfrom boto3.dynamodb.conditions import Key, Attr\nfrom lambda_decorators import cors_headers\nfrom itertools import islice\ndynamodb = boto3.resource('dynamodb')\n\n@cors_headers\ndef get_assets(event, context):\n table = dynamodb.Table(\"Assets\")\n\n page = int(event['pathParameters']['page'])\n pagesize = 15\n assets = []\n\n try:\n result = table.scan(\n ProjectionExpression=\"scripthash, #name, symbol, decimals, firstseen\",\n ExpressionAttributeNames={'#name': 'name'}\n )\n\n if \"Items\" in result:\n assets = result['Items']\n\n assets.sort(key=lambda x: x['firstseen'], reverse=True)\n skip = (page - 1) * pagesize\n items = list(islice(assets, skip, skip + pagesize))\n result = { 'items': items, 'totalCount': len(assets) }\n\n response = {\n \"statusCode\": 200,\n \"body\": json.dumps(result, cls=decimalencoder.DecimalEncoder)\n }\n return response\n\n except ClientError as error:\n return {\n \"statusCode\": 500,\n \"body\": json.dumps(error.response, cls=decimalencoder.DecimalEncoder)\n }\n except Exception as e:\n return {\"statusCode\": 500, \"body\": e }\n\n\n","repo_name":"CityOfZion/neo3-explorer-api","sub_path":"api/get_assets.py","file_name":"get_assets.py","file_ext":"py","file_size_in_byte":1343,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"25746425391","text":"#created By: Sebastian L\nfrom flask import Flask, render_template, request\nimport pandas as pd\nimport matplotlib.pyplot as plt\n\napp = Flask(__name__)\n\n# read the dataset\nhouse_sales = pd.read_csv('kc_house_data.csv')\n\n# define relevant filters\nbedrooms_filter = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 33]\nprice_range_filter = [0, 500000, 1000000, 1500000, 2000000, 2500000, 3000000, 3500000, 4000000, 4500000, 5000000]\n\n\n@app.route('/')\ndef home():\n #return render_template(\"home.html\")\n return render_template('home.html', bedrooms_filter=bedrooms_filter, price_range_filter=price_range_filter)\n \n\n@app.route('/analysis', methods=['POST'])\ndef analysis():\n # read the selected filters from the user\n bedrooms = request.form['bedrooms']\n price_range = request.form['price_range']\n\n # filter the dataset based on the selected filters\n filtered_sales = house_sales.loc[(house_sales['bedrooms'] == int(bedrooms)) &\n (house_sales['price'] >= price_range_filter[int(price_range)]) &\n (house_sales['price'] < price_range_filter[int(price_range) + 1])]\n\n # compute the required statistics\n volume_by_month = filtered_sales.groupby(pd.to_datetime(filtered_sales['date']).dt.to_period('M'))['price'].agg(['count', 'sum'])\n avg_price_by_month = filtered_sales.groupby(pd.to_datetime(filtered_sales['date']).dt.to_period('M'))[['price', 'sqft_living', 'bedrooms']].mean()\n \n # plot the statistics\n \n\n # Plot the Volume of Deals vs Time\n \n # Create a new Matplotlib Figure object with two subplots\n fig, (ax1, ax2) = plt.subplots(nrows=2, ncols=1, sharex=True, figsize=(8, 8))\n\n # Plot the first subplot\n volume_by_month.plot(ax=ax1, y='count', legend=False, marker='o', markerfacecolor='red', markersize=10)\n ax1.set_title('Volume of Deals vs Time')\n ax1.set_ylabel('Volume of Deals (Number)')\n ax1.grid()\n\n # Plot the second subplot\n volume_by_month.plot(ax=ax2, y='sum', legend=False, marker='o', markerfacecolor='blue', markersize=10)\n ax2.set_title('Volume of Deals vs Total Amount')\n ax2.set_xlabel('Date')\n ax2.set_ylabel('Volume of Deals (Total Amount )')\n ax2.grid()\n\n # Adjust the spacing between subplots and save the figure\n fig.tight_layout()\n fig.savefig('figure1.png')\n\n # convert the plot to base64 string\n import io\n import base64\n buf = io.BytesIO()\n plt.savefig(buf, format='png')\n plt.close(fig)\n buf.seek(0)\n plot_url = base64.b64encode(buf.read()).decode('utf-8')\n\n \n # Plot the average price per unit over time\n \n # Create a new Matplotlib Figure object with three subplots\n fig2, (ax3, ax4, ax5) = plt.subplots(nrows=3, ncols=1, sharex=True, figsize=(8, 12))\n\n # Plot the first subplot\n avg_price_by_month.plot(ax=ax3, y='price', legend=False, marker='o', markerfacecolor='cyan', markersize=10)\n ax3.set_title('Avg. Price per Deal vs Time')\n ax3.set_xlabel('Date')\n ax3.set_ylabel('Avg. Price per Deal ($)', color='r')\n ax3.grid()\n\n # Plot the second subplot\n avg_price_by_month.plot(ax=ax4, y='sqft_living', legend=False, marker='o', markerfacecolor='magenta', markersize=10)\n ax4.set_title('Avg. Price per Sqft vs Time')\n ax4.set_xlabel('Date')\n ax4.set_ylabel('Avg. Price per Sqft')\n ax4.grid()\n\n # Plot the third subplot\n avg_price_by_month.plot(ax=ax5, y='bedrooms', legend=False, marker='o', markerfacecolor='green', markersize=10)\n ax5.set_title('Avg. Price per Bedroom vs Time')\n ax5.set_xlabel('Date')\n ax5.set_ylabel('Avg. Price per Bedroom')\n ax5.grid()\n\n # Adjust the spacing between subplots and save the figure\n fig2.tight_layout()\n fig2.savefig('figure2.png')\n\n # convert the plot to base64 string\n \n buf2 = io.BytesIO()\n plt.savefig(buf2, format='png')\n plt.close(fig2)\n buf2.seek(0)\n plot_url2 = base64.b64encode(buf2.read()).decode('utf-8')\n\n\n # render the analysis template with the computed statistics and plot\n return render_template('analysis.html', volume_by_month=volume_by_month.to_html(),\n avg_price_by_month=avg_price_by_month.to_html(), plot_url=plot_url, plot_url2=plot_url2)\n\n\n\nif __name__ == '__main__':\n app.run(debug=True)\n\n","repo_name":"JosephLSeb/webapp-kc-housing-ui","sub_path":"app/app.py","file_name":"app.py","file_ext":"py","file_size_in_byte":4288,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"14026730173","text":"from django.contrib.auth.mixins import LoginRequiredMixin\nfrom django.shortcuts import render\n\n# Create your views here.\n\nfrom django.db.models import Count\nfrom django.views.generic import DetailView\n\nfrom App.models import Panel, Prof\n\n\ndef panel(request):\n product = Panel.objects.all()\n total = Panel.objects.aggregate(Count('nom'))\n print(total)\n total = total.get(\"nom__count\")\n print(total)\n total1 = Prof.objects.aggregate(Count('nom'))\n print(total1)\n total1 = total1.get(\"nom__count\")\n print(total1)\n context = {\n \"produits\": product,\n \"total\": total,\n \"total1\": total1,\n\n }\n\n return render(request, \"app/panel.html\", context)\n\n\ndef eleve(request):\n product = Panel.objects.all()\n context = {\n \"produits\": product,\n\n }\n return render(request, \"app/eleves.html\", context)\n\n\ndef prof(request):\n product = Prof.objects.all()\n\n context = {\n \"produits\": product,\n\n }\n return render(request, \"app/prof.html\", context)\n\n\n\n","repo_name":"sibylassana95/DjangoPublicProject","sub_path":"Administration/src/App/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":1020,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"42070996989","text":"import numpy as np\nimport math\nimport matplotlib.pyplot as plt\n\ndef heat_2d():\n dx=0.05\n dt=.5*dx*dx\n x = []\n for x_i in range(-20, 21):\n x.append(dx*x_i)\n \n t = []\n for t_i in range(0, 401):\n t.append(t_i*dt)\n\n f=np.zeros(shape=(len(x),len(t)))\n for j in range(len(f)):\n f[j,0] = math.exp(-5*abs(x[j]))\n\n\n for i in range(len(f)):\n f[0,i] = 0\n f[-1,i] = 0\n\n for i in range(len(t)-1):\n for j in range(1,len(f)-1):\n f[j,i+1] = f[j,i] + dt*((f[j+1,i] - 2*f[j,i] + f[j-1,i])/(dx*dx))\n\n # Draw contour\n plt.figure('2D heat equation')\n plt.contourf(t,x,f,100)\n plt.xlabel('t')\n plt.ylabel('x')\n plt.savefig('heat2d.png')\n plt.show()\n\ndef heat_3d():\n dx=0.05\n dy=0.05\n dt=.5*dx*dx\n x = []\n for x_i in range(-20, 21):\n x.append(dx*x_i)\n y = []\n for y_i in range(-20, 21):\n y.append(dy*y_i)\n \n t = []\n for t_i in range(0, 401):\n t.append(t_i*dt)\n\n f=np.zeros(shape=(len(x),len(y),len(t)))\n for i in range(len(f)):\n for j in range(len(f[i])):\n f[i,j,0] = math.exp(-5*abs(x[i])) * math.exp(-5*abs(y[j])) \n\n for i in range(len(f)):\n for j in range(len(t)):\n f[i,0,j] = 0\n f[i,-1,j] = 0\n f[0,i,j] = 0\n f[-1,i,j] = 0\n\n for i in range(len(t)-1):\n for j in range(1,len(f)-1):\n for k in range(1,len(f[j])-1):\n f[j,k,i+1] = f[j,k,i] + dt*((f[j+1,k,i] - 2*f[j,k,i] + f[j-1,k,i])/(dx*dx)) + dt*((f[j,k+1,i] - 2*f[j,k,i] + f[j,k-1,i])/(dy*dy)) \n\n # Draw contour\n #plt.figure()\n #plt.contourf(t,x,y,f,100)\n #plt.show()\n\nheat_2d()\nheat_3d()\n","repo_name":"rsullivan00/NumericalAnalysis","sub_path":"HeatEquation/heat.py","file_name":"heat.py","file_ext":"py","file_size_in_byte":1710,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"127785373","text":"N, K = list(map(int, input().split()))\n\nm = {}\n\nfor n in range(N):\n A, B = list(map(int, input().split()))\n if A in m:\n m[A] += B\n else:\n m[A] = B\n\nsortedm = sorted(m.items())\n#print(sortedm)\n\n#print(len(sortedm))\nfor e in range(len(sortedm)):\n if int(sortedm[e][0]) <= K:\n K += sortedm[e][1]\n\nif K < 10**100:\n print(K)\nelse:\n print(10**100)\n#print(mon)\n\n\n\n\n","repo_name":"tinaba96/coding","sub_path":"acode/abc203/c.py","file_name":"c.py","file_ext":"py","file_size_in_byte":397,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"71308780765","text":"# author: fanchuangwater@gmail.com\n# date: 2020/5/3 上午11:47\n# 目的: \n\n\n\n# 注意是最长的长度\nnums = [8,2,4,7]\nlimit = 4\n\nleft = 0\nend = len(nums) -1\n\n# 排列组合 暴力啊暴力\n# while left <= end:\n\n\n# import itertools\n#\n# a = itertools.zip_longest(nums, fillvalue=)","repo_name":"buxuele/algo_snippet","sub_path":"junk/5402_longest.py","file_name":"5402_longest.py","file_ext":"py","file_size_in_byte":284,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"26995131399","text":"import requests\nimport datetime\nimport store\nimport math\n\nstored_access_data = store.get_access_data()\nstrava_settings = store.get_strava_settings()\n\ndef refresh_access_token():\n global stored_access_data\n\n params = {\n 'client_id': strava_settings['client_id'], \n 'client_secret': strava_settings['client_secret'], \n 'grant_type': 'refresh_token', \n 'refresh_token': stored_access_data['refresh_token']\n }\n access_data = requests.post(strava_settings['api_url'] + 'oauth/token', params=params).json()\n stored_access_data = access_data\n store.save_access_data(access_data)\n\ndef has_access():\n expires_at = stored_access_data['expires_at']\n date = datetime.datetime.fromtimestamp(expires_at)\n now = datetime.datetime.today()\n \n return date > now\n\ndef check_access():\n if (not has_access()):\n refresh_access_token()\n\ndef get(url):\n check_access()\n\n access_token = stored_access_data['access_token']\n headers={'Authorization': f'Bearer {access_token}'}\n\n return requests.get(strava_settings['api_url'] + url, headers=headers).json()\n\ndef get_stats():\n athlete_id = strava_settings['athlete_id']\n return get(f'athletes/{athlete_id}/stats')\n\ndef get_stats_text(stats):\n time = get_time(stats['elapsed_time'])\n\n distance = f\"🏃 {round(stats['distance'] / 1000, 2)} km\\n\"\n elevation = f\"⛰ {math.floor(stats['elevation_gain'])} m\\n\"\n elapsed = f\"🕒 {time}\\n\"\n count = f\"🖐 {stats['count']} runs\"\n\n return f'{distance}{elevation}{elapsed}{count}'\n\ndef get_avg_week_distance(stats):\n distance = round(stats['distance'] / 1000 / 4, 2)\n return f'🏃 {distance} km'\n\ndef get_time(minutes):\n if (minutes < 60):\n return f'{minutes}m'\n\n if (minutes == 60):\n return '1h'\n\n h = minutes // 60\n m = minutes % 60\n return f'{h}h {m}m'\n\ndef get_stats_message():\n stats = get_stats()\n recent_stats = stats['recent_run_totals']\n \n recent_stats_text = get_stats_text(recent_stats)\n ytd_stats_text = get_stats_text(stats['ytd_run_totals'])\n avg_week_distance = get_avg_week_distance(recent_stats)\n\n return f'Avg week:\\n{avg_week_distance}\\n\\nLast 4 weeks:\\n{recent_stats_text}\\n\\nThis year:\\n{ytd_stats_text}'\n","repo_name":"mklinovsky/strava-twitter-bot","sub_path":"strava.py","file_name":"strava.py","file_ext":"py","file_size_in_byte":2254,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"35317883862","text":"# function to find the once\r\n# appearing element in array\r\ndef findSingle( ar, n):\r\n\t\r\n\tres = ar[0]\r\n\t\r\n\t# Do XOR of all elements and return\r\n\tfor i in range(1,n):\r\n\t\tres = res ^ ar[i]\r\n\t\r\n\treturn res\r\n\r\n\r\nar = [2, 3, 5, 4, 5, 3, 4]\r\nprint (\"Element occurring once is\", findSingle(ar, len(ar)))","repo_name":"saurabh142001/LamprostechSaurabhkumar","sub_path":"singleinteger.py","file_name":"singleinteger.py","file_ext":"py","file_size_in_byte":294,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3034214641","text":"import numpy as np\nimport os\n\nfrom sklearn.preprocessing import MinMaxScaler\nfrom numba import jit\n\n\ndef get_by_id_and_frame(M):\n\n ids = list(set(M[:, 1]))\n traj_id = {}\n\n for id_p in ids:\n traj_id[id_p] = np.delete(M[M[:, 1] == id_p], 1, 1)\n\n frames = list(set(M[:, 0]))\n traj_fr = {}\n\n for frame in frames:\n traj_fr[frame] = np.delete(M[M[:, 0] == frame] , 0, 1)\n\n return traj_id, traj_fr\n\n\ndef get_trajs(config, trajs_id):\n\n trajs = {\n\n 'id_p': [],\n 'frames': [],\n 'pos': []\n\n }\n\n for id_p in trajs_id:\n\n data = trajs_id[id_p]\n pos = len(data) - config['tot_l'] + 1\n\n if pos < 1: continue\n\n trajs['id_p'].extend([id_p for _ in range(pos)])\n trajs['frames'].extend([np.expand_dims(data[i:i+config['tot_l'], 0], axis = 0) for i in range(pos)])\n trajs['pos'].extend([np.expand_dims(data[i:i+config['tot_l'], 1:], axis = 0) for i in range(pos)])\n\n trajs['id_p'] = np.array(trajs['id_p'])\n trajs['frames'] = np.concatenate(trajs['frames'], axis = 0)\n trajs['pos'] = np.concatenate(trajs['pos'], axis = 0)\n\n return trajs\n\n@jit(nopython = True)\ndef get_features(max_d, pos, frames, id_p, trajs_fr, len_fr, c_reduce):\n\n features = max_d + np.zeros((len(pos), len(pos[0]), 360))\n features_g = np.zeros((len(pos), len(pos[0]), c_reduce))\n window_s = 360//c_reduce\n\n for i in range(len(pos)):\n\n for j in range(len(pos[i])):\n\n frame = int(frames[i][j])\n all_p = trajs_fr[frame][:len_fr[frame]]\n id_c = id_p[i]\n\n point = all_p[all_p[:, 0] == id_c][0][1:]\n all_p = all_p[all_p[:, 0] != id_c][:, 1:]\n all_p = all_p - point\n all_p_c = all_p[:, 0] + 1j*all_p[:, 1]\n angles = np.angle(all_p_c, deg = True)\n angles += (angles<0)*360\n\n for k in range(len(angles)):\n\n ang = int(angles[k])\n features[i][j][ang] = min(features[i][j][ang], np.linalg.norm(all_p[k]))\n\n for k in range(c_reduce):\n features_g[i][j][k] = np.min(features[i][j][k*window_s:(k+1)*window_s])\n\n return features_g\n\n\ndef create_matrix(trajs_fr):\n\n a = int(np.max([x for x in trajs_fr]))+1\n b = int(np.max([len(trajs_fr[x]) for x in trajs_fr]))\n c = 3\n\n mat = np.zeros((a, b, c))\n len_m = np.zeros(len(mat))\n\n for i in trajs_fr:\n\n i = int(i)\n a = len(trajs_fr[i])\n len_m[i] = a\n mat[i, :a, :] = trajs_fr[i]\n\n for i in trajs_fr:\n i = int(i)\n assert len(trajs_fr[i]) == len_m[i], \"buuuu with the lengths!\"\n n = np.linalg.norm(trajs_fr[i] - mat[i, :int(len_m[i]), :])\n assert n < 1e-1, \"buuuu with the copy: {0}\".format(n)\n\n return mat, len_m\n\ndef process_4_nn(config, trajs, trajs_fr, dataset):\n\n X = {\n 'encoder': None,\n 'decoder': None,\n 'dataset': None,\n 'pos': None,\n 'frames': None,\n 'id_p': None,\n }\n\n if config['use_features']:\n\n X.update({\n 'obs_features': None,\n 'pre_features': None,\n })\n\n Y = None\n\n if config['use_features']:\n\n trajs_fr_m, trajs_fr_l = create_matrix(trajs_fr)\n features = get_features(config['max_d'],\n trajs['pos'], trajs['frames'], trajs['id_p'],\n trajs_fr_m, trajs_fr_l, config['reduce'])\n X['obs_features'] = features[:, :config['obs_l']-1, :]\n X['pre_features'] = features[:, config['obs_l']-1:-1, :]\n\n X['pos'] = np.array(trajs['pos'])\n X['dataset'] = [dataset for _ in range(len(X['pos']))]\n X['frames'] = np.array(trajs['frames'])\n X['id_p'] = np.array(trajs['id_p'])\n\n obs = trajs['pos'][:, :config['obs_l']]\n pre = trajs['pos'][:, config['obs_l']:]\n\n X['encoder'] = obs[:, 1:] - obs[:, :-1]\n Y = pre - np.concatenate([obs[:, -1:], pre[:, :-1]], axis = 1)\n\n X['decoder'] = np.zeros_like(Y)\n X['decoder'][:, 0, :] = X['encoder'][:, -1, :]\n X['decoder'][:, 1:, :] = Y[:, :-1, :]\n\n return X, Y\n\n\ndef load_dataset(config, verbose):\n\n dataset_path = os.path.join(config['data_path'], config['i_test'])\n dictio = {}\n\n for phase in os.listdir(dataset_path):\n\n if verbose: print(' ', phase)\n\n dictio[phase] = {\n 'X': {'encoder': [], 'decoder': [], 'dataset': [], 'pos': [], 'frames': [], 'id_p': []},\n 'Y': [],\n 'trajs_fr': {},\n }\n\n if config['use_features']:\n\n dictio[phase]['X'].update({\n 'obs_features': [],\n 'pre_features': [],\n })\n\n phase_path = os.path.join(dataset_path, phase)\n\n for file in os.listdir(phase_path):\n\n file_path = os.path.join(phase_path, file)\n if verbose: print(' ', file)\n\n mat = np.loadtxt(file_path)\n trajs_id, trajs_fr = get_by_id_and_frame(mat)\n\n trajs_ds = get_trajs(config, trajs_id)\n if verbose: print(' ', len(trajs_ds['pos']))\n\n X, Y = process_4_nn(config, trajs_ds, trajs_fr, file)\n\n dictio[phase]['X']['encoder'].append(X['encoder'])\n dictio[phase]['X']['decoder'].append(X['decoder'])\n dictio[phase]['X']['dataset'].append(X['dataset'])\n dictio[phase]['X']['pos'].append(X['pos'])\n dictio[phase]['X']['frames'].append(X['frames'])\n dictio[phase]['X']['id_p'].append(X['id_p'])\n\n if config['use_features']:\n\n dictio[phase]['X']['obs_features'].append(X['obs_features'])\n dictio[phase]['X']['pre_features'].append(X['pre_features'])\n\n dictio[phase]['Y'].append(Y)\n dictio[phase]['trajs_fr'][file] = trajs_fr\n\n if len(dictio[phase]) > 0:\n\n dictio[phase]['Y'] = np.concatenate(dictio[phase]['Y'], axis = 0)\n dictio[phase]['X']['encoder'] = np.concatenate(dictio[phase]['X']['encoder'], axis = 0)\n dictio[phase]['X']['decoder'] = np.concatenate(dictio[phase]['X']['decoder'], axis = 0)\n dictio[phase]['X']['dataset'] = np.concatenate(dictio[phase]['X']['dataset'], axis = 0)\n dictio[phase]['X']['pos'] = np.concatenate(dictio[phase]['X']['pos'], axis = 0)\n dictio[phase]['X']['frames'] = np.concatenate(dictio[phase]['X']['frames'], axis = 0)\n dictio[phase]['X']['id_p'] = np.concatenate(dictio[phase]['X']['id_p'], axis = 0)\n\n if config['use_features']:\n\n dictio[phase]['X']['features'] = np.concatenate(dictio[phase]['X']['obs_features'], axis = 0)\n dictio[phase]['X']['pre_features'] = np.concatenate(dictio[phase]['X']['pre_features'], axis = 0)\n\n dictio[phase]['X']['features'] = dictio[phase]['X']['features']/config['max_d']\n dictio[phase]['X']['pre_features'] = dictio[phase]['X']['pre_features']/config['max_d']\n \n # print(dictio[phase]['X']['features'])\n \n if verbose: print(' ', len(dictio[phase]['Y']))\n\n return dictio\n \n \nclass LoadData:\n \n def __init__(self, config, verbose = 1):\n \n self.data = load_dataset(config, verbose = verbose)\n \n self.X_train = self.data['train']['X']\n self.Y_train = self.data['train']['Y']\n\n self.X_test = self.data['test']['X']\n self.Y_test = self.data['test']['Y']\n\n if config['formal_training']:\n \n self.X_vali = self.data['val']['X']\n self.Y_vali = self.data['val']['Y']\n\n ","repo_name":"jagmonroy/cvae_tp","sub_path":"ETH-UCY/dataset_processing.py","file_name":"dataset_processing.py","file_ext":"py","file_size_in_byte":7617,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"15510230259","text":"import socket\nimport threading\nimport sys\nimport os\n\ns = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n\n# host = input(\"Enter host: \")\nhost = str(input(\"Enter host: \")) # socket.gethostname()\nname = str(input(\"Enter name: \"))\nport = int(input(\"Enter port: \")) # int(sys.argv[1])\n\ns.connect((host, port))\nos.system('clear')\nprint('Connected to', host)\nprint(\"Commands:\\n- \\\"clear()\\\"\\n- \\\"exit\\\"\")\ns.send(name.encode())\ns.send(str(\"User connected: \" + name).encode())\n\n\ndef unos():\n try:\n while True:\n inp = str(input(name + \": \"))\n z = name + \": \" + inp\n if (inp == \"exit\"):\n s.send(str(\"User disconnected: \" + name).encode())\n s.close()\n exit(0)\n elif inp == \"clear()\":\n os.system(\"clear\")\n else:\n s.send(z.encode())\n except Exception as e:\n s.send(str(\"User disconnected: \" + name).encode())\n print(e)\n exit(0)\n\n\ndef read():\n while True:\n msg = str(s.recv(1024).decode())\n if len(msg):\n print(\"\\n\" + msg)\n\n\nt1 = threading.Thread(target=unos)\nt2 = threading.Thread(target=read)\ntry:\n t1.start()\n t2.start()\nexcept Exception as e:\n print(e, end=\"\\n\\n\\n\\n\")\n print(\"Bye bye \")\n exit(0)\n","repo_name":"ProCxxx/pychat","sub_path":"client.py","file_name":"client.py","file_ext":"py","file_size_in_byte":1298,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"21027143194","text":"import numpy as np\nimport matplotlib.pyplot as plt\nplt.switch_backend('agg')\nfrom keras.models import Model\nfrom keras.layers import Input, Dense\n\nfrom keras.layers import Input, Dense, Conv2D, MaxPooling2D, UpSampling2D,BatchNormalization,Activation\n\nfrom keras import backend as K\n\nfrom keras.datasets import cifar10\n(data1, y_train), (data_test, y_test) = cifar10.load_data()\n\n\n\n\"------------------------------------------------------ CONVOLUTIONAL AUTOENCODER\"\n\n\ndata1 = data1.astype('float32') / 255\ndata_test = data_test.astype('float32') / 255\ndata1 = np.reshape(data1, (len(data1), 32, 32, 3))\ndata_test = np.reshape(data_test, (len(data_test), 32, 32, 3))\n\nnoise_factor = 0.5\nx_train_noisy = data1 + noise_factor * np.random.normal(loc=0.0, scale=1.0, size=data1.shape) \nx_test_noisy = data_test + noise_factor * np.random.normal(loc=0.0, scale=1.0, size=data_test.shape)\n\nx_train_noisy = np.clip(x_train_noisy, 0., 1.)\nx_test_noisy = np.clip(x_test_noisy, 0., 1.)\n\n\n\ninput_img = Input(shape=(32,32,3)) # adapt this if using `channels_first` image data format\n\nx = Conv2D(32, (3, 3), activation='relu', padding='same')(input_img)\nx = MaxPooling2D((2, 2), padding='same')(x)\nx = Conv2D(32, (3, 3), activation='relu', padding='same')(x)\nencoded = MaxPooling2D((2, 2), padding='same')(x)\n\n# at this point the representation is (4, 4, 8) i.e. 128-dimensional\n\nx = Conv2D(32, (3, 3), activation='relu', padding='same')(encoded)\nx = UpSampling2D((2, 2))(x)\nx = Conv2D(32, (3, 3), activation='relu', padding='same')(x)\nx = UpSampling2D((2, 2))(x)\ndecoded = Conv2D(3, (3, 3), activation='softmax', padding='same')(x)\n\nautoencoder = Model(input_img, decoded)\nautoencoder.compile(optimizer='adam', loss='mean_squared_error')\n\nhistory = autoencoder.fit(x_train_noisy, data1,\n epochs=100,\n batch_size=128,\n shuffle=True,\n validation_data=(x_test_noisy, data_test))\n\npredicted = autoencoder.predict(x_test_noisy)\n\n#n = 10 # how many digits we will display\n#plt.figure(figsize=(20, 4))\n#for i in range(n):\n # display original\n #ax = plt.subplot(2, n, i + 1)\n #plt.imshow(x_test_noisy[i])\n #plt.gray()\n #ax.get_xaxis().set_visible(False)\n #ax.get_yaxis().set_visible(False)\n\n # display reconstruction\n #ax = plt.subplot(2, n, i + 1 + n)\n #plt.imshow(predicted[i])\n #plt.gray()\n #ax.get_xaxis().set_visible(False)\n #ax.get_yaxis().set_visible(False)\n#plt.savefig('cifar_noisy.png')\n\n\nplt.figure(1)\nplt.plot(history.history['loss'])\nplt.plot(history.history['val_loss'])\n\nplt.savefig(\"loss_noisy.png\")\n\n","repo_name":"Kyziridis/Mnist-Machine-Learning-Basics","sub_path":"encoder_noisy_cifar.py","file_name":"encoder_noisy_cifar.py","file_ext":"py","file_size_in_byte":2593,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"71150717404","text":"from typing import Any, Dict, Tuple\n\nimport torch\nfrom torch import optim\n\nfrom omnisafe.algorithms import registry\nfrom omnisafe.algorithms.offline.base import BaseOffline\nfrom omnisafe.models.actor.actor_builder import ActorBuilder\nfrom omnisafe.models.actor.vae_actor import VAE\n\n\n@registry.register\nclass VAEBC(BaseOffline):\n \"\"\"Behavior Cloning with Variational Autoencoder.\n\n References:\n - Title: Off-Policy Deep Reinforcement Learning without Exploration\n - Author: Fujimoto, ScottMeger, DavidPrecup, Doina.\n - URL: `https://arxiv.org/abs/1812.02900`\n \"\"\"\n\n def _init_log(self) -> None:\n \"\"\"Log the VAE-BC specific information.\n\n +-------------------------+----------------------------------------------------+\n | Things to log | Description |\n +=========================+====================================================+\n | Loss/Loss_vae | Loss of VAE network |\n +-------------------------+----------------------------------------------------+\n | Loss/Loss_recon | Reconstruction loss of VAE network |\n +-------------------------+----------------------------------------------------+\n | Loss/Loss_kl | KL loss of VAE network |\n +-------------------------+----------------------------------------------------+\n \"\"\"\n super()._init_log()\n what_to_save: Dict[str, Any] = {\n 'vae': self._actor,\n }\n self._logger.setup_torch_saver(what_to_save)\n\n self._logger.register_key('Loss/Loss_vae')\n self._logger.register_key('Loss/Loss_recon')\n self._logger.register_key('Loss/Loss_kl')\n\n def _init_model(self) -> None:\n self._actor: VAE = (\n ActorBuilder( # type: ignore\n obs_space=self._env.observation_space,\n act_space=self._env.action_space,\n hidden_sizes=self._cfgs.model_cfgs.hidden_sizes,\n activation=self._cfgs.model_cfgs.activation,\n weight_initialization_mode=self._cfgs.model_cfgs.weight_initialization_mode,\n )\n .build_actor(actor_type='vae')\n .to(self._device)\n )\n\n self._vae_optimizer = optim.Adam(\n self._actor.parameters(),\n lr=self._cfgs.model_cfgs.learning_rate,\n )\n\n def _train(\n self,\n batch: Tuple[torch.Tensor, ...],\n ) -> None:\n obs, act, _, _, _, _ = batch\n\n recon_loss, kl_loss = self._actor.loss(obs, act)\n loss = recon_loss + kl_loss\n self._vae_optimizer.zero_grad()\n loss.backward()\n self._vae_optimizer.step()\n\n self._logger.store(\n **{\n 'Loss/Loss_vae': loss.item(),\n 'Loss/Loss_recon': recon_loss.item(),\n 'Loss/Loss_kl': kl_loss.item(),\n },\n )\n","repo_name":"PKU-Alignment/omnisafe","sub_path":"omnisafe/algorithms/offline/vae_bc.py","file_name":"vae_bc.py","file_ext":"py","file_size_in_byte":3015,"program_lang":"python","lang":"en","doc_type":"code","stars":734,"dataset":"github-code","pt":"86"}
+{"seq_id":"44442404267","text":"from airflow.hooks.postgres_hook import PostgresHook\nfrom airflow.models import BaseOperator\nfrom airflow.utils.decorators import apply_defaults\n\nclass LoadFactOperator(BaseOperator):\n\n ui_color = '#F98866'\n sql = \"\"\"\n INSERT INTO {table} \n {table_input};\n \"\"\"\n\n '''\n An operator to load data into a fact table\n\n Args:\n redshift_conn_id (str): The id for the Redshift cluster to connect to\n table (str): The fact table name\n table_input (str): The input data in SQL\n *args: Variable arguments\n **kwargs: Keyword arguments\n\n Attributes:\n redshift_conn_id (str): The id for the Redshift cluster to connect to\n table (str): The fact table name\n table_input (str): The input data in SQL\n '''\n @apply_defaults\n def __init__(self,\n redshift_conn_id,\n table,\n table_input,\n *args, **kwargs):\n\n super(LoadFactOperator, self).__init__(*args, **kwargs)\n\n self.redshift_conn_id = redshift_conn_id\n self.table = table\n self.table_input = table_input\n\n def execute(self, context):\n '''\n Load the input data into the fact table\n\n Args:\n context (dict): The Airflow context object\n '''\n self.log.info('LoadFactOperator not implemented yet')\n \n redshift = PostgresHook(self.redshift_conn_id)\n \n redshift.run(LoadDimensionOperator.sql.format(\n table=self.table,\n table_input=self.table_input\n ))\n","repo_name":"jackyho112/songplay-airflow","sub_path":"airflow/plugins/operators/load_fact.py","file_name":"load_fact.py","file_ext":"py","file_size_in_byte":1576,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"23982439005","text":"import sys, math\n\nn = int(sys.stdin.readline())\nllist = list(map(int, sys.stdin.readline().split()))\navg = math.ceil(sum(llist)/n)\n\nmin = 2147000000\n\nfor index, value in enumerate(llist):\n temp = abs(value - avg)\n if temp < min:\n min = temp\n score = value\n res = index+1\n elif temp == min:\n if value > score:\n score = value\n res = index + 1\nprint(avg, res)\n\n# my solution\n# 같다","repo_name":"WooosikS/python-algorithm","sub_path":"인프런/섹션 2/4. 대표값.py","file_name":"4. 대표값.py","file_ext":"py","file_size_in_byte":439,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"71043680925","text":"import os\nfrom pathlib import Path\n\nBASE_DIR = Path(__file__).resolve().parent.parent\n\nSECRET_KEY = 'django-insecure-+wo&weufgyw5235x7_awwfy%xlep$tbn618joks*#)^&2)wyz_6ha6raw#-+='\n\nDEBUG = False\n\nALLOWED_HOSTS = [\"127.0.0.1\", \"194.58.121.241\", \"tehstat.ru\", \"www.tehstat.ru\"]\n\nALLOWED_ORIGINS = ['http://www.tehstat.ru', 'http://tehstat.ru', 'http://151.248.120.209', 'https://*']\nCSRF_TRUSTED_ORIGINS = ALLOWED_ORIGINS.copy()\n\nDATABASES = {\n 'default': {\n 'ENGINE': 'django.db.backends.postgresql_psycopg2',\n 'NAME': 'tehstat',\n 'USER': 'tehstat',\n 'PASSWORD': 'QUArschtaf32SIO4',\n 'HOST': 'localhost',\n 'PORT': '5432',\n }\n}\n\nSTATIC_URL = '/static/'\n#STATIC_ROOT = os.path.join(BASE_DIR, 'static')\n\n#MEDIA_ROOT = os.path.join(BASE_DIR, 'media')\nMEDIA_ROOT = os.path.join(BASE_DIR, 'media')\nMEDIA_URL = '/media/'\n","repo_name":"spektres/tehstat","sub_path":"tehstat/prod_settings.py","file_name":"prod_settings.py","file_ext":"py","file_size_in_byte":861,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"31326717468","text":"from api_client import ScraperAPI\n\n\nclass Task:\n def __init__(self, **kwargs):\n self.api: ScraperAPI = kwargs['api']\n self.task_factory = kwargs['task_factory']\n\n async def __call__(self, session, proxy_address):\n raise NotImplementedError\n\n\nclass ScrapeTask(Task):\n def __init__(self, service, country, region, city, **kwargs):\n super().__init__(**kwargs)\n self.service = service\n self.country = country\n self.region = region\n self.city = city\n\n async def __call__(self, session, proxy_address):\n raise NotImplementedError\n\n\nclass ReviewTask(Task):\n def __init__(self, country, region, city, service, facilities, **kwargs):\n super().__init__(**kwargs)\n self.country = country\n self.region = region\n self.city = city\n self.service = service\n self.facilities = facilities\n\n async def __call__(self, session, proxy_address):\n raise NotImplementedError\n","repo_name":"asbondarenko/tophealth","sub_path":"scrapers/task.py","file_name":"task.py","file_ext":"py","file_size_in_byte":980,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"71345775004","text":"'''\r\nCreated on 28 mai 2017\r\n\r\n@author: gabri\r\n'''\r\n\r\nimport vgg\r\nimport tensorflow as tf\r\nimport numpy as np\r\nfrom sys import stderr\r\nfrom PIL import Image\r\nfrom functools import reduce\r\n\r\nCONTENT_LAYERS = ('relu4_2', 'relu5_2')\r\nSTYLE_LAYERS = ('relu1_1', 'relu2_1', 'relu3_1', 'relu4_1', 'relu5_1')\r\n\r\n\r\n \r\n#### Quelques fonctions utiles.... ######\r\n\r\ndef _tensor_size(tensor):\r\n from operator import mul\r\n return reduce(mul, (d.value for d in tensor.get_shape()), 1)\r\n\r\ndef rgb2gray(rgb):\r\n return np.dot(rgb[...,:3], [0.299, 0.587, 0.114])\r\n\r\ndef gray2rgb(gray):\r\n w, h = gray.shape\r\n rgb = np.empty((w,h,3), dtype='float32')\r\n rgb[:,:,2] = rgb[:,:,1] = rgb[:,:,0] = gray\r\n return rgb\r\n \r\n################################################################\r\n\r\ndef stylize(network, initial, initial_noiseblend, content, styles, preserve_colors, iterations,\r\n content_weight, content_weight_blend, style_weight, style_layer_weight_exp, style_blend_weights, tv_weight,\r\n learning_rate, beta1, beta2, epsilon, pooling, print_iterations=None, checkpoint_iterations=None):\r\n \r\n \"\"\"Fonction de style de l'image basee sur le reseau VGG19 (https://arxiv.org/pdf/1409.1556.pdf) sans quoi rien n'aurait ete possible... \r\n cette fonction renvoie un tuple (iterations, image) ; 'iterations' a la valeur None si c'est l'image finale. Des tuples sont renvoyes a chaque 'checkpoint_iterations' iterations\r\n \r\n \"\"\"\r\n \r\n shape = (1,) + content.shape\r\n style_shapes = [(1,) + style.shape for style in styles]\r\n content_features = {}\r\n style_features = [{} for _ in styles]\r\n\r\n vgg_weights, vgg_mean_pixel = vgg.load_net(network)\r\n layer_weight = 1.0\r\n style_layers_weights = {}\r\n for style_layer in STYLE_LAYERS:\r\n style_layers_weights[style_layer] = layer_weight\r\n layer_weight *= style_layer_weight_exp\r\n \r\n \r\n # normalisation des poids \r\n \r\n layer_weights_sum = 0\r\n for style_layer in STYLE_LAYERS:\r\n layer_weights_sum += style_layers_weights[style_layer]\r\n for style_layer in STYLE_LAYERS:\r\n style_layers_weights[style_layer] /= layer_weights_sum\r\n \r\n ######################################################\r\n \r\n # initialisation de Tensorflow pour l'image de base\r\n g = tf.Graph()\r\n with g.as_default(), g.device('/cpu:0'), tf.Session() as sess:\r\n image = tf.placeholder('float', shape=shape)\r\n net = vgg.net_preloaded(vgg_weights,image,pooling)\r\n content_pre = np.array([vgg.preprocess(content, vgg_mean_pixel)])\r\n for layer in CONTENT_LAYERS:\r\n content_features[layer] = net[layer].eval(feed_dict={image:content_pre})\r\n \r\n #################################################### \r\n \r\n \r\n # calcul de 'l'image style' en 'feedforward'\r\n for i in range(len(styles)):\r\n g = tf.Graph()\r\n with g.as_default(), g.device('/cpu:0'), tf.Session() as sess:\r\n \r\n image = tf.placeholder('float', shape=style_shapes[i])\r\n net = vgg.net_preloaded(vgg_weights, image, pooling)\r\n style_pre = np.array([vgg.preprocess(styles[i], vgg_mean_pixel)])\r\n \r\n for layer in STYLE_LAYERS:\r\n features = net[layer].eval(feed_dict={image: style_pre})\r\n features = np.reshape(features, (-1, features.shape[3]))\r\n gram = np.matmul(features.T, features) / features.size\r\n style_features[i][layer] = gram\r\n\r\n ###################################################################\r\n \r\n initial_content_noise_coeff = 1.0 - initial_noiseblend\r\n \r\n # !!!!!!!!!!!!!! Creation de l'image de Sortie !!!!!!!!!!!!!!!!!!!!!!!! #\r\n \r\n with tf.Graph().as_default():\r\n if initial is None:\r\n noise = np.random.normal(size=shape, scale=np.std(content) * 0.1)\r\n initial = tf.random_normal(shape) * 0.256 \r\n \r\n else:\r\n initial = np.array([vgg.preprocess(initial, vgg_mean_pixel)])\r\n initial = initial.astype('float32')\r\n noise = np.random.normal(size=shape, scale=np.std(content) * 0.1)\r\n initial = (initial) * initial_content_noise_coeff + (tf.random_normal(shape) * 0.256) * (1.0 - initial_content_noise_coeff)\r\n \r\n \r\n image = tf.Variable(initial)\r\n net = vgg.net_preloaded(vgg_weights, image, pooling)\r\n \r\n # loss\r\n \r\n content_layers_weights = {}\r\n content_layers_weights['relu4_2'] = content_weight_blend\r\n content_layers_weights['relu5_2'] = 1.0 - content_weight_blend\r\n \r\n content_loss = 0\r\n content_losses = []\r\n \r\n for content_layer in CONTENT_LAYERS:\r\n content_losses.append(content_layers_weights[content_layer] * content_weight * (2 * tf.nn.l2_loss(\r\n net[content_layer] - content_features[content_layer]) / content_features[content_layer].size))\r\n \r\n content_loss += reduce(tf.add, content_losses)\r\n \r\n \r\n # style loss\r\n \r\n style_loss = 0\r\n for i in range(len(styles)):\r\n style_losses = []\r\n for style_layer in STYLE_LAYERS:\r\n layer = net[style_layer]\r\n _, height, width, number = map(lambda i: i.value, layer.get_shape())\r\n size = height * width * number\r\n feats = tf.reshape(layer, (-1, number))\r\n gram = tf.matmul(tf.transpose(feats), feats) / size\r\n style_gram = style_features[i][style_layer]\r\n style_losses.append(style_layers_weights[style_layer] * 2 * tf.nn.l2_loss(gram - style_gram) / style_gram.size)\r\n \r\n style_loss += style_weight * style_blend_weights[i] * reduce(tf.add, style_losses)\r\n \r\n tv_y_size = _tensor_size(image[:,1:,:,:])\r\n tv_x_size = _tensor_size(image[:,:,1:,:])\r\n tv_loss = tv_weight * 2 * ((tf.nn.l2_loss(image[:,1:,:,:] - image[:,:shape[1]-1,:,:]) / tv_y_size) + (tf.nn.l2_loss(image[:,:,1:,:] - image[:,:,:shape[2]-1,:]) / tv_x_size))\r\n \r\n # loss total\r\n loss = content_loss + style_loss + tv_loss\r\n \r\n #Initialisation de l'optimisateur\r\n train_step = tf.train.AdamOptimizer(learning_rate, beta1, beta2, epsilon).minimize(loss)\r\n \r\n def print_progress():\r\n stderr.write(' content loss: %g\\n' % content_loss.eval())\r\n stderr.write(' style loss: %g\\n' % style_loss.eval())\r\n stderr.write(' tv loss: %g\\n' % tv_loss.eval())\r\n stderr.write(' total loss: %g\\n' % loss.eval())\r\n \r\n \r\n # Optimisation\r\n \r\n best_loss = float('inf')\r\n best = None\r\n \r\n with tf.Session() as sess:\r\n sess.run(tf.global_variables_initializer())\r\n stderr.write('Optimization started...\\n')\r\n \r\n if (print_iterations and print_iterations != 0):\r\n print_progress()\r\n \r\n \r\n for i in range(iterations):\r\n stderr.write('Iteration %4d/%4d\\n' % (i + 1, iterations))\r\n train_step.run()\r\n last_step = (i == iterations - 1)\r\n \r\n if last_step or (print_iterations and i % print_iterations == 0):\r\n print_progress()\r\n\r\n \r\n if (checkpoint_iterations and i % checkpoint_iterations == 0) or last_step:\r\n this_loss = loss.eval()\r\n if this_loss < best_loss:\r\n best_loss = this_loss\r\n best = image.eval()\r\n \r\n img_out = vgg.unprocess(best.reshape(shape[1:]), vgg_mean_pixel)\r\n \r\n if preserve_colors and preserve_colors == True:\r\n original_image = np.clip(content, 0, 255)\r\n styled_image = np.clip(img_out, 0, 255)\r\n \r\n \r\n \r\n # Les differents etapes de transfert de luminosite et de couleurs...\r\n # 1) conversion de l'image stylisee rgb en grayscale\r\n # 2) conversion du grayscale stylisee en YUV ( voir https://fr.wikipedia.org/wiki/YUV) pour plus d'info\r\n # 3) conversion de l'image originale en YUV\r\n # 4) on reassemble stylizedYUV.Y , originalYUV.U, originalYUV.V\r\n # 5) Conversion de l'image reassemblee YUV en RGB\r\n \r\n # 1)\r\n \r\n styled_grayscale = rgb2gray(styled_image)\r\n styled_grayscale_rgb = gray2rgb(styled_grayscale)\r\n \r\n # 2)\r\n styled_grayscale_yuv = np.array(Image.fromarray(styled_grayscale_rgb.astype(np.uint8)).convert('YCbCr'))\r\n \r\n # 3)\r\n original_yuv = np.array(Image.fromarray(original_image.astype(np.uint8)).convert('YCbCr'))\r\n \r\n # 4)\r\n w, h, _ = original_image.shape\r\n combined_yuv = np.empty((w, h, 3), dtype=np.uint8)\r\n combined_yuv[..., 0] = styled_grayscale_yuv[..., 0]\r\n combined_yuv[..., 1] = original_yuv[..., 1]\r\n combined_yuv[..., 2] = original_yuv[..., 2]\r\n \r\n # 5)\r\n img_out = np.array(Image.fromarray(combined_yuv, 'YCbCr').convert('RGB'))\r\n \r\n \r\n yield(\r\n (None if last_step else i),\r\n img_out\r\n \r\n )\r\n \r\n ","repo_name":"gabrielmougard/neural-filter","sub_path":"stylize.py","file_name":"stylize.py","file_ext":"py","file_size_in_byte":10469,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"21837860711","text":"import apt_pkg\nimport datetime\nimport fcntl\nimport os\nimport select\n\nimport daklib.daksubprocess\n\ntry:\n _MAXFD = os.sysconf(\"SC_OPEN_MAX\")\nexcept:\n _MAXFD = 256\n\nclass GpgException(Exception):\n pass\n\nclass _Pipe(object):\n \"\"\"context manager for pipes\n\n Note: When the pipe is closed by other means than the close_r and close_w\n methods, you have to set self.r (self.w) to None.\n \"\"\"\n def __enter__(self):\n (self.r, self.w) = os.pipe()\n return self\n def __exit__(self, type, value, traceback):\n self.close_w()\n self.close_r()\n return False\n def close_r(self):\n \"\"\"close reading side of the pipe\"\"\"\n if self.r:\n os.close(self.r)\n self.r = None\n def close_w(self):\n \"\"\"close writing part of the pipe\"\"\"\n if self.w:\n os.close(self.w)\n self.w = None\n\nclass SignedFile(object):\n \"\"\"handle files signed with PGP\n\n The following attributes are available:\n contents - string with the content (after removing PGP armor)\n valid - Boolean indicating a valid signature was found\n weak_signature - signature uses a weak algorithm (e.g. SHA-1)\n fingerprint - fingerprint of the key used for signing\n primary_fingerprint - fingerprint of the primary key associated to the key used for signing\n \"\"\"\n def __init__(self, data, keyrings, require_signature=True, gpg=\"/usr/bin/gpg\"):\n \"\"\"\n @param data: string containing the message\n @param keyrings: sequence of keyrings\n @param require_signature: if True (the default), will raise an exception if no valid signature was found\n @param gpg: location of the gpg binary\n \"\"\"\n self.gpg = gpg\n self.keyrings = keyrings\n\n self.valid = False\n self.expired = False\n self.invalid = False\n self.weak_signature = False\n self.fingerprints = []\n self.primary_fingerprints = []\n self.signature_ids = []\n\n self._verify(data, require_signature)\n\n @property\n def fingerprint(self):\n assert len(self.fingerprints) == 1\n return self.fingerprints[0]\n\n @property\n def primary_fingerprint(self):\n assert len(self.primary_fingerprints) == 1\n return self.primary_fingerprints[0]\n\n @property\n def signature_id(self):\n assert len(self.signature_ids) == 1\n return self.signature_ids[0]\n\n def _verify(self, data, require_signature):\n with _Pipe() as stdin:\n with _Pipe() as contents:\n with _Pipe() as status:\n with _Pipe() as stderr:\n pid = os.fork()\n if pid == 0:\n self._exec_gpg(stdin.r, contents.w, stderr.w, status.w)\n else:\n stdin.close_r()\n contents.close_w()\n stderr.close_w()\n status.close_w()\n\n read = self._do_io([contents.r, stderr.r, status.r], {stdin.w: data})\n stdin.w = None # was closed by _do_io\n\n (pid_, exit_code, usage_) = os.wait4(pid, 0)\n\n self.contents = read[contents.r]\n self.status = read[status.r]\n self.stderr = read[stderr.r]\n\n if self.status == \"\":\n raise GpgException(\"No status output from GPG. (GPG exited with status code %s)\\n%s\" % (exit_code, self.stderr))\n\n for line in self.status.splitlines():\n self._parse_status(line)\n\n if self.invalid:\n self.valid = False\n\n if require_signature and not self.valid:\n raise GpgException(\"No valid signature found. (GPG exited with status code %s)\\n%s\" % (exit_code, self.stderr))\n\n assert len(self.fingerprints) == len(self.primary_fingerprints)\n assert len(self.fingerprints) == len(self.signature_ids)\n\n def _do_io(self, read, write):\n for fd in write.keys():\n old = fcntl.fcntl(fd, fcntl.F_GETFL)\n fcntl.fcntl(fd, fcntl.F_SETFL, old | os.O_NONBLOCK)\n\n read_lines = dict( (fd, []) for fd in read )\n write_pos = dict( (fd, 0) for fd in write )\n\n read_set = list(read)\n write_set = write.keys()\n while len(read_set) > 0 or len(write_set) > 0:\n r, w, x_ = select.select(read_set, write_set, ())\n for fd in r:\n data = os.read(fd, 4096)\n if data == \"\":\n read_set.remove(fd)\n read_lines[fd].append(data)\n for fd in w:\n data = write[fd][write_pos[fd]:]\n if data == \"\":\n os.close(fd)\n write_set.remove(fd)\n else:\n bytes_written = os.write(fd, data)\n write_pos[fd] += bytes_written\n\n return dict( (fd, \"\".join(read_lines[fd])) for fd in read_lines.keys() )\n\n def _parse_timestamp(self, timestamp, datestring=None):\n \"\"\"parse timestamp in GnuPG's format\n\n @rtype: L{datetime.datetime}\n @returns: datetime object for the given timestamp\n \"\"\"\n # The old implementation did only return the date. As we already\n # used this for replay production, return the legacy value for\n # old signatures.\n if datestring is not None:\n year, month, day = datestring.split('-')\n date = datetime.date(int(year), int(month), int(day))\n time = datetime.time(0, 0)\n if date < datetime.date(2014, 8, 4):\n return datetime.datetime.combine(date, time)\n\n if 'T' in timestamp:\n raise Exception('No support for ISO 8601 timestamps.')\n return datetime.datetime.utcfromtimestamp(long(timestamp))\n\n def _parse_status(self, line):\n fields = line.split()\n if fields[0] != \"[GNUPG:]\":\n raise GpgException(\"Unexpected output on status-fd: %s\" % line)\n\n # VALIDSIG \n # \n # \n if fields[1] == \"VALIDSIG\":\n # GnuPG accepted MD5 as a hash algorithm until gnupg 1.4.20,\n # which Debian 8 does not yet include. We want to make sure\n # to not accept uploads covered by a MD5-based signature.\n # RFC 4880, table 9.4:\n # 1 - MD5\n # 2 - SHA-1\n # 3 - RIPE-MD/160\n if fields[9] == \"1\":\n raise GpgException(\"Digest algorithm MD5 is not trusted.\")\n if fields[9] in (\"2\", \"3\"):\n self.weak_signature = True\n\n self.valid = True\n self.fingerprints.append(fields[2])\n self.primary_fingerprints.append(fields[11])\n self.signature_timestamp = self._parse_timestamp(fields[4], fields[3])\n\n elif fields[1] == \"BADARMOR\":\n raise GpgException(\"Bad armor.\")\n\n elif fields[1] == \"NODATA\":\n raise GpgException(\"No data.\")\n\n elif fields[1] == \"DECRYPTION_FAILED\":\n raise GpgException(\"Decryption failed.\")\n\n elif fields[1] == \"ERROR\":\n raise GpgException(\"Other error: %s %s\" % (fields[2], fields[3]))\n\n elif fields[1] == \"SIG_ID\":\n self.signature_ids.append(fields[2])\n\n elif fields[1] in ('PLAINTEXT', 'GOODSIG', 'KEY_CONSIDERED',\n 'NEWSIG', 'NOTATION_NAME', 'NOTATION_FLAGS',\n 'NOTATION_DATA', 'SIGEXPIRED', 'KEYEXPIRED',\n 'POLICY_URL', 'PROGRESS'):\n pass\n\n elif fields[1] in ('EXPSIG', 'EXPKEYSIG'):\n self.expired = True\n self.invalid = True\n\n elif fields[1] in ('REVKEYSIG', 'BADSIG', 'ERRSIG', 'KEYREVOKED', 'NO_PUBKEY'):\n self.invalid = True\n\n else:\n raise GpgException(\"Keyword '{0}' from GnuPG was not expected.\".format(fields[1]))\n\n def _exec_gpg(self, stdin, stdout, stderr, statusfd):\n try:\n if stdin != 0:\n os.dup2(stdin, 0)\n if stdout != 1:\n os.dup2(stdout, 1)\n if stderr != 2:\n os.dup2(stderr, 2)\n if statusfd != 3:\n os.dup2(statusfd, 3)\n for fd in range(4):\n old = fcntl.fcntl(fd, fcntl.F_GETFD)\n fcntl.fcntl(fd, fcntl.F_SETFD, old & ~fcntl.FD_CLOEXEC)\n os.closerange(4, _MAXFD)\n\n args = [self.gpg,\n \"--status-fd=3\",\n \"--no-default-keyring\",\n \"--batch\",\n \"--no-tty\",\n \"--trust-model\", \"always\",\n \"--fixed-list-mode\"]\n for k in self.keyrings:\n args.extend([\"--keyring\", k])\n args.extend([\"--decrypt\", \"-\"])\n\n os.execvp(self.gpg, args)\n finally:\n os._exit(1)\n\n def contents_sha1(self):\n return apt_pkg.sha1sum(self.contents)\n\ndef sign(infile, outfile, keyids=[], inline=False, pubring=None, secring=None, homedir=None, passphrase_file=None):\n args = [\n '/usr/bin/gpg',\n '--no-options', '--no-tty', '--batch', '--armour',\n '--personal-digest-preferences', 'SHA256',\n ]\n\n for keyid in keyids:\n args.extend(['--local-user', keyid])\n if pubring is not None:\n args.extend(['--keyring', pubring])\n if secring is not None:\n args.extend(['--secret-keyring', secring])\n if homedir is not None:\n args.extend(['--homedir', homedir])\n if passphrase_file is not None:\n args.extend(['--pinentry-mode', 'loopback',\n '--passphrase-file', passphrase_file])\n\n args.append('--clearsign' if inline else '--detach-sign')\n\n daklib.daksubprocess.check_call(args, stdin=infile, stdout=outfile)\n\n# vim: set sw=4 et:\n","repo_name":"purism/pdak","sub_path":"daklib/gpg.py","file_name":"gpg.py","file_ext":"py","file_size_in_byte":10059,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"36990237968","text":"import random\r\n\r\n\r\ntest_seed = int(input(\"Create a seed number: \"))\r\nrandom.seed(test_seed)\r\n\r\n# Obtain names here in a list\r\nnames_string = input(\"Give me everybody's names, separated by a comma. \")\r\nnames = names_string.split(\", \")\r\n\r\n\r\n# Logic to pick random person from the list \r\ncount = (len(names))\r\ntodays_pick = random.randint(0,count-1)\r\nbill_payer = (names[todays_pick])\r\nprint(f\"{bill_payer} is going to buy the meal today!\")","repo_name":"Divkat9/100_Days_Of_Python","sub_path":"whopaysthebill.py","file_name":"whopaysthebill.py","file_ext":"py","file_size_in_byte":437,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"30936888049","text":"from aiogram.dispatcher import FSMContext\nfrom aiogram.dispatcher.filters.state import State, StatesGroup\nfrom aiogram import types, Dispatcher\nfrom create_bot import dp, bot\nfrom aiogram.dispatcher.filters import Text\nfrom database import sqlite_db\nfrom keyboards import admin_kb\nfrom aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton\n\nID = None\n\nclass FSMadmin(StatesGroup):\n photo = State()\n name = State()\n description = State()\n price = State()\n # edit_photo = State()\n # edit_name = State()\n # edit_description = State()\n # edit_price = State()\n\n# @dp.message_handler(commands=['модератор'], is_chat_admin=True)\nasync def make_change_command(message:types.Message):\n global ID\n ID = message.from_user.id\n await bot.send_message(message.from_user.id, 'Что хозяин надо?', reply_markup=admin_kb.button_case_admin)\n await message.delete()\n\n# '''Начало диалога загрузки нового пункта меню'''\n# @dp.message_handler(commands='Загрузить', state=None)\nasync def cm_start(message: types.Message):\n if message.from_user.id == ID:\n await FSMadmin.photo.set()\n await message.reply('Загрузи фото')\n\n# '''Выход из состояний'''\n# @dp.message_handler(state=\"*\", commands='отмена')\n# @dp.message_handler(Text(equals='отмена',ignore_case=True), state=\"*\")\nasync def cancel_handler(message:types.Message, state=FSMContext):\n if message.from_user.id == ID:\n currentState = await state.get_state()\n if currentState is None:\n return\n await state.finish()\n await message.reply('Ok')\n\n# '''Ловим первый ответ и пишем в словарь'''\n# @dp.message_handler(content_types=['photo'], state=FSMadmin.photo)\nasync def load_photo(message: types.Message, state: FSMContext):\n if message.from_user.id == ID:\n async with state.proxy() as data:\n data['photo'] = message.photo[0].file_id\n await FSMadmin.next()\n await message.reply('Введите название ��ебаба')\n\nasync def load_name(message: types.Message, state: FSMContext):\n if message.from_user.id == ID:\n async with state.proxy() as data:\n data['name'] = message.text\n await FSMadmin.next()\n await message.reply('Введите описание')\n\n# '''Ловим третий ответ'''\n# @dp.message_handler(state=FSMadmin.description)\nasync def load_description(message:types.Message, state:FSMContext):\n if message.from_user.id == ID:\n async with state.proxy() as data:\n data['description'] = message.text\n await FSMadmin.next()\n await message.reply('Введите цену')\n\n# '''Ловим четвертый ответ'''\n# @dp.message_handler(state=FSMadmin.price)\nasync def load_price(message:types.Message, state:FSMContext):\n if message.from_user.id == ID:\n async with state.proxy() as data:\n data['price'] = float(message.text)\n await sqlite_db.sql_add_command(state)\n await state.finish()\n\n# @dp.message_handler(commands='Поменять позицию')\n# async def change_position(message: types.Message):\n# if message.from_user.id == ID:\n# read = await sqlite_db.sql_read2()\n# if len(read) > 0:\n# for ret in read:\n# await bot.send_photo(message.from_user.id, ret[0], f'{ret[1]}\\nОписание: {ret[2]}\\nЦена {ret[-1]}')\n# await bot.send_message(message.from_user.id, text='^^^', reply_markup=InlineKeyboardMarkup().add(InlineKeyboardButton(f'Изменить {ret[1]}', callback_data=f'change {ret[1]}')))\n# else:\n# await bot.send_message(message.from_user.id, 'У вас пустое меню') \n\n# @dp.callback_query_handler(lambda x: x.data and x.data.startswith('change '))\n# async def change_data_item(callback: types.CallbackQuery, ):\n# if message.from_user.id == ID:\n# read = await sqlite_db.sql_read2()\n# if len(read) > 0:\n# for ret in read:\n# await bot.send_photo(message.from_user.id, ret[0], f'{ret[1]}\\nОписание: {ret[2]}\\nЦена {ret[-1]}')\n# await bot.send_message(message.from_user.id, text='^^^', reply_markup=InlineKeyboardMarkup().add(InlineKeyboardButton(f'Удалить {ret[1]}', callback_data=f'del {ret[1]}')))\n# else:\n# await bot.send_message(message.from_user.id, 'У вас пустое меню')\n\n\n# @dp.message_handler(commands='Удалить')\nasync def delete_item(message: types.Message):\n if message.from_user.id == ID:\n read = await sqlite_db.sql_read2()\n if len(read) > 0:\n for ret in read:\n await bot.send_photo(message.from_user.id, ret[0], f'{ret[1]}\\nОписание: {ret[2]}\\nЦена {ret[-1]}')\n await bot.send_message(message.from_user.id, text='^^^', reply_markup=InlineKeyboardMarkup().add(InlineKeyboardButton(f'Удалить {ret[1]}', callback_data=f'del {ret[1]}')))\n else:\n await bot.send_message(message.from_user.id, 'У вас пустое меню') \n\n@dp.callback_query_handler(lambda x: x.data and x.data.startswith('del '))\nasync def del_callback_run(callback_query: types.CallbackQuery):\n await sqlite_db.sql_delete_command(callback_query.data.replace('del ', '')) #{ret[1]}\n await callback_query.answer(text=f'{callback_query.data.replace(\"del \", \"\")} удалена.', show_alert=True)\n\n# async def edit_item(message: types.Message):\n# if message.from_user.id == ID:\n# read = await sqlite_db.sql_read2()\n# if len(read) > 0:\n# for ret in read:\n# await bot.send_photo(message.from_user.id, ret[0], f'{ret[1]}\\nОписание: {ret[2]}\\nЦена {ret[-1]}')\n# await bot.send_message(message.from_user.id, text='^^^', reply_markup=InlineKeyboardMarkup().add(InlineKeyboardButton(f'Изменить {ret[1]}', callback_data=f'edit {ret[1]}')))\n# else:\n# await bot.send_message(message.from_user.id, 'У вас пустое меню') \n\n# # @dp.callback_query_handler(lambda x: x.data and x.data.startswith('del '))\n\n# async def edit_callback_run(message:types.Message, callback_query: types.CallbackQuery, state=FSMContext):\n# async with state.proxy() as data:\n# data['name'] = message.text\n# await sqlite_db.sql_edit_title(callback_query.data.replace('edit ', ''), callback_query.data)\n\n\nasync def empty(message:types.Message):\n await message.answer('Нет такой команды')\n await message.delete()\n\n#Регистрируем хэндлеры\ndef register_handlers_admin(dp : Dispatcher):\n dp.register_message_handler(cm_start, commands=['Загрузить'])\n dp.register_message_handler(cancel_handler, state='*', commands='отмена')\n dp.register_message_handler(cancel_handler, Text(equals='отмена', ignore_case=True), state='*')\n dp.register_message_handler(load_photo, content_types=['photo'], state=FSMadmin.photo) \n dp.register_message_handler(load_name, state=FSMadmin.name)\n dp.register_message_handler(load_description, state=FSMadmin.description)\n dp.register_message_handler(load_price, state=FSMadmin.price)\n dp.register_message_handler(make_change_command, commands=['модератор'], is_chat_admin=True)\n # dp.register_callback_query_handler(del_callback_run, lambda x: x.data and x.data.startswith('del '), is_chat_admin=True)\n # dp.register_callback_query_handler(del_callback_run, lambda x: x.data and x.data.startswith('del '), is_chat_admin=True)\n dp.register_callback_query_handler(del_callback_run, lambda x: x.data and x.data.startswith('del '))\n dp.register_message_handler(delete_item, commands=['Удалить'])\n # dp.register_callback_query_handler(edit_callback_run, lambda x: x.data and x.data.startswith('edit '))\n # dp.register_message_handler(edit_item, commands=['Изменить_название'])\n dp.register_message_handler(empty)","repo_name":"NortherNomad/stuff","sub_path":"handlers/admin.py","file_name":"admin.py","file_ext":"py","file_size_in_byte":8153,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3332664758","text":"\nfrom cgi import print_arguments\nimport numbers\nimport sqlite3\nimport random\nfrom matplotlib.pyplot import connect\n\ndef quest(query):\n answers = []\n cursor.execute(query)\n stroka = cursor.fetchall()\n question = (stroka[0])[0]\n right_answer = (stroka[0])[-2]\n answers = list((stroka[0])[1:-2])\n\n return question ,answers,right_answer\n\nfor database_Title in range(1,5+1):\n connection = sqlite3.connect(database=str(database_Title))\n cursor = connection.cursor()\n cursor.execute('select count (*) from questions')\n count = cursor.fetchall()\n count = count[0] \n number_of_questions = int(count[0]) - 1 \n print(f'на этом уровне уже будет {number_of_questions} вы точно готовы?')\n print('{0:*^50}'.format('yes/no'))\n exit = input()\n if exit == 'no':\n break\n query = f'select * from questions where id={random.randint(1,number_of_questions)};'\n q,ans,r_ans = quest(query)\n print('{0:*^50}'.format(q))\n print('{0:*<50}'.format('теперь вам нужно выбрать номер правильного ответа'))\n print(ans)\n b = int(input())\n if b == r_ans:\n if i == 5:\n print('ну эт самое, мои поздравления')\n else: \n print('{0:*^50}'.format('красавчик'))\n print('{0:*^50}'.format('идем на следующий уровень'))\n #loading()\n else:\n print('{0:*^50}'.format('упсссс'))\n break\n\n\ncursor.close()\nconnection.close()\n\n","repo_name":"bob4inski/python-with-albert","sub_path":"socccet/dd.py","file_name":"dd.py","file_ext":"py","file_size_in_byte":1565,"program_lang":"python","lang":"ru","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"40447116732","text":"#Import Library OpenCV\r\nimport cv2\r\n\r\n#Membuka file cascade.xml\r\nface_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')\r\n\r\n#Membaca input foto\r\nimg = cv2.imread('IMG4.jpg')\r\n\r\n#Konversi kedalam greyscale\r\ngray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\r\n\r\n#Deteksi wajah\r\nfaces = face_cascade.detectMultiScale(gray, 1.25, 4)\r\n\r\n#Kotak Persegi\r\nfor (x, y, w, h) in faces:\r\n\tcv2.rectangle(img, (x,y), (x+w, y+h), (0,0,255), 2)\r\n\r\n#Output\r\ncv2.imshow('img', img)\r\ncv2.waitKey()","repo_name":"mannaufal/Face-Detection","sub_path":"face_detection/face_detect.py","file_name":"face_detect.py","file_ext":"py","file_size_in_byte":492,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"26215050348","text":"import os\nfrom django.conf import settings\n\n\nBASE_DIR = os.path.dirname(os.path.dirname(\n os.path.dirname(os.path.abspath(__file__))))\nSECRET_KEY = '-05sgp9!deq=q1nltm@^^2cc+v29i(tyybv3v2t77qi66czazj'\nDEBUG = True\nALLOWED_HOSTS = []\n\nINSTALLED_APPS = [\n 'django.contrib.admin',\n 'django.contrib.auth',\n 'django.contrib.contenttypes',\n 'django.contrib.sessions',\n 'django.contrib.messages',\n 'django.contrib.staticfiles',\n 'core',\n 'corsheaders',\n # auth\n 'django.contrib.sites',\n 'allauth',\n 'allauth.account',\n 'allauth.socialaccount',\n 'allauth.socialaccount.providers.facebook',\n 'crispy_forms',\n 'django_countries',\n\n # aws\n 'storages',\n]\nSITE_ID = 1\n\n\n# CRISPY FORMS\n\nCRISPY_TEMPLATE_PACK = 'bootstrap4'\n\nMIDDLEWARE = [\n 'django.middleware.security.SecurityMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.common.CommonMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.contrib.messages.middleware.MessageMiddleware',\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'home.urls'\n\nTEMPLATES = [\n {\n 'BACKEND': 'django.template.backends.django.DjangoTemplates',\n 'DIRS': [os.path.join(BASE_DIR, 'templates')],\n 'APP_DIRS': True,\n 'OPTIONS': {\n 'context_processors': [\n 'django.template.context_processors.debug',\n 'django.template.context_processors.request',\n 'django.contrib.auth.context_processors.auth',\n 'django.contrib.messages.context_processors.messages',\n ],\n },\n },\n]\n\nLANGUAGE_CODE = 'en-us'\nTIME_ZONE = 'Asia/Dhaka'\nUSE_I18N = True\nUSE_L10N = True\nUSE_TZ = True\n\nSTATIC_URL = '/static/'\nSTATICFILES_DIRS = [os.path.join(BASE_DIR, 'static_files')]\nSTATIC_ROOT = os.path.join(BASE_DIR, 'static')\nMEDIA_URL = '/image/'\nMEDIA_ROOT = os.path.join(BASE_DIR, 'static_files/image')\nSITE_ID = 1\n\n\nAUTHENTICATION_BACKENDS = (\n\n # Needed to login by username in Django admin, regardless of `allauth`\n 'django.contrib.auth.backends.ModelBackend',\n\n # `allauth` specific authentication methods, such as login by e-mail\n 'allauth.account.auth_backends.AuthenticationBackend',\n\n)\n\nCSRF_COOKIE_NAME = \"csrftoken\"\n\nACCOUNT_UNIQUE_EMAIL = False\nACCOUNT_EMAIL_REQUIRED = False\nACCOUNT_AUTHENTICATION_METHOD = 'username'\nACCOUNT_EMAIL_VERIFICATION = 'none'\nLOGIN_REDIRECT_URL = '/'\n","repo_name":"rakib06/pochonder-shob","sub_path":"home/settings/base.py","file_name":"base.py","file_ext":"py","file_size_in_byte":2536,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"35982351515","text":"import math\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\ny = [0, 0.1, 0.2, 0.5, 1, 2.5, 3, 3.5, 4, 4.5, 5]\r\nx = [0, 20, 40, 100, 200, 500, 600, 700, 800, 900, 1000]\r\n\r\n\r\nplt.errorbar(x, y, xerr=0, yerr=0, marker='.', ls=\"\")\r\nk = np.polyfit(x, y, 1)\r\n\r\nprint(\"Угол наклона:\")\r\nprint(k)\r\n\r\ny_ = np.polyval(k, x)\r\nplt.plot(x, y_, 'c-')\r\nplt.tick_params(axis='both', which='major', labelsize=6)\r\nplt.title(\"График калибровки шага мотора\", fontsize = 14)\r\nplt.ylabel(\"Смещения трубки Пито, см\", fontsize = 8) # ось абсцисс\r\nplt.xlabel(\"Количество шагов мотора\", fontsize = 8) # ось ординат\r\nplt.grid()\r\nplt.savefig('график_1')\r\nplt.show()\r\n\r\n\r\n ","repo_name":"Danilov2003/test-repo","sub_path":"jet/scripts/len.py","file_name":"len.py","file_ext":"py","file_size_in_byte":757,"program_lang":"python","lang":"ru","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"74637017885","text":"\"\"\"Represent local and remote files and their metadata.\n\nSee module dcqc.target for the multi-file target class.\n\nClasses:\n\n FileType: For collecting file type-specific information.\n File: For bundling file location and metadata as well as\n operations for retrieving file contents.\n\"\"\"\n\nfrom __future__ import annotations\n\nimport glob\nimport os\nfrom collections.abc import Collection, Mapping\nfrom copy import deepcopy\nfrom dataclasses import dataclass\nfrom pathlib import Path\nfrom tempfile import gettempdir, mkdtemp\nfrom typing import Any, ClassVar, Optional\nfrom warnings import warn\n\nfrom fs.base import FS\n\nfrom dcqc.mixins import SerializableMixin, SerializedObject\nfrom dcqc.utils import is_url_local, open_parent_fs\n\n\n@dataclass\nclass FileType:\n \"\"\"Bundle information for a given file type.\"\"\"\n\n _registry: ClassVar[dict[str, FileType]]\n _registry = dict()\n\n name: str\n file_extensions: tuple[str, ...]\n edam_iri: Optional[str]\n\n def __init__(\n self,\n name: str,\n file_extensions: Collection[str],\n edam_iri: Optional[str] = None,\n ):\n \"\"\"Construct a FileType object.\n\n Args:\n name: File type name.\n file_extensions: Valid file extensions.\n edam_iri: EDAM format ontology identifier.\n \"\"\"\n self.name = name\n self.file_extensions = tuple(file_extensions)\n self.edam_iri = edam_iri\n self.register_file_type()\n\n def register_file_type(self) -> None:\n \"\"\"Register instantiated file type for later retrieval.\n\n Raises:\n ValueError: If the file type's name has already\n been registered previously.\n \"\"\"\n name = self.name.lower()\n if name in self._registry:\n message = f\"File type ({name}) is already registered ({self._registry}).\"\n raise ValueError(message)\n self._registry[name] = self\n\n @classmethod\n def list_file_types(cls) -> list[FileType]:\n \"\"\"Retrieve all available file type objects.\n\n Returns:\n The full list of file type objects.\n \"\"\"\n return list(cls._registry.values())\n\n @classmethod\n def get_file_type(cls, file_type: str) -> FileType:\n \"\"\"Retrieve file type object based on its name.\n\n Args:\n file_type: File type name.\n\n Raises:\n ValueError: If the given file type name has\n not been registered previously.\n\n Returns:\n The file type object with the given name.\n \"\"\"\n file_type = file_type.lower()\n if file_type not in cls._registry:\n types = list(cls._registry)\n message = f\"File type ({file_type}) not among available options ({types}).\"\n raise ValueError(message)\n return cls._registry[file_type]\n\n\n# TODO: These file types could be moved to an external file\n# Instantiated file types are automatically tracked by the FileType class\nFileType(\"*\", (), \"format_1915\") # To represent all file types\nFileType(\"TXT\", (\".txt\",), \"format_1964\")\nFileType(\"JSON\", (\".json\",), \"format_3464\")\nFileType(\"JSON-LD\", (\".jsonld\",), \"format_3749\")\nFileType(\"TIFF\", (\".tif\", \".tiff\", \".svs\", \".scn\"), \"format_3591\")\nFileType(\"OME-TIFF\", (\".ome.tif\", \".ome.tiff\"), \"format_3727\")\nFileType(\"TSV\", (\".tsv\"), \"format_3475\")\nFileType(\"CSV\", (\".csv\"), \"format_3752\")\nFileType(\"BAM\", (\".bam\"), \"format_2572\")\nFileType(\"FASTQ\", (\".fastq\", \".fastq.gz\", \".fq\", \".fq.gz\"), \"format_1930\")\nFileType(\"HDF5\", (\".hdf\", \".hdf5\", \".h5\", \".he5\", \".h5ad\"), \"format_3590\")\n\n\n# TODO: Leverage post-init function in dataclasses\n@dataclass\nclass File(SerializableMixin):\n \"\"\"Construct a File object.\n\n Args:\n url: Local or remote location of a file.\n metadata: File metadata.\n relative_to: Used to update any local URLs if they\n are relative to a directory other than the\n current work directory (default).\n \"\"\"\n\n tmp_dir: ClassVar[str] = \"dcqc-staged-\"\n\n _serialized_properties = [\"name\", \"local_path\"]\n\n url: str\n metadata: dict[str, Any]\n type: str\n\n def __init__(\n self,\n url: str,\n metadata: Optional[Mapping[str, Any]] = None,\n relative_to: Optional[Path] = None,\n local_path: Optional[Path] = None,\n ):\n self.url = self._relativize_url(url, relative_to)\n metadata = metadata or dict()\n self.metadata = dict(metadata)\n self.type = self._pop_file_type()\n\n self._fs: Optional[FS]\n self._fs = None\n self._fs_path: Optional[str]\n self._fs_path = None\n self._name: Optional[str]\n self._name = None\n self._local_path: Optional[Path]\n self._local_path = local_path\n\n def __hash__(self):\n return hash((self.url, self.type, tuple(self.metadata.items())))\n\n def __eq__(self, other):\n return hash(self) == hash(other)\n\n def _relativize_url(self, url: str, relative_to: Optional[Path]) -> str:\n \"\"\"Update local URLs if relative to a directory other than CWD.\n\n Args:\n url: Local or remote location of a file.\n relative_to: Used to update any local URLs if they\n are relative to a directory other than the\n current work directory (default).\n\n Returns:\n The relativized URL.\n \"\"\"\n if self.is_url_local(url):\n relative_to = relative_to or Path.cwd()\n scheme, separator, resource = url.rpartition(\"://\")\n path = Path(resource)\n if not path.is_absolute():\n resource = os.path.relpath(relative_to / resource)\n url = f\"{scheme}{separator}{resource}\"\n elif not self.is_url_local(url) and relative_to is not None:\n message = f\"URL ({url}) is remote. Ignoring relative_to ({relative_to}).\"\n warn(message)\n return url\n\n def _pop_file_type(self) -> str:\n \"\"\"Extract and remove file type from metadata.\n\n This function defaults to the generic file type\n (\"*\") if the key is absent from the metadata.\n\n Returns:\n The name of the file type in the metadata.\n \"\"\"\n file_type = self.metadata.pop(\"file_type\", \"*\")\n return file_type\n\n def _init_fs(self) -> tuple[FS, str]:\n \"\"\"Initialize file system to access URL.\n\n All queries with this file system should use\n `self._fs_path` as the path, not `self.url`.\n\n Returns:\n A file system + basename pair.\n \"\"\"\n fs, fs_path = open_parent_fs(self.url)\n self._fs_path = fs_path\n self._fs = fs\n return fs, fs_path\n\n @property\n def local_path(self) -> Path:\n \"\"\"Retrieve the path to a local copy if available.\n\n Raises:\n FileNotFoundError: If a remote file has not been\n staged yet and thus has no local copy.\n\n Returns:\n The path to the local copy or `None` if unavailable.\n \"\"\"\n if self._local_path is None and self.is_url_local():\n _local_path = self.fs.getsyspath(self.fs_path)\n self._local_path = Path(_local_path)\n if self._local_path is None:\n message = \"Local path is unavailable. Use stage() to create a local copy.\"\n raise FileNotFoundError(message)\n return self._local_path\n\n @property\n def fs(self) -> FS:\n \"\"\"The file system that can access the URL.\"\"\"\n fs = self._fs\n if fs is None:\n fs, _ = self._init_fs()\n return fs\n\n @property\n def fs_path(self) -> str:\n \"\"\"The path that can be used with the file system.\"\"\"\n fs_path = self._fs_path\n if fs_path is None:\n _, fs_path = self._init_fs()\n return fs_path\n\n @property\n def name(self) -> str:\n \"\"\"The file name according to the file system.\"\"\"\n if self._name is None:\n info = self.fs.getinfo(self.fs_path)\n self._name = info.name\n return self._name\n\n def get_file_type(self) -> FileType:\n \"\"\"Retrieve the relevant file type object.\n\n Returns:\n FileType: File type object\n \"\"\"\n return FileType.get_file_type(self.type)\n\n def get_metadata(self, key: str) -> Any:\n \"\"\"Retrieve file metadata using a key.\n\n Args:\n key: Metadata key name.\n\n Raises:\n KeyError: If the metadata key doesn't exist.\n\n Returns:\n The metadata value associated with the given key.\n \"\"\"\n if key not in self.metadata:\n url = self.url\n md = self.metadata\n message = f\"File ({url}) does not have '{key}' in its metadata ({md}).\"\n raise KeyError(message)\n return self.metadata[key]\n\n def is_url_local(self, url: Optional[str] = None) -> bool:\n \"\"\"Check whether a URL refers to a local location.\n\n Args:\n url: Local or remote location of a file.\n Defaults to URL associated with file.\n\n Returns:\n Whether the URL refers to a local location.\n \"\"\"\n url = url or self.url\n return is_url_local(url)\n\n def is_file_local(self) -> bool:\n \"\"\"Check if the file (or a copy) is available locally.\n\n Unlike :func:`~dcqc.file.File.is_url_local`, this method\n considers if a locally staged copy is available regardless\n of whether the URL is local or remote.\n\n To retrieve the location of the local copy, you can use\n :attr:`~dcqc.file.File.local_path\n\n Returns:\n Whether the file has a copy available locally.\n \"\"\"\n return self._local_path is not None\n\n def already_staged(self) -> list[Path]:\n \"\"\"Check if the target file has already been staged to the remote directory.\n\n Returns:\n staged_file_paths (list): List of already staged file paths.\n Empty list if file has not been staged.\n\n Raises:\n FileExistsError: If the file has already been staged more than once.\n This would cause a name collision in Nextflow.\n \"\"\"\n path_str = os.path.join(gettempdir(), self.tmp_dir + \"*\", self.name)\n staged_file_strs = glob.glob(path_str)\n staged_file_paths = [Path(path) for path in staged_file_strs]\n if len(staged_file_paths) > 1:\n message = (\n f\"File has already been staged multiple times: {staged_file_paths}\"\n )\n raise FileExistsError(message)\n return staged_file_paths\n\n def stage(\n self,\n destination: Optional[Path] = None,\n overwrite: bool = False,\n ) -> Path:\n \"\"\"Create local copy of local or remote file.\n\n A destination is not required for remote files; it\n defaults to a temporary directory.\n Local files aren't moved if a destination is omitted.\n\n Args:\n destination: File or folder where to store the file.\n Defaults to None.\n overwrite: Whether to ignore existing file at the\n target destination. Defaults to False.\n\n Raises:\n ValueError: If the parent directory of the\n destination does not exist.\n FileExistsError: If the destination file already\n exists and ``overwrite`` was not enabled.\n\n Returns:\n The path of the local copy.\n \"\"\"\n if not destination:\n if self._local_path is not None:\n return self._local_path\n else:\n # check if file has already been staged\n staged_files = self.already_staged()\n if not staged_files:\n destination_str = mkdtemp(prefix=self.tmp_dir)\n destination = Path(destination_str)\n else:\n destination = staged_files[0]\n self._local_path = destination\n return destination\n\n # By this point, destination is defined (not None)\n if destination.is_dir():\n destination = destination / self.name\n\n if not destination.parent.exists():\n dest = str(destination)\n message = f\"Parent folder of destination ({dest}) does not exist.\"\n raise ValueError(message)\n\n if destination.exists() and not overwrite:\n dest = str(destination)\n message = f\"Destination ({dest}) already exists. Enable overwrite.\"\n raise FileExistsError(message)\n\n # By this point, the file either doesn't exist or overwrite is enabled\n destination.unlink(missing_ok=True)\n\n if self._local_path and self.is_url_local():\n destination.symlink_to(self._local_path.resolve())\n else:\n with destination.open(\"wb\") as dest_file:\n self.fs.download(self.fs_path, dest_file)\n\n self._local_path = destination\n return destination\n\n @classmethod\n def from_dict(cls, dictionary: SerializedObject) -> File:\n \"\"\"Deserialize a dictionary into a file.\n\n Args:\n dictionary: A serialized file object.\n\n Returns:\n The reconstructed file object.\n \"\"\"\n dictionary = deepcopy(dictionary)\n\n file_type = dictionary.pop(\"type\")\n dictionary[\"metadata\"][\"file_type\"] = file_type\n\n if dictionary[\"local_path\"] is not None:\n dictionary[\"local_path\"] = Path(dictionary[\"local_path\"])\n\n # Ignore serialized name since it's a dynamically-computed property\n dictionary.pop(\"name\", None)\n\n return cls(**dictionary)\n","repo_name":"Sage-Bionetworks-Workflows/py-dcqc","sub_path":"src/dcqc/file.py","file_name":"file.py","file_ext":"py","file_size_in_byte":13727,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"26724778386","text":"#########\n# title: pyMCDSts.py\n#\n# language: python3\n# date: 2022-08-22\n# license: BSD-3-Clause\n# authors: Patrick Wall, Randy Heiland, Paul Macklin, Elmar Bucher\n#\n# description:\n# pyMCDSts.py defines an object class, able to load and access\n# within python a time series of mcds objects loaded from a single\n# PhysiCell model output directory. pyMCDSts.py was first forked from\n# PhysiCell-Tools python-loader, where it was implemented as\n# pyMCDS_timeseries.py, then totally rewritten and further developed.\n#\n# the make_image and make_movie functions are cloned from the PhysiCell\n# Makefile. note on difference image magick convert and mogrify:\n# + https://graphicsmagick-tools.narkive.com/9Sowc4HF/gm-tools-mogrify-vs-convert\n#########\n\n\n# load libraries\nimport os\nimport pathlib\nimport platform\nfrom .pyMCDS import pyMCDS\nimport xml.etree.ElementTree as ET\n\n# constants\nes_resize = {'*0.svg','*1.svg','*2.svg','*3.svg','*4.svg','*5.svg','*6.svg','*7.svg','*8.svg','*9.svg'} # only files matching this glob patterns will be resized\nls_glob = sorted(es_resize) + ['initial.svg','legend.svg']\n\n# classes\nclass pyMCDSts:\n \"\"\"\n input:\n output_path: string, default '.'\n relative or absolute path to the directory where\n the PhysiCell output files are stored.\n\n microenv: booler; default True\n should the microenvironment be extracted?\n setting microenv to False will use less memory and speed up\n processing, similar to the original pyMCDS_cells.py script.\n\n graph: boole; default True\n should the graphs be extracted?\n setting graph to False will use less memory and speed up processing.\n\n verbose: boole; default True\n setting verbose to False for less text output, while processing.\n\n output:\n mcdsts: pyMCDSts class instance\n this instance offers functions to process all stored time steps\n from a simulation. no data is fetched by initialization.\n\n description:\n pyMCDSts.__init__ generates a class instance and stores\n the input parameters. no data is fetched at initialization.\n the instance offers functions to process all time steps\n in the output_path directory.\n \"\"\"\n def __init__(self, output_path='.', microenv=True, graph=True, verbose=True):\n self.output_path = output_path\n self.microenv = microenv\n self.graph = graph\n self.verbose = verbose\n\n\n ## LOAD DATA\n def get_xmlfile_list(self):\n \"\"\"\n input:\n self: pyMCDSts class instance.\n\n output:\n xmlfile_list: list of strings\n alphanumerical sorted list of /path/to/output*.xml strings.\n\n description:\n function returns an alphanumerical (and as such chronological)\n ordered list of physicell xml path and output file names. the\n list can be manipulated and used as input for the\n mcdsts.read_mcds function.\n \"\"\"\n # bue 2022-10-22: is output*.xml always the correct pattern?\n ls_pathfile = [o_pathfile.as_posix() for o_pathfile in sorted(pathlib.Path(self.output_path).glob('output*.xml'))]\n return(ls_pathfile)\n\n\n def read_mcds(self, xmlfile_list=None):\n \"\"\"\n input:\n self: pyMCDSts class instance.\n\n xmlfile_list: list of strings; default None\n list of physicell output /path/to/output*.xml strings.\n\n output:\n l_mcds: list of mcds objects\n\n description:\n the function returns a list of mcds objects loaded by\n pyMCDS calls.\n \"\"\"\n # handle input\n if (xmlfile_list is None):\n xmlfile_list = self.get_xmlfile_list()\n\n # load mcds objects into list\n l_mcds = []\n for s_pathfile in xmlfile_list:\n mcds = pyMCDS(\n xmlfile = s_pathfile,\n microenv = self.microenv,\n graph = self.graph,\n verbose = self.verbose\n )\n l_mcds.append(mcds)\n if self.verbose:\n print() # carriage return\n\n # output\n return(l_mcds)\n\n\n ## TRANSFORM SVG\n def _handle_magick(self):\n \"\"\"\n input:\n self: pyMCDSts class instance.\n\n output:\n s_magick: string\n image magick command line command call\n\n description:\n internal function manipulates the command line command call,\n so that the call as well works on linux systems, which all\n too often run image magick < 7.0\n \"\"\"\n s_magick = 'magick '\n if (platform.system() in {'Linux'}) and (os.system('magick --version') != 0) and (os.system('convert --version') == 0):\n s_magick = ''\n return(s_magick)\n\n\n def _handle_resize(self, resize_factor=1):\n \"\"\"\n input:\n self: pyMCDSts class instance.\n\n resize_factor: floating point number; default 1\n to specify image magnification or scale down.\n the resize parameter will in any case be adjusted,\n so that the resulting image's height and width are\n integer divisible by 2. this is because of a\n ffmpeg constrain for generating a movie out of images.\n\n output:\n s_resize: string\n image magick command resize parameter setting.\n\n description:\n internal function returns image magick command\n resize parameter setting, which in any case, even when\n resize_factor is 1, will generate ffmpeg compatible images.\n \"\"\"\n # extract information from svg and resize\n tree = ET.parse(f'{self.output_path}/initial.svg')\n root = tree.getroot()\n r_width = float(root.get('width')) * resize_factor\n r_height = float(root.get('height')) * resize_factor\n # movie treat\n r_width = int(round(r_width / 2)) * 2\n r_height = int(round(r_height / 2)) * 2\n # output\n s_resize = f\"-resize '{r_width}!x{r_height}!'\"\n return(s_resize)\n\n\n def make_gif(self, resize_factor=1, giffile='timeseries.gif'):\n \"\"\"\n input:\n self: pyMCDSts class instance.\n\n giffile: string; default 'timeseries.gif'\n gif image filename.\n\n resize_factor: floating point number; default 1\n to specify image magnification or scale down.\n\n output:\n gif file in output_path directory.\n` additionally, the function will return the path and filename.\n\n description:\n this function generates a gif image from all snapshot svg files\n found in the output_path directory.\n \"\"\"\n s_magick = self._handle_magick()\n s_resize = self._handle_resize(resize_factor=resize_factor)\n\n # generate gif\n # bue: use convert, mogrify will cause troubles here!\n s_opathfile = f'{self.output_path}/{giffile}'\n os.system(f'{s_magick}convert {s_resize} {self.output_path}/snapshot*.svg {s_opathfile}')\n\n # output\n return(s_opathfile)\n\n\n def make_jpeg(self, resize_factor=1):\n \"\"\"\n input:\n self: pyMCDSts class instance.\n\n glob: string\n wildcard filename pattern.\n\n resize_factor: floating point number; default 1\n to specify image magnification or scale down.\n the resize parameter will in any case be adjusted,\n so that the resulting image's height and width are\n integer divisible by 2. this is because of a\n ffmpeg constrain for generating a movie out of images.\n\n output:\n jpeg files in output_path directory.\n\n description:\n this function generates jpeg image equivalents from all svg files\n found in the output_path directory.\n jpeg is by definition a lossy compressed image format.\n https://en.wikipedia.org/wiki/JPEG\n \"\"\"\n # bue: use mogrify, convert might cause troubles here!\n s_magick = self._handle_magick()\n s_resize = self._handle_resize(resize_factor=resize_factor)\n for s_glob in ls_glob:\n if (len(set(pathlib.Path(self.output_path).glob(s_glob))) > 0):\n if (s_glob in es_resize):\n os.system(f'{s_magick}mogrify {s_resize} -format jpeg {self.output_path}/{s_glob} &')\n else:\n os.system(f'{s_magick}mogrify -format jpeg {self.output_path}/{s_glob} &')\n\n\n def make_png(self, resize_factor=1, addargs='-transparent white'):\n \"\"\"\n input:\n self: pyMCDSts class instance.\n\n resize_factor: floating point number; default 1\n to specify image magnification or scale down.\n the resize parameter will in any case be adjusted,\n so that the resulting image's height and width are\n integer divisible by 2. this is because of a\n ffmpeg constrain for generating a movie out of images.\n\n addargs: string; default '-transparent white'\n sting to additional image magick parameters.\n by default, alpha channel transparency is set to white.\n\n output:\n png files in output_path directory.\n\n description:\n this function generates png image equivalents from all svg files\n found in the output_path directory.\n png is by definition a lossless compressed image format.\n https://en.wikipedia.org/wiki/Portable_Network_Graphics\n \"\"\"\n # bue: use mogrify, convert might cause troubles here!\n s_magick = self._handle_magick()\n s_resize = self._handle_resize(resize_factor=resize_factor)\n for s_glob in ls_glob:\n if (len(set(pathlib.Path(self.output_path).glob(s_glob))) > 0):\n if (s_glob in es_resize):\n os.system(f'{s_magick}mogrify {s_resize} {addargs} -format png {self.output_path}/{s_glob} &')\n else:\n os.system(f'{s_magick}mogrify {addargs} -format png {self.output_path}/{s_glob} &')\n\n\n def make_tiff(self, resize_factor=1):\n \"\"\"\n input:\n self: pyMCDSts class instance.\n\n resize_factor: floating point number; default 1\n to specify image magnification or scale down.\n the resize parameter will in any case be adjusted,\n so that the resulting image's height and width are\n integer divisible by 2. this is because of a\n ffmpeg constrain for generating a movie out of images.\n\n output:\n tiff files in output_path directory.\n\n decription:\n this function generates tiff image equivalents from all svg files\n found in the output_path directory.\n https://en.wikipedia.org/wiki/TIFF\n \"\"\"\n # bue: use mogrify, convert might cause troubles here!\n s_magick = self._handle_magick()\n s_resize = self._handle_resize(resize_factor=resize_factor)\n for s_glob in ls_glob:\n if (len(set(pathlib.Path(self.output_path).glob(s_glob))) > 0):\n if (s_glob in es_resize):\n os.system(f'{s_magick}mogrify {s_resize} -format tiff {self.output_path}/{s_glob} & ')\n else:\n os.system(f'{s_magick}mogrify -format tiff {self.output_path}/{s_glob} & ')\n\n\n def make_movie(self, interface='jpeg', moviefile='movie.mp4', frame_rate=24):\n \"\"\"\n input:\n self: pyMCDSts class instance.\n\n interface: string; default jpeg\n ffmpeg cannot directly translate svg image into a move.\n the interface image format will be used to bridge the gap.\n this images, from which the movie will be generated, have to exist.\n they can be generated with the make_jpeg, make_png, or make_tiff\n function.\n\n moviefile: sting; default 'movie.mp4'\n mp4 movie file name.\n\n frame_rate: integer; default 24\n specifies how many images per second will be used.\n\n output:\n mp4 move file in output_path directory.\n interface image files in output_path directory.\n` additionally, the function will return the movie path and filename.\n\n description:\n this function generates a movie from all interface image files\n found in the output_path directory.\n \"\"\"\n # generate movie\n s_opathfile = f'{self.output_path}/{moviefile}'\n os.system(f'ffmpeg -r {frame_rate} -f image2 -i {self.output_path}/snapshot%08d.{interface} -vcodec libx264 -pix_fmt yuv420p -strict -2 -tune animation -crf 15 -acodec none {s_opathfile}')\n\n # output\n return(s_opathfile)\n\n","repo_name":"furkankurtoglu/CRC-Organoids-Multiscale-Model","sub_path":"5_PhysiCell_Model_monolayer/py_analysis/pcDataLoader/pyMCDSts.py","file_name":"pyMCDSts.py","file_ext":"py","file_size_in_byte":13130,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"15270013314","text":"#https://programmers.co.kr/learn/courses/30/lessons/43238\n#범위와 기준을 뭐로 할 것인지\ndef solution(n, times):\n answer = 0\n left, right = 1, max(times) * n\n\n while left <= right:\n complete = 0\n mid = (left + right) // 2\n\n for time in times:\n complete += mid // time\n\n if complete >= n:\n break\n\n if complete >= n:\n answer = mid\n right = mid - 1\n\n elif complete < n:\n left = mid + 1\n\n\n\n return answer\n\nprint(solution(6, [7, 10]))","repo_name":"Interesting-study/Algorithm","sub_path":"programmers/그 외/입국심사.py","file_name":"입국심사.py","file_ext":"py","file_size_in_byte":557,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27865322186","text":"from rayflare.transfer_matrix_method import tmm_structure\nfrom solcore import material, si\nimport matplotlib.pyplot as plt\nfrom solcore.structure import Layer\nimport numpy as np\nfrom rayflare.options import default_options\nfrom solcore.light_source import LightSource\nfrom ecopv.spectrum_functions import spec_to_XYZ, load_cmf\nfrom ecopv.optimization_functions import getPmax\nfrom ecopv.main_optimization import plot_outcome\nfrom solcore.constants import h, c\n\ninterval = 0.01\nwavelengths = np.arange(300, 1200, interval) * 1e-9\nopts = default_options()\n\nopts.wavelengths = wavelengths\nopts.pol = \"s\"\n\ncmf = load_cmf(wavelengths * 1e9)\n\n# Use AM1.5G spectrum:\nlight_source = LightSource(\n source_type=\"black body\",\n x=wavelengths * 1e9,\n output_units=\"photon_flux_per_nm\",\n entendue=\"Sun\",\n T=5778,\n)\n\nphoton_flux_cell = np.array(light_source.spectrum(wavelengths * 1e9))\n\nphoton_flux_color = photon_flux_cell[\n :, np.all((photon_flux_cell[0] >= 380, photon_flux_cell[0] <= 780), axis=0)\n]\n\nEgs = np.linspace(1, 1.8, 100)\nplt.figure()\nfor rad_eff in [0.01, 0.1, 1]:\n eff = np.zeros_like(Egs)\n\n for i1, eg in enumerate(Egs):\n\n eff[i1] = getPmax(\n [eg], photon_flux_cell[1], wavelengths * 1e9, interval, rad_eff\n )\n\n argm = np.argmax(eff)\n print(Egs[argm])\n\n plt.plot(Egs, eff, label=str(rad_eff))\nplt.legend()\nplt.show()\n\n# define the materials\nSiN = material(\"Si3N4\")()\nTiO2 = material(\"TiO2b\")()\nSi = material(\"Si\")()\nAg = material(\"Ag\")()\nAir = material(\"Air\")()\n\nplt.figure()\nplt.plot(wavelengths * 1e9, SiN.n(wavelengths), label=\"SiN\")\nplt.plot(wavelengths * 1e9, TiO2.n(wavelengths), label=\"TiO2\")\nplt.legend()\nplt.show()\n\ntarget_wavelength = 575 * 1e-9\ntarget_wavelength_2 = 450 * 1e-9\nn_DBR_reps = 2\n\nARC_layer = Layer(width=si(\"75nm\"), material=SiN)\n\ncell_layer = Layer(width=si(\"300um\"), material=Si)\n\nDBR_layers = [\n Layer(3 * target_wavelength / (4 * TiO2.n(target_wavelength)), material=TiO2),\n Layer(3 * target_wavelength / (4 * SiN.n(target_wavelength)), material=SiN),\n] * n_DBR_reps\n\nDBR_layers_2 = [\n Layer(target_wavelength_2 / (4 * TiO2.n(target_wavelength_2)), material=TiO2),\n Layer(target_wavelength_2 / (4 * SiN.n(target_wavelength_2)), material=SiN),\n] * n_DBR_reps\n\n\nstruct = tmm_structure(\n [ARC_layer] + DBR_layers_2 + DBR_layers, incidence=Air, transmission=Si\n)\n\nRAT = struct.calculate(opts)\n\nplt.figure()\nplt.plot(wavelengths * 1e9, RAT[\"R\"], label=\"R\")\nplt.show()\n\nXYZ = spec_to_XYZ(RAT[\"R\"], h * c * photon_flux_cell[1] / wavelengths, cmf, interval)\n\nplot_outcome(RAT[\"R\"], photon_flux_cell, XYZ, \"test\")\nplt.show()\n","repo_name":"qpv-research-group/ECoPV","sub_path":"examples/DBR_example.py","file_name":"DBR_example.py","file_ext":"py","file_size_in_byte":2621,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"44982123173","text":"import json\nimport os\n\nfrom bs4 import BeautifulSoup\n\nfrom eeclass_bot.EEBulletin import EEBulletin\nfrom eeclass_bot.EEConfig import EEConfig\nfrom eeclass_bot.EEHomework import EEHomework\nfrom eeclass_bot.EEMaterial import EEMaterial\nfrom eeclass_bot.models.BlockMaterial import BlockMaterial\n\n\nclass EECourse:\n def __init__(self, bot, name: str, index: str):\n self.bot = bot\n self.name = name\n self.index = index\n self.url = EEConfig.get_index_url(EEConfig.COURSE_URL, index)\n self.bulletin_page_url = EEConfig.get_index_url(EEConfig.BULLETIN_URL, index)\n self.bulletins_url_list = [self.bulletin_page_url]\n self.bulletins: list[EEBulletin] = []\n self.homework_list_url = EEConfig.get_index_url(EEConfig.HOMEWORK_LIST, index)\n self.homeworks_url = []\n self.homeworks = []\n self.material_url = EEConfig.get_index_url(EEConfig.COURSE_URL, index)\n self.materials = []\n\n def __repr__(self):\n return f\"{self.name}\\n {self.url}\\n\"\n\n @classmethod\n async def retrieve_all(cls, bot, refresh=False, check=False):\n if os.path.isfile(\"course_info.json\") and not refresh:\n with open(\"course_info.json\", 'r') as f:\n courses = json.load(f)\n else:\n url = \"https://ncueeclass.ncu.edu.tw/dashboard\"\n resp = await bot.session.get(url, headers=EEConfig.HEADERS)\n soup = BeautifulSoup(await resp.text(), 'lxml')\n result = soup.select(\"div > ul > li > div > div > div> div > div.fs-label > a\")\n courses = [dict(name=r.text.strip(), index=r['href'].split('/')[-1]) for r in result]\n with open(\"course_info.json\", 'w') as f:\n print(json.dumps(courses), file=f)\n\n courses_list = []\n for course in courses:\n courses_list.append(EECourse(bot, course['name'], course['index']))\n\n if check:\n for c in courses_list:\n print(c)\n\n return courses_list\n\n async def get_all_bulletin_page(self) -> list:\n async with self.bot.session.get(self.bulletin_page_url, headers=EEConfig.HEADERS) as resp:\n soup = BeautifulSoup(await resp.text(), 'lxml')\n b_list = soup.select(\n \"#bulletinMgrTable > tbody > tr > td > div > div.fs-singleLineText.afterText > div.text-overflow > a\"\n )\n # pagination = list(set(pagination))\n # if pagination:\n # for p in pagination:\n # self.bulletins.append(self.bulletin_page_url + p)\n self.bulletins = [EEBulletin(bot=self.bot, link=p['data-url'], title=p['data-modal-title']) for p in b_list]\n return self.bulletins\n\n # async def get_all_bulletin_page(self):\n # task = [Bulletin.get_bulletin_page(url=url, bot=self.bot) for url in self.bulletins_url_list]\n # self.bulletins = await asyncio.gather(*task)\n # return self.bulletins\n\n async def get_all_homework_page(self):\n \"\"\" homework 暫且不會有選頁面的問題\"\"\"\n async with self.bot.session.get(self.homework_list_url, headers=EEConfig.HEADERS) as resp:\n # print(self)\n soup = BeautifulSoup(await resp.text(), 'lxml')\n soup_select = soup.select(\"#homeworkListTable > tbody > tr > td > div > div > div.text-overflow > a\")\n for homework in soup_select:\n url: str = homework['href']\n title: str = homework['title']\n self.homeworks.append(\n EEHomework(\n bot=self.bot,\n title=title,\n link=url,\n course=self\n )\n )\n return self.homeworks\n\n async def get_all_material_page(self):\n async with self.bot.session.get(self.material_url, headers=EEConfig.HEADERS) as resp:\n soup = BeautifulSoup(await resp.text(), 'lxml')\n material_block = soup.select(\".fs-block-body > div > ol.xtree-list > li\")\n for block in material_block:\n block_material_list = []\n block_title = block.select_one(\"div.header.hover.hover > div > span > div.text > div\").text\n material_in_block = block.select(\"div.body > ol.xtree-list > li\")\n for material in material_in_block:\n if \" \".join(material['class']) == \"xtree-node type- clearfix\":\n type = EEConfig.CLASS_NAME_TO_MATERIAL_TYPE[' '.join(material.select_one(\n \"div.header.hover.hover > div.center-part > span.xtree-node-label > div.icon.pull-left > \"\n \"span\")['class'])]\n link = material.select(\n \"div.header.hover.hover > div.center-part > span.xtree-node-label > div.text > div.node-title > div.fs-singleLineText > div\")[\n 1].select_one('a')['href']\n title = material.select(\n \"div.header.hover.hover > div.center-part > span.xtree-node-label > div.text > div.node-title > div.fs-singleLineText > div\")[\n 1].select_one('a > span.text').text\n brief_condition = material.select_one(\n \"div.header.hover.hover > div.center-part > div.hidden-xs.pull-right\")\n deadline = brief_condition.select(\"div.ext-col.fs-text-nowrap.col-time.text-center\")[0].text\n complete_condition = brief_condition.select_one(\n \"div.ext-col.fs-text-nowrap.col-char7.text-center\").text\n read_time = brief_condition.select_one(\n \"div.ext-col.fs-text-nowrap.col-char4.text-center > span\").text if brief_condition.select_one(\n \"div.ext-col.fs-text-nowrap.col-char4.text-center > span\") != None else brief_condition.select_one(\n \"div.ext-col.fs-text-nowrap.col-char4.text-center\").text\n complete_check = True if brief_condition.select(\"div.ext-col.fs-text-nowrap.col-time.text-center\")[1].select_one(\"span.font-icon.fs-text-success.item-pass.fa.fa-check-circle\") != None else False\n block_material_list.append(\n EEMaterial(\n bot=self.bot,\n course=self,\n type=type,\n link=link,\n title=title,\n deadline=deadline,\n complete_condition=complete_condition,\n read_time=read_time,\n complete_check=complete_check\n )\n )\n self.materials.append(\n BlockMaterial(\n block_title=block_title,\n materials=block_material_list\n )\n )\n return self.materials\n","repo_name":"quan0715/EECLASS_Notion_API","sub_path":"eeclass_bot/EECourse.py","file_name":"EECourse.py","file_ext":"py","file_size_in_byte":7175,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"32904698311","text":"'''\nDebug View Module\n\nThis module renders a debug view.\n'''\n\nimport json\nimport sys\nimport time\ntry:\n import base64\n import numpy as np\n import cv2\nexcept:\n pass # Well there cannot be any cv input, so there will not occur any error.\nfrom typing import Callable\nfrom gpm.pyGP.registry import register\nNODES = {}\n\n@register(NODES,\n name=\"View\",\n inputs=dict(val=\"Object\"),\n outputs=dict(result=\"Object\"))\ndef init(node, global_state, max_fps: float = 2, width: int = 160, height: int = 120) -> Callable:\n \"\"\"\n Views and passes the object.\n \"\"\"\n node[\"last_transmission\"] = 0\n def tick(val):\n result = {\"result\": val}\n if not \"debugger\" in global_state.shared_dict:\n return result\n\n now = time.time()\n if now - node[\"last_transmission\"] < 1.0 / max_fps:\n return result\n \n data_str = \"\"\n if type(val) is list or type(val) is dict or type(val) is str or type(val) is int:\n data_str = \"json:\" + json.dumps(val)\n elif type(val) == np.ndarray and (len(val.shape) != 2 or len(val[1]) != 3) and not (len(val.shape) == 3 and val.shape[2] == 3):\n data_str = \"json:\" + json.dumps(val.tolist())\n elif type(val) == np.ndarray:\n img = val\n img = cv2.resize(img.copy(), (width, height), 0, 0, cv2.INTER_CUBIC)\n cnt = cv2.imencode('.png', img)[1].tostring()\n b64 = str(base64.encodestring(cnt))[2:-1]\n data_str = (\"img:\" + b64).replace(\"\\n\", \"\").replace(\"\\\\n\", \"\")\n else:\n data_str = \"type:\" + str(type(val))\n global_state.shared_dict[\"debugger\"].send(\"data_\" + node[\"node_uid\"] + \":\" + data_str)\n node[\"last_transmission\"] = now\n return result\n return tick\n","repo_name":"GraphProgramming/pyGP","sub_path":"stdlib/debug/view.py","file_name":"view.py","file_ext":"py","file_size_in_byte":1782,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"45588567417","text":"import json\nimport os\n\n\ndef get_data():\n with open(\"../data/guestDB.json\") as f:\n data = json.load(f)\n return data\n\n\ndef get_database():\n from pymongo import MongoClient\n\n CONNECTION_STRING = os.environ[\"DATABASE_CONNECTION_STRING\"]\n client = MongoClient(CONNECTION_STRING)\n\n return client.weddingdb\n\n\ndef upload_data(collection, data):\n collection.insert_many(data)\n\n\ndb_client = get_database()\ndata = get_data()\nupload_data(db_client.guests, data)\n","repo_name":"MahrRah/wedding-homepage","sub_path":"scripts/loadDataToDB.py","file_name":"loadDataToDB.py","file_ext":"py","file_size_in_byte":478,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"18391440782","text":"resposta = input('[1] - Cadastrar novo usuário [2] - Fazer login: ')\n\nusuarios = ['Rafael', 'Metal Omega', 'Silveira']\nsenhas = ['12345', 'abcdef', '123abcd']\n\nif resposta == '1':\n usuario_digitado = input('digite seu usuário: ')\n if usuario_digitado in usuarios:\n print('usuário existente')\n\n else:\n senha_digitada = input('digite sua senha: ')\n usuarios.append(usuario_digitado)\n senhas.append(senha_digitada)\nelif resposta == '2':\n usuario_digitado = input('Digite seu usuário: ')\n senha_digitada = input('Digite sua senha: ')\n encontrado = False\n for indice, usuario in enumerate(usuarios):\n if usuario_digitado == usuario and senha_digitada == senhas[indice]:\n print('Login realizado com sucesso')\n encontrado = True\n elif encontrado == False:\n print('usuário ou senha incorreto!')\nelse:\n print('digite apenas 1 ou 2')\n","repo_name":"MetalOmega/projeto-sistema-login-cadastro-user","sub_path":"teste.py","file_name":"teste.py","file_ext":"py","file_size_in_byte":928,"program_lang":"python","lang":"pt","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"35302932783","text":"from django.conf.urls import url\n\nfrom atm import views\n\nurlpatterns = [\n url(r'^define_atm$', views.define_atm, name='define_atm'),\n url(r'^define_money$', views.define_money, name='define_money'),\n url(r'^define_minimum$', views.define_minimum, name='define_minimum'),\n url(r'^assign_money$', views.assign_money, name='assign_money'),\n url(r'^create_card$', views.create_card, name='create_card'),\n url(r'^atm_transaction$', views.atm_transaction, name='atm_transaction'),\n]\n","repo_name":"dani1373/Ibank","sub_path":"atm/urls.py","file_name":"urls.py","file_ext":"py","file_size_in_byte":495,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"74448452123","text":"import os\n\nimport pandas as pd\n\n\n\n#ploting\n\nimport matplotlib.pyplot as plt\n\n\nimport seaborn as sns\n\nsns.set(style=\"darkgrid\")\n\n\n\n#plotly\n\nimport plotly.express as px\n\n\n\n#color\n\nfrom colorama import Fore, Style,Back\n\n\n\n#pydicom\n\nimport pydicom\n\n\n\nplt.style.use(\"seaborn-notebook\")\n\nplt.show()\n\n\n\n\n\n# Suppress warnings \n\nimport warnings\n\nwarnings.filterwarnings('ignore')\nroot_path = '/kaggle/input/osic-pulmonary-fibrosis-progression/'\ndf_train = pd.read_csv(os.path.join(root_path,\"train.csv\"))\n\ndf_test = pd.read_csv(os.path.join(root_path,\"test.csv\"))\n\nsubmission = pd.read_csv(os.path.join(root_path,\"sample_submission.csv\"))\n\ntrain_folder = root_path+'train/'\n\ntest_folder = root_path+'train/'\ndf_train.head().style.bar(subset=[\"FVC\"],color=['#F7DC6F'])\ndf_train.info()\nplt.figure(figsize=(10,5))\n\na = sns.countplot(data=df_train,x=\"Sex\",hue=\"Sex\",color=\"blue\",palette=[\"#F5B041\",\"#58D68D\"])\n\nplt.title(\"Gender Distribution\")\n\nplt.legend(fontsize=10)\na = df_train[\"Age\"].plot.hist(colormap=\"jet\",legend=True,color=\"#BB8FCE\")\n\nplt.xlabel(\"Age\")\n\nplt.legend(fontsize=10)\na = df_train[\"Patient\"].value_counts().plot.hist(legend=True,color=\"#85C1E9\")\n\nplt.xlabel(\"no of visits\")\n\nplt.legend(fontsize=10)\na = df_train[\"FVC\"].plot.kde(legend=True,color=\"#F8C471\",linewidth=2.8)\n\nplt.legend(fontsize=10)\n\nplt.xlabel(\"FVC\")\nprint('The mean value of FCV is',Back.CYAN+Style.BRIGHT+Fore.BLACK, f'{df_train[\"FVC\"].mean()}')\na = df_train.plot.scatter(x=\"FVC\",y=\"Age\",color=\"#E74C3C\")\n\nplt.legend(fontsize=10)\nplt.figure(figsize=(45,8))\n\nsns.set(font_scale=1.1)\n\nax = sns.catplot(x=\"SmokingStatus\", hue=\"Sex\", col=\"Sex\",data=df_train, kind=\"count\",palette=[\"#F8C471\",\"#58D68D\"])\n\nplt.legend(fontsize=10)\nsns.pairplot(df_train, hue=\"Sex\", palette=\"Set2\", diag_kind=\"kde\", height=2.5)\n# sns.violinplot(x=\"SmokingStatus\", y=\"Age\", data=df_train, size=7,palette=[\"#F5B7B1\",\"#2ECC71\",\"#E74C3C\"])\n\nfig = px.violin(df_train, y=\"Age\", x=\"SmokingStatus\", color=\"Sex\", box=True, points=\"all\")\n\nfig.update_layout(\n\n autosize=False,\n\n width=1200,\n\n height=700,)\n\nfig.show()\nfig = px.violin(df_train, y=\"Age\", x=\"Sex\", color=\"Sex\", box=True, points=\"all\")\n\nfig.update_layout(\n\n autosize=False,\n\n width=1000,\n\n height=700,)\n\nfig.show()\ndf_train_corr = df_train.corr()\n\nsns.clustermap(df_train_corr, cmap=\"GnBu\",annot=True)\n\nplt.legend(fontsize=10)","repo_name":"aorursy/new-nb-6","sub_path":"santhoshgoku_a-statistical-analysis-new-approach.py","file_name":"santhoshgoku_a-statistical-analysis-new-approach.py","file_ext":"py","file_size_in_byte":2344,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5632189805","text":"import cv2\r\nimport numpy as np\r\n\r\nvideo_capture = cv2.VideoCapture(0)\r\n\r\nwhile True:\r\n _, frame = video_capture.read()\r\n hsv_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)\r\n\r\n\t# Blue color\r\n low_blue = np.array([94, 80, 2])\r\n high_blue = np.array([126, 255, 255])\r\n blue_mask = cv2.inRange(hsv_frame, low_blue, high_blue)\r\n blue = cv2.bitwise_and(frame, frame, mask=blue_mask)\r\n\r\n # Show every color except white\r\n low = np.array([0, 65, 0])\r\n high = np.array([255, 255, 255])\r\n mask = cv2.inRange(hsv_frame, low, high)\r\n result = cv2.bitwise_and(frame, frame, mask=mask)\r\n\r\n cv2.imshow(\"Frame\", frame)\r\n cv2.imshow(\"Blue\", blue)\r\n cv2.imshow(\"Result\", result)\r\n\r\n #Sair do programa\r\n if cv2.waitKey(1) & 0xFF == ord('q'):\r\n \tbreak\r\n \r\nvideo_capture.release()\r\ncv2.destroyAllWindows()\r\n","repo_name":"suzanasvm/ComputerVision","sub_path":"color_spaces.py","file_name":"color_spaces.py","file_ext":"py","file_size_in_byte":844,"program_lang":"python","lang":"en","doc_type":"code","stars":7,"dataset":"github-code","pt":"86"}
+{"seq_id":"14952300108","text":"from django.urls import path , include\nfrom .views import *\nfrom . import views\nfrom .views import CustomPasswordResetView,CustomPasswordResetDoneView,CustomPasswordResetConfirmView,CustomPasswordResetCompleteView\nurlpatterns = [\n path('', index, name=\"index\"),\n path('provider_reg/', provider_reg, name=\"provider_reg\"),\n path('provider_reg/signin', signin, name=\"signin\"),\n path('worker_reg/', worker_reg, name=\"worker_reg\"),\n path('worker_reg/signin', signin, name=\"signin\"),\n path('worker_reg/index', index, name=\"index\"),\n path('provider_reg/index', index, name=\"index\"),\n path('signin/', signin, name=\"signin\"),\n path('signup/', register, name=\"signup\"),\n path('providersignup/', providerregister, name=\"providersignup\"),\n path('workersignup/', workerregister, name=\"workersignup\"),\n path('signin/userpage/',userpage, name='userpage'),\n path('signin/userpage/userpage',userpage, name='userpage'),\n path('userpage/',userpage, name='userpage'),\n path('signin/userpage/user_logout',user_logout),\n path('search_providers/userpage.html',userpage, name='userpage'),\n path('search_providers/userpage',userpage, name='userpage'),\n path('userpage/providerlist',providerlist, name='providerlist'),\n path('userpage/providerlist/book_service',book_service, name='book_service'),\n path('workerpage/',workerpage, name='workerpage'),\n path('worker_requests/workerpage',workerpage, name='workerpage'),\n path('providerpage/',providerpage, name='providerpage'),\n path('bookinghistory/providerpage/',providerpage, name='providerpage'),\n path('bookinghistory/providerpage/providerpage',providerpage, name='providerpage'),\n path('accounts/login/signin',signin),\n path('accounts/login/',signin),\n path('signin/signup', register ),\n path('signin/index', index ),\n path('userpage/userpage',userpage),\n path('search/userpage',userpage),\n path('service/Cleaning/userpage',userpage),\n path('create_booking/userpage',userpage),\n path('service/Cleaning/userpage.html',userpage),\n path('service/Laundry/userpage',userpage),\n path('service/Laundry/userpage.html',userpage),\n path('service/Repair/userpage',userpage),\n path('service/Plumbing/userpage',userpage),\n path('service/Repair/userpage.html',userpage),\n path('service/Plumbing/userpage.html',userpage),\n path('service/Electrical/userpage.html',userpage),\n path('service/Electrical/userpage',userpage),\n path('service/Pestcontrol/userpage.html',userpage),\n path('service/Plumbing/user_logout',user_logout),\n path('service/Repair/user_logout',user_logout),\n path('service/Cleaning/user_logout',user_logout),\n path('service/Pestcontrol/user_logout',user_logout),\n path('service/Laundry/user_logout',user_logout),\n path('service/Electrical/user_logout',user_logout),\n path('workerpage/workerpage',workerpage),\n path('providerpage/providerpage',providerpage),\n path('signup/signin', signin ),\n path('accounts/login/signup', register ),\n path('accounts/login/index', index ), \n path('signup/signup', register),\n path('signup/index', index ),\n path('signin/signin', signin ), \n path('signin/user_logout', views.user_logout, name='user_logout'),\n path('user_logout', views.user_logout, name='user_logout'),\n path('userpage/user_logout', views.user_logout, name='user_logout'),\n path('userpage/providerlist/user_logout', views.user_logout, name='user_logout'),\n path('worker_logout', views.worker_logout, name='worker_logout'),\n path('admin_logout', views.admin_logout, name='admin_logout'),\n path('provider_logout', views.provider_logout, name='provider_logout'),\n path('resetpassword/', CustomPasswordResetView.as_view(), name='resetpassword'),\n path('resetpassword/done/',CustomPasswordResetDoneView.as_view(),name='resetpassworddone'),\n path('resetpassword///',CustomPasswordResetConfirmView.as_view(),name='customresetpasswordconfirm'),\n path('resetpassword/complete',CustomPasswordResetCompleteView.as_view(),name='passwordresetcomplete'),\n path('custom_admin_page/', views.custom_admin_page, name='custom_admin_page'),\n path('activate_user//', views.activate_user, name='activate_user'),\n path('deactivate_user//', views.deactivate_user, name='deactivate_user'),\n path('accounts/', include('allauth.urls')),\n path('custom_admin_page/provider_registration/', views.provider_registration, name='provider_registration'),\n path('providerpage/worker_registration/', views.worker_registration, name='worker_registration'),\n #here google starts\n path('auth/', include('social_django.urls', namespace='social')),\n path(\"\", include(\"allauth.urls\")),\n #here google ends\n path('social/signup/', views.signup_redirect, name='signup_redirect'),\n path('worker_registration/', views.worker_registration, name='worker_registration'),\n path('providerpage/worker_registration/', views.worker_registration, name='worker_registration'),\n path('worker_reg/register/', views.worker_registration, name='worker_registration'),\n path('service//', views.service_providers_by_category, name='service_providers_by_category'),\n path('update_profile/', views.update_profile, name='update_profile'),\n path('update_profile/user_logout', views.user_logout, name='user_logout'),\n path('view_profile/user_logout', views.user_logout, name='user_logout'),\n path('view_profile/', views.profile_view, name='view_profile'),\n path('update_profile/userpage.html',userpage, name='userpage'), \n path('view_profile/userpage.html',userpage, name='userpage'), \n path('view_profile/userpage.html',userpage, name='userpage'), \n path('userpage/providerlist/userpage',userpage, name='userpage'), \n path('userpage/providerlist/userpage.html',userpage, name='userpage'), \n path('social-auth/', include('social_django.urls', namespace='social-auth')),\n path('google-profile-update///', views.google_profile_update, name='google_profile_update'),\n path('userpage/google-profile-update///', views.google_profile_update, name='google_profile_update'),\n path('custom_admin_page/requests/', views.admin_requests, name='admin_requests'),\n path('providerpage/requests/', views.worker_requests, name='worker_requests'),\n path('custom_admin_page/requests/custom_admin_page', views.custom_admin_page, name='custom_admin_page'),\n path('custom_admin_page/activate_provider//', views.activate_provider, name='activate_provider'),\n path('providerpage/workerrequests/activate_worker//', views.activate_worker, name='activate_worker'),\n path('providerpage/activate_worker//', views.activate_worker, name='activate_worker'),\n path('providerpage/providerrequests/providerpage', views.providerpage, name='providerpage'),\n path('providerpage/providerrequests/workerpage', views.providerpage, name='providerpage'),\n path('create_booking/', create_booking, name='create_booking'),\n path('search/', views.search_providers, name='search_providers'),\n path('search_providers/', views.search_providers, name='search_providers'),\n path('book-service//', views.render_booking_form, name='render_booking_form'),\n path('approve_booking//', views.approve_booking, name='approve_booking'),\n path('reject_booking//', views.reject_booking, name='reject_booking'),\n path('provider_bookings/', views.provider_bookings, name='provider_bookings'),\n path('provider_bookings/providerpage', views.providerpage, name='providerpage'),\n path('bookinghistory/', views.bookinghistory, name='bookinghistory'),\n path('approve_booking/providerpage',providerpage),\n path('worker_requests/', views.worker_requests, name='worker_requests'),\n path('approve_worker//', views.activate_worker, name='approve_worker'),\n path('providerpage/approve_worker//', views.activate_worker, name='approve_worker'),\n path('approve_worker//', views.approve_worker, name='approve_worker'),\n path('provider_bookings/userpage.html', views.providerpage, name='providerpage'),\n path('bookinghistory/userpage.html', views.providerpage, name='providerpage'),\n path('bookinghistory/userpage', views.userpage, name='userpage'),\n path('bookinghistory/providerpage', views.providerpage, name='providerpage'),\n path('worker_requests', views.worker_requests, name='worker_requests'),\n path('worker_requests//', views.worker_requests, name='worker_requests'),\n path('providerpage/worker_requests//', views.approve_worker, name='approve_worker'),\n path('available_workers///', views.available_workers, name='available_workers'),\n path('available_workers////providerpage/', views.available_workers, name='available_workers'),\n path('available_workers////providerpage.html/', views.available_workers, name='available_workers_html'),\n path('assign_worker/', views.assign_worker, name='assign_worker'),\n path('workerjob/', views.worker_job, name='workerjob'),\n path('assignedwork/', views.assignedwork, name='assignedwork'),\n path('update_status/', views.update_status, name='update_status'),\n path('generate_report//', views.render_report_form, name='render_report_form'),\n path('generate_report/', views.generate_report, name='generate_report'),\n path('provider//workers/', views.worker_list, name='worker_list'),\n path('worker_report//', views.worker_report, name='worker_report'),\n path('client_bookings//', views.client_bookings, name='client_bookings'),\n path('assign_workers//', views.assign_workers, name='assign_workers'),\n path('assign_workers_service/', views.assign_workers_service, name='assign_workers_service'),\n path('client_work_reports//', views.client_work_reports, name='client_work_reports'),\n path('download_work_report//', views.download_worker_report, name='download_work_report'),\n path('client_work_reports//userpage', views.userpage, name='userpage'),\n path('assign_workers_service/assign_workers.html', views.providerpage, name='providerpage'),\n path('bookinghistory/providerpage', views.providerpage, name='providerpage'),\n path('bookinghistory/user_logout', views.user_logout, name='user_logout'),\n path('approve_report/', views.approve_report, name='approve_report'),\n path('cancel_service/', views.cancel_service, name='cancel_service'),\n path('update_rating/', views.update_rating, name='update_rating'),\n path('update_review/', views.update_review, name='update_review'),\n path('update-service-and-booking//', views.update_service_and_booking, name='update_service_and_booking'),\n path('client_work_reports//payment_success', views.payment_success, name='payment_success'),\n path('payment_success/', payment_success, name='payment_success'),\n\n\n\n\n\n\n]","repo_name":"Abhinandks06/Multi_service_provider","sub_path":"multiserviceprovider/app1/urls.py","file_name":"urls.py","file_ext":"py","file_size_in_byte":11349,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"35446490123","text":"import uuid\nimport random\nimport psycopg2\nimport psycopg2.extras\nfrom faker import Faker\nimport csv\n\n\n\nfake = Faker()\n\n# Connect to your Supabase instance\nconn = psycopg2.connect(\n dbname=\"postgres\",\n user=\"postgres\",\n password=\"Phatiacy272\",\n host=\"db.yqyheutdblzkrxymbhpw.supabase.co\",\n port=\"5432\"\n)\npsycopg2.extras.register_uuid()\ncur = conn.cursor()\n\n# Read cities and countries from the CSV file\nwith open('cities.csv', newline='') as csvfile:\n reader = csv.DictReader(csvfile)\n cities = [row['city'] for row in reader]\n csvfile.seek(0) # Reset the CSV reader to the beginning\n countries = [row['country'] for row in reader]\n\n# Generate and insert fake data for the users table\nuser_ids = []\nfor _ in range(30): # Create 100 fake users\n user_id = uuid.uuid4()\n user_ids.append(user_id)\n first_name = fake.first_name()\n last_name = fake.last_name()\n country = random.choice(countries)\n city = random.choice(cities)\n address = fake.street_address()\n state = fake.state_abbr()\n zip_code = fake.zipcode()\n username = fake.user_name()\n email = fake.email()\n about = fake.text(max_nb_chars=200)\n created_at = fake.date_between(start_date='-2y', end_date='today')\n completed_jobs = fake.random_int(min=0, max=300)\n \n cur.execute(\n \"\"\"\n INSERT INTO users (user_id, first_name, last_name, country, address, city, state, zip, username, email, about, created_at, completed_jobs)\n VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)\n \"\"\",\n (user_id, first_name, last_name, country, address, city, state, zip_code, username, email, about, created_at, completed_jobs)\n )\n \n\n# Generate and insert fake data for the items table\nitem_ids = []\nfor _ in range(10): # Create 5 fake items\n item_id = uuid.uuid4()\n item_ids.append(item_id)\n title = fake.sentence(nb_words=4)\n description = fake.text(max_nb_chars=200)\n preferred_price = fake.random_int(min=1000, max=10000)\n preferred_date = fake.date_between(start_date='-1y', end_date='today')\n starting_bid = preferred_price - fake.random_int(min=100, max=500)\n current_bid = starting_bid\n bid_holder = fake.random_element(user_ids)\n poster_id = fake.random_element(user_ids)\n expiration_date = fake.date_between(start_date='today', end_date='+1y')\n poster_first_name = fake.first_name()\n poster_last_name = fake.last_name()\n poster_country = random.choice(countries)\n poster_address = fake.street_address()\n poster_city = random.choice(cities)\n poster_state = fake.state_abbr()\n poster_zip = fake.zipcode()\n created_at = fake.date_between(start_date='-2y', end_date='today')\n \n cur.execute(\n \"\"\"\n INSERT INTO items (item_id, title, description, preferred_price, preferred_date, starting_bid, current_bid, bid_holder, poster_id, expiration_date, poster_first_name, poster_last_name, poster_country, poster_address, poster_city, poster_state, poster_zip, created_at)\n VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)\n \"\"\",\n (item_id, title, description, preferred_price, preferred_date, starting_bid, current_bid, bid_holder, poster_id, expiration_date, poster_first_name, poster_last_name, poster_country, poster_address, poster_city, poster_state, poster_zip, created_at)\n )\n\n# Generate and insert fake data for the bids table\nfor _ in range(200): # Create 20 fake bids\n bid_id = uuid.uuid4()\n bidder_id = fake.random_element(user_ids)\n item_id = fake.random_element(item_ids)\n bid_amount = fake.random_int(min=1000, max=10000)\n created_at = fake.date_between(start_date='-1y', end_date='today')\n bid_completion_date = fake.date_between(start_date='today', end_date='+1y')\n bid_completion_time = fake.random_int(min=1, max=100)\n \n cur.execute(\n \"\"\"\n INSERT INTO bids (bid_id, bidder_id, item_id, bid_amount, created_at, bid_completion_date, bid_completion_time)\n VALUES (%s, %s, %s, %s, %s, %s, %s)\n \"\"\",\n (bid_id, bidder_id, item_id, bid_amount, created_at, bid_completion_date, bid_completion_time)\n )\n\n# Generate and insert fake data for the reviews table\nfor _ in range(100): # Create 30 fake reviews\n review_id = uuid.uuid4()\n reviewer_id = fake.random_element(user_ids)\n reviewed_id = fake.random_element(user_ids)\n text = fake.text(max_nb_chars=200)\n rating = fake.random_int(min=1, max=5)\n created_at = fake.date_between(start_date='-2y', end_date='today')\n \n cur.execute(\n \"\"\"\n INSERT INTO reviews (review_id, reviewer_id, reviewed_id, text, rating, created_at)\n VALUES (%s, %s, %s, %s, %s, %s)\n \"\"\",\n (review_id, reviewer_id, reviewed_id, text, rating, created_at)\n )\n\n# Commit the changes and close the connection\nconn.commit()\ncur.close()\nconn.close()\n","repo_name":"sergiulache/licentav2","sub_path":"python/database_data.py","file_name":"database_data.py","file_ext":"py","file_size_in_byte":4890,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"1313674615","text":"\"\"\"\nAuthor: Davy Neven\nLicensed under the CC BY-NC 4.0 license (https://creativecommons.org/licenses/by-nc/4.0/)\n\"\"\"\nimport collections\nimport os\nimport threading\nfrom typing import List, Tuple\nimport matplotlib\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport pandas as pd\nfrom PIL import Image\nfrom sklearn.mixture import GaussianMixture\nimport torch\n\n\nclass AverageMeter(object):\n\n def __init__(self, num_classes=1):\n self.num_classes = num_classes\n self.reset()\n self.lock = threading.Lock()\n\n def reset(self):\n self.sum = [0] * self.num_classes\n self.count = [0] * self.num_classes\n self.avg_per_class = [0] * self.num_classes\n self.avg = 0\n\n def update(self, val, cl=0):\n with self.lock:\n self.sum[cl] += val\n self.count[cl] += 1\n self.avg_per_class = [\n x / y if x > 0 else 0 for x, y in zip(self.sum, self.count)]\n self.avg = sum(self.avg_per_class) / len(self.avg_per_class)\n\n\nclass Visualizer:\n\n def __init__(self, keys):\n self.wins = {k: None for k in keys}\n\n def display(self, image, key):\n\n n_images = len(image) if isinstance(image, (list, tuple)) else 1\n\n if self.wins[key] is None:\n self.wins[key] = plt.subplots(ncols=n_images)\n\n fig, ax = self.wins[key]\n n_axes = len(ax) if isinstance(ax, collections.Iterable) else 1\n\n assert n_images == n_axes\n\n if n_images == 1:\n ax.cla()\n ax.set_axis_off()\n ax.imshow(self.prepare_img(image))\n else:\n for i in range(n_images):\n ax[i].cla()\n ax[i].set_axis_off()\n ax[i].imshow(self.prepare_img(image[i]))\n\n plt.draw()\n self.mypause(0.001)\n\n @staticmethod\n def prepare_img(image):\n if isinstance(image, Image.Image):\n return image\n\n if isinstance(image, torch.Tensor):\n image.squeeze_()\n image = image.numpy()\n\n if isinstance(image, np.ndarray):\n if image.ndim == 3 and image.shape[0] in {1, 3}:\n image = image.transpose(1, 2, 0)\n return image\n\n @staticmethod\n def mypause(interval):\n backend = plt.rcParams['backend']\n if backend in matplotlib.rcsetup.interactive_bk:\n figManager = matplotlib._pylab_helpers.Gcf.get_active()\n if figManager is not None:\n canvas = figManager.canvas\n if canvas.figure.stale:\n canvas.draw()\n canvas.start_event_loop(interval)\n return\n\n\nclass Cluster:\n\n def __init__(self, ):\n\n xm = torch.linspace(0, 2, 2048).view(1, 1, -1).expand(1, 1024, 2048)\n ym = torch.linspace(0, 1, 1024).view(1, -1, 1).expand(1, 1024, 2048)\n xym = torch.cat((xm, ym), 0)\n\n self.xym = xym.cuda()\n\n def cluster_with_gt(self, prediction, instance, n_sigma=1, ):\n\n height, width = prediction.size(1), prediction.size(2)\n\n xym_s = self.xym[:, 0:height, 0:width] # 2 x h x w\n\n spatial_emb = torch.tanh(prediction[0:2]) + xym_s # 2 x h x w\n sigma = prediction[2:2 + n_sigma] # n_sigma x h x w\n\n instance_map = torch.zeros(height, width).byte().cuda()\n\n unique_instances = instance.unique()\n unique_instances = unique_instances[unique_instances != 0]\n\n for id in unique_instances:\n mask = instance.eq(id).view(1, height, width)\n\n center = spatial_emb[mask.expand_as(spatial_emb)].view(\n 2, -1).mean(1).view(2, 1, 1) # 2 x 1 x 1\n\n s = sigma[mask.expand_as(sigma)].view(n_sigma, -1).mean(1).view(n_sigma, 1, 1)\n s = torch.exp(s * 10) # n_sigma x 1 x 1\n\n dist = torch.exp(-1 * torch.sum(torch.pow(spatial_emb - center, 2) * s, 0))\n\n proposal = (dist > 0.5)\n instance_map[proposal] = id\n\n return instance_map\n\n def cluster(self, prediction, n_sigma=1, threshold=0.5,\n im_name=None, gt_instance=None, do_plot=False):\n print(im_name)\n\n height, width = prediction.size(1), prediction.size(2)\n xym_s = self.xym[:, 0:height, 0:width]\n\n spatial_emb = torch.tanh(prediction[0:2]) + xym_s # 2 x h x w\n sigma = prediction[2:2 + n_sigma] # n_sigma x h x w\n seed_map = torch.sigmoid(prediction[2 + n_sigma:2 + n_sigma + 1]) # 1 x h x w\n\n instance_map = torch.zeros(height, width).byte()\n instances = []\n\n count = 1\n mask = seed_map > 0.5\n if mask.sum() > 128:\n spatial_emb_masked = spatial_emb[mask.expand_as(spatial_emb)].view(2, -1)\n sigma_masked = sigma[mask.expand_as(sigma)].view(n_sigma, -1)\n seed_map_masked = seed_map[mask].view(1, -1)\n\n unclustered = torch.ones(mask.sum()).byte().cuda()\n instance_map_masked = torch.zeros(mask.sum()).byte().cuda()\n\n if do_plot:\n figure = plt.Figure(figsize=(16, 24))\n ax0 = figure.add_subplot(3, 1, 1)\n ax1 = figure.add_subplot(3, 1, 2)\n ax2 = figure.add_subplot(3, 1, 3)\n\n for ax in (ax0, ax1, ax2):\n ax.scatter(\n spatial_emb_masked[0].cpu().numpy(),\n spatial_emb_masked[1].cpu().numpy(),\n color='#dddddd',\n alpha=0.3,\n zorder=-1\n )\n\n for inst_id in range(1, gt_instance.max().item() + 1):\n gt_mask = gt_instance == inst_id\n gt_mask = gt_mask[mask.squeeze()].view(-1)\n if do_plot:\n ax1.scatter(\n spatial_emb_masked[0, gt_mask].cpu().numpy(),\n spatial_emb_masked[1, gt_mask].cpu().numpy(),\n # color=np.random.rand(3,),\n label='object_' + str(count),\n alpha=0.3,\n )\n\n while (unclustered.sum() > 128):\n\n seed = (seed_map_masked * unclustered.float()).argmax().item()\n seed_score = (seed_map_masked * unclustered.float()).max().item()\n if seed_score < threshold:\n break\n center = spatial_emb_masked[:, seed:seed + 1]\n unclustered[seed] = 0\n s = torch.exp(sigma_masked[:, seed:seed + 1] * 10)\n dist = torch.exp(-1 * torch.sum(torch.pow(spatial_emb_masked -\n center, 2) * s, 0, keepdim=True))\n\n proposal = (dist > 0.5).squeeze()\n\n if proposal.sum() > 128:\n if unclustered[proposal].sum().float() / proposal.sum().float() > 0.5:\n instance_map_masked[proposal.squeeze()] = count\n instance_mask = torch.zeros(height, width).bool()\n instance_mask[mask.squeeze().cpu()] = proposal.cpu()\n\n # tmp = instance_mask.squeeze() * 255\n # for inst in instances:\n # tmp1 = inst['mask']\n # cnt = ((tmp > 0) & (tmp1 > 0)).sum()\n\n instances.append(\n {'mask': instance_mask.squeeze() * 255, 'score': seed_score})\n\n count += 1\n\n if do_plot:\n ax0.text(\n center[0].item(), center[1].item(), str(count),\n fontsize=20\n )\n\n ax0.scatter(\n spatial_emb_masked[0, proposal].cpu().numpy(),\n spatial_emb_masked[1, proposal].cpu().numpy(),\n # color=np.random.rand(3,),\n label='object_' + str(count),\n alpha=0.3,\n )\n\n unclustered[proposal] = 0\n\n instance_map[mask.squeeze().cpu()] = instance_map_masked.cpu()\n\n if len(instances) > 0:\n\n centers, instance_map, instances = self.gmm_refine_clustering(\n instance_map,\n instances,\n spatial_emb,\n mask,\n sigma, n_sigma\n )\n\n if do_plot:\n n_instances = instance_map.max()\n for i in range(1, n_instances + 1):\n ax2.text(\n centers[i - 1, 0].item(),\n centers[i - 1, 1].item(), str(i),\n fontsize=20\n )\n spatial_emb_flatten = spatial_emb.permute(1, 2, 0).view(-1, 2)\n inst_mask = (instance_map == i).view(-1)\n ax2.scatter(\n spatial_emb_flatten[inst_mask, 0].cpu().numpy(),\n spatial_emb_flatten[inst_mask, 1].cpu().numpy(),\n # color=np.random.rand(3,),\n label='object_' + str(count),\n alpha=0.3,\n )\n\n if do_plot:\n figure.savefig(f'tmp/{im_name}')\n\n return instance_map, instances\n\n def get_instance_map(\n self,\n spatial_emb: torch.FloatTensor,\n sigma: torch.FloatTensor,\n n_sigma: int,\n mask: torch.Tensor,\n seed_emb: torch.FloatTensor,\n seed_scores: List[float]\n ):\n _, height, width = spatial_emb.size()\n instance_map = torch.zeros(height, width).byte()\n instances = []\n\n spatial_emb_masked = spatial_emb[mask.expand_as(spatial_emb)].view(2, -1)\n sigma_masked = sigma[mask.expand_as(sigma)].view(n_sigma, -1)\n\n instance_map_masked = torch.zeros(mask.sum()).byte().cuda()\n\n for i, (center, score) in enumerate(zip(seed_emb, seed_scores)):\n # print('i = ', i)\n center = center[:, None]\n seed = torch.argmin(((spatial_emb_masked - center) ** 2).sum(0))\n s = torch.exp(sigma_masked[:, seed:seed + 1] * 10)\n dist = torch.exp(-1 * torch.sum(torch.pow(spatial_emb_masked -\n center, 2) * s, 0, keepdim=True))\n\n proposal = (dist > 0.5).squeeze()\n # print('proposal', proposal.sum())\n instance_map_masked[proposal.squeeze()] = i + 1\n # print(instance_map_masked.max(), 'qqq')\n instance_mask = torch.zeros(height, width).bool()\n instance_mask[mask.squeeze().cpu()] = proposal.cpu()\n\n instances.append(\n {'mask': instance_mask.squeeze() * 255, 'score': score})\n\n instance_map[mask.squeeze().cpu()] = instance_map_masked.cpu()\n # print(instance_map.max(), 'asfd')\n # print(instance_map.max())\n # print(len(instances))\n return instance_map, instances\n\n def gmm_refine_clustering(\n self,\n instance_map: torch.LongTensor,\n instances: List[dict],\n spatial_emb: torch.FloatTensor,\n mask: torch.Tensor,\n sigma: torch.FloatTensor,\n n_sigma: int\n ) -> Tuple[torch.Tensor, torch.Tensor, List[dict]]:\n \"\"\"\n instance_map: tensor of shape (h, w)\n instances: List[dict]\n spatial_emb: tensor of shape (2, h, w)\n mask: tensor of shape (1, h, w)\n sigma: tensor of shape (1, h, w)\n n_sigma: int\n \"\"\"\n height, width = instance_map.size()\n mask_flatten = mask.squeeze().view(-1).cpu().numpy() # (h, w)\n spatial_emb_flatten = spatial_emb.permute(1, 2, 0).view(-1, 2).cpu().numpy()\n instance_map_flatten = instance_map.view(-1).cpu().numpy()\n X = spatial_emb_flatten[mask_flatten]\n max_id = instance_map_flatten.max()\n centroids = [spatial_emb_flatten[instance_map_flatten == i].mean(0) for i in\n range(1, max_id + 1)]\n centroids = np.stack(centroids, axis=0)\n coovs = [np.cov(spatial_emb_flatten[instance_map_flatten == i].T) for i in range(1, max_id + 1)]\n init_precision = [np.linalg.inv(x) for x in coovs]\n n_iter = 15\n gmm = GaussianMixture(\n n_components=max_id,\n means_init=centroids,\n precisions_init=init_precision,\n weights_init=np.full(max_id, 1 / max_id),\n max_iter=n_iter\n )\n # prob = gmm.predict_proba(X)\n # # print(gmm.covariances_)\n # log_prob = np.log(prob)\n # print(log_prob.max(1))\n # # print(prob.max(1).mean())\n if n_iter > 0:\n y = gmm.fit_predict(X)\n centers = torch.tensor(gmm.means_, device=spatial_emb.device)\n else:\n centers = torch.tensor(centroids, device=spatial_emb.device)\n # instance_map = instance_map.clone()\n # instance_map[:] = 0\n # instance_map_masked = torch.zeros(mask.sum()).byte()\n # new_instances = []\n # for i in sorted(set(y.tolist())):\n # proposal = (y == i) & (log_prob[:, i] > -1e-6)\n # instance_map_masked[proposal] = i + 1\n # instance_map[mask.squeeze()] = instance_map_masked\n #\n # instance_mask = torch.zeros(height, width).bool()\n # instance_mask[mask.squeeze().cpu()] = torch.tensor(proposal, dtype=bool)\n #\n # new_instances.append(\n # {\n # 'mask': instance_mask.squeeze() * 255,\n # 'score': instances[i]['score']\n # }\n # )\n\n instance_map, instances = self.get_instance_map(\n spatial_emb, sigma, n_sigma, mask, centers,\n [d['score'] for d in instances]\n )\n return centers, instance_map, instances\n\n\nclass Logger:\n\n def __init__(self, keys, title=\"\"):\n\n self.data = {k: [] for k in keys}\n self.title = title\n self.win = None\n\n print('created logger with keys: {}'.format(keys))\n\n def plot(self, save=False, save_dir=\"\"):\n\n if self.win is None:\n self.win = plt.subplots()\n fig, ax = self.win\n ax.cla()\n\n keys = []\n for key in self.data:\n keys.append(key)\n data = self.data[key]\n ax.plot(range(len(data)), data, marker='.')\n\n ax.legend(keys, loc='upper right')\n ax.set_title(self.title)\n\n plt.draw()\n Visualizer.mypause(0.001)\n\n if save:\n # save figure\n fig.savefig(os.path.join(save_dir, self.title + '.png'))\n\n # save data as csv\n df = pd.DataFrame.from_dict(self.data)\n df.to_csv(os.path.join(save_dir, self.title + '.csv'))\n\n def add(self, key, value):\n assert key in self.data, \"Key not in data\"\n self.data[key].append(value)\n","repo_name":"yanlinf/SpatialEmbeddings","sub_path":"src/utils/utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":15205,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"7109123594","text":"from math import ceil\n\nuseCount = {}\nrecipes = {}\nfor line in open(\"input.txt\"):\n ingred, out = (line.strip().split(\" => \"))\n count, out = out.split()\n ingredients = []\n\n for a in ingred.split(\", \"):\n cnt, ing = a.split()\n if ing not in useCount:\n useCount[ing] = 0\n useCount[ing] += 1\n \n ingredients.append((int(cnt),ing))\n\n recipes[out] = (int(count),ingredients)\n\n\nuseCount[\"FUEL\"] = 0\ntotalNeeded = {\"FUEL\" : 1}\n\nwhile len(useCount) > 1:\n for ingredient in useCount:\n if useCount[ingredient] == 0:\n n = totalNeeded[ingredient]\n count, items = recipes[ingredient]\n amt = ceil(n/count)\n for itemAmt,item in items:\n if item not in totalNeeded:\n totalNeeded[item] = 0\n totalNeeded[item] += amt*itemAmt\n useCount[item] -=1\n del useCount[ingredient]\n break\n\nprint(totalNeeded[\"ORE\"])","repo_name":"Xychic/AdventOfCode","sub_path":"2019/Day14/Python/MakeFuel.py","file_name":"MakeFuel.py","file_ext":"py","file_size_in_byte":982,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"75057712603","text":"T = int(input())\n\nfor tc in range(1, T+1):\n N, K = map(int, input().split())\n\n arr = [list(map(int, input().split())) + [0] for _ in range(N)]\n arr.append([0]*(N+1)) # 0을 더해주는 이유 - 끝값이 1이면 else문을 통해 cnt 검증을 하지 못해서\n\n res = 0\n\n for a in range(N):\n cnt = 0\n\n for b in range(N+1): # 가로 순회\n if arr[a][b]:\n cnt += 1\n\n else:\n if cnt == K:\n res += 1\n cnt = 0\n\n for b in range(N+1): # 세로 순회\n if arr[b][a]:\n cnt += 1\n else:\n if cnt == K:\n res += 1\n cnt = 0\n\n print(f\"#{tc} {res}\")\n\n# 예전에 푼 코드로 대체하겠습니다.\n# 모든 좌표를 순회하며 카운팅을 하고, 벽을 만나면 초기화하는 형태","repo_name":"algo-itzy/algo-itzy","sub_path":"SWEA/implementation/1979-어디에_단어가_들어갈_수_있을까/1979-어디에_단어가_들어갈_수_있을까-seokzin.py","file_name":"1979-어디에_단어가_들어갈_수_있을까-seokzin.py","file_ext":"py","file_size_in_byte":891,"program_lang":"python","lang":"ko","doc_type":"code","stars":10,"dataset":"github-code","pt":"86"}
+{"seq_id":"30899809030","text":"import requests\nfrom bs4 import BeautifulSoup\nfrom fake_headers import Headers\nfrom pprint import pprint\nimport json\nfrom unicodedata import normalize\n\nKEYWORDS = [\"Django\", \"Flask\"]\n#Записать в json информацию о каждой вакансии - ссылка, вилка зп, название компании, город.\n\nHOST ='https://spb.hh.ru/search/vacancy?area=1&area=2&enable_snippets=true&excluded_text=&no_magic=' \\\n 'true&ored_clusters=true&search_field=name&search_field=description&search_period=' \\\n '7&text=Python%2C+django%2C+Flask&order_by=publication_time'\n\ndef get_headers():\n headers = Headers(browser='firefox', os='win')\n return headers.generate()\n\nresponse = requests.get(HOST, headers=get_headers())\nhh_main = response.text\n#pprint(hh_main)\n\nsoup = BeautifulSoup(hh_main, features='lxml')\nvacancies = soup.find_all('div', class_ ='serp-item')\n#pprint(vacancies)\n\nparsed = []\n\nfor vacancy in vacancies:\n\n h3_link = vacancy.find('h3')\n a_link = h3_link.find('a')\n href_link = a_link['href']\n link_abs = f'https://spb.hh.ru{href_link}'\n #print(link_abs)\n\n salary = vacancy.find('span', \"bloko-header-section-3\")\n if salary == None:\n salary_num = ' '\n else:\n salary_num = salary.text\n #print(salary_num)\n\n company = vacancy.find('a', class_=\"bloko-link bloko-link_kind-tertiary\")\n company_text = company.text\n #print(company_text)\n\n city = vacancy.find('div', {'data-qa': \"vacancy-serp__vacancy-address\"})\n city_text = city.text\n #print(city_text)\n\n parsed.append(\n {'link': link_abs,\n 'salary': normalize('NFKD', salary_num),\n 'company': normalize('NFKD', company_text),\n 'city': normalize('NFKD', city_text)\n\n }\n )\n\npprint(parsed)\n\nwith open('hh_vacs', 'w', encoding='utf-8') as file:\n json.dump(parsed, file, indent=4, ensure_ascii=False, separators=(',', ': '))\n\n\n\n\n","repo_name":"Mikhail15011976/Web-scraping","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":1933,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"16764784442","text":"def scale_ascii(string, scale):\n\n ret_string = \"\"\n \n for line in string.splitlines(): # why is this not split_lines()?\n line_to_scale = \"\"\n \n for char in line: \n for i in range(0, scale):\n line_to_scale += char\n \n for i in range(0, scale):\n ret_string += line_to_scale + \"\\n\" # not sure if this needs to differ between OSs \n\n return ret_string \n\n\nstring = \"\"\n\nwith open(\"art.txt\", 'r') as file:\n for line in file:\n string += line\n\n\nprint(scale_ascii(string, 2))\n","repo_name":"nchlsb/fun_algs_in_python","sub_path":"scale_ascii.py","file_name":"scale_ascii.py","file_ext":"py","file_size_in_byte":575,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"16112599266","text":"from flask import render_template, session, flash\nfrom flask.views import MethodView\nfrom models.event import Event\nfrom utils import helper\n\n\nclass HomeView(MethodView):\n def get(self):\n events = []\n for event in Event.query.order_by(Event.time_start).all():\n events.append({\n 'id': event.id,\n 'title': event.title,\n 'date': helper.get_breif_formatted_time(event.time_start),\n 'type': \"Seminar\" if event.event_type == Event.SEMINAR else \"Workshop\",\n 'is_ticketed': (f\"Rs. {event.ticket_price}\" if event.is_ticketed else \"Free\"),\n 'head': event.head\n })\n\n context = {\n 'title': \"Home\",\n 'user': session.get('user', None),\n 'events': events\n }\n return render_template(\"home.html\", **context)\n","repo_name":"ShaderOX/eventic-web-app","sub_path":"views/home.py","file_name":"home.py","file_ext":"py","file_size_in_byte":874,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"19201754973","text":"from Person_message.Views.Add_View import Add_Views\nfrom Person_message.Views.Delete_View import Delete_Views\nfrom Person_message.Views.Find_View import Find_Views\nfrom Person_message.Views.Modify_View import Modify_Views\nfrom Person_message.Views.Show_View import Show_Views\n\n\nclass Message_Views:\n \"\"\"\n (2)需要实现的功能\n 1)\t新增信息产业发展数据条目。\n 2)\t查找数据(可按地区、年份、指标名称等查找)。\n 3)\t修改数据条目(先查找,再修改。若当前条件查找出多个记录,则提示用户增加查询条件继续查找,直到确定唯一记录后再修改)。\n 4)\t删除数据条目(请参考上面修改的处理)。\n 5)\t显示信息产业发展数据列表。\n \"\"\"\n\n def __init__(self):\n self.function_list = Message_Views.__read_configuration_file()\n self.length = len(self.function_list)\n\n @staticmethod\n def __read_configuration_file():\n list_func = []\n with open(\"config.txt\", \"r\", encoding=\"utf-8\") as f:\n text = f.readline()\n while text:\n str_text = text.split(\"-\")\n list_func.append((str_text[0], str_text[1], str_text[2]))\n text = f.readline()\n return list_func\n\n def show_home_age(self):\n print(\"\"\"\n*************************************\n* 欢迎光临&伟大信息产业发展统计系统 *\n \"\"\")\n for item in self.function_list:\n print('\\t' + item[0], item[1])\n print(\"\\t\" + str(self.length + 1) + \".\", \"退出程序!\")\n print(\"\"\"\n*************************************\n \"\"\")\n while True:\n n = self.__show_home_input(self.function_list)\n if n == -1:\n break\n\n def __show_home_input(self, list_func):\n n = input(\"请输入您要进入的功能:\")\n try:\n if int(n) == self.length + 1:\n print(\"正在为您退出程序,欢迎下次光临 ^-^\")\n return -1\n elif int(n) <= self.length:\n eval(list_func[int(n) - 1][2]).show_function()\n except:\n print(\"输入错误,请重新输入!\")\n","repo_name":"fsym-fs/Python_AID","sub_path":"MyProject/Person_message/Views/Message_Views.py","file_name":"Message_Views.py","file_ext":"py","file_size_in_byte":2248,"program_lang":"python","lang":"zh","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"38547780366","text":"import string\nfrom pprint import pprint\n\n\nclass Node:\n def __init__(self, idx):\n self.idx = idx\n self.root = self\n self.followers = set() # Node\n\n @property\n def size(self):\n return len(self.root.followers) + 1\n\n def follow(self, node): # node: Node\n if self.is_connected(node):\n return\n\n if self != self.root:\n self.root.follow(node)\n\n for follower in self.followers:\n node.root.followers.add(follower)\n follower.root = node.root\n self.followers = set()\n\n node.root.followers.add(self)\n self.root = node.root\n\n def __repr__(self):\n return f\"Idx: {self.idx} \" \\\n f\"Root: {self.root.idx} ({', '.join([str(i.idx) for i in self.followers]) if self.followers else ''})\"\n\n\nclass UnionFind:\n def __init__(self, length: int):\n self.nodes = [Node(i) for i in range(length)]\n\n def connect(self, idx1: int, idx2: int):\n print()\n print(f\"union_find.connect({idx1}, {idx2})\")\n if self.nodes[idx1].is_connected(self.nodes[idx2]):\n return\n\n if self.nodes[idx1].size <= self.nodes[idx2].size:\n self.nodes[idx1].follow(self.nodes[idx2])\n else:\n self.nodes[idx2].root.follow(self.nodes[idx1].root)\n\n pprint([(idx, val) for idx, val in enumerate(self.nodes)])\n\n\nclass NonCompressedUnionFind:\n def __init__(self, length: int):\n self.parents = [i for i in range(length)]\n print(self.parents)\n\n def _find(self, i: int) -> int:\n \"\"\"find for a non-compressed path\"\"\"\n return i if self.parents[i] == i else self._find(self.parents[i])\n\n # Naive implementation of union()\n def connect(self, x: int, y: int):\n \"\"\"union for a non-compressed path\"\"\"\n xset = self._find(x)\n self.parents[xset] = self._find(y)\n print()\n print([i for i in range(len(self.parents))])\n print(self.parents)\n\n\ndef main():\n lowercase_letters = \"abcdefghijk\" # list(string.ascii_lowercase)\n union_find = UnionFind(len(lowercase_letters))\n # union_find = NonCompressedUnionFind(len(lowercase_letters))\n # union_find.connect(0, 2)\n # union_find.connect(1, 2)\n # union_find.connect(5, 6)\n # union_find.connect(6, 7)\n # union_find.connect(7, 8)\n # union_find.connect(0, 7)\n\n for i in range(len(lowercase_letters)-1):\n union_find.connect(i, i+1)\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"dosatos/algo-playground","sub_path":"dynamic/union_find.py","file_name":"union_find.py","file_ext":"py","file_size_in_byte":2486,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"26168731119","text":"\"\"\"\"\n# 包含应用工厂\n# 告诉Python flaskr文件夹应当视作一个包\n\"\"\"\nimport os\n\nfrom flask import Flask\n\n\n# 应用工厂函数\ndef create_app(test_config=None):\n # create and configure the app # 创建flask实例(对象)__name__是当前Python模块的名称\n app = Flask(__name__, instance_relative_config=True) # instance_relative_config=True告诉应用配置文件是相对于instance folder的相对路径\n app.config.from_mapping( # 设置一个应用的缺省配置\n SECRET_KEY='dev', # 保证数据安全\n DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'), # 数据文件存放路径\n )\n\n if test_config is None:\n # load the instance config, if it exists, when not testing\n app.config.from_pyfile('config.py', silent=True) # 使用config.py中的值来重载缺省配置\n else:\n # load the test config if passed in\n app.config.from_mapping(test_config)\n\n # ensure the instance folder exists\n try:\n os.makedirs(app.instance_path) # 确保app.instance_path存在\n except OSError:\n pass\n\n # a simple page that says hello\n @app.route('/hello')\n @app.route('/')\n def hello():\n return 'Hello, World!'\n\n from . import db\n db.init_app(app)\n\n from . import auth\n app.register_blueprint(auth.bp) # 导入并注册蓝图auth\n\n from . import blog\n app.register_blueprint(blog.bp)\n app.add_url_rule('/', endpoint='index') # 关联端点名称'index'和/ URL,是url_for()函数返回生成同样的/ URL\n\n return app\n","repo_name":"shanjiankanhai/flask_control","sub_path":"build/lib/flaskr/__init__.py","file_name":"__init__.py","file_ext":"py","file_size_in_byte":1783,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"14811091131","text":"import os\n\nfrom flask import render_template, redirect, url_for, request\nfrom werkzeug.urls import url_parse\nfrom werkzeug.utils import secure_filename\n\nfrom . import bp\nfrom .forms import UploadForm\nfrom .static.DCR_Validator import dcr_validator\n\n@bp.route('/')\ndef dcr_validator_upload_form():\n form = UploadForm()\n # static_folder = os.path.join(bp.static_folder, 'temp')\n # for file in os.listdir(static_folder): \n # os.remove(static_folder + '/' + file)\n return render_template('dcr_upload.html', form=form)\n\n@bp.route('/', methods=['GET', 'POST'])\ndef dcr_validator_results_view():\n wo_file = request.files['wo_file']\n dcr_file = request.files['dcr_file']\n wo_filename = secure_filename(wo_file.filename)\n dcr_filename = secure_filename(dcr_file.filename)\n if wo_filename != '' and dcr_filename != '':\n static_temp_dir = os.path.join(bp.static_folder, 'temp')\n if not os.path.isdir(static_temp_dir):\n os.mkdir(static_temp_dir)\n wo_filename = os.path.join(static_temp_dir, wo_filename)\n dcr_filename = os.path.join(static_temp_dir, dcr_filename)\n wo_file.save(wo_filename)\n dcr_file.save(dcr_filename)\n output_file = dcr_validator(wo_filename, dcr_filename)\n # os.remove(filename)\n else:\n return redirect(url_for('dcr_validator.dcr_validator_upload_form'))\n return render_template('dcr_results_view.html', output_file='temp/' + output_file)\n","repo_name":"mike-lloyd03/de-toolsets","sub_path":"app/tools/dcr_validator/routes.py","file_name":"routes.py","file_ext":"py","file_size_in_byte":1461,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"69884773084","text":"from .parser import *\nfrom lighthouse.util import *\nfrom lighthouse.util.qt import *\nfrom lighthouse.util.disassembler import disassembler\n\n#------------------------------------------------------------------------------\n# Composing Shell\n#------------------------------------------------------------------------------\n\nclass ComposingShell(QtWidgets.QWidget):\n \"\"\"\n The ComposingShell UI for interactive coverage composition.\n\n This class ties together all the individual components that make up\n the Composing Shell, wrapping it up in a nice portable widget. This\n includes the label sitting at the head of the shell, the text box\n (the shell, a.k.a ComposingLine), and the composition parser.\n\n In theory, multiple ComposingShell objects could be instantiated and\n placed in various dialogs, forms, views, etc. These shells are fairly\n independent, but obviously must communicate with the director.\n \"\"\"\n\n def __init__(self, lctx, table_model, table_view=None):\n super(ComposingShell, self).__init__()\n self.setObjectName(self.__class__.__name__)\n\n # external entities\n self._director = lctx.director\n self._palette = lctx.palette\n self._table_model = table_model\n self._table_view = table_view\n\n # command / input\n self._search_text = \"\"\n self._command_timer = QtCore.QTimer()\n\n # the last known user AST\n self._last_ast = None\n\n # composition parser related members\n self._parser = CompositionParser()\n self._parser_error = None\n self._parsed_tokens = []\n self._shorthand = []\n\n # configure the widget for use\n self._ui_init()\n self.refresh_theme()\n\n #--------------------------------------------------------------------------\n # Properties\n #--------------------------------------------------------------------------\n\n @property\n def text(self):\n \"\"\"\n The existing shell text.\n \"\"\"\n return str(self._line.toPlainText())\n\n #--------------------------------------------------------------------------\n # Initialization - UI\n #--------------------------------------------------------------------------\n\n def _ui_init(self):\n \"\"\"\n Initialize UI elements.\n \"\"\"\n\n # initialize a monospace font to use with our widget(s)\n self._font = MonospaceFont()\n self._font.setPointSizeF(normalize_to_dpi(10))\n self._font_metrics = QtGui.QFontMetricsF(self._font)\n\n # initialize our ui elements\n self._ui_init_shell()\n self._ui_init_completer()\n self._ui_init_signals()\n self._ui_layout()\n\n def _ui_init_shell(self):\n \"\"\"\n Initialize the shell UI elements.\n \"\"\"\n\n # the composer label at the head of the shell\n self._line_label = QtWidgets.QLabel(\"Composer\")\n self._line_label.setStyleSheet(\"QLabel { margin: 0 1ex 0 1ex }\")\n self._line_label.setAlignment(QtCore.Qt.AlignCenter)\n self._line_label.setFont(self._font)\n self._line_label.setFixedWidth(self._line_label.sizeHint().width())\n\n # the text box / shell / ComposingLine\n self._line = ComposingLine()\n\n def _ui_init_completer(self):\n \"\"\"\n Initialize the coverage hint UI elements.\n \"\"\"\n self._completer_model = QtCore.QStringListModel([])\n\n self._completer = QtWidgets.QCompleter(self)\n self._completer.setCompletionMode(QtWidgets.QCompleter.PopupCompletion)\n self._completer.setModelSorting(QtWidgets.QCompleter.CaseInsensitivelySortedModel)\n self._completer.setCaseSensitivity(QtCore.Qt.CaseInsensitive)\n self._completer.setModel(self._completer_model)\n self._completer.setWrapAround(False)\n self._completer.popup().setFont(self._font)\n self._completer.setWidget(self._line)\n\n def _ui_init_signals(self):\n \"\"\"\n Connect UI signals.\n \"\"\"\n\n # text changed in the shell\n self._line.textChanged.connect(self._ui_shell_text_changed)\n\n # cursor position changed in the shell\n self._line.cursorPositionChanged.connect(self._ui_shell_cursor_changed)\n\n # return key pressed in the shell\n self._line.returnPressed.connect(self._ui_shell_return_pressed)\n\n # register for cues from the director\n self._director.coverage_created(self._internal_refresh)\n self._director.coverage_deleted(self._internal_refresh)\n self._director.coverage_modified(self._internal_refresh)\n self._director.coverage_switched(self._coverage_switched)\n\n # register for cues from the model\n self._table_model.layoutChanged.connect(self._ui_shell_text_changed)\n\n def _ui_layout(self):\n \"\"\"\n Layout the major UI elements of the widget.\n \"\"\"\n\n # create a qt layout for the 'composer' (the shell)\n layout = QtWidgets.QHBoxLayout()\n layout.setContentsMargins(0,0,0,0)\n\n #\n # Shell Layout:\n # [ [ 'Composer' ][ ComposingLine ... ] ]\n #\n\n layout.addWidget(self._line_label)\n layout.addWidget(self._line)\n\n # apply the widget layout\n self.setLayout(layout)\n\n #--------------------------------------------------------------------------\n # Refresh\n #--------------------------------------------------------------------------\n\n def refresh(self):\n \"\"\"\n Public refresh of the shell.\n \"\"\"\n self._internal_refresh()\n\n @disassembler.execute_ui\n def refresh_theme(self):\n \"\"\"\n Refresh UI facing elements to reflect the current theme.\n \"\"\"\n assert (self._line and self._completer), \"UI not yet initialized...\"\n\n # configure the shell background & default text color\n qpal = self._line.palette()\n qpal.setColor(QtGui.QPalette.Text, self._palette.shell_text)\n qpal.setColor(QtGui.QPalette.WindowText, self._palette.shell_text)\n self._line.setPalette(qpal)\n\n # set other hard to access shell theme elements\n self._line.setStyleSheet(\n \"QPlainTextEdit {\"\n \" color: %s;\" % self._palette.shell_text.name() + # this line ensures the text cursor changes color, with the theme\n \" background-color: %s;\" % self._palette.shell_background.name() +\n \" border: 1px solid %s;\" % self._palette.shell_border.name() +\n \"} \"\n \"QPlainTextEdit:hover, QPlainTextEdit:focus {\"\n \" border: 1px solid %s;\" % self._palette.shell_border_focus.name() +\n \"}\"\n )\n\n # refresh completer popup style...\n self._completer.popup().setStyleSheet(\n \"background: %s;\" % self._palette.shell_hint_background.name() +\n \"color: %s;\" % self._palette.shell_hint_text.name()\n )\n\n @disassembler.execute_ui\n def _internal_refresh(self):\n \"\"\"\n Internal refresh of the shell.\n \"\"\"\n self._refresh_hint_list()\n self._ui_shell_text_changed()\n\n def _refresh_hint_list(self):\n \"\"\"\n Refresh the shell coverage hint contents.\n \"\"\"\n hints = []\n self._shorthand = []\n\n # get the detailed coverage strings from the director\n for x in self._director.coverage_names:\n hints.append(self._director.get_coverage_string(x))\n symbol = self._director.get_shorthand(x)\n if symbol:\n self._shorthand.append(symbol)\n\n # install the fresh coverage strings to the hint completer dialog\n self._completer_model.setStringList(hints)\n\n # queue a UI coverage hint if necessary\n self._ui_hint_coverage_refresh()\n\n def _coverage_switched(self):\n \"\"\"\n Handle a coverage switched event.\n\n specifically, we want cover the specical case where the hot shell is\n being switched to. In these cases, we should forcefully clear the\n 'last' AST so that the full shell expression is re-evaluated and\n sent forward to the director.\n\n this will ensure that the director will evaluate and display the\n results of the present expression as the 'Hot Shell' is now active.\n \"\"\"\n if self._director.coverage_name == \"Hot Shell\":\n self._last_ast = None\n self._internal_refresh()\n\n #--------------------------------------------------------------------------\n # Signal Handlers\n #--------------------------------------------------------------------------\n\n def _ui_hint_tooltip(self, text, index):\n \"\"\"\n Display a non-intrusive error tooltip to the user.\n \"\"\"\n\n #\n # hide the coverage hint if it is visible. things can look cluttered\n # down by the shell if we're trying to show both.\n #\n\n self._ui_hint_coverage_hide()\n\n # create a cursor and move it to the parse error location on the shell\n cursor_tip = QtGui.QTextCursor(self._line.document())\n cursor_tip.setPosition(index)\n\n #\n # using our carefully positioned cursor, we can now extract the relative\n # pixel position of the parse error on the shell and map its global\n # (absolute) pixel position on the screen.\n #\n\n position = self._line.mapToGlobal(self._line.cursorRect(cursor_tip).topLeft())\n\n # draw the tooltip at the computed parse error position\n x = QtWidgets.QToolTip.showText(position, text)\n\n def _ui_shell_cursor_changed(self):\n \"\"\"\n Cursor position changed in the shell.\n \"\"\"\n self._ui_hint_coverage_refresh()\n\n def _ui_shell_text_changed(self):\n \"\"\"\n Text changed in the shell.\n \"\"\"\n text = self.text\n\n #\n # a Search, eg '/DnsParse_'\n #\n\n if self.is_search(text):\n self._execute_search(text)\n self._highlight_search()\n return\n\n # not a search query clear any lingering filters for it\n else:\n self._table_model.filter_string(\"\")\n\n #\n # a Jump, eg '0x804010a' or 'sub_1400016F0'\n #\n\n if self.is_jump(text) and self._table_view:\n self._line_label.setText(\"Jump\")\n self._highlight_jump()\n return\n\n #\n # a Composition, eg '(A | B) - C'\n #\n\n self._execute_composition(text)\n self._highlight_composition()\n self._ui_hint_coverage_refresh()\n\n def _ui_shell_return_pressed(self):\n \"\"\"\n Return / Enter pressed in the shell.\n\n The user pressed 'enter' in the shell, this means we want to try\n and save their composition as a new coverage set to the director.\n \"\"\"\n text = self.text\n\n # a search query has no accept state, nothing to do\n if self.is_search(text):\n return\n\n # jump to the function entry containing the requested address\n if self.is_jump(text) and self._table_view:\n self._execute_jump(text)\n return\n\n # attempt to save the user crafted composition\n self._accept_composition()\n\n #--------------------------------------------------------------------------\n # Search\n #--------------------------------------------------------------------------\n\n @staticmethod\n def is_search(text):\n \"\"\"\n Check if a string (text) looks like a search query.\n\n A search query is used to filter functions listed in the coverage\n overview table based on their name.\n\n eg: text = '/DnsParse_'\n \"\"\"\n return (text and text[0] == \"/\")\n\n def _execute_search(self, text):\n \"\"\"\n Execute the search semantics.\n \"\"\"\n self._search_text = text[1:]\n\n #\n # if the user input is only \"/\" (starting to type something), hint\n # that they are entering the Search mode. nothing else to do!\n #\n\n if text == \"/\":\n self._line_label.setText(\"Search\")\n return\n\n #\n # stop an existing command timer if there is one running. we are about\n # to schedule a new one or execute inline. so the old/deferred command\n # is no longer needed.\n #\n\n self._command_timer.stop()\n\n #\n # if the functions list is HUGE, we want to defer the filtering until\n # we think the user has stopped typing as each pass may take awhile\n # to compute (while blocking the main thread...)\n #\n\n if self._director.metadata.is_big():\n self._command_timer = singleshot(1000, self._execute_search_internal)\n self._command_timer.start()\n\n #\n # the database is not *massive*, let's execute the search immediately\n #\n\n else:\n self._execute_search_internal()\n\n # done\n return\n\n def _execute_search_internal(self):\n \"\"\"\n Execute the actual search filtering & coverage metrics.\n \"\"\"\n\n # the given text is a real search query, apply it as a filter now\n self._table_model.filter_string(self._search_text)\n\n # compute coverage % of the visible (filtered) results\n percent = self._table_model.get_modeled_coverage_percent()\n\n # show the coverage % of the search results in the shell label\n self._line_label.setText(\"%1.2f%%\" % percent)\n\n def _highlight_search(self):\n \"\"\"\n Syntax highlight a search query.\n \"\"\"\n\n self._line.setUpdatesEnabled(False)\n ################# UPDATES DISABLED #################\n\n # clear any existing text colors\n self._color_clear()\n\n # color search based on if there are any matching results\n if self._table_model.rowCount():\n self._color_text(self._palette.shell_text_valid, start=1)\n else:\n self._color_text(self._palette.shell_text_invalid, start=1)\n\n ################# UPDATES ENABLED #################\n self._line.setUpdatesEnabled(True)\n\n # done\n return\n\n #--------------------------------------------------------------------------\n # Jump\n #--------------------------------------------------------------------------\n\n def is_jump(self, text):\n \"\"\"\n Check if a string (text) looks like a jump query.\n\n A jump query is used to jump to a function in the coverage overview\n table based on their address.\n\n eg: text = '0x8040100', or 'sub_1400016F0'\n \"\"\"\n return self._compute_jump(text) != 0\n\n def _compute_jump(self, text):\n \"\"\"\n Compute the function address destination of a jump target from a string.\n\n eg: text = '0x8040100', or 'sub_8040100' --> jump to function 0x8040100\n \"\"\"\n text = text.strip()\n\n #\n # if the user input is less than two characters, we automatically\n # dismiss it as a valid jump target. the primary reasons for this\n # is to avoid possible shorthand parsing clashes.\n #\n # eg: imagine the user has a valid function named 'A' that they want to\n # jump to - well we actually choose to ignore that request here.\n #\n # We favor the importance of shorthand symbols as used in compositions.\n #\n\n if len(text) < 2:\n return 0\n\n #\n # attempt to convert the user input from a hex number eg '0x8040105'\n # to its corresponding function address validated by the director\n #\n\n try:\n address = int(text, 16)\n except ValueError:\n pass\n else:\n functions = self._director.metadata.get_functions_containing(address)\n if functions:\n return functions[0].address\n\n #\n # the user string did not translate to a parsable hex number (address)\n # or the function it falls within could not be found in the director.\n #\n # attempt to convert the user input from a function name, eg 'main',\n # or 'sub_1400016F0' to a function address validated by the director.\n #\n\n # special case to make 'sub_*' prefixed user inputs case insensitive\n if text.lower().startswith(\"sub_\"):\n\n # attempt uppercase hex (IDA...)\n function_metadata = self._director.metadata.get_function_by_name(\"sub_\" + text[4:].upper())\n if function_metadata:\n return function_metadata.address\n\n # attempt lowercase hex (Binja...)\n function_metadata = self._director.metadata.get_function_by_name(\"sub_\" + text[4:].lower())\n if function_metadata:\n return function_metadata.address\n\n #\n # no luck yet, let's just throw the user's raw text at the lookup. this\n # would probably be a function they renamed, such as 'foobar'\n #\n\n function_metadata = self._director.metadata.get_function_by_name(text)\n if function_metadata:\n return function_metadata.address\n\n #\n # the user string did not translate to a function name that could\n # be found in the director. so I guess they're not trying to jump...\n #\n\n # failure, the user input (text) isn't a jump ...\n return 0\n\n def _execute_jump(self, text):\n \"\"\"\n Execute the jump semantics.\n \"\"\"\n assert self._table_view\n\n # retrieve the jump target\n function_address = self._compute_jump(text)\n assert function_address\n\n # select the function entry in the coverage overview table\n self._table_view.selectRow(self._table_model.func2row[function_address])\n self._table_view.scrollTo(\n self._table_view.currentIndex(),\n QtWidgets.QAbstractItemView.PositionAtCenter\n )\n\n def _highlight_jump(self):\n \"\"\"\n Syntax highlight a jump query.\n \"\"\"\n\n self._line.setUpdatesEnabled(False)\n ################# UPDATES DISABLED #################\n\n # clear any existing text colors\n self._color_clear()\n\n # color jump\n self._color_text(self._palette.shell_text_valid)\n\n ################# UPDATES ENABLED #################\n self._line.setUpdatesEnabled(True)\n\n # done\n return\n\n #--------------------------------------------------------------------------\n # Composition\n #--------------------------------------------------------------------------\n\n def _execute_composition(self, text):\n \"\"\"\n Execute a composition query.\n \"\"\"\n\n # reset the shell head text\n self._line_label.setText(\"Composer\")\n\n # attempt to parse & execute a composition\n try:\n\n # clear any previous parse attempts/failures\n self._parser_error = None\n\n # attempt to parse the user input against the composition grammar\n self._parsed_tokens, ast = self._parser.parse(text, self._shorthand)\n\n # if the AST changed since the last parse, inform the director\n if not ast_equal(self._last_ast, ast):\n self._director.cache_composition(ast)\n\n # save the newly parsed ast\n self._last_ast = ast\n\n # parse failure\n except ParseError as e:\n self._parser_error = e\n\n #\n # even though we failed to generate an AST that can be evaluated\n # by the director, we still want to save the list of tokens parsed.\n # these tokens will still be used for basic syntax highlighting.\n #\n\n self._parsed_tokens = e.parsed_tokens\n\n # done\n return True\n\n def _highlight_composition(self):\n \"\"\"\n Syntax highlight a composition.\n \"\"\"\n\n self._line.setUpdatesEnabled(False)\n ################# UPDATES DISABLED #################\n\n # clear any existing text colors\n self._color_clear()\n\n # the parse failed, so there will be invalid text to highlight\n if self._parser_error:\n self._color_invalid()\n\n # paint any valid tokens\n self._color_tokens()\n\n ################# UPDATES ENABLED #################\n self._line.setUpdatesEnabled(True)\n\n # done\n return\n\n def _accept_composition(self):\n \"\"\"\n Save the user crafted composition to the director.\n \"\"\"\n\n #\n # if there's an existing parse error on the shell, there's nothing we\n # can do but pop a hint for the user and have them try again\n #\n\n if self._parser_error:\n self._ui_hint_tooltip(\"Invalid Composition\", self._parser_error.error_index)\n return\n\n #\n # While the user is picking a name for the new composite, we might as well\n # try and compute/cache it asynchronously :-). kick the caching off now.\n #\n\n self._director.cache_composition(self._last_ast, force=True)\n\n #\n # the user has entered a valid composition that we have parsed. we\n # want to save this to the director, but first we need a name for the\n # new composition. pop a simple dialog prompting the user for a\n # composition name\n #\n\n ok, coverage_name = prompt_string(\n \"Composition Name:\",\n \"Please enter a name for this composition\",\n \"COMP_%s\" % self.text\n )\n\n #\n # once the naming prompt closes, the composing shell tries to pop\n # the coverage hint again which can make it annoying and too\n # aggressive.\n #\n # clearing focus on the text line will ensure the hint does not pop\n #\n\n self._line.clearFocus()\n\n #\n # returning back to the naming prompt, if the user did not enter a\n # coverage name (or hit cancel), we will abort saving the composition\n #\n\n if not (ok and coverage_name):\n return\n\n #\n # a name was given and all is good, ask the director to save the last\n # composition under the user specified coverage name\n #\n\n self._director.add_composition(coverage_name, self._last_ast)\n\n # switch to the newly created composition\n self._director.select_coverage(coverage_name)\n\n #--------------------------------------------------------------------------\n # Coverage Hint\n #--------------------------------------------------------------------------\n\n def _ui_hint_coverage_refresh(self):\n \"\"\"\n Draw the coverage hint as applicable.\n \"\"\"\n\n #\n # if the shell is not focused (or empty), don't bother to show a hint\n # as it frequently gets in the way and is really annoying...\n #\n\n if not (self._line.hasFocus() and self.text):\n self._ui_hint_coverage_hide()\n return\n\n #\n # if the text cursor is moving and the user has their left mouse\n # button held, then they are probably doing a click + drag text\n # selection so we shouldn't be naggin them with hints and stuff\n #\n # without this condition, click+drag selection gets really choppy\n #\n\n if QtWidgets.QApplication.mouseButtons() & QtCore.Qt.LeftButton:\n self._ui_hint_coverage_hide()\n return\n\n # scrape info from the current shell text state\n cursor_index = self._line.textCursor().position()\n text_token = self._get_cursor_coverage_token(cursor_index)\n\n #\n # if the user's text cursor is touching the index that produced the\n # parse error (assuming there was one) ...\n #\n\n if self._parser_error and self._parser_error.error_index == cursor_index:\n\n #\n # if the parse error indicates the parse failed because it expected\n # a coverage token but didn't get one, show the complete coverage\n # list. The user should know their list of options bro.\n #\n\n if self._parser_error.expected == TokenCoverageSingle:\n self._ui_hint_coverage_show()\n\n #\n # if the user's text cursor is touching a valid coverage token, we want\n # to pop a hint that shows the details for the coverage matching that\n # explicit token / shorthand. It's a subtle convenience :-)\n #\n\n elif text_token and (text_token.type == \"COVERAGE_TOKEN\"):\n self._ui_hint_coverage_show(text_token.value)\n\n #\n # if the user's text cursor is not touching any text index of interest,\n # there's no reason for us to show any sort of hints. be sure any hints\n # are hidden.\n #\n\n else:\n self._ui_hint_coverage_hide()\n\n # done\n return\n\n def _ui_hint_coverage_show(self, prefix=''):\n \"\"\"\n Show the coverage hint at the shell's cursor position.\n\n Optionally, one can specify a prefix (eg, the shorthand 'A') to\n limit the scope of coverage items hinted.\n \"\"\"\n\n #\n # if the completer is already visible and showing the requested prefix,\n # then we have nothing to do. this will help mitigate refresh flickers\n #\n\n if self._completer.popup().isVisible() and \\\n self._completer.completionPrefix() == prefix:\n return\n\n # if there was anything previously selected in the popup, clear it now\n self._completer.popup().clearSelection()\n\n # show only hints matching the given prefix\n # eg: prefix = 'A' will show only entry 'A - 42.30% - drcov.8...'\n self._completer.setCompletionPrefix(prefix)\n\n # specify the position and size of the hint popup\n cr = self._line.cursorRect()\n cr.setWidth(self._completer.popup().sizeHintForColumn(0))\n\n # show the coverage hint popup\n self._completer.complete(cr)\n self._completer.popup().repaint() # reduces hint flicker on the Hot Shell\n\n # done\n return\n\n def _ui_hint_coverage_hide(self):\n \"\"\"\n Hide the coverage hint.\n \"\"\"\n self._completer.popup().hide()\n\n def _get_cursor_coverage_token(self, index):\n \"\"\"\n Get the coverage token touching the cursor (if there is one).\n \"\"\"\n\n # iterate through the list of parsed tokens on the line edit / shell\n for text_token in self._parsed_tokens:\n\n # skip any non-coverage text tokens\n if not text_token.type == \"COVERAGE_TOKEN\":\n continue\n\n # if this coverage text token touches our cursor, return it\n if text_token.span[0] <= index <= text_token.span[1]:\n return text_token\n\n # no coverage token on either side of the cursor\n return None\n\n #--------------------------------------------------------------------------\n # Composition Highlighting\n #--------------------------------------------------------------------------\n\n def _color_tokens(self):\n \"\"\"\n Syntax highlight the valid composition tokens.\n \"\"\"\n\n # more code-friendly, readable aliases\n TOKEN_COLORS = self._palette.TOKEN_COLORS\n\n #\n # in order to syntax highlight text of interest, we must use a text\n # cursor as the vehicle to move around the text box (shell) and\n # manipulate its contents (eg, painting colors)\n #\n # this is simply the way Qt exposes this functionality\n #\n\n # alias the user cursor, and save its original (current) position\n cursor = self._line.textCursor()\n cursor_position = cursor.position()\n\n # configure text formatting properties we want our cursor to apply\n highlight = QtGui.QTextCharFormat()\n highlight.setFontWeight(QtGui.QFont.Bold) # bolds text we 'type'\n\n #\n # we are about to start painting our text, but we want to disable the\n # shell from emitting any textChanged/cursorMoved kind of signals\n # that originate from our painting code.\n #\n # we use the blockSignals gateways below to disable/enable the signals\n # for the duration of our painting.\n #\n\n self._line.blockSignals(True)\n ################# UPDATES DISABLED #################\n\n # iterate through every parsed token, and paint it\n for token in self._parsed_tokens:\n\n # if the palette doesn't define a color for this token, ignore it\n if token.type not in TOKEN_COLORS:\n continue\n\n # alias the start and end indexes of the text token to paint\n token_start, token_end = token.span\n\n # 'click' and 'drag' to select the token text\n cursor.setPosition(token_start, QtGui.QTextCursor.MoveAnchor)\n cursor.setPosition(token_end, QtGui.QTextCursor.KeepAnchor)\n\n # configure the colors/style for this explicit token\n #highlight.setBackground(QtGui.QBrush(QtGui.QColor(TOKEN_COLORS[token.type])))\n highlight.setForeground(QtGui.QBrush(TOKEN_COLORS[token.type]))\n cursor.setCharFormat(highlight)\n\n #\n # we are done painting all the parsed tokens. let's restore the user\n # cursor back to its original state so they are none-the-wiser\n #\n\n cursor.setPosition(cursor_position)\n cursor.setCharFormat(QtGui.QTextCharFormat())\n self._line.setTextCursor(cursor)\n\n ################# UPDATES ENABLED #################\n self._line.blockSignals(False)\n\n # done\n return\n\n def _color_invalid(self):\n \"\"\"\n Highlight the invalid (un-parsable) text.\n\n Please read through the _color_tokens() function for a more\n complete walkthrough of the text painting process.\n \"\"\"\n assert self._parser_error\n\n # the invalid text starts from the token that caused a parse error\n invalid_start = self._parser_error.error_index\n invalid_text = self.text[invalid_start:]\n\n # no invalid text? nothing to highlight I guess!\n if not invalid_text:\n return\n\n # alias the user cursor, and save its original (current) position\n cursor = self._line.textCursor()\n cursor_position = cursor.position()\n\n # setup the invalid text highlighter\n invalid_color = self._palette.shell_highlight_invalid\n highlight = QtGui.QTextCharFormat()\n highlight.setFontWeight(QtGui.QFont.Bold)\n highlight.setBackground(QtGui.QBrush(invalid_color))\n\n self._line.blockSignals(True)\n ################# UPDATES DISABLED #################\n\n # select the invalid text\n cursor.setPosition(invalid_start, QtGui.QTextCursor.MoveAnchor)\n cursor.setPosition(len(self.text), QtGui.QTextCursor.KeepAnchor)\n\n # insert a highlighted version of the invalid text\n cursor.setCharFormat(highlight)\n\n # reset the cursor position & style\n cursor.setPosition(cursor_position)\n cursor.setCharFormat(QtGui.QTextCharFormat())\n self._line.setTextCursor(cursor)\n\n ################# UPDATES ENABLED #################\n self._line.blockSignals(False)\n\n # done\n return\n\n #--------------------------------------------------------------------------\n # General Highlighting\n #--------------------------------------------------------------------------\n\n def _color_clear(self):\n \"\"\"\n Clear any existing text colors.\n \"\"\"\n self._color_text()\n\n def _color_text(self, color=None, start=0, end=0):\n \"\"\"\n Color shell text with the given color.\n \"\"\"\n\n # if no end was specified, apply the style till the end of input\n if end == 0:\n end = len(self.text)\n\n # alias the user cursor, and save its original (current) position\n cursor = self._line.textCursor()\n cursor_position = cursor.position()\n\n # setup a simple font coloring (or clearing) text format\n simple = QtGui.QTextCharFormat()\n if color:\n simple.setForeground(QtGui.QBrush(color))\n\n self._line.blockSignals(True)\n ################# UPDATES DISABLED #################\n\n # select the entire line\n cursor.setPosition(start, QtGui.QTextCursor.MoveAnchor)\n cursor.setPosition(end, QtGui.QTextCursor.KeepAnchor)\n\n # set all the text to the simple format\n cursor.setCharFormat(simple)\n\n # reset the cursor position & style\n cursor.setPosition(cursor_position)\n self._line.setTextCursor(cursor)\n\n ################# UPDATES ENABLED #################\n self._line.blockSignals(False)\n\n # done\n return\n\n#------------------------------------------------------------------------------\n# Composing Line\n#------------------------------------------------------------------------------\n\nclass ComposingLine(QtWidgets.QPlainTextEdit):\n \"\"\"\n The textbox UI where user compositions are entered (typed).\n\n While this a QLineEdit may appear to be more appropriate for our\n 'Composing Shell', its support for syntax highlighting like features\n are completely absent.\n\n QPlainTextEdit has much better support for coloring or highlighting\n entered text, so we subclass from it and make a best effort attempt\n to make it appear and act like a QLineEdit 'shell'\n \"\"\"\n\n #\n # QLineEdit has a signal called 'returnPressed' which fires when the\n # user hits 'return' or 'enter'. This is a convenient signal, but\n # QPlainTextEdit does *not* have an equivalent.\n #\n # We define and fire this signal ourself for consistency and the same\n # conveniences as the one QLineEdit offers.\n #\n\n returnPressed = QtCore.pyqtSignal()\n\n def __init__(self, parent=None):\n super(ComposingLine, self).__init__(parent)\n self.setObjectName(self.__class__.__name__)\n\n # configure the widget for use\n self._ui_init()\n\n #--------------------------------------------------------------------------\n # Initialization - UI\n #--------------------------------------------------------------------------\n\n def _ui_init(self):\n \"\"\"\n Initialize UI elements.\n \"\"\"\n\n # initialize a monospace font to use with our widget(s)\n self._font = MonospaceFont()\n self._font.setPointSizeF(normalize_to_dpi(10))\n self._font_metrics = QtGui.QFontMetricsF(self._font)\n self.setFont(self._font)\n\n # configure the QPlainTextEdit to appear and act as much like a\n # QLineEdit as possible (a single line text box)\n self.setWordWrapMode(QtGui.QTextOption.NoWrap)\n self.setLineWrapMode(QtWidgets.QPlainTextEdit.NoWrap)\n self.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)\n self.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)\n self.setTabChangesFocus(True)\n self.setMaximumBlockCount(1)\n\n # set the height of the textbox based on some arbitrary math :D\n LINE_PADDING = self.document().documentMargin()*2\n line_height = self._font_metrics.height() + LINE_PADDING + 2\n self.setFixedHeight(int(line_height))\n\n #--------------------------------------------------------------------------\n # QPlainTextEdit Overloads\n #--------------------------------------------------------------------------\n\n def keyPressEvent(self, e):\n \"\"\"\n Overload of the key press event.\n \"\"\"\n\n # trap the return/enter key event\n if e.key() == QtCore.Qt.Key_Return or \\\n e.key() == QtCore.Qt.Key_Enter:\n\n #\n # fire our convenience signal notifying listeners that the user\n # pressed enter. this signal firing indicates the user is\n # probably trying to complete their query / input.\n #\n\n self.returnPressed.emit()\n\n #\n # now we must consume the keypress so it doesn't get passed on\n # to any other widgets/handlers/put in the text box\n #\n\n e.accept()\n\n # business as usual\n else:\n super(ComposingLine, self).keyPressEvent(e)\n\n def timerEvent(self, e):\n \"\"\"\n Stubbed out to prevent the QPlainTextEdit selection autoscroll.\n \"\"\"\n return\n","repo_name":"gaasedelen/lighthouse","sub_path":"plugins/lighthouse/composer/shell.py","file_name":"shell.py","file_ext":"py","file_size_in_byte":36468,"program_lang":"python","lang":"en","doc_type":"code","stars":2013,"dataset":"github-code","pt":"86"}
+{"seq_id":"13652306498","text":"# id успешной отправки: 78896004\nfrom exeptions import DataNotFound\n\n\nclass Stack:\n \"\"\"\n Класс - калькулятор. Произодит вычисления.\n Поддерживает методы:\n - calculate(data) - принимает на вход последовательность(data) операторов\n и операндов.\n Возвращает результат арифметического вычисления.\n Пример data: ['1', '2', '+', '3', '*']\n Пример результата выполнения функции: 9\n \"\"\"\n def __init__(self):\n self.__stack = []\n self.__math_operations = {\n '-': lambda a, b: b - a,\n '+': lambda a, b: b + a,\n '/': lambda a, b: b // a,\n '*': lambda a, b: b * a,\n }\n\n def calculate(self, data):\n if not data:\n raise DataNotFound\n for i in data:\n if i not in self.__math_operations.keys():\n self.__stack.append(int(i))\n continue\n if len(self.__stack) >= 2:\n result = self.__math_operations[i](\n self.__stack.pop(),\n self.__stack.pop()\n )\n self.__stack.append(result)\n return self.__stack.pop()\n\n\ndef main():\n \"\"\"\n Читает арифметическое выражение из файла, записанное в форме обратной\n польской нотации и показывает результат вычисления этого выражения.\n \"\"\"\n file = open('input.txt')\n data = file.read().rstrip().split()\n\n stack = Stack()\n\n print(stack.calculate(data))\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"VitaliiLuki/algorithms","sub_path":"calculator.py","file_name":"calculator.py","file_ext":"py","file_size_in_byte":1895,"program_lang":"python","lang":"ru","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"2785134089","text":"import shelve\nimport os\nclass Category:\n\tdef __init__(self,catName):\n\t\tname = catName\n\n\tdef addCategory(newCat):\n\t\twith shelve.open('categorydb','c') as db:\n\t\t\tif 'cats' not in db:\n\t\t\t\tdb['cats'] = []\n\t\t\tcategories = db['cats']\n\t\t\tif newCat not in categories:\n\t\t\t\tcategories.append(newCat)\n\t\t\t\tdb['cats'] = categories\n\t\t\t\treturn \"success\"\n\t\t\telse:\n\t\t\t\treturn \"duplicate\"\n\n\tdef getList():\n\t\twith shelve.open('categorydb','c') as db:\n\t\t\tif 'cats' not in db:\n\t\t\t\tdb['cats'] = []\n\t\t\tcategories = db['cats']\n\t\t\treturn categories\n\n\tdef deleteCategory(catDel):\n\t\twith shelve.open('categorydb','w') as db:\n\t\t\tcategories = db['cats']\n\t\t\tcategories.remove(catDel)\n\t\t\tdb['cats'] = categories\n\n\t\twith shelve.open('questiondb','w',writeback =True) as db:\n\t\t\tfor questionID in db.keys():\n\t\t\t\tif catDel in db[questionID].category:\n\n\t\t\t\t\ttStr = db[questionID].category\n\t\t\t\t\tprint(tStr)\n\t\t\t\t\ttStr = tStr.replace((catDel+\" \"),\"\")\n\t\t\t\t\tprint('inCategoryafterReplaceis' + tStr)\n\t\t\t\t\tdb[questionID].category = tStr\n\n\tdef questionCount(catCount):\n\t\tcount = 0\n\t\twith shelve.open('questiondb','r') as db:\n\t\t\tfor questionID in db.keys():\n\t\t\t\tif catCount in db[questionID].category:\n\t\t\t\t\tcount+=1\n\t\t\t\t\t\n\t\treturn count","repo_name":"joseffsmith/SoftwareEngineeringQuiz","sub_path":"Category.py","file_name":"Category.py","file_ext":"py","file_size_in_byte":1191,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"70487676125","text":"import speech_recognition as sr\nfrom logger import Logger\nfrom general import clear_console\nfrom playsound import playsound\n\n\nclass Recognizer:\n def __init__(self):\n self.required = -1\n for index, name in enumerate(sr.Microphone.list_microphone_names()):\n if 'pulse' in name.lower():\n self.required = index\n break\n self.language = 'en-US'\n self.listener = sr.Recognizer()\n self.logger = Logger()\n\n def language_selector(self, language):\n if language == 'ar':\n self.language = 'ar-SA'\n elif language == 'ch':\n self.language = 'zh-CN'\n elif language == 'de':\n self.language = 'de-DE'\n elif language == 'fa':\n self.language = 'fa-IR'\n elif language == 'fr':\n self.language = 'fr-FR'\n elif language == 'it':\n self.language = 'it-IT'\n elif language == 'ru':\n self.language = 'ru-RU'\n elif language == 'sp':\n self.language = 'es-ES'\n else:\n self.language = 'en-US'\n\n def start(self, _lang=None):\n if _lang:\n self.language_selector(_lang)\n try:\n with sr.Microphone(device_index=self.required) as source:\n clear_console()\n logger.log('anton-speech-recognition-is-starting',\n color='white', indent=2, _lang=self.language)\n self.listener.adjust_for_ambient_noise(source, duration=0.5)\n while True:\n voice = self.listener.listen(source)\n try:\n command = self.listener.recognize_google(\n voice, language=self.language).lower()\n logger.log(command, color='green',\n prefix='You', _lang=self.language)\n if 'hey' in command or 'anton' in command:\n playsound('src/beep.wav')\n self.logger.log(\n 'listening', color='yellow', indent=2, _lang=self.language)\n return True\n except Exception as e:\n logger.log('an-error-has-occurred',\n color='red', indent=2, _lang=self.language)\n logger.log(str(e), color='red', indent=4)\n except Exception:\n return False\n\n def listen(self, _lang=None):\n if _lang:\n self.language_selector(_lang)\n try:\n with sr.Microphone(device_index=self.required) as source:\n self.listener.adjust_for_ambient_noise(source, duration=0.5)\n voice = self.listener.listen(source)\n command = self.listener.recognize_google(\n voice, language=self.language).lower()\n self.logger.log(command, color='green',\n prefix='You', _lang=self.language)\n return command\n except KeyboardInterrupt:\n self.logger.log('keyboard-interrupt', color='red',\n indent=2, _lang=self.language)\n exit(0)\n except sr.UnknownValueError:\n self.logger.log('i-cant-understand-you', color='red',\n prefix='Anton', _lang=self.language)\n except Exception:\n return None\n","repo_name":"astrica1/anton","sub_path":"modules/recognizer.py","file_name":"recognizer.py","file_ext":"py","file_size_in_byte":3471,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"37988806438","text":"\"\"\"\nModule providing convenience classes and functions aiming at\naccessing recorded ball trajectories.\nIt also provides method for generating ball trajectories.\n\"\"\"\n\n# for typing\nfrom __future__ import annotations\nimport typing\nimport nptyping as npt\n\nimport random\nimport math\nimport pathlib\nimport h5py\nimport numpy as np\n\nimport o80\nimport pam_configuration\nimport tennicam_client\n\n\nassert int(npt.__version__[0]) >= 2, \"Need nptyping >=2.\"\n\n# 3: 3d position , Any: nb of points in trajectory\nTrajectory = npt.NDArray[npt.Shape[\"*, 3\"], npt.Float32]\n\n# List of time stamps, in microseconds\nTimeStamps = npt.NDArray[\n npt.Shape[\"*\"],\n npt.UInt,\n]\n\n# List of time durations, in microseconds\nDurations = npt.NDArray[\n npt.Shape[\"*\"],\n npt.UInt,\n]\n\n# set of trajectories\nTrajectories = typing.Sequence[Trajectory]\n\n# trajectories and related time stamps\nStampedTrajectory = typing.Tuple[TimeStamps, Trajectory]\nStampedTrajectories = typing.Sequence[StampedTrajectory]\n\n# durations (microseconds), positions, velocities\nDurationTrajectory = typing.Tuple[Durations, Trajectory, Trajectory]\nDurationTrajectories = typing.Sequence[DurationTrajectory]\nDurationPoint = typing.Tuple[np.uint, o80.Item3dState]\n\n\ndef _list_files(\n dir_path: pathlib.Path, extension: str = \"\", prefix: str = \"\"\n) -> typing.List[pathlib.Path]:\n \"\"\"\n Returns the list of file in dir_path of\n the specified extension and/or the specified prefix.\n \"\"\"\n paths = sorted(\n [\n f\n for f in dir_path.iterdir()\n if f.is_file()\n and str(f).endswith(extension)\n and str(f.name).startswith(prefix)\n ]\n )\n return paths\n\n\ndef to_stamped_trajectory(input: DurationTrajectory) -> StampedTrajectory:\n\n \"\"\"\n Converts a Duration trajectory to a stamped trajectory.\n \"\"\"\n\n durations = input[0]\n positions = input[1]\n size = len(durations)\n stamps = np.zeros(size, np.uint)\n stamps[1:] = np.cumsum(durations[:-1])\n return stamps, positions\n\n\ndef to_duration_trajectory(input: StampedTrajectory) -> DurationTrajectory:\n \"\"\"\n Converts a StampedTrajectories to a DurationTrajectory.\n The velocities are estimated by performing finite differences.\n \"\"\"\n dt = np.diff(input[0])\n dp = np.diff(input[1], axis=0)\n velocities = (dp.T / (dt * 1e-6)).T\n positions = input[1][:-1, :]\n return dt, positions, velocities\n\n\nclass RecordedBallTrajectories:\n\n \"\"\"\n Class for parsing an hdf5 file containing sets of\n recorded ball trajectories.\n\n The expected structure of the file is:\n To get list of time stamps (micro seconds):\n d[group name: str][index: int][\"time_stamps\"]\n To get related list of 3d positions:\n d[group name: str][index: int][\"trajectory\"]\n\n To ensure the hdf5 file is properly closed, it is\n adviced to use the context manager of this class\n (i.e. ```with RecordedBallTrajectories() as rbt ...```)\n\n Parameters\n ----------\n path: (optional)\n path to the hdf5 file. If omitted, the file at the\n default path will be used, i.e.\n ~/.mpi-is/pam/context/ball_trajectories.hdf5 or\n /opt/mpi-is/pam/context/ball_trajectories.hdf5\n (as installed by the pam_configuration package)\n file_mode: (optional)\n mode in which the h5py file will be open. The default\n is \"r\" (read only), which is sufficient for all the\n method provided by the class. See the subclass\n MutableRecordedBallTrajectories for methods that will\n update the file.\n \"\"\"\n\n _TIME_STAMPS = \"time_stamps\"\n _TRAJECTORY = \"trajectory\"\n\n def __init__(self, path: pathlib.Path = None, file_mode: str = \"r\"):\n if path is None:\n path = self.get_default_path()\n self._f = h5py.File(path, file_mode)\n\n @staticmethod\n def get_default_path(create: bool = False) -> pathlib.Path:\n \"\"\"\n Returns the default path to the file hosting all ball trajectories\n (i.e. in ~/.mpi-is/pam/context/ball_trajectories.hdf5 or\n /opt/mpi-is/pam/context/ball_trajectories.hdf5, as installed by\n the pam_configuration package).\n\n Parameters\n ----------\n create: optional\n create an empty file if the file does not exists at the\n default location. If create is False and the file does\n not exists, a FileNotFoundError is raised.\n \"\"\"\n path = (\n pathlib.Path(pam_configuration.get_path())\n / \"context\"\n / \"ball_trajectories.hdf5\"\n )\n if not path.exists():\n if not create:\n raise FileNotFoundError(\n \"context package: failed to find the file {}\".format(path)\n )\n return path\n\n def get_groups(self) -> typing.Tuple[str, ...]:\n \"\"\"\n Returns all the group contained by the file\n (i.e. all the sets)\n \"\"\"\n return tuple(self._f.keys())\n\n def get_indexes(self, group: str) -> typing.Tuple[int, ...]:\n \"\"\"\n Returns all the indexes of the specified group, or\n raise a ValueError if no such group.\n \"\"\"\n g = self._f[group]\n return tuple([int(index) for index in g.keys()])\n\n def get_stamped_trajectory(\n self, group: str, index: int, direct: bool = False\n ) -> StampedTrajectory:\n \"\"\"\n Returns a the stamped trajectory, or raise a ValueError\n if no such group, or no such index in the group.\n If not direct, a tuple of h5py data instances will be\n returned (can not be accessed once the file is closed). Otherwise\n a tuple of numpy arrays is returned.\n \"\"\"\n g = self._f[group][str(index)]\n # returning directly the h5py datasets\n if not direct:\n return g[self._TIME_STAMPS], g[self._TRAJECTORY]\n # converting the h5py datasets into numpy arrays\n time_stamps_dset = g[self._TIME_STAMPS]\n trajectory_dset = g[self._TRAJECTORY]\n time_stamps = np.zeros(time_stamps_dset.shape, np.uint)\n trajectory = np.zeros(trajectory_dset.shape, np.float32)\n time_stamps_dset.read_direct(time_stamps)\n trajectory_dset.read_direct(trajectory)\n return time_stamps, trajectory\n\n def get_stamped_trajectories(\n self, group: str, direct: bool = False\n ) -> typing.Dict[int, StampedTrajectory]:\n \"\"\"\n Returns all trajectories of the group, or raise a ValueError\n if no such group.\n If not direct, a tuple of h5py data instances will be\n returned (can not be accessed once the file is closed). Otherwise\n a tuple of numpy arrays is returned.\n \"\"\"\n indexes = self.get_indexes(group)\n return {\n int(index): self.get_stamped_trajectory(group, index, direct=direct)\n for index in indexes\n }\n\n def close(self):\n \"\"\"\n Close the hdf5 file\n \"\"\"\n if self._f:\n self._f.close()\n self._f = None\n\n def __enter__(self) -> RecordedBallTrajectories:\n \"\"\"\n For the use of this class as a context manager\n which closes the hdf5.\n \"\"\"\n return self\n\n def __exit__(self, type, value, traceback):\n \"\"\"\n For the use of this class as a context manager\n which closes the hdf5.\n \"\"\"\n self._f.close()\n self._f = None\n\n\nclass MutableRecordedBallTrajectories(RecordedBallTrajectories):\n \"\"\"\n Subclass of RecordedBallTrajectories that had some method that\n will update the content of the HDF5 file. Open the file using the\n \"r+\" mode.\n \"\"\"\n\n def __init__(self, path: pathlib.Path = None):\n super().__init__(path, file_mode=\"r+\")\n\n def rm_group(self, group: str) -> None:\n \"\"\"\n Remove the group of trajectories from the files\n if such group exists, raise a KeyError otherwise\n \"\"\"\n if group not in self.get_groups():\n raise KeyError(\"No such group: {}\".format(group))\n del self._f[group]\n\n def overwrite(\n self, group: str, index: int, stamped_trajectory: StampedTrajectory\n ) -> None:\n \"\"\"\n Overwrite the trajectory at the given group\n and index.\n \"\"\"\n g = self._f[group]\n del g[str(index)]\n traj_group = g.create_group(str(index))\n time_stamps = stamped_trajectory[0]\n positions = stamped_trajectory[1]\n traj_group.create_dataset(self._TIME_STAMPS, data=time_stamps)\n traj_group.create_dataset(self._TRAJECTORY, data=positions)\n\n def add_tennicam_trajectories(\n self, group_name: str, tennicam_path: pathlib.Path\n ) -> int:\n \"\"\"\n It is assumed that tennicam_path is a directory hosting (non recursively)\n a collection of files named tennicam_* that have been generated by the\n executable tennicam_client_logger (package tennicam_client). This function\n will parse all these files and add them to the hdf5 under the specified\n group name (or raise a FileNotFoundError if tennicam_path does not\n exists).\n\n Returns\n -------\n The number of trajectories added to the file.\n \"\"\"\n\n def _read_trajectory(tennicam_file: pathlib.Path) -> StampedTrajectory:\n \"\"\"\n Parse the file and returned the corresponding\n stamped trajectory.\n \"\"\"\n time_stamps = []\n trajectory = []\n start_time = None\n for ball_id, time_stamp, position, _ in tennicam_client.parse(\n tennicam_file\n ):\n if ball_id >= 0:\n time_stamp = int(time_stamp * 1e-3) # from nano to micro seconds\n if start_time is None:\n start_time = time_stamp\n time_stamp -= start_time\n time_stamps.append(time_stamp)\n trajectory.append(position)\n return np.array(time_stamps, np.uint), np.array(trajectory, np.float32)\n\n def _read_folder(tennicam_path: pathlib.Path) -> StampedTrajectories:\n \"\"\"\n List all the file in tennicam_path that have the tennicam_ prefix,\n parse them and returns the corresponding list of stamped trajectories.\n \"\"\"\n files = _list_files(tennicam_path, prefix=\"tennicam_\")\n stamped_trajectories = [_read_trajectory(tennicam_path / f) for f in files]\n return stamped_trajectories\n\n def _save_trajectory(\n group: h5py._hl.group.Group,\n index: int,\n stamped_trajectory: StampedTrajectory,\n ):\n \"\"\"\n Create in the group a new subgroup named according to the index\n and add to it 2 datasets, \"time_stamps\" (list of microseconds\n time stamps) and \"trajectory\" (list of corresponding 3d positions)\n \"\"\"\n # creating a new group for this trajectory\n traj_group = group.create_group(str(index))\n # adding 2 datasets: time_stamps and positions\n time_stamps = stamped_trajectory[0]\n positions = stamped_trajectory[1]\n traj_group.create_dataset(self._TIME_STAMPS, data=time_stamps)\n traj_group.create_dataset(self._TRAJECTORY, data=positions)\n\n # reading all trajectories present in the directory\n stamped_trajectories = _read_folder(tennicam_path)\n\n # adding the new group to the hdf5 file\n group = self._f.create_group(group_name)\n\n # adding all trajectories as datasets to this group\n for index, stamped_trajectory in enumerate(stamped_trajectories):\n _save_trajectory(group, index, stamped_trajectory)\n\n return len(stamped_trajectories)\n\n def add_json_trajectories(\n self, group_name: str, json_path: pathlib.Path, sampling_rate_us: int\n ) -> int:\n \"\"\"\n It is assumed that json_path is a directory hosting (non recursively)\n a collection of files named *.json. Each file host the (string) representation\n of a dictionary with the key \"ob\" associated to an list of a 6d array (3d\n position and 3d velocities).\n This function will parse all these files and add them to the hdf5 under the\n specified group name (or raise a FileNotFoundError if json_path does not\n exists). (note: the velocities values are ignored, and the time stamp list\n is created based on the sampling rate)\n\n Returns\n -------\n The number of trajectories added to the file.\n \"\"\"\n\n def _read_trajectory(json_file: pathlib.Path) -> Trajectory:\n \"\"\"\n Parse the json file and return the trajectory it\n hosts.\n \"\"\"\n with open(json_file, \"r\") as f:\n content_str = f.read()\n content_str = content_str.strip()\n content = eval(content_str)\n trajectory = np.array(content[\"ob\"], np.float32)[\n :, :3\n ] # keeping only the position\n return trajectory\n\n def _read_folder(json_path: pathlib.Path) -> Trajectories:\n \"\"\"\n List the json files that are at the root of the path,\n parse them and return the corresponding trajectories.\n \"\"\"\n trajectories = [\n _read_trajectory(json_path / f) for f in _list_files(json_path, \".json\")\n ]\n return trajectories\n\n def _save_trajectory(\n group: h5py._hl.group.Group, index: int, trajectory: Trajectory\n ):\n \"\"\"\n Create under the group a new subgroup named after the index,\n and add 2 datasets, \"time_stamps\" (list of time stamps in\n micro seconds inferred using the sample rate) and\n \"trajectory\", the corresponding list of 3d positions.\n \"\"\"\n # creating a new group for this trajectory\n traj_group = group.create_group(str(index))\n # inferring time stamps\n time_stamps = np.array(\n [i * sampling_rate_us for i in range(trajectory.shape[0])], np.int32\n )\n # adding 2 datasets: time_stamps and positions\n traj_group.create_dataset(self._TIME_STAMPS, data=time_stamps)\n traj_group.create_dataset(self._TRAJECTORY, data=trajectory)\n\n # reading all trajectories present in the directory\n trajectories = _read_folder(json_path)\n\n # adding the new group to the hdf5 file\n group = self._f.create_group(group_name)\n\n # adding all trajectories as datasets to this group\n for index, trajectory in enumerate(trajectories):\n _save_trajectory(group, index, trajectory)\n\n return len(trajectories)\n\n\nclass BallTrajectories:\n \"\"\"\n Convenience wrapper over a hdf5 file which contains\n sets (\"groups\") of ball trajectories.\n\n The constructor loads a group of trajectories in the memory,\n and methods provide convenience functions to access them.\n\n A trajectory is tuple of two lists, one with time stamps\n (in microseconds) and one with related 3d positions.\n\n Parameters\n ----------\n group:\n name of the group of trajectories to load\n hdf5_path: optional\n absolute path to the hdf5 file to load. If None,\n the default file will be used (i.e. either\n ~/.mpi-is/pam/context/ball_trajectories.hdf5 or\n /opt/mpi-is/pam/context/ball_trajectories.hdf5\n \"\"\"\n\n def __init__(self, group: str, hdf5_path: pathlib.Path = None):\n if hdf5_path is None:\n hdf5_path = RecordedBallTrajectories.get_default_path()\n\n self._path: pathlib.Path = hdf5_path\n\n with RecordedBallTrajectories(hdf5_path) as rbt:\n self._data: typing.Dict[\n int, StampedTrajectory\n ] = rbt.get_stamped_trajectories(group, direct=True)\n\n def size(self) -> int:\n \"\"\"\n Returns the number of trajectories that have been loaded.\n \"\"\"\n return len(self._data)\n\n def get_all_trajectories(self) -> typing.Dict[int, StampedTrajectory]:\n \"\"\"\n Returns a dictionary with key the index of the trajectory and\n the trajectories as values.\n \"\"\"\n return self._data\n\n def get_trajectory(self, index: int) -> StampedTrajectory:\n \"\"\"\n Returns the trajectory at the requested index.\n \"\"\"\n return self._data[index]\n\n def random_trajectory(self) -> StampedTrajectory:\n \"\"\"\n Returns one of the trajectory, randomly selected.\n \"\"\"\n index = random.choice(list(range(len(self._data.keys()))))\n return self._data[index]\n\n def get_different_random_trajectories(\n self, nb_trajectories: int\n ) -> StampedTrajectories:\n \"\"\"\n Returns a list of trajectories, randomly\n ordered and selected.\n \"\"\"\n if nb_trajectories > self.size():\n raise ValueError(\n \"BallTrajectories: only {} trajectories \"\n \"available ({} requested)\".format(self.size(), nb_trajectories)\n )\n indexes = list(self._data.keys())\n random.shuffle(indexes)\n return [self._data[index] for index in indexes[:nb_trajectories]]\n\n @staticmethod\n def to_duration(input: StampedTrajectory) -> DurationTrajectory:\n \"\"\"\n Returns a corresponding duration trajectory\n \"\"\"\n return to_duration_trajectory(input)\n\n @classmethod\n def iterate(\n cls, input: StampedTrajectory\n ) -> typing.Generator[DurationPoint, None, None]:\n \"\"\"\n Generator over the trajectory.\n Yields tuples (duration in microseconds, state), state having\n a position and a velocity attribute.\n \"\"\"\n durations, positions, velocities = cls.to_duration(input)\n for d, p, v in zip(durations, positions, velocities):\n yield d, o80.Item3dState(p, v)\n return\n\n\ndef velocity_line_trajectory(\n start: typing.Sequence[float],\n end: typing.Sequence[float],\n velocity: float,\n sampling_rate: float = 0.01,\n) -> DurationTrajectory:\n\n \"\"\"\n Start and end being n dimentional points, velocity\n a float value (meter per seconds) and the sampling\n rate between two points (in seconds), returns duration\n trajectory corresponding to a point going from\n start to end at the given velocity\n \"\"\"\n\n # vector between end and start\n vector = [e - s for e, s in zip(end, start)]\n\n # distance between end and start\n distance = math.sqrt(sum([v**2 for v in vector]))\n\n # duration of motion between start and end,\n # at constant velocity\n duration = distance / velocity\n\n # the velocity vector\n velnd = np.array([v / duration for v in vector], np.float32)\n\n # discrete number of steps to go from start\n # to end at given speed and sampling rate\n nb_steps = int((duration / sampling_rate) + 0.5)\n\n # displacement vector of one step\n step = [v / nb_steps for v in vector]\n\n # creating the trajectory, translating\n # one displacement vector per step\n point = start\n positions_list = []\n for cstep in range(nb_steps):\n point = [p + s for p, s in zip(point, step)]\n positions_list.append(np.array(point, np.float32))\n positions = np.array(positions_list, np.float32)\n velocities = np.array([velnd] * len(positions), np.float32)\n\n # durations in microseconds\n durations = np.array([int(sampling_rate * 1e6)] * nb_steps)\n\n # returning the trajectory\n return durations, positions, velocities\n\n\ndef duration_line_trajectory(\n start: typing.Sequence[float],\n end: typing.Sequence[float],\n duration_ms: float,\n sampling_rate: float = 0.01,\n) -> DurationTrajectory:\n\n \"\"\"\n Start and end being n dimentional points, duration\n a float value (milliseconds) and the sampling\n rate between two points (in seconds), returns duration\n trajectory corresponding to a point going from\n start to end over the provided duration\n \"\"\"\n\n # vector between end and start\n vector = [e - s for e, s in zip(end, start)]\n\n # duration of motion between start and end,\n # at constant velocity\n duration = duration_ms / 1000.0\n\n # the velocity vector\n velnd = np.array([v / duration for v in vector], np.float32)\n\n # discrete number of steps to go from start\n # to end at given speed and sampling rate\n nb_steps = int((duration / sampling_rate) + 0.5)\n if nb_steps == 0:\n nb_steps = 1\n\n # displacement vector of one step\n step = [v / nb_steps for v in vector]\n\n # creating the trajectory, translating\n # one displacement vector per step\n point = start\n positions_list = []\n for cstep in range(nb_steps):\n point = [p + s for p, s in zip(point, step)]\n positions_list.append(np.array(point, np.float32))\n positions = np.array(positions_list, np.float32)\n velocities = np.array([velnd] * len(positions), np.float32)\n\n # durations in microseconds\n durations = np.array([int(sampling_rate * 1e6)] * nb_steps)\n\n # returning the trajectory\n return durations, positions, velocities\n","repo_name":"intelligent-soft-robots/context","sub_path":"python/context/ball_trajectories.py","file_name":"ball_trajectories.py","file_ext":"py","file_size_in_byte":21282,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"29268428992","text":"# Coca data source\n\nfrom constants import TOTAL, SUM\nfrom data_sources.general.data_from_yearly_shapefiles import DataFromYearlyShapefiles\n\n# Constants\nid = \"coca\"\nname = \"Coca\"\n\n\nclass Coca(DataFromYearlyShapefiles):\n '''\n Coca data source\n '''\n\n def __init__(self):\n super().__init__(id=id,\n name=name,\n folder_name=\"coca_fields_shapes\",\n file_format=\"coca_fields_{year}.shp\",\n data_columns=['coca'],\n min_year=2000,\n max_year=2019,\n included_groupings=[TOTAL],\n time_resolution_aggregation_function = SUM,\n default_values=0)\n","repo_name":"Data-Lama/pathogen_study_regions_generator","sub_path":"src/data_sources/specific/coca.py","file_name":"coca.py","file_ext":"py","file_size_in_byte":763,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"8804730010","text":"import abc\nimport json\nimport sys\n\n\nclass MessagePrinter(abc.ABC):\n\n @abc.abstractmethod\n def print_message(self, key, value):\n pass\n\n\nclass SimpleMessagePrinter(MessagePrinter):\n\n def __init__(self, show_key: bool, show_msg: bool, filter_empty: bool, output):\n self.show_key = show_key\n self.show_msg = show_msg\n self.filter_empty = filter_empty\n if output is None:\n self.output = sys.stdout\n else:\n self.output = output\n\n\n def print_message(self, key, value):\n def print_output(str: str):\n print(str, file=self.output)\n\n if self.filter_empty:\n if len(value.strip()) == 0:\n return\n try:\n value_obj = json.loads(value)\n if len(value_obj) == 0:\n return\n except:\n pass\n\n if self.show_key:\n print_output(key)\n key_len = len(key)\n key_ul = '=' * key_len\n if self.show_msg:\n print_output(key_ul)\n if self.show_msg:\n print_output(value)\n if self.show_key or self.show_msg:\n print_output('')\n\n\nclass JsonMessagePrinter(MessagePrinter):\n\n def __init__(self, incl: list[str], excl: list[str], printer: MessagePrinter):\n self.simple_printer = printer\n self.incl = incl\n self.excl = excl\n\n @staticmethod\n def __parse_selector(sel_str: str):\n return Selector(list(sel_str.split('.')))\n\n def print_message(self, key_str, value_str):\n try:\n value = json.loads(value_str)\n except:\n value = {}\n\n sel_map = JsonMessagePrinter.__parse_selector\n\n for excl_str in self.excl:\n try:\n excl_path = sel_map(excl_str)\n excl_path.remove_from(value)\n except:\n pass\n\n if len(self.incl) == 0:\n self.simple_printer.print_message(key_str, json.dumps(value, indent=4))\n else:\n new_value = {}\n for incl_str in self.incl:\n try:\n incl_path = sel_map(incl_str)\n new_value[incl_str] = incl_path.retrieve_from(value)\n except:\n pass\n self.simple_printer.print_message(key_str, json.dumps(new_value, indent=4))\n\n\nclass IllegalSelectionError(Exception):\n pass\n\n\nclass Selector:\n\n def __init__(self, path: list[str]):\n self.path = path\n\n def __retrieve_sel(self, sel: str, obj):\n try:\n if sel in obj:\n return obj[sel]\n except TypeError:\n # sel must be on iterable obj\n raise IllegalSelectionError(f'cannot select from non-iterable object {obj}')\n\n if isinstance(obj, list):\n # for list, if sel is int, take it\n try:\n int_sel = int(sel)\n if int_sel in obj:\n return obj[int_sel]\n except ValueError:\n # if sel is not int, sel nested elements\n try:\n mapped_value = list(map(lambda ele : self.__retrieve_sel(sel, ele), obj))\n return mapped_value\n except IllegalSelectionError as nested_e:\n raise IllegalSelectionError('unable to select from list elements ') from nested_e\n except IndexError as i_err:\n raise IllegalSelectionError('unable to select index {sel} from {obj}') from i_err\n\n raise IllegalSelectionError(f'selection not found in object: {obj}')\n\n def __remove_sel(self, sel: str, obj):\n # test if selection exists in object\n self.__retrieve_sel(sel, obj)\n\n if sel in obj:\n del obj[sel]\n return\n\n if isinstance(obj, list):\n # for list, if sel is int, remove it as index\n try:\n int_sel = int(sel)\n if int_sel in obj:\n obj.pop(int_sel)\n return\n except ValueError:\n # if sel is not int, remove sel from nested elements\n for ele in obj:\n self.__remove_sel(sel, ele)\n\n def __retrieve_path(self, path: list[str], obj):\n if len(path) == 0:\n return obj\n this_sel = path[0]\n new_obj = self.__retrieve_sel(this_sel, obj)\n return self.__retrieve_path(path[1:], new_obj)\n\n def __remove_path(self, path: list[str], obj):\n if len(path) < 1:\n raise IllegalSelectionError('cannot remove empty path')\n\n if len(path) == 1:\n self.__remove_sel(path[0], obj)\n return\n this_sel = path[0]\n next_path = path[1:]\n if this_sel in obj:\n self.__remove_path(next_path, obj[this_sel])\n return\n\n if isinstance(obj, list):\n # for list, if sel is int, remove remaining path from sel as index\n try:\n int_sel = int(this_sel)\n if int_sel in obj:\n self.__remove_path(next_path, obj[int_sel])\n return\n except ValueError:\n # if sel is not int, remove path from nested elements\n for ele in obj:\n self.__remove_path(path, ele)\n\n def retrieve_from(self, obj):\n return self.__retrieve_path(self.path, obj)\n\n def remove_from(self, obj):\n self.__remove_path(self.path, obj)\n","repo_name":"twosixlabs-dart/dart-cli","sub_path":"src/dart_cli/dart_kafka/message_printer.py","file_name":"message_printer.py","file_ext":"py","file_size_in_byte":5524,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"39369588756","text":"#!/usr/bin/python3\nimport Adafruit_DHT\n\nimport time\nimport os\n\nimport RPi.GPIO as GPIO\n\n\nDHT_SENSOR = Adafruit_DHT.DHT11\n\nDHT_PIN = 4\n\nGruen = 25\n\nGelb = 24\n\nRot = 23\n\nGPIO.setwarnings(False)\n\nGPIO.setmode(GPIO.BCM)\n\nGPIO.setup(Rot, GPIO.OUT)\n\nGPIO.setup(Gelb, GPIO.OUT)\n\nGPIO.setup(Gruen, GPIO.OUT)\n\nmessen = True;\n\n\n\nwhile messen:\n humidity, temperature = Adafruit_DHT.read(DHT_SENSOR, DHT_PIN)\n if humidity is not None and temperature is not None:\n print(\"Temp={0:0.1f}C Humidity={1:0.1f}%.\".format(temperature,humidity))\n\n\n cmd = 'curl -X POST -d \"{\"temperature\": ' + str(temperature) + '}\" https://demo.thingsboard.io/api/v1/PIobHRn5i2gqdKGMRUvr/telemetry --header \"Content-Type:application/json\" '\n os.system(cmd)\n\n cmd = 'curl -X POST -d \"{\"humidity\": ' + str(humidity) + '}\" https://demo.thingsboard.io/api/v1/PIobHRn5i2gqdKGMRUvr/telemetry --header \"Content-Type:application/json\" '\n os.system(cmd)\n\t\t\n if humidity < 40:\n GPIO.output(Rot, GPIO.HIGH);\n GPIO.output(Gelb, GPIO.LOW);\n GPIO.output(Gruen, GPIO.LOW);\n elif humidity > 40 and humidity < 50:\n GPIO.output(Gelb, GPIO.HIGH);\n GPIO.output(Rot, GPIO.LOW);\n GPIO.output(Gruen, GPIO.LOW);\n else:\n GPIO.output(Gruen, GPIO.HIGH);\n GPIO.output(Rot, GPIO.LOW);\n GPIO.output(Gelb, GPIO.LOW);\n else:\n print(\"Sensor failure. Check wiring.\")\n time.sleep(10);\nGPIO.cleanup();\n","repo_name":"antoniaprager/r1","sub_path":"girls-day2021/mydht11.py","file_name":"mydht11.py","file_ext":"py","file_size_in_byte":1636,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"41992384544","text":"import click\nimport os\nfrom os import path\nimport sys\nimport pkgutil\nimport yaml\nimport datetime\nfrom jinja2 import Environment, PackageLoader\nfrom bunch import Bunch, bunchify, unbunchify\nfrom traceback import print_tb\nfrom anytree import Node, RenderTree, Resolver, PreOrderIter\n\nfrom yadocgen.generator import generate_documentation\n\n# include for example purposes\nfrom yadocgen.example import foo\n\n\n@click.group()\ndef cli():\n \"\"\"Yet Another Documentation Generator\"\"\"\n print(\"yaDocGen v0.1.5\")\n\n\n@cli.command()\n@click.option(\n \"--work-dir\",\n envvar=\"YDG_WORK_DIR\",\n default=\".\",\n help=\"yadocgen working directory (default: current directory)\",\n)\n@click.option(\n \"--name\",\n envvar=\"YDG_PROJECT_NAME\",\n prompt=\"Project name\",\n help=\"project name used in the documentation\",\n)\n@click.option(\n \"--author\",\n envvar=\"YDG_AUTHOR\",\n prompt=\"Author\",\n help=\"Name(s) of the documentation's author\",\n)\n@click.option(\n \"--version\",\n envvar=\"YDG_VERSION\",\n prompt=\"Version\",\n help=\"version (taken automatically from VERSION file if it exists)\",\n)\n@click.option(\n \"--theme\",\n default=\"karma_sphinx_theme\",\n envvar=\"YDG_THEME\",\n prompt=\"Sphinx template\",\n help=\"Sphinx theme to use (default: karma)\",\n)\n@click.option(\n \"--welcome\",\n default=\"README.md\",\n envvar=\"YDG_WELCOME_PAGE\",\n prompt=\"Welcome page\",\n help=\"File to use a welcome page of the documentation (default: ./README.md)\",\n)\n@click.option(\n \"--src-dir\",\n envvar=\"YDG_SOURCE_DIR\",\n default=\"src\",\n prompt=\"Source code directory\",\n help=\"directory that holds the source code of the project\",\n)\n@click.option(\n \"--doc-dir\",\n envvar=\"YDG_DOC_DIR\",\n default=\"doc\",\n prompt=\"Documentation directory\",\n help=\"directory that holds arbitrary documentation pages\",\n)\n@click.option(\n \"--output\",\n envvar=\"YDG_OUTPUT_DIR\",\n default=\"sphinx\",\n prompt=\"Output directory\",\n help=\"directory for generated documentation files\",\n)\ndef init(work_dir, src_dir, doc_dir, output, name, author, version, theme, welcome):\n r\"\"\"Initialize yadocgen for a project.\n\n This function takes the parameters, either from command line, prompt or\n environment variables and creates the necessary directories and the\n configuration file.\n\n Parameters:\n -----------\n work_dir\n src_dir\n doc_dir\n output\n name\n author\n version\n theme\n welcome\n\n \"\"\"\n\n # build copyright string\n date = datetime.date.today()\n year = date.strftime(\"%Y\")\n copyright = f\"{author} {year}\"\n\n if doc_dir == \"\" or doc_dir.lower() == \"none\":\n doc_dir = None\n\n if src_dir == \"\" or src_dir.lower() == \"none\":\n src_dir = None\n\n # write yadocgen config file\n CONFIG = Bunch(\n src_dir=src_dir,\n doc_dir=doc_dir,\n output_dir=output,\n auto_version=True,\n sphinx_config=Bunch(\n project_name=name,\n copyright=copyright,\n author=author,\n version=version,\n add_paths=[os.path.join(\"..\", \"..\", src_dir)],\n theme=theme,\n welcome=welcome,\n ),\n )\n\n # write config file\n with open(os.path.join(work_dir, \".yadocgen\"), \"w\") as f:\n yaml.dump(CONFIG, f)\n\n # create Sphinx directory structure\n work_dir = path.abspath(work_dir)\n os.makedirs(path.join(work_dir, CONFIG.output_dir, \"source\", \"_static\"))\n os.makedirs(path.join(work_dir, CONFIG.output_dir, \"source\", \"_templates\"))\n os.makedirs(path.join(work_dir, CONFIG.output_dir, \"build\"))\n\n env = Environment(loader=PackageLoader(\"yadocgen\", \"templates\"))\n\n # create Makefile\n with open(path.join(work_dir, CONFIG.output_dir, \"Makefile\"), \"w\") as f:\n template = env.get_template(\"Makefile.jinja\")\n f.write(template.render(config=CONFIG.sphinx_config))\n\n # create Sphinx config file\n with open(path.join(work_dir, CONFIG.output_dir, \"source\", \"conf.py\"), \"w\") as f:\n template = env.get_template(\"conf.py.jinja\")\n f.write(template.render(config=CONFIG.sphinx_config))\n\n\n@cli.command()\n@click.option(\n \"--work-dir\",\n envvar=\"YDG_WORK_DIR\",\n default=\".\",\n help=\"yadocgen working directory (default: current directory)\",\n)\n@click.option(\n \"--purge\",\n default=True,\n help=\"Clean Sphinx source (default: True)\",\n)\ndef generate(work_dir, purge):\n \"\"\"Generates the documentation for a project.\"\"\"\n work_dir = path.abspath(work_dir)\n\n # load project config\n config_file_path = os.path.join(work_dir, \".yadocgen\")\n if not os.path.isfile(config_file_path):\n print(f\"Config file not found in working directory ({config_file_path}).\")\n with open(config_file_path, \"r\") as f:\n CONFIG = yaml.full_load(f)\n\n generate_documentation(work_dir, purge, CONFIG)\n\n\ndef configure_bibfiles():\n ## TODO check if it is always valid to perform this on current work dir!\n return [\n f for f in os.listdir(\".\") if os.path.isfile(f) and f.lower().endswith(\".bib\")\n ]\n","repo_name":"fraunhofer-iais/yadocgen","sub_path":"src/yadocgen/__init__.py","file_name":"__init__.py","file_ext":"py","file_size_in_byte":5032,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"32462879264","text":"import urllib.request as urlrequest\nimport json\n\nid_list = []\nwith open('firstdata.txt','w') as outputfile: #w 重新写入,a 在文末添加\n for id in id_list:\n url = 'https://.../{}'.format(id)\n url_content = urlrequest.urlopen(url)\n json_content = json.loads(url_content.decode('utf8'))\n rank = json_content['adsad']['adadad']\n outputfile.write('{} {}\\n'.format(id,rank))","repo_name":"yoyojang/data_analysis","sub_path":"pachong_api.py","file_name":"pachong_api.py","file_ext":"py","file_size_in_byte":417,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34232377455","text":"#!/usr/bin/python\n\nimport sys\n\ntracename = sys.argv[1]\nresulttrace = \"kv.ascii\"\n\nprint(\"converted tracename: %s\"%tracename)\nprint(\"result tracename: %s\"%resulttrace)\n\nwith open(resulttrace, \"w\") as out:\n with open(tracename, \"r\") as f:\n lines = f.readlines()\n for t in lines:\n t = t.strip().split()\n timestap = int(float(t[0])*1e9)\n lsn = t[1]\n size = int(t[2]) - int(t[1])\n dev = 0\n op = 0 # write:0, read:1\n out.write(\"%s 0 %s %d %d\\n\" % (timestap,lsn,size,op))\n\nprint(\"done\")","repo_name":"virgilshi/special-functions-codes","sub_path":"3Dsim/convert_3Dsim_format.py","file_name":"convert_3Dsim_format.py","file_ext":"py","file_size_in_byte":523,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"15628765167","text":"import datetime\n\nimport pytz\n\nfrom ..twilio import twilio\nfrom . import celery\nfrom .. import models\n\n\ndef int_time(t):\n return (\n t.microsecond + 1_000_000 * (t.second + 60 * (t.minute + 60 * t.hour)))\n\n\ndef time_in_interval(x, a, b):\n n = 86_400_000_000\n x = int_time(x)\n a = int_time(a)\n b = int_time(b)\n return (x - a) % n <= (b - a) % n\n\n\ndef now_utc():\n return datetime.datetime.now(pytz.utc)\n\n\ndef user_is_on_duty(now, user):\n \"\"\"Determine if a user is on duty at a given time.\"\"\"\n if user.alert_from is not None and user.alert_to is not None:\n tz = pytz.timezone(user.timezone)\n time = now.astimezone(tz).time()\n if not time_in_interval(time, user.alert_from, user.alert_to):\n return False\n return True\n\n\n@celery.task(ignore_result=True, shared=False)\ndef call_for(endpoint, phone, **values):\n twilio.call_for(endpoint, phone, **values)\n\n\n@celery.task(ignore_result=True, shared=False)\ndef text_for(body, phone, **values):\n twilio.message(body, phone, **values)\n\n\n@celery.task(ignore_result=True, shared=False)\ndef text_everyone(body, **values):\n now = now_utc()\n for user in models.User.query.filter(models.User.phone.isnot(None)):\n if user_is_on_duty(now, user):\n text_for.s(body, user.phone.e164, **values).delay()\n\n\n@celery.task(ignore_result=True, shared=False)\ndef call_everyone(endpoint, **values):\n now = now_utc()\n for user in models.User.query.filter(models.User.phone.isnot(None)) \\\n .filter(models.User.voice):\n if user_is_on_duty(now, user):\n call_for.s(endpoint, user.phone.e164, **values).delay()\n","repo_name":"growth-astro/growth-too-marshal","sub_path":"growth/too/tasks/twilio.py","file_name":"twilio.py","file_ext":"py","file_size_in_byte":1654,"program_lang":"python","lang":"en","doc_type":"code","stars":12,"dataset":"github-code","pt":"86"}
+{"seq_id":"33864745864","text":"\"\"\"An Azure RM Python Pulumi program\"\"\"\n\nimport pulumi\nfrom pulumi_azure_native import resources\nimport pulumi_azure_native as azure_native\n\n# Create an Azure Resource Group\nrg = resources.ResourceGroup('pulumi-py-rg',\n location=\"australiaeast\",\n resource_group_name=\"pulumi-py-rg\"\n)\nrgdbr = resources.ResourceGroup('pulumi-py-rgdbr',\n location=\"australiaeast\",\n resource_group_name=\"pulumi-py-rgdbr\"\n)\n\n# Create role assignment on managed identity\nra = azure_native.authorization.RoleAssignment(\"pulumi-py-ra\",\n principal_id=\"64765f4d-06b5-4f56-8cc4-1c068f624992\",\n principal_type=\"ServicePrincipal\",\n role_assignment_name=\"5a53e7cc-3e62-4357-a85d-6ac4af0d6c18\",\n role_definition_id=\"/subscriptions/5f3d7f2f-1189-427d-aaa3-5c220e2b3e9a/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635\",\n scope=rgdbr.id\n)\n\n# create managed identity\nmidbr = azure_native.managedidentity.UserAssignedIdentity(\"pulumi-py-midbr\",\n location=\"australiaeast\",\n resource_group_name=rgdbr.name,\n resource_name_=\"pulumi-py-midbr\",\n tags={\n \"applicaiton\": \"databricks\",\n \"databricks-environment\": \"true\",\n }\n)\n\n\n# create network security group\nnetwork_security_group = azure_native.network.NetworkSecurityGroup(\"pulumi-sgdbr\",\n location=\"australiaeast\",\n network_security_group_name=\"pulumi-sgdbr\",\n resource_group_name=rgdbr.name,\n security_rules=[azure_native.network.SecurityRuleArgs(\n access=\"Allow\",\n direction=\"Inbound\",\n protocol=\"*\",\n description=\"Required for Databricks control plane management of worker nodes.\",\n destination_address_prefix=\"*\",\n destination_port_range=\"22\",\n name=\"databricks-control-plane-ssh\",\n priority=100,\n source_address_prefix=\"20.37.156.208/32,23.101.152.95/32\",\n source_port_range=\"*\",\n )]\n)","repo_name":"timotewb/developemnt","sub_path":"pulumi/python/python-test-01/__main__.py","file_name":"__main__.py","file_ext":"py","file_size_in_byte":1881,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"20709567114","text":"import socket\r\nfrom threading import Thread\r\nimport traceback\r\nimport winsound\r\n\r\nHOST = \"192.168.2.5\"\r\nPORT = 65432\r\ndef recv_from_client(conn):\r\n try:\r\n content = conn.recv(1024)\r\n return content\r\n except Exception:\r\n return None\r\n\r\nclass ServiceThread(Thread):\r\n def __init__(self, conn, addr):\r\n super().__init__()\r\n self.conn = conn\r\n self.addr = addr\r\n\r\n def run(self):\r\n try:\r\n while True:\r\n content = recv_from_client(self.conn)\r\n if not content:\r\n break\r\n print(f\"{self.addr}: {content.decode('utf-8')}\")\r\n winsound.Beep(2222,111)\r\n self.conn.sendall(content)\r\n self.conn.close()\r\n print(f\"{self.addr[0]}:{self.addr[1]} leave.\")\r\n except Exception:\r\n traceback.print_exc()\r\n\r\nif __name__ == \"__main__\":\r\n s = None\r\n try:\r\n s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\r\n s.bind((HOST, PORT))\r\n s.listen()\r\n print(\"Repeater server started successfully.\")\r\n while True:\r\n conn, addr = s.accept()\r\n print(f\"Connected from {addr}\")\r\n #winsound.Beep(2222,111)\r\n service_thread = ServiceThread(conn, addr)\r\n service_thread.daemon = True\r\n service_thread.start()\r\n except Exception:\r\n traceback.print_exc()\r\n s.close()","repo_name":"BaiYouShiWo/Automatically-fill","sub_path":"server 1.0.py","file_name":"server 1.0.py","file_ext":"py","file_size_in_byte":1454,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"14737630039","text":"n = int(input(\"Insira um número inteiro: \"))\n\ndef primaridade(x):\n i = 1\n cont = 0\n while i <= x:\n if x % i == 0:\n cont = cont + 1\n i = i + 1\n else:\n i = i + 1\n if cont == 2:\n return True\n else:\n return False\n\nwhile n > 0:\n if primaridade(n):\n print(\"primo\")\n else:\n print(\"não primo\")\n n = int(input(\"Insira um número inteiro: \"))","repo_name":"gustavocuore/IME-USP","sub_path":"Week7/primaridadevariasvezes.py","file_name":"primaridadevariasvezes.py","file_ext":"py","file_size_in_byte":433,"program_lang":"python","lang":"pt","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"4294404319","text":"# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import models, migrations\nimport fyt.utils.lat_lng\nimport django.db.models.deletion\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ('core', '0001_initial'),\n ]\n\n operations = [\n migrations.CreateModel(\n name='ExternalBus',\n fields=[\n ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n ],\n options={\n },\n bases=(models.Model,),\n ),\n migrations.CreateModel(\n name='Route',\n fields=[\n ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n ('name', models.CharField(max_length=255)),\n ('category', models.CharField(max_length=20, choices=[('INTERNAL', 'Internal'), ('EXTERNAL', 'External')])),\n ],\n options={\n 'ordering': ['category', 'vehicle', 'name'],\n },\n bases=(models.Model,),\n ),\n migrations.CreateModel(\n name='ScheduledTransport',\n fields=[\n ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n ('date', models.DateField()),\n ('notes', models.TextField(help_text='for the bus driver')),\n ],\n options={\n 'ordering': ['date'],\n },\n bases=(models.Model,),\n ),\n migrations.CreateModel(\n name='Stop',\n fields=[\n ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n ('name', models.CharField(max_length=255)),\n ('address', models.CharField(max_length=255, help_text='Plain text address, eg. Hanover, NH 03755. This must take you to the location in Google maps.', blank=True, default='')),\n ('lat_lng', models.CharField(max_length=255, default='', validators=[fyt.utils.lat_lng.validate_lat_lng], help_text='Latitude & longitude coordinates, eg. 43.7030,-72.2895', verbose_name='coordinates', blank=True)),\n ('directions', models.TextField(blank=True)),\n ('cost_round_trip', models.DecimalField(max_digits=5, decimal_places=2, null=True, blank=True, help_text='for external buses')),\n ('cost_one_way', models.DecimalField(max_digits=5, decimal_places=2, null=True, blank=True, help_text='for external buses')),\n ('dropoff_time', models.TimeField(null=True, blank=True)),\n ('pickup_time', models.TimeField(null=True, blank=True)),\n ('distance', models.IntegerField(help_text='this rough distance from Hanover is used for bus routing')),\n ],\n options={\n 'ordering': ['name'],\n },\n bases=(models.Model,),\n ),\n migrations.CreateModel(\n name='StopOrder',\n fields=[\n ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n ('order', models.PositiveSmallIntegerField()),\n ('stop_type', models.CharField(max_length=10, choices=[('PICKUP', 'PICKUP'), ('DROPOFF', 'DROPOFF')])),\n ('bus', models.ForeignKey(to='transport.ScheduledTransport', on_delete=models.CASCADE)),\n ],\n options={\n 'ordering': ['order'],\n },\n bases=(models.Model,),\n ),\n migrations.CreateModel(\n name='Vehicle',\n fields=[\n ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n ('name', models.CharField(max_length=255)),\n ('capacity', models.PositiveSmallIntegerField()),\n ('trips_year', models.ForeignKey(to='core.TripsYear', on_delete=django.db.models.deletion.PROTECT, editable=False)),\n ],\n options={\n 'ordering': ['name'],\n },\n bases=(models.Model,),\n ),\n ]\n","repo_name":"rlmv/doc-trips","sub_path":"fyt/transport/migrations/0001_initial.py","file_name":"0001_initial.py","file_ext":"py","file_size_in_byte":4243,"program_lang":"python","lang":"en","doc_type":"code","stars":6,"dataset":"github-code","pt":"86"}
+{"seq_id":"16858875212","text":"from typing import Annotated, Any\n\nfrom fastapi import APIRouter, Depends\nfrom sqlalchemy.ext.asyncio import AsyncSession\n\nfrom app import models, schemas, usecase\nfrom app.api.api_v0 import deps\nfrom app.utils import errors\n\nrouter = APIRouter()\n\nCurrentUser = Annotated[models.User, Depends(deps.get_current_active_user)]\nCurrentSuperUser = Annotated[models.User, Depends(deps.get_current_active_superuser)]\n\n\n@router.get(\"/\", response_model=schemas.SuccessfulResponse[list[schemas.Item]])\nasync def read_items(\n *,\n db: AsyncSession = Depends(deps.get_db),\n skip: int = 0,\n limit: int = 100,\n current_user: CurrentUser,\n) -> Any:\n \"\"\"\n Retrieve items.\n \"\"\"\n return schemas.create_successful_response(\n await usecase.item.get_multi(db, offset=skip, limit=limit)\n if current_user.is_superuser\n else await usecase.item.get_multi_by_owner(\n db=db, owner_id=current_user.id, offset=skip, limit=limit\n )\n )\n\n\n@router.post(\"/\", response_model=schemas.SuccessfulResponse[schemas.Item])\nasync def create_item(\n *,\n db: AsyncSession = Depends(deps.get_db),\n item_in: schemas.ItemCreate,\n current_user: CurrentUser,\n) -> Any:\n \"\"\"\n Create new item.\n \"\"\"\n item = await usecase.item.create_with_owner(db=db, obj_in=item_in, owner_id=current_user.id)\n return schemas.create_successful_response(item)\n\n\n@router.put(\"/{id}\", response_model=schemas.SuccessfulResponse[schemas.Item])\nasync def update_item(\n *,\n db: AsyncSession = Depends(deps.get_db),\n id: int, # pylint: disable=redefined-builtin\n item_in: schemas.ItemUpdate,\n current_user: CurrentUser,\n) -> Any:\n \"\"\"\n Update an item.\n \"\"\"\n item = await usecase.item.get(db=db, id=id)\n if not item:\n raise errors.ErrNotFound(\"item not found\")\n if not current_user.is_superuser and (item.owner_id != current_user.id):\n raise errors.ErrNotEnoughPrivileges(\"not enough permissions\")\n item = await usecase.item.update(db=db, db_obj=item, obj_in=item_in)\n return schemas.create_successful_response(item)\n\n\n@router.get(\"/{id}\", response_model=schemas.SuccessfulResponse[schemas.Item])\nasync def read_item(\n *,\n db: AsyncSession = Depends(deps.get_db),\n id: int, # pylint: disable=redefined-builtin\n current_user: CurrentUser,\n) -> Any:\n \"\"\"\n Get item by ID.\n \"\"\"\n item = await usecase.item.get(db=db, id=id)\n if not item:\n raise errors.ErrNotFound(\"item not found\")\n if not current_user.is_superuser and (item.owner_id != current_user.id):\n raise errors.ErrNotEnoughPrivileges(\"not enough permissions\")\n return schemas.create_successful_response(item)\n\n\n@router.delete(\"/{id}\", response_model=schemas.SuccessfulResponse[schemas.Item])\nasync def delete_item(\n *,\n db: AsyncSession = Depends(deps.get_db),\n id: int, # pylint: disable=redefined-builtin\n current_user: CurrentUser,\n) -> Any:\n \"\"\"\n Delete an item.\n \"\"\"\n item = await usecase.item.get(db=db, id=id)\n\n if not item:\n raise errors.ErrNotFound(\"item not found\")\n\n if not current_user.is_superuser and (item.owner_id != current_user.id):\n raise errors.ErrNotEnoughPrivileges(\"not enough permissions\")\n\n return schemas.create_successful_response(await usecase.item.delete(db=db, db_obj=item))\n","repo_name":"hiennguyen9874/async-fastapi-boilerplate-v2","sub_path":"backend/app/app/api/api_v0/endpoints/items.py","file_name":"items.py","file_ext":"py","file_size_in_byte":3327,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"23329393081","text":"n = int(input())\narr = list(map(int,input().split()))\ncnt = 0\nstart = 0\nfor i in range(len(arr)):\n if arr[i] == start:\n cnt+=1\n start+=1\n if start==3:\n start = 0\n\nprint(cnt)","repo_name":"juhyun-99/Baekjoon_algorithm","sub_path":"백준/Bronze/14720. 우유 축제/우유 축제.py","file_name":"우유 축제.py","file_ext":"py","file_size_in_byte":200,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"35618284168","text":"#!/usr/bin/env python3\n# coding: utf-8\n\nfrom typing import List\n\n\nclass Solution:\n def outerTrees(self, trees: List[List[int]]) -> List[List[int]]:\n def cross(o, a, b):\n return (a[0] - o[0]) * (b[1] - o[1]) - (a[1] - o[1]) * (b[0] - o[0])\n \n if len(trees) <= 1:\n return []\n\n trees.sort(key=lambda x: (x[0], x[1]))\n\n lower = []\n for p in trees:\n while len(lower) >= 2 and cross(lower[-2], lower[-1], p) < 0:\n lower.pop()\n lower.append(p)\n \n upper = []\n for p in reversed(trees):\n while len(upper) >= 2 and cross(upper[-2], upper[-1], p) < 0:\n upper.pop()\n upper.append(p)\n \n res = []\n for tree in lower[:-1] + upper[:-1]:\n if tree not in res:\n res.append(tree)\n return res\n","repo_name":"xuedong/leet-code","sub_path":"Problems/Algorithms/587. Erect the Fence/erect_fence.py","file_name":"erect_fence.py","file_ext":"py","file_size_in_byte":888,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"16247196054","text":"from collections import Counter, defaultdict \nimport math\nimport random\n\n\nclass AnagramChecker:\n words_list = []\n def __init__(self, file_name):\n with open(file_name, \"r\") as english_words_file :\n for line in english_words_file:\n for word in line.split():\n self.words_list.append(word)\n\n def is_valid_word(self, user_word):\n return user_word in self.words_list\n \n def get_anagrams(self, word):\n anagram_list =[]\n created_anagrams_num = 0\n combinations_num = math.factorial(len(word))\n while created_anagrams_num < combinations_num:\n cur_anagram = random.sample(word, len(word))\n if (cur_anagram in anagram_list):\n continue\n created_anagrams_num += 1\n anagram_list.append(cur_anagram)\n return anagram_list\n\n\"\"\"\nanagram = AnagramChecker(\"english_words.txt\")\nuser_word = input(\"tell me a word:\")\nif (anagram.is_valid_word(user_word)):\n created_anagrams = anagram.get_anagrams(user_word)\n\"\"\"\n","repo_name":"OxanaAntonova/DI-Bootcamp","sub_path":"Week3/Day5/Exercises/anagram_checkert.py","file_name":"anagram_checkert.py","file_ext":"py","file_size_in_byte":1059,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"42327905552","text":"box =[]\r\n\r\nwhile True:\r\n num = int(input(\"ป้อนต้วเลข (พิมพ์ 0 เพื่อหยุด): \"))\r\n if num == 0:\r\n break\r\n box.append(num)\r\n\r\ncheck = input(\"Min or Max: \")\r\ncheck = check.upper()\r\n\r\nif check == \"MIN\":\r\n box.sort()\r\n print(*box)\r\nelif check == \"MAX\":\r\n box.sort(reverse=True)\r\n print(*box)","repo_name":"tony007x/Python_Beginner","sub_path":"input_multiple_maxmin.py","file_name":"input_multiple_maxmin.py","file_ext":"py","file_size_in_byte":360,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12303080454","text":"# -*- coding: utf-8 -*-\n\nimport RPi.GPIO as GPIO\nimport time\n\nclass Motor():\n \"\"\"\n Définit un moteur\n \"\"\"\n def __init__(self, a, b, freq):\n \"\"\"\n Instancier et configurer le moteur\n \"\"\"\n GPIO.setup(a, GPIO.OUT) #pin a configuré en sortie \n GPIO.setup(b, GPIO.OUT) # pin b configuré en sortie\n self.frontpin = GPIO.PWM(a, freq) # on démarre l'instance PWM\n self.rearpin = GPIO.PWM(b, freq) # idem\n self.frontpin.start(0) # démarre le duty cycle à 0%\n self.rearpin.start(0) # idem\n \n \n def set_speed(self, speed): # Méthode d'instance\n \"\"\"\n Prend les valeurs de speed entre -100 et 100 (AR / AV) , à 0 : on ne bouge pas \n \"\"\"\n print(\"[.] Motor.set_speed : got speed = \" + str(speed))\n if speed > 0:\n self.frontpin.ChangeDutyCycle(speed) # Si speed>0 on souhaite avancer \n self.rearpin.ChangeDutyCycle(0)\n elif speed < 0:\n self.frontpin.ChangeDutyCycle(0) # on souhaite reculer\n self.rearpin.ChangeDutyCycle(-speed) # -speed car duty cycle doit etre positif\n elif speed == 0:\n self.frontpin.ChangeDutyCycle(0) # si speed nul on ne souhaite pas bouger\n self.rearpin.ChangeDutyCycle(0)\n \n\nclass Robot():\n \"\"\"\n Classe définissant un robot\n \"\"\"\n def __init__ (self):\n \"\"\"\n But : Instancier un robot et le configurer\n \"\"\"\n self.angle = 0\n self.vitesse = 0\n \n # Config GPIO\n GPIO.setmode(GPIO.BCM) # Mapping des pins (en BCM pas en board)\n self.PWM_FREQ = 50 \n \"\"\" Fréquence de modulation PWM durant une période de 20ms (fréquence : 50Hz)\n (envoie des signaux numériques durant cette période suivant le rapport cyclique (dc) en %)\"\"\"\n \n # Instanciation des moteurs\n self.moteur_gauche = Motor(14, 15 , self.PWM_FREQ) # moteur gauche va correspondre aux pins 14 et 15 (14 pour l'avant et 15 pour l'arrière) \n self.moteur_droit = Motor(17, 18, self.PWM_FREQ) #même chose pour le moteur droit\n\n def set_angle(self, angle):\n \"\"\"\n Définir la courbure à prendre\n Valeur de angle :\n\n Gauche Droite\n <---------------------------->\n -100 -50 0 50 100\n\n \"\"\"\n if angle > 100:\n print(\"[!] RobotControl : Valeur de angle supérieure à 100.\\n[.] Remplacé par 100.\")\n angle = 100\n self.angle = angle\n\n def set_speed(self, vitesse):\n \"\"\"\n Définir la vitesse du robot\n Valeur de vitesse :\n\n Arrière Arrêt Avant\n <---------------------------->\n -100 -50 0 50 100\n FULL NONE FULL\n \"\"\"\n self.vitesse = vitesse\n \n def compute_wheelSpeeds(self):\n \"\"\"\n Robot.compute_wheelSpeeds()\n Calculer la valeur de la vitesse théorique à appliquer à chaque moteur en fonction de la vitesse et de l'angle. \n \"\"\"\n left_motor = self.vitesse + self.angle\n right_motor = self.vitesse - self.angle\n \n # Scale factor defaults to 1 (échelle, facteur de proportionnalité)\n scale_factor = 1\n \n # Calculate scale factor\n if abs(left_motor) > 100 or abs(right_motor) > 100:\n # Find highest of the 2 values, since both could be above 100\n x = max(abs(left_motor), abs(right_motor))\n \n # Calculate scale factor\n scale_factor = 100.0 / x # revient entre 0 et 1\n \n # Use scale factor, and turn values back into integers\n left_motor = int(left_motor * scale_factor)\n right_motor = int(right_motor * scale_factor)\n self.left = left_motor\n self.right = right_motor\n print(\"[.] -- GAUCHE : \" +str(self.left)+ \" DROITE : \" +str(self.right))\n \n def compute_and_go(self):\n \"\"\"\n Compute motor values, then apply them\n \"\"\"\n self.compute_wheelSpeeds()\n self.go()\n \n def go(self):\n \"\"\"\n Appliquer les valeurs\n \"\"\"\n try :\n self.moteur_gauche.set_speed(self.left)\n self.moteur_droit.set_speed(self.right)\n print(\"[.] -- GAUCHE : \" +str(self.left)+ \" DROITE : \" +str(self.right))\n except :\n print(\"[!] Robot.go() : Les valeurs des vitesses n'ont pas encore été configurées. Ignorez cette erreur si elle ne réapparait pas. \")\n \n \n def stop(self):\n \"\"\"\n Un arrêt pur et simple. Pratique, n'efface pas les valeurs de vitesse et d'angle.\n \"\"\"\n self.moteur_gauche.set_speed(0)\n self.moteur_droit.set_speed(0)\n ","repo_name":"pierre-isep/TIPE-2017","sub_path":"robotcontrol.py","file_name":"robotcontrol.py","file_ext":"py","file_size_in_byte":5599,"program_lang":"python","lang":"fr","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"7752326809","text":"import pya\nimport math\n\nclass Arrow(pya.PCellDeclarationHelper):\n\n def __init__(self):\n # Important: initialize the super class\n super(Arrow, self).__init__()\n # declare the parameters\n self.param(\"l\", self.TypeLayer, \"Layer\", default = pya.LayerInfo(1, 0))\n self.param(\"hb\", self.TypeShape, \"\", default = pya.DPoint(0.5, -6))\n self.param(\"hh\", self.TypeShape, \"\", default = pya.DPoint(0, 4))\n self.param(\"ha\", self.TypeShape, \"\", default = pya.DPoint(2.2314069574087765, 0))\n self.param(\"b\", self.TypeDouble, \"Body length\", default = 6)\n self.param(\"h\", self.TypeDouble, \"Head length\", default = 4)\n self.param(\"a\", self.TypeDouble, \"Head angle\", default = 45)\n self.param(\"w\", self.TypeDouble, \"Body width\", default = 1)\n self.param(\"b_\", self.TypeDouble, \"Body length\", default = 6, hidden = True)\n self.param(\"h_\", self.TypeDouble, \"Head length\", default = 4, hidden = True)\n self.param(\"a_\", self.TypeDouble, \"Head angle\", default = 45, hidden = True)\n self.param(\"w_\", self.TypeDouble, \"Body width\", default = 1, hidden = True)\n\n def display_text_impl(self):\n return \"Arrow(B=\" + str('%.1f' % self.b) + \", H=\" + ('%.1f' % self.h) + \", A=\" + ('%.1f' % self.a) + \")\"\n \n def coerce_parameters_impl(self):\n if self.b < 0:\n self.b *= -1\n if self.h < 0:\n self.h *= -1\n if self.a < 0:\n self.a *= -1\n if self.w < 0:\n self.w *= -1\n if self.b_ != self.b or self.h_ != self.h or self.w_ != self.w or self.a_ != self.a:\n # update handle\n self.hh = pya.DPoint(0, self.h)\n self.hb = pya.DPoint(self.w/2, -self.b)\n self.ha = pya.DPoint(self.h*math.tan(math.radians(self.a/2)), 0)\n # fix params\n self.b_ = self.b\n self.w_ = self.w\n self.a_ = self.a\n self.h_ = self.h\n else:\n # fix angle handle\n self.ha.y = 0\n self.hh.x = 0\n # calc params from handle\n self.b = self.b_ = abs(self.hb.y)\n self.w = self.w_ = 2 * abs(self.hb.x)\n self.h = self.h_ = abs(self.hh.y)\n self.a = self.a_ = math.degrees(2 * math.atan(abs(self.ha.x)/self.h))\n \n def can_create_from_shape_impl(self):\n return self.shape.is_box() or self.shape.is_polygon() or self.shape.is_path()\n \n def parameters_from_shape_impl(self):\n w = self.shape.bbox().width()*self.layout.dbu\n h = self.shape.bbox().height()*self.layout.dbu\n if w > h:\n w, h = h, w\n self.b = 3*h/5\n self.h = 2*h/5\n self.a = math.degrees(2*math.atan(5/4*w/h))\n self.w = w/5\n self.l = self.layout.get_info(self.layer)\n \n def transformation_from_shape_impl(self):\n w = self.shape.bbox().width()\n h = self.shape.bbox().height()\n if w > h:\n return pya.Trans(3, False, pya.Point(self.shape.bbox().center().x+0.1*w, self.shape.bbox().center().y))\n else:\n return pya.Trans(pya.Point(self.shape.bbox().center().x, self.shape.bbox().center().y+0.1*h))\n \n def produce_impl(self):\n dbu = self.layout.dbu\n arrow = []\n tg = math.tan(math.radians(self.a/2))\n hw = self.h * tg\n arrow.append(pya.Point.from_dpoint(pya.DPoint(self.w/(2*dbu), -self.b/dbu)))\n arrow.append(pya.Point.from_dpoint(pya.DPoint(self.w/(2*dbu), 0)))\n arrow.append(pya.Point.from_dpoint(pya.DPoint(hw/dbu, 0)))\n arrow.append(pya.Point.from_dpoint(pya.DPoint(0, self.h/dbu)))\n arrow.append(pya.Point.from_dpoint(pya.DPoint(-hw/dbu, 0)))\n arrow.append(pya.Point.from_dpoint(pya.DPoint(-self.w/(2*dbu), 0)))\n arrow.append(pya.Point.from_dpoint(pya.DPoint(-self.w/(2*dbu), -self.b/dbu)))\n self.cell.shapes(self.l_layer).insert(pya.Polygon(arrow))","repo_name":"jurask/ShapeLib","sub_path":"python/arrow.py","file_name":"arrow.py","file_ext":"py","file_size_in_byte":3590,"program_lang":"python","lang":"en","doc_type":"code","stars":7,"dataset":"github-code","pt":"86"}
+{"seq_id":"25557377626","text":"import random\r\nfrom tkinter import *\r\nfrom tkinter import messagebox\r\nfrom tkinter import ttk\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nfrom random import *\r\n# Functions for Log In / SignUp / Admin\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\ndef LogIn() :\r\n WelcomeLabel.destroy()\r\n WelcomeLabel.destroy()\r\n\r\n\r\n\r\n WelcomeLabel1.destroy()\r\n WelcomeLabel1.destroy()\r\n\r\n\r\n WelcomeLabel2.destroy()\r\n WelcomeLabel2.destroy()\r\n\r\n\r\n\r\n\r\n\r\n Accounts = {}\r\n # Variables\r\n PriceRegular = DoubleVar()\r\n PriceRegular.set(0.59)\r\n\r\n PriceRegular2 = DoubleVar()\r\n PriceRegular2.set(1.18)\r\n\r\n PriceRegular3 = DoubleVar()\r\n PriceRegular3.set(1.37)\r\n\r\n PriceRegular4 = DoubleVar()\r\n PriceRegular4.set(0.472)\r\n\r\n PriceRegular5 = DoubleVar()\r\n PriceRegular5.set(0.384)\r\n\r\n #-----------------------------\r\n with open(\"Accounts.txt\" ) as file:\r\n lines = file.read().splitlines()\r\n for i in lines :\r\n key,value = i.split(', ')\r\n Accounts.update({key:value})\r\n print(Accounts)\r\n def FindUser() :\r\n AccountFile = open('Accounts.txt' , \"r\").read().splitlines()\r\n #Functions for Calculation\r\n\r\n\r\n if Label_EnterLog.get() in Accounts :\r\n NewCheckDict = {Label_EnterLog.get() : Accounts[Label_EnterLog.get()]}\r\n AcountPasses = NewCheckDict.values()\r\n print(NewCheckDict)\r\n if Label_EnterLogPass.get() in AcountPasses:\r\n del NewCheckDict[Label_EnterLog.get()]\r\n LITER = IntVar()\r\n WindowMain.geometry('750x750')\r\n frameMainWindow = Frame(WindowMain, bd='10', bg=\"#494c59\")\r\n frameMainWindow.place(relwidth=1, relheight=1, relx=0.5, anchor='n')\r\n\r\n def LiterOrMoney() :\r\n if LITER.get() == 1 :\r\n MoneyEntry.delete(0, END)\r\n LiterEntry.config(state=NORMAL)\r\n MoneyEntry.config(state=DISABLED )\r\n\r\n elif LITER.get() == 2 :\r\n LiterEntry.delete(0, END)\r\n LiterEntry.config(state=DISABLED )\r\n MoneyEntry.config(state=NORMAL )\r\n\r\n\r\n\r\n frameGasoline = Frame(frameMainWindow, bd='10', bg=\"#4834d4\" , highlightthickness=3 , highlightbackground=\"#34ace0\")\r\n frameGasoline.place(relheight=0.6, relwidth=0.4, relx=0.05, rely=0.06)\r\n\r\n LabelWelcome = Label(frameMainWindow, text=f\"Welcome {Label_EnterLog.get()}\", bd='10', bg=\"#494c59\" , fg=\"white\" , font=(\"Arial\",13,\"bold\"))\r\n LabelWelcome.place(relx=0.4,rely=0.001 ,relwidth=0.2 )\r\n\r\n LabelGasoline = Label(frameGasoline, bd=\"10\", bg=\"#4834d4\", fg=\"white\", font=(\"Arial\", 20),\r\n text=\"Gasoline Station\")\r\n LabelGasoline.place(relwidth=1, rely=0.01)\r\n\r\n Gasolines = {}\r\n\r\n # Starts here\r\n # Addint to Dict\r\n with open(\"Gasolines.txt\") as file:\r\n lines = file.read().splitlines()\r\n print(lines)\r\n for i in lines:\r\n key, value = i.split(', ')\r\n Gasolines.update({key: value})\r\n\r\n print(Gasolines)\r\n\r\n\r\n\r\n def Change(event):\r\n GasolinePriceEntry.config(state=NORMAL)\r\n GasolinePriceEntry.delete(0,END)\r\n GasolinePriceEntry.insert(0 , Gasolines[GasolineListBox.get()])\r\n GasolinePriceEntry.config(state=\"readonly\")\r\n print(Gasolines[GasolineListBox.get()])\r\n GasolineListBox = ttk.Combobox(frameGasoline, values=list(Gasolines.keys()), width=13 , state=\"readonly\" )\r\n GasolinesLabel = Label(frameMainWindow , text=\"Petrol : \", bg=\"#4834d4\", fg=\"white\", font=('Arial', 15))\r\n GasolinesLabel.place(rely=0.15, relx=0.1)\r\n GasolineListBox.place(rely=0.15, relx=0.4)\r\n GasolineListBox.bind('<>', Change)\r\n\r\n\r\n\r\n GasolinePrice = Label(frameMainWindow ,text=\"Price : \", bg=\"#4834d4\", fg=\"white\", font=('Arial', 15))\r\n GasolinePrice.place(rely=0.2, relx=0.1)\r\n DefaultString = StringVar()\r\n DefaultString.set(\"0.59\")\r\n GasolinePriceEntry = Entry(frameGasoline, fg=\"black\" , textvariable=DefaultString)\r\n GasolinePriceEntry.place(rely=0.24, relx=0.4, relheight=0.065)\r\n GasolinePriceEntry.config(state=DISABLED)\r\n\r\n\r\n\r\n AznLabel = Label(frameGasoline, text=\"AZN\", font=('Arial', 13), bg=\"#4834d4\", fg=\"white\")\r\n AznLabel.place(rely=0.24, relx=0.89)\r\n\r\n Liter = Radiobutton(frameGasoline, text=\"Liter : \", activebackground=\"#4834d4\", bg=\"#4834d4\",\r\n font=('Arial', 15), variable=LITER, value=1 , command= LiterOrMoney)\r\n Money = Radiobutton(frameGasoline, text=\"Money : \", activebackground=\"#4834d4\", bg=\"#4834d4\",\r\n font=(\"Arial\", 15), variable=LITER, value=2 , command= LiterOrMoney)\r\n\r\n Liter.place(rely=0.4, relx=0.01)\r\n Money.place(rely=0.5, relx=0.01)\r\n\r\n DefaultLiterString = StringVar()\r\n DefaultLiterString.set(\"0\")\r\n\r\n DefaultMoneyString = StringVar()\r\n DefaultMoneyString.set(\"0\")\r\n\r\n LiterEntry = Entry(frameGasoline, textvariable=DefaultLiterString, state= DISABLED)\r\n LiterEntry.place(rely=0.41, relx=0.4, relheight=0.065)\r\n MoneyEntry = Entry(frameGasoline,textvariable=DefaultMoneyString, state= DISABLED )\r\n MoneyEntry.place(rely=0.51, relx=0.4, relheight=0.065 )\r\n\r\n SubbFrameForGas = Frame(frameGasoline, bd=10, highlightbackground=\"#4bcffa\", highlightthickness=3,\r\n bg=\"#4834d4\")\r\n SubbFrameForGas.place(relwidth=0.85, relheight=0.3, rely=0.7, relx=0.1)\r\n LabelAllPrice = Label(SubbFrameForGas, text=\"Total\", bg=\"#4834d4\", fg=\"white\",\r\n font=('Arial', 20, \"bold\"))\r\n LabelAllPrice.place(anchor=NW)\r\n\r\n SummPriceValue = Label(SubbFrameForGas, text=\"0\", bg=\"#4834d4\", fg=\"white\",\r\n font=(\"Arial\", 20, \"bold\"), highlightthickness=3,\r\n highlightbackground=\"#4bcffa\")\r\n SummPriceValue.place(rely=0.45, relx=0.1)\r\n\r\n SummLabel = Label(SubbFrameForGas , text=\"AZN\" , bg=\"#4834d4\" , fg=\"white\" , font=('Arial' , 20 , \"bold\"))\r\n SummLabel.place(rely=0.45 , relx=0.6)\r\n\r\n\r\n\r\n\r\n\r\n # Cafe Frame\r\n HOTDOG = IntVar()\r\n FRIES = IntVar()\r\n QAMBURGER = IntVar()\r\n COLA = IntVar()\r\n\r\n def CafeCheckBoxes() :\r\n if HOTDOG.get() == 1:\r\n Hot_Dog_Entry_Count.config(state=NORMAL )\r\n\r\n else :\r\n Hot_Dog_Entry_Count.delete(0, END)\r\n Hot_Dog_Entry_Count.config(state=DISABLED)\r\n\r\n if FRIES.get() == 1:\r\n\r\n Fries_Entry_Count.config(state=NORMAL)\r\n\r\n else:\r\n Fries_Entry_Count.delete(0, END)\r\n Fries_Entry_Count.config(state=DISABLED )\r\n\r\n if QAMBURGER.get() == 1:\r\n\r\n Qamburger_Entry_Count.config(state=NORMAL)\r\n else:\r\n Qamburger_Entry_Count.delete(0, END)\r\n Qamburger_Entry_Count.config(state=DISABLED)\r\n\r\n if COLA.get() == 1 :\r\n\r\n Cola_Entry_Count.config(state=NORMAL)\r\n\r\n else:\r\n Cola_Entry_Count.delete(0, END)\r\n Cola_Entry_Count.config(state=DISABLED)\r\n if Hot_Dog_Entry_Count.get() == \"\":\r\n Hot_Dog_Entry_Count.config(state=NORMAL)\r\n Hot_Dog_Entry_Count.insert(0, \"0\")\r\n Hot_Dog_Entry_Count.config(state=DISABLED)\r\n if Fries_Entry_Count.get() == \"\":\r\n Fries_Entry_Count.config(state=NORMAL)\r\n Fries_Entry_Count.insert(0, \"0\")\r\n Fries_Entry_Count.config(state=DISABLED)\r\n if Cola_Entry_Count.get() == \"\":\r\n Cola_Entry_Count.config(state=NORMAL)\r\n Cola_Entry_Count.insert(0, \"0\")\r\n Cola_Entry_Count.config(state=DISABLED)\r\n if Qamburger_Entry_Count.get() == \"\":\r\n Qamburger_Entry_Count.config(state=NORMAL)\r\n Qamburger_Entry_Count.insert(0, \"0\")\r\n Qamburger_Entry_Count.config(state=DISABLED)\r\n\r\n\r\n\r\n Prices={}\r\n with open(\"Products.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n Prices.update({key: value})\r\n print(Prices)\r\n\r\n HotDogCountDefault = 1\r\n FriesCountDefault = 1\r\n ColaCountDefault = 1\r\n QamburgerCountDefault = 1\r\n\r\n frameCafe = Frame(frameMainWindow, bd=\"10\", bg=\"#4834d4\", highlightthickness=3 , highlightbackground=\"#34ace0\")\r\n frameCafe.place(relwidth=0.4, relheight=0.6, rely=0.06, relx=0.55)\r\n\r\n CafeLabel = Label(frameCafe, text=\"Mini Cafe\", anchor=N, bg=\"#4834d4\", fg=\"white\",\r\n font=('Arial', 20))\r\n CafeLabel.place(relx=0.25, rely=0.02)\r\n # Hot Dog Main\r\n Hot_Dog_CheckButton = Checkbutton(frameCafe, activebackground=\"#4834d4\", text=\"Hot-Dog\",\r\n bg=\"#4834d4\", font=('Arial', 15) , variable=HOTDOG , command=CafeCheckBoxes)\r\n Hot_Dog_CheckButton.place(rely=0.2, relx=0.01)\r\n\r\n Values = list(Prices.values())\r\n print(Values[0])\r\n\r\n Hot_Dog_Entry_Price = Entry(frameCafe, state= \"readonly\" )\r\n Hot_Dog_Entry_Price.config(state = NORMAL)\r\n Hot_Dog_Entry_Price.insert(0, Values[0])\r\n Hot_Dog_Entry_Price.config(state=\"readonly\")\r\n Hot_Dog_Entry_Price.place(rely=0.23, relx=0.45, relwidth=0.2, relheight=0.05)\r\n\r\n Hot_Dog_Entry_Count = Entry(frameCafe, state=DISABLED)\r\n Hot_Dog_Entry_Count.place(rely=0.23, relx=0.7, relwidth=0.2, relheight=0.05)\r\n # Fries Main\r\n\r\n Fries_CheckButton = Checkbutton(frameCafe, activebackground=\"#4834d4\", text=\"Fries\",\r\n bg=\"#4834d4\", font=('Arial', 15) , variable=FRIES , command=CafeCheckBoxes)\r\n Fries_CheckButton.place(rely=0.3, relx=0.01)\r\n\r\n\r\n Fries_Price_Entry = Entry(frameCafe, state=\"readonly\")\r\n Fries_Price_Entry.place(rely=0.33, relx=0.45, relwidth=0.2, relheight=0.05)\r\n Fries_Price_Entry.config(state = NORMAL)\r\n Fries_Price_Entry.insert(0, Values[1])\r\n Fries_Price_Entry.config(state=\"readonly\")\r\n Fries_Entry_Count = Entry(frameCafe, state=DISABLED)\r\n Fries_Entry_Count.place(rely=0.33, relx=0.7, relwidth=0.2, relheight=0.05)\r\n\r\n # Cola Main\r\n\r\n Cola_CheckButton = Checkbutton(frameCafe, activebackground=\"#4834d4\", text=\"Cola\", bg=\"#4834d4\",\r\n font=('Arial', 15) , variable= COLA, command=CafeCheckBoxes)\r\n Cola_CheckButton.place(rely=0.4, relx=0.01)\r\n\r\n\r\n Cola_Price_Entry = Entry(frameCafe, state=\"readonly\")\r\n Cola_Price_Entry.place(rely=0.43, relx=0.45, relwidth=0.2, relheight=0.05)\r\n Cola_Price_Entry.config(state=NORMAL)\r\n Cola_Price_Entry.insert(0,Values[2])\r\n Cola_Price_Entry.config(state=\"readonly\")\r\n Cola_Entry_Count = Entry(frameCafe, state=DISABLED)\r\n Cola_Entry_Count.place(rely=0.43, relx=0.7, relwidth=0.2, relheight=0.05)\r\n\r\n # Qamburger Main\r\n\r\n Qamburger_CheckButton = Checkbutton(frameCafe, activebackground=\"#4834d4\", text=\"Qamburger\",\r\n bg=\"#4834d4\", font=('Arial', 15) , variable=QAMBURGER, command=CafeCheckBoxes)\r\n Qamburger_CheckButton.place(rely=0.5, relx=0.01)\r\n\r\n\r\n Qamburger_Price_Entry = Entry(frameCafe, state=\"readonly\")\r\n Qamburger_Price_Entry.place(rely=0.53, relx=0.5, relwidth=0.2, relheight=0.05)\r\n Qamburger_Price_Entry.config(state=NORMAL)\r\n Qamburger_Price_Entry.insert(0, Values[3])\r\n Qamburger_Price_Entry.config(state=\"readonly\")\r\n Qamburger_Entry_Count = Entry(frameCafe, state=DISABLED)\r\n Qamburger_Entry_Count.place(rely=0.53, relx=0.75, relwidth=0.2, relheight=0.05)\r\n\r\n if Hot_Dog_Entry_Count.get() == \"\":\r\n Hot_Dog_Entry_Count.config(state=NORMAL)\r\n Hot_Dog_Entry_Count.insert(0, \"0\")\r\n Hot_Dog_Entry_Count.config(state=DISABLED)\r\n if Fries_Entry_Count.get() == \"\":\r\n Fries_Entry_Count.config(state=NORMAL)\r\n Fries_Entry_Count.insert(0, \"0\")\r\n Fries_Entry_Count.config(state=DISABLED)\r\n if Cola_Entry_Count.get() == \"\":\r\n Cola_Entry_Count.config(state=NORMAL)\r\n Cola_Entry_Count.insert(0, \"0\")\r\n Cola_Entry_Count.config(state=DISABLED)\r\n if Qamburger_Entry_Count.get() == \"\":\r\n Qamburger_Entry_Count.config(state=NORMAL)\r\n Qamburger_Entry_Count.insert(0, \"0\")\r\n Qamburger_Entry_Count.config(state=DISABLED)\r\n\r\n\r\n\r\n # All Money Main\r\n def CalculateButton() :\r\n\r\n\r\n\r\n\r\n # Gasoline Calculation\r\n if LITER.get() == 1 :\r\n if GasolineListBox.get() == \"Regular 92\":\r\n SumOfGasoline = float(LiterEntry.get()) * PriceRegular.get()\r\n MoneyEntry.config(state=NORMAL)\r\n SummLabel.config(text = \"AZN\")\r\n SummPriceValue.config(text=f\"{SumOfGasoline:.1f}\")\r\n elif GasolineListBox.get() == \"Super 95\":\r\n SumOfGasoline = float(LiterEntry.get()) * PriceRegular2.get()\r\n SummPriceValue.config(text=f\"{SumOfGasoline:.1f}\")\r\n SummLabel.config(text=\"AZN\")\r\n elif GasolineListBox.get() == \"Premium 98\":\r\n SumOfGasoline = float(LiterEntry.get()) * PriceRegular3.get()\r\n SummPriceValue.config(text=f\"{SumOfGasoline:.1f}\")\r\n SummLabel.config(text=\"AZN\")\r\n elif GasolineListBox.get() == \"Diesel\":\r\n SumOfGasoline = float(LiterEntry.get()) * PriceRegular4.get()\r\n SummLabel.config(text=\"AZN\")\r\n SummPriceValue.config(text=f\"{SumOfGasoline:.1f}\")\r\n elif GasolineListBox.get() == \"LPG\":\r\n SumOfGasoline = float(LiterEntry.get()) * PriceRegular5.get()\r\n SummLabel.config(text=\"AZN\")\r\n SummPriceValue.config(text=f\"{SumOfGasoline:.1f}\")\r\n elif LITER.get() == 2 :\r\n if GasolineListBox.get() == \"Regular 92\":\r\n SumOfGass = int(MoneyEntry.get()) / PriceRegular.get()\r\n SummLabel.config(text=\"Liters\")\r\n SummPriceValue.config(text=f\"{SumOfGass:.1f}\")\r\n elif GasolineListBox.get() == \"Super 95\":\r\n SumOfGass = int(MoneyEntry.get()) / PriceRegular2.get()\r\n SummPriceValue.config(text=f\"{SumOfGass:.1f}\")\r\n SummLabel.config(text=\"Liters\")\r\n elif GasolineListBox.get() == \"Premium 98\":\r\n SumOfGass = int(MoneyEntry.get()) / PriceRegular3.get()\r\n SummLabel.config(text=\"Liters\")\r\n SummPriceValue.config(text=f\"{SumOfGass:.1f}\")\r\n elif GasolineListBox.get() == \"Diesel\":\r\n SumOfGass = int(MoneyEntry.get()) / PriceRegular4.get()\r\n SummLabel.config(text=\"Liters\")\r\n SummPriceValue.config(text=f\"{SumOfGass:.1f}\")\r\n elif GasolineListBox.get() == \"LPG\":\r\n SumOfGass = int(MoneyEntry.get()) / PriceRegular5.get()\r\n SummLabel.config(text=\"Liters\")\r\n SummPriceValue.config(text=f\"{SumOfGass:.1f}\")\r\n\r\n # Cafe Calculations\r\n\r\n SumCafeUp = (float(HotDogCountDefault * Hot_Dog_Entry_Count.get()) * float(Hot_Dog_Entry_Price.get())) + (\r\n float(FriesCountDefault * Fries_Entry_Count.get()) * float(Fries_Price_Entry.get())) + (\r\n float(ColaCountDefault * Cola_Entry_Count.get()) * float(Cola_Price_Entry.get())) + (\r\n float( QamburgerCountDefault * Qamburger_Entry_Count.get()) * float(Qamburger_Price_Entry.get()))\r\n SummPriceValueCafe.config(text = f\"{SumCafeUp:.1f}\")\r\n\r\n # Summ All UP\r\n\r\n SumAllUp = SumCafeUp + float(SummPriceValue.cget(\"text\"))\r\n CalculateLabel1.config(text=f\"{SumAllUp:.1f}\")\r\n\r\n\r\n ReceiptWindow = Tk()\r\n ReceiptWindow.geometry(\"500x700\")\r\n ReceiptWindow.resizable(False,False)\r\n ReceiptWindow.title(\"Receipt\")\r\n ReceiptWindow.config(bg=\"#c8d6e5\")\r\n\r\n\r\n\r\n LabelReceipt = Label(ReceiptWindow , text=\"Receipt\", bg=\"#c8d6e5\" , fg=\"black\" , font=(\"Arial\" , 20 , \"bold\"))\r\n LabelReceipt.place(rely=0.001,relx =0.4)\r\n\r\n\r\n\r\n\r\n FrameMainReceipt = Frame(ReceiptWindow,bd=\"10\",bg=\"#576574\")\r\n FrameMainReceipt.place(relheight=0.9, relwidth=0.9, relx=0.05, rely=0.05)\r\n\r\n\r\n\r\n\r\n\r\n CashierName = Label(FrameMainReceipt ,text=f\"Cashier Name : {Label_EnterLog.get()}\" , bg=\"#576574\" , fg=\"white\" , font=(\"Arial\" , 15 , \"bold\"))\r\n CashierName.place(relx=0.01 , rely=0.01)\r\n CashierName = Label(FrameMainReceipt ,text=\"Omar™\" , bg=\"#576574\" , fg=\"white\" , font=(\"Arial\" , 15 , \"bold\"))\r\n CashierName.place(relx=0.8 , rely=0.01)\r\n\r\n FoodFrame = Frame(FrameMainReceipt , bd=\"10\" , bg=\"#2d3436\")\r\n FoodFrame.place(relx=0.1,rely=0.1 , relheight=0.5 , relwidth=0.8)\r\n\r\n\r\n\r\n ProductLabel = Label(FoodFrame , bd=\"10\" , bg=\"#2d3436\" , text=\"Product\" , font=('Arial', 12 , \"bold\") , fg=\"white\")\r\n ProductLabel.place(relx=0.01 , rely=0.2)\r\n PriceLabel = Label(FoodFrame , bd=\"10\" , bg=\"#2d3436\" , text=\"Price\" , font=('Arial', 12 , \"bold\") , fg=\"white\")\r\n PriceLabel.place(relx=0.35 , rely=0.2 ,relwidth=0.25)\r\n CountLabel = Label(FoodFrame , bd=\"10\" , bg=\"#2d3436\" , text=\"Count\" , font=('Arial', 12 , \"bold\") , fg=\"white\")\r\n CountLabel.place(relx=0.7 , rely=0.2)\r\n # Hot Dog\r\n\r\n\r\n\r\n\r\n HotDogLabel = Label(FoodFrame , bd=\"10\" , bg=\"#2d3436\" , text=\"Hot Dog\" , font=('Arial', 12 , \"bold\") , fg=\"white\")\r\n HotDogLabel.place(relx=0.01 , rely=0.3)\r\n HotDogPriceLabel = Label(FoodFrame , bd=\"10\" , bg=\"#2d3436\" , text=Hot_Dog_Entry_Price.get() , font=('Arial', 12 , \"bold\") , fg=\"white\")\r\n HotDogPriceLabel.place(relx=0.35 , rely=0.3,relwidth=0.25)\r\n HotDogCountLabel = Label(FoodFrame , bd=\"10\" , bg=\"#2d3436\" , text=Hot_Dog_Entry_Count.get() , font=('Arial', 12 , \"bold\") , fg=\"white\")\r\n HotDogCountLabel.place(relx=0.75 , rely=0.3)\r\n\r\n # Fries\r\n\r\n\r\n FriesLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=\"Fries\", font=('Arial', 12, \"bold\"),\r\n fg=\"white\")\r\n FriesLabel.place(relx=0.01, rely=0.4)\r\n FriesPriceLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=Fries_Price_Entry.get(),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n FriesPriceLabel.place(relx=0.35, rely=0.4, relwidth=0.25)\r\n FriesCountLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=Fries_Entry_Count.get(),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n FriesCountLabel.place(relx=0.75, rely=0.4)\r\n\r\n # Cola\r\n\r\n\r\n ColaLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=\"Cola\", font=('Arial', 12, \"bold\"),\r\n fg=\"white\")\r\n ColaLabel.place(relx=0.01, rely=0.5)\r\n ColaPriceLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=Cola_Price_Entry.get(),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n ColaPriceLabel.place(relx=0.35, rely=0.5, relwidth=0.25)\r\n ColaCountLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=Cola_Entry_Count.get(),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n ColaCountLabel.place(relx=0.75, rely=0.5)\r\n\r\n # Qamburger\r\n\r\n QamburgerLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=\"Qamburger\", font=('Arial', 12, \"bold\"),\r\n fg=\"white\")\r\n QamburgerLabel.place(relx=0.01, rely=0.6)\r\n QamburgerPriceLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=Qamburger_Price_Entry.get(),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n QamburgerPriceLabel.place(relx=0.35, rely=0.6, relwidth=0.25)\r\n QamburgerCountLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=Qamburger_Entry_Count.get(),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n QamburgerCountLabel.place(relx=0.75, rely=0.6)\r\n\r\n # TotalLabel\r\n TotalLabel = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=\"Total : \",\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n TotalLabel.place(relx=0.01, rely=0.8)\r\n\r\n TotalLabelPrice = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=SummPriceValueCafe.cget(\"text\"),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n TotalLabelPrice.place(relx=0.75, rely=0.8)\r\n MenuCafe = Label(FoodFrame, bd=\"10\", bg=\"#2d3436\", text=\"Cafe Menu\",\r\n font=('Arial', 20, \"bold\"), fg=\"white\")\r\n MenuCafe.place(relx=0.1, rely=0.01 , relwidth=0.7)\r\n\r\n GasolineFrame = Frame(FrameMainReceipt, bd=\"10\", bg=\"#2d3436\")\r\n GasolineFrame.place(relx=0.1, rely=0.65, relheight=0.2, relwidth=0.8)\r\n\r\n GasolineTypeL = Label(GasolineFrame, bd=\"10\", bg=\"#2d3436\", text=\"Gasoline type\",\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n GasolineTypeL.place(rely=0.01, relx=0.01)\r\n GasolineLitersL = Label(GasolineFrame, bd=\"10\", bg=\"#2d3436\", text=\"Liters\",\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n GasolineLitersL.place(rely=0.01, relx=0.45)\r\n GasolineManatL = Label(GasolineFrame, bd=\"10\", bg=\"#2d3436\", text=\"Total\",\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n GasolineManatL.place(rely=0.01, relx=0.75)\r\n\r\n GasolineTypeLabel = Label(GasolineFrame, bd=\"10\", bg=\"#2d3436\", text=GasolineListBox.get(),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n GasolineTypeLabel.place(rely=0.3,relx=0.01)\r\n\r\n GasolineLitersLabel = Label(GasolineFrame, bd=\"10\", bg=\"#2d3436\", text=LiterEntry.get(),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n GasolineLitersLabel.place(rely=0.3,relx=0.45)\r\n GasolineManatLabel = Label(GasolineFrame, bd=\"10\", bg=\"#2d3436\", text=SummPriceValue.cget(\"text\"),\r\n font=('Arial', 12, \"bold\"), fg=\"white\")\r\n GasolineManatLabel.place(rely=0.3, relx=0.75)\r\n\r\n if LITER.get() == 1 :\r\n GasolineLitersL.config(text=\"Liters\")\r\n GasolineLitersLabel.config(text=LiterEntry.get())\r\n elif LITER.get()==2 :\r\n GasolineLitersL.config(text=\"Manat\")\r\n GasolineLitersLabel.config(text=MoneyEntry.get())\r\n\r\n\r\n\r\n\r\n\r\n TotalLabel = Label(FrameMainReceipt , text=f\"Total is : {CalculateLabel1.cget('text')} AZN\", bg=\"#576574\" , fg=\"white\", font=(\"Arial\" , 15 , \"bold\"))\r\n TotalLabel.place(relx=0.01 , rely=0.9)\r\n\r\n Receipt = {\"Name\":Label_EnterLog.get() , \"HotDog\" : [HotDogPriceLabel.cget(\"text\") ,HotDogCountLabel.cget(\"text\")]\r\n , \"Fries\" : [FriesPriceLabel.cget(\"text\") ,FriesCountLabel.cget(\"text\")] ,\r\n \"Cola\" : [ColaPriceLabel.cget(\"text\") ,ColaCountLabel.cget(\"text\")] ,\r\n \"Qamburger\" : [QamburgerPriceLabel.cget(\"text\") ,QamburgerCountLabel.cget(\"text\")] ,\r\n GasolineListBox.get() : [GasolineLitersL.cget(\"text\") , SummPriceValue.cget(\"text\")]}\r\n\r\n ReceiptFile = open('Receipt.txt', 'w')\r\n for key, value in Receipt.items():\r\n ReceiptFile.write(f'{key}, {value}\\n')\r\n print(ReceiptFile)\r\n\r\n\r\n def ExitReceipt() :\r\n ReceiptWindow.destroy()\r\n ExitButtonReceipt = Button(FrameMainReceipt , text=\"Exit\" ,activebackground=\"#686de0\",\r\n bg=\"#686de0\", fg=\"white\", font=('Arial', 15, \"bold\") , command=ExitReceipt)\r\n ExitButtonReceipt.place(relx=0.75 , rely=0.9 , relwidth=0.25 , relheight=0.09)\r\n\r\n\r\n def DeleteAll():\r\n LITER.set(0)\r\n LiterEntry.delete(0 , END)\r\n MoneyEntry.delete(0,END)\r\n SummPriceValue.config(text = \"0\")\r\n\r\n #Cafe\r\n\r\n Hot_Dog_Entry_Count.delete(0, END)\r\n Fries_Entry_Count.delete(0,END)\r\n Qamburger_Entry_Count.delete(0,END)\r\n Cola_Entry_Count.delete(0,END)\r\n SummPriceValueCafe.config(text=\"0\")\r\n\r\n HOTDOG.set(0)\r\n COLA.set(0)\r\n QAMBURGER.set(0)\r\n FRIES.set(0)\r\n\r\n # All\r\n\r\n CalculateLabel1.config(text=\"0\")\r\n\r\n SubbFrameForCafe = Frame(frameCafe, bd=10, highlightbackground=\"#0be881\", highlightthickness=3,\r\n bg=\"#4834d4\")\r\n SubbFrameForCafe.place(relwidth=0.85, relheight=0.3, rely=0.7, relx=0.1)\r\n LabelAllPriceCafe = Label(SubbFrameForCafe, text=\"Total\", bg=\"#4834d4\", fg=\"white\",\r\n font=('Arial', 20, \"bold\"))\r\n LabelAllPriceCafe.place(anchor=NW)\r\n\r\n SummPriceValueCafe = Label(SubbFrameForCafe, text=\"0\", bg=\"#4834d4\", fg=\"white\",\r\n font=(\"Arial\", 20, \"bold\"), highlightthickness=3,\r\n highlightbackground=\"#0be881\")\r\n SummPriceValueCafe.place(rely=0.45, relx=0.1)\r\n SummPriceValueCafeLabel = Label(SubbFrameForCafe, text=\"AZN\", font=('Arial', 20 , \"bold\"), bg='#4834d4',\r\n fg='white')\r\n SummPriceValueCafeLabel.place(rely=0.5, relx=0.7)\r\n\r\n frameSumUpCafe = Frame(frameMainWindow, bd='10', bg=\"#4834d4\", highlightthickness=3 , highlightbackground=\"#34ace0\")\r\n frameSumUpCafe.place(relwidth=0.9, relheight=0.25, rely=0.7, relx=0.05)\r\n\r\n LabelSumUp = Label(frameSumUpCafe, text=\"All price\", bg=\"#4834d4\", fg=\"white\",\r\n font=('Arial', 15, \"bold\"))\r\n LabelSumUp.place(rely=0.01, relx=0.01)\r\n\r\n CalculateButton = Button(frameSumUpCafe, text=\"Calculate\", activebackground=\"#686de0\",\r\n bg=\"#686de0\", fg=\"white\", font=('Arial', 15, \"bold\") , command= CalculateButton)\r\n CalculateButton.place(rely=0.4, relx=0.1)\r\n CalculateButton = Button(frameSumUpCafe, text=\"Delete All\", activebackground=\"#686de0\",\r\n bg=\"#686de0\", fg=\"white\", font=('Arial', 15, \"bold\") , command=DeleteAll)\r\n CalculateButton.place(rely=0.4, relx=0.3)\r\n\r\n CalculateLabel1 = Label(frameSumUpCafe, text=\"0\", bg=\"#686de0\", fg=\"white\",\r\n font=('Arial', 15, \"bold\"))\r\n CalculateLabel1.place(rely=0.35, relx=0.5, relheight=0.4, relwidth=0.2)\r\n CalculateLabel2 = Label(frameSumUpCafe, text=\"AZN\", bg=\"#4834d4\", fg=\"white\",\r\n font=('Arial', 15, \"bold\"))\r\n CalculateLabel2.place(rely=0.35, relx=0.75, relheight=0.4, relwidth=0.09)\r\n\r\n def ExitButton():\r\n frameMainWindow.destroy()\r\n Label_EnterLog.delete(0,END)\r\n Label_EnterLogPass.delete(0,END)\r\n\r\n ExitButton = Button(frameMainWindow,text=\"Exit\" , activebackground=\"#686de0\",\r\n bg=\"#686de0\", fg=\"white\", font=('Arial', 10, \"bold\"),command=ExitButton)\r\n ExitButton.place(relx=0.8 , rely=0.97 , relwidth=0.2)\r\n else:\r\n Message = messagebox.showerror(title=\"Error\" , message=\"Login or Password incorrect! \")\r\n\r\n frame = Frame(WindowMain, bd='10')\r\n frame.place(relx=0.5, rely=0.2, relwidth=0.7, relheight=0.6, anchor='n')\r\n Label_Title = Label(frame, text='Log In', font=16)\r\n Label_Title.place(relwidth=1, relheight=0.1)\r\n\r\n Label_Login = Label(frame, text='Login :')\r\n Label_Login.place(rely=0.2, relwidth=0.35, relheight=0.1)\r\n\r\n Label_PasswordLogin = Label(frame, text=\"Password : \")\r\n Label_PasswordLogin.place(rely=0.4, relwidth=0.35, relheight=0.1)\r\n\r\n Label_EnterLog = Entry(frame)\r\n Label_EnterLog.place(relx=0.4, rely=0.2, relheight=0.1, relwidth=0.55)\r\n Label_EnterLogPass = Entry(frame, show='*')\r\n Label_EnterLogPass.place(relx=0.4, rely=0.4, relheight=0.1, relwidth=0.55)\r\n\r\n ButtonSignUp = Button(frame, text=\"Log In\" , command=FindUser)\r\n ButtonSignUp.place(relx=0.3, rely=0.6, relheight=0.15, relwidth=0.5)\r\ndef Admin() :\r\n WelcomeLabel.destroy()\r\n WelcomeLabel.destroy()\r\n WelcomeLabel1.destroy()\r\n WelcomeLabel1.destroy()\r\n WelcomeLabel2.destroy()\r\n WelcomeLabel2.destroy()\r\n def AdminLogIn():\r\n\r\n def AddGasoline() :\r\n if ComboBoxForPick.get() == \"Gasoline\" :\r\n NewGasolines = {}\r\n with open(\"Gasolines.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n NewGasolines.update({key: value})\r\n print(NewGasolines)\r\n\r\n if EntryForName.get() in NewGasolines :\r\n Message = messagebox.showerror(title=\"Error\" , message=\"Gasoline already exists\")\r\n else:\r\n NewGasolines.update({EntryForName.get(): EntryForPassword.get()})\r\n GasolineFile = open('Gasolines.txt', 'w')\r\n for key, value in NewGasolines.items():\r\n GasolineFile.write(f'{key}, {value}\\n')\r\n Message = messagebox.showinfo(title=\"Success\", message=\"Gas has been added!\")\r\n print(NewGasolines)\r\n\r\n\r\n\r\n\r\n elif ComboBoxForPick.get() == \"Cashier\" :\r\n Accounts = {}\r\n # reading files\r\n with open(\"Accounts.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n Accounts.update({key: value})\r\n print(Accounts)\r\n if EntryForName.get() in Accounts :\r\n Message = messagebox.showerror(title=\"Eror\" , message=\"Account already exist\")\r\n else:\r\n Accounts[EntryForName.get()] = EntryForPassword.get()\r\n # Adding to file\r\n AccountsFile = open('Accounts.txt', 'a')\r\n for key, value in Accounts.items():\r\n AccountsFile.write(f'{key}, {value}\\n')\r\n MessageBox = messagebox.showinfo(title=\"Account Created\", message=\"Account has been created\")\r\n else:\r\n MessageBox = messagebox.showinfo(title=\"Account Created\", message=\"Account has been created\")\r\n\r\n\r\n\r\n\r\n def RemoveGasoline() :\r\n if ComboBoxForPick.get() == \"Gasoline\" :\r\n with open(\"Gasolines.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n AllGas.update({key: value})\r\n\r\n print(AllGas)\r\n if EntryForName.get() not in AllGas :\r\n Message = messagebox.showerror(title=\"Error\" , message=\"Gasoline not found\")\r\n else:\r\n AllGas.pop(EntryForName.get())\r\n print(AllGas)\r\n\r\n GasolineFile = open('Gasolines.txt', 'w')\r\n for key, value in AllGas.items():\r\n GasolineFile.write(f'{key}, {value}\\n')\r\n messagebox.showinfo(title=\"Success\", message=\"Gasoline has been removed\")\r\n\r\n if ComboBoxForPick.get() == \"Cashier\" :\r\n Accs= {}\r\n with open(\"Accounts.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n Accs.update({key: value})\r\n\r\n\r\n print(Accs)\r\n if EntryForName.get() not in Accs :\r\n Message = messagebox.showerror(title=\"Error\" , message=\"Account not found\")\r\n else:\r\n Accs.pop(EntryForName.get())\r\n print(AllGas)\r\n AccsFiles = open('Accounts.txt', 'w')\r\n for key, value in Accs.items():\r\n AccsFiles.write(f'{key}, {value}\\n')\r\n messagebox.showinfo(title=\"Success\", message=\"Gas has been removed\")\r\n\r\n def UpdateHotDogPrice():\r\n with open(\"Products.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n Prices.update({key: value})\r\n\r\n if HotDogsEntry.get() != \"\":\r\n Prices[\"Hot Dog\"] = HotDogsEntry.get()\r\n ProductFile = open('Products.txt', 'w')\r\n for key, value in Prices.items():\r\n ProductFile.write(f'{key}, {value}\\n')\r\n messagebox.showinfo(title=\"Success\", message=\"Successfully changed!\")\r\n else:\r\n Message = messagebox.showerror(title=\"Error\", message=\"No Value Given\")\r\n\r\n print(Prices)\r\n\r\n\r\n def UpdateFriesPrice():\r\n with open(\"Products.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n Prices.update({key: value})\r\n\r\n if FriesEntry.get() != \"\":\r\n Prices[\"Fries\"] = FriesEntry.get()\r\n ProductFile = open('Products.txt', 'w')\r\n for key, value in Prices.items():\r\n ProductFile.write(f'{key}, {value}\\n')\r\n messagebox.showinfo(title=\"Success\", message=\"Successfully changed!\")\r\n else:\r\n Message = messagebox.showerror(title=\"Error\", message=\"No Value Given\")\r\n\r\n print(Prices)\r\n\r\n\r\n def UpdateColaPrice():\r\n with open(\"Products.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n Prices.update({key: value})\r\n\r\n if ColaEntry.get() != \"\":\r\n Prices[\"Cola\"] = ColaEntry.get()\r\n ProductFile = open('Products.txt', 'w')\r\n for key, value in Prices.items():\r\n ProductFile.write(f'{key}, {value}\\n')\r\n messagebox.showinfo(title=\"Success\", message=\"Successfully changed!\")\r\n else:\r\n Message = messagebox.showerror(title=\"Error\", message=\"No Value Given\")\r\n\r\n print(Prices)\r\n\r\n\r\n def UpdateQamburgerPrice():\r\n with open(\"Products.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n Prices.update({key: value})\r\n if QamburgerEntry.get() != \"\" :\r\n Prices[\"Qamburger\"] = QamburgerEntry.get()\r\n ProductFile = open('Products.txt', 'w')\r\n for key, value in Prices.items():\r\n ProductFile.write(f'{key}, {value}\\n')\r\n messagebox.showinfo(title=\"Success\", message=\"Successfully changed!\")\r\n else:\r\n Message = messagebox.showerror(title=\"Error\" , message=\"No Value Given\")\r\n\r\n print(Prices)\r\n\r\n\r\n\r\n def ResetButton():\r\n with open(\"Products.txt\") as file:\r\n lines = file.read().splitlines()\r\n for i in lines:\r\n key, value = i.split(', ')\r\n Prices.update({key: value})\r\n\r\n Prices[\"Hot Dog\"] = 4\r\n Prices[\"Qamburger\"] = 5.4\r\n Prices[\"Fries\"] = 7.2\r\n Prices[\"Cola\"] = 4.4\r\n\r\n print(Prices)\r\n\r\n ProductFile = open('Products.txt', 'w')\r\n for key, value in Prices.items():\r\n ProductFile.write(f'{key}, {value}\\n')\r\n messagebox.showinfo(title=\"Success\", message=\"Successfully changed!\")\r\n\r\n def BackButton():\r\n frameMainWindow.destroy()\r\n Label_EnterLog.delete(0 , END)\r\n Label_EnterLogPass.delete(0,END)\r\n\r\n\r\n if Label_EnterLog.get() == 'Omar' and Label_EnterLogPass.get() == '1' :\r\n\r\n def ChangeLabels(event):\r\n if ComboBoxForPick.get() == \"Cashier\" :\r\n LabelName.config(text= \"Login\")\r\n LabelPrice.config(text=\"Password\")\r\n elif ComboBoxForPick.get() == \"Gasoline\" :\r\n LabelName.config(text=\"Gasoline\")\r\n LabelPrice.config(text=\"Price\")\r\n\r\n AllGas = {}\r\n Prices = {}\r\n frameMainWindow = Frame(WindowMain, bd='10', bg=\"#494c59\")\r\n frameMainWindow.place(relwidth=1, relheight=1, relx=0.5, anchor='n')\r\n\r\n LabelWelcome = Label(frameMainWindow , bd='10' , bg=\"#494c59\" , text=f\"Welcome {Label_EnterLog.get()}\" , font=(\"Arial\" , 15 , \"bold\") , fg=\"white\")\r\n LabelWelcome.place(anchor=\"n\", relx=0.5)\r\n\r\n\r\n frameForAddGasoline = Frame(frameMainWindow , bd=\"10\" , bg=\"#4834d4\")\r\n frameForAddGasoline.place(relx=0.01 , rely=0.069 , relheight=0.4 , relwidth=0.99)\r\n\r\n LabelForAdd = Label(frameForAddGasoline, bg=\"#4834d4\" , text = \"Change Gasoline/Create User\" , font=('Arial', 15 , 'bold') , fg=\"white\" )\r\n LabelForAdd.place(relx = 0.23 , rely=0.01 )\r\n\r\n LabelName = Label(frameForAddGasoline , bg=\"#4834d4\" , text= \"Name\" , font=('Arial', 13 , 'bold') , fg=\"white\")\r\n LabelName.place(relx=0.01 , rely=0.3)\r\n\r\n EntryForName = Entry(frameForAddGasoline )\r\n EntryForName.place(rely=0.3 , relx=0.2 , relheight=0.15 , relwidth=0.3)\r\n\r\n\r\n LabelPrice = Label(frameForAddGasoline , bg=\"#4834d4\" , text= \"Password\" , font=('Arial', 13 , 'bold') , fg=\"white\")\r\n LabelPrice.place(relx=0.01 , rely=0.6)\r\n\r\n EntryForPassword = Entry(frameForAddGasoline)\r\n EntryForPassword.place(rely=0.6 , relx=0.2 , relheight=0.15 , relwidth=0.3)\r\n\r\n\r\n AddGasolineButton = Button(frameForAddGasoline ,text=\"Add\" , font=('Arial' ,10 , \"bold\") , command=AddGasoline)\r\n AddGasolineButton.place(rely=0.3 , relx=0.7 , relheight=0.15 , relwidth=0.3)\r\n AddGasolineButton = Button(frameForAddGasoline ,text=\"Remove\" , font=('Arial' ,10 , \"bold\") , command=RemoveGasoline)\r\n AddGasolineButton.place(rely=0.5 , relx=0.7, relheight=0.15 , relwidth=0.3)\r\n Pick = [\"Cashier\" , \"Gasoline\"]\r\n ComboBoxForPick = ttk.Combobox(frameForAddGasoline, values=Pick , width=10)\r\n ComboBoxForPick.current(0)\r\n ComboBoxForPick.bind(\"<>\", ChangeLabels)\r\n ComboBoxForPick.place(rely=0.7 , relx=0.7 , relheight=0.15 , relwidth=0.3)\r\n\r\n\r\n\r\n\r\n frameforFoodPrice = Frame(frameMainWindow, bd=\"10\" , bg=\"#4834d4\")\r\n frameforFoodPrice.place(relx=0.01 , rely=0.5 , relheight=0.4 , relwidth=0.99)\r\n\r\n FoodPriceLabelMain = Label(frameforFoodPrice , text=\"Change Food Price\" , font=('Arial' , 16 , \"bold\") , bg=\"#4834d4\" ,fg=\"white\")\r\n FoodPriceLabelMain.place(rely=0.01 , relx=0.28)\r\n\r\n HotDogsLabel = Label(frameforFoodPrice , text=\"Hot Dog Price : \" , font=('Arial' , 13 , \"bold\") , bg=\"#4834d4\" , fg=\"white\")\r\n HotDogsLabel.place(relx=0.01 , rely=0.2)\r\n\r\n HotDogsEntry = Entry(frameforFoodPrice)\r\n HotDogsEntry.place(relx=0.3 , rely=0.22 , relheight=0.1)\r\n\r\n HotDogsButton = Button(frameforFoodPrice , text=\"Change\" , font=(\"Arial\" , 8 , \"bold\") , command=UpdateHotDogPrice)\r\n HotDogsButton.place(relx=0.6 , rely=0.22 , relheight=0.1)\r\n\r\n FriesLabel = Label(frameforFoodPrice , text=\"Fries Price : \" , font=('Arial' , 13 , \"bold\") , bg=\"#4834d4\" , fg=\"white\")\r\n FriesLabel.place(relx=0.01 , rely=0.4)\r\n\r\n\r\n FriesEntry = Entry(frameforFoodPrice)\r\n FriesEntry.place(relx=0.3, rely=0.42, relheight=0.1)\r\n\r\n FriesButton = Button(frameforFoodPrice , text=\"Change\" , font=(\"Arial\" , 8 , \"bold\") , command=UpdateFriesPrice)\r\n FriesButton.place(relx=0.6 , rely=0.42 , relheight=0.1)\r\n\r\n QamburgerLabel = Label(frameforFoodPrice , text=\"Qamburger Price : \" , font=('Arial' , 13 , \"bold\") , bg=\"#4834d4\" , fg=\"white\")\r\n QamburgerLabel.place(relx=0.01 , rely=0.6)\r\n\r\n QamburgerEntry = Entry(frameforFoodPrice)\r\n QamburgerEntry.place(relx=0.35, rely=0.62, relheight=0.1)\r\n\r\n QamburgerButton = Button(frameforFoodPrice , text=\"Change\" , font=(\"Arial\" , 8 , \"bold\") , command= UpdateQamburgerPrice)\r\n QamburgerButton.place(relx=0.65 , rely=0.62 , relheight=0.1)\r\n\r\n ColaLabel = Label(frameforFoodPrice , text=\"Cola Price : \" , font=('Arial' , 13 , \"bold\") , bg=\"#4834d4\" , fg=\"white\")\r\n ColaLabel.place(relx=0.01 , rely=0.8)\r\n\r\n ColaEntry = Entry(frameforFoodPrice)\r\n ColaEntry.place(relx=0.3, rely=0.82, relheight=0.1)\r\n\r\n ColaButton = Button(frameforFoodPrice , text=\"Change\" , font=(\"Arial\" , 8 , \"bold\") , command=UpdateColaPrice)\r\n ColaButton.place(relx=0.6 , rely=0.82 , relheight=0.1)\r\n\r\n ResetButton = Button(frameforFoodPrice , text=\"RESET\" , font=(\"Arial\" , 8 , \"bold\") , command=ResetButton)\r\n ResetButton.place(relx=0.8 , rely=0.35 , relheight=0.5 , relwidth=0.2)\r\n\r\n BackButton = Button(frameMainWindow , text=\"Back\" ,activebackground=\"#686de0\",\r\n bg=\"#686de0\", fg=\"white\", font=('Arial', 15, \"bold\") , command=BackButton)\r\n BackButton.place(rely=0.95 , relx=0.7 , relwidth=0.3)\r\n else:\r\n Message = messagebox.showerror(title=\"Error\" , message=\"Something went wrong!\")\r\n\r\n\r\n\r\n frame = Frame(WindowMain, bd='10')\r\n frame.place(relx=0.5, rely=0.2, relwidth=0.7, relheight=0.6, anchor='n')\r\n Label_Title = Label(frame, text='Admin', font=16)\r\n Label_Title.place(relwidth=1, relheight=0.1)\r\n\r\n Label_Login = Label(frame, text='Login :')\r\n Label_Login.place(rely=0.2, relwidth=0.35, relheight=0.1)\r\n\r\n Label_PasswordLogin = Label(frame, text=\"Password : \")\r\n Label_PasswordLogin.place(rely=0.4, relwidth=0.35, relheight=0.1)\r\n\r\n Label_EnterLog = Entry(frame)\r\n Label_EnterLog.place(relx=0.4, rely=0.2, relheight=0.1, relwidth=0.55)\r\n Label_EnterLogPass = Entry(frame, show='*')\r\n Label_EnterLogPass.place(relx=0.4, rely=0.4, relheight=0.1, relwidth=0.55)\r\n\r\n ButtonSignUp = Button(frame, text=\"Log In\" , command=AdminLogIn)\r\n ButtonSignUp.place(relx=0.3, rely=0.6, relheight=0.15, relwidth=0.5)\r\n\r\n\r\n\r\n\r\nWindowMain = Tk()\r\nWindowMain.resizable(False,False)\r\nWindowMain.title(\"Main\")\r\nWindowMain.geometry('750x750')\r\nWindowMain.config(bg=\"#494c59\")\r\n\r\nWelcomeLabel = Label(text=\"Welcome!\" , font=(\"Arial\" , 50 , \"bold\") , bg =\"#494c59\" , fg = \"white\" )\r\nWelcomeLabel.place(rely=0.34 , relx=0.25 , relwidth=0.45)\r\nWelcomeLabel1 = Label(text=\"Press one of the buttons above\" , font=(\"Arial\" , 35 , \"bold\") , bg =\"#494c59\" , fg = \"white\" )\r\nWelcomeLabel1.place(rely=0.54 , relx=0.04)\r\nWelcomeLabel2 = Label(text=\"to start!\" , font=(\"Arial\" , 35 , \"bold\") , bg =\"#494c59\" , fg = \"white\" )\r\nWelcomeLabel2.place(rely=0.64 , relx=0.35)\r\n\r\n\r\nSignUp_Button = Button(text=\"Cashier\" , bg='gold' , command=LogIn , font=(\"Arial\",15 , \"bold\"))\r\nSignUp_Button.place(relx = 0.1 , rely = 0.1 , relwidth=0.3 ,relheight=0.07 )\r\nSignUp_Button = Button(text=\"Admin\" , bg='gold' , command=Admin , font=(\"Arial\",15 , \"bold\"))\r\nSignUp_Button.place(relx = 0.6, rely = 0.1 , relwidth=0.3 , relheight=0.07)\r\n\r\nCreditsLabel = Label(text=\"Made by Omar™ \" , font=(\"Arial\" , 20 , \"bold\") , bg =\"#494c59\" , fg = \"white\")\r\nCreditsLabel.place(rely=0.95 , relx=0.7)\r\nWindowMain.mainloop()","repo_name":"YoungDeveloper-Git/gasoline","sub_path":"ProjectWork.py","file_name":"ProjectWork.py","file_ext":"py","file_size_in_byte":48149,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27031780071","text":"# -*- coding: utf-8 -*-\r\n\"\"\"\r\nCreated on Sun Jan 26 05:04:18 2020\r\n\r\n@author: Sanketh\r\n\"\"\"\r\n\r\ntrain_generator=train_datagen.flow_from_directory('D:\\\\train\\\\', # this is where you specify the path to the main data folder\r\n target_size=(224,224),\r\n color_mode='rgb',\r\n batch_size=32,\r\n class_mode='categorical',\r\n shuffle=True)\r\n\r\n\r\n# In[33]:\r\n\r\n\r\nmodel.compile(optimizer='Adam',loss='categorical_crossentropy',metrics=['accuracy'])\r\n# Adam optimizer\r\n# loss function will be categorical cross entropy\r\n# evaluation metric will be accuracy\r\n\r\nstep_size_train=train_generator.n//train_generator.batch_size\r\nmodel.fit_generator(generator=train_generator,\r\n steps_per_epoch=step_size_train,\r\n epochs=5)\r\n","repo_name":"Abhishek262/DiabolicalBaggage","sub_path":"Training.py","file_name":"Training.py","file_ext":"py","file_size_in_byte":975,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"38823629107","text":"#!/usr/bin/python2.7\n# -*- coding:utf-8 -*-\n\n# Author: NetworkRanger\n# Date: 2018/11/2 下午9:23\n\n# 1.2 TensorFlow 如何工作\n\nimport tensorflow as tf\n\n# 1. 导入/生成样本数据集。\n\n# 2. 转换和归一化数据。\n# data = tf.nn.batch_norm_with_global_normalization(...)\n\n# 3. 划分样本数据集为训练样本集、测试样本集和验证样本集。\n\n# 4. 设置机器学习参数(超参数)。\nlearning_rate = 0.01\nbatch_size = 100\niterations = 1000\n\n# 5. 初始化变量和占位符。\na_var = tf.constant(42)\n# x_input = tf.placeholder(tf.float32, [None, input_size])\n# y_input = tf.placeholder(tf.float32, [None, num_classses])\n\n# 6. 定义模型结构。\n# y_pred = tf.add(tf.mul(x_input, weight_matrix), b_matrix)\n\n# 7. 声明损失函数。\n# loss = tf.reduce_mean(tf.square(y_actual - y_pred))\n\n# 8. 初始化模型和训练模型。\n# with tf.Session(graph=graph) as session:\n# ...\n# session.run(...)\n# ...\n\n# 9. 评估机器学习模型。\n\n# 10. 调优超参数。\n\n# 11. 发布/预测结果。\n","repo_name":"NetworkRanger/tensorflow-ml-exercise","sub_path":"chapter01/demo_1.2.py","file_name":"demo_1.2.py","file_ext":"py","file_size_in_byte":1040,"program_lang":"python","lang":"zh","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"74874829085","text":"# inference results archived module\nimport json\nimport os\nimport boto3\nfrom datetime import datetime, timedelta\nimport time\n\nBUCKET_NAME = os.environ.get('BUCKET_NAME')\ns3_client = boto3.client('s3') \nlog_client = boto3.client('logs')\ns3 = boto3.resource('s3') \n\ndef getMemoryUsed(info):\n request_id = info['request_id']\n log_group_name = info['log_group_name']\n\n query = f\"fields @maxMemoryUsed | sort @timestamp desc | filter @requestId='{request_id}' | filter @maxMemoryUsed like ''\"\n response = None\n max_memory_used = 0\n\n start_query_response = log_client.start_query(\n logGroupName=log_group_name,\n startTime=int((datetime.today() - timedelta(hours=24)).timestamp()),\n endTime=int((datetime.now() + timedelta(hours=24)).timestamp()),\n queryString=query,\n )\n query_id = start_query_response['queryId']\n while response == None or response['status'] == 'Running':\n time.sleep(1)\n response = log_client.get_query_results(\n queryId=query_id\n )\n\n res = response['results'][0]\n for r in res:\n if r['field'] == '@maxMemoryUsed':\n max_memory_used = int(float(r['value']) / 1000000)\n\n return max_memory_used\n\ndef getLatency(prefix, check , gettype):\n obj_list = s3_client.list_objects(Bucket=BUCKET_NAME,Prefix=prefix)\n contents_list = obj_list['Contents']\n\n for content in contents_list:\n # print(content)\n if content['Key']== check : \n # 파일 내용을 읽어오기\n obj = s3.Object(BUCKET_NAME,f\"{check}\")\n bytes_value = obj.get()['Body'].read()\n filejson = bytes_value.decode('utf8')\n fileobj = json.loads(filejson)\n print(fileobj)\n get_latency = fileobj[gettype]\n\n return get_latency\n\ndef upload_data(info,max_memory_used): \n # get convert_time \n try:\n if info[\"optimizer\"] == \"onnx\":\n convert_prefix = f'results/{info[\"optimizer\"]}/convert/'\n convert_check = convert_prefix + f'{info[\"model_name\"]}_{info[\"model_size\"]}_convert.json'\n else:\n convert_prefix = f'results/{info[\"optimizer\"]}/{info[\"hardware\"]}/convert/'\n convert_check = convert_prefix + f'{info[\"model_name\"]}_{info[\"model_size\"]}_{info[\"batchsize\"]}_convert.json'\n convert_time = getLatency(convert_prefix, convert_check, \"convert_time\")\n except:\n # base 인 경우 convert time 0 \n convert_time = 0\n # get inference_time \n prefix = f'results/{info[\"optimizer\"]}/{info[\"hardware\"]}/inference/'\n inference_check = prefix + f'{info[\"model_name\"]}_{info[\"model_size\"]}_{info[\"batchsize\"]}_{info[\"lambda_memory\"]}_inference.json'\n inference_time = getLatency(prefix,inference_check,\"inference_median\")\n\n\n get_info = {\n 'model_name':info['model_name'],\n 'model_size':info['model_size'],\n 'hardware':info['hardware'],\n 'framework':info['framework'],\n 'optimizer':info['optimizer'],\n 'lambda_memory':info['lambda_memory'],\n 'batchsize':info['batchsize'],\n 'convert_time':convert_time,\n 'inference_time':inference_time,\n 'user_email':info['user_email'],\n 'request_id':info['request_id'],\n 'log_group_name':info['log_group_name'],\n 'max_memory_used':max_memory_used\n }\n\n\n with open(f'/tmp/{get_info[\"model_name\"]}_{get_info[\"model_size\"]}_{get_info[\"batchsize\"]}_{get_info[\"lambda_memory\"]}.json','w') as f:\n json.dump(get_info, f, ensure_ascii=False, indent=4) \n s3_client.upload_file(f'/tmp/{get_info[\"model_name\"]}_{get_info[\"model_size\"]}_{get_info[\"batchsize\"]}_{get_info[\"lambda_memory\"]}.json',BUCKET_NAME,f'results/{get_info[\"optimizer\"]}/{get_info[\"hardware\"]}/{get_info[\"model_name\"]}_{get_info[\"model_size\"]}_{get_info[\"batchsize\"]}_{get_info[\"lambda_memory\"]}.json')\n\n return get_info\n\ndef ses_send(info):\n dst_format = {\"ToAddresses\":[f\"{info['user_email']}\"],\n \"CcAddresses\":[],\n \"BccAddresses\":[]}\n\n dfile_path = \"/tmp/destination.json\"\n\n with open(dfile_path, 'w', encoding='utf-8') as file:\n json.dump(dst_format, file)\n\n message_format = {\n \"Subject\": {\n \"Data\": \"AYCI : AllYouCanInference results mail\",\n \"Charset\": \"UTF-8\"\n },\n \"Body\": {\n \"Text\": {\n \"Data\": f\"AYCI convert time results\\n---------------------------------------\\n{info['model_name']} convert using {info['optimizer'].upper()} on {info['hardware'].upper()} \\n{info['model_name']} size : {info['model_size']} MB\\nConvert {info['model_name']} latency : {round(info['convert_time'],4)} s\\n\\nAYCI inference time results\\n---------------------------------------\\n{info['model_name']} inference Done!\\n{info['model_name']} size : {info['model_size']} MB\\nInference batchsize : {info['batchsize']}\\nInference {info['model_name']} latency on {info['hardware'].upper()}: {round(info['inference_time'],4)} s\\n-----------------------------------------------\\nLambda memory size : {info['lambda_memory']}\\nMax Memory Used : {info['max_memory_used']}\",\n \"Charset\": \"UTF-8\"\n },\n }\n }\n mfile_path = \"/tmp/message.json\"\n\n with open(mfile_path, 'w', encoding='utf-8') as mfile:\n json.dump(message_format, mfile)\n\n os.system(\"aws ses send-email --from allyoucaninference@gmail.com --destination=file:///tmp/destination.json --message=file:///tmp/message.json\")\n\n \n \ndef lambda_handler(event, context):\n\n for i in range(len(event)):\n if event[i]['execute'] :\n info = {\n 'model_name':event[i]['model_name'],\n 'model_size':event[i]['model_size'],\n 'hardware':event[i]['hardware'],\n 'framework':event[i]['framework'],\n 'optimizer':event[i]['optimizer'],\n 'lambda_memory':event[i]['lambda_memory'],\n 'batchsize':event[i]['batchsize'],\n 'user_email':event[i]['user_email'],\n 'request_id':event[i]['request_id'],\n 'log_group_name':event[i]['log_group_name']\n }\n max_memory_used = getMemoryUsed(info)\n print(max_memory_used)\n\n get_info = upload_data(info,max_memory_used)\n ses_send(get_info)\n\n else:\n pass\n\n\n return { 'result':'upload done'}\n","repo_name":"ddps-lab/lambda-optimize-serving","sub_path":"lambda-archive/lambda_function.py","file_name":"lambda_function.py","file_ext":"py","file_size_in_byte":6630,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"25934620481","text":"#!/usr/bin/python3\n\nfrom pythonping import ping\nimport matplotlib.pyplot as plt\n\nx = []\ny = []\ni = 0\n \ndef get_latency(host):\n result = str(ping(host,count=1))\n result = result.split(\" \")\n result = result[6]\n result = result[:-9]\n x.append(str(result))\n return result\n\n\n\nfor x in range(5):\n get_latency(\"1.1.1.1\")\n y.append(str(i))\n i = i + 1\n\nplt.plot(x, y)\n \n\nplt.xlabel('x - axis')\nplt.ylabel('y - axis')\n \nplt.title('My first graph!')\nplt.show()","repo_name":"marvinnitz18/Projects","sub_path":"latency-monitor/latency-monitor.py","file_name":"latency-monitor.py","file_ext":"py","file_size_in_byte":470,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"37432140409","text":"import requests\nimport sys\ndef recon():\n\n\tarq = open('wordlist.txt','r')\n\t\n\tfor domain in arq:\n\t\tdomain = domain.replace('\\n','')\n\t\tresult = f\"http://{site}/{domain}\"\n\t\t\n\t\ttry:\n\t\t\tresposta = requests.get(result)\n\t\t\tresposta = (resposta.status_code)\n\t\t\t\n\t\t\tif resposta == 200:\n\t\t\t\tprint('Diretorio Encontrado: '+domain)\n\n\t\texcept:\n\t\t\tcontinue\n\t\tarq.close()\n\ntry:\n\tsite = sys.argv[1]\n\trecon()\nexcept:\n\tprint(' Use: python domain.py www.site.com.br ')\n\texit()\n","repo_name":"valtercioj/recon_security","sub_path":"domain/domain.py","file_name":"domain.py","file_ext":"py","file_size_in_byte":457,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"1065371418","text":"import asyncio\nimport random\nimport time\n\nimport aiosqlite\nimport discord\nimport discord.commands\nimport requests\nfrom discord import slash_command\nfrom discord.ext import commands\n\n\nclass FunCommands(commands.Cog):\n def __init__(self, bot):\n self.bot = bot\n\n @commands.Cog.listener()\n async def on_ready(self):\n await asyncio.sleep(1.4)\n print(\"\"\"\n funcommands.py ✅\n ------------------------\"\"\")\n\n @slash_command(description=\"Zeigt wie lange der Bot schon online ist!\")\n async def ontime(self, ctx: discord.ApplicationContext):\n print(f\"{ctx.author} hat /uptime gemacht\")\n uptime_counter = time.time()\n aktuell_zeit = time.time()\n uptime_sek = aktuell_zeit - uptime_counter\n\n uptime_timestamp = round(aktuell_zeit - uptime_sek)\n\n await ctx.respond(f':green_circle: Der Bot ist seit online!')\n\n @slash_command(description=\"Schlage jemanden\")\n @commands.cooldown(1, 60, commands.BucketType.user)\n async def slap(self, ctx, member: discord.Member):\n guild: discord.Guild = self.bot.get_guild(724602228505313311)\n muterolle: discord.Role = guild.get_role(1043532505887809577)\n key = \"AIzaSyDHmg80hvYQrUvrTEee8ARuq9X-6hIE1EM\"\n params = {\"q\": \"slap\",\n \"key\": key,\n \"limit\": 30,\n \"media_filter\": \"gif\"}\n\n result = requests.get(f\"https://tenor.googleapis.com/v2/search\", params=params)\n data = result.json()\n\n number = random.randint(0, 30)\n\n url = data[\"results\"][number][\"media_formats\"][\"gif\"][\"url\"]\n\n if member == \"Cookie Manager#9104\":\n print(member)\n embot = discord.Embed(title=\"Ich bekomme alles mit!\", color=discord.Color.orange(),\n description=\"Der Bot so krass, das du in nicht schlagen kannst!\")\n embot.set_footer(text=\"Gif von Tenor\")\n embot.set_image(\n url=\"https://images-ext-2.discordapp.net/external/ZLjKGm6-I9EJNnCpHUMu-J1ChjOhbuRUuqVR_p7dYhY/https/\"\n \"media.tenor.com/FLGynS-9GqQAAAPo/will-smith-south-park.mp4\")\n\n embed = discord.Embed(title=f\"{ctx.author.name} hat {member} geschlagen!\", color=discord.Color.red())\n embed.set_image(url=url)\n embed.set_footer(text=\"Gif von Tenor\")\n print(f\"{ctx.author.name} hat den Befehl /slap genutzt\")\n await ctx.respond(embed=embed)\n geschlagen = discord.Embed(title=f\"{ctx.author} hat dich geschlagen!\", color=discord.Color.red(),\n description=f\"RÄCHE DICH JETZT INDEM DU auf den **DER COOKIE CLAN** DC gehst und in \"\n f\"https://discord.com/channels/724602228505313311/963740046995890176 \"\n f\"/slap {ctx.author} machst 😉\")\n if muterolle not in ctx.author.roles:\n await member.send(embed=geschlagen)\n\n @slash_command(description=\"Löse ein zufälliges Event aus. uiii\")\n @commands.cooldown(1, 3600, commands.BucketType.user)\n async def event(self, ctx):\n async with aiosqlite.connect(\"level.db\") as db:\n print(f\"{ctx.author} hat /event gemacht\")\n guild: discord.Guild = self.bot.get_guild(724602228505313311)\n hodenkrebsrole: discord.Role = guild.get_role(1037153279886503967)\n hodenkrebs = random.randint(1, 1000)\n goodordosent = random.randint(1, 2)\n cookies = random.randint(1, 7)\n cookiesmuell = cookies + random.randint(1, 5)\n user = guild.members\n eventgood = [f\"Du hast eine Packung Cookies auf der Straße gefunden du hast dich umgeschaut ob dich jemand \"\n f\"beobachtet... Als du festgestellt hat das dich niemand beobachtet hast du Lachend alle \"\n f\"Cookies mitgenommen es waren **{cookies}** Cookies.\", f\"Du hast im Aldilie eine Cookie \"\n f\"Packung geklaut allerdings hat dich \"\n f\"der Ladenbesitzer erwischt. Aber da \"\n f\"er mitleid hatte hast du \"\n f\"**{cookies}** Cookies bekommen.\",\n f\"Du hast auf Onlycookies ein neues Video hochgeladen du wurdest allerdings gehackt aber du \"\n f\"konntest trozdem **{cookies}** Cookies bekommen.\",\n f\"Du hast einer Alten Oma über die Straße geholfen. Aus ihrer Tasche sind wärendesen {cookies}\"\n f\" Cookies gefallen. Du hast alle vor ihren Augen eingesammelt und bist abgehauen.\",\n f\"Du bist nach Hause gegangen und hast im Müll etwas Cookie Artiges gesehen du hast geschaut \"\n f\"und es waren tatsächlich **{cookiesmuell}** Cookies im Müll du hollst alle raus und hast \"\n f\"jetzt **{cookies}** Cookies mehr, da {cookiesmuell - cookies} schlecht waren.\",\n f\"Du hast deine Cookies gezählt wie jeden morgen weil am Tag vorher {random.choice(user)} da \"\n f\"war. Dann hast du festgestellt das sie/er/es dir **{cookies}** dagelassen hat\",\n f\"Du bist in den Wald gegangen und hast dort eine Kiste gefunden. In der Kiste waren \"\n f\"**{cookies}** Cookies. Du hast sie genommen und bist abgehauen\",\n f\"Jemand hat dir **{cookies}** Cookies geschenkt. Du hast dich gefreut und hast sie genommen\",\n f\"Jemand hat dich gefragt ob du **{cookies}** Cookies haben willst oder ob er jemand anderen \"\n f\"doppelt geben soll. Du hast gesagt das du die Cookies haben willst und hast sie bekommen\",\n f\"Eine Person hat dir **{cookies}** Cookies geschenkt. Du hast dich gefreut und hast sie \"\n f\"genommen\",\n f\"Im Internet hast du eine Seite gefunden in der behauptet wurde das du **{cookies}** Cookies \"\n f\"bekommen kannst. Du hast dich angemeldet und hast die Cookies bekommen\",\n f\"In der Schule hast du einen Kuchen gebacken und hast ihn mitgenommen. Als du ihn essen \"\n f\"wolltest hast du festgestellt das es **{cookies}** Cookies waren\",\n f\"Die Oma die vorne an der Kasse war hat **{cookies}** Cookies verloren. Du hast sie \"\n f\"aufgelesen und hast sie genommen\"]\n\n eventnotgood = [f\"Du hast Elon Musk nach Twitter+ gefragt, er hatte dich mit seinem Waschbeken beworfen \"\n f\"und dir sind **{cookies}** Cookies zerbrochen.\", f\"Du hast das neue Cyberpunk 2089 \"\n f\"gekauft allerdings ist es voller Bugs \"\n f\"und du ragest und zerbichst \"\n f\"**{cookies}** Cookies dabei.\",\n f\"Du hast im Aldilie eine Cookie Packung geklaut allerdings hat dich der Ladenbesitzer \"\n f\"erwischt. Er hat dich verklagt und du musstest **{cookies}** Cookies strafe zahlen.\",\n f\"Du bist auf den Bürgersteig hingefallen da du noch Cookies in deiner Hosentasche hattest \"\n f\"sind **{cookies}** Cookies rausgerollt und wurden von einem Auto überfahren\",\n f\"Du hast deine Cookies gezählt wie jeden morgen weil am Tag vorher {random.choice(user)} \"\n f\"da war. Dann hast du festgestellt das sie/er/es dir **{cookies}** hinterhältig geklaut \"\n f\"hat!\", f\"Du bist zu McDonalds gegangen und hast dir einen McFlurry geholt. Als du \"\n f\"zurückkamst war dein McFlurry weg und du hast **{cookies}** Cookies verloren.\",\n f\"{random.choice(user)} hat dir **{cookies}** Cookies geklaut. Allerdings ist er \"\n f\"gestollpert und alle sind zerbrochen\",\n f\"Etwas hat dir **{cookies}** Cookies geklaut. Du hast es nicht gesehen aber du hast \"\n f\"festgestellt das es ein Hund war. Du hast dich gefreut das es ein Hund war und hast \"\n f\"ihn weitergefüttert\",\n f\"Deine Mutter hat dir **{cookies}** Cookies geklaut. Du hast sie gefragt warum sie das \"\n f\"getan hat. Sie hat gesagt das sie es für dich getan hat weil sie dich liebt. Du hast \"\n f\"dir gedacht das sie es für sich selbst getan hat und hast sie verprügelt \"\n f\"(that escalated quickly)\",\n f\"Alle deine Cookies sind in der Waschmaschine gelandet. Du hast sie rausgeholt und alle \"\n f\"**{cookies}** Cookies waren kaputt\",\n f\"Im Internet hast du eine Seite gefunden in der behauptet wurde das du **{cookies}** \"\n f\"Cookies bekommen kannst. Du hast dich angemeldet und wurdest gescammt\",\n f\"Oben auf dem Dach hast du eine Kiste gefunden. In der Kiste waren **{cookies}** Cookies. \"\n f\"Du hast sie genommen und hast sie runtergeworfen. Sie sind alle kaputt gegangen\"]\n hodenkrebsembed = discord.Embed(title=f\"{ctx.author.name} HAT HODENKREBS!\", description=\"Du hast Absofort \"\n \"Hodenkrebs...\",\n color=discord.Color.red())\n\n eventgoodembed = discord.Embed(title=f\"{ctx.author.name} ist etwas **gutes** passiert...\",\n description=random.choice(eventgood), color=discord.Color.green())\n\n eventnotgoodembed = discord.Embed(title=f\"{ctx.author.name} ist etwas **schlechtes** passiert...\",\n description=random.choice(eventnotgood), color=discord.Color.red())\n if hodenkrebs == 1000:\n await ctx.respond(embed=hodenkrebsembed)\n await ctx.author.add_roles(hodenkrebsrole)\n return\n if goodordosent == 1:\n await ctx.respond(embed=eventgoodembed)\n await db.execute(\"UPDATE users SET cookies = cookies + ? WHERE user_id = ?\", (cookies, ctx.author.name))\n await db.commit()\n return\n await ctx.respond(embed=eventnotgoodembed)\n await db.execute(\"UPDATE users SET cookies = cookies - ? WHERE user_id = ?\", (cookies, ctx.author.name))\n await db.commit()\n\n @slash_command(description=\"Hacke andere User für Kekse hehe\")\n @commands.cooldown(1, 43200, commands.BucketType.user)\n async def hack(self, ctx, *, member: discord.Member):\n async with aiosqlite.connect(\"level.db\") as db:\n print(f\"{ctx.author} hat /hack gemacht\")\n guild: discord.Guild = self.bot.get_guild(724602228505313311)\n muterolle: discord.Role = guild.get_role(1043532505887809577)\n embed2 = discord.Embed(title=\"Fehlgeschlagen!\",\n description=f\"Der Hack auf **{member.name}** ist fehlgeschlagen. Du kannst es in 12h erneut probieren.\",\n color=discord.Color.red())\n async with db.execute(\"SELECT cookies FROM users WHERE user_id = ?\", (member.name,)) as cursor:\n result = await cursor.fetchone()\n if result == 0:\n ehre = discord.Embed(title=\"Der Nutzer hat keine Erhackbaren Kekse!\",\n description=f\"{member.name} hat keine Kekse dadurch hast du die Bank gehackt diese\"\n f\" hat dir die Polizei auf den Hals gejagt. Dadurch hast du **5** \"\n f\"Cookies Verloren!\")\n await ctx.respond(embed=ehre)\n await db.execute(\"UPDATE users SET cookies = cookies - 5 WHERE user_id = ?\", (ctx.author.name,))\n await db.commit()\n return\n if member is ctx.author:\n dumm = discord.Embed(title=\"Kann es sein das du dumm bist?\", description=\"Du hast auf Google nach den \"\n \"besten Hacker Tools gesucht \"\n \"und Virus.exe gefunden & \"\n \"heruntergeladen. Hast die \"\n \"datei allerdings selbst \"\n \"geöffnet. Dabei hast du \"\n \"**2** Cookies verloren.\",\n color=discord.Color.red())\n await ctx.respond(embed=dumm)\n await db.execute(\"UPDATE users SET cookies = cookies - 2 WHERE user_id = ?\", (ctx.author.name,))\n await db.commit()\n return\n opfer = member.name\n emails = [\"2000\", \"2001\", \"2002\", \"2003\", \"2004\", \"2005\", \"2006\", \"2007\", \"2008\", \"2009\", \"2010\", \"_2000\",\n \"_2001\",\n \"_2002\", \"_2003\", \"_2004\", \"_2005\", \"_2006\", \"_2007\", \"_2008\", \"_2009\", \"_2010\", \"müller\",\n \"_müller\",\n \"Müller\", \"_Müller\", \"schmidt\", \"_schmidt\", \"Schmidt\", \"_Schmidt\", \"schneider\", \"_schneider\",\n \"Schneider\",\n \"_Schneider\", \"fischer\", \"Fischer\", \"_fischer\", \"_Fischer\", \"Weber\", \"weber\", \"_weber\", \"_Werber\",\n \"Meyer\", \"meyer\", \"_Meyer\", \"_meyer\", \"Wagner\", \"wagner\", \"_Wagner\", \"_wagner\", \"becker\",\n \"Becker\",\n \"_becker\", \"_Becker\", \"Thiel\", \"thiel\", \"_thiel\", \"_Thiel\"]\n passwords = [\"hallo\", \"passwort\", \"hallo123\", \"schalke04\", \"passwort1\", \"qwertz\", \"arschl****\", \"schatz\",\n \"fi****\", \"password\", \"12345678\", \"123456789\", \"baseball\", \"footbal\", \"qwertzuiop\",\n \"1234567890\",\n \"superman\", \"1qwz2wsx\", \"trustno1\", \"jennifer\", \"sunshine\", \"iloveyou\", \"starwars\", \"computer\",\n \"michelle\", \"11111111\", \"princess\", \"987654321\", \"corvette\", \"1234qwer\", \"88888888\",\n \"q1w2e3r4t5\",\n \"internet\", \"samantha\", \"whatever\", \"maverick\", \"steelers\", \"mercedes\", \"123123123\",\n \"qwer1234\",\n \"hardcore\", \"midnight\", \"bigdaddy\", \"victoria\", \"cocacola\", \"marlboro\", \"asdfasdf\",\n \"jaordan32\",\n \"jonathan\"]\n cookies = random.randint(0, 10)\n fa = [\"an\", \"aus\"]\n anbieter = [\"PornHub\", \"Microsoft\", \"Riotgames\", \"Ubisoft\", \"Discord\", \"Rewe\", \"Lidl\", \"Netto\", \"Steam\",\n \"Epic Games\", \"LeonMT1\"]\n email = [\"@gmail.com\", \"@outlook.de\", \"@yahoo.com\", \"@gmx.de\", \"@t-online.de\", \"@web.de\"]\n\n await ctx.respond(\"Hack wird gestartet\")\n message = await ctx.send(f\"{member.name} wird jetzt gehackt...\")\n await asyncio.sleep(2)\n await message.edit(content=f\"[▘]Keks Konto login wurde gefunden... (2fa {random.choice(fa)})\")\n await asyncio.sleep(3)\n await message.edit(content=f\"\"\"[▖]\n Email: {member.name}{random.choice(emails)}{random.choice(email)}\n Password: {random.choice(passwords)}\"\"\")\n await asyncio.sleep(3)\n await message.edit(content=f\"[▝]Häufigste Überweisungs Anbieter: {random.choice(anbieter)}\")\n await asyncio.sleep(3)\n await message.edit(content=f\"[▘]Lädt...\")\n await asyncio.sleep(3)\n await message.edit(content=f\"[▖]Sucht IP...\")\n await asyncio.sleep(3)\n await message.edit(content=f\"[▝] IP: 49.124.134\")\n await asyncio.sleep(3)\n await message.edit(content=f\"Fertig mit dem Hack auf {member.mention}\")\n await asyncio.sleep(2)\n await db.execute(\"UPDATE users SET cookies = cookies + ? WHERE user_id = ?\", (cookies, ctx.author.name))\n await db.execute(\"UPDATE users SET cookies = cookies - ? WHERE user_id = ?\", (cookies, opfer))\n await db.commit()\n if cookies == 0:\n await message.edit(content=None, embed=embed2)\n return\n embed = discord.Embed(title=\"Erfolgreich abgeschloßen!\", description=f\"\"\"\nDu hast von **{member.mention}** **{cookies}** Cookies erhackt!\nEmail: {member.name}{random.choice(emails)}{random.choice(email)}\nPassword: {random.choice(passwords)}\n2FA Status: {random.choice(fa)}\nHäufigeste Überweisung an: {random.choice(anbieter)}\nKontostand: {result[0]} Cookies\"\"\", color=discord.Color.green())\n embed.set_thumbnail(url=ctx.author.display_avatar.url)\n await message.edit(embed=embed)\n if muterolle not in member.roles:\n await member.send(f\"\"\"Du wurdest von {ctx.author} gehackt, er hat dir {cookies} Cookies geklaut xD.\nDu kannst auch alle 12h jemand anderen Hacken und davon Cookies bekommen!\"\"\")\n\n\ndef setup(bot):\n bot.add_cog(FunCommands(bot))\n","repo_name":"LeonMT1/CookieBot-old-","sub_path":"cogs/funcommands.py","file_name":"funcommands.py","file_ext":"py","file_size_in_byte":18150,"program_lang":"python","lang":"de","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"21677851441","text":"# -*- coding: utf-8 -*-\nimport sys\nfrom django.http import HttpResponse, Http404\nfrom django.views.generic.list import ListView\nfrom django.shortcuts import render\nfrom django.urls import reverse\nimport json\nimport urllib\nimport urllib2\nimport re\nimport requests\nfrom urllib2 import urlparse\nimport html\n\n\n# 首页\ndef index(request):\n return render(request, 'index.html')\n\n\ndef index1(request):\n if request.method == 'GET':\n return render(request, 'index1.html')\n else:\n url_name = request.POST['url_name']\n mydict = {\"url_name\": url_name}\n return HttpResponse(\n json.dumps(mydict),\n content_type=\"application/json\"\n )\n\n# 显示爬取页面\ndef page_item(request):\n url_name = request.POST['url_name']\n load_html = requests.get(url_name)\n load_html.encoding = 'utf-8'\n content = load_html.text\n # 标题\n title = re.findall(r'(.*?) ', content)\n title = title[0]\n # 头部\n pattern_head = re.compile('.*?', re.S)\n head_content = re.findall(pattern_head, load_html.text)\n head = head_content[0].replace('', '') # 去掉head\n head = head.replace('', '')\n pattern_head_href = re.compile('href=\\\"css.*?\\\"', re.S) # 匹配没有http的css\n head_href = re.findall(pattern_head_href, head)\n head_href_arr = []\n if head_href != '':\n for h_href in head_href:\n h_href = h_href.replace('href=\"', '')\n h_href = h_href.replace('\"', '')\n head = head .replace(h_href,'')\n head_href_arr.append(h_href)\n pattern_sc_head = re.compile('', re.S)\n sc_head = re.findall(pattern_sc_head, head) # 头部 除了js文件\n src_head_arr1 = [] # 引入的js文件\n src_head_arr2 = [] # js代码\n for s_head in sc_head:\n pattern_src = re.compile('[a-z]+:\\/\\/[a-zA-Z0-9_\\-\\/.%]+', re.L) # 匹配js\n src = re.findall(pattern_src, s_head)\n if len(src) == 1:\n src_head_arr1.append(src[0]) # 保存到一个数组 js文件\n pattern_sc_ = re.compile('', re.S) # 匹配script开头\n s_ = re.findall(pattern_sc_, s_head)\n s_head_ = s_head.replace(s_[0], '')\n s_head_ = s_head_.replace('', '')\n s_head_ = s_head_.replace('\\r\\n', '')\n if s_head_ != '':\n src_head_arr2.append(s_head_) # 保存到一个数组 js代码\n head = head.replace(s_head, '')\n\n # body\n pattern_body = re.compile('', re.S)\n pattern_body1 = re.compile('', re.S)\n body_content = re.findall(pattern_body, load_html.text)\n b = re.findall(pattern_body1, load_html.text)\n body = body_content[0].replace(b[0], '')\n body = body.replace('', '')\n pattern_script1 = re.compile('', re.S)\n script1 = re.findall(pattern_script1, body)\n for sc1 in script1:\n body = body.replace(sc1, '')\n pattern_script2 = re.compile('', re.S)\n script2 = re.findall(pattern_script2, body)\n for sc2 in script2:\n body = body.replace(sc2, '')\n # 所有里面的元素\n element = re.findall(r'<([a-z]+)', body)\n element_arr = []\n for e in element:\n element_arr.append(e)\n\n # 根据元素获取里面所有所有的class及对应的链接\n con = re.findall(r'<(.*?)>', body)\n classes_arr = []\n urls_arr = []\n for co in con:\n classes = re.findall(r'class=\"(.*?)\"', co)\n if len(classes) != 0:\n classes_arr.append(classes[0])\n else:\n classes_arr.append('')\n url = re.findall(r'([a-z]+:\\/\\/[a-zA-Z0-9_\\-\\/.%]+)', co)\n if len(url) != 0:\n urls_arr.append(url[0])\n else:\n urls_arr.append('')\n\n dic = {\"url\": url_name, \"title_name\": title, \"head\": head, \"head_href\": head_href_arr, \"src_head1\": src_head_arr1,\n \"src_head2\": src_head_arr2, \"body\": body,\"element\":element_arr,\"classes\": classes_arr,\"urls\":urls_arr}\n return render(request, 'page_item.html', {'dic':json.dumps(dic)})\n # return render(request, 'page_item.html', dic)\n\n\n\n\ndef test(request):\n url_name = request.POST['url_name']\n # print url_name\n # exit()\n dic = {\"url_name\": url_name}\n return render(request, 'test.html', dic)\n\n# 首页视图,继承自ListVIew\nclass IndexView(ListView):\n # template_name属性用于指定使用哪个模板进行渲染\n template_name = \"home/index1.html\"\n # context_object_name属性用于给上下文变量取名(在模板中使用该名字)\n context_object_name = \"home_index\"\n","repo_name":"littlemesie/spider","sub_path":"home/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":4632,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"8681345094","text":"'''\nCreated on Dec 27, 2020\n\n@author: Q\n\nrotate the four elements in (left,up),(up,right),(right,bottom),(bottom,left) parts each time\nthe indices relationship: m[i][j] -> m[j][N-1-i]\n'''\nclass Solution(object):\n def rotate(self, matrix):\n \"\"\"\n :type matrix: List[List[int]]\n :rtype: None Do not return anything, modify matrix in-place instead.\n \"\"\"\n N = len(matrix)\n for i in range(0, N//2 + N%2):\n for j in range(0, N//2): \n r, c = i, j\n tmp = matrix[r][c]\n for _ in range(4): \n tmp, matrix[c][N-1-r] = matrix[c][N-1-r], tmp \n r, c = c, N-1-r\n \nmsol = Solution()\nmatrix = [[1,2,3],[4,5,6],[7,8,9]]\nares = msol.rotate(matrix)\nprint(matrix) ","repo_name":"chyylq/leetcode","sub_path":"0048_rotate_image/sol0048.py","file_name":"sol0048.py","file_ext":"py","file_size_in_byte":882,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"23245750284","text":"\"\"\"Platform for text\"\"\"\nfrom __future__ import annotations\nfrom pathlib import Path\nfrom homeassistant.components.text import TextEntity\nfrom homeassistant.helpers.entity_platform import AddEntitiesCallback\nfrom homeassistant.core import HomeAssistant\nfrom homeassistant.const import ATTR_IDENTIFIERS, ATTR_MANUFACTURER, ATTR_NAME\nfrom homeassistant.helpers.update_coordinator import (\n CoordinatorEntity,\n DataUpdateCoordinator,\n)\nfrom .const import DOMAIN, DEVICE_NAME, CONF_FILE\nimport json\n\n\nasync def async_setup_entry(\n hass: HomeAssistant, config_entry, async_add_entities: AddEntitiesCallback\n) -> None:\n coordinator = hass.data[DOMAIN][config_entry.entry_id]\n tunnor = coordinator.tunnor\n\n # Skapar en dict på vilka tunnor som finns, men skippar last_update\n entities = []\n for tunna, _ in tunnor.items():\n if tunna == \"last_update\":\n continue\n entities.append(Texter(hass, coordinator, tunna))\n\n async_add_entities(entities)\n\n\nclass Texter(CoordinatorEntity, TextEntity):\n \"\"\"Klass för text-fälten som skapar smeknamn för NextPickup\"\"\"\n\n def __init__(\n self, hass: HomeAssistant, coordinator: DataUpdateCoordinator, name\n ) -> None:\n super().__init__(coordinator)\n self._name = name\n self._attr_unique_id = name\n self._hass = hass\n self._coordinator = coordinator\n\n self._attr_device_info = {\n ATTR_IDENTIFIERS: {(DOMAIN, DEVICE_NAME)},\n ATTR_NAME: DEVICE_NAME,\n ATTR_MANUFACTURER: \"@nightcbis\",\n }\n self._attr_has_entity_name = True\n\n smeknamn = self.readConfig()\n\n self._coordinator.smeknamn[self._name] = smeknamn\n self._attr_native_value = smeknamn\n\n def writeConfig(self, smeknamn) -> None:\n \"\"\"Sparar ner smeknamnet i config-filen samt i coordinatorn\"\"\"\n\n # Skapar filen om den inte finns\n path = self._hass.config.path(CONF_FILE)\n configFile = Path(path)\n configFile.touch(exist_ok=True)\n\n # Öppnar och försöker läsa den som json. Om inte så skapar vi en tom data\n with open(path, \"r\", encoding=\"utf-8\") as configFile:\n try:\n data = json.loads(configFile.read())\n except:\n data = {}\n\n # Sparar ner i både data(till filen) och i coordinator för realtid.\n data[self._name] = smeknamn\n self._coordinator.smeknamn[self._name] = smeknamn\n\n with open(path, \"w\", encoding=\"utf-8\") as configFile:\n configFile.write(json.dumps(data, indent=4))\n\n def readConfig(self, tunna=\"NAME\"):\n \"\"\"Läser in smeknamn på en tunna och om ingen tunna defineras så används self._name\"\"\"\n # Om ingen tunna defineras så kör vi mot self.\n if tunna == \"NAME\":\n tunna = self._name\n\n # Skapar filen om den inte finns\n path = self._hass.config.path(CONF_FILE)\n configFile = Path(path)\n configFile.touch(exist_ok=True)\n\n # Laddar in filen och kollar så den är json. Om inte så skapar vi en tom data\n with open(path, \"r\", encoding=\"utf-8\") as configFile:\n try:\n data = json.loads(configFile.read())\n except:\n data = {}\n\n # Om inget smeknamn finns så sparar vi ner tunnans namn som smeknamn.\n try:\n smeknamn = data[tunna]\n except:\n self.writeConfig(tunna)\n smeknamn = tunna\n\n return smeknamn\n\n def update(self) -> None:\n \"\"\"Används ej\"\"\"\n\n async def async_set_value(self, value: str) -> None:\n \"\"\"Den här funktionen körs när man skriver i nytt smeknamn i ui't\"\"\"\n if value == \"\":\n value = self._name\n self._attr_native_value = value\n self.writeConfig(value)\n self.async_schedule_update_ha_state(force_refresh=False)\n await self._coordinator.async_request_refresh()\n\n @property\n def native_value(self) -> str | None:\n return self._attr_native_value\n\n @property\n def name(self) -> str | None:\n return self._name\n\n @property\n def unique_id(self) -> str | None:\n return super().unique_id\n\n @property\n def state(self) -> str | None:\n return self._attr_native_value\n\n @property\n def device_class(self) -> str | None:\n return super().device_class\n","repo_name":"nightcbis/vmeab","sub_path":"custom_components/vmeab/text.py","file_name":"text.py","file_ext":"py","file_size_in_byte":4388,"program_lang":"python","lang":"sv","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27709022434","text":"from pydantic.errors import DataclassTypeError\nfrom keep_alive import keep_alive\nfrom typing import Optional, List, Dict, Union\nfrom pydantic import BaseModel as DataClass\nimport discord\nimport datetime\nimport os\n\n# Gif libraries.\nimport random\nimport json\nimport requests\n\n\nclient = discord.Client()\ndiscord_key = os.getenv(\"DISCORD_TOKEN\")\n\n\nclass SpamUser(DataClass):\n user_name: str\n discriminator: str\n search_terms: List[str]\n last_mssg: Optional[datetime.datetime]\n\n\nclass UsersToSpam(DataClass):\n users: List[SpamUser]\n\n def get_user_by_discriminator(self, discriminator: str) -> Union[SpamUser, None]:\n \"\"\"Retrieves the user whose discriminator matches the one given.\n\n Args:\n discriminator (str): Discriminator to be found.\n\n Returns:\n Union[SpamUser, None]: Associated user to the discriminator or None if not found.\n \"\"\"\n return next(\n (\n spam_user\n for spam_user in users_to_spam.users\n if spam_user.discriminator == discriminator\n ),\n None,\n )\n\n\ndefault_starttime = datetime.datetime(2021, 1, 1)\ndefault_goodboy_until = datetime.timedelta(\n seconds=300\n) # 5 minutes of silence in this channel\nmuted_channels: Dict[str, datetime.datetime] = {}\n\n\ndef get_users_to_spam() -> List[SpamUser]:\n \"\"\"Retrieves the list of users that will be spammed.\n\n Returns:\n List[SpamUser]: List of users that can be spammed.\n \"\"\"\n\n def get_spam_user(name: str, terms: List[str]) -> SpamUser:\n return SpamUser(\n user_name=name,\n discriminator=os.getenv(f\"{name}_discriminator\"),\n search_terms=terms,\n last_mssg=default_starttime,\n )\n\n return [\n get_spam_user(\"gabri\", [\"coffee\", \"spaghetti\", \"pasta\", \"pineapple pizza\"]),\n get_spam_user(\"tim\", [\"god\", \"fresh-prince\", \"he-man\", \"all-mighty\"]),\n get_spam_user(\"dennis\", [\"matrix\", \"unicorn\", \"dungeon\", \"spending-money\"]),\n get_spam_user(\n \"maarten\", [\"matrix\", \"frog\", \"breakingbad\", \"dexters laboratory\"]\n ),\n get_spam_user(\"prisca\", [\"cat\", \"matrix\"]),\n get_spam_user(\"robin\", [\"baby\", \"fire\", \"spongebob\", \"matrix\"]),\n ]\n\n\nusers_to_spam = UsersToSpam(users=get_users_to_spam())\n\n\ndef find_gif(search_term: str) -> str:\n # set the apikey and limit\n tenorgif_key = os.getenv(\"TENOR_TOKEN\")\n lmt = 40\n\n # get the top \"lmt\" GIFs for the search term\n r = requests.get(\n f\"https://api.tenor.com/v1/search?q={search_term}&key={tenorgif_key}&limit={lmt}\"\n )\n\n if r.status_code == 200:\n # load the GIFs using the urls for the smaller GIF sizes\n results = json.loads(r.content)[\"results\"]\n selected_gif = results[random.randint(0, len(results) - 1)]\n return selected_gif[\"url\"]\n return \"\"\n\n\n@client.event\nasync def on_ready():\n print(\"We have logged in as {0.user}\".format(client))\n\n\nasync def on_time_to_spam(message):\n last_time = max(spam_user.last_mssg for spam_user in users_to_spam.users)\n user_to_spam: SpamUser = users_to_spam.get_user_by_discriminator(\n message.author.discriminator\n )\n if user_to_spam is None:\n print(\n f\"No user found to spam with discriminator {message.author.discriminator}\"\n )\n return\n\n now_time = datetime.datetime.now()\n if (now_time - last_time) > datetime.timedelta(minutes=60):\n search_idx = random.randint(0, len(user_to_spam.search_terms) - 1)\n gif = find_gif(user_to_spam.search_terms[search_idx])\n default_mssg = f\"Ey {message.author.mention} bring me coffee.\"\n # Update timestamp.\n user_to_spam.last_mssg = now_time\n await message.channel.send(default_mssg)\n if gif:\n await message.channel.send(gif)\n\n\nasync def on_reply_to_filter_mssg(message, filter_mssgs: List[str], find_str: str):\n mssg_contnt = message.content.lower()\n if any(mssg in mssg_contnt for mssg in filter_mssgs):\n gif = find_gif(find_str)\n if gif:\n await message.channel.send(gif)\n else:\n await message.channel.send(\n f\"{find_str.capitalize()}! (Couldn't find gifs soz).\"\n )\n\n\n@client.event\nasync def on_message(message):\n\n mute_keywords = [\"/badbot\", \"/badboy\", \"/mutebot\"]\n unmute_keywords = [\"/goodbot\", \"/goodboy\", \"/unmutebot\"]\n\n if message.author == client.user:\n # Avoid infinite loop!\n return\n mssg_chn = message.channel\n if isinstance(mssg_chn, discord.DMChannel):\n # Don't talk to strangers :(\n return\n if (\n mssg_chn.category.name.lower() == \"fpt internal\"\n and mssg_chn.name.lower() == \"general\"\n ):\n await on_time_to_spam(message)\n\n def mute_until() -> datetime.datetime:\n return datetime.datetime.now() + default_goodboy_until\n\n if message.content.lower() in mute_keywords:\n muted_channels[mssg_chn] = mute_until()\n await message.channel.send(\n \"Sorry, I'll be a good bot for a while :cry: :innocent:\"\n )\n return\n if message.content.lower() in unmute_keywords:\n muted_channels.pop(message.channel, None) # Remove from list if it was muted.\n await message.channel.send(\"Thank you good lord.\")\n return\n\n mc = muted_channels.get(message.channel, None)\n if mc is not None:\n if mc > datetime.datetime.now():\n # Channel is still muted.\n return\n elif mc <= datetime.datetime.now():\n await message.channel.send(\"I was a good boy for a while now.\")\n muted_channels.pop(message.channel)\n\n await on_reply_to_filter_mssg(\n message,\n [\"hail hydra\", \"heil hydra\", \"dhydro\", \"dhydra\", \"d-hydro\", \"d-hydra\",],\n \"hail-hydra\",\n )\n await on_reply_to_filter_mssg(\n message,\n [\"good morning\", \"goodmorning\", \"goedemorgen\", \"buon giorno\",],\n \"good morning\",\n )\n\n\nkeep_alive()\nclient.run(discord_key)\n","repo_name":"Carsopre/FPT_DiscordBot","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":6063,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32187089701","text":"import sys\nimport resource\n\nif sys.platform == 'darwin':\n\t# darwin returns bytes\n\tdivisor = 1024.0*1024.0\nelse:\n\t# other OS (AFAIK) return a number of pages\n\tdivisor = 1024.0*1024.0/resource.getpagesize()\n\ndef usage (label='usage'):\n\tusage=resource.getrusage(resource.RUSAGE_SELF)\n\treturn '%s: usertime=%s systime=%s mem=%s mb' % (label,usage.ru_utime,usage.ru_stime,(usage.ru_maxrss/divisor))\n","repo_name":"sdn-ixp/sdx-pyretic","sub_path":"exabgp/lib/exabgp/util/usage.py","file_name":"usage.py","file_ext":"py","file_size_in_byte":394,"program_lang":"python","lang":"en","doc_type":"code","stars":40,"dataset":"github-code","pt":"86"}
+{"seq_id":"45588556657","text":"import json\n\nimport csv\n\n\nwith open(\"../data/guestDB.json\", newline=\"\") as jsonfile:\n comosbd = json.load(jsonfile)\n\nwith open(\"../data/excelExportGuestsInvite.csv\", \"w\") as csvfile:\n fieldnames = [\n \"rsvpCode\",\n \"firstname\",\n \"lastname\",\n \"plusOne:firstname\",\n \"plusOne:lastname\",\n ]\n writer = csv.DictWriter(csvfile, fieldnames=fieldnames)\n\n writer.writeheader()\n for line in comosbd:\n tt = {\n \"rsvpCode\": line[\"rsvpCode\"],\n \"firstname\": line[\"firstname\"],\n \"lastname\": line[\"lastname\"],\n \"plusOne:firstname\": line[\"plusOne\"][0][\"firstname\"] if len(line[\"plusOne\"]) > 0 else \"\",\n \"plusOne:lastname\": line[\"plusOne\"][0][\"lastname\"] if len(line[\"plusOne\"]) > 0 else \"\",\n }\n print(tt)\n writer.writerow(tt)\n","repo_name":"MahrRah/wedding-homepage","sub_path":"scripts/excelExport-invites.py","file_name":"excelExport-invites.py","file_ext":"py","file_size_in_byte":847,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"35488916751","text":"import os\nimport tempfile\n\nimport dbtools\nimport drupaltools\nimport pantheon\nimport ygg\nfrom vars import *\n\nfrom fabric.api import *\n\n\nclass BuildTools(object):\n \"\"\" Generic Pantheon project installation helper functions.\n\n This is generally used as a base object, inherited by other project\n building classes (install, import, and restore). The child classes\n can use these methods directly or override/expand base processes.\n\n \"\"\"\n def __init__(self):\n \"\"\" Initialize generic project installation object & helper functions.\n project: the name of the project to be built.\n\n \"\"\"\n config = ygg.get_config()\n self.server = pantheon.PantheonServer()\n\n self.project = str(config.keys()[0])\n self.config = config[self.project]\n self.environments = set(self.config['environments'].keys())\n self.project_path = os.path.join(self.server.webroot, self.project)\n self.db_password = self.config\\\n ['environments']['live']['mysql']['db_password']\n self.version = None\n\n def bcfg2_project(self):\n local('bcfg2 -vqedb projects', capture=False)\n\n def remove_project(self):\n \"\"\" Remove a project and all related files/configs from the server.\n\n \"\"\"\n locations = list()\n\n # Git repository\n locations.append(os.path.join('/var/git/projects', self.project))\n # Project webroot\n locations.append(self.project_path)\n\n # TODO: We also need to remove the following:\n # Solr Index\n # Apache vhost\n # Jenkins cron\n # Drush alias\n # Databases\n\n for location in locations:\n if os.path.exists(location):\n local('rm -rf %s' % location)\n\n def setup_project_repo(self, upstream_repo=None):\n \"\"\" Create a new project repo, and download pantheon/drupal core.\n\n \"\"\"\n project_repo = os.path.join('/var/git/projects', self.project)\n dev_branch = None\n\n # If this is a development server check MERCURY_BRANCH for source.\n if MERCURY_BRANCH != 'master':\n dev_branch = MERCURY_BRANCH\n\n # For imports, no upstream is set. But self.version is known.\n if upstream_repo is None:\n # Is this a development branch?\n if dev_branch:\n upstream_repo = 'git://github.com/pantheon-systems/' + \\\n '%s-%s.git' % (self.version, dev_branch)\n else:\n upstream_repo = 'git://git.getpantheon.com/pantheon/%s.git' %(\n self.version)\n else:\n # If this is a development server, make sure the upstream has\n # not been changed to some other source before modifying. Mostly\n # because we make hackish assumptions about determining version\n # and destination.\n if dev_branch and upstream_repo.startswith(\n 'git://git.getpantheon.com'):\n self.version = upstream_repo[-5]\n upstream_repo = 'git://github.com/pantheon-systems/' + \\\n '%s-%s.git' % (self.version, dev_branch)\n\n # Get Pantheon core\n local('git clone --mirror %s %s' % (upstream_repo, project_repo))\n\n with cd(project_repo):\n # Repo config\n local('git config core.sharedRepository group')\n # Group write.\n local('chmod -R g+w .')\n\n # post-receive-hook\n post_receive_hook = os.path.join(project_repo,\n 'hooks/post-receive')\n pantheon.copy_template('git.hook.post-receive', post_receive_hook)\n local('chmod +x %s' % post_receive_hook)\n\n def setup_project_branch(self):\n \"\"\" Create a branch of the project.\n\n \"\"\"\n project_repo = os.path.join('/var/git/projects', self.project)\n with cd(project_repo):\n local('git branch %s' % self.project)\n\n def setup_working_dir(self, working_dir):\n \"\"\" Clone a project to a working directory for processing.\n working_dir: temp directory for project processing (import/restore)\n\n \"\"\"\n local('git clone -l /var/git/projects/%s -b %s %s' % (self.project,\n self.project,\n working_dir))\n\n def setup_database(self, environment, password, db_dump=None, onramp=False):\n \"\"\" Create a new database based on project_environment, using password.\n environment: the environment name (dev/test/live) in which to create db\n password: password to identify user (username is same as project name).\n db_dump (optional): full path to database dump to import into db.\n onramp (optional): bool. perform additional prep during import process.\n\n \"\"\"\n username = self.config['environments'][environment]['mysql']['db_username']\n database = self.config['environments'][environment]['mysql']['db_name']\n password = self.config['environments'][environment]['mysql']['db_password']\n\n dbtools.create_database(database)\n dbtools.set_database_grants(database, username, password)\n if db_dump:\n dbtools.import_db_dump(db_dump, database)\n if onramp:\n dbtools.clear_cache_tables(database)\n dbtools.convert_to_innodb(database)\n\n def setup_settings_file(self, site_dir):\n \"\"\" Setup pantheon.settings.php and settings.php.\n site_dir: path to the site directory. E.g. /var/www/sites/default\n\n \"\"\"\n settings_file = os.path.join(site_dir, 'settings.php')\n settings_default = os.path.join(site_dir, 'default.settings.php')\n settings_pantheon = 'pantheon%s.settings.php' % self.version\n os.path.join(self.project_path, settings_pantheon)\n\n # Stomp on changes to default.settings.php - no need to conflict here.\n local('git --git-dir=/var/git/projects/%s cat-file ' % self.project + \\\n 'blob refs/heads/master:sites/default/default.settings.php > %s' % (\n settings_default))\n # Make sure settings.php exists.\n if not os.path.isfile(settings_file):\n local('cp %s %s' % (settings_default, settings_file))\n\n # Comment out $base_url entries.\n local(\"sed -i 's/^[^#|*]*\\$base_url/# $base_url/' %s\" % settings_file)\n\n # Create pantheon.settings.php\n if not os.path.isfile(os.path.join(self.project_path,\n settings_pantheon)):\n self.bcfg2_project()\n\n # Import needs a valid settings file in the tmp directory\n if hasattr(self, 'working_dir'):\n tmp_file_dir = os.path.abspath(os.path.join(self.working_dir, '..'))\n local(\"cp %s %s\" %\n (os.path.join(self.project_path, settings_pantheon),\n tmp_file_dir))\n vhost_file = '/etc/apache2/sites-available/%s_dev' % self.project\n local(\"sed -i -e 's|($vhost_file)|(\\\"%s\\\")|' %s/%s\" %\n (vhost_file, tmp_file_dir, settings_pantheon))\n\n # Include pantheon.settings.php at the end of settings.php\n with open(os.path.join(site_dir, 'settings.php'), 'a') as f:\n f.write(\"\"\"\n/* Added by Pantheon */\nif (file_exists('../pantheon%s.settings.php')) {\n include_once '../pantheon%s.settings.php';\n}\n\"\"\" % (self.version, self.version))\n\n def setup_drush_alias(self):\n \"\"\" Create drush aliases for each environment in a project.\n\n \"\"\"\n for env in self.environments:\n root = os.path.join(self.server.webroot, self.project, env)\n drush_dict = {'project': self.project,\n 'environment': env,\n 'root': root}\n self.server.create_drush_alias(drush_dict)\n\n def setup_solr_index(self):\n \"\"\" Create solr index for each environment in a project.\n\n \"\"\"\n for env in self.environments:\n self.server.create_solr_index(self.project, env, self.version)\n\n def setup_drupal_cron(self):\n \"\"\" Create drupal cron jobs in jenkins for each environment.\n\n \"\"\"\n for env in self.environments:\n self.server.create_drupal_cron(self.project, env)\n\n def setup_environments(self, handler=None, working_dir=None):\n \"\"\" Send code/data/files from processing to destination (dev/test/live)\n All import and restore processing is done in temp directories. Once\n processing is complete, it is pushed out to the final destination.\n\n handler: 'import' or None. If import, complete extra import processing.\n working_dir: If handler is import, also needs full path to working_dir.\n\n \"\"\"\n\n # During import, only run updates/import processes a single database.\n # Once complete, we import this 'final' database into each environment.\n if handler == 'import':\n tempdir = tempfile.mkdtemp()\n dump_file = dbtools.export_data(self, 'dev', tempdir)\n\n for env in self.environments:\n # Code\n destination = os.path.join(self.project_path, env)\n local('git clone -l /var/git/projects/%s -b %s %s' % (self.project,\n self.project,\n destination))\n # On import setup environment data and files.\n if handler == 'import':\n # Data (already exists in 'dev' - import into other envs)\n if env != 'dev':\n dbtools.import_data(self, env, dump_file)\n\n # Files\n source = os.path.join(working_dir, 'sites/default/files')\n file_dir = os.path.join(self.project_path, env,\n 'sites/default')\n local('rsync -av %s %s' % (source, file_dir))\n\n # Cleanup\n if handler == 'import':\n local('rm -rf %s' % tempdir)\n\n def push_to_repo(self, tag):\n \"\"\" Commit changes in working directory and push to central repo.\n\n \"\"\"\n with cd(self.working_dir):\n local('git checkout %s' % self.project)\n # Set up .gitignore\n pantheon.copy_template('git.ignore', os.path.join(self.working_dir, '.gitignore'))\n local('git add -A .')\n local(\"git commit --author=\\\"%s\\\" -m 'Initialize Project: %s'\" % (\n self.author, self.project))\n local('git tag %s.%s' % (self.project, tag))\n local('git push')\n local('git push --tags')\n\n def setup_permissions(self, handler, environment=None):\n \"\"\" Set permissions on project directory, settings.php, and files dir.\n\n handler: one of: 'import','restore','update','install'. How the\n permissions are set is determined by the handler.\n\n environment: In most cases this is left to None, as we will be\n processing all environments using self.environments. However,\n if handler='update' we need to know the specific environment for which\n the update is being run. We do this so we are not forcing permissions\n updates on files that have not changed.\n\n \"\"\"\n # Get owner\n #TODO: Allow non-getpantheon users to set a default user.\n if os.path.exists(\"/etc/pantheon/ldapgroup\"):\n owner = self.server.get_ldap_group()\n else:\n owner = self.server.web_group\n\n # During code updates, we only make changes in one environment.\n # Otherwise, we are modifying all environments.\n environments = list()\n if handler == 'update':\n #Single environment during update.\n environments.append(environment)\n else:\n #All environments for install/import/restore.\n environments = self.environments\n\n\n \"\"\"\n Project directory and sub files/directories\n\n \"\"\"\n\n # installs / imports / restores.\n if handler in ['install', 'import', 'restore']:\n # setup shared repo config and set gid\n for env in environments:\n with cd(os.path.join(self.server.webroot, self.project, env)):\n local('git config core.sharedRepository group')\n with cd(self.server.webroot):\n local('chown -R %s:%s %s' % (owner, owner, self.project))\n\n\n \"\"\"\n Files directory and sub files/directories\n\n \"\"\"\n\n # For installs, just set 770 on files dir.\n if handler == 'install':\n for env in environments:\n site_dir = os.path.join(self.project_path,\n env,\n 'sites/default')\n with cd(site_dir):\n local('chmod 770 files')\n local('chown %s:%s files' % (self.server.web_group,\n self.server.web_group))\n\n # For imports or restores: 770 on files dir (and subdirs). 660 on files\n elif handler in ['import', 'restore']:\n for env in environments:\n file_dir = os.path.join(self.project_path, env,\n 'sites/default/files')\n with cd(file_dir):\n local(\"chmod 770 .\")\n # All sub-files\n local(\"find . -type d -exec find '{}' -type f \\; | \\\n while read FILE; do chmod 660 \\\"$FILE\\\"; done\")\n # All sub-directories\n local(\"find . -type d -exec find '{}' -type d \\; | \\\n while read DIR; do chmod 770 \\\"$DIR\\\"; done\")\n # Apache should own files/*\n local(\"chown -R %s:%s .\" % (self.server.web_group,\n self.server.web_group))\n\n # For updates, set apache as owner of files dir.\n elif handler == 'update':\n site_dir = os.path.join(self.project_path,\n environments[0],\n 'sites/default')\n with cd(site_dir):\n local('chown %s:%s files' % (self.server.web_group,\n self.server.web_group))\n\n\n \"\"\"\n settings.php & pantheon.settings.php\n\n \"\"\"\n\n #TODO: We could split this up based on handler, but changing perms on\n # two files is fast. Ignoring for now, and treating all the same.\n for env in environments:\n if pantheon.is_drupal_installed(self, env):\n # Drupal installed, Apache does not need to own settings.php\n settings_perms = '440'\n settings_owner = owner\n settings_group = self.server.web_group\n else:\n # Drupal is NOT installed. Apache must own settings.php\n settings_perms = '660'\n settings_owner = self.server.web_group\n settings_group = self.server.web_group\n\n site_dir = os.path.join(self.project_path, env, 'sites/default')\n with cd(site_dir):\n # settings.php\n local('chmod %s settings.php' % settings_perms)\n local('chown %s:%s settings.php' % (settings_owner,\n settings_group))\n # TODO: New sites will not have a pantheon.settings.php in their\n # repos. However, existing backups will, and if the settings\n # file exists, we need it to have correct permissions.\n if os.path.exists(os.path.join(site_dir,\n 'pantheon.settings.php')):\n local('chmod 440 pantheon.settings.php')\n local('chown %s:%s pantheon.settings.php' % (owner,\n settings_group))\n if not self.version:\n self.version = drupaltools.get_drupal_version('%s/dev' %\n self.project_path)[0]\n with cd(self.project_path):\n # pantheon.settings.php\n local('chmod 440 pantheon%s.settings.php' % self.version)\n local('chown %s:%s pantheon%s.settings.php' % (owner,\n settings_group,\n self.version))\n\n","repo_name":"pantheon-deprecated/mercury","sub_path":"fab/pantheon/project.py","file_name":"project.py","file_ext":"py","file_size_in_byte":16842,"program_lang":"python","lang":"en","doc_type":"code","stars":75,"dataset":"github-code","pt":"86"}
+{"seq_id":"29314489751","text":"from aplicacion.config.mysqlconnection import connectToMySQL\n\nclass Ninja:\n def __init__(self,data):\n self.id = data['id']\n self.first_name = data['first_name']\n self.last_name = data['last_name']\n self.age = data['age']\n self.dojo_id= data['dojo_id']\n self.created_at = data['created_at']\n self.updated_at = data['updated_at']\n\n @classmethod\n def crearninja(cls,data):\n consulta = \"\"\"INSERT INTO ninjas (first_name, last_name, age, dojo_id) VALUES (%(first_name)s, %(last_name)s, %(age)s, %(dojo)s);\"\"\"\n resultado = connectToMySQL(\"schema_dojos_y_ninjas\").query_db(consulta,data)\n return resultado\n\n @classmethod\n def obtener_un_ninja(cls,data):\n consulta = \"SELECT * FROM ninjas WHERE id= %(id)s\"\n resultado = connectToMySQL(\"schema_dojos_y_ninjas\").query_db(consulta,data)\n #esto va a dar una lista CON UN SOLO DICCIONARIO, por eso, el indice 0 se puede convertir facilmente así en objeto. Arriba como era una lista de VARIOS diccionarios se hace un for.\n return cls(resultado[0])\n\n","repo_name":"carolinaorellana/dojos_y_ninjas","sub_path":"aplicacion/models/ninja.py","file_name":"ninja.py","file_ext":"py","file_size_in_byte":1099,"program_lang":"python","lang":"es","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5936006528","text":"#!/usr/bin/env python3\n'''Vocabulary: copied from StatisticVocabulary.java '''\nimport os\n''' input ontology'''\nNUMBER_OF_TBOX_AXIOMS = \"Statistic: Number_of_TBox_Axioms = \"\nNUMBER_OF_INPUT_CONCEPTASSERTIONS = \"Statistic: Number_of_input_concept_assertions = \"\nNUMBER_OF_INPUT_ROLEASSERTIONS = \"Statistic: Number_of_input_role_assertions = \"\nNUMBER_OF_INPUT_ASSERTIONS = \"Statistic: Number_of_input_concept_and_role_assertions = \"\n\n'''signature'''\nNUMBER_OF_INPUT_INDIVIDUALS = \"Statistic: Number_of_input_individuals = \"\nNUMBER_OF_INPUT_CONCEPTNAMES = \"Statistic: Number_of_input_concept_names = \"\nNUMBER_OF_INPUT_ROLENAMES = \"Statistic: Number_of_input_role_names = \"\n\n'''materialization'''\nNUMBER_OF_MATERIALIZED_CONCEPTASSERTIONS = \"Statistic: Number_of_materialized_concept_assertions = \"\nNUMBER_OF_MATERIALIZED_ROLEASSERTIONS = \"Statistic: Number_of_materialized_role_assertions = \"\nNUMBER_OF_MATERIALIZED_ASSERTIONS = \"Statistic: Number_of_materialized_concept_and_role_assertions = \"\n'''abstraction'''\nNUMBER_OF_TYPES = \"Statistic: Number_of_types = \"\nNUMBER_OF_X = \"Statistic: Number_of_x = \"\nNUMBER_OF_U = \"Statistic: Number_of_u = \"\nNUMBER_OF_YZ = \"Statistic: Number_of_yz = \"\nNUMBER_OF_ABSTRACT_INDIVIDUALS = \"Statistic: Number_of_abstract_individuals_xuyz = \"\nCURRENT_LOOP = \"Statistic: Current_loop = \"\nNUMBER_OF_ABSTRACT_CONCEPTASSERTIONS = \"Statistic: Number_of_abstract_concept_assertions = \"\nNUMBER_OF_ABSTRACT_ROLEASSERTIONS = \"Statistic: Number_of_abstract_role_assertions = \"\nNUMBER_OF_ABSTRACT_ASSERTIONS = \"Statistic: Number_of_abstract_concept_and_role_assertions = \"\n\n''' global abstractionDict, will store a dictioinary of the form:\n , <#AbstractIndividuals,n2>, <#AbstractAssertions,n3>}}>'''\nabstractionDict = {}\n# global numberOfInputAssertions\nnumberOfInputAssertions = 1\nglobalLogFileName = \"\"\n''' given a log file, e.g. imdb.result.txt, this function will return a string of the following format:\nnameOfTheFile &number_of_refinement_steps \n& #types_in_1st_abstraction individual_1st_abstraction & #assertions_1st_abstraction & %size_1st_abstraction_wrt_originalAbox\n& #types_in_last_abstraction individual_last_abstraction & #assertions_last_abstraction & %size_last_abstraction_wrt_originalAbox\n\\\\\n'''\ndef readAbstractionInfoForOneOntology(logFilePath):\n global abstractionDict\n abstractionDict.clear()\n global globalLogFileName\n fileNameInPath = os.path.basename(logFilePath)\n splittedExentsion = os.path.splitext(fileNameInPath)\n globalLogFileName = splittedExentsion[0]\n \n startAbox = False\n # a dictionary for abstraction which map the first(1), second (2),... abstraction to its info,e.g. type, size,..., stored in a list\n\n with open(logFilePath, encoding='utf-8') as logFile:\n for aline in logFile:\n aline = str(aline.strip())\n '''print TBox information'''\n if \"Ontology file:\" in aline:\n print(aline)\n \n printInputInformation(aline, NUMBER_OF_INPUT_CONCEPTNAMES)\n printInputInformation(aline, NUMBER_OF_INPUT_ROLENAMES)\n printInputInformation(aline, NUMBER_OF_TBOX_AXIOMS)\n numberOfInputAssertionsReadFromThisLine = getInputOntologyInformation(aline, NUMBER_OF_INPUT_ASSERTIONS) \n \n if not (numberOfInputAssertionsReadFromThisLine is None):\n global numberOfInputAssertions\n numberOfInputAssertions = numberOfInputAssertionsReadFromThisLine\n \n '''print ABox information'''\n if \"ABoxList file\" in aline:\n print(\"\\n\" + aline + \"\\n\")\n startAbox = True\n if startAbox:\n printInputInformation(aline, NUMBER_OF_INPUT_INDIVIDUALS)\n printInputInformation(aline, NUMBER_OF_INPUT_CONCEPTASSERTIONS)\n printInputInformation(aline, NUMBER_OF_INPUT_ROLEASSERTIONS)\n printInputInformation(aline, NUMBER_OF_INPUT_ASSERTIONS)\n numberOfInputAssertionsReadFromThisLine = getInputOntologyInformation(aline, NUMBER_OF_INPUT_ASSERTIONS) \n \n if not (numberOfInputAssertionsReadFromThisLine is None):\n global numberOfInputAssertions\n numberOfInputAssertions = numberOfInputAssertionsReadFromThisLine\n \n getAbstractionInfoForOneLoop(aline, NUMBER_OF_TYPES)\n getAbstractionInfoForOneLoop(aline, NUMBER_OF_ABSTRACT_INDIVIDUALS)\n getAbstractionInfoForOneLoop(aline, NUMBER_OF_ABSTRACT_ASSERTIONS)\n \n return getAbstractionInfoForAllLoops()\n \n''' '''\ndef getAbstractionInfoForAllLoops():\n resultingString = \"\"\n keys = list(abstractionDict.keys())\n keys.sort()\n for key in keys:\n print(key + \"& \" + \"\\t\", end=\"\")\n print()\n \n '''print the ontology name'''\n print(globalLogFileName + \" \", end=\"\")\n resultingString += globalLogFileName + \" \"\n \n '''print number of refinements steps'''\n print(\"&$%d$ \" % (len(keys) - 1), end=\"\")\n resultingString += \"&$\" + str(len(keys) - 1) + \"$ \"\n \n '''print the first and the last abstracion information'''\n firstAndLastKeys = []\n firstAndLastKeys.append(keys[0])\n firstAndLastKeys.append(keys[-1])\n for key in firstAndLastKeys:\n value = abstractionDict[key]\n# print(\"&$\" + value[NUMBER_OF_TYPES] + \"$ \", end=\"\")\n resultingString += \"&$\" + value[NUMBER_OF_TYPES] + \"$ \"\n \n# print(\"&$\" + value[NUMBER_OF_ABSTRACT_INDIVIDUALS] + \"$ \", end=\"\")\n resultingString += \"&$\" + value[NUMBER_OF_ABSTRACT_INDIVIDUALS] + \"$ \"\n \n# print(\"&$\" + value[NUMBER_OF_ABSTRACT_ASSERTIONS] + \"$ \", end=\"\")\n resultingString += \"&$\" + value[NUMBER_OF_ABSTRACT_ASSERTIONS] + \"$ \"\n \n abstractionSizeCompression = float(value[NUMBER_OF_ABSTRACT_ASSERTIONS]) / float(numberOfInputAssertions) * 100\n abstractionSizeCompressionString = \"{0:.3f}\".format(abstractionSizeCompression)\n resultingString += \"&$\" + abstractionSizeCompressionString + \"$ \"\n# print(\"&$%.3f$ \" % (abstractionSizeCompression), end=\"\")\n \n# print(\"\\\\\\\\\")\n resultingString += \"\\\\\\\\\"\n print(resultingString)\n return resultingString\n\ndef printInputInformation(aString, informationToBePrinted):\n listOfStrings = str(aString).split(informationToBePrinted)\n sizeOfResultingList = len(listOfStrings)\n if sizeOfResultingList > 1:\n print(informationToBePrinted + listOfStrings[1])\n return listOfStrings[1]\n\ndef getInputOntologyInformation(aString, informationToGet):\n listOfStrings = str(aString).split(informationToGet)\n sizeOfResultingList = len(listOfStrings)\n if sizeOfResultingList > 1:\n return listOfStrings[1]\n\n'''get a specific number in one loop, e.g. NUMBER_OF_ABSRTACT_INDIVIDUALS, and put it to the global dictionary'''\ndef getAbstractionInfoForOneLoop(aLine, informationToGet):\n aString = str(aLine)\n if CURRENT_LOOP in aString and informationToGet in aString:\n twoSplittedParts = aString.split(\";\")\n# print(aString)\n abstractionLoop = getInputOntologyInformation(twoSplittedParts[0], CURRENT_LOOP)\n# print(abstractionLoop)\n informationValue = getInputOntologyInformation(aString, informationToGet)\n# print(informationValue)\n ''' put them to the dictionary'''\n updateDictionary(abstractionLoop, informationToGet, informationValue)\n return (abstractionLoop, informationToGet, informationValue)\n \n \n''' add a new value to the dictionary for abstraction''' \ndef updateDictionary(key, typeOfTheValue, addedValue):\n existingValues = abstractionDict.get(key)\n if existingValues == None:\n existingValues = {}\n \n existingValues[typeOfTheValue] = addedValue\n abstractionDict[key] = existingValues\n# '''test'''\n# readAbstractionInfoForOneOntology(\"imdb.result.txt\")\n","repo_name":"kieen/OrarhshoifEValuation","sub_path":"OrarhshoifEvaluation/readAbstractionInfoForOneOntology.py","file_name":"readAbstractionInfoForOneOntology.py","file_ext":"py","file_size_in_byte":8018,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"30030137469","text":"import numpy as nm\nimport matplotlib.pyplot as plt\nimport scipy.constants as cons \n\n\nn \t= 10\nbetarel = 1\nsigma \t= 5\n\nr = nm.arange(-10.,10,0.01)\n\nbbforce = - n * cons.e**2 / (2 * cons.pi * cons.epsilon_0 * r ) * (1 - nm.exp(-r**2/sigma))\n\nplt.plot(r,- n * cons.e**2 / (2 * cons.pi * cons.epsilon_0 * r ) * (1-nm.exp(-r**2/5)),'r',r,- n * cons.e**2 / (2 * cons.pi * cons.epsilon_0 * r ) * (1-nm.exp(-r**2/10)),'b',r,- n * cons.e**2 / (2 * cons.pi * cons.epsilon_0 * r ) * (1-nm.exp(-r**2/2)),'g')\nplt.show()\n","repo_name":"TMsangohan/pythonmath","sub_path":"beambeamplot.py","file_name":"beambeamplot.py","file_ext":"py","file_size_in_byte":510,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"18334415472","text":"# -*- coding: utf-8 -*-\n#\n# PyTorch documentation build configuration file, created by\n# sphinx-quickstart on Fri Dec 23 13:31:47 2016.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n#\nimport os\n# import sys\n\n# source code directory, relative to this file, for sphinx-autobuild\n# sys.path.insert(0, os.path.abspath('../..'))\n\nimport torch\n\ntry:\n import torchvision # noqa: F401\nexcept ImportError:\n import warnings\n warnings.warn('unable to load \"torchvision\" package')\n\nRELEASE = os.environ.get('RELEASE', False)\n\nimport pytorch_sphinx_theme\n\n# -- General configuration ------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#\nneeds_sphinx = '1.6'\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = [\n 'sphinx.ext.autodoc',\n 'sphinx.ext.autosummary',\n 'sphinx.ext.doctest',\n 'sphinx.ext.intersphinx',\n 'sphinx.ext.todo',\n 'sphinx.ext.coverage',\n 'sphinx.ext.napoleon',\n 'sphinx.ext.viewcode',\n 'sphinxcontrib.katex',\n 'sphinx.ext.autosectionlabel',\n]\n\n# build the templated autosummary files\nautosummary_generate = True\nnumpydoc_show_class_members = False\n\n# autosectionlabel throws warnings if section names are duplicated.\n# The following tells autosectionlabel to not throw a warning for\n# duplicated section names that are in different documents.\nautosectionlabel_prefix_document = True\n\n# katex options\n#\n#\n\nkatex_prerender = True\n\nnapoleon_use_ivar = True\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = ['_templates']\nif RELEASE:\n templates_path = ['_templates-stable'] + templates_path\n\n# TODO: document these and remove them from here.\n\ncoverage_ignore_modules = [\n \"torch.autograd\",\n \"torch.cuda\",\n \"torch.distributed\",\n \"torch.distributions\",\n \"torch.hub\",\n \"torch.jit.unsupported_tensor_ops\",\n \"torch.onnx\",\n \"torch.nn.quantized.functional\",\n \"torchvision\",\n]\n\ncoverage_ignore_functions = [\n # torch.jit\n \"annotate\",\n \"export_opnames\",\n \"fuser\",\n \"indent\",\n \"interface\",\n \"is_tracing\",\n \"make_module\",\n \"make_tuple\",\n \"optimized_execution\",\n \"script_method\",\n \"validate_map_location\",\n \"verify\",\n \"whichmodule\",\n \"wrap_check_inputs\",\n # torch\n # TODO: This should be documented eventually, but only after\n # we build out more support for meta functions and actually\n # do a release with it\n \"empty_meta\",\n]\n\ncoverage_ignore_classes = [\n # torch.jit\n \"Attribute\",\n \"CompilationUnit\",\n \"ConstMap\",\n \"Error\",\n \"Future\",\n \"ONNXTracedModule\",\n \"OrderedDictWrapper\",\n \"OrderedModuleDict\",\n \"RecursiveScriptModule\",\n \"ScriptFunction\",\n \"ScriptMeta\",\n \"ScriptModule\",\n \"ScriptWarning\",\n \"TopLevelTracedModule\",\n \"TracedModule\",\n \"TracerWarning\",\n \"TracingCheckError\",\n]\n\n# The suffix(es) of source filenames.\n# You can specify multiple suffix as a list of string:\n#\n# source_suffix = ['.rst', '.md']\nsource_suffix = '.rst'\n\n# The master toctree document.\nmaster_doc = 'index'\n\n# General information about the project.\nproject = 'PyTorch'\ncopyright = '2019, Torch Contributors'\nauthor = 'Torch Contributors'\n\n# The version info for the project you're documenting, acts as replacement for\n# |version| and |release|, also used in various other places throughout the\n# built documents.\n#\n# The short X.Y version.\n# TODO: change to [:2] at v1.0\nversion = 'master (' + torch.__version__ + ' )'\n# The full version, including alpha/beta/rc tags.\n# TODO: verify this works as expected\nrelease = 'master'\n\n# Customized html_title here. \n# Default is \" \".join(project, release, \"documentation\") if not set\nif RELEASE:\n # remove hash (start with 'a') from version number if any\n version_end = torch.__version__.find('a')\n if version_end == -1:\n html_title = \" \".join((project, torch.__version__, \"documentation\"))\n else:\n html_title = \" \".join((project, torch.__version__[:version_end], \"documentation\"))\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#\n# This is also used if you do content translation via gettext catalogs.\n# Usually you set \"language\" from the command line for these cases.\nlanguage = None\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This patterns also effect to html_static_path and html_extra_path\nexclude_patterns = []\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = 'sphinx'\n\n# If true, `todo` and `todoList` produce output, else they produce nothing.\ntodo_include_todos = True\n\n# Disable docstring inheritance\nautodoc_inherit_docstrings = False\n\n\n# -- katex javascript in header\n#\n# def setup(app):\n# app.add_javascript(\"https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.min.js\")\n\n\n# -- Options for HTML output ----------------------------------------------\n#\n# The theme to use for HTML and HTML Help pages. See the documentation for\n# a list of builtin themes.\n#\n#\n#\n\nhtml_theme = 'pytorch_sphinx_theme'\nhtml_theme_path = [pytorch_sphinx_theme.get_html_theme_path()]\n\n# Theme options are theme-specific and customize the look and feel of a theme\n# further. For a list of options available for each theme, see the\n# documentation.\n\nhtml_theme_options = {\n 'pytorch_project': 'docs',\n 'canonical_url': 'https://pytorch.org/docs/stable/',\n 'collapse_navigation': False,\n 'display_version': True,\n 'logo_only': True,\n}\n\nhtml_logo = '_static/img/pytorch-logo-dark-unstable.png'\nif RELEASE:\n html_logo = '_static/img/pytorch-logo-dark.svg'\n\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = ['_static']\n\nhtml_css_files = [\n 'css/jit.css',\n]\n\n\n# Called automatically by Sphinx, making this `conf.py` an \"extension\".\ndef setup(app):\n # NOTE: in Sphinx 1.8+ `html_css_files` is an official configuration value\n # and can be moved outside of this function (and the setup(app) function\n # can be deleted).\n html_css_files = [\n 'https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.min.css'\n ]\n\n # In Sphinx 1.8 it was renamed to `add_css_file`, 1.7 and prior it is\n # `add_stylesheet` (deprecated in 1.8).\n add_css = getattr(app, 'add_css_file', app.add_stylesheet)\n for css_file in html_css_files:\n add_css(css_file)\n\n# From PyTorch 1.5, we now use autogenerated files to document classes and\n# functions. This breaks older references since \n# https://docs.pytorch.org/torch.html#torch.flip\n# moved to \n# https://docs.pytorch.org/torch/generated/torchflip.html\n# which breaks older links from blog posts, stack overflow answers and more.\n# To mitigate that, we add an id=\"torch.flip\" in an appropriated place\n# in torch.html by overriding the visit_reference method of html writers.\n# Someday this can be removed, once the old links fade away\n\nfrom sphinx.writers import html, html5\n\ndef replace(Klass):\n old_call = Klass.visit_reference\n\n def visit_reference(self, node):\n if 'refuri' in node and 'generated' in node.get('refuri'):\n ref = node.get('refuri')\n ref_anchor = ref.split('#')\n if len(ref_anchor) > 1:\n # Only add the id if the node href and the text match,\n # i.e. the href is \"torch.flip#torch.flip\" and the content is\n # \"torch.flip\" or \"flip\" since that is a signal the node refers\n # to autogenerated content\n anchor = ref_anchor[1]\n txt = node.parent.astext()\n if txt == anchor or txt == anchor.split('.')[-1]: \n self.body.append(''.format(ref_anchor[1]))\n return old_call(self, node)\n Klass.visit_reference = visit_reference\n\nreplace(html.HTMLTranslator)\nreplace(html5.HTML5Translator)\n\n# -- Options for HTMLHelp output ------------------------------------------\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = 'PyTorchdoc'\n\n\n# -- Options for LaTeX output ---------------------------------------------\n\nlatex_elements = {\n # The paper size ('letterpaper' or 'a4paper').\n #\n # 'papersize': 'letterpaper',\n\n # The font size ('10pt', '11pt' or '12pt').\n #\n # 'pointsize': '10pt',\n\n # Additional stuff for the LaTeX preamble.\n #\n # 'preamble': '',\n\n # Latex figure (float) alignment\n #\n # 'figure_align': 'htbp',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title,\n# author, documentclass [howto, manual, or own class]).\nlatex_documents = [\n (master_doc, 'pytorch.tex', 'PyTorch Documentation',\n 'Torch Contributors', 'manual'),\n]\n\n\n# -- Options for manual page output ---------------------------------------\n\n# One entry per manual page. List of tuples\n# (source start file, name, description, authors, manual section).\nman_pages = [\n (master_doc, 'PyTorch', 'PyTorch Documentation',\n [author], 1)\n]\n\n\n# -- Options for Texinfo output -------------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n# dir menu entry, description, category)\ntexinfo_documents = [\n (master_doc, 'PyTorch', 'PyTorch Documentation',\n author, 'PyTorch', 'One line description of project.',\n 'Miscellaneous'),\n]\n\n\n# Example configuration for intersphinx: refer to the Python standard library.\nintersphinx_mapping = {\n 'python': ('https://docs.python.org/3', None),\n 'numpy': ('https://numpy.org/doc/stable', None),\n}\n\n# -- A patch that prevents Sphinx from cross-referencing ivar tags -------\n# See http://stackoverflow.com/a/41184353/3343043\n\nfrom docutils import nodes\nfrom sphinx.util.docfields import TypedField\nfrom sphinx import addnodes\nimport sphinx.ext.doctest\n\n# Without this, doctest adds any example with a `>>>` as a test\ndoctest_test_doctest_blocks = ''\ndoctest_default_flags = sphinx.ext.doctest.doctest.ELLIPSIS\ndoctest_global_setup = '''\ntry:\n import torchvision\nexcept ImportError:\n torchvision = None\n'''\n\n\ndef patched_make_field(self, types, domain, items, **kw):\n # `kw` catches `env=None` needed for newer sphinx while maintaining\n # backwards compatibility when passed along further down!\n\n # type: (List, unicode, Tuple) -> nodes.field\n def handle_item(fieldarg, content):\n par = nodes.paragraph()\n par += addnodes.literal_strong('', fieldarg) # Patch: this line added\n # par.extend(self.make_xrefs(self.rolename, domain, fieldarg,\n # addnodes.literal_strong))\n if fieldarg in types:\n par += nodes.Text(' (')\n # NOTE: using .pop() here to prevent a single type node to be\n # inserted twice into the doctree, which leads to\n # inconsistencies later when references are resolved\n fieldtype = types.pop(fieldarg)\n if len(fieldtype) == 1 and isinstance(fieldtype[0], nodes.Text):\n typename = u''.join(n.astext() for n in fieldtype)\n typename = typename.replace('int', 'python:int')\n typename = typename.replace('long', 'python:long')\n typename = typename.replace('float', 'python:float')\n typename = typename.replace('bool', 'python:bool')\n typename = typename.replace('type', 'python:type')\n par.extend(self.make_xrefs(self.typerolename, domain, typename,\n addnodes.literal_emphasis, **kw))\n else:\n par += fieldtype\n par += nodes.Text(')')\n par += nodes.Text(' -- ')\n par += content\n return par\n\n fieldname = nodes.field_name('', self.label)\n if len(items) == 1 and self.can_collapse:\n fieldarg, content = items[0]\n bodynode = handle_item(fieldarg, content)\n else:\n bodynode = self.list_type()\n for fieldarg, content in items:\n bodynode += nodes.list_item('', handle_item(fieldarg, content))\n fieldbody = nodes.field_body('', bodynode)\n return nodes.field('', fieldname, fieldbody)\n\nTypedField.make_field = patched_make_field\n","repo_name":"snuspl/nimble","sub_path":"docs/source/conf.py","file_name":"conf.py","file_ext":"py","file_size_in_byte":13057,"program_lang":"python","lang":"en","doc_type":"code","stars":248,"dataset":"github-code","pt":"86"}
+{"seq_id":"34113963602","text":"import math as m\nimport timeit\nimport os\nimport csv\nfrom itertools import permutations \nstart = timeit.default_timer()\n\npath = 'c:\\\\Users\\Eric\\Projects\\python1\\Euler'\nos.chdir(path)\nfilename = \"Primes2to10000000.csv\"\n\nfile_to_read = open(filename)\n\nmatrix = []\n\nwith open(filename) as csvDataFile:\n csvReader = csv.reader(csvDataFile)\n i = 0\n for row in csvReader:\n clean_row = list(filter(None, row))\n for item in clean_row:\n matrix.append(int(item))\n if (i % 1000) == 0:\n print(\"Row \", str(i))\n # j = 0\n # while j < len(clean_row) :\n # clean_row[j] = int(clean_row[j])\n # j+=1\n # matrix.insert(i,clean_row)\n i += 1\n\nprint(\"matrix read\")\npan7 = []\n\nfor p in permutations(range(1, 8)):\n new_num = 0\n len_num = len(p)\n i = 0\n while i < len_num:\n new_num += p[i]*(10**(len_num-1-i))\n i += 1\n pan7.append(new_num)\n\npan7.sort(reverse=True)\n\ncandidate = 0\nj = 0\n\nwhile candidate == 0 and j < len(pan7):\n number = pan7[j]\n if number in matrix:\n print(\"We're done here. The number is \", str(number))\n candidate = number\n j += 1\nif candidate == 0:\n print(\"No seven digit pandigital primes.\")\n\n\nif candidate < 2:\n pan4 = []\n \n for p in permutations(range(1, 5)):\n new_num = 0\n len_num = len(p)\n i = 0\n while i < len_num:\n new_num += p[i]*(10**(len_num-1-i))\n i += 1\n pan4.append(new_num)\n \n pan4.sort(reverse=True)\n \n candidate = 0\n j = 0\n \n while candidate == 0 and j < len(pan4):\n number = pan4[j]\n if number in matrix:\n print(\"We're done here. The number is \", str(number))\n candidate = number\n j += 1\n if candidate == 0 :\n print(\"I done messed up.\")\n\nstop = timeit.default_timer()\ntime = stop - start\nprint(\"Runtime =\", time, \"s\")\n","repo_name":"egv78/Euler","sub_path":"Euler_041_Pandigital_Prime.py","file_name":"Euler_041_Pandigital_Prime.py","file_ext":"py","file_size_in_byte":1926,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"6785371282","text":"# version code 542eddf1f327+\ncoursera = 1\n# Please fill out this stencil and submit using the provided submission script.\n\nfrom vec import Vec\n\nimport sys\nsys.setrecursionlimit(10000) \n\n## 1: (Problem 3.8.1) Vector Comprehension and Sum\ndef vec_select(veclist, k): \n '''\n >>> D = {'a','b','c'}\n >>> v1 = Vec(D, {'a': 1})\n >>> v2 = Vec(D, {'a': 0, 'b': 1})\n >>> v3 = Vec(D, { 'b': 2})\n >>> v4 = Vec(D, {'a': 10, 'b': 10})\n >>> vec_select([v1, v2, v3, v4], 'a') == [Vec(D,{'b': 1}), Vec(D,{'b': 2})]\n True\n '''\n res = []\n for vec in veclist:\n if vec[k] == 0: # this is a reload of operator\n res.append(vec)\n return res\n\ndef vec_sum(veclist, D):\n '''\n >>> D = {'a','b','c'}\n >>> v1 = Vec(D, {'a': 1})\n >>> v2 = Vec(D, {'a': 0, 'b': 1})\n >>> v3 = Vec(D, { 'b': 2})\n >>> v4 = Vec(D, {'a': 10, 'b': 10})\n >>> vec_sum([v1, v2, v3, v4], D) == Vec(D, {'b': 13, 'a': 11})\n True\n '''\n res = Vec(D, {})\n for v in veclist:\n res = res + v\n return res\n \n\ndef vec_select_sum(veclist, k, D):\n '''\n >>> D = {'a','b','c'}\n >>> v1 = Vec(D, {'a': 1})\n >>> v2 = Vec(D, {'a': 0, 'b': 1})\n >>> v3 = Vec(D, { 'b': 2})\n >>> v4 = Vec(D, {'a': 10, 'b': 10})\n >>> vec_select_sum([v1, v2, v3, v4], 'a', D) == Vec(D, {'b': 3})\n True\n '''\n return vec_sum(vec_select(veclist, k), D)\n \n\n\n## 2: (Problem 3.8.2) Vector Dictionary\ndef scale_vecs(vecdict):\n '''\n >>> v1 = Vec({1,2,4}, {2: 9})\n >>> v2 = Vec({1,2,4}, {1: 1, 2: 2, 4: 8})\n >>> result = scale_vecs({3: v1, 5: v2})\n >>> len(result)\n 2\n >>> [v in [Vec({1,2,4},{2: 3.0}), Vec({1,2,4},{1: 0.2, 2: 0.4, 4: 1.6})] for v in result]\n [True, True]\n '''\n \n res = [] \n for (k,v) in vecdict.items():\n res.append(1/k * v) \n return res\n \n \n \n\n\n\n## 3: (Problem 3.8.3) Constructing span of given vectors over GF(2)\ndef GF2_span(D, S):\n '''\n >>> from GF2 import one\n >>> D = {'a', 'b', 'c'}\n >>> GF2_span(D, {Vec(D, {'a':one, 'c':one}), Vec(D, {'c':one})}) == {Vec(D,{}), Vec(D,{'a':one, 'c':one}), Vec(D,{'c': one}), Vec(D,{'a':one})}\n True\n >>> GF2_span(D, {Vec(D, {'a':one, 'b':one}), Vec(D, {'a':one}), Vec(D, {'b':one})}) == {Vec(D,{'a':one, 'b':one}), Vec(D,{'b':one}), Vec(D,{'a':one}), Vec(D,{})}\n True\n >>> GF2_span(D, {Vec(D, {'a':one, 'b':one}), Vec(D, {'c':one})}) == {Vec(D,{}), Vec(D,{'a':one, 'b':one}), Vec(D,{'a':one, 'b':one, 'c':one}), Vec(D,{'c':one})}\n True\n >>> S={Vec({0,1},{0:one}), Vec({0,1},{1:one})}\n >>> GF2_span({0,1}, S) == {Vec({0, 1},{0: one, 1: one}), Vec({0, 1},{1: one}), Vec({0, 1},{0: one}), Vec({0, 1},{})}\n True\n >>> S == {Vec({0, 1},{1: one}), Vec({0, 1},{0: one})}\n True\n '''\n # using the thingking of recursion \n \n if len(S) == 0 :\n return set()\n \n L = list(S)\n maxind = 2 ** len(S) - 1 \n res = [sum([L[j] for j in range(len(L)) if i//2**j%2]) for i in range(maxind+1)]\n res.append(Vec(D, {}))\n del res[0] \n return set(res)\n \n\n\n\n## 4: (Problem 3.8.7) Is it a vector space 1\n# Answer with a boolean, please.\nis_a_vector_space_1 = False\n\n\n\n## 5: (Problem 3.8.8) Is it a vector space 2\n# Answer with a boolean, please.\nis_a_vector_space_2 = True\n\n\n\n## 6: (Problem 3.8.9) Is it a vector space 3\n# Answer with a boolean, please.\nis_a_vector_space_3 = False\n\n\n\n## 7: (Problem 3.8.10) Is it a vector space 4\n# Answer with a boolean, please.\nis_a_vector_space_4a = True\nis_a_vector_space_4b = False\n\n","repo_name":"taiyang-li/readings","sub_path":"coursera_Coding_the_Matrix_Linear_Algebra_through_Computer_Science_Applications/week2/The_Vector_Space_problems.py","file_name":"The_Vector_Space_problems.py","file_ext":"py","file_size_in_byte":3543,"program_lang":"python","lang":"en","doc_type":"code","stars":11,"dataset":"github-code","pt":"86"}
+{"seq_id":"17648328283","text":"import csv, utils, datetime, os, glob, re, itertools\n\nLINE_RE = re.compile(\"(\\d\\d?)\\.(\\d\\d?)\\.(\\d\\d\\d\\d)(.*?)([0-9.,-]+)\\s*(€|EUR|E)\")\n\ndef do_import(input_path, account):\n print(\"\\t\", input_path)\n entries = []\n with open(input_path, \"r\", encoding=\"UTF-8\") as input_fp:\n if input_path.endswith(\".csv\"):\n reader = csv.DictReader(input_fp)\n for row in reader:\n if row[\"Datum\"]:\n d, m, y = row[\"Datum\"].split(\".\")\n date = datetime.date(int(y), int(m), int(d))\n description = (row[\"Beschreibung\"] + \" \" + row[\"Bemerkung\"]).strip()\n id = row[\"BuchungsID\"]\n if not row[\"BuchungsID\"]:\n assert date\n assert description\n if row[\"Volle Kontobezeichnung\"] != \"Aktiva:Giro EasyBank\":\n entries.append(utils.Entry(\n input_path,\n account,\n date,\n description + \" (\" + id + \")\",\n -int(row[\"Wert numerisch\"].replace(\".\", \"\").replace(\",\", \"\")),\n \"EUR\"\n ))\n date = None\n description = None\n else:\n for line in input_fp.readlines():\n line = line.strip()\n if line:\n match = LINE_RE.match(line)\n entries.append(utils.Entry(\n input_path,\n account,\n datetime.date(int(match[3]), int(match[2]), int(match[1])),\n re.sub(r\"\\s+\", \" \", match[4]),\n -int(match[5].replace(\".\", \"\").replace(\",\", \"\")) * (1 if \",\" in match[5] else 100),\n \"EUR\"))\n return entries\n\ndef main(pool, source, account, **kwargs):\n files = list(glob.glob(os.path.join(source, \"*.txt\")))\n files += list(glob.glob(os.path.join(source, \"*.csv\")))\n return list(itertools.chain.from_iterable(pool.starmap(do_import, ((f, account) for f in files))))\n","repo_name":"kaini/money","sub_path":"src/parser/cash.py","file_name":"cash.py","file_ext":"py","file_size_in_byte":2170,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"11197146072","text":"import numpy as np\n\ndef compute_tlsq(X, Y, tlsq_rank):\n \"\"\"\n Compute Total Least Square.\n\n :param numpy.ndarray X: the first matrix;\n :param numpy.ndarray Y: the second matrix;\n :param int tlsq_rank: the rank for the truncation; If 0, the method\n does not compute any noise reduction; if positive number, the\n method uses the argument for the SVD truncation used in the TLSQ\n method.\n :return: the denoised matrix X, the denoised matrix Y\n :rtype: numpy.ndarray, numpy.ndarray\n\n References:\n https://arxiv.org/pdf/1703.11004.pdf\n https://arxiv.org/pdf/1502.03854.pdf\n \"\"\"\n # Do not perform tlsq\n if tlsq_rank == 0:\n return X, Y\n\n V = np.linalg.svd(np.append(X, Y, axis=0), full_matrices=False)[-1]\n rank = min(tlsq_rank, V.shape[0])\n VV = V[:rank, :].conj().T.dot(V[:rank, :])\n\n return X.dot(VV), Y.dot(VV)\n","repo_name":"ZhichaoJin/DMD","sub_path":"utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":886,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"39827523652","text":"import sys\nimport requests\nimport hashlib\nimport time\nfrom lxml import etree\nfrom elasticsearch import Elasticsearch\n\n\nclass Poetry:\n def __init__(self, title=\"\", content=\"\", author=\"\", tag=None, dynasty=\"\"):\n self.title = title\n self.dynasty = dynasty\n self.content = content\n self.author = author\n self.tag = tag\n\n\nclass PoetrySpider:\n def __init__(self):\n self.db = Elasticsearch([{\"host\": \"localhost\", \"port\": 9200}])\n self.domain = ''\n \n def create_poetry_index(self):\n self.db.indices.create('poetry_index', ignore=400, body={\n \"mapping\": {\n \"poetry\": {\n \"properties\": {\n \"title\": {\"type\": \"text\"},\n \"dynasty\": {\"type\": \"text\"},\n \"author\": {\"type\": \"text\"},\n \"content\": {\"type\": \"text\"},\n \"tag\": {\"type\": \"text\"},\n }\n }\n }\n })\n \n def download(self, origin_url):\n print('origin_url:{}'.format(origin_url))\n self.domain = origin_url.split('/')[2]\n data = requests.get(origin_url)\n if data:\n self.parse(data.text)\n\n def parse(self, data):\n response = etree.HTML(data)\n for row in response.xpath('//div[@class=\"left\"]/div[@class=\"sons\"]'):\n poetry = Poetry()\n poetry.title = row.xpath('div[@class=\"cont\"]/p/a/b/text()')[0] \\\n if row.xpath('div[@class=\"cont\"]/p/a/b/text()') else ''\n poetry.dynasty = row.xpath('div[@class=\"cont\"]/p[@class=\"source\"]//text()')[0] \\\n if row.xpath('div[@class=\"cont\"]/p[@class=\"source\"]//text()') else ''\n poetry.author = row.xpath('div[@class=\"cont\"]/p[@class=\"source\"]//text()')[-1] \\\n if row.xpath('div[@class=\"cont\"]/p[@class=\"source\"]//text()') else ''\n poetry.content = ''.join(row.xpath('div[@class=\"cont\"]/div[@class=\"contson\"]//text()')).\\\n replace(' ', '').replace('\\n', '') \\\n if row.xpath('div[@class=\"cont\"]/div[@class=\"contson\"]//text()') else ''\n poetry.tag = ','.join(row.xpath('div[@class=\"tag\"]/a/text()')) \\\n if row.xpath('div[@class=\"tag\"]/a/text()') else ''\n print('Title: {}'.format(poetry.title))\n print('Dynasty: {}'.format(poetry.dynasty))\n print('Author: {}'.format(poetry.author))\n print('Content: {}'.format(poetry.content))\n print('Tag: {}'.format(poetry.tag))\n self.write_to_es(poetry)\n if response.xpath('//div[@class=\"pagesright\"]/a[@class=\"amore\"]/@href'):\n time.sleep(2)\n self.download('http://' + self.domain +\n response.xpath('//div[@class=\"pagesright\"]/a[@class=\"amore\"]/@href')[-1])\n \n def write_to_es(self, poetry):\n doc = {\n \"title\": poetry.title,\n \"dynasty\": poetry.dynasty,\n \"author\": poetry.author,\n \"content\": poetry.content,\n \"tag\": poetry.tag,\n \"timestamp\": int(time.time()*1000)\n }\n poetry_id = hashlib.sha1(poetry.content.encode(\"utf-8\")).hexdigest()[0:15]\n if self.db.exists(\"poetry_index\", \"poetry\", poetry_id):\n self.db.delete(\"poetry_index\", \"poetry\", poetry_id)\n res = self.db.create(index=\"poetry_index\", doc_type=\"poetry\", id=poetry_id, body=doc)\n print('Put Success: {}'.format(res))\n \n \nif __name__ == '__main__':\n sys.setrecursionlimit(100000)\n ori_url = 'http://so.gushiwen.org/type.aspx'\n do = PoetrySpider()\n #do.create_poetry_index()\n do.download(ori_url)\n","repo_name":"minicaptain/python_spider","sub_path":"spider.py","file_name":"spider.py","file_ext":"py","file_size_in_byte":3735,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"18278740659","text":"from django.shortcuts import render, redirect\r\nfrom .forms import BookForm\r\nfrom .models import Book\r\nfrom django.shortcuts import redirect, get_object_or_404\r\n# Create your views here.\r\n\r\ndef home(request):\r\n return render(request, 'home.html')\r\n\r\ndef delete_book(request, book_id):\r\n book = get_object_or_404(Book, id=book_id)\r\n book.delete_book()\r\n return redirect('book_list')\r\n\r\ndef book_list(request):\r\n return render(request, 'book_list.html')\r\n\r\ndef book_list(request):\r\n if request.method == 'POST':\r\n form = BookForm(request.POST, request.FILES)\r\n if form.is_valid():\r\n form.save()\r\n return redirect('book_list')\r\n else:\r\n form = BookForm()\r\n books = Book.objects.all()\r\n context = {\r\n 'form': form,\r\n 'books': books\r\n }\r\n return render(request, 'book_list.html', context)\r\n\r\ndef edit_book(request, book_id):\r\n # Retrieve the book object using the book_id\r\n book = Book.objects.get(id=book_id)\r\n\r\n if request.method == 'POST':\r\n form = BookForm(request.POST, instance=book)\r\n if form.is_valid():\r\n form.save()\r\n # Redirect to the book list page\r\n return redirect('book_list')\r\n else:\r\n form = BookForm(instance=book)\r\n\r\n return render(request, 'edit_book.html', {'form': form, 'book': book})\r\n\r\n","repo_name":"Menmymissus/bookstoreusingxamppanddjango","sub_path":"bookstore using django and xampp/book_store/book_app/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":1364,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"71443402523","text":"from apps.db import Base, engine\nfrom sqlalchemy import Column, CHAR, VARCHAR, ForeignKey\n\n\nclass Oanda(Base):\n __tablename__ = \"oanda\"\n id = Column(\n 'id',\n CHAR(20),\n ForeignKey('users.id'),\n nullable=False,\n primary_key=True,\n autoincrement=False,\n unique=True)\n token = Column(\n 'token',\n VARCHAR(255),\n nullable=False)\n","repo_name":"shujishujishuji/fats","sub_path":"oanda/models.py","file_name":"models.py","file_ext":"py","file_size_in_byte":403,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"17484663296","text":"from nmigen.compat.sim import run_simulation\nfrom nmigen.cli import verilog, rtlil\nfrom nmigen import Module, Signal, Const, Elaboratable, Array\nfrom nmutil.latch import SRLatch\n\nfrom functools import reduce\nfrom operator import or_\n\n\nclass FUDependenceCell(Elaboratable):\n \"\"\" implements 11.4.7 mitch alsup dependence cell, p27\n \"\"\"\n def __init__(self, dummy, n_fu, n_src, n_dest):\n self.n_fu = n_fu\n self.n_src = n_src\n self.n_dest = n_dest\n self.dummy = Const(~(1<= 2:\n if len(sys.argv) == 2 and sys.argv[1] == '-r':\n return True\n else:\n print('Usage: .../spark-submit --master local[x] run_recommender.py <-r>')\n sys.exit(1)\n\n return False\n\n\ndef show_movie_titles(titles):\n ''' Prints all movie titles in the given list. '''\n print('Here are your top movie recommendations:')\n for i, title in enumerate(titles):\n num = i + 1\n print('%s. %s' % (num, title))\n\n\ndef run_als(train, validation, rank=10, iterations=7, l=0.01, save_model=False, sc=None):\n ''' Trains an ALS on train and reports the accuracy on validation. '''\n model = ALS.train(train, rank, iterations, lambda_=l)\n \n if save_model and sc is not None:\n if os.path.exists('target/recommender'):\n shutil.rmtree('target/recommender')\n \n model.save(sc, 'target/recommender')\n\n # Evaluate model\n if validation is not None:\n testData = validation.map(lambda d: (d[0], d[1]))\n predictions = model.predictAll(testData).map(lambda r: ((r[0], r[1]), r[2]))\n origAndPreds = validation.map(lambda r: ((r[0], r[1]), r[2])).join(predictions)\n correct = origAndPreds.map(lambda r: (1 if (abs(r[1][0] - r[1][1]) <= 1.0) else 0))\n accuracy = correct.mean()\n return accuracy\n\n return None\n\n\ndef als_vary_iterations(train, validation):\n ''' Trains multiple ALS models, varying the numIterations parameter. '''\n iterations = [2, 3, 4, 5, 6, 7]\n accuracies = []\n for i in iterations:\n accuracy = run_als(train, validation, iterations=i)\n accuracies.append(accuracy)\n\n makePlot(iterations, accuracies, 'numIterations', 'accuracy')\n\n\ndef als_vary_rank(train, validation):\n ''' Trains multiple ALS models, varying the rank parameter. '''\n rank = range(5, 21)\n accuracies = []\n for r in rank:\n accuracy = run_als(train, validation, rank=r)\n accuracies.append(accuracy)\n\n makePlot(rank, accuracies, 'rank', 'accuracy')\n\n\n### START HERE ###\nset_up()\n\n# Initalize Spark context\nsc = SparkContext(appName=\"Lab5\")\nsc.setLogLevel(\"ERROR\")\nsc.setCheckpointDir('checkpoint/')\n\n# Check how we are running\nif use_personal_ratings():\n print('Recommending movies to you based on results from init_recommender.py')\n personal_ratings = load_personal_ratings(sc)\n ratings = read_ratings_data(sc).union(personal_ratings)\nelse:\n ratings = read_ratings_data(sc)\n\n# Split into train and test\n(ratings_train, ratings_validation) = ratings.randomSplit([0.7, 0.3], seed=42)\n\n# Don't want to train all the various models if we're recommending, only the best one\nif use_personal_ratings():\n run_als(ratings, None, rank=5, iterations=7, l=0.1, save_model=True, sc=sc)\n model = MatrixFactorizationModel.load(sc, 'target/recommender')\n\n # Get the 20 best recommended movies for user 0 (the user)\n # Then filter out any they have already rated\n # Convert the movie ids into titles\n movies = model.recommendProducts(0, 20)\n movie_ids = [m[1] for m in movies]\n rated_movie_ids = [m[0] for m in personal_ratings.map(lambda m: (m[1], m[2])).collect() if m[1] != 0]\n unwatched_movies = [m for m in movie_ids if m not in rated_movie_ids]\n top_ten_movies = unwatched_movies[:10]\n titles = titles_for_ids(top_ten_movies)\n\n show_movie_titles(titles)\n\n # Done with the personal recommendations\n sys.exit(0)\n\n# Train recommenders\nprint('Training the model by varying the number of iterations.')\nals_vary_iterations(ratings_train, ratings_validation)\n\nprint('Training the model by varying the rank.')\nals_vary_rank(ratings_train, ratings_validation)\n\nprint('Training the model with the best parameters.')\naccuracy = run_als(ratings_train, ratings_validation, rank=5, iterations=7, l=0.1)\nprint('Validation set accuracy: %s' % (accuracy))\n\nprint('Training the model on all data and saving it.')\nrun_als(ratings, None, rank=5, iterations=7, l=0.1, save_model=True, sc=sc)\n\n","repo_name":"RohanNagar/big-data-utaustin","sub_path":"lab5/src/run_recommender.py","file_name":"run_recommender.py","file_ext":"py","file_size_in_byte":6353,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"13205718019","text":"#!/usr/bin/env python\n\n# Author: Steven Miller\n\nimport requests\nimport urllib\nimport sys\nimport os\nimport lxml.html as html\nfrom random import randint\nfrom subprocess import check_output\nimport pydoc\n\n\ndef build_search_url(query):\n \"\"\" Builds a Google search url\n\n Args:\n query (str): a query string to use when searching cloudformation docs\n\n Returns:\n str: the Google 'I'm feeling lucky' URL\n \"\"\"\n google_url = []\n # Build URL to query Google\n google_url.append('https://www.google.com/search?')\n # I'm feeling lucky: go to first result\n google_url.append('btnI=1')\n # Limit results to only this specific website\n google_url.append('&as_sitesearch=docs.aws.amazon.com')\n # Build query\n query = \"aws cloudformation \" + query\n # This line escapes spaces and the like\n query = urllib.quote_plus(query.strip())\n # Attach query to URL\n google_url.append(\"&q=\")\n google_url.append(query)\n return \"\".join(google_url)\n\n\ndef get_docs_html_content(url):\n \"\"\" Get a webpage and extract relevant HTML for cloudformation documentation\n\n Args:\n url (str): url for cloudformation docs\n\n Returns:\n str: HTML of the page, stripped down to a minimum\n \"\"\"\n # Relevant tags\n want_tags = ['p', 'h1', 'h2', 'h3', 'div']\n # Relevant classes and ids for div elements\n want_divs = ['variablelist', 'aws-note', 'YAML']\n # Get request to amazon\n response = requests.get(url, proxies=urllib.getproxies())\n # Parse the raw HTML\n parsed = html.fromstring(response.text)\n # Print out the HTML elements we want\n try:\n main_content = parsed.get_element_by_id(\"main-col-body\")\n except KeyError:\n print(\"Sorry! Did not find a document.\")\n print(url)\n exit(1)\n content = []\n for el in main_content:\n if (el.tag not in want_tags) or \\\n (el.tag == 'div') and not ( \\\n ('class' in el.attrib.keys() and el.attrib['class'] in want_divs) or \\\n ('id' in el.attrib.keys() and el.attrib['id'] in want_divs)\n ):\n continue\n content.append(html.tostring(el))\n return \"\".join(content)\n\n\ndef format_html_content(content):\n \"\"\" Given HTML, render for reading in a terminal\n\n Args:\n content (str): HTML as a string\n\n Returns:\n str: Rendered document, all HTML removed using 'links' command line utility\n \"\"\"\n # Use a random file name to avoid collision\n # for writing temporary file\n temp_file = str(randint(0, 10000000000)) + \"-tmp-cfn-man.html\"\n try:\n with open(temp_file, 'w') as f:\n f.write(content)\n return check_output(['links', '-dump', temp_file])\n except OSError as e:\n if 'No such file or directory' in str(e):\n print(\n \"Please make sure the command line utility 'links' is installed\"\n )\n exit(1)\n raise e\n # Use finally to ensure resource is cleaned up\n finally:\n os.remove(temp_file)\n\n\ndef main():\n if len(sys.argv) < 2:\n print(\"usage:\\ncfn_docs security group\\ncfn_docs ec2\")\n exit(1)\n query = []\n for arg in sys.argv[1:]:\n query.append(arg)\n query.append(\" \")\n url = build_search_url(\"\".join(query))\n html_content = get_docs_html_content(url)\n doc = format_html_content(html_content)\n # this is the equivalent of piping into 'less'\n pydoc.pager(doc)\n","repo_name":"stelligent/cfn-man","sub_path":"cfn_man/cfn_man.py","file_name":"cfn_man.py","file_ext":"py","file_size_in_byte":3443,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"74766111644","text":"import biostarPython as bio #My Python package for dealing with GSDK\nimport threading\n\ngateway = bio.GatewayClient('127.0.0.1',4000,'C:\\GSDK\\Cert\\CA.crt') #Setup Gateway\nchannel = gateway.getChannel() # Setup Channel\nconnect = bio.ConnectSvc(channel) # Setup Connect\nevent = bio.EventSvc(channel) # Setup Event\n\nconnectEvents = connect.subscribe(300) # Connected events\n\nenabledDevices = []\n\ndef enableMonitoring(deviceID):\n event.enableMonitoring(deviceID) # Enable monitoring on recieved Device ID\n if deviceID not in enabledDevices: \n enabledDevices.append(deviceID)\n stream = event.subscribe(300) # Setup stream for events\n for y in stream:\n print(y) # print events\n\ndef connectedCheck():\n for x in connectEvents: # check Connected events\n if x.status == 1: #For TCP connected\n print(x)\n enableMonitorThread = threading.Thread(target=enableMonitoring,args=(x.deviceID,)) #callback to previous enable monitoring to setup a stream\n enableMonitorThread.start()\n \nconnectedCheckThread = threading.Thread(target=connectedCheck)\nconnectedCheckThread.start()\n\n\n\n\n","repo_name":"gcartlidge/biostarPython","sub_path":"biostarPython/Log Events.py","file_name":"Log Events.py","file_ext":"py","file_size_in_byte":1088,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"33563877481","text":"from django.urls import path\nfrom . import views\n\nurlpatterns=[\n path('employee_home',views.employeehome,name=\"employeehome\"),\n path('calculator',views.calculator,name=\"calculator\"),\n path('logout',views.logout,name=\"logout\"),\n path('employeesalary',views.employeesalary,name=\"employeesalary\"),\n path('recordcheck',views.recordcheck,name=\"recordcheck\"),\n path('employeeapplication',views.employeeapplication,name=\"employeeapplication\"),\n path('applicationstatus',views.applicationstatus,name=\"applicationstatus\"),\n path('updateother',views.updateother,name=\"updateother\"),\n]\n","repo_name":"rohitladhar/car-showroom","sub_path":"employee/urls.py","file_name":"urls.py","file_ext":"py","file_size_in_byte":663,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"21483340347","text":"import argparse\nimport logging\nfrom typing import Tuple\n\nimport torchvision\nimport torchvision.models as models\nfrom torch import nn\n\nfrom dynast.utils import log, measure_time, set_logger\nfrom dynast.utils.datasets import Dataset, ImageNet\nfrom dynast.utils.nn import get_macs, get_parameters, measure_latency, validate_classification\n\n\ndef get_torchvision_model(\n model_name: str,\n quantize: bool = True,\n progress: bool = False,\n) -> nn.Module:\n try:\n if not quantize:\n model = getattr(models, model_name)(pretrained=True, progress=progress)\n else:\n model = getattr(models.quantization, model_name)(pretrained=True, quantize=quantize, progress=progress)\n model.eval()\n return model\n except AttributeError as ae:\n log.error(\n 'Model {model_name} not available. This can be due to either a typo or the model is not '\n 'available in torchvision=={torchvision_version}. \\nAvailable models: {available_models}'.format(\n model_name=model_name,\n torchvision_version=torchvision.__version__,\n available_models=', '.join([m for m in dir(models) if not m.startswith('_')]),\n )\n )\n raise ae\n\n\nclass Reference(object):\n @measure_time\n def validate(\n self,\n device: str = 'cpu',\n batch_size: int = 128,\n input_size: int = 224,\n test_size: int = None,\n ):\n raise NotImplementedError()\n\n @measure_time\n def benchmark(\n self,\n device: str = 'cpu',\n batch_size: int = 128,\n input_size: int = 224,\n warmup_steps: int = 10,\n measure_steps: int = 50,\n ):\n raise NotImplementedError()\n\n\nclass TorchVisionReference(Reference):\n def __init__(\n self,\n model_name: str,\n dataset: Dataset = ImageNet,\n quantize: bool = False,\n ) -> None:\n self.model_name = model_name\n self.dataset = dataset\n self.quantize = quantize\n\n log.info(\n '{name} for \\'{model_name}\\' on \\'{dataset_name}\\' dataset'.format(\n name=str(self),\n model_name=self.model_name,\n dataset_name=self.dataset.name(),\n )\n )\n self.model = get_torchvision_model(model_name=self.model_name, quantize=self.quantize)\n\n @measure_time\n def validate(\n self,\n device: str = 'cpu',\n batch_size: int = 128,\n input_size: int = 224,\n test_fraction: float = 1.0,\n ) -> Tuple[float, float, float]:\n model = self.model.to(device)\n loss, top1, top5 = validate_classification(\n model=model,\n device=device,\n data_loader=self.dataset.validation_dataloader(\n batch_size=batch_size,\n image_size=input_size,\n fraction=test_fraction,\n ),\n )\n log.info(\n '\\'{model_name}\\' on \\'{dataset_name}\\' - top1 {top1} top5 {top5} loss {loss}'.format(\n model_name=self.model_name,\n dataset_name=self.dataset.name(),\n top1=top1,\n top5=top5,\n loss=loss,\n )\n )\n return loss, top1, top5\n\n @measure_time\n def benchmark(\n self,\n device: str = 'cpu',\n batch_size: int = 128,\n input_size: int = 224,\n warmup_steps: int = 10,\n measure_steps: int = 50,\n ) -> Tuple[float, float]:\n model = self.model.to(device)\n latency_mean, latency_std = measure_latency(\n model=model,\n input_size=(batch_size, 3, input_size, input_size),\n warmup_steps=warmup_steps,\n measure_steps=measure_steps,\n device=device,\n )\n log.info(\n '\\'{model_name}\\' (BS={batch_size}) mean latency {latency_mean} +/- {latency_std}'.format(\n model_name=self.model_name,\n batch_size=batch_size,\n latency_mean=latency_mean,\n latency_std=latency_std,\n )\n )\n return latency_mean, latency_std\n\n @measure_time\n def get_gflops(\n self,\n device: str = 'cpu',\n input_size: int = 224,\n ):\n return get_macs(\n model=self.model,\n input_size=(1, 3, input_size, input_size),\n device=device,\n )\n\n @measure_time\n def get_params(self):\n return get_parameters(model=self.model)\n\n\nif __name__ == '__main__':\n parser = argparse.ArgumentParser()\n\n parser.add_argument('-m', '--model', type=str, required=True)\n parser.add_argument('-b', '--batch_size', type=int, default=128)\n parser.add_argument(\n '-t', '--test_size', type=int, default=None, help='How many batches should be used for validation.'\n )\n parser.add_argument(\n '--warmup_steps',\n type=int,\n default=10,\n help='How many batches should be used to warm up latency measurement when benchmarking.',\n )\n parser.add_argument(\n '--measure_steps',\n type=int,\n default=50,\n help='How many batches should be used for actual latency measurement when benchmarking.',\n )\n parser.add_argument('--device', type=str, choices=['cpu', 'cuda'], default='cpu')\n parser.add_argument('--dataset', type=str, choices=['imagenet', 'imagenette', 'cifar10'], default='imagenet')\n parser.add_argument('--input_size', type=int, default=224)\n parser.add_argument('-d', '--debug', action='store_true')\n\n args = parser.parse_args()\n\n if args.debug:\n set_logger(logging.DEBUG)\n\n log.info('Settings: {}'.format(args))\n\n ref = TorchVisionReference(\n model_name=args.model,\n dataset=Dataset.get(args.dataset),\n )\n\n ref.validate(\n device=args.device,\n batch_size=args.batch_size,\n test_size=args.test_size,\n )\n ref.benchmark(\n device=args.device,\n batch_size=args.batch_size,\n input_size=args.input_size,\n warmup_steps=args.warmup_steps,\n measure_steps=args.measure_steps,\n )\n","repo_name":"IntelLabs/DyNAS-T","sub_path":"dynast/utils/reference.py","file_name":"reference.py","file_ext":"py","file_size_in_byte":6150,"program_lang":"python","lang":"en","doc_type":"code","stars":21,"dataset":"github-code","pt":"86"}
+{"seq_id":"43943982184","text":"import re\nfrom unidecode import unidecode\nfrom flask import request, redirect, url_for\nfrom urllib.parse import urlparse, urljoin\n\n\n_punct_re = re.compile(r'[\\t !\"#$&\\'()*\\-/<=>?@\\[\\\\\\]^_`{|},.]+')\n\n\ndef slugify(text, delim=u'-', max_len=None):\n \"\"\"Generates and ASCII-only slug.\"\"\"\n result = []\n for word in _punct_re.split(text.lower()):\n result.extend(unidecode(word).lower().split())\n\n slug = str(delim.join(result))\n return slug[:max_len] if max_len else slug\n\n\ndef is_safe_url(target):\n \"\"\"保证域名相同\"\"\"\n ref_url = urlparse(request.host_url)\n test_url = urlparse(urljoin(request.host_url, target))\n return test_url.scheme in ('http', 'https') and ref_url.netloc == test_url.netloc\n\n\ndef redirect_back(default='blog.index', **kwargs):\n for target in request.args.get('next'), request.referrer:\n if not target:\n continue\n if is_safe_url(target):\n return redirect(target)\n return redirect(url_for(default, **kwargs))\n\n","repo_name":"sky94520/Bluelog","sub_path":"bluelog/utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":1005,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"30789419500","text":"### NOTES: b_h5_in_elect_scale.py ###\n# finding elements in h5\nwanted = ['cu', 'cd', 'te']\nh5_channels = ['cd', 'fe', 'cu', 'zn', 'se', 'te']\nh5_channels = [x.encode('utf-8') for x in h5_channels]\n\ndef find_eles_in_channel_names(w, chan):\n chan = [x.decode('utf-8') for x in chan]\n index_list = [i for i,ele in enumerate(chan) for e in w if e == ele]\n return index_list\n\nnew_list = find_eles_in_channel_names(wanted, h5_channels)\n\n# adding elements to sample dictionary\nlist_of_lists = NBL3_2['XBIC_eles']\nh5s = NBL3_2['XBIC_h5s']\n\ndef extract_maps(H5s, list_of_lists):\n maps = [] #initialize master list\n for H5, channel_indices in zip(H5s, list_of_lists):\n scan_maps = [] #initialize internal (single scan) list\n XRF_fits = H5['/MAPS/XRF_fits'] #navigate to structure containing all fitted XRF data\n for element_index in channel_indices:\n map_of_interest = XRF_fits[element_index,:,:] #use element index to extract map of interest\n scan_maps.append(map_of_interest) #build internal list\n maps.append(scan_maps) #add internal list (i.e. a scan) to master list\n return \n\nlist_of_maps = extract_maps(h5s, list_of_lists)\n\nsample_dict = NBL3_2\nsample_maps = []\nfor h5, ch_inds in zip(sample_dict['XBIC_h5s'], sample_dict['XBIC_eles_i']):\n maps_of_eles_in_scan = [h5['/MAPS/XRF_fits'][ind,:,:] for ind in ch_inds]\n sample_maps.append(maps_of_eles_in_scan)\nkey = 'test_ele_maps'\nsample_dict.setdefault(key, sample_maps)","repo_name":"tzwalker/xrays","sub_path":"python/z_dev_notes/notes_electrical.py","file_name":"notes_electrical.py","file_ext":"py","file_size_in_byte":1690,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"30614833119","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Thu Mar 9 14:01:55 2023\n\n@author: Kingsley\n\"\"\"\n#importing dependencies\nimport numpy as np\nimport pandas as pd\nfrom joblib import load\nimport streamlit as st\nfrom sklearn.preprocessing import StandardScaler\n\n# loading in the data(The dumped model)\nmodel = load('../model/log_model.joblib')\n\n\n# creating an object of standardscaler\nsc = StandardScaler()\n\n\n\n#Backend\ndef predictions(IsActiveMember,EstimatedSalary, HasCrCard, Balance, Age, CreditScore):\n prediction = model.predict(np.array([[IsActiveMember,EstimatedSalary, HasCrCard, Balance, Age, CreditScore]]))\n\n return prediction\n\n# fuction to create the UI\ndef main():\n st.title('Bank customer churn model')\n \n\n\n Age = st.text_input('Enter your age: ')\n IsActiveMember = st.selectbox('Are you an active member? :', ['yes', 'no']) \n EstimatedSalary = st.text_input('What is your expected salary :')\n HasCrCard = st.text_input('Do you have a credit card? :')\n Balance = st.number_input('What is your current balance :')\n CreditScore = st.text_input('What is your credit score :')\n \n \n \n button = st.button('Predict')\n\n \n if IsActiveMember.lower() == 'yes':\n IsActiveMember = 1\n else:\n IsActiveMember = 0\n \n \n \n \n if HasCrCard .lower() == 'yes':\n HasCrCard = 1\n else:\n HasCrCard = 0\n \n \n \n \n \n \n \n \n result = ''\n \n if (button):\n result = predictions(IsActiveMember, EstimatedSalary, HasCrCard, Balance, Age, CreditScore)\n if result == 0:\n st.success('this user would not exit')\n else:\n st.success('this user would exit')\n \n \nif __name__ == '__main__':\n main()","repo_name":"princekingsleysunday/Churn_model","sub_path":"UI/app.py","file_name":"app.py","file_ext":"py","file_size_in_byte":1733,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"74448178203","text":"# import dependencies\nimport os\nimport numpy as np\nimport pandas as pd\nimport sklearn\nimport seaborn as sns\nimport matplotlib.pyplot as plt\nfrom plotly.subplots import make_subplots\nimport plotly.graph_objects as go\nimport plotly.express as px\nimport folium\nfrom folium import Marker,GeoJson,Choropleth, Circle\nfrom folium.plugins import HeatMap, MarkerCluster\nimport librosa.display\nfrom IPython.display import Audio\n\npd.set_option('display.max_columns', 50)\n# import data\ndf_train = pd.read_csv(\"../input/birdsong-recognition/train.csv\")\ndf_train.head\ndf_train.info()\ndf_train['ebird_code'].nunique()\ndf_train['species'].value_counts()\ndf_train['year'] = df_train['date'].apply(lambda x: x.split('-')[0])\ndf_train['month'] = df_train['date'].apply(lambda x: x.split('-')[1])\ngroup_year = df_train.groupby(['year']).size().reset_index(name='counts')\ngroup_year = group_year.iloc[3:]\ngroup_month = df_train.groupby(['month']).size().reset_index(name='counts')\n\n\n\nfig = make_subplots(rows=2, cols=1, subplot_titles = ('Number of recordings w.r.t year', 'Number of recordings w.r.t month'))\n\nfig.append_trace(go.Bar(\n x=group_year['year'],\n y=group_year['counts'],\n #tickmode='linear'\n), row=1, col=1)\n\nfig.append_trace(go.Bar(\n x=group_month['month'],\n y=group_month['counts'],\n), row=2, col=1)\n\n\n\nfig.update_layout(height=1000, width=700, showlegend=False, xaxis = dict(\n tickmode = 'linear',\n ), xaxis2 = dict(tickmode='linear'))\nfig.show()\nfig = make_subplots(rows=1, cols=2, specs=[[{\"type\": \"pie\"}, {\"type\": \"pie\"}]], subplot_titles = ('Distribution of Channels', 'Distribution of Sampling rate'))\n\ngroup_ch = df_train.groupby(['channels']).size().reset_index(name='counts')\nfig.append_trace(go.Pie(\n labels=group_ch['channels'],\n values=group_ch['counts'],\n), row=1, col=1)\n\ngroup_sr = df_train.groupby(['sampling_rate']).size().reset_index(name='counts')\nfig.append_trace(go.Pie(\n labels=group_sr['sampling_rate'],\n values=group_sr['counts'],\n), row=1, col=2)\n\n\nfig.show()\n\nmap = folium.Map(location=[54, 15], tiles='cartodbpositron', zoom_start=5)\ndf_train = df_train[df_train[\"latitude\"] != \"Not specified\"]\n\n#drop nan values and convert latitude and longitude to float\ndf_no_nan = df_train.dropna(subset=['latitude','longitude'], how='any')\ndf_no_nan.latitude.astype(float)\ndf_no_nan.longitude.astype(float)\n\nmap_cluster = MarkerCluster()\n\n# Add points to the map\nfor idx, row in df_no_nan.iterrows():\n map_cluster.add_child(Marker([row['latitude'], row['longitude']]))\n\nmap.add_child(map_cluster)\n\n#Display map\nmap\n\n\n\naudio_path = '../input/birdsong-recognition/train_audio/aldfly/XC134874.mp3'\nx, sr = librosa.load(audio_path)\nAudio(x, rate=sr)\naudio_path = '../input/birdsong-recognition/train_audio/amepip/XC111040.mp3'\nx, sr = librosa.load(audio_path)\nAudio(x, rate=sr)\naudio_path = '../input/birdsong-recognition/train_audio/banswa/XC138517.mp3'\nx, sr = librosa.load(audio_path)\nAudio(x, rate=sr)\naudio_path = '../input/birdsong-recognition/train_audio/bkhgro/XC109305.mp3'\nx, sr = librosa.load(audio_path)\nAudio(x, rate=sr)\nfig, ax = plt.subplots(4, figsize = (20, 9))\nfig.suptitle('Waveplots', fontsize=16)\naudio_path1 = '../input/birdsong-recognition/train_audio/aldfly/XC134874.mp3'\naudio_path2 = '../input/birdsong-recognition/train_audio/amepip/XC111040.mp3'\naudio_path3 = '../input/birdsong-recognition/train_audio/banswa/XC138517.mp3'\naudio_path4 = '../input/birdsong-recognition/train_audio/bkhgro/XC109305.mp3'\n\ny1, sr1 = librosa.load(audio_path1)\ny2, sr2 = librosa.load(audio_path2)\ny3, sr3 = librosa.load(audio_path3)\ny4, sr4 = librosa.load(audio_path4)\n\nlibrosa.display.waveplot(y=y1, sr=sr1, color = \"#3371FF\", ax=ax[0])\nlibrosa.display.waveplot(y=y2 , sr=sr2, color = \"#F7A81E\", ax=ax[1])\nlibrosa.display.waveplot(y=y3 , sr=sr3, color = \"#2BF71E\", ax=ax[2])\nlibrosa.display.waveplot(y=y4 , sr=sr4, color = \"#F71E6D\", ax=ax[3])\n\n# Visualize an STFT power spectrum\n\naudio_path = '../input/birdsong-recognition/train_audio/aldfly/XC134874.mp3'\ny, sr = librosa.load(audio_path)\nplt.figure(figsize=(12, 8))\nD = librosa.amplitude_to_db(librosa.stft(y))\nplt.subplot(4, 2, 1)\nlibrosa.display.specshow(D, y_axis='linear')\nplt.colorbar(format='%+2.0f dB')\nplt.title('Linear-frequency power spectrogram')\n\n# logarithmic scale\n\nplt.subplot(4, 2, 2)\nlibrosa.display.specshow(D, y_axis='log')\nplt.colorbar(format='%+2.0f dB')\nplt.title('Log-frequency power spectrogram')\n\n#CQT scale\n\nCQT = librosa.amplitude_to_db(librosa.cqt(y, sr=sr), ref=np.max)\nplt.subplot(4, 2, 3)\nlibrosa.display.specshow(CQT, y_axis='cqt_hz')\nplt.colorbar(format='%+2.0f dB')\nplt.title('Constant-Q power spectrogram (Hz)')\n\nCQT = librosa.amplitude_to_db(librosa.cqt(y, sr=sr), ref=np.max)\nplt.subplot(4, 2, 4)\nlibrosa.display.specshow(CQT, y_axis='cqt_note')\nplt.colorbar(format='%+2.0f dB')\nplt.title('Constant-Q power spectrogram (note)')\n\n#Chromagram\nC = librosa.feature.chroma_cqt(y=y, sr=sr)\nplt.subplot(4, 2, 5)\nlibrosa.display.specshow(C, y_axis='chroma')\nplt.colorbar()\nplt.title('Chromagram')\n\n# Log power spectrogram\nplt.subplot(4, 2, 6)\nlibrosa.display.specshow(D, x_axis='time', y_axis='log')\nplt.colorbar(format='%+2.0f dB')\nplt.title('Log power spectrogram')\n\n# let's zoom in \nn0 = 7000\nn1 = 7100\nplt.figure(figsize=(14, 5))\nplt.plot(y[n0:n1])\nzero_crossings = librosa.zero_crossings(y[n0:n1], pad=False)\nzero_crossings.shape\nprint(sum(zero_crossings))\nzcrs = librosa.feature.zero_crossing_rate(y)\nprint(zcrs.shape)\nplt.figure(figsize=(14, 5))\nplt.plot(zcrs[0])\nspectral_centroid = librosa.feature.spectral_centroid(y, sr=sr)[0]\nspectral_centroid.shape\nplt.figure(figsize=(14, 5))\nplt.plot(spectral_centroid.T, label='Spectral centroid')\nplt.ylabel('Hz')\nplt.xticks([])\nplt.xlim([0, spectral_centroid.shape[-1]])\nplt.legend()\n# time variable for visualization\nframes = range(len(spectral_centroid))\nt = librosa.frames_to_time(frames)\n\n# helper function to normalize the spectral centroid for visualization\n\ndef normalize(y, axis=0):\n return sklearn.preprocessing.minmax_scale(y, axis=axis)\n\nspectral_rolloff = librosa.feature.spectral_rolloff(y+0.01, sr=sr)[0]\nlibrosa.display.waveplot(y, sr=sr, alpha=0.4)\nplt.plot(t, normalize(spectral_rolloff), color='r')\naudio_path = '../input/birdsong-recognition/train_audio/amecro/XC114552.mp3'\ny, sr = librosa.load(audio_path)\nAudio(y, rate=sr)\ndb = librosa.core.amplitude_to_db(y)\nmean_db = np.abs(db).mean()\nstd_db = db.std()\nx_split = librosa.effects.split(y=y, top_db = mean_db - std_db)\nsilence_removed = []\nfor i in x_split:\n silence_removed.extend(y[i[0]:i[1]])\nsilence_removed = np.array(silence_removed)\nAudio(silence_removed, rate=sr)\n\n","repo_name":"aorursy/new-nb-6","sub_path":"rocky03_birdcall-eda-fe-and-silence-removal.py","file_name":"rocky03_birdcall-eda-fe-and-silence-removal.py","file_ext":"py","file_size_in_byte":6640,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"28417189203","text":"def gnome_sort(a):\n n = len(a)\n i = 0\n\n while i < n:\n #go right if the current array element is greater than the previous one\n #(or if we are at start )\n if a[i] > a[i-1] or i == 0:\n yield a, [i], [], []\n i+=1\n #else : make swap and go left\n else:\n yield a, [], [i], []\n a[i], a[i-1] = a[i-1], a[i]\n i-=1","repo_name":"sahidb/SORTING","sub_path":"gnome.py","file_name":"gnome.py","file_ext":"py","file_size_in_byte":403,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"70713188445","text":"from torchvision.datasets import ImageFolder\r\nfrom torch.utils.data import DataLoader\r\nimport torch\r\nfrom torch.utils.data import Dataset\r\nfrom torchvision import datasets\r\nfrom torchvision.transforms import ToTensor\r\nimport matplotlib.pyplot as plt\r\nfrom PIL import Image\r\n#from torchsummary import summary\r\nfrom torchvision.datasets import ImageFolder\r\nfrom torchvision.transforms import Compose, Resize, ToTensor, Grayscale\r\n\r\nimport os\r\nimport utils\r\nimport torch.optim as optim\r\nimport torch\r\nfrom torch import nn\r\nfrom torch.utils.data import DataLoader\r\nfrom torchvision import datasets, transforms\r\nimport torchvision.models as models\r\nfrom torch.utils.data import DataLoader, random_split\r\nfrom PIL import Image\r\nimport torchvision\r\nfrom torch import optim\r\nimport numpy as np\r\nfrom torch.utils.data.sampler import SubsetRandomSampler\r\nfrom imgaug import augmenters as iaa\r\nimport random\r\nimport matplotlib.image as mpimg\r\nimport cv2\r\n\r\n\r\n\r\n# Function to rename multiple files\r\ndef renamer(path):\r\n iterater = 0 \r\n for filename in os.listdir(path):\r\n print(str(iterater))\r\n dst = str(iterater) + \".jpg\"\r\n src = os.path.join(path, filename) # add trailing slash or backslash to path\r\n dst = os.path.join(path, dst) # add trailing slash or backslash to path\r\n os.rename(src, dst) \r\n iterater += 1\r\n\r\n#Images verification method\r\ndef verifier(path): \r\n for filename in os.listdir(path):\r\n try:\r\n img = Image.open(os.path.join(path, filename)) # add trailing slash or backslash to path\r\n except (Exception, FileNotFoundError, AttributeError):\r\n os.remove(os.path.join(path, filename)) # add trailing slash or backslash to path\r\n try:\r\n img.verify()\r\n except (Exception, FileNotFoundError, AttributeError):\r\n os.remove(os.path.join(path, filename)) # add trailing slash or backslash to path\r\n\r\n# Extra images generating loop\r\ndef img_generator(path, no_gen):\r\n i = 0\r\n for filename in os.listdir(path):\r\n #try:\r\n i +=1\r\n img = load_image(path + '/' + filename)\r\n img = img.astype('uint8')\r\n img = cv2.cvtColor(img, cv2.COLOR_RGB2GRAY)\r\n save_image(augment(img), path + '/Generated'+ str(i) +'.jpg')\r\n #except (ValueError, OSError):\r\n # print(\"in exception\")\r\n # pass\r\n\r\ndef load_image(infilename):\r\n img = Image.open( infilename )\r\n img.load()\r\n data = np.asarray( img, dtype=\"int32\" )\r\n return data\r\n\r\ndef save_image(npdata, outfilename) :\r\n img = Image.fromarray( np.asarray( np.clip(npdata,0,255), dtype=\"uint8\"), \"L\" )\r\n img.save(outfilename, \"JPEG\")\r\n\r\n#Generating extra preprocessed images\r\n#This could be edited to choose the augmentation we want\r\ndef augment(img):\r\n par_1 = random.uniform(0.1, 1.0)\r\n par_2 = random.uniform(1.0, 15.0)\r\n par_3 = random.uniform(2.0, 40.0)\r\n par_4 = random.uniform(0.1, 1.0)\r\n par_5 = random.uniform(0.1, 1.0)\r\n par_6 = random.uniform(0.01, 0.2)\r\n affine = iaa.Affine(rotate=(-10, 10), mode = 'edge')\r\n img = affine.augment_image(img)\r\n #blurer = iaa.GaussianBlur(iaa.Uniform(0.1,par_1)) \r\n #img = blurer.augment_image(img)\r\n elastic = iaa.ElasticTransformation(sigma=par_2, alpha=par_3)\r\n img=elastic.augment_image(img)\r\n flp=iaa.Flipud(p=par_4)\r\n img=flp.augment_image(img)\r\n salt = iaa.SaltAndPepper(p=par_6)\r\n img=salt.augment_image(img)\r\n flp2=iaa.Fliplr(p=par_5)\r\n img=flp2.augment_image(img)\r\n crop = iaa.CropToFixedSize(1500,1300,position=\"center-bottom\")\r\n img = crop.augment_image(img)\r\n return img\r\n\r\ndef augment2(img):\r\n brightness = iaa.WithBrightnessChannels(iaa.Add((-50, 50)))\r\n img = brightness.augment_image(img)\r\n aug = iaa.WithHueAndSaturation([\r\n iaa.WithChannels(0, iaa.Add((-30, 10))),\r\n iaa.WithChannels(1, [\r\n iaa.Multiply((0.5, 1.5)),\r\n iaa.LinearContrast((0.75, 1.25))])])\r\n img = aug.augment_image(img)\r\n hueSaturation = iaa.MultiplyHueAndSaturation(mul_hue=(0.5, 1.5))\r\n img = hueSaturation.augment_image(img)\r\n return img\r\n\r\n\r\ndef augment_all_classes(PATH):\r\n for class_folder in os.listdir(PATH):\r\n class_path = PATH + '/' + class_folder\r\n num_img = len(os.listdir(class_path))\r\n img_generator(class_path, num_img-1)\r\n\r\ndef remove_augmented_img(PATH): \r\n for class_folder in os.listdir(PATH):\r\n class_path = PATH + '/' + class_folder\r\n for img_name in os.listdir(class_path):\r\n # Check if the file is an image file\r\n if ('Generated' in img_name):\r\n # Delete the image file using os.remove()\r\n image_path = class_path + \"/\" + img_name\r\n os.remove(image_path)\r\n\r\ndef plot_images(PATH, class_name, top=25):\r\n class_path = PATH + '/' + class_name\r\n plt.figure(figsize = (12,12))\r\n num_img = 0\r\n for img_name in os.listdir(class_path):\r\n if num_img >= top:\r\n break\r\n num_img += 1\r\n image_path = os.path.join(class_path, img_name)\r\n plt.subplot(5, 5, num_img)\r\n img = mpimg.imread(image_path)\r\n plt.imshow(img)\r\n plt.tight_layout()\r\n plt.show()\r\n\r\ndef main():\r\n augment_all_classes('C:/Users/ingvilrh/OneDrive - NTNU/Masteroppgave23/full_fishdata')\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()","repo_name":"ingvildrh/builtOnA3","sub_path":"data_augmentation.py","file_name":"data_augmentation.py","file_ext":"py","file_size_in_byte":5418,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"30096991919","text":"import json\nimport logging\nimport hashlib\nfrom os.path import exists\n\nimport requests\nfrom requests.sessions import Session\nfrom M2Crypto import DSA\n\nimport active_document as ad\nfrom sugar_network.toolkit import sugar\nfrom sugar_network.toolkit.router import Redirect\nfrom sugar_network import client\nfrom active_toolkit import coroutine, util, enforce\n\n\nConnectionError = requests.ConnectionError\n\n_RECONNECTION_NUMBER = 1\n_RECONNECTION_TIMEOUT = 3\n\n_logger = logging.getLogger('http')\n\n\nclass Client(object):\n\n def __init__(self, api_url='', sugar_auth=False, **kwargs):\n self.api_url = api_url\n self.params = kwargs\n self._sugar_auth = sugar_auth\n\n verify = True\n if client.no_check_certificate.value:\n verify = False\n elif client.certfile.value:\n verify = client.certfile.value\n\n headers = {'Accept-Language': ad.default_lang()}\n if self._sugar_auth:\n privkey_path = sugar.privkey_path()\n if not exists(privkey_path):\n _logger.warning('Sugar session was never started, '\n 'fallback to anonymous mode')\n self._sugar_auth = False\n else:\n uid = sugar.uid()\n headers['sugar_user'] = uid\n headers['sugar_user_signature'] = _sign(privkey_path, uid)\n\n self._session = Session(headers=headers, verify=verify, prefetch=False)\n\n def __enter__(self):\n return self\n\n def __exit__(self, *args):\n self.close()\n\n def close(self):\n self._session.close()\n\n def exists(self, path):\n response = self.request('GET', path, allowed=[404])\n return response.status_code != 404\n\n def get(self, path_=None, **kwargs):\n response = self.request('GET', path_, params=kwargs)\n return self._decode_reply(response)\n\n def post(self, path_=None, data_=None, **kwargs):\n response = self.request('POST', path_, json.dumps(data_),\n headers={'Content-Type': 'application/json'}, params=kwargs)\n return self._decode_reply(response)\n\n def put(self, path_=None, data_=None, **kwargs):\n response = self.request('PUT', path_, json.dumps(data_),\n headers={'Content-Type': 'application/json'}, params=kwargs)\n return self._decode_reply(response)\n\n def delete(self, path_=None, **kwargs):\n response = self.request('DELETE', path_, params=kwargs)\n return self._decode_reply(response)\n\n def request(self, method, path=None, data=None, headers=None, allowed=None,\n params=None, **kwargs):\n if not path:\n path = ['']\n if not isinstance(path, basestring):\n path = '/'.join([i.strip('/') for i in [self.api_url] + path])\n\n if params is None:\n params = self.params\n else:\n params.update(self.params)\n\n while True:\n try:\n response = requests.request(method, path, data=data,\n headers=headers, session=self._session, params=params,\n **kwargs)\n except requests.exceptions.SSLError:\n _logger.warning('Use --no-check-certificate to avoid checks')\n raise\n\n if response.status_code != 200:\n if response.status_code == 401:\n enforce(self._sugar_auth,\n 'Operation is not available in anonymous mode')\n _logger.info('User is not registered on the server, '\n 'registering')\n self._register()\n continue\n if allowed and response.status_code in allowed:\n return response\n content = response.content\n try:\n error = json.loads(content)\n except Exception:\n _logger.debug('Got %s HTTP error for %r request:\\n%s',\n response.status_code, path, content)\n response.raise_for_status()\n else:\n raise RuntimeError(error['error'])\n\n return response\n\n def call(self, request, response=None):\n params = request.copy()\n method = params.pop('method')\n document = params.pop('document') if 'document' in params else None\n guid = params.pop('guid') if 'guid' in params else None\n prop = params.pop('prop') if 'prop' in params else None\n\n path = []\n if document:\n path.append(document)\n if guid:\n path.append(guid)\n if prop:\n path.append(prop)\n\n if request.content_type == 'application/json':\n request.content = json.dumps(request.content)\n\n headers = None\n if request.content is not None:\n headers = {}\n headers['Content-Type'] = \\\n request.content_type or 'application/octet-stream'\n headers['Content-Length'] = str(len(request.content))\n elif request.content_stream is not None:\n headers = {}\n headers['Content-Type'] = \\\n request.content_type or 'application/octet-stream'\n # TODO Avoid reading the full content at once\n request.content = request.content_stream.read()\n headers['Content-Length'] = str(len(request.content))\n\n reply = self.request(method, path, data=request.content,\n params=params, headers=headers, allowed=[303],\n allow_redirects=request.allow_redirects)\n\n if reply.status_code == 303:\n raise Redirect(reply.headers['Location'])\n\n if response is not None:\n if 'Content-Disposition' in reply.headers:\n response['Content-Disposition'] = \\\n reply.headers['Content-Disposition']\n if 'Content-Type' in reply.headers:\n response.content_type = reply.headers['Content-Type']\n\n result = self._decode_reply(reply)\n if result is None:\n result = reply.raw\n return result\n\n def subscribe(self):\n return _Subscription(self, _RECONNECTION_NUMBER)\n\n def _register(self):\n self.post(['user'], {\n 'name': sugar.nickname() or '',\n 'color': sugar.color() or '#000000,#000000',\n 'machine_sn': sugar.machine_sn() or '',\n 'machine_uuid': sugar.machine_uuid() or '',\n 'pubkey': sugar.pubkey(),\n })\n\n def _decode_reply(self, response):\n if response.headers.get('Content-Type') == 'application/json':\n return json.loads(response.content)\n else:\n return response.content\n\n\nclass _Subscription(object):\n\n def __init__(self, aclient, tries):\n self._tries = tries or 1\n self._client = aclient\n self._response = None\n\n def __iter__(self):\n while True:\n event = self.pull()\n if event is not None:\n yield event\n\n def fileno(self):\n # pylint: disable-msg=W0212\n return self._handshake()._fp.fp.fileno()\n\n def pull(self):\n for a_try in (1, 0):\n stream = self._handshake()\n try:\n line = _readline(stream)\n enforce(line is not None, 'Subscription aborted')\n break\n except Exception:\n if a_try == 0:\n raise\n util.exception('Failed to read from %r subscription, '\n 'will resubscribe', self._client.api_url)\n self._response = None\n\n if line.startswith('data: '):\n try:\n return json.loads(line.split(' ', 1)[1])\n except Exception:\n util.exception('Failed to parse %r event from %r subscription',\n line, self._client.api_url)\n\n def _handshake(self):\n if self._response is not None:\n return self._response.raw\n\n _logger.debug('Subscribe to %r', self._client.api_url)\n\n for a_try in reversed(xrange(self._tries)):\n try:\n self._response = self._client.request('GET',\n params={'cmd': 'subscribe'})\n break\n except Exception:\n if a_try == 0:\n raise\n util.exception(_logger,\n 'Cannot subscribe to %r, retry in %s second(s)',\n self._client.api_url, _RECONNECTION_TIMEOUT)\n coroutine.sleep(_RECONNECTION_TIMEOUT)\n\n return self._response.raw\n\n\ndef _sign(privkey_path, data):\n key = DSA.load_key(privkey_path)\n return key.sign_asn1(hashlib.sha1(data).digest()).encode('hex')\n\n\ndef _readline(stream):\n line = None\n while True:\n char = stream.read(1)\n if not char:\n break\n if line is None:\n line = char\n else:\n line += char\n if char == '\\n':\n break\n return line\n","repo_name":"sugar-activities/4619-activity","sub_path":"site-packages/sugar_network/toolkit/http.py","file_name":"http.py","file_ext":"py","file_size_in_byte":9106,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"10761683494","text":"\ndef words():\n holidayR = str(input('Holiday: '))\n noun1R = str(input('noun: '))\n placeR = str(input('A place please: ')),\n personR = str(input('Person: ')),\n adj1R = str(input('Adjective: ')),\n body_partR = str(input('body part: ')),\n verb1R = str(input('verb: ')),\n adj2R = str(input('Adjective again: ')),\n noun2R = str(input('noun: ')),\n foodR = str(input('food: ')),\n plural_nounR = str(input('plural noun!: '))\n return holidayR, noun1R , placeR, personR, adj1R, body_partR, verb1R, adj2R, noun2R, foodR, plural_nounR\n\ndef main(holidayR, noun1R , placeR, personR, adj1R, body_partR, verb1R, adj2R, noun2R, foodR, plural_nounR):\n madlibs = \"I can't believe it's already {holiday}! \\n\" \\\n \"I can't wait to put on my {noun1} and visit every {place} in my neighborhood.\\n\" \\\n \"This year, I am going to dress up as {person} with {adj1} {body_part}.\\n\" \\\n \"Before I {verb1}, I make sure to grab my {adj2} {noun2} to hold all of my {food}.\\n\" \\\n \"Finally, all of my {plural_noun} are ready to go!\".format(\n holiday= holidayR,\n noun1 = noun1R ,\n place = placeR,\n person = personR,\n adj1 = adj1R,\n body_part = body_partR,\n verb1 = verb1R,\n adj2 = adj2R,\n noun2 = noun2R,\n food = foodR,\n plural_noun = plural_nounR)\n print(madlibs)\n\n\nif __name__ == '__main__':\n holidayR, noun1R , placeR, personR, adj1R, body_partR, verb1R, adj2R, noun2R, foodR, plural_nounR = words()\n main(holidayR, noun1R , placeR, personR, adj1R, body_partR, verb1R, adj2R, noun2R, foodR, plural_nounR)\n\n\n\n\n","repo_name":"aaron-silicon-valley/madlibs","sub_path":"madlib.py","file_name":"madlib.py","file_ext":"py","file_size_in_byte":1607,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"11636603301","text":"from panda3d.core import NodePath\nfrom panda3d.core import CollisionTraverser\nfrom panda3d.core import CollisionHandlerQueue\nfrom panda3d.core import BitMask32\n\ndef isCmCmCollided(objcm1, objcm2, toggleplot = False):\n \"\"\"\n detect the collision between collision models\n\n :return: True or False\n\n author: weiwei, Toyonaka\n date: 20190312\n \"\"\"\n\n oocnp = NodePath(\"collision nodepath\")\n obj1cnp = objcm1.copycdnpTo(oocnp)\n obj2cnp = objcm2.copycdnpTo(oocnp)\n if toggleplot:\n oocnp.reparentTo(base.render)\n obj1cnp.show()\n obj2cnp.show()\n ctrav = CollisionTraverser()\n chan = CollisionHandlerQueue()\n ctrav.addCollider(obj1cnp, chan)\n ctrav.traverse(oocnp)\n if chan.getNumEntries() > 0:\n return True\n else:\n return False\n\ndef isCmCmListCollided(objcm, objcmlist, toggleplot = False):\n \"\"\"\n detect the collision between a collision model and a collision model list\n\n :return: True or False\n\n author: weiwei, Toyonaka\n date: 20190312\n \"\"\"\n\n oocnp = NodePath(\"collision nodepath\")\n objcnp = objcm.copycdnpTo(oocnp)\n objcnplist = []\n for objcm2 in objcmlist:\n objcnplist.append(objcm2.copycdnpTo(oocnp))\n if toggleplot:\n oocnp.reparentTo(base.render)\n objcnp.show()\n for obj2cnp in objcnplist:\n obj2cnp.show()\n ctrav = CollisionTraverser()\n chan = CollisionHandlerQueue()\n ctrav.addCollider(objcnp, chan)\n ctrav.traverse(oocnp)\n if chan.getNumEntries() > 0:\n return True\n else:\n return False\n\ndef isCmListCmListCollided(objcmlist0, objcmlist1, toggleplot = False):\n \"\"\"\n detect the collision between two collision model lists\n\n :return: True or False\n\n author: weiwei, Toyonaka\n date: 20190422\n \"\"\"\n\n oocnp = NodePath(\"collision nodepath\")\n obj0cnplist = []\n for objcm0 in objcmlist0:\n obj0cnplist.append(objcm0.copycdnpTo(oocnp))\n obj1cnplist = []\n for objcm1 in objcmlist1:\n obj1cnplist.append(objcm1.copycdnpTo(oocnp))\n if toggleplot:\n oocnp.reparentTo(base.render)\n for obj0cnp in obj0cnplist:\n obj0cnp.show()\n for obj1cnp in obj1cnplist:\n obj1cnp.show()\n ctrav = CollisionTraverser()\n chan = CollisionHandlerQueue()\n for obj0cnp in obj0cnplist:\n obj0cnp.node().setFromCollideMask(BitMask32(0x1))\n obj0cnp.setCollideMask(BitMask32(0x2))\n ctrav.addCollider(obj0cnp, chan)\n ctrav.traverse(oocnp)\n if chan.getNumEntries() > 0:\n return True\n else:\n return False\n\nif __name__ == '__main__':\n import utiltools.robotmath as rm\n import numpy as np\n import environment.bunrisettingfree as bunrisettingfree\n import pandaplotutils.pandactrl as pc\n import robotsim.ur3dual.ur3dual as ur3dualsim\n import robotsim.ur3dual.ur3dualmesh as ur3dualsimmesh\n import manipulation.grip.robotiq85.robotiq85 as rtq85\n\n base = pc.World(camp=[2700,300,2700], lookatp=[0,0,1000])\n env = bunrisettingfree.Env()\n env.reparentTo(base.render)\n objcm = env.loadobj(\"bunnysim.stl\")\n\n objcm.setColor(.2,.5,0,1)\n objcm.setPos(400,-200,1200)\n objcm.reparentTo(base.render)\n objcm.showcn()\n obscmlist = env.getstationaryobslist()\n for obscm in obscmlist:\n obscm.showcn()\n\n objpos = np.array([400,-300,1200])\n objrot = rm.rodrigues([0,1,0], 45)\n objcm2 = env.loadobj(\"housing.stl\")\n objcm2.setColor(1,.5,0,1)\n env.addchangableobs(base.render, objcm2, objpos, objrot)\n\n hndfa = rtq85.Robotiq85Factory()\n rgthnd = hndfa.genHand()\n lfthnd = hndfa.genHand()\n robotsim = ur3dualsim.Ur3DualRobot(rgthnd = rgthnd, lfthnd = lfthnd)\n robotmeshgen = ur3dualsimmesh.Ur3DualMesh()\n robotmesh = robotmeshgen.genmnp(robotsim, toggleendcoord=False)\n robotmesh.reparentTo(base.render)\n\n print(isCmCmListCollided(objcm, obscmlist))\n\n base.run()","repo_name":"wangyan-hlab/wrs-nxt-IL-RL","sub_path":"environment/pandacdhelper.py","file_name":"pandacdhelper.py","file_ext":"py","file_size_in_byte":3918,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"70343018203","text":"#PES Python Assignments SET 1\n#15 Python program Basics\n#Python program Basics\t-\n##Create a list of 5 names and check given name exist in the List.\n## a) Use membership operator (IN) to check the presence of an element.\n## b) Perform above task without using membership operator.\n## c) Print the elements of the list in reverse direction.\n##\n\n\n#Manoj Dixit - 20141404\n#Python 3.9.0\n\na = ['Suraj','Manoj','Sai','Ranajit','Swati']\n\nprint('Below is the list\\n',a)\n\nb=input('Please enter a string to check whether it exists in list : ')\n\nif b in a:\n print(b,'Exists in the list (via IN operator)')\nelse:\n print(b,'Does not exist in the list')\n\nb=input('Please enter a string to check whether it exists in list : ')\n\nfor i in range(len(a)):\n if a[i]==b:\n print(b,'Exists in the list (without membership operator)')\n break\n\na.reverse()\nprint('This is list reversed\\n',a)\n\n##Result:\n## Below is the list\n## ['Suraj', 'Manoj', 'Sai', 'Ranajit', 'Swati']\n## Please enter a string to check whether it exists in list : Manoj\n## Manoj Exists in the list (via IN operator)\n## Please enter a string to check whether it exists in list : Suraj\n## Suraj Exists in the list (without membership operator)\n## This is list reversed\n## ['Swati', 'Ranajit', 'Sai', 'Manoj', 'Suraj']\n\n\n \n","repo_name":"mndxt007/PythonL1_Code","sub_path":"1_Programs/15.py","file_name":"15.py","file_ext":"py","file_size_in_byte":1337,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"13805523401","text":"from translation.base import Translator\nimport os\nimport requests\nimport uuid\nimport json\n\n\nclass AzureTranslator(Translator):\n def __init__(self):\n token = os.environ.get('AZURE_TOKEN')\n if token is None:\n raise Exception('Environment variable \"AZURE_TOKEN\" must be set')\n self.__azure_token = token\n\n def translate(self, src_text, src_lang, dest_lang):\n endpoint = 'https://api-nam.cognitive.microsofttranslator.com/'\n path = '/translate?api-version=3.0'\n params = '&from=' + src_lang + '&to=' + dest_lang\n constructed_url = endpoint + path + params\n\n headers = {\n 'Ocp-Apim-Subscription-Key': self.__azure_token,\n 'Content-type': 'application/json',\n 'X-ClientTraceId': str(uuid.uuid4())\n }\n\n body = [{\n 'text': src_text\n }]\n request = requests.post(constructed_url, headers=headers, json=body)\n response = request.json()\n\n return response[0]['translations'][0]['text']\n","repo_name":"vincentlabonte/hercules-extraction","sub_path":"translation/azure.py","file_name":"azure.py","file_ext":"py","file_size_in_byte":1032,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"10661510580","text":"\nimport numpy as np\nimport math\nimport pandas as pd\n\nclass IG():\n def __init__(self,X,y):\n\n X = np.array(X)\n n_feature = np.shape(X)[1]\n n_y = len(y)\n\n orig_H = 0\n for i in set(y):\n orig_H += -(y.count(i)/n_y)*math.log(y.count(i)/n_y)\n print(\"y is \"+str(y.count(i)))\n\n condi_H_list = []\n for i in range(n_feature):\n feature = X[:,i]\n sourted_feature = sorted(feature)\n threshold = [(sourted_feature[inde-1]+sourted_feature[inde])/2 for inde in range(len(feature)) if inde != 0 ]\n\n if max(feature) in threshold:\n threshold.remove(max(feature))\n if min(feature) in threshold:\n threshold.remove(min(feature))\n\n pre_H = 0\n for thre in set(threshold):\n lower = [y[s] for s in range(len(feature)) if feature[s] < thre]\n highter = [y[s] for s in range(len(feature)) if feature[s] > thre]\n H_l = 0\n for l in set(lower):\n H_l += -(lower.count(l) / len(lower))*math.log(lower.count(l) / len(lower))\n H_h = 0\n for h in set(highter):\n H_h += -(highter.count(h) / len(highter))*math.log(highter.count(h) / len(highter))\n temp_condi_H = len(lower)/n_y *H_l+ len(highter)/n_y * H_h\n condi_H = orig_H - temp_condi_H\n pre_H = max(pre_H,condi_H)\n condi_H_list.append(pre_H)\n\n self.IG = condi_H_list\n\n\n def getIG(self):\n return self.IG\nif __name__ == \"__main__\":\n\n metrics = pd.read_csv('dataset/' + 'commit_metrics' + '.csv')\n metrics_fillnan=metrics.fillna(0)\n\n metrics_drop=metrics_fillnan.drop(labels=['file','class','type'],axis=1)\n\n # dataSet=metrics_fillnan.drop(labels=0)\n dataSet = metrics_drop.values.tolist()\n features=metrics_drop.columns.tolist()\n\n\n\n # X = [[1,0,0,1],\n # [0,1,1,1],\n # [0,0,1,0]]\n # y = [0,0,1]\n print(IG(dataSet,features).getIG())\n\n # print(IG(X,y).getIG())\n\n\n\n\n\n","repo_name":"funing230/feature_select","sub_path":"next.py","file_name":"next.py","file_ext":"py","file_size_in_byte":2104,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"44729975907","text":"def calculation_mean(row: list) -> object:\n \"\"\"\n\n :param row: every line for date\n :return:alp_score for calculation of mean values\n \"\"\"\n row = row[:-1]\n\n score_list = row.split(':')\n\n student = score_list[0]\n score = score_list[1].split(',')\n\n first_score = int(score[0])\n second_score = int(score[1])\n third_score = int(score[2])\n\n mean_value = (first_score + second_score + third_score) / 3\n value = cal_alp(mean_value, student)\n return value\n\n\ndef cal_alp(mean, stu):\n \"\"\"\n\n :param mean: mean score\n :param stu: student name\n :return: alp_score\n \"\"\"\n if mean > 90:\n alp_score = \"AA\"\n elif mean > 80:\n alp_score = \"BA\"\n elif mean > 70:\n alp_score = \"BC\"\n elif mean > 60:\n alp_score = \"CA\"\n elif mean > 50:\n alp_score = \"CC\"\n elif mean > 40:\n alp_score = \"DC\"\n else:\n alp_score = \"FF\"\n return stu + \":\" + alp_score + \"\\n\"\n\n\ndef mean_score():\n \"\"\"\n\n :return: mean score\n \"\"\"\n with open(\"Exam_score.txt\", \"r\") as file:\n for i in file:\n print(calculation_mean(i))\n\n\ndef enter_score():\n \"\"\"\n\n :return: write file\n \"\"\"\n name = input(\"Student's name : \")\n surname = input(\"Student's surname : \")\n first_score = input(\"Student's first score: \")\n second_score = input(\"Student's second score : \")\n third_score = input(\"Student's third score : \")\n\n with open(\"Exam_score.txt\", \"a\") as file:\n file.write(name + ' ' + surname + ':' + first_score + ',' + second_score + ',' + third_score + '\\n')\n\n\ndef save_score():\n \"\"\"\n\n :return: Exam_score.txt file and Result_score.txt file\n \"\"\"\n with open('Exam_score.txt', 'r') as file:\n result_list = []\n for i in file:\n result_list.append(calculation_mean(i))\n\n with open('Result_score.txt', \"w\") as file2:\n for j in result_list:\n file2.write(j)\n\n\ndef main():\n \"\"\"\n this function that can enter student name, surname and grades.\n its calculation the overage of grades,determine the letter grades and its saved all information\n :return:\n \"\"\"\n while True:\n process = input('1-Read Score\\n2-Enter Score\\n3-Save Score\\n4-Exit\\n')\n\n if process == '1':\n mean_score()\n elif process == '2':\n enter_score()\n elif process == '3':\n save_score()\n else:\n break\n\n\nmain()\n","repo_name":"sinaalparslan/Python","sub_path":"exercises/exercise4/exam_score/exam_score.py","file_name":"exam_score.py","file_ext":"py","file_size_in_byte":2450,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12727086373","text":"import os\nimport requests\n\nfrom scrapers.restaurant_scraper import RestaurantScraper, Dish\n\n\nclass ZomatoScraper(RestaurantScraper):\n\n def __init__(self):\n super().__init__()\n self.api_key = os.environ['ZOMATO_API_KEY']\n self.url = 'https://developers.zomato.com/api/v2.1/dailymenu?res_id=%d'\n self.res_id = None\n self.header = {\n 'user_key': self.api_key\n }\n\n def scrape(self):\n url = self.url % self.res_id\n response = requests.get(url, headers=self.header)\n\n response_js = response.json()\n\n if 'daily_menus' not in response_js or not response_js['daily_menus']:\n return\n\n dish_list = response_js['daily_menus'][0]['daily_menu']['dishes']\n ids = [dish['dish']['dish_id'] for dish in dish_list]\n\n prev_dish = ''\n for i, dish in enumerate(dish_list):\n if dish['dish']['dish_id'] in ids[i + 1:]:\n continue\n\n name = dish['dish']['name'].replace(' ', ' ').strip()\n price = dish['dish']['price'].strip()\n\n if not name or not price:\n if name:\n prev_dish = name\n continue\n\n if prev_dish:\n name = (prev_dish + ' ' + name).replace(' ', ' ').strip()\n prev_dish = ''\n\n self.dish_array.append(\n Dish(name, price)\n )\n","repo_name":"miguelamavel/slack-lunch","sub_path":"scrapers/zomato_scraper.py","file_name":"zomato_scraper.py","file_ext":"py","file_size_in_byte":1419,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"38592399398","text":"import argparse\nimport json\nimport pathlib\nimport shutil\nimport subprocess\nimport sys\nfrom logging import getLogger\nfrom time import sleep\nfrom typing import Callable, List\n\nimport appdirs\n\nimport onlinejudge_jordan.parse_download_history as parse_download_history\n\nlogger = getLogger(__name__)\n\n\n# APIリクエストの間隔の定数\nSHORT_DELAY = 0.1\nN_LONG_DELAY = 10\nLONG_DELAY = (1 - SHORT_DELAY) * N_LONG_DELAY\n\n\ndef add_subparser(subparsers: argparse.Action) -> None:\n subparsers_add_parser: Callable[\n ..., argparse.ArgumentParser\n ] = subparsers.add_parser # type: ignore\n subparser = subparsers_add_parser(\n \"prepare\",\n aliases=[\"p\", \"pp\"],\n help=\"oj-prepare を実行する 追加で問題のページをブラウザで開く 提出ファイルをVSCodeで開く\",\n )\n\n default_config_path = (\n pathlib.Path(appdirs.user_config_dir(\"online-judge-tools\"))\n / \"prepare.config.toml\"\n )\n\n help_url = \"コンテスト OR 問題のURL\"\n help_n = \"ブラウザとVSCodeで開く問題の数の最大値 デフォルト=10\"\n help_coding = '提出ファイルのパス デフォルト=[\"main.cpp\", \"main.py\"]'\n help_stdin = \"標準入力リダイレクトファイルのパス\"\n\n subparser.add_argument(\"url\", type=str, help=help_url)\n subparser.add_argument(\"-n\", \"--number\", type=int, default=10, help=help_n)\n subparser.add_argument(\n \"-c\",\n \"--coding_file\",\n type=str,\n nargs=\"*\",\n default=[\"main.cpp\", \"main.py\"],\n help=help_coding,\n )\n subparser.add_argument(\n \"-s\", \"--stdin-file\", type=str, nargs=\"*\", default=[], help=help_stdin\n )\n subparser.add_argument(\n \"--config-file\",\n type=pathlib.Path,\n help=f\"\"\"default: {str(default_config_path)}\"\"\",\n )\n\n subparser.set_defaults(handler=run)\n\n\ndef open_problems(\n problem_urls: List[str],\n coding_files: List[str],\n stdin_files: List[str],\n is_open_browser: bool = True,\n is_open_vscode: bool = True,\n):\n \"\"\"\n 問題をブラウザで開く\n 提出ファイルをVSCodeで開く\n 標準入力リダイレクトファイルを作成する\n \"\"\"\n history = parse_download_history.parse_oj_download_history()\n\n for i, url in enumerate(problem_urls):\n logger.info(\"#{} {} を処理します\".format(i + 1, url))\n logger.info(\n \"問題をブラウザで開く {} \"\n \"提出ファイルをVSCodeで開く {} \"\n \"標準入力リダイレクトファイルを作成する {}\".format(is_open_browser, is_open_vscode, True)\n )\n if url not in history:\n logger.warning(\n \"download_history.jsonl に {} のデータが見つかりません スキップします\".format(url)\n )\n continue\n\n data = history[url]\n path = pathlib.Path(data[\"directory\"])\n\n if is_open_browser:\n res = subprocess.run([\"open\", url])\n if res.returncode != 0:\n logger.warning(\"urlをopenできませんでした\")\n\n if is_open_vscode:\n for file in coding_files:\n for generated_file in path.glob(file):\n subprocess.run([\"code\", generated_file])\n\n for file in stdin_files:\n tofile = pathlib.Path(path / file)\n # testファイル内の拡張子.inで辞書順最小のファイルがコピー元\n # 辞書順最小のファイルが最初のテストケースのことがおおいため\n fromfile_path = pathlib.Path(path / \"test\")\n fromfiles = list(sorted(fromfile_path.glob(\"*.in\")))\n for fromfile in fromfiles:\n shutil.copy(fromfile, tofile)\n break\n\n # APIリクエストの間隔を取る\n sleep(SHORT_DELAY)\n if (i + 1) % N_LONG_DELAY == 0:\n sleep(LONG_DELAY)\n\n\ndef run(args: argparse.Namespace) -> bool:\n # 引数をパース\n arg_url: str = args.url\n n_open: int = args.number\n path_config_file: str = args.config_file\n coding_files: List[str] = args.coding_file\n stdin_files: List[str] = args.stdin_file\n\n # oj-apiからコンテスト情報のJSONを取得\n contest_raw = subprocess.run(\n [\"oj-api\", \"get-contest\", arg_url], encoding=\"utf-8\", stdout=subprocess.PIPE\n )\n if contest_raw.returncode != 0:\n logger.error(\"oj-api get-contestに失敗しました\")\n sys.exit(1)\n contest = json.loads(contest_raw.stdout)\n logger.info(\"oj-api get-contestに成功しました\")\n\n # コンテスト情報のJSONをパースして、各問題のURLリストを作成\n problem_urls: List[str] = []\n for problem in contest[\"result\"][\"problems\"]:\n url = problem[\"url\"]\n problem_urls.append(url)\n # 引数のURLがコンテストではなく問題のURLのとき、その問題のURL以外を削除\n if problem_urls.count(arg_url) > 0:\n problem_urls = [arg_url]\n\n logger.info(\"処理対象のコンテスト OR 問題のURLです\")\n logger.info(problem_urls)\n\n # 各問題を走査\n has_opened_file = False\n for i, url in enumerate(problem_urls):\n # 問題URLをoj-prepareする\n logger.info(\"#{} {} を処理します\".format(i + 1, url))\n # 設定ファイルがあるならoj-prepareにわたす\n set_config = (\n [\"--config-file\", path_config_file] if path_config_file is not None else []\n )\n res = subprocess.run([\"oj-prepare\", url] + set_config)\n if res.returncode != 0:\n logger.warning(\"{} のoj-prepareに失敗しました\".format(url))\n\n # 最大問題数に達する、または全問題を走査したら\n # 問題をブラウザとVSCodeで開く\n if not has_opened_file and ((i + 1) == n_open or (i + 1) == len(problem_urls)):\n # 問題が1つのときは、問題をブラウザで開かない\n # URLをコピーするため、すでに問題を開いている想定のため\n is_open_browser = True if len(problem_urls) > 1 else False\n open_problems(\n problem_urls[: i + 1],\n coding_files,\n stdin_files,\n is_open_browser,\n )\n has_opened_file = True\n\n # APIリクエストの間隔を取る\n sleep(SHORT_DELAY)\n if (i + 1) % N_LONG_DELAY == 0:\n sleep(LONG_DELAY)\n\n # 空ファイル作成 ↓の順番にしたい\n # 最大問題数の空ファイル作成→残りの問題のoj-prepare→残りの問題の空ファイル作成\n open_problems(\n problem_urls[n_open + 1 :],\n coding_files,\n stdin_files,\n is_open_browser=False,\n is_open_vscode=False,\n )\n return True\n","repo_name":"hotarunx/oj-jordan","sub_path":"onlinejudge_jordan/prepare.py","file_name":"prepare.py","file_ext":"py","file_size_in_byte":6857,"program_lang":"python","lang":"ja","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"31753154983","text":"import pytest\nfrom ray.air import session\nfrom ray.air.checkpoint import Checkpoint\nimport torch\n\nimport ray\nfrom ray.air.examples.pytorch.torch_linear_example import (\n train_func as linear_train_func,\n)\nfrom ray.train.torch import TorchPredictor, TorchTrainer\n\n\n@pytest.fixture\ndef ray_start_4_cpus():\n address_info = ray.init(num_cpus=4)\n yield address_info\n # The code after the yield will run as teardown code.\n ray.shutdown()\n\n\n@pytest.mark.parametrize(\"num_workers\", [1, 2])\ndef test_torch_linear(ray_start_4_cpus, num_workers):\n def train_func(config):\n result = linear_train_func(config)\n assert len(result) == epochs\n assert result[-1][\"loss\"] < result[0][\"loss\"]\n\n num_workers = num_workers\n epochs = 3\n scaling_config = {\"num_workers\": num_workers}\n config = {\"lr\": 1e-2, \"hidden_size\": 1, \"batch_size\": 4, \"epochs\": epochs}\n trainer = TorchTrainer(\n train_loop_per_worker=train_func,\n train_loop_config=config,\n scaling_config=scaling_config,\n )\n trainer.fit()\n\n\ndef test_torch_e2e(ray_start_4_cpus):\n def train_func():\n model = torch.nn.Linear(1, 1)\n session.report({}, checkpoint=Checkpoint.from_dict(dict(model=model)))\n\n scaling_config = {\"num_workers\": 2}\n trainer = TorchTrainer(\n train_loop_per_worker=train_func, scaling_config=scaling_config\n )\n result = trainer.fit()\n\n predict_dataset = ray.data.range(3)\n\n class TorchScorer:\n def __init__(self):\n self.pred = TorchPredictor.from_checkpoint(result.checkpoint)\n\n def __call__(self, x):\n return self.pred.predict(x, dtype=torch.float)\n\n predictions = predict_dataset.map_batches(\n TorchScorer, batch_format=\"pandas\", compute=\"actors\"\n )\n assert predictions.count() == 3\n\n\ndef test_torch_e2e_state_dict(ray_start_4_cpus):\n def train_func():\n model = torch.nn.Linear(1, 1).state_dict()\n session.report({}, checkpoint=Checkpoint.from_dict(dict(model=model)))\n\n scaling_config = {\"num_workers\": 2}\n trainer = TorchTrainer(\n train_loop_per_worker=train_func, scaling_config=scaling_config\n )\n result = trainer.fit()\n\n # If loading from a state dict, a model definition must be passed in.\n with pytest.raises(ValueError):\n TorchPredictor.from_checkpoint(result.checkpoint)\n\n class TorchScorer:\n def __init__(self):\n self.pred = TorchPredictor.from_checkpoint(\n result.checkpoint, model=torch.nn.Linear(1, 1)\n )\n\n def __call__(self, x):\n return self.pred.predict(x, dtype=torch.float)\n\n predict_dataset = ray.data.range(3)\n predictions = predict_dataset.map_batches(\n TorchScorer, batch_format=\"pandas\", compute=\"actors\"\n )\n assert predictions.count() == 3\n\n\nif __name__ == \"__main__\":\n import sys\n\n import pytest\n\n sys.exit(pytest.main([\"-v\", \"-x\", __file__]))\n","repo_name":"merlinepedra/RAY-1","sub_path":"python/ray/train/tests/test_torch_trainer.py","file_name":"test_torch_trainer.py","file_ext":"py","file_size_in_byte":2944,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"21904933229","text":"from utils import *\nimport sys\n\nimport os\nfiles = os.listdir(\"links/pediatrics_links/\")\n\n# each file\nfor file in files:\n with open(\"links/pediatrics_links/\" + file) as fp:\n # each url\n url = fp.readline()\n while url:\n get_all_info(url.strip(), type=\"pediatrics\")\n\n url = fp.readline()\n\n\nfiles = os.listdir(\"links/surgery_links/\")\n\nfor file in files:\n with open(\"links/surgery_links/\" + file) as fp:\n # each url\n url = fp.readline()\n while url:\n \n get_all_info(url.strip(), type=\"surgery\")\n\n url = fp.readline()\n","repo_name":"ningkko/Medical_relation","sub_path":"medScape/s_p_txts.py","file_name":"s_p_txts.py","file_ext":"py","file_size_in_byte":614,"program_lang":"python","lang":"en","doc_type":"code","stars":5,"dataset":"github-code","pt":"86"}
+{"seq_id":"37570804647","text":"'''Треугольник Паскаля\nБез функций/рекурсий - посмотрим на других занятиях другие способы реализации: через рекурсию - напишем факториал; через степени 11\n'''\n\nn = 5\n\nfor i in range(1, n+1):\n for j in range(0, n - i + 1):\n print(' ', end='')\n \n C = 1 \n for j in range(1, i+1):\n \n print(' ', C, sep='', end='')\n # Почему эта формула работает так и не разобрались\n C = C * (i-j) // j\n \n print()\n","repo_name":"nibekasov/Algoritms_Ranepa_2022","sub_path":"Week01/Files from class/Треугольник Паскаля.py","file_name":"Треугольник Паскаля.py","file_ext":"py","file_size_in_byte":620,"program_lang":"python","lang":"ru","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"15708835594","text":"\"\"\"\nCreated on Mon Jul 15 10:03:04 2019\nClassic Games Terminal\n\nThis application will allow you to play classic games in the command line\nAs new games are added, this main program will be used to interact with\nthe individual classes.\n@author: markjc\n\"\"\"\n#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\n# ---------------------- #\n# Import Packages, Modules, and Games #\n# ---------------------- #\n#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# \nimport sys, os\nfrom time import sleep\nimport rps, ttt, ngg\nimport TPrinter as printerObj\n\n\n\n#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\n# ---------------------- #\n# Run Games #\n# ---------------------- #\n#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# \ndef runGame(userInput):\n ### Take user input and Map it to a runnable game - then engage that class\n if userInput == 1:\n #Run Game 1: Rock Paper Scissors\n newGame = rps.Game()\n newGame.intro()\n newGame.gameLoop()\n mainMenu()\n elif userInput == 2:\n #Run Game 2: Tic - Tac - Toe\n newGame = ttt.Game()\n newGame.intro()\n newGame.gameLoop()\n mainMenu()\n elif userInput == 3:\n #Run Game 3: Number Guessing Game\n newGame = ngg.Game()\n newGame.intro()\n newGame.gameLoop()\n mainMenu()\n elif userInput == 4:\n sys.exit()\n else:\n mainMenu()\n\n\n#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#\n# ---------------------- #\n# Main Menu #\n# ---------------------- #\n#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# \ndef mainMenu():\n ####___________________________________________________________________######\n printer = printerObj.TPrinter()\n userInput = 0\n while True:\n os.system('cls' if os.name == 'nt' else 'clear')\n print('#################################################')\n print('# #')\n print('# Welcome to the Classic Games Command Line #')\n print('# by: Mark Crabtree #')\n print('# #')\n print('# Please choose a game by entering #')\n print('# a number below. #')\n print('# #')\n print('#################################################')\n print()\n printer.tprint(' 1. Rock, Paper, Scissors \\n',0.02)\n printer.tprint(' 2. Tic - Tac - Toe \\n',0.02)\n printer.tprint(' 3. Number Guessing Game \\n', 0.02)\n printer.tprint(' 4. Exit \\n',0.02)\n \n \n \n ### Input Validation ###\n while True:\n try:\n \n userInput = int(input('->'))\n except ValueError:\n print(\"Please enter a valid selection: \")\n sleep(0.8)\n continue\n else:\n break\n \n #### Launch the appropriate game based on user selection\n runGame(userInput)\n\n\n###########################################\n# ---------------------- #\n#-----|| Main Loop ||-----#\n# ---------------------- #\n########################################### \nwhile True:\n os.system('cls' if os.name == 'nt' else 'clear')\n mainMenu()\n \nsys.exit()\n\n","repo_name":"markjc/cli-games","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":3571,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"72764004124","text":"from twisted.test import proto_helpers\nfrom twisted.trial import unittest\nfrom time import strftime, gmtime\nimport json\nimport os\nimport sys\n\nsys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))\nfrom bot.yybot import YYBotFactory\nfrom logger.sqlite_handler import SQLiteHandler\nfrom server.request_handler import RequestHandlerFactory\n\n\nclass TestRequestHandler(unittest.TestCase):\n def setUp(self):\n self.db_manager = SQLiteHandler('test_db.sqlite3')\n\n self._network = 'localhost'\n self._channels = ['#test_channel']\n self._username = 'cat'\n\n self.bot_factory = YYBotFactory(\n self._network,\n self._channels,\n self._username,\n )\n\n self.request_handler_factory = RequestHandlerFactory()\n\n # IRC bot, SSL socket, SQLite handler should know each other\n self.bot_factory.add_request_handler(self.request_handler_factory)\n self.request_handler_factory.add_irc_bot(self.bot_factory)\n self.bot_factory.add_db_manager(self.db_manager)\n\n self.bot = self.bot_factory.buildProtocol(('127.0.0.1', 0))\n self.fake_bot_transport = proto_helpers.StringTransport()\n self.bot.makeConnection(self.fake_bot_transport)\n self.bot.signedOn()\n self.fake_bot_transport.clear()\n\n self.fake_receiver_transport = proto_helpers.StringTransport()\n self.request_handler = self.request_handler_factory.\\\n buildProtocol(('127.0.0.1', 1))\n\n self.request_handler.makeConnection(self.fake_receiver_transport)\n self.fake_receiver_transport.clear()\n\n # send some requests first\n self.test_channel = '#test_channel2'\n request = {\n 'type': 'send_message',\n 'message': 'supgaiz',\n 'target': self._channels[0],\n }\n request_str = json.dumps(request)\n self.request_handler.lineReceived(request_str)\n\n request = {\n 'type': 'join_channel',\n 'channel': self.test_channel,\n }\n request_str = json.dumps(request)\n self.request_handler.lineReceived(request_str)\n\n request = {\n 'type': 'leave_channel',\n 'channel': self.test_channel,\n }\n request_str = json.dumps(request)\n self.request_handler.lineReceived(request_str)\n\n request = {\n 'type': 'send_message',\n 'message': 'hi friends',\n 'target': self._channels[0],\n }\n request_str = json.dumps(request)\n self.request_handler.lineReceived(request_str)\n self.fake_receiver_transport.clear()\n\n def tearDown(self):\n '''Delete sqlite file'''\n self.db_manager.remove()\n\n def test_get_logs(self):\n # client requests logs\n request = {\n 'type': 'get_logs',\n 'network': self._network,\n 'target': self._channels[0],\n }\n request_str = json.dumps(request)\n self.request_handler.lineReceived(request_str)\n\n # check logs sent\n response = {\n 'type': 'get_logs',\n 'content': [\n {\n 'type': 'status',\n 'date': strftime(\"%Y-%m-%d %H:%M:%S\", gmtime()),\n 'nick': self._username,\n 'target': self._channels[0],\n 'network': self._network,\n 'message': \"has joined %s\" % self._channels[0],\n },\n {\n 'type': 'msg',\n 'date': strftime(\"%Y-%m-%d %H:%M:%S\", gmtime()),\n 'nick': self._username,\n 'target': self._channels[0],\n 'network': self._network,\n 'message': 'supgaiz',\n },\n {\n 'type': 'msg',\n 'date': strftime(\"%Y-%m-%d %H:%M:%S\", gmtime()),\n 'nick': self._username,\n 'target': self._channels[0],\n 'network': self._network,\n 'message': 'hi friends',\n },\n ]\n }\n expected = json.dumps(response) + '\\n'\n self.assertEqual(self.fake_receiver_transport.value(), expected)\n\n def test_get_join_leave_logs(self):\n # client requests logs\n request = {\n 'type': 'get_logs',\n 'network': self._network,\n 'target': self.test_channel,\n }\n request_str = json.dumps(request)\n self.request_handler.lineReceived(request_str)\n\n # check logs sent\n response = {\n 'type': 'get_logs',\n 'content': [\n {\n 'type': 'status',\n 'date': strftime(\"%Y-%m-%d %H:%M:%S\", gmtime()),\n 'nick': self._username,\n 'target': self.test_channel,\n 'network': self._network,\n 'message': \"has joined %s\" % self.test_channel,\n },\n {\n 'type': 'status',\n 'date': strftime(\"%Y-%m-%d %H:%M:%S\", gmtime()),\n 'nick': self._username,\n 'target': self.test_channel,\n 'network': self._network,\n 'message': \"has left %s\" % self.test_channel,\n },\n ]\n }\n expected = json.dumps(response) + '\\n'\n self.assertEqual(self.fake_receiver_transport.value(), expected)\n","repo_name":"daeyun/yychat-server","sub_path":"tests/request_handler_get_logs_tests.py","file_name":"request_handler_get_logs_tests.py","file_ext":"py","file_size_in_byte":5541,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"33313610594","text":"import os\nimport io\nimport frappe\n\nfrom frappe import _\nfrom json import dumps\nfrom pyqrcode import create as qrcreate\nfrom erpnext_gst_compliance.utils import log_exception\nfrom frappe.integrations.utils import make_post_request, make_get_request, make_put_request\n\nclass CleartaxConnector:\n\tdef __init__(self, gstin):\n\n\t\tself.gstin = gstin\n\t\tself.settings = frappe.get_cached_doc(\"Cleartax Settings\")\n\t\tself.business = self.get_business_settings()\n\t\tself.auth_token = self.settings.auth_token\n\t\tself.host = self.get_host_url()\n\t\tself.endpoints = self.get_endpoints()\n\n\t\tself.validate()\n\n\tdef get_business_settings(self):\n\t\treturn next(\n\t\t\tfilter(lambda row: row.gstin == self.gstin, self.settings.credentials),\n\t\t\tfrappe._dict({}),\n\t\t)\n\n\tdef get_host_url(self):\n\t\tif self.settings.sandbox_mode:\n\t\t\treturn \"https://einvoicing.internal.cleartax.co\"\n\t\telse:\n\t\t\treturn \"https://api-einv.cleartax.in\"\n\n\tdef get_endpoints(self):\n\t\tbase_url = self.host + \"/v2/eInvoice\"\n\t\treturn frappe._dict({\n\t\t\t\"generate_irn\": base_url + \"/generate\",\n\t\t\t\"cancel_irn\": base_url + \"/cancel\",\n\t\t\t\"generate_ewaybill\": base_url + \"/ewaybill\",\n\t\t\t\"cancel_ewaybill\": base_url + \"/ewaybill/cancel\"\n\t\t})\n\n\tdef validate(self):\n\t\tif not self.settings.enabled:\n\t\t\tfrappe.throw(_(\"Cleartax Settings is not enabled. Please configure Cleartax Settings and try again.\"))\n\n\t\tif not self.business.owner_id:\n\t\t\tfrappe.throw(\n\t\t\t\t_(\"Cannot find Owner ID for GSTIN {}. Please add cleartax credentials for mentioned GSTIN in Cleartax Settings. \")\n\t\t\t\t\t.format(self.gstin))\n\n\t@log_exception\n\tdef get_headers(self):\n\t\treturn frappe._dict({\n\t\t\t\"x-cleartax-auth-token\": self.settings.get_password('auth_token'),\n\t\t\t\"x-cleartax-product\": \"EInvoice\",\n\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\"owner_id\": self.business.get_password('owner_id'),\n\t\t\t\"gstin\": self.gstin\n\t\t})\n\n\tdef log_einvoice_request(self, url, headers, payload, response):\n\t\theaders.update({\n\t\t\t\"x-cleartax-auth-token\": self.auth_token,\n\t\t\t\"owner_id\": self.business.owner_id\n\t\t})\n\t\trequest_log = frappe.get_doc({\n\t\t\t\"doctype\": \"E Invoice Request Log\",\n\t\t\t\"user\": frappe.session.user,\n\t\t\t\"reference_invoice\": self.einvoice.name,\n\t\t\t\"url\": url,\n\t\t\t\"headers\": dumps(headers, indent=4) if headers else None,\n\t\t\t\"data\": dumps(payload, indent=4) if isinstance(payload, dict) else payload,\n\t\t\t\"response\": dumps(response, indent=4) if response else None\n\t\t})\n\t\trequest_log.save(ignore_permissions=True)\n\t\tfrappe.db.commit()\n\n\t@log_exception\n\tdef make_request(self, req_type, url, headers, payload):\n\t\tif req_type == 'post':\n\t\t\tresponse = make_post_request(url, headers=headers, data=payload)\n\t\telif req_type == 'put':\n\t\t\tresponse = make_put_request(url, headers=headers, data=payload)\n\t\telse:\n\t\t\tresponse = make_get_request(url, headers=headers, data=payload)\n\t\t\t\n\t\tself.log_einvoice_request(url, headers, payload, response)\n\t\t\n\t\treturn response\n\n\t@log_exception\n\tdef make_irn_request(self):\n\t\theaders = self.get_headers()\n\t\turl = self.endpoints.generate_irn\n\n\t\teinvoice_json = self.einvoice.get_einvoice_json()\n\n\t\tpayload = [{\"transaction\": einvoice_json}]\n\t\tpayload = dumps(payload, indent=4)\n\n\t\tresponse = self.make_request('put', url, headers, payload)\n\t\t# Sample Response -> https://docs.cleartax.in/cleartax-for-developers/e-invoicing-api/e-invoicing-api-reference/cleartax-e-invoicing-apis-xml-schema#sample-response\n\n\t\tresponse = self.sanitize_response(response)\n\t\tif response.get('Success'):\n\t\t\tself.handle_successful_irn_generation(response)\n\n\t\treturn response\n\n\t@staticmethod\n\tdef generate_irn(einvoice):\n\t\tbusiness_gstin = einvoice.seller_gstin\n\t\tconnector = CleartaxConnector(business_gstin)\n\t\tconnector.einvoice = einvoice\n\t\tresponse = connector.make_irn_request()\n\t\tsuccess, errors = response.get('Success'), response.get('Errors')\n\n\t\treturn success, errors\n\n\tdef sanitize_response(self, response):\n\t\tsanitized_response = []\n\t\tfor entry in response:\n\t\t\tgovt_response = frappe._dict(entry.get('govt_response', {}))\n\t\t\tsuccess = govt_response.get('Success', \"N\")\n\n\t\t\tif success == \"Y\":\n\t\t\t\t# return irn & other info\n\t\t\t\tgovt_response.update({'Success': True})\n\t\t\t\tsanitized_response.append(govt_response)\n\t\t\telse:\n\t\t\t\t# return error message list\n\t\t\t\terror_details = govt_response.get('ErrorDetails', [])\n\t\t\t\terror_list = []\n\n\t\t\t\tfor d in error_details:\n\t\t\t\t\tif d.get('error_source') == 'CLEARTAX':\n\t\t\t\t\t\t# cleartax gives back the exact key that causes the error\n\t\t\t\t\t\t# error_message = \"sellerDetails.pinCode : \"\n\t\t\t\t\t\td['error_message'] = d['error_message'].split(' : ')[-1]\n\t\t\t\t\terror_list.append(d.get('error_message'))\n\n\t\t\t\tsanitized_response.append({\n\t\t\t\t\t'Success': False,\n\t\t\t\t\t'Errors': error_list\n\t\t\t\t})\n\n\t\treturn sanitized_response[0] if len(sanitized_response) == 1 else sanitized_response\n\n\tdef handle_successful_irn_generation(self, response):\n\t\tstatus = 'IRN Generated'\n\t\tirn = response.get('Irn')\n\t\tack_no = response.get('AckNo')\n\t\tack_date = response.get('AckDt')\n\t\tewaybill = response.get('EwbNo')\n\t\tewaybill_validity = response.get('EwbValidTill')\n\t\tqrcode = self.generate_qrcode(response.get('SignedQRCode'))\n\n\t\tself.einvoice.update({\n\t\t\t'irn': irn,\n\t\t\t'status': status,\n\t\t\t'ack_no': ack_no,\n\t\t\t'ack_date': ack_date,\n\t\t\t'ewaybill': ewaybill,\n\t\t\t'qrcode_path': qrcode,\n\t\t\t'ewaybill_validity': ewaybill_validity\n\t\t})\n\t\tself.einvoice.flags.ignore_permissions = 1\n\t\tself.einvoice.submit()\n\n\tdef generate_qrcode(self, signed_qrcode):\n\t\tdoctype = self.einvoice.doctype\n\t\tdocname = self.einvoice.name\n\t\tfilename = '{} - QRCode.png'.format(docname).replace(os.path.sep, \"__\")\n\n\t\tqr_image = io.BytesIO()\n\t\turl = qrcreate(signed_qrcode, error='L')\n\t\turl.png(qr_image, scale=2, quiet_zone=1)\n\t\t_file = frappe.get_doc({\n\t\t\t'doctype': 'File',\n\t\t\t'file_name': filename,\n\t\t\t'attached_to_doctype': doctype,\n\t\t\t'attached_to_name': docname,\n\t\t\t'attached_to_field': 'qrcode_path',\n\t\t\t'is_private': 1,\n\t\t\t'content': qr_image.getvalue()\n\t\t})\n\t\t_file.save()\n\t\treturn _file.file_url\n\n\t@log_exception\n\tdef make_cancel_irn_request(self, reason, remark):\n\t\theaders = self.get_headers()\n\t\turl = self.endpoints.cancel_irn\n\n\t\tirn = self.einvoice.irn\n\n\t\tpayload = [{'irn': irn, 'CnlRsn': reason, 'CnlRem': remark}]\n\t\tpayload = dumps(payload, indent=4)\n\n\t\tresponse = self.make_request('put', url, headers, payload)\n\t\t# Sample Response -> https://docs.cleartax.in/cleartax-for-developers/e-invoicing-api/e-invoicing-api-reference/cleartax-e-invoicing-apis-xml-schema#sample-response-1\n\n\t\tresponse = self.sanitize_response(response)\n\t\tif response.get('Success'):\n\t\t\tself.handle_successful_irn_cancellation(response)\n\n\t\treturn response\n\n\tdef handle_successful_irn_cancellation(self, response):\n\t\tself.einvoice.irn_cancelled = 1\n\t\tself.einvoice.irn_cancel_date = response.get('CancelDate')\n\t\tself.einvoice.status = 'IRN Cancelled'\n\t\tself.einvoice.flags.ignore_validate_update_after_submit = 1\n\t\tself.einvoice.flags.ignore_permissions = 1\n\t\tself.einvoice.save()\n\n\t@staticmethod\n\tdef cancel_irn(einvoice, reason, remark):\n\t\tbusiness_gstin = einvoice.seller_gstin\n\t\tconnector = CleartaxConnector(business_gstin)\n\t\tconnector.einvoice = einvoice\n\t\tresponse = connector.make_cancel_irn_request(reason, remark)\n\t\tsuccess, errors = response.get('Success'), response.get('Errors')\n\n\t\treturn success, errors\n\n\t@log_exception\n\tdef make_eway_bill_request(self):\n\t\theaders = self.get_headers()\n\t\turl = self.endpoints.generate_ewaybill\n\n\t\teway_bill_json = self.einvoice.get_eway_bill_json()\n\n\t\tpayload = [eway_bill_json]\n\t\tpayload = dumps(payload, indent=4)\n\n\t\tresponse = self.make_request('post', url, headers, payload)\n\t\t# Sample Response -> https://docs.cleartax.in/cleartax-for-developers/e-invoicing-api/e-invoicing-api-reference/cleartax-e-invoicing-apis-xml-schema#sample-response-3\n\n\t\tresponse = self.sanitize_response(response)\n\t\tif response.get('Success'):\n\t\t\tself.handle_successful_ewaybill_generation(response)\n\n\t\treturn response\n\n\tdef handle_successful_ewaybill_generation(self, response):\n\t\tself.einvoice.ewaybill = response.get('EwbNo')\n\t\tself.einvoice.ewaybill_validity = response.get('EwbValidTill')\n\t\tself.einvoice.status = 'E-Way Bill Generated'\n\t\tself.einvoice.flags.ignore_validate_update_after_submit = 1\n\t\tself.einvoice.flags.ignore_permissions = 1\n\t\tself.einvoice.save()\n\n\t@staticmethod\n\tdef generate_eway_bill(einvoice):\n\t\tbusiness_gstin = einvoice.seller_gstin\n\t\tconnector = CleartaxConnector(business_gstin)\n\t\tconnector.einvoice = einvoice\n\t\tresponse = connector.make_eway_bill_request()\n\t\tsuccess, errors = response.get('Success'), response.get('Errors')\n\n\t\treturn success, errors\n\n\t@log_exception\n\tdef make_cancel_ewaybill_request(self, reason, remark):\n\t\theaders = self.get_headers()\n\t\turl = self.endpoints.cancel_ewaybill\n\n\t\tewaybill = self.einvoice.ewaybill\n\n\t\tpayload = {'ewbNo': ewaybill, 'cancelRsnCode': reason, 'cancelRmrk': remark}\n\t\tpayload = dumps(payload, indent=4)\n\n\t\tresponse = self.make_request('post', url, headers, payload)\n\t\t# Sample Response -> https://docs.cleartax.in/cleartax-for-developers/e-invoicing-api/e-invoicing-api-reference/cleartax-e-invoicing-apis-xml-schema#sample-response-4\n\n\t\tresponse = self.sanitize_response(response)\n\t\tif response.get('Success'):\n\t\t\tself.handle_successful_ewaybill_cancellation()\n\n\t\treturn response\n\n\tdef handle_successful_ewaybill_cancellation(self):\n\t\tself.einvoice.ewaybill_cancelled = 1\n\t\tself.einvoice.status = 'E-Way Bill Cancelled'\n\t\tself.einvoice.flags.ignore_validate_update_after_submit = 1\n\t\tself.einvoice.flags.ignore_permissions = 1\n\t\tself.einvoice.save()\n\n\t@staticmethod\n\tdef cancel_ewaybill(einvoice, reason, remark):\n\t\tbusiness_gstin = einvoice.seller_gstin\n\t\tconnector = CleartaxConnector(business_gstin)\n\t\tconnector.einvoice = einvoice\n\t\tresponse = connector.make_cancel_ewaybill_request(reason, remark)\n\t\tsuccess, errors = response.get('Success'), response.get('Errors')\n\n\t\treturn success, errors","repo_name":"frappe/erpnext_gst_compliance","sub_path":"erpnext_gst_compliance/cleartax_integration/cleartax_connector.py","file_name":"cleartax_connector.py","file_ext":"py","file_size_in_byte":9817,"program_lang":"python","lang":"en","doc_type":"code","stars":11,"dataset":"github-code","pt":"86"}
+{"seq_id":"9634611206","text":"from django.shortcuts import render\nfrom django.http import HttpResponse\nfrom django.contrib.auth.models import User\nfrom django.contrib.auth import authenticate\nfrom django.contrib import auth\nfrom customer_portal.models import *\nfrom django.contrib.auth.decorators import login_required\nfrom car_dealer_portal.models import *\nfrom django.http import HttpResponseRedirect\n# Create your views here.\n\ndef index(request):\n if not request.user.is_authenticated:\n return render(request, 'customer/login.html')\n else:\n return render(request, 'customer/home_page.html')\n\ndef login(request):\n return render(request, 'customer/login.html')\n\ndef auth_view(request):\n if request.user.is_authenticated:\n return render(request, 'customer/home_page.html')\n else:\n username = request.POST['username']\n password = request.POST['password']\n user = authenticate(request, username=username, password=password)\n try:\n customer = Customer.objects.get(user = user)\n except:\n customer = None\n if customer is not None:\n auth.login(request, user)\n return render(request, 'customer/home_page.html')\n else:\n return render(request, 'customer/login_failed.html')\n\ndef logout_view(request):\n auth.logout(request)\n return render(request, 'customer/login.html')\n\ndef register(request):\n return render(request, 'customer/register.html')\n\ndef registration(request):\n username = request.POST['username']\n password = request.POST['password']\n mobile = request.POST['mobile']\n firstname = request.POST['firstname']\n lastname = request.POST['lastname']\n email = request.POST['email']\n city = request.POST['city']\n city = city.lower()\n pincode = request.POST['pincode']\n try:\n user = User.objects.create_user(username = username, password = password, email = email)\n user.first_name = firstname\n user.last_name = lastname\n user.save()\n except:\n return render(request, 'customer/registration_error.html')\n try:\n area = Area.objects.get(city = city, pincode = pincode)\n except:\n area = None\n if area is not None:\n customer = Customer(user = user, mobile = mobile, area = area)\n else:\n area = Area(city = city, pincode = pincode)\n area.save()\n area = Area.objects.get(city = city, pincode = pincode)\n customer = Customer(user = user, mobile = mobile, area = area)\n\n customer.save()\n return render(request, 'customer/registered.html')\n\n@login_required\ndef search(request):\n return render(request, 'customer/search.html')\n\n@login_required\ndef search_results(request):\n city = request.POST['city']\n city = city.lower()\n vehicles_list = []\n area = Area.objects.filter(city = city)\n for a in area:\n vehicles = Vehicles.objects.filter(area = a)\n for car in vehicles:\n if car.is_available == True:\n vehicle_dictionary = {'name':car.car_name, 'color':car.color, 'id':car.id, 'pincode':car.area.pincode, 'capacity':car.capacity, 'description':car.description}\n vehicles_list.append(vehicle_dictionary)\n request.session['vehicles_list'] = vehicles_list\n return render(request, 'customer/search_results.html')\n\n\n@login_required\ndef rent_vehicle(request):\n id = request.POST['id']\n vehicle = Vehicles.objects.get(id = id)\n cost_per_day = int(vehicle.capacity)*300\n return render(request, 'customer/confirmation.html', {'vehicle':vehicle, 'cost_per_day':cost_per_day})\n\n@login_required\ndef confirm(request):\n vehicle_id = request.POST['id']\n username = request.user\n user = User.objects.get(username = username)\n days = request.POST['days']\n vehicle = Vehicles.objects.get(id = vehicle_id)\n if vehicle.is_available:\n car_dealer = vehicle.dealer\n rent = (int(vehicle.capacity))*300*(int(days))\n car_dealer.wallet += rent\n car_dealer.save()\n try:\n order = Orders(vehicle = vehicle, car_dealer = car_dealer, user = user, rent=rent, days=days)\n order.save()\n except:\n order = Orders.objects.get(vehicle = vehicle, car_dealer = car_dealer, user = user, rent=rent, days=days)\n vehicle.is_available = False\n vehicle.save()\n return render(request, 'customer/confirmed.html', {'order':order})\n else:\n return render(request, 'customer/order_failed.html')\n\n@login_required\ndef manage(request):\n order_list = []\n user = User.objects.get(username = request.user)\n try:\n orders = Orders.objects.filter(user = user)\n except:\n orders = None\n if orders is not None:\n for o in orders:\n if o.is_complete == False:\n order_dictionary = {'id':o.id,'rent':o.rent, 'vehicle':o.vehicle, 'days':o.days, 'car_dealer':o.car_dealer}\n order_list.append(order_dictionary)\n return render(request, 'customer/manage.html', {'od':order_list})\n\n@login_required\ndef update_order(request):\n order_id = request.POST['id']\n order = Orders.objects.get(id = order_id)\n vehicle = order.vehicle\n vehicle.is_available = True\n vehicle.save()\n car_dealer = order.car_dealer\n car_dealer.wallet -= int(order.rent)\n car_dealer.save()\n order.delete()\n cost_per_day = int(vehicle.capacity)*300\n return render(request, 'customer/confirmation.html', {'vehicle':vehicle}, {'cost_per_day':cost_per_day})\n\n@login_required\ndef delete_order(request):\n order_id = request.POST['id']\n order = Orders.objects.get(id = order_id)\n car_dealer = order.car_dealer\n car_dealer.wallet -= int(order.rent)\n car_dealer.save()\n vehicle = order.vehicle\n vehicle.is_available = True\n vehicle.save()\n order.delete()\n return HttpResponseRedirect('/customer_portal/manage/')\n","repo_name":"hardikpnsp/ocrs","sub_path":"customer_portal/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":5885,"program_lang":"python","lang":"en","doc_type":"code","stars":10,"dataset":"github-code","pt":"86"}
+{"seq_id":"19823997654","text":"import numpy as np\nimport pickle\nimport os\nfrom sklearn import manifold as mnfd\nfrom sklearn import decomposition as dcomp\nfrom sklearn import preprocessing as pre\nimport pandas as pd\nfrom analysis import TEST_REGEX, library_from_regex\nfrom sklearn.pipeline import Pipeline\nimport re\nfrom analysis import corpus_tag_generator\n\nTEST_REGEX = re.compile(TEST_REGEX.pattern)\nhere = os.path.dirname(__file__)\n\nmusicbee = 'C:\\\\Users\\\\Coen D. Needell\\\\Music\\\\MusicBee\\\\Playlists\\\\' # Personal playlist location\n\n\ndef load_corpus(loc='cepstra\\\\', precompiled=False):\n \"\"\"\n Generates a corpus for machine learning from your preprocessed cepstra. Location should be the same folder you used\n for the analysis.py run. Returns a dict with keys being the 'song code' as made by the analysis.corpus_tag_generator\n function.\n\n :param loc: str directory where the spectra are.\n\n :param precompiled: bool triggers whether or not it should load the corpus from a pickle file or the cepstra folder\n :return: dict\n \"\"\"\n if precompiled:\n with open('../corpus.pkl', 'rb') as file:\n return pickle.load(file)\n corpus = {}\n for song in os.listdir(loc):\n with open(f'cepstra\\\\{song}', 'rb') as file:\n corpus[song.replace('.pkl', '')] = pickle.load(file)\n corpus = {title: song for title, song in corpus.items() if song is not None}\n with open('../corpus.pkl', 'wb') as file:\n pickle.dump(corpus, file)\n return corpus\n\n\ndef create_tag_dict(lib, loc=here + '/' + 'locations.pkl'):\n \"\"\"\n Makes a dictionary that relates the tags to associated filename.\n\n :param lib: list contains all of the filenames.\n\n :param loc: str file to dump the tag dictionary in if you want to avoid doing this more than once.\n\n :return:\n \"\"\"\n mdata_dict = {}\n for song in lib:\n mdata_dict[corpus_tag_generator(song)] = song\n with open(loc, 'wb') as file:\n pickle.dump(mdata_dict, file)\n return mdata_dict\n\n\ndef load_tag_dict(loc=here + '/' + 'locations.pkl'):\n \"\"\"\n Loads the tag dictionary, and returns it.\n\n :param loc: str location of pkl\n :return:\n \"\"\"\n with open(loc, 'rb') as file:\n mdata_dict = pickle.load(file)\n return mdata_dict\n\n\ndef generate_m3u(tags, title, reference, locale='playlists\\\\'):\n \"\"\"\n Takes a list of corpus tags and turns it into a playlist (.m3u).\n\n :param tags: list of tags\n :param title: name of plist\n :param reference: dict tag dictionary, default just runs load_tag_dict()\n :param locale: str place to dump your playlist\n :return:\n \"\"\"\n with open(f'{locale}{title}.m3u', 'w+', encoding='utf-8') as file:\n for tag in tags:\n file.write(reference[tag] + '\\n')\n\n\ndef padded_corpus(corp):\n \"\"\"\n Takes in a corpus and pads it out to the length of the longest song. -inf padding.\n\n :param corp: dict corpus\n :return: dict padded corpus\n \"\"\"\n lens = [song.shape[1] for _, song in corp.items()]\n longest = np.max(lens)\n\n new_corp = {}\n for title, song in corp.items():\n song_size = longest - song.shape[1]\n if song_size == 0:\n new_corp[title] = song\n else:\n new_corp[title] = np.pad(song, ((0, 0), (0, song_size)), constant_values=np.log(0))\n return new_corp\n\n\ndef flattened_corpus(corp):\n \"\"\"\n Takes in a corpus and flattens it out so that the 2D gammatone cepstra is a single vector representation.\n\n :param corp: dict\n :return: dict\n \"\"\"\n new_corp = {}\n for title, song in corp.items():\n new_corp[title] = np.nan_to_num(song.flatten())\n return new_corp\n\n\ndef cropped_corpus(corp, tar_len=90, pad_shorts=False):\n \"\"\"\n Takes in a corpus and crops out the middle tar_len seconds. Default is a minute and a half. If pad_shorts is True,\n then it'll pad the shorter songs with -inf.\n\n :param corp: dict\n :param tar_len: int MUST BE EVEN\n :param pad_shorts: bool\n :return: dict\n \"\"\"\n new_corp = {}\n for title, song in corp.items():\n s_len = song.shape[1]\n if s_len > tar_len:\n st = (s_len // 2) - (tar_len // 2)\n end = (s_len // 2) + (tar_len // 2)\n assert end - st == tar_len\n new_corp[title] = song[:, st:end]\n else:\n if pad_shorts:\n new_corp[title] = np.pad(song, ((0, 0), (0, tar_len - s_len)), constant_values=np.log(0))\n\n return new_corp\n\n\ndef make_manifold(processed_corp,\n pipeline=Pipeline([('reduce_dims', dcomp.PCA()), ('embedding', mnfd.Isomap(n_components=45))])):\n \"\"\"\n Uses sklearn to construct a manifold data frame. You can use whatever pipeline you like, but the default is PCA into\n Isomap with 45 components, I've had good success with this value.\n :param processed_corp: dict\n :param pipeline: sklearn.pipeline.Pipeline\n :return: pd.DataFrame\n \"\"\"\n flat_corp = flattened_corpus(processed_corp)\n songs = list(flat_corp.values())\n songs_scaled = np.nan_to_num(pre.RobustScaler().fit_transform(songs))\n songs_scaled = np.clip(songs_scaled, -1000, 5)\n\n songs_transformed = pipeline.fit_transform(songs_scaled)\n manifold = {}\n for title, song in zip(flat_corp, songs_transformed):\n manifold[title] = song\n manifold_df = pd.DataFrame(manifold)\n return manifold_df\n\n\nif __name__ == '__main__':\n libr = library_from_regex(re.compile(''))\n cor = load_corpus()\n nc = cropped_corpus(cor, tar_len=120, pad_shorts=True)\n mandf = make_manifold(nc)\n with open('manifold.pkl') as f:\n pickle.dump(mandf, f)\n","repo_name":"SoyBison/ongaku","sub_path":"learning.py","file_name":"learning.py","file_ext":"py","file_size_in_byte":5606,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"20194819470","text":"import numpy as np\nimport pandas as pd\nimport os\n\ninput_data_path = \"../input_data/\"\nweights_path = \"../weights/\"\noutput_data_path= \"../output_data/\"\n\n\n\ndef preprocessing( df ):\n temp = np.expand_dims( df.pop(\"Temperatura\").values + 273., axis=1)**-(1)\n y = np.expand_dims( df.pop(\"Riv_Misurato\").values , axis=1)\n data = np.log( df.values )\n x = np.concatenate( [ temp, data ], axis=1 )\n return x,y\n\n\ndef preprocessing_opt(df):\n one_on_t = np.expand_dims(df[\"Temperatura\"].values + 273., axis=1) ** (-1)\n log_h = np.log(np.expand_dims(df[\"Altezza\"].values, axis=1))\n log_s = np.log(np.expand_dims(df[\"Velocità\"].values, axis=1))\n log_p = np.log(np.expand_dims(df[\"Pressione_PID\"].values, axis=1))\n log_t = np.log(np.expand_dims(df[\"Distanza_PID\"].values, axis=1))\n x = np.concatenate([one_on_t, log_h, log_s, log_p, log_t], axis=1)\n y = np.expand_dims( df[\"Rivestimento_PID\"].values, axis=1 )\n return x, y\n\ndef load_join_shuffle_validation_set():\n validation = pd.read_excel(input_data_path + \"prep_validation.xlsx\")\n validation_opt = pd.read_excel(input_data_path + \"prep_validation_opt.xlsx\")\n\n x_val_opt, y_val_opt = preprocessing_opt(validation_opt)\n x_val, y_val = preprocessing(validation)\n x_val_joined = np.concatenate([x_val, x_val_opt], axis=0)\n y_val_joined = np.concatenate([y_val, y_val_opt], axis=0)\n\n joined = np.concatenate([x_val_joined,y_val_joined], axis=1)\n\n np.random.seed(42)\n np.random.shuffle(joined)\n\n x = joined[:,0:-1]\n y = np.expand_dims( joined[:,-1],axis=1)\n\n #to check the randomness, see the same data at the same shuffled position.\n # print( x[1500] )\n #print( y[1500] )\n\n return x,y\n","repo_name":"Salvo000/Airknife_Model","sub_path":"airknife_model/code/utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":1704,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"36792595714","text":"__author__ = 'stephenosullivan'\n\n\nclass PyList:\n def __init__(self, contents=[], size=10):\n self.items = [None] * size\n self.numItems = 0 # number of locations used\n self.size = size\n\n for e in contents:\n self.append(e)\n\n def __getitem__(self, index):\n try:\n return self.items[index]\n except:\n raise IndexError(\"PyList index out of range\")\n\n def __setitem__(self, index, val):\n try:\n self.items[index] = val\n except:\n raise IndexError(\"PyList assignment index out of range\")\n\n def __add__(self, other):\n output = PyList(size=self.numItems + other.numItems)\n\n for i in range(self.numItems):\n output.append(self.items[i])\n\n for i in range(other.numItems):\n output.append(other.items[i])\n\n return output\n\n def __makeroom(self):\n addsize = self.size // 4 + 1\n self.size += addsize\n self.items += [None] * addsize\n\n def append(self, item):\n if self.numItems == self.size:\n self.__makeroom()\n\n self.items[self.numItems] = item\n self.numItems += 1\n\n def insert(self, index, value):\n if self.numItems == self.size:\n self.__makeroom()\n\n if index < self.numItems:\n for i in range(self.numItems, self.numItems - index, -1):\n self.items[i] = self.items[i - 1]\n self.items[index] = value\n self.numItems += 1\n\n else:\n self.append(value)\n\n def __delitem__(self, index):\n for i in range(index, self.numItems):\n self.items[i] = self.items[i+1]\n self.numItems -= 1\n\n def __eq__(self, other):\n # Type check\n if type(self) != type(other):\n return False\n\n # size check\n if self.numItems != other.numItems:\n return False\n\n # values check\n for i in range(self.numItems):\n if self.items[i] != other.items[i]:\n return False\n\n return True\n\n def __iter__(self):\n for i in range(self.numItems):\n yield self.items[i]\n\n def __len__(self):\n return self.numItems\n\n def __contains__(self, item):\n for i in range(self.numItems):\n if self.items[i] == item:\n return True\n return False\n\n def __str__(self):\n s = \"[\"\n for i in range(self.numItems):\n s += repr(self.items[i])\n if i < self.numItems - 1:\n s += \", \"\n s += \"]\"\n return s\n\n def __repr__(self):\n s = \"PyList([\"\n for i in range(self.numItems):\n s += repr(self.items[i])\n if i < self.numItems - 1:\n s += \", \"\n s += \"])\"\n return s\n\n\nif __name__ == '__main__':\n a = PyList([5, 6, 7])\n print(a)\n","repo_name":"stephenosullivan/Data_Structures_and_Algorithms","sub_path":"Python Algorithms/Lee and Hubbard/Chapter4/PyList.py","file_name":"PyList.py","file_ext":"py","file_size_in_byte":2883,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"20312700653","text":"from flask import Flask, request\nfrom textblob import TextBlob\nimport torch\nimport torchvision.models as models\nimport torchvision.transforms as transforms\nfrom PIL import Image\nimport json\n\napp = Flask(__name__)\nresnet = models.resnet101(pretrained=True)\nresnet.eval() # 设置模型为评估模式\n\ndef analyze_sentiment(text):\n blob = TextBlob(text)\n sentiment = blob.sentiment.polarity\n sentiment_type = 1\n if sentiment < 0:\n sentiment_type = 0\n elif sentiment > 0:\n sentiment_type = 4\n return sentiment_type,sentiment\n\ndef extract_features(image_path):\n # 加载图像\n image = Image.open(image_path).convert('RGB')\n\n # 定义预处理变换\n preprocess = transforms.Compose([\n transforms.Resize(256),\n transforms.CenterCrop(224),\n transforms.ToTensor(),\n transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[\n 0.229, 0.224, 0.225])\n ])\n\n # 应用预处理变换\n input_tensor = preprocess(image)\n\n # 添加一个维度作为批处理维度\n input_batch = input_tensor.unsqueeze(0)\n\n # 将输入张量移动到所选设备上(如果可用)\n device = torch.device(\"cuda\" if torch.cuda.is_available() else \"cpu\")\n input_batch = input_batch.to(device)\n\n # 提取图像特征\n with torch.no_grad():\n input_batch = input_batch.to(device)\n features = resnet(input_batch)\n\n # 将特征向量转换为一维张量\n features = torch.flatten(features, start_dim=1)\n\n # 返回特征向量\n return features\n\n\ndef compute_similarity_score(features1, features2):\n # 计算余弦相似度\n similarity_score = torch.cosine_similarity(features1, features2, dim=1)\n\n return similarity_score.item()\n\n@app.route('/sentiment/predict', methods=['POST'])\ndef sentiment_predict():\n # 获取请求数据\n data = json.loads(request.get_data())\n text = data.get(\"text\")\n sentiment_type, sentiment_score = analyze_sentiment(text)\n return {'sentiment_type': sentiment_type,'sentiment_score':sentiment_score}\n\n@app.route('/image/similarity', methods=['GET'])\ndef image_similarity():\n image_dir = \"/Users/along/Documents/dataset/FaceDataset\"\n origin = \"{}{}\".format(image_dir,request.args.get('origin'))\n target = \"{}{}\".format(image_dir,request.args.get('target'))\n\n\n # 提取图像特征\n features1 = extract_features(origin)\n features2 = extract_features(target)\n\n # 计算相似度分数\n similarity_score = compute_similarity_score(features1, features2)\n return {'similarity':similarity_score}\n\n@app.route(\"/hello\",methods=['GET'])\ndef say_hello():\n return \"hello\"\n\nif __name__ == '__main__':\n app.run()\n","repo_name":"alongmao/FusionDataBench","sub_path":"src/main/java/script/app.py","file_name":"app.py","file_ext":"py","file_size_in_byte":2703,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"26575082636","text":"from flask import Flask, render_template,url_for,redirect,request\r\nfrom flask_mysqldb import MySQL\r\n\r\napp = Flask(__name__)\r\n\r\n#mysql connection\r\napp.config['MYSQL_HOST']='localhost'\r\napp.config['MYSQL_USER']='root'\r\napp.config['MYSQL_PASSWORD']='root'\r\napp.config['MYSQL_DB']='karthi'\r\napp.config['MYSQL_CURSORCLASS']='DictCursor'\r\nmysql = MySQL(app)\r\n\r\n@app.route('/')\r\ndef home():\r\n con = mysql.connection.cursor()\r\n sql = \"select * from users\"\r\n con.execute(sql)\r\n res = con.fetchall()\r\n return render_template(\"index.html\",datas = res)\r\n\r\n#add user\r\n@app.route('/addUser',methods=['POST','GET'])\r\ndef adduser():\r\n\tif request.method == \"POST\":\r\n\t\tfname = request.form['fname']\r\n\t\tmname = request.form['mname']\r\n\t\tlname = request.form['lname']\r\n\t\tcon = mysql.connection.cursor()\r\n\t\tsql = \"insert into users(NAME,MIDDLE_NAME,LAST_NAME) values(%s,%s,%s)\"\r\n\t\tcon.execute(sql,[fname,mname,lname])\r\n\t\tmysql.connection.commit()\r\n\t\tcon.close()\r\n\t\treturn redirect(url_for('home'))\r\n\r\n\treturn render_template(\"Adduser.html\")\r\n\r\n\r\nif __name__ == \"__main__\":\r\n\tapp.run(debug=True)\r\n","repo_name":"karthi12503/name_swap","sub_path":"project/app.py","file_name":"app.py","file_ext":"py","file_size_in_byte":1109,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"8278471865","text":"from linode_api4 import LinodeClient, Instance\nimport requests\nimport re\n\napi_token = '' # replace it with your own API token\nclient = LinodeClient(api_token)\n\ndef get_invoices():\n invoices = sorted(client.account.invoices(), key=lambda invoice: invoice.date, reverse=True)\n return invoices\n\ndef get_latest_invoice_items(invoices):\n latest_invoice = invoices[0]\n items = latest_invoice.items\n return items\n\ndef get_linode_ids(items):\n bracket_id = [re.findall(r'\\((\\d{8})\\)', item.label) for item in items]\n bracket_id = [detail for detail in bracket_id if detail]\n linode_ids = [int(detail[0]) for detail in bracket_id if detail[0].isdigit()]\n return linode_ids\n\ndef get_linode_result(linode_ids):\n linode_result = []\n for linode_id in linode_ids:\n url = f'https://api.linode.com/v4/linode/instances/{linode_id}'\n headers = {'Authorization':'Bearer ' + api_token}\n response = requests.get(url, headers=headers)\n if response.status_code == 200:\n data = response.json()\n id = int(data.get('id')) \n tags = data.get('tags', [])\n linode_result.append([id, tags]) \n return linode_result\n","repo_name":"guoyingyu1989/Linode-Billing-Customization","sub_path":"linode.py","file_name":"linode.py","file_ext":"py","file_size_in_byte":1209,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"2624855877","text":"import pandas as pd\nimport re\nimport os\n\ndef fileToDict(fileName, fileType):\n file = pd.read_excel(fileName) if fileType == \"E\" else pd.read_csv(\n fileName, encoding='latin1')\n data = file.to_dict(\"records\")\n return data\n\ndef dataToDict(header, data):\n value = re.sub(\" +\", \" \", data).replace(\" \", \",\")\n res = header + value\n print(res[:-1], file=open(\"data.csv\", \"w\",encoding=\"utf-8\"))\n result = fileToDict(\"data.csv\",\"C\")\n os.remove(\"data.csv\")\n return result\n","repo_name":"conext-noc/routerConflictResolver","sub_path":"parser.py","file_name":"parser.py","file_ext":"py","file_size_in_byte":474,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34768908657","text":"import argparse\nimport random\nfrom concurrent.futures import ProcessPoolExecutor\nimport logging\nfrom trajdiff.utils import setup, set_seed, write_metadata, write_obj\nfrom trajdiff.static_obst.generator import gen_samples\nfrom trajdiff.static_obst import cfg\n\n\ndef main():\n parser = argparse.ArgumentParser()\n parser.add_argument(\n \"-n\",\n \"--n_samples\",\n type=int,\n required=True,\n help=\"Number of datapoints to generate\",\n )\n parser.add_argument(\n \"-p\",\n \"--processes\",\n type=int,\n help=\"Number of processes to generate data in parallel (defaults to all cores)\",\n default=None,\n )\n parser.add_argument(\"-f\", \"--n_per_file\", type=int, default=1000)\n parser.add_argument(\n \"-o\",\n \"--output_folder\",\n required=True,\n help=\"Output folder for .npy files from each process\",\n )\n parser.add_argument(\n \"-l\",\n \"--log_level\",\n default=\"INFO\",\n help=\"DEBUG, INFO, WARNING, ERROR\",\n )\n parser.add_argument(\"-s\", \"--seed\", default=42, type=int)\n parser.add_argument(\"-c\", \"--constrain_obsts\", default=False, action=\"store_true\")\n args = parser.parse_args()\n\n output_folder = setup(args)\n\n write_metadata(cfg, output_folder)\n\n timeout = 25 * args.n_per_file\n n_jobs = int(args.n_samples / args.n_per_file)\n\n # starter seed to create seeds for each function\n set_seed(args.seed)\n seeds = [random.random() * (i + 1) for i in range(n_jobs)]\n\n with ProcessPoolExecutor(max_workers=args.processes) as executor:\n\n futures = [\n executor.submit(\n gen_samples, cfg, args.n_per_file, seed, args.constrain_obsts\n )\n for seed in seeds\n ]\n\n for i, future in enumerate(futures, 1):\n try:\n results = future.result(timeout=timeout)\n\n write_obj(results, args.output_folder / f\"chunk{i}.pkl\")\n logging.info(\"Generated chunk %d\", i)\n\n except Exception as e:\n logging.error(\"Error with generating a chunk of problems: \", e)\n\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"vikrammeyer/trajectory-diffusion","sub_path":"scripts/static_obst/gen_data.py","file_name":"gen_data.py","file_ext":"py","file_size_in_byte":2171,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"73176062044","text":"# this code detects if a number is negative, positive, or zero\n\nimport time\n\nnum = float(input(\"Enter a number: \")) #get input\nif num > 0:\n print(\"Positive number\")\nelif num == 0:\n print(\"Zero\")\nelse:\n print(\"Negative number\")\n\nprint(\"Job finished, Console will close in three seconds\")\ntime.sleep(3)#make sure to import time before callling this\nexit()\n# wait three seconds then close the console \n","repo_name":"devmanso/Beginner-python-code-samples","sub_path":"positiveOrNegativeNumDetector.py","file_name":"positiveOrNegativeNumDetector.py","file_ext":"py","file_size_in_byte":405,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32466330588","text":"'''\nID: 11074501\nTASK: stamps\nLANG: PYTHON3\n'''\nimport math\nwith open('stamps.in', 'r') as f:\n\tir = f.readline().split()\n\tK = int(ir[0])\n\tN = int(ir[1])\n\n\tstamps = []\n\tfor i in range(N):\n\t\tfor i in f.readline().split():\n\t\t\tstamps.append(int(i))\n\tstamps.sort()\n\n\tpostages = [math.inf]*(200*10000 + 1)\n\tpostages[0] = 0\n\n\tfor i in range(N):\n\t\tfor j in range(0, 200*10000):\n\t\t\tif postages[j] < K:\n\t\t\t\tpostages[j + stamps[i]] = min(postages[j + stamps[i]], postages[j] + 1)\n\n\tans = 0\n\twhile(postages[ans] <= K):\n\t\tans += 1\n\n\twith open('stamps.out', 'w') as fo:\n\t\tfo.write(str(ans-1) + '\\n')","repo_name":"raymonddeng99/Competitive-Programming","sub_path":"USACO/3.1/stamps.py","file_name":"stamps.py","file_ext":"py","file_size_in_byte":585,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"26105056242","text":"numeros = []\nfor x in range(3):\n numeros.append(int(input('Digite um valor: ')))\nmaior = numeros[0]\nmenor = numeros[0]\nfor y in range(3):\n if numeros[y] > maior:\n maior = numeros[y]\n if numeros[y] < menor:\n menor = numeros[y]\nprint()\nprint(f'O maior valor é {maior} e o menor é {menor}')","repo_name":"RodrigoAnt93/Curso_CDD4.0","sub_path":"Python/Aula_9/Exerc_04.py","file_name":"Exerc_04.py","file_ext":"py","file_size_in_byte":312,"program_lang":"python","lang":"pt","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27898411942","text":"#[General_Constants]\nFIELD_WIDTH = 19\nFIELD_HEIGHT = 15\n\n#[Game_Constants]\nNO_ITERATIONS = 100\nMAX_CALC_TIME = 1\n\n#[Field_Constants]\nCELL_EMPTY = '.'\nCELL_SHEEP_1 = 'S'\nCELL_SHEEP_1_d = 'U'\nCELL_WOLF_1 = 'W'\nCELL_SHEEP_2 = 's'\nCELL_SHEEP_2_d = 'u'\nCELL_WOLF_2 = 'w'\nCELL_GRASS = 'g'\nCELL_RHUBARB = 'r'\nCELL_FENCE = '#'\n\n\n#[Movements]\nMOVE_NONE = 0\nMOVE_UP = -1\nMOVE_DOWN = 1\nMOVE_LEFT = -2\nMOVE_RIGHT = 2\n\n#[Awards]\nAWARD_RHUBARB = 5\nAWARD_GRASS = 1","repo_name":"alfunx/UZH-MINF4529","sub_path":"config.py","file_name":"config.py","file_ext":"py","file_size_in_byte":449,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"69796315164","text":"class Solution:\n\n # Time O(n) and Space O(n)\n def convertToTitle(self, columnNumber: int) -> str:\n alpha = {\n 1: \"A\",\n 2: \"B\",\n 3: \"C\",\n 4: \"D\",\n 5: \"E\",\n 6: \"F\",\n 7: \"G\",\n 8: \"H\",\n 9: \"I\",\n 10: \"J\",\n 11: \"K\",\n 12: \"L\",\n 13: \"M\",\n 14: \"N\",\n 15: \"O\",\n 16: \"P\",\n 17: \"Q\",\n 18: \"R\",\n 19: \"S\",\n 20: \"T\",\n 21: \"U\",\n 22: \"V\",\n 23: \"W\",\n 24: \"X\",\n 25: \"Y\",\n 26: \"Z\"\n }\n\n ans = []\n while columnNumber > 26:\n r = columnNumber % 26\n if r != 0:\n ans.append(alpha[r])\n tmp = columnNumber - r\n columnNumber = tmp // 26\n else:\n ans.append(\"Z\")\n columnNumber = (columnNumber // 26) - 1\n\n ans.append(alpha[columnNumber])\n return \"\".join(reversed(ans))\n\n\ns = Solution()\n\nassert \"AZ\" == s.convertToTitle(52), \"AZ\"\nassert \"AB\" == s.convertToTitle(28), \"AB\"\nassert \"FXSHRXW\" == s.convertToTitle(2147483647)\n\nprint(\"tests passed\")\n","repo_name":"haxul/algorithm_tasks_solving","sub_path":"python/tasks/ExcelSheetColumnTitle.py","file_name":"ExcelSheetColumnTitle.py","file_ext":"py","file_size_in_byte":1252,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"73751518365","text":"import hashlib\nimport operator\nimport os\nimport pathlib\nimport struct\nimport typing as tp\n\nfrom pyvcs.objects import hash_object\nfrom pyvcs.repo import repo_find\n\n\nclass GitIndexEntry(tp.NamedTuple):\n # @see: https://github.com/git/git/blob/master/Documentation/technical/index-format.txt\n ctime_s: int\n ctime_n: int\n mtime_s: int\n mtime_n: int\n dev: int\n ino: int\n mode: int\n uid: int\n gid: int\n size: int\n sha1: bytes\n flags: int\n name: str\n\n def pack(self) -> bytes:\n # PUT YOUR CODE HERE\n fmt = \"IIIIIIIIII\" + \"20sh\" + str(len(self.name)) + \"s\"\n packed = struct.pack(fmt, self.ctime_s, self.ctime_n, self.mtime_s, self.mtime_n,self.dev, self.ino, self.mode, self.uid, self.gid, self.size, self.sha1, self.flafs, self.name.encode())\n return packed + b\"\\x00\\x00\\x00\"\n \n @staticmethod\n def unpack(data: bytes) -> \"GitIndexEntry\":\n # PUT YOUR CODE HERE\n entry = {}\n size = struct.calcsize(\"I\")\n entry['ctime_s'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['ctime_n'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['mtime_s'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['mtime_n'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['dev'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['ino'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['mode'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['uid'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['gid'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['size'] = struct.unpack(\"!I\", data[:size])[0]\n data = data[size:]\n entry['sha1'] = struct.unpack(\"!20s\", data[:struct.calcsize(\"20s\")])[0]\n data = data[struct.calcsize(\"20s\"):]\n entry['flags'] = struct.unpack(\"!H\", data[:struct.calcsize(\"H\")])[0]\n name_len = entry['flags'] & 0xFFF\n entry['name'] = struct.unpack(f\"!{name_len}s\", data[:struct.calcsize(f\"{name_len}s\")])[0].decode()\n \n gitindexentry = GitIndexEntry(**entry)\n return gitindexentry\n\n\ndef read_index(gitdir: pathlib.Path) -> tp.List[GitIndexEntry]:\n # PUT YOUR CODE HERE\n repo = repo_find() / \"index\"\n entries = []\n if repo.exists():\n with open(repo, \"rb\") as f:\n _ = f.read(8)\n num_entries = struct.unpack(\"!I\", f.read(4))[0]\n for entry in range(num_entries):\n indexEntry = {}\n\n indexEntry['ctime_s'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['ctime_n'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['mtime_s'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['mtime_n'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['dev'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['ino'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['mode'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['uid'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['gid'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['size'] = struct.unpack(\"!I\", f.read(struct.calcsize(\"I\")))[0]\n indexEntry['sha1'] = struct.unpack(\"!20s\", f.read(struct.calcsize(\"20s\")))[0]\n indexEntry['flags'] = struct.unpack(\"!H\", f.read(struct.calcsize(\"H\")))[0]\n name_len = indexEntry['flags'] & 0xFFF\n indexEntry['name'] = struct.unpack(\"!\" + str(name_len) + \"s\", f.read(struct.calcsize(\"!\" + str(name_len) + \"s\")))[0]\n #entry_len = 62 + name_len\n #pad_len = (8-(entry_len % 8)) or 8\n nuls = 3\n _ = f.read(nuls)\n entries.sort(key=lambda x: x.name)\n return entries\n \ndef write_index(gitdir: pathlib.Path, entries: tp.List[GitIndexEntry]) -> None:\n # PUT YOUR CODE HERE\n git = gitdir / \"index\"\n fmt = \"!ssssII\"\n index = struct.pack(fmt, \"DIRC\", 2, len(entries))\n\n for entry in entries:\n packed = entry .pack()\n index += packed\n\n index += bytes.fromhex(hashlib.sha1(index).hedigest())\n with open (git, \"bw\") as f:\n f.write(index)\n\n\ndef ls_files(gitdir: pathlib.Path, details: bool = False) -> None:\n # PUT YOUR CODE HERE\n entries = read_index(gitdir)\n if details:\n info = []\n for entry in entries:\n s = f\"{oct(entry.mode)[2:]} {bytes.hex(entry.sha1)} 0\\t{entry.name}\"\n info.append(s)\n s = \"\\n\".join(info)\n print (s)\n else:\n names = []\n for entry in entries:\n names.append(entry.name)\n s = \"\\n\".join(names)\n print(s)\n\n\ndef update_index(gitdir: pathlib.Path, paths: tp.List[pathlib.Path], write: bool = True) -> None:\n # PUT YOUR CODE HERE\n entries = []\n for path in paths:\n stat = path.stat()\n with open(path, \"rb\") as f:\n entry = GitIndexEntry(\n ctime_s=stat.st_ctime,\n ctime_n=0,\n mtime_s=stat.st_mtime,\n mtime_n=0,\n dev=stat.st_dev,\n ino=stat.st_ino,\n mode=stat.st_mode,\n uid=stat.st_uid,\n gid=stat.st_gid,\n size=stat.st_size,\n sha1=bytes.fromhex(hash_object(f.read(), \"blob\", write=write)),\n flags=len(str(path)),\n name=str(path)\n )\n entries.append(entry)\n write_index(gitdir, entries)\n","repo_name":"LenaSpevak/programming","sub_path":"homework04/index.py","file_name":"index.py","file_ext":"py","file_size_in_byte":5924,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"23262560145","text":"# Copyright (c) Alibaba, Inc. and its affiliates.\r\n\r\nfrom typing import Dict\r\n\r\nimport numpy as np\r\nfrom sklearn.metrics import accuracy_score, f1_score\r\n\r\nfrom modelscope.metainfo import Metrics\r\nfrom modelscope.outputs import OutputKeys\r\nfrom modelscope.utils.registry import default_group\r\nfrom modelscope.utils.tensor_utils import (torch_nested_detach,\r\n torch_nested_numpify)\r\nfrom .base import Metric\r\nfrom .builder import METRICS, MetricKeys\r\n\r\n\r\n@METRICS.register_module(\r\n group_key=default_group, module_name=Metrics.seq_cls_metric)\r\nclass SequenceClassificationMetric(Metric):\r\n \"\"\"The metric computation class for sequence classification tasks.\r\n\r\n This metric class calculates accuracy of the whole input batches.\r\n \"\"\"\r\n\r\n def __init__(self, *args, **kwargs):\r\n super().__init__(*args, **kwargs)\r\n self.preds = []\r\n self.labels = []\r\n\r\n def add(self, outputs: Dict, inputs: Dict):\r\n label_name = OutputKeys.LABEL if OutputKeys.LABEL in inputs else OutputKeys.LABELS\r\n ground_truths = inputs[label_name]\r\n eval_results = outputs[OutputKeys.LOGITS]\r\n self.preds.append(\r\n torch_nested_numpify(torch_nested_detach(eval_results)))\r\n self.labels.append(\r\n torch_nested_numpify(torch_nested_detach(ground_truths)))\r\n\r\n def evaluate(self):\r\n preds = np.concatenate(self.preds, axis=0)\r\n labels = np.concatenate(self.labels, axis=0)\r\n preds = np.argmax(preds, axis=1)\r\n return {\r\n MetricKeys.ACCURACY:\r\n accuracy_score(labels, preds),\r\n MetricKeys.F1:\r\n f1_score(\r\n labels,\r\n preds,\r\n average='micro' if any([label > 1\r\n for label in labels]) else None),\r\n }\r\n","repo_name":"sdjamesliu/alldata","sub_path":"ai/modelscope-versions/modelscope-master/modelscope/metrics/sequence_classification_metric.py","file_name":"sequence_classification_metric.py","file_ext":"py","file_size_in_byte":1870,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5668822160","text":"import random\nimport sys\n\ntry:\n n = int(sys.argv[1])\nexcept IndexError:\n print(\"Error! Enter N\")\n n = int(input())\n \nsum = 0;\nfor i in range(n):\n r = random.uniform(-1, 1);\n print (\"%.4f\"%r);\n sum+=r;\nprint(\"average: %.4f\"%(sum/n))","repo_name":"restaver/summer_practice2018_Python","sub_path":"dz2.py","file_name":"dz2.py","file_ext":"py","file_size_in_byte":252,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"39469290857","text":"#!/usr/bin/env python3\n# encoding: utf-8\n\n\"\"\"\n@Filename: removeDuplicates.py\n@Function: 删除有序数组中的重复项\n@Link: https://leetcode-cn.com/problems/remove-duplicates-from-sorted-array/\n@Python Version: 3.8\n@Author: Wei Li\n@Date:2021-08-04\n\"\"\"\n\n\nfrom typing import List\n\n\nclass Solution:\n def removeDuplicates(self, nums: List[int]) -> int:\n length_list = len(nums)\n if not length_list:\n return 0\n\n # 双指针策略\n fast = slow = 1\n while fast < length_list:\n if nums[fast] != nums[fast - 1]:\n nums[slow] = nums[fast]\n slow += 1\n fast += 1\n\n return slow\n\n\n# --------------------------\nif __name__ == \"__main__\":\n # nums = [1, 1, 2]\n nums = [0, 0, 1, 1, 1, 2, 2, 3, 3, 4]\n\n solution = Solution()\n num_duplicate_list = solution.removeDuplicates(nums)\n print(f\"The length of original list is {len(nums)}\")\n print(f\"The length of remove duplicate list is {num_duplicate_list}\")\n","repo_name":"2694048168/LeetCodeAlgorithm","sub_path":"Python/removeDuplicates.py","file_name":"removeDuplicates.py","file_ext":"py","file_size_in_byte":1017,"program_lang":"python","lang":"en","doc_type":"code","stars":15,"dataset":"github-code","pt":"86"}
+{"seq_id":"181093045","text":"from functools import cached_property\nimport re\nimport sys\n\nfrom bespokeasm.assembler.line_identifier import LineIdentifier\nfrom bespokeasm.assembler.bytecode.parts import NumericByteCodePart, ExpressionByteCodePartInMemoryZone\nfrom bespokeasm.assembler.model.operand import OperandWithArgument, OperandType, ParsedOperand\nfrom bespokeasm.assembler.label_scope import LabelScope\nfrom bespokeasm.expression import EXPRESSION_PARTS_PATTERN\nfrom bespokeasm.assembler.memory_zone.manager import MemoryZoneManager\nfrom bespokeasm.assembler.memory_zone import MemoryZone\n\n\nclass RelativeAddressByteCodePart(ExpressionByteCodePartInMemoryZone):\n def __init__(\n self,\n value_expression: str,\n value_size: int,\n byte_align: bool,\n endian: str,\n line_id: LineIdentifier,\n min_relative_value: int,\n max_relative_value: int,\n memzone: MemoryZone,\n offset_from_instruction_end: bool,\n ) -> None:\n super().__init__(memzone, value_expression, value_size, byte_align, endian, line_id)\n self._min_relative_value = min_relative_value\n self._max_relative_value = max_relative_value\n self._offset_from_instruction_end = offset_from_instruction_end\n\n def get_value(self, label_scope: LabelScope, instruction_address: int, instruction_size: int) -> int:\n if instruction_address is None:\n raise ValueError('RelativeAddressByteCodePart.get_value had no instruction_address passed')\n expression_value = super().get_value(label_scope, instruction_address, instruction_size)\n relative_value = expression_value - instruction_address\n if self._offset_from_instruction_end:\n # minus one to account for the current address being 1 byte of instruction size\n relative_value -= instruction_size - 1\n if self._max_relative_value is not None and relative_value > self._max_relative_value:\n sys.exit(\n f'ERROR: {self.line_id} - Relative address offset is larger than configured '\n f'maximum value of {self._max_relative_value}'\n )\n if self._min_relative_value is not None and relative_value < self._min_relative_value:\n sys.exit(\n f'ERROR: {self.line_id} - Relative address offset is smaller than configured '\n f'minimum value of {self._min_relative_value}'\n )\n return relative_value\n\n\nclass RelativeAddressOperand(OperandWithArgument):\n def __init__(self, operand_id: str, arg_config_dict: dict, default_endian: str, require_arg: bool = True) -> None:\n super().__init__(operand_id, arg_config_dict, default_endian, require_arg)\n\n def __str__(self):\n return f'RelativeAddressOperand<{self.id}>'\n\n @property\n def type(self) -> OperandType:\n return OperandType.RELATIVE_ADDRESS\n\n @cached_property\n def match_pattern(self) -> str:\n base_match_str = r'((?:{0}|\\s)+)'.format(EXPRESSION_PARTS_PATTERN)\n if self.uses_curly_braces:\n return r'\\{{\\s*{0}\\s*\\}}'.format(base_match_str)\n else:\n return base_match_str\n\n @property\n def uses_curly_braces(self) -> bool:\n return self.config.get('use_curly_braces', False)\n\n @property\n def max_offset(self) -> int:\n return self.config['argument'].get('max', None)\n\n @property\n def min_offset(self) -> int:\n return self.config['argument'].get('min', None)\n\n @property\n def offset_from_instruction_end(self) -> bool:\n return self.config.get('offset_from_instruction_end', False)\n\n def parse_operand(\n self,\n line_id: LineIdentifier,\n operand: str,\n register_labels: set[str],\n memzone_manager: MemoryZoneManager,\n ) -> ParsedOperand:\n # find argument per the required pattern\n match = re.match(self.match_pattern, operand.strip())\n if match is None or len(match.groups()) != 1:\n return None\n # do not match if expression contains square bracks\n if \"[\" in operand or \"]\" in operand:\n return None\n bytecode_part = NumericByteCodePart(\n self.bytecode_value,\n self.bytecode_size,\n False,\n 'big',\n line_id\n ) if self.bytecode_value is not None else None\n arg_part = RelativeAddressByteCodePart(\n match.group(1).strip(),\n self.argument_size,\n self.argument_byte_align,\n self.argument_endian,\n line_id,\n self.min_offset,\n self.max_offset,\n memzone_manager.global_zone,\n self.offset_from_instruction_end,\n )\n if arg_part.contains_register_labels(register_labels):\n return None\n return ParsedOperand(self, bytecode_part, arg_part, operand)\n","repo_name":"michaelkamprath/bespokeasm","sub_path":"src/bespokeasm/assembler/model/operand/types/relative_address.py","file_name":"relative_address.py","file_ext":"py","file_size_in_byte":4944,"program_lang":"python","lang":"en","doc_type":"code","stars":16,"dataset":"github-code","pt":"86"}
+{"seq_id":"858193052","text":"# -*- coding: utf-8 -*-\n\n# Imports ---------------------------------------------------------------------\n\nimport csv\nimport datetime\nimport os\nimport pandas\nimport pathlib\nimport feedstream.data as data\nimport feedstream.exceptions as exceptions\nimport feedstream.fetch as fetch\nfrom feedstream.config import settings\n\n# Constants -------------------------------------------------------------------\n\nTIMESTAMP_FILE = os.path.join(settings.timestamp_file)\n\n# Download functions ----------------------------------------------------------\n\ndef download_entries(flatten=False):\n\n \"\"\"\n Download entries for each tag and return a dict of the parsed items. If the\n API token is expired at any point, refresh the token and retry.\n\n \"\"\"\n\n try:\n return _download_entries(flatten)\n except exceptions.ApiError as e:\n if e.status_code == 401 and e.api_msg.startswith(\"token expired\") :\n if settings.enterprise:\n fetch.fetch_access_token()\n return _download_entries(flatten)\n else:\n raise\n else:\n raise\n\n\ndef _download_entries(flatten):\n\n \"\"\"Download entries for each tag and return a dict of the parsed items.\"\"\"\n\n items = []\n since = get_last_downloaded() if settings.download_new else None\n downloaded = data.get_timestamp_from_datetime(datetime.datetime.now())\n tag_ids = fetch.fetch_tag_ids()\n\n # Fetch the articles for each tag, including any continuations\n for tag in tag_ids:\n\n continuation = None\n\n while True:\n\n contents = fetch.fetch_tag_entries(tag['id'],\n since=since, continuation=continuation)\n\n for item in contents['items']:\n\n # Check the tag data looks sane: accessing an enterprise\n # account with settings.enterprise set to false causes problems\n if not data.key_exists(tag, 'id') or \\\n not data.key_exists(tag, 'label'):\n\n raise exceptions.UnexpectedDataError(\n 'missing fields in tag data: are you accessing an '\n 'enterprise account without declaring it in your '\n 'config file?')\n\n item = data.parse_item(\n tag['id'],\n tag['label'],\n item,\n flatten)\n\n items.append(item)\n\n continuation = data.get_opt_key(contents, 'continuation')\n if continuation is None:\n break\n\n entries = {\n 'timestamp': downloaded,\n 'fieldnames': data.FIELDNAMES,\n 'items': items}\n\n return entries\n\n\ndef download_entries_df():\n\n \"\"\"\n Download entries for each tag and return a dataframe of the items. Nested\n fields are flattened into a single field with items separated using the\n separator string defined in the data module. The function returns a tuple\n containing the timestamp of the download and the dataframe itself.\n\n \"\"\"\n\n entries = download_entries(flatten=True)\n timestamp = entries['timestamp']\n df = pandas.DataFrame(entries['items'])\n return (timestamp, df)\n\n\ndef download_entries_csv():\n\n \"\"\"Download entries to a csv\"\"\"\n\n entries = download_entries(flatten=True)\n downloaded = entries['timestamp']\n fieldnames = entries['fieldnames']\n items = entries['items']\n\n try:\n\n pathlib.Path(settings.data_dir).mkdir(exist_ok=True)\n\n filename = '{0}-{1}-{2}.csv'.format(\n settings.download_prefix,\n data.get_date_from_timestamp(downloaded),\n data.get_time_from_timestamp(downloaded).strftime('%H-%M-%S'))\n\n filepath = os.path.join(settings.data_dir, filename)\n\n with open(filepath, 'w', newline='', encoding='utf-8') as csvfile:\n writer = csv.DictWriter(csvfile, fieldnames=fieldnames,\n quoting=csv.QUOTE_NONNUMERIC)\n writer.writeheader()\n for item in items:\n writer.writerow(item)\n\n set_last_downloaded(downloaded)\n return filename\n\n except:\n raise\n\n# Timestamp functions ---------------------------------------------------------\n\ndef get_last_downloaded():\n\n \"\"\"Get the timestamp for the last time data was downloaded.\"\"\"\n\n try:\n with open(TIMESTAMP_FILE) as f:\n timestamp_str = f.read()\n return int(timestamp_str)\n except FileNotFoundError:\n return None\n\n\ndef set_last_downloaded(timestamp):\n\n \"\"\"Set the timestamp for the last time data was downloaded.\"\"\"\n\n pathlib.Path(settings.data_dir).mkdir(exist_ok=True)\n\n with open(TIMESTAMP_FILE, 'w') as f:\n f.write('{0}'.format(timestamp))\n","repo_name":"olihawkins/feedstream","sub_path":"feedstream/download.py","file_name":"download.py","file_ext":"py","file_size_in_byte":4744,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"70693236764","text":"'''\n가운데 글자 가져오기\nhttps://programmers.co.kr/learn/courses/30/lessons/12903\n문제 설명\n단어 s의 가운데 글자를 반환하는 함수, solution을 만들어 보세요. 단어의 길이가 짝수라면 가운데 두글자를 반환하면 됩니다.\n\n재한사항\ns는 길이가 1 이상, 100이하인 스트링입니다.\n입출력 예\ns\treturn\n\"abcde\"\t\"c\"\n\"qwer\"\t\"we\"\n\n'''\n'''\n# 첫시도 , 채점 시 오류가 계속 발생함. \n아무래도 round 때문인 것 같음.\ns = \"abcde\"\n# s = \"qwer\"\nprint(len(s))\ndef solution(s):\n answer=''\n # s의 글자 개수가 홀수 일 경우\n ls = int(len(s))\n a = round(ls / 2)\n #print(a, 'a')\n if ls % 2 == 1: answer = s[a]\n # s의 글자 개수가 짝수 일 경우\n elif ls % 2 == 0 : answer = s[a-1:a+1]\n return answer\n\nprint(solution(\"abcde\"))\n# print(solution(\"qwer\"))\n'''\n# s = \"abcde\"\ns = \"qwer\"\n# b = (len(s)-1)//2\n# print(b)\ndef solution(s):\n answer=''\n # s의 글자 개수가 홀수 일 경우\n if int(len(s)) % 2 == 1: answer = s[int(len(s)/2)]\n # s의 글자 개수가 짝수 일 경우\n elif int(len(s)) % 2 == 0 : answer = s[int(len(s)/2)-1:int(len(s)/2)+1]\n return answer\n# print(solution(\"abcde\"))\nprint(solution(\"powerk\"))\n\n\n'''\n정리 : 몫을 구하면 되는 문제였는데, 굳이 if 문 없이도 몫만 구해서 아래와 같이 쉽게 구할 수 있었음. \nround에 집착하지 않았어도 됫었음\n\n다른사람 답\ndef string_middle(str):\n # 함수를 완성하세요\n return str[(len(str)-1)//2:len(str)//2+1]\n# 아래는 테스트로 출력해 보기 위한 코드입니다.\nprint(string_middle(\"power\"))\n\n****** '//' :몫을 구하면 정수화 시켜주지 않아도 나누기 연산 후 소수점 이하의 수를 버리고, 정수 부분의 수만 구함\ncf '%' : 몫이 아닌 나머지를 구함\n'/' : 나누\n================\n\ndef string_middle(str):\n a = len(str)\n if a % 2 == 0 :\n a = (a-2) / 2\n else :\n a = (a-1) / 2\n return str[int(a) : -int(a)]\n# 아래는 테스트로 출력해 보기 위한 코드입니다.\nprint(string_middle(\"power\"))\n\n\n'''","repo_name":"jiroh1/Python_algorithm","sub_path":"programmers/12903_string.py","file_name":"12903_string.py","file_ext":"py","file_size_in_byte":2133,"program_lang":"python","lang":"ko","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"1701451451","text":"# Author: Hye Yeon Park\n# Date: 03/09/2021\n# Description: [CS 162 Portfolio Project] This program is to simulate an abstract board game called Janggi.\n# It is played on a board nine lines wide by ten lines long with Blue and Red as the competing players and\n# Blue as the starting player. The game ends when one player checkmates the other's general.\n\nimport copy\n\n\nclass JanggiGame:\n \"\"\"\n Janggi Game class with a board nine lines wide by ten lines long with Blue and Red\n as the competing players and Blue as the starting player.\n The game ends when one player checkmates the other's general.\n Includes methods called is_in_check, make_move, get_game_state and etc.\n Current board can be printed using a method called get_board.\n \"\"\"\n\n def __init__(self):\n \"\"\"\n Initializes all data members\n \"\"\"\n self._base_board = [\n [\"a1\", \"b1\", \"c1\", \"d1\", \"e1\", \"f1\", \"g1\", \"h1\", \"i1\"],\n [\"a2\", \"b2\", \"c2\", \"d2\", \"e2\", \"f2\", \"g2\", \"h2\", \"i2\"],\n [\"a3\", \"b3\", \"c3\", \"d3\", \"e3\", \"f3\", \"g3\", \"h3\", \"i3\"],\n [\"a4\", \"b4\", \"c4\", \"d4\", \"e4\", \"f4\", \"g4\", \"h4\", \"i4\"],\n [\"a5\", \"b5\", \"c5\", \"d5\", \"e5\", \"f5\", \"g5\", \"h5\", \"i5\"],\n [\"a6\", \"b6\", \"c6\", \"d6\", \"e6\", \"f6\", \"g6\", \"h6\", \"i6\"],\n [\"a7\", \"b7\", \"c7\", \"d7\", \"e7\", \"f7\", \"g7\", \"h7\", \"i7\"],\n [\"a8\", \"b8\", \"c8\", \"d8\", \"e8\", \"f8\", \"g8\", \"h8\", \"i8\"],\n [\"a9\", \"b9\", \"c9\", \"d9\", \"e9\", \"f9\", \"g9\", \"h9\", \"i9\"],\n [\"a10\", \"b10\", \"c10\", \"d10\", \"e10\", \"f10\", \"g10\", \"h10\", \"i10\"],\n ]\n\n # RC=RedChariot, RE=RedElephant, RH=RedHorse, RG=RedGuard, *RK=RedGeneral, *RN=RedCannon, RS=RedSoldier\n # BC=BlueChariot, BE=BlueElephant, BH=BlueHorse, BG=BlueGuard, *BK=BlueGeneral, *BN=BlueCannon, BS=BlueSoldier\n self._board = [\n [\"RC\", \"RE\", \"RH\", \"RG\", \"OO\", \"RG\", \"RE\", \"RH\", \"RC\"],\n [\"OO\", \"OO\", \"OO\", \"OO\", \"RK\", \"OO\", \"OO\", \"OO\", \"OO\"],\n [\"OO\", \"RN\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"RN\", \"OO\"],\n [\"RS\", \"OO\", \"RS\", \"OO\", \"RS\", \"OO\", \"RS\", \"OO\", \"RS\"],\n [\"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\"],\n [\"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\"],\n [\"BS\", \"OO\", \"BS\", \"OO\", \"BS\", \"OO\", \"BS\", \"OO\", \"BS\"],\n [\"OO\", \"BN\", \"OO\", \"OO\", \"OO\", \"OO\", \"OO\", \"BN\", \"OO\"],\n [\"OO\", \"OO\", \"OO\", \"OO\", \"BK\", \"OO\", \"OO\", \"OO\", \"OO\"],\n [\"BC\", \"BE\", \"BH\", \"BG\", \"OO\", \"BG\", \"BE\", \"BH\", \"BC\"]\n ]\n\n self._turn_count = 0 # even count = blue's turn, odd count = red's turn\n self._game_state = \"UNFINISHED\" # 'UNFINISHED' or 'RED_WON' or 'BLUE_WON'\n self._check = False\n self._checkmate = False\n self._move_from_idx = [] # index of the move_from position\n self._move_to_idx = [] # index of the move_to position\n self._moves = [] # all possible moves of the given piece as index of destination\n self._captured = [\"OO\"]\n self._threat = None # threatening piece for the general\n self._threat_idx = [] # threatening piece index\n\n def get_board(self):\n \"\"\" Print out the current board for testing purpose \"\"\"\n print(\"-----This is the current board-----\")\n for x in self._board:\n for i in range(0, 9):\n print(x[i], end=\" \")\n print()\n print(\"-----------------------------------\")\n\n def get_base_board(self):\n \"\"\" Print out the base board for testing purpose \"\"\"\n print(\"------This is the base board-------\")\n for x in self._base_board[:-1]:\n for i in range(0, 9):\n print(x[i], end=\" \")\n print()\n # print last row separate, for column alignment\n for i in range(0, 9):\n print(self._base_board[9][i], end=\" \")\n print()\n print(\"-----------------------------------\")\n\n def get_game_state(self):\n \"\"\" Returns game state \"\"\"\n return self._game_state\n\n def set_game_state(self):\n \"\"\" Sets game state \"\"\"\n if self.get_player() == \"B\":\n self._game_state = \"RED_WON\"\n else:\n self._game_state = \"BLUE_WON\"\n\n def get_player(self):\n \"\"\" Returns whose turn it is \"\"\"\n if self._turn_count % 2 == 0:\n return \"B\"\n else:\n return \"R\"\n\n def get_piece(self, row, col):\n \"\"\" Returns a piece at a given location \"\"\"\n return self._board[row][col]\n\n def get_opponent(self):\n \"\"\" Returns the opposing player \"\"\"\n if self.get_player() == \"B\":\n return \"R\"\n else:\n return \"B\"\n\n def is_in_check(self, player):\n \"\"\"\n Takes as a parameter either 'red' or 'blue' and returns True if that player is in check,\n but returns False otherwise.\n \"\"\"\n if self._check == \"B\" and player == \"blue\":\n print(\"Blue general is in check!\")\n return True\n elif self._check == \"R\" and player == \"red\":\n print(\"Red general is in check!\")\n return True\n return False\n\n def is_check(self):\n \"\"\"\n Checks if the opposing general is in a direct threat on the player's next move.\n Generate all possible moves of all the player's pieces.\n If any pieces can capture the opponent's general, sets _check to the opponent.\n \"\"\"\n self._captured = [\"OO\"] # reset captured list\n\n # go through the board and check all possible moves for the player's piece\n for x in range(0, 10):\n for y in range(0, 9):\n if self._board[x][y][0] == self.get_player():\n piece_initial = self._board[x][y][1]\n\n # save the current piece's index\n temp_idx = self._move_from_idx\n self._move_from_idx = [x, y]\n self.call_moves(piece_initial)\n # revert the index\n self._move_from_idx = temp_idx\n\n # if the opponent's general is captured, the opponent is in check\n for i in range(len(self._captured)):\n if self._captured[i][1] == \"K\" and self._captured[i][0] == self.get_opponent():\n self._check = self.get_opponent()\n\n def is_checkmate(self):\n \"\"\"\n Checks if the general in check can escape in the next move.\n First sets checkmate and then finds a way to escape.\n Checks if the general can move away or capture the threatening piece.\n If still checkmate, check if any pieces can capture the threatening piece.\n If still checkmate, check if any pieces can block the threatening piece.\n If there is no escape, it's checkmate.\n Sets _checkmate to True, sets the game state and the game is over.\n \"\"\"\n # whose turn at this point = player in check\n # set checkmate\n self._checkmate = True\n\n # get the general's current position\n general = None\n for i in range(1, 10):\n for j in range(1, 9):\n if self._board[i][j] == self.get_player() + \"K\":\n general = self._board[i][j]\n self._move_from_idx = [i, j]\n break\n j += 1\n i += 1\n\n row = self._move_from_idx[0]\n col = self._move_from_idx[1]\n\n # get all possible moves of the general\n self.call_moves(\"K\")\n\n # save the current board\n copied_board = copy.deepcopy(self._board)\n\n for (x, y) in self._moves:\n # make the general's move\n self._board[x][y] = general\n self._board[row][col] = \"OO\"\n\n # check if still in check, if not, it's not checkmate\n self._turn_count += 1 # switch player for is_check test\n\n temp_check = self._check # save current _check\n self._check = False # reset _check\n self.is_check() # rerun is_check to see if still in check\n if self._check is False:\n self._checkmate = False\n\n self._check = temp_check\n self._turn_count -= 1 # switch player back\n\n # if player in check doesn't match the current player\n if self._check != self.get_player():\n self._checkmate = False\n\n # revert the board\n self._board = copied_board\n\n # the general is still in checkmate\n # check if other pieces can capture the threatening piece\n # go through the board and check all possible moves for each piece\n self._captured = [\"OO\"] # reset captured list\n for x in range(0, 10):\n for y in range(0, 9):\n\n if self.get_piece(x, y)[0] == self.get_player():\n piece_initial = self._board[x][y][1]\n\n self._move_from_idx = [x, y] # set the current index with x, y\n self.call_moves(piece_initial)\n\n # if the threatening piece can be captured, it's not checkmate\n for i in range(len(self._captured)):\n if self._captured[i] == self._threat:\n self._checkmate = False\n break\n # if not, continue the loop\n\n # if still checkmate, check if other pieces can block the threatening piece\n if self._checkmate:\n if self.check_block(row, col): # push general's index\n self._checkmate = False\n\n # if still checkmate, set the game state and game is over\n if self._checkmate:\n self.set_game_state()\n\n def check_block(self, row, col):\n \"\"\"\n Helper function for is_checkmate.\n Receives general's index and checks if any non-general pieces can block the path\n of the threatening piece and the player's general\n \"\"\"\n # whose turn? player in check\n between_positions = []\n gr = row # general's row index\n gc = col # general's column index\n tr = self._threat_idx[0] # threatening piece's row index\n tc = self._threat_idx[1] # threatening piece's column index\n\n # if the threatening piece is Cannon(N) or Chariot(C)\n if self._threat[1] == \"N\" or self._threat[1] == \"C\":\n # save the between positions between cannon and the general in check\n # check if any piece can block the path\n\n if tc == gc: # the move is vertical\n direction = (tr - gr) / abs(tr - gr)\n for i in range(abs(tr - gr)):\n occupied_piece = self.get_piece(int(tr - direction * (i + 1)), gc)\n if occupied_piece == \"OO\":\n between_positions.append((int(tr - direction * (i + 1)), gc))\n\n if tr == gr: # the move is horizontal\n direction = (tc - gc) / abs(tc - gc)\n for i in range(abs(tc - gc)):\n occupied_piece = self.get_piece(gr, int(tc - direction * (i + 1)))\n if occupied_piece == \"OO\":\n between_positions.append((gr, int(tc - direction * (i + 1))))\n\n # if the threatening piece is Horse(H)\n if self._threat[1] == \"H\":\n # calculate the between position based on the threatening piece and the general's positions\n\n # check if the move is vertical\n if abs(tr - gr) > abs(tc - gc):\n between_positions.append((tr - int((tr - gr) / 2), tc))\n\n else: # move is horizontal\n between_positions.append((tr, tc - int((tc - gc) / 2)))\n\n # if the threatening piece is Elephant(E)\n if self._threat[1] == \"E\":\n # calculate the between positions based on the threatening piece and the general's positions\n\n # check if the move is vertical\n if abs(tr - gr) > abs(tc - gc):\n between_positions.append((tr - int((tr - gr) / 3), tc))\n between_positions.append((tr - int((tr - gr) * 2 / 3), tc - int((tc - gc) / 2)))\n\n else: # move is horizontal\n between_positions.append((tr, tc - int((tc - gc) / 3)))\n between_positions.append((tr - int((tr - gr) / 2), tc - int((tc - gc) * 2 / 3)))\n\n # go through the board and check if any pieces can block the path\n for x in range(0, 10):\n for y in range(0, 9):\n occupant = self.get_piece(x, y)\n\n # check with all player's pieces except the general\n if occupant[0] == self.get_player() and occupant[1] != \"K\":\n piece_initial = self._board[x][y][1]\n\n # save the current piece's index\n temp_idx = self._move_from_idx\n self._move_from_idx = [x, y]\n self.call_moves(piece_initial)\n self._move_from_idx = temp_idx # revert the index\n\n for pos in between_positions:\n if pos in self._moves:\n return True\n\n def is_selfcheck(self):\n \"\"\"\n Check if the valid move puts or leaves the player's general in check.\n A player cannot make such moves.\n \"\"\"\n self._captured = [\"OO\"] # reset captured list\n\n # go through the board and check all possible moves for each piece\n for x in range(0, 10):\n for y in range(0, 9):\n if self._board[x][y][0] == self.get_opponent():\n piece_initial = self._board[x][y][1]\n\n # switch player to check if opponent can catch player's general\n self._turn_count += 1\n # save the current piece's index\n temp_idx = self._move_from_idx\n self._move_from_idx = [x, y]\n self.call_moves(piece_initial)\n self._move_from_idx = temp_idx # revert the index\n self._turn_count -= 1 # switch player back\n\n # if general is captured, the move puts or leaves the player's general in check.\n # is_selfcheck returns True meaning the move is invalid\n for i in range(len(self._captured)):\n if self._captured[i][1] == \"K\" and self._captured[i][0] == self.get_player():\n return True\n\n return False\n\n def make_move(self, move_from, move_to):\n \"\"\"\n Takes two string parameters that represent the square to move from and the square to move to.\n If the square being moved from contains opponent's piece or if the indicated move is not legal,\n or if the game has already been won, then return False.\n Otherwise make the indicated move, remove any captured piece, update the game state if necessary\n update whose turn it is, and return True.\n Call is_selfcheck to check if a player makes a move that puts or leaves their general in check.\n Call is_check to check if the opponent's general is in check.\n Call is_checkmate to check if it's checkmate and the game is over.\n \"\"\"\n move_from_piece = None\n move_to_piece = None\n self._check = False # reset _check\n\n if self._game_state != \"UNFINISHED\":\n print(\"Invalid move! The game is already over.\")\n return False\n\n # two passed strings are the same, the player passes its turn and return True\n if move_from == move_to:\n self._turn_count += 1\n return True\n\n else:\n # get the piece at the move_from position and its index\n i = int(move_from[1:]) - 1\n j = 0\n for j in range(0, 9):\n if self._base_board[i][j] == move_from:\n move_from_piece = self._board[i][j]\n self._move_from_idx = [i, j]\n break\n\n # get the piece at the move_to position and its index\n x = int(move_to[1:]) - 1\n y = 0\n for y in range(0, 9):\n if self._base_board[x][y] == move_to:\n move_to_piece = self._board[x][y]\n self._move_to_idx = [x, y]\n break\n\n # the move_from position doesn't have the player's piece\n if self.get_player() != move_from_piece[0]:\n print(\"Invalid move! The starting position doesn't have the player's piece.\")\n return False\n\n # the move_to position has the player's own piece\n if self.get_player() == move_to_piece[0]:\n print(\"Invalid move! The destination position has the player's own piece.\")\n return False\n\n # get all possible moves for the current piece\n self.call_moves(move_from_piece[1])\n\n # if move_to index is one of the possible moves, the move is valid\n if (self._move_to_idx[0], self._move_to_idx[1]) in self._moves:\n\n # save the current board\n copied_board = copy.deepcopy(self._board)\n\n # make the indicated move\n self._board[x][y] = move_from_piece\n self._board[i][j] = \"OO\"\n\n # check if the opponent's general is in check\n temp_check = self._check # save whose in check\n self.is_check()\n\n # check if the move puts or leaves the player's general in check\n if self.is_selfcheck() is True:\n # if yes, revert the board and return False\n self._board = copied_board\n self._check = temp_check # is_selfcheck() is True, invalid move, revert _check\n print(\"Invalid move! The move puts or leaves the player's general in check.\")\n return False\n\n # update the turn\n self._turn_count += 1\n\n # if general in check, check if it's checkmate\n if self._check:\n # save the threatening piece to use it in is_checkmate\n self._threat = self._board[x][y]\n self._threat_idx = [x, y]\n self.is_checkmate()\n\n # the move is valid\n return True\n\n return False\n\n def call_moves(self, piece_initial):\n \"\"\"\n Calls each piece's move and return all possible moves of the piece.\n Called by make_move, is_selfcheck, is_check, is_checkmate.\n \"\"\"\n self._moves = [] # reset moves list\n self._captured = [\"OO\"] # reset captured list\n\n if piece_initial == \"S\":\n self.soldier_moves()\n return self._moves\n if piece_initial == \"H\":\n self.horse_moves()\n return self._moves\n if piece_initial == \"E\":\n self.elephant_moves()\n return self._moves\n if piece_initial == \"C\":\n self.chariot_moves()\n return self._moves\n if piece_initial == \"N\":\n self.cannon_moves()\n return self._moves\n if piece_initial == \"K\" or \"G\":\n self.general_guard_moves()\n return self._moves\n\n def add_to_moves(self, directions):\n \"\"\"\n Called by each piece's move function to save the possible moves and any captured pieces\n \"\"\"\n row = self._move_from_idx[0]\n col = self._move_from_idx[1]\n\n for (x, y) in directions:\n if self.check_range(row + x, col + y):\n occupant = self.get_piece(row + x, col + y)\n\n if occupant != \"OO\":\n # add captured piece and add the move\n if occupant[0] == self.get_opponent():\n self._captured.append(occupant)\n move = (row + x, col + y)\n self._moves.append(move)\n\n else:\n # add the move\n move = (row + x, col + y)\n self._moves.append(move)\n\n def check_range(self, row, col):\n \"\"\" Checks if the given position is out of the board \"\"\"\n if 0 <= row <= 9 and 0 <= col <= 8:\n return True\n\n def soldier_moves(self):\n \"\"\" Returns all possible moves for Soldier piece \"\"\"\n row = self._move_from_idx[0]\n col = self._move_from_idx[1]\n\n if self.get_player() == \"B\":\n directions = [(0, -1), (0, 1), (-1, 0)]\n else:\n directions = [(0, -1), (0, 1), (1, 0)]\n\n # if in palace, diagonal move may be possible\n diag_pos = [(7, 3), (7, 5), (9, 3), (9, 5), (8, 4), (0, 3), (0, 5), (2, 3), (2, 5), (1, 4)]\n diag_directions = []\n if (row, col) in diag_pos:\n if self.get_player() == \"B\":\n diag_directions = [(-1, -1), (-1, 1)]\n else:\n diag_directions = [(1, 1), (1, -1)]\n\n # add all the possible moves to self._moves\n self.add_to_moves(directions + diag_directions)\n return self._moves\n\n def horse_moves(self):\n \"\"\" Returns all possible moves for Horse piece \"\"\"\n row = self._move_from_idx[0]\n col = self._move_from_idx[1]\n path = [(1, 0), (-1, 0), (0, 1), (0, -1)]\n directions = [(2, 1), (2, -1), (-2, 1), (-2, -1), (1, 2), (1, -2), (-1, 2), (-1, -2)]\n\n # remove directions with intervening piece on the path\n for (x, y) in path:\n if self.check_range(row + x, col + y):\n if self.get_piece(row + x, col + y) != \"OO\":\n if y == 0:\n directions.remove((x * 2, y + 1))\n directions.remove((x * 2, y - 1))\n if x == 0:\n directions.remove((x + 1, y * 2))\n directions.remove((x - 1, y * 2))\n\n # add all the possible moves to self._moves\n self.add_to_moves(directions)\n return self._moves\n\n def elephant_moves(self):\n \"\"\" Returns all possible moves for Elephant piece \"\"\"\n row = self._move_from_idx[0]\n col = self._move_from_idx[1]\n path1 = [(1, 0), (-1, 0), (0, 1), (0, -1)] # 1st landing pos\n path2 = [(2, 1), (2, -1), (-2, 1), (-2, -1), (1, 2), (1, -2), (-1, 2), (-1, -2)] # 2nd landing pos\n directions = [(3, 2), (3, -2), (-3, 2), (-3, -2), (2, 3), (2, -3), (-2, 3), (-2, -3)]\n\n # remove directions with any intervening piece on the path\n # first check path1 and remove invalid move directions\n for (x, y) in path1:\n if self.check_range(row + x, col + y):\n if self.get_piece(row + x, col + y) != \"OO\":\n if y == 0: # vertical move\n path2.remove((x * 2, y + 1))\n path2.remove((x * 2, y - 1))\n directions.remove((x * 3, y + 2))\n directions.remove((x * 3, y - 2))\n if x == 0: # horizontal move\n path2.remove((x + 1, y * 2))\n path2.remove((x - 1, y * 2))\n directions.remove((x + 2, y * 3))\n directions.remove((x - 2, y * 3))\n\n # then check path2 and remove invalid move directions\n for (x, y) in path2:\n if self.check_range(row + x, col + y):\n if self.get_piece(row + x, col + y) != \"OO\":\n if abs(x) == 2:\n # remove one of (3, 2), (3, -2), (-3, 2), (-3, -2)\n directions.remove((int(x * 1.5), y * 2))\n if abs(y) == 2:\n # remove one of (2, 3), (2, -3), (-2, 3), (-2, -3)\n directions.remove((x * 2, int(y * 1.5)))\n\n # add all the possible moves to self._moves\n self.add_to_moves(directions)\n return self._moves\n\n def chariot_moves(self):\n \"\"\" Returns all possible moves for Chariot piece \"\"\"\n directions = [(1, 0), (-1, 0), (0, 1), (0, -1)]\n valid_direction = []\n row = self._move_from_idx[0]\n col = self._move_from_idx[1]\n\n for (x, y) in directions:\n i = 1 # a factor to multiply the directions\n\n while self.check_range(row + (x * i), col + (y * i)):\n move_to_piece = self.get_piece(row + (x * i), col + (y * i))\n\n # if the position is empty, that direction is valid\n if move_to_piece == \"OO\":\n valid_direction.append((x * i, y * i))\n i += 1\n\n # if the position is occupied with opponent piece, valid direction and stop the loop\n elif move_to_piece[0] == self.get_opponent():\n valid_direction.append((x * i, y * i))\n break\n\n # if the occupant is player's own piece, no more valid direction, stop the loop\n else:\n break\n\n # if in palace, diagonal move may be possible\n diag_position = [(7, 3), (7, 5), (9, 3), (9, 5), (8, 4), (0, 3), (0, 5), (2, 3), (2, 5), (1, 4)]\n directions = [(1, 1), (1, -1), (-1, 1), (-1, -1)]\n\n # if the chariot is in diag_position and the given move is diagonal\n if (row, col) in diag_position:\n\n for (x, y) in directions:\n i = 1 # a factor to multiply the directions\n\n # the move_to position must be within the palace\n while (row + (x * i), col + (y * i)) in diag_position:\n move_to_piece = self.get_piece(row + (x * i), col + (y * i))\n\n # if the position is empty, that direction is valid\n if move_to_piece == \"OO\":\n valid_direction.append((x * i, y * i))\n i += 1\n\n # if the position is occupied with opponent piece, valid direction and stop the loop\n elif move_to_piece[0] == self.get_opponent():\n valid_direction.append((x * i, y * i))\n break\n\n # if the occupant is player's own piece, no more valid direction, stop the loop\n else:\n break\n\n # add all the possible moves to self._moves\n self.add_to_moves(valid_direction)\n return self._moves\n\n def cannon_moves(self):\n \"\"\" Returns all possible moves for Cannon piece \"\"\"\n directions = [(1, 0), (-1, 0), (0, 1), (0, -1)]\n valid_direction = []\n row = self._move_from_idx[0]\n col = self._move_from_idx[1]\n\n for (x, y) in directions:\n i = 1 # a factor to multiply the directions\n jumpover_piece = None\n\n while self.check_range(row + (x * i), col + (y * i)):\n occupied_piece = self.get_piece(row + (x * i), col + (y * i))\n\n # if the cannon has not jumped yet\n if jumpover_piece is None:\n # if not occupied, continue the loop\n if occupied_piece == \"OO\":\n i += 1\n # if occupied with non-cannon piece, save the piece and continue\n elif occupied_piece[1] != \"N\":\n jumpover_piece = occupied_piece\n i += 1\n # if the occupied piece is cannon, stop the loop\n else:\n break\n\n # if the cannon already jumped one piece\n else:\n # if not occupied, it's valid direction and continue\n if occupied_piece == \"OO\":\n valid_direction.append((x * i, y * i))\n i += 1\n # if occupied by opponent, add the direction and stop\n elif occupied_piece[0] == self.get_opponent() and occupied_piece[1] != \"N\":\n valid_direction.append((x * i, y * i))\n break\n # if the occupied piece is cannon or self piece, stop the loop\n else:\n break\n\n # if cannon is at the corner of palace, diagonal move is possible\n diag_position = [(7, 3), (7, 5), (9, 3), (9, 5), (0, 3), (0, 5), (2, 3), (2, 5)]\n directions = [(1, 1), (1, -1), (-1, 1), (-1, -1)]\n\n # if the cannon is in diag_position and the given move is diagonal\n if (row, col) in diag_position:\n\n for (x, y) in directions:\n # then the move_to position must be within the palace\n if (row + (x * 2), col + (y * 2)) in diag_position:\n jumpover_piece = self.get_piece(row + x, col + y)\n move_to_piece = self.get_piece(row + (x * 2), col + (y * 2))\n\n # if jumpover piece exists and is not cannon\n if jumpover_piece != \"OO\" and jumpover_piece[1] != \"N\":\n\n # if move_to position is empty, valid move\n if move_to_piece == \"OO\":\n valid_direction.append((x * 2, y * 2))\n\n # if move_to is occupied with opponent's piece other than cannon, valid move\n elif move_to_piece[0] == self.get_opponent() and move_to_piece[1] != \"N\":\n valid_direction.append((x * 2, y * 2))\n\n # add all the possible moves to self._moves\n self.add_to_moves(valid_direction)\n return self._moves\n\n def general_guard_moves(self):\n \"\"\" Returns all possible moves for General and Guard pieces \"\"\"\n row = self._move_from_idx[0]\n col = self._move_from_idx[1]\n\n # palace index for each player\n if self.get_player() == \"B\":\n # positions with diagonal move allowed\n diag_position = [(7, 3), (7, 5), (9, 3), (9, 5), (8, 4)]\n # positions with only linear move\n linear_position = [(8, 3), (8, 5), (7, 4), (9, 4)]\n else:\n diag_position = [(0, 3), (0, 5), (2, 3), (2, 5), (1, 4)]\n linear_position = [(1, 3), (0, 4), (1, 5), (2, 4)]\n\n if (row, col) in diag_position:\n directions = [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1)]\n else:\n directions = [(1, 0), (-1, 0), (0, 1), (0, -1)]\n\n # generals and guards cannot leave the palace\n palace = diag_position + linear_position\n for (x, y) in directions:\n if self.check_range(row + x, col + y):\n if (row + x, col + y) not in palace:\n directions.remove((x, y))\n\n # add all the possible moves to self._moves\n self.add_to_moves(directions)\n return self._moves\n\n\ndef main():\n game = JanggiGame()\n game.get_base_board()\n game.get_board()\n print('1', game.make_move('c7', 'c6'))\n print('2', game.make_move('c1', 'd3'))\n print('3', game.make_move('b10', 'd7'))\n print('4', game.make_move('b3', 'e3'))\n print('5', game.make_move('c10', 'd8'))\n print('6', game.make_move('h1', 'g3'))\n print('7', game.make_move('e7', 'e6'))\n print('8', game.make_move('e3', 'e6'))\n print('9', game.make_move('h8', 'c8'))\n print('10', game.make_move('d3', 'e5'))\n print('11', game.make_move('c8', 'c4'))\n print('12', game.make_move('e5', 'c4'))\n print('13', game.make_move('i10', 'i8'))\n print('14', game.make_move('g4', 'f4'))\n print('15', game.make_move('i8', 'f8'))\n print('16', game.make_move('g3', 'h5'))\n print('17', game.make_move('h10', 'g8'))\n print('18', game.make_move('e6', 'e3'))\n game.get_board()\n print(\"blue in check?\", game.is_in_check(\"blue\"))\n print(\"red in check?\", game.is_in_check(\"red\"))\n # Game state should be UNFINISHED when a general is in check but not checkmated\n print(\"Game state =\", game.get_game_state())\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"parkhyey/korean-chess-janggi","sub_path":"JanggiGame.py","file_name":"JanggiGame.py","file_ext":"py","file_size_in_byte":32318,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"7370567273","text":"from django.core.management.base import NoArgsCommand\n\nfrom ...utils import (\n delete_empty_instances, remove_empty_directories, sync_cover_images,\n sync_song_files\n)\n\n\nclass Command(NoArgsCommand):\n help = \"\"\"Delete empty album and artist instances and synchronizes the\nfiles in the media folder with the models in the music library.\"\"\"\n\n def handle_noargs(self, **options):\n delete_empty_instances()\n sync_song_files()\n sync_cover_images()\n remove_empty_directories()\n","repo_name":"rafikdraoui/vortex","sub_path":"library/management/commands/syncfiles.py","file_name":"syncfiles.py","file_ext":"py","file_size_in_byte":510,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"30244264101","text":"# required if ~ else\r\nn_str = input().zfill(2)\r\nswap_str = n_str[1] + n_str[0]\r\nnumber = int(swap_str)\r\nresult = number * 2\r\n\r\nif result >= 100:\r\n result %= 100\r\n\r\nprint(result)\r\nif result <= 50:\r\n print('GOOD')\r\nelse:\r\n print('OH MY GOD')\r\n","repo_name":"hkh876/coding_test","sub_path":"codeup/basic/1180.py","file_name":"1180.py","file_ext":"py","file_size_in_byte":244,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"8506387550","text":"import cv2\nimport itertools as it\nimport kornia as K\nimport kornia.feature as KF\nimport numpy as np\nimport torch\n\nfrom pathlib import Path\nfrom typing import Any, Tuple\nfrom torch.utils.data.dataloader import default_collate\n\nfrom common.adapter.torch_adapter import TorchAdapter\nfrom common.dataset.collate import collate\nfrom common.device import Device\nfrom common.dataset.frame_pairs_dataset import FramePairsDataset\nfrom common.frames_pair import FramesPair\nfrom common.image_metadata import ImageMetadata\nfrom common.prediction import Prediction\n\n\nclass Adapter(TorchAdapter):\n def __init__(\n self,\n images_path: Path,\n lines_path: Path,\n associations_dir: str,\n output_path: Path,\n pairs_file: Path,\n frames_step: int,\n device: Device,\n ):\n super().__init__(\n images_path,\n lines_path,\n associations_dir,\n output_path,\n device,\n )\n self.frames_step = frames_step\n self.pairs_file = pairs_file\n self.model_resolution = (600, 600)\n\n def _create_frame_pairs_loader(self):\n return torch.utils.data.DataLoader(\n FramePairsDataset(\n self.images_path,\n self.lines_path,\n transform_frames_pair=self._transform_frames_pair,\n frames_step=self.frames_step,\n pairs_file=self.pairs_file,\n ),\n batch_size=1,\n collate_fn=collate,\n pin_memory=True,\n )\n\n def _transform_frames_pair(self, pair: FramesPair):\n return FramesPair(\n images_pair=tuple(map(self.__transform_image, pair.images_pair)),\n images_metadata_pair=pair.images_metadata_pair,\n lines_pair=tuple(\n it.starmap(\n self.__transform_lines,\n zip(pair.lines_pair, pair.images_metadata_pair),\n )\n ),\n )\n\n def _build_model(self):\n return KF.SOLD2().eval().to(self.device)\n\n def _postprocess_prediction(\n self, raw_predictions: Any, metadata: Tuple[ImageMetadata, ImageMetadata]\n ) -> Prediction:\n second_indices = raw_predictions.cpu().numpy()\n first_indices = np.arange(len(second_indices))\n matched = second_indices != -1\n associations = np.column_stack(\n (first_indices[matched], second_indices[matched])\n )\n\n return Prediction(associations=associations, pair_metadata=metadata)\n\n def _predict(self, model, frames_pair: FramesPair):\n outputs = model(frames_pair.images_pair)\n first_image_descriptor, second_image_descriptor = outputs[\"dense_desc\"]\n first_lines, second_lines = frames_pair.lines_pair\n return model.match(\n first_lines,\n second_lines,\n first_image_descriptor[None],\n second_image_descriptor[None],\n )\n\n def __transform_image(self, image: np.ndarray):\n transformed = cv2.resize(image, self.model_resolution)\n transformed = K.image_to_tensor(transformed).float() / 255.0\n transformed = K.color.rgb_to_grayscale(transformed)\n return transformed.to(self.device)\n\n def __transform_lines(self, lines: np.ndarray, image_metadata: ImageMetadata):\n model_height, model_width = self.model_resolution\n x_scale = model_width / image_metadata.width\n y_scale = model_height / image_metadata.height\n x_index = [0, 2]\n y_index = [1, 3]\n lines[:, x_index] *= x_scale\n lines[:, y_index] *= y_scale\n return torch.from_numpy(\n np.flip(lines.reshape((-1, 2, 2)), axis=-1).astype(np.float32)\n ).to(self.device)\n","repo_name":"prime-slam/line-detection-association-dockers","sub_path":"associators/SOLD2/adapter.py","file_name":"adapter.py","file_ext":"py","file_size_in_byte":3747,"program_lang":"python","lang":"en","doc_type":"code","stars":34,"dataset":"github-code","pt":"86"}
+{"seq_id":"39476244625","text":"from mimetypes import init\n\n\n#CheckOut = float(input('please enter your checkout code '))\n\n#houseNum = int(input('Please put your home num here '))\n\nlargeNum = int(input('enter larger num you can think '))\nminNum = int(input('enter your min num you can thing we will add up it for you'))\n\naddAll = largeNum + minNum\n\nprint(f'We made all imagination in one place for you {addAll}')","repo_name":"RaihanIIUC/Python-learning","sub_path":"ConfusingPyTypeInput.py","file_name":"ConfusingPyTypeInput.py","file_ext":"py","file_size_in_byte":380,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"11129917709","text":"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Fri May 29 22:55:00 2020\n\n@author: illcare\n\"\"\"\n\nclass item:\n def __init__(self, item_name, price):\n self.item_name = item_name\n self.price = price\n \nclass customer(item):\n def __init__(self, item_name, price, customer_id, phone_number):\n item.__init__(self, item_name, price)\n self.customer_id = customer_id\n self.phone_number = phone_number\n \n def purchase(self, amount):\n total = self.price * amount\n print(\"total price for\", amount, self.item_name, \"is\", total)\n \nsold_item = \"chocolate bar\"\nsold_price = 2 # dollars\nsold_cust = \"Roger\"\nsold_phone = \"+90 569 565 0555\"\n\nsss = customer(sold_item, sold_price, sold_cust, sold_phone)\nsss.purchase(20)","repo_name":"Yllcare/bootrain","sub_path":"assignment_10.py","file_name":"assignment_10.py","file_ext":"py","file_size_in_byte":791,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"2030731662","text":"import numpy as np\nimport matplotlib.pyplot as plt\nimport itertools\n\n\n# params\ntheta = .000001\nph = .75\ndiscount = 0.99\n\n# env info\nstates = range(1, 100)\nvalues = np.zeros([101])\nvalues[0] = 0\nvalues[100] = 0\nvalues[1:100] = np.random.uniform(0, 1, 99)\n\n\ndef transition_prob(s_new, r, s, a):\n if s_new == s:\n if a == 0:\n if s_new >= 100:\n if r == 1:\n return 1\n else:\n return 0\n else:\n if r == 1:\n return 0\n else:\n return 1\n else:\n return 0\n elif s_new == s + a:\n if s_new >= 100:\n if r == 1:\n return ph\n else:\n return 0\n else:\n if r == 1:\n return 0\n else:\n return ph\n elif s_new == s - a:\n if r == 1:\n return 0\n else:\n return 1 - ph\n\n# value func\ndef get_value_and_best_action(s, cur_values):\n actions = range(0, np.min([s, 100 - s]) + 1)\n max_val = 0\n best_action = 0\n for a in actions:\n sum = 0\n if a == 0:\n s_primes = [s]\n else:\n s_primes = [s + a, s - a]\n rews = [1, 0]\n for s_p, r in itertools.product(s_primes, rews):\n sum += transition_prob(s_p, r, s, a) * (r + discount * cur_values[s_p])\n\n if sum > max_val:\n max_val = sum\n best_action = a\n\n return max_val, best_action\n\n# value iteration and getting best action\ndelta = 1e10\npi_star = np.zeros([100])\nwhile delta >= theta:\n delta = 0\n for s in states:\n old_v = values[s]\n values[s], pi_star[s] = get_value_and_best_action(s, values)\n delta = np.max([delta, np.abs(old_v - values[s])])\n\n# plot value estimates and policy\nplt.figure()\nplt.plot(range(0, 101), values)\n\nplt.figure()\nplt.plot(range(0, 100), pi_star)\n\nplt.show()","repo_name":"trevorablett/programming-exercises","sub_path":"sutton-barto-rl/ch4-dp/ex49-gamblers.py","file_name":"ex49-gamblers.py","file_ext":"py","file_size_in_byte":1969,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"23329882661","text":"import sys\r\n\r\ninput = sys.stdin.readline\r\n\r\nn = int(input())\r\narr = [0] + list(map(int, input().split())) + [0]\r\nleft = [0] + [0] * (n + 1)\r\nright = [0] * (n + 1) + [0]\r\n\r\n\r\ndef gcd(a, b):\r\n if b == 0:\r\n return a\r\n\r\n while a % b != 0:\r\n a, b = b, a % b\r\n return min(a, b)\r\n\r\n\r\nfor i in range(1, n + 1):\r\n left[i] = gcd(max(arr[i - 1], left[i - 1]), min(arr[i - 1], left[i - 1]))\r\n\r\nfor i in range(n, 0, -1):\r\n right[i] = gcd(max(arr[i + 1], right[i + 1]), min(arr[i + 1], right[i + 1]))\r\n\r\n# print(arr)\r\n# print(left)\r\n# print(right)\r\n\r\nans = 0\r\nidx = 0\r\n\r\nfor i in range(1, n + 1):\r\n g = gcd(max(left[i], right[i]), min(left[i], right[i]))\r\n # print(g)\r\n\r\n if arr[i] % g != 0:\r\n if ans < g:\r\n ans = g\r\n idx = arr[i]\r\n\r\nif ans == idx == 0:\r\n print(-1)\r\n exit()\r\n\r\nprint(ans, idx)\r\n","repo_name":"juhyun-99/Baekjoon_algorithm","sub_path":"백준/Gold/14476. 최대공약수 하나 빼기/최대공약수 하나 빼기.py","file_name":"최대공약수 하나 빼기.py","file_ext":"py","file_size_in_byte":854,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"4552808525","text":"import multiprocessing as mp\nimport time\n\n\ndef sum_slice(data, start, stop, total: mp.Value):\n partial_sum = sum(data[start:stop])\n with total.get_lock():\n total.value += partial_sum\n\n\ndef main():\n N = 16_000_000\n data = mp.Array(\"i\", list(range(N)), lock=False)\n total = mp.Value(\"q\", 0)\n\n tic = time.perf_counter()\n classic = sum(data)\n toc = time.perf_counter()\n\n print(\"Classic : got\", classic, f\"in {(toc - tic) * 1000:4.2f} ms\")\n\n n_workers = mp.cpu_count() // 2\n slice_size = N // n_workers\n processes = [mp.Process(target=sum_slice,\n args=(data, i * slice_size, (i + 1) * slice_size, total)\n ) for i in range(n_workers)]\n\n tic = time.perf_counter()\n for p in processes: p.start()\n for p in processes: p.join()\n toc = time.perf_counter()\n\n print(\"Parallel: got\", total.value, f\"in {(toc - tic) * 1000:4.2f} ms\")\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"TheBlueChameleon/Py_ForScientists","sub_path":"projects/04-multiprocessing/ArraySummation.py","file_name":"ArraySummation.py","file_ext":"py","file_size_in_byte":971,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"70849158683","text":"import math\n\nimport os.path\nimport time\nfrom PyQt5.Qt import QObject\nfrom PyQt5.QtCore import pyqtSignal\nfrom scipy.ndimage import measurements\nimport numpy as np\n\nimport TigGUI.kitties.utils\nfrom TigGUI.Images.Colormaps import HistEqIntensityMap, LogIntensityMap, CubeHelixColormap\nfrom TigGUI.kitties.widgets import BusyIndicator\n\n_verbosity = TigGUI.kitties.utils.verbosity(name=\"rc\")\ndprint = _verbosity.dprint\ndprintf = _verbosity.dprintf\n\nfrom TigGUI.Images import Colormaps\n\nimport TigGUI.kitties.config\n\n\nImageConfigFile = TigGUI.kitties.config.DualConfigParser(\"tigger.images.conf\")\n\n\nclass RenderControl(QObject):\n \"\"\"RenderControl represents all the options (slices, color and intensity policy data) associated with an image. This object is shared by various GUI elements\n that control the rendering of images.\n \"\"\"\n intensityMapChanged = pyqtSignal(object, float)\n colorMapChanged = pyqtSignal(object)\n dataSubsetChanged = pyqtSignal(np.ndarray, tuple, str, str)\n displayRangeChanged = pyqtSignal([float, float], [np.float32, np.float32], [HistEqIntensityMap, float]) # on file save np.float32's become float's on reload?\n displayRangeLocked = pyqtSignal(bool)\n\n SUBSET_FULL = \"full\"\n SUBSET_SLICE = \"slice\"\n SUBSET_RECT = \"rect\"\n\n def __init__(self, image, parent):\n QObject.__init__(self, parent)\n self.image = image\n self._config = TigGUI.kitties.config.SectionParser(ImageConfigFile, os.path.normpath(\n os.path.abspath(image.filename))) if image.filename else None\n # figure out the slicing -- find extra axes with size > 1\n # self._current_slice contains all extra axis, including the size-1 ones\n # self._sliced_axes is a list of (iextra,axisname,labels) tuples for size>1 axes\n # where iextra is an index into self._current_slice.\n self._current_slice = [0] * image.numExtraAxes()\n self._slice_dims = [1] * image.numExtraAxes()\n self._sliced_axes = []\n for i in range(image.numExtraAxes()):\n iaxis, axisname, labels = image.extraAxisNumberNameLabels(i)\n self._slice_dims[i] = len(labels)\n if len(labels) > 1:\n self._sliced_axes.append((i, axisname, labels))\n # set the full image range (i.e. mix/max) and current slice range\n dprint(2, \"getting data min/max\")\n self._fullrange = self._slicerange = image.dataMinMax()[:2]\n dprint(2, \"done\")\n # create dict of intensity maps\n log_cycles = self._config.getfloat(\"intensity-log-cycles\", 6) if self._config else 6\n self._imap_list = (\n ('Linear', Colormaps.LinearIntensityMap()),\n ('Histogram-equalized', Colormaps.HistEqIntensityMap()),\n ('log(val-min)', Colormaps.LogIntensityMap(log_cycles))\n )\n # create list of color maps\n self._cmap_list = Colormaps.getColormapList()\n default_cmap = 0\n for i, cmap in enumerate(self._cmap_list):\n if isinstance(cmap, Colormaps.ColormapWithControls):\n if self._config:\n cmap.loadConfig(self._config)\n cmap.colormapChanged.connect(self.updateColorMapParameters)\n if isinstance(cmap, Colormaps.CubeHelixColormap):\n default_cmap = i\n # set the initial intensity map\n imap = self._config.getint(\"intensity-map-number\", 0) if self._config else 0\n cmap = self._config.getint(\"colour-map-number\", default_cmap) if self._config else default_cmap\n imap = max(min(len(self._imap_list) - 1, imap), 0)\n cmap = max(min(len(self._cmap_list) - 1, cmap), 0)\n self._current_imap_index = imap\n self._current_cmap_index = cmap\n self.image.setIntensityMap(self._imap_list[imap][1])\n self.image.setColorMap(self._cmap_list[cmap])\n\n # cache of min/max values for each slice, as these can be slowish to recompute when flipping slices\n self._sliceranges = {}\n # This is the data subset corresponding to the current display range. When the display range is set to\n # _fullrange, this is the image cube. When it is set to _slicerange, this is the current image slice. When\n # setLMRectDisplayRange() or setWindowDisplayRange() is used to set the range to the specified window,\n # this is the a subset of the current slice. The data subset is passed to setDataSubset() of the intensity mapper object\n self._displaydata = None\n # This is a tuple of the extrema of the current data subset. This is not quite the same thing as self._displayrange below.\n # When the display range is reset to cube/slice/window, _displayrange is set to _displaydata_minmax. But if\n # setDisplayRange() is subsequently called (e.g. if the user manually enters new values into the Range boxes), then\n # _displayrange will be set to something else until the next reset....() call.\n self._displaydata_minmax = None\n # This is a low,high tuple of the current display range -- will be initialized by resetFullDisplayRange()\n self._displayrange = None\n if self._config and self._config.has_option(\"range-min\") and self._config.has_option(\"range-max\"):\n display_range = self._config.getfloat(\"range-min\"), self._config.getfloat(\"range-max\")\n else:\n display_range = None\n self.setFullSubset(display_range, write_config=False)\n # setup initial slice\n if self.hasSlicing():\n if self._config and self._config.has_option(\"slice\"):\n try:\n curslice = list(map(int, self._config.get(\"slice\").split()))\n except:\n curslice = []\n if len(curslice) == len(self._current_slice):\n for iaxis, i in enumerate(curslice):\n naxis = len(self.image.extraAxisValues(iaxis))\n i = min(naxis - 1, max(0, i))\n self._current_slice[iaxis] = i\n self.selectSlice(self._current_slice, write_config=False)\n # lock display range if so configured\n self._lock_display_range = self._config.getbool(\"lock-range\", 0) if self._config else False\n if self._lock_display_range:\n self.lockDisplayRange(True, write_config=False)\n\n def startSavingConfig(self, image_filename):\n \"\"\"Saves the current configuration under the specified image filename\"\"\"\n self._config = TigGUI.kitties.config.SectionParser(ImageConfigFile, os.path.normpath(os.path.abspath(image_filename)))\n if self._displayrange:\n self._config.set(\"range-min\", self._displayrange[0], save=False)\n self._config.set(\"range-max\", self._displayrange[1], save=False)\n if self._current_slice:\n self._config.set(\"slice\", \" \".join(map(str, self._current_slice)), save=False)\n for cmap in self._cmap_list:\n if isinstance(cmap, Colormaps.ColormapWithControls):\n cmap.saveConfig(self._config, save=False)\n self._config.set(\"intensity-map-number\", self._current_imap_index, save=False)\n self._config.set(\"colour-map-number\", self._current_cmap_index, save=False)\n self._config.set(\"lock-range\", self._lock_display_range, save=True)\n\n def hasSlicing(self):\n \"\"\"Returns True if image is a cube, and so has non-trivial slicing axes\"\"\"\n return bool(self._sliced_axes)\n\n def slicedAxes(self):\n \"\"\"Returns list of (axis_num,name,label_list) tuples per each non-trivial slicing axis\"\"\"\n return self._sliced_axes\n\n def incrementSlice(self, iaxis, incr, write_config=True):\n dprint(2, \"incrementing slice axis\", iaxis, \"by\", incr)\n self._current_slice[iaxis] = (self._current_slice[iaxis] + incr) % self._slice_dims[iaxis]\n self._updateSlice(write_config)\n\n def changeSlice(self, iaxis, index, write_config=True):\n dprint(2, \"changing slice axis\", iaxis, \"to\", index)\n if self._current_slice[iaxis] != index:\n self._current_slice[iaxis] = index\n self._updateSlice(write_config)\n\n def selectSlice(self, indices, write_config=True):\n \"\"\"Selects slice given by indices\"\"\"\n dprint(2, \"selecting slice\", indices)\n self._current_slice = list(indices)\n self._updateSlice(write_config)\n\n def _updateSlice(self, write_config=True):\n \"\"\"Common internal method called to finalize changes to _current_slice\"\"\"\n busy = BusyIndicator()\n dprint(2, \"_updateSlice\", self._current_slice, time.time() % 60)\n indices = tuple(self._current_slice)\n self.image.selectSlice(*indices)\n dprint(2, \"image slice selected\", time.time() % 60)\n img = self.image.image()\n self._slicerange = self._sliceranges.get(indices)\n if self._slicerange is None:\n self._slicerange = self._sliceranges[indices] = self.image.imageMinMax()[:2]\n dprint(2, \"min/max updated\", time.time() % 60)\n self.setSliceSubset(set_display_range=False)\n if write_config and self._config:\n self._config.set(\"slice\", \" \".join(map(str, indices)))\n busy.reset_cursor()\n\n def displayRange(self):\n return self._displayrange\n\n def currentSlice(self):\n return self._current_slice\n\n def sliceDimensions(self):\n return self._slice_dims\n\n def getIntensityMapNames(self):\n return [name for name, imap in self._imap_list]\n\n def currentIntensityMapNumber(self):\n return self._current_imap_index\n\n def currentIntensityMap(self):\n return self.image.intensityMap()\n\n def setIntensityMapNumber(self, index, write_config=True):\n busy = BusyIndicator()\n self._current_imap_index = index\n imap = self._imap_list[index][1]\n imap.setDataSubset(self._displaydata, self._displaydata_minmax)\n imap.setDataRange(*self._displayrange)\n self.image.setIntensityMap(imap)\n self.intensityMapChanged.emit(imap, index)\n if self._config and write_config:\n self._config.set(\"intensity-map-number\", index)\n busy.reset_cursor()\n\n def setIntensityMapLogCycles(self, cycles, notify_image=True, write_config=True):\n busy = BusyIndicator()\n imap = self.currentIntensityMap()\n if isinstance(imap, Colormaps.LogIntensityMap):\n imap.log_cycles = cycles\n if notify_image:\n self.image.setIntensityMap()\n self.intensityMapChanged.emit(imap, self._current_imap_index)\n if self._config and write_config:\n self._config.set(\"intensity-log-cycles\", cycles)\n busy.reset_cursor()\n\n def lockDisplayRangeForAxis(self, iaxis, lock):\n pass\n\n def getColormapList(self):\n return self._cmap_list\n\n def updateColorMapParameters(self):\n \"\"\"Call this when the colormap parameters have changed\"\"\"\n busy = BusyIndicator()\n self.image.updateCurrentColorMap()\n if self._config:\n self._cmap_list[self._current_cmap_index].saveConfig(self._config)\n busy.reset_cursor()\n\n def setColorMapNumber(self, index, write_config=True):\n busy = BusyIndicator()\n self._current_cmap_index = index\n cmap = self._cmap_list[index]\n self.image.setColorMap(cmap)\n self.colorMapChanged.emit(cmap)\n if self._config and write_config:\n self._config.set(\"colour-map-number\", index)\n busy.reset_cursor()\n\n def currentSubset(self):\n \"\"\"Returns tuple of subset,(dmin,dmax),description for current data subset\"\"\"\n return self._displaydata, self._displaydata_minmax, self._displaydata_desc, self._displaydata_type\n\n def _resetDisplaySubset(self, subset, desc, range=None, set_display_range=True, write_config=True,\n subset_type=None):\n dprint(4, \"setting display subset\")\n self._displaydata = subset\n self._displaydata_desc = desc\n self._displaydata_minmax = range = range or measurements.extrema(subset)[:2]\n self._displaydata_type = subset_type\n dprint(4, \"range set\")\n self.image.intensityMap().setDataSubset(self._displaydata, minmax=range)\n self.image.setIntensityMap(emit=False)\n dprint(2, f\"dataSubsetChanged {type(subset)}, {type(range)}, {type(desc)}, {type(subset_type)}\")\n self.dataSubsetChanged.emit(subset, range, desc, subset_type)\n if set_display_range:\n self.setDisplayRange(write_config=write_config, *range)\n\n def setFullSubset(self, display_range=None, write_config=True):\n shapedesc = \"\\u00D7\".join([\"%d\" % x for x in\n list(self.image.imageDims()) + [len(labels) for iaxis, name, labels in\n self._sliced_axes]])\n desc = \"full cube\" if self._sliced_axes else \"full image\"\n self._resetDisplaySubset(self.image.data(), desc, range=self._fullrange, subset_type=self.SUBSET_FULL,\n write_config=write_config, set_display_range=False)\n self.setDisplayRange(write_config=write_config, *(display_range or self._fullrange))\n\n def _makeSliceDesc(self):\n \"\"\"Makes a description of the current slice\"\"\"\n if not self._sliced_axes:\n return \"full image\"\n descs = []\n for iextra, name, labels in self._sliced_axes:\n if name.upper() not in [\"STOKES\", \"COMPLEX\"]:\n descs.append(\"%s=%s\" % (name, labels[self._current_slice[iextra]]))\n else:\n descs.append(labels[self._current_slice[iextra]])\n return \"%s plane\" % (\" \".join(descs),)\n\n def setSliceSubset(self, set_display_range=True, write_config=True): \\\n return self._resetDisplaySubset(self.image.image(), self._makeSliceDesc(), self._slicerange,\n subset_type=self.SUBSET_SLICE,\n set_display_range=set_display_range, write_config=write_config)\n\n def _setRectangularSubset(self, xx1, xx2, yy1, yy2):\n descs = []\n nx, ny = self.image.imageDims()\n if xx1 or xx2 != nx:\n descs.append(\"x=%d:%d\" % (xx1, xx2))\n if yy1 or yy2 != ny:\n descs.append(\"y=%d:%d\" % (yy1, yy2))\n if descs:\n descs.append(\"in\")\n descs.append(self._makeSliceDesc())\n return self._resetDisplaySubset(self.image.image()[xx1:xx2, yy1:yy2], \" \".join(descs),\n subset_type=self.SUBSET_RECT)\n\n def _lmRectToPix(self, rect):\n \"\"\"helper function -- converts an LM rectangle to pixel coordinates\"\"\"\n if rect.width() and rect.height():\n # convert to pixel coordinates\n x1, y1, x2, y2 = rect.getCoords()\n x1, y1 = self.image.lmToPix(x1, y1)\n x2, y2 = self.image.lmToPix(x2, y2)\n dprint(2, x1, y1, x2, y2)\n xx1, xx2 = int(math.floor(min(x1, x2))), int(math.ceil(max(x1, x2)))\n yy1, yy2 = int(math.floor(min(y1, y2))), int(math.ceil(max(y1, y2)))\n dprint(2, xx1, yy1, xx2, yy2)\n # ensure limits\n nx, ny = self.image.imageDims()\n xx1, xx2 = max(xx1, 0), min(xx2, nx)\n yy1, yy2 = max(yy1, 0), min(yy2, ny)\n dprint(2, xx1, yy1, xx2, yy2)\n # check that we actually selected some valid pixels\n if xx1 < xx2 and yy1 < yy2:\n return xx1, xx2, yy1, yy2\n return None, None, None, None\n\n def setLMRectSubset(self, rect):\n xx1, xx2, yy1, yy2 = self._lmRectToPix(rect)\n if xx1 is not None:\n return self._setRectangularSubset(xx1, xx2, yy1, yy2)\n\n def getLMRectStats(self, rect):\n xx1, xx2, yy1, yy2 = self._lmRectToPix(rect)\n if xx1 is not None:\n subset = self.image.image()[xx1:xx2, yy1:yy2]\n subset, mask = self.image.optimalRavel(subset)\n mmin, mmax = measurements.extrema(subset, labels=mask, index=None if mask is None else False)[:2]\n mean = measurements.mean(subset, labels=mask, index=None if mask is None else False)\n std = measurements.standard_deviation(subset, labels=mask, index=None if mask is None else False)\n ssum = measurements.sum(subset, labels=mask, index=None if mask is None else False)\n return xx1, xx2, yy1, yy2, mmin, mmax, mean, std, ssum, subset.size\n return None\n\n def setWindowSubset(self, rect=None):\n rect = rect or self.image.currentRectPix()\n if rect.width() and rect.height():\n tl = rect.topLeft()\n return self._setRectangularSubset(tl.x(), tl.x() + rect.width(), tl.y(), tl.y() + rect.height())\n\n def resetSubsetDisplayRange(self):\n self.setDisplayRange(*self._displaydata_minmax)\n\n def isSubsetDisplayRange(self):\n return self._displayrange == self._displaydata_minmax\n\n def setDisplayRange(self, dmin, dmax, notify_image=True, write_config=True):\n if dmax < dmin:\n dmin, dmax = dmax, dmin\n if (dmin, dmax) != self._displayrange:\n self._displayrange = dmin, dmax\n self.image.intensityMap().setDataRange(dmin, dmax)\n if notify_image:\n busy = BusyIndicator()\n self.image.setIntensityMap(emit=True)\n busy.reset_cursor()\n self.displayRangeChanged.emit(dmin, dmax)\n if self._config and write_config:\n self._config.set(\"range-min\", dmin, save=False)\n self._config.set(\"range-max\", dmax)\n\n def isDisplayRangeLocked(self):\n return self._lock_display_range\n\n def lockDisplayRange(self, lock=True, write_config=True):\n self._lock_display_range = lock\n self.displayRangeLocked.emit(lock)\n if self._config and write_config:\n self._config.set(\"lock-range\", bool(lock))\n","repo_name":"ratt-ru/tigger","sub_path":"TigGUI/Images/RenderControl.py","file_name":"RenderControl.py","file_ext":"py","file_size_in_byte":18034,"program_lang":"python","lang":"en","doc_type":"code","stars":7,"dataset":"github-code","pt":"86"}
+{"seq_id":"3794865940","text":"\"\"\"Configuration for imitation.scripts.train_preference_comparisons.\"\"\"\n\nimport sacred\n\nfrom imitation.scripts.common import common, reward, rl, train\n\ntrain_preference_comparisons_ex = sacred.Experiment(\n \"train_preference_comparisons\",\n ingredients=[\n common.common_ingredient,\n reward.reward_ingredient,\n rl.rl_ingredient,\n train.train_ingredient,\n ],\n)\n\n\n@train_preference_comparisons_ex.config\ndef train_defaults():\n fragment_length = 100 # timesteps per fragment used for comparisons\n total_timesteps = int(1e6) # total number of environment timesteps\n total_comparisons = 1000 # total number of comparisons to elicit\n # comparisons to gather before switching back to agent training\n comparisons_per_iteration = 50\n # factor by which to oversample transitions before creating fragments\n transition_oversampling = 10\n\n reward_trainer_kwargs = {\n \"epochs\": 3,\n }\n save_preferences = False # save preference dataset at the end?\n agent_path = None # path to a (partially) trained agent to load at the beginning\n gatherer_kwargs = {}\n # path to a pickled sequence of trajectories used instead of training an agent\n trajectory_path = None\n allow_variable_horizon = False\n\n normalize = True # Use VecNormalize\n normalize_kwargs = {\"norm_reward\": False} # kwargs for `VecNormalize`\n\n\n@train_preference_comparisons_ex.named_config\ndef cartpole():\n common = dict(env_name=\"CartPole-v1\")\n allow_variable_horizon = True\n\n\n@train_preference_comparisons_ex.named_config\ndef seals_cartpole():\n common = dict(env_name=\"seals/CartPole-v0\")\n\n\n@train_preference_comparisons_ex.named_config\ndef pendulum():\n common = dict(env_name=\"Pendulum-v0\")\n\n\n@train_preference_comparisons_ex.named_config\ndef mountain_car():\n common = dict(env_name=\"MountainCar-v0\")\n allow_variable_horizon = True\n\n\n@train_preference_comparisons_ex.named_config\ndef seals_mountain_car():\n common = dict(env_name=\"seals/MountainCar-v0\")\n\n\n@train_preference_comparisons_ex.named_config\ndef fast():\n # Minimize the amount of computation. Useful for test cases.\n total_timesteps = 2\n total_comparisons = 3\n comparisons_per_iteration = 2\n fragment_length = 2\n reward_trainer_kwargs = {\n \"epochs\": 1,\n }\n","repo_name":"HumanCompatibleAI/eirli","sub_path":"tp/imitation/src/imitation/scripts/config/train_preference_comparisons.py","file_name":"train_preference_comparisons.py","file_ext":"py","file_size_in_byte":2308,"program_lang":"python","lang":"en","doc_type":"code","stars":37,"dataset":"github-code","pt":"86"}
+{"seq_id":"40311234024","text":"from unittest import TestCase, main\n\nfrom dsorm import Comparison, Where\nfrom dsorm.dsorm import columnify\n\n\nclass TestWhere(TestCase):\n def test_comparison(self):\n w = Where(\n {\"column_name\": Comparison.get_comparison(target=\"thingy\", key=\"thingy\")}\n )\n self.assertEqual(w.sql(), \"WHERE [column_name] = :thingy\")\n\n def test_comparison_no_target(self):\n with self.assertRaises(TypeError):\n w = Comparison.get_comparison()\n w.sql()\n\n def test_comparison_no_column(self):\n with self.assertRaises(TypeError):\n w = Comparison.get_comparison(target=\"thingy\")\n w.sql()\n\n def test_in(self):\n w = Comparison.is_in(column=\"value\", target=[1, 2])\n self.assertEqual(w.sql(), \"value IN (1, 2)\")\n\n def test_in_no_target(self):\n with self.assertRaises(TypeError):\n w = Comparison.is_in()\n w.sql()\n\n def test_where_construction(self):\n w = Where()\n w[1] = 2\n w[\"this\"] = \"that\"\n self.assertEqual(w[1], 2)\n self.assertEqual(list(w.items()), [(1, 2), (\"this\", \"that\")])\n\n def test_nested_where(self):\n\n AUTHOR_NAME = \"JK Rowling\"\n BOOK_NAME = \"Harry Potter\"\n column_a = columnify(\"book.name\")\n column_b = columnify(\"author.name\")\n w = Where(\n where={\n column_a: Comparison.eq(target=BOOK_NAME, key=\"BookName\"),\n \"or\": Where(\n {column_b: Comparison.eq(target=AUTHOR_NAME, key=\"AuthorName\")}\n ),\n }\n )\n self.assertEqual(\n w.sql(),\n \"WHERE [book].[name] = :BookName or ([author].[name] = :AuthorName)\",\n )\n\n\nif __name__ == \"__main__\":\n main() # pragma: no cover\n","repo_name":"kajuberdut/dsorm","sub_path":"tests/test_where.py","file_name":"test_where.py","file_ext":"py","file_size_in_byte":1800,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"4113200656","text":"##Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.\n##\n##Note: You may not slant the container and n is at least 2.\n##Example:\n##\n##Input: [1,8,6,2,5,4,8,3,7]\n##Output: 49\n##The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]. In this case, the max area of water (blue section) the container can contain is 49.\n\n\ndef maxArea(li):\n i = 0\n j = len(li) - 1\n if j < 0:\n return 0\n counter = 0\n max_area = get_maxArea(i, j, li)\n while i < j:\n area = get_maxArea(i, j, li)\n if area > max_area:\n max_area = area\n if counter == 0:\n i += 1\n counter += 1\n else:\n j -= 1\n counter -= 1\n return max_area\n\ndef get_maxArea(i, j, li):\n return (j - i) * min(li[i], li[j])\n \n","repo_name":"sophiajwchoi/daily-coding-challenges","sub_path":"Sept 2018/Container With Most Water.py","file_name":"Container With Most Water.py","file_ext":"py","file_size_in_byte":1048,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"4536964423","text":"import re\nline=input()\n\npattern_emojis=r\"(\\*{2}|:{2})([A-Z][a-z]{2,})\\1\"\npattern_digits=\"\\d\"\nmatches_emojis=re.finditer(pattern_emojis,line)\nmatches=re.findall(pattern_digits,line)\nthreshold = 1\nfor m in matches:\n threshold*=int(m)\n\n\nall_emojis=[m for m in matches_emojis]\nprint(f\"Cool threshold: {threshold}\")\nprint(f\"{len(all_emojis)} emojis found in the text. The cool ones are:\")\n\nfor emoji in all_emojis:\n sum=0\n a=emoji[2]\n for i in range(len(emoji[2])):\n if emoji[2][i].isalpha():\n sum+=ord(emoji[2][i])\n if sum>threshold:\n print(emoji[0])\n","repo_name":"RuzhaK/pythonProject","sub_path":"Fundamentals/FinalExamPreparation/Regex/EmojiDetector.py","file_name":"EmojiDetector.py","file_ext":"py","file_size_in_byte":587,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"19378105997","text":"#!/usr/bin/env python\n# -*- coding:utf-8 -*-\n# Author:lipeijie\n\nfrom easyai.name_manager.block_name import NormalizationType\nfrom easyai.model_block.utility.base_block import *\n\n\nclass EmptyNormalization(BaseBlock):\n\n def __init__(self):\n super().__init__(NormalizationType.EmptyNormalization)\n\n def forward(self, x):\n return x\n\n\nclass FrozenBatchNorm2d(BaseBlock):\n \"\"\"\n BatchNorm2d where the batch statistics and the affine parameters\n are fixed\n \"\"\"\n\n def __init__(self, input_channel):\n super().__init__(NormalizationType.FrozenBatchNorm2d)\n self.register_buffer(\"weight\", torch.ones(input_channel))\n self.register_buffer(\"bias\", torch.zeros(input_channel))\n self.register_buffer(\"running_mean\", torch.zeros(input_channel))\n self.register_buffer(\"running_var\", torch.ones(input_channel))\n\n def forward(self, x):\n # Cast all fixed parameters to half() if necessary\n if x.dtype == torch.float16:\n self.weight = self.weight.half()\n self.bias = self.bias.half()\n self.running_mean = self.running_mean.half()\n self.running_var = self.running_var.half()\n\n scale = self.weight * self.running_var.rsqrt()\n bias = self.bias - self.running_mean * scale\n scale = scale.reshape(1, -1, 1, 1)\n bias = bias.reshape(1, -1, 1, 1)\n return x * scale + bias\n\n\n# class FrozenBatchNorm2d(nn.Module):\n# \"\"\"\n# BatchNorm2d where the batch statistics and the affine parameters are fixed.\n# It contains non-trainable buffers called \"weight\" and \"bias\".\n# The two buffers are computed from the original four parameters of BN:\n# mean, variance, scale (gamma), offset (beta).\n# The affine transform `x * weight + bias` will perform the equivalent\n# computation of `(x - mean) / std * scale + offset`, but will be slightly cheaper.\n# The pre-trained backbone models from Caffe2 are already in such a frozen format.\n# \"\"\"\n# def __init__(self, input_channel):\n# super(FrozenBatchNorm2d, self).__init__()\n# self.register_buffer(\"weight\", torch.ones(input_channel))\n# self.register_buffer(\"bias\", torch.zeros(input_channel))\n#\n# def forward(self, x):\n# scale = self.weight.reshape(1, -1, 1, 1)\n# bias = self.bias.reshape(1, -1, 1, 1)\n# return x * scale + bias\n\n\nclass L2Norm(nn.Module):\n def __init__(self, input_channel, scale):\n super().__init__()\n self.input_channel = input_channel\n self.gamma = scale or None\n self.eps = 1e-10\n self.weight = nn.Parameter(torch.Tensor(self.input_channel))\n self.reset_parameters()\n\n def reset_parameters(self):\n nn.init.constant_(self.weight, self.gamma)\n\n def forward(self, x):\n norm = x.pow(2).sum(dim=1, keepdim=True).sqrt()+self.eps\n x = x / norm\n out = self.weight.unsqueeze(0).unsqueeze(2).unsqueeze(3).expand_as(x) * x\n return out\n\n\nclass NormalizationFunction():\n\n def __init__(self):\n pass\n\n @classmethod\n def get_function(cls, name, input_channel, momentum=0.1):\n if name == NormalizationType.BatchNormalize2d:\n return nn.BatchNorm2d(input_channel, momentum=momentum)\n elif name == NormalizationType.BatchNormalize1d:\n return nn.BatchNorm1d(input_channel, momentum=momentum)\n elif name == NormalizationType.InstanceNorm2d:\n return nn.InstanceNorm2d(input_channel, momentum=0.1)\n elif name == NormalizationType.BatchNormalize1d:\n return nn.InstanceNorm1d(input_channel, momentum=0.1)\n elif name == NormalizationType.EmptyNormalization:\n return EmptyNormalization()\n else:\n print(\"%s Normalization function error!\" % name)\n","repo_name":"MiniBullLab/easy_ai","sub_path":"easyai/model_block/base_block/common/normalization_layer.py","file_name":"normalization_layer.py","file_ext":"py","file_size_in_byte":3806,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"24709739677","text":"import numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport optimizers\n\nclass NeuralNetwork():\n def __init__(self, n_inputs, n_hiddens_list, n_outputs):\n self.n_inputs = n_inputs\n self.n_hiddens_list = n_hiddens_list\n self.n_outputs = n_outputs\n self.n_layers = len(n_hiddens_list)\n self.all_weights, self.Ws = self.make_weights()\n self.all_gradients, self.Gs = self.make_weights()\n self.initialize_weights()\n def __repr__(self):\n return f'NeuralNetwork({self.n_inputs}, {self.n_hiddens_list}, {self.n_outputs})'\n \n def make_weights(self):\n n_Ws = []\n n_Ws.append((1 + self.n_inputs) * self.n_hiddens_list[0])\n if (len(self.n_hiddens_list) > 1):\n for i in range(len(self.n_hiddens_list)-1):\n n_Ws.append(n_Ws[i]+(1 + self.n_hiddens_list[i]) * self.n_hiddens_list[i+1])\n n_Ws.append(n_Ws[len(n_Ws)-1]+(1 + self.n_hiddens_list[len(self.n_hiddens_list)-1]) * self.n_outputs)\n n_weights = 0\n for i in n_Ws:\n n_weights = n_Ws[len(n_Ws)-1]\n all_weights = np.zeros(n_weights)\n Ws = []\n Ws.append(all_weights[:n_Ws[0]].reshape(1 + self.n_inputs, self.n_hiddens_list[0]))\n if (len(self.n_hiddens_list)!=1):\n for i in range(len(self.n_hiddens_list)-1):\n Ws.append(all_weights[n_Ws[i]:n_Ws[i+1]].reshape(1 + self.n_hiddens_list[i], self.n_hiddens_list[i+1])) \n Ws.append(all_weights[n_Ws[len(n_Ws)-2]:].reshape(1 + self.n_hiddens_list[len(self.n_hiddens_list)-1], self.n_outputs))\n return all_weights, Ws\n \n def initialize_weights(self):\n self.Ws[0][:] = np.random.uniform(-1, 1, size = (1 + self.n_inputs, self.n_hiddens_list[0])) / np.sqrt(self.n_inputs + 1)\n if (len(self.n_hiddens_list)!=1):\n for i in range(len(self.n_hiddens_list)-1):\n self.Ws[i+1][:] = np.random.uniform(-1, 1, size = (1 + self.n_hiddens_list[i], self.n_hiddens_list[i+1])) / np.sqrt(self.n_hiddens_list[i] + 1)\n self.Ws[len(self.Ws)-1][:] = np.random.uniform(-1, 1, size=(1 + self.n_hiddens_list[len(self.n_hiddens_list)-1], self.n_outputs)) / np.sqrt(self.n_hiddens_list[len(self.n_hiddens_list)-1] + 1)\n\n \n def train(self, X, T, n_epochs, learning_rate=0, method = 'adam', verbose=True):\n self.stand_params = calc_standardize_parameters(X, T)\n Xst = standardize_X(X, self.stand_params)\n Tst = standardize_T(T, self.stand_params)\n optimizer = optimizers.Optimizers(self.all_weights)\n def error_convert(mse_st):\n if T.shape[1] == 1:\n return np.sqrt(mse_st) * self.stand_params['Tstds'][0]\n else:\n return np.sqrt(mse_st)\n if method == 'sgd':\n self.error_trace = optimizer.sgd(self.mse, self.backward, [Xst, Tst], n_epochs, learning_rate, error_convert_f=error_convert)\n elif method == 'adam':\n self.error_trace = optimizer.adam(self.mse, self.backward, [Xst, Tst], n_epochs, learning_rate, error_convert_f=error_convert)\n elif method == 'scg':\n learning_rate = None\n self.error_trace = optimizer.scg(self.mse, self.backward, [Xst, Tst], n_epochs, learning_rate)\n else:\n print('method must be ''sgd'', ''adam'', or ''scg''.')\n \n def use(self, X, return_hidden_layer_outputs=False):\n Xst = standardize_X(X, self.stand_params)\n Outs = self.forward(Xst) \n if return_hidden_layer_outputs:\n return unstandardize_T(Outs[len(Outs)-1], self.stand_params), Outs[:-1]\n else:\n return unstandardize_T(Outs[len(Outs)-1], self.stand_params)\n \n def get_error_trace(self):\n return self.error_trace\n \n def forward(self, Xst):\n Z = np.tanh(add_ones(Xst) @ self.Ws[0])\n Outs = []\n Outs.append(Z)\n for i in range(1,len(self.Ws)-1):\n Outs.append(np.tanh(add_ones(Outs[i-1]) @ self.Ws[i]))\n Outs.append(add_ones(Outs[len(Outs)-1]) @ self.Ws[len(self.Ws)-1])\n return Outs\n\n def backward(self, Xst, Tst):\n n_samples = Xst.shape[0]\n n_outputs = Tst.shape[1]\n Outs = self.forward(Xst)\n gradient_ms = []\n gradient_vs = []\n delta = -2 * (Tst - Outs[len(Outs)-1]) / (n_samples * n_outputs)\n gradient_w = add_ones(Outs[len(Outs)-2]).T @ delta\n lenH = len(Outs)\n for i in range(2, lenH):\n delta = (delta @ self.Ws[lenH-i+1][1:, :].T) * (1 - Outs[lenH-i] ** 2)\n gradient_vs.append(add_ones(Outs[lenH-i-1]).T @ delta)\n delta = (delta @ self.Ws[1][1:, :].T) * (1 - Outs[0] ** 2)\n self.Gs[0][:] = add_ones(Xst).T @ delta\n for i in reversed(range(len(gradient_vs))):\n self.Gs[len(self.Gs)-i-2][:] = gradient_vs[i]\n self.Gs[len(self.Gs)-1][:] = gradient_w\n return self.all_gradients\n \n def mse(self, Xst, Tst):\n Outs = self.forward(Xst)\n return np.mean((Tst - Outs[len(Outs)-1])**2)\n\n\ndef add_ones(X):\n return np.insert(X, 0, 1, axis=1)\n\ndef calc_standardize_parameters(X, T):\n Xmeans = X.mean(axis=0)\n Xstds = X.std(axis=0)\n Tmeans = T.mean(axis=0)\n Tstds = T.std(axis=0)\n return {'Xmeans': Xmeans, 'Xstds': Xstds,\n 'Tmeans': Tmeans, 'Tstds': Tstds}\n\ndef standardize_X(X, stand_parms):\n return (X - stand_parms['Xmeans']) / stand_parms['Xstds']\n\n\ndef unstandardize_X(Xst, stand_parms):\n return Xst * stand_parms['Xstds'] + stand_parms['Xmeans']\n\n\ndef standardize_T(T, stand_parms):\n return (T - stand_parms['Tmeans']) / stand_parms['Tstds']\n\n\ndef unstandardize_T(Tst, stand_parms):\n return Tst * stand_parms['Tstds'] + stand_parms['Tmeans']\n\n\n\ndef run(Xtrain, Ttrain, Xtest, Ttest, method, n_epochs, learning_rate, hidden_unit_list=[50, 50, 50, 50, 50]):\n \n # n_samples = 30\n # Xtrain = np.linspace(0., 20.0, n_samples).reshape((n_samples, 1))\n # Ttrain = 0.2 + 0.05 * (Xtrain) + 0.4 * np.sin(Xtrain / 2) + 0.2 * np.random.normal(size=(n_samples, 1))\n\n # Xtest = Xtrain + 0.1 * np.random.normal(size=(n_samples, 1))\n # Ttest = 0.2 + 0.05 * (Xtest) + 0.4 * np.sin(Xtest / 2) + 0.2 * np.random.normal(size=(n_samples, 1))\n # print(Xtrain)\n n_inputs = Xtrain.shape[1]\n n_hiddens_list = hidden_unit_list\n n_outputs = Ttrain.shape[1]\n\n nnet = NeuralNetwork(n_inputs, n_hiddens_list, n_outputs)\n nnet.train(Xtrain, Ttrain, n_epochs, learning_rate, method=method, verbose=False)\n\n def rmse(Y, T):\n error = T - Y\n return np.sqrt(np.mean(error ** 2))\n\n Ytrain = nnet.use(Xtrain)\n rmse_train = rmse(Ytrain, Ttrain)\n Ytest = nnet.use(Xtest)\n rmse_test = rmse(Ytest, Ttest)\n\n print(f'Method: {method}, RMSE: Train {rmse_train:.2f} Test {rmse_test:.2f}')\n\n # plt.figure(1, figsize=(10, 10))\n # plt.clf()\n\n # n_plot_rows = nnet.n_layers + 1\n # ploti = 0\n\n # ploti += 1\n # plt.subplot(n_plot_rows, 1, ploti)\n # plt.plot(nnet.get_error_trace())\n # plt.xlabel('Epoch')\n # plt.ylabel('RMSE')\n\n # ploti += 1\n # plt.subplot(n_plot_rows, 1, ploti)\n # plt.plot(Xtrain, Ttrain, 'o', label='Training Data')\n # plt.plot(Xtest, Ttest, 'o', label='Testing Data')\n # X_for_plot = np.linspace(0, 20, 20).reshape(-1, 1)\n # Y, Zs = nnet.use(X_for_plot, return_hidden_layer_outputs=True)\n # # print(X_for_plot)\n # # print(Y)\n # plt.plot(X_for_plot, Y, label='Neural Net Output')\n # plt.legend()\n # plt.xlabel('X')\n # plt.ylabel('Y')\n # # Y= nnet.use(np.array([year]).reshape(-1, 1))\n # # print(Y)\n # for layeri in range(nnet.n_layers - 2, -1, -1):\n # ploti += 1\n # plt.subplot(n_plot_rows, 1, ploti)\n # plt.plot(X_for_plot, Zs[layeri])\n # plt.xlabel('X')\n # plt.ylabel(f'Outputs from Layer {layeri}')\n \n return nnet\n# n_samples=30\n# Xtrain = np.linspace(0., 20.0, n_samples).reshape((n_samples, 1))\n# print(Xtrain)\n# run('sgd', 4000, 0.1)\n","repo_name":"snyderg2/car_price_nnet","sub_path":"NN_torch.py","file_name":"NN_torch.py","file_ext":"py","file_size_in_byte":8002,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12018424593","text":"'''\r\nAuthor: James Thomason\r\n'''\r\n\r\n# Line Graph, all Big West teams win loss percent from 2017-2022 (Big West conference data isnt listed before 2016)\r\n# 2022 Stats are NOT FINAL STATS.\r\nimport pandas as pd\r\nimport requests\r\nimport statsmodels.api as sm\r\nimport matplotlib.pyplot as plt\r\n\r\nlink_to_stats = \"http://stats.ncaa.org/rankings/change_sport_year_div\" \r\n\r\ndef pretend_browser(link):\r\n years = [2017,2018,2019,2020,2021,2022]\r\n win_loss_all_teams = []\r\n header = {\r\n \"User-Agent\": \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36\",\r\n \"X-Requested-With\": \"XMLHttpRequest\"\r\n }\r\n for year in years:\r\n r = requests.post(link, headers=header,\r\n data={\"sport_code\": \"MVB\",\r\n \"academic_year\": float(year),\r\n \"division\": 1.0,\r\n \"ranking_period\": 70.0,\r\n \"team_individual\":\"T\",\r\n \"game_high\": \"N\",\r\n \"stat_seq\": 530,\r\n \"org_id\": -1\r\n })\r\n win_loss_all_teams.append(r.text)\r\n return win_loss_all_teams\r\n\r\ndef scrape_request_text_for_big_west(text):\r\n years = [2018,2019,2020,2021,2022]\r\n scraped_dataframes_from_r_text_list = []\r\n only_big_west_data = []\r\n for data in text:\r\n scraped_df = pd.read_html(data)\r\n scraped_dataframes_from_r_text_list.append(scraped_df[1])\r\n for df in scraped_dataframes_from_r_text_list:\r\n filtered = df[df[\"Team\"].str.contains(\"Big West\") == True]\r\n filtered_only_wl_PCT = filtered.loc[:,[\"Team\",\"Pct.\"]]\r\n only_big_west_data.append(filtered_only_wl_PCT)\r\n\r\n only_big_west_data = only_big_west_data[1:]\r\n\r\n for i,df in enumerate(only_big_west_data):\r\n df[\"Year\"] = years[i]\r\n merged = pd.concat([only_big_west_data[0],only_big_west_data[1],only_big_west_data[2],only_big_west_data[3],only_big_west_data[4]],axis=0)\r\n return merged\r\n\r\ndef get_each_year_by_team(merged_df):\r\n team_one = merged_df[merged_df[\"Team\"].str.contains(\"Long Beach\") == True]\r\n team_two = merged_df[merged_df[\"Team\"].str.contains(\"Hawaii\") == True]\r\n team_three = merged_df[merged_df[\"Team\"].str.contains(\"UC Irvine\") == True]\r\n team_four = merged_df[merged_df[\"Team\"].str.contains(\"CSUN\") == True]\r\n team_five = merged_df[merged_df[\"Team\"].str.contains(\"UC Santa\") == True]\r\n team_six = merged_df[merged_df[\"Team\"].str.contains(\"UC San Diego\") == True]\r\n\r\n return [team_one,team_two,team_three,team_four,team_five,team_six]\r\n \r\ndef make_plot(team_list_by_year):\r\n plt.figure(figsize=(10,10))\r\n for team in team_list_by_year:\r\n plt.plot(team[\"Year\"],team[\"Pct.\"], label= team.iloc[0,0][:-10], linewidth=3)\r\n plt.xticks([2018,2019,2020,2021,2022])\r\n plt.title(\"Win pct of teams in Big West Conference by Year\",fontsize=14)\r\n plt.xlabel(\"Year\",fontsize=14)\r\n plt.ylabel(\"Win Percentage\",fontsize=14)\r\n plt.legend(bbox_to_anchor=(1.01,1), loc='center', borderaxespad=0)\r\n plt.grid(True)\r\n \r\n\r\ndef main():\r\n link = \"http://stats.ncaa.org/rankings/change_sport_year_div\"\r\n \r\n url_text = pretend_browser(link)\r\n big_west_by_year = scrape_request_text_for_big_west(url_text)\r\n teams_list_by_year = get_each_year_by_team(big_west_by_year)\r\n make_plot(teams_list_by_year)\r\n plt.show()\r\n\r\n\r\n\r\nif __name__ == \"__main__\":\r\n main()","repo_name":"Kazeazen/350FinalProject","sub_path":"final_proj_scrip_3.py","file_name":"final_proj_scrip_3.py","file_ext":"py","file_size_in_byte":3550,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"2910442363","text":"import random\ndef rolldie():\n print(\"Rolling the Dice\")\n x = random.randrange(1,6)\n print(x)\n\n\n\ndef main():\n roll_again = \"yes\"\n while roll_again == \"yes\" or roll_again== \"y\":\n rolldie()\n roll_again = input(\"Do you wanna roll the dice again and again\")\n\n\nif __name__ == \"__name__\":main()\n","repo_name":"arjunarunkumar/python-programs","sub_path":"dice.py","file_name":"dice.py","file_ext":"py","file_size_in_byte":317,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"39704561061","text":"# 1D1P Day112 BOJ 14888번 연산자 끼워넣기 문제 - 2021.02.24\n\nimport sys\ninput = sys.stdin.readline\n\nN = int(input())\nnumbers = list(map(int, input().split()))\nopers = list(map(int, input().split()))\n\n\nMax = -1000000001\nMin = 1000000001\n\nvisited = [0] * (N-1)\n\ndef divide(a, b):\n \n if (a < 0 and b > 0) or (a > 0 and b < 0):\n a, b = abs(a), abs(b)\n q = a // b\n return -q\n \n return a // b\n\ndef cal(element):\n global Max, Min\n \n tmp = numbers[0]\n for i in range(N-1):\n if element[i] == 0:\n tmp += numbers[i+1]\n elif element[i] == 1:\n tmp -= numbers[i+1]\n elif element[i] == 2:\n tmp *= numbers[i+1]\n elif element[i] == 3:\n tmp = divide(tmp, numbers[i+1])\n if tmp > Max:\n Max = tmp\n if tmp < Min:\n Min = tmp\n\n\ndef permutation(element, depth):\n \n if depth == N-1:\n cal(element)\n return\n \n for i in range(4):\n if opers[i] != 0:\n element.append(i)\n opers[i] -= 1\n permutation(element, depth + 1)\n opers[i] += 1\n element.pop()\n\npermutation([], 0)\n\n\nprint(Max)\nprint(Min)","repo_name":"WonHwang/1D1P","sub_path":"2021_02_24_Day112/14888.py","file_name":"14888.py","file_ext":"py","file_size_in_byte":1196,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"38843435460","text":"# coding: utf-8\n\n\"\"\"\nThis module contains the implementation of :class:`can.Message`.\n\n.. note::\n Could use `@dataclass `__\n starting with Python 3.7.\n\"\"\"\n\nfrom __future__ import absolute_import, division\n\nimport warnings\nfrom copy import deepcopy\nfrom math import isinf, isnan\n\n\nclass Message(object):\n \"\"\"\n The :class:`~can.Message` object is used to represent CAN messages for\n sending, receiving and other purposes like converting between different\n logging formats.\n\n Messages can use extended identifiers, be remote or error frames, contain\n data and may be associated to a channel.\n\n Messages are always compared by identity and never by value, because that\n may introduce unexpected behaviour. See also :meth:`~can.Message.equals`.\n\n :func:`~copy.copy`/:func:`~copy.deepcopy` is supported as well.\n\n Messages do not support \"dynamic\" attributes, meaning any others than the\n documented ones, since it uses :attr:`~object.__slots__`.\n \"\"\"\n\n __slots__ = (\n \"timestamp\",\n \"arbitration_id\",\n \"is_extended_id\",\n \"is_remote_frame\",\n \"is_error_frame\",\n \"channel\",\n \"dlc\",\n \"data\",\n \"is_fd\",\n \"bitrate_switch\",\n \"error_state_indicator\",\n \"__weakref__\", # support weak references to messages\n \"_dict\" # see __getattr__\n )\n\n def __getattr__(self, key):\n # TODO keep this for a version, in order to not break old code\n # this entire method (as well as the _dict attribute in __slots__ and the __setattr__ method)\n # can be removed in 4.0\n # this method is only called if the attribute was not found elsewhere, like in __slots__\n try:\n warnings.warn(\"Custom attributes of messages are deprecated and will be removed in 4.0\", DeprecationWarning)\n return self._dict[key]\n except KeyError:\n raise AttributeError(\"'message' object has no attribute '{}'\".format(key))\n\n def __setattr__(self, key, value):\n # see __getattr__\n try:\n super(Message, self).__setattr__(key, value)\n except AttributeError:\n warnings.warn(\"Custom attributes of messages are deprecated and will be removed in 4.0\", DeprecationWarning)\n self._dict[key] = value\n\n @property\n def id_type(self):\n # TODO remove in 4.0\n warnings.warn(\"Message.id_type is deprecated and will be removed in 4.0, use is_extended_id instead\", DeprecationWarning)\n return self.is_extended_id\n\n @id_type.setter\n def id_type(self, value):\n # TODO remove in 4.0\n warnings.warn(\"Message.id_type is deprecated and will be removed in 4.0, use is_extended_id instead\", DeprecationWarning)\n self.is_extended_id = value\n\n def __init__(self, timestamp=0.0, arbitration_id=0, is_extended_id=None,\n is_remote_frame=False, is_error_frame=False, channel=None,\n dlc=None, data=None,\n is_fd=False, bitrate_switch=False, error_state_indicator=False,\n extended_id=None, # deprecated in 3.x, TODO remove in 4.x\n check=False):\n \"\"\"\n To create a message object, simply provide any of the below attributes\n together with additional parameters as keyword arguments to the constructor.\n\n :param bool check: By default, the constructor of this class does not strictly check the input.\n Thus, the caller must prevent the creation of invalid messages or\n set this parameter to `True`, to raise an Error on invalid inputs.\n Possible problems include the `dlc` field not matching the length of `data`\n or creating a message with both `is_remote_frame` and `is_error_frame` set to `True`.\n\n :raises ValueError: iff `check` is set to `True` and one or more arguments were invalid\n \"\"\"\n self._dict = dict() # see __getattr__\n\n self.timestamp = timestamp\n self.arbitration_id = arbitration_id\n\n if extended_id is not None:\n # TODO remove in 4.0\n warnings.warn(\"The extended_id parameter is deprecated and will be removed in 4.0, use is_extended_id instead\", DeprecationWarning)\n\n if is_extended_id is not None:\n self.is_extended_id = is_extended_id\n else:\n self.is_extended_id = True if extended_id is None else extended_id\n\n self.is_remote_frame = is_remote_frame\n self.is_error_frame = is_error_frame\n self.channel = channel\n\n self.is_fd = is_fd\n self.bitrate_switch = bitrate_switch\n self.error_state_indicator = error_state_indicator\n\n if data is None or is_remote_frame:\n self.data = bytearray()\n elif isinstance(data, bytearray):\n self.data = data\n else:\n try:\n self.data = bytearray(data)\n except TypeError:\n err = \"Couldn't create message from {} ({})\".format(data, type(data))\n raise TypeError(err)\n\n if dlc is None:\n self.dlc = len(self.data)\n else:\n self.dlc = dlc\n\n if check:\n self._check()\n\n def __str__(self):\n field_strings = [\"Timestamp: {0:>15.6f}\".format(self.timestamp)]\n if self.is_extended_id:\n arbitration_id_string = \"ID: {0:08x}\".format(self.arbitration_id)\n else:\n arbitration_id_string = \"ID: {0:04x}\".format(self.arbitration_id)\n field_strings.append(arbitration_id_string.rjust(12, \" \"))\n\n flag_string = \" \".join([\n \"X\" if self.is_extended_id else \"S\",\n \"E\" if self.is_error_frame else \" \",\n \"R\" if self.is_remote_frame else \" \",\n \"F\" if self.is_fd else \" \",\n \"BS\" if self.bitrate_switch else \" \",\n \"EI\" if self.error_state_indicator else \" \"\n ])\n\n field_strings.append(flag_string)\n\n field_strings.append(\"DLC: {0:2d}\".format(self.dlc))\n data_strings = []\n if self.data is not None:\n for index in range(0, min(self.dlc, len(self.data))):\n data_strings.append(\"{0:02x}\".format(self.data[index]))\n if data_strings: # if not empty\n field_strings.append(\" \".join(data_strings).ljust(24, \" \"))\n else:\n field_strings.append(\" \" * 24)\n\n if (self.data is not None) and (self.data.isalnum()):\n field_strings.append(\"'{}'\".format(self.data.decode('utf-8', 'replace')))\n\n if self.channel is not None:\n try:\n field_strings.append(\"Channel: {}\".format(self.channel))\n except UnicodeEncodeError:\n pass\n\n return \" \".join(field_strings).strip()\n\n def __len__(self):\n # return the dlc such that it also works on remote frames\n return self.dlc\n\n def __bool__(self):\n # For Python 3\n return True\n\n def __nonzero__(self):\n # For Python 2\n return self.__bool__()\n\n def __repr__(self):\n args = [\"timestamp={}\".format(self.timestamp),\n \"arbitration_id={:#x}\".format(self.arbitration_id),\n \"extended_id={}\".format(self.is_extended_id)]\n\n if self.is_remote_frame:\n args.append(\"is_remote_frame={}\".format(self.is_remote_frame))\n\n if self.is_error_frame:\n args.append(\"is_error_frame={}\".format(self.is_error_frame))\n\n if self.channel is not None:\n args.append(\"channel={!r}\".format(self.channel)) \n\n data = [\"{:#02x}\".format(byte) for byte in self.data]\n args += [\"dlc={}\".format(self.dlc),\n \"data=[{}]\".format(\", \".join(data))]\n\n if self.is_fd:\n args.append(\"is_fd=True\")\n args.append(\"bitrate_switch={}\".format(self.bitrate_switch))\n args.append(\"error_state_indicator={}\".format(self.error_state_indicator))\n\n return \"can.Message({})\".format(\", \".join(args))\n\n def __format__(self, format_spec):\n if not format_spec:\n return self.__str__()\n else:\n raise ValueError(\"non empty format_specs are not supported\")\n\n def __bytes__(self):\n return bytes(self.data)\n\n def __copy__(self):\n new = Message(\n timestamp=self.timestamp,\n arbitration_id=self.arbitration_id,\n is_extended_id=self.is_extended_id,\n is_remote_frame=self.is_remote_frame,\n is_error_frame=self.is_error_frame,\n channel=self.channel,\n dlc=self.dlc,\n data=self.data,\n is_fd=self.is_fd,\n bitrate_switch=self.bitrate_switch,\n error_state_indicator=self.error_state_indicator\n )\n new._dict.update(self._dict)\n return new\n\n def __deepcopy__(self, memo):\n new = Message(\n timestamp=self.timestamp,\n arbitration_id=self.arbitration_id,\n is_extended_id=self.is_extended_id,\n is_remote_frame=self.is_remote_frame,\n is_error_frame=self.is_error_frame,\n channel=deepcopy(self.channel, memo),\n dlc=self.dlc,\n data=deepcopy(self.data, memo),\n is_fd=self.is_fd,\n bitrate_switch=self.bitrate_switch,\n error_state_indicator=self.error_state_indicator\n )\n new._dict.update(self._dict)\n return new\n\n def _check(self):\n \"\"\"Checks if the message parameters are valid.\n Assumes that the types are already correct.\n\n :raises ValueError: iff one or more attributes are invalid\n \"\"\"\n\n if self.timestamp < 0.0:\n raise ValueError(\"the timestamp may not be negative\")\n if isinf(self.timestamp):\n raise ValueError(\"the timestamp may not be infinite\")\n if isnan(self.timestamp):\n raise ValueError(\"the timestamp may not be NaN\")\n\n if self.is_remote_frame and self.is_error_frame:\n raise ValueError(\"a message cannot be a remote and an error frame at the sane time\")\n\n if self.arbitration_id < 0:\n raise ValueError(\"arbitration IDs may not be negative\")\n\n if self.is_extended_id:\n if 0x20000000 <= self.arbitration_id:\n raise ValueError(\"Extended arbitration IDs must be less than 2^29\")\n elif 0x800 <= self.arbitration_id:\n raise ValueError(\"Normal arbitration IDs must be less than 2^11\")\n\n if self.dlc < 0:\n raise ValueError(\"DLC may not be negative\")\n if self.is_fd:\n if 64 < self.dlc:\n raise ValueError(\"DLC was {} but it should be <= 64 for CAN FD frames\".format(self.dlc))\n elif 8 < self.dlc:\n raise ValueError(\"DLC was {} but it should be <= 8 for normal CAN frames\".format(self.dlc))\n\n if self.is_remote_frame:\n if self.data is not None and len(self.data) != 0:\n raise ValueError(\"remote frames may not carry any data\")\n elif self.dlc != len(self.data):\n raise ValueError(\"the DLC and the length of the data must match up for non remote frames\")\n\n if not self.is_fd:\n if self.bitrate_switch:\n raise ValueError(\"bitrate switch is only allowed for CAN FD frames\")\n if self.error_state_indicator:\n raise ValueError(\"error state indicator is only allowed for CAN FD frames\")\n\n def equals(self, other, timestamp_delta=1.0e-6):\n \"\"\"\n Compares a given message with this one.\n\n :param can.Message other: the message to compare with\n\n :type timestamp_delta: float or int or None\n :param timestamp_delta: the maximum difference at which two timestamps are\n still considered equal or None to not compare timestamps\n\n :rtype: bool\n :return: True iff the given message equals this one\n \"\"\"\n # see https://github.com/hardbyte/python-can/pull/413 for a discussion\n # on why a delta of 1.0e-6 was chosen\n return (\n # check for identity first and finish fast\n self is other or\n # then check for equality by value\n (\n (\n timestamp_delta is None or\n abs(self.timestamp - other.timestamp) <= timestamp_delta\n ) and\n self.arbitration_id == other.arbitration_id and\n self.is_extended_id == other.is_extended_id and\n self.dlc == other.dlc and\n self.data == other.data and\n self.is_remote_frame == other.is_remote_frame and\n self.is_error_frame == other.is_error_frame and\n self.channel == other.channel and\n self.is_fd == other.is_fd and\n self.bitrate_switch == other.bitrate_switch and\n self.error_state_indicator == other.error_state_indicator\n )\n )\n","repo_name":"CanBusHack/cmap","sub_path":"venv/Lib/site-packages/can/message.py","file_name":"message.py","file_ext":"py","file_size_in_byte":13163,"program_lang":"python","lang":"en","doc_type":"code","stars":11,"dataset":"github-code","pt":"86"}
+{"seq_id":"6776002064","text":"from inspect import signature\n\nimport uvicorn\nfrom fastapi import FastAPI\nfrom fastapi.openapi.utils import get_openapi\n\n# from api.routers import system\nfrom api.endpoints import system\n\nfrom config import (\n API_HOST,\n API_PORT,\n UVICORN_LOG_LEVEL,\n)\nfrom logs import logger\n\nrouter = FastAPI(logger=logger)\n\n# router.include_router(system.router, prefix=\"/system\")\n\nrouter.add_api_route(\n \"/heart\", system.heart, methods=[\"HEAD\", \"GET\"], response_model=signature(system.heart).return_annotation,\n)\n\nrouter.add_api_route(\n \"/healthcheck\",\n system.healthcheck,\n methods=[\"HEAD\", \"GET\"],\n response_model=signature(system.healthcheck).return_annotation,\n)\n\n\ndef app_openapi():\n if router.openapi_schema:\n return router.openapi_schema\n else:\n openapi_schema = get_openapi(\n title=\"My API\", version=\"0.0.1\", description=\"My API for things\", routes=router.routes,\n )\n # openapi_schema[\"info\"][\"x-logo\"] = {\n # \"url\": \"https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png\"\n # }\n router.openapi_schema = openapi_schema\n return router.openapi_schema\n\n\nrouter.openapi = app_openapi\n\nif __name__ == \"__main__\":\n print(f\"Starting server on host {API_HOST} at port {API_PORT}...\")\n uvicorn.run(router, host=API_HOST, port=API_PORT, log_level=UVICORN_LOG_LEVEL)\n","repo_name":"christhekeele/python-celery-seed","sub_path":"app/api/server.py","file_name":"server.py","file_ext":"py","file_size_in_byte":1363,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"42277524542","text":"\"\"\"Representation utilities.\"\"\"\nimport pathlib\nimport pprint\nfrom collections import defaultdict\n\nimport muspy\nimport numpy as np\n\nimport utils\n\n# Configuration\nRESOLUTION = 12\n# MAX_BEAT = 1024\nMAX_TIME_SHIFT = RESOLUTION * 4\nMAX_BAR = 8\nMAX_TRACK_NUM = 12\n\n# Instrument\nPROGRAM_INSTRUMENT_MAP = [\n # Pianos\n \"grand-piano\",\n \"bright-piano\",\n \"electric-grand-piano\",\n \"honky-tony-piano\",\n \"electric-piano-1\",\n \"electric-piano-2\",\n \"harpsichord\",\n \"clavinet\",\n # Chromatic Percussion\n \"celesta\",\n \"glockenspiel\",\n \"music-box\",\n \"vibraphone\",\n \"marimba\",\n \"xylophone\",\n \"tubular-bells\",\n \"dulcimer\",\n # Organs\n \"dwawbar-organ\",\n \"percussive-organ\",\n \"rock-organ\",\n \"church-organ\",\n \"reed-organ\",\n \"accordion\",\n \"harmonica\",\n \"bandoneon\",\n # Guitars\n \"nylon-string-guitar\",\n \"steel-string-guitar\",\n \"jazz-electric-guitar\",\n \"clean-electric-guitar\",\n \"muted-electric-guitar\",\n \"overdriven-electric-guitar\",\n \"distort-electric-guitar\",\n \"guitar-harmonic\",\n # Basses\n \"bass\",\n \"finger-electric-bass\",\n \"pick-electric-bass\",\n \"fretless-electric-bass\",\n \"slap-bass-1\",\n \"slap-bass-2\",\n \"synth-bass-1\",\n \"synth-bass-2\",\n # Strings\n \"violin\",\n \"viola\",\n \"cello\",\n \"contrabass\",\n \"tremelo-strings\",\n \"pizzicato-strings\",\n \"harp\",\n \"timpani\",\n # Ensemble\n \"strings\",\n \"strings\",\n \"synth-strings-1\",\n \"synth-strings-2\",\n \"voices-aah\",\n \"voices-ooh\",\n \"synth-voice\",\n \"orchestra-hit\",\n # Brass\n \"trumpet\",\n \"trombone\",\n \"tuba\",\n \"muted-trumpet\",\n \"horn\",\n \"brasses\",\n \"synth-brasses-1\",\n \"synth-brasses-2\",\n # Reed\n \"soprano-saxophone\",\n \"alto-saxophone\",\n \"tenor-saxophone\",\n \"baritone-saxophone\",\n \"oboe\",\n \"english-horn\",\n \"bassoon\",\n \"clarinet\",\n # Pipe\n \"piccolo\",\n \"flute\",\n \"recorder\",\n \"pan-flute\",\n \"blown-bottle\",\n \"Shakuhachi\",\n \"Whistle\",\n \"ocarina\",\n # Synth Lead\n \"lead-square\",\n \"lead-sawtooth\",\n \"lead-calliope\",\n \"lead-chiff\",\n \"lead-charang\",\n \"lead-voice\",\n \"lead-fifths\",\n \"lead-bass+lead\",\n # Synth Pad\n \"pad-new-age\",\n \"pad-warm\",\n \"pad-polysynth\",\n \"pad-choir\",\n \"pad-bowed\",\n \"pad-metallic\",\n \"pad-halo\",\n \"pad-sweep\",\n # Synth Effects\n \"fx-rain\",\n \"fx-soundtrack\",\n \"fx-crystal\",\n \"fx-atmosphere\",\n \"fx-brightness\",\n \"fx-goblins\",\n \"fx-echoes\",\n \"fx-scifi\",\n # Ethnic\n \"sitar\",\n \"banjo\",\n \"shamisen\",\n \"koto\",\n \"kalimba\",\n \"bag-pipe\",\n \"violin\",\n \"shehnai\",\n # Percussive\n \"tinkle-bell\",\n \"agogo\",\n \"steel-drum\",\n \"woodblock\",\n \"taiko\",\n \"melodic-tom\",\n \"synth-drums\",\n \"reverse-cymbal\",\n \"guitar-fret-noise\",\n # Sound effects\n \"breath-noise\",\n \"seashore\",\n \"bird-tweet\",\n \"telephone-rang\",\n \"helicopter\",\n \"applause\",\n \"gunshot\",\n \"drumset\",\n]\nINSTRUMENT_PROGRAM_MAP = {\n instrument: program\n for program, instrument in enumerate(PROGRAM_INSTRUMENT_MAP)\n}\nPROGRAM_INSTRUMENT_MAP = {\n program: instrument\n for program, instrument in enumerate(PROGRAM_INSTRUMENT_MAP)\n}\nKNOWN_PROGRAMS = list(\n k for k, v in INSTRUMENT_PROGRAM_MAP.items() if v is not None\n)\nKNOWN_INSTRUMENTS = list(dict.fromkeys(INSTRUMENT_PROGRAM_MAP.keys()))\n\nKNOWN_EVENTS = [\n \"start-of-song\",\n \"end-of-song\",\n \"start-of-bar\",\n \"end-of-bar\",\n \"start-of-track\",\n \"end-of-track\",\n]\nKNOWN_EVENTS.extend(\n f\"instrument_{instrument}\" for instrument in KNOWN_INSTRUMENTS\n)\nKNOWN_EVENTS.extend(f\"note-on_{i}\" for i in range(128))\nKNOWN_EVENTS.extend(f\"note-off_{i}\" for i in range(128))\nKNOWN_EVENTS.extend(f\"time-shift_{i}\" for i in range(1, MAX_TIME_SHIFT + 1))\nEVENT_CODE_MAPS = {event: i for i, event in enumerate(KNOWN_EVENTS)}\nCODE_EVENT_MAPS = utils.inverse_dict(EVENT_CODE_MAPS)\n\n\nclass Indexer:\n def __init__(self, data=None, is_training=False):\n self._dict = dict() if data is None else data\n self._is_training = is_training\n\n def __getitem__(self, key):\n if self._is_training and key not in self._dict:\n self._dict[key] = len(self._dict)\n return len(self._dict) - 1\n return self._dict[key]\n\n def __len__(self):\n return len(self._dict)\n\n def __contain__(self, item):\n return item in self._dict\n\n def get_dict(self):\n \"\"\"Return the internal dictionary.\"\"\"\n return self._dict\n\n def train(self):\n \"\"\"Set training mode.\"\"\"\n self._is_training = True\n\n def eval(self):\n \"\"\"Set evaluation mode.\"\"\"\n self._is_learning = False\n\n\ndef get_encoding():\n \"\"\"Return the encoding configurations.\"\"\"\n return {\n \"resolution\": RESOLUTION,\n \"max_bar\": MAX_BAR,\n 'max_track_num': MAX_TRACK_NUM,\n \"max_time_shift\": MAX_TIME_SHIFT,\n \"program_instrument_map\": PROGRAM_INSTRUMENT_MAP,\n \"instrument_program_map\": INSTRUMENT_PROGRAM_MAP,\n \"event_code_map\": EVENT_CODE_MAPS,\n \"code_event_map\": CODE_EVENT_MAPS,\n }\n\n\ndef load_encoding(filename):\n \"\"\"Load encoding configurations from a JSON file.\"\"\"\n encoding = utils.load_json(filename)\n for key in (\"program_instrument_map\", \"code_event_map\"):\n encoding[key] = {\n int(k) if k != \"null\" else None: v\n for k, v in encoding[key].items()\n }\n return encoding\n\n\ndef extract_notes(music, resolution):\n \"\"\"Return a MusPy music object as a note sequence.\n\n Each row of the output is a note specified as follows.\n\n (beat, position, pitch, duration, program)\n\n \"\"\"\n # Check resolution\n assert music.resolution == resolution\n\n # Extract notes\n notes = []\n for track in music:\n if track.program not in KNOWN_PROGRAMS:\n continue\n for note in track:\n beat, position = divmod(note.time, resolution)\n notes.append(\n (beat, position, note.pitch, note.duration, track.program)\n )\n\n # Deduplicate and sort the notes\n notes = sorted(set(notes))\n\n return np.array(notes)\n\n\n# def encode_notes(notes, encoding, indexer):\n# \"\"\"Encode the notes into a sequence of code tuples.\n\n# Each row of the output is encoded as follows.\n\n# (event_type, beat, position, pitch, duration, instrument)\n\n# \"\"\"\n# # Get variables\n# resolution = encoding[\"resolution\"]\n# max_beat = encoding[\"max_beat\"]\n# max_time_shift = encoding[\"max_time_shift\"]\n\n# # Get maps\n# program_instrument_map = encoding[\"program_instrument_map\"]\n# instrument_program_map = encoding[\"instrument_program_map\"]\n\n# # Extract notes\n# instruments = defaultdict(list)\n# for note in notes:\n# instrument = program_instrument_map[note[-1]]\n# # Skip unknown instruments\n# if instrument is None:\n# continue\n# instruments[instrument].append(note)\n\n# # Sort the instruments\n# instruments = dict(\n# sorted(\n# instruments.items(),\n# key=lambda x: instrument_program_map[x[0]],\n# )\n# )\n\n# # Collect events\n# events = defaultdict(list)\n# for instrument, instrument_notes in instruments.items():\n# for beat, position, pitch, duration, _ in instrument_notes:\n# if beat > max_beat:\n# continue\n# time = beat * resolution + position\n# events[instrument].append((time, f\"note-on_{pitch}\"))\n# events[instrument].append((time + duration, f\"note-off_{pitch}\"))\n\n# # Deduplicate and sort the events\n# for instrument in events:\n# events[instrument] = sorted(set(events[instrument]))\n\n# # Start the codes with an SOS event\n# codes = [indexer[\"start-of-song\"]]\n\n# # Encode the instruments\n# for instrument in events:\n# codes.append(indexer[\"start-of-track\"])\n# codes.append(indexer[f\"instrument_{instrument}\"])\n# time = 0\n# for event_time, event in events[instrument]:\n# while time < event_time:\n# time_shift = min(event_time - time, max_time_shift)\n# codes.append(indexer[f\"time-shift_{time_shift}\"])\n# time += time_shift\n# codes.append(indexer[event])\n# codes.append(indexer[\"end-of-track\"])\n\n# # End the codes with an EOS event\n# codes.append(indexer[\"end-of-song\"])\n\n# return np.array(codes)\n\n\ndef track_list_to_code(track_list, indexer):\n np.random.shuffle(track_list)\n codes = [indexer['start-of-song']]\n for track in track_list:\n codes.extend(track)\n codes.append(indexer['end-of-song'])\n return np.array(codes, dtype=np.int32)\n\n\ndef encode(music, encoding, indexer):\n \"\"\"Encode a MusPy music object into a sequence of codes.\n\n Each row of the input is encoded as follows.\n\n (event_type, beat, position, pitch, duration, instrument)\n\n \"\"\"\n # Extract notes\n # notes = extract_notes(music, encoding[\"resolution\"])\n\n # # Encode the notes\n # codes = encode_notes(notes, encoding, indexer)\n\n assert music.resolution == encoding['resolution']\n\n assert len(music.tracks) <= encoding['max_track_num']\n\n bar_length = encoding['resolution'] * 4\n max_onset = encoding['max_bar'] * bar_length\n assert all([\n ts.numerator == 4 and ts.denominator == 4\n for ts in music.time_signatures\n if ts.time < max_onset\n ])\n\n if len(music.time_signatures) != 0:\n assert music.time_signatures[0].time == 0\n\n sot_code = indexer['start-of-track']\n eot_code = indexer['end-of-track']\n sob_code = indexer['start-of-bar']\n eob_code = indexer['end-of-bar']\n\n track_list = []\n for track in music:\n program = 128 if track.is_drum else track.program\n instrument = encoding[\"program_instrument_map\"][program]\n cur_track = [sot_code, indexer[f'instrument_{instrument}'], sob_code]\n\n note_event_list = []\n for note in track:\n if note.time < max_onset:\n note_event_list.append((note.time, f'note-on_{note.pitch}'))\n note_event_list.append((note.time+note.duration, f'note-off_{note.pitch}'))\n # note_event_list = sorted(set(note_event_list))\n note_event_list.sort()\n\n next_bar_start_time = bar_length\n note_cursor = 0\n prev_time = 0\n while note_cursor < len(note_event_list):\n note_event = note_event_list[note_cursor]\n if note_event[0] >= next_bar_start_time:\n cur_track.append(eob_code)\n cur_track.append(sob_code)\n next_bar_start_time += bar_length\n prev_time += bar_length\n else:\n if note_event[0] > prev_time:\n # if note_event[0] - prev_time > bar_length:\n # print(note_event[0], prev_time, next_bar_start_time)\n # raise ValueError\n cur_track.append(indexer[f'time-shift_{note_event[0] - prev_time}'])\n prev_time = note_event[0]\n cur_track.append(indexer[note_event[1]])\n note_cursor += 1\n\n cur_track.extend([eob_code, eot_code])\n track_list.append(cur_track)\n\n return track_list\n\n\ndef decode_notes(data, encoding, vocabulary):\n \"\"\"Decode codes into a note sequence.\"\"\"\n # Get variables and maps\n # resolution = encoding[\"resolution\"]\n instrument_program_map = encoding[\"instrument_program_map\"]\n\n # Initialize variables\n program = 0\n bar_start_time = -encoding['resolution'] * 4\n time = 0\n note_ons = {}\n\n # Decode the codes into a sequence of notes\n notes = []\n for code in data:\n event = vocabulary[code]\n if event == \"start-of-song\":\n continue\n elif event == \"end-of-song\":\n break\n elif event in (\"start-of-track\", \"end-of-track\"):\n # Reset variables\n program = 0\n time = 0\n note_ons = {}\n elif event == \"start-of-bar\":\n bar_start_time = bar_start_time + encoding['resolution'] * 4\n time = bar_start_time\n elif event == \"end-of-bar\":\n continue\n elif event.startswith(\"instrument\"):\n instrument = event.split(\"_\")[1]\n program = instrument_program_map[instrument]\n elif event.startswith(\"time-shift\"):\n time += int(event.split(\"_\")[1])\n elif event.startswith(\"note-on\"):\n pitch = int(event.split(\"_\")[1])\n note_ons[pitch] = time\n elif event.startswith(\"note-off\"):\n pitch = int(event.split(\"_\")[1])\n # Skip a note-off event without a corresponding note-on event\n if pitch not in note_ons:\n continue\n onset = note_ons[pitch]\n notes.append(\n (onset, pitch, time - note_ons[pitch], program)\n )\n else:\n raise ValueError(f\"Unknown event type for: {event}\")\n\n return notes\n\n\ndef reconstruct(notes, resolution):\n \"\"\"Reconstruct a note sequence to a MusPy Music object.\"\"\"\n # Construct the MusPy Music object\n music = muspy.Music(resolution=resolution, tempos=[muspy.Tempo(0, 100)])\n\n # Append the tracks\n programs = sorted(set(note[-1] for note in notes))\n for program in programs:\n if program == 128:\n music.tracks.append(muspy.Track(is_drum=True))\n else:\n music.tracks.append(muspy.Track(program))\n\n # Append the notes\n for onset, pitch, duration, program in notes:\n track_idx = programs.index(program)\n music[track_idx].notes.append(muspy.Note(onset, pitch, duration))\n\n return music\n\n\ndef decode(codes, encoding, vocabulary):\n \"\"\"Decode codes into a MusPy Music object.\n\n Each row of the input is encoded as follows.\n\n (event_type, beat, position, pitch, duration, instrument)\n\n \"\"\"\n # Get resolution\n resolution = encoding[\"resolution\"]\n\n # Decode codes into a note sequence\n notes = decode_notes(codes, encoding, vocabulary)\n\n # Reconstruct the music object\n music = reconstruct(notes, resolution)\n\n return music\n\n\ndef dump(data, vocabulary):\n \"\"\"Decode the codes and dump as a string.\"\"\"\n # Iterate over the rows\n lines = []\n for code in data:\n event = vocabulary[code]\n if (\n event in (\"start-of-song\", \"start-of-track\", \"end-of-track\", \"start-of-bar\", \"end-of-bar\")\n or event.startswith(\"instrument\")\n or event.startswith(\"time-shift\")\n or event.startswith(\"note-on\")\n or event.startswith(\"note-off\")\n ):\n lines.append(event)\n elif event == \"end-of-song\":\n lines.append(event)\n break\n else:\n raise ValueError(f\"Unknown event type for: {event}\")\n\n return \"\\n\".join(lines)\n\n\ndef save_txt(filename, data, vocabulary):\n \"\"\"Dump the codes into a TXT file.\"\"\"\n with open(filename, \"w\") as f:\n f.write(dump(data, vocabulary))\n\n\ndef save_csv_notes(filename, data):\n \"\"\"Save the representation as a CSV file.\"\"\"\n assert data.shape[1] == 5\n np.savetxt(\n filename,\n data,\n fmt=\"%d\",\n delimiter=\",\",\n header=\"beat,position,pitch,duration,program\",\n comments=\"\",\n )\n\n\ndef save_csv_codes(filename, data):\n \"\"\"Save the representation as a CSV file.\"\"\"\n assert data.ndim == 1\n np.savetxt(\n filename,\n data,\n fmt=\"%d\",\n delimiter=\",\",\n header=\"code\",\n comments=\"\",\n )\n\n\ndef main():\n \"\"\"Main function.\"\"\"\n # Get the encoding\n encoding = get_encoding()\n\n # Save the encoding\n filename = pathlib.Path(__file__).parent / \"encoding_mmm.json\"\n utils.save_json(filename, encoding)\n\n # Load encoding\n encoding = load_encoding(filename)\n\n # Print the maps\n print(f\"{' Maps ':=^40}\")\n for key, value in encoding.items():\n if key in (\"program_instrument_map\", \"instrument_program_map\"):\n print(\"-\" * 40)\n print(f\"{key}:\")\n pprint.pprint(value, indent=2)\n\n # Print the variables\n print(f\"{' Variables ':=^40}\")\n print(f\"resolution: {encoding['resolution']}\")\n print(f\"max_bar: {encoding['max_bar']}\")\n print(f\"max_time_shift: {encoding['max_time_shift']}\")\n\n # Load the example\n music = muspy.load(pathlib.Path(__file__).parent / \"example_mmm.json\")\n\n # Get the indexer\n indexer = Indexer(is_training=True)\n\n # Encode the music\n track_list = encode(music, encoding, indexer)\n encoded = track_list_to_code(track_list, indexer)\n print(f\"Codes:\\n{encoded}\")\n\n # Get the learned vocabulary\n vocabulary = utils.inverse_dict(indexer.get_dict())\n\n print(\"-\" * 40)\n print(f\"Decoded:\\n{dump(encoded, vocabulary)}\")\n\n music = decode(encoded, encoding, vocabulary)\n print(f\"Decoded musics:\\n{music}\")\n\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"leonw774/mmt","sub_path":"baseline/representation_mmm.py","file_name":"representation_mmm.py","file_ext":"py","file_size_in_byte":17092,"program_lang":"python","lang":"en","doc_type":"code","dataset":"github-code","pt":"86"}
+{"seq_id":"73540560924","text":"# python\n\nfrom random import randint\nimport lx, lxifc, traceback\nimport json\nfrom TreeNode import TreeNode\nfrom TreeView import TreeView\n\nclass DropServer(lxifc.Drop):\n\n def drop_ActionList(self, source, dest, addDropAction):\n # Create a value array so we can access source.\n vaSource = lx.object.ValueArray()\n vaSource.set(source)\n\n # Create a value array for dest\n vaDest = lx.object.ValueArray()\n vaDest.set(dest)\n\n source_paths = [json.loads(vaSource.GetString(idx)) for idx in xrange(1, vaSource.Count())]\n dest_path = json.loads(vaDest.GetString(1))\n\n lumberjack = Lumberjack.final_class()\n source_nodes = [lumberjack.node_for_path(path) for path in source_paths]\n dest_node_parent = lumberjack.node_for_path(dest_path[:-1])\n\n if not dest_node_parent.canAcceptDrop(source_nodes):\n return\n\n # Check unique key\n if not self.check_key(vaSource) or not self.check_key(vaDest):\n return\n\n # Create AddDropAction interface to modify action list\n obj = lx.object.AddDropAction()\n obj.set(addDropAction)\n\n # Add move action\n obj.AddAction(1, \"Move item(s)\")\n\n def drop_Drop(self, source, dest, action):\n # Create a value array so we can access source.\n vaSource = lx.object.ValueArray()\n vaSource.set(source)\n\n # Create a value array for dest\n vaDest = lx.object.ValueArray()\n vaDest.set(dest)\n\n # Check unique key\n if not self.check_key(vaSource) or not self.check_key(vaDest):\n return\n\n source_paths = [json.loads(vaSource.GetString(idx)) for idx in xrange(1, vaSource.Count())]\n dest_path = json.loads(vaDest.GetString(1))\n\n lumberjack = Lumberjack.final_class()\n\n # Collect all selected children\n source_nodes = [lumberjack.node_for_path(path) for path in source_paths]\n\n # Move children\n for source in source_nodes:\n source.path = dest_path\n\n lumberjack.on_drag_drop(source_nodes)\n\n lumberjack.rebuild_view()\n\n def drop_Preview(self, source, dest, action, draw):\n lx.notimpl()\n\n @classmethod\n def check_key(cls, va):\n lumberjack = Lumberjack.final_class()\n if va.Count() > 1 and va.GetString(0) == lumberjack._drop_server_unique_key:\n return True\n return False\n\n def drop_Recognize(self, source):\n # Create a value array so we can access source.\n va = lx.object.ValueArray()\n va.set(source)\n\n # Check unique key\n if self.check_key(va):\n return True\n return True\n\nclass Lumberjack(object):\n \"\"\"Metaclass containing everything necessary to create\n and manage a working treeview in MODO.\n\n COMMON OPERATIONS\n -----------------\n\n TreeView object must be blessed in order to be available in MODO.\n Several parameters are required as a prerequisite of blessing, see\n bless() method for more. TreeView can only be blessed\n once per session.\n\n `Lumberjack().bless({})`\n\n The Lumberjack() root node is available with the `.root` property, but\n all of its methods are also available on the Lumberjack() object itself\n for convenience and readability.\n\n `Lumberjack().root # gets root node`\n `Lumberjack().add_child(**kwargs) # equiv of .root.add_child()`\n `Lumberjack().tail_commands = [TreeNode()] # add UI commands to bottom of children`\n\n Nodes have methods for various manipulations and properties for meta\n properties like row color. Note that input mapping regions can be added\n to rows or individual values (i.e. cells) as needed.\n\n `Lumberjack().children[n].selectable = False`\n `Lumberjack().children[n].selected = True`\n `Lumberjack().children[n].setParent(node)`\n `Lumberjack().children[n].clear_children(node)`\n `Lumberjack().children[n].delete()`\n `Lumberjack().children[n].delete_descendants()`\n `Lumberjack().children[n].row_color = row_color_string`\n `Lumberjack().children[n].input_region = region_name`\n `Lumberjack().children[n].children`\n `Lumberjack().children[n].descendants` # children, grandchildren, etc.\n `Lumberjack().children[n].ancestors` # parents, grandparents, etc.\n `Lumberjack().children[n].tier # returns number of ancestors`\n\n Nodes have a `values` property containing keys for each column in the\n TreeView. The value property has set/get built-in, but also contains\n properties for metadata like color, font_weight, font_style, etc.\n An optional display_value overrides the value parameter for display\n in the TreeView UI, but the `value` is always used internally.\n\n `Lumberjack().children[n].columns[col_name] = value`\n `Lumberjack().children[n].columns[col_name].value = value # equiv of above`\n `Lumberjack().children[n].columns[col_name].display_value = display_value`\n `Lumberjack().children[n].columns[col_name].input_region = region_name`\n `Lumberjack().children[n].columns[col_name].color.set_with_hex(\"#ffffff\")`\n `Lumberjack().children[n].columns[col_name].font.set_bold()`\n `Lumberjack().children[n].columns[col_name].font.set_italic()`\n\n Attributes are TreeNodes that appear under the `+` sign in the MODO UI.\n They have the same columns as other nodes, but are separate from the\n node's children.\n\n `Lumberjack().children[n].addAttribute(**kwargs)`\n `Lumberjack().children[n].attribute[attribute_name] = attribute_value`\n\n Various tree-wide properties and methods are available for the TreeView\n from the Lumberjack object itself.\n\n `Lumberjack().selected # list of selected nodes`\n `Lumberjack().primary # most recently selected node (usually)`\n `Lumberjack().all_nodes # all nodes in tree`\n `Lumberjack().find(column_name, search_term) # list of matches`\n 'Lumberjack().clear_selection()'\n\n Rebuild and Refresh methods are built into the various manipulation\n methods in Lumberjack, so there is no need to manually Refresh or Rebuild\n the treeview.\"\"\"\n\n # A given MODO instance may create multiple TreeView class instances for display\n # in the UI. As such, we use class variables within the TreeView to keep those\n # various views in sync.\n\n # This means, however, that if we use the Lumberjack wrapper to bless multiple\n # different TreeViews, they will conflict with one another unless we create\n # a subclass of TreeView that is unique to the Lumberjack() object in question.\n\n # Life. It's complicated.\n class _TreeViewSubclass(TreeView):\n pass\n\n class _DropServer(DropServer):\n pass\n\n class _RootNode(TreeNode):\n def __init__(self, **kwargs):\n super(self.__class__, self).__init__(**kwargs)\n\n def canAcceptDrop(self, source_nodes):\n return True\n\n\n _root = None\n _tree_view = None\n _blessed = False\n _internal_name = \"\"\n _ident = \"\"\n _nice_name = \"\"\n _viewport_type = \"\"\n _primary = None\n _on_bless = None\n final_class = None\n _drop_server_unique_key = None\n _dropserver_username = None\n _dropsource_command = None\n\n def __init__(self, **kwargs):\n \"\"\"A lumberjack class is a self-contained model-view-controller system.\n\n It maintains:\n - a `TreeNode()` object\n - a `TreeView()` object\n\n The TreeNode object is the data model, the TreeView is the view model,\n and the lumberjack object acts as controller.\"\"\"\n if 'on_bless' in kwargs:\n self.__class__._on_bless = kwargs['on_bless']\n\n # In case you need to extend the TreeNode class, you can inherit TreeNode in\n # your own class and then tell your Lumberjack Object to use it by overwriting this method\n def create_child_node(self, **kwargs):\n return TreeNode(**kwargs)\n\n def on_drag_drop(self, source_nodes):\n pass\n\n @classmethod\n def bless(cls, viewport_type, nice_name, internal_name, ident, column_definitions, input_regions, notifiers):\n \"\"\"Blesses the TreeView into existence in the MODO GUI.\n\n Requires seven arguments.\n\n :param viewport_type: category in the MODO UI popup\n vpapplication, vp3DEdit, vptoolbars, vpproperties, vpdataLists,\n vpinfo, vpeditors, vputility, or vpembedded\n\n :param nice_name: display name for the treeview in window title bars, etc\n should ideally be a message table lookup '@table@message@'\n\n :param internal_name: name of the treeview server (also used in config files)\n\n :param ident: arbitrary unique four-letter all-caps identifier (ID4)\n\n :param column_definitions:\n A dictionary containing, at minimum, a key called 'list' containing a list\n of dictionaries corresponding to each column in the view. The 'name' strings\n for each column must correspond with the value entries for each node.\n\n Columns are semi-static in the Python API: they can be changed, but those\n changes only update when a new treeview is initiated. Don't expect to change\n columns on the fly.\n\n Example:\n\n ```\n column_definitions = {\n 'primary_position': 1,\n 'list': [\n {\n 'name':'name',\n # negative integers are summed and then divided for relative widths.\n # in this example, -1 + -3 == -4, so -1/-4 is 25%.\n 'width':-1\n }, {\n 'name':'enable',\n # positive integers are pixel values (i.e. 20px)\n 'width':20\n }, {\n 'name':'value',\n 'width':-3\n }\n ]\n }\n ```\n\n Somewhat confusingly, the \"primary\" column (i.e. the one with the carrot twirldown\n for revealing child nodes) is not necessarily the left-most column. The items\n list is a good example of this.\n\n The TreeView API wants us to provide the \"primary\" column as the first item\n in the list, but then _move_ it to a different slot using the `treeview_PrimaryColumnPosition()`\n method. Confusing. As. Hell. And apparently it works differently internally.\n Grumble grumble.\n\n So we hack it. In the above example, we might want to move the 'name' column\n to the right of the 'enable' column using the 'primary_position' key, which sets the\n value returned by `treeview_PrimaryColumnPosition()`.\n\n :param input_regions: list of regions for input remapping. These can be implemented from\n within the data object itself as described in TreeData(), and used\n in InputRemapping config files, like this:\n\n \n render \n \n\n NOTE: slot zero [0] in the list is reserved for the .anywhere region.\n Don't use it.\n ```\n [\n '(anywhere)', # 0 reserved for .anywhere\n 'regionNameOne', # 1\n 'regionNameTwo' # 2\n ]\n ```\n\n :param notifiers: Returns a list of notifier tuples for auto-updating the tree. Optional.\n ```\n [\n (\"select.event\", \"polygon +ldt\"),\n (\"select.event\", \"item +ldt\")\n ]\n ```\n \"\"\"\n\n Lumberjack.final_class = cls\n\n # Can only be blessed once per session.\n if Lumberjack._blessed:\n raise Exception('%s class has already been blessed.' % cls.__name__)\n\n # The `TreeNode()` object is the root of the tree, and all other nodes\n # will be children of this node. The root node is NOT visible in the GUI.\n Lumberjack._root = Lumberjack._RootNode(\n column_definitions = column_definitions.get('list', []),\n controller = cls()\n )\n \n cls._drop_server_unique_key = internal_name + str(randint(100000, 999999))\n cls._dropserver_username = internal_name + \"_dropserver\"\n cls._dropsource_command = internal_name + \"_dropCmd\"\n\n # Our internal handle for the view itself.\n Lumberjack._tree_view = Lumberjack._TreeViewSubclass(\n root = Lumberjack._root,\n primary_column_position = column_definitions.get('primary_position', 0),\n input_regions = input_regions,\n controller = cls()\n )\n\n # We store these as read-only properties of the class, just in case\n # we ever need them.\n cls._internal_name = internal_name\n cls._ident = ident\n cls._nice_name = nice_name\n cls._viewport_type = viewport_type\n\n # NOTE: MODO has three different strings for SERVERNAME, sSRV_USERNAME,\n # and name to be used in config files. In practice, these should really\n # be the same thing. So lumberjack expects only a single \"INTERNAL_NAME\"\n # string for use in each of these fields.\n\n config_name = internal_name\n server_username = internal_name\n server_name = internal_name\n\n sTREEVIEW_TYPE = \" \".join((\n viewport_type,\n ident,\n config_name,\n nice_name\n ))\n\n sINMAP = \"name[{}] regions[{}]\".format(\n server_username, \" \".join(\n ['{}@{}'.format(n, i) for n, i in enumerate(input_regions) if n != 0]\n )\n )\n\n tree_view_tags = {\n lx.symbol.sSRV_USERNAME: server_username,\n lx.symbol.sTREEVIEW_TYPE: sTREEVIEW_TYPE,\n lx.symbol.sINMAP_DEFINE: sINMAP\n }\n\n drop_server_tags = {\n lx.symbol.sDROP_SOURCETYPE: cls._dropsource_command,\n lx.symbol.sDROP_ACTIONNAMES : \"1@moveAction\"\n }\n\n try:\n # Remember: we've created a Lumberjack-specific subclass of our `TreeView()` class for\n # the blessing, just in case more than one Lumberjack subclass exists.\n lx.bless(Lumberjack._TreeViewSubclass, server_name, tree_view_tags)\n\n # Make sure it doesn't happen again.\n Lumberjack._blessed = True\n\n lx.bless(Lumberjack._DropServer, cls._dropserver_username, drop_server_tags)\n\n except:\n traceback.print_exc()\n raise Exception('Unable to bless %s.' % cls.__name__)\n\n if cls._on_bless is not None:\n cls._on_bless(cls())\n\n @property\n def root(self):\n \"\"\"Returns the class `TreeNode()` object.\"\"\"\n if Lumberjack._root:\n return Lumberjack._root\n else:\n raise Exception('%s: Root cannot be accessed before `bless()`.' % self.__class__.__name__)\n\n @property\n def treeview(self):\n \"\"\"Returns the class `TreeView()` object.\"\"\"\n if Lumberjack._tree_view:\n return Lumberjack._tree_view\n else:\n raise Exception('%s: Root cannot be accessed before `bless()`.' % self.__class__.__name__)\n\n @property\n def selected_descendants(self):\n \"\"\"Returns the selected `TreeNode()` objects in the tree.\"\"\"\n return self.root.selected_descendants\n\n @property\n def selected_children(self):\n \"\"\"Returns the selected `TreeNode()` objects at the root of the tree.\"\"\"\n return self.root.selected_children\n\n def path_event(self):\n \"\"\"Fired by `TreeNode` objects whenever the node's `path` property is changed.\n Implement in Lumberjack subclass to fire custom notifiers, etc.\"\"\"\n pass\n\n def select_event(self):\n \"\"\"Fired by `TreeNode` objects whenever the node's `selected` property is changed.\n Implement in Lumberjack subclass to fire custom notifiers, etc.\"\"\"\n pass\n\n def clear_selection(self):\n \"\"\"Returns the selected `TreeNode()` objects in the tree.\"\"\"\n return self.root.deselect_descendants()\n\n def primary():\n doc = \"\"\"The primary node is typically the most recently selected.\"\"\"\n def fget(self):\n return self._primary\n def fset(self, value):\n self.__class__._primary = value\n return locals()\n\n primary = property(**primary())\n\n def column_definitions():\n doc = \"\"\"List of columns and their widths for the treeview in the\n format `('name', width)`, where width can be a positive integer in pixels\n or a negative integer representing a width relative to the total of all\n netagive values. Set during bless. Cannot change during a session.\"\"\"\n def fget(self):\n return self._root.column_definitions\n return locals()\n\n column_definitions = property(**column_definitions())\n\n def children():\n doc = \"\"\"A list of `TreeNode()` objects that are children of the current\n node. Note that children appear under the triangular twirl in the listview\n GUI, while attributes appear under the + sign.\"\"\"\n def fget(self):\n return self.root.children\n def fset(self, value):\n self.root.children = value\n return locals()\n\n children = property(**children())\n\n def all_nodes():\n doc = \"\"\"Returns a list of all all_nodes in the tree.\"\"\"\n def fget(self):\n all_nodes = []\n for child in self.root.children:\n all_nodes.append(child)\n all_nodes.extend(child.descendants)\n return all_nodes\n return locals()\n\n all_nodes = property(**all_nodes())\n\n def tail_commands():\n doc = \"\"\"List of `TreeNode()` objects appended to the bottom of the node's list\n of children, e.g. (new group), (new form), and (new command) in Form Editor.\n Command must be mapped using normal input remapping to the node's input region.\"\"\"\n def fget(self):\n return self.root.tail_commands\n def fset(self, value):\n self.root.tail_commands = valuegg\n return locals()\n\n tail_commands = property(**tail_commands())\n\n def add_child(self, **kwargs):\n \"\"\"Adds a child `TreeNode()` to the current node and returns it.\"\"\"\n if 'path' in kwargs:\n kwargs['parent'] = self.node_for_path(kwargs['path'][:-1])\n kwargs['index'] = kwargs['path'][-1]\n\n if not 'parent' in kwargs:\n kwargs['parent'] = self.root\n newNode = self.create_child_node(**kwargs)\n if 'index' not in kwargs:\n kwargs['parent'].children.append(newNode)\n else:\n kwargs['parent'].children.insert(kwargs['index'], newNode)\n return newNode\n\n def clear(self):\n \"\"\"Deletes all nodes from the tree.\"\"\"\n self.primary = None\n self.root.delete_descendants()\n\n def find(self, column_name, search_term, regex=False):\n \"\"\"Returns a list of `TreeNode()` objects with values matching search criteria.\n\n Unless regex is enabled, the search_term requires an exact match.\n\n :param column_name: (str) name of the column to search\n :param search_term: (str, bool, int, or float) value to search for\n :param regex: (bool) use regular expression\"\"\"\n\n return self.root.find_in_descendants(column_name, search_term, regex)\n\n def rebuild_view(self):\n \"\"\"Rebuilds the `TreeView()` object from scratch. Must run every time any\n structural change occurs in the node tree. Note: if cell values have changed\n but the overal structure of the node tree has not changed, use `refresh()`\n for performance.\"\"\"\n\n # NOTE: We must _both_ notify attributes _and_ shape. (Facepalm.)\n self.treeview.notify_NewAttributes()\n self.treeview.notify_NewShape()\n\n def refresh_view(self):\n \"\"\"Refreshes `TreeView()` cell values, but not structure. Must run every\n time a cell value changes in the node tree. Note: structural changes\n (e.g. adding/removing nodes, reordering, reparenting) require the\n `rebuild()`` method.\"\"\"\n\n self.treeview.notify_NewAttributes()\n\n class BadPath(Exception):\n pass\n\n @staticmethod\n def depth_first_search_recursive(node):\n for child in node.children:\n for res in Lumberjack.depth_first_search_recursive(child):\n yield res\n\n yield node\n\n def depth_first_search(self):\n for node in Lumberjack.depth_first_search_recursive(self.root):\n yield node\n\n @staticmethod\n def node_for_path_recursive(node, path):\n # if leaf node\n if len(node.children) == 0 and len(path) != 0:\n raise Lumberjack.BadPath()\n\n if len(path) == 0:\n return node\n else:\n return Lumberjack.node_for_path_recursive(node.children[path[0]], path[1:])\n\n\n def node_for_path(self, path):\n try:\n return Lumberjack.node_for_path_recursive(self.root, path)\n except Lumberjack.BadPath:\n raise Exception(\"Invalid path %s\" % str(path))\n","repo_name":"adamohern/lumberjack","sub_path":"BourbonTree/bourbon/lumberjack/Lumberjack.py","file_name":"Lumberjack.py","file_ext":"py","file_size_in_byte":22538,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"6144933390","text":"#!/usr/local/bin/python3\nimport numpy as np\n\nnum_bodies = 2\nduration = 365 * 24 * 60 * 60\ntimestep = 1\nsgp = np.array([1.327124400189e20, 3.9860044188e14])\ndynamics = np.zeros((num_bodies, 3, 3)) # position, velocity, acceleration\nposition = np.array([[-4.4910405450108775e5, 0, 0], [1.4952741801817593e11, 0, 0]])\nvelocity = np.array([[-4.4569063372411534e-10, -8.947881775228357e-2, 0], [1.4839093307604534e-4, 2.9791618338162836e4, 0]])\n# Update Acceleration\n# Sum of gravitational force between all bodies\n# Update Velocity\n# Velocity + timestep * acceleration\n# Update Position\n# Position + timestep * velocity\n# distances[i,j,:] is the vector from j to i\nt = 0\nwhile t < duration:\n distances = np.reshape(position, (num_bodies, 1, 3)) - np.reshape(position, (1, num_bodies, 3)) \n magnitudes = np.sum(distances * distances, axis=2) + np.eye(num_bodies)\n accelerations = (sgp[:,None] / (magnitudes ** (3/2)) * (1 - np.eye(num_bodies)))[:,:,None] * distances\n accelerations = np.sum(accelerations, axis=0)\n\n velocity += accelerations * timestep\n position += velocity * timestep\n # print(np.linalg.norm(position[1]), np.arctan2(position[1,1], position[1,0]))\n if (t + timestep) % (24 * 60 * 60) < t % (24 * 60 * 60):\n print(t)\n t += timestep\nprint(position)\nprint(velocity)\n# acc_i += sgp_j*normalized_distance_vector\n#dynamics[:,1,:] = timestep * dynamics[:,2,:]\n#dynamics[:,0,:] = timestep * dynamics[:,1,:]","repo_name":"tobybell/mercura","sub_path":"python/simulator.py","file_name":"simulator.py","file_ext":"py","file_size_in_byte":1451,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"38737000285","text":"class Reset:\n @classmethod\n def add_parser(cls, subparser):\n parser = subparser.add_parser(\n \"reset\",\n description=\"Resets working state (by default, existing input files are kept)\",\n )\n parser.add_argument(\n \"--hard\",\n action=\"store_true\",\n help=\"delete all files, including input files\",\n )\n parser.set_defaults(function=cls.run)\n\n @classmethod\n def run(cls, doc, hard=False, **kwargs):\n from datetime import date\n import glob\n import os\n from docman import Document\n\n doc = Document.load({})\n if not hard:\n doc.input_files = sorted(glob.glob(os.path.join(doc.wd, \"*.jpg\")))\n doc.save()\n doc.cleanup()\n return 0\n","repo_name":"jarvick257/docman","sub_path":"client/docman/cli/reset.py","file_name":"reset.py","file_ext":"py","file_size_in_byte":790,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"16110627502","text":"from dateutil.relativedelta import relativedelta\n\nfrom odoo import fields\n\nfrom odoo.addons.rental_base.tests.stock_common import RentalStockCommon\n\n\nclass TestRentalProductPack(RentalStockCommon):\n def setUp(self):\n super().setUp()\n\n # Product Created A, B, C\n ProductObj = self.env[\"product.product\"]\n self.productA = ProductObj.create({\"name\": \"Product A\", \"type\": \"product\"})\n self.productB = ProductObj.create({\"name\": \"Product B\", \"type\": \"product\"})\n self.productC = ProductObj.create({\"name\": \"Product C\", \"type\": \"product\"})\n self.productA.write(\n {\n \"pack_ok\": True,\n \"pack_type\": \"non_detailed\",\n \"pack_line_ids\": [\n (0, 0, {\"product_id\": self.productB.id, \"quantity\": 1}),\n (0, 0, {\"product_id\": self.productC.id, \"quantity\": 2}),\n ],\n }\n )\n # Rental Service (Day) of Product A\n self.rental_service_day = self._create_rental_service_day(self.productA)\n\n self.date_start = fields.Date.from_string(fields.Date.today())\n self.date_end = self.date_start + relativedelta(days=1)\n\n self.rental_order = self.env[\"sale.order\"].create(\n {\n \"partner_id\": self.partnerA.id,\n \"order_line\": [\n (\n 0,\n 0,\n {\n \"product_id\": self.rental_service_day.id,\n \"name\": self.rental_service_day.name,\n \"rental_type\": \"new_rental\",\n \"rental_qty\": 1.0,\n \"product_uom\": self.rental_service_day.uom_id.id,\n \"start_date\": self.date_start,\n \"end_date\": self.date_end,\n \"product_uom_qty\": 2.0,\n },\n )\n ],\n }\n )\n\n def test_00_rental_product_pack(self):\n self.rental_order.action_confirm()\n self.assertEqual(len(self.rental_order.picking_ids), 2)\n for picking in self.rental_order.picking_ids:\n if picking.picking_type_id == self.picking_type_out:\n self.picking_out = picking\n self.assertEqual(len(picking.move_lines), 3)\n if picking.picking_type_id == self.picking_type_in:\n self.picking_in = picking\n self.assertEqual(len(picking.move_lines), 3)\n for move in self.picking_out.move_lines:\n if move.product_id == self.productA:\n self.assertEqual(move.product_qty, 1)\n self.moveDestId_A = move.move_dest_ids[0]\n elif move.product_id == self.productB:\n self.assertEqual(move.product_qty, 1)\n self.moveDestId_B = move.move_dest_ids[0]\n elif move.product_id == self.productC:\n self.assertEqual(move.product_qty, 2)\n self.moveDestId_C = move.move_dest_ids[0]\n for move in self.picking_in.move_lines:\n if move.product_id == self.productA:\n self.assertEqual(move.product_qty, 1)\n self.assertEqual(self.moveDestId_A, move)\n elif move.product_id == self.productB:\n self.assertEqual(move.product_qty, 1)\n self.assertEqual(self.moveDestId_B, move)\n elif move.product_id == self.productC:\n self.assertEqual(move.product_qty, 2)\n self.assertEqual(self.moveDestId_C, move)\n","repo_name":"OCA/vertical-rental","sub_path":"rental_product_pack/tests/test_rental_product_pack.py","file_name":"test_rental_product_pack.py","file_ext":"py","file_size_in_byte":3637,"program_lang":"python","lang":"en","doc_type":"code","stars":19,"dataset":"github-code","pt":"86"}
+{"seq_id":"25340950985","text":"import torch\n\nfrom mmdet.core import multi_apply, anchor_inside_flags\nfrom mmdet.core.bbox.iou_calculators import bbox_overlaps\n\nfrom mmdet.models import HEADS\nfrom mmdet.models.dense_heads import RPNHead\n\n\n@HEADS.register_module(force=True)\nclass RPNNHead(RPNHead):\n \"\"\"RPN Noise v2 head.\n\n Args:\n in_channels (int): Number of channels in the input feature map.\n \"\"\" # noqa: W605\n\n def __init__(self, in_channels, collect_cfg=None, **kwargs):\n super(RPNNHead, self).__init__(in_channels, **kwargs)\n self.collect_cfg = collect_cfg\n\n def forward_train(self,\n x,\n img_metas,\n gt_bboxes,\n gt_labels=None,\n gt_bboxes_ignore=None,\n proposal_cfg=None,\n **kwargs):\n \"\"\"\n Args:\n x (list[Tensor]): Features from FPN.\n img_metas (list[dict]): Meta information of each image, e.g.,\n image size, scaling factor, etc.\n gt_bboxes (Tensor): Ground truth bboxes of the image,\n shape (num_gts, 4).\n gt_labels (Tensor): Ground truth labels of each box,\n shape (num_gts,).\n gt_bboxes_ignore (Tensor): Ground truth bboxes to be\n ignored, shape (num_ignored_gts, 4).\n proposal_cfg (mmcv.Config): Test / postprocessing configuration,\n if None, test_cfg would be used\n\n Returns:\n tuple:\n losses: (dict[str, Tensor]): A dictionary of loss components.\n proposal_list (list[Tensor]): Proposals of each image.\n \"\"\"\n outs = self(x)\n if gt_labels is None:\n loss_inputs = outs + (gt_bboxes, img_metas)\n else:\n loss_inputs = outs + (gt_bboxes, gt_labels, img_metas)\n losses = self.loss(*loss_inputs, gt_bboxes_ignore=gt_bboxes_ignore, **kwargs)\n if proposal_cfg is None:\n return losses\n else:\n proposal_list = self.get_bboxes(*outs, img_metas, cfg=proposal_cfg, **kwargs)\n return losses, proposal_list\n\n def forward_collect_bboxes(self,\n x,\n img_metas,\n gt_bboxes,\n gt_labels=None,\n gt_bboxes_ignore=None,\n collect_cfg=None,\n **kwargs):\n \"\"\"\n forward and collect bboxes\n Args:\n x (list[Tensor]): Features from FPN.\n img_metas (list[dict]): Meta information of each image, e.g.,\n image size, scaling factor, etc.\n gt_bboxes (Tensor): Ground truth bboxes of the image,\n shape (num_gts, 4).\n gt_labels (Tensor): Ground truth labels of each box,\n shape (num_gts,).\n gt_bboxes_ignore (Tensor): Ground truth bboxes to be\n ignored, shape (num_ignored_gts, 4).\n proposal_cfg (mmcv.Config): Test / postprocessing configuration,\n if None, test_cfg would be used\n\n Returns:\n tuple:\n losses: (dict[str, Tensor]): A dictionary of loss components.\n proposal_list (list[Tensor]): Proposals of each image.\n \"\"\"\n cls_scores, bbox_preds = self(x)\n\n proposal_list = self.collect_bboxes(\n cls_scores,\n bbox_preds,\n img_metas,\n gt_bboxes,\n gt_labels,\n gt_bboxes_ignore=gt_bboxes_ignore,\n cfg=collect_cfg,\n **kwargs\n )\n\n return proposal_list\n\n def collect_bboxes(self,\n cls_scores,\n bbox_preds,\n img_metas,\n gt_bboxes_list,\n gt_labels_list=None,\n gt_bboxes_ignore_list=None,\n cfg=None,\n **kwargs):\n assert len(cls_scores) == len(bbox_preds)\n\n featmap_sizes = [featmap.size()[-2:] for featmap in cls_scores]\n assert len(featmap_sizes) == self.anchor_generator.num_levels\n\n device = cls_scores[0].device\n\n anchor_list, valid_flag_list = self.get_anchors(\n featmap_sizes, img_metas, device=device)\n \n num_imgs = len(img_metas)\n num_levels = len(cls_scores)\n assert len(anchor_list) == len(valid_flag_list) == num_imgs\n\n if gt_bboxes_ignore_list is None:\n gt_bboxes_ignore_list = [None for _ in range(num_imgs)]\n if gt_labels_list is None:\n gt_labels_list = [None for _ in range(num_imgs)]\n\n bbox_preds_list = []\n scores_list = []\n for img_id in range(num_imgs):\n assert len(anchor_list[img_id]) == len(valid_flag_list[img_id])\n anchors_per_img = torch.cat(anchor_list[img_id])\n anchors_valid_per_img = torch.cat(valid_flag_list[img_id])\n\n bbox_preds_per_img = []\n scores_per_img = []\n for i in range(num_levels):\n bbox_preds_per_level = bbox_preds[i][img_id].permute(1, 2, 0).reshape(-1, 4)\n cls_scores_per_level = cls_scores[i][img_id].permute(1, 2, 0).reshape(-1, self.cls_out_channels)\n if self.use_sigmoid_cls:\n cls_scores_per_level = cls_scores_per_level.sigmoid()\n else:\n cls_scores_per_level = cls_scores_per_level.softmax(-1)[..., 0:1]\n \n bbox_preds_per_img.append(bbox_preds_per_level)\n scores_per_img.append(cls_scores_per_level)\n\n flatten_bbox_preds_per_img = torch.cat(bbox_preds_per_img)\n decoded_bbox_preds = self.bbox_coder.decode(anchors_per_img, flatten_bbox_preds_per_img)\n flatten_scores_per_img = torch.cat(scores_per_img)\n\n inside_flags = anchor_inside_flags(anchors_per_img, anchors_valid_per_img,\n img_metas[img_id]['img_shape'][:2],\n self.train_cfg.allowed_border)\n decoded_bbox_preds = decoded_bbox_preds[inside_flags, :]\n flatten_scores_per_img = flatten_scores_per_img[inside_flags, :]\n bbox_preds_list.append(decoded_bbox_preds)\n scores_list.append(flatten_scores_per_img)\n \n cfg = cfg if cfg else self.collect_cfg\n collected_bboxes, _ = multi_apply(\n self._collect_bboxes_single,\n bbox_preds_list,\n scores_list,\n gt_bboxes_list,\n gt_labels_list,\n cfg=cfg,\n )\n\n return collected_bboxes\n\n @torch.no_grad()\n def _collect_bboxes_single(self,\n bbox_preds,\n cls_scores,\n gt_bboxes,\n gt_labels,\n cfg):\n assert bbox_preds.size(0) == cls_scores.size(0)\n ious = bbox_overlaps(bbox_preds, gt_bboxes)\n scores = cls_scores\n iou_thr = cfg.get('iou_thr', 0.5)\n weights = (ious > iou_thr) * scores\n num_gts = gt_bboxes.size(0)\n num_per_object = cfg.get('num_per_object', 100)\n topk_weights, topk_inds = weights.topk(num_per_object, dim=0)\n expand_bboxes = bbox_preds.unsqueeze(1).expand(-1, num_gts, -1)\n bboxes_candidate = torch.gather(expand_bboxes, dim=0, index=topk_inds.unsqueeze(-1).expand(-1, -1, 4))\n \n flatten_bboxes_candidate = bboxes_candidate.reshape(-1, 4)\n max_per_img = cfg.get('max_per_img', 1000)\n if flatten_bboxes_candidate.size(0) > max_per_img:\n flatten_weights = topk_weights.reshape(-1, 1)\n _, inds = flatten_weights.topk(max_per_img, dim=0)\n flatten_bboxes_candidate = flatten_bboxes_candidate[inds.squeeze(-1), :]\n return flatten_bboxes_candidate, flatten_bboxes_candidate.size(0)\n\n\n","repo_name":"wangsr126/NDet","sub_path":"mmdet_noise/models/dense_heads/rpn_noise_head.py","file_name":"rpn_noise_head.py","file_ext":"py","file_size_in_byte":8096,"program_lang":"python","lang":"en","doc_type":"code","stars":5,"dataset":"github-code","pt":"86"}
+{"seq_id":"42751483717","text":"\nimport math\ndef power_two(n):\n return int(math.log(n, 2))\ndef gre_power_two(n):\n\tp = 1\n\tif (n and not(n & (n - 1))):\n\t\treturn n\n\twhile (p < n) :\n\t\tp <<= 1\n\treturn p\n\n\nif __name__ == '__main__':\n\tt=int(input())\n\tfor _ in range(t):\n\t\tn=int(input())\n\t\ta=power_two(n)\n\t\tb=2**a\n\t\tif(b==n):\n\t\t\ta=a-1\n\t\t\tb=2**a\n\t\t#print(b)\n\t\tk=n-b\n\t\ta1=power_two(k)\n\t\tif(a1==a):\n\t\t\ta1=a1-1\n\t\tb1=2**a1\n\t\tif(b1==k):\n\t\t\tans=0\n\t\telse:\n\t\t\tans=k-b1\n\t\ta2=gre_power_two(k)\n\t\tif (a2==a):\n\t\t\ta2=a2+1\n\t\tb2=2**a2\n\t\taa=b2-k\n\t\th=gre_power_two(n)\n\t\tbb=2**h\n\t\tbb=bb+1-n\n\n\t\tif(ans>aa):\n\t\t\tans=aa\n\t\tif(ans>bb):\n\t\t\tans=bb\n\n\t\tprint(ans)\n\n","repo_name":"abhishek371/Data-Structure-And-Algorithms","sub_path":"CodeChef/SHKNUM.py","file_name":"SHKNUM.py","file_ext":"py","file_size_in_byte":598,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"74302073565","text":"import sys\nfrom PyQt5.QtWidgets import QApplication, QMainWindow, QListWidget, QListWidgetItem, QPushButton, QWidget\nfrom PyQt5.QtWidgets import QLabel, QInputDialog, QSpinBox, QMessageBox, QTextEdit\nimport PyQt5.QtWidgets as qtw\nfrom PyQt5.QtCore import Qt\nimport clingo, random, math, loadTracks, copy\nimport soundfile as sf\nfrom pysndfx import AudioEffectsChain\nimport numpy as np\n\nclingo_args = [ \"--warn=none\",\n \"--sign-def=rnd\",\n \"--sign-fix\",\n \"--rand-freq=1\",\n \"--seed=%s\"%random.randint(0,32767),\n \"--restart-on-model\",\n \"--enum-mode=record\"]\n\n\nclass ListboxWidget(QListWidget):\n\n def __init__(self, parent=None):\n super().__init__(parent)\n self.setAcceptDrops(True)\n\n def dragEnterEvent(self, event):\n if event.mimeData().hasUrls:\n event.accept()\n else:\n event.ignore()\n\n def dragMoveEvent(self, event):\n if event.mimeData().hasUrls():\n event.setDropAction(Qt.CopyAction)\n event.accept()\n else:\n event.ignore()\n\n def dropEvent(self, event):\n if event.mimeData().hasUrls():\n event.setDropAction(Qt.CopyAction)\n event.accept()\n\n links = []\n\n for url in event.mimeData().urls():\n if url.isLocalFile():\n links.append(str(url.toLocalFile()))\n else:\n links.append(str(url.toString()))\n\n self.addItems(links)\n else:\n event.ignore()\n\n def setPos(self, posX, posY):\n self.setGeometry(posX, posY, 200, 50)\n\n\nclass Main(QMainWindow, QWidget):\n\n def __init__(self):\n super().__init__()\n self.resize(1200, 600)\n self.todosWidgets = []\n self.models = []\n self.validNames = [\"kick\", \"snare\", \"hihat\", \"tomOne\", \"tomTwo\", \"tomThree\", \"over\", \"bass\", \"guitOne\",\n \"guitTwo\", \"piano\", \"vox\", \"clap\", \"cymbal\", \"shaker\", \"acouguit\", \"synth\", \"strings\",\n \"arp\", \"drums\", \"lead\", \"subbass\", \"fx\", \"violin\"]\n self.tracks = [\"kick\", \"snare\", \"hihat\", \"tomOne\", \"tomTwo\", \"tomThree\", \"over\", \"bass\", \"piano\", \"vox\"]\n\n self.initXBox = 240\n self.initYBox = 15\n self.initXLabel = 330\n self.initYBoxLabel = 65\n self.sizeTextX = 70\n\n # LOAD AUDIOS #\n self.btnMix = QPushButton('Mix', self)\n self.btnMix.setGeometry(10, 10, 200, 50)\n self.btnMix.clicked.connect(lambda: self.loadPathAudios())\n\n # AÑADIR #\n self.btnAdd = QPushButton('Añadir instrumento', self)\n self.btnAdd.setGeometry(10, 70, 200, 50)\n self.btnAdd.clicked.connect(lambda: self.showModalWindow())\n\n # LIMPIAR #\n self.btnAdd = QPushButton('Limpiar', self)\n self.btnAdd.setGeometry(10, 130, 200, 50)\n self.btnAdd.clicked.connect(lambda: self.clear())\n\n self.numMixes = QLabel(self)\n self.numMixes.setText(\"Numero de mezclas\")\n self.numMixes.setGeometry(15, 200, 190, 30)\n\n self.sp = QSpinBox(self)\n self.sp.setGeometry(15, 230, 190, 30)\n self.sp.setValue(1)\n self.sp.show()\n\n self.label = QLabel(self)\n self.label.setText(\"Instrumentos validos:\")\n self.label.setGeometry(15, 260, 190, 30)\n self.label.show()\n\n self.inicioX = 15\n self.inicioY = 285\n\n for name in self.validNames:\n globals()['string%s' % name] = QLabel(self)\n globals()['string%s' % name].setText(name)\n globals()['string%s' % name].setGeometry(self.inicioX, self.inicioY, 190, 30)\n self.inicioY += 20\n\n if self.inicioY >= 575:\n self.inicioY = 285\n self.inicioX = 100\n\n for track in self.tracks:\n self.checkDimensions()\n globals()['string%s' % track] = ListboxWidget(self)\n globals()['string%s' % track].setPos(self.initXBox, self.initYBox)\n globals()['string%s' % track + 'label'] = qtw.QLabel(track, self)\n globals()['string%s' % track + 'label'].setGeometry(self.initXLabel, self.initYBoxLabel, self.sizeTextX, 30)\n self.todosWidgets.append(globals()['string%s' % track])\n self.initYBox += 80\n self.initYBoxLabel += 80\n\n # TEXT BUTTON #\n self.textEdit = QTextEdit(self)\n self.textEdit.setGeometry(930, 15, 250, 575)\n\n def clear(self):\n for track in self.tracks:\n globals()['string%s' % track].clear()\n\n def loadPathAudios(self):\n infoFinal = []\n cont = 0\n for item in self.todosWidgets:\n path = QListWidgetItem(item.item(0))\n if path.text():\n path = path.text()\n pista = self.tracks[cont]\n infoFinal.append([pista, path])\n\n cont += 1\n\n longitudMax = loadTracks.checkStems(infoFinal)\n self.loadedTracks = loadTracks.loadTrackswithPath(infoFinal, longitudMax)\n self.solveWithClingo()\n\n def solveWithClingo(self):\n self.textEdit.clear()\n self.printText(\"Starting...\")\n self.printText(\"-------------\")\n # **** CONFIGURAR Y CARGAR CLINGO ***** #\n control = clingo.Control(clingo_args)\n #print(self.sp.value())\n control.configuration.solve.models = self.sp.value()\n control.load(\"mixer.lp\")\n models = []\n\n # **** AÑADIR HECHOS A LP ***** #\n for instrumento in self.loadedTracks:\n fact = \"track(\" + instrumento[0] + \", on).\"\n control.add(\"base\", [], str(fact))\n\n # **** GROUNDING ***** #\n print(\"Grounding...\")\n self.printText(\"Grounding...\")\n control.ground([(\"base\", [])])\n print(\"------\")\n self.printText(\"-------------\")\n\n # **** SOLVE ***** #\n print(\"Solving...\")\n self.printText(\"Solving...\")\n with control.solve(yield_=True) as solve_handle:\n for model in solve_handle:\n models.append(model.symbols(shown=True))\n print(\"------\")\n self.printText(\"-------------\")\n\n cont = 0\n resultados = []\n for model in models:\n resp = []\n print(\"MIX \", cont + 1)\n self.printText(\"MIX \" + str(cont + 1))\n for atom in model:\n instrumento = str(atom.arguments[0])\n pan = int(str(atom.arguments[1]))\n vol = int(str(atom.arguments[2]))\n rev = int(str(atom.arguments[3]))\n\n resul = []\n resul.append(instrumento)\n resul.append(pan)\n resul.append(vol)\n resul.append(rev)\n\n resp.append(resul)\n\n print(\" - Aplicar\", pan, \"de paneo a\", instrumento, \"con un volumen de\", vol, \"y reverb de\", rev * 10)\n self.printText(\" - Aplicar \" + str(pan) + \" de paneo a \" + str(instrumento) + \" con un volumen de \" +\n str(vol) + \" y reverb de \" + str(rev * 10))\n\n resultados.append(resp)\n cont += 1\n self.printText(\"-------------\")\n\n # *** ORDENAR RESULTADOS Y AUDIOS **** #\n self.loadedTracks = sorted(self.loadedTracks)\n self.resultadosPre = sorted(resultados)\n resultados = []\n for result in self.resultadosPre:\n resultados.append(sorted(result))\n\n # *** MIXING *** #\n print(\"---------\")\n print(\"Mixing...\")\n self.printText(\"Rendering...\")\n for answer in range(self.sp.value()):\n # ******** CHECAR SI HAY O NO MÁS ANSWERS DE LAS REQUERIDAS ******** #\n if (answer + 1) <= len(resultados):\n tracksModified = copy.deepcopy(self.loadedTracks)\n trackFinal = 0\n cont = 0\n\n for track in resultados[answer]:\n\n # ****** CHECAR QUE PISTA SE VA A MODIFICAR ****** #\n numeroPista = 0\n for numPista in range(len(tracksModified)):\n\n nombre = track[0]\n\n if nombre == tracksModified[numPista][0]:\n numeroPista = numPista\n break\n\n # ********************* PANEO ****************** #\n factor = track[1] / 10\n left_factor = math.cos(3.141592 * (factor + 1) / 4)\n right_factor = math.sin(3.141592 * (factor + 1) / 4)\n\n # ******************** VOLUMEN ****************** #\n vol = track[2]\n vol = vol / 10\n\n # ********************* REVERB ****************** #\n rev = track[3] * 10\n reverb = AudioEffectsChain().reverb(reverberance=rev)\n\n withReverb = copy.deepcopy(tracksModified[numeroPista][1])\n left = []\n right = []\n\n for sample in withReverb:\n left.append(sample[0])\n right.append(sample[1])\n\n forEffect = []\n forEffect.append(left)\n forEffect.append(right)\n arr = np.array(forEffect)\n reverbAudio = reverb(arr)\n stereoSamples = []\n for sample in reverbAudio[0]:\n stereoSample = [sample, sample]\n stereoSamples.append(stereoSample)\n\n reverbSound = np.append([[0.0, 0.0]], stereoSamples, axis=0)\n reverbSound = np.delete(reverbSound, 0, 0)\n\n # ***************** OPERACIONES CON TRACKS **************** #\n tracksModified[numeroPista][1][:, 0] *= left_factor * vol\n tracksModified[numeroPista][1][:, 1] *= right_factor * vol\n reverbSound[:, 0] *= left_factor * vol * 0.5\n reverbSound[:, 1] *= right_factor * vol * 0.5\n # *********************** SUMAR TRACKS ******************** #\n #trackFinal += tracksModified[numeroPista][1]\n trackFinal += tracksModified[numeroPista][1] + reverbSound\n\n cont += 1\n\n # ************************** RENDER MIX **************************** #\n sf.write('mixes/mix_' + str(answer + 1) + '.wav', trackFinal, 44100, 'PCM_24')\n print(\"Mezcla\", answer + 1, \"creada\")\n self.printText(\"Mezcla \" + str(answer + 1) + \" creada\")\n else:\n print(\"Ya no hay más mezclas disponibles\")\n self.printText(\"Ya no hay más mezclas disponibles\")\n break\n\n # *** END *** #\n print(\"-------\")\n self.printText(\"-------------\")\n print(\"¡Ya puedes escuchar tus mezclas!\")\n self.printText(\"¡Ya puedes escuchar tus mezclas!\")\n\n def showModalWindow(self):\n text, ok = QInputDialog.getText(self, 'Añadir Instrumento', 'Escribe el nombre de tu instrumento:')\n if ok:\n if text in self.validNames:\n self.createNewBox(text)\n else:\n dialog = QMessageBox()\n dialog.setWindowTitle(\"Error\")\n dialog.setText(\"Nombre no valido\")\n dialog.setIcon(QMessageBox.Critical)\n dialog.exec_()\n\n def checkDimensions(self):\n\n if self.initYBox >= 575 and self.initXBox == 240:\n self.initYBox = 15\n self.initYBoxLabel = 65\n self.initXBox = 470\n self.initXLabel = 550\n\n if self.initYBox >= 575 and self.initXBox == 470:\n self.initYBox = 15\n self.initYBoxLabel = 65\n self.initXBox = 700\n self.initXLabel = 780\n\n if self.initYBox >= 575 and self.initXBox == 700:\n self.initYBox = 15\n self.initYBoxLabel = 65\n self.initXBox = 920\n self.initXLabel = 1020\n\n def createNewBox(self, inName):\n\n self.checkDimensions()\n\n globals()['string%s' % inName] = ListboxWidget(self)\n globals()['string%s' % inName].setPos(self.initXBox, self.initYBox)\n globals()['string%s' % inName].show()\n self.todosWidgets.append(globals()['string%s' % inName])\n\n globals()['string%s' % inName + 'label'] = qtw.QLabel(inName, self)\n globals()['string%s' % inName + 'label'].setGeometry(self.initXLabel, self.initYBoxLabel, self.sizeTextX, 30)\n globals()['string%s' % inName + 'label'].show()\n self.tracks.append(inName)\n\n self.initYBox += 80\n self.initYBoxLabel += 80\n\n print(inName, \"añadido\")\n\n def printText(self, inText):\n cursor = self.textEdit.textCursor()\n cursor.atEnd()\n cursor.insertText(inText + \"\\n\")\n\n\napp = QApplication(sys.argv)\ndemo = Main()\ndemo.show()\nsys.exit(app.exec_())","repo_name":"jsvaldezv/SmartMixer","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":13099,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"39511225270","text":"\"\"\"\n-------------------------------------------------\n File Name:db_utils02\n Author:Lee\n date: 2021/9/22-10:47\n-------------------------------------------------\n\"\"\"\n\nimport pymysql\nfrom configparser import ConfigParser\nfrom comms.constants import CONF_FILE\n\n\nclass DBUtils:\n count = -1\n\n # 封装连接对象和游标对象\n def __init__(self):\n try:\n cf = ConfigParser()\n cf.read(CONF_FILE, encoding='utf-8')\n host = cf.get('mysql', 'host')\n port = cf.getint('mysql', 'port')\n user = cf.get('mysql', 'user')\n passwd = cf.get('mysql', 'password')\n db = cf.get('mysql', 'db')\n\n self.conn = pymysql.connect(host=host, port=port, user=user, passwd=passwd, db=db)\n self.cursor = self.conn.cursor()\n except Exception as e:\n print('工具类连接出现异常,请检查DBUtils中的__init__方法')\n print(e)\n\n # 封装关闭游标和连接对象\n def close(self):\n self.cursor.close()\n self.conn.close()\n\n # 封装查询结果集有多少条数据:条目数\n # 如果execute()括号里只传一个参数,我们需要运行count = cursor.execute(sql)\n # 如果execute()传2个参数,我们需要运行count = cursor.execute(sql,占位符数据(元组))\n def find_count(self, sql, params=None):\n self.conn.commit()\n try:\n if params is None:\n self.count = self.cursor.execute(sql)\n return self.count\n elif params is not None:\n self.count = self.cursor.execute(sql, params)\n return self.count\n except Exception as e:\n print('查询数据库条目数失败:', e)\n\n # 封装增删改\n # 如果execute()括号里只传一个参数,我们需要运行count = cursor.execute(sql)\n # 如果execute()传2个参数,我们需要运行count = cursor.execute(sql,占位符数据(元组))\n def cud(self, sql, params=None):\n self.conn.commit()\n try:\n if params is None:\n self.count = self.cursor.execute(sql)\n if isinstance(params, tuple):\n self.count = self.cursor.execute(sql, params)\n if isinstance(params, list):\n self.count = self.cursor.executemany(sql, params)\n self.conn.commit()\n return self.count\n except Exception as e:\n print('增删改执行失败:', e)\n\n # 封装查询一条数据:execute(sql) execute(sql,params)\n def find_one(self, sql, params=None):\n self.conn.commit()\n try:\n if params is None:\n self.cursor.execute(sql) # 执行sql语句,并且把结果存在cursor里\n return self.cursor.fetchone() # 从结果集获取一条数据\n elif params is not None:\n self.cursor.execute(sql, params)\n return self.cursor.fetchone()\n except Exception as e:\n print('查询单条数据失败:', e)\n\n # 封装查询所有数据\n def find_all(self, sql, params=None):\n self.conn.commit()\n try:\n if params is None:\n self.cursor.execute(sql)\n return self.cursor.fetchall()\n elif params is not None:\n self.cursor.execute(sql, params)\n return self.cursor.fetchall()\n except Exception as e:\n print('查询所有数据失败:', e)\n\n\nif __name__ == '__main__':\n db = DBUtils()\n one = db.find_one('select * from tb_user ORDER BY rand() limit 1;')\n print(one[1], one[2])\n","repo_name":"1025magua/git_home","sub_path":"comms/db_utils.py","file_name":"db_utils.py","file_ext":"py","file_size_in_byte":3644,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"40406478902","text":"def get_count_of_entry_symbol(current_str, ch):\r\n entry_count = 0\r\n for item in current_str:\r\n if item == ch:\r\n entry_count += 1\r\n\r\n return entry_count\r\n\r\n\r\ndef reverse_str_word(current_str):\r\n word_array = current_str.split(\" \")\r\n return \" \".join(word for word in word_array[::-1])\r\n\r\n\r\nentryCount = get_count_of_entry_symbol(\"12311212111\", '2')\r\nprint(\"Кол-во вхождений\", \"Вхожденний не найденно\" if entryCount <= 0 else entryCount)\r\nprint(reverse_str_word(\"кашу ела Саша\"))\r\n","repo_name":"FedorovMisha/PUL_LAB_6","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":556,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"33563925901","text":"from django import forms\nfrom django.forms import ModelForm, Textarea\nfrom .models import Newservice,Accessories,NewShowroom\n\nclass NewServiceForm(forms.ModelForm):\n\n class Meta:\n model = Newservice\n fields = ('sunique','sname','sphone','semail','sdate','sprice','sacc','sdiscount','stax')\n PRICE_OPTIONS = (\n ('', 'Select '),\n ('10000', 'Petrol Variant'), \n ('15000', 'Diesel Variant'),\n )\n TAX_OPTIONS = (\n ('', 'Select '),\n ('0.05', '5 percent'), \n ('0.06', '6 percent'), \n ('0.07', '7 percent'), \n )\n DISCOUNT_OPTIONS = (\n ('', 'Select '),\n ('1', 'No Discount'),\n ('0.95', '5 Percent'), \n ('0.90', '10 Percent'),\n ('0.85', '15 Percent'),\n ('0.80', '20 Percent'),\n )\n \n labels = {\n 'sunique':'Bill Number:',\n 'sname':'Full Name',\n 'sphone':'Phone',\n 'semail':'Email',\n 'sdate':'Date',\n 'sprice':'Service Price',\n 'sacc':'Accesories',\n 'sdiscount':'Discount',\n 'stax':'Tax Rate'\n }\n \n widgets = {\n 'sdate': forms.DateInput(attrs={'class':'datepicker'}),\n 'sprice': forms.Select(choices=PRICE_OPTIONS,attrs={'class': 'form-control'}),\n 'stax': forms.Select(choices=TAX_OPTIONS,attrs={'class': 'form-control'}),\n 'sdiscount': forms.Select(choices=DISCOUNT_OPTIONS,attrs={'class': 'form-control'}),\n }\n\n def __init__(self, *args, **kwargs):\n super(NewServiceForm, self).__init__(*args, **kwargs)\n self.fields['sacc'] = forms.MultipleChoiceField(\n choices=[(c.price, c.name) for c in Accessories.objects.all()],\n widget=forms.CheckboxSelectMultiple,\n label=(\"Accessories\"),\n initial=[0],\n \n )\n \nclass AddShowroomForm(forms.ModelForm):\n\n class Meta:\n model = NewShowroom\n fields = ('smonth','syear','srent','sunits','smain','sshow')\n MONTH = (\n ('', 'Select '),\n ('January', 'January'), \n ('Febuary', 'Febuary'),\n ('March', 'March'), \n ('April', 'April'),\n ('May', 'May'), \n ('June', 'June'),\n ('July', 'July'), \n ('August', 'August'),\n ('September', 'September'), \n ('October', 'October'),\n ('November', 'November'), \n ('December', 'December'),\n )\n YEAR = (\n ('', 'Select '),\n ('2020', '2020'), \n ('2021', '2021'), \n ('2022', '2022'), \n ('2023', '2023'), \n ('2024', '2024'), \n )\n SHOWROOM = (\n ('', 'Select '),\n ('Jalandhar', 'Jalandhar'),\n ('Ludhiana', 'Ludhiana'), \n ('Phagwara', 'Phagwara'),\n )\n \n labels = {\n 'smonth':'Month:',\n 'syear':'Year',\n 'srent':'Monthly Rent',\n 'sunits':'Electricity Units',\n 'smain':'Maintenence Amount',\n 'sshow':'Showroom'\n \n }\n \n widgets = {\n 'smonth': forms.Select(choices=MONTH,attrs={'class': 'form-control'}),\n 'syear': forms.Select(choices=YEAR,attrs={'class': 'form-control'}),\n 'sshow': forms.Select(choices=SHOWROOM,attrs={'class': 'form-control'}),\n }\n","repo_name":"rohitladhar/car-showroom","sub_path":"sales/forms.py","file_name":"forms.py","file_ext":"py","file_size_in_byte":3718,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32934791335","text":"# Group members:\n# Andrew Dillon\n# Michael Lewson\n# Cole Ternes\n\n# References:\n# https://github.com/aimacode/aima-python/blob/master/search.ipynb\n\n# Node Class\nclass Node():\n def __init__(self, state, edgeWeight=0):\n self.state = state # Letter\n self.edgeWeight = edgeWeight # Cost from parent to self\n self.children = []\n\n # Assigns the child's parent & edgeweight + appends childNode to self.children\n def addChild(self, childNode, edgeWeight):\n childNode.parent = self\n childNode.edgeWeight = edgeWeight\n self.children.append(childNode)\n\n# Tree Class\nclass Tree():\n def __init__(self):\n self.root = None\n self.path = []\n self.visited = []\n self.destinationFound = False\n\n # Adds the root to the tree\n def addRoot(self, rootNode):\n self.root = rootNode\n\n # Adds the childNode to the tree under the parent node\n def addNode(self, childNode, parentNode, edgeWeight):\n parentNode.addChild(childNode, edgeWeight)\n\n # Depth-first search\n def dfs(self, currNode, destination):\n # Skipping function if destination already found\n if(self.destinationFound):\n return\n\n # Append the currNode to visited and path\n self.visited.append(currNode.state)\n self.path.append(currNode.state)\n\n # Check if currNode is the destination\n if(currNode.state == destination.state):\n self.destinationFound = True\n return\n\n #adding children to frontier\n for n in currNode.children:\n # Recursively search tree\n self.dfs(n, destination)\n # Remove currNode if not in the path\n if(not self.destinationFound):\n self.path.pop()\n\n# Create the tree\ntree = Tree()\n\n# Define the nodes\nroot = Node(\"S\")\na = Node(\"A\")\nb = Node(\"B\")\nc = Node(\"C\")\nd = Node(\"D\")\ne = Node(\"E\")\ng = Node(\"G\")\n\n# Adding nodes to tree\ntree.addRoot(root)\ntree.addNode(a, tree.root, 3)\ntree.addNode(b, tree.root, 1)\ntree.addNode(c, tree.root, 8)\ntree.addNode(d, a, 3)\ntree.addNode(e, a, 7)\ntree.addNode(g, a, 15)\ntree.addNode(g, b, 20)\ntree.addNode(g, c, 5)\n\n# Depth-first search through tree\ntree.dfs(tree.root, g)\n\n# Print the path and all nodes visited\nprint(\"Expanded nodes:\\n\" + str(tree.visited))\nprint(\"Path:\\n\" + str(tree.path))\n","repo_name":"coleternes/CPSC390-Artificial-Intelligence","sub_path":"A01-DFS/dfs.py","file_name":"dfs.py","file_ext":"py","file_size_in_byte":2342,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5885447916","text":"from django.contrib.auth import get_user_model\nfrom rest_framework.test import APITestCase\nimport os.path\nfrom uuid import UUID\nfrom pprint import pprint\n\nfrom kidsbook.models import Game, GameScene, GameAnswer, Group\nfrom kidsbook.user.views import generate_token\nfrom kidsbook.serializers import GameSceneSerializer,GameSuperuserSerializer\n\n\nUser = get_user_model()\nurl_prefix = '/api/v1'\n\nclass TestGameParser(APITestCase):\n def setUp(self):\n self.username = \"john\"\n self.email = \"john@snow.com\"\n self.password = \"you_know_nothing\"\n self.superuser = User.objects.create_superuser(username=self.username, email_address=self.email, password=self.password)\n self.superuser_token = self.get_token(self.superuser)\n\n # User\n self.username = \"hey\"\n self.email = \"kid@s.sss\"\n self.password = \"want_some_cookies?\"\n self.user = User.objects.create_user(username=self.username, email_address=self.email, password=self.password)\n self.user_token = self.get_token(self.user)\n\n # Another User\n self.username = \"123\"\n self.email = \"dd@s.sss\"\n self.password = \"want_some_cookies?\"\n self.another_user = User.objects.create_user(username=self.username, email_address=self.email, password=self.password)\n self.another_token = self.get_token(self.another_user)\n\n # Create a group\n response = self.client.post(url_prefix + '/group/', {\"name\": \"testing group\"}, HTTP_AUTHORIZATION=self.superuser_token)\n self.group = Group.objects.get(id=response.data.get('data', {})['id'])\n self.group.add_member(self.user)\n\n # Url\n self.url = \"{}/game/\".format(url_prefix)\n\n def get_token(self, user):\n token = generate_token(user)\n return 'Bearer {0}'.format(token.decode('utf-8'))\n\n def changes_no_difference_in_response(self, request_changes, current_state):\n for key, val in iter(request_changes.items()):\n if key not in current_state:\n return False\n if val != current_state[key]:\n return False\n return True\n\n def compare_two_scenes(self, scenes, expected_scenes):\n for scene, expected_scene in iter(zip(scenes, expected_scenes)):\n for key, value in iter(expected_scene.items()):\n if key not in scene or expected_scene[key] != scene[key]:\n return False\n\n return True\n\n def traverse_to_scene(self, scene_id, pathways, end_scenes):\n # DFS\n if scene_id in pathways:\n for next_scene_id in pathways[scene_id]:\n self.traverse_to_scene(next_scene_id, pathways, end_scenes)\n else:\n end_scenes.add(scene_id)\n\n def build_scenes_as_a_tree_from_game(self, game_id):\n tree = {}\n mapping = {}\n index = 1\n\n def rename_dict(d):\n new = {}\n for k, v in d.items():\n if isinstance(v, dict):\n v = rename_dict(v)\n new[mapping[k]] = v\n return new\n\n def dfs_to_build_scenes(cur_scene_id, stack):\n nonlocal index\n scene = GameScene.objects.get(id=cur_scene_id)\n if str(scene.id) not in mapping:\n mapping[str(scene.id)] = index\n index += 1\n\n if scene.is_end:\n return\n pathways = [choice['pathway'] for choice in iter(scene.choices)]\n if not stack:\n tree[cur_scene_id] = {}\n stack.append(cur_scene_id)\n\n for pathway in iter(pathways):\n # Treverse to current node\n temp = tree\n for id in stack:\n temp = temp[id]\n temp[pathway] = {}\n stack.append(pathway)\n if str(pathway) not in mapping:\n mapping[str(pathway)] = index\n index += 1\n\n dfs_to_build_scenes(pathway, stack)\n stack.pop()\n\n game = Game.objects.get(id=game_id)\n dfs_to_build_scenes(game.first_scene, [])\n return rename_dict(tree)\n\n def test_create_a_game(self):\n csv_file = \"Game_Module_Template.csv\"\n with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), csv_file), 'rb') as upload_file:\n response = self.client.post(\n self.url, {\"group_id\": str(self.group.id), \"file\": upload_file},\n HTTP_AUTHORIZATION=self.superuser_token\n )\n self.assertEqual(202, response.status_code)\n\n # Matching number of game scenes\n created_scenes = GameSceneSerializer(GameScene.objects.all(), many=True).data\n created_scenes = [dict(scene) for scene in created_scenes]\n self.assertEqual(6, len(created_scenes))\n\n # Generate pathways\n first_scene_id = response.data.get('data', {})['first_scene']\n first_scene = GameScene.objects.get(id=first_scene_id)\n pathways = {\n str(scene['id']): tuple([choice['pathway'] for choice in scene['choices']]) for scene in created_scenes\n if not scene['is_end']\n }\n\n # Check if 1 starting scene and 1 ending scene\n end_scenes = set()\n self.traverse_to_scene(first_scene_id, pathways, end_scenes)\n self.assertEqual(1, len(end_scenes))\n\n # Check if the logic tree is correct\n expected_tree = {1: {2: {3: {4: {}}, 5: {4: {}}, 6: {4: {}}}}}\n tree_from_game = self.build_scenes_as_a_tree_from_game(response.data['data']['id'])\n self.assertEqual(expected_tree, tree_from_game)\n\n def test_create_a_game_2(self):\n csv_file = \"Game_Module_Template_2.csv\"\n with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), csv_file), 'rb') as upload_file:\n response = self.client.post(\n self.url, {\"group_id\": str(self.group.id), \"file\": upload_file},\n HTTP_AUTHORIZATION=self.superuser_token\n )\n self.assertEqual(202, response.status_code)\n\n # Matching number of game scenes\n created_scenes = GameSceneSerializer(GameScene.objects.all(), many=True).data\n created_scenes = [dict(scene) for scene in created_scenes]\n self.assertEqual(15, len(created_scenes))\n\n # Generate pathways\n first_scene_id = response.data.get('data', {})['first_scene']\n first_scene = GameScene.objects.get(id=first_scene_id)\n pathways = {\n str(scene['id']): tuple([choice['pathway'] for choice in scene['choices']]) for scene in created_scenes\n if not scene['is_end']\n }\n\n # Check if 1 starting scene and 1 ending scene\n end_scenes = set()\n self.traverse_to_scene(first_scene_id, pathways, end_scenes)\n self.assertEqual(1, len(end_scenes))\n\n # Check if the logic tree is correct\n expected_tree = {1: {2: {3: {4: {5: {}}, 6: {5: {}}, 7: {5: {}}},\n 8: {9: {5: {}}, 10: {5: {}}, 11: {5: {}}},\n 12: {13: {5: {}}, 14: {5: {}}, 15: {5: {}}}}}}\n tree_from_game = self.build_scenes_as_a_tree_from_game(response.data['data']['id'])\n self.assertEqual(expected_tree, tree_from_game)\n\n def test_create_many_games(self):\n csv_file = \"Game_Module_Template.csv\"\n for index in range(7):\n with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), csv_file), 'rb') as upload_file:\n response = self.client.post(\n self.url, {\"group_id\": str(self.group.id), \"file\": upload_file},\n HTTP_AUTHORIZATION=self.superuser_token\n )\n self.assertEqual(202, response.status_code)\n\n # Matching number of game scenes\n created_scenes = GameSceneSerializer(GameScene.objects.all(), many=True).data\n created_scenes = [dict(scene) for scene in created_scenes]\n self.assertEqual(6*(index+1), len(created_scenes))\n\n # Generate pathways\n first_scene_id = response.data.get('data', {})['first_scene']\n first_scene = GameScene.objects.get(id=first_scene_id)\n pathways = {\n str(scene['id']): tuple([choice['pathway'] for choice in scene['choices']]) for scene in created_scenes\n if not scene['is_end']\n }\n\n # Check if 1 starting scene and 1 ending scene\n end_scenes = set()\n self.traverse_to_scene(first_scene_id, pathways, end_scenes)\n self.assertEqual(1, len(end_scenes))\n\n def test_create_game_without_group_id(self):\n csv_file = \"Game_Module_Template.csv\"\n with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), csv_file), 'rb') as upload_file:\n response = self.client.post(\n self.url, {\"file\": upload_file},\n HTTP_AUTHORIZATION=self.superuser_token\n )\n self.assertEqual(400, response.status_code)\n\n def test_create_game_without_file(self):\n response = self.client.post(\n self.url, {\"group_id\": str(self.group.id)},\n HTTP_AUTHORIZATION=self.superuser_token\n )\n\n self.assertEqual(400, response.status_code)\n\n def test_create_game_with_other_info(self):\n csv_file = \"Game_Module_Template.csv\"\n with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), csv_file), 'rb') as upload_file:\n params = {\n \"group_id\": str(self.group.id),\n \"file\": upload_file,\n \"title\": \"hello 123\",\n \"preface\": 'mkqwe;l'\n }\n response = self.client.post(\n self.url,\n params,\n HTTP_AUTHORIZATION=self.superuser_token\n )\n self.assertEqual(202, response.status_code)\n expected_response = {\n \"group\": str(self.group.id),\n \"title\": \"hello 123\",\n \"preface\": 'mkqwe;l'\n }\n\n self.assertTrue(self.changes_no_difference_in_response(expected_response, response.data.get('data', {})))\n","repo_name":"lth08091998/classbuzzs","sub_path":"kidsbook-backend/kidsbook/game/tests_parsing.py","file_name":"tests_parsing.py","file_ext":"py","file_size_in_byte":10150,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"8264013109","text":"import os\nimport pandas as pd\nimport controller as ctr\nimport sqlalchemy\nfrom sqlalchemy import create_engine\nfrom datetime import datetime\n\n# Configuration\ndata_dir = os.environ['DATA_DIR']\nsource_data_table = 'RawArticle'\ntarget_data_table = 'ProcessedArticle'\nsummary_data_table = 'ProcessedArticleSummary'\nengine = create_engine('sqlite:///{0}/the_reading_machine.db'.format(data_dir))\nsql_query = 'SELECT * FROM {}'.format(source_data_table)\n\n# Initialise processing parameters\nmodel_start_date = datetime(2010, 1, 1).date()\nmin_length = 30\nremove_captalisation = True\nremove_noun = True\nremove_numerical = True\nremove_punctuation = True\nstem = False\n\n\n# Reading data\narticles = pd.read_sql(sql_query, engine, parse_dates=['date'])\n\n# Post processing the data extraction\nprocessed_articles = ctr.scraper_post_processing(\n articles, model_start_date=model_start_date)\n\n# Process the texts\npreprocessed_text, text_summary = (\n ctr.text_preprocessing(article_df=processed_articles,\n article_col='article',\n min_length=min_length,\n remove_captalisation=remove_captalisation,\n remove_noun=remove_noun,\n remove_numerical=remove_numerical,\n remove_punctuation=remove_punctuation,\n stem=stem))\n\n# Save the data\ndata_field_type = {'id': sqlalchemy.types.Integer(),\n 'date': sqlalchemy.types.Date(),\n 'article': sqlalchemy.types.Text(),\n 'title': sqlalchemy.types.NVARCHAR(300),\n 'source': sqlalchemy.types.NVARCHAR(20),\n 'link': sqlalchemy.types.NVARCHAR(255)\n }\n\nsummary_field_type = {'createTime': sqlalchemy.types.DateTime(),\n 'article_count': sqlalchemy.types.Integer(),\n 'average_article_length': sqlalchemy.types.Float(),\n 'average_lexical_diversity': sqlalchemy.types.Float(),\n 'vocab_size': sqlalchemy.types.Integer()\n }\n\npreprocessed_text.to_sql(con=engine,\n name=target_data_table,\n index=False,\n if_exists='replace',\n dtype=data_field_type)\n\ntext_summary.to_sql(con=engine,\n name=summary_data_table,\n index=False,\n if_exists='append',\n dtype=summary_field_type)\n","repo_name":"EST-Team-Adam/TheReadingMachine","sub_path":"pipeline/article_processing/processor.py","file_name":"processor.py","file_ext":"py","file_size_in_byte":2542,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"6848024008","text":"import requests\nimport pymysql\nfrom bs4 import BeautifulSoup\nimport numpy as py\nimport pandas as pd\n\ncon=pymysql.connect('localhost','root','root','pythonDB')\nurl =\"https://xiaoyuan.zhaopin.com/part/0/0_0_0_0_0_-1_人工智能_{}_0\"\n\nf= requests.get(url.format(1)).text\nsoup = BeautifulSoup(f, \"html.parser\")\npage= soup.find(\"span\",attrs={\"class\":\"searchResultPagePer fr\"}).get_text()\ndb=con.cursor()\n\n\ntime=page[2:4]\n#time=page.split(\"/\")[1]\nwith open(\"infomation.csv\",\"a+\",encoding=\"utf-8\") as q:\n q.write('job#num#jobtype#city#company#pubtime')\n for i in range(1,int(time)+1):\n f=requests.get(url.format(i)).text\n soup=BeautifulSoup(f,\"html.parser\")\n divlist=soup.find_all(class_=\"searchResultItemSimple clearfix\")\n\n for div in divlist:\n job = div.find\\\n (\"a\").get_text()\n city=div.find(\"em\",attrs={\"class\":\"searchResultJobCityval\"}).get_text()\n num=div.find(\"em\",attrs={\"class\":\"searchResultJobPeopnum\"}).get_text()\n jobtype=div.find(\"p\",attrs={\"class\":\"searchResultCompanyIndustry\"}).get_text()\n company=div.find(\"p\",attrs={\"class\":\"searchResultCompanyname\"}).get_text()\n pubtimezzz=div.find(\"p\",attrs={\"class\":\"pt15 pb10\"})\n pubtimezz=pubtimezzz.find(\"span\")\n pubtimez=pubtimezz.find(\"span\").get_text()\n pubtime=pubtimez[7:]\n #note=div.find(\"span\",attrs={\"class\":\"oTips oTips1 fl\"}).get_text()\n sql = \"insert into jobinfo(jobname,neednum,jobtype,city,company,pubtime) values ('{}','{}','{}','{}','{}','{}')\".format(job,num,jobtype,city,company,pubtime)\n db.execute(sql)\n con.commit()\n q.write('{}#{}#{}#{}#{}#{}'.format(job,num,jobtype,city,company,pubtime)+'\\n')\n print(\"sql结束\")\n\ndb.close()\ncon.close()\nprint(\"爬虫结束\")","repo_name":"intensifyfamily/spider","sub_path":"others/his.py","file_name":"his.py","file_ext":"py","file_size_in_byte":1849,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"25776421638","text":"import json\nimport server_objects\nimport client_objects\nimport ast\n\n__author__ = 'Alexandr'\n\n\nclient_objects_names = {\"ServerPlayer\": client_objects.Player,\n \"ServerFireball\": client_objects.Fireball}\n\n\ndef pack_patch(server_objects_dict):\n res = {}\n for uuid, server_object in server_objects_dict.items():\n res[str(uuid)] = server_object.to_json()\n return json.dumps(res)\n\n\ndef unpack_patch(json_data):\n # print(json_data)\n server_objects_dict = json.loads(json_data)\n res = {}\n for uuid, json_server_objects_dict in server_objects_dict.items():\n object_name, json_server_object = json_server_objects_dict.split(\":\", maxsplit=1)\n # print(json_server_object)\n res[uuid] = [ast.literal_eval(json_server_object), object_name]\n return res\n\n\ndef get_client_class_from_patch_class_name(class_name):\n return client_objects_names[class_name]\n","repo_name":"alexandr2levin/MagicPewPew","sub_path":"MagicPewPew/client_server_tools.py","file_name":"client_server_tools.py","file_ext":"py","file_size_in_byte":913,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"71874797403","text":"#!/usr/bin/env python\n\"\"\"\nNote: No SLURM commands are submitted within this script.\n\nExample usage command:\n >> ./bin/run_steps/step2_modifymodel.py\n================================================================================\n\"\"\"\nimport sys\nimport datetime\nfrom argparse import ArgumentParser\n\nfrom bayota_util.spec_and_control_handler import notdry, read_expcon_file, read_control, write_progress_file\nfrom bayom_e.model_handling.utils import modify_model, save_model_pickle, load_model_pickle\n\nfrom bayota_settings.log_setup import set_up_detailedfilelogger\n\nfrom bayota_util.s3_operations import establish_s3_connection, pull_workspace_subdir_from_s3, \\\n pull_model_instance_from_s3, move_controlfile_to_s3\n\nlogprefix = '** Modifying Model **: '\n\n\ndef main(control_file, dryrun=False, use_s3_ws=False, save_to_s3=False, log_level='INFO') -> int:\n if save_to_s3 or use_s3_ws:\n # Connection with S3 is established.\n s3ops = establish_s3_connection(log_level, logger=None)\n\n # If using s3, required workspace directories are pulled from buckets.\n if use_s3_ws:\n pull_workspace_subdir_from_s3(subdirname='control', s3ops=s3ops, log_level=log_level)\n pull_workspace_subdir_from_s3(subdirname='data', s3ops=s3ops, log_level=log_level)\n pull_workspace_subdir_from_s3(subdirname='specfiles', s3ops=s3ops, log_level=log_level)\n\n # Control file is read.\n control_dict, \\\n actionlist, \\\n compact_geo_entity_str, \\\n expid, \\\n expname, \\\n list_of_trialdicts, \\\n saved_model_file, \\\n studyid = read_expcon_file(control_file)\n\n # Logging formats are set up.\n logger = set_up_detailedfilelogger(loggername=expname, # same name as module, so logger is shared\n filename=f\"step3_s{studyid}_e{expid}_{compact_geo_entity_str}.log\",\n level=log_level,\n also_logtoconsole=True,\n add_filehandler_if_already_exists=True,\n add_consolehandler_if_already_exists=False)\n\n # If using s3, saved model instance is pulled from bucket.\n if use_s3_ws:\n pull_model_instance_from_s3(log_level=log_level, model_instance_name=saved_model_file, s3ops=s3ops)\n\n # Progress report is updated.\n progress_dict = read_control(control_file_name=control_dict['study']['uuid'])\n progress_dict['run_timestamps']['step3b_expmodification_start'] = datetime.datetime.today().strftime('%Y-%m-%d-%H:%M:%S')\n\n # The model is modified according to specified experiment set-up\n logger.info(f\"{logprefix} {expname} - modification action list = {actionlist}\")\n if notdry(dryrun, logger, '--Dryrun-- Would modify model with action <%s>' % actionlist):\n\n # Check whether any model modifications are specified\n if actionlist[0] == 'none':\n logger.info(f\"{logprefix} {expname} - no model modifications made\")\n else:\n # Load the model object\n my_model = load_model_pickle(savepath=saved_model_file, dryrun=dryrun)\n\n for a in actionlist:\n modify_model(my_model, actiondict=a)\n\n save_model_pickle(model=my_model, savepath=saved_model_file, dryrun=dryrun, logprefix=logprefix)\n\n # Progress report is finalized with timestamp and saved.\n progress_dict['run_timestamps']['step3b_expmodification_done'] = datetime.datetime.today().strftime(\n '%Y-%m-%d-%H:%M:%S')\n progress_file_name = write_progress_file(progress_dict, control_name=control_dict['experiment']['uuid'])\n if save_to_s3:\n move_controlfile_to_s3(logger, s3ops, controlfile_name=progress_file_name, no_s3=False, )\n\n return 0 # a clean, no-issue, exit\n\n\ndef parse_cli_arguments():\n \"\"\" Input arguments are parsed. \"\"\"\n parser = ArgumentParser(description=\"Modify a study's model\")\n\n parser.add_argument(\"control_filename\", metavar='Control Filename', type=str,\n help=\"name for this model modification's control file\")\n\n parser.add_argument(\"-d\", \"--dryrun\", action='store_true',\n help=\"run through the script without triggering any other scripts\")\n\n parser.add_argument(\"--use_s3_ws\", dest=\"use_s3_ws\", action='store_true',\n help=\"Pull workspace files from s3 bucket to local workspace at start of running this step\")\n\n parser.add_argument(\"--save_to_s3\", dest=\"save_to_s3\", action='store_true',\n help=\"Move model instance and progress files from local workspace to s3 buckets\")\n\n parser.add_argument(\"--log_level\", nargs=None, default='INFO',\n choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],\n help=\"change logging level to {debug, info, warning, error, critical}\")\n\n return parser.parse_args()\n\n\nif __name__ == '__main__':\n opts = parse_cli_arguments()\n\n # The main function is called.\n sys.exit(main(opts.control_filename,\n dryrun=opts.dryrun,\n use_s3_ws=opts.use_s3_ws,\n save_to_s3=opts.save_to_s3,\n log_level=opts.log_level))\n","repo_name":"dkauf42/bayota","sub_path":"bin/run_steps/step2_modifymodel.py","file_name":"step2_modifymodel.py","file_ext":"py","file_size_in_byte":5200,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"23139925637","text":"from collections import deque\ndef solution(priorities, location):\n answer = 0\n ans=[]\n queue=deque()\n \n for i in range(len(priorities)):\n queue.append((i,priorities[i]))\n \n while queue:\n a=queue.popleft()\n flag=False\n for i in queue:\n if i[1]>a[1]:\n flag=True\n if flag:\n queue.append(a)\n else:\n ans.append(a)\n \n for i in range(0,len(ans)):\n if ans[i][0]==location:\n answer=i+1\n \n return answer\n","repo_name":"jiwon199/Algorithms-Study","sub_path":"기타알고리즘/프린터.py","file_name":"프린터.py","file_ext":"py","file_size_in_byte":551,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"45131627812","text":"class Solution:\n def threeSumClosest(self, nums: List[int], target: int) -> int:\n nums.sort()\n res = nums[0] + nums[1] + nums[2]\n for i in range(0, len(nums)):\n begin, end = i + 1, len(nums) - 1\n while begin < end:\n sum = nums[i] + nums[begin] + nums[end]\n res = res if abs(target - res) < abs(target - sum) else sum\n if sum > target: end -= 1\n else: begin += 1\n return res\n","repo_name":"PengJiaqiao/LeetCode_Diary","sub_path":"src/0016_3Sum_Closest/3Sum_Closest.py","file_name":"3Sum_Closest.py","file_ext":"py","file_size_in_byte":487,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"15406923365","text":"class Statistics:\n def __init__(self):\n self.five = 0\n self.four = 0\n self.three = 0\n self.two = 0\n\n def __add__(self, other):\n result = Statistics()\n result.five = self.five + other.five\n result.four = self.four + other.four\n result.three = self.three + other.three\n result.two = self.two + other.two\n return result\n\n def __str__(self):\n return \"Five: %s, four: %s, three: %s, two: %s\" % (self.five, self.four, self.three, self.two)\n\n# statistics1 = Statistics()\n# statistics2 = Statistics()\n# statistics3 = statistics1 + statistics2\n# statistics3 = statistics1.__add__(statistics2)\nclass Session:\n def __init__(self, name):\n self.name = name\n self.exam_list = []\n\n def add_exam(self, exam):\n self.exam_list.append(exam)\n\n def statistics(self):\n result_statistics = Statistics()\n for exam in self.exam_list:\n result_statistics += exam.statistics()\n return result_statistics\n\nclass Exam:\n def __init__(self, subject, date, teacher):\n self.subject = subject\n self.date = date\n self.teacher = teacher\n self.marks = []\n\n def add_mark(self, mark):\n self.marks.append(mark)\n\n def statistics(self):\n result_statistics = Statistics()\n for mark in self.marks:\n if mark.mark == 2:\n result_statistics.two += 1\n if mark.mark == 3:\n result_statistics.three += 1\n if mark.mark == 4:\n result_statistics.four +=1\n if mark.mark == 5:\n result_statistics.five += 1\n return result_statistics\n\nclass Mark:\n def __init__(self, student, mark):\n self.student = student\n self.mark = mark\n\nclass Student:\n def __init__(self, name):\n self.name = name\n\nclass Teacher:\n def __init__(self, name):\n self.name = name\n\nclass Subject:\n def __init__(self, name):\n self.name = name\n\nteacher1 = Teacher('teacher1')\nsubject1 = Subject('subject1')\nstudent1 = Student('student1')\nstudent2 = Student('student2')\nstudent3 = Student('student3')\nstudent4 = Student('student4')\nstudent5 = Student('student5')\nexam1 = Exam(subject1, 'today', teacher1)\nexam1.add_mark(Mark(student1, 3))\nexam1.add_mark(Mark(student2, 4))\nexam1.add_mark(Mark(student3, 5))\nexam1.add_mark(Mark(student4, 4))\nexam1.add_mark(Mark(student5, 2))\nsession = Session('Spring 2018')\nsession.add_exam(exam1)\nstatistics = session.statistics()\nprint(statistics)","repo_name":"SunPrime/Learn_Python","sub_path":"lesson4/less4_part1_sessia.py","file_name":"less4_part1_sessia.py","file_ext":"py","file_size_in_byte":2549,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"14563605682","text":"from __future__ import division\nfrom math import *\n\ndef jd2utc(jd):\n '''\n Go from Julian date to UTC.\n Source: http://stackoverflow.com/questions/29627533/conversion-of-julian-date-number-to-normal-date-utc-in-javascript/29627963#29627963\n Last edit: 04 April 2016\n '''\n X = jd + 0.5\n Z = floor(X)\n F = X-Z\n Y = floor((Z-1867216.25)/36524.24)\n A = Z+1+Y-floor(Y/4)\n B = A+1524\n C = floor((B-122.1)/365.25)\n D = floor(365.25*C)\n G = floor((B-D)/30.6001)\n if G < 13.5:\n month=G-1\n else:\n month=G-13\n if month<2.5:\n year = C-4715\n else:\n year = C-4716\n\n UT = B-D-floor(30.6001*G)+F\n day = floor(UT)\n UT -= floor(UT)\n UT *= 24\n hour = floor(UT)\n UT -= floor(UT)\n UT *= 60\n minute = floor(UT)\n UT -= floor(UT)\n UT *= 60\n second = round(UT)\n return '%04d-%02d-%02d %02d:%02d:%02d' % (year,month,day,hour,minute,second)\n","repo_name":"ovro-lwa/distributed-pipeline","sub_path":"orca/extra/coords/jd2utc.py","file_name":"jd2utc.py","file_ext":"py","file_size_in_byte":934,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"80"}
+{"seq_id":"18879804921","text":"# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.contrib import admin\nfrom django.utils.dateparse import parse_datetime\nfrom django.db import models as dj_models\nfrom . import models\nfrom .forms import WatermeterForm\n\nfrom .widgets import StringDateTimeWidget,StringSplitDateTime\n\n# Register your models here.\n\nclass CommunityAdmin(admin.ModelAdmin):\n list_display = ['name','districtid']\n\n fields = ('name','districtid')\n\n\n@admin.register(models.Tblfminfo)\nclass TblfminfoAdmin(admin.ModelAdmin):\n list_display = ['precinctname','filialename','usertype','userid','username','simid']\n\n\n formfield_overrides = {\n dj_models.DateTimeField: {'widget': StringSplitDateTime},\n }\n\n\nclass FlowShareDayTaxAdmin(admin.ModelAdmin):\n\n # date_hierarchy = 'readtime'\n list_filter = ['warning','warningdesc']\n\n list_display = ['readtime','simid','flux','plustotalflux','reversetotalflux','warning','warningdesc']\n\n formfield_overrides = {\n dj_models.DateTimeField: {'widget': StringSplitDateTime},\n }\n\n # def save_model(self, request, obj, form, change):\n # print 'FlowShareDayTaxAdmin::',obj.readtime\n # print 'form.cleaned_data',form.cleaned_data['readtime']\n # obj.readtime = obj.readtime[:20]\n # print 'FlowShareDayTaxAdmin::',obj.readtime\n # super(FlowShareDayTaxAdmin,self).save_model(request, obj, form, change)\n\n \n@admin.register(models.Watermeter)\nclass WatermeterAdmin(admin.ModelAdmin):\n # form = WatermeterForm\n actions = ['change_meterstate','change_datetime']\n list_display = ['id','communityid','buildingname','roomname','nodeaddr','wateraddr','rvalue','fvalue','metertype','meterstate','commstate','rtime','lastrvalue','lastrtime','dosage','islargecalibermeter']\n search_fields = ['metertype','meterstate',]\n list_filter = ['metertype','meterstate','commstate']\n show_admin_actions = False\n\n formfield_overrides = {\n dj_models.DateTimeField: {'widget': StringSplitDateTime},\n }\n\n fieldsets = (\n (None,{\n 'fields':(('nodeaddr','wateraddr'),)\n }),\n ('Community',{\n 'fields':('communityid',('buildingname','roomname'),)\n }),\n ('Values',{\n 'fields':(('rvalue','fvalue'),'metertype','meterstate','commstate','rtime')\n }),\n ('Last read',{\n 'fields':('lastrvalue','lastrtime')\n }),\n ('Others',{\n 'fields':('dosage','islargecalibermeter')\n }),\n )\n\n\n\n # def change_view(self, request, object_id, form_url='', extra_context=None):\n # extra_context = extra_context or {}\n # # extra_context['osm_data'] = self.get_osm_info()\n # print 'here?',object_id,extra_context\n # print 'request:',request\n # return super(WatermeterAdmin,self).change_view(\n # request, object_id, form_url, extra_context=extra_context,\n # )\n\n # def changelist_view(self, request, extra_context=None):\n # response = super(WatermeterAdmin,self).changelist_view(request, extra_context)\n\n # try:\n # qs = response.context_data['cl'].queryset\n\n # except (AttributeError, KeyError):\n # return response\n # # rtime_tmp = response.context['rtime']\n\n # metrics = {\n # 'rtime': parse_datetime('rtime'),\n # 'lastrtime': parse_datetime('lastrtime'),\n # }\n # # response.context_data['summary'] = list(\n # # qs.values('product__name').annotate(**metrics)\n # # )\n # # response.context_data['summary_total'] = dict(\n # # qs.aggregate(**metrics)\n # # )\n # return response\n\n \n def save_model(self, request, obj, form, change):\n # print 'communityid:',obj.communityid\n super().save_model(request, obj, form, change)\n\n def save_formset(self, request, form, formset, change):\n instances = formset.save(commit=False)\n \n for obj in formset.deleted_objects:\n obj.delete()\n for instance in instances:\n \n instance.save()\n formset.save_m2m()\n\n def change_meterstate(self,request,queryset):\n rows_updated = queryset.update(meterstate='正常')\n if rows_updated == 1:\n message_bit = \"1 item was\"\n else:\n message_bit = \"%s items were\" % rows_updated\n self.message_user(request, \"%s successfully updated as nomal.\" % message_bit)\n change_meterstate.short_description = 'change meterstate' \n\n\n def change_datetime(self,request,queryset):\n \n rows_updated = queryset.update(rtime=parse_datetime('rtime'),\n lastrtime=parse_datetime('lastrtime'))\n if rows_updated == 1:\n message_bit = \"1 item was\"\n else:\n message_bit = \"%s items were\" % rows_updated\n self.message_user(request, \"%s successfully updated .\" % message_bit)\n change_datetime.short_description = 'alter timestr to datetime' \n\nadmin.site.register(models.District)\nadmin.site.register(models.Community,CommunityAdmin)\n# admin.site.register(models.Watermeter)\nadmin.site.register(models.FlowShareDayTax,FlowShareDayTaxAdmin)","repo_name":"apengok/DistrictMeter","sub_path":"water/admin.py","file_name":"admin.py","file_ext":"py","file_size_in_byte":5291,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"39866802851","text":"from aiogram.types import ReplyKeyboardMarkup, KeyboardButton, InlineKeyboardButton, InlineKeyboardMarkup\nfrom typing import Tuple\n\nfrom registration import config\n\n\ndef start_kb(error_login: bool = False) -> Tuple[str, ReplyKeyboardMarkup]:\n mess = \"Hello, are you ready to register! If yes, click the button 'Start Registration'\"\n if error_login:\n mess = \"Login already exists, please create another one. Fill out the form from the beginning!\"\n start_keyboard = ReplyKeyboardMarkup(resize_keyboard=True)\n button = KeyboardButton(\"Start Registration\")\n start_keyboard.add(button)\n return mess, start_keyboard\n\n\ndef go_to_site() -> Tuple[str, InlineKeyboardMarkup]:\n mess = \"To go to the site, click 'Go to the site'\"\n start_keyboard = InlineKeyboardMarkup(row_width=1)\n button = InlineKeyboardButton(text=\"Go to the site\", url='https://registration-bot.herokuapp.com/login/')\n start_keyboard.add(button)\n return mess, start_keyboard\n\n\ndef get_contact_kb() -> Tuple[str, ReplyKeyboardMarkup]:\n mess = \"To send a phone, click on the 'Send phone' button\"\n contact_keyboard = ReplyKeyboardMarkup(resize_keyboard=True)\n button = KeyboardButton('Send phone', request_contact=True)\n contact_keyboard.add(button)\n return mess, contact_keyboard\n\n\ndef get_photo_kb() -> Tuple[str, ReplyKeyboardMarkup]:\n mess = \"You can add a photo to your profile, to do this, \" \\\n \"send a photo to the chat bot, or click 'Finish'\"\n photo_keyboard = ReplyKeyboardMarkup(resize_keyboard=True)\n button_finish = KeyboardButton('Finish')\n photo_keyboard.add(button_finish)\n return mess, photo_keyboard\n\n\ndef get_done_to_save_data(message: object) -> Tuple[str, ReplyKeyboardMarkup]:\n mess = f\"Check your details\\n\" \\\n f\"login - {config.USERS_PROFILE[message.chat.id]['login']}\\n\" \\\n f\"password - {config.USERS_PROFILE[message.chat.id]['password']}\\n\" \\\n f\"first name - {config.USERS_PROFILE[message.chat.id]['first_name']}\\n\" \\\n f\"last name - {config.USERS_PROFILE[message.chat.id]['last_name']}\\n\" \\\n f\"user name - {config.USERS_PROFILE[message.chat.id]['user_name']}\\n\" \\\n f\"phone - {config.USERS_PROFILE[message.chat.id]['phone']}\\n\" \\\n f\"photo - {'Photo is done' if config.USERS_PROFILE[message.chat.id]['photo'] else 'No photo'}\\n\" \\\n f\" if everything is correct, click 'Save', if you want to start filling from the beginning, click 'Restart'\"\n go_to_site_keyboard = ReplyKeyboardMarkup(resize_keyboard=True)\n button_save = KeyboardButton(\"Save\")\n button_restart = KeyboardButton(\"Restart\")\n go_to_site_keyboard.add(button_save, button_restart)\n return mess, go_to_site_keyboard\n\n\ndef return_to_start_kb() -> Tuple[str, ReplyKeyboardMarkup]:\n mess = \"An error occurred in the chat bot, try filling out the profile from the beginning.\"\n start_keyboard = ReplyKeyboardMarkup(resize_keyboard=True)\n button = KeyboardButton(\"Start Registration\")\n start_keyboard.add(button)\n return mess, start_keyboard\n","repo_name":"IhorVoskoboinikov/Registration_chat_bot","sub_path":"telegram_bot_registration/registration/keyboards.py","file_name":"keyboards.py","file_ext":"py","file_size_in_byte":3068,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"14219974223","text":"# v1222-1013\n\nimport sys\nimport threading\nimport modules\nfrom copy import deepcopy\n\nDEFAULT_IMAGE_PATH = 'C:\\\\TEMP\\\\QR.bmp'\nREAD_BINARY = 'rb'\n\nclass QR2LINES:\n def __init__(self):\n # readed BMP file\n self.rd_file = 0\n\n # BMP Headers\n self.bfType = b''\n self.bfSize = b''\n self.bfReserved1 = b''\n self.bfReserved2 = b''\n self.bfOffBits = b''\n\n # Informations\n self.bcSize = b''\n self.bcWidth = b''\n self.bcHeight = b''\n self.bcPlanes = b''\n self.bcBitCount = b''\n self.biCompression = b''\n self.biSizeImage = b''\n self.biXPixPerMeter = b''\n self.biYPixPerMeter = b''\n self.biClrUsed = b''\n self.biCirImportant = b''\n\n # Image Format\n self.image_type = ''\n self.image_offset = 0\n self.image_width = 0\n self.image_height = 0\n self.image_bits = 0\n self.image_comp = 0\n\n # Image Array\n self.image_array = []\n self.image_start = 0\n\n # Drawing Points\n self.start_point_x = 0\n self.end_point_x = 0\n self.start_point_y = 0\n self.end_point_y = 0\n self.min_offset_x = 0\n self.min_offset_y = 0\n\n # Circle Drawing\n self.circle_points = []\n\n def openImageFile(self, filepath=''):\n if filepath == '':\n filepath = DEFAULT_IMAGE_PATH\n\n return open(filepath, READ_BINARY)\n\n def closeImageFile(self):\n if self.rd_file:\n self.rd_file.close()\n\n def getImageHeaders(self, filepath=''):\n self.closeImageFile()\n self.rd_file = self.openImageFile(filepath)\n\n # BMP Headers\n self.bfType = self.rd_file.read(2)\n self.bfSize = self.rd_file.read(4)\n self.bfReserved1 = self.rd_file.read(2)\n self.bfReserved2 = self.rd_file.read(2)\n self.bfOffBits = self.rd_file.read(4)\n\n # Informations\n self.bcSize = self.rd_file.read(4)\n self.bcWidth = self.rd_file.read(4)\n self.bcHeight = self.rd_file.read(4)\n self.bcPlanes = self.rd_file.read(2)\n self.bcBitCount = self.rd_file.read(2)\n self.biCompression = self.rd_file.read(4)\n self.biSizeImage = self.rd_file.read(4)\n self.biXPixPerMeter = self.rd_file.read(4)\n self.biYPixPerMeter = self.rd_file.read(4)\n self.biClrUsed = self.rd_file.read(4)\n self.biCirImportant = self.rd_file.read(4)\n\n def getImageFormat(self):\n self.image_type = str(self.bfType.decode())\n self.image_offset = int.from_bytes(self.bfOffBits, 'little')\n self.image_width = int.from_bytes(self.bcWidth, 'little')\n self.image_height = int.from_bytes(self.bcHeight, 'little')\n self.image_bits = int.from_bytes(self.bcBitCount, 'little')\n self.image_comp = int.from_bytes(self.biCompression, 'little')\n\n def checkImageFormat(self):\n if self.image_type != 'BM':\n sys.exit(f'画像フォーマットが違います。BMPのみ対応: {self.image_type}')\n if self.image_bits != 1:\n sys.exit(f'ビット深度が違います。1bitのみ対応: {self.image_bits}')\n if self.image_comp != 0:\n sys.exit(f'圧縮画像は非対応です。: {self.image_comp}')\n\n def imageToArray(self, filepath=''):\n print(f'Image size is ({self.image_width}, {self.image_height})')\n self.image_array = [[] for i in range(self.image_height)]\n\n # jump to Image\n self.closeImageFile()\n self.rd_file = self.openImageFile(filepath)\n print(self.rd_file.read(self.image_offset))\n\n plus_one = 1 if self.image_width/8 != int(self.image_width/8) else 0\n loop_x = int(self.image_width/8) + plus_one\n plus_one = 1 if int(loop_x/4) != loop_x/4 else 0\n loop_x4 = 4*(int(loop_x/4)+plus_one) # BMP width must be x4 byte\n dummy_x = loop_x4 - loop_x\n\n for axis_y in range(self.image_height):\n for axis_x in range(loop_x4):\n borw = 255 - int.from_bytes(self.rd_file.read(1), 'little')\n #ここでbit単位に分解だ!!!\n borw_binlist = reversed(modules.num2binList(borw, 8))\n borw_binlist = borw_binlist\n self.image_array[axis_y].extend(borw_binlist)\n self.image_array[axis_y] = self.image_array[axis_y][: self.image_width]\n print(f'Length of self.image_array = {len(self.image_array)}')\n # debug print\n for arr in self.image_array:\n #print(arr)\n pass\n\n def searchDrawPoint(self, axis_x, axis_y, xory, start_or_end):\n temp_x = axis_x\n draw_x = axis_x\n temp_y = axis_y\n draw_y = axis_y\n ending = 0\n\n if xory == 'x':\n if start_or_end == 'start':\n # search true start_point_x\n while not ending:\n temp_x = draw_x - 1\n temp_x = 0 if temp_x < 0 else temp_x\n if self.image_array[axis_y][temp_x]:\n draw_x = temp_x\n if draw_x == 0:\n ending = 1\n else:\n ending = 1\n self.start_point_x = draw_x\n\n elif start_or_end == 'end':\n # search true end_point_x\n while not ending:\n temp_x = draw_x + 1\n temp_x = self.image_width-1 if temp_x > self.image_width-1 else temp_x\n if self.image_array[axis_y][temp_x]:\n draw_x = temp_x\n if draw_x == self.image_width-1:\n ending = 1\n else:\n ending = 1\n self.end_point_x = draw_x\n elif xory == 'y':\n if start_or_end == 'start':\n # search true start_point_y\n while not ending:\n temp_y = draw_y - 1\n temp_y = 0 if temp_y < 0 else temp_y\n if self.image_array[temp_y][axis_x]:\n draw_y = temp_y\n if draw_y == 0:\n ending = 1\n else:\n ending = 1\n self.start_point_y = draw_y\n elif start_or_end == 'end':\n # search true end_point_y\n while not ending:\n temp_y = draw_y + 1\n temp_y = self.image_height-1 if temp_y > self.image_height-1 else temp_y\n if self.image_array[temp_y][axis_x]:\n draw_y = temp_y\n if draw_y == self.image_height:\n ending = 1\n else:\n ending = 1\n self.end_point_y = draw_y\n\n def arrayToDrawing(self):\n offset_x = 0\n offset_y = 0\n scaling = 1\n argv = sys.argv\n print(argv)\n if len(argv) == 2:\n offset_x = float(argv[1][: argv[1].find(' ')])\n offset_y = float(argv[1][argv[1].find(' ')+1: ])\n elif len(argv) >= 3:\n offset_x = float(argv[1])\n offset_y = float(argv[2])\n scaling = float(argv[3])\n\n scaled_line_list = []\n trimmed_line_set = set()\n\n self.min_offset_x = self.image_width\n self.min_offset_y = self.image_height\n for axis_y in range(self.image_height):\n for axis_x in range(self.image_width):\n if self.image_array[axis_y][axis_x]:\n # search drawinf points\n args1 = (axis_x, axis_y, 'x', 'start')\n args2 = (axis_x, axis_y, 'x', 'end')\n args3 = (axis_x, axis_y, 'y', 'start')\n args4 = (axis_x, axis_y, 'y', 'end')\n args_set = [args1, args2, args3, args4]\n th_list = []\n # never use multiprocessing!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n for args_exe in args_set:\n th = threading.Thread(target=self.searchDrawPoint, args=args_exe)\n th.start()\n th_list.append(th)\n # wait for threads finish\n for thz in th_list:\n thz.join()\n # make horizonal drawing\n if self.start_point_x - self.end_point_x:\n scaled_line_list.append([offset_x+self.start_point_x*scaling, offset_y+axis_y*scaling, offset_x+self.end_point_x*scaling, offset_y+axis_y*scaling])\n # make vertical drawing\n if self.start_point_y - self.end_point_y:\n scaled_line_list.append([offset_x+axis_x*scaling, offset_y+self.start_point_y*scaling, offset_x+axis_x*scaling, offset_y+self.end_point_y*scaling])\n if self.start_point_y*scaling < self.min_offset_y:\n self.min_offset_y = self.start_point_y*scaling\n print(f'Length of scaled_line_list = {len(scaled_line_list)}')\n self.min_offset_x = min(scaled_line_list, key=lambda x: x[0])[0]-offset_x\n self.min_offset_y = min(scaled_line_list, key=lambda x: x[1])[1]-offset_y\n # trimming white zone\n for elem in scaled_line_list:\n trimmed_line_set.add(str(f'{round(elem[0]-self.min_offset_x, 3)} {round(elem[1]-self.min_offset_y, 3)}_{round(elem[2]-self.min_offset_x, 3)} {round(elem[3]-self.min_offset_x, 3)}'))\n print(f'Length of trimmed_line_set = {len(trimmed_line_set)*2}')\n\n # debug print\n #print(trimmed_line_set)\n\n return trimmed_line_set\n\n def searchCircleDrawPoint(self, axis_x_start, axis_y_start, axis_x_end, axis_y_end):\n # search true start_point_x\n for temp_y in range(int(axis_y_end - axis_y_start)):\n for temp_x in range(int(axis_x_end - axis_x_start)):\n if self.image_array[temp_y][temp_x]:\n self.circle_points.append([temp_x, temp_y])\n\n def arrayToCircleDrawing(self):\n offset_x = 0\n offset_y = 0\n scaling = 1\n argv = sys.argv\n print(argv)\n if len(argv) == 2:\n offset_x = float(argv[1][: argv[1].find(' ')])\n offset_y = float(argv[1][argv[1].find(' ')+1: ])\n elif len(argv) >= 3:\n offset_x = float(argv[1])\n offset_y = float(argv[2])\n scaling = float(argv[3])\n\n scaled_circle_list = []\n trimmed_circle_set = set()\n\n self.min_offset_x = self.image_width\n self.min_offset_y = self.image_height\n\n # search drawinf points\n args0 = (0, 0, self.image_width, self.image_height)\n #args1 = (0, 0, int(self.image_width/2)+10, int(self.image_height/2)+10)\n #args2 = (int(self.image_width/2)-10, 0, self.image_width, int(self.image_height/2)+10)\n #args3 = (0, int(self.image_height/2)-10, int(self.image_width/2)+10, self.image_height)\n #args4 = (int(self.image_width/2)-10, int(self.image_height/2)-10, self.image_width, self.image_height)\n #args_set = [args1, args2, args3, args4]\n args_set = [args0]\n th_list = []\n # never use multiprocessing!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n for args_exe in args_set:\n th = threading.Thread(target=self.searchCircleDrawPoint, args=args_exe)\n th.start()\n th_list.append(th)\n # wait for threads finish\n for thz in th_list:\n thz.join()\n # scaling circle drawing\n print(f'Length of self.circle_points = {len(self.circle_points)}')\n for elem in self.circle_points:\n scaled_circle_list.append([offset_x+elem[0]*scaling, offset_y+elem[1]*scaling])\n print(f'Length of scaled_circle_list = {len(scaled_circle_list)}')\n self.min_offset_x = min(scaled_circle_list, key=lambda x: x[0])[0]-offset_x\n self.min_offset_y = min(scaled_circle_list, key=lambda x: x[1])[1]-offset_y\n # trimming white zone\n for elem in scaled_circle_list:\n trimmed_circle_set.add(str(f'{round(elem[0]-self.min_offset_x, 3)} {round(elem[1]-self.min_offset_y, 3)}'))\n print(f'Length of trimmed_circle_set = {len(trimmed_circle_set)}')\n\n # debug print\n #print(trimmed_circle_set)\n\n return trimmed_circle_set\n\n def writeOutTextFile(self, filename='', all_text='', line_or_circle=''):\n with open(filename, mode='w', encoding='Shift-JIS') as op_file:\n for lines in all_text:\n if line_or_circle == 'circle':\n op_file.write(lines+'\\n')\n elif line_or_circle == 'line':\n op_file.write(lines[: lines.find('_')]+'\\n')\n op_file.write(lines[lines.find('_')+1: ]+'\\n')\n else:\n op_file.write(lines[: lines.find('_')]+'\\n')\n op_file.write(lines[lines.find('_')+1: ]+'\\n')\n\n\n def sequenceImageToLines(self, filepath):\n self.getImageHeaders(filepath)\n self.getImageFormat()\n self.checkImageFormat()\n self.imageToArray(filepath)\n if len(sys.argv) >= 3:\n line_or_circle = sys.argv[4]\n if line_or_circle == 'circle':\n result = self.arrayToCircleDrawing()\n self.writeOutTextFile('C:\\\\TEMP\\\\QR.txt', result, 'circle')\n elif line_or_circle == 'line':\n result = self.arrayToDrawing()\n self.writeOutTextFile('C:\\\\TEMP\\\\QR.txt', result, 'line')\n else:\n result = self.arrayToDrawing()\n self.writeOutTextFile('C:\\\\TEMP\\\\QR.txt', result, 'line')\n\ndef main():\n qr_cls = QR2LINES()\n qr_cls.sequenceImageToLines('C:\\\\TEMP\\\\QR.bmp')\n\nif __name__ == '__main__':\n main()\n","repo_name":"KeigoMega/BMP2LINES","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":13928,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"41732406616","text":"# coding=utf-8\n\nfrom entities.entity import Entity, RequiredField, Field, DateField\n\nclass Profile(Entity):\n '''\n Representa la entidad perfil\n '''\n def __init__(self, data):\n super().__init__(data)\n\n\n # Definición de los campos de la entidad Profile\n friends_count = RequiredField()\n listed_count = RequiredField()\n favourites_count = RequiredField()\n verified = RequiredField()\n description = RequiredField()\n photo = RequiredField()\n url = RequiredField()\n provider = RequiredField()\n followers_count = RequiredField()\n name = RequiredField()\n location = RequiredField()\n screenname = RequiredField()\n lang = RequiredField()","repo_name":"Shokesu/shokesuapi","sub_path":"entities/profile.py","file_name":"profile.py","file_ext":"py","file_size_in_byte":689,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"10139575095","text":"import tensorflow as tf\nfrom tensorflow.keras import Model, Input, regularizers\nfrom tensorflow.keras.layers import Dense, Conv2D, MaxPool2D, UpSampling2D, Add, Dropout, Conv2DTranspose\nfrom tensorflow.keras.callbacks import EarlyStopping, ModelCheckpoint\n\n\nclass AutoEncoderNetBuilder(object):\n\n @classmethod\n def create_model(cls, inputShape=(200, 200, 3), nFeat=16, nLevel=2, nLayersPerLevel=2, kernel_size=(3, 3),\n activation='relu', kernel_regularizer_param=1e-7):\n\n input = Input(shape=inputShape)\n downLevels = []\n\n filters = nFeat\n downLevels.append(cls.createConvLevel(input,\n 1,\n filters, kernel_size, activation, kernel_regularizer_param))\n for i in range(nLevel + 1):\n if i > 0:\n downLevels.append(MaxPool2D(padding='same')(downLevels[i - 1]))\n filters = 2 * filters\n downLevels[i] = cls.createConvLevel(downLevels[i],\n nLayersPerLevel,\n filters, kernel_size, activation, kernel_regularizer_param)\n upLevels = [None for i in range(nLevel + 1)]\n upLevels[nLevel] = downLevels[nLevel]\n for i in range(nLevel - 1, -1, -1):\n upLevels[i] = UpSampling2D(size=(2, 2), data_format=cls.NetConfig.data_format, interpolation=cls.NetConfig.upsampling_interpolation)(upLevels[i + 1])\n filters = filters / 2\n upLevels[i] = cls.createConvLevel(upLevels[i],\n 1,\n filters, kernel_size, activation, kernel_regularizer_param)\n upLevels[i] = Add()([upLevels[i], downLevels[i]])\n upLevels[i] = cls.createConvLevel(upLevels[i],\n nLayersPerLevel,\n filters, kernel_size, activation, kernel_regularizer_param)\n output = cls.createConvLevel(upLevels[0],\n inputShape[-1],\n filters, kernel_size, activation, kernel_regularizer_param)\n model = Model(input, output)\n return model\n\n @classmethod\n def createConvLevel(cls, input,\n nLayersPerLevel,\n filters, kernel_size, activation, kernel_regularizer_param):\n output = input\n\n for i in range(nLayersPerLevel):\n output = cls.createConvBlock(output,\n filters, kernel_size, activation, kernel_regularizer_param)\n return output\n\n @classmethod\n def createConvBlock(cls, input,\n filters, kernel_size, activation, kernel_regularizer_param):\n convLayer = tf.keras.layers.Conv2D(\n filters=filters, kernel_size=kernel_size, strides=cls.NetConfig.stride, padding='same',\n data_format=cls.NetConfig.data_format, dilation_rate=cls.NetConfig.dilation_rate, groups=cls.NetConfig.groups,\n activation=activation,\n kernel_regularizer=regularizers.l1(kernel_regularizer_param)\n )(input)\n dropoutInput = convLayer\n if cls.NetConfig.bNorm:\n dropoutInput = tf.keras.layers.BatchNormalization()(convLayer)\n output = tf.keras.layers.SpatialDropout2D(\n rate=cls.NetConfig.dropout_rate, data_format=cls.NetConfig.data_format\n )(dropoutInput)\n return output\n\n class NetConfig:\n inputShape = (None, None, 3)\n bNorm = True\n dropout_rate = 0.1\n groups = 1\n data_format = \"channels_last\"\n stride = (1, 1)\n dilation_rate = (1, 1)\n upsampling_interpolation = 'bilinear'\n\n","repo_name":"szinuccsi/neuralishf_denoise_upscale","sub_path":"net_modules/full_nets/AutoEncoderNetBuilder.py","file_name":"AutoEncoderNetBuilder.py","file_ext":"py","file_size_in_byte":3843,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"38257281701","text":"import os\nimport csv\nimport argparse\nimport zipfile\n\nfrom nnabla.logger import logger\nfrom nnabla.utils.data_source_loader import download\n\n\ndef func(args):\n path = args.output_dir\n if not os.path.exists(path):\n os.makedirs(path)\n\n # Create original training set\n logger.log(99, 'Downloading Character Extraction dataset...')\n\n with zipfile.ZipFile(download('https://nnabla.org/sample/sample_dataset/character_extraction_dataset.zip')) as zip:\n zip.extractall(path)\n\n for csv_file in ['train40000\\\\train40000.csv', 'validation\\\\validation.csv', 'validation\\\\validation_small.csv']:\n with open(os.path.join(path, csv_file)) as f:\n reader = csv.reader(f)\n csv_data = [row for row in reader]\n\n csv_dir, file_name = os.path.split(csv_file)\n\n for line in csv_data[1:]:\n for col in range(2):\n line[col] = os.path.join(csv_dir, line[col])\n\n with open(os.path.join(path, file_name), 'w') as f:\n writer = csv.writer(f, lineterminator='\\n')\n writer.writerows(csv_data)\n\n logger.log(99, 'Dataset creation completed successfully.')\n\n\ndef main():\n parser = argparse.ArgumentParser(\n description='CharacterExtraction\\n\\n' +\n 'Download Character Extraction dataset from https://support.dl.sony.com/blogs-ja/dataset/character-extraction-dataset/.\\n\\n',\n formatter_class=argparse.RawTextHelpFormatter)\n parser.add_argument(\n '-o',\n '--output-dir',\n help='path to write NNC dataset CSV format (dir) default=synthetic_data\\\\character_extraction',\n required=True)\n parser.set_defaults(func=func)\n\n args = parser.parse_args()\n args.func(args)\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"sony/nnc-plugin","sub_path":"plugins/_Pre_Process/_Download_or_Generate_Dataset/create_character_extraction_csv.py","file_name":"create_character_extraction_csv.py","file_ext":"py","file_size_in_byte":1759,"program_lang":"python","lang":"en","doc_type":"code","stars":14,"dataset":"github-code","pt":"80"}
+{"seq_id":"27021786630","text":"from .. import models, schemas\nfrom typing import List, Optional\nfrom fastapi import Response, status, HTTPException, Depends, APIRouter\nfrom ..database import get_db\nfrom sqlalchemy.orm import Session\nfrom sqlalchemy import func\nfrom ..utils import pwd_context as pass_hasher\nfrom .. import oauth2\n\nrouter = APIRouter(\n prefix=\"/posts\",\n tags=[\"Posts\"]\n)\n\n# @router.get(\"/\", response_model=List[schemas.PostResponse])\n# @router.get(\"/\")\n# async def get_posts(db: Session = Depends(get_db), limit: int = 10, skip: int = 0, search: Optional[str] = \"\"):\n# # cursor.execute(\"\"\"SELECT * FROM post\"\"\")\n# # posts = cursor.fetchall()\n# # print(posts) \n\n# posts = db.query(models.Post).filter(models.Post.title.contains(search)).limit(limit).offset(skip).all()\n\n# results = db.query(models.Post, func.count(models.Vote.post_id).label(\"votes\")).join(\n# models.Vote, models.Vote.post_id == models.Post.id, isouter=True).group_by(models.Post.id).all()\n \n# print(posts)\n# return results\n\n@router.get(\"/\")\nasync def get_posts(db: Session = Depends(get_db), limit: int = 10, skip: int = 0, search: Optional[str] = \"\"):\n query = db.query(models.Post, func.count(models.Vote.post_id).label(\"votes\")).outerjoin(\n models.Vote, models.Vote.post_id == models.Post.id).group_by(models.Post.id)\n\n if search:\n query = query.filter(models.Post.title.contains(search))\n\n posts_with_vote_counts = query.limit(limit).offset(skip).all()\n\n results = []\n for post, vote_count in posts_with_vote_counts:\n post_data = post.__dict__\n post_data[\"votes\"] = vote_count\n results.append(post_data)\n\n return results\n\n@router.get(\"/myposts\", response_model=List[schemas.PostResponse])\nasync def get_posts(db: Session = Depends(get_db), current_user: int = Depends(oauth2.get_current_user)):\n # cursor.execute(\"\"\"SELECT * FROM post\"\"\")\n # posts = cursor.fetchall()\n # print(posts)\n\n posts = db.query(models.Post).filter(models.Post.owner_id == current_user.id).all()\n return posts\n\n@router.get(\"/{id}\", response_model=schemas.PostResponse)\nasync def get_post(id: int, response: Response, db: Session = Depends(get_db), current_user: int = Depends(oauth2.get_current_user)):\n # cursor.execute(\"\"\"SELECT * FROM post WHERE id = %s\"\"\", (str(id), ))\n # post = cursor.fetchone()\n post = db.query(models.Post).filter(models.Post.id == id).first()\n if not post:\n raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=\"post not found\")\n\n # Making user to get only his posts with an id\n if post.owner_id != current_user.id:\n raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=f\"Not Allowed to perform requested action\") \n\n return post\n\n@router.post(\"/\", status_code=status.HTTP_201_CREATED, response_model=schemas.PostResponse)\nasync def create_posts(post: schemas.Post, db: Session = Depends(get_db), current_user: int = Depends(oauth2.get_current_user)):\n # cursor.execute(\"\"\"INSERT INTO post (title, content, published) VALUES (%s, %s, %s) RETURNING *\"\"\", \n # (post.title, post.content, post.published)) \n # db_response = cursor.fetchall()\n\n # conn.commit() # commiting to database\n\n db_response = models.Post(owner_id=current_user.id, **post.dict())\n db.add(db_response)\n db.commit()\n db.refresh(db_response)\n return db_response\n\n@router.delete(\"/{id}\", status_code=status.HTTP_204_NO_CONTENT)\nasync def delete_post(id: int, db: Session = Depends(get_db), current_user: int = Depends(oauth2.get_current_user)):\n # cursor.execute(\"\"\"DELETE FROM post WHERE id = %s RETURNING *\"\"\", (str(id), ))\n # deleted_post = cursor.fetchone()\n\n # # committing deleted post\n # conn.commit()\n\n post_to_del = db.query(models.Post).filter(models.Post.id == id)\n post = post_to_del.first()\n\n if post_to_del.first() == None:\n raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f\"Post with id {id} does not exist\")\n\n if post.owner_id != current_user.id:\n raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=f\"Not Allowed to perform requested action\")\n\n \n post_to_del.delete(synchronize_session=False)\n\n db.commit()\n\n return Response(status_code=status.HTTP_204_NO_CONTENT)\n\n@router.put(\"/{id}\", response_model=schemas.PostResponse)\nasync def update_post(id: int, post: schemas.Post, db: Session = Depends(get_db), current_user: int = Depends(oauth2.get_current_user)):\n \n # cursor.execute(\"\"\"UPDATE post SET title = %s, content = %s, published = %s WHERE id = %s RETURNING *\"\"\",\n # (post.title, post.content, str(post.published), str(id), ))\n\n # updated_post = cursor.fetchone()\n\n # # Committing\n # conn.commit()\n\n post_update_query = db.query(models.Post).filter(models.Post.id == id)\n updated_post = post_update_query.first()\n\n if updated_post is None:\n raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail=f\"Post with id {id} does not exist\") \n \n if updated_post.owner_id != current_user.id:\n raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=f\"Not Allowed to perform requested action\")\n \n post_update_query.update(post.dict(), synchronize_session=False)\n db.commit()\n\n return post_update_query.first()","repo_name":"dev-satyamthakur/FastAPI-CRUD-Application","sub_path":"app/routers/post.py","file_name":"post.py","file_ext":"py","file_size_in_byte":5343,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"24294484311","text":"# coding: utf-8\n\n## Loading Relevant libraries\nimport pandas as pd\nimport os as os\nimport numpy as np\n\n## Mapping to data directory\ndata_dir = os.listdir('../../data/raw/tabula-RENALOC_Niger_733/')\n\n## Function to load csv files from tabula, and properly format them for aggregation\ndef get_data(adress) :\n url = '../../data/raw/tabula-RENALOC_Niger_733/' + adress\n try :\n liste_depts = pd.read_csv( url , encoding = \"ISO-8859-1\" )\n ## Table with too few columns are ignored\n if len(liste_depts.columns) < 7:\n out = float('nan')\n if len(liste_depts.columns) >= 8 :\n out = liste_depts.reset_index()\n out = out.drop(0)\n if len(out.columns) < 10 :\n out = out.iloc[: , [1,2,3,4,5,6,7,8]]\n if len(out.columns) >= 10 :\n out = out.iloc[: , [0,1,3,4,5,6,7,8]]\n out.columns = ['locality' , 'population' , 'hommes', 'femmes' , 'menages' , 'menages_agricoles' , 'geoloc','settlement_type']\n #print(out.head())\n ## Excluding tables that pass the column count test but are improper\n if out.loc[1 , 'locality'].__class__.__name__ in ['int64' , 'float'] :\n out = float('nan')\n return out\n\n except (ValueError , IndexError) :\n print(out.head())\n out = float('nan')\n\n\n## Ordering the tables in their original order, as we will be imputing geographical zones from line position in tables\norder = []\nfor n in range(len(data_dir)) :\n u = data_dir[n].split('-')[2].split('.')[0]\n order = order + [int(u)]\norder = sorted(order)\n\n## Importing all relevant Tabula csv files in one data frame\nrenaloc = []\nfor i in order :\n addresse = 'tabula-RENALOC_Niger_733-' + str(i) + '.csv'\n dat = get_data(addresse)\n if (dat.__class__.__name__ == 'DataFrame') :\n print(addresse)\n if (len(renaloc) > 0) :\n renaloc = renaloc.append(dat , ignore_index = True)\n if (len(renaloc) == 0) :\n renaloc = dat\n\n\n## Ad hoc corrections of problematic values\ndak_list = renaloc[renaloc.locality == 'DAKORO (Département)'].index.tolist()\nrenaloc.loc[dak_list[0],'locality'] = 'DAKORO : Urbain'\nrenaloc.loc[dak_list[1],'locality'] = 'DAKORO : Rural'\nrenaloc.loc[renaloc.locality == 'DEPARTEMENT : TESSAOUA'] = 'DEPARTEMENT DE : TESSAOUA'\n\nsarkin_haoussa = renaloc[renaloc.locality == 'SARKIN HAOUSSA : Rural'].index\nrenaloc.loc[(sarkin_haoussa[0] - 1),'locality'] = 'COMMUNE DE : SARKIN HAOUSSA'\n\nsarkin_yamma = renaloc[renaloc.locality == 'SARKIN YAMMA : Rural'].index\nrenaloc.loc[(sarkin_yamma[0] - 1),'locality'] = 'COMMUNE DE : SARKIN YAMMA'\n\nakoubounou = renaloc[renaloc.locality == 'AKOUBOUNOU: Rural'].index\nrenaloc.loc[(akoubounou[0] - 1),'locality'] = 'COMMUNE DE : AKOUBOUNOU'\n\n## Transforming document hierarchical structure into covariables for Geographical zones\nrenaloc['level'] = renaloc['region'] = renaloc['departement'] = renaloc['commune'] = renaloc['milieu'] = region = departement = commune = level = ''\nfor i in range(1,len(renaloc)) :\n u = renaloc.iloc[i]\n name = u.locality\n try :\n if 'REGION DE' in name :\n print(name)\n level = 'Region'\n renaloc.loc[i,'level'] = level\n region = name.split('REGION DE')[1]\n departement = ''\n commune = ''\n renaloc.loc[i,'region'] = region\n elif 'DEPARTEMENT DE' in name :\n level = 'Departement'\n renaloc.loc[i,'level']= 'level'\n departement = name.split('DEPARTEMENT DE')[1]\n renaloc.loc[i,'region'] = region\n renaloc.loc[i,'departement'] = departement\n commune = ''\n elif 'COMMUNE DE' in name :\n level = 'Commune'\n renaloc.loc[i,'level']= level\n commune = name.split('COMMUNE DE')[1]\n renaloc.loc[i,'region'] = region\n renaloc.loc[i,'departement'] = departement\n renaloc.loc[i,'commune'] = commune\n elif 'VILLE DE' in name :\n if level != 'Ville' :\n level = 'Ville'\n arr = ''\n departement = name.split('VILLE DE')[1]\n\n renaloc.loc[i,'level'] = level\n renaloc.loc[i,'region'] = region\n renaloc.loc[i,'departement'] = departement\n elif 'ARRONDISSEMENT' in name :\n if level != 'arrondissement' :\n level = 'arrondissement'\n commune = 'ARRONDISSEMENT' + name.split('ARRONDISSEMENT')[1]\n\n renaloc.loc[i,'region'] = region\n renaloc.loc[i,'departement'] = departement\n renaloc.loc[i , 'commune'] = commune\n renaloc.loc[i , 'level'] = level\n\n else :\n level = 'Localite'\n renaloc.loc[i , 'level'] = 'Localite'\n renaloc.loc[i , 'region'] = region\n renaloc.loc[i , 'departement'] = departement\n renaloc.loc[i , 'commune'] = commune\n\n if (' Urbain' in name) or (' Rural' in name) :\n if ' Urbain' in name :\n renaloc.loc[i ,'milieu'] = 'Urbain'\n if ' Rural' in name :\n renaloc.loc[i, 'milieu'] = 'Rural'\n\n if (level == 'Region'):\n renaloc.loc[i , 'region'] = region\n renaloc.loc[i , 'level'] = level\n if (level == 'Departement') :\n renaloc.loc[i , 'region'] = region\n renaloc.loc[i , 'departement'] = departement\n\n renaloc.loc[i , 'level'] = level\n if (level == 'Commune') :\n renaloc.loc[i , 'region'] = region\n renaloc.loc[i , 'departement'] = departement\n renaloc.loc[i , 'level'] = level\n if (level == 'Ville') :\n renaloc.loc[i , 'region'] = region\n renaloc.loc[i , 'departement'] = departement\n renaloc.loc[i , 'level'] = level\n\n\n\n except (RuntimeError, TypeError, NameError , AttributeError):\n pass\n\n\n## Taking out some special characters\nrenaloc['region'] = renaloc['region'].str.replace('\\r|\\n|:' , '').str.strip()\nrenaloc['departement'] = renaloc['departement'].str.replace('\\r|\\n|:' , '').str.strip()\nrenaloc['commune'] = renaloc['commune'].str.replace('\\r|\\n|:|Rural|' , '').str.strip()\nrenaloc['locality'] = renaloc['locality'].str.replace('\\r|\\n|:' , '').str.strip()\n\n## Function to convert GPS coordinates into Lat / long\n## Note : this is ad hoc for GPS coordinates in Niger (ie all GPS coordinates are North East)\ndef conversion(old):\n new = old.replace(u'°',' ').replace('\\'',' ').replace('\"',' ')\n new = new.split()\n #new_dir = new.pop()\n new.extend([0,0,0])\n return (int(new[0])+int(new[1])/60.0+int(new[2])/3600.0)\n\nrenaloc.geoloc\n\n## Function to parse GPS coordinates as they appear in the Tabula extracted csv\ndef extract_gps(pdf_string):\n long = pdf_string.split(';')[0]\n\n coord1 = long.split(':')[1].split(\"°\")[0]\n coord2 = long.split('Â')[1].split(',')[0]\n coord3 = long.split(',')[1].split(';')[0]\n\n long = coord1 + coord2 + coord3\n\n long = long.replace('\\\\' , '').replace('\"','').replace(' ',\"\")\n\n lat = pdf_string.split(';')[1]\n coord4 = lat.split(\"°\")[0]\n coord4 = coord4.replace(\"l\" , \"\").replace(':','')\n coord5 = lat.split('Â')[1].split(\",\")[0]\n coord6 = lat.split(',')[1].split(\")\")[0]\n\n lat = coord4 + coord5 + coord6\n\n return [long , lat]\n\n# Function to force float all variables supposed to be numeric\ndef float_all(data):\n if (data.__class__.__name__ != 'float') :\n try :\n data = data.split('\\r')[0]\n data = float(data)\n except (ValueError) :\n data = float('nan')\n\n return data\n\n## Now going through all loaded data and parsing coordinates and putting all variables into numeric\nrenaloc['longitude'] = renaloc['latitude'] = ''\nnum_variables = ['hommes' , 'femmes' , 'menages' , 'menages_agricoles' , 'population']\n\n\n\nfor i in range(len(renaloc)):\n\n for var in range(len(num_variables)):\n variable = num_variables[var]\n renaloc.loc[i , variable] = float_all(renaloc.loc[i , variable])\n\n\n gps = renaloc.loc[i , 'geoloc']\n if pd.isnull(gps) == False :\n try :\n gps_list = extract_gps(gps)\n if (conversion(gps_list[0]) > 0) & (conversion(gps_list[1]) > 10) :\n renaloc.loc[i , 'longitude'] = conversion(gps_list[0])\n renaloc.loc[i , 'latitude'] = conversion(gps_list[1])\n except (IndexError) :\n print('Index Error at ' + str(i))\n\n\nrenaloc.loc[(renaloc['commune'] == 'KORE') & (renaloc['region'] == 'DOSSO') , 'commune'] = \"KORE MAIROUA\"\nrenaloc.loc[(renaloc['commune'] == 'GUIDAN') & (renaloc['region'] == 'MARADI') , 'commune'] = \"GUIDAN AMOUMOUNE\"\nrenaloc.loc[(renaloc['commune'] == 'BIRNI') & (renaloc['region'] == 'TAHOUA') , 'commune'] = \"BIRNI N'KONNI\"\nrenaloc.loc[(renaloc['commune'] == 'GALMA') & (renaloc['region'] == 'TAHOUA') , 'commune'] = \"GALMA KOUDAWATCHE\"\nrenaloc.loc[(renaloc['commune'] == 'KOURFEYE') & (renaloc['region'] == 'TILLABERI') , 'commune'] = \"KOURFEYE CENTRE\"\nrenaloc.loc[(renaloc['commune'] == 'OURO') & (renaloc['region'] == 'TILLABERI') , 'commune'] = \"OURO GUELADJO\"\nrenaloc.loc[(renaloc['commune'] == 'ARRONDISSEMENT 3') , 'commune'] = \"ARRONDISSEMENT 3\"\nrenaloc.loc[(renaloc['commune'].isin(['KAO' , 'TCHINTABARADEN'])) , 'departement'] = \"TCHINTABARADEN\"\nrenaloc.loc[((renaloc['departement'] == 'BIRNI') & (renaloc['region'] == 'TAHOUA') ) , 'departement'] = \"BIRNI N'KONNI\"\n\n\n## Adding Unique IDs\ncommunes_listing = pd.read_csv('../../data/processed/org_units_listing.csv' , encoding = \"ISO-8859-1\")\n\nrenaloc_full = pd.merge(renaloc , communes_listing ,\n on = ['region' , 'departement' , 'commune'] ,\n how = 'right')\n\nrenaloc_full.GPS_ID.nunique()\n\nrenaloc_full[pd.isnull(renaloc_full.locality)]\n\nrenaloc[~(renaloc.commune.isin(renaloc_full.commune))]\n\ncommunes_listing.GPS_ID.nunique()\n\n## Outputting the full data\nrenaloc_full.to_csv('../../data/processed/renaloc_full.csv' , index = False)\n","repo_name":"grlurton/niger_election","sub_path":"src/data/load_format_renaloc.py","file_name":"load_format_renaloc.py","file_ext":"py","file_size_in_byte":10164,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"71243565699","text":"\"\"\"Base classes for all config file formats.\"\"\"\n\nfrom __future__ import division\nfrom __future__ import absolute_import\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport os\n\nfrom .. import exc\nfrom ..core import compat\nfrom ..core import config\n\n\nclass ConfigurationFile(object):\n\n \"\"\"Base class for configuration file parsers.\"\"\"\n\n def __init__(self, path, strict=True):\n self._path = path\n self._content = None\n self._strict = strict\n\n @property\n def path(self):\n \"\"\"Get the file path given at initialization.\"\"\"\n return self._path\n\n @property\n def abspath(self):\n \"\"\"Get the absolute path to the file.\"\"\"\n return os.path.abspath(self._path)\n\n @property\n def content(self):\n \"\"\"Get the file contents.\n\n This property is cached. The file is only read once.\n \"\"\"\n if not self._content:\n\n self._content = self._read()\n\n return self._content\n\n @property\n def config(self):\n \"\"\"Get a Configuration object from the file contents.\"\"\"\n conf = config.Configuration()\n for namespace in self.namespaces:\n\n if not hasattr(conf, namespace):\n\n if not self._strict:\n\n continue\n\n raise exc.NamespaceNotRegistered(\n \"The namespace {0} is not registered.\".format(namespace)\n )\n\n name = getattr(conf, namespace)\n\n for item, value in compat.iteritems(self.items(namespace)):\n\n if not hasattr(name, item):\n\n if not self._strict:\n\n continue\n\n raise exc.OptionNotRegistered(\n \"The option {0} is not registered.\".format(item)\n )\n\n setattr(name, item, value)\n\n return conf\n\n @property\n def namespaces(self):\n \"\"\"Get an iterable of str representing namespaces within the config.\"\"\"\n raise NotImplementedError()\n\n def items(self, namespace):\n \"\"\"Get a dictionary of entries under a given namespace.\"\"\"\n raise NotImplementedError()\n\n def _read(self):\n \"\"\"Open the file and return its contents.\"\"\"\n with open(self.path, \"r\") as file_handle:\n\n content = file_handle.read()\n\n # Py27 INI config parser chokes if the content provided is not unicode.\n # All other versions seems to work appropriately. Forcing the value to\n # unicode here in order to resolve this issue.\n return compat.unicode(content)\n","repo_name":"kevinconway/confpy","sub_path":"confpy/loaders/base.py","file_name":"base.py","file_ext":"py","file_size_in_byte":2602,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"80"}
+{"seq_id":"31587639121","text":"\"\"\"Removes total_cost column in favor of hybrid property\n\nRevision ID: 5e2bc6083503\nRevises: 748744207122\nCreate Date: 2022-05-26 17:18:29.231995\n\n\"\"\"\nfrom alembic import op\nimport sqlalchemy as sa\n\n# revision identifiers, used by Alembic.\nrevision = \"5e2bc6083503\"\ndown_revision = \"748744207122\"\nbranch_labels = None\ndepends_on = None\n\n\ndef upgrade():\n # ### commands auto generated by Alembic - please adjust! ###\n op.drop_column(\"incident\", \"total_cost\")\n # ### end Alembic commands ###\n\n\ndef downgrade():\n # ### commands auto generated by Alembic - please adjust! ###\n op.add_column(\n \"incident\", sa.Column(\"total_cost\", sa.NUMERIC(), autoincrement=False, nullable=True)\n )\n # ### end Alembic commands ###\n","repo_name":"Netflix/dispatch","sub_path":"src/dispatch/database/revisions/tenant/versions/2022-05-26_5e2bc6083503.py","file_name":"2022-05-26_5e2bc6083503.py","file_ext":"py","file_size_in_byte":738,"program_lang":"python","lang":"en","doc_type":"code","stars":4294,"dataset":"github-code","pt":"80"}
+{"seq_id":"791007336","text":"import numpy as np\nimport matplotlib.pyplot as plt \nimport os\nimport pandas as pd\n\n#Initial constants \ng0=9.81 #Earth's Gravity\ngm=1.62 #Moon's Gravity\n\npath=os.getcwd()+\"\\\\Plots\\\\\"+\"Data for Range of 3.2.csv\"\nname=\"df32\"\ncommand=pd.read_csv(\"{}\".format(path))\nexec(name+\"=\"+\"command\") #read the csv file (put 'r' before the path string to address any special characters in the path, such as '\\'). Don't forget to put the file name at the end of the path + \".csv\"\n\n\n#Parameters to be changed\nm_prop_m_total=(100-df32.iloc[-1,4])/100 #Percentage of the mass needed for each hop (0.0022 for normal method, 0.0033 for alternative)\nD_covered=200\nR_hop=3.2\n\ndef subsystem_size(pl_percentage):\n \"\"\"\n This function calculates the mass of the subsystems of the hopp\n \n Inputs:\n pl_percentage: percentage of the total mass that is payload (8% to 13%)\n \n Outputs:\n m_total_2-m_total_1:difference between initial mass and the mass after the iteration\n m_total_1:initial guess of the total mass\n m_total_2:Mass after the iteration \n \"\"\" \n \n m_pl=3.3\n m_total_1=m_pl/pl_percentage #The pl_percentage change from 8% to 12%\n \n m_propellant=m_total_1-m_total_1*((1-m_prop_m_total)**(np.ceil(D_covered/R_hop))) #Each hop uses 0.3% in the worst case, the descent into the pit uses 1.33% of the total mass\n print(m_propellant)\n m_dry=m_total_1-m_propellant-m_pl\n m_inert= m_dry+m_pl\n\n #Estimation of Thrust Subsystem -> Taken from MIT Talaris Propulsion sizing\n m_e= 0.1*(1.3*gm*m_total_1)**(2/3) #Mass of the engine\n m_tank=2/3*m_propellant**(2/3)\n m_prop_system=(m_e+m_propellant+m_tank) * 1.1\n m_structural=3/20*m_total_1 * 1.1\n #1.1 is a safe margin\n \n m_power= ((23/0.22) * 2 )/100 * 1.1 #power from payload/ 0.22 (smad) /density + safe margin table 14.20\n \n m_mobility_system=5.3/30.9*m_dry *1.1 #Amalia rover -> change to percentage + 10%\n \n #SMAD Appendix A \n m_cdh=0.04*m_dry *1.1\n m_ttc=0.07*m_dry *1.1\n m_thermal=0.06*m_dry *1.1\n \n # m_comms_avionics_power_thermal=32.03/91.91*m_total #Percentage of the MIT hopper\n \n m_other= 0.04*m_dry *1.1 #Paper -> A new sizing methodology\n\n m_total_2=m_prop_system+m_structural+m_power+m_mobility_system+m_pl+m_cdh+m_ttc+m_thermal+m_other\n # print(m_total_1)\n # print(m_total_2)\n return m_total_2-m_total_1, m_total_1,m_total_2\n\nprint(subsystem_size(.1))\ndiff=[]\npl_percentage=np.arange(0.10,0.17,0.01)\nfor i in pl_percentage:\n i=round(i,2)\n diff.append(subsystem_size(i)[0])\n print(\"Difference between the masses of {} kg for a payload percentage of {}% and an initial mass of {} kg\".format(round(subsystem_size(i)[0],2),int(100*i),round(subsystem_size(i)[1],1)))\n \n\nplt.plot([100*x for x in pl_percentage],[abs(subsystem_size(x)[0]) for x in pl_percentage],color=\"brown\")\nplt.title(\"Convergence of system subsizing\")\nplt.grid(True)\nplt.xlabel('Payload percentage (%)',fontsize=15)\nplt.ylabel(r'Mass Difference',fontsize=15) \nplt.savefig(os.getcwd()+\"\\\\plots\\\\\" + \"system_subsizing_convergence.png\")\n\n\n# plt.plot([x for x in np.arange(0.08,0.13,0.001)],[abs(subsystem_size(x)[0]) for x in np.arange(0.08,0.13,0.001)],color=\"brown\")\n# plt.title(\"Convergence of system subsizing\")\n# plt.grid(True)\n# plt.xlabel('Payload percentage (decimal)',fontsize=15)\n# plt.ylabel(r'Mass Difference',fontsize=15) \n\n","repo_name":"JoaoGamboa/Moon-Hopper","sub_path":"Mass_Estimation.py","file_name":"Mass_Estimation.py","file_ext":"py","file_size_in_byte":3410,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"80"}
+{"seq_id":"18691999881","text":"\"\"\"\n\n get_aggregate_google_API_data.py\n\n This data aggregates the Google API data stored in AWS. It assumes the existence of an existing aggregate datasets\n\n It loads the most recent aggregate dataset, the most recent daily scrapes of data, and appends the most recent scrape\n to the most recent aggregate dataset\n\n Args:\n - Date: a date, in the format of %Y-%m-%d (e.g., 2020-03-20)\n\n Assumes that there is an existing aggregate dataset and that the most recent version has already been scraped\n (via 'get_google_API_data.py')\n\n\"\"\"\nimport os\nimport sys\nimport re\nimport boto3\nimport pytrends\nfrom pytrends.request import TrendReq\nimport pandas as pd\nimport datetime\nimport re\n\nif __name__ == \"__main__\":\n\n # get consts, creds, args\n\n AWS_BUCKET = os.environ[\"AWS_BUCKET\"]\n AWS_ACCESS = os.environ[\"AWS_ACCESS\"]\n AWS_SECRET = os.environ[\"AWS_SECRET\"]\n\n INTEREST_OVER_TIME_FILENAME = \"interest_over_time_\"\n INTEREST_BY_REGION_FILENAME = \"interest_by_region_\"\n\n LOCAL_SCRAPES_DIR = \"../../tweets/google_API_scrapes/\"\n AGGREGATE_GOOGLE_DIR = \"aggregate_google_API_data/\"\n AWS_SCRAPES_DIR = \"google_API_scrapes/\"\n\n LOCAL_AGGREGATE_TIME_PATH = LOCAL_SCRAPES_DIR + \"aggregate_interest_over_time_\"\n LOCAL_AGGREGATE_REGION_PATH = LOCAL_SCRAPES_DIR + \"aggregate_interest_by_region_\"\n\n AWS_AGGREGATE_TIME_PATH = AGGREGATE_GOOGLE_DIR + \"aggregate_interest_over_time_\"\n AWS_AGGREGATE_REGION_PATH = AGGREGATE_GOOGLE_DIR + \"aggregate_interest_by_region_\"\n\n LOCAL_TIME_FILENAME = LOCAL_SCRAPES_DIR + INTEREST_OVER_TIME_FILENAME\n LOCAL_REGION_FILENAME = LOCAL_SCRAPES_DIR + INTEREST_BY_REGION_FILENAME\n\n AWS_TIME_FILENAME = AWS_SCRAPES_DIR + INTEREST_OVER_TIME_FILENAME\n AWS_REGION_FILENAME = AWS_SCRAPES_DIR + INTEREST_BY_REGION_FILENAME\n\n # get date provided, date of most recent aggregate file\n\n START_DATE = \"2020-03-01\"\n DATE = datetime.datetime.strptime(sys.argv[1], \"%Y-%m-%d\")\n DATE_FORMATTED = DATE.strftime(\"%Y-%m-%d\")\n\n PREV_DATE_FORMATTED = (\n DATE - datetime.timedelta(days=1)).strftime(\"%Y-%m-%d\")\n\n print(\n f\"The provided date is: {DATE_FORMATTED} and the previous date is {PREV_DATE_FORMATTED}\")\n\n # get filenames, of preexisting file, the most recent data scrape, and the next aggregate file\n PREV_AGG_DATA_FILENAME = f\"{START_DATE}_{PREV_DATE_FORMATTED}.csv\"\n\n NEW_FILE_SCRAPE_TIME = AWS_TIME_FILENAME + DATE_FORMATTED\n NEW_FILE_SCRAPE_REGION = AWS_REGION_FILENAME + DATE_FORMATTED\n\n NEW_AGG_DATA_FILENAME = f\"{START_DATE}_{DATE_FORMATTED}.csv\"\n\n # connect with AWS S3\n s3 = boto3.client('s3',\n aws_access_key_id=AWS_ACCESS,\n aws_secret_access_key=AWS_SECRET)\n\n # load pre-existing data:\n\n # load previous aggregate data\n s3.download_file(Bucket=AWS_BUCKET,\n Key=AWS_AGGREGATE_TIME_PATH + PREV_AGG_DATA_FILENAME,\n Filename=LOCAL_AGGREGATE_TIME_PATH + PREV_AGG_DATA_FILENAME)\n\n s3.download_file(Bucket=AWS_BUCKET,\n Key=AWS_AGGREGATE_REGION_PATH + PREV_AGG_DATA_FILENAME,\n Filename=AWS_AGGREGATE_REGION_PATH + PREV_AGG_DATA_FILENAME)\n\n # load today's time and region data\n s3.download_file(Bucket=AWS_BUCKET,\n Key=NEW_FILE_SCRAPE_TIME,\n Filename=LOCAL_TIME_FILENAME + DATE_FORMATTED + \".csv\")\n\n s3.download_file(Bucket=AWS_BUCKET,\n Key=NEW_FILE_SCRAPE_REGION,\n Filename=LOCAL_REGION_FILENAME + DATE_FORMATTED + \".csv\")\n\n # load as dfs\n prev_agg_time_df = pd.read_csv(\n LOCAL_AGGREGATE_TIME_PATH + PREV_AGG_DATA_FILENAME)\n prev_agg_region_df = pd.read_csv(\n AWS_AGGREGATE_REGION_PATH + PREV_AGG_DATA_FILENAME)\n\n new_time_df = pd.read_csv(LOCAL_TIME_FILENAME + DATE_FORMATTED + \".csv\")\n new_region_df = pd.read_csv(\n LOCAL_REGION_FILENAME + DATE_FORMATTED + \".csv\")\n\n # remove local copies\n os.remove(LOCAL_AGGREGATE_TIME_PATH + PREV_AGG_DATA_FILENAME)\n os.remove(AWS_AGGREGATE_REGION_PATH + PREV_AGG_DATA_FILENAME)\n os.remove(LOCAL_TIME_FILENAME + DATE_FORMATTED + \".csv\")\n os.remove(LOCAL_REGION_FILENAME + DATE_FORMATTED + \".csv\")\n\n # add 'date' col to region df\n new_region_df['date'] = DATE_FORMATTED\n\n # append new dfs to running aggregate dfs\n new_agg_time_df = prev_agg_time_df.append(new_time_df)\n new_agg_region_df = prev_agg_region_df.append(new_region_df)\n\n # save new dfs, locally\n new_agg_time_df.to_csv(LOCAL_AGGREGATE_TIME_PATH +\n f\"{START_DATE}_{DATE_FORMATTED}.csv\")\n new_agg_region_df.to_csv(\n LOCAL_AGGREGATE_REGION_PATH + f\"{START_DATE}_{DATE_FORMATTED}.csv\")\n\n # export to AWS\n s3.upload_file(LOCAL_AGGREGATE_TIME_PATH +\n f\"{START_DATE}_{DATE_FORMATTED}.csv\",\n AWS_BUCKET, AWS_AGGREGATE_TIME_PATH + f\"{START_DATE}_{DATE_FORMATTED}.csv\")\n s3.upload_file(LOCAL_AGGREGATE_REGION_PATH + f\"{START_DATE}_{DATE_FORMATTED}.csv\",\n AWS_BUCKET, AWS_AGGREGATE_REGION_PATH + f\"{START_DATE}_{DATE_FORMATTED}.csv\")\n\n print(\n f\"Finished running 'get_aggregate_google_API_data.py' at (in UTC time): {datetime.datetime.utcnow()}\")\n","repo_name":"mark-torres10/COVID_Twitter_dashboard","sub_path":"app/backend/get_aggregate_google_API_data.py","file_name":"get_aggregate_google_API_data.py","file_ext":"py","file_size_in_byte":5269,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"44822646428","text":"import numpy as np\r\nimport cv2\r\nfrom matplotlib import pyplot as plt\r\n\r\n\r\ndef get_gray_his(img_file):\r\n image = cv2.imread(img_file, cv2.IMREAD_GRAYSCALE)\r\n count_gray = [0] * 256\r\n total = float((image.shape[0] - 2) * (image.shape[1] - 2))\r\n\r\n for i in range(image.shape[0]):\r\n for j in range(image.shape[1]):\r\n count_gray[image[i, j]] += 1 / total\r\n\r\n ind = np.arange(256)\r\n plt.title(\"Gray Histogram of \" + img_file.split('.')[0])\r\n plt.bar(ind, count_gray, width=1)\r\n\r\n plt.show()\r\n\r\n return count_gray\r\n\r\n\r\ndef get_grad_his(img_file):\r\n image = cv2.imread(img_file, cv2.IMREAD_GRAYSCALE)\r\n count_grad = [0] * 361\r\n total = float((image.shape[0] - 2) * (image.shape[1] - 2))\r\n\r\n for i in range(1, image.shape[0] - 1):\r\n for j in range(1, image.shape[1] - 1):\r\n i_x = int(image[i + 1, j]) - int(image[i - 1, j])\r\n i_y = int(image[i, j + 1]) - int(image[i, j - 1])\r\n\r\n seth = int((i_x ** 2 + i_y ** 2) ** 0.5)\r\n count_grad[seth] += 1 / total\r\n\r\n ind = np.arange(361)\r\n plt.title(\"Grad Histogram of \" + img_file.split('.')[0])\r\n plt.bar(ind, count_grad, width=1)\r\n\r\n plt.show()\r\n\r\n return count_grad","repo_name":"fffffarmer/IEE-homework","sub_path":"Exp10/2.py","file_name":"2.py","file_ext":"py","file_size_in_byte":1223,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"42707467063","text":"import pytest\n\nimport itertools\nimport tempfile\n\nimport matplotlib as mpl\nmpl.use('Agg') # backend plotting, i.e. to suppress window pops up\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport pandas as pd\n\nfrom e15190.neutron_wall import geometry as nwgeom\nfrom e15190.utilities import geometry as geom\n\n@pytest.fixture()\ndef nw_wall():\n return {AB: nwgeom.Wall(AB) for AB in 'AB'}\n\nclass TestWall:\n def test_read_from_inventor_readings(self, nw_wall):\n for AB in ('A', 'B'):\n wall = nw_wall[AB]\n bars = wall.read_from_inventor_readings(wall.path_inventor_readings)\n assert len(bars) == 25\n for bar in bars:\n assert isinstance(bar, nwgeom.Bar)\n\n def test_save_vertices_to_database(self, nw_wall):\n for AB in ('A', 'B'):\n wall = nw_wall[AB]\n bars = wall.read_from_inventor_readings(wall.path_inventor_readings)\n tmp_path = tempfile.NamedTemporaryFile(suffix='.dat').name\n wall.save_vertices_to_database('B', tmp_path, bars)\n df = pd.read_csv(tmp_path, delim_whitespace=True, comment='#')\n assert tuple(df.columns) == ('nwb-bar', 'dir_x', 'dir_y', 'dir_z', 'x', 'y', 'z')\n assert len(df) == 25 * 8 # n_bars * n_vertices\n \n def test_save_pca_to_database(self, nw_wall):\n for AB in ('A', 'B'):\n wall = nw_wall[AB]\n bars = wall.read_from_inventor_readings(wall.path_inventor_readings)\n tmp_path = tempfile.NamedTemporaryFile(suffix='.dat').name\n wall.save_pca_to_database('B', tmp_path, bars)\n df = pd.read_csv(tmp_path, delim_whitespace=True, comment='#')\n assert tuple(df.columns) == ('nwb-bar', 'vector', 'lab-x', 'lab-y', 'lab-z')\n assert len(df) == 25 * 4 # n_bars * (1 mean + 3 components)\n\n def test___init__(self):\n pyrex_wall = nwgeom.Wall('B', contain_pyrex=True, refresh_from_inventor_readings=False)\n nopyrex_wall = nwgeom.Wall('B', contain_pyrex=False, refresh_from_inventor_readings=False)\n\n for pyrex_bar, nopyrex_bar in zip(pyrex_wall.bars.values(), nopyrex_wall.bars.values()):\n assert pyrex_bar.contain_pyrex == True\n assert nopyrex_bar.contain_pyrex == False\n assert pyrex_bar.length > nopyrex_bar.length\n \n@pytest.fixture\ndef nw_bars():\n return dict(\n nwb_pyrex=nwgeom.Wall('B', contain_pyrex=True).bars,\n nwb_nopyrex=nwgeom.Wall('B', contain_pyrex=False).bars,\n )\n\nclass TestBar:\n def test___init__(self):\n # a hypothetical bar\n vertices = np.array([\n [5, 0, 0],\n [5, 0, 2],\n [5, 1, 0],\n [5, 1, 2],\n [-5, 0, 0],\n [-5, 0, 2],\n [-5, 1, 0],\n [-5, 1, 2],\n ])\n bar = nwgeom.Bar(vertices)\n expected_pca_components = np.array([\n [-1, 0, 0],\n [0, 0, 1],\n [0, 1, 0],\n ], dtype=float)\n assert np.allclose(bar.pca.components_, expected_pca_components)\n \n def test_length(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n assert bar.length == pytest.approx(76 * 2.54 + 2 * bar.pyrex_thickness, abs=0.01)\n for bar in nw_bars['nwb_nopyrex'].values():\n assert bar.length == pytest.approx(76 * 2.54, abs=0.01)\n \n def test_height(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n assert bar.height == pytest.approx(3 * 2.54 + 2 * bar.pyrex_thickness, abs=0.01)\n for bar in nw_bars['nwb_nopyrex'].values():\n assert bar.height == pytest.approx(3 * 2.54, abs=0.01)\n \n def test_thickness(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n assert bar.thickness == pytest.approx(2.5 * 2.54 + 2 * bar.pyrex_thickness, abs=0.01)\n for bar in nw_bars['nwb_nopyrex'].values():\n assert bar.thickness == pytest.approx(2.5 * 2.54, abs=0.01)\n\n def test_remove_pyrex(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n assert bar.contain_pyrex == True\n bar.remove_pyrex()\n assert bar.contain_pyrex == False\n with pytest.raises(Exception) as err:\n bar.remove_pyrex()\n\n for bar in nw_bars['nwb_nopyrex'].values():\n assert bar.contain_pyrex == False\n with pytest.raises(Exception) as err:\n bar.remove_pyrex()\n \n def test_add_pyrex(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n assert bar.contain_pyrex == True\n with pytest.raises(Exception) as err:\n bar.add_pyrex()\n for bar in nw_bars['nwb_nopyrex'].values():\n assert bar.contain_pyrex == False\n bar.add_pyrex()\n assert bar.contain_pyrex == True\n with pytest.raises(Exception) as err:\n bar.add_pyrex()\n\n def test_to_local_coordinates(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n # test single 3-tuple\n loc_coord = bar.to_local_coordinates([0, 0, 0])\n # bar centers should be close to zero along the 1st principal axis of the bar\n assert loc_coord[0] == pytest.approx(0, abs=10.0)\n # bar centers should be around 445 cm from the target along the beam direction\n assert loc_coord[2] == pytest.approx(445, abs=2.0)\n\n # test 2d-array with one row of 3-tuple\n assert np.allclose(bar.to_local_coordinates([[0, 0, 0]]), [loc_coord])\n\n # test an array of 3-tuples\n lab_coords = np.array(list(bar.vertices.values()))\n loc_coords = bar.to_local_coordinates(lab_coords)\n norms = np.linalg.norm(loc_coords, axis=1)\n # bar vertices should all be ~100 cm away from the bar centers origin\n assert np.all(np.isclose(norms, 100.0, atol=10.0))\n break\n \n def test_to_lab_coordinates(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n # test single 3-tuple\n lab_coords = bar.to_lab_coordinates([0, 0, 0])\n xz_distance = np.sqrt(lab_coords[0]**2 + lab_coords[2]**2)\n # bar centers should be around 445 cm from the target along the beam direction\n assert xz_distance == pytest.approx(445, abs=2.0)\n\n # test 2d-array with one row of 3-tuple\n assert np.allclose(bar.to_lab_coordinates([[0, 0, 0]]), [lab_coords])\n\n # test an array of 3-tuples\n loc_coords = np.array(list(bar.loc_vertices.values()))\n lab_coords = bar.to_lab_coordinates(loc_coords)\n norms = np.linalg.norm(lab_coords, axis=1)\n # bar vertices should all be at least 445 cm away from the target\n assert np.all(norms > 445)\n # all should have similar norms\n assert np.all(np.isclose(norms, norms[0], atol=10.0))\n # but not identical\n assert ~np.all(np.isclose(norms, norms[0], atol=5.0))\n \n def test_consistent_frame_transformation(self, nw_bars):\n rand_pos = np.random.uniform(-100, 100, size=(20, 3))\n for bar in nw_bars['nwb_pyrex'].values():\n loc_coords = bar.to_local_coordinates(rand_pos)\n lab_coords = bar.to_lab_coordinates(loc_coords)\n assert np.all(np.isclose(rand_pos, lab_coords))\n\n lab_coords = bar.to_lab_coordinates(rand_pos)\n loc_coords = bar.to_local_coordinates(lab_coords)\n assert np.all(np.isclose(rand_pos, loc_coords))\n \n def test_is_inside(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n # test single 3-tuple\n # bar center should be inside\n assert bar.is_inside([0, 0, 0], frame='local')\n # point far from bar center should not be inside\n assert ~bar.is_inside([1e2, 1e2, 1e2], frame='local')\n # point at the lab origin should not be inside\n assert ~bar.is_inside([0, 0, 0], frame='lab')\n # bar center in lab frame should be inside\n assert bar.is_inside(bar.pca.mean_, frame='lab')\n\n # test an array of 3-tuples\n # points near the bar center should be inside\n loc_coords = np.random.uniform(-0.1, 0.1, size=(20, 3))\n assert np.all(bar.is_inside(loc_coords, frame='local'))\n # points far from the bar center should not be inside\n loc_coords = np.random.uniform(1e2, 1e4, size=(20, 3))\n assert np.all(~bar.is_inside(loc_coords, frame='local'))\n # points near the lab origin should not be inside\n lab_coords = np.random.uniform(-0.1, 0.1, size=(20, 3))\n assert np.all(~bar.is_inside(lab_coords, frame='lab'))\n # points near the bar center in lab frame should be inside\n lab_coords = bar.pca.mean_ + np.random.uniform(-0.1, 0.1, size=(20, 3))\n assert np.all(bar.is_inside(lab_coords, frame='lab'))\n\n # some edge cases: corners, edges and faces\n bar_vertices = np.array(list(bar.vertices.values()))\n vertex_pairs = np.array(list(itertools.combinations(bar_vertices, 2)))\n bar_edges = 0.5 * np.sum(vertex_pairs, axis=1)\n vertex_triplets = np.array(list(itertools.combinations(bar_vertices, 3)))\n bar_faces = np.sum(vertex_triplets, axis=1) / 3\n\n tol = 1e-3 # 10 micrometer should be included\n assert np.all(bar.is_inside(bar_vertices, frame='lab', tol=tol))\n assert np.all(bar.is_inside(bar_edges, frame='lab', tol=tol))\n assert np.all(bar.is_inside(bar_faces, frame='lab', tol=tol))\n\n tol = 1e-8 # 0.1 nanometer should not be able to include everything\n coords = np.vstack([bar_vertices, bar_edges, bar_faces])\n assert ~np.all(bar.is_inside(coords, frame='lab', tol=tol))\n \n def test_randomize_from_local_x(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n tol = 1e-1\n\n # testing inside the bar\n loc_x = np.random.uniform(-0.5 * bar.length + tol, 0.5 * bar.length - tol, size=(20))\n\n lab_coords = bar.randomize_from_local_x(loc_x, return_frame='lab')\n assert np.all(bar.is_inside(lab_coords, frame='lab'))\n\n loc_coords = bar.randomize_from_local_x(loc_x, return_frame='local')\n assert np.all(bar.is_inside(loc_coords, frame='local'))\n assert np.allclose(loc_x, loc_coords[:, 0])\n\n # testing outside the bar\n loc_x = np.hstack([\n np.random.uniform(bar.length + tol, 2 * bar.length, size=(10)),\n np.random.uniform(-2 * bar.length, -bar.length - tol, size=(10)),\n ])\n\n lab_coords = bar.randomize_from_local_x(loc_x, return_frame='lab')\n assert ~np.any(bar.is_inside(lab_coords, frame='lab'))\n\n loc_coords = bar.randomize_from_local_x(loc_x, return_frame='local')\n assert ~np.any(bar.is_inside(loc_coords, frame='local'))\n assert np.allclose(loc_x, loc_coords[:, 0])\n\n # testing local_ynorm\n loc_coords = bar.randomize_from_local_x(loc_x, local_ynorm=0, return_frame='local')\n assert np.allclose(loc_coords[:, 1], 0)\n loc_coords = bar.randomize_from_local_x(loc_x, local_ynorm=[-0.2, 0.2], return_frame='local')\n assert np.allclose(loc_coords[:, 1], 0, atol=0.2 * bar.height + 1e-6)\n assert ~np.allclose(loc_coords[:, 1], 0, atol=1e-10)\n\n # testing local_znorm\n loc_coords = bar.randomize_from_local_x(loc_x, local_znorm=0, return_frame='local')\n assert np.allclose(loc_coords[:, 2], 0)\n loc_coords = bar.randomize_from_local_x(loc_x, local_znorm=[-0.2, 0.2], return_frame='local')\n assert np.allclose(loc_coords[:, 2], 0, atol=0.2 * bar.thickness + 1e-6)\n assert ~np.allclose(loc_coords[:, 2], 0, atol=1e-10)\n\n # testing random_seed\n rseed = np.random.randint(0, 100)\n # without fixed random seed, the randomization should be different\n coords0 = bar.randomize_from_local_x(loc_x)\n coords1 = bar.randomize_from_local_x(loc_x)\n assert ~np.allclose(coords0, coords1)\n # with fixed random seed, the randomization should be the same\n coords0 = bar.randomize_from_local_x(loc_x, random_seed=rseed)\n coords1 = bar.randomize_from_local_x(loc_x, random_seed=rseed)\n assert np.allclose(coords0, coords1)\n\n def test_construct_plotly_mesh3d(self, nw_bars):\n for bar in nw_bars['nwb_pyrex'].values():\n bar.construct_plotly_mesh3d()\n bar_vertices = [tuple(np.round(vertex, decimals=2)) for vertex in bar.vertices.values()]\n\n triangles = bar.triangle_mesh.get_triangles()\n tri_vertices = np.unique(np.round(triangles.reshape(-1, 3), decimals=2), axis=0)\n tri_vertices = [tuple(vertex) for vertex in tri_vertices]\n assert len(tri_vertices) == 8\n assert set(tri_vertices) == set(bar_vertices)\n \n def test_simple_simulation(self, nw_bars):\n n_rays = 20\n for bar in nw_bars['nwb_nopyrex'].values():\n result = bar.simple_simulation(n_rays=n_rays)\n assert result['intersections'].shape == (12, n_rays, 3)\n # rough check on coverage\n assert 20 < np.degrees(result['polar_range'][0]) < 40\n assert 40 < np.degrees(result['polar_range'][1]) < 60\n assert -35 < np.degrees(result['azimuth_range'][0]) < 35\n assert -35 < np.degrees(result['azimuth_range'][1]) < 35\n\n # every n_rays should have either zero or two intersections\n intersections = np.swapaxes(result['intersections'], 0, 1)\n norms = np.linalg.norm(intersections, axis=2)\n assert set(np.count_nonzero(norms, axis=1)).issubset({0, 2})\n\n # check random_seed\n rseeds = np.random.randint(0, 100)\n result0 = bar.simple_simulation(n_rays=n_rays, random_seed=rseeds)\n assert ~np.allclose(result['intersections'], result0['intersections'])\n result1 = bar.simple_simulation(n_rays=n_rays, random_seed=rseeds)\n assert np.allclose(result0['intersections'], result1['intersections'])\n \n def test_get_hit_positions(self, nw_bars):\n n_rays = 20\n for bar in nw_bars['nwb_nopyrex'].values():\n bar.simple_simulation(n_rays=n_rays)\n\n # default should be\n # hit_t = 'uniform\n # frame = 'local\n # coordinate = 'cartesian'\n rseed = np.random.randint(0, 100)\n hits = bar.get_hit_positions(random_seed=rseed)\n hits0 = bar.get_hit_positions(\n hit_t='uniform', frame='local', coordinate='cartesian',\n random_seed=rseed,\n )\n assert np.allclose(hits, hits0)\n\n # all hits are inside the bar\n n_hits = len(hits)\n if n_hits > 0:\n assert np.all(bar.is_inside(hits, frame='local'))\n \n # spherical lab frame\n hits = bar.get_hit_positions(frame='lab', coordinate='spherical')\n assert len(hits) == n_hits\n if n_hits > 0:\n hits = geom.spherical_to_cartesian(hits)\n assert np.all(bar.is_inside(hits, frame='lab'))\n \n # cartesian lab frame\n hits = bar.get_hit_positions(frame='lab', coordinate='cartesian')\n assert len(hits) == n_hits\n if n_hits > 0:\n assert np.all(bar.is_inside(hits, frame='lab'))\n\n # testing constant hit_t values\n hits0 = bar.get_hit_positions(hit_t=0)\n hits1 = bar.get_hit_positions(hit_t=1)\n hits_out_pos = bar.get_hit_positions(hit_t=2)\n hits_out_neg = bar.get_hit_positions(hit_t=-1)\n if n_hits > 0:\n assert np.all(bar.is_inside(hits0, frame='local'))\n assert np.all(bar.is_inside(hits1, frame='local'))\n assert np.all(bar.is_inside(0.5 * (hits0 + hits1), frame='local'))\n assert np.all(~bar.is_inside(hits_out_pos, frame='local'))\n assert np.all(~bar.is_inside(hits_out_neg, frame='local'))\n \n # testing a custom callable hit_t\n hit_t = lambda size: np.clip(0, 1, np.random.exponential(0.2, size=size))\n hits = bar.get_hit_positions(hit_t=hit_t)\n n_hits = len(hits)\n if n_hits > 0:\n assert np.all(bar.is_inside(hits, frame='local'))\n \n def test_draw_hit_pattern2d(self, nw_bars):\n fig, ax = plt.subplots()\n for bar in nw_bars['nwb_pyrex'].values():\n bar.simple_simulation(3)\n\n # spherical lab frame\n hits = bar.get_hit_positions(frame='lab', coordinate='spherical')\n hist = bar.draw_hit_pattern2d(hits, ax=ax, frame='lab', coordinate='spherical')\n # check if the histogram covers the entire bar\n assert len(hits) == pytest.approx(np.sum(hist[0]))\n\n # cartesian local frame\n hits = bar.get_hit_positions(frame='local', coordinate='cartesian')\n hist = bar.draw_hit_pattern2d(hits, ax=ax, frame='local', coordinate='cartesian')\n # check if the histogram covers the entire bar\n assert len(hits) == pytest.approx(np.sum(hist[0]))\n plt.close()\n","repo_name":"fanurs/data-analysis-e15190-e14030","sub_path":"tests/neutron_wall/test_geometry.py","file_name":"test_geometry.py","file_ext":"py","file_size_in_byte":17659,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"80"}
+{"seq_id":"33328760540","text":"import sys\n\nitems = {\n 'A01': {'price': 100},\n 'A02': {'price': 200},\n 'B01': {'price': 1000}\n}\n\ntax_rate = 0\n\ndef main():\n global tax_rate\n if len(sys.argv) < 2:\n print('税率を指定してください')\n exit()\n tax_rate = int(sys.argv[1])\n sum = 0\n while True:\n code = input('商品コードを入力してください(終了q):')\n if code == 'q':\n print(f'合計:{sum}円')\n tax = calcTax(sum)\n print(f'消費税:{tax}円 合計:{sum + tax}円')\n break\n if code in items:\n print(f\"商品コード:{code} 単価:{items[code]['price']}\")\n count = int(input('個数を入力してください:'))\n sum += items[code]['price'] * count\n else:\n print(f'商品コード:{code}は、存在しません')\n\ndef calcTax(sum):\n return int(sum * tax_rate / 100)\n\nif __name__ == '__main__':\n main()\n","repo_name":"Learning-FIT/Python","sub_path":"calc/calc4.py","file_name":"calc4.py","file_ext":"py","file_size_in_byte":973,"program_lang":"python","lang":"ja","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"22632580880","text":"#!/bin/python3\n\nimport os\nimport sys\n\n#\n# Complete the timeConversion function below.\n#\ndef timeConversion(s):\n #\n # The aim of this function is to use string manipulation and an if statement to \n # change the format of the time\n array = list(s)\n hour = s[0]+s[1] \n ampm = s[8]+s[9]\n \n if ampm == \"AM\":\n if hour == \"12\": \n hour = \"00\"\n return hour+\"\".join(array[2:8]) \n else:\n hour = int(hour)+12\n if hour == 24: \n hour = 12\n hour = str(hour)\n if len(hour)==1:\n hour = \"0\" + hour\n return hour+\"\".join(array[2:8])\n\n\n\nif __name__ == '__main__':\n f = open(os.environ['OUTPUT_PATH'], 'w')\n\n s = input()\n\n result = timeConversion(s)\n\n f.write(result + '\\n')\n\n f.close()\n","repo_name":"tauhir/HackerRank-Practice-Python-3","sub_path":"Solutions/Time Conversion.py","file_name":"Time Conversion.py","file_ext":"py","file_size_in_byte":789,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"6193412443","text":"from pathlib import Path\nfrom typing import List\nfrom PIL import Image\nfrom datetime import datetime\n\n\nTOP_LEFT_X = 1437\nTOP_LEFT_Y = 1338\n\n\ndef load_image_from_file(file: str) -> Image:\n image = Image.open(Path(file))\n image.convert(\"RGBA\")\n return image\n\n\ndef create_blank_canvas() -> Image:\n blank_canvas = Image.new(\"RGBA\", (6000, 6000), (0, 0, 0, 0))\n return blank_canvas\n\n\ndef convert_image_to_overlay(image: Image) -> Image:\n new_image = Image.new(\"RGBA\", (image.size[0] * 3, image.size[1] * 3), (0, 0, 0, 0))\n for i in range(image.size[0]):\n for j in range(image.size[1]):\n new_image.putpixel(((i * 3) + 1, (j * 3) + 1), image.getpixel((i, j)))\n return new_image\n\n\ndef place_overlay_on_canvas(overlay: Image, canvas: Image, x: int, y: int) -> Image:\n for i in range(overlay.size[0]):\n for j in range(overlay.size[1]):\n canvas.putpixel((x * 3 + i, y * 3 + j), overlay.getpixel((i, j)))\n return canvas\n\n\ndef save_image(image: Image, name: str) -> None:\n image.save(Path(\"output_images/archive\") / f\"{name}-{int(datetime.timestamp(datetime.now()))}.png\")\n image.save(Path(\"output_images\") / f\"{name}.png\")\n\n\ndef main():\n blank_canvas = create_blank_canvas()\n\n start_CHAD = load_image_from_file(file=\"start_CHAD_with_link.png\")\n overlay_CHAD = convert_image_to_overlay(image=start_CHAD)\n canvas = place_overlay_on_canvas(overlay=overlay_CHAD, canvas=blank_canvas, x=TOP_LEFT_X, y=TOP_LEFT_Y)\n\n # start_jrpg = load_image_from_file(file=\"start_JRPG.png\")\n # overlay_jrpg = convert_image_to_overlay(image=start_jrpg)\n # canvas = place_overlay_on_canvas(overlay=overlay_jrpg, canvas=canvas, x=1784, y=1640)\n\n # start_duck = load_image_from_file(file=\"start_DUCK.png\")\n # overlay_duck = convert_image_to_overlay(image=start_duck)\n # canvas = place_overlay_on_canvas(overlay=overlay_duck, canvas=canvas, x=1887, y=1099)\n\n save_image(image=canvas, name=\"final_CHAD\")\n\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"alexshore/suprCHAD","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":2009,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"70347047938","text":"from flask import render_template, request, Blueprint\nfrom webapp.database import db, Grein\nfrom datetime import datetime, timedelta\n\ncontent_bp = Blueprint('content', __name__, url_prefix='', static_folder='content_static', template_folder='templates')\n\n@content_bp.route('/brøv/')\ndef show_article(article_id):\n art = artiklar.query.join(Verification).filter(artiklar.art_id == article_id, Verification.status == 'verified').first()\n if art is None:\n return render_template('error.html',error=\"Brævið finst ikki\")\n art_dict = rowToDict(art)\n date_string = art_dict[\"created_stamp\"].strftime('%Y-%m-%d')\n art_dict[\"date_string\"] = date_string\n return render_template('article.html',art_dict=art_dict)\n\n@content_bp.route('/index_loadMore', methods=['POST', 'GET'])\ndef index_loadMore():\n ## fetch last article when scrolled to bottom of index page ##\n last_floating_box_id = request.form.get('lastFloatingBoxId')\n print(\"last floating box id\",last_floating_box_id)\n\n ## find older articles than the last one on the page\n\n entry = artiklar.query.filter_by(art_id=last_floating_box_id).first()\n ## If the entry was found, retrieve the two articles written prior to it ##\n if entry:\n two_articles_prior = artiklar.query.filter(\n artiklar.created_stamp < entry.created_stamp,\n artiklar.verified == True\n ).order_by(artiklar.created_stamp.desc()).limit(2).all()\n seinastu_artiklar_dict = latest_articles_dict(two_articles_prior)\n\n\n for article in seinastu_artiklar_dict:\n time_delta = timeDelta(seinastu_artiklar_dict[article][\"created_stamp\"])\n seinastu_artiklar_dict[article][\"time_delta\"] = time_delta\n\n \n preview_text = preview_article(seinastu_artiklar_dict[article][\"skriv\"])\n seinastu_artiklar_dict[article][\"preview_text\"] = preview_text\n\n \n return render_template('base-prev.html', art=seinastu_artiklar_dict)","repo_name":"Simuns/perspektiv","sub_path":"src/webapp/content/routes.py","file_name":"routes.py","file_ext":"py","file_size_in_byte":2000,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"17515872609","text":"import FreeCAD\n\nimport ObjectsFem\n\nfrom . import manager\nfrom .boxanalysis_base import setup_boxanalysisbase\nfrom .manager import init_doc\n\n\ndef get_information():\n return {\n \"name\": \"Box Analysis Static\",\n \"meshtype\": \"solid\",\n \"meshelement\": \"Tet10\",\n \"constraints\": [\"fixed\", \"force\", \"pressure\"],\n \"solvers\": [\"calculix\", \"ccxtools\", \"elmer\"],\n \"material\": \"solid\",\n \"equations\": [\"mechanical\"]\n }\n\n\ndef get_explanation(header=\"\"):\n return header + \"\"\"\n\nTo run the example from Python console use:\nfrom femexamples.boxanalysis_static import setup\nsetup()\n\n\nSee forum topic post:\n...\n\n\"\"\"\n\n\ndef setup(doc=None, solvertype=\"ccxtools\"):\n\n # init FreeCAD document\n if doc is None:\n doc = init_doc()\n\n # explanation object\n # just keep the following line and change text string in get_explanation method\n manager.add_explanation_obj(doc, get_explanation(manager.get_header(get_information())))\n\n # setup box static, add a fixed, force and a pressure constraint\n doc = setup_boxanalysisbase(doc, solvertype)\n geom_obj = doc.Box\n analysis = doc.Analysis\n\n # solver\n if solvertype == \"calculix\":\n solver_obj = ObjectsFem.makeSolverCalculix(doc, \"SolverCalculiX\")\n elif solvertype == \"ccxtools\":\n solver_obj = ObjectsFem.makeSolverCalculixCcxTools(doc, \"CalculiXccxTools\")\n solver_obj.WorkingDir = u\"\"\n elif solvertype == \"elmer\":\n solver_obj = ObjectsFem.makeSolverElmer(doc, \"SolverElmer\")\n ObjectsFem.makeEquationElasticity(doc, solver_obj)\n else:\n FreeCAD.Console.PrintWarning(\n \"Unknown or unsupported solver type: {}. \"\n \"No solver object was created.\\n\".format(solvertype)\n )\n if solvertype == \"calculix\" or solvertype == \"ccxtools\":\n solver_obj.SplitInputWriter = False\n solver_obj.AnalysisType = \"static\"\n solver_obj.GeometricalNonlinearity = \"linear\"\n solver_obj.ThermoMechSteadyState = False\n solver_obj.MatrixSolverType = \"default\"\n solver_obj.IterationsControlParameterTimeUse = False\n analysis.addObject(solver_obj)\n\n # constraint fixed\n con_fixed = ObjectsFem.makeConstraintFixed(doc, \"FemConstraintFixed\")\n con_fixed.References = [(geom_obj, \"Face1\")]\n analysis.addObject(con_fixed)\n\n # constraint force\n con_force = ObjectsFem.makeConstraintForce(doc, \"FemConstraintForce\")\n con_force.References = [(geom_obj, \"Face6\")]\n con_force.Force = \"40000.0 N\"\n con_force.Direction = (geom_obj, [\"Edge5\"])\n con_force.Reversed = True\n analysis.addObject(con_force)\n\n # constraint pressure\n con_pressure = ObjectsFem.makeConstraintPressure(doc, name=\"FemConstraintPressure\")\n con_pressure.References = [(geom_obj, \"Face2\")]\n con_pressure.Pressure = \"1000.0 MPa\"\n con_pressure.Reversed = False\n analysis.addObject(con_pressure)\n\n doc.recompute()\n return doc\n","repo_name":"FreeCAD/FreeCAD","sub_path":"src/Mod/Fem/femexamples/boxanalysis_static.py","file_name":"boxanalysis_static.py","file_ext":"py","file_size_in_byte":2940,"program_lang":"python","lang":"en","doc_type":"code","stars":15748,"dataset":"github-code","pt":"80"}
+{"seq_id":"5778070969","text":"from rest_framework import serializers, status\nfrom rest_framework.response import Response\nfrom rest_framework.decorators import api_view, permission_classes\nfrom rest_framework.permissions import IsAuthenticated,AllowAny\nfrom apps.userprofile.models import Profile\nfrom .serializers import UserRegistrationSerializer, ProfileRegistrationSerializer, WebSerializer\nfrom .utilities import text_extractor, download_file, crawler, fill_web_form, extract_result_table \n\n\n@api_view(['POST'])\n@permission_classes([AllowAny])\ndef registration_view(request):\n usrSerializer= UserRegistrationSerializer(data= request.data)\n proSerializer= ProfileRegistrationSerializer(data= request.data)\n data, include= {}, ['username', 'email', 'phoneNumber', 'baseLocation', 'jobDescription', 'age']\n u, p= usrSerializer.is_valid(), proSerializer.is_valid()\n if u and p :\n user= usrSerializer.create(usrSerializer.validated_data)\n #validated_data= usrSerializer.validate()\n user.set_password(usrSerializer.validated_data['password'])\n user.save()\n profile= proSerializer.save(user= user)\n profile.save()\n for key, value in user.__dict__.items():\n if key in include:\n data[key]= value\n for key, value in profile.__dict__.items():\n if key in include:\n data[key]= value\n resp= Response(data)\n resp.status_code= 201\n else:\n data= usrSerializer.errors\n data.update(proSerializer.errors)\n resp= Response(data)\n resp.status_code= 400\n return resp\n\n@api_view(['GET'])\n@permission_classes([IsAuthenticated])\ndef getuser_view(request):\n user = request.user\n data, include= {}, ['username', 'email', 'phoneNumber', 'baseLocation', 'jobDescription', 'age']\n for key, value in user.__dict__.items():\n if key in include:\n data[key]= value\n try:\n profile = Profile.objects.get(user= user)\n for key, value in profile.__dict__.items():\n if key in include:\n data[key]= value\n except Profile.DoesNotExist:\n pass\n resp= Response(data)\n return resp\n\n@api_view(['GET'])\n@permission_classes([AllowAny])\ndef pdfcrawl_view(request, crawlLevel= '1'):\n pdfurl= 'https://www.treasury.gov/ofac/downloads/mbs/mbslist.pdf'\n pdfFile= download_file(pdfurl)\n pdfData= text_extractor(pdfFile= pdfFile)\n pdfText= pdfData[0]\n urlList= pdfData[1]\n crawledList= crawler(urlList, int(crawlLevel))\n pdfText= pdfText.replace('\\n', ' ')\n data = {'crawledList':crawledList, 'pdfData': pdfText}\n resp= Response(data)\n return resp\n\n@api_view(['POST'])\n@permission_classes([AllowAny])\ndef webcrawl_view(request):\n weburl= 'https://sanctionssearch.ofac.treas.gov/'\n serializer = WebSerializer(request.data)\n pageData= fill_web_form(weburl, serializer.data)\n extracted_data= extract_result_table(pageData, weburl) \n scraped_data= extracted_data[0]\n urlList= extracted_data[1]\n data = {'scrapedData': scraped_data, 'crawledList':urlList}\n resp= Response(data)\n return resp\n\n \n","repo_name":"arunavn/crawler","sub_path":"apps/api/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":3137,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"29852312142","text":"# -*- coding: utf-8 -*-\n\nimport inspect\nimport os\nimport pytest\nimport re\nimport sys\nimport unittest.mock as mock\n\nimport cpboard\n\nfrom .utils import get_board\nfrom .fixtures import * # noqa: F403,F401\n\n\ndef pytest_addoption(parser):\n group = parser.getgroup('circuitpython')\n group.addoption('--board', dest='boarddev', help='build_name, vid:pid or /dev/tty')\n group.addoption('--file-overwrite', action='store_true', default=False, dest='file_overwrite',\n help=\"Force file upload, don't check\")\n\n\n# Import machinery\n# https://stackoverflow.com/questions/43571737/how-to-implement-an-import-hook-that-can-modify-the-source-code-on-the-fly-using\n\n_builtins_import = __import__\n\n\n# https://github.com/posener/mock-import/blob/master/mock_import.py\n# https://stackoverflow.com/questions/8658043/how-to-mock-an-import\ndef try_import(module_name, *args, **kwargs):\n try:\n return _builtins_import(module_name, *args, **kwargs)\n except ImportError:\n return mock.MagicMock()\n\n\n# Mock missing modules since they are assumed to be present on the board\n@pytest.hookimpl(tryfirst=True)\ndef pytest_pycollect_makemodule(path, parent):\n config = parent.config\n if not config.option.boarddev:\n return\n\n if 'test_board_' in str(path):\n debug = config.option.verbose > 1\n with mock.patch('builtins.__import__', try_import):\n mod = path.pyimport(ensuresyspath='prepend')\n if debug:\n print('Import module:', mod.__name__)\n\n\ndef remote_path(session, f):\n rel = os.path.relpath(str(f), str(session.fspath))\n rpath = os.path.join('/tmp.pytest', session.name, rel)\n return rpath\n\n\n# Mark tests, rewrite assert statements and upload files to the board\n@pytest.hookimpl(tryfirst=True)\ndef pytest_runtestloop(session):\n config = session.config\n if not config.option.boarddev:\n return\n\n if config.option.collectonly:\n return\n\n verbose = config.option.verbose\n\n # print(\"Session\", session, session.fspath)\n # print(dir(session))\n\n for item in session.items:\n # print('item', item, item.parent)\n # print(' fixturenames', item.fixturenames)\n # print(dir(item), '\\n')\n if os.path.basename(item.name).startswith('test_board_') or \\\n os.path.basename(item.parent.name).startswith('test_board_') or \\\n (item.cls and item.cls.__name__.startswith('TestBoard')):\n item.add_marker('board')\n\n files = []\n for item in session.items:\n marker = item.get_marker('board')\n if marker is None:\n continue\n\n item.rpath = remote_path(session, item.fspath)\n path = str(item.fspath)\n if path not in files:\n files.append(path)\n\n # Access pytest internals to cover all fixtures\n fm = session._fixturemanager\n for argname, fixturedefs in fm._arg2fixturedefs.items():\n if not fixturedefs:\n continue\n for fixturedef in fixturedefs:\n if not fixturedef.baseid:\n continue\n path = os.path.join(str(session.fspath), fixturedef.baseid)\n # print('fixturedef', fixturedef, fixturedef.func, path)\n # print(dir(fixturedef))\n if os.path.basename(path).startswith('test_board_') or fixturedef.func.__name__.startswith('board_'):\n fixturedef.rpath = remote_path(session, path)\n if path not in files:\n files.append(path)\n\n if not files:\n return\n\n board = get_board(session)\n\n print('\\nCopy files to board: ', end='')\n if verbose:\n print()\n\n disk = cpboard.ReplDisk(board)\n\n overwrite = config.option.file_overwrite\n\n def copyfile(src, dst):\n if verbose:\n print(' ', dst, end='')\n else:\n print('.', end='', flush=True)\n disk.makedirs(os.path.dirname(dst), exist_ok=True)\n copied = disk.copy(src, dst, force=overwrite)\n if verbose:\n print('' if copied else ' (unchanged)')\n\n copyfile(str(os.path.join(os.path.dirname(__file__), 'boardlib', 'pytest.py')), '/lib/pytest.py')\n\n for f in files:\n src = str(f)\n dst = remote_path(session, f)\n\n if config.getvalue(\"assertmode\") == \"rewrite\":\n src = assert_rewrite_module(session, src)\n\n copyfile(src, dst)\n\n if not verbose:\n print()\n\n\ndef create_traceback(e, path):\n if not e.exc:\n return False\n path = str(path)\n fname = os.path.basename(path)\n for tb in e.tb:\n # print('tb', tb)\n if fname in tb[0]:\n tb = [(path, tb[1], tb[2])]\n e.exc.__traceback__ = e.create_traceback(tb=tb)\n return True\n return False\n\n\ndef remote_import(session, path):\n debug = session.config.option.verbose > 1\n if debug:\n print('remote_import', path)\n board = session.board\n\n fname = os.path.basename(path)\n modname = os.path.splitext(fname)[0]\n\n command = '%r in globals()' % modname\n imported = board.eval(command, reset_repl=False, raise_remote=False)\n if debug:\n print('imported', imported)\n if imported:\n return\n\n command = 'import os\\n'\n command += 'os.chdir(%r)\\n' % os.path.dirname(path)\n command += 'import gc; gc.collect()\\n'\n if debug:\n command += 'print(\"Free mem\", gc.mem_free())\\n'\n command += 'import %s\\n' % modname\n if debug:\n command += 'print(globals())\\n'\n print('command:\\n', command)\n try:\n board.exec(command, reset_repl=False, raise_remote=False, out=sys.stdout)\n except cpboard.CPboardRemoteError as e:\n if debug:\n print('remote_import: e=', e)\n msg = \"Failed to import '%s'\" % (modname,)\n if e.exc_name:\n msg += '(%s: %s)' % (e.exc_name, e.exc_val)\n raise ImportError(msg) from e\n\n\n# Import test files on the board\ndef pytest_runtest_setup(item):\n config = item.config\n if not config.option.boarddev:\n return\n\n debug = config.option.verbose > 1\n if debug:\n print('pytest_runtest_setup', item)\n marker = item.get_marker('board')\n if marker is None:\n return\n\n remote_import(item.session, item.rpath)\n\n\n# Wrap fixture functions and execute them on the board\ndef pytest_fixture_setup(fixturedef, request):\n if not request.session.config.option.boarddev:\n return\n\n def fixture_board_wrapper(request, **kwargs):\n __tracebackhide__ = True\n if debug:\n print('fixture_board_wrapper:', request, request)\n print()\n # print(dir(request))\n # print('fixture_board_wrapper: .func', fixture_board_wrapper.func)\n # print('fixture_board_wrapper:', request, dir(request))\n board = request.session.board\n\n remote_import(request.session, fixturedef.rpath)\n\n args = [repr('request')] # dummy value for request argument\n for key in kwargs.keys():\n args.append('%s=fixture_%s_val' % (key, key))\n\n fname = os.path.basename(fixturedef.rpath)\n modname = os.path.splitext(fname)[0]\n # modname = os.path.splitext(fixturedef.baseid)[0]\n argname = fixturedef.argname\n command = 'res = %s.%s(%s)\\n' % (modname, func.__name__, ', '.join(args))\n command += 'fixture_%s = res\\n' % (argname,)\n command += 'fixture_%s_val = res\\n' % (argname,)\n\n if debug:\n command += 'print(globals())\\n'\n print('command:\\n', command)\n\n try:\n board.exec(command, reset_repl=False, raise_remote=False, out=sys.stdout)\n res = board.eval('res', reset_repl=False, raise_remote=False, strict=False)\n except cpboard.CPboardRemoteError as e:\n if debug:\n print('fixture_board_wrapper: e=', e)\n if e.exc and create_traceback(e, fixturedef.rpath):\n raise e.exc from None\n raise\n\n if debug:\n print('res: %r' % (res,))\n\n return res\n\n def fixture_board_wrapper_yield(request, **kwargs):\n __tracebackhide__ = True\n print('fixture_board_wrapper_yield:', request.function)\n board = request.session.board\n\n remote_import(request.session, fixturedef.rpath)\n\n args = [repr('request')] # dummy value for request argument\n for key in kwargs.keys():\n args.append('%s=fixture_%s_val' % (key, key))\n\n fname = os.path.basename(fixturedef.rpath)\n modname = os.path.splitext(fname)[0]\n # modname = os.path.splitext(fixturedef.baseid)[0]\n argname = fixturedef.argname\n command = 'fixture_%s = %s.%s(%r)\\n' % (argname, modname, func.__name__, ', '.join(args))\n command += 'res = next(fixture_%s)\\n' % (argname,)\n command += 'fixture_%s_val = res\\n' % (argname,)\n\n if debug:\n command += 'print(globals())\\n'\n print('command:\\n', command)\n\n try:\n board.exec(command, reset_repl=False, raise_remote=False, out=sys.stdout)\n res = board.eval('res', reset_repl=False, raise_remote=False, strict=False)\n except cpboard.CPboardRemoteError as e:\n if debug:\n print('fixture_board_wrapper_yield: e=', e)\n if e.exc and create_traceback(e, fixturedef.rpath):\n raise e.exc from None\n raise\n\n yield res\n\n board.exec('next(fixture_%s)' % func.__name__, out=sys.stdout, reset_repl=False, raise_remote=True)\n\n if not getattr(request.session, 'board', None) or not getattr(fixturedef, 'rpath', ''):\n return\n\n debug = request.config.option.verbose > 1\n if debug:\n print('pytest_fixture_setup', fixturedef)\n print('fixturedef.func', fixturedef.func)\n\n # Only wrap the first time called\n if getattr(fixturedef.func, '__wrapped_fixture__', None):\n return\n\n func = fixturedef.func\n if inspect.isgeneratorfunction(fixturedef.func):\n fixturedef.func = fixture_board_wrapper_yield\n else:\n fixturedef.func = fixture_board_wrapper\n fixturedef.func.__wrapped_fixture__ = func\n\n\ndef delete_variables(board, variables, debug):\n command = ''\n for var in variables:\n command += 'try: del %s\\nexcept (NameError, KeyError): pass\\n' % (var,)\n command += '__import__(\"gc\").collect()\\n'\n\n if debug:\n command += 'print(globals())\\n'\n print('command:\\n', command)\n\n board.exec(command, out=sys.stdout, reset_repl=False, raise_remote=True)\n\n\n# Clean out fixture variables from the namespace\ndef pytest_fixture_post_finalizer(fixturedef, request):\n session = request.session\n config = session.config\n if not config.option.boarddev:\n return\n\n debug = config.option.verbose > 1\n if debug:\n print('\\npytest_fixture_post_finalizer:', fixturedef, request)\n\n func = getattr(fixturedef.func, '__wrapped_fixture__', None)\n if not func:\n return\n\n argname = fixturedef.argname\n variables = ['fixture_%s' % (argname,), 'fixture_%s_val' % (argname,), 'res']\n delete_variables(session.board, variables, debug)\n\n\n# Run test functions marked with 'board' on the board\ndef pytest_pyfunc_call(pyfuncitem):\n config = pyfuncitem.session.config\n if not config.option.boarddev:\n return\n\n debug = config.option.verbose > 1\n\n marker = pyfuncitem.get_marker('board')\n if debug:\n print('\\n\\npytest_pyfunc_call: item:', pyfuncitem, 'parent:', pyfuncitem.parent, 'marker:', marker)\n\n if marker is None:\n return\n\n __tracebackhide__ = True\n testfunction = pyfuncitem.obj\n if pyfuncitem._isyieldedfunction():\n # testfunction(*pyfuncitem._args)\n raise NotImplementedError\n else:\n funcargs = pyfuncitem.funcargs\n # testargs = {}\n # for arg in pyfuncitem._fixtureinfo.argnames:\n # testargs[arg] = funcargs[arg]\n # testfunction(**testargs)\n\n # print('pytest_pyfunc_call: testargs =', testargs, 'testfunction = ', testfunction)\n # print('pytest_pyfunc_call: pyfuncitem =', pyfuncitem, dir(pyfuncitem))\n # print('pytest_pyfunc_call: pyfuncitem.fixturenames =', pyfuncitem.fixturenames)\n # print('pytest_pyfunc_call: pyfuncitem.funcargs =', pyfuncitem.funcargs)\n # print('pytest_pyfunc_call: pyfuncitem.param =', getattr(pyfuncitem, 'param', \"object has no attribute 'param'\"))\n # print('pytest_pyfunc_call: board =', pyfuncitem.session.board)\n\n board = pyfuncitem.session.board\n\n command = ''\n\n testargs = []\n for arg in pyfuncitem._fixtureinfo.argnames:\n fixturevar = 'fixture_%s_val' % (arg,)\n argvar = 'funcarg_%s_val' % (arg,)\n # If this is not a remote fixture argument, use the passed in argument value\n command += 'try: %s = %s\\nexcept (NameError, KeyError): %s = %r\\n' % (argvar, fixturevar, argvar, funcargs[arg])\n testargs.append('%s=%s' % (arg, argvar))\n # testargs.append('%s=%r' % (arg, funcargs[arg]))\n\n fname = os.path.basename(pyfuncitem.rpath)\n modname = os.path.splitext(fname)[0]\n\n if pyfuncitem.cls:\n name = pyfuncitem.cls.__name__\n varname = 'test_class_%s' % (name,)\n # Instantiate the test class if it's not already done\n command += 'try: %s\\nexcept (NameError, KeyError): %s = %s.%s()\\n' % (varname, varname, modname, name)\n command += varname\n else:\n command += modname\n\n command += '.%s(%s)\\n' % (testfunction.__name__, ', '.join(testargs))\n\n # command = '%s.%s(%s)\\n' % (modname, testfunction.__name__, ', '.join(testargs))\n\n if debug:\n command += 'print(globals())\\n'\n print('command:\\n', command)\n\n try:\n board.exec(command, reset_repl=False, raise_remote=False, out=sys.stdout)\n except cpboard.CPboardRemoteError as e:\n if debug:\n print('pytest_pyfunc_call: e=', e)\n if e.exc:\n for tb in e.tb:\n if fname in tb[0]:\n tb = [(str(pyfuncitem.fspath), tb[1], tb[2])]\n if debug:\n print('tb', tb)\n e.exc.__traceback__ = e.create_traceback(tb=tb)\n raise e.exc from None\n raise\n\n return True\n\n\n# Clean out funcarg variables from the namespace\ndef pytest_runtest_teardown(item, nextitem):\n config = item.config\n if not config.option.boarddev:\n return\n\n debug = config.option.verbose > 1\n if debug:\n print('\\n\\npytest_runtest_teardown: item =', item, item.parent)\n\n marker = item.get_marker('board')\n if marker is None:\n return\n\n try:\n argnames = item._fixtureinfo.argnames\n except Exception:\n return\n\n variables = ['funcarg_%s_val' % (arg,) for arg in argnames]\n delete_variables(item.session.board, variables, debug)\n\n\ndef assert_rewrite_module(session, fname):\n debug = session.config.option.verbose > 2\n with open(fname) as f:\n source = f.read()\n\n s = []\n changed = False\n for line in source.splitlines():\n if re.match(r'\\s+assert\\s+', line):\n org = line\n line = assert_rewrite(line, debug)\n if line != org:\n changed = True\n s.append(line)\n\n if not changed:\n return fname\n\n rewrite = '\\n'.join(s)\n if debug:\n print('\\nassert_rewrite_module(%r)' % fname)\n print('--------------------------------------------------------------------------------')\n print(rewrite)\n print('--------------------------------------------------------------------------------')\n\n cache_dir = os.path.join(str(session.fspath), \".pytest_board_cache\")\n rel = os.path.relpath(fname, str(session.fspath))\n dst = os.path.join(cache_dir, rel)\n if debug:\n print('dst', dst)\n\n try:\n os.makedirs(os.path.dirname(dst), exist_ok=True)\n except OSError:\n return fname\n\n with open(dst, 'w') as f:\n f.write(rewrite)\n\n return dst\n\n\nimport token, symbol, parser\n\n\ndef assert_rewrite(line, debug):\n org_line = line\n map = dict(token.tok_name)\n map.update(symbol.sym_name)\n\n # https://stackoverflow.com/a/5454348\n def shallow(ast):\n if not isinstance(ast, list):\n return ast\n if len(ast) == 2:\n return shallow(ast[1])\n return [map[ast[0]]] + [shallow(a) for a in ast[1:]]\n\n try:\n ast = shallow(parser.st2list(parser.suite(line.strip())))\n except SyntaxError as e:\n if debug:\n print('assert_rewrite: Parsing error', e)\n return org_line\n\n if debug:\n print('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', line)\n import pprint\n pprint.pprint(ast)\n\n try:\n if ast[0] != 'file_input' or ast[1][0] != 'simple_stmt' or ast[1][1][0] != 'assert_stmt':\n return org_line\n simple_stmt = ast[1]\n comment = simple_stmt[2]\n assert_stmt = ast[1][1]\n expression = assert_stmt[2]\n except IndexError:\n return org_line\n\n if len(assert_stmt) > 3: # Already has a message\n return org_line\n\n if debug:\n print('comment', comment)\n if comment:\n line = line[:line.index(comment)].rstrip()\n if debug:\n print('new line: %r' % line)\n\n if debug:\n print('assert_stmt', len(assert_stmt), assert_stmt)\n print('expression', expression)\n\n ws, assrt, rest = line.partition('assert')\n\n if not isinstance(expression, list):\n rewrite = ws + '____l = ' + expression + '; assert ____l, \"%r\" % ____l'\n return rewrite\n\n # TODO: expression ['not_test', 'not', 'False']\n # expression ['not_test', 'not', ['comparison', '1', '==', '2']]\n if len(expression) < 4 or expression[0] != 'comparison':\n return org_line\n\n # TODO: expression ['comparison', '1', '<=', '1', '<=', '1']\n if len(expression) > 4:\n return org_line\n\n op = expression[2]\n if debug:\n print('left', expression[1])\n print('op', op)\n print('right', expression[3])\n\n # TODO: op ['comp_op', 'is', 'not']\n if isinstance(op, list):\n return org_line\n\n # In case of mutiple op's in the line, find the correct one to split on\n\n def flatten(lst):\n for e in lst:\n if isinstance(e, list):\n yield from flatten(e)\n else:\n yield e\n\n num_ops = list(flatten([expression[1]])).count(op)\n if debug:\n print('num_ops', num_ops)\n print('rest', rest)\n\n index = -1\n for num in range(num_ops + 1):\n index = rest.find(op, index + 1)\n if debug:\n print('index', index)\n if index == -1:\n return org_line\n\n left = rest[:index].strip()\n right = rest[index + len(op):].strip()\n if debug:\n print('left: %r' % left)\n print('right: %r' % right)\n\n rewrite = ws + '____l = ' + left + '; ____r = ' + right + '; assert ____l ' + op + ' ____r, \"%r ' + op + ' %r\" % (____l, ____r)'\n if debug:\n print('rewrite', rewrite)\n\n return rewrite\n","repo_name":"notro/pytest-circuitpython","sub_path":"pytest_circuitpython/__init__.py","file_name":"__init__.py","file_ext":"py","file_size_in_byte":19227,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"80"}
+{"seq_id":"26574017211","text":"from functools import partial\n\nfrom abstracts.graphics_abc import GraphicsABC\nfrom components.graphics import TurtleGraphics, PygGraphics\nfrom components.simulation import Simulation\nfrom components.camera import Camera\nfrom components.color import RGBA\nfrom components.frametime import FrameTimeHandler\nfrom components.draw_call import DrawCall\n\n\ndef main() -> None:\n width = 1760\n height = 960\n background_color = RGBA(0.15, 0.15, 0.15, 1.0)\n\n graphics = PygGraphics(width, height)\n camera = Camera(width, height)\n draw_call = DrawCall(graphics, camera)\n frame_timing = FrameTimeHandler(10)\n\n graphics.set_title(\"Physics System\")\n graphics.set_background_color(background_color)\n\n simulation = Simulation(draw_call)\n simulation.setup_objects()\n GraphicsHandler(graphics, simulation, camera, frame_timing)\n\n\nclass GraphicsHandler:\n def __init__(\n self,\n graphics: GraphicsABC,\n simulation: Simulation,\n camera: Camera,\n frame_timing: FrameTimeHandler,\n ):\n self.graphics = graphics\n self.simulation = simulation\n self.camera = camera\n self.frame_timing = frame_timing\n self.previous_pointer = graphics.get_pointer_xy()\n self.register_keys()\n self.draw_loop()\n\n def handle_events(self) -> None:\n self.on_mouse_move()\n self.on_mouse_wheel_scroll()\n self.on_window_resize()\n\n def register_keys(self) -> None:\n camera = self.camera\n simulation = self.simulation\n\n step_val = 60.0\n\n increase_distance = partial(camera.increment_planes, step_val)\n decrease_distance = partial(camera.increment_planes, -step_val)\n increase_timestep = partial(simulation.increment_timestep, 100)\n decrease_timestep = partial(simulation.increment_timestep, -100)\n\n move_forward = partial(camera.increment_position_z, step_val)\n move_backward = partial(camera.increment_position_z, -step_val)\n move_right = partial(camera.increment_position_x, step_val)\n move_left = partial(camera.increment_position_x, -step_val)\n move_up = partial(camera.increment_position_y, -step_val)\n move_down = partial(camera.increment_position_y, step_val)\n\n toggle_frustum = partial(camera.toggle_frustum_clipping)\n\n reset = partial(camera.reset)\n\n self.graphics.register_onkeypress(move_forward, \"w\")\n self.graphics.register_onkeypress(move_backward, \"s\")\n self.graphics.register_onkeypress(move_left, \"a\")\n self.graphics.register_onkeypress(move_right, \"d\")\n\n self.graphics.register_onkeypress(move_up, \"Up\")\n self.graphics.register_onkeypress(move_down, \"Down\")\n self.graphics.register_onkeypress(toggle_frustum, \"o\", False)\n\n self.graphics.register_onkeypress(reset, \"r\", False)\n self.graphics.register_onkeypress(increase_distance, \"e\")\n self.graphics.register_onkeypress(decrease_distance, \"q\")\n self.graphics.register_onkeypress(increase_timestep, \".\")\n self.graphics.register_onkeypress(decrease_timestep, \",\")\n\n def on_window_resize(self):\n g_width = self.graphics.width\n g_height = self.graphics.height\n\n width = self.graphics.get_width()\n height = self.graphics.get_height()\n\n # if g_width != width or g_height != height:\n # self.graphics.setup_coordinates(width, height)\n\n def on_mouse_wheel_scroll(self) -> None:\n pass\n\n def on_mouse_move(self) -> None:\n px, py = self.previous_pointer\n nx, ny = self.graphics.get_pointer_xy()\n\n if px != nx or py != ny:\n dx, dy = self.graphics.get_pointer_xy()\n camera = self.camera\n camera.handle_mouse_movement(dx, dy)\n\n def on_draw(self) -> None:\n frametime = self.frame_timing.get_frametime_data()\n self.graphics.clear_screen()\n self.simulation.simulate(self.graphics, frametime)\n self.frame_timing.tick()\n self.graphics.update()\n\n def draw_loop(self) -> None:\n while True:\n self.handle_events()\n self.on_draw()\n\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"syn-chromatic/python-g-engine","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":4183,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"23658624704","text":"import os\nimport socket\nimport time\n\nimport requests\nfrom flask import current_app as app\n\nfrom . import celery\n\ndef search_songs(**args):\n\n search_url = app.config['CLOUD_MUSIC_API_HOST'] + '/search'\n resp = requests.get(search_url, params=args)\n\n if resp.status_code != 200:\n app.logger.error(resp.text)\n return 'Something wrong with the api.', 500\n\n result = resp.json()['result']\n songs, song_count = result['songs'], result['songCount']\n\n return {\n 'songs': [song_serializer(song) for song in songs],\n 'song_count': song_count\n }\n\ndef append_song(song:dict, keywords=None):\n\n query_url = app.config['CLOUD_MUSIC_API_HOST'] + '/song/url'\n resp = requests.get(query_url, {'id': song['id']})\n song_url = resp.json()['data'][0]['url']\n download_song.delay(song_url, song['name'], song['artist'])\n\n return {'result': 'success'}\n\n\n@celery.task\ndef download_song(url, name, artist):\n\n from celery_worker import app\n with app.app_context():\n resp = requests.get(url)\n with open(os.path.join(app.config['MUSIC_PATH'], f'{name}.mp3'), 'wb') as file:\n file.write(resp.content)\n\n\ndef song_serializer(song:dict):\n return {\n 'id': song['id'],\n 'name': song['name'],\n 'artists': [artist['name'] for artist in song['artists']]\n }\n","repo_name":"Orenoid/NeteaseCloudMusicSongRequest","sub_path":"app/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":1341,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"34129702570","text":"import os\nimport glob\n\ndef common_remove_allfiles(pathname, recursive=True):\n if os.path.isdir(pathname):\n pathname = pathname + '/*'\n for p in glob.glob(pathname, recursive=recursive):\n if os.path.isfile(p):\n os.remove(p)\n else:\n logger.error(\"PATHにディレクトリが存在しません。\")","repo_name":"hajimekaneko/stk00100","sub_path":"Bin/common/delete_file.py","file_name":"delete_file.py","file_ext":"py","file_size_in_byte":349,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"26558022473","text":"'''\r\nAuthor: Vihan Garg\r\nUniversity of Wyoming COSC 4555/5555 Machine Learning, Spring 2023\r\n-------\r\n\r\n'''\r\n\r\nimport numpy as np\r\n\r\n\r\ndef split_into_train_and_test(x_all_LF, frac_test=0.5, random_state=None):\r\n\r\n \r\n if random_state is None:\r\n random_state = np.random\r\n \r\n \r\n xl = x_all_LF.copy()\r\n \r\n L = xl[1].size * frac_test\r\n \r\n if L.is_integer() == False :\r\n L = round(xl[1].size * frac_test + .5)\r\n else :\r\n L = int(L)\r\n \r\n random_state.shuffle(xl)\r\n \r\n n_train = xl[:L] \r\n n_test = xl[L:xl[1].size] \r\n \r\n \r\n return n_train, n_test\r\n \r\n \r\n \r\nx_LF = np.eye(10)\r\nxcopy_LF = x_LF.copy() # preserve what input was before the call\r\ntrain_MF, test_NF = split_into_train_and_test(\r\nx_LF, frac_test=0.201, random_state=np.random.RandomState(0))\r\ntrain_MF.shape\r\ntest_NF.shape\r\nprint(train_MF)\r\nprint(test_NF)\r\nprint(np.allclose(x_LF, xcopy_LF))\r\n\r\nprint(x_LF[1].size)\r\n\r\nprint(x_LF[:x_LF[1].size])\r\n\r\n\r\n","repo_name":"vgarg1011/Projects","sub_path":"splitDataset.py","file_name":"splitDataset.py","file_ext":"py","file_size_in_byte":987,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"35401792806","text":"from cmath import sqrt\nimport random\nfrom numpy import number\nimport matplotlib.pyplot as plt\n\n\ninputFile=\"Assignment 3 berlin52.tsp\"\ntau = 5\nnumberOfAnts = 20\nmax_iterations = 100\nalfa = 1\nbeta = 1\nevaporation = 0.3\n\nclass City():\n def __init__(self,id, x, y) -> None:\n self.id=id\n self.x=x\n self.y=y\n\n\nclass Ant():\n def __init__(self, visited) -> None:\n self.visited=visited\n self.visitedEdges = []\n self.cost = 0\n\nclass Edge():\n def __init__(self, start, end) -> None:\n self.start=start\n self.end = end\n self.tau=tau\n self.cost = distance(start, end)\n\n\ndef initialize():\n ants = []\n for i in range(numberOfAnts):\n cit = []\n cit.append(cities[0])\n ant = Ant(cit)\n ants.append(ant)\n return ants\n\ndef distance(a, b):\n return sqrt(pow(b.x-a.x, 2) + pow(b.y-a.y,2)).real\n\ndef isItLastEdge(e, ant):\n return len(ant.visited)==len(cities)-1\n\ndef transitionRule(ant):\n probs = []\n selectedEdges = []\n r = ant.visited[-1]\n summ = 0\n for e in edges:\n s=e.end\n if s not in ant.visited and e.start == r and (s.id!=1 or (s.id==1 and isItLastEdge(e, ant))):\n eta = 1 / e.cost\n summ += pow(e.tau, alfa)*pow(eta, beta)\n\n for e in edges:\n s=e.end\n if s not in ant.visited and e.start == r and (s.id!=1 or (s.id==1 and isItLastEdge(e, ant))):\n selectedEdges.append(e)\n eta = 1 / e.cost\n p = pow(e.tau, alfa)*pow(eta, beta)/summ\n probs.append(p)\n if len(selectedEdges)>0:\n\n next = random.choices(selectedEdges, probs)[0]\n ant.visitedEdges.append(next)\n return next \n return 0\n\ndef pheromoneUpdate(e):\n sumDeltas = 0\n for ant in ants:\n if e in ant.visitedEdges:\n sumDeltas+=1/ant.cost\n \n res = (1-evaporation)*e.tau+sumDeltas\n e.tau = res\n\nf=open(inputFile, mode=\"r\", encoding=\"utf-8\")\ncities=[]\nfor line in f.readlines():\n sL=line.split(\" \")\n n = City(int(sL[0]), float(sL[1]), float(sL[2]))\n cities.append(n)\ncities.append(City(1, cities[0].x, cities[0].y))\nf.close()\n#initialize the edges\nedges = []\nfor i in range(len(cities)):\n for j in range(len(cities)):\n if cities[i].id!=cities[j].id:\n e = Edge(cities[i], cities[j])\n edges.append(e)\n \n\nx=[]\ny=[]\nfor i in range(max_iterations):\n print(\"iteration \", i)\n ants = initialize()\n print(\"transitioning\")\n for j in range(0, len(cities)-1):\n #print(\"transition at city : \", cities[j].id)\n for k in range(numberOfAnts):\n e = transitionRule(ants[k])\n if e!=0:\n ants[k].cost+=e.cost\n ants[k].visited.append(e.end)\n #print(\"transition done for ant \", k, \"/\", numberOfAnts, \"on city \", cities[j].id)\n \n actualBest = ants[0]\n print(\"cost update\")\n for ant in ants:\n if ant.cost\")\n print(\"\\n\")\n\n\nfig=plt.figure(figsize=(24, 24), dpi=60)\nax = fig.add_subplot(111)\n\ns=\"Evolution of the cost of the global best over the generations\"\nax.plot(x,y)\nax.set_title(s)\n\nplt.savefig(\"ant.png\")\nplt.close()\n\n","repo_name":"nema-oss/Artificial-Intelligence-Assignments","sub_path":"assignment3/part2/assignment3-2.py","file_name":"assignment3-2.py","file_ext":"py","file_size_in_byte":3567,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"73060532739","text":"from faker import Faker\nimport os,uuid,hashlib\nfrom apps import db\nfrom apps.model import Role,Article,Follow\nfrom alembic import op\nfrom functools import wraps\nfaker = Faker(locale='zh_CN')\ndef md5(data):\n md = hashlib.md5()\n md.update(data.encode('utf-8'))\n data = md.hexdigest()\n return data\nnum = 1\nwhile num <20:\n name = faker.name()\n username = faker.user_name()\n pwd = md5(str(num))\n num +=1\n print('姓名:'+name)\n print('用户名:'+username)\n print('pwd:'+pwd)\n\"\"\"\nnum = 1\nwhile num < 10:\n #role = Role.query.filter_by(id=2ecfa8fcf29344899654acaa9fa4c7f2).first()\n u = Article()\n u.uuid = '2ecfa8fcf29344899654acaa9fa4c7f2'\n u.body = faker.name()\n u.body_html = faker.name()\n u.tittle = faker.company()\n u.addtime = faker.date_time()\n db.session.add(u)\n\n u = Role()\n uu_id = str(uuid.uuid4()).replace('-', '')\n u.uuid = uu_id\n u.username = faker.user_name()\n u.pwd = md5(str(num))\n u.email = faker.email()\n db.session.add(u)\n \n try:\n db.session.commit()\n num += 1\n except:\n db.session.rollback()\n\n\n\ndef avatar(email):\n size = 180\n default = 'monsterid'\n r = 'g'\n m = hashlib.md5()\n m.update(email.encode('utf-8'))\n hash = m.hexdigest()\n a_url = 'https://www.gravatar.com/avatar/{hash}?s={size}&d={default}&r={r}'.format(hash=hash,size=size,default=default,r=r)\n return a_url\n \nfollow = Role.query.filter_by(username='111').first()\nfollower = follow.followers\nfollowed = follow.followed\nlist1 = []\nlist2 = []\nfor i in follower:\n list1.append(i.follower.uuid)\nfor j in followed:\n list2.append(j.followed.uuid)\n\n\nlist = set(list1).intersection(set(list2))\nif '222' in list:\n print('222in')\nprint(list)\ndef friends_circle(func):\n\n @wraps(func)\n def wrapper(*args, **kwargs):\n follow = Role.query.filter_by(uuid= current_user.uuid).first()\n follower = follow.followers\n followed = follow.followed\n list1 = []\n list2 = []\n for i in follower:\n list1.append(i.follower.uuid)\n for j in followed:\n list2.append(j.followed.uuid)\n\n list = set(list1).intersection(set(list2))\n print(list)\n return func(*args, **kwargs)\n return wrapper\n@friends_circle\ndef u(username):\n print('woshi u')\n return u\n \n\n\ndef seem_likes():\n #f = Follow.query.filter(Follow.follower_id == '1f675baf550d4bf09bf4a2ea422c3572').all()\n\n #p = Role.query.join(Follow, Follow.follower_id == '1f675baf550d4bf09bf4a2ea422c3572').filter(Follow.followed_id == \"1f675baf550d4bf09bf4a2ea422c3572\").all()\n q = Article.query.join(Follow, Follow.followed_id == Article.uuid).filter(Follow.follower_id == '1f675baf550d4bf09bf4a2ea422c3572' ).order_by(Article.addtime.desc())\n p = Article.query.join(Follow, Follow.follower_id == Article.uuid).filter(\n Follow.followed_id == '1f675baf550d4bf09bf4a2ea422c3572').order_by(Article.addtime.desc())\n\n o = [x for x in q if x in p].paginate\n\n for i in o:\n print(i.addtime)\n\n return 'dd'\nseem_likes()\n\ndef kk():\n a = Article.query.join(Follow, Follow.follower_id == Article.uuid).filter(\n Follow.followed_id == '1f675baf550d4bf09bf4a2ea422c3572').order_by(Article.addtime.desc())\n p = a.paginate(1,per_page=5,error_out=False)\n s = p.items\n print(s)\n return 'd'\nkk()\n\n\ndef friends_circle():\n follow = Role.query.filter_by(uuid='1f675baf550d4bf09bf4a2ea422c3572').first()\n follower = follow.followers\n followed = follow.followed\n list1 = []\n list2 = []\n for i in follower:\n list1.append(i.follower.uuid)\n for j in followed:\n list2.append(j.followed.uuid)\n\n friend_list =[x for x in list1 if x in list2 ]\n u = Article.query.filter(Article.uuid.in_(friend_list))\n r = u.order_by(Article.addtime.desc()).paginate(1, per_page=10, error_out=False)\n print(r.items)\n return friend_list\nfriends_circle()\n\"\"\"","repo_name":"Jarry007/all-in","sub_path":"apps/mal.py","file_name":"mal.py","file_ext":"py","file_size_in_byte":3961,"program_lang":"python","lang":"en","doc_type":"code","stars":5,"dataset":"github-code","pt":"80"}
+{"seq_id":"39957835139","text":"nums=input().split(\",\")\nnums[0]=nums[0][1:len(nums[0])]\nnums[-1]=nums[-1][0:-1]\nnums_=[]\nfor i in nums:\n nums_.append(int(i))\nnew=[]\nfor i in range(len(nums_)):\n count=0\n for j in range(i+1,len(nums_)):\n if nums_[i]>nums_[j]:\n count+=1\n new.append(count)\nprint(new)\n","repo_name":"AdamZhouSE/pythonHomework","sub_path":"Code/CodeRecords/2456/60751/285461.py","file_name":"285461.py","file_ext":"py","file_size_in_byte":296,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"80"}
+{"seq_id":"30377717645","text":"# Definition for a binary tree node.\n# class TreeNode:\n# def __init__(self, val=0, left=None, right=None):\n# self.val = val\n# self.left = left\n# self.right = right\nclass Solution:\n def pathSum(self, root: Optional[TreeNode], targetSum: int) -> List[List[int]]:\n#======== ========#\n ans = []\n self.dfs(root, targetSum, [], ans)\n return ans\n\n def dfs(self, root, targetSum, path, ans):\n if root:\n path.append(root.val)\n if not root.left and not root.right and root.val == targetSum: # Found a valid root-to-leaf path\n ans.append(path.copy()) # Need to append a copy of path in backtracking\n self.dfs(root.left, targetSum - root.val, path, ans)\n self.dfs(root.right, targetSum - root.val, path, ans)\n path.pop() # Backtracking\n\n#======== ========#\n if not root:\n return []\n if not root.left and not root.right and root.val == targetSum:\n return [[root.val]]\n child = self.pathSum(root.left, targetSum - root.val) + self.pathSum(root.right, targetSum - root.val)\n return [[root.val] + value for value in child]\n\n#======== ========#\n import collections\n ans = []\n if root:\n queue = collections.deque([(root, root.val, [root.val])])\n while queue:\n curr, value, path = queue.popleft()\n if not curr.left and not curr.right and value == targetSum:\n ans.append(path)\n if curr.left:\n queue.append((curr.left, value + curr.left.val, path + [curr.left.val]))\n if curr.right:\n queue.append((curr.right, value + curr.right.val, path + [curr.right.val]))\n return ans\n\n#======== ========#\n ans = []\n if root:\n stack = [(root, targetSum - root.val, [root.val])]\n while stack:\n curr, value, path = stack.pop()\n if not curr.left and not curr.right and not value:\n ans.append(path)\n if curr.right:\n stack.append((curr.right, value - curr.right.val, path + [curr.right.val]))\n if curr.left:\n stack.append((curr.left, value - curr.left.val, path + [curr.left.val]))\n return ans\n\n#======== ========#\n ans = []\n if root:\n stack = [(root, [root.val])]\n while stack:\n curr, path = stack.pop()\n if not curr.left and not curr.right and sum(path) == targetSum:\n ans.append(path)\n if curr.right:\n stack.append((curr.right, path + [curr.right.val]))\n if curr.left:\n stack.append((curr.left, path + [curr.left.val]))\n return ans\n","repo_name":"andy2167565/leetcode","sub_path":"Medium/0113_path-sum-ii/path-sum-ii.py","file_name":"path-sum-ii.py","file_ext":"py","file_size_in_byte":2933,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"5877445125","text":"from django.urls import path\nfrom rest_framework.urlpatterns import format_suffix_patterns\n\nfrom . import views\n\napp_name='api'\n\nurlpatterns = [\n path('cobrancas/emitir/', views.CobrancaEmitir.as_view(), name='cobrancas-emitir'),\n path('cobrancas/consultar/', views.CobrancaConsulta.as_view(), name='cobrancas-consulta'),\n path('token/redirect/', views.token_redirect, name='tokens-redirect-api'),\n path('boletos/recebe-notificacao/', views.BoletoRecebeNotificacao.as_view(), name='boletos-recebe-notificacao'),\n\n path('teste/', views.TesteList.as_view(), name='teste'),\n]\n\nurlpatterns = format_suffix_patterns(urlpatterns)","repo_name":"macdev14/btaxtest","sub_path":"api/urls.py","file_name":"urls.py","file_ext":"py","file_size_in_byte":638,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"4302807807","text":"import logging\n\nimport numpy as np\nfrom scipy import constants\n\nfrom haloreader.type_guards import is_ndarray\nfrom haloreader.variable import Variable\n\nlog = logging.getLogger(__name__)\n\n\ndef compute_beta(\n intensity: Variable, range_: Variable, focus: Variable, wavelength: Variable\n) -> Variable:\n # pylint: disable=invalid-name\n \"\"\"\n Parameters\n ----------\n range_\n distance from the instrument\n focus\n focal length og the telescope for the transmitter and receiver\n lambda_\n laser wavelength\n\n Local variables\n ---------------\n eta\n detector quantum efficiency\n E\n beam energy\n nu\n optical frequency\n h\n planc's constant\n c\n speed of light\n B\n reveiver bandwidth\n\n References\n ----------\n Methodology for deriving the telescope focus function and\n its uncertainty for a heterodyne pulsed Doppler lidar\n authors: Pyry Pentikäinen, Ewan James O'Connor,\n Antti Juhani Manninen, and Pablo Ortiz-Amezcua\n doi: https://doi.org/10.5194/amt-13-2849-2020\n \"\"\"\n if not is_ndarray(intensity.data):\n raise TypeError\n if not is_ndarray(range_.data):\n raise TypeError\n if not isinstance(wavelength.data, float):\n raise TypeError\n if wavelength.units != \"m\":\n raise NotImplementedError(\n f'Expected wavelength units \"m\", got \"{wavelength.units}\".'\n )\n\n r = range_.data\n h = constants.Planck\n eta = 1\n c = constants.speed_of_light\n E = 1e-5\n lambda_ = wavelength.data\n nu = c / lambda_\n B = 5e7\n A_e = compute_effective_receiver_energy(range_, focus, lambda_)\n snr = intensity.data - 1\n # ref: https://doi.org/10.5194/amt-13-2849-2020\n beta = 2 * h * nu * B * r**2 * snr / (eta * c * E * A_e)\n return Variable(\n name=\"beta\",\n long_name=\"attenuated backscatter coefficient\",\n comment=(\n \"Experimental variable. Computed using uncalibrated/placeholder values.\"\n ),\n units=\"m-1 sr-1\",\n dimensions=intensity.dimensions,\n data=beta,\n )\n\n\ndef compute_effective_receiver_energy(\n range_: Variable, focus: Variable, lambda_: float\n) -> np.ndarray:\n # pylint: disable=invalid-name\n \"\"\"\n Parameters\n ----------\n range_\n distance from the instrument\n focus\n effective focal length of the telescope for the transmitter and receiver\n lambda_\n laser wavelength\n \"\"\"\n if not is_ndarray(range_.data):\n raise TypeError\n log.warning(\n \"Using placeholder values from https://doi.org/10.5194/amt-13-2849-2020\"\n )\n r = range_.data\n D = 25e-3 # effective_diameter_of_gaussian_beam\n f = focus.data # effective_focal_length\n return (\n np.pi\n * D**2\n / (4 * (1 + (np.pi * D**2 / (4 * lambda_ * r)) ** 2 * (1 - r / f) ** 2))\n )\n","repo_name":"actris-cloudnet/halo-reader","sub_path":"src/haloreader/attenuated_backscatter_coefficient.py","file_name":"attenuated_backscatter_coefficient.py","file_ext":"py","file_size_in_byte":2912,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"40183230331","text":"import requests, uuid, json\nfrom fpdf import FPDF \nimport os\n\n\ndef translatorit(data,to,translate_path):\n \n \n key = os.getenv('KEY_AZURE_TRANSLATE')\n endpoint = \"https://api.cognitive.microsofttranslator.com/\"\n location = \"westeurope\"\n path = '/translate'\n constructed_url = endpoint + path\n params = {\n 'api-version': '3.0',\n 'to': to\n }\n headers = {\n 'Ocp-Apim-Subscription-Key': key,\n 'Ocp-Apim-Subscription-Region': location,\n 'Content-type': 'application/json',\n 'X-ClientTraceId': str(uuid.uuid4())\n }\n # body = [{\n # 'text': 'I would really like to drive your car around the block a few times!'\n # }]\n body = [{'text': data}]\n request = requests.post(constructed_url, params=params, headers=headers, json=body)\n response = request.json()\n # print(json.dumps(response, sort_keys=True, ensure_ascii=False, indent=4, separators=(',', ': ')))\n # a = json.dumps(response, sort_keys=True, ensure_ascii=False, indent=4, separators=(',', ': '))\n if len(to) <= 1:\n _lang = f'-{to[0]}.text'\n __translate_path = translate_path.replace('.text',_lang).replace('.txt',_lang).replace('.word',_lang)\n _res = response[0]['translations'][0]['text']\n with open(__translate_path, 'w') as f:\n f.write(_res)\n else:\n for i in range(len(to)):\n res = response[0]['translations'][i]['text']\n lang = to[i]\n lang = f'-{lang}.text'\n _translate_path = translate_path.replace('.text',lang).replace('.txt',lang).replace('.word',lang)\n with open(_translate_path, 'w') as f:\n f.write(res)\n \n\n \n \n \n \n","repo_name":"lola-pola/pdfer","sub_path":"app/tran.py","file_name":"tran.py","file_ext":"py","file_size_in_byte":1737,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"26002741906","text":"from rest_framework.views import APIView\nfrom rest_framework.response import Response\nfrom .models import AssetTransportRequest, ShareTravelInfo\nfrom .serializers import AssetTransportRequestSerializer, ShareTravelInfoSerializer, MatchedRidesSerializer\nfrom rest_framework.pagination import LimitOffsetPagination\nfrom datetime import datetime\nfrom .helpers import get_pagination\n\n\nclass AssetTransportationRequestCreateView(APIView):\n def post(self, request, *args, **kwargs):\n data = request.data\n serializer = AssetTransportRequestSerializer(data=data)\n if serializer.is_valid():\n serializer.save()\n return Response(serializer.data, status=201)\n return Response(serializer.errors, status=400)\n\n\nclass TravelInfoShareView(APIView):\n def post(self, request, *args, **kwargs):\n serializer = ShareTravelInfoSerializer(data=request.data)\n if serializer.is_valid():\n serializer.save()\n return Response(serializer.data, status=201)\n return Response(serializer.errors, status=400)\n\n\nclass AssetTransportationRequestListView(APIView):\n\n def get(self, request, *args, **kwargs):\n AssetTransportRequest.objects.filter(date_time__gt=datetime.now()).update(status='EXPIRED')\n asset_requests = AssetTransportRequest.objects.all()\n\n status = request.query_params.get('status', None)\n page_index = request.query_params.get('page_index', None)\n page_size = request.query_params.get('page_size', None)\n sort = request.query_params.get('sort', None)\n if status:\n asset_requests = asset_requests.filter(status__icontains=status)\n\n asset_type = request.query_params.get('asset_type', None)\n if asset_type:\n asset_requests = asset_requests.filter(asset_type__icontains=asset_type)\n if sort == 'asc':\n asset_requests = asset_requests.order_by('date_time')\n elif sort == 'desc':\n asset_requests = asset_requests.order_by('-date_time')\n data = get_pagination(asset_requests, page_index, page_size)\n\n serializer = AssetTransportRequestSerializer(data['queryset'], many=True)\n\n return Response(serializer.data, status=200)\n\n\nclass AssetTransportationRidesListView(APIView):\n\n def get(self, request, *args, **kwargs):\n requester_requests = AssetTransportRequest.objects.filter(\n # status='pending',\n from_location=request.query_params.get('from_location', None),\n to_location=request.query_params.get('to_location', None),\n date_time=request.query_params.get('date_time', None),\n )\n page_index = request.query_params.get('page_index', None)\n page_size = request.query_params.get('page_size', None)\n matched_rides = []\n # print(requester_requests)\n for requester_request in requester_requests:\n rides = ShareTravelInfo.objects.filter(\n from_location=requester_request.from_location,\n to_location=requester_request.to_location,\n date_time=requester_request.date_time,\n )\n matched_rides.extend(rides)\n # print(matched_rides)\n data = get_pagination(matched_rides, page_index, page_size)\n serializer = MatchedRidesSerializer(data['queryset'], many=True)\n\n return Response(serializer.data, status=200)\n\n\nclass TravelInfoApplyView(APIView):\n def post(self, request, *args, **kwargs):\n try:\n travel_info = ShareTravelInfo.objects.get(id=request.data.get('id'))\n except:\n return Response({'message':'Travel info not found'}, status=404)\n travel_info.status = 'APPLIED'\n travel_info.save()\n return Response({'message':'Travel info Applied'}, status=200)\n","repo_name":"jaisipani/lets_ride","sub_path":"api/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":3824,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"74191574977","text":"import requests\nimport json\nimport pprint\nimport logging, sys\nfrom requests.packages.urllib3.exceptions import InsecureRequestWarning\n\n\nclass MSO:\n def __init__(self, mso_url):\n self.mso_url = mso_url\n self.auth_token = None\n self.hed = None\n self.schemas = {}\n # create logger\n self.logger = logging.getLogger(__name__)\n \n \n # create console handler and set level to debug\n self.ch = logging.StreamHandler()\n self.ch.setLevel(logging.DEBUG)\n \n # create formatter\n self.formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')\n \n # add formatter to ch\n self.ch.setFormatter(self.formatter)\n \n # add ch to logger\n self.logger.addHandler(self.ch)\n \n #Disable URL Lib Warnings\n requests.packages.urllib3.disable_warnings(InsecureRequestWarning)\n\n\n def login(self, username, password):\n data = {\n \"username\": username,\n \"password\": password,\n }\n # Login into MSO and get Authentication toke. \n self.logger.debug(\"Log In to MSO\")\n r = requests.post(self.mso_url + \"/api/v1/auth/login\",json=data, verify=False)\n login_data = json.loads(r.text) \n self.auth_token = login_data['token']\n self.hed = {'Authorization': 'Bearer ' + self.auth_token}\n \n def createSchema(self, name, templateName, tenant):\n\n tenantId = self.getTenantId(name = tenant)\n\n data = {\n \"displayName\": name,\n \"templates\": [\n {\n \"name\": templateName,\n \"displayName\": templateName,\n \"tenantId\": tenantId\n }\n ]\n }\n\n\n r = requests.post(self.mso_url + \"/api/v1/schemas\",json=data,headers=self.hed, verify=False)\n self.logger.debug(\"Schema creation status %s, reson %s\", r.status_code, r.reason)\n if r.reason == \"Conflict\":\n self.logger.info(\"Schema already exist! \")\n \n self.loadSchema(name)\n \n\n def loadSchema(self, name):\n self.schemas[name] = Schema(name, False, self.logger, self.mso_url, self.hed)\n \n def createTenant(self,name, displayName = None, desc = \"\", sites = []):\n \n if not displayName:\n displayName = name\n # Tenant Data \n data = {\n \"displayName\": displayName,\n \"name\": name,\n \"description\": desc,\n \"siteAssociations\": []\n }\n \n #If I am mapping a Tenants to sites when I create it, then I add the site ID to the tenant siteAssociation.\n if len(sites) > 0:\n self.logger.debug(\"Create Tenant and map it to %d sites\", len(sites))\n for site in sites:\n data['siteAssociations'].append({'siteId':self.getSiteId(site),'securityDomains':[]})\n print(data['siteAssociations'])\n \n else:\n self.logger.debug(\"Create Tenant, not mapped to any site\") \n\n r = requests.post(self.mso_url + \"/api/v1/tenants\",json=data,headers=self.hed, verify=False)\n self.logger.debug(\"Tenant creation status %s, reson %s\", r.status_code, r.reason)\n if r.reason == \"Conflict\":\n self.logger.info(\"Tenant already exist! \")\n\n def getAllTenants(self):\n self.logger.debug(\"Get all Tenants\")\n r = requests.get(self.mso_url + \"/api/v1/tenants\", headers=self.hed, verify=False)\n tenants = json.loads(r.text)\n self.logger.debug(\"Found a total of %d Tenants\", len(tenants['tenants'])) \n return tenants\n\n\n def getTenantByName(self,name):\n \n #API does not support filtering so I need anyway to pull all the tenants and then find.\n tenants = self.getAllTenants()\n self.logger.debug(\"Looking for Tenant name %s\", name)\n \n for tenant in tenants['tenants']:\n if tenant['name'] == name:\n self.logger.debug(\"Found Tenant %s\",name)\n return tenant\n self.logger.debug(\"Site %s not found\",name) \n return None\n\n def getTenantId(self, name):\n tenant = self.getTenantByName(name)\n self.logger.debug(\"Tenant ID %s\", tenant['id']) \n return tenant['id']\n\n def addTenantAssociations(self, name, sites = []):\n if len(sites) > 0:\n tenant = self.getTenantByName(name)\n for site in sites:\n siteId = self.getSiteId(site)\n siteAssociation = {\n 'siteId':siteId,\n 'securityDomains':[]\n }\n if siteAssociation not in tenant['siteAssociations']:\n tenant['siteAssociations'].append(siteAssociation)\n else:\n self.logger.info('Tenant %s to Site %s association already existing', tenant['name'], site)\n \n r = requests.put(self.mso_url + \"/api/v1/tenants/\" + tenant['id'] ,json=tenant, headers=self.hed, verify=False)\n self.logger.debug('Tenant update status %s %s',r.status_code, r.reason)\n\n def delTenantAssociations(self, name, sites = [], deleteAll = False):\n if len(sites) > 0 and not deleteAll :\n tenant = self.getTenantByName(name)\n for site in sites:\n siteId = self.getSiteId(site)\n tenant['siteAssociations'][:] = [d for d in tenant['siteAssociations'] if d.get('siteId') != siteId]\n elif deleteAll:\n tenant = self.getTenantByName(name)\n tenant['siteAssociations'] = []\n else:\n self.logger.error('You need to specify either a list of sites or deleteAll needs to be set to True')\n exit()\n \n r = requests.put(self.mso_url + \"/api/v1/tenants/\" + tenant['id'] ,json=tenant, headers=self.hed, verify=False)\n self.logger.debug('Tenant update status %s %s',r.status_code, r.reason)\n\n def createSite(self, name, url, username, password, siteID):\n data = {\n \"name\": name,\n \"urls\": url,\n \"username\": username,\n \"password\": password,\n \"apicSiteId\" : siteID\n }\n\n r = requests.post(self.mso_url + \"/api/v1/sites\",json=data,headers=self.hed, verify=False)\n self.logger.debug(\"Site creation status %s, reson %s\", r.status_code, r.reason)\n if r.reason == \"Conflict\":\n self.logger.info(\"Tenant already exist! \")\n\n def getAllSites(self):\n self.logger.debug(\"Get all Sites\")\n r = requests.get(self.mso_url + \"/api/v1/sites\", headers=self.hed, verify=False)\n sites = json.loads(r.text)\n self.logger.debug(\"Found a total of %d sites\", len(sites['sites'])) \n if len(sites['sites'])==0:\n self.logger.error(\"No sites found, please create a site first!\\n Execution Aborted\")\n exit()\n\n return sites\n \n def getSiteByName(self, name):\n\n sites = self.getAllSites()\n self.logger.debug(\"Looking for site name %s\", name)\n \n for site in sites['sites']:\n if site['name'] == name:\n self.logger.debug(\"Found site %s\",name)\n return site\n self.logger.debug(\"Site %s not found\",name) \n return None\n \n def getSiteId(self, name):\n site = self.getSiteByName(name)\n self.logger.debug(\"Site ID %s\", site['id']) \n return site['id'] \n \n def getAudit(self):\n limit = str(100)\n offset = str(0)\n audit = []\n sort='-timestamp'\n while(offset):\n r = requests.get(self.mso_url + \"/api/v1/audit-records?limit=\"+limit+\"&offset=\"+offset+\"&sort=\"+sort, headers=self.hed, verify=False)\n limit = r.headers['X-Page-Limit']\n if 'X-Page-Next-Offset' in r.headers:\n offset = r.headers['X-Page-Next-Offset'] \n else:\n offset = False\n \n audit= audit + (json.loads(r.text)['auditRecords'])\n return audit\n \nclass Schema:\n def __init__(self, name, create, logger, mso_url, hed):\n self.logger = logger\n self.mso_url = mso_url\n self.hed = hed \n if create:\n self.schema = self.createSchema(name, tenant, templateName)\n \n else:\n self.schema = self.getSchemaByName(name)\n\n self.schemId = self.schema['id']\n\n\n\n \n def getTempListID(self, templates, name):\n index = next((index for (index, d) in enumerate(templates) if d[\"name\"] == name), None)\n if index != None :\n return index\n else:\n self.logger.error(\"Template %s not found\", name)\n exit()\n\n def getAllSchema(self):\n self.logger.debug(\"Get all Schemas\")\n r = requests.get(self.mso_url + \"/api/v1/schemas\", headers=self.hed, verify=False)\n schemas = json.loads(r.text)\n return schemas\n\n def getSchemaByName(self,name):\n self.logger.debug(\"Looking for Schema name %s\", name)\n schemas = self.getAllSchema()\n for schema in schemas['schemas']:\n if schema['displayName'] == name:\n self.logger.debug(\"Found Schema %s\",name) \n return schema\n\n def getSchemaId(self, name):\n schema = self.getSchemaByName(name)\n self.logger.debug(\"Schema ID %s\", schema['id']) \n return schema['id'] \n \n def addBD(self,bd_template_name, name,vrf, vrf_template_name = None, intersiteBumTrafficAllowm = True, \n l2Stretch = True, l2UnknownUnicast = 'proxy',optimizeWanBandwidth = True, \n subnets = []):\n # Here we need to pass a of parameters just keep in mind that the tempale for the VRF cab be different for the template\n #of the BD so I give the ability to specify this. \n\n if not vrf_template_name:\n vrf_template_name = bd_template_name\n\n bd = {\n \"bdRef\": \"/schemas/\" + self.schemId + \"/templates/\" + bd_template_name + \"/bds/\"+ name,\n 'vrfRef':\"/schemas/\" + self.schemId + \"/templates/\" + vrf_template_name + '/vrfs/' + vrf,\n \"displayName\": name,\n \"intersiteBumTrafficAllow\": intersiteBumTrafficAllowm,\n \"l2Stretch\": l2Stretch,\n \"l2UnknownUnicast\": l2UnknownUnicast,\n \"name\": name,\n \"optimizeWanBandwidth\": optimizeWanBandwidth,\n \"subnets\": []\n\n } \n if l2Stretch:\n bd['subnets'] = subnets\n else:\n pass\n\n\n index = self.getTempListID(self.schema['templates'], bd_template_name)\n \n if bd not in self.schema['templates'][index]['bds']:\n self.schema['templates'][index]['bds'].append(bd)\n self.logger.debug(\"Adding BD %s\", name)\n else:\n self.logger.info(\"BD %s already exists, not addind\", name)\n \n def delBD(self, name, template_name):\n self.logger.debug(\"Deleting BD %s\", name)\n index = self.getTempListID(self.schema['templates'], template_name)\n self.schema['templates'][index]['bds'][:] = [d for d in self.schema['templates'][index]['bds'] if d.get('name') != name]\n\n \n def commit(self):\n r = requests.put(self.mso_url + \"/api/v1/schemas/\" + self.schema['id'] ,json=self.schema, headers=self.hed, verify=False)\n self.logger.debug('Schema update status %s %s',r.status_code, r.reason)\n\n\n","repo_name":"camrossi/multisite","sub_path":"multisite.py","file_name":"multisite.py","file_ext":"py","file_size_in_byte":11970,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"40024065629","text":"s=list(input())\npairs=eval(input())\nmovs=[]\n\n\nwhile len(pairs)>0: #暴力将对换合成为各个轮换 即暴力实现并查集\n mov=set()\n pair=pairs.pop(0)\n mov.add(pair[0])\n mov.add(pair[1])\n ps=pairs[:]\n has=True\n while has:\n has=False\n ps=pairs[:]\n for p in ps:\n if p[0] in mov or p[1] in mov:\n has=True\n mov.add(p[0])\n mov.add(p[1])\n pairs.remove(p)\n mov=list(mov)\n mov.sort()\n movs.append(mov)\n\n\nfor m in movs:\n arr=[]\n for i in m:\n arr.append(s[i])\n arr.sort()\n for i in m:\n s[i]=arr[0]\n arr.pop(0)\nprint(''.join(s))","repo_name":"AdamZhouSE/pythonHomework","sub_path":"Code/CodeRecords/2718/60589/254565.py","file_name":"254565.py","file_ext":"py","file_size_in_byte":680,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"80"}
+{"seq_id":"40214452977","text":"\nimport numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\n\n### GRADED\n### Code a function called `calc_posterior`\n\n### ACCEPT three inputs\n### Two floats: the likelihood and the prior\n### One list of tuples, where each tuple has two values corresponding to:\n### ### ( P(Bn) , P(A|Bn) )\n### ### ### Assume the list of tuples accounts for all potential values of B\n### ### ### And that those values of B are all mutually exclusive.\n### The list of tuples allows for the calculation of normalization constant.\n\n### RETURN a float corresponding to the posterior probability\n\n### YOUR ANSWER BELOW\n\ndef calc_posterior(likelihood, prior, norm_list):\n \"\"\"\n Calculate the posterior probability given likelihood,\n prior, and normalization\n\n Positional Arguments:\n likelihood -- float, between 0 and 1\n prior -- float, between 0 and 1\n norm_list -- list of tuples, each tuple has two values\n the first value corresponding to the probability of a value of \"b\"\n the second value corresponding to the probability of\n a value of \"a\" given that value of \"b\"\n Example:\n likelihood = .8\n prior = .3\n norm_list = [(.25 , .9), (.5, .5), (.25,.2)]\n print(calc_posterior(likelihood, prior, norm_list))\n # --> 0.45714285714285713\n \"\"\"\n\n joint = 0.0\n\n for xx in norm_list:\n\n joint += (xx[0] * xx[1])\n\n print(joint)\n\n post = (likelihood * prior) / joint\n\n return post\n\n\n\nlikelihood = .8\nprior = .3\nnorm_list = [(.25 , .9), (.5, .5), (.25,.2)]\n\nprint(calc_posterior(likelihood, prior, norm_list))\n\n\n\n\n\n\n\n\n\n\n##\n","repo_name":"dariofl24/machineLearningPy","sub_path":"posterior.py","file_name":"posterior.py","file_ext":"py","file_size_in_byte":1632,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"6379576484","text":"# Dataset Documentation\n# https://www.kaggle.com/datasets/markmarkoh/near-earth-asteroids\n\n# Velocity Infinity -> Pitch -> Higher Speed -> High Pitch\n# Minimum Distance -> Note Length -> Further Distance -> Longer Note\n# ref -> Velocity -> Higher Ref -> Higher Velocity\n\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport numpy as np\n\ndef convert_data(row):\n converted = np.array([])\n for i in row:\n stripped = i.split('/')[0]\n converted = np.append(converted, float(stripped))\n return converted\n\n\ndef read_and_plot(file, r1, r2, r3):\n d = pd.read_csv(file)\n pitch = d[r1].values\n length = d[r2].values\n velocity = d[r3].values\n if isinstance(pitch[0], str):\n pitch = convert_data(pitch)\n if isinstance(length[0], str):\n length = convert_data(length)\n if isinstance(velocity[0], str):\n velocity = convert_data(velocity)\n plt.scatter(pitch, length, s=pitch, c=velocity)\n plt.xlabel(r1)\n plt.ylabel(r2)\n plt.show()\n\nread_and_plot('./00data/near_earth.csv', 'Vinfinity(km/s)', 'CA DistanceMinimum(LD/AU)', 'ref')\n\n\n","repo_name":"devoredevelops/python_ableton_resources","sub_path":"part_b/b14.py","file_name":"b14.py","file_ext":"py","file_size_in_byte":1194,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"38274559474","text":"import sys\nsys.stdin = open(\"sample_input.txt\")\n\nT = int(input())\n\nfor tc in range(1, T+1):\n N = int(input())\n score = list(map(int, input().split()))\n visited = [1] + [0] * sum(score) # 방문체크할 리스트\n\n tmp = [0]\n for ele in score:\n for i in range(len(tmp)):\n if not visited[ele+tmp[i]]:\n visited[ele+tmp[i]] = 1 # 방문체크\n tmp.append(ele+tmp[i])\n print('#{} {}'.format(tc, len(tmp)))\n\n","repo_name":"FR0GM4N/Algorithm","sub_path":"src/swea/3752.py","file_name":"3752.py","file_ext":"py","file_size_in_byte":471,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"36501666736","text":"#!/usr/bin/env python\nversion='SEDMATCHVERSION'\nscripts='SEDMATCHLIB'\nauthor='Julien Fouret'\ncontact='julien@fouret.me'\n\nimport argparse\n\nclass _HelpAction(argparse._HelpAction):\n\n\tdef __call__(self, parser, namespace, values, option_string=None):\n\t\tparser.print_help()\n\t\t# retrieve subparsers from parser\n\t\tsubparsers_actions = [\n\t\t\taction for action in parser._actions\n\t\t\tif isinstance(action, argparse._SubParsersAction)]\n\t\t\t# there will probably only be one subparser_action,\n\t\t\t# but better save than sorry\n\t\tfor subparsers_action in subparsers_actions:\n\t\t# get all subparsers and print help\n\t\t\tfor choice, subparser in subparsers_action.choices.items():\n\t\t\t\tprint(\"\\n\\n\\n\\n--------\"+(\"-\"*len(choice))+\"\\n\"+\"### {} ###\".format(choice))+\"\\n\"+\"--------\"+(\"-\"*len(choice)+\"\\n\")\n\t\t\t\tprint(subparser.format_help())\n\t\t\t\tprint(\"______________________________________________________________________________\")\n\t\tparser.exit()\n\nparser = argparse.ArgumentParser(description='Wraper for GIDEON analyses',epilog=\"Version : \"+str(version)+\"\\nAuthor : \"+author+\" for more informations or enquiries please contact \"+contact,add_help=False,formatter_class=argparse.ArgumentDefaultsHelpFormatter)\n\nparser.add_argument('-h','--help', action=_HelpAction, help='if you need some help')\n\nsubparsers=parser.add_subparsers(help='Sub-commands',dest=\"analysis\")\n\nvhelp=\"Print version and exit\"\nvparser=subparsers.add_parser('version',description=vhelp,help=vhelp)\n\ncheckhelp=\"Check if requirements are satisfied\"\ncheckparser=subparsers.add_parser('check',description=checkhelp,help=checkhelp)\n\ngenePythiaHelp=\"Knowledge-driven method to identify a set of genes linked with a thematic (defined by terms). PubMed data-mining\"\ngenePythiaParser=subparsers.add_parser('genePythia',description=genePythiaHelp,help=genePythiaHelp)\ngenePythiaParser.add_argument('-o','--outDir', metavar='Path',required=True, help=\"outPut directory\")\n#parse and gene name will be the prefix\ngenePythiaParser.add_argument('-geneList', metavar='file',required=True, help=\"2-columns tabular file without header separated by tabulation. 1st col: gene name | 2nd col: comma-separated alias list\")\ngenePythiaParser.add_argument('-term', metavar='syn1,syn2,syn3',required=True, help=\"commat-separated list of terms to search (synonyms). Please add\\\" if a term is composed with spaces\" )\ngenePythiaParser.add_argument('-b','--batch_number', metavar='N',default='50',required=False, help=\"\")\ngenePythiaParser.add_argument('-q','--queue', metavar='name',required=True, help=\"PBS queue to be used\")\ngenePythiaParser.add_argument('-maxPub', metavar='N',default='80',required=False, help=\"max number of publications to print\")\ngenePythiaParser.add_argument('-mail', metavar='user@domain.tld',required=True, help=\"mail for Entrez query\")\ngenePythiaParser.add_argument('-ab',action=\"store_true\",required=False, help=\"adding the column abstract\")\n\n\nconfHelp=\"Help you to create the conf file in YAML format\"\nconfParse=subparsers.add_parser('configure',description=confHelp,help=confHelp)\n\nanalysisHelp=\"run the GIDEON analysis with the yaml conf file for gene lists and databases\"\nanalysisParse=subparsers.add_parser('analyse',description=analysisHelp,help=analysisHelp)\nanalysisParse.add_argument('-o','--outDir', metavar='Path',required=True, help=\"outPut directory\")\nanalysisParse.add_argument('-Tmax', metavar='N',default='90',required=False, help=\"maximum percentage of target genes in a metagroup to be selected\")\nanalysisParse.add_argument('-Tmin', metavar='N',default='10',required=False, help=\"minimum percentage of target genes in a metagroup to be selected\")\nanalysisParse.add_argument('-onlyEnrich',action=\"store_true\",required=False, help=\"Perform only the enrichment test to evaluate enrichment qualities\")\nanalysisParse.add_argument('-multiplex',action=\"store_true\",required=False, help=\"Integrate several databases as a layer in a multiplex layer. Then the Louvain algorithm is used to build metagroup\")\n\nargs=parser.parse_args()\n\ndef check():\n\tfrom subprocess import Popen, PIPE\n\timport IPython\n\tres=\"### Informations related to Python ###\\n\"\n\tres+=IPython.sys_info().replace(\"': '\",\":\\t\").replace(\"': u'\",\":\\t\").replace(\"\",\"\").replace(\"',\",\"\").replace(\"{'\",\"\").replace(\" '\",\"\").replace(\"'}\",\"\")\n\tres+=\"\\n######\\n\"\n\tres+=\"\\n### Informations related to R ###\\n\"\n\tprocess = Popen(\"Rscript -e 'sessionInfo()'\", stdout=PIPE, stderr=PIPE,shell=True)\n\tstdout, stderr = process.communicate()\n\tres+=stdout\n\tres+=\"\\n######\\n\"\n\treturn(res)\n\nimport sys\n\nif args.analysis==\"version\":\n\tprint(version)\n\tsys.exit()\nelif args.analysis==\"check\":\n\tprint(check())\n\tsys.exit()\nelif args.analysis==\"genePythia\":\n\timport datetime\n\tnowTime=datetime.datetime.now()\n\tfrom jupype import *\n\trootedDir=RootDir(args.outDir,pbs=True)\n\trootedDir.logs.writeArgs(args)\n\twith open(rootedDir.logs.path+\"/check.txt\",'a')as checkFile:\n\t\tcheckFile.write(\"system check printed at time: \"+str(nowTime)+\"\\n\")\n\t\tcheckFile.write(check()+\"\\n\\n\\n\")\n\tif args.ab:\n\t\tab=\" -ab\"\n\telse:\n\t\tab=\"\"\n\tbatch_count=0\n\tjob_num=0\n\tcmdList=[]\n\tbatch_lim=int(args.batch_number)\n\twith open(args.geneList) as geneListFile:\n\t\tfor line in geneListFile.readlines():\n\t\t\tline=line.strip()\n\t\t\tbatch_count+=1\n\t\t\tif \"\\t\" in line:\n\t\t\t\tgene,alias=line.split(\"\\t\")\n\t\t\telse:\n\t\t\t\tgene=line\n\t\t\t\talias=\"None\"\n\t\t\tcmdList.append(\"mkdir -p \"+rootedDir.results+\"/\"+gene+\"\\ncd \"+rootedDir.results+\"/\"+gene+\"\\n\\n\"+scripts+\"/genePythia/genePythia.py -gene \"+gene+\" -alias \"+alias+\" -term '\"+args.term+\"' -maxPub \"+args.maxPub+\" -mail \"+args.mail+ab)\n\t\t\tif batch_count>batch_lim:\n\t\t\t\tbatch_count=0\n\t\t\t\tjob_num+=1\n\t\t\t\tsubmitQsubWithPBS(createPBS(cmdList,\"genePythia_\"+str(job_num),queue=args.queue,workdir=rootedDir.results))\n\t\t\t\tcmdList=[]\n\tif cmdList!=[]:\n\t\tjob_num+=1\n\t\tsubmitQsubWithPBS(createPBS(cmdList,\"genePythia_\"+str(job_num),queue=args.queue,workdir=rootedDir.results))\n\tsaveRoot(rootedDir)\n\tsys.exit(0)\n\n\n\n\n","repo_name":"jfouret/gideon","sub_path":"scripts/gideon.py","file_name":"gideon.py","file_ext":"py","file_size_in_byte":5887,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"70741022339","text":"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Sat May 21 21:02:43 2022\n\n@author: iman\n\"\"\"\n\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Sat May 21 15:24:47 2022\n\n@author: iman\n\"\"\"\n\nfrom tkinter import *\nfrom tkcalendar import *\nimport pygame\nimport time\nimport speech_recognition as sr \n\n# ----- Voon Tao ----- #\nfrom MinutesManager import MinutesManager\n\nws = Tk()\nws.title(\"Smart Meeting Minutes\")\nws.geometry(\"820x600\")\n\nhour_string=StringVar()\nmin_string=StringVar()\nlast_value_sec = \"\"\nlast_value = \"\" \nf = ('Arial', 40)\n\n# ----- Voon Tao ----- #\ndef createTxtMinutes(start_date,start_time):\n manager = MinutesManager()\n manager.createMinutes(start_date,start_time)\n# ----- Voon Tao ----- #\n\ndef display_msg():\n date = cal.get_date()\n m = min_sb.get()\n h = sec_hour.get()\n s = sec.get()\n t = f\"Your appointment is booked for {date} at {m}:{h}:{s}.\"\n createTxtMinutes(date,f'{m}:{h}:{s}') # create txt file minutes\n msg_display.config(text=t)\n ws.destroy()\n import options\n\nif last_value == \"59\" and min_string.get() == \"0\":\n hour_string.set(int(hour_string.get())+1 if hour_string.get() !=\"23\" else 0) \n last_value = min_string.get()\n\nif last_value_sec == \"59\" and sec_hour.get() == \"0\":\n min_string.set(int(min_string.get())+1 if min_string.get() !=\"59\" else 0)\n \nif last_value == \"59\":\n hour_string.set(int(hour_string.get())+1 if hour_string.get() !=\"23\" else 0) \n last_value_sec = sec_hour.get()\n\nfone = Frame(ws)\nftwo = Frame(ws)\n\nfone.pack(pady=50)\nftwo.pack(pady=10)\n\ncal = Calendar(\n fone, \n selectmode=\"day\", \n year=2021, \n month=2,\n day=3\n )\ncal.pack()\n\nmin_sb = Spinbox(\n ftwo,\n from_=0,\n to=23,\n wrap=True,\n textvariable=hour_string,\n width=2,\n state=\"readonly\",\n font=f,\n justify=CENTER\n )\n\nsec_hour = Spinbox(\n ftwo,\n from_=0,\n to=59,\n wrap=True,\n textvariable=min_string,\n font=f,\n width=2,\n justify=CENTER\n )\n\nsec = Spinbox(\n ftwo,\n from_=0,\n to=59,\n wrap=True,\n textvariable=sec_hour,\n width=2,\n font=f,\n justify=CENTER\n )\n\nmin_sb.pack(side=LEFT, fill=X, expand=True)\nsec_hour.pack(side=LEFT, fill=X, expand=True)\nsec.pack(side=LEFT, fill=X, expand=True)\n\nmsg = Label(\n ws, \n text=\"Hour Minute Seconds\",\n font=(\"Arial\", 12)\n )\n\nmsg.pack(side=TOP)\n\nactionBtn = Button(\n ws,\n text=\"Smart Meeting Minutes\",\n padx=10,\n pady=10,\n command=display_msg\n)\n\nactionBtn.pack(pady=10)\n\nmsg_display = Label(\n ws,\n text=\"\"\n)\n\nmsg_display.pack(pady=10)\n\nws.mainloop()\n","repo_name":"Murtada169/IntelligentSystem","sub_path":"main_gui.py","file_name":"main_gui.py","file_ext":"py","file_size_in_byte":2634,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"11999333494","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Tue Jan 5 13:15:36 2021\n\n@author: Crow108\n\"\"\"\n\nimport sys\nimport numpy as np\nimport matplotlib.pyplot as plt\n\ninstrument_path = r\"C:\\Users\\Crow108\\Documents\\Python\\instr\\analyzer\"\nif instrument_path not in sys.path: sys.path.append(instrument_path )\nimport bnc\n\nanalyzer_path = r\"C:\\Users\\Crow108\\Documents\\Python\\instr\\python_interface\\python_without_WX2184C\"\nif analyzer_path not in sys.path: sys.path.append(analyzer_path )\nimport daq_programs\n\ntarget_bnc_address = 'USB0::0x03EB::0xAFFF::421-4385A0002-0784::INSTR'\n\ndef sweep_bnc_freq(start_freq, stop_freq, num_points):\n freq_list = np.linspace(start_freq, stop_freq, num_points)\n steps_in_seq = 51\n num_averages =500# 10000\n \n out_I, out_Q = np.zeros( (2, num_points, steps_in_seq))\n for i,freq in enumerate(freq_list):\n bnc.set_bnc_output(freq, bnc_addr=target_bnc_address)\n \n rec_avg_all, rec_readout, rec_avg_vs_pats = daq_programs.run_daq2(steps_in_seq, num_averages, verbose=0)\n \n out_I[i] = rec_avg_vs_pats[0]\n out_Q[i] = rec_avg_vs_pats[1]\n #time.sleep(4)\n \n # make plots\n plt.imshow(out_Q, extent=[0,steps_in_seq,stop_freq,start_freq],aspect='auto' )\n \n return out_Q\n##END sweep_bnc_freq","repo_name":"murchlab/analyzer","sub_path":"instruments/spectroscopy/chevron.py","file_name":"chevron.py","file_ext":"py","file_size_in_byte":1286,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"8095086416","text":"from rest_framework.authentication import BaseAuthentication, get_authorization_header\nfrom rest_framework import exceptions\nfrom user.models import User\nfrom django.conf import settings\nimport jwt\n\n\nclass JWTAuthentication(BaseAuthentication):\n \"\"\"Used to decode a JSON Web Token and properly provide Oauth2 authorization in project\"\"\"\n\n def authenticate(self, request):\n \"\"\"Used to process the given request to extract the JWT and decode it\"\"\"\n auth_header = get_authorization_header(request)\n token = auth_header.decode(\"utf-8\").split(\" \")\n\n # Token structure isn't 'Bearer $token'\n if len(token) != 2:\n raise exceptions.AuthenticationFailed(\"Invalid token provided\")\n\n token = token[1]\n\n try:\n # Decoding the token with a secret key and extracting the User model info stored in it\n payload = jwt.decode(token, settings.SECRET_KEY, algorithms=\"HS256\")\n user = User.objects.get(username=payload[\"username\"])\n\n return (user, token)\n\n except jwt.ExpiredSignatureError as e:\n raise exceptions.AuthenticationFailed(\"The provided token is expired\")\n\n except jwt.DecodeError as e:\n raise exceptions.AuthenticationFailed(\n \"The provided token has invalid structure\"\n )\n\n except User.DoesNotExist as e:\n raise exceptions.AuthenticationFailed(\"The token owner does not exists\")\n","repo_name":"AlejoM1908/alpha-genbank","sub_path":"apps/user/jwt.py","file_name":"jwt.py","file_ext":"py","file_size_in_byte":1461,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"21846369196","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Wed Oct 9 19:31:53 2019\n\n@author: junbaba\n\"\"\"\nn = int(input())\na = []\nb = []\nfor i in range(n):\n list = input().split()\n a.append((int(list[0]),int(list[1])))\nfor i in range(n):\n list = input().split()\n b.append((int(list[0]),int(list[1])))\ni = 0\nj = 0\ntotaltime = 0\nwhile i < n and j < n:\n if a[i][1] <= b[j][0]:\n i += 1\n continue\n if b[j][1] <= a[i][0]:\n j += 1\n continue\n if a[i][0] >= b[j][0]:\n if a[i][1] <= b[j][1]:\n totaltime += a[i][1] - a[i][0]\n i += 1\n else:\n totaltime += b[j][1] - a[i][0]\n j += 1\n\n continue\n if a[i][0] < b[j][0]:\n if b[j][1] <= a[i][1]:\n totaltime += b[j][1] - b[j][0]\n j += 1\n else:\n totaltime += a[i][1] - b[j][0]\n i += 1\n continue\nprint (totaltime)\n\n","repo_name":"RookieJunChen/CSP-examination-questions","sub_path":"CSP/bin/CSP2018_9/CSP2018.9-2.py","file_name":"CSP2018.9-2.py","file_ext":"py","file_size_in_byte":905,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"15090571385","text":"#Others\n\nfrom tracemalloc import start\nfrom oreto_utils.terminal_utils import clearlines as out_clearlines\nfrom time import sleep as t_sleep, time as t_time, strftime as t_strftime\n\n__all__ = [\"countdown\", \"formatsize\", \"searchlist\"]\n\n#This is a countdown\ndef countdown(seconds:int, message:str=\"\", endmessage:str=\"\") -> None:\n \"\"\"This is a countdown that will print a message every second until it reaches 0.\"\"\"\n for _ in range(seconds):\n print(f\"{message}{seconds}\")\n t_sleep(1)\n seconds -= 1\n out_clearlines(1)\n print(endmessage) \n \n#This will format a byte size in KB, MB, GB, TB or PB \ndef formatsize(bytesize:int) -> str:\n \"\"\"The size in byte will be formated in KB, MB, GB, TB or PB.\"\"\"\n if bytesize < 1024:\n selected_unit = 0\n elif bytesize < 1024**2:\n selected_unit = 1\n elif bytesize < 1024**3:\n selected_unit = 2\n elif bytesize < 1024**4:\n selected_unit = 3\n elif bytesize < 1024**5:\n selected_unit = 4\n else:\n selected_unit = 5\n\n if bytesize >= 1024:\n formated_size = round(bytesize/1024**selected_unit, 2)\n else:\n formated_size = round(bytesize)\n\n units = [\"Bytes\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\"]\n return f\"{formated_size} {units[selected_unit]}\"\n\n#This searches for a specific value in a list, and returns the index of the value\n#It will return None if the value is not found\ndef searchlist(list:list, search:str, mode:str) -> (list | int):\n \"\"\"\n This searches for a specific value (STRING ONLY FOR NOW) in a list, and returns the index of the value.\n It will return None if the value is not found.\\n\n Modes:\n - f: First\n - f1: Returns the index of the value\n - f2: Returns the value \n - l: Last\n - l1: Returns the index of the last occurrence of the value\n - l2: Returns the value of the last occurrence of the value\n - c: Contains\n - c1: Returns index\n - c2: Returns a list of exactly which ones contains the search term\n - e: Exact\n \"\"\"\n filteredlist = [item for item in list if type(item) == str]\n if search in filteredlist:\n VALID = [\"f1\", \"f2\", \"l1\", \"l2\", \"c1\", \"c2\", \"e\"]\n if mode not in VALID:\n raise ValueError(f\"Mode {mode} is not valid. Valid modes are: {VALID}\")\n \n elif mode[0] == \"f\":\n items = [item for item in filteredlist if item.startswith(search)]\n if mode[1] == \"1\":\n return list.index(items[0])\n elif mode[1] == \"2\":\n return items[0]\n \n elif mode[0] == \"l\":\n items = [item for item in filteredlist if item.startswith(search)]\n if mode[1] == \"1\":\n return list.index(items[-1])\n elif mode[1] == \"2\":\n return items[-1]\n \n elif mode[0] == \"c\":\n if mode[1] == \"1\":\n return [list.index(items) for items in filteredlist if search in items]\n elif mode[1] == \"2\":\n return [items for items in filteredlist if search in items]\n \n elif mode == \"e\":\n return list.index(search)\n \n return None","repo_name":"OhRetro/oreto-utils","sub_path":"oreto_utils/others_utils.py","file_name":"others_utils.py","file_ext":"py","file_size_in_byte":3248,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"598669643","text":"import qcircuits as qc\nfrom itertools import product\n\n\n# Creates each of the four Bell states\n\n\ndef bell_state(x, y):\n H = qc.Hadamard()\n CNOT = qc.CNOT()\n\n phi = qc.bitstring(x, y)\n phi = H(phi, qubit_indices=[0])\n\n return CNOT(phi)\n\n\nif __name__ == '__main__':\n\n for x, y in product([0, 1], repeat=2):\n\n print('\\nInput: {} {}'.format(x, y))\n print('Bell state:')\n print(bell_state(x, y))\n","repo_name":"grey-area/qcircuits","sub_path":"examples/produce_bell_states.py","file_name":"produce_bell_states.py","file_ext":"py","file_size_in_byte":429,"program_lang":"python","lang":"en","doc_type":"code","stars":57,"dataset":"github-code","pt":"80"}
+{"seq_id":"69877088579","text":"# # 2.soru:\nimport random\nb = []\nwhile len(b) < 6:\n e = random.randint(1,50)\n if e not in b:\n b.append(e)\nprint(b)\n\n# 3.soru:\nb=0\ne=input(\"en fazla iki basamakli bir sayi girin: \")\ny = open(\"1904107005.beyzatuzcu.py\",'w')\nif int(e)<100 and int(e)>1 :\n for i in range(1,int(e)) :\n z=i//10\n a=i%10\n b=z+a\n if b % 2 == 1 :\n\n y.write( str(i)+\"=\" +str(b) +\" tek sayi oldugu icin dosyaya yazilir.\"+ \"\\n\")\n\n else:\n continue\n y.close()\nelse:\n print(\"hata oldu...\")\n\n# #SORU4:\nfrom functools import reduce\n\nb=['Aygun','Çiçek','Deniz','Atar','Dener','Yılmaz']\ne= [['Ayse', 3,6,7],['Ece', 5,2,4],['Arya', 6,5],['Ali', 3],['Can',5,7,9,11],['Aybar',2,3]]\ny=list(map(lambda z,:[z[0]+\" \"+b[0]] + [reduce(lambda a,b: a+b , z[1:])], e))\nprint(\"Elde etmemiz gereken sonuc = \",y)\n","repo_name":"beyzatuzcu/deneme","sub_path":"beyzatuzcu/1904107005.beyzatuzcu.py","file_name":"1904107005.beyzatuzcu.py","file_ext":"py","file_size_in_byte":845,"program_lang":"python","lang":"tr","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"28966928225","text":"from django.shortcuts import render, redirect\nimport json\nimport urllib.request\nfrom constants import api_key\n\n\n# Create your views here.\ndef index(req):\n data = {}\n if req.method == 'POST':\n try:\n city = req.POST['city']\n res = urllib.request.urlopen(\n f'http://api.openweathermap.org/data/2.5/weather?q={city}&appid={api_key}').read()\n res_data = json.loads(res)\n data = {\n 'country_code': str(res_data['sys']['country']),\n 'coordinate': f\"{res_data['coord']['lon']} {res_data['coord']['lat']}\",\n 'temp': f\"{res_data['main']['temp']}k\",\n 'pressure': str(res_data['main']['pressure']),\n 'humidity': str(res_data['main']['humidity']),\n }\n except:\n return render(req, 'error.html')\n return render(req, 'index.html', {'data': data, 'city': city})\n return render(req, 'index.html')\n","repo_name":"prateekthakur272/weather_detector","sub_path":"weather/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":965,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"71857438020","text":"# Detect English module\n# http://inventwithpython.com/hacking (BSD Licensed)\n\n# To use, type this code:\n# import detectEnglish\n# detectEnglish.isEnglish(someString) # returns True or False\n\nimport socket\n\nfrom domdf_python_tools.utils import pyversion as version\n\n# Trys to connect to the internet\ns = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)\ns.connect((\"google.com\", 80))\ns.close() # Closes the connection to google\n# Above code from http://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib\nif version == 2:\n\timport urllib\nelif version == 3:\n\timport urllib.request as urllib\nurllib.urlretrieve('http://invpy.com/dictionary.txt', 'dictionary.txt')\n\nUPPERLETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\nLETTERS_AND_SPACE = UPPERLETTERS + UPPERLETTERS.lower() + ' \\t\\n'\n\n\ndef loadDictionary():\n\tdictionaryFile = open('dictionary.txt')\n\tenglishWords = {}\n\tfor word in dictionaryFile.read().split('\\n'):\n\t\tenglishWords[word] = None\n\tdictionaryFile.close()\n\treturn englishWords\n\n\nENGLISH_WORDS = loadDictionary()\n\n\ndef getEnglishCount(message):\n\tmessage = message.upper()\n\tmessage = removeNonLetters(message)\n\tpossibleWords = message.split()\n\n\tif possibleWords == []:\n\t\treturn 0.0 # no words at all, so return 0.0\n\n\tmatches = 0\n\tfor word in possibleWords:\n\t\tif word in ENGLISH_WORDS:\n\t\t\tmatches += 1\n\treturn float(matches) / len(possibleWords)\n\n\ndef removeNonLetters(message):\n\tlettersOnly = []\n\tfor symbol in message:\n\t\tif symbol in LETTERS_AND_SPACE:\n\t\t\tlettersOnly.append(symbol)\n\treturn ''.join(lettersOnly)\n\n\ndef isEnglish(message, wordPercentage=20, letterPercentage=85):\n\t# By default, 20% of the words must exist in the dictionary file, and\n\t# 85% of all the characters in the message must be letters or spaces\n\t# (not punctuation or numbers).\n\twordsMatch = getEnglishCount(message) * 100 >= wordPercentage\n\tnumLetters = len(removeNonLetters(message))\n\tmessageLettersPercentage = float(numLetters) / len(message) * 100\n\tlettersMatch = messageLettersPercentage >= letterPercentage\n\treturn wordsMatch and lettersMatch\n","repo_name":"domdfcoding/Python_Modules","sub_path":"ciphers/detectEnglish.py","file_name":"detectEnglish.py","file_ext":"py","file_size_in_byte":2057,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"70712852124","text":"from datetime import timedelta\nimport json\n\nfrom django.contrib.auth import get_user_model\nfrom django.http.request import QueryDict\nfrom django.shortcuts import reverse\nfrom django.utils import timezone\nfrom rest_framework import status\nfrom rest_framework.test import APITestCase\nfrom wagtail.wagtailcore.models import Page\n\nfrom users.models import RegUser, Profile\nfrom .models import (CoachSurvey, CoachFormField, CoachSurveySubmission, CoachSurveySubmissionDraft,\n EndlineSurveySelectUser)\nfrom .reports import survey_aggregates\n\nSINGLE_LINE = 'singleline'\nRADIO_FIELD = 'radio'\n\n\n# ================ #\n# Helper functions #\n# ================ #\n\n\ndef create_survey(title='Test Survey', intro='Take this challenge', outro='Thanks for taking the challenge',\n deliver_after=1, **kwargs):\n parent_page = Page.get_root_nodes()[0]\n survey = CoachSurvey(\n title=title,\n intro=intro,\n outro=outro,\n deliver_after=deliver_after,\n **kwargs\n )\n parent_page.add_child(instance=survey)\n survey.unpublish()\n return survey\n\n\ndef publish(survey, user):\n survey.save_revision(\n user=user,\n submitted_for_moderation=False\n ).publish()\n\n\ndef create_user(username='Anon'):\n user = RegUser.objects.create(\n username=username,\n email='a@b.c'\n )\n Profile.objects.create(\n mobile='1234567890',\n user=user\n )\n return user\n\n\nclass CoachSurveyAPITest(APITestCase):\n def test_basic_submit(self):\n \"\"\"Test that a submission can be received\"\"\"\n user = create_user()\n survey = create_survey()\n survey.form_fields.create(\n key='field-1',\n label='First Form Field',\n field_type=RADIO_FIELD,\n choices='1,2,3,4,5'\n )\n publish(survey, user)\n\n submission = {\n 'field-1': '3'\n }\n\n self.client.force_authenticate(user=user)\n response = self.client.post(reverse('api:surveys-submission', kwargs={'pk': survey.pk}), submission,\n format='json')\n\n self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT, \"Survey submission request failed.\")\n\n data = json.loads(CoachSurveySubmission.objects.get(user=user, page=survey).form_data)\n self.assertEqual(data.get('field-1'), '3', \"Field not found in submission data\")\n\n def test_current_after_registration_days_none_available(self):\n \"\"\"Test that a survey is kept from the user before the specified number of days after registration has passed.\n \"\"\"\n now = timezone.now()\n\n user = create_user()\n user.date_joined = now - timedelta(days=2)\n user.save()\n survey = create_survey(deliver_after=3) # Survey will only be available the next day\n publish(survey, user)\n\n self.client.force_authenticate(user=user)\n response = self.client.get(reverse('api:surveys-current'))\n\n self.assertEqual(response.status_code, status.HTTP_200_OK, \"Retrieve current survey failed.\")\n self.assertFalse(response.data['available'], \"Available flag expected to be False.\")\n self.assertIsNone(response.data['survey'], \"Survey field was unexpectedly populated.\")\n\n def test_current_after_registration_days_available(self):\n \"\"\"Test that a survey is made available to the user after the specified number of days after registration has\n passed.\"\"\"\n now = timezone.now()\n\n user = create_user()\n user.date_joined = now - timedelta(days=3)\n user.save()\n survey = create_survey(deliver_after=3) # Survey is available today\n publish(survey, user)\n\n self.client.force_authenticate(user=user)\n response = self.client.get(reverse('api:surveys-current'))\n\n self.assertEqual(response.status_code, status.HTTP_200_OK, \"Retrieve current survey failed.\")\n self.assertTrue(response.data['available'], \"Available flag expected to be True.\")\n self.assertIsNotNone(response.data['survey'], \"Survey field was not populated.\")\n\n def test_filter_by_bot_conversation(self):\n \"\"\"Test that surveys can be filtered by the requested Bot conversation type.\n \"\"\"\n user = create_user('Anon')\n baseline_survey = create_survey(title='Baseline survey', bot_conversation=CoachSurvey.BASELINE)\n eatool_survey = create_survey(title='EA Tool', bot_conversation=CoachSurvey.EATOOL)\n\n publish(baseline_survey, user)\n publish(eatool_survey, user)\n\n self.client.force_authenticate(user=user)\n\n params = QueryDict(mutable=True)\n params.update({\n 'bot-conversation': 'SURVEY_EATOOL'\n })\n response = self.client.get(u'%s?%s' % (reverse('api:surveys-list'), params.urlencode()))\n\n self.assertEqual(len(response.data), 1, \"Unexpected number of surveys returned.\")\n self.assertEqual(response.data[0]['id'], eatool_survey.id, \"Unexpected Survey returned.\")\n\n def test_unavailable_after_submit(self):\n \"\"\"Test that a survey is unavailable after a submission is successfully created.\n \"\"\"\n now = timezone.now()\n\n user = create_user()\n user.date_joined = now - timedelta(days=4)\n user.save()\n survey = create_survey(deliver_after=3) # Survey is available today\n survey.form_fields.create(\n key='field-1',\n label='First Form Field',\n field_type=SINGLE_LINE,\n required=False\n )\n publish(survey, create_user('Staff'))\n\n submission = {\n 'field-1': 'one'\n }\n\n self.client.force_authenticate(user=user)\n self.client.post(reverse('api:surveys-submission', kwargs={'pk': survey.pk}),\n submission, format='json')\n\n response = self.client.get(reverse('api:surveys-current'), format='json')\n\n self.assertFalse(response.data['available'], \"Survey still avaialble after submission.\")\n self.assertEqual(response.data['inactivity_age'], 0,\n \"Inactivity age was returned when survey was not available.\")\n self.assertIsNone(response.data['survey'], \"Survey object was returned.\")\n\n def test_next_available(self):\n \"\"\"If there are multiple surveys set up, and the user submits to the first, then the second must be available.\n \"\"\"\n now = timezone.now()\n\n user = create_user()\n user.date_joined = now - timedelta(days=8) # Both surveys will be available\n user.save()\n\n survey1 = create_survey('Baseline', deliver_after=3, bot_conversation=CoachSurvey.BASELINE)\n survey1.form_fields.create(\n key='field-1',\n label='First Form Field',\n field_type=SINGLE_LINE,\n required=False\n )\n publish(survey1, create_user('Staff1'))\n\n survey2 = create_survey('EA Tool', deliver_after=7, bot_conversation=CoachSurvey.EATOOL)\n survey2.form_fields.create(\n key='field-1',\n label='First Form Field',\n field_type=SINGLE_LINE,\n required=False\n )\n publish(survey2, create_user('Staff2'))\n\n # User submits to first survey\n self.client.force_authenticate(user=user)\n self.client.post(reverse('api:surveys-submission', kwargs={'pk': survey1.pk}), data={\n 'field-1': 'one'\n }, format='json')\n\n # Second survey must now be available\n response = self.client.get(reverse('api:surveys-current'), format='json')\n\n self.assertTrue(response.data['available'], \"Survey is not available.\")\n self.assertIsNotNone(response.data['survey'], \"Survey is not in response.\")\n self.assertEqual(response.data['survey']['id'], survey2.id, \"Unexpected survey identity.\")\n self.assertEqual(response.data['survey']['bot_conversation'], 'SURVEY_EATOOL',\n \"Unexpected Bot conversation type.\")\n\n\nclass SurveyNotificationAgeAPI(APITestCase):\n \"\"\"\n Tests to ensure that the days of inactivity is measured correctly. They are used by the frontend to determine\n what notification to show the user.\n \"\"\"\n\n def test_notification_inactivity_days(self):\n \"\"\"If the user has not completed the survey in 3 days, the first reminder will be triggered on the frontend.\"\"\"\n now = timezone.now()\n\n user = create_user()\n user.date_joined = now - timedelta(days=7)\n user.save()\n\n survey = create_survey(deliver_after=3)\n publish(survey, create_user('Staff'))\n\n self.client.force_authenticate(user=user)\n response = self.client.get(reverse('api:surveys-current'), format='json')\n\n # Age is counted since the survey is available to the user. The user has been registered for 7 days, the survey\n # was available after 3, so the age must be 4.\n self.assertEqual(response.data['inactivity_age'], 4,\n \"Unexpected survey age. Will affect notification thresholds on frontend.\")\n\n\nclass DraftAPITest(APITestCase):\n def test_basic_draft_submit(self):\n \"\"\"Test that a draft can be submitted.\"\"\"\n user = create_user('anon')\n survey = create_survey()\n survey.form_fields.create(\n key='first',\n label='First',\n field_type=SINGLE_LINE\n )\n survey.form_fields.create(\n key='second',\n label='Second',\n field_type=SINGLE_LINE\n )\n publish(survey, user)\n\n self.client.force_authenticate(user=user)\n response = self.client.patch(reverse('api:surveys-draft', kwargs={'pk': survey.pk}), {\n 'first': '1',\n 'second': '2'\n }, format='json')\n\n self.assertEqual(response.status_code, status.HTTP_204_NO_CONTENT, \"Draft submit request failed\")\n\n updated_draft = CoachSurveySubmissionDraft.objects.get(user=user, survey=survey)\n submission_data = json.loads(updated_draft.submission_data)\n self.assertEqual(submission_data.get('first', None), '1', \"First submission field was not set\")\n self.assertEqual(submission_data.get('second', None), '2', \"Second submission field was not set\")\n self.assertFalse(updated_draft.complete, \"Draft was set to completed.\")\n self.assertIsNone(updated_draft.submission, \"Draft has submission assigned.\")\n\n def test_draft_partial_submit(self):\n \"\"\"Test that a draft can be partially submitted.\"\"\"\n user = create_user()\n survey = create_survey()\n survey.form_fields.create(\n key='first',\n label='First',\n field_type=SINGLE_LINE\n )\n survey.form_fields.create(\n key='second',\n label='Second',\n field_type=SINGLE_LINE\n )\n publish(survey, create_user('Staff'))\n\n self.client.force_authenticate(user=user)\n self.client.patch(reverse('api:surveys-draft', kwargs={'pk': survey.pk}), {\n 'second': '2'\n }, format='json')\n\n updated_draft = CoachSurveySubmissionDraft.objects.get(user=user, survey=survey)\n data = json.loads(updated_draft.submission_data if updated_draft.has_submission else {})\n\n self.assertEqual(data.get('second', None), '2', \"Second field was not set\")\n\n def test_ensure_draft_on_submit(self):\n \"\"\"\n Test that a draft is created when a survey is submitted, if one hasn't been created. This is to simplify\n reporting later, so data can exported using the drafts, and not inferred from existing submissions and missing\n drafts.\n \"\"\"\n user = create_user()\n survey = create_survey()\n survey.form_fields.create(\n key='first',\n label='First',\n field_type=SINGLE_LINE\n )\n publish(survey, create_user('Staff'))\n\n self.client.force_authenticate(user=user)\n self.client.post(reverse('api:surveys-submission', kwargs={'pk': survey.pk}), {\n CoachSurvey.CONSENT_KEY: CoachSurvey.ANSWER_YES,\n 'first': '1'\n }, format='json')\n\n self.assertTrue(CoachSurveySubmissionDraft.objects.filter(user=user, survey=survey).exists(),\n \"Draft was not created.\")\n\n submission = CoachSurveySubmission.objects.get(user=user, page=survey)\n draft = CoachSurveySubmissionDraft.objects.get(user=user, survey=survey, complete=True)\n self.assertEqual(draft.submission, submission, \"Submission was not assigned to draft.\")\n\n def test_consent_set(self):\n \"\"\"Test that submitting a draft answer containing the appropriate consent answer will store the draft correctly.\n \"\"\"\n user = create_user()\n survey = create_survey()\n survey.form_fields.create(\n key='first',\n label='First',\n field_type=SINGLE_LINE\n )\n survey.form_fields.create(\n key='second',\n label='Second',\n field_type=SINGLE_LINE\n )\n publish(survey, create_user('Staff'))\n\n self.client.force_authenticate(user=user)\n self.client.patch(reverse('api:surveys-draft', kwargs={'pk': survey.pk}), {\n CoachSurvey.CONSENT_KEY: CoachSurvey.ANSWER_YES,\n 'first': '1',\n 'second': '2'\n }, format='json')\n\n updated_draft = CoachSurveySubmissionDraft.objects.get(user=user, survey=survey)\n data = json.loads(updated_draft.submission_data) if updated_draft.has_submission else {}\n\n self.assertTrue(updated_draft.consent, \"Consent was not stored\")\n self.assertIsNone(data.get(CoachSurvey.CONSENT_KEY, None), \"Consent was stored in submission data\")\n\n def test_consent_not_unset(self):\n \"\"\"Test that doing a partial update without a consent value does not set an existing True consent value to\n False.\n \"\"\"\n user = create_user()\n survey = create_survey()\n survey.form_fields.create(\n key='first',\n label='First',\n field_type=SINGLE_LINE\n )\n survey.form_fields.create(\n key='second',\n label='Second',\n field_type=SINGLE_LINE\n )\n publish(survey, create_user('Staff'))\n\n self.client.force_authenticate(user=user)\n\n # User provides consent and first answer\n self.client.patch(reverse('api:surveys-draft', kwargs={'pk': survey.pk}), {\n CoachSurvey.CONSENT_KEY: CoachSurvey.ANSWER_YES,\n 'first': '1'\n }, format='json')\n\n # User provides second answer\n self.client.patch(reverse('api:surveys-draft', kwargs={'pk': survey.pk}), {\n 'second': '2'\n }, format='json')\n\n updated_draft = CoachSurveySubmissionDraft.objects.get(user=user, survey=survey)\n\n self.assertTrue(updated_draft.consent, \"Consent was set to False on second draft update\")\n\n def test_consent_partial(self):\n \"\"\"Test that a draft can be submitted with only consent.\"\"\"\n user = create_user()\n survey = create_survey()\n survey.form_fields.create(\n key='first',\n label='First',\n field_type=SINGLE_LINE\n )\n publish(survey, create_user('Staff'))\n\n self.client.force_authenticate(user=user)\n self.client.patch(reverse('api:surveys-draft', kwargs={'pk': survey.pk}), {\n CoachSurvey.CONSENT_KEY: CoachSurvey.ANSWER_YES\n }, format='json')\n\n updated_draft = CoachSurveySubmissionDraft.objects.get(user=user, survey=survey)\n data = json.loads(updated_draft.submission_data) if updated_draft.has_submission else {}\n\n self.assertTrue(updated_draft.consent, \"Consent was not set.\")\n self.assertEqual(data, {}, \"Draft submission unexpectedly contains data.\")\n\n\nclass SurveyReportingRequirements(APITestCase):\n def test_survey_report_aggregation(self):\n \"\"\"Test that total data by survey aggregates correctly.\"\"\"\n staff = create_user('Staff')\n users = [create_user('anon' + str(i)) for i in range(10)]\n surveys = []\n for i in range(3):\n survey = create_survey('Survey ' + str(i))\n publish(survey, staff)\n surveys.append(survey)\n\n # Users who submitted drafts\n for user in users[0:7]:\n self.client.force_authenticate(user=user)\n\n # Survey 1\n self.client.put(reverse('api:surveys-draft', kwargs={'pk': surveys[0].pk}), {}, format='json')\n\n survey_aggregates()\n self.skipTest('TODO')\n\n\nclass SurveyDataPreservationTests(APITestCase):\n \"\"\"Tests to check whether submission exports store historical data.\n \"\"\"\n\n def test_user_deletion(self):\n \"\"\"Test whether deleting a user will preserve the data as it was at time of submission.\"\"\"\n user = RegUser.objects.create(\n username='anon',\n first_name='Anonymous',\n last_name='Rex',\n email='a@b.c'\n )\n Profile.objects.create(\n user=user,\n age=30,\n gender=Profile.GENDER_MALE,\n mobile='12345667890'\n )\n survey = create_survey()\n survey.form_fields.create(\n key='first',\n label='First',\n field_type=SINGLE_LINE\n )\n publish(survey, create_user('Staff'))\n\n self.client.force_authenticate(user=user)\n self.client.post(reverse('api:surveys-submission', kwargs={'pk': survey.pk}), {\n CoachSurvey.CONSENT_KEY: CoachSurvey.ANSWER_YES,\n 'first': '1'\n }, format='json')\n\n # Copy user info for testing\n user_id = user.id\n user_name = user.get_full_name()\n user_username = user.username\n user_mobile = user.profile.mobile\n user_gender = user.profile.get_gender_display()\n user_age = str(user.profile.age)\n user_email = user.email\n\n user.delete()\n\n submission = CoachSurveySubmission.objects.filter(survey=survey).first()\n self.assertIsNotNone(submission, \"Submission was deleted along with user\")\n\n data = submission.get_data()\n self.assertEqual(data['user_id'], user_id)\n self.assertEqual(data['name'], user_name)\n self.assertEqual(data['username'], user_username)\n self.assertEqual(data['mobile'], user_mobile)\n self.assertEqual(data['gender'], user_gender)\n self.assertEqual(data['age'], user_age)\n self.assertEqual(data['email'], user_email)\n\n\nclass TestEndlineSurvey(APITestCase):\n def test_link_created_on_register(self):\n \"\"\"Ensure that when a new user registers, they receive an endline survey link.\"\"\"\n\n data = {\n 'username': 'anon',\n 'password': 'blargh',\n 'profile': {\n 'mobile': '1112223334',\n 'age': 18,\n 'gender': Profile.GENDER_FEMALE\n }\n }\n\n response = self.client.post(reverse('api:users-list'), data, format='json')\n\n self.assertEqual(response.status_code, status.HTTP_201_CREATED, \"User registration failed\")\n\n link = EndlineSurveySelectUser.objects.get(user_id=response.data['id'])\n self.assertIsNotNone(link, \"Link was not created\")\n","repo_name":"praekeltfoundation/gem-bbb-indo-server","sub_path":"survey/tests.py","file_name":"tests.py","file_ext":"py","file_size_in_byte":19399,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"22089558687","text":"#!/usr/bin/python\n# -*- coding: utf-8 -*-\n# (c) 2017, Joseph Benden \n#\n# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)\n\nfrom __future__ import absolute_import, division, print_function\n__metaclass__ = type\n\nDOCUMENTATION = '''\nmodule: xfconf\nauthor:\n - \"Joseph Benden (@jbenden)\"\n - \"Alexei Znamensky (@russoz)\"\nshort_description: Edit XFCE4 Configurations\ndescription:\n - This module allows for the manipulation of Xfce 4 Configuration with the help of\n xfconf-query. Please see the xfconf-query(1) man pages for more details.\noptions:\n channel:\n description:\n - A Xfconf preference channel is a top-level tree key, inside of the\n Xfconf repository that corresponds to the location for which all\n application properties/keys are stored. See man xfconf-query(1)\n required: yes\n type: str\n property:\n description:\n - A Xfce preference key is an element in the Xfconf repository\n that corresponds to an application preference. See man xfconf-query(1)\n required: yes\n type: str\n value:\n description:\n - Preference properties typically have simple values such as strings,\n integers, or lists of strings and integers. This is ignored if the state\n is \"get\". For array mode, use a list of values. See man xfconf-query(1)\n type: list\n elements: raw\n value_type:\n description:\n - The type of value being set. This is ignored if the state is \"get\".\n For array mode, use a list of types.\n type: list\n elements: str\n choices: [ int, uint, bool, float, double, string ]\n state:\n type: str\n description:\n - The action to take upon the property/value.\n - State C(get) is deprecated and will be removed in community.general 5.0.0. Please use the module M(community.general.xfconf_info) instead.\n choices: [ get, present, absent ]\n default: \"present\"\n force_array:\n description:\n - Force array even if only one element\n type: bool\n default: 'no'\n aliases: ['array']\n version_added: 1.0.0\n disable_facts:\n description:\n - The value C(false) is no longer allowed since community.general 4.0.0.\n - This option will be deprecated in a future version, and eventually be removed.\n type: bool\n default: true\n version_added: 2.1.0\n'''\n\nEXAMPLES = \"\"\"\n- name: Change the DPI to \"192\"\n xfconf:\n channel: \"xsettings\"\n property: \"/Xft/DPI\"\n value_type: \"int\"\n value: \"192\"\n\n- name: Set workspace names (4)\n xfconf:\n channel: xfwm4\n property: /general/workspace_names\n value_type: string\n value: ['Main', 'Work1', 'Work2', 'Tmp']\n\n- name: Set workspace names (1)\n xfconf:\n channel: xfwm4\n property: /general/workspace_names\n value_type: string\n value: ['Main']\n force_array: yes\n\"\"\"\n\nRETURN = '''\n channel:\n description: The channel specified in the module parameters\n returned: success\n type: str\n sample: \"xsettings\"\n property:\n description: The property specified in the module parameters\n returned: success\n type: str\n sample: \"/Xft/DPI\"\n value_type:\n description:\n - The type of the value that was changed (C(none) for C(get) and C(reset)\n state). Either a single string value or a list of strings for array\n types.\n returned: success\n type: string or list of strings\n sample: '\"int\" or [\"str\", \"str\", \"str\"]'\n value:\n description:\n - The value of the preference key after executing the module. Either a\n single string value or a list of strings for array types.\n returned: success\n type: string or list of strings\n sample: '\"192\" or [\"orange\", \"yellow\", \"violet\"]'\n previous_value:\n description:\n - The value of the preference key before executing the module (C(none) for\n C(get) state). Either a single string value or a list of strings for array\n types.\n returned: success\n type: string or list of strings\n sample: '\"96\" or [\"red\", \"blue\", \"green\"]'\n'''\n\nfrom ansible_collections.community.general.plugins.module_utils.module_helper import (\n ModuleHelper, CmdMixin, StateMixin, ArgFormat, ModuleHelperException\n)\n\n\ndef fix_bool(value):\n vl = value.lower()\n return vl if vl in (\"true\", \"false\") else value\n\n\n@ArgFormat.stars_deco(1)\ndef values_fmt(values, value_types):\n result = []\n for value, value_type in zip(values, value_types):\n if value_type == 'bool':\n value = fix_bool(value)\n result.extend(['--type', '{0}'.format(value_type), '--set', '{0}'.format(value)])\n return result\n\n\nclass XFConfException(Exception):\n pass\n\n\nclass XFConfProperty(CmdMixin, StateMixin, ModuleHelper):\n change_params = 'value',\n diff_params = 'value',\n output_params = ('property', 'channel', 'value')\n facts_params = ('property', 'channel', 'value')\n module = dict(\n argument_spec=dict(\n state=dict(default=\"present\",\n choices=(\"present\", \"get\", \"absent\"),\n type='str'),\n channel=dict(required=True, type='str'),\n property=dict(required=True, type='str'),\n value_type=dict(required=False, type='list',\n elements='str', choices=('int', 'uint', 'bool', 'float', 'double', 'string')),\n value=dict(required=False, type='list', elements='raw'),\n force_array=dict(default=False, type='bool', aliases=['array']),\n disable_facts=dict(type='bool', default=True),\n ),\n required_if=[('state', 'present', ['value', 'value_type'])],\n required_together=[('value', 'value_type')],\n supports_check_mode=True,\n )\n\n default_state = 'present'\n command = 'xfconf-query'\n command_args_formats = dict(\n channel=dict(fmt=('--channel', '{0}'),),\n property=dict(fmt=('--property', '{0}'),),\n is_array=dict(fmt=\"--force-array\", style=ArgFormat.BOOLEAN),\n reset=dict(fmt=\"--reset\", style=ArgFormat.BOOLEAN),\n create=dict(fmt=\"--create\", style=ArgFormat.BOOLEAN),\n values_and_types=dict(fmt=values_fmt)\n )\n\n def update_xfconf_output(self, **kwargs):\n self.update_vars(meta={\"output\": True, \"fact\": True}, **kwargs)\n\n def __init_module__(self):\n self.does_not = 'Property \"{0}\" does not exist on channel \"{1}\".'.format(self.module.params['property'],\n self.module.params['channel'])\n self.vars.set('previous_value', self._get(), fact=True)\n self.vars.set('type', self.vars.value_type, fact=True)\n self.vars.meta('value').set(initial_value=self.vars.previous_value)\n\n if self.module.params['disable_facts'] is False:\n raise ModuleHelperException('Returning results as facts has been removed. Stop using disable_facts=false.')\n\n def process_command_output(self, rc, out, err):\n if err.rstrip() == self.does_not:\n return None\n if rc or len(err):\n raise XFConfException('xfconf-query failed with error (rc={0}): {1}'.format(rc, err))\n\n result = out.rstrip()\n if \"Value is an array with\" in result:\n result = result.split(\"\\n\")\n result.pop(0)\n result.pop(0)\n\n return result\n\n def _get(self):\n return self.run_command(params=('channel', 'property'))\n\n def state_get(self):\n self.vars.value = self.vars.previous_value\n self.vars.previous_value = None\n self.module.deprecate(\n msg=\"State 'get' is deprecated. Please use the module community.general.xfconf_info instead\",\n version=\"5.0.0\", collection_name=\"community.general\"\n )\n\n def state_absent(self):\n if not self.module.check_mode:\n self.run_command(params=('channel', 'property', {'reset': True}))\n self.vars.value = None\n\n def state_present(self):\n # stringify all values - in the CLI they will all be happy strings anyway\n # and by doing this here the rest of the code can be agnostic to it\n self.vars.value = [str(v) for v in self.vars.value]\n value_type = self.vars.value_type\n\n values_len = len(self.vars.value)\n types_len = len(value_type)\n\n if types_len == 1:\n # use one single type for the entire list\n value_type = value_type * values_len\n elif types_len != values_len:\n # or complain if lists' lengths are different\n raise XFConfException('Number of elements in \"value\" and \"value_type\" must be the same')\n\n # fix boolean values\n self.vars.value = [fix_bool(v[0]) if v[1] == 'bool' else v[0] for v in zip(self.vars.value, value_type)]\n\n # calculates if it is an array\n self.vars.is_array = \\\n bool(self.vars.force_array) or \\\n isinstance(self.vars.previous_value, list) or \\\n values_len > 1\n\n params = ['channel', 'property', {'create': True}]\n if self.vars.is_array:\n params.append('is_array')\n params.append({'values_and_types': (self.vars.value, value_type)})\n\n if not self.module.check_mode:\n self.run_command(params=params)\n\n if not self.vars.is_array:\n self.vars.value = self.vars.value[0]\n self.vars.type = value_type[0]\n else:\n self.vars.type = value_type\n\n\ndef main():\n XFConfProperty.execute()\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"iamgini/ansible-real-life","sub_path":"Ansible-AWS-Provisioning/collections/ansible_collections/community/general/plugins/modules/system/xfconf.py","file_name":"xfconf.py","file_ext":"py","file_size_in_byte":9478,"program_lang":"python","lang":"en","doc_type":"code","stars":65,"dataset":"github-code","pt":"86"}
+{"seq_id":"17264344349","text":"import Vehicle\nimport argparse\nimport sys\n\nif sys.version_info[0] == 2:\n input1 = input()\n\n\nclass ParkingLot:\n def __init__(self):\n self.capacity = 0\n self.slotid = 0\n self.numOfOccupiedSlots = 0\n self.res_di = {}\n\n def createParkingLot(self, capacity):\n self.slots = [-1] * capacity\n self.capacity = capacity\n return self.capacity\n\n def getEmptySlot(self):\n for i in range(len(self.slots)):\n if self.slots[i] == -1:\n return i\n\n def park(self, regno, color, age):\n if self.numOfOccupiedSlots < self.capacity:\n slotid = self.getEmptySlot()\n self.slots[slotid] = Vehicle.Car(regno, color, age)\n print(self.slots[slotid])\n self.slotid = self.slotid + 1\n self.numOfOccupiedSlots = self.numOfOccupiedSlots + 1\n return slotid + 1\n else:\n return -1\n\n def leave(self, slotid):\n if self.numOfOccupiedSlots > 0 and self.slots[slotid - 1] != -1:\n self.slots[slotid - 1] = -1\n self.numOfOccupiedSlots = self.numOfOccupiedSlots - 1\n return True\n else:\n return False\n\n def status(self):\n #res_di = dict()\n\n print(\"Slot No.\\tRegistration No.\\tColour.\\t\\tAge\")\n for i in range(len(self.slots)):\n if self.slots[i] != -1:\n li = []\n print(str(i + 1) + \"\\t\\t\" + str(self.slots[i].regno) + \"\\t\\t\" + str(self.slots[i].color)+\"\\t\\t\" + str(self.slots[i].age))\n li.append(str(self.slots[i].regno))\n li.append(str(self.slots[i].age))\n else:\n continue\n self.res_di[str(i+1)] = li\n print(self.res_di)\n\n def getRegNoFromColor(self, color):\n\n regnos = []\n for i in self.slots:\n\n if i == -1:\n continue\n if i.color == color:\n regnos.append(i.regno)\n return regnos\n\n def getSlotNoFromRegNo(self, regno):\n\n for i in range(len(self.slots)):\n if self.slots[i].regno == regno:\n return i + 1\n else:\n continue\n return -1\n\n def getSlotNoFromColor(self, color):\n\n slotnos = []\n print(self.slots)\n for i in range(len(self.slots)):\n\n if self.slots[i] == -1:\n continue\n if self.slots[i].color == color:\n slotnos.append(str(i + 1))\n return slotnos\n\n# slot_no by age\n def slot_no_of_age(self, age):\n slotnos = []\n for i in range(len(self.slots)):\n if self.slots[i] == -1:\n continue\n if self.slots[i].age == age:\n slotnos.append(str(i + 1))\n return slotnos\n\n#vehicle registration by Age\n\n def getRegNoFromAge(self, age):\n\n regnos = []\n for i in self.slots:\n\n if i == -1:\n continue\n if i.age == age:\n regnos.append(i.regno)\n return regnos\n\n\n\n def show(self, line):\n if line.startswith('Create_parking_lot'):\n n = int(line.split(' ')[1])\n res = self.createParkingLot(n)\n print('Created parking of ' + str(res) + ' slots')\n\n elif line.startswith('Park'):\n regno = line.split(' ')[1]\n color = line.split(' ')[2]\n age = line.split(' ')[4]\n res = self.park(regno, color, age)\n if res == -1:\n print(\"Sorry, parking lot is full\")\n else:\n print('Car with Vehicle Registration Number '+ '\"'+str(regno)+'\"' +' has been parked at slot number ' + str(res))\n\n elif line.startswith('Leave'):\n leave_slotid = int(line.split(' ')[1])\n status = self.leave(leave_slotid)\n if status:\n print(\"Slot number {0} vacated, the car with vehicle registration number {1} left the space, the driver of the car was of age {2}\"\n .format(leave_slotid, self.res_di[str(leave_slotid)][0], self.res_di[str(leave_slotid)][1]))\n\n elif line.startswith('Status'):\n self.status()\n\n elif line.startswith('registration_numbers_for_cars_with_colour'):\n color = line.split(' ')[1]\n regnos = self.getRegNoFromColor(color)\n print(', '.join(regnos))\n\n elif line.startswith('Slot_numbers_for_cars_with_colour'):\n color = line.split(' ')[1]\n slotnos = self.getSlotNoFromColor(color)\n print(', '.join(slotnos))\n\n elif line.startswith('Slot_number_for_car_with_number'):\n regno = line.split(' ')[1]\n slotno = self.getSlotNoFromRegNo(regno)\n if slotno == -1:\n print(\"Not found\")\n else:\n print(slotno)\n\n elif line.startswith('Slot_numbers_for_driver_of_age'):\n age = line.split(' ')[1]\n slotno = self.slot_no_of_age(age)\n if slotno == -1:\n print(\"Not found\")\n else:\n print(slotno)\n\n elif line.startswith('Vehicle_registration_number_for_driver_of_age 18'):\n color = line.split(' ')[1]\n regnos = self.getRegNoFromAge(color)\n print(', '.join(regnos))\n\n elif line.startswith('exit'):\n exit(0)\n\n\ndef main():\n parkinglot = ParkingLot()\n parser = argparse.ArgumentParser()\n parser.add_argument('-f', action=\"store\", required=False, dest='src_file', help=\"Input File\")\n args = parser.parse_args()\n\n if args.src_file:\n with open(args.src_file) as f:\n for line in f:\n line = line.rstrip('\\n')\n parkinglot.show(line)\n else:\n while True:\n line = input(\"$ \")\n parkinglot.show(line)\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"thakuranuj19/squadstack","sub_path":"Parkinglot.py","file_name":"Parkinglot.py","file_ext":"py","file_size_in_byte":5912,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"17672610913","text":"\"\"\"install.py\n\nThis script facilitates the detection and configuration of Ghidra installation\npath.\n\nThe script provides functions to automatically find the Ghidra installation\ndirectory from a set of standard locations, retrieve the Ghidra path from a\nconfiguration file, or save a specified Ghidra path to a configuration file.\nThe main function orchestrates these tasks to ensure that the Ghidra path is\nproperly configured before proceeding with further analysis tasks.\n\nReturns:\n None: This script is intended to be run as a standalone utility, and does\n not return any values when executed.\n\"\"\"\n\nimport os\n\nGHIDRA_SCRIPT = \"support/analyzeHeadless\"\n\n# List of standard locations to check for Ghidra installation\nSTANDARD_LOCATIONS = [\n \"/usr/bin/ghidra\",\n \"/usr/local/bin/ghidra\",\n \"/opt/ghidra\"\n]\n\ndef find_ghidra_installation():\n \"\"\"\n Try to find the Ghidra installation directory by checking standard\n locations.\n\n This function iterates through a predefined list of standard file paths\n where Ghidra might be installed. It checks whether the `GHIDRA_SCRIPT`\n exists in any of these locations, and returns the directory path if found.\n\n Returns:\n str or None: The file path of the Ghidra installation directory if\n found, otherwise None.\n \"\"\"\n for location in STANDARD_LOCATIONS:\n if os.path.exists(os.path.join(location, GHIDRA_SCRIPT)):\n return location\n return None\n\ndef get_ghidra_path_from_config():\n \"\"\"\n Try to get the Ghidra path from the configuration file.\n\n This function checks for the existence of a configuration file and reads\n the Ghidra path from it if present.\n\n Returns:\n str or None: The Ghidra path as a string if found in the configuration\n file, otherwise None.\n \"\"\"\n if os.path.exists(\"./conf/main.conf\"):\n with open(\"./conf/main.conf\", mode='r', encoding='utf-8') as f:\n return f.readline().strip()\n return None\n\ndef save_ghidra_path_to_config(path):\n \"\"\"\n Save the Ghidra path to the configuration file.\n\n This function opens the configuration file for writing (or creates it if it\n doesn't exist) and writes the specified Ghidra path to it.\n\n Args:\n path (str): The file path to the Ghidra installation to be saved to the\n configuration file.\n \"\"\"\n with open(\"./conf/main.conf\", mode='w', encoding='utf-8') as f:\n f.write(path)\n\n\ndef main():\n \"\"\"\n Main function to manage the Ghidra path configuration.\n\n This function first attempts to retrieve the Ghidra path from the\n configuration file. If not found, it tries to find the Ghidra installation\n automatically from standard locations. If still not found, it prompts the\n user to input the Ghidra path, which is then saved to the configuration\n file for future use.\n \"\"\"\n ghidra_path = get_ghidra_path_from_config()\n\n if not ghidra_path:\n ghidra_path = find_ghidra_installation()\n\n if not ghidra_path:\n ghidra_path = input(\"Please enter the path to your Ghidra installation: \")\n save_ghidra_path_to_config(ghidra_path)\n\n print(f\"Using Ghidra installation at: {ghidra_path}\")\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"thomasthaddeus/ghidra_automation","sub_path":"src/install.py","file_name":"install.py","file_ext":"py","file_size_in_byte":3233,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"26466452306","text":"import os \nimport nrrd \nimport numpy as np\nimport pickle\nimport json \nimport time \nimport collections\nimport datetime \nimport torch\nfrom lib.render import render_model_id #lib.render import render_model_id \nimport sys\nsys.path.append(\"..\")\nfrom config import cfg\n#from config import cfg\n\nimport pdb \n\n\n\ndef convert_idx_to_words(data_list):\n \"\"\"Converts each sentence/caption in the data_list using the idx_to_word dict.\n Args:\n idx_to_word: A dictionary mapping word indices (keys) in string format (?) to words.\n data_list: A list of dictionaries. Each dictionary contains a 'raw_embedding' field (among\n other fields) that is a list of word indices.\n Returns:\n sentences: A list of sentences (strings).\n \"\"\"\n inputs_list = json.load(open(cfg.DIR.JSON_PATH, 'r'))\n idx_to_word = inputs_list['idx_to_word']\n\n sentences = []\n #for idx, cur_dict in enumerate(data_list):\n # sentences.append(('%04d ' % idx) + ' '.join([idx_to_word[str(word_idx)] for word_idx in cur_dict['raw_caption_embedding'] if word_idx != 0]))\n sentences.append(' '.join([idx_to_word[str(word_idx)] for word_idx in data_list if word_idx != 0]))\n\n return sentences\n\ndef create_embedding_tuples(trained_embeddings,embedd_type='text'): \n #print(trained_embeddings.keys())\n dim_emb = trained_embeddings['dataset_size']\n embeddings_matrix = np.zeros((dim_emb, 128))\n cat_mod_id = []\n raw_caption = []\n for idx,entry in enumerate(trained_embeddings['caption_embedding_tuples']):\n \n embeddings_matrix[idx] = entry[1]\n cat_mod_id.append(entry[0])\n if(embedd_type == 'text'):\n raw_caption.append(entry[2])\n\n if(embedd_type == 'text'):\n return embeddings_matrix,cat_mod_id,raw_caption \n else:\n return embeddings_matrix,cat_mod_id\n\ndef make_data_processes(data_process_class, queue, data_paths, opts, repeat): \n \n processes = [] \n for i in range(opts.num_workers): \n process = data_process_class(queue, data_paths, opts, repeat=repeat)\n process.start() \n processes.append(process) \n\n return processes \n\ndef kill_processes(queue, processes): \n print('signal processes to shutdown')\n\n for p in processes: \n p.shutdown() \n\n \n \n while not queue.empty(): # If queue is not empty \n time.sleep(0.5)\n try: \n queue.get(False) \n except:\n print('now queue size is {0}'.format(queue.qsize()))\n pass \n\n print('killing processes.') \n for p in processes:\n p.terminate() \n\ndef create_pickle_embedding(mat,embedd_type ='shape'):\n print(\"start pickle !\")\n dict_ = {}\n seen_models = []\n tuples = []\n for ele in mat:\n \n if(ele[0] in seen_models):\n continue\n else:\n seen_models.append(ele[0])\n if(embedd_type == 'text_only'):\n tuples.append((ele[0],ele[1],ele[2]))\n else:\n tuples.append((ele[0],ele[1]))\n \n \n \n dict_ = {\n 'caption_embedding_tuples': tuples,\n 'dataset_size':len(tuples)\n }\n\n output = open('{}.p'.format(embedd_type), 'wb')\n pickle.dump(dict_, output)\n output.close()\n\n\n print(\"created pickle file for {}\".format(embedd_type))\n# read nrrd data \ndef read_nrrd(nrrd_filename):\n \"\"\"\n Reads an NRRD file and returns an RGBA tensor \n Args: \n nrrd_filename: filename of nrrd file \n Returns: \n voxel tensor: 4-dimensional voxel tensor with 4 channels (RGBA) where the alpha channel \n is the last channel(aka vx[:, :, :, 3]).\n \"\"\"\n nrrd_tensor, options = nrrd.read(nrrd_filename)\n assert nrrd_tensor.ndim == 4 \n\n # convert to float [0,1]\n voxel_tensor = nrrd_tensor.astype(np.float32) / 255 \n # Move channel dimension to last dimensions \n voxel_tensor = np.rollaxis(voxel_tensor, 0, 4) \n\n # Make the model stand up straight by swapping axes\n voxel_tensor = np.swapaxes(voxel_tensor, 0, 1) \n voxel_tensor = np.swapaxes(voxel_tensor, 0, 2) \n\n return voxel_tensor\n# write nrrd \ndef write_one_voxel2nrrd(voxel_tensor, filename):\n \"\"\"\n Converts binvox tensor to NRRD (RGBA) format and writes it if a filename is provided.\n Example usage:\n voxel_tensor = np.load('text2voxel/output/tmp/ckpt-10500/0000_voxel_tensor_output.npy')\n _ = nrrd_rw.write_nrrd(voxel_tensor, filename='./models_checkpoint/test_nrrd.nrrd')\n Args:\n voxel_tensor: A tensor representing the binary voxels. Values can range from 0 to 1, and\n they will be properly scaled. The format is [height, width, depth, channels].\n filename: Filename that the NRRD will be written to.\n Writes:\n nrrd_tensor: An RGBA tensor where the channel dimension (RGBA) comes first\n (channels, height, width, depth).\n \"\"\"\n if voxel_tensor.ndim == 3: # Add a channel if there is no channel dimension\n voxel_tensor = voxel_tensor[np.newaxis, :]\n elif voxel_tensor.ndim == 4: # Roll axes so order is (channel, height, width, depth) (not sure if (h, w, d))\n voxel_tensor = np.rollaxis(voxel_tensor, 3)\n else:\n raise ValueError('Voxel tensor must have 3 or 4 dimensions.')\n\n # Convert voxel_tensor to uint8\n voxel_tensor = (voxel_tensor * 255).astype(np.uint8)\n\n if voxel_tensor.shape[0] == 1: # Add channels if voxel_tensor is a binvox tensor\n nrrd_tensor_slice = voxel_tensor\n nrrd_tensor = np.vstack([nrrd_tensor_slice] * 4)\n nrrd_tensor[:3, :, :, :] = 128 # Make voxels gray\n nrrd_tensor = nrrd_tensor.astype(np.uint8)\n elif voxel_tensor.shape[0] == 4:\n nrrd_tensor = voxel_tensor\n elif voxel_tensor.shape[0] != 4:\n raise ValueError('Voxel tensor must be single-channel or 4-channel')\n\n nrrd.write(filename, nrrd_tensor)\n\n\ndef get_voxel_file(category, model_id, opts):\n \"\"\"\n get the voxel absolute filepath for the model specified by category and model_id \n Args: \n category: category of the model as a string , e.g., '03001627'\n model_id: model id of the model as a string, e.g., '587ee5822bb56bd07b11ae648ea92233'\n Returns: \n voxel_filepath: Filepath of the binvox file corresponding to category and model_id \n \"\"\"\n #if opts.dataset == 'shapenet': # shapenet dataset \n return opts.data_dir % (model_id, model_id) \n #elif opts.dataset == 'primitives': # primitives dataset\n\n #return opts.data_dir % (category, model_id) \n #else: \n #raise ValueError('please use a valid dataset (shapenet, primitives)')\n\ndef load_voxel(category, model_id, opts): \n \"\"\"\n Loads the voxel tensor given the model category and model ID \n Args: \n category: model category\n model_id: model id \n Returns: \n voxel tensor of shape (height x width x depth x channels) \n \"\"\"\n \n voxel_fn = get_voxel_file(category, model_id, opts)\n\n \n voxel_tensor = read_nrrd(voxel_fn) \n \n return voxel_tensor \n\n\n\ndef augment_voxel_tensor(voxel_tensor, max_noise=10):\n \"\"\"\n Arguments the RGB values of the voxel tensor. The RGB channelss are perturbed by the same single\n noise value, and the noise is sampled from a uniform distribution.\n Args: \n voxel_tensor: a single voxel tensor \n max_noise: Integer representing max noise range. We will perform voxel_value + max_noise to \n augment the voxel tensor, where voxel_value and max_noise are [0, 255].\n Returns: \n augmented_voxel_tensor: voxel tensor after the data augmentation\n \"\"\"\n augmented_voxel_tensor = np.copy(voxel_tensor) # do nothing if binvox \n if (voxel_tensor.ndim == 4) and (voxel_tensor.shape[3] != 1) and (max_noise > 0):\n noise_val = float(np.random.randint(-max_noise, high=(max_noise + 1))) / 255\n augmented_voxel_tensor[:, :, :, :3] += noise_val\n augmented_voxel_tensor = np.clip(augmented_voxel_tensor, 0., 1.)\n return augmented_voxel_tensor\n\ndef rescale_voxel_tensor(voxel_tensor):\n \"\"\"Rescales all values (RGBA) in the voxel tensor from [0, 1] to [-1, 1].\n Args:\n voxel_tensor: A single voxel tensor.\n Returns:\n rescaled_voxel_tensor: A single voxel tensor after rescaling.\n \"\"\"\n rescaled_voxel_tensor = voxel_tensor * 2. - 1.\n return rescaled_voxel_tensor\n\ndef open_pickle(pickle_file):\n \"\"\"Open a pickle file and return its contents.\n \"\"\"\n with open(pickle_file, 'rb') as f:\n pickle_data = pickle.load(f)\n return pickle_data\n\n\n\ndef print_sentences(json_path, data_list):\n # Opens the processed captions generated from tools/preprocess_captions.py\n inputs_list = json.load(open(json_path, 'r'))\n idx_to_word = inputs_list['idx_to_word']\n\n if isinstance(data_list, list):\n sentences = convert_idx_to_words(idx_to_word, data_list)\n elif isinstance(data_list, np.ndarray):\n sentences = []\n for idx in range(data_list.shape[0]):\n sentences.append(('%04d ' % idx) + ' '.join([idx_to_word[str(word_idx)]\n for word_idx in data_list[idx, :] if word_idx != 0]))\n\n for sentence in sentences:\n print(sentence + '\\n')\n\n\n\n\n\ndef categorylist2labellist(category_list_batch, category2label, opts): \n \"\"\"\n for primitive datasets, a batch data with category list:\n ['torus-cyan-h100-r20', 'torus-cyan-h100-r20', 'pyramid-orange-h50-r50', \n 'pyramid-orange-h50-r50', 'pyramid-yellow-h50-r100', 'pyramid-yellow-h50-r100', \n 'cone-purple-h50-r50', 'cone-purple-h50-r50']\n We convert it to be: \n\n \"\"\"\n if opts.dataset == 'shapenet':\n shape_labels = [category2label[cat] for cat in category_list_batch]\n if len(shape_labels) > opts.batch_size: # TST, MM \n shape_label_batch = np.asarray(shape_labels[::opts.LBA_n_captions_per_model])\n else: # STS mode, validation \n shape_label_batch = np.asarray(shape_labels) \n return torch.from_numpy(shape_label_batch)\n elif opts.dataset == 'primitives':\n shape_labels = [category2label[cat] for cat in category_list_batch\n for _ in range(opts.LBA_n_primitive_shapes_per_category)]\n\n if opts.LBA_model_type == 'TST' or opts.LBA_model_type == 'MM':\n shape_label_batch = np.asarray(shape_labels[::opts.LBA_n_captions_per_model])\n elif opts.LBA_model_type == 'STS': # STS mode, validation \n # test_queue??? is false\n if opts.test_or_val_phase: # test or val phase \n shape_label_batch = np.asarray(shape_labels)[::opts.LBA_n_primitive_shapes_per_category]\n else: # we are in training phase \n shape_label_batch = np.asarray(shape_labels)\n\n return torch.from_numpy(shape_label_batch)\n else: \n raise ValueError('Please select a vlid dataset.')\n\n\n","repo_name":"sycz00/DL_Lab","sub_path":"lib/utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":10886,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"2721644712","text":"# Дано число обозначающее день недели. \n# Вывести его название и указать является ли он выходным.\n\nday = ['Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота', 'Воскресение']\nfrom random import randint\na = randint(1,7)\nprint ('Число ', a, ' - какой день недели?')\nif ((a-1) == 6 or (a-1) == 7):\n print(day[a-1],' - выходной день!')\nelse:\n print(day[a-1])","repo_name":"Skoroleva1203/Python","sub_path":"6.py","file_name":"6.py","file_ext":"py","file_size_in_byte":538,"program_lang":"python","lang":"ru","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32109216893","text":"import os\nimport pwd\nimport sys\nimport argparse\nimport requests\n\nfrom ceda_mip_tools.pub_sys_intfc import config, dataset_drs\n\n\ndef get_user_name():\n \"get a user name (to use as the requester)\"\n name = pwd.getpwuid(os.getuid()).pw_gecos\n return name[: config.max_requester_len]\n\n\ndef do_post_expecting_json(url, params, \n description=\"web service\",\n compulsory_fields=()):\n \"\"\"\n POST the params to the specified URL.\n Return the parsed JSON.\n Raise an exception if any required fields are missing.\n \"\"\"\n response = requests.post(url, data=params, timeout=config.timeout)\n\n if response.status_code != 200:\n raise Exception(\"Could not talk to {}\".format(description))\n \n try:\n fields = response.json()\n for key in compulsory_fields:\n dummy = fields[key]\n except (ValueError, KeyError):\n raise Exception(\"Could not parse response from {}\".format(description))\n return fields\n \n\ndef paginate_list(lst, count):\n for i in range(0, len(lst), count):\n yield lst[i : i+count]\n\n\nclass ArgsFromCmdLineOrFileParser(object):\n \"\"\"\n A class which acts like (and encapsulates) an argparse parser. It allows\n the program to take a list of things that are specified either on the command\n line or in a file which is referenced with --file-from / -f argument, with \n the special filename \"-\" for standard input. Lines from the file are stripped\n of leading/trailing whitespace, and any blank lines are ignored.\n\n Example:\n\n parser = ArgsFromCmdLineOrFileParser('things', 'description of thing', \n var_meta='thing',\n var_help=help_about_thing,\n description=description_of_command)\n\n parser.add_argument('some_initial_positional_arg')\n parser.add_standard_arguments()\n parser.add_argument('some_other_keyword_arg')\n\n args = parser.parse_args(sys.argv[1:])\n\n print(args.things, args.other_arg)\n \n \"\"\"\n def __init__(self, var_opt, var_desc, var_meta=None, var_help=None, \n allow_empty_list=False, **kwargs):\n self._var_opt = var_opt\n self._var_desc = var_desc\n self._var_help = var_help\n self._var_meta = var_meta\n self._allow_empty_list = allow_empty_list\n self._file_opt = '--from-file'\n self._file_short_opt = '-f'\n self._parser = argparse.ArgumentParser(**kwargs)\n\n\n def add_standard_arguments(self):\n self._add_positional_argument()\n self._add_file_argument()\n\n\n def __getattr__(self, k):\n return getattr(self._parser, k)\n\n\n def parse_args(self, *pa_args, **pa_kwargs):\n args = self._parser.parse_args(*pa_args, **pa_kwargs)\n self._add_values_from_file(args)\n return args\n\n\n def _add_positional_argument(self):\n self._parser.add_argument(self._var_opt, nargs='*',\n metavar=self._var_meta,\n help=self._var_help)\n\n \n def _add_file_argument(self):\n help = (\"filename to read {} from (or '-' for standard input) \"\n \"in place of the command line\"\n ).format(self._var_desc)\n self._parser.add_argument(self._file_opt, self._file_short_opt,\n metavar='filename',\n help=help)\n\n\n def _add_values_from_file(self, args, abort_on_error=True):\n try:\n self._add_values_from_file_core(args)\n except (ValueError, IOError) as exc:\n print(exc)\n if abort_on_error:\n sys.exit(1)\n else:\n raise\n\n\n def _add_values_from_file_core(self, args):\n \"\"\"\n appends to list based on the --file-option option\n \"\"\"\n filename = getattr(args, self._file_opt[2:].replace('-', '_'))\n values = getattr(args, self._var_opt)\n if values and (filename != None):\n raise ValueError(('{} cannot be given on command line if {} is used'\n ).format(self._var_desc, self._file_opt))\n if filename:\n if filename == '-':\n fh = sys.stdin \n else:\n fh = open(filename)\n with fh:\n for line in fh:\n val = line.strip()\n if val:\n values.append(val)\n\n if not values and not self._allow_empty_list:\n raise ValueError(('no {} specified - must specify one or more on command line '\n 'or with {} option'\n ).format(self._var_desc, self._file_opt))\n\n\n\ndef add_api_root_arg(parser):\n parser.add_argument('--api-url-root',\n default=config.api_url_root,\n help=argparse.SUPPRESS)\n\n\ndef add_project_arg(parser):\n parser.add_argument('project', type=str, metavar='project',\n help='project',\n choices=config.projects.keys())\n\ndef parse_project_arg(args):\n\n valid_projects = sorted(config.projects.keys())\n\n# if not args.project or args.project not in valid_projects:\n# raise ValueError(\"one of these projects: must be specified {}\"\n# .format(\", \".join(valid_projects)))\n#\n project_config = config.projects[args.project]\n\n drs_obj = dataset_drs.DatasetDRS(project_config[\"drs\"])\n chain = project_config[\"chain\"]\n\n return(drs_obj, chain)\n","repo_name":"cedadev/ceda-mip-tools","sub_path":"ceda_mip_tools/pub_sys_intfc/util.py","file_name":"util.py","file_ext":"py","file_size_in_byte":5663,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"70433832923","text":"from collections import OrderedDict\nnumber = int(input())\nd = OrderedDict()\nfor i in range(number):\n string = input()\n if string in d:\n d[string] += 1\n else:\n d[string] = 1\nprint(len(d))\nfor i in d:\n print(d[i], end = \" \")\n ","repo_name":"Najamulhassan3383/DSA","sub_path":"HackerRank_python/wordOrder.py","file_name":"wordOrder.py","file_ext":"py","file_size_in_byte":253,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"41980521592","text":"import pandas as pd\nimport glob\ndf = pd.DataFrame()\ndata_paths = glob.glob('./rec_sys_model/wanted/clear/*')\n\nfor path in data_paths:\n df_temp = pd.read_csv(path)\n df_temp.dropna(inplace=True)\n df_temp.drop_duplicates(inplace=True)\n df = pd.concat([df, df_temp], ignore_index=True)\ndf.drop_duplicates(inplace=True)\ndf.info()\ndf.to_csv('./rec_sys_model/wanted/clear_data/All_clear_data.csv', index=False)","repo_name":"silber60/job_posting_recommendation","sub_path":"rec_sys_model/job_02_Concat.py","file_name":"job_02_Concat.py","file_ext":"py","file_size_in_byte":415,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"21643753058","text":"from django.conf import settings\nfrom userprofiles.models import UserProfile\n\nclass RegistrationPolicy(object):\n def post_registration(self, user, registration_form_values):\n if 'register_code' not in registration_form_values or not registration_form_values['register_code']:\n return\n\n register_code = registration_form_values['register_code']\n register_code = register_code.upper()\n if register_code not in settings.REGISTRATION_POLICIES['TEDRegistrationPolicy']['codes']:\n return\n\n user_profile = user.profile\n if UserProfile.objects.filter(registration_code='TED - %s' % register_code).count():\n user_profile.registration_status = 'DECLINED'\n user_profile.save()\n return\n\n user_profile.registration_code = 'TED - %s' % register_code\n user_profile.registration_status = 'APPROVED'\n user_profile.save()","repo_name":"d8agroup/metaLayer-delv","sub_path":"userprofiles/registrationpolicies/tedregistrationpolicy.py","file_name":"tedregistrationpolicy.py","file_ext":"py","file_size_in_byte":924,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"17672621673","text":"import subprocess\n\ndef extract_strings(binary_path):\n \"\"\"\n Extract strings from the given binary using the `strings` command.\n Return the extracted strings as a list.\n \"\"\"\n try:\n result = subprocess.run(['strings', binary_path], capture_output=True, check=True, text=True)\n return result.stdout.splitlines()\n except Exception as e:\n print(f\"Error running strings on {binary_path}: {e}\")\n return []\n","repo_name":"thomasthaddeus/ghidra_automation","sub_path":"src/utils/string_util.py","file_name":"string_util.py","file_ext":"py","file_size_in_byte":444,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"39198988960","text":"# Online learning of a logistic\n# regression model using the Exponential-family\n# Extended Kalman Filter (EEKF) algorithm\n\n# Author: Gerardo Durán-Martín (@gerdm)\n\nimport superimport\n\nimport jax\nimport nlds_lib as ds\nimport jax.numpy as jnp\nimport matplotlib.pyplot as plt\nimport pyprobml_utils as pml\nfrom jax import random\nfrom jax.scipy.optimize import minimize\nfrom sklearn.datasets import make_biclusters\n\ndef sigmoid(x): return jnp.exp(x) / (1 + jnp.exp(x))\ndef log_sigmoid(z): return z - jnp.log(1 + jnp.exp(z))\ndef fz(x): return x\ndef fx(w, x): return sigmoid(w[None, :] @ x)\ndef Rt(w, x): return sigmoid(w @ x) * (1 - sigmoid(w @ x))\n\n## Data generating process\nn_datapoints = 50\nm = 2\nX, rows, cols = make_biclusters((n_datapoints, m), 2,\n noise=0.6, random_state=314,\n minval=-4, maxval=4)\n# whether datapoints belong to class 1\ny = rows[0] * 1.0\n\nPhi = jnp.c_[jnp.ones(n_datapoints)[:, None], X]\nN, M = Phi.shape\n\ncolors = [\"black\" if el else \"white\" for el in y]\n\n# Predictive domain\nxmin, ymin = X.min(axis=0) - 0.1\nxmax, ymax = X.max(axis=0) + 0.1\nstep = 0.1\nXspace = jnp.mgrid[xmin:xmax:step, ymin:ymax:step]\n_, nx, ny = Xspace.shape\nPhispace = jnp.concatenate([jnp.ones((1, nx, ny)), Xspace])\n\n### EEKF Approximation\nmu_t = jnp.zeros(M)\nPt = jnp.eye(M) * 0.0\nP0 = jnp.eye(M) * 2.0\n\nmodel = ds.ExtendedKalmanFilter(fz, fx, Pt, Rt)\nw_eekf_hist, P_eekf_hist = model.filter(mu_t, y, Phi, P0)\n\nw_eekf = w_eekf_hist[-1]\nP_eekf = P_eekf_hist[-1]\n\n### Laplace approximation\nkey = random.PRNGKey(314)\ninit_noise = 0.6\nw0 = random.multivariate_normal(key, jnp.zeros(M), jnp.eye(M) * init_noise)\nalpha = 1.0\ndef E(w):\n an = Phi @ w\n log_an = log_sigmoid(an)\n log_likelihood_term = y * log_an + (1 - y) * jnp.log1p(-sigmoid(an))\n prior_term = alpha * w @ w / 2\n\n return prior_term - log_likelihood_term.sum()\n\nres = minimize(lambda x: E(x) / len(y), w0, method=\"BFGS\")\nw_laplace = res.x\nSN = jax.hessian(E)(w_laplace)\n\n### Ploting surface predictive distribution\nkey = random.PRNGKey(31415)\nnsamples = 5000\n\n# EEKF surface predictive distribution\neekf_samples = random.multivariate_normal(key, w_eekf, P_eekf, (nsamples,))\nZ_eekf = sigmoid(jnp.einsum(\"mij,sm->sij\", Phispace, eekf_samples))\nZ_eekf = Z_eekf.mean(axis=0)\n\nfig, ax = plt.subplots()\nax.contourf(*Xspace, Z_eekf, cmap=\"RdBu_r\", alpha=0.7, levels=20)\nax.scatter(*X.T, c=colors, edgecolors=\"black\", s=80)\nax.set_title(\"(EEKF) Predictive distribution\")\npml.savefig(\"logistic-regression-surface-eekf.pdf\")\n\n# Laplace surface predictive distribution\nlaplace_samples = random.multivariate_normal(key, w_laplace, SN, (nsamples,))\nZ_laplace = sigmoid(jnp.einsum(\"mij,sm->sij\", Phispace, laplace_samples))\nZ_laplace = Z_laplace.mean(axis=0)\n\nfig, ax = plt.subplots()\nax.contourf(*Xspace, Z_laplace, cmap=\"RdBu_r\", alpha=0.7, levels=20)\nax.scatter(*X.T, c=colors, edgecolors=\"black\", s=80)\nax.set_title(\"(Laplace) Predictive distribution\")\npml.savefig(\"logistic-regression-surface-laplace.pdf\")\n\n### Plot EEKF and Laplace training history\nP_eekf_hist_diag = jnp.diagonal(P_eekf_hist, axis1=1, axis2=2)\nP_laplace_diag = jnp.sqrt(jnp.diagonal(SN))\nlcolors = [\"black\", \"tab:blue\", \"tab:red\"]\nelements = w_eekf_hist.T, P_eekf_hist_diag.T, w_laplace, P_laplace_diag, lcolors\ntimesteps = jnp.arange(n_datapoints) + 1\n\nfor k, (wk, Pk, wk_laplace, Pk_laplace, c) in enumerate(zip(*elements)):\n fig, ax = plt.subplots()\n ax.errorbar(timesteps, wk, jnp.sqrt(Pk), c=c, label=f\"$w_{k}$ online (EEKF)\")\n ax.axhline(y=wk_laplace, c=c, linestyle=\"dotted\", label=f\"$w_{k}$ batch (Laplace)\", linewidth=3)\n\n ax.set_xlim(1, n_datapoints)\n ax.legend(framealpha=0.7, loc=\"upper right\")\n ax.set_xlabel(\"number samples\")\n ax.set_ylabel(\"weights\")\n plt.tight_layout()\n pml.savefig(f\"eekf-laplace-hist-w{k}.pdf\")\n\nprint(\"EEKF weights\")\nprint(w_eekf, end=\"\\n\"*2)\n\nprint(\"Laplace weights\")\nprint(w_laplace, end=\"\\n\"*2)\nplt.show()\n\n","repo_name":"mileswang97/miles_ml_prob_book0","sub_path":"pyprobml-master/scripts/eekf_logistic_regression_demo.py","file_name":"eekf_logistic_regression_demo.py","file_ext":"py","file_size_in_byte":3967,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"31753136153","text":"import time\n\nimport pytest\n\nimport ray\nfrom ray.train._internal.accelerator import Accelerator\nfrom ray.train.constants import SESSION_MISUSE_LOG_ONCE_KEY\nfrom ray.train._internal.session import (\n init_session,\n shutdown_session,\n get_session,\n TrainingResultType,\n get_accelerator,\n set_accelerator,\n)\nfrom ray.train.train_loop_utils import (\n world_rank,\n local_rank,\n report,\n save_checkpoint,\n load_checkpoint,\n get_dataset_shard,\n world_size,\n)\nfrom ray.train.error import SessionMisuseError\n\n\n@pytest.fixture(scope=\"function\")\ndef session():\n def f():\n return 1\n\n init_session(training_func=f, world_rank=0, local_rank=0, world_size=1)\n yield get_session()\n shutdown_session()\n\n\ndef test_init_fail(session):\n with pytest.raises(ValueError):\n init_session(lambda: 1, 0)\n\n\ndef test_shutdown(session):\n shutdown_session()\n assert not get_session()\n\n\ndef test_world_rank(session):\n assert world_rank() == 0\n shutdown_session()\n # Make sure default to 0.\n assert world_rank() == 0\n\n\ndef test_local_rank(session):\n assert local_rank() == 0\n shutdown_session()\n # Make sure default to 0.\n assert local_rank() == 0\n\n\ndef test_world_size(session):\n assert world_size() == 1\n shutdown_session()\n # Make sure default to 1.\n assert world_size() == 1\n\n\ndef test_train(session):\n session.start()\n output = session.finish()\n assert output == 1\n\n\ndef test_get_dataset_shard():\n dataset = ray.data.from_items([1, 2, 3])\n init_session(\n training_func=lambda: 1,\n world_rank=0,\n local_rank=0,\n world_size=1,\n dataset_shard=dataset,\n )\n assert get_dataset_shard() == dataset\n shutdown_session()\n\n\ndef test_report():\n def train_func():\n for i in range(2):\n report(loss=i)\n\n init_session(training_func=train_func, world_rank=0, local_rank=0, world_size=1)\n session = get_session()\n session.start()\n assert session.get_next().data[\"loss\"] == 0\n assert session.get_next().data[\"loss\"] == 1\n shutdown_session()\n\n\ndef test_report_fail():\n def train_func():\n for i in range(2):\n report(i)\n return 1\n\n init_session(training_func=train_func, world_rank=0, local_rank=0, world_size=1)\n session = get_session()\n session.start()\n assert session.get_next() is None\n with pytest.raises(TypeError):\n session.finish()\n shutdown_session()\n\n\ndef test_report_after_finish(session):\n session.start()\n session.pause_reporting()\n session.finish()\n for _ in range(2):\n report(loss=1)\n assert session.get_next() is None\n\n\ndef test_no_start(session):\n with pytest.raises(RuntimeError):\n session.get_next()\n\n\ndef test_checkpoint():\n def train_func():\n for i in range(2):\n save_checkpoint(epoch=i)\n\n def validate_zero(expected):\n next = session.get_next()\n assert next is not None\n assert next.type == TrainingResultType.CHECKPOINT\n assert next.data[\"epoch\"] == expected\n\n init_session(training_func=train_func, world_rank=0, local_rank=0, world_size=1)\n session = get_session()\n session.start()\n validate_zero(0)\n validate_zero(1)\n session.finish()\n shutdown_session()\n\n def validate_nonzero():\n next = session.get_next()\n assert next is not None\n assert next.type == TrainingResultType.CHECKPOINT\n assert next.data == {}\n\n init_session(training_func=train_func, world_rank=1, local_rank=1, world_size=1)\n session = get_session()\n session.start()\n validate_nonzero()\n validate_nonzero()\n session.finish()\n shutdown_session()\n\n\ndef test_encode_data():\n def train_func():\n save_checkpoint(epoch=0)\n report(epoch=1)\n\n def encode_checkpoint(checkpoint):\n checkpoint.update({\"encoded\": True})\n return checkpoint\n\n def validate_encoded(result_type: TrainingResultType):\n next = session.get_next()\n assert next.type is result_type\n assert next.data[\"encoded\"] is True\n\n init_session(\n training_func=train_func,\n world_rank=0,\n local_rank=0,\n world_size=1,\n encode_data_fn=encode_checkpoint,\n )\n\n session = get_session()\n session.start()\n # Validate checkpoint is encoded.\n validate_encoded(TrainingResultType.CHECKPOINT)\n # Validate report is encoded.\n validate_encoded(TrainingResultType.REPORT)\n session.finish()\n shutdown_session()\n\n\ndef test_load_checkpoint_after_save():\n def train_func():\n for i in range(2):\n save_checkpoint(epoch=i)\n checkpoint = load_checkpoint()\n assert checkpoint[\"epoch\"] == i\n\n init_session(training_func=train_func, world_rank=0, local_rank=0, world_size=1)\n session = get_session()\n session.start()\n for i in range(2):\n session.get_next()\n session.finish()\n shutdown_session()\n\n\ndef test_locking():\n \"\"\"Tests that report pauses training until fetch_next or finish.\"\"\"\n\n def train_1():\n import _thread\n\n _thread.interrupt_main()\n\n init_session(training_func=train_1, world_rank=0, local_rank=0, world_size=1)\n session = get_session()\n with pytest.raises(KeyboardInterrupt):\n session.start()\n shutdown_session()\n\n def train_2():\n for i in range(2):\n report(loss=i)\n train_1()\n\n init_session(training_func=train_2, world_rank=0, local_rank=0, world_size=1)\n session = get_session()\n session.start()\n time.sleep(3)\n\n session.pause_reporting()\n # Releases session.continue_lock to resume the training thread.\n session.get_next()\n\n with pytest.raises(KeyboardInterrupt):\n session.finish()\n shutdown_session()\n\n\ndef reset_log_once_with_str(str_to_append=None):\n key = SESSION_MISUSE_LOG_ONCE_KEY\n if str_to_append:\n key += f\"-{str_to_append}\"\n ray.util.debug.reset_log_once(key)\n\n\n@pytest.mark.parametrize(\n \"fn\", [load_checkpoint, save_checkpoint, report, get_dataset_shard]\n)\ndef test_warn(fn):\n \"\"\"Checks if calling train functions outside of session raises warning.\"\"\"\n\n with pytest.warns(UserWarning) as record:\n fn()\n\n assert fn.__name__ in record[0].message.args[0]\n\n reset_log_once_with_str(fn.__name__)\n\n\ndef test_warn_once():\n \"\"\"Checks if session misuse warning is only shown once per function.\"\"\"\n\n with pytest.warns(UserWarning) as record:\n assert not load_checkpoint()\n assert not load_checkpoint()\n assert not save_checkpoint(x=2)\n assert not report(x=2)\n assert not report(x=3)\n assert not get_dataset_shard()\n\n # Should only warn once.\n assert len(record) == 4\n\n\nclass FakeAccelerator(Accelerator):\n pass\n\n\ndef test_set_and_get_accelerator(session):\n accelerator = FakeAccelerator()\n set_accelerator(accelerator)\n assert get_accelerator(FakeAccelerator) is accelerator\n\n\ndef test_get_accelerator_constructs_default_accelerator(session):\n assert isinstance(get_accelerator(FakeAccelerator), FakeAccelerator)\n\n\ndef test_get_accelerator_raises_error_outside_session():\n with pytest.raises(SessionMisuseError):\n get_accelerator(FakeAccelerator)\n\n\ndef test_set_accelerator_raises_error_if_accelerator_already_set(session):\n accelerator1, accelerator2 = FakeAccelerator(), FakeAccelerator()\n set_accelerator(accelerator1)\n with pytest.raises(RuntimeError):\n set_accelerator(accelerator2)\n\n\ndef test_set_accelerator_raises_error_outside_session():\n accelerator = FakeAccelerator()\n with pytest.raises(SessionMisuseError):\n set_accelerator(accelerator)\n\n\nif __name__ == \"__main__\":\n import pytest\n import sys\n\n sys.exit(pytest.main([\"-v\", \"-x\", __file__]))\n","repo_name":"merlinepedra/RAY-1","sub_path":"python/ray/train/tests/test_session.py","file_name":"test_session.py","file_ext":"py","file_size_in_byte":7810,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"23573475614","text":"from typing import Optional\n\nfrom ray.rllib.utils.framework import try_import_tf\nfrom ray.rllib.utils.typing import TensorType\nfrom ray.rllib.utils.deprecation import deprecation_warning\nfrom ray.util import log_once\n\ntf1, tf, tfv = try_import_tf()\n\n\nclass RelativeMultiHeadAttention(tf.keras.layers.Layer if tf else object):\n \"\"\"A RelativeMultiHeadAttention layer as described in [3].\n\n Uses segment level recurrence with state reuse.\n \"\"\"\n\n def __init__(\n self,\n out_dim: int,\n num_heads: int,\n head_dim: int,\n input_layernorm: bool = False,\n output_activation: Optional[\"tf.nn.activation\"] = None,\n **kwargs\n ):\n \"\"\"Initializes a RelativeMultiHeadAttention keras Layer object.\n\n Args:\n out_dim: The output dimensions of the multi-head attention\n unit.\n num_heads: The number of attention heads to use.\n Denoted `H` in [2].\n head_dim: The dimension of a single(!) attention head within\n a multi-head attention unit. Denoted as `d` in [3].\n input_layernorm: Whether to prepend a LayerNorm before\n everything else. Should be True for building a GTrXL.\n output_activation (Optional[tf.nn.activation]): Optional tf.nn\n activation function. Should be relu for GTrXL.\n **kwargs:\n \"\"\"\n if log_once(\"relative_multi_head_attention\"):\n deprecation_warning(\n old=\"rllib.models.tf.layers.RelativeMultiHeadAttention\",\n )\n super().__init__(**kwargs)\n\n # No bias or non-linearity.\n self._num_heads = num_heads\n self._head_dim = head_dim\n # 3=Query, key, and value inputs.\n self._qkv_layer = tf.keras.layers.Dense(\n 3 * num_heads * head_dim, use_bias=False\n )\n self._linear_layer = tf.keras.layers.TimeDistributed(\n tf.keras.layers.Dense(out_dim, use_bias=False, activation=output_activation)\n )\n\n self._uvar = self.add_weight(shape=(num_heads, head_dim))\n self._vvar = self.add_weight(shape=(num_heads, head_dim))\n\n # Constant (non-trainable) sinusoid rel pos encoding matrix, which\n # depends on this incoming time dimension.\n # For inference, we prepend the memory to the current timestep's\n # input: Tau + 1. For training, we prepend the memory to the input\n # sequence: Tau + T.\n self._pos_embedding = PositionalEmbedding(out_dim)\n self._pos_proj = tf.keras.layers.Dense(num_heads * head_dim, use_bias=False)\n\n self._input_layernorm = None\n if input_layernorm:\n self._input_layernorm = tf.keras.layers.LayerNormalization(axis=-1)\n\n def call(\n self, inputs: TensorType, memory: Optional[TensorType] = None\n ) -> TensorType:\n T = tf.shape(inputs)[1] # length of segment (time)\n H = self._num_heads # number of attention heads\n d = self._head_dim # attention head dimension\n\n # Add previous memory chunk (as const, w/o gradient) to input.\n # Tau (number of (prev) time slices in each memory chunk).\n Tau = tf.shape(memory)[1]\n inputs = tf.concat([tf.stop_gradient(memory), inputs], axis=1)\n\n # Apply the Layer-Norm.\n if self._input_layernorm is not None:\n inputs = self._input_layernorm(inputs)\n\n qkv = self._qkv_layer(inputs)\n\n queries, keys, values = tf.split(qkv, 3, -1)\n # Cut out memory timesteps from query.\n queries = queries[:, -T:]\n\n # Splitting up queries into per-head dims (d).\n queries = tf.reshape(queries, [-1, T, H, d])\n keys = tf.reshape(keys, [-1, Tau + T, H, d])\n values = tf.reshape(values, [-1, Tau + T, H, d])\n\n R = self._pos_embedding(Tau + T)\n R = self._pos_proj(R)\n R = tf.reshape(R, [Tau + T, H, d])\n\n # b=batch\n # i and j=time indices (i=max-timesteps (inputs); j=Tau memory space)\n # h=head\n # d=head-dim (over which we will reduce-sum)\n score = tf.einsum(\"bihd,bjhd->bijh\", queries + self._uvar, keys)\n pos_score = tf.einsum(\"bihd,jhd->bijh\", queries + self._vvar, R)\n score = score + self.rel_shift(pos_score)\n score = score / d**0.5\n\n # Causal mask of the same length as the sequence.\n mask = tf.sequence_mask(tf.range(Tau + 1, Tau + T + 1), dtype=score.dtype)\n mask = mask[None, :, :, None]\n\n masked_score = score * mask + 1e30 * (mask - 1.0)\n wmat = tf.nn.softmax(masked_score, axis=2)\n\n out = tf.einsum(\"bijh,bjhd->bihd\", wmat, values)\n out = tf.reshape(out, tf.concat((tf.shape(out)[:2], [H * d]), axis=0))\n return self._linear_layer(out)\n\n @staticmethod\n def rel_shift(x: TensorType) -> TensorType:\n # Transposed version of the shift approach described in [3].\n # https://github.com/kimiyoung/transformer-xl/blob/\n # 44781ed21dbaec88b280f74d9ae2877f52b492a5/tf/model.py#L31\n x_size = tf.shape(x)\n\n x = tf.pad(x, [[0, 0], [0, 0], [1, 0], [0, 0]])\n x = tf.reshape(x, [x_size[0], x_size[2] + 1, x_size[1], x_size[3]])\n x = x[:, 1:, :, :]\n x = tf.reshape(x, x_size)\n\n return x\n\n\nclass PositionalEmbedding(tf.keras.layers.Layer if tf else object):\n def __init__(self, out_dim, **kwargs):\n super().__init__(**kwargs)\n self.inverse_freq = 1 / (10000 ** (tf.range(0, out_dim, 2.0) / out_dim))\n\n def call(self, seq_length):\n pos_offsets = tf.cast(tf.range(seq_length - 1, -1, -1), tf.float32)\n inputs = pos_offsets[:, None] * self.inverse_freq[None, :]\n return tf.concat((tf.sin(inputs), tf.cos(inputs)), axis=-1)\n","repo_name":"ray-project/ray","sub_path":"rllib/models/tf/layers/relative_multi_head_attention.py","file_name":"relative_multi_head_attention.py","file_ext":"py","file_size_in_byte":5761,"program_lang":"python","lang":"en","doc_type":"code","stars":28715,"dataset":"github-code","pt":"86"}
+{"seq_id":"16375616651","text":"from django.shortcuts import render, redirect\nfrom django.urls import reverse\nfrom paypal.standard.forms import PayPalPaymentsForm\nfrom django.contrib import messages\nfrom django.conf import settings\nfrom django.db import connection\nfrom django.views.decorators.csrf import csrf_exempt\nfrom mainapp.views import get_timezone\nfrom mainapp.models import *\nfrom mainapp.views import get_location\nimport math\n\nimport uuid,sys,json\n# Create your views here.\n\n@csrf_exempt\ndef paypalbutton(request):\n currentuser = request.user.id\n infoid = request.GET.get('infoid')\n bserviceid = request.GET.get('bserviceid')\n bplanid = request.GET.get('bplanid')\n othercharges = request.GET.get('othercharges') \n ccode = request.session.get('coup')\n cursor = connection.cursor()\n \n # othercharges=othercharges[4:]\n\n \n print('infoid',infoid)\n print('bservice',bserviceid)\n \n\n \n order=None\n \n if bserviceid=='5' or bserviceid==5:\n eventname = request.GET.get('eventname')\n eventdate = request.GET.get('eventdate')\n eventtype = request.GET.get('eventtype')\n timefrom = request.GET.get('timefrom')\n timeto = request.GET.get('timeto')\n address = request.GET.get('address')\n description = request.GET.get('description')\n clienttimezone=get_timezone(request)\n\n print(eventname,eventdate,eventtype,timefrom,timeto,address,description,clienttimezone)\n\n if othercharges == '0' or othercharges == ' 0':\n if ccode is not None and len(ccode) > 2:\n cursor.execute('select * from placeinfluenceracquisitionorders(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, True, ccode,eventname,eventdate,eventtype,timefrom,timeto,address,description,clienttimezone])\n print(\"1\",cursor.query)\n request.session['coup'] = ''\n order = cursor.fetchall()\n amount = order[0][8]\n\n else:\n cursor.execute('select * from placeinfluenceracquisitionorders(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, False, ccode,eventname,eventdate,eventtype,timefrom,timeto,address,description,clienttimezone])\n print(\"2\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][3]\n # print(\"template chagres.\")\n else:\n if ccode is not None and len(ccode) > 2:\n cursor.execute('select * from placeinfluenceracquisitionorders(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, True, ccode,eventname,eventdate,eventtype,timefrom,timeto,address,description,clienttimezone])\n print(\"3\",cursor.query)\n request.session['coup'] = ''\n order = cursor.fetchall()\n amount = order[0][8]\n\n else:\n cursor.execute('select * from placeinfluenceracquisitionorders(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, False, ccode,eventname,eventdate,eventtype,timefrom,timeto,address,description,clienttimezone])\n print(\"4\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][3]\n \n if request.GET.get('tempid') is not None and request.GET.get('temptext') is not None:\n \n if othercharges == '0' or othercharges == ' 0':\n if ccode is not None and len(ccode) > 2:\n cursor.execute('select * from placegreetingsorders(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, True, ccode,request.GET.get('tempid'),request.GET.get('temptext')])\n print(\"5\",cursor.query)\n request.session['coup'] = ''\n order = cursor.fetchall()\n amount = order[0][8]\n\n else:\n cursor.execute('select * from placegreetingsorders(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, False, ccode,request.GET.get('tempid'),request.GET.get('temptext')])\n print(\"6\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][3]\n # print(\"template chagres.\")\n else:\n if ccode is not None and len(ccode) > 2:\n cursor.execute('select * from placegreetingsorders(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, True, ccode,request.GET.get('tempid'),request.GET.get('temptext')])\n print(\"7\",cursor.query)\n request.session['coup'] = ''\n order = cursor.fetchall()\n amount = order[0][8]\n\n else:\n cursor.execute('select * from placegreetingsorders(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, False, ccode,request.GET.get('tempid'),request.GET.get('temptext')])\n print(\"8\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][3]\n # print(\"template chagres.\")\n \n if request.GET.get('subslotid') is not None:\n\n if othercharges == '0' or othercharges == ' 0' or othercharges == ' 0' :\n if ccode is not None and len(ccode) > 2:\n cursor.execute('select * from placeorderss(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, False, True, ccode,request.GET.get('subslotid')])\n print(\"9\",cursor.query)\n request.session['coup'] = ''\n order = cursor.fetchall()\n amount = order[0][8]\n else:\n cursor.execute('select * from placeorderss(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, False, False, ccode,request.GET.get('subslotid')])\n print(\"10\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][3]\n \n \n\n print(\"no delivery chagres.\")\n else:\n if ccode is not None and len(ccode) > 2:\n cursor.execute('select * from placeorderss(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, True, True, ccode,request.GET.get('subslotid')])\n request.session['coup'] = ''\n print(\"11\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][8]\n \n else:\n cursor.execute('select * from placeorderss(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, True, False, ccode,request.GET.get('subslotid')])\n print(\"12\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][3]\n print('delivery',bserviceid )\n \n \n sys.stdout = open(\"basic.txt\", \"a\")\n print('rahulother',request.GET.get('othercharges'))\n \n \n if bserviceid=='1' or bserviceid==1 or bserviceid=='3' or bserviceid==3 or bserviceid=='7' or bserviceid==7:\n\n if othercharges == '0' or othercharges == ' 0' or othercharges == 0:\n if ccode is not None and len(ccode) > 2:\n cursor.execute('select * from placeorderss(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, False, True, ccode,0])\n request.session['coup'] = ''\n print(\"13\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][8]\n ordes=order[0][10]\n \n else:\n cursor.execute('select * from placeorderss(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, False, False, ccode,0])\n print(\"14\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][3]\n ordes=order[0][10]\n\n # print(\"no delivery chagres.\")\n else:\n if ccode is not None and len(ccode) > 2:\n cursor.execute('select * from placeorderss(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, True, True, ccode,0])\n request.session['coup'] = ''\n print(\"15\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][8]\n ordes=order[0][10]\n \n else:\n cursor.execute('select * from placeorderss(%s,%s,%s,%s,%s,%s,%s,%s)',\n [currentuser, infoid, bplanid, bserviceid, True, False, ccode,0])\n print(\"16\",cursor.query)\n order = cursor.fetchall()\n amount = order[0][3]\n ordes=order[0][10]\n print('all3:', order,amount)\n \n # infoid = ''\n # bserviceid = ''\n # bplanid = ''\n # othercharges = ''\n # print('delivery charges.')\n orderid = order[0][4]\n currcode = order[0][5]\n sername = order[0][6]\n \n amout = amount\n \n infocurr=request.session.get('selectinfocurr')\n \n \n print('orderid',orderid)\n print('service',sername)\n print('amount')\n print(amout)\n \n \n # infocurr='SLL'\n if infocurr == 'INR':\n rates = ExchangeRates.objects.filter(country='United States').values('rates')[:1]\n rate_value = rates[0]['rates'] if rates else 1\n amout=float(amout)*rate_value\n\n # elif infocurr =='USD':\n # amout=amout\n else:\n \n rates = ExchangeRates.objects.filter(country='United States').values('rates')[:1]\n rate_value = rates[0]['rates'] if rates else 1\n amout=float(amout)*rate_value\n \n # rates = ExchangeRates.objects.filter(countery_abbrevation=str(infocurr)).values('rates')[:1]\n # rate_value = rates[0]['rates'] if rates else 1\n # norrup=1/rate_value\n # amout=amout*norrup\n # rates = ExchangeRates.objects.filter(country='United States').values('rates')[:1]\n # rate_value = rates[0]['rates'] if rates else 1\n # amout=amout*rate_value\n print('before change',amout)\n \n amout=math.ceil(amout)\n \n \n print('aftre change',amout)\n \n \n # country = get_location(request)\n \n # if country == 'India':\n # country = 'India'\n # else:\n # country='United States'\n # print(\"data\", country)\n # curs = ExchangeRates.objects.get(country__icontains=country).rates\n # amout=amout*curs\n \n \n \n \n \n \n \n \n print('orderid',orderid)\n print('service',sername)\n print('amount')\n print(amout)\n \n \n \n \n \n \n host = request.get_host()\n \n paypal_dict = {\n # 'PAYPAL_TEST':settings.PAYPAL_TEST,\n 'business': 'accounts@influencerhiring.com',#, #'ankit@bol7.com'\n 'amount': amout,\n 'currnecy_code': 'USD', \n 'item_name': 'sername',\n # 'invoice': str(uuid.uuid4()),\n 'invoice': str(orderid),\n \n # 'notify_url': request.build_absolute_uri(reverse('paypal-ipn')),\n 'notify_url': f'http://{host}{reverse(\"paypal-ipn\")}',\n 'return': f'http://{host}{reverse(\"paypal_reverse\")}',#request.build_absolute_uri(reverse('paypal_reverse')),\n 'cancel_return': f'http://{host}{reverse(\"paypal_cancel\")}',#request.build_absolute_uri(reverse('paypal_cancel')),\n }\n form = PayPalPaymentsForm(initial=paypal_dict)\n context = {'form':form}\n print('execute')\n return render(request, 'paypalbutton.html', context)\n \n \n \ndef paypal_reverse(request):\n # messages.success('payment successful')\n return redirect('paypalbutton')\n\ndef paypal_cancel(request):\n # messages.error('payment cancelled')\n return redirect('paypalbutton')","repo_name":"rbarawal/Test-Project","sub_path":"paypalapp/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":12172,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"20532696922","text":"from app.config import AppConfig\nfrom fastapi import FastAPI\nfrom fastapi.middleware.cors import CORSMiddleware\n\nfrom .routes import router\n\napp = FastAPI()\n\nconfig = AppConfig()\norigins = list(config.allowed_origins)\n\napp.add_middleware(\n CORSMiddleware,\n allow_origins=origins,\n allow_credentials=True,\n allow_methods=[\"*\"],\n allow_headers=[\"*\"]\n)\n\napp.include_router(router)","repo_name":"FreakyEinstein/blog-api","sub_path":"app/__init__.py","file_name":"__init__.py","file_ext":"py","file_size_in_byte":392,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"36856340531","text":"import pyjsonrpc\n\n\nclass RequestHandler(pyjsonrpc.HttpRequestHandler):\n\n @pyjsonrpc.rpcmethod\n def add(self, a, b):\n \"\"\"Test method\"\"\"\n return a + b\n\n\n# Threading HTTP-Server\nhttp_server = pyjsonrpc.ThreadingHttpServer(\n server_address = ('0.0.0.0', 8080),\n RequestHandlerClass = RequestHandler\n)\nprint(\"Starting HTTP server ...\")\nprint(\"URL: http://0.0.0.0:8080\")\nhttp_server.serve_forever()","repo_name":"CoinBub/daemon-test-utils","sub_path":"src/test/resources/.docker/usr/bin/testrpc.py","file_name":"testrpc.py","file_ext":"py","file_size_in_byte":418,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"11466501212","text":"import cv2, os\nimport numpy as np\nfrom keras.preprocessing.image import ImageDataGenerator\n\ndef opp_transform(image):\n # split the image into its respective RGB components\n (B, G, R) = cv2.split(image.astype(\"float\"))\n # compute rg = R - G\n O1 = ((R + G + B) -1.5)/ 1.5\n O2 = ((R - G))\n O3 = ((R + G) - (2 * B))/2\n image = cv2.merge((O1,O2,O3))\n return image\n\n\ndef hsv_transform(image):\n image = np.array(image)\n hsv_image = cv2.cvtColor(image, cv2.COLOR_RGB2HSV_FULL)\n return hsv_image\n\ndef bgr_transform(image):\n image = np.array(image)\n bgr_image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)\n return bgr_image\n\ndef lab_transform(image):\n image = np.array(image)\n lab_image = cv2.cvtColor(image, cv2.COLOR_RGB2Lab)\n return lab_image\n\ndef xyz_transform(image):\n image = np.array(image)\n xyz_image = cv2.cvtColor(image, cv2.COLOR_RGB2XYZ)\n return xyz_image\n\ndef yCrCb_transform(image):\n image = np.array(image)\n yrb_image = cv2.cvtColor(image, cv2.COLOR_RGB2YCrCb)\n return yrb_image\n\ndef luv_transform(image):\n image = np.array(image)\n luv_image = cv2.cvtColor(image, cv2.COLOR_RGB2Luv)\n return luv_image\n\ndef yuv_transform(image):\n image = np.array(image)\n yuv_image = cv2.cvtColor(image, cv2.COLOR_RGB2YUV)\n return yuv_image\n\ndef _get_preprocessing_function(transform):\n if transform and transform.lower() == 'opp':\n print('Using opp')\n preprocessing_function = opp_transform\n elif transform and transform.lower() == 'hsv':\n preprocessing_function = hsv_transform\n elif transform and transform.lower() == 'bgr':\n print('Using bgr')\n preprocessing_function = bgr_transform\n elif transform and transform.lower() == 'lab':\n preprocessing_function = lab_transform\n elif transform and transform.lower() == 'xyz':\n preprocessing_function = xyz_transform\n elif transform and transform.lower() == 'ybr':\n print('Using yCrCb')\n preprocessing_function = yCrCb_transform\n elif transform and transform.lower() == 'luv':\n preprocessing_function = luv_transform\n elif transform and transform.lower() == 'yuv':\n print('Using yuv')\n preprocessing_function = yuv_transform\n else:\n print('Using rgb')\n preprocessing_function = None\n\n return preprocessing_function\n\n\ndef _get_num_files(dr):\n return sum([len(files) for r, d, files in os.walk(dr)])\n\n\ndef get_training_data(train_dir, colours, img_rows, img_cols, batch_size=16, transform='rgb', rescale=False):\n preprocessing_function = _get_preprocessing_function(transform)\n\n if rescale:\n data_generator = ImageDataGenerator(\n shear_range=0.2,\n zoom_range=0.3,\n horizontal_flip=True,\n preprocessing_function=preprocessing_function,\n rescale=1. / 255,\n )\n else:\n data_generator = ImageDataGenerator(\n shear_range=0.2,\n zoom_range=0.3,\n horizontal_flip=True,\n preprocessing_function=preprocessing_function,\n )\n\n return data_generator.flow_from_directory(\n train_dir,\n shuffle=True,\n classes=colours,\n target_size=(img_rows, img_cols),\n batch_size=batch_size,\n class_mode='categorical')\n\n\ndef get_test_data(test_data, colours, img_rows, img_cols, transform='rgb', rescale=False):\n preprocessing_function = _get_preprocessing_function(transform)\n\n if rescale:\n data_generator = ImageDataGenerator(\n preprocessing_function=preprocessing_function,\n rescale=1. / 255,\n )\n else:\n data_generator = ImageDataGenerator(\n preprocessing_function=preprocessing_function,\n )\n\n return data_generator.flow_from_directory(\n test_data,\n classes=colours,\n target_size=(img_rows, img_cols),\n batch_size=_get_num_files(test_data),\n class_mode='categorical')\n\n\ndef dir_path(string):\n if os.path.isdir(string):\n return string\n else:\n os.mkdir(string)\n return string\n","repo_name":"chrishickey/color_hierarchy_experiment","sub_path":"experiment1/utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":4106,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"3260548662","text":"# Uses python3\nimport sys\n\ndef get_optimal_value(capacity, weights, values):\n arrayOfSelectedItems = [0] * (n + 1)\n value = 0\n for i in range(n):\n if capacity == 0:\n return(value, arrayOfSelectedItems )\n max_index = select_max_index(values, weights)\n if max_index >= 0:\n available_Weight = min(weights[max_index],capacity)\n value = value + available_Weight*(values[max_index]/weights[max_index])\n weights[max_index] = weights[max_index] - available_Weight\n arrayOfSelectedItems[max_index] = arrayOfSelectedItems[max_index] + available_Weight\n capacity = capacity - available_Weight\n #type(value) is float\n #type(value) is int\n return value, arrayOfSelectedItems\n\n\ndef select_max_index(values, weights):\n index = -1\n max = 0\n for i in range(n):\n if weights[i] > 0 and (values[i] / weights[i]) > max:\n max = values[i] / weights[i]\n index = i\n return index\n\nif __name__ == \"__main__\":\n data = list(map(int, sys.stdin.read().split()))\n n, capacity = data[0:2]\n values = data[2:(2 * n + 2):2]\n weights = data[3:(2 * n + 2):2]\n opt_value = get_optimal_value(capacity, weights, values)\n #print(\"{!s:10}\".format(opt_value)) #works kinda but returns (180.0, [20, 0, 30, 0])\n #print(\"{:.10f}\".format(opt_value)) #came with starter file\n #print'{!s:20s}'.format(b\"Hi\")\"b'Hi' right. wrong --> \"{:20}\".format(b\"hi\")\n #print(\"{0:.15f}\".format(opt_value)) TypeError: non-empty format string passed to object.__format__\n #print(\"{!s:.10}\".format(opt_value)) wrong output format: could not convert string to float: '(180.0,' (180.0, [2\n #print(\"{0:.2f}\".format(opt_value)) TypeError: non-empty format string passed to object.\n #print(\"{!f:.2}\".format(opt_value)) wrong output format: list index out of range\n #print(\"% .4f\".format(opt_value)) # wrong output format: could not convert string to float: '%' % .4f\n #print(\"{% .4f}\".format(opt_value)) wrong output format: list index out of range\n #float(opt_value)\n #opt_value = (float(opt_value[0])) TypeError: 'float' object is not subscriptable #print(\"{:.10f}\".format(opt_value))\n opt_value = ((opt_value[0]))\n print(\"{:.10f}\".format(float(opt_value)))\n\n #print(opt_value) (180.0, [20, 0, 30, 0])","repo_name":"thiggimajig/algorithmsCourseraUCSanDiego","sub_path":"NEWNEWfractional_knapsack.py","file_name":"NEWNEWfractional_knapsack.py","file_ext":"py","file_size_in_byte":2334,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"20881783600","text":"import math\n\nt=int(input())\ns=int(input())\nh=int(input())\n\nwidth=s*2+3\n\n#for tines\nfor j in range(0, t):\n line=\"\"\n for i in range(0,width):\n if (i==0 or i==s+1 or i==width-1):\n line+=\"*\"\n else:\n line+=\" \"\n print(line)\n#middle part of trident\nline=\"\"\nfor i in range(0, width):\n line+=\"*\"\nprint(line)\n\n#get pos of where handle should be\nmedian=math.ceil(width/2)\nfor i in range(0,h):\n line=\"\"\n for j in range(0, width):\n if (j==median-1):\n line+=\"*\"\n else:\n line+=\" \"\n print(line)\n\n\n\n ","repo_name":"Harushii18/CCC_ValentinesDay","sub_path":"Q7.py","file_name":"Q7.py","file_ext":"py","file_size_in_byte":583,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"16427095299","text":"import json\n\nwith open('./Directories.json') as fp:\n _param = json.load(fp)\n\nFDIR_HALOS = _param[\"Halo_dir\"]\nFDIR_CLUSTERS = _param[\"Cluster_dir\"]\nFDIR_SB_MAP_SAVE = _param[\"SB_Map_dir\"]\nFDIR_EVENT_MAP = _param[\"Event_Map_dir\"]\ndel _param\n","repo_name":"afarahi/XTRA","sub_path":"source/Objects/XTRA_Global_Var.py","file_name":"XTRA_Global_Var.py","file_ext":"py","file_size_in_byte":242,"program_lang":"python","lang":"zh","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"5657656031","text":"from typing import Union\nfrom math import inf\n\n\ndef LineCost(WORDS: list[str], LINE_WIDTH: int, i: int, j: int) -> Union[float, int]:\n \"\"\"\n i, j are valid indices, inclusive\n \"\"\"\n extras = LINE_WIDTH - len(\" \".join(WORDS[i : j + 1]))\n if extras < 0:\n return inf\n if extras >= 0 and j == len(WORDS) - 1:\n \"\"\"\n Depends on the problem,\n enable this if the last line is free\n \"\"\"\n return 0\n else:\n return extras**3\n\n\ndef PrettyPrint(\n WORDS: list[str], LINE_WIDTH: int, last_word_idx: int\n) -> tuple[int, list[int]]:\n if last_word_idx == -1:\n return 0, []\n\n best_cost = inf\n best_breaks = []\n\n for break_idx in range(0, last_word_idx + 1):\n break_cost, breaks = PrettyPrint(WORDS, LINE_WIDTH, break_idx - 1)\n break_cost += LineCost(WORDS, LINE_WIDTH, break_idx, last_word_idx)\n\n if break_cost < best_cost:\n best_cost = break_cost\n best_breaks = breaks + [break_idx]\n\n return best_cost, best_breaks\n\n\nif __name__ == \"__main__\":\n text1 = \"Geeks for Geeks presents word wrap problem\"\n text2 = \"aaa bb cc ddddd\"\n # text3 = \"cat is an animal\"\n text3 = \"The cat ran very slowly to the school\"\n text4 = \"This is an example of text justification\"\n\n words = text3.split(\" \")\n line_width = 15\n\n cost, breaks = PrettyPrint(words, line_width, len(words) - 1)\n print(breaks)\n print(f\"Cost = {cost}, printing justified words:\\n----\")\n\n for i in breaks:\n if i != 0:\n words[i] = \"\\n\" + words[i]\n\n print(\" \".join(words))\n","repo_name":"tomli380576/ECS122A-Algorithms-python-implementation","sub_path":"Implementations/backtracking-pretty-printing.py","file_name":"backtracking-pretty-printing.py","file_ext":"py","file_size_in_byte":1592,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"31769324634","text":"# k = 0\r\n# string = \"**A31\"\r\n# while k < len(string):\r\n\r\n\r\n# valid_letters = [\"A\",\" \",\"X\",\"Y\",\"*\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"W\",\"F\"]\r\n# if string[k] not in valid_letters:\r\n# raise ValueError(\"Bad letter in configuration file: {}\".format(string[k]))\r\n \r\n# k += 1\r\n\r\n# lines = ['**X**', '* *', '**Y**']\r\n# i = 0 \r\n# while i < len(lines):\r\n# string = lines[i]\r\n# k = 0\r\n# while k < len(string):\r\n\r\n# valid_letters = [\"A\",\" \",\"X\",\"Y\",\"*\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"W\",\"F\"]\r\n# if string[k] not in valid_letters:\r\n# raise ValueError(\"Bad letter in configuration file: {}\".format(string[k]))\r\n# # occurence_x = \"X\"\r\n# # occurence_y = \"Y\"\r\n# k += 1\r\n \r\n# i+=1\r\n\r\n# st = \"hi\"\r\n# x_count = 0\r\n# x_count += st.count(\"X\")\r\n# print(x_count)\r\nls = ['2', '3', '2', '4', '4','5']\r\ncounts = [[x,ls.count(x)] for x in set(ls)]\r\nprint(counts)\r\nprint(counts[0][1])\r\nx = 0\r\nwhile x < len(counts):\r\n if counts[x][1] != 2:\r\n print(\"this number does not have matching pair {}\".format(counts[x][0]))\r\n break\r\n x += 1","repo_name":"Rahultalla29/arcade-game","sub_path":"stringtester.py","file_name":"stringtester.py","file_ext":"py","file_size_in_byte":1128,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"22951141482","text":"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Sun Jul 16 16:58:17 2017\n\n@author: melon\n\nperceptron learning example\n\"\"\"\n\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport random\n\nclass Perceptron():\n\n def __init__(self, max_iter = 1000):\n self.max_iter = max_iter\n self.w = []\n self.b = 0\n self.num_data = 0\n self.num_features = 0\n \n def train(self, X, Y):\n self.num_data, self.num_features = np.shape(X)\n self.w = np.zeros(self.num_features)\n for i in range(self.max_iter):\n update = False\n for j in range(self.num_data):\n y_pred = self.b + np.dot(self.w, X[j])\n if np.sign(y_pred) != np.sign(Y[j]):\n update = True\n self.w += Y[j] * X[j]\n self.b += Y[j]\n if not update:\n print(\"Converged in {0} iterations\".format(i))\n break\n \n def classify_instance(self, x):\n if len(self.w) == 0 :\n self.w = np.zeros(len(x))\n ans = self.b + np.dot(self.w, x)\n return 1 if ans >= 0 else -1\n \n def classify(self, X):\n Y_pred = []\n for i in range(np.shape(X)[0]):\n y_pred = self.classify_instance(X[i])\n Y_pred.append(y_pred)\n return Y_pred\n \ndef GenerateData(num_points,seed=0):\n random.seed(seed)\n X = np.zeros((num_points, 2))\n Y = np.zeros(num_points)\n for i in range(num_points):\n X[i][0] = random.randint(1,9)+0.1*random.randint(1,9)\n X[i][1] = random.randint(1,9)+0.1*random.randint(1,9)\n Y[i] = 1 if X[i][0]+X[i][1] >= 10 else -1\n return X, Y\n \ndef PlotData(X,Y,title): \n for i,v in enumerate(X):\n if Y[i] == 1:\n plt.plot(v[0],v[1],marker='o')\n else:\n plt.plot(v[0],v[1],marker='x')\n plt.xlim(0,10) \n plt.title(title)\n plt.show() \n \ndef ErrorRate(Y,Y_pred):\n error = 0\n for i in range(len(Y)):\n if Y[i] != Y_pred[i]:\n error += 1\n return error/len(Y)\n \nX_train,Y_train = GenerateData(100,seed=0) \nPlotData(X_train,Y_train,\"training data\") \n\nmodel = Perceptron()\nY_init = model.classify(X_train)\nprint(\"initial error rate = {0}\".format(ErrorRate(Y_train,Y_init)))\nmodel.train(X_train,Y_train)\nY_final = model.classify(X_train)\nprint(\"final error rate = {0}\".format(ErrorRate(Y_train,Y_final)))\nprint(\"final b = {0}, final w = {1},{2}\".format(model.b,model.w[0],model.w[1]))","repo_name":"jamie0618/ML_project","sub_path":"perceptron/perceptron.py","file_name":"perceptron.py","file_ext":"py","file_size_in_byte":2547,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32012576006","text":"from nltk.tag import StanfordNERTagger\nimport sys\n\nst = StanfordNERTagger('english.all.3class.distsim.crf.ser.gz')\n\ndef combine2dict():\n f=open('combine2dist.csv','r')\n combine2dist=dict()\n for line in f:\n line=eval(line)\n link, artikelset=line[0],line[1]\n combine2dist[link]=artikelset\n return combine2dist\n\ncombine2dist=combine2dict()\n\ndef search(userinput):\n try:\n artikellst = []\n append = artikellst.append\n for k in combine2dist.keys():\n try:\n if userinput in k:\n append(combine2dist[k])\n except IndexError:\n print(' ')\n pass\n l = ([(x, y) for (x, y) in artikellst if not len(x) == 0 if not x =='{{FULLPAGENAME}}'])\n matchedarticle = (sorted(l, key=lambda x: x[1]))[-1][0]\n return (\"[[%s|%s]]\"%(matchedarticle, userinput))\n\n except IndexError:\n return (userinput)\n pass\n\ndef work_on_inqury_line(s):\n lst = st.tag(s.split())\n l = []\n append = l.append\n for (x, y) in lst:\n if not y == 'O':\n searched = search(x)\n append(searched)\n else:\n append(x)\n print(' '.join([word for word in l]))\n\n\ndef interactive_Mode():\n s=input(\"Please input your Inqury: \")\n if s=='':sys.exit()\n else:\n work_on_inqury_line(s)\n interactive_Mode()\n\ndef batch_Mode(f,s):\n f1=open(f,'r')\n for line in f1:\n f2=open(s,'a+')\n sys.stdout = f2\n work_on_inqury_line(line)\n\n\nif(len(sys.argv)==4):\n f,s=sys.argv[2],sys.argv[3]\n batch_Mode(f,s)\nelse: interactive_Mode()","repo_name":"siebeniris/Projekt-symbolischeProgrammierung","sub_path":"aufgabe_4.py","file_name":"aufgabe_4.py","file_ext":"py","file_size_in_byte":1658,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"71052349723","text":"import pygame\nimport button\nimport random\nimport math\nfrom pygame import mixer\nimport time\n\npygame.init()\nmixer.init()\nclock = pygame.time.Clock()\n\nwinWidth = 800\nwinHeight = 600\nwin = pygame.display.set_mode((800,600))\npygame.display.set_caption(\"Car Crash\")\nbgImg = pygame.image.load(\"CarCrash/resources/background.png\")\nbg = pygame.transform.scale(bgImg, (800,600))\ni = 0 # background coordinate Y (which is going to change with a loop)\n\n# Setting the app icon\niconImg = pygame.image.load(\"CarCrash/resources/icon.png\")\npygame.display.set_icon(iconImg)\n\n# Button images\nstartImg = pygame.image.load(\"CarCrash/resources/Start.png\").convert_alpha()\nchangeColorImg = pygame.image.load(\"CarCrash/resources/ChangeColor.png\").convert_alpha()\nexitImg = pygame.image.load(\"CarCrash/resources/Exit.png\").convert_alpha()\nrestartImg = pygame.image.load(\"CarCrash/resources/restart.png\")\n\n# Car images\nblue = pygame.image.load(\"CarCrash/resources/myCarBlue.png\")\nblack = pygame.image.load(\"CarCrash/resources/myCarBlack.png\")\ncoffee = pygame.image.load(\"CarCrash/resources/myCarCoffee.png\")\ndarkBrown = pygame.image.load(\"CarCrash/resources/myCarDarkBrown.png\")\ndarkGrey = pygame.image.load(\"CarCrash/resources/myCarDarkGrey.png\")\ndarkPink = pygame.image.load(\"CarCrash/resources/myCarDarkPink.png\")\nlightBlue = pygame.image.load(\"CarCrash/resources/myCarLightBlue.png\")\nlightGrey = pygame.image.load(\"CarCrash/resources/myCarLightGrey.png\")\nopenBlue = pygame.image.load(\"CarCrash/resources/myCarOpenBlue.png\")\npurple = pygame.image.load(\"CarCrash/resources/myCarPurple.png\")\nred = pygame.image.load(\"CarCrash/resources/myCarRed.png\")\n\n# enemy car images\ncar1 = pygame.image.load(\"CarCrash/resources/car2.png\")\ncar2 = pygame.image.load(\"CarCrash/resources/car3.png\")\namb = pygame.image.load(\"CarCrash/resources/ambulance.png\")\ntaxi = pygame.image.load(\"CarCrash/resources/taxi.png\")\n\nCars = [blue, black, coffee, darkBrown, darkGrey, darkPink, lightBlue, lightGrey, openBlue, purple, red]\ncarsNumber = len(Cars)\n\n# Changing the sizes of the images of the cars \ncarWidth = 220\ncarHeight = 220\ncarsResized = [pygame.transform.scale(i, (carWidth,carHeight)) for i in Cars]\n\n# Car coordinates\nx = 230\ny = 380\n\n# Enemy\nenemyX_spawns = [105, 230, 355, 480]\nenemyImg = [car1,car2,amb,taxi]\nenemyX = []\nenemyY = -220\nenemyY_change = 0 #difficulty (it is zero before the start button is pressed)\n#numOfEnemies = 1\nenemyImgRes = [pygame.transform.scale(i,(carWidth,carHeight)) for i in enemyImg]\n\nenemyX.append(random.choice(enemyX_spawns))\n\n\n# Drawing Enemy \ndef enemyDraw(image, x, y):\n win.blit(image,(x,y))\n\n# game over text \noverFont = pygame.font.Font(\"CarCrash/resources/gameFont.ttf\", 64) \ndef gameOverText():\n overText = overFont.render(\"GAME OVER\", True, (0,0,0))\n win.blit(overText, (200,250))\n\n \n \n\n\n\n\n\n# Level text \nlevel = pygame.font.Font(\"CarCrash/resources/gameFont.ttf\", 25)\ndef levelDisplay(labelsGone):\n levelText = level.render(\"Level: \"+str(levelNumber), True, (0,0,0))\n \n if labelsGone: \n win.blit(levelText, (-100,-100))\n else:\n win.blit(levelText, (4,10))\n\n# score text \nscore = pygame.font.Font(\"CarCrash/resources/gameFont.ttf\", 25)\ndef scoreDisplay(labelsGone):\n scoreText = score.render(\"Score: \"+str(scoreNumber), True, (0,0,0))\n \n if labelsGone:\n win.blit(scoreText, (-100,-100))\n else:\n win.blit(scoreText, (4,70))\n\n# Collision \ndef isCollision(enemyX,enemyY,carX,carY):\n distance = math.sqrt(math.pow(enemyX - carX, 2) + math.pow(enemyY - carY,2))\n if distance < 125:\n return True\n else:\n return False\n\n\n# Creating Buttons\nstartBtn = button.Button(50, 150, startImg, 0.3)\nexitBtn = button.Button(50, 250, exitImg, 0.3)\ncolorBtn = button.Button(50,200,changeColorImg, 0.3)\nrestartBtn = button.Button(-1000,-1000,restartImg, 4)\n\ncar = 0 \n\n# Choosing a random enemy to spawn first \nenemy = random.choice(enemyImgRes) # random enemy car\nenemy_x = random.choice(enemyX_spawns) # random spawn x coordinate\nenemy_y = enemyY # fixed y spawn \n\n# Ending picture\nendPicNormal = pygame.image.load(\"CarCrash/resources/flashyCar.png\")\nendPic = pygame.transform.scale(endPicNormal,(winWidth,winHeight))\n\n\nbgMove = 0 # how fast the background is running\n\nover = False\ngameWin = False\nshowEndPic = False\nlabelsGone = False\nbringRestart = False\nscoreNumber = 0\nlevelNumber = 1\n \nwhoosh = mixer.Sound(\"CarCrash/resources/whoosh.wav\")\nvictory = mixer.Sound(\"CarCrash/resources/victory.wav\")\n\n\nrunning = True \nwhile running:\n \n selectedCar = carsResized[car]\n \n for event in pygame.event.get():\n # quiting window if red cross is pressed\n if event.type == pygame.QUIT:\n pygame.quit()\n quit()\n if event.type == pygame.KEYDOWN and not over:\n if event.key == pygame.K_LEFT:\n whoosh.play()\n x -= 125\n if event.key == pygame.K_RIGHT:\n whoosh.play()\n x += 125\n if event.key == pygame.K_SPACE:\n horn = mixer.Sound(\"CarCrash/resources/Horn.wav\")\n horn.play()\n \n\n win.fill((0,0,0)) # filling window with black color behind the bg\n win.blit(bg, (0, i)) # setting the background with a moving height parameter\n win.blit(bg, (0, -winHeight +i)) # readding the picture a second time\n \n # changing the color of the car when the button is pressed\n if colorBtn.draw(win):\n car = (car + 1)%carsNumber\n\n if i == winHeight:\n win.blit(bg, (0, -winHeight + i)) # readding the picture in a loop so that the bg doesn't black out\n i = 0\n\n i += bgMove\n\n # Starting the game when the button start is pressed\n if startBtn.draw(win):\n enemyY_change = 12\n bgMove = 8\n startBtn.rect.topleft = (-100,-100)\n colorBtn.rect.topleft = (-100,-100)\n exitBtn.rect.topleft = (-100,-100)\n bgMusic = mixer.music.load(\"CarCrash/resources/bgMusic.wav\")\n mixer.music.play(-1)\n mixer.music.set_volume(0.4)\n \n\n \n \n \n enemyDraw(enemy, enemy_x,enemy_y)\n enemy_y += enemyY_change #difficulty \n\n # restarting the enemy cars that go passed the player car\n if enemy_y > winHeight:\n enemy_y = 0 - carHeight\n enemy_x = random.choice(enemyX_spawns)\n enemy = random.choice(enemyImgRes)\n\n \n win.blit(selectedCar, (x,y))\n\n # Border checking\n if x <= 105:\n x = 105\n if x >= 480: \n x = 480\n\n # Enemy Colission\n if isCollision(enemy_x,enemy_y,x,y):\n gameOverText()\n if not over:\n crash = mixer.Sound(\"CarCrash/resources/crash.wav\")\n crash.set_volume(0.6)\n crash.play()\n \n enemyY_change = 0\n bgMove = 0\n over = True \n mixer.music.fadeout(2000)\n bringRestart = True\n if restartBtn.draw(win):\n over = False\n enemy_x = random.choice(enemyX_spawns)\n enemy_y = 0 - carHeight\n x = 230\n scoreNumber = 0 \n levelNumber = 1\n mixer.music.play(-1)\n enemyY_change = 12\n bgMove = 8\n restartBtn.rect.topleft = (-1000,-1000)\n\n # Bringing restart button\n if bringRestart:\n restartBtn.rect.topleft = (-100,350)\n restartBtn.draw(win) \n bringRestart = False\n \n # level change and difficulty increase\n \n if enemy_y > y + 208:\n scoreNumber += 1\n \n if scoreNumber == 15: # scoreNumber counts how many cars have been passed without crashing\n levelNumber = 2 #2\n enemyY_change = 13 \n bgMove = 8\n if scoreNumber == 30:\n levelNumber = 3\n enemyY_change = 14 \n if scoreNumber == 45: \n levelNumber = 4\n enemyY_change = 15 \n if scoreNumber == 60: \n levelNumber = 5\n enemyY_change = 16 \n if scoreNumber == 75: \n levelNumber = 6\n enemyY_change = 17 \n if scoreNumber == 90: \n levelNumber = 7\n enemyY_change = 18 \n if scoreNumber == 105:\n levelNumber = 8\n enemyY_change = 19 \n if scoreNumber == 120:\n levelNumber = 9\n enemyY_change = 20 \n if scoreNumber == 135:\n gameWin = True\n \n \n if gameWin:\n victory.set_volume(0.5)\n victory.play(0)\n mixer.music.fadeout(1000)\n levelNumber = 10\n bgMove = 0\n enemy_y = -1000\n enemyY_change = 0\n gameWin = False\n showEndPic = True\n labelsGone = True\n scoreNumber += 1\n \n if showEndPic:\n win.blit(endPic,(0,0))\n\n \n '''# CPU PLAY ---- uncomment this code to let the computer play perfectly -----\n if enemy_x == 105 and x == 105:\n x = 230\n elif enemy_x == 230 and x == 230:\n x = random.choice([355,105])\n elif enemy_x == 355 and x == 355:\n x = random.choice([480,230])\n elif enemy_x == 480 and x == 480:\n x = 355'''\n\n\n levelDisplay(labelsGone)\n scoreDisplay(labelsGone)\n\n if exitBtn.draw(win):\n running = False\n\n\n pygame.display.update()\n\n\nclock.tick(60)\npygame.quit()\nquit()\n","repo_name":"Hendrix8/CarCrash","sub_path":"main2.py","file_name":"main2.py","file_ext":"py","file_size_in_byte":10468,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"2341232982","text":"import os\n\nTOKEN = '6086808949:AAE9vyl1WKgQa_A2beWYqzf4Ct32bjkJSu0'\n\nDB_NAME = 'priest.db'\n\nVERSION = '0.1'\n\nAUTHOR = 'Axenov'\n\nBASE_DIR = os.path.dirname(os.path.abspath(__file__))\n\nDATABASE = os.path.join('sqlite:///' + BASE_DIR, DB_NAME)\n\nCOOLDOWN = 3 * 60 * 60\n\nMAXLEVEL = 10\n\nLEVELS = {\n 1: 'NOTHING',\n 2: 'CAVE',\n 3: 'WOODEN',\n 4: 'STONE',\n 5: 'RED_STONE',\n 6: 'CONCRETE'\n}\n\nCOMMANDS = {\n 'PRAY': 'pray',\n 'START': 'start',\n 'HELP': 'help',\n 'ME': 'me'\n}\n","repo_name":"Axenov9/PrayerBot","sub_path":"settings/config.py","file_name":"config.py","file_ext":"py","file_size_in_byte":491,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"31503948063","text":"##################################################\n# r o b o t F a c t o r y\n#\n# This class manage the various AI agent classes\n# and instantiates them with given parameters\n# upon request\n#\n##################################################\n\nfrom randomAI import randomAI\nimport subprocess, random, robotNames \n\nclass robotFactory:\n def __init__(self):\n self.taken = list()\n\n def getAI(self, robotType, name, acquire_id):\n return randomAI(name, acquire_id)\n\n def startAI(self, robotType='Random', name = None, acquire_id = None):\n arg_list = [\"python\"]\n if robotType == 'Random':\n arg_list.append(\"randomAI.py\")\n arg_list.append(\"-n\")\n if name == None:\n arg_list.append(self.getName())\n else:\n arg_list.append(name)\n if not acquire_id == None:\n arg_list.append(\"-i\")\n arg_list.append(acquire_id)\n subprocess.Popen(arg_list)\n\n def getName(self):\n name = random.choice(robotNames.names)\n while name in self.taken:\n name = random.choice(robotNames.names)\n return name\n\n","repo_name":"lelandwilliams/Acquire","sub_path":"robotFactory.py","file_name":"robotFactory.py","file_ext":"py","file_size_in_byte":1138,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"70298824606","text":"# -*- coding: utf-8 -*-\r\nimport os\r\nimport numpy as np\r\nfrom torch.utils import data\r\nimport torchvision.transforms as transforms\r\nfrom PIL import Image\r\nimport cv2\r\nfrom torch.utils.data import DataLoader\r\n\r\n__all__ = ['OCR_TEST_DataLoader', 'get_test_dataset']\r\n\r\n\r\nclass OCR_TEST_DataLoader(data.Dataset):\r\n def __init__(self, cfg):\r\n super(OCR_TEST_DataLoader, self).__init__()\r\n self.cfg = cfg\r\n self.long_size = self.cfg.DATASET.TEST.LONG_SIZE\r\n self.img_paths = self._list_files(cfg.DATASET.TEST.ROOT_PATH)\r\n\r\n def __len__(self):\r\n return len(self.img_paths)\r\n\r\n def __getitem__(self, idx):\r\n img_path = self.img_paths[idx]\r\n ori_name = os.path.split(img_path)[-1]\r\n img_name = os.path.splitext(os.path.split(img_path)[-1])[0]\r\n\r\n ori_image = np.array(Image.open(img_path).convert(\"RGB\"), dtype=np.uint8)\r\n if ori_image.shape[-1] == 4:\r\n ori_image = ori_image[:, :, :3].copy()\r\n\r\n h, w = ori_image.shape[:2]\r\n \r\n if w > h:\r\n target_w = int(self.long_size)\r\n scale = self.long_size * 1.0 / w\r\n target_h = int(h * scale)\r\n target_h = int(target_h + (32 - target_h % 32))\r\n else:\r\n target_h = int(self.long_size)\r\n scale = self.long_size * 1.0 / h\r\n target_w = int(w * scale)\r\n target_w = int(target_w + (32 - target_w % 32))\r\n if len(ori_image) == 2:\r\n print(img_name)\r\n ori_image_bgr = ori_image[:, :, [2, 1, 0]].copy()\r\n image = np.zeros(shape=(target_h, target_w, 3), dtype=np.uint8)\r\n _image = cv2.resize(ori_image, dsize=None, fx=scale, fy=scale)\r\n image[:_image.shape[0], :_image.shape[1], :] = _image\r\n\r\n image = Image.fromarray(image)\r\n image = transforms.ToTensor()(image)\r\n image = transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])(image)\r\n\r\n return ori_image_bgr, image, img_name, scale, ori_name\r\n\r\n def _list_files(self, root_path):\r\n print('*****TEST DATASET*****:')\r\n img_paths = []\r\n\r\n for (dirpath, dirnames, filenames) in os.walk(root_path):\r\n for filename in filenames:\r\n _filename, ext = os.path.splitext(filename)\r\n if ext.lower() in self.cfg.DATASET.TEST.IMG_FORMATS:\r\n _img_path = os.path.join(dirpath, filename)\r\n img_paths.append(_img_path)\r\n\r\n print('***sum_samples: {}'.format(len(img_paths)))\r\n return img_paths\r\n\r\n\r\ndef get_test_dataset(cfg):\r\n ocr_dataset = OCR_TEST_DataLoader(cfg)\r\n\r\n dataset_loader = DataLoader(\r\n ocr_dataset,\r\n batch_size=1,\r\n shuffle=False,\r\n num_workers=16,)\r\n return dataset_loader\r\n","repo_name":"luoda888/2021-DIGIX-BASELINE","sub_path":"baseline-game5/detector/dataset/test_dataset.py","file_name":"test_dataset.py","file_ext":"py","file_size_in_byte":2803,"program_lang":"python","lang":"en","doc_type":"code","stars":69,"dataset":"github-code","pt":"86"}
+{"seq_id":"74725054685","text":"from setuptools import setup, find_packages\n\nwith open(\"README.md\", \"r\") as fh:\n long_description = fh.read()\n\nsetup(\n name=\"Sta663-DCMMs\",\n version=\"2.2.8\",\n description=\"Dynamic Count Mixture Models\",\n author=\"Daniel Deng\",\n author_email=\"currurant@gmail.com\",\n long_description=long_description,\n long_description_content_type=\"text/markdown\",\n packages=find_packages(),\n url=\"https://github.com/Currurant/DCMMs\",\n classifiers=[\n \"Programming Language :: Python :: 3\",\n \"License :: OSI Approved :: MIT License\",\n \"Operating System :: OS Independent\",\n ], install_requires=['pandas', 'numpy', 'matplotlib', 'statsmodels', 'scipy', 'pybats'],\n include_package_data=True,\n python_requires='>=3.6'#'Examples_data/*.pickle', 'Examples_data/*.csv',\n)\n","repo_name":"Anluzi/Ziyuan-Daniel_DCMMs","sub_path":"setup.py","file_name":"setup.py","file_ext":"py","file_size_in_byte":811,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"13574183514","text":"\"\"\"\nhttps://leetcode.com/problems/decode-string/\n\nCategory - Medium\n\nGiven an encoded string, return its decoded string.\n\nThe encoding rule is: k[encoded_string], where the encoded_string inside the\nsquare brackets is being repeated exactly k times. Note that k is guaranteed\nto be a positive integer.\n\nYou may assume that the input string is always valid; there are no extra white\nspaces, square brackets are well-formed, etc. Furthermore, you may assume that\nthe original data does not contain any digits and that digits are only for\nthose repeat numbers, k. For example, there will not be input like 3a or 2[4].\n\nThe test cases are generated so that the length of the output will never\nexceed 105.\n\"\"\"\n\nclass Solution:\n def decodeString(self, s: str) -> str:\n stack, curr_str, curr_num = [], '', 0\n for i in s:\n if i.isdigit():\n curr_num = curr_num * 10 + int(i)\n elif i == \"[\":\n stack.append(curr_num)\n stack.append(curr_str)\n curr_num, curr_str = 0, ''\n elif i == \"]\":\n prev_str = stack.pop()\n prev_num = stack.pop()\n curr_str = prev_str + curr_str * prev_num\n else:\n curr_str += i\n while stack:\n curr_str = stack.pop() + curr_str\n return curr_str\n\n\"\"\"\nhint\nuse stack\n\"\"\"\n","repo_name":"vavilovnv/python_ex","sub_path":"Test tasks (unsorted)/Solutions/leetcode/394-Decode-string.py","file_name":"394-Decode-string.py","file_ext":"py","file_size_in_byte":1383,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"5267885844","text":"import argparse\nimport os\nfrom typing import List, Optional\n\nfrom chat_analyzer.models.app_data import AnalysisArgs, AppArgs, AnalysisType, OutputFormat\n\nallowed_formats = {\n \"json\": OutputFormat.JSON,\n \"png\": OutputFormat.PLOT_PNG,\n \"plot\": OutputFormat.PLOT_UI,\n}\n\narg_parser = argparse.ArgumentParser(description='WhatsApp chat analyzer')\narg_parser.add_argument(\"path\",\n type=str,\n help=\"The path for the chat file(s) to analyze. Supports wildcards.\")\narg_parser.add_argument(\"--chat_stats\",\n default=argparse.SUPPRESS,\n action=\"store_true\",\n help=\"Simple stats on messages and words count\")\narg_parser.add_argument(\"--messages_day\",\n default=argparse.SUPPRESS,\n action=\"store_true\",\n help=\"Messages per day per person\")\narg_parser.add_argument(\"--initiation\",\n action=\"store\",\n type=int,\n default=argparse.SUPPRESS,\n metavar=\"interval\",\n help=\"Who initiates the conversation more often. Must specify [interval]\")\narg_parser.add_argument(\"--engagement\",\n action=\"store\",\n type=str,\n nargs=\"+\",\n default=argparse.SUPPRESS,\n metavar=\"subject\",\n help=\"Shows the engagement of one person (subject) with other partecipants over time. Must specify [subject: str]\")\narg_parser.add_argument(\"--word_rank\",\n nargs=2,\n type=int,\n default=argparse.SUPPRESS,\n metavar=(\"limit\", \"min_size\"),\n help=\"Most used words. May specify parameters [limit=10, min_size=4]\")\narg_parser.add_argument(\"--format\",\n action=\"store\",\n default=argparse.SUPPRESS,\n metavar=\"format\",\n choices=allowed_formats.keys(),\n type=str,\n help=f\"Output mode. accepted values are: [{','.join(allowed_formats.keys())}]\")\narg_parser.add_argument(\"--out\",\n action=\"store\",\n default=argparse.SUPPRESS,\n metavar=\"out_path\",\n type=str,\n help=\"By default is the same folder as input.\")\n\n\ndef get_args(manual_args: Optional[List[str]] = None) -> AppArgs:\n analysis_list = []\n parsed_args = vars(arg_parser.parse_args(manual_args))\n\n path = parsed_args[\"path\"]\n dir_path = os.path.dirname(path)\n\n if not os.path.exists(dir_path):\n raise Exception(f\"Input path {dir_path} does not exist.\")\n\n initiation = parsed_args.get(\"initiation\")\n engagement = parsed_args.get(\"engagement\")\n word_rank = parsed_args.get(\"word_rank\")\n out_format = allowed_formats.get(parsed_args.get(\"format\"), OutputFormat.JSON)\n out_path = parsed_args.get(\"out\", dir_path)\n\n if not os.path.exists(out_path):\n raise Exception(f\"Output path {out_path} does not exist.\")\n\n # Parameters for analysis\n if \"chat_stats\" in parsed_args:\n analysis_list.append(AnalysisArgs(AnalysisType.MESSAGES_COUNT))\n if \"messages_day\" in parsed_args:\n analysis_list.append(AnalysisArgs(AnalysisType.MESSAGES_PER_DAY))\n if initiation:\n analysis_list.append(\n AnalysisArgs(\n AnalysisType.INITIATION_SCORES,\n {\"hour_interval\": initiation},\n ))\n if engagement:\n analysis_list.append(\n AnalysisArgs(\n AnalysisType.ENGAGEMENT_SCORE,\n {\"subject\": \" \".join(engagement)},\n ))\n if word_rank:\n analysis_list.append(\n AnalysisArgs(\n AnalysisType.WORDS_MOST_USED,\n {\"limit\": word_rank[0], \"min_length\": word_rank[1]}\n ))\n\n if not analysis_list:\n raise Exception(\"Must select at least one analysis type\")\n\n return AppArgs(\n in_files_path=path,\n out_path=out_path,\n analyses=analysis_list,\n out_format=out_format,\n )\n","repo_name":"sechlol/whatsapp-chat-analyzer","sub_path":"chat_analyzer/args_helper.py","file_name":"args_helper.py","file_ext":"py","file_size_in_byte":4317,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"69942364765","text":"import socket\n\nimport requests\n\nfrom clusterfuzz._internal.base import retry\nfrom clusterfuzz._internal.system import environment\n\n_METADATA_SERVER = 'metadata.google.internal'\n\n_RETRIES = 3\n_DELAY = 1\n\n\n@retry.wrap(\n retries=_RETRIES,\n delay=_DELAY,\n function='python.google_cloud_utils.compute_metadata.get')\ndef get(path):\n \"\"\"Get GCE metadata value.\"\"\"\n attribute_url = (\n 'http://{}/computeMetadata/v1/'.format(_METADATA_SERVER) + path)\n headers = {'Metadata-Flavor': 'Google'}\n operations_timeout = environment.get_value('URL_BLOCKING_OPERATIONS_TIMEOUT')\n\n response = requests.get(\n attribute_url, headers=headers, timeout=operations_timeout)\n response.raise_for_status()\n return response.text\n\n\ndef is_gce():\n \"\"\"Return whether or not we're on GCE.\"\"\"\n try:\n sock = socket.create_connection((_METADATA_SERVER, 80))\n sock.close()\n except Exception:\n return False\n\n return True\n","repo_name":"google/clusterfuzz","sub_path":"src/clusterfuzz/_internal/google_cloud_utils/compute_metadata.py","file_name":"compute_metadata.py","file_ext":"py","file_size_in_byte":923,"program_lang":"python","lang":"en","doc_type":"code","stars":5122,"dataset":"github-code","pt":"86"}
+{"seq_id":"41553112809","text":"from os import name\r\nimport string\r\nimport time\r\nfrom datetime import date, datetime\r\nfrom typing import Dict, List, NamedTuple, Optional, Tuple, cast\r\n\r\nfrom pathvalidate import ValidationError, validate_filename # type: ignore\r\nimport tzlocal\r\nfrom geopy.geocoders import Nominatim\r\nfrom geopy.location import Location\r\n\r\nfrom . import __app_name__\r\nfrom .metadata import Metadata\r\nfrom .time import get_datetime_string\r\n\r\n\r\nclass FileNameField(NamedTuple):\r\n name: str\r\n required: bool\r\n description: str # html\r\n\r\n\r\n_file_name_fields: List[FileNameField] = [\r\n FileNameField(\r\n name=\"datetime\",\r\n required=True,\r\n description=\"Date and time string (e.g. '2022-01-01'). Exact format is governed by date format below.\",\r\n ),\r\n FileNameField(\r\n name=\"geocode\",\r\n required=False,\r\n description=\"\"\"A human-readable description of the location the screenshot\r\nwas taken at (e.g. USA-Texas-Austin ), as returned by \r\nOSM Nominatim .\"\"\",\r\n ),\r\n]\r\n\r\n\r\nclass FileNameComposer:\r\n\r\n _user_agent = __app_name__.replace(\" \", \"_\")\r\n\r\n def compose_name(\r\n self, name_format: str, date_format: str, metadata: Optional[Metadata] = None\r\n ):\r\n is_valid_name_format, error = self.is_name_format_valid(name_format)\r\n if not is_valid_name_format:\r\n raise ValueError(f\"Invalid format string provided: {error}\")\r\n\r\n is_valid_date_format, error = self.is_date_format_valid(date_format)\r\n if not is_valid_date_format:\r\n raise ValueError(f\"Invalid format string provided: {error}\")\r\n\r\n capture_time = metadata.capture_time if metadata else time.time()\r\n\r\n format_data: Dict[str, Optional[str]] = {\r\n \"datetime\": get_datetime_string(\r\n timestamp_utc=capture_time, date_format=date_format\r\n ),\r\n \"geocode\": (self._maybe_get_geocode_string(metadata) if metadata else None)\r\n or \"no-geocode-found\",\r\n }\r\n\r\n return name_format.format(**format_data)\r\n\r\n def is_name_format_valid(self, name_format: str) -> Tuple[bool, str]:\r\n if not name_format:\r\n return False, \"Name format must not be empty.\"\r\n\r\n try:\r\n mock_file_name = f\"{name_format}.extension\"\r\n validate_filename(mock_file_name)\r\n except ValidationError as e:\r\n return False, str(e)\r\n\r\n formatter = string.Formatter().parse(name_format)\r\n try:\r\n items = list(formatter)\r\n except ValueError:\r\n return False, \"Format string is invalid.\"\r\n\r\n field_names = [name for text, name, spec, conv in items if name is not None]\r\n\r\n known_names = []\r\n for file_name_field in _file_name_fields:\r\n known_names.append(file_name_field.name)\r\n if file_name_field.required and file_name_field.name not in field_names:\r\n return False, f\"Missing required field: {{{file_name_field.name}}}.\"\r\n\r\n for field_name in field_names:\r\n if field_name not in known_names:\r\n return False, f\"Unrecognized field name: '{{{field_name}}}'\"\r\n\r\n return True, \"\"\r\n\r\n def is_date_format_valid(self, date_format: str) -> Tuple[bool, str]:\r\n if not date_format:\r\n return False, \"Date format must not be empty.\"\r\n\r\n try:\r\n mock_file_name = f\"{date_format}.extension\"\r\n validate_filename(mock_file_name)\r\n except ValidationError as e:\r\n return False, str(e)\r\n\r\n test_time = datetime.fromtimestamp(1631728655)\r\n try:\r\n formatted = test_time.strftime(date_format)\r\n except Exception:\r\n return False, \"Date format could not be parsed.\"\r\n\r\n if formatted == \"\":\r\n return False, \"Date format would result in empty string.\"\r\n\r\n if formatted == date_format:\r\n return False, \"Date format does not contain any placeholders.\"\r\n\r\n return True, \"\"\r\n\r\n def get_supported_fields(self) -> List[FileNameField]:\r\n return _file_name_fields\r\n\r\n def _maybe_get_geocode_string(self, metadata: Metadata) -> Optional[str]:\r\n try:\r\n geolocator = Nominatim(user_agent=self._user_agent)\r\n location: Location = cast(\r\n Location,\r\n geolocator.reverse(\r\n (metadata.GPSLatitude, metadata.GPSLongitude),\r\n language=\"en-US,en\",\r\n exactly_one=True,\r\n zoom=10, # limit to city region\r\n ),\r\n )\r\n except Exception as e:\r\n print(e)\r\n return None\r\n\r\n if not location or not getattr(location, \"address\", None):\r\n return None\r\n\r\n try:\r\n location_str = \"-\".join(reversed(location.address.split(\", \"))).replace(\r\n \" \", \"_\"\r\n )\r\n except Exception as e:\r\n print(e)\r\n return None\r\n\r\n return location_str\r\n","repo_name":"pyviator/msfs-geoshot","sub_path":"msfs_geoshot/names.py","file_name":"names.py","file_ext":"py","file_size_in_byte":5091,"program_lang":"python","lang":"en","doc_type":"code","stars":6,"dataset":"github-code","pt":"86"}
+{"seq_id":"36036226777","text":"adjective1=input(\"Adjective: \")\nan_invention=input(\"An Invention: \")\na_food=input(\"A food: \")\nadjective2=input(\"Adjective: \")\npart_of_body_plural=input(\"Part of body(Plural): \")\nadjective3=input(\"Adjective: \")\nplural_noun1=input(\"Plural noun: \")\nplural_noun2=input(\"Plural noun: \")\n\nmadlib=f\"I would like to say a few {adjective1} words about the \\\n most important invention of the twentieth century, I am not \\\n referring to {an_invention} or even to the discovery of \\\n {a_food}. The most {adjective2} invention, in my opinion, \\\n is the sneaker. If it were not for sneakers, our {part_of_body_plural}\\\n would be dirty, cold, and {adjective3}. Sneakers keep me from skidding \\\n if the {plural_noun1} are slippery, and when I run, they keep me from stubbing\\\n my {plural_noun2}.\"\nprint(madlib)\n","repo_name":"bimoai857/Python","sub_path":"python projects/madlib.py","file_name":"madlib.py","file_ext":"py","file_size_in_byte":860,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"24060513620","text":"import pyinputplus\nfrom time import sleep\nimport os\n\ndef check():\n print(\"== Only odd numbers above 9 are allowed ==\")\n a = pyinputplus.inputInt(\"Enter shape size$ \")\n\n if a % 2 != 1 or a < 9:\n check()\n else:\n os.system('cls')\n space = 0\n decrementor = a\n for x in range(0, a, 2):\n print(\" \"*space + \" *\"*decrementor)\n sleep(0.5)\n space += 2\n decrementor -= 2\n\n space = int((a-3))\n incrementor = 3\n for x in range(a-1, 0, -2):\n print(\" \"*space + \" *\"*incrementor)\n sleep(0.5)\n space -= 2\n incrementor += 2\n\n big = \"\\n== THE BIG TEAM TREE ==\"\n\n for x in range(len(big)):\n sleep(0.3)\n print(big[x], end=\"\")\n\n print(\"\\n_________________________\")\ncheck()\n\n","repo_name":"EnGentech/My_python_codes","sub_path":"lamp_shape.py","file_name":"lamp_shape.py","file_ext":"py","file_size_in_byte":852,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"20378304426","text":"import click\nimport shutil\nfrom tabulate import tabulate\nfrom pathlib import Path\nfrom where.utils import find_by_extension\nfrom where.utils import find_by_name\nfrom where.utils import find_by_modified\nfrom where.utils import get_files_details\nfrom where.utils import get_folders\nfrom datetime import datetime\nfrom where.exceptions import InvalidInputError, NoFileFound, FileFinderError\n\n\ndef copy_files(copy_to, files):\n if copy_to:\n copy_path = Path(copy_to)\n if not copy_path.is_dir():\n copy_path.mkdir(parents=True)\n for file in files:\n dst_file = copy_path / file.name\n\n if dst_file.is_file():\n dst_file = copy_path / f'{file.stem}{datetime.now().strftime(\"%d%m%Y%H%M%S%f\")}{file.suffix}'\n\n shutil.copy(src=file.absolute(), dst=dst_file)\n\n\ndef save_report(save, report, root):\n if save and report:\n report_file_path = root / f'finder_report_{datetime.now().strftime(\"%d%m%Y%H%M%S%f\")}.txt'\n with open(report_file_path.absolute(), mode='w') as report_file:\n report_file.write(report)\n\n\ndef process_search(path, key, value, recursive):\n search_dict = {\n \"name\": find_by_name,\n \"ext\": find_by_extension,\n \"mod\": find_by_modified\n }\n\n files = search_dict[key](path, value)\n\n if recursive:\n subdirs = get_folders(path)\n for subdir in subdirs:\n files += process_search(subdir, key, value, recursive)\n\n return files\n\n\ndef process_results(files, key, value):\n if not files:\n raise NoFileFound(f'Nenhum arquivo com {key} {value} foi encontrado.')\n\n table_headers = [\"Nome\", \"Modificação\", \"Localização\"]\n table_data = get_files_details(files)\n tabulated_data = tabulate(tabular_data=table_data, headers=table_headers, tablefmt='tsv')\n click.echo(tabulated_data)\n return tabulated_data\n\n\n@click.command()\n@click.argument(\"path\", default=\"\")\n@click.option(\"-k\", \"--key\", required=True, type=click.Choice([\"name\", \"ext\", \"mod\"]), help=\"Define o tipo de chave utilizada para a busca, podendo ser: Nome, Extensão ou última data de modificação do arquivo\")\n@click.option(\"-v\", \"--value\", required=True, help=\"Define um valor para a chave.\")\n@click.option(\"-r\", \"--recursive\", is_flag=True, default=False, help=\"Se presente, faz busca recursiva em todos os sub-diretórios.\")\n@click.option(\"-c\", \"--copy-to\", help=\"Copia todos os arquivos para o caminho informado.\")\n@click.option(\"-s\", \"--save\", is_flag=True, default=False, help=\"Se presente salva um 'relatório' da busca realizada.\")\ndef finder(path, key, value, recursive, copy_to, save):\n \"\"\"\n Um programa que realiza busca de arquivos por meio de uma chave (-k | --key) a partir do diretório PATH.\n\n PATH define o diretório onde a pesquisa inicia. Caso não informado, assume o diretório atual.\n \"\"\"\n root = Path(path)\n\n if not root.is_dir():\n raise InvalidInputError(f'O caminho \"{path}\" não representa um diretório existente.')\n click.echo(f'O diretório selecionado foi: {root.absolute()}')\n\n files = process_search(path=root, key=key, value=value, recursive=recursive)\n report = process_results(files=files, key=key, value=value)\n\n save_report(report=report, save=save, root=root)\n copy_files(copy_to=copy_to, files=files)\n\n\nif __name__ == '__main__':\n try:\n finder()\n except FileFinderError as err:\n click.echo(click.style(f'❌ {err}', bg='black', fg='red', italic=True))\n","repo_name":"rdsgabriel/file_finder","sub_path":"where/finder.py","file_name":"finder.py","file_ext":"py","file_size_in_byte":3494,"program_lang":"python","lang":"pt","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"4074905","text":"import pytest\nfrom sales_per_customer import SalesPerCustomer\n\n\ndef test_merge_sales_and_customer_files():\n customer_csv_file = 'customers.csv'\n sales_csv_file = 'sales.csv'\n\n files = SalesPerCustomer(customer_csv_file,sales_csv_file)\n dst = files.merge_sales_and_customer_files(customer_csv_file,sales_csv_file)\n print(dst)\n expected = [['customer_id', 'name', 'email', 'address', 'sum(quantity)'],\n ['1', 'Rike Weiss', 'rike.weiss@email.com', 'Berlinerstraße 1', 14],\n ['2', 'Max Musterman', 'max.musterman@email.com', 'Berlinerstraße 1', 5],\n ['3', 'Hildegard Hartmann', 'hildegard.hartmann@email.com', 'Torstraße 25', 7],\n ['4', 'Kora Schegtel', 'kora.schegtel@email.com', 'Oranienstraße 10', 1]]\n\n assert dst == expected\n\n\nclass test_some_stuff():\n test_merge_sales_and_customer_files()\n","repo_name":"piyush9194/python","sub_path":"test_sales_per_customer.py","file_name":"test_sales_per_customer.py","file_ext":"py","file_size_in_byte":880,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12940545942","text":"from read_data import data_armies\nfrom strategy import Strategy\nfrom clock import Clock\nimport logging\n\n\ndef main():\n logging.basicConfig(filename=\"battle_recap.log\", level=logging.INFO)\n clock = Clock()\n armies = data_armies(clock.time())\n strategy = Strategy()\n logging.info(\"Battle begin\")\n\n while True:\n clock.tick()\n for army in armies:\n for squad in army.squads:\n print(squad.name, squad.health())\n\n for army_a in armies:\n for army_b in armies:\n if army_a is not army_b:\n if army_a.alive() and army_b.alive():\n logging.info(\"{} health: {} --> {} health: {}\".format(\n army_a.name,\n army_a.health(),\n army_b.name,\n army_b.health()\n ))\n target_squad = army_a.select_strategy(strategy, army_b)\n for squad in army_a.squads:\n if squad.alive():\n for unit in squad.units:\n if unit.clock <= clock.time():\n squad.attack(target_squad, clock.time())\n unit.up_exp()\n army_alive = 0\n army_name = \"\"\n for army in armies:\n if army.alive():\n army_alive += 1\n army_name = army.name\n if army_alive == 1:\n for army in armies:\n for squad in army.squads:\n print(squad.name, squad.health())\n logging.info(\"{} win!\".format(army_name))\n print(army_name, \"win!\")\n return\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"NedelkoA/light-it","sub_path":"battle_simulator/main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":1819,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3834344384","text":"import numpy as np\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nsns.set_style('dark')\nimport glob\nimport os\nimport PIL\n\n# Our image processing tools\nimport skimage.filters\nimport skimage.io\nimport skimage.measure\nimport skimage.morphology\nimport skimage.segmentation\n\n# Load in the series of images contained in the directory data/bacterial_growth/.\n# Be sure that however you store them (a list or tuple or other object) has the\n# frames in the proper order.\n# bac_list = [glob.glob('data/bacterial_growth/*.tif')]\n\n# Make an array to deposit areas later.\nfilelist = glob.glob(\"data/bacterial_growth/*.tif\")\ntot_area=np.zeros(len(filelist))\ni=0\nfor filename in filelist:\n im_df = skimage.io.imread(filename)\n\n # Perform the median filter.\n # Make the structuring element\n selem = skimage.morphology.square(3)\n\n # Perform the median filter\n im_filt = skimage.filters.median(im_df, selem)\n\n # Apply a gaussian blur with a 50 pixel radius.\n im_gauss = skimage.filters.gaussian(im_filt, 50.0)\n\n # Convert the median-filtered phase image to a float64\n im_float = skimage.img_as_float(im_filt)\n\n # Subtract our gaussian blurred image from the original.\n im_sub = im_float - im_gauss\n\n # Segment the images to separate bacteria from background. You do not need\n #to segment individual bacteria; this would likely require some more advanced\n #techniques involving edge detection that we haven't covered in bootcamp.\n\n # Compute Otsu thresholds\n thresh_bac_otsu = skimage.filters.threshold_otsu(im_sub)\n\n # # Threshold value, as obtained by eye\n # thresh_bac = 588\n\n # Generate thresholded image\n im_bac_bw = im_sub > thresh_bac_otsu\n #\n # # Display filt and thresholded image\n # with sns.axes_style('dark'):\n # fig, ax = plt.subplots(1, 2, figsize=(10, 5))\n # ax[0].imshow(im_filt, cmap=plt.cm.gray)\n # ax[1].imshow(im_bac_bw, cmap=plt.cm.gray)\n\n # Compute bacterial area\n bacterial_area_pix = im_bac_bw.sum()\n\n # Define interpixel distance\n interpix_dist = 0.063 # microns\n\n # Compute bacterial area\n bacterial_area_micron = bacterial_area_pix * interpix_dist**2\n\n # # Print total area\n # print('bacterial area =', bacterial_area_pix, 'pixels')\n\n # Define interpixel distance\n interpix_dist = 0.063 # microns\n\n # Compute bacterial area\n bacterial_area_micron = bacterial_area_pix * interpix_dist**2\n\n # # Print total area\n #print('bacterial area =', bacterial_area_micron, 'square microns')\n\n # Add areas to empty array\n tot_area[i] = bacterial_area_micron\n i += 1\n\n\n# Plot a growth curve for this growing colony. What values should be on the\n# yy -axis? (This is one of those times where I ask an open question for which\n# there is no \"right\" answer.)\ntime = np.linspace(0, 825, 55)\n# plt.semilogy(time, tot_area, marker='.', linestyle='none', alpha=0.5, markersize=15)\n# plt.xlabel('time (min)')\n# plt.ylabel('Change in Area of Bacterial Footprint')\n# plt.title('B. subtilis Growth Curve')\n# plt.show()\n\nfig, ax = plt.subplots(1, 2, figsize=(10, 5))\nax[0].semilogx(time, tot_area, marker='.', linestyle='none', alpha=0.5, markersize=15)\nax[0].set_title('B. subtilis Growth Curve semilog x')\nax[1].semilogy(time, tot_area, marker='.', linestyle='none', alpha=0.5, markersize=15)\nax[0].set_xlabel('time (min)')\nax[0].set_ylabel('Change in Area of Bacterial Footprint')\nax[1].set_xlabel('time (min)')\nax[1].set_ylabel('Change in Area of Bacterial Footprint')\nax[1].set_title('B. subtilis Growth Curve semilog y')\nplt.show()\n","repo_name":"hleighcurtis/bootcamp-1","sub_path":"growth_movie.py","file_name":"growth_movie.py","file_ext":"py","file_size_in_byte":3570,"program_lang":"python","lang":"en","doc_type":"code","dataset":"github-code","pt":"86"}
+{"seq_id":"7852435043","text":"#!/usr/bin/python3\nimport functools\nimport time\n\n\"\"\"\ndef time_it(func): # Stack udaydoneit\n def wrapper(*args, **kwargs):\n start = time.time()\n res = func(*args, **kwargs)\n end = time.time()\n time_taken = end - start\n print(f\"time taken = {time_taken:.6f}s \")\n return res\n\n return wrapper\n\"\"\"\n\n\ndef time_it(f): # Stack overflow\n is_evaluating = False\n\n def inner(*args, **kwargs):\n nonlocal is_evaluating\n if is_evaluating:\n return f(*args, **kwargs)\n else:\n start = time.time()\n is_evaluating = True\n try:\n value = f(*args, **kwargs)\n finally:\n is_evaluating = False\n end = time.time()\n time_taken = end - start\n print(f\"time taken = {time_taken:.6f}s \")\n return value\n\n return inner\n\n\n@functools.lru_cache(maxsize=1000)\n@time_it\ndef fact(num):\n print(f\"Calculating factorial of {num}\")\n if num < 2:\n return 1\n elif num >= 2:\n return num * fact(num - 1)\n\n\n@functools.lru_cache(maxsize=1000)\ndef fibonacci(num):\n print(f\"Calculating fibonacci of {num}\")\n if num < 2:\n return num\n return fibonacci(num - 1) + fibonacci(num - 2)\n\n\nif __name__ == \"__main__\":\n print(fact(100))\n print(fibonacci(30))\n print(fibonacci.cache_info())\n","repo_name":"UdayGarg/Practice_problems","sub_path":"decorators/decorator1.py","file_name":"decorator1.py","file_ext":"py","file_size_in_byte":1386,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"11635137251","text":"from __future__ import absolute_import, division, print_function\nimport pandas as pd\nimport seaborn as sns\nimport tensorflow as tf\nfrom tensorflow import keras\nfrom tensorflow.keras import layers\nimport os\nimport matplotlib.pyplot as plt\n\nthis_dir, this_filename = os.path.split(__file__)\ncolumn_names_low = ['sc_px','sc_py','sc_pz','sc_prx','sc_pry','sc_prz',\n 'a_px','a_py','a_pz','a_prx','a_pry','a_prz','a_fx','a_fy','a_fz','a_frx','a_fry','a_frz',\n 'sl_px','sl_py','sl_pz','sl_prx','sl_pry','sl_prz']\nraw_dataset_low = pd.read_csv(os.path.join(this_dir, \"document\", \"Data_low.csv\"), names=column_names_low, na_values=\"?\", comment='\\t', sep=\",\", skipinitialspace=True)\ndataset_low = raw_dataset_low.copy()\n\ndataset_low.isna().sum()\ndataset_low = dataset_low.dropna()\n\ntrain_dataset_low = dataset_low.sample(frac=0.8, random_state=0)\ntest_dataset_low = dataset_low.drop(train_dataset_low.index)\n#\n# sns.pairplot(train_dataset_low[['sc_px','sc_py','sc_pz']], diag_kind=\"kde\")\n#\ntrain_stats_low = train_dataset_low.describe()\nfor string in ['a_px','a_py','a_pz','a_prx','a_pry','a_prz','a_fx','a_fy','a_fz','a_frx','a_fry','a_frz']:\n train_stats_low.pop(string)\ntrain_stats_low = train_stats_low.transpose()\n\ntrain_labels_low = train_dataset_low.copy()\ntest_labels_low = test_dataset_low.copy()\nfor string in ['sc_px','sc_py','sc_pz','sc_prx','sc_pry','sc_prz','sl_px','sl_py','sl_pz','sl_prx','sl_pry','sl_prz']:\n train_labels_low.pop(string)\n test_labels_low.pop(string)\nfor string in ['a_px', 'a_py', 'a_pz', 'a_prx', 'a_pry', 'a_prz', 'a_fx', 'a_fy', 'a_fz', 'a_frx', 'a_fry', 'a_frz']:\n train_dataset_low.pop(string)\n test_dataset_low.pop(string)\n\ndef norm(x):\n return (x - train_stats_low['mean'])/train_stats_low['std']\n\nnormed_train_data_low = norm(train_dataset_low)\nnormed_test_data_low = norm(test_dataset_low)\n\ndef plot_history(history):\n hist = pd.DataFrame(history.history)\n hist['epoch'] = history.epoch\n plt.figure()\n plt.xlabel('Epoch')\n plt.ylabel('Mean Abs Error [MPG]')\n plt.plot(hist['epoch'],hist['mae'],label='Train Error')\n plt.plot(hist['epoch'],hist['val_mae'],label='Val Error')\n plt.legend()\n plt.ylim([0,5])\n\n plt.figure()\n plt.xlabel('Epoch')\n plt.ylabel('Mean Square Error [$MPG^2$]')\n plt.plot(hist['epoch'],hist['mse'],label='Train Error')\n plt.plot(hist['epoch'],hist['val_mse'],label='Val Error')\n plt.legend()\n plt.ylim([0,20])\n\nmodel = keras.Sequential([\n layers.Dense(256,activation=tf.nn.relu,input_shape=[len(train_dataset_low.keys())]),\n layers.Dense(256,activation=tf.nn.relu),\n layers.Dense(12)\n])\n# optimizer = tf.keras.optimizers.RMSprop(0.005)\noptimizer = tf.keras.optimizers.Adam(0.005)\nmodel.compile(loss='mse',\n optimizer=optimizer,\n metrics=['mae','mse'])\n\nmodel.summary()\n\nearly_stop = keras.callbacks.EarlyStopping(monitor='val_loss', patience=10)\nimport time\nstart_time = time.time()\nhistory = model.fit(normed_train_data_low, train_labels_low, batch_size=128, epochs=200,\n validation_split=0.2, verbose=1, callbacks=[early_stop])\nprint(\"Training took {} seconds\".format(time.time()-start_time))\nhist = pd.DataFrame(history.history)\nhist['epoch'] = history.epoch\nprint(hist)\nplot_history(history)\n#\n# loss, mae, mse = model.evaluate(normed_test_data, test_labels, verbose=0)\n# print('Testing set Mean Abs Error: {:5.2f} MPG'.format(mae))\n#\n# test_predictions = model.predict(normed_test_data).flatten()\n# plt.figure()\n# plt.scatter(test_labels, test_predictions)\n# plt.xlabel('True values [MPG]')\n# plt.ylabel('Predictions [MPG]')\n# plt.axis('equal')\n# plt.axis('square')\n# plt.xlim([0,plt.xlim()[1]])\n# plt.ylim([0,plt.ylim()[1]])\n# _ = plt.plot([-100, 100], [-100, 100])\n\n# error = test_predictions - test_labels\n# plt.figure()\n# plt.hist(error, bins=25)\n# plt.xlabel('Predicton Error [MPG]')\n# _ = plt.ylabel('Count')\nloss, mae, mse = model.evaluate(normed_test_data_low, test_labels_low, verbose=1)\nprint(\"loss = {}, mae = {}, mse = {}\".format(loss, mae, mse))\n# plt.show()\n\n# save the model\nmodel.save(os.path.join(this_dir, \"nnmodel\", \"low_model.h5\"))\nprint(\"Saved model to disk\")\n\n","repo_name":"wangyan-hlab/wrs-nxt-IL-RL","sub_path":"0001_yan/HR_NN_lowlevel.py","file_name":"HR_NN_lowlevel.py","file_ext":"py","file_size_in_byte":4186,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34936740446","text":"#!/usr/bin/env python\n\ndef quicksort(a, left, right):\n if((right-left) <=1):\n return\n pivot_index = (left+right)//2\n pivot = a[pivot_index]\n a[pivot_index],a[right-1] = (a[right-1],a[pivot_index])\n \n i = left\n for j in range(left,right-1):\n if(a[j]= -73.98283055]\n # It’s most southern spot is at 33 deg, 45′ 04.21″ S Latitude.\n geolocation = geolocation[geolocation.geolocation_lat >= -33.75116944]\n # It’s most Eastern spot is 34 deg, 47′ 35.33″ W Long.\n geolocation = geolocation[geolocation.geolocation_lng <= -34.79314722]\n\n x, y = webm(geolocation.geolocation_lng, geolocation.geolocation_lat)\n geolocation['x'] = pd.Series(x)\n geolocation['y'] = pd.Series(y)\n return geolocation\n\n def __costumer_geolocation(self):\n costumer = self.costumer[[\"customer_id\", 'zip_code', 'city', 'state']]\n return costumer.merge(self.geolocation, on=[\"zip_code\", \"city\", \"state\"], how=\"left\")\n\n def __seller_geolocation(self):\n return self.sellers.merge(self.geolocation, on=[\"zip_code\", \"city\", \"state\"], how=\"left\")\n\n def get_costumer_distribution(self):\n return self.costumer_geolocation.groupby([\"zip_code\", \"city\",\n \"state\", \"x\", \"y\"]).count()[\"customer_id\"].reset_index()\n\n def get_seller_distribution(self):\n return self.seller_geolocation.groupby([\"zip_code\", \"city\",\n \"state\", \"x\", \"y\"]).count()[\"seller_id\"].reset_index()\n\n def product_buy_by_costumer(self, year=None, month=None):\n orders_delivered = self.orders[self.orders[\"order_status\"] == \"delivered\"]\n products = self.products[[\"product_id\", \"product_category_name\"]]\n orders_items = self.orders_items.merge(products, on=[\"product_id\"])\n orders_delivered_by_costumer = orders_delivered[\n ['order_id', 'customer_id', 'order_status', \"order_delivered_customer_date\"]]\n orders_items = orders_items.merge(orders_delivered_by_costumer, on=['order_id'])\n orders_items[\"order_delivered_customer_year\"] = orders_items['order_delivered_customer_date'].dt.year\n orders_items[\"order_delivered_customer_month\"] = orders_items['order_delivered_customer_date'].dt.month\n if year is None and month is None:\n return orders_items\n if year is not None and month is not None:\n return orders_items[(orders_items[\"order_delivered_customer_year\"] == year) &\n (orders_items[\"order_delivered_customer_month\"] == month)]\n if year is not None and month is None:\n return orders_items[orders_items[\"order_delivered_customer_year\"] == year]\n\n if year is None and month is not None:\n return orders_items[orders_items[\"order_delivered_customer_month\"] == month]\n\n @staticmethod\n def product_best_sellers(orders_items_costumer, n_top=None):\n top_products = orders_items_costumer.groupby([\"product_id\"]).sum()[\"order_item_id\"].sort_values(ascending=False)\n top_products_category = orders_items_costumer.groupby([\"product_category_name\"]).sum()[\"order_item_id\"].sort_values(\n ascending=False)\n return top_products.reset_index().head(n_top), top_products_category.reset_index().head(n_top)\n\n def top_products_by_costumer(self, orders_items_costumer):\n orders_items_by_costumer = orders_items_costumer.groupby([\"product_id\", \"customer_id\"]).sum()[\n \"order_item_id\"].sort_values(ascending=False).reset_index()\n costumer_location = self.__costumer_geolocation()\n top_products_by_costumer = orders_items_by_costumer.merge(costumer_location, on=[\"customer_id\"])\n return top_products_by_costumer.groupby([\"product_id\", \"zip_code\", \"city\", \"state\", \"x\", \"y\"]).sum()[\n \"order_item_id\"].sort_values(ascending=False).reset_index()\n\n def get_incomes(self):\n orders_df = self.orders\n order_items = self.orders_items\n order_reviews = self.order_reviews\n customer = pd.read_csv('data/olist_customers_dataset.csv', dtype={'customer_zip_code_prefix': str})\n # getting the first 3 digits of customer zipcode\n customer['customer_zip_code_prefix_3_digits'] = customer['customer_zip_code_prefix'].str[0:3]\n customer['customer_zip_code_prefix_3_digits'] = customer['customer_zip_code_prefix_3_digits'].astype(int)\n\n geo = pd.read_csv(\"data/olist_geolocation_dataset.csv\", dtype={'geolocation_zip_code_prefix': str})\n # Removing some outliers\n #Brazils most Northern spot is at 5 deg 16′ 27.8″ N latitude.;\n geo = geo[geo.geolocation_lat <= 5.27438888]\n #it’s most Western spot is at 73 deg, 58′ 58.19″W Long.\n geo = geo[geo.geolocation_lng >= -73.98283055]\n #It’s most southern spot is at 33 deg, 45′ 04.21″ S Latitude.\n geo = geo[geo.geolocation_lat >= -33.75116944]\n #It’s most Eastern spot is 34 deg, 47′ 35.33″ W Long.\n geo = geo[geo.geolocation_lng <= -34.79314722]\n\n x, y = webm(geo.geolocation_lng, geo.geolocation_lat)\n geo['x'] = pd.Series(x)\n geo['y'] = pd.Series(y)\n\n geo['geolocation_zip_code_prefix_1_digits'] = geo['geolocation_zip_code_prefix'].str[0:1]\n geo['geolocation_zip_code_prefix_2_digits'] = geo['geolocation_zip_code_prefix'].str[0:2]\n geo['geolocation_zip_code_prefix_3_digits'] = geo['geolocation_zip_code_prefix'].str[0:3]\n geo['geolocation_zip_code_prefix_4_digits'] = geo['geolocation_zip_code_prefix'].str[0:4]\n\n # transforming the prefixes to int for plotting purposes\n geo['geolocation_zip_code_prefix'] = geo['geolocation_zip_code_prefix'].astype(int)\n geo['geolocation_zip_code_prefix_1_digits'] = geo['geolocation_zip_code_prefix_1_digits'].astype(int)\n geo['geolocation_zip_code_prefix_2_digits'] = geo['geolocation_zip_code_prefix_2_digits'].astype(int)\n geo['geolocation_zip_code_prefix_3_digits'] = geo['geolocation_zip_code_prefix_3_digits'].astype(int)\n geo['geolocation_zip_code_prefix_4_digits'] = geo['geolocation_zip_code_prefix_4_digits'].astype(int)\n\n brazil_geo = geo.set_index('geolocation_zip_code_prefix_3_digits').copy()\n\n orders = orders_df.merge(order_items, on='order_id')\n orders = orders.merge(customer, on='customer_id')\n orders = orders.merge(order_reviews, on='order_id')\n gp = orders.groupby('customer_zip_code_prefix_3_digits')['price'].sum().to_frame()\n revenue = brazil_geo.join(gp)\n\n revenue[\"revenue\"] = revenue.price / 1000\n return revenue\n\n\n\n\n\n\n\n","repo_name":"Alves663/proyect","sub_path":"app/olistdata.py","file_name":"olistdata.py","file_ext":"py","file_size_in_byte":10709,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"21978580106","text":"import torch\r\nimport torch.nn as nn\r\nimport torch.nn.functional as F\r\n\r\nclass ITN3D(nn.Module):\r\n\r\n def __init__(self, nf=16):\r\n super(ITN3D, self).__init__()\r\n\r\n self.conv0 = nn.Conv3d(1, nf, kernel_size=3, padding=1) #64-64\r\n self.bn0 = nn.BatchNorm3d(nf)\r\n self.conv1 = nn.Conv3d(nf, nf*2, kernel_size=3, padding=1, stride=2) #64-32\r\n self.bn1 = nn.BatchNorm3d(nf*2)\r\n self.conv2 = nn.Conv3d(nf*2, nf*4, kernel_size=3, padding=1, stride=2) #32-16\r\n self.bn2 = nn.BatchNorm3d(nf*4)\r\n self.conv3 = nn.Conv3d(nf * 4, nf * 8, kernel_size=3, padding=1, stride=2) # 16-8\r\n self.bn3 = nn.BatchNorm3d(nf * 8)\r\n\r\n self.bottleneck0 = nn.Conv3d(nf*8, nf*8, kernel_size=3, padding=1) #8-8\r\n self.bnb0 = nn.BatchNorm3d(nf * 8)\r\n self.bottleneck1 = nn.Conv3d(nf*8, nf*8, kernel_size=3, padding=1) #8-8\r\n self.bnb1 = nn.BatchNorm3d(nf * 8)\r\n\r\n self.up31 = nn.Upsample(scale_factor=2, mode='trilinear', align_corners=False) # 8-16\r\n self.pad3 = nn.ConstantPad3d(1, 0)\r\n self.up32 = nn.Conv3d(nf * 8, nf * 4, kernel_size=3, padding=0)\r\n self.drop3 = nn.Dropout(0.5)\r\n\r\n self.up21 = nn.Upsample(scale_factor=2, mode='trilinear', align_corners=False) #16-32\r\n self.pad2 = nn.ConstantPad3d(1, 0)\r\n self.up22 = nn.Conv3d(nf*4 + nf*4, nf*2, kernel_size=3, padding=0)\r\n self.drop2 = nn.Dropout(0.5)\r\n\r\n self.up11 = nn.Upsample(scale_factor=2, mode='trilinear', align_corners=False) #32-64\r\n self.pad1 = nn.ConstantPad3d(1, 0)\r\n self.up12 = nn.Conv3d(nf*2 + nf*2, nf, kernel_size=3, padding=0)\r\n self.drop1 = nn.Dropout(0.5)\r\n\r\n self.pad0 = nn.ConstantPad3d(1, 0)\r\n self.output = nn.Conv3d(nf + nf, 1, kernel_size=3, padding=0)\r\n\r\n def forward(self, x):\r\n\r\n c0 = F.relu(self.bn0(self.conv0(x)))\r\n c1 = F.relu(self.bn1(self.conv1(c0)))\r\n c2 = F.relu(self.bn2(self.conv2(c1)))\r\n c3 = F.relu(self.bn3(self.conv3(c2)))\r\n\r\n b0 = F.relu(self.bnb0(self.bottleneck0(c3)))\r\n b1 = F.relu(self.bnb1(self.bottleneck1(b0)))\r\n\r\n u3 = F.relu(self.up32(self.pad3(self.up31(b1))))\r\n u3cat = self.drop3(torch.cat([u3, c2], 1))\r\n u2 = F.relu(self.up22(self.pad2(self.up21(u3cat))))\r\n u2cat = self.drop2(torch.cat([u2, c1], 1))\r\n u1 = F.relu(self.up12(self.pad1(self.up11(u2cat))))\r\n u1cat = self.drop1(torch.cat([u1, c0], 1))\r\n out = self.output(self.pad0(u1cat)) + x\r\n\r\n return torch.tanh(out)\r\n\r\n\r\nclass BasicConv3d(nn.Module):\r\n def __init__(self, in_channels, out_channels, **kwargs):\r\n super(BasicConv3d, self).__init__()\r\n self.conv = nn.Conv3d(in_channels, out_channels, bias=False, **kwargs)\r\n self.norm = nn.InstanceNorm3d(out_channels, affine=True)\r\n nn.BatchNorm1d\r\n\r\n def forward(self, x):\r\n x = self.conv(x)\r\n x = self.norm(x)\r\n x = F.relu(x, inplace=True)\r\n return x\r\n\r\n\r\nclass FastSmoothSENorm(nn.Module):\r\n class SEWeights(nn.Module):\r\n def __init__(self, in_channels, reduction=2):\r\n super().__init__()\r\n self.conv1 = nn.Conv3d(in_channels, in_channels // reduction, kernel_size=1, stride=1, padding=0, bias=True)\r\n self.conv2 = nn.Conv3d(in_channels // reduction, in_channels, kernel_size=1, stride=1, padding=0, bias=True)\r\n\r\n def forward(self, x):\r\n b, c, d, h, w = x.size()\r\n out = torch.mean(x.view(b, c, -1), dim=-1).view(b, c, 1, 1, 1) # output_shape: in_channels x (1, 1, 1)\r\n out = F.relu(self.conv1(out))\r\n out = self.conv2(out)\r\n return out\r\n\r\n def __init__(self, in_channels, reduction=2):\r\n super(FastSmoothSENorm, self).__init__()\r\n self.norm = nn.InstanceNorm3d(in_channels, affine=False)\r\n self.gamma = self.SEWeights(in_channels, reduction)\r\n self.beta = self.SEWeights(in_channels, reduction)\r\n\r\n def forward(self, x):\r\n gamma = torch.sigmoid(self.gamma(x))\r\n beta = torch.tanh(self.beta(x))\r\n x = self.norm(x)\r\n return gamma * x + beta\r\n\r\n\r\nclass FastSmoothSeNormConv3d(nn.Module):\r\n def __init__(self, in_channels, out_channels, reduction=2, **kwargs):\r\n super(FastSmoothSeNormConv3d, self).__init__()\r\n self.conv = nn.Conv3d(in_channels, out_channels, bias=True, **kwargs)\r\n self.norm = FastSmoothSENorm(out_channels, reduction)\r\n\r\n def forward(self, x):\r\n x = self.conv(x)\r\n x = F.relu(x, inplace=True)\r\n x = self.norm(x)\r\n return x\r\n\r\n\r\nclass RESseNormConv3d(nn.Module):\r\n def __init__(self, in_channels, out_channels, reduction=2, **kwargs):\r\n super().__init__()\r\n self.conv1 = FastSmoothSeNormConv3d(in_channels, out_channels, reduction, **kwargs)\r\n\r\n if in_channels != out_channels:\r\n self.res_conv = FastSmoothSeNormConv3d(in_channels, out_channels, reduction, kernel_size=1, stride=1, padding=0)\r\n else:\r\n self.res_conv = None\r\n\r\n def forward(self, x):\r\n residual = self.res_conv(x) if self.res_conv else x\r\n x = self.conv1(x)\r\n x += residual\r\n return x\r\n\r\n\r\nclass UpConv(nn.Module):\r\n def __init__(self, in_channels, out_channels, reduction=2, scale=2):\r\n super().__init__()\r\n self.scale = scale\r\n self.conv = FastSmoothSeNormConv3d(in_channels, out_channels, reduction, kernel_size=1, stride=1, padding=0)\r\n\r\n def forward(self, x):\r\n x = self.conv(x)\r\n x = F.interpolate(x, scale_factor=self.scale, mode='trilinear', align_corners=False)\r\n return x\r\n\r\n\r\nclass FN_FP_AM(nn.Module):\r\n def __init__(self,in_channels):\r\n super(FN_FP_AM, self).__init__()\r\n\r\n self.conv1_1 = nn.Conv3d(in_channels,in_channels, kernel_size=3, stride=1, padding=1)\r\n self.conv1_2 = nn.Conv3d(in_channels,in_channels, kernel_size=3, stride=1, padding=1)\r\n\r\n self.conv1x1 = nn.Conv3d(in_channels,1,kernel_size=1)\r\n self.sigmoid_1 = nn.Sigmoid()\r\n\r\n self.avgpool = nn.AdaptiveAvgPool3d(1)\r\n self.maxpool = nn.AdaptiveMaxPool3d(1)\r\n\r\n self.conv1x1_2 = nn.Conv3d(in_channels*2, 1 ,kernel_size=1)\r\n self.sigmoid_2 = nn.Sigmoid()\r\n\r\n def forward(self,x):\r\n res =x\r\n x= self.conv1_2(self.conv1_1(x))\r\n\r\n fn_fp = self.sigmoid_1(self.conv1x1(x))\r\n\r\n avg_pool = self.avgpool(x)\r\n max_pool = self.maxpool(x)\r\n #atten = avg_pool + max_pool\r\n x = avg_pool.expand_as(res)\r\n x = torch.concat([x,res],dim=1)\r\n x = self.sigmoid_2(self.conv1x1_2(x))\r\n out = res * x\r\n return out, fn_fp\r\n\r\nclass DAM(nn.Module):\r\n def __init__(self,in_channels):\r\n super(DAM, self).__init__()\r\n self.fnam = FN_FP_AM(in_channels)\r\n self.fpam = FN_FP_AM(in_channels)\r\n\r\n def forward(self,x):\r\n res = x\r\n\r\n\r\n\r\n fne, fn = self.fnam(x)\r\n\r\n fpe, fp = self.fpam(x)\r\n\r\n ou = res + fne\r\n out = ou - fpe\r\n # print(out.shape, fn.shape, fp.shape)\r\n return out, fn, fp","repo_name":"cho-ming/autoPET_algorithms","sub_path":"distraction/src/layers.py","file_name":"layers.py","file_ext":"py","file_size_in_byte":7134,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"23573612804","text":"import os\nfrom typing import Optional, TYPE_CHECKING\n\nfrom ray.rllib.utils.annotations import PublicAPI\n\nif TYPE_CHECKING:\n from ray.rllib.algorithms.algorithm_config import AlgorithmConfig\n from ray.rllib.evaluation.sampler import SamplerInput\n from ray.rllib.evaluation.rollout_worker import RolloutWorker\n\n\n@PublicAPI\nclass IOContext:\n \"\"\"Class containing attributes to pass to input/output class constructors.\n\n RLlib auto-sets these attributes when constructing input/output classes,\n such as InputReaders and OutputWriters.\n \"\"\"\n\n @PublicAPI\n def __init__(\n self,\n log_dir: Optional[str] = None,\n config: Optional[\"AlgorithmConfig\"] = None,\n worker_index: int = 0,\n worker: Optional[\"RolloutWorker\"] = None,\n ):\n \"\"\"Initializes a IOContext object.\n\n Args:\n log_dir: The logging directory to read from/write to.\n config: The (main) AlgorithmConfig object.\n worker_index: When there are multiple workers created, this\n uniquely identifies the current worker. 0 for the local\n worker, >0 for any of the remote workers.\n worker: The RolloutWorker object reference.\n \"\"\"\n from ray.rllib.algorithms.algorithm_config import AlgorithmConfig\n\n self.log_dir = log_dir or os.getcwd()\n # In case no config is provided, use the default one, but set\n # `actions_in_input_normalized=True` if we don't have a worker.\n # Not having a worker and/or a config should only be the case in some test\n # cases, though.\n self.config = config or AlgorithmConfig().offline_data(\n actions_in_input_normalized=worker is None\n ).training(train_batch_size=1)\n self.worker_index = worker_index\n self.worker = worker\n\n @PublicAPI\n def default_sampler_input(self) -> Optional[\"SamplerInput\"]:\n \"\"\"Returns the RolloutWorker's SamplerInput object, if any.\n\n Returns None if the RolloutWorker has no SamplerInput. Note that local\n workers in case there are also one or more remote workers by default\n do not create a SamplerInput object.\n\n Returns:\n The RolloutWorkers' SamplerInput object or None if none exists.\n \"\"\"\n return self.worker.sampler\n\n @property\n @PublicAPI\n def input_config(self):\n return self.config.get(\"input_config\", {})\n\n @property\n @PublicAPI\n def output_config(self):\n return self.config.get(\"output_config\", {})\n","repo_name":"ray-project/ray","sub_path":"rllib/offline/io_context.py","file_name":"io_context.py","file_ext":"py","file_size_in_byte":2543,"program_lang":"python","lang":"en","doc_type":"code","stars":28715,"dataset":"github-code","pt":"86"}
+{"seq_id":"9665296042","text":"import sys\nimport Requests\nfrom PySide6.QtWidgets import (\n QDialog, QApplication,\n QLabel, QStatusBar\n)\nfrom PySide6.QtGui import QAction, QIcon\nfrom PySide6.QtCore import Qt\nfrom Ui.ui_CreateUser import Ui_CreateUser\nimport settings\nimport json\nimport keyring\n\nclass CreateUser(QDialog):\n def __init__(self):\n super().__init__()\n\n self.ui = Ui_CreateUser()\n self.ui.setupUi(self)\n\n self.setWindowTitle(\"Create User\")\n\n self.ui.cancel_button.clicked.connect(self.cancel)\n self.ui.create_button.clicked.connect(self.create)\n\n def cancel(self):\n self.close()\n\n def create(self):\n url = settings.api_path + settings.moder_user_path\n data = {\n 'email': self.ui.email_field.text(),\n 'username': self.ui.login_field.text(),\n 'password': self.ui.passworld_field.text()\n }\n\n response = Requests.post(url, json=data, needAuth=True)\n if response.status_code == 200:\n self.accept()\n elif response.headers.get('content-type') == 'application/json':\n response_json = response.json()\n if 'status' in response_json and response_json['status'] == 'Error':\n self.ui.error_label.setText(response_json['message'])","repo_name":"SharafeevRavil/GuitarClassification","sub_path":"Desktop/ModeratorApplication/CreateUser.py","file_name":"CreateUser.py","file_ext":"py","file_size_in_byte":1282,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"30377211968","text":"from flask import Flask, render_template\napp=Flask(__name__)\n\n@app.route('/')\ndef hello_world():\n return \"Hello world!\"\n\n@app.route('/about')\ndef about():\n name='lili'\n return render_template('about.html', user=name)\n\n\napp.run()","repo_name":"LilianaIL/Flask","sub_path":"Start.py","file_name":"Start.py","file_ext":"py","file_size_in_byte":237,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"8232887122","text":"import numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nfrom sklearn.cluster import KMeans\n\n# points\np = np.array([[0.1,0.6], [0.15,0.71], [0.08,0.8], [0.16,0.85], [0.2,0.3], [0.25,0.5], [0.24, 0.1], [0.3,0.2]])\n\n# centroids\ncentroids = np.array([[0.1,0.6], [0.3,0.2]])\n\nKMClustering = KMeans(n_clusters = 2, init = centroids, n_init = 1 )\nKMClustering.fit(p)\n\nprint(\"Labels : \", KMClustering.labels_)\n\n# a.)find p6 \nprint(\"P6 in cluster : \", KMClustering.labels_[5])\n\n# b.)population around cluster 2\nprint(\"population of cluster around cluster 2(m2) : \", np.count_nonzero(KMClustering.labels_ == 1))\n\n# c.)updated value of centroids\nprint(\"updated centroids (m1 and m2): \", KMClustering.cluster_centers_)\n\n#plt.plot(p, \"o\")\n#plt.show()\n\n# Plot the data\nplt.scatter(p[:,0],p[:,1])\n# Plot the clusters \nplt.scatter(KMClustering.cluster_centers_[:, 0], KMClustering.cluster_centers_[:, 1], \n s=200, # Set centroid size\n c='red') # Set centroid color\nplt.show()\n","repo_name":"viveksonar/sem8-sppu","sub_path":"ML/KM.py","file_name":"KM.py","file_ext":"py","file_size_in_byte":1052,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"70607494045","text":"\nimport multiprocessing\nimport time\n\ndef func(msg):\n for i in xrange(3):\n print(msg)\n time.sleep(1)\n\ndef test1():\n p = multiprocessing.Process(target=func, args=(\"hello\", ))\n p.start()\n p.join()\n print (\"Sub-process done.\")\n\ndef test2():\n pool = multiprocessing.Pool(processes=4)\n for i in xrange(10):\n msg = \"hello %d\" %(i)\n pool.apply_async(func, (msg, ))\n pool.close()\n pool.join()\n print( \"Sub-process(es) done.\")\n\ndef test3():\n pool = multiprocessing.Pool(processes=4)\n result = []\n for i in xrange(10):\n msg = \"hello %d\" %(i)\n result.append(pool.apply_async(func, (msg, )))\n pool.close()\n pool.join()\n for res in result:\n print (res.get())\n print (\"Sub-process(es) done.\")","repo_name":"luofun/BigData_Portrait","sub_path":"bigdata25.py","file_name":"bigdata25.py","file_ext":"py","file_size_in_byte":760,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"26052141145","text":"from datetime import datetime\nimport matplotlib.pyplot as plt\n\ndef read_daily_prices(filename):\n prices = {}\n\n date_str = filename.split('_')[-1].split('.')[0]\n date = datetime.strptime(date_str, '%Y-%m-%d')\n\n with open(filename, 'r') as file:\n for line in file:\n line = line.strip()\n if not line:\n continue\n\n card_name, price = line.split(':')\n card_name = card_name.strip()\n price = price.strip()\n\n if price not in (\"No prices found\", \"Could not find any prices\"):\n price = float(price[1:])\n prices[card_name] = (date, price)\n\n return prices\n\n\ndef aggregate_historical_prices(daily_files):\n historical_prices = {}\n\n for daily_file in daily_files:\n daily_prices = read_daily_prices(daily_file)\n\n for card_name, (date, price) in daily_prices.items():\n if card_name not in historical_prices:\n historical_prices[card_name] = []\n\n historical_prices[card_name].append((date, price))\n\n return historical_prices\n\n\ndef write_historical_prices(historical_prices, output_file):\n with open(output_file, 'w') as file:\n for card_name, prices in historical_prices.items():\n file.write(f'{card_name}:\\n')\n\n for date, price in prices:\n date_str = date.strftime('%Y-%m-%d')\n file.write(f' {date_str}: ${price:.2f}\\n')\n\n file.write('\\n')\n\n\ndef read_historical_prices(filename):\n historical_prices = {}\n\n with open(filename, 'r') as file:\n card_name = None\n prices = []\n\n for line in file:\n line = line.strip()\n\n if not line:\n if card_name:\n historical_prices[card_name] = prices\n card_name = None\n prices = []\n continue\n\n if not card_name:\n card_name = line[:-1] # Remove the trailing colon\n else:\n date_str, price_str = line.split(':')\n date = datetime.strptime(date_str.strip(), '%Y-%m-%d')\n price = float(price_str.strip()[1:]) # Remove the dollar sign before converting to float\n prices.append((date, price))\n\n return historical_prices\n\n\ndef plot_historical_prices(historical_prices):\n num_cards = len(historical_prices)\n num_columns = 4\n num_rows = (num_cards + num_columns - 1) // num_columns\n\n fig, axes = plt.subplots(num_rows, num_columns, figsize=(20, num_rows * 5))\n fig.tight_layout(pad=5.0)\n\n for i, (card_name, prices) in enumerate(historical_prices.items()):\n row, col = divmod(i, num_columns)\n ax = axes[row, col]\n\n dates, price_values = zip(*prices)\n ax.plot(dates, price_values)\n ax.set_title(card_name)\n ax.set_xlabel('Date')\n ax.set_ylabel('Price (USD)')\n ax.tick_params(axis='x', rotation=45)\n\n # Remove empty subplots if there are any\n if num_cards % num_columns != 0:\n for j in range(num_cards, num_rows * num_columns):\n row, col = divmod(j, num_columns)\n fig.delaxes(axes[row, col])\n\n plt.savefig('charts/all_charts.png', bbox_inches='tight')\n plt.close(fig)","repo_name":"montresoro/MTGPricing","sub_path":"Functions.py","file_name":"Functions.py","file_ext":"py","file_size_in_byte":3285,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"71654035485","text":"\"\"\"\nAuthor: David Akre\nDescription: Helper python script to run benchmarks\n\"\"\"\n\nimport os\nimport time\nimport subprocess\nimport glob\nimport pandas as pd\n\ndef prog(results, bit_files, latency):\n \"\"\"\n Function: prog is a helper function that will program the FPGA iteratively\n and capture timing results and relay them to a csv\n \"\"\"\n # Forward declaraions\n files = []\n jitter = []\n treconfig = []\n iters = 10\n\n \n for f in bit_files:\n files.append(f)\n tmp = []\n for i in range(iters):\n time_start = time.time()\n p = subprocess.Popen(\"xsdb -eval 'connect; fpga -f %s'\" % f, shell=True)\n p.wait()\n time_diff = time.time() - time_start\n tmp.append(time_diff)\n\n total = 0\n for t in tmp:\n total += t - latency\n\n treconfig.append(total/len(tmp))\n jitter.append(max(tmp) - min(tmp))\n\n\n # Save results to csv\n df = pd.DataFrame({\n \"Bitstream File\" : files,\n \"Reconfiguration Time (s)\" : treconfig,\n \"Jitter (s)\" : jitter\n })\n df.to_csv(results)\n\n\ndef main():\n # Forward declarations\n nrt8 = \"nrt_8\"\n rt8 = \"rt_8\"\n rt16 = \"rt_16\"\n time_start = time.time()\n subprocess.call(\"xsdb -eval 'connect; dow -data test 0x1000000'\",shell=True)\n latency = time.time() - time_start\n\n files = []\n for f in os.listdir(nrt8):\n if f.endswith(\".bit\"):\n files.append(os.path.join(nrt8, f)) \n\n\n prog(\"results_%s.csv\" % nrt8, files, latency)\n\n files = []\n for f in os.listdir(rt8):\n if f.endswith(\".bit\"):\n files.append(os.path.join(rt8, f)) \n\n\n prog(\"results_%s.csv\" % rt8, files, latency)\n\n files = []\n for f in os.listdir(rt16):\n if f.endswith(\".bit\"):\n files.append(os.path.join(rt16, f)) \n\n\n prog(\"results_%s.csv\" % rt16, files, latency)\n\n \nif __name__ == \"__main__\":\n main()\n","repo_name":"dakre21/dpr_rt","sub_path":"boot/runbench.py","file_name":"runbench.py","file_ext":"py","file_size_in_byte":1802,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"44621977903","text":"standard_input = \"\"\"2\n5 5\n2 2 1 3 2\n2 4 9\n2 3 4\n1 5 5\n1 4 9\n2 4 3\n10 5\n1 1 1 1 1 1 1 1 1 1\n3 8 13\n2 5 10\n3 8 10\n1 10 2\n1 9 100\"\"\"\n# print(\"Hellow\")\n# ques 1\n# n=int(input())\n# ans=[]\n# for i in range(n):\n# a,b,c=[int(x) for x in input().split()]\n# if (a+b) == c:\n# # print(a,b,a+b,c)\n# ans.append(\"+\")\n# else:\n# ans.append(\"-\")\n# for a in ans:\n# print(a)\n\n# ques 2\n# n=int(input())\n# ans=[]\n# for i in range(n):\n# c=[]\n# b=int(input())\n# c=[int(x) for x in input().split()]\n# fe=sum(list(filter(lambda x: x%2==0, c)))\n# fo=sum(list(filter(lambda x: x%2, c)))\n# if fe>fo:\n# ans.append(\"YES\")\n# else:\n# ans.append(\"NO\")\n\n# for a in ans:\n# print(a)\n\n# ques 3\n# ans = []\n# n = int(input())\n# for i in range(n):\n# sl = int(input())\n# ost = input()\n# st=ost\n# f = True\n# for i in range(len(st)):\n# # print(st[i], i % 2)\n# # if i>1:\n# if i>1 and st[i] == st[i-1]:\n# # i+=1\n# # ans.append(\"NO\")\n# # print(\"in the false\")\n# f = False\n# break\n# else:\n# st = st.replace(st[i], str(i % 2))\n# # print(st, f)\n# if sl==2 and ost[0]==ost[1]:\n# ans.append(\"NO\")\n# elif f == True:\n# ans.append(\"YES\")\n# else:\n# ans.append(\"NO\")\n# for a in ans:\n# print(a)\n # print(\"//////////////////////////////////////////////\")\n\n\n# ques 4\nn=int(input())\nans=[]\nfor i in range(n):\n ans.append([0])\nfor i in range(n):\n p,q=[int(x) for x in input().split()]\n oa=[int(x) for x in input().split()]\n for j in range(q):\n l,r,k=[int(x) for x in input().split()]\n if sum(oa[:l-1]+[k]*(r-l+1)+oa[r:])%2==0:\n ans[i].append(\"NO\")\n else:\n ans[i].append(\"YES\")\n\nfor a in ans:\n for i in a[1:]:\n print(i)","repo_name":"realanupreet/glaringharmfulbinary","sub_path":"plusminux.py","file_name":"plusminux.py","file_ext":"py","file_size_in_byte":1884,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"43166192826","text":"# Harris Corner Detection\n\nimport sys\nimport argparse\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom scipy.ndimage import convolve1d\n\nrgbToYiqY = np.array([0.299, 0.587, 0.114])\n\n################################################################################\n# perform RGB to grayscale conversion\n################################################################################\ndef rgb2gray(img_color) :\n # input:\n # img_color - a h x w x 3 numpy ndarray (dtype = np.unit8) holding\n # the color image\n # return:\n # img_gray - a h x w numpy ndarray (dtype = np.float64) holding\n # the grayscale image\n img_gray = img_color @ rgbToYiqY\n return img_gray\n\n################################################################################\n# perform 1D smoothing using a 1D horizontal Gaussian filter\n################################################################################\ndef smooth1D(img, sigma) :\n # input :\n # img - a h x w numpy ndarray holding the image to be smoothed\n # sigma - sigma value of the 1D Gaussian function\n # return:\n # img_smoothed - a h x w numpy ndarry holding the 1D smoothing result\n\n size = 2147483647\n for i in range(2147483647):\n if np.exp((i ** 2) / -2 / (sigma ** 2)) < 1 / 1000:\n size = i-1\n break\n x = np.arange(-size, size+1)\n filterSmooth = np.exp((x ** 2) / -2 / (sigma ** 2))\n img_filtered = convolve1d(img, filterSmooth, mode='constant')\n img_weighted = convolve1d(np.ones(img.shape), filterSmooth, mode='constant')\n img_smoothed = img_filtered / img_weighted\n return img_smoothed\n\n################################################################################\n# perform 2D smoothing using 1D convolutions\n################################################################################\ndef smooth2D(img, sigma) :\n # input:\n # img - a h x w numpy ndarray holding the image to be smoothed\n # sigma - sigma value of the Gaussian function\n # return:\n # img_smoothed - a h x w numpy array holding the 2D smoothing result\n img = smooth1D(img, sigma)\n img = smooth1D(img.T, sigma)\n img_smoothed = img.T\n return img_smoothed\n\n################################################################################\n# perform Harris corner detection\n################################################################################\ndef harris(img, sigma, threshold) :\n # input:\n # img - a h x w numpy ndarry holding the input image\n # sigma - sigma value of the Gaussian function used in smoothing\n # threshold - threshold value used for identifying corners\n # return:\n # corners - a list of tuples (x, y, r) specifying the coordinates\n # (up to sub-pixel accuracy) and cornerness value of each corner\n\n ix, iy = np.gradient(img)\n ix2 = ix * ix\n iy2 = iy * iy\n ixIy = ix * iy\n ix2 = smooth2D(ix2, sigma)\n iy2 = smooth2D(iy2, sigma)\n ixIy = smooth2D(ixIy, sigma)\n detA = ix2 * iy2 - ixIy * ixIy\n traceA = ix2 + iy2\n r = detA - 0.04 * (traceA ** 2)\n cornerCandidates = []\n corners = []\n for i in range(1, r.shape[0] - 1):\n for j in range(1, r.shape[1] - 1):\n if r[i][j] >= max(r[i-1][j-1], r[i][j-1], r[i+1][j-1], r[i-1][j+1], r[i][j+1], r[i+1][j+1], r[i-1][j], r[i+1][j]):\n cornerCandidates.append((i, j, r[i][j]))\n for i in cornerCandidates:\n a = (r[i[0]][i[1]-1] + r[i[0]][i[1]+1] - 2 * r[i[0]][i[1]]) / 2\n b = (r[i[0]-1][i[1]] + r[i[0]+1][i[1]] - 2 * r[i[0]][i[1]]) / 2\n c = (r[i[0]][i[1]+1] - r[i[0]][i[1]-1]) / 2\n d = (r[i[0]+1][i[1]] - r[i[0]-1][i[1]]) / 2\n e = r[i[0]][i[1]]\n x = -c / 2 / a\n y = -d / 2 / b\n f = a * (x ** 2) + b * (y ** 2) + c * x + d * y + e\n if i[2] >= threshold:\n corners.append((i[1] + x, i[0] + y, f))\n return sorted(corners, key = lambda corner : corner[2], reverse = True)\n\n################################################################################\n# save corners to a file\n################################################################################\ndef save(outputfile, corners) :\n try :\n file = open(outputfile, 'w')\n file.write('%d\\n' % len(corners))\n for corner in corners :\n file.write('%.4f %.4f %.4f\\n' % corner)\n file.close()\n except :\n print('Error occurs in writting output to \\'%s\\'' % outputfile)\n sys.exit(1)\n\n################################################################################\n# load corners from a file\n################################################################################\ndef load(inputfile) :\n try :\n file = open(inputfile, 'r')\n line = file.readline()\n nc = int(line.strip())\n print('loading %d corners' % nc)\n corners = list()\n for i in range(nc) :\n line = file.readline()\n (x, y, r) = line.split()\n corners.append((float(x), float(y), float(r)))\n file.close()\n return corners\n except :\n print('Error occurs in writting output to \\'%s\\'' % outputfile)\n sys.exit(1)\n\n################################################################################\n## main\n################################################################################\ndef main() :\n parser = argparse.ArgumentParser(description = 'Harris Corner Detection')\n parser.add_argument('-i', '--inputfile', type = str, default = 'table.jpg', help = 'filename of input image')\n parser.add_argument('-s', '--sigma', type = float, default = 1.0, help = 'sigma value for Gaussain filter')\n parser.add_argument('-t', '--threshold', type = float, default = 1e5, help = 'threshold value for corner detection')\n parser.add_argument('-o', '--outputfile', type = str, help = 'filename for outputting corner detection result')\n args = parser.parse_args()\n\n print('------------------------------')\n print('input file : %s' % args.inputfile)\n print('sigma : %.2f' % args.sigma)\n print('threshold : %.2e' % args.threshold)\n print('output file: %s' % args.outputfile)\n print('------------------------------')\n\n # load the image\n try :\n #img_color = imageio.imread(args.inputfile)\n img_color = plt.imread(args.inputfile)\n print('%s loaded...' % args.inputfile)\n except :\n print('Cannot open \\'%s\\'.' % args.inputfile)\n sys.exit(1)\n # uncomment the following 2 lines to show the color image\n # plt.imshow(np.uint8(img_color))\n # plt.show()\n\n print('perform RGB to grayscale conversion...')\n img_gray = rgb2gray(img_color)\n # uncomment the following 2 lines to show the grayscale image\n # plt.imshow(np.float32(img_gray), cmap = 'gray')\n # plt.show()\n\n print('perform Harris corner detection...')\n corners = harris(img_gray, args.sigma, args.threshold)\n\n print('%d corners detected...' % len(corners))\n x = [corner[0] for corner in corners]\n y = [corner[1] for corner in corners]\n fig = plt.figure()\n plt.imshow(np.float32(img_gray), cmap = 'gray')\n plt.plot(x, y,'r+',markersize = 5)\n plt.show()\n\n if args.outputfile :\n save(args.outputfile, corners)\n print('corners saved to \\'%s\\'...' % args.outputfile)\n\nif __name__ == '__main__':\n main()\n","repo_name":"martinkingtw/ComputerVision-HarrisCornerDetection","sub_path":"harrisCornerDetection.py","file_name":"harrisCornerDetection.py","file_ext":"py","file_size_in_byte":7408,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"2265197501","text":"import random\n\n#Swappeo posicion a posicion asegurandome que en cada iteracion \n#ordeno un elemento, la lista se ordena desde el final hasta el \n#principio\ndef bubble(array): \n #Este end es la ultima posicion que quedara bloqueada porque \n # se habra organizado, lo empiezo en 1 porque hago la comparacion\n # con j+1, por lo que se saldria del rango \n end = 1\n #Uso esta variable para que no itere de mas si la lista ya esta ordenada\n swapped = True\n i = 0\n while i < len(array) and swapped:\n swapped = False\n for j in range(len(array) - end):\n if array[j] > array[j+1]:\n temp = array[j]\n array[j] = array[j+1]\n array[j+1] = temp\n swapped = True\n end += 1\n i += 1\n return array\n\nif __name__ == \"__main__\":\n l = [random.randint(0, 100) for i in range(20)]\n print(bubble(l))","repo_name":"davidcediel12/Cliente-Servidor","sub_path":"hilos/sort/bubbleSort.py","file_name":"bubbleSort.py","file_ext":"py","file_size_in_byte":907,"program_lang":"python","lang":"es","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"15488107754","text":"\"\"\"\nDesign a class to find the kth largest element in a stream.\nNote that it is the kth largest element in the sorted order, not the kth distinct element.\n\nImplement KthLargest class:\n\nKthLargest(int k, int[] nums) Initializes the object with the integer k and the stream of integers nums.\nint add(int val) Returns the element representing the kth largest element in the stream.\n\n\nExample 1:\n\nInput\n[\"KthLargest\", \"add\", \"add\", \"add\", \"add\", \"add\"]\n[[3, [4, 5, 8, 2]], [3], [5], [10], [9], [4]]\nOutput\n[null, 4, 5, 5, 8, 8]\n\nExplanation\nKthLargest kthLargest = new KthLargest(3, [4, 5, 8, 2]);\nkthLargest.add(3); // return 4\nkthLargest.add(5); // return 5\nkthLargest.add(10); // return 5\nkthLargest.add(9); // return 8\nkthLargest.add(4); // return 8\n\n\nConstraints:\n\n1 <= k <= 10^4\n0 <= nums.length <= 10^4\n-10^4 <= nums[i] <= 10^4\n-10^4 <= val <= 10^4\nAt most 10^4 calls will be made to add.\nIt is guaranteed that there will be at least k elements in the array when you search for the kth element.\n\"\"\"\nfrom typing import List\n\n\nclass TreeNode:\n def __init__(self, val=0, left=None, right=None, cnt=1):\n self.val = val\n self.left = left\n self.right = right\n self.cnt = cnt\n\n def __str__(self):\n d = {\n 'val': self.val,\n 'cnt': self.cnt\n }\n return str(d)\n\n\nclass KthLargest:\n\n def __init__(self, k: int, nums: List[int]):\n self.k = k\n self.root = None\n for num in nums:\n self.root = self.insert(self.root, num)\n\n def add(self, val: int) -> int:\n self.root = self.insert(self.root, val)\n\n def helper(node, k):\n right_cnt = 0\n if node.right is not None:\n right_cnt = node.right.cnt\n\n kth = right_cnt + 1\n\n if kth == k:\n return node.val\n elif kth > k:\n return helper(node.right, k)\n else:\n return helper(node.left, k - kth)\n\n return helper(self.root, self.k)\n\n def insert(self, root: TreeNode, val: int) -> TreeNode:\n if root is None:\n return TreeNode(val)\n if val < root.val:\n left_bst = self.insert(root.left, val)\n root.left = left_bst\n else:\n right_bst = self.insert(root.right, val)\n root.right = right_bst\n\n root.cnt += 1\n return root\n\n\nclass KthLargestIter:\n\n def __init__(self, k: int, nums: List[int]):\n self.k = k\n self.root = None\n for num in nums:\n self.root = self.insert(self.root, num)\n\n def add(self, val: int) -> int:\n self.root = self.insert(self.root, val)\n\n cur = self.root\n cur_k = self.k\n kth = 1 + (cur.right.cnt if cur.right else 0)\n\n while True:\n if kth > cur_k:\n cur = cur.right\n kth = 1 + (cur.right.cnt if cur.right else 0)\n elif kth < cur_k:\n cur_k = cur_k - kth\n cur = cur.left\n kth = 1 + (cur.right.cnt if cur.right else 0)\n else:\n return cur.val\n\n def insert(self, root: TreeNode, val: int) -> TreeNode:\n if root is None:\n return TreeNode(val)\n\n cur = root\n while True:\n if val < cur.val:\n cur.cnt += 1\n if cur.left:\n cur = cur.left\n else:\n cur.left = TreeNode(val)\n return root\n else:\n cur.cnt += 1\n if cur.right:\n cur = cur.right\n else:\n cur.right = TreeNode(val)\n return root\n\n\n# Your KthLargest object will be instantiated and called as such:\n# obj = KthLargest(k, nums)\n# param_1 = obj.add(val)\n\nif __name__ == '__main__':\n # solution = KthLargestIter(3, [4, 5, 8, 2])\n # for i in [3, 5, 10, 9, 4]:\n # print(solution.add(i))\n\n solution = KthLargestIter(1, [])\n for i in [-3, -2, -4, 0, 4]:\n print(solution.add(i))\n","repo_name":"mingmingli916/algorithms","sub_path":"binary_search_tree/Kth Largest Element in a Stream.py","file_name":"Kth Largest Element in a Stream.py","file_ext":"py","file_size_in_byte":4093,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"37805568964","text":"import sys\nimport shutil\nimport os\n\nPROJ_PATH = os.path.abspath(os.path.dirname(os.getcwd()))\nFILE_PATH = PROJ_PATH + '/data/imgLevel1Label_20180504_01/'\n\nFILE_TYPE = '.txt'\n\ndef copy_file(src_idx, goal_start, goal_end):\n\told_file = FILE_PATH + str(src_idx) + FILE_TYPE\n\tfor i in range(goal_start, goal_end+1):\n\t\tnew_file = FILE_PATH + str(i) + FILE_TYPE\n\t\tshutil.copy(old_file, new_file)\n\n\nif __name__ == '__main__':\n\tsrc_idx = int(sys.argv[1])\n\tgoal_start = int(sys.argv[2])\n\tgoal_end = int(sys.argv[3])\n\tcopy_file(src_idx, goal_start, goal_end)\n","repo_name":"LogicRL/annotation_tool","sub_path":"src/copyLabel.py","file_name":"copyLabel.py","file_ext":"py","file_size_in_byte":548,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"22951840876","text":"#!/usr/bin/python3 -u\n\n# This script will automatically delete your history message in all joined groups.\n# It will check the latest messages (until `n` seconds ago) of each joined group, and delete the message if:\n# 1. It was sent from you\n# 2. The group is not whitelisted in (WHITELIST_CHATS)\n# 3. The group was sent at least `t` seconds ago\n#\n# `n` is MSG_DOWNLOAD_LIMIT, `t` is MSG_ALIVE_TIME\n# It's recommended to auto-run this script daily.\n\n##################### Configuration Begin ######################\nTELEGRAM_API_ID = '11111111' # Get api_id and api_hash at my.telegram.org\nTELEGRAM_API_HASH = '67e72cc9e2b603e08d05446ad5ef8e6'\nTELEGRAM_PHONE = '+12223334444' # Phone number in International Format. Example: '+8617719890604'\nWHITELIST_CHATS = ['-692222222', '-100195111111111']\n\nMSG_DOWNLOAD_TIME_LIMIT = 3*24*60*60 # 3 days ago. Set to '0' for dry-run, set to a huge number for first-run.\nMSG_ALIVE_TIME = 24*60*60 # 1 day\n##################### Configuration End ########################\n\nfrom telegram.client import Telegram\nimport time\n\ntg = Telegram(\n api_id=TELEGRAM_API_ID, \n api_hash=TELEGRAM_API_HASH,\n phone=TELEGRAM_PHONE,\n database_encryption_key='any_password',\n files_directory='tdlib_files/',\n)\n\ndef result_of(async_result):\n async_result.wait()\n return async_result.update\n\ndef delete_all_msg_from_me(telegram, group_id, pull_time_limit, my_userid):\n receive = True\n from_message_id = 0\n stats_data = {}\n processed_msg_count = 0\n current_timestamp = time.time()\n\n while receive:\n response = telegram.get_chat_history(\n chat_id=group_id,\n limit=1000,\n from_message_id=from_message_id,\n )\n response.wait()\n\n msg_to_delete = []\n for message in response.update['messages']:\n if message['date'] < current_timestamp - pull_time_limit:\n receive = False\n break\n if message['sender_id']['@type'] != 'messageSenderUser':\n # Not sent from user. Ignore it.\n from_message_id = message['id']\n continue\n if message['sender_id']['user_id'] == my_userid and message['date'] < current_timestamp - MSG_ALIVE_TIME:\n msg_to_delete.append(message['id'])\n else:\n from_message_id = message['id']\n\n if msg_to_delete != []:\n print(\"DEBUG: delete msg count=\", len(msg_to_delete))\n tg.delete_messages(group_id, msg_to_delete)\n\n if not response.update['total_count']:\n receive = False\n\n processed_msg_count += len(response.update['messages'])\n print(f'[{processed_msg_count}] processed')\n\n\nif __name__ == '__main__':\n tg.login()\n\n my_id = result_of(tg.get_me())['id']\n\n for chatid in result_of(tg.get_chats())['chat_ids']:\n if chatid >= 0:\n print(f\"Ignore chat_id {chatid}, not a group\")\n continue\n if chatid in WHITELIST_CHATS or str(chatid) in WHITELIST_CHATS:\n print(f\"Ignore chat_id {chatid}, whitelisted\")\n continue\n group_title = result_of(tg.get_chat(chatid))['title']\n print(\"Will cleaning up chat_id \", chatid, group_title)\n delete_all_msg_from_me(tg, str(chatid), MSG_DOWNLOAD_TIME_LIMIT, my_id)\n\n tg.stop()\n\n","repo_name":"recolic/telegram-history-cleanup","sub_path":"tg-history-cleanup.py","file_name":"tg-history-cleanup.py","file_ext":"py","file_size_in_byte":3337,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"26526896607","text":"import unittest\nimport arraymin\n\n\nclass TestTheArray(unittest.TestCase):\n def test_my_array(self):\n getVals = [5, 1, 6, 8, ]\n arraymin.get_items_list(getVals)\n self.assertNotEqual(0, len(getVals))\n\n\nif __name__ == '__main__':\n unittest.main()\n","repo_name":"jisshub/python-development","sub_path":"pythonAdvanced/test_array.py","file_name":"test_array.py","file_ext":"py","file_size_in_byte":270,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34506248994","text":"class Car(object):\n def __init__(self, name=\"Corona\", model=\"T2016\", type=\"Toyota\"):\n self.type = type\n self.model = model\n self.name = name\n self.speed = 0\n \n if self.type == \"Toyota\" or self.type == \"mark11\":\n self.num_of_doors = 2\n else:\n self.num_of_doors = 4\n if self.type == \"Lorry\":\n self.num_of_wheels = 8\n else:\n self.num_of_wheels = 4\n \n def is_saloon(self):\n if self.type == \"lorry\":\n return False\n else:\n return True\n \n def drive(self, speed):\n self.speed += speed\n return self.speed\n \n#mycar = Car(\"Corona\", \"T2016\", \"Toyota\")\n#print (mycar.drive(400))\n","repo_name":"atuhe/SLC-labs-day2","sub_path":"oop_car.py","file_name":"oop_car.py","file_ext":"py","file_size_in_byte":753,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"72189462365","text":"# Avaliação 02 individual\n# Autor: Gabriel Merigo\n\nrespostas_aceitas = ['1', '2', '3', '4']\nlogin = []\nsenha = []\nfuncionarios = ['Pedro' , 'Ana', 'Carlos', 'Maria Clara', 'João Antonio']\nsalarios = [3470.00, 2200.00, 3970.34, 7450.23, 5677.33]\n\n'''MÉTODOS'''\ndef verificarUsuario(usuarioDigitado):\n if not usuarioDigitado in login: raise ValueError('O usuário que você digitou não existe na lista de usuarios') \n\ndef verificarSenha(senhaDigitada):\n if not senhaDigitada in senha: raise ValueError('A senha que você digitou está incorreta')\n\ndef formatarMensagemErro(string):\n string = string.replace('(', '')\n string = string.replace(')', '')\n string = string.replace(\"'\", '')\n string = string.replace(',', '')\n return string\n\ndef retornarMensagemErro(ex):\n print(formatarMensagemErro(ex.args.__str__()))\n\n\ndef calcularMedia():\n return round(sum(salarios) / salarios.__len__(), 2)\n\n\n'''ROTINAS DO USUÁRIO'''\ndef cadastroLoginSenha():\n usuario = input('Por favor, digite um nome de usuário para ser cadastrado: ')\n\n try:\n if usuario in login: raise ValueError(f'O usuário {usuario} já existe na lista de login, por favor digite outro nome')\n if not usuario in funcionarios: raise ValueError(f'O usuário {usuario} não existe na lista de funcionarios, por favor crie clicando [4]')\n\n login.append(usuario)\n senhaDigitada = input('Por favor, digite um senha para seu usuário: ')\n senha.append(senhaDigitada) \n print('Usuário cadastrado com sucesso!')\n except ValueError as ex:\n retornarMensagemErro(ex)\n\ndef aumentarSalario():\n try:\n usuarioDigitado = input('Digite o nome de seu usuário: ')\n senhaDigitada = input(f'{usuarioDigitado}, digite a sua senha: ')\n verificarUsuario(usuarioDigitado)\n verificarSenha(senhaDigitada)\n media = calcularMedia()\n\n for i in range(salarios.__len__()):\n if salarios[i] < media:\n salarios[i] = round(salarios[i] + (salarios[i] * 0.10), 2)\n\n print('O aumento de 10% nos salários dos funcionarios abaixo da media foi realizado com sucesso!')\n except ValueError as ex:\n retornarMensagemErro(ex)\n\ndef gerarRelatorio():\n try:\n usuarioDigitado = input('Digite o nome de seu usuário: ')\n senhaDigitada = input(f'{usuarioDigitado}, digite a sua senha: ')\n verificarUsuario(usuarioDigitado)\n verificarSenha(senhaDigitada)\n for i in range(funcionarios.__len__()):\n print(f'{funcionarios[i]} - {salarios[i]}')\n except ValueError as ex:\n retornarMensagemErro(ex)\n\ndef criacaoNovoFuncionario():\n nomeFuncionario = input('Digite o nome do novo funcionario: ')\n try: \n salarioFuncionario = float(input('Digite o salário do novo funcionario: '))\n funcionarios.append(nomeFuncionario)\n salarios.append(salarioFuncionario)\n print('Funcionário cadastrado com sucesso!')\n except:\n print('Ops... algo aconteceu de errado! Verifique se você realmente está digitando número.')\n\nwhile True:\n message = '''\\n MENU - Você pode escrever \"sair\" para sair do menu \\n 1 - Cadastrar Login e Senha \\n 2 - Aumento de 10% \\n 3 - Relatório \\n 4 - Cadastrar Funcionário \\n Escolha: '''\n escolha = input(message)\n\n\n if str(escolha).lower() == 'sair': break\n \n try: \n if not escolha in respostas_aceitas: raise ValueError('Você só pode digitar 1, 2, 3 e 4')\n except ValueError as ex:\n retornarMensagemErro(ex)\n continue\n \n if escolha == '1':\n cadastroLoginSenha()\n elif escolha == '2':\n aumentarSalario()\n elif escolha == '3':\n gerarRelatorio()\n elif escolha == '4':\n criacaoNovoFuncionario()\n\nprint('Você saiu do loop')","repo_name":"GabrielMerigo/python-exercises","sub_path":"gabrielMerigo-tarefa-02.py","file_name":"gabrielMerigo-tarefa-02.py","file_ext":"py","file_size_in_byte":3796,"program_lang":"python","lang":"pt","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"74761097243","text":"N = int(input())\r\narr = list(tuple(map(int, input().split())) for _ in range(N))\r\narr.sort()\r\nstart = arr[0][0]\r\nend = arr[0][1]\r\nans = 0\r\nfor i in range(1,N):\r\n if arr[i][0] <= end:\r\n end = max(end, arr[i][1])\r\n else:\r\n ans += (end-start)\r\n start, end = arr[i][0], arr[i][1]\r\nans += (end-start)\r\nprint(ans)","repo_name":"junwson9/algorithm","sub_path":"백준/Gold/2170. 선 긋기/선 긋기.py","file_name":"선 긋기.py","file_ext":"py","file_size_in_byte":334,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"9310229493","text":"def farm_tasks():\n build_farm()\n control_farm()\n # Create patrols\n\ndef build_farm():\n global farms\n for cell in state['board'].cells.values():\n if dist(cell.position,state['closestShipyard'][cell.position.x][cell.position.y]) == 1:\n if cell.position in farms:\n continue\n farms.append(cell.position)\n\ndef control_farm():\n global farms\n for i,farm in enumerate(farms[:]):\n if dist(farm,state['closestShipyard'][farm.x][farm.y]) > 1:\n # Not worth it\n farms.remove(farm)\n","repo_name":"lunw1024/halite20","sub_path":"mineBot/farm.py","file_name":"farm.py","file_ext":"py","file_size_in_byte":561,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"129278323","text":"import math\nN = int(input())\n\nqmax = 10**6\n'''\ndef prime(N):\n primes = []\n for i in range(2, N + 1):\n primes.append(i)\n for p in range(2, i):\n if i % p == 0:\n primes.remove(i)\n break\n return primes\n'''\n\ndef sieve_of_eratosthenes(n):\n prime = [True for i in range(n+1)]\n prime[0] = False\n prime[1] = False\n\n sqrt_n = math.ceil(math.sqrt(n))\n for i in range(2, sqrt_n):\n if prime[i]:\n for j in range(2*i, n+1, i):\n prime[j] = False\n return prime\n\npr = []\n\n#prime = sieve_of_eratosthenes(10**6)\n#for p in range(10**6+1):\nprime = sieve_of_eratosthenes(N)\nfor p in range(N+1):\n if prime[p]:\n pr.append(p)\n\n #print(p, end=' ')\n#print(pr)\n#print(len(pr))\n#print(sum(prime(10**6)))\n#print(pr)\nanss = set()\n\n\n#print(pr[0])\n\n# this is O(n^2) which leads to TLE\nfor p in range(len(pr)):\n for q in range(p+1, len(pr)): # binary search will make it faster\n v = pr[q]**3\n if pr[p]*v > N:\n break\n if pr[p]*v not in anss:\n anss.add(pr[p]*v)\n\n#print(anss)\nprint(len(anss)) \n\n\n# pls refer to ans.py\n\n\n","repo_name":"tinaba96/coding","sub_path":"acode/abc250/d/try.py","file_name":"try.py","file_ext":"py","file_size_in_byte":1132,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12679726238","text":"# -*- coding: utf-8 -*-\n__author__ = \"lundberg\"\n\nimport urllib.parse\nfrom contextlib import contextmanager\nfrom dataclasses import dataclass, field\nfrom datetime import datetime, timedelta, timezone\nfrom typing import Any, Dict, Iterator, List, Optional, Set\n\nfrom flask import abort, request\nfrom flask_limiter.util import get_remote_address\nfrom pymisp import PyMISPError\nfrom validators import domain, email, ipv4, ipv6, md5, sha1, sha256, sha512, url, validator\n\nfrom ioc_lookup.ioc_lookup_app import current_ioc_lookup_app\nfrom ioc_lookup.misp_api import Attr, AttrType, MISPApi\n\n\nclass ParseException(Exception):\n pass\n\n\n@dataclass\nclass User:\n identifier: str\n is_trusted_user: bool\n in_trusted_org: bool\n org_domain: str\n\n\n@dataclass\nclass Votes:\n positives: int = 0\n positive_orgs: Set[str] = field(default_factory=set)\n negatives: int = 0\n negative_orgs: Set[str] = field(default_factory=set)\n\n\n@dataclass\nclass SightingsData:\n can_add_sighting: bool\n can_add_false_positive: bool\n votes: Dict[str, Votes] = field(default_factory=dict)\n\n @classmethod\n def from_sightings(cls, data: List[Dict[str, Any]], votes: Dict[str, Votes]):\n can_add_sighting = True\n can_add_false_positive = True\n now = datetime.utcnow()\n for item in data:\n # Check if a sighting has been reported in the latest 24 hours by this org\n if can_add_sighting and item.get(\"type\", None) == \"0\":\n date_sighting = datetime.utcfromtimestamp(int(item[\"date_sighting\"]))\n min_vote_hours = current_ioc_lookup_app.config[\"SIGHTING_MIN_POSITIVE_VOTE_HOURS\"]\n if date_sighting > (now - timedelta(hours=min_vote_hours)):\n can_add_sighting = False\n # Check if there has been a false-positive report by this org\n elif can_add_false_positive and item.get(\"type\", None) == \"1\":\n can_add_false_positive = False\n return cls(can_add_sighting=can_add_sighting, can_add_false_positive=can_add_false_positive, votes=votes)\n\n\n@validator\ndef defanged_url(value, public=False) -> bool:\n \"\"\"\n hxxps://defanged.url/path -> https://defanged.url/path\n \"\"\"\n if value.startswith(\"hxxp://\") or value.startswith(\"hxxps://\"):\n value = value.replace(\"hxx\", \"htt\", 1) # Replace only the first occurrence of hxx with htt\n return url(value=value, public=public)\n return False\n\n\ndef get_canonical_url(uri: str) -> str:\n url_components = urllib.parse.urlsplit(uri)\n # Always end url with /\n path = url_components.path\n if not path.endswith(\"/\"):\n path = f\"{url_components.path}/\"\n return urllib.parse.urlunsplit([url_components.scheme, url_components.netloc, path, None, None])\n\n\ndef parse_items(items: Optional[str]) -> List[Attr]:\n parsed_items: List[Attr] = []\n if not items:\n return parsed_items\n for item in items.split(\"\\n\"):\n if item:\n item = \"\".join(item.split()) # Normalize whitespace\n item = urllib.parse.unquote_plus(item)\n if domain(item):\n typ = AttrType.DOMAIN\n search_types = [AttrType.DOMAIN, AttrType.HOSTNAME, AttrType.DOMAIN_IP]\n report_types = [AttrType.DOMAIN]\n elif url(item):\n typ = AttrType.URL\n search_types = [AttrType.URL]\n report_types = [AttrType.URL]\n # Remove arguments from URLs\n item = get_canonical_url(item)\n elif defanged_url(item):\n typ = AttrType.URL\n search_types = [AttrType.URL]\n report_types = [AttrType.URL]\n # MISP wants a correct URL, so replace hxx with htt\n item = item.replace(\"hxx\", \"htt\", 1)\n elif ipv4(item) or ipv6(item):\n typ = AttrType.IP_SRC\n search_types = [\n AttrType.DOMAIN_IP,\n AttrType.IP_SRC,\n AttrType.IP_SRC_PORT,\n AttrType.IP_DST,\n AttrType.IP_DST_PORT,\n ]\n report_types = [AttrType.IP_SRC]\n elif md5(item):\n typ = AttrType.MD5\n search_types = [AttrType.MD5, AttrType.FILENAME_MD5, AttrType.MALWARE_SAMPLE]\n report_types = [AttrType.MD5]\n elif sha1(item):\n typ = AttrType.SHA1\n search_types = [AttrType.SHA1, AttrType.FILENAME_SHA1, AttrType.MALWARE_SAMPLE]\n report_types = [AttrType.SHA1]\n elif sha256(item):\n typ = AttrType.SHA256\n search_types = [AttrType.SHA256, AttrType.FILENAME_SHA256, AttrType.MALWARE_SAMPLE]\n report_types = [AttrType.SHA256]\n elif sha512(item):\n typ = AttrType.SHA512\n search_types = [AttrType.SHA512, AttrType.FILENAME_SHA512, AttrType.MALWARE_SAMPLE]\n report_types = [AttrType.SHA512]\n elif email(item):\n typ = AttrType.EMAIL\n search_types = [\n AttrType.EMAIL,\n AttrType.EMAIL_SRC,\n AttrType.EMAIL_DST,\n AttrType.TARGET_EMAIL,\n AttrType.EPPN,\n ]\n report_types = [AttrType.EMAIL]\n else:\n raise ParseException(f\"Could not parse {item}\")\n parsed_items.append(Attr(value=item, type=typ, search_types=search_types, report_types=report_types))\n return parsed_items\n\n\ndef parse_item(item: Optional[str]) -> Optional[Attr]:\n try:\n items = parse_items(item)\n except ParseException:\n return None\n if not items:\n return None\n return items[0]\n\n\ndef get_ipaddr_or_eppn() -> str:\n \"\"\"\n Uses eppn if supplied else remote address for rate limiting\n \"\"\"\n current_ioc_lookup_app.logger.debug(\"REQUEST ENVIRONMENT:\")\n current_ioc_lookup_app.logger.debug(request.environ)\n identifier = request.environ.get(\"HTTP_REMOTE_USER\", None)\n current_ioc_lookup_app.logger.debug(f\"Identifier from request environment: {identifier}\")\n if not identifier:\n current_ioc_lookup_app.logger.warning(\"HTTP_REMOTE_USER is missing from request environment\")\n identifier = get_remote_address()\n current_ioc_lookup_app.logger.debug(f\"Identifier from get_ipaddr: {identifier}\")\n return identifier\n\n\ndef get_user() -> User:\n identifier = get_ipaddr_or_eppn()\n return User(\n identifier=identifier,\n is_trusted_user=is_trusted_user(identifier),\n in_trusted_org=in_trusted_orgs(identifier),\n org_domain=get_org_domain(identifier),\n )\n\n\ndef is_trusted_user(userid: str) -> bool:\n \"\"\"\n Checks the eppn against a whitelist\n \"\"\"\n if userid in current_ioc_lookup_app.trusted_users:\n current_ioc_lookup_app.logger.debug(f\"User with id {userid} is a trusted user\")\n return True\n current_ioc_lookup_app.logger.debug(f\"User with id {userid} IS NOT a trusted user\")\n return False\n\n\ndef get_org_domain(userid: str) -> str:\n return userid.split(\"@\")[-1].lower()\n\n\ndef in_trusted_orgs(userid: str) -> bool:\n org_domain = get_org_domain(userid)\n return org_domain in current_ioc_lookup_app.trusted_orgs.get(\"org_domains\", [])\n\n\ndef get_sightings_data(user: User, search_result: List[Dict[str, Any]]) -> SightingsData:\n attribute_votes = {}\n org_sightings = []\n with misp_api_for() as api:\n for item in search_result:\n votes = Votes()\n for sighting in api.sighting_lookup(attribute_id=item[\"id\"]):\n org_name = sighting[\"source\"].replace(current_ioc_lookup_app.config[\"SIGHTING_SOURCE_PREFIX\"], \"\")\n if sighting[\"type\"] == \"0\":\n votes.positives += 1\n votes.positive_orgs.add(org_name)\n elif sighting[\"type\"] == \"1\":\n votes.negatives += 1\n votes.negative_orgs.add(org_name)\n attribute_votes[item[\"id\"]] = votes\n with misp_api_for(user) as org_api:\n org_sightings.extend(\n org_api.sighting_lookup(\n attribute_id=item[\"id\"],\n source=f'{current_ioc_lookup_app.config[\"SIGHTING_SOURCE_PREFIX\"]}{user.org_domain}',\n )\n )\n return SightingsData.from_sightings(data=org_sightings, votes=attribute_votes)\n\n\n@contextmanager\ndef misp_api_for(user: Optional[User] = None) -> Iterator[MISPApi]:\n if current_ioc_lookup_app.misp_apis is None:\n raise PyMISPError(\"No MISP session exists\")\n if user is None:\n # Use default api key as org specific api keys return org specific data\n user = User(identifier=\"default\", is_trusted_user=False, in_trusted_org=False, org_domain=\"default\")\n current_ioc_lookup_app.logger.debug(\"Default user used for api call\")\n current_ioc_lookup_app.logger.debug(f\"User {user.identifier} mapped to domain {user.org_domain}\")\n\n # Lazy load apis per org\n if (\n user.org_domain not in current_ioc_lookup_app.misp_apis\n and user.org_domain in current_ioc_lookup_app.trusted_orgs.get(\"org_domains\", [])\n ):\n try:\n current_ioc_lookup_app.misp_apis[user.org_domain] = MISPApi(\n current_ioc_lookup_app.config[\"MISP_URL\"],\n current_ioc_lookup_app.trusted_orgs[\"org_domains\"][user.org_domain],\n current_ioc_lookup_app.config[\"MISP_VERIFYCERT\"],\n )\n current_ioc_lookup_app.logger.info(f\"Loaded api for {user.org_domain}\")\n except PyMISPError:\n abort(400, \"Authentication failed. Make sure your organizations api key is up to date.\")\n except Exception as ex:\n current_ioc_lookup_app.logger.exception(f\"Could not load domain mapping for {user.org_domain}: {ex}\")\n\n api = current_ioc_lookup_app.misp_apis.get(user.org_domain)\n if api is None:\n current_ioc_lookup_app.logger.debug(\"Using default api\")\n yield current_ioc_lookup_app.misp_apis[\"default\"]\n else:\n current_ioc_lookup_app.logger.debug(f\"Using {user.org_domain} api\")\n yield api\n\n\ndef utc_now() -> datetime:\n \"\"\"Return current time with tz=UTC\"\"\"\n return datetime.now(tz=timezone.utc)\n","repo_name":"SUNET/flask-ioc-lookup","sub_path":"ioc_lookup/utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":10414,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"19597626137","text":"import asyncio\nimport logging\n\nfrom nats.aio.client import Client as NATS\n\nclass Subscriber:\n def __init__(self):\n self.loop = asyncio.new_event_loop()\n \n def run(self):\n self.loop.run_until_complete(self.subscribe())\n self.loop.run_forever()\n\n async def subscribe(self):\n logging.info(f\"in NATS main\")\n nc = NATS()\n\n options = {\"servers\": \"nats://nats:4222\", \"loop\": self.loop, \"dont_randomize\": True}\n\n async def disconnected_cb():\n logging.warning(\"Got disconnected from nats!\")\n\n async def reconnected_cb():\n # See who we are connected to on reconnect.\n logging.info(\"Got reconnected to {url}\".format(url=nc.connected_url.netloc))\n\n async def error_cb(e):\n logging.warning(\"There was an error: {}\".format(e))\n\n async def closed_cb():\n logging.info(\"NATS connection is closed\")\n\n async def message_handler(msg):\n logging.info(f\"In nats handler\")\n subject = msg.subject\n data = msg.data.decode()\n logging.info(f\"Received a message on '{subject}': {data}\")\n \n options[\"disconnected_cb\"] = disconnected_cb\n options[\"reconnected_cb\"] = reconnected_cb\n options[\"max_reconnect_attempts\"] = -1\n options[\"connect_timeout\"] = 5 # 5 sec\n options[\"error_cb\"] = error_cb\n options[\"closed_cb\"] = closed_cb\n\n \n logging.info(\"Harsh natssssssss\")\n try:\n await nc.connect(**options)\n except Exception as e:\n logging.error(\"Error occurred while connecting to nats server: {}\".format(e))\n # await nc.connect(\"nats://nats:4222\", loop=self.loop) # Connect to NATS server\n await nc.subscribe(\"test\", cb=message_handler) # Subscribe to subject\n logging.info(f\"NATS connected\")","repo_name":"harsh4723/nats-demo","sub_path":"subscriber.py","file_name":"subscriber.py","file_ext":"py","file_size_in_byte":1859,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"41433655290","text":"def get_price(count: int) -> int:\n\t\"\"\"\n\t\tВозвращает цену за товар\n\n\t\t:param count: - количество товара\n\t\t:return int:\n\t\"\"\"\n\tresponse = 0\n\tfor i in range(count):\n\t\tresponse += 2.95 if response else 10.95\n\n\treturn round(response,2)\n\nif __name__ == \"__main__\":\n\tprint(f\"Цена за товары: ${get_price(count=int(input('Кол-во товаров: ')))}\")","repo_name":"kmplsmf/Practan","sub_path":"prog2.py","file_name":"prog2.py","file_ext":"py","file_size_in_byte":396,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34898386433","text":"import time\n\nclass EmonHubCargo:\n uri = 0\n\n # The class \"constructor\" - It's actually an initializer\n def __init__(self, timestamp, target, nodeid, nodename, names, realdata, rssi, rawdata):\n EmonHubCargo.uri += 1\n self.uri = EmonHubCargo.uri\n self.timestamp = float(timestamp)\n self.target = int(target)\n self.nodeid = int(nodeid)\n self.nodename = nodename\n self.names = names\n self.realdata = realdata\n self.rssi = int(rssi)\n\n # self.datacodes = []\n # self.datacode = \"\"\n # self.scale = 0\n # self.scales = []\n self.rawdata = rawdata\n self.encoded = {}\n # self.realdatacodes = []\n\ndef new_cargo(rawdata=\"\", nodename=False, names=[], realdata=[], nodeid=0, timestamp=0.0, target=0, rssi=0.0):\n return EmonHubCargo(timestamp or time.time(), target, nodeid, nodename, names, realdata, rssi, rawdata)\n","repo_name":"openenergymonitor/emonhub","sub_path":"src/Cargo.py","file_name":"Cargo.py","file_ext":"py","file_size_in_byte":922,"program_lang":"python","lang":"en","doc_type":"code","stars":82,"dataset":"github-code","pt":"86"}
+{"seq_id":"14351698306","text":"from common import *\n\ndef parse(x):\n return [int(y) for y in x]\n\ndata = filemap(parse, 'day09.txt')\n\ndef neighbors(x, y):\n n = []\n for tx, ty in ((x-1, y), (x, y-1), (x+1, y), (x, y+1)):\n if tx >= 0 and tx < len(data) and ty >= 0 and ty < len(data[0]):\n n.append((tx, ty))\n return n\n\np1 = 0\nbasins = defaultdict(set)\nunassigned = set()\nflows = {}\nfor x in range(len(data)):\n for y in range(len(data[x])):\n d = data[x][y]\n if all(d < data[tx][ty] for (tx, ty) in neighbors(x, y)):\n p1 += 1 + d\n basins[(x, y)].add((x, y))\n elif d == 9:\n continue\n else:\n unassigned.add((x, y))\n flows[(x, y)] = min((data[tx][ty], (tx, ty)) for tx, ty in neighbors(x, y))[1]\nprint(p1)\n\nwhile unassigned:\n cx, cy = unassigned.pop()\n gathered = set([(cx, cy)])\n while (cx, cy) in flows:\n cx, cy = flows[(cx, cy)]\n gathered.add((cx, cy))\n unassigned.discard((cx, cy))\n basins[(cx, cy)].update(gathered)\n\np2 = 1\nfor i in list(sorted(basins.values(), key=lambda x: len(x), reverse=True))[:3]:\n p2 *= len(i)\nprint(p2)\n\n\n","repo_name":"mattr555/advent-of-code","sub_path":"2021/day09.py","file_name":"day09.py","file_ext":"py","file_size_in_byte":1147,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"45134360982","text":"\nfrom tkinter import *\n\n#tkinter is the Phyton's standard GUI, binding to the Tk GUI toolkit\n#GUI - Graphical User Interface\n# widgets = GUI elements: buttons, textboxes, labels, images\n# windows = serves as a cotainer to hold these widgets.\n\n\nwindow = Tk() #instantiate an instance ofa window.\nwindow.geometry(\"920x920\")\nwindow.title('Joao Window')\n#icon = PhotoImage(file=\"Hanasson Logo Transparente 1.png\")\n#window.iconphoto(True,icon)\n#google HEX colour picker, make sure you have hashtag\ncount = 0\ndef click():\n global count\n count += 1\n print(\"Thanks for clicking {} times.\".format(count))\n\nwindow.config(background=\"#184022\")\n\n#INSERT IMAGE (Going to the label)\nphoto = PhotoImage(file='C:\\\\Users\\\\joaopaulo\\\\Google Drive\\\\'\n 'HANASSON LIMITED\\\\Marketing\\\\Presentation\\\\Images\\\\Brazil.png')\n\nbutton_logo = PhotoImage(file='C:\\\\Users\\\\joaopaulo\\\\Google Drive\\\\'\n 'HANASSON LIMITED\\\\Marketing\\\\Presentation\\\\Images\\\\HOUSE.png')\n\n#labels = is an area widget that holds text and/or an image within a window.\n#STEP 1: master of the lable to be in that window.\nlabel = Label(window,\n text=\"Hello Joao Paulo\\n Good Morning\",\n font=('arial',20,'bold'),\n fg='#6a6e6b',bg='#184022',\n relief=RAISED, bd=10,\n padx=20, pady=10,\n image=photo, compound=\"bottom\")\nlabel.pack() #STEP 2: Sends the label to the window on top position.\n#label.place(x=0, y=0) #STEP 2: Sends the label to the window on coordinates in pixels.\n\nbutton = Button(window, text=\"Click me\", font=('Comic Sans', 10, 'bold'),\n fg='#6a6e6b',bg='#184022',\n padx=5, pady=5, activeforeground='#6a6e6b', activebackground='#60a672',\n command=click,\n state=ACTIVE, image=button_logo, compound=\"bottom\")\nbutton.place(x=200, y=320)\n\nwindow.mainloop() #place window on computer screen, listen for events\n\n#labels\n","repo_name":"Jornada217/Class.py","sub_path":"Course2/Window GUI.py","file_name":"Window GUI.py","file_ext":"py","file_size_in_byte":1958,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"28399744494","text":"# -*- coding: utf-8 -*-\nimport time\nfrom VectorSpaceGenerator import VectorSpaceMaker\nfrom sklearn.feature_extraction.text import CountVectorizer\nimport numpy\nimport random\nfrom sklearn.preprocessing import normalize\nfrom tmodels.som import SOM\nimport sys\nimport pdb\n#pdb.set_trace()\nfrom tmodels.somC import SomC\n\n\nclass Trainer():\n def __init__(self):\n self.vsm = VectorSpaceMaker()\n self.tobetraineddata = self.vsm.getLinksandContents()\n # It is a dictionary with links and content\n self.trainingdata = self.tobetraineddata.values()\n self.trainingdatakeys = self.tobetraineddata.keys()\n\n '''Training Starts here '''\n\n def initialize(self):\n print(\"Starting intialization\")\n self.vectorizer = CountVectorizer(min_df=3)\n self.X = self.vectorizer.fit_transform(self.trainingdata)\n self.n_number, self.n_dim = self.X.shape\n self.n_todim = 300\n print (len(self.vectorizer.vocabulary_))\n '''transformer = random_projection.GaussianRandomProjection()\n X_new = transformer.fit_transform(X)\n print X_new.shape'''\n ''' get new shape and array size here . 2/3 columns are zeros here.'''\n rand = numpy.empty([self.n_dim, self.n_todim])\n for i in range(0, self.n_number):\n for j in range(0, self.n_todim):\n a1 = random.random()\n if a1 < 2.0 / 3:\n rand[i, j] = 0\n elif a1 < 5.0 / 6:\n rand[i, j] = 1\n elif a1 < 1.0:\n rand[i, j] = -1\n # apply random projection\n rand_normalized = normalize(rand, norm='l1', axis=0)\n #print rand_normalized\n\n # doing random projection here\n self.final_matrix = self.X.dot(rand_normalized)\n print(\"Initialization Done\")\n #print final_matrix\n #print final_matrix.shape\n\n\n def startTraining(self):\n ''' Here we are passing SOM mesh, dimensions of each node, Mesh dimensions '''\n print(\"Starting Training\")\n self.som = SomC(self.final_matrix, self.n_todim, (10, 10))\n for j in range(self.som.num_iterations):\n start = time.time()\n for i in range(self.n_number):\n self.som.train(self.final_matrix[i], j)\n print (\" %d iteration on a %d-square grid took %f seconds\" % (j, self.som.grid_size[0], time.time() - start))\n print(self.som.som_weights)\n\n print(self.som.som_weights)\n print(\"Training Done\")\n\n def savetoFile(self):\n numpy.save(\"../savedata/narray\", self.som.final_matrix)\n\n'''for i in range(1,1300):\n if len(som.getSimilarArticles(final_matrix[i,:].tolist())) > 1:\n print \"DFDF\" '''\n\n'''for i in range(20):\n for j in range(20):\n print (str(i) + \" \" + str(j))\n try:\n for k in som.nodes[i*10+j].content:\n sys.stdout.write(trainingdatakeys[k])\n sys.stdout.write(\" \")\n print (\"\\n\")\n except:\n pass'''\n#print johnson_lindenstrauss_min_dim(n_samples=1330, eps=.5) #345\n\ntr = Trainer()\ntr.initialize()\ntr.startTraining()\ntr.savetoFile()\n\n","repo_name":"soorajambadi/pocket_SOM","sub_path":"trainer.py","file_name":"trainer.py","file_ext":"py","file_size_in_byte":3174,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5495040150","text":"import csv\nfrom typing import Set\nfrom models.dish import Dish\nfrom models.ingredient import Ingredient\n\n\nclass MenuData:\n def __init__(self, source_path: str) -> None:\n self.source_path = source_path\n self.dishes: Set[Dish] = set()\n self._load_menu_data()\n\n def _load_menu_data(self) -> None:\n with open(self.source_path, newline='') as file:\n reader = csv.reader(file)\n next(reader)\n\n for row in reader:\n dish_na, dish_price, ingrent_name, ingrent_qutity = row\n\n dish = self._get_or_create_dish(dish_na, float(dish_price))\n ingredient = self._get_or_create_ingredient(dish, ingrent_name)\n\n dish.add_ingredient_dependency(ingredient, int(ingrent_qutity))\n\n def _get_or_create_dish(self, name: str, price: float) -> Dish:\n for dish in self.dishes:\n if dish.name == name and dish.price == price:\n return dish\n\n dish = Dish(name, price)\n self.dishes.add(dish)\n return dish\n\n def _get_or_create_ingredient(self, dish: Dish, name: str) -> Ingredient:\n for ingredient in dish.recipe.keys():\n if ingredient.name == name:\n return ingredient\n\n ingredient = Ingredient(name)\n dish.add_ingredient_dependency(ingredient, 0)\n return ingredient\n","repo_name":"FranciscoVieir/Restaurant-orders","sub_path":"src/services/menu_data.py","file_name":"menu_data.py","file_ext":"py","file_size_in_byte":1373,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"25143642120","text":"import numpy as np\r\nimport cv2\r\nimport datetime\r\nimport os\r\n\r\ncap = cv2.VideoCapture(0)\r\ncap.set(3,640)\r\ncap.set(4,480)\r\n\r\npath_folder = 'C:\\\\Users\\\\Biancaa. R\\\\lumin_eye\\\\saved'\r\nos.chdir(path_folder)\r\nfourcc = cv2.VideoWriter_fourcc(*'MP4V') #MP4V codec,\r\n#ts=str(datetime.datetime.now())\r\n#path='C:\\\\Users\\\\Biancaa. R\\\\lumin_eye\\\\saved\\\\output_{}.mp4'.format(ts)\r\n#path='output_'+ts+'.mp4'\r\nts = (datetime.datetime.now()).strftime(\"%Y_%m_%d_%H_%M_%S\")\r\npath = 'C:\\\\Users\\\\Biancaa. R\\\\lumin_eye\\\\saved\\\\output_{}.mp4'.format(ts)\r\nprint(path)\r\nout = cv2.VideoWriter(path, fourcc, 10.0, (640,480))\r\nwhile(True):\r\n ret, frame = cap.read()\r\n out.write(frame)\r\n cv2.imshow('frame', frame)\r\n #c = cv2.waitKey(1)\r\n #if c & 0xFF == ord('q'):\r\n if cv2.waitKey(1)==ord('q'): \r\n break\r\n\r\ncap.release()\r\nout.release() #closes the output video file\r\ncv2.destroyAllWindows()","repo_name":"Biancaa-R/Lumin_eye_vison_for-_the_impaired","sub_path":"lumin_eye/Pyqt_implementation/cap_2_ts.py","file_name":"cap_2_ts.py","file_ext":"py","file_size_in_byte":887,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"4792094734","text":"from bs4 import BeautifulSoup\nfrom transformers import AutoTokenizer, EncoderDecoderModel\n\nfrom temporal_taggers.evaluation import clean_predictions\n\n\ndef find_timex_in_text(timex_preds, input_text, model_type):\n if model_type == \"bert\":\n original_paragraph = input_text.lower()\n else:\n original_paragraph = input_text\n end_previous_timex = 0\n previous_timex_cleaned_text = \"\"\n new_text = \"\"\n index = 0\n for timex in timex_preds:\n cleaned_text = timex.text.replace(\"<\", \"\").replace(\">\", \"\").replace(\"\\\"\", \"\").strip()\n # sometimes the cleaned text has \"leftovers\"\n if cleaned_text.startswith(\"- \"):\n cleaned_text = cleaned_text[2:]\n\n if len(cleaned_text) < 2:\n continue\n\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text)\n if cleaned_text == \"day\" and beginning_timex != -1 and \\\n original_paragraph[beginning_timex - 2:beginning_timex] == \"to\":\n cleaned_text = \"today\"\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text)\n\n # if the model predicted a full year instead of the last two digits\n if beginning_timex == -1 and len(cleaned_text) == 4 and cleaned_text.isdigit():\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text[2:])\n cleaned_text = cleaned_text[2:].strip()\n\n # if the model predicted full year with an extra repetition\n if beginning_timex == -1 and len(cleaned_text) == 6 and cleaned_text.isdigit():\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text[:-2])\n cleaned_text = cleaned_text[:-2].strip()\n\n # if the first word is repeating\n elif beginning_timex == -1 and len(cleaned_text.split(\" \")) > 1 and \\\n cleaned_text.split(\" \")[0] == cleaned_text.split(\" \")[1]:\n cleaned_text = ' '.join(cleaned_text.split(\" \")[:-1])\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text)\n\n # if the first and last word is repeating\n elif beginning_timex == -1 and len(cleaned_text.split(\" \")) > 1 and \\\n cleaned_text.split(\" \")[0] == cleaned_text.split(\" \")[-1]:\n cleaned_text = ' '.join(cleaned_text.split(\" \")[1:])\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text)\n # if its single word separated by \"-\"\n elif beginning_timex == -1 and len(cleaned_text.split(\" \")) < 2 and len(cleaned_text.split(\"-\")) > 1:\n for word in cleaned_text.split(\"-\"):\n if word in original_paragraph[end_previous_timex:]:\n cleaned_text = word\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text)\n break\n # more than one words the first one is a digit\n elif beginning_timex == -1 and len(cleaned_text.split(\" \")) < 2 and len(cleaned_text) > 2 and \\\n not cleaned_text[:1].isdigit() and cleaned_text[-1].isdigit():\n word = cleaned_text[:-1]\n if word.lower() in original_paragraph[end_previous_timex:].lower():\n cleaned_text = word\n beginning_timex = original_paragraph[end_previous_timex:].lower().find(cleaned_text.lower())\n break;\n # if its just a single word\n elif beginning_timex == -1 and len(cleaned_text.split(\" \")) < 2 and len(cleaned_text) > 2 and \\\n not cleaned_text[0].isdigit() and cleaned_text[-1].isdigit():\n for i in range(2, len(cleaned_text)):\n word = cleaned_text[:i]\n if \" \" + word + \" \" in original_paragraph[end_previous_timex:] or \\\n \" \" + word + \".\" in original_paragraph[end_previous_timex:] or \\\n \" \" + word + \",\" in original_paragraph[end_previous_timex:]:\n cleaned_text = word\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text)\n break;\n\n # if its just a single word ending with digits\n if beginning_timex == -1 and len(cleaned_text.split(\" \")) < 2:\n for i in range(2, len(cleaned_text)):\n word = cleaned_text[:i]\n if \" \" + word + \" \" in original_paragraph[end_previous_timex:] or \\\n \" \" + word + \".\" in original_paragraph[end_previous_timex:] or \\\n \" \" + word + \",\" in original_paragraph[end_previous_timex:]:\n cleaned_text = word\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text)\n break;\n # if you can not find it, see if you can match the first word in the multi word one\n if beginning_timex == -1 and len(cleaned_text.split(\" \")) > 1:\n for word in cleaned_text.split(\" \"):\n if word in original_paragraph[end_previous_timex:] and word not in [\"a\", \"-\", \".\", \"the\",\n \"in\", \"then\", \"'s\",\n \"have\", \"at\", \"be\"]:\n cleaned_text = word\n beginning_timex = original_paragraph[end_previous_timex:].find(cleaned_text)\n break\n\n if beginning_timex == -1 and cleaned_text.lower() in original_paragraph[\n end_previous_timex:].lower():\n beginning_timex = original_paragraph[end_previous_timex:].lower().find(cleaned_text.lower())\n\n # avoid tag repetition\n if cleaned_text == previous_timex_cleaned_text:\n continue\n\n previous_timex_cleaned_text = cleaned_text\n\n # if there is still no match, just forget it.\n if beginning_timex == -1:\n continue\n\n index = index + 1\n beginning_timex = beginning_timex + end_previous_timex\n # if the word ended with one of these symbols do not put a space after timex tag\n if original_paragraph[beginning_timex - 1:beginning_timex] in [\"\\n\", \"'\", \"-\", \",\", \"\\\"\", \"(\"] or \\\n original_paragraph[beginning_timex - 1:beginning_timex].isdigit():\n new_text += f'{input_text[end_previous_timex:beginning_timex]}\", \"\").replace(\"<\", \"\").replace(\">\", \"\").replace(\" \", \"\").upper()}\">{input_text[beginning_timex:beginning_timex + len(cleaned_text)]}' \\\n f' '\n\n else: # otherwise put a space\n new_text += f'{input_text[end_previous_timex:beginning_timex]} \", \"\").replace(\"<\", \"\").replace(\">\", \"\").replace(\" \", \"\").upper()}\">{input_text[beginning_timex:beginning_timex + len(cleaned_text)]}' \\\n f' '\n\n end_previous_timex = beginning_timex + len(cleaned_text)\n\n new_text += input_text[end_previous_timex:]\n return new_text\n\n\nif __name__ == \"__main__\":\n model_type = \"roberta\"\n tokenizer = AutoTokenizer.from_pretrained(\"satyaalmasian/temporal_tagger_roberta2roberta\")\n model = EncoderDecoderModel.from_pretrained(\"satyaalmasian/temporal_tagger_roberta2roberta\")\n\n # --- if you want to use the bert model, uncomment the following lines\n # model_type=\"bert\"\n # tokenizer = AutoTokenizer.from_pretrained(\"satyaalmasian/temporal_tagger_bert2bert\")\n # model = EncoderDecoderModel.from_pretrained(\"satyaalmasian/temporal_tagger_bert2bert\")\n\n input_texts = [\"I lived in New York for 10 years.\"]\n input_texts += [\"Cumbre Vieja last erupted in 1971 and in 1949.\"]\n input_texts += [\"The club's founding date, 15 January, was intentional.\"]\n input_texts += [\"Police were first called to the scene just after 7.25am this morning, Sunday, September 19, \"\n \"and have confirmed they will continue to remain in the area for some time.\"]\n\n for input_text in input_texts:\n model_inputs = tokenizer(input_text, truncation=True, return_tensors=\"pt\")\n out = model.generate(**model_inputs)\n decoded_preds = tokenizer.batch_decode(out, skip_special_tokens=True)\n pred_soup = BeautifulSoup(clean_predictions(decoded_preds[0]), \"lxml\")\n timex_preds = pred_soup.findAll(\"timex3\")\n new_text = find_timex_in_text(timex_preds, input_text, model_type)\n print(new_text)\n","repo_name":"satya77/Transformer_Temporal_Tagger","sub_path":"examples/run_model_hub_seq2seq.py","file_name":"run_model_hub_seq2seq.py","file_ext":"py","file_size_in_byte":8818,"program_lang":"python","lang":"en","doc_type":"code","stars":59,"dataset":"github-code","pt":"86"}
+{"seq_id":"42487336360","text":"#!/usr/bin/env python\nimport math\nimport torch\nimport torch.nn as nn\nfrom torch.nn.parameter import Parameter\nfrom torch.nn.modules.module import Module\nimport torch.nn.functional as F\nimport numpy as np\nimport scipy.sparse as sp\nfrom scipy.sparse.linalg import norm as sparse_norm\n\nfrom utils.utils import sparse_mx_to_torch_sparse_tensor\n\n\nclass Sampler:\n def __init__(self, features, adj, **kwargs):\n allowed_kwargs = {'input_dim', 'layer_sizes', 'device'}\n for kwarg in kwargs.keys():\n assert kwarg in allowed_kwargs, \\\n 'Invalid keyword argument: ' + kwarg\n\n self.input_dim = kwargs.get('input_dim', 1)\n self.layer_sizes = kwargs.get('layer_sizes', [1])\n self.scope = kwargs.get('scope', 'test_graph')\n self.device = kwargs.get('device', torch.device(\"cpu\"))\n\n self.num_layers = len(self.layer_sizes)\n\n self.adj = adj\n self.features = features\n\n self.train_nodes_number = self.adj.shape[0]\n\n def sampling(self, v_indices):\n raise NotImplementedError(\"sampling is not implemented\")\n\n def _change_sparse_to_tensor(self, adjs):\n new_adjs = []\n for adj in adjs:\n new_adjs.append(\n sparse_mx_to_torch_sparse_tensor(adj).to(self.device))\n return new_adjs\n\n\nclass SamplerFastGCN(Sampler):\n def __init__(self, pre_probs, features, adj, **kwargs):\n super(SamplerFastGCN, self).__init__(features, adj, **kwargs)\n col_norm = sparse_norm(adj, axis=0)\n self.probs = col_norm / np.sum(col_norm)\n\n def sampling(self, v):\n all_support = [[]] * self.num_layers\n\n cur_out_nodes = v\n for layer_index in range(self.num_layers - 1, -1, -1):\n cur_sampled, cur_support = self._one_layer_sampling(\n cur_out_nodes, self.layer_sizes[layer_index])\n all_support[layer_index] = cur_support\n cur_out_nodes = cur_sampled\n\n all_support = self._change_sparse_to_tensor(all_support)\n sampled_X0 = self.features[cur_out_nodes]\n return sampled_X0, all_support, 0\n\n def _one_layer_sampling(self, v_indices, output_size):\n support = self.adj[v_indices, :]\n neis = np.nonzero(np.sum(support, axis=0))[1]\n p1 = self.probs[neis]\n p1 = p1 / np.sum(p1)\n sampled = np.random.choice(np.array(np.arange(np.size(neis))),\n output_size, True, p1)\n\n u_sampled = neis[sampled]\n support = support[:, u_sampled]\n sampled_p1 = p1[sampled]\n\n support = support.dot(sp.diags(1.0 / (sampled_p1 * output_size)))\n return u_sampled, support\n\n\nclass GraphConvolution(Module):\n def __init__(self, in_features, out_features, bias=False):\n super(GraphConvolution, self).__init__()\n self.in_features = in_features\n self.out_features = out_features\n self.weight = Parameter(torch.FloatTensor(in_features, out_features))\n if bias:\n self.bias = Parameter(torch.FloatTensor(out_features))\n else:\n self.register_parameter('bias', None)\n self.reset_parameters()\n\n def reset_parameters(self):\n stdv = 1.0 / math.sqrt(self.weight.size(1))\n self.weight.data.uniform_(-stdv, stdv)\n if self.bias is not None:\n self.bias.data.uniform_(-stdv, stdv)\n\n def forward(self, input, adj):\n support = torch.mm(input, self.weight)\n output = torch.spmm(adj, support)\n self.embedding = output\n if self.bias is not None:\n return output + self.bias\n else:\n return output\n\n def __repr__(self):\n return self.__class__.__name__ + ' (' \\\n + str(self.in_features) + ' -> ' \\\n + str(self.out_features) + ')'\n\n\nclass FastGCN(nn.Module):\n def __init__(self, nfeat, nhid, nclass, dropout, sampler):\n super(FastGCN, self).__init__()\n\n self.layer1 = GraphConvolution(nfeat, nhid)\n self.layer2 = GraphConvolution(nhid, nclass)\n self.dropout = dropout\n self.sampler = sampler\n self.out_softmax = nn.Softmax(dim=1)\n\n def forward(self, x, adj):\n outputs1 = F.relu(self.layer1(x, adj[0]))\n outputs1 = F.dropout(outputs1, self.dropout, training=self.training)\n outputs2 = self.layer2(outputs1, adj[1])\n return F.log_softmax(outputs2, dim=1)\n\n def sampling(self, *args, **kwargs):\n return self.sampler.sampling(*args, **kwargs)\n","repo_name":"h36278284/AI6103_project_code_base","sub_path":"models/fgcn.py","file_name":"fgcn.py","file_ext":"py","file_size_in_byte":4493,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27286235131","text":"import collections, itertools, json, datetime, locale, re, os\nimport bs4, pystache\n\nimport utils\n\nfrom typing import List, Dict, Tuple, Optional, TypeVar, Set, Any\nfrom typing_extensions import TypedDict\n\nX = TypeVar(\"X\")\nEntry = TypedDict(\"Entry\", {\n \"details\": str,\n \"title\": str\n})\nCourse = TypedDict(\"Course\", {\n \"title\": str,\n \"details\": List[Entry],\n \"dates\": List[str],\n \"uedates\": List[str]\n})\nModule = TypedDict(\"Module\", {\n \"content\": Dict[str, Course],\n \"credits\": int,\n \"details\": List[Entry],\n \"module_id\": str,\n \"regulations\": str\n})\nTermin = TypedDict(\"Termin\", {\n \"count\": int,\n \"day\": int,\n \"start\": Tuple[int, int],\n \"end\": Tuple[int, int],\n \"room\": str,\n \"firstdate\": str,\n})\nModule2 = TypedDict(\"Module2\", {\n \"content\": Dict[str, Course],\n \"weekly\": List[Termin],\n \"id\": str,\n \"title\": str,\n \"title_short\": str,\n \"owner\": str,\n \"owner_short\": str,\n \"category\": str,\n \"credits\": int,\n \"details\": List[Entry],\n \"regulations\": str,\n \"language\": str,\n})\n\npairs: dict[(str, int, float), int] = dict()\n\ndef stache(x: str, y: Dict[str, Any]) -> str:\n return pystache.render(x, y) # type: ignore\n\ndef main() -> None:\n prefix = \"cache/\"\n now = datetime.datetime.today()\n time_ym = now.strftime(\"%Y-%m\")\n time_dmy = now.strftime(\"%d. %b %Y\")\n semester = utils.json_read(prefix + \"current_semester.json\", None)\n semester = semester[0] +\" \"+ semester[1]\n folder = \"gh-pages/\"\n\n pflicht: List[Tuple[str, str]] = []\n fields: Dict[str, Dict[str, Tuple[str, str]]] = {}\n pflicht = utils.json_read(prefix + \"pre-tucan-pflicht.json\", pflicht)\n fields = utils.json_read(prefix + \"pre-inferno.json\", fields)\n\n #nebenfach = utils.json_read(\"nebenfach.json\")\n# back = utils.groupby(((course, major +\" · \"+ category)\n# for major,v in nebenfach.items()\n# for category,v in v.items()\n# for module in v\n# for course in module), key=lambda x:x[0])\n# back = {k:[\"Y Nebenfach · \" + \" & \".join(i[1] for i in v),\"\"] for k,v in back}\n# fields = [back] + list(fields.values())\n# print(json.dumps(fields, indent=2))\n\n # dist/main.js with npm; code.orig.js without npm\n if os.path.exists(\"dist/main.js\"):\n CODE_FILE = \"dist/main.js\"\n else:\n CODE_FILE = \"code.orig.js\"\n\n page_tmpl = utils.file_read(\"page.html\")\n index_tmpl = utils.file_read(\"index.html\")\n code_tmpl = utils.file_read(CODE_FILE) + utils.file_read(\"code.common.js\")\n style_tmpl = utils.file_read(\"style.css\")\n\n def filename(reg: str) -> str:\n return \"\".join(c for c in reg if c.isalnum())\n\n regulations = [\n (k,\n k.replace(\"B.Sc.\", \"Bachelor\")\n .replace(\"M.Sc.\", \"Master\")\n .replace(\" (2015)\", \"\"),\n filename(k) + \".html\")\n for k in fields.keys()\n if k.endswith(\" (2015)\")\n ] + [\n # other FBs?\n (\"BauUmwelt\", \"FB 13 Bau, Umwelt\", \"BauUmwelt.html\")\n ]\n\n listy = [\n {'href': href, 'title': semester +\" \"+ display_regulation}\n for regulation, display_regulation, href in regulations\n if display_regulation.endswith(\" Informatik\")\n if not display_regulation.startswith(\"FB \")\n ]\n experimentallist = [\n {'href': href, 'title': semester +\" \"+ display_regulation}\n for regulation, display_regulation, href in regulations\n if not display_regulation.endswith(\" Informatik\")\n if not display_regulation.startswith(\"FB \")\n ]\n speciallist = [\n {'href': href, 'title': semester +\" \"+ display_regulation}\n for regulation, display_regulation, href in regulations\n if display_regulation.startswith(\"FB \")\n ]\n index_data = {\n \"list\": listy,\n \"experimentallist\": experimentallist,\n \"speciallist\": speciallist,\n }\n utils.file_write(folder + \"/index.html\", stache(index_tmpl, index_data))\n utils.file_write(folder + \"/main.js\", code_tmpl)\n utils.file_write(folder + \"/style.css\", style_tmpl)\n\n print(regulations)\n for regulation, display_regulation, href in regulations:\n print(prefix + \"-\" + filename(regulation) + \".json\")\n modules: Dict[str, Module] = {}\n modules = utils.json_read(prefix + \"-\" + filename(regulation) + \".json\", modules)\n if modules == []: continue # if file exists\n\n data = [clean(module_id, module, fields, regulation)\n for module_id, module in modules.items()]\n\n data.sort(key=lambda x: (x['category'], x['id'])) # -int(x['credits'])\n js_data = json.dumps(data, indent=1)\n\n page_data = {\n \"today\": time_dmy,\n \"semester\": semester,\n \"regulation\": display_regulation,\n \"js_data\": js_data,\n \"content\": generate_page(data)\n }\n utils.file_write(folder + \"/\" + href, stache(page_tmpl, page_data))\n\n import pprint; print(\"(FB, CP, SWS): count\"); pprint.pprint(pairs)\n print(\"finished\")\n\n\ndef generate_page(data: List[Module2]) -> str:\n def genmodule(x: Module2) -> str: return stache(\"\"\"\n\n
\n
\n \n {{credits}}cp \n {{title_short}} \n {{title}} \n {{owner_short}} \n \n
\n \n {{#details}}\n {{title}} \n {{#details}}{{{.}}} {{/details}}\n {{/details}}
\n \n
\"\"\", x) #type: ignore\n\n def gencategory(title: str, modules: str) -> str: return stache(\"\"\"\n\n \n
\n {{title}} \n \n \n {{{modules}}}\n \n \"\"\", {\"title\": title, \"modules\": modules}) # type: ignore\n\n result = \"\"\n for c, modules in utils.groupby(data, lambda x: x[\"category\"]):\n str_modules = \"\\n\\n\".join(genmodule(m) for m in modules)\n result += gencategory(c, str_modules)\n return result\n\ndef clean(module_id: str, entry: Module,\n fields: Dict[str, Dict[str, Tuple[str, str]]],\n regulation: str) -> Module2:\n def get_first(title: str, entry: List[Entry] = entry[\"details\"]) -> Optional[str]:\n tmp = [detail for detail in entry if detail[\"title\"] == title]\n return tmp[0].get('details') if len(tmp)>0 else None\n\n def get_abbr(title: str) -> str:\n # choose the best one of three abbreviations\n abbr1 = \"\".join(i for i in title if i.isupper() or i.isnumeric())\n abbr2 = \"\".join(i[0] if len(i)>0 else \"\" for i in title.strip().split(\" \"))\n abbr3 = (get_first(\"Kürzel\") or \"\").strip().replace(\" \", \"\")\n abbrs = ( [abbr3, abbr1, abbr2]\n if 1 < len(abbr3) < 6 else\n sorted((i for i in (abbr1, abbr2)), key=lambda x: abs(3.4 - len(x))) )\n #print(abbrs)\n return abbrs[0]\n\n # module_id, title, abbr\n courses = list(entry['content'].values())\n first_entry = courses[0]\n sort_title = first_entry['title'][10:]\n _, title = sort_title.split(\" \", 1)\n if len(courses) > 1:\n title = get_first(\"Titel\") or title\n orig_title = title\n module_id = module_id or get_first(\"TUCaN-Nummer\") or \"\"\n title = utils.remove_bracketed_part(title)\n title = utils.remove_bracketed_part(title)\n title = utils.roman_to_latin_numbers(title)\n title = title.replace(\"Praktikum in der Lehre - \", \"Pidl - \")\n title = title.replace(\"Praktikum in der Lehre zu \", \"Pidl - \")\n abbr = get_abbr(title)\n\n # language\n mainlanguages = set(i.strip() for i in (get_first(\"Sprache\") or \"\").replace(\" und \", \"/\").replace(\"Deutsch\", \"🇩🇪\").replace(\"Englisch\", \"🇬🇧\").split(\"/\"))\n sublanguages = {\n j.strip() for i in courses for j in\n ((get_first(\"Unterrichtssprache\", i[\"details\"]) or \"\").replace(\" und \", \"/\").replace(\"Deutsch\", \"🇩🇪\").replace(\"Englisch\", \"🇬🇧\").split(\"/\"))}\n language = \" \".join(sorted((mainlanguages | sublanguages) - set([\"\"])))\n\n # last name of owners\n owner = \"; \".join(collections.OrderedDict(\n (x,1) for course in courses\n for x in (get_first(\"Lehrende\", course[\"details\"]) or\n get_first(\"Modulverantwortlicher\", course[\"details\"]) or \"???\").split(\"; \")\n ).keys()) or \"???\"\n owner = owner.replace(\" \", \"\")\n short_owner = \"; \".join(i.split()[-1] for i in owner.split(\"; \"))\n\n # category\n #isos = first_entry['title'].split(\" \")[0].endswith(\"-os\")\n category = fields.get(regulation, {}).get(module_id, [\"\",\"\"])[0]\n category = clean_category(category)\n if category == \"C. Fachübergreifende Lehrveranstaltungen\": category = \"\"\n category_based_on_module_id_ending = {\n \"-se\": \"B. Seminare\",\n \"-pr\": \"B. Praktika\",\n \"-pl\": \"B. Praktika in der Lehre\",\n \"-os\": \"B. Oberseminare\",\n #\"-vl\": \"A. Vorlesungen und integrierte Veranstaltungen\",\n #\"-iv\": \"A. Vorlesungen und integrierte Veranstaltungen\",\n }.get(first_entry['title'].split(\" \")[0][-3:], None)\n #print(first_entry['title'].split(\" \")[0][-3:], category_based_on_module_id_ending)\n category = (\n #\"B. Oberseminare\" if isos else # category == \"B. Seminare\" and entry[\"credits\"] == 0\n category or {\n \"01\": \"C. Nebenfach FB 01 (Wirtschaft & Recht; Entrepeneurship)\",\n \"02\": \"C. Nebenfach FB 02 (Philosophie)\",\n \"03\": \"C. Nebenfach FB 03 (Humanw.; Sportw.)\",\n \"04\": \"C. Nebenfach FB 04 (Logik; Numerik; Optimierung; Stochastik)\",\n \"05\": \"C. Nebenfach FB 05 (Elektrow.; Physik)\",\n \"11\": \"C. Nebenfach FB 11 (Geow.)\",\n \"13\": \"C. Nebenfach FB 13 (Bauinformatik; Verkehr)\",\n \"16\": \"C. Nebenfach FB 16 (Fahrzeugtechnik)\",\n \"18\": \"C. Nebenfach FB 18 (Elektrotechnik)\",\n \"41\": \"C. Sprachkurse\",\n }.get(module_id[:2], None)\n or category_based_on_module_id_ending\n or \"0. Nicht einsortierte Veranstaltungen\"\n )\n if \"B.Sc.\" in regulation:\n category = category.replace(\"C. Nebenfach FB 04 (Logik; Numerik; Optimierung; Stochastik)\", \"0. Mathe und Pflichtveranstaltungen\")\n category = category.replace(\"Nebenfach\", \"Fachübergreifend\")\n #category = category.replace(\"Pflichtveranstaltungen\", \"Nicht einsortierte Veranstaltungen\")\n #else:\n # category = category.replace(\"Pflichtveranstaltungen\", \"Nicht einsortierte Veranstaltungen\")\n\n # dates\n def pdt(day: str) -> datetime.datetime:\n return datetime.datetime.strptime(day, \"%Y-%m-%d\")\n def fmtdt(day: datetime.datetime) -> str:\n return datetime.datetime.strftime(day, \"%Y-%m-%d\")\n def shiftNweeks(n: int, day: str) -> str:\n return fmtdt(pdt(day) + datetime.timedelta(weeks=n))\n\n dates = {i for course in courses for i in course.get('dates', [])}\n uedates = {i for course in courses for i in course.get('uedates', [])}\n uebung = \"Übung \" if len(uedates) != 1 else \"Übungsstunde\"\n uedates2 = {\"\\t\".join(\n [shiftNweeks(i, y.split(\"\\t\",1)[0])] +\n y.split(\"\\t\")[1:3] +\n [uebung]\n ) #.replace(orig_title, \"\")\n for y in uedates\n for i in range( int((pdt(y.split(\"\\t\")[4])\n - pdt(y.split(\"\\t\")[0])).days/7+1) )}\n alldates = {\"weekly\": clean_dates(dates | uedates2)}\n\n # reorder details\n later_titles = {\n \"Unterrichtssprache\", \"Sprache\",\n \"Min. | Max. Teilnehmerzahl\",\n\n \"TUCaN-Nummer\", \"Kürzel\", \"Anzeige im Stundenplan\", # \"Titel\",\n \"Lehrveranstaltungsart\", \"Veranstaltungsart\",\n \"Turnus\", \"Startsemester\",\n \"SWS\", \"Semesterwochenstunden\",\n \"Diploma Supplement\",\n \"Modulausschlüsse\", \"Modulvoraussetzungen\",\n \"Studiengangsordnungen\", \"Verwendbarkeit\", \"Anrechenbar für\",\n \"Orga-Einheit\", \"Gebiet\", \"Fach\",\n \"Modulverantwortliche\", # \"Lehrende\",\n\n \"Dauer\",\n \"Anzahl Wahlkurse\",\n \"Notenverbesserung nach §25 (2)\",\n \"Wahlmöglichkeiten\",\n \"Credits\",\n \"Kurstermine\",\n \"Titel\",\n }\n early = [i for i in entry[\"details\"] if i[\"title\"] not in later_titles]\n late = [i for i in entry[\"details\"] if i[\"title\"] in later_titles]\n entry[\"details\"].clear()\n modul_kurs_title = \" \".join([\n \"Modul: \" + module_id + \" \" + orig_title\n ] + [\n \"Kurs: \" + v['title'] for k,v in entry[\"content\"].items()\n ])\n date_detail: List[Entry] = []\n if dates:\n firstdate = min(dates).split(\"\\t\")[0]\n lastdate = max(dates).split(\"\\t\")[0]\n def dt2str(x: Termin) -> str:\n if x[\"count\"] == 1:\n return \"{}x {} {} {:0>2}:{:0>2} - {:0>2}:{:0>2} ({})\".format(\n x[\"count\"],\n x[\"firstdate\"],\n utils.num_to_day[x[\"day\"]],\n x[\"start\"][0], x[\"start\"][1],\n x[\"end\"][0], x[\"end\"][1],\n x[\"room\"])\n return \"{}x {} {:0>2}:{:0>2} - {:0>2}:{:0>2} ({})\".format(\n x[\"count\"],\n utils.num_to_day[x[\"day\"]],\n x[\"start\"][0], x[\"start\"][1],\n x[\"end\"][0], x[\"end\"][1],\n x[\"room\"])\n date_detail = [\n {\"details\": \" \".join(\"* \" + dt2str(i) for i in alldates[\"weekly\"]),\n \"title\":\"Termine zwischen \" + firstdate + \" und \" + lastdate}]\n modul_detail: List[Entry] = [{\"details\":modul_kurs_title, \"title\":\"Modul und Kurs\"}]\n break_detail: List[Entry] = [{\"details\":\"Modul: \"+title+\" \", \"title\":\"\"}]\n entry[\"details\"].extend(\n modul_detail\n + date_detail\n + early\n + break_detail\n + late\n )\n for k,course in entry['content'].items():\n entry[\"details\"] += [{\"details\":\"Kurs: \"+k+\" \", \"title\":\"\"}]\n entry[\"details\"] += course['details']\n for detail in entry[\"details\"]:\n if detail[\"details\"].strip() != \"\":\n detail[\"details\"] += \" \"\n if detail['title'] == \"Studiengangsordnungen\":\n regs = [(x.split(\"(\", 1))\n for x in sorted(detail['details'].replace(\" \", \" \").split(\" \"))\n if x.strip()]\n regs2 = utils.groupby(regs, key=lambda x: x[0])\n regs3 = [(k,list(v)) for k,v in regs2]\n# print(detail['details'].replace(\" \", \" \").split(\" \"))\n# print([ k +\"(\"+ \", \".join(i[:-1] for _,i in v) + \")\" for k,v in regs2])\n detail['details'] = \" \".join(\n k+\"(\"+\", \".join(i[:-1] for _,i in sorted(v))+\")\" for k,v in regs3\n ) + \" \"\n\n # result\n sws = sum((float(i[\"details\"][:-4].replace(\",\",\".\")) for course in courses for i in course[\"details\"] if i[\"title\"] in [\"Semesterwochenstunden\", \"SWS\"]))\n credits = entry[\"credits\"]\n key = (module_id[0:2], credits, sws)\n pairs[key] = pairs.get(key, 0) + 1\n #print(module_id, sws, credits)\n\n result = utils.merge_dict(entry, alldates) # type: ignore\n assert result['module_id'] == module_id\n del result['module_id']\n result: Module2 = utils.merge_dict(result, { # type: ignore\n \"id\": module_id,\n \"title\": title, \"title_short\": abbr,\n \"owner\": owner, \"owner_short\": short_owner,\n \"credits\": str(credits).zfill(2) if credits != -1 else \"??\",\n \"sws\": str(sws),\n 'category': category,\n \"language\": language,\n })\n return result\n\ndef clean_category(path: str) -> str:\n replacements = [\n # PO 2009\n (\"Grundstudium\", \"Pflicht\"),\n (\"Kanonikfächer \\| Kanonische Einführungsveranstaltungen\", \"Pflicht\"),\n (\"Wahlpflichtbereich \\| Wahlpflichtbereich A\", \"Wahl-A\"),\n (\"Wahlpflichtbereich \\| Wahlpflichtbereich B\", \"Wahl-B\"),\n (\"Projekte, Projektpraktika und ähnliche Veranstaltungen\", \"B. Praktika\"),\n (\" \\| [^ ]* Prüfungsleistungen\", \"\"),\n (\" \\| [^|]* \\| ([A-Z]*) Studienleistungen \\| \\\\1 (.*)$\", \" | \\\\2 /// \\\\1 \"),\n\n # PO 2015\n (\"Pflichtbereich\", \"BSc Pflicht\"),\n (\"Wahlbereich \\| Studienleistungen\", \"BSc Wahl\"),\n (\"Vorgezogene Masterleistungen \\| Vorgezogene Masterleistungen der Informatik \\|\", \"MSc\"),\n (\"Wahlbereich Fachprüfungen\", \"Wahl-A\"),\n (\"Wahlbereich Studienleistungen\", \"Wahl-B\"),\n (\" \\(sp-FB20\\)\", \"\"),\n (\"Praktika, Projektpraktika, ähnliche LV\", \"B. Praktika\"),\n (\"Praktika, Projektpraktika und ähnliche Veranstaltungen\", \"B. Praktika\"),\n (\"Fachübergreifende Lehrveranstaltungen\", \"C. Fachübergreifende Lehrveranstaltungen\"),\n (\"Wahlbereiche \\| \", \"\"),\n\n # common\n (\"Praktika in der Lehre\", \"B. Praktika in der Lehre\"),\n (\"Praktikum in der Lehre\", \"B. Praktika in der Lehre\"),\n (\"Module der \", \"\"),\n (\"Fachübergreifend \\| Gesamtkatalog aller Module des Sprachenzentrums\", \"Sprachzentrum\"),\n (\" \\| ([^|]*) \\| \\\\1\", \" | \\\\1 \"),\n (\"Projektpraktika\", \"X Praktika\"),\n (\"Projekte\", \"B. Praktika\"),\n (\"Seminare\", \"B. Seminare\")\n ]\n for match, result in replacements:\n path = re.sub(match, result, path)\n if path and not path[:3] in [\"A. \", \"B. \", \"C. \", \"0. \"]:\n path = \"A. \" + path\n return path\n\ndef clean_dates(item: Set[str]) -> List[Termin]:\n def parse_date(string: str) -> Tuple[\n datetime.datetime, Tuple[int, int], Tuple[int, int], str]:\n day, start, end, room = string.split(\"\\t\", 3)\n room = room.split(\"\\t\")[0]\n day = datetime.datetime.strptime(day, \"%Y-%m-%d\")\n start = utils.parse_hm(start)\n end = utils.parse_hm(end)\n return day, start, end, room\n\n dates = list(sorted(parse_date(i) for i in item))\n\n# # first, last event\n# first = last = first_to_last = \"\"\n# if len(dates) > 0:\n# first = dates[ 0][0].strftime(\"%Y-%m-%d\")\n# last = dates[-1][0].strftime(\"%Y-%m-%d\")\n# first_to_last = \"Termine liegen von %s bis %s: \" % (\n# dates[ 0][0].strftime(\"%d. %b\"),\n# dates[-1][0].strftime(\"%d. %b\"),\n# )\n\n # how many weeks does the event repeat?\n uniqdates = {i[:4] for i in dates}\n counted = [(i[0].weekday(), *i[1:]) for i in uniqdates]\n counted = collections.Counter(counted)\n counted: List[Termin] = [\n {\"count\": count, \"day\": v[0], \"start\": v[1], \"end\": v[2], \"room\": v[3],\n \"firstdate\": \"\"}\n for v, count in counted.items()]\n\n # add rooms of weekly events together\n for d in counted:\n# roomlst = [room for i in dates\n# if (i[0].weekday(), i[1], i[2]) ==\n# (d['day'], d['start'], d['end'])\n# for room in i[3].split(\",\")]\n# d['room'] = \", \".join(sorted(set(roomlst)))\n d['firstdate'] = min(i[0] for i in dates\n if (i[0].weekday(), i[1], i[2]) ==\n (d['day'], d['start'], d['end'])).strftime(\"%Y-%m-%d\")\n\n counted.sort(key=lambda a: (a[\"firstdate\"], a[\"start\"]))\n return counted\n\nif __name__ == \"__main__\": main()\n","repo_name":"drcicero/beautiful-tucan","sub_path":"step2.py","file_name":"step2.py","file_ext":"py","file_size_in_byte":19194,"program_lang":"python","lang":"en","doc_type":"code","stars":12,"dataset":"github-code","pt":"86"}
+{"seq_id":"40309480080","text":"from jerex.entities import Document\nfrom jerex.sampling.sampling_common import create_mention_candidates, create_context_tensors, create_mention_tensors, \\\n create_coref_tensors, create_entity_tensors, create_rel_global_tensors, create_rel_mi_tensors, \\\n create_pos_relations, create_neg_relations, create_rel_mention_pairs, \\\n create_pos_coref_pairs, create_neg_coref_pairs, create_entities, create_positive_mentions, \\\n create_negative_mentions, create_mention_candidate_tensors\n\n\ndef create_joint_train_sample(doc: Document, neg_mention_count: int, neg_rel_count: int, neg_coref_count: int,\n max_span_size: int, neg_mention_overlap_ratio: float, rel_type_count: int):\n encodings = doc.encodings # document sub-word encoding\n context_size = len(encodings)\n\n # positive entity mentions\n pos_mention_spans, pos_mention_masks, pos_mention_sizes = create_positive_mentions(doc, context_size)\n\n # negative entity mentions\n neg_mention_spans, neg_mention_sizes, neg_mention_masks = create_negative_mentions(doc, pos_mention_spans,\n neg_mention_count,\n max_span_size,\n context_size,\n overlap_ratio=neg_mention_overlap_ratio)\n\n # entities\n entities, entity_types = create_entities(doc, pos_mention_spans)\n\n # positive coreference pairs\n pos_coref_mention_pairs, pos_coref_spans, pos_eds = create_pos_coref_pairs(doc, pos_mention_spans)\n\n # negative coreference pairs\n neg_coref_mention_pairs, neg_coref_spans, neg_eds = create_neg_coref_pairs(doc, pos_mention_spans,\n neg_coref_count)\n\n # positive relations\n pos_rel_entity_pairs, pos_rel_types, rels_between_entities = create_pos_relations(doc, rel_type_count)\n\n (pos_rel_entity_pair_mp, pos_rel_mention_pair_ep, pos_rel_mention_pairs, pos_rel_ctx_masks,\n pos_rel_token_distances, pos_rel_sentence_distances) = create_rel_mention_pairs(doc, pos_rel_entity_pairs,\n pos_mention_spans, context_size)\n\n # negative relations\n # use only strong negative relations, i.e. pairs of actual (labeled) entities\n neg_rel_entity_pairs, neg_rel_types = create_neg_relations(entities, rels_between_entities,\n rel_type_count, neg_rel_count)\n\n (neg_rel_entity_pair_mp, neg_rel_mention_pair_ep, neg_rel_mention_pairs, neg_rel_ctx_masks,\n neg_rel_token_distances, neg_rel_sentence_distances) = create_rel_mention_pairs(doc, neg_rel_entity_pairs,\n pos_mention_spans, context_size,\n offset_mp=len(\n pos_rel_mention_pairs),\n offset_ep=len(\n pos_rel_entity_pairs))\n\n encodings, context_masks = create_context_tensors(encodings)\n\n mention_types, mention_masks, mention_sizes, mention_spans, mention_sample_masks = create_mention_tensors(\n context_size,\n pos_mention_spans,\n pos_mention_masks,\n pos_mention_sizes,\n neg_mention_spans,\n neg_mention_masks,\n neg_mention_sizes)\n\n (coref_mention_pairs, coref_types, coref_eds, coref_sample_masks) = create_coref_tensors(\n pos_coref_mention_pairs, pos_eds, neg_coref_mention_pairs, neg_eds)\n\n entities, entity_masks, entity_types, entity_sample_masks = create_entity_tensors(entities, entity_types)\n\n rel_entity_pairs, rel_types, rel_sample_masks = create_rel_global_tensors(pos_rel_entity_pairs, pos_rel_types,\n neg_rel_entity_pairs, neg_rel_types)\n\n (rel_entity_pair_mp, rel_mention_pair_ep, rel_mention_pairs, rel_ctx_masks, rel_pair_masks,\n rel_token_distances,\n rel_sentence_distances) = create_rel_mi_tensors(\n context_size,\n pos_rel_entity_pair_mp, pos_rel_mention_pair_ep,\n pos_rel_mention_pairs,\n pos_rel_ctx_masks,\n pos_rel_token_distances,\n pos_rel_sentence_distances,\n neg_rel_entity_pair_mp, neg_rel_mention_pair_ep,\n neg_rel_mention_pairs,\n neg_rel_ctx_masks,\n neg_rel_token_distances,\n neg_rel_sentence_distances)\n\n assert len(mention_masks) == len(mention_sizes) == len(mention_sample_masks) == len(mention_types)\n assert len(coref_mention_pairs) == len(coref_sample_masks) == len(coref_types) == len(coref_eds)\n assert len(entities) == len(entity_types)\n assert len(rel_entity_pairs) == len(rel_types)\n\n return dict(encodings=encodings, context_masks=context_masks, mention_masks=mention_masks,\n mention_sizes=mention_sizes, mention_types=mention_types, mention_sample_masks=mention_sample_masks,\n entities=entities, entity_masks=entity_masks, entity_types=entity_types,\n entity_sample_masks=entity_sample_masks,\n coref_mention_pairs=coref_mention_pairs, coref_types=coref_types,\n coref_eds=coref_eds, coref_sample_masks=coref_sample_masks,\n rel_entity_pairs=rel_entity_pairs, rel_types=rel_types, rel_types_evidence=rel_types,\n rel_sample_masks=rel_sample_masks,\n rel_entity_pair_mp=rel_entity_pair_mp, rel_mention_pair_ep=rel_mention_pair_ep,\n rel_mention_pairs=rel_mention_pairs, rel_ctx_masks=rel_ctx_masks, rel_pair_masks=rel_pair_masks,\n rel_token_distances=rel_token_distances, rel_sentence_distances=rel_sentence_distances)\n\n\ndef create_joint_inference_sample(doc, max_span_size: int):\n encodings = doc.encodings\n context_size = len(encodings)\n\n # create mention candidates\n (mention_masks, mention_sizes, mention_spans,\n mention_orig_spans, mention_sent_indices) = create_mention_candidates(doc, max_span_size, context_size)\n\n (mention_masks, mention_sizes, mention_spans,\n mention_orig_spans, mention_sent_indices, mention_sample_masks) = create_mention_candidate_tensors(context_size,\n mention_masks,\n mention_sizes,\n mention_spans,\n mention_orig_spans,\n mention_sent_indices)\n\n encodings, context_masks = create_context_tensors(encodings)\n\n return dict(encodings=encodings, context_masks=context_masks, mention_masks=mention_masks,\n mention_sizes=mention_sizes, mention_spans=mention_spans, mention_sample_masks=mention_sample_masks,\n mention_orig_spans=mention_orig_spans, mention_sent_indices=mention_sent_indices)\n","repo_name":"lavis-nlp/jerex","sub_path":"jerex/sampling/sampling_joint.py","file_name":"sampling_joint.py","file_ext":"py","file_size_in_byte":7687,"program_lang":"python","lang":"en","doc_type":"code","stars":57,"dataset":"github-code","pt":"86"}
+{"seq_id":"8238487765","text":"from pathlib import Path\n\nimport pytest\n\nfrom hatch_modulefile.inputs import ModulefileInputs\n\nINPUTS_WITH_EXTRAS = {\n \"requires\": [\"test\"],\n \"extra-paths\": [{\"type\": \"setenv\", \"variable\": \"QT_XCB_GL_INTEGRATION\", \"value\": \"none\"}],\n}\n\nINPUTS_WITH_MODULEFILE = {\n \"modulefile_path\": \"custom_modulefile\",\n}\nINPUTS_WITH_EXTRAS_AND_MODULEFILE = {\n \"requires\": [\"test\"],\n \"extra-paths\": [{\"type\": \"setenv\", \"variable\": \"QT_XCB_GL_INTEGRATION\", \"value\": \"none\"}],\n \"modulefile_path\": \"custom_modulefile\",\n}\n\nROOT_DIRECTORY = Path(__file__).parent\n\n\ndef test_read_inputs_extras():\n inputs = ModulefileInputs(INPUTS_WITH_EXTRAS, ROOT_DIRECTORY)\n assert inputs.requires == INPUTS_WITH_EXTRAS[\"requires\"]\n assert inputs.extra_paths == INPUTS_WITH_EXTRAS[\"extra-paths\"]\n assert inputs.modulefile_path is None\n\n\ndef test_read_inputs_specified_modulefile():\n inputs = ModulefileInputs(INPUTS_WITH_MODULEFILE, ROOT_DIRECTORY)\n assert inputs.requires == []\n assert inputs.extra_paths == []\n assert inputs.modulefile_path == ROOT_DIRECTORY.joinpath(INPUTS_WITH_MODULEFILE[\"modulefile_path\"])\n\n\ndef test_read_inputs_specified_modulefile_and_extras():\n with pytest.raises(ValueError, match=\"Cannot combine requires/extra_paths with modulefile_path\"):\n ModulefileInputs(INPUTS_WITH_EXTRAS_AND_MODULEFILE, ROOT_DIRECTORY)\n","repo_name":"ReubenVandezande/hatch-modulefile","sub_path":"tests/test_inputs.py","file_name":"test_inputs.py","file_ext":"py","file_size_in_byte":1355,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"38822192647","text":"import textwrap\nfrom .bltButton import *\nfrom bearlibterminal import terminal\nfrom bltGui import bltSkins as Skins\nfrom .bltControl import bltControl as Control\n\n\nclass bltListbox(Control):\n def __init__(self, owner, x, y, items, collapse=False, lock_focus = False, header = None, w = 15):\n Control.__init__(self, ['hover', 'changed'])\n self.owner = owner\n self.x = x\n self.y = y\n self.w = w\n self.header_h = 0\n self.items = items\n self.header = header\n self.frame_element = False\n self.dirty = True\n self.length = len(max(items, key=len))\n self.selected_index = None\n self.hover_index = -1\n self.hover = False\n self.lock_focus = lock_focus\n\n self.colors = Skins.COLOR_SKINS['GRAY']\n\n self.collapse = collapse\n if self.collapse:\n self.expanded = False\n else:\n self.expanded = True\n\n def apply_header(self):\n if self.header is not None:\n self.header = textwrap.wrap(self.header, self.w-2)\n self.header_h = len(self.header)\n\n def update(self):\n mouse = Input.mouse\n key = Input.key\n if self.owner:\n layer = self.owner.layer\n x = self.owner.pos.x\n y = self.owner.pos.y\n else:\n layer = terminal.state(terminal.TK_LAYER)\n x = 0\n y = 0\n \n if self.expanded:\n if self.hover or self.lock_focus:\n if key is not None and key not in range(128,141):\n if key in [terminal.TK_UP, terminal.TK_DOWN, terminal.TK_ENTER, terminal.TK_KP_ENTER]:\n if self.hover_index is not None:\n if key == terminal.TK_UP:\n if self.hover_index == 0:\n self.hover_index = len(self.items) - 1\n else:\n self.hover_index -= 1\n elif key in [terminal.TK_ENTER, terminal.TK_KP_ENTER]:\n self.selected_index = self.hover_index\n self.dispatch('changed', self.selected_index)\n else:\n if self.hover_index == len(self.items) - 1:\n self.hover_index = 0\n else:\n self.hover_index += 1\n self.dispatch('changed', self.hover_index)\n self.dirty = True\n else:\n if key == terminal.TK_UP:\n self.hover_index = 0\n else:\n self.hover_index = len(self.items) - 1\n self.dispatch('changed', self.hover_index)\n self.dirty = True\n else:\n if isinstance(self.items,list):\n for item in self.items:\n item_index = self.items.index(item)\n cp = 4 + item_index\n if cp == key:\n self.hover_index = item_index\n self.selected_index = item_index\n self.dispatch('changed', self.hover_index)\n self.dispatch('changed', self.selected_index)\n self.dirty = True\n break\n else:\n for item in self.items:\n item_index = list(self.items).index(item)\n cp = 4 + item_index\n if cp == key:\n self.hover_index = item_index\n self.selected_index = item_index\n self.dispatch('changed', self.hover_index)\n self.dispatch('changed', self.selected_index)\n self.dirty = True\n break\n\n\n if mouse.hover_rect(self.x + x, self.y + y, self.length + 1, len(self.items)):\n if mouse.hover_rect(self.x + x + self.length, self.y + y, 1, 1) and self.collapse:\n\n self.hover = True\n if mouse.lbutton_pressed:\n self.expanded = False\n self.dirty = True\n else:\n self.hover = True\n self.hover_index = mouse.cy - (self.y + self.owner.pos.y)\n #DEBUG\n # print(\"Mouse pos: \" + str(mouse.cy))\n # print(\"Control pos: \" + str(self.y))\n # print(\"Owner pos: \" + str(self.owner.pos.y))\n # print(\"Item index: \" + str(self.hover_index))\n self.dispatch('changed', self.hover_index)\n if mouse.lbutton_pressed:\n self.selected_index = mouse.cy - (self.y + self.owner.pos.y)\n self.dispatch('changed', self.selected_index)\n if self.collapse:\n self.expanded = False\n self.dirty = True\n else:\n if self.hover:\n self.dirty = True\n self.hover = False\n self.pressed = False\n #self.hover_index = -1\n elif mouse.hover_rect(self.x + x + self.length, self.y + y, 1, 1) and self.collapse:\n self.hover = True\n if mouse.lbutton_pressed:\n self.expanded = True\n\n else:\n self.hover = False\n if self.collapse:\n self.expanded = False\n\n def draw(self):\n if self.expanded:\n if self.header is not None:\n color = self.colors['COLOR']\n bkcolor = self.colors['BKCOLOR']\n terminal.puts(self.x + self.owner.pos.x, self.y + self.owner.pos.y, self.owner.font + \"[c={0}] {2}\".format(color, bkcolor, self.header))\n for i, item in enumerate(self.items):\n letter_index = ord('a') + i\n color = self.colors['COLOR']\n bkcolor = self.colors['BKCOLOR']\n if i == self.hover_index:\n color = self.colors['HOVER']\n bkcolor = self.colors['BKHOVER']\n if i == self.selected_index:\n color = self.colors['SELECTED']\n bkcolor = self.colors['BKSELECTED']\n\n if bkcolor is not None:\n terminal.puts(self.x + self.owner.pos.x, self.y + self.owner.pos.y + i + self.header_h, self.owner.font + \"[c={0}]\".format(bkcolor) + str(\"[U+2588]\" * (self.length+5)))\n terminal.puts(self.x + self.owner.pos.x, self.y + self.owner.pos.y + i + self.header_h, self.owner.font + \"[c={0}] {3}) {2}\".format(color, bkcolor, item, chr(letter_index)))\n\n if self.collapse:\n bkcolor = self.colors['SELECTED']\n terminal.puts(self.x + self.owner.pos.x + self.length, self.y + self.owner.pos.y,\n \"[c={0}]\".format(bkcolor) + str(\"[U+2588]\"))\n terminal.puts(self.x + self.owner.pos.x + self.length, self.y + self.owner.pos.y,\n \"[c={0}]\".format(color) + str(\"[U+25BC]\"))\n self.dirty = False\n if not self.expanded:\n\n color = self.colors['COLOR']\n bkcolor = self.colors['BKCOLOR']\n\n\n i = self.selected_index\n\n\n if bkcolor is not None:\n terminal.puts(self.x + self.owner.pos.x, self.y + self.owner.pos.y , self.owner.font + \"[c={0}]\".format(bkcolor) + str(\"[U+2588]\" * (self.length+5)))\n if self.selected_index is not None:\n item = self.items[i]\n terminal.puts(self.x + self.owner.pos.x, self.y + self.owner.pos.y, self.owner.font + \"[c={0}] {3}) {2}\".format(color, bkcolor, item, chr(letter_index)))\n\n if self.collapse:\n bkcolor = self.colors['BKCOLOR']\n terminal.puts(self.x + self.owner.pos.x + self.length, self.y + self.owner.pos.y,\n \"[c={0}]\".format(bkcolor) + str(\"[U+2588]\"))\n terminal.puts(self.x + self.owner.pos.x + self.length, self.y + self.owner.pos.y,\n \"[c={0}]\".format(color) + str(\"[U+25B2]\"))\n\n self.dirty = False\n\n def return_item(self):\n if isinstance(self.items,dict):\n item = list(self.items.keys())[self.selected_index]\n else:\n item = self.items[self.selected_index]\n return item\n\n\n\n\n\n\n","repo_name":"networkingguru/CrimsonSand","sub_path":"bltGui/bltListbox.py","file_name":"bltListbox.py","file_ext":"py","file_size_in_byte":8995,"program_lang":"python","lang":"en","doc_type":"code","stars":8,"dataset":"github-code","pt":"86"}
+{"seq_id":"37934075637","text":"\"\"\"\nHome of GstPlayer\n\"\"\"\nimport logging\nfrom queue import Empty\nfrom typing import Dict, List\n\nfrom aioprocessing import AioManager, AioQueue\nimport gi # pylint: disable=import-error\ngi.require_version('Gst', '1.0')\nfrom gi.repository import GLib, Gst # pylint: disable=import-error,wrong-import-position\n\nfrom utils.constants.events import TYPE_ATF, TYPE_STATE, TYPE_REPEAT # pylint: disable=wrong-import-position\n\n# GstPlayer states\nSTATE_READY : str = 'ready'\nSTATE_PLAYING : str = 'playing'\nSTATE_PAUSED : str = 'paused'\nSTATE_ATF : str = 'atf'\nSTATE_ERR : str = 'err'\n\n# GstPlayer commands\nCMD_SHUTDOWN : str = 'shutdown'\nCMD_PLAY : str = 'play'\nCMD_PAUSE : str = 'pause'\nCMD_STOP : str = 'stop'\nCMD_AGAIN : str = 'play_again'\nCMD_REPEAT : str = 'toggle_repeat'\nCMD_SKIP_NEXT : str = 'skip_next'\nCMD_SKIP_FW : str = 'skip_forward'\nCMD_SKIP_BW : str = 'skip_back'\nCMD_SET_POSITION : str = 'set_position'\nCMD_SET_VOLUME : str = 'set_volume'\n\n# GstPlayer dashboard attributes\nDASH_DURATION : str = 'duration'\nDASH_ERROR : str = 'error'\nDASH_POSITION : str = 'position'\nDASH_REPEAT : str = 'repeat'\nDASH_STATE : str = 'state'\nDASH_URI : str = 'uri'\nDASH_VOLUME : str = 'volume'\n\nDASHBOARD : Dict[str, str] = {\n DASH_DURATION: None,\n DASH_ERROR: None,\n DASH_POSITION: None,\n DASH_REPEAT: False,\n DASH_STATE: None,\n DASH_URI: None,\n DASH_VOLUME: None,\n}\n\n# Playbin properties and constants\n_FORMAT_TIME : Gst.Format = Gst.Format(Gst.Format.TIME)\n_NANOSEC_MULT : int = 10 ** 9\n_ATF_THRESHOLD : float = 0.95\n_GST_STATE_TIMEOUT : int = 200 * Gst.MSECOND\n_PROP_VOLUME : str = 'volume'\n_PROP_URI : str = 'uri'\n_PROP_VIS : str = 'vis-plugin'\n_PROP_FLAGS : str = 'flags'\n_PERIODIC_DELAY : int = 500\n_VIS_CLASS : str = 'Visualization'\n_VIS_FLAGS : int = 0x01+0x02+0x08+0x10+0x200+0x400\n\n\n_LOGGER: logging.Logger = logging.getLogger(__name__)\n\nclass _GstPlayerError(Exception):\n \"\"\"General GstPlayer error\"\"\"\n\n\nclass GstPlayer:\n \"\"\"\n Wrapper around Gstreamer process executing playbin.\n All communications with Python are handled by AioQueues and AioManager.\n \"\"\"\n def __init__(\n self,\n dashboard: AioManager,\n command_queue: AioQueue,\n media_queue: AioQueue,\n ui_event_queue: AioQueue,\n visualizer: str = None,\n ):\n self._ui_event_queue: AioQueue = ui_event_queue\n self._command_queue: AioQueue = command_queue\n self._media_queue: AioQueue = media_queue\n self._dashboard: AioManager = dashboard\n\n self._atf_sent: bool = False\n self._repeat: bool = False\n\n # Create gst playbin and set event callbacks\n Gst.init(None)\n self._playbin: Gst.Element = Gst.ElementFactory.make('playbin', 'player')\n self._dashboard[DASH_VOLUME] = self._playbin.get_property(_PROP_VOLUME)\n self._playbin.connect(\"about-to-finish\", self._on_atf)\n bus: Gst.Bus = self._playbin.get_bus()\n bus.add_signal_watch()\n bus.connect('message::error', self._on_error)\n bus.connect('message::eos', self._on_eos)\n bus.connect('message::state-changed', self._on_state_changed)\n if visualizer:\n try:\n self._set_visualizer(visualizer)\n except _GstPlayerError as exc:\n _LOGGER.warning('Cannot set visualizer: %s', exc)\n self._loop: GLib.MainLoop = GLib.MainLoop()\n _LOGGER.debug('Created Gstreamer playbin.')\n\n def run(self) -> None:\n \"\"\"\n Gstreamer's main loop.\n Must be executed as a separate OS process to avoid GIL locks of Python's threads.\n \"\"\"\n self._set_playbin_state(Gst.State.READY)\n\n _LOGGER.debug('Gstreamer playbin is starting.')\n GLib.timeout_add(_PERIODIC_DELAY, self._periodic_task)\n self._loop.run()\n\n self._set_playbin_state(Gst.State.NULL)\n self._playbin = None\n _LOGGER.debug('Gstreamer playbin is shut down.')\n\n def _periodic_task(self) -> bool:\n \"\"\"\n Is called periodically by the GLib's main loop.\n Dequeues pending commands and executes them.\n Updates own state, queues new track URIs to the playbin.\n \"\"\"\n try:\n result = self._command_queue.get(False)\n except Empty:\n result = None\n\n try:\n if result:\n method, args = result\n if not method.startswith('_') and hasattr(self, method):\n getattr(self, method)(**args)\n else:\n _LOGGER.warning('Skipping invalid command: \"%s\"', method)\n if self._state == Gst.State.PLAYING:\n position: float = self._get_media_position()\n self._dashboard[DASH_POSITION] = position\n if self._dashboard[DASH_DURATION] == 0:\n duration: float = self._get_media_duration()\n self._dashboard[DASH_DURATION] = duration\n elif self._state == Gst.State.READY:\n self._dequeue_next_media()\n except _GstPlayerError as exc:\n self._error_handler(exc)\n return False\n\n return True\n\n # Pipeline commands that can be called via _command_queue\n def shutdown(self) -> None:\n \"\"\"Shutdown process.\"\"\"\n if self._state != Gst.State.NULL:\n self.stop()\n if self._loop.is_running():\n self._loop.quit()\n\n def play(self) -> None:\n \"\"\"Change state to playing.\"\"\"\n if self._state == Gst.State.PAUSED:\n self._set_playbin_state(Gst.State.PLAYING)\n\n def pause(self) -> None:\n \"\"\"Change state to paused.\"\"\"\n if self._state == Gst.State.PLAYING:\n self._set_playbin_state(Gst.State.PAUSED)\n\n def stop(self) -> None:\n \"\"\"Stop pipeline.\"\"\"\n self._set_playbin_state(Gst.State.READY)\n\n def play_again(self) -> None:\n \"\"\"Start from the beginning.\"\"\"\n self.set_position(0)\n\n def toggle_repeat(self) -> None:\n \"\"\"Toggle repeat of current track.\"\"\"\n self._set_repeat(not self._repeat)\n\n def skip_next(self) -> None:\n \"\"\"Skip to the next media.\"\"\"\n if self._repeat:\n self._set_repeat(False)\n self._on_atf(None)\n self._set_playbin_state(Gst.State.READY)\n\n def skip_forward(self) -> None:\n \"\"\"Skip 5% of media.\"\"\"\n inc = self._get_media_duration() / 20\n current = self._get_media_position()\n self.set_position(current + inc)\n\n def skip_back(self) -> None:\n \"\"\"Back 5% of media.\"\"\"\n inc = self._get_media_duration() / 20\n current = self._get_media_position()\n self.set_position(current - inc)\n\n def set_position(self, position: float) -> None:\n \"\"\"Set media position.\"\"\"\n duration: float = self._get_media_duration()\n if position > duration - (duration * 0.01):\n # Emission of ATF during seek is unreliable,\n # leave some time for track to complete and fire ATF\n return\n position = max(position, 0)\n self._playbin.seek_simple(\n _FORMAT_TIME, Gst.SeekFlags.FLUSH,\n position * _NANOSEC_MULT\n )\n self._dashboard[DASH_POSITION] = position\n _LOGGER.debug('Set position to %d s.', position)\n\n def set_volume(self, volume: float) -> None:\n \"\"\"Set volume.\"\"\"\n self._playbin.set_property(_PROP_VOLUME, volume)\n self._dashboard[DASH_VOLUME] = volume\n _LOGGER.debug('volume set to %.2f', volume)\n\n # Private pipeline properties and methods\n @property\n def _state(self) -> Gst.State:\n \"\"\"Return only final state, wait if state change is currently transient\"\"\"\n result, current, pending = self._playbin.get_state(_GST_STATE_TIMEOUT)\n while result != Gst.StateChangeReturn.SUCCESS and pending != Gst.State.VOID_PENDING:\n if result == Gst.StateChangeReturn.FAILURE:\n raise _GstPlayerError('Unable to get current playbin state.')\n _LOGGER.debug('---TRANSIENT STATE---')\n result, current, pending = self._playbin.get_state(_GST_STATE_TIMEOUT)\n\n return current\n\n def _set_repeat(self, val: bool) -> None:\n self._repeat = val\n self._dashboard[DASH_REPEAT] = self._repeat\n self._emit_repeat_event()\n _LOGGER.debug('Repeat: %s.', 'enabled' if self._repeat else 'disabled')\n\n def _get_media_duration(self) -> float:\n \"\"\"Get media duration.\"\"\"\n duration = 0.0\n if self._state in [Gst.State.PAUSED, Gst.State.PLAYING]:\n ok, dur = self._playbin.query_duration(_FORMAT_TIME)\n if ok:\n duration = dur // _NANOSEC_MULT\n return duration\n\n def _get_media_position(self) -> float:\n \"\"\"Get media position.\"\"\"\n position: float = 0.0\n if self._state in [Gst.State.PAUSED, Gst.State.PLAYING]:\n position = self._dashboard[DASH_POSITION]\n ok, pos = self._playbin.query_position(_FORMAT_TIME)\n if ok:\n position = pos // _NANOSEC_MULT\n return position\n\n def _dequeue_next_media(self) -> None:\n \"\"\"Get next uri from media queue and set it as next uri in the playbin\"\"\"\n if not self._repeat:\n try:\n uri: str = self._media_queue.get(False)\n except Empty:\n return\n self._dashboard[DASH_URI] = uri\n self._dashboard[DASH_POSITION] = 0\n self._dashboard[DASH_DURATION] = 0\n self._playbin.set_property(_PROP_URI, uri)\n _LOGGER.debug('Dequeued %s.', self._playbin.get_property(_PROP_URI))\n else:\n self.play_again()\n self._atf_sent = False\n if self._state == Gst.State.READY:\n self._set_playbin_state(Gst.State.PLAYING)\n\n def _set_own_state(self, state: str, emit: bool = True) -> None:\n self._dashboard[DASH_STATE] = state\n if emit:\n self._emit_state_event()\n\n def _set_playbin_state(self, state: Gst.State):\n if self._playbin.set_state(state) == Gst.StateChangeReturn.FAILURE:\n raise _GstPlayerError(f'Unable to set the pipeline to the {state.name} state.')\n\n def _emit_state_event(self) -> None:\n self._ui_event_queue.put({'type': TYPE_STATE})\n\n def _emit_repeat_event(self) -> None:\n self._ui_event_queue.put({'type': TYPE_REPEAT})\n\n def _emit_atf_event(self) -> None:\n if not self._atf_sent:\n self._ui_event_queue.put({'type': TYPE_ATF})\n self._atf_sent = True\n\n def _eos_handler(self):\n self._set_playbin_state(Gst.State.READY)\n _LOGGER.debug('Finished %s.', self._dashboard[DASH_URI])\n\n def _error_handler(self, error: str):\n # Stop and shutdown if something goes wrong.\n _LOGGER.error('Gstreamer fired error: %s. Shutting down.', error)\n self._dashboard[DASH_ERROR] = error\n self._set_own_state(STATE_ERR)\n self.shutdown()\n\n def _set_visualizer(self, name: str):\n vis_list: List[Gst.ElementFactory] = Gst.Registry.feature_filter(\n Gst.Registry.get(),\n lambda e, _: isinstance(e, Gst.ElementFactory) and e.get_klass() == _VIS_CLASS,\n False,\n None)\n for item in vis_list:\n if item.name == name:\n self._playbin.set_property(_PROP_VIS, Gst.ElementFactory.create(item))\n self._playbin.set_property(_PROP_FLAGS, _VIS_FLAGS)\n return\n raise _GstPlayerError(f'No such visualizer: {name}!')\n\n # Pipeline events handlers\n def _on_atf(self, stream: Gst.Stream) -> None: # pylint: disable=unused-argument\n _LOGGER.debug('Track %s about to finish.', self._playbin.get_property(_PROP_URI))\n if not self._repeat:\n self._emit_atf_event()\n return\n _LOGGER.debug('Repeating.')\n\n def _on_error(self, bus: Gst.Bus, message: Gst.Message) -> None: # pylint: disable=unused-argument\n error, debug = message.parse_error()\n _LOGGER.warning('Gstreamer error details: %s.', debug)\n self._error_handler(error)\n\n def _on_eos(self, bus: Gst.Bus, message: Gst.Message) -> None: # pylint: disable=unused-argument\n # Just change internal state, next media URI will be requested and\n # queued after ATF event and will be dequeued in the run loop.\n self._eos_handler()\n\n def _on_state_changed(self, bus: Gst.Bus, message: Gst.Message) -> None: # pylint: disable=unused-argument\n if not message.src == self._playbin:\n return\n old, new, pending = message.parse_state_changed()\n _LOGGER.debug('GST state %s -> %s -> (%s).',\n Gst.Element.state_get_name(old),\n Gst.Element.state_get_name(new),\n Gst.Element.state_get_name(pending))\n if new == Gst.State.PLAYING:\n self._set_own_state(STATE_PLAYING)\n elif new == Gst.State.READY:\n self._set_own_state(STATE_READY)\n elif new == Gst.State.PAUSED:\n self._set_own_state(STATE_PAUSED)\n","repo_name":"dfokin/yaMusic","sub_path":"yamusic/gstreamer/gst.py","file_name":"gst.py","file_ext":"py","file_size_in_byte":13710,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"25785497696","text":"from django.db import models\nfrom DjangoUeditor.models import UEditorField\nimport django.utils.timezone as timezone\n\n\nclass MyNew(models.Model):\n NEWS_CHOICES = (\n ('行业新闻', '行业新闻'),\n ('公司新闻', '公司新闻'),\n )\n title = models.CharField(max_length=50, verbose_name='新闻标题')\n newType = models.CharField(choices=NEWS_CHOICES,\n max_length=50,\n verbose_name='新闻类型')\n img = models.ImageField(verbose_name='缩略图',\n upload_to='Award/',\n blank=True) # 新闻图片\n content = UEditorField(verbose_name='内容',\n width=700,\n height=400,\n toolbars='full',\n imagePath='ueditor/images/',\n filePath='ueditor/files/',\n upload_settings={'iamgesMaxSizing': 1024000},\n default='')\n publishDate = models.DateTimeField(max_length=20,\n default=timezone.now,\n verbose_name='发布时间')\n\n def __str__(self):\n return self.title\n\n class Meta:\n ordering = ['-publishDate']\n verbose_name = '新闻'\n verbose_name_plural = verbose_name\n","repo_name":"sxp2015/my-app2","sub_path":"newsApp/models.py","file_name":"models.py","file_ext":"py","file_size_in_byte":1400,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"16255634697","text":"'''\n#############################################################################################################\n**题目121:(数组)\n给定一个数组 prices ,它的第 i 个元素 prices[i] 表示一支给定股票第 i 天的价格。\n你只能选择 某一天 买入这只股票,并选择在 未来的某一个不同的日子 卖出该股票。设计一个算法来计算你所能获取的最大利润。\n返回你可以从这笔交易中获取的最大利润。如果你不能获取任何利润,返回 0 。\n**示例:\n输入:[7,1,5,3,6,4]\n输出:5\n解释:在第 2 天(股票价格 = 1)的时候买入,在第 5 天(股票价格 = 6)的时候卖出,最大利润 = 6-1 = 5 。\n 注意利润不能是 7-1 = 6, 因为卖出价格需要大于买入价格;同时,你不能在买入前卖出股票。\n**条件:\n1 <= prices.length <= 105\n0 <= prices[i] <= 104\n#############################################################################################################\n'''\n\n\n\n\n'''\n动规方法:\ndp定义:dp[i][k][j]代表第i天,还剩买卖机会k次,目前��股状态为j。j可选0可选1,0代表目前是无股的状态,1代表目前是有股的状态\n转移方程为:dp[i][k][0]=(dp[i-1][k][0],dp[i-1][k][1]+price[i]);\ndp[i][k][1]=dp[i-1][k][1],dp[i-1][k-1][0]-price[i]\nbase case为:dp[i][0][0]=0,dp[i][0][1]=-float('inf') \n由于k固定为仅允许交易一次,因此三维dp可简化为二维dp\n复杂度分析:\n时间复杂度:O(N)\n空间复杂度:O(N)\n'''\nclass Solution1(object):\n def maxProfit(self, prices):\n m=len(prices)\n dp=[[0]*2 for _ in range(m+1)]\n dp[0][1]=-float('inf')\n for i in range(m):\n dp[i+1][0]=max(dp[i][0],dp[i][1]+prices[i])\n dp[i+1][1]=max(dp[i][1],-prices[i])\n return dp[m][0]\n\n'''\n动规优化空间:\ndp[i+1][0]只与dp[i][0]及dp[i][1]有关\ndp[i+1][1]与dp[i][1]有关\n复杂度分析:\n时间复杂度:O(N)\n空间复杂度:O(1)\n'''\nclass Solution1(object):\n def maxProfit(self, prices):\n m=len(prices)\n pre0=0\n pre1=-float('inf')\n for i in range(m):\n pre0=max(pre0,pre1+prices[i])\n pre1=max(pre1,-prices[i])\n return pre0\n\n\n'''\n贪心方法:\n如果第i天股票的价格大于之前的买入的价格,那么就用在用之前的价格买入,并找后面价格最高时卖掉。\n如果第i天股票的价格小于之前的买入的价格,则在第i天买入\n复杂度分析:\n时间复杂度:O(N)\n空间复杂度:O(1)\n'''\nclass Solution2(object):\n def maxProfit(self, prices):\n max_val=0\n min_buy=float('inf')\n for i in range(len(prices)):\n if min_buy List[str]:\n arr = text.split(\" \")\n ans = []\n\n for i in range(2, len(arr)):\n fs = arr[i - 2]\n ss = arr[i - 1]\n ts = arr[i]\n if fs == first and ss == second:\n ans.append(ts)\n\n return ans\n\n\nassert Solution().findOcurrences(text=\"alice is a good girl she is a good student\", first=\"a\", second=\"good\") == [\n \"girl\", \"student\"]\n","repo_name":"haxul/algorithm_tasks_solving","sub_path":"python/leetcode/1078. Occurrences After Bigram.py","file_name":"1078. Occurrences After Bigram.py","file_ext":"py","file_size_in_byte":549,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"13058324904","text":"from fpdf import FPDF\nimport jsonlines\nfrom typing import Dict, List\n\ndef get_policies(data):\n polices = set()\n for sample in data:\n for completion in sample[\"completions\"]:\n polices.add(completion[\"policy_id\"])\n return list(polices)\n\ndef prompt_and_completions(data: List[Dict], num_samples: int, output_path: str):\n font_family = 'Arial'\n font_size = 8\n cell_height = 4\n \n pdf = FPDF()\n\n pdf.add_page()\n pdf.set_font(font_family, '', font_size) \n\n cnt = 0\n for i, sample in enumerate(data):\n if cnt >= num_samples:\n break\n \n prompt = sample[\"prompt\"]\n pdf.add_page()\n \n pdf.set_font(font_family, 'B', font_size)\n pdf.cell(0, cell_height, f'Prompt {i}', ln=1)\n\n pdf.set_font(font_family, '', font_size)\n prompt = prompt.encode('latin-1', 'replace').decode('latin-1')\n pdf.multi_cell(0, cell_height, prompt, border=1)\n\n continuations = {}\n for completion in sample[\"completions\"]:\n continuations[completion[\"policy_id\"]] = completion[\"completion_str\"]\n\n for policy, completion_str in continuations.items():\n if completion_str is None:\n continue\n pdf.ln()\n\n pdf.set_font(font_family, 'B', font_size)\n pdf.cell(0, cell_height, f'{policy}', ln=1)\n\n pdf.set_font(font_family, '', font_size)\n completion_str = completion_str.encode('latin-1', 'replace').decode('latin-1')\n pdf.multi_cell(0, cell_height, completion_str, border=1) \n\n cnt+=1 \n pdf.output(output_path, \"F\")\n \n\ndef main(input_path, output_path, reward_model):\n with jsonlines.open(input_path, \"r\") as reader:\n data = list(reader)\n\n font_family = 'Arial'\n font_size = 8\n cell_height = 4\n \n pdf = FPDF()\n\n pdf.add_page()\n pdf.set_font(font_family, '', font_size)\n policies = get_policies(data)\n\n for i, policy in enumerate(policies):\n pdf.cell(0, cell_height, f'{policy}', ln=1)\n\n pdf.cell(0, cell_height, f'Reward model: {reward_model}', ln=1)\n\n for i, sample in enumerate(data):\n prompt = sample[\"prompt\"]\n pdf.add_page()\n \n pdf.set_font(font_family, 'B', font_size)\n pdf.cell(0, cell_height, f'Prompt {i}', ln=1)\n\n pdf.set_font(font_family, '', font_size)\n prompt = prompt.encode('latin-1', 'replace').decode('latin-1')\n pdf.multi_cell(0, cell_height, prompt, border=1)\n\n continuations = {}\n for completion in sample[\"completions\"]:\n continuations[completion[\"policy_id\"]] = (completion[\"completion_str\"], completion[\"rank\"], completion[\"score\"], completion[\"normalized_score\"])\n\n for policy, (continuation, rank, score, normalized_score) in continuations.items():\n pdf.ln()\n\n pdf.set_font(font_family, 'B', font_size)\n pdf.cell(0, cell_height, f'{policy}', ln=1)\n\n pdf.set_font(font_family, '', font_size)\n\n pdf.cell(0, cell_height, f'Rank: {rank} | Score: {score:.3f} | Normalized score: {normalized_score:.3f}', ln=1)\n\n continuation = continuation.encode('latin-1', 'replace').decode('latin-1')\n pdf.multi_cell(0, cell_height, continuation, border=1)\n \n pdf.output(output_path, \"F\")\n\n\n\nif __name__ == \"__main__\":\n import argparse\n parser = argparse.ArgumentParser()\n parser.add_argument(\"--input_path\", type=str, required=True)\n parser.add_argument(\"--output_path\", type=str, required=True)\n parser.add_argument(\"--reward_model\", type=str, required=True)\n args = parser.parse_args()\n \n main(args.input_path, args.output_path, args.reward_model)","repo_name":"hsl89/mstar","sub_path":"scripts/rlhf/reward_model/data_analysis/generate_report.py","file_name":"generate_report.py","file_ext":"py","file_size_in_byte":3747,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"33550419413","text":"# -*- coding: utf-8 -*-\r\nimport sys, os\r\nimport torch\r\nimport numpy as np\r\nimport torch.nn.functional as F\r\nfrom torch.utils.data import DataLoader\r\nfrom torchvision import datasets, transforms\r\nfrom torch.utils.data.sampler import SubsetRandomSampler\r\nimport matplotlib.pyplot as plt\r\nfrom tqdm import tqdm\r\nMODEL_PATH = \"MLPmodel.pth.tar\"\r\nMODEL_PATH_SUB = \"MLPmodel2.pth.tar\"\r\n\r\ndef load_cifar10(batch=100):\r\n num_workers = 0\r\n valid_size = 0.2\r\n train_data = datasets.CIFAR10('./data', train=True, download=True, transform=transforms.Compose([ transforms.ToTensor(), transforms.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])]))\r\n test_data = datasets.CIFAR10('./data', train=False, download=True, transform=transforms.Compose([ transforms.ToTensor(), transforms.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])]))\r\n \"\"\"train_loader = DataLoader(\r\n datasets.CIFAR10('./data',\r\n train=True,\r\n download=True,\r\n transform=transforms.Compose([\r\n transforms.ToTensor(),\r\n transforms.Normalize(\r\n [0.5, 0.5, 0.5], # RGB 平均\r\n [0.5, 0.5, 0.5] # RGB 標準偏差\r\n )\r\n ])),\r\n batch_size=batch,\r\n shuffle=True\r\n )\r\n\r\n test_loader = DataLoader(\r\n datasets.CIFAR10('./data',\r\n train=False,\r\n download=True,\r\n transform=transforms.Compose([\r\n transforms.ToTensor(),\r\n transforms.Normalize(\r\n [0.5, 0.5, 0.5], # RGB 平均\r\n [0.5, 0.5, 0.5] # RGB 標準偏差\r\n )\r\n ])),\r\n batch_size=batch,\r\n shuffle=True\r\n )\"\"\"\r\n num_train = len(train_data)\r\n indices = list(range(num_train))\r\n np.random.shuffle(indices)\r\n # trainとvalidの境目(split)を指定\r\n split = int(np.floor(valid_size * num_train))\r\n train_index, valid_index = indices[split:], indices[:split]\r\n\r\n # samplerの準備\r\n train_sampler = SubsetRandomSampler(train_index)\r\n valid_sampler = SubsetRandomSampler(valid_index)\r\n # data loaderの準備\r\n train_loader = torch.utils.data.DataLoader(train_data, batch_size = batch,\r\n sampler = train_sampler, num_workers = num_workers)\r\n valid_loader = torch.utils.data.DataLoader(train_data, batch_size = batch,\r\n sampler = valid_sampler, num_workers = num_workers)\r\n test_loader = torch.utils.data.DataLoader(test_data, batch_size = batch,\r\n num_workers = num_workers)\r\n\r\n return {'train_loader': train_loader, 'valid_loader': valid_loader, 'test_loader': test_loader}\r\n\r\nclass MyMLP(torch.nn.Module):\r\n def __init__(self):\r\n super(MyMLP, self).__init__()\r\n # 隠れ層 (512)\r\n hidden_1 = 1000\r\n hidden_2 = 1000\r\n hidden_3 = 1000\r\n hidden_4 = 200\r\n self.fc1 = torch.nn.Linear(16 * 3 * 8 * 8, hidden_1)\r\n torch.nn.init.kaiming_normal_(self.fc1.weight)\r\n self.fc2 = torch.nn.Linear(hidden_1,hidden_2)\r\n torch.nn.init.kaiming_normal_(self.fc2.weight)\r\n self.fc3 = torch.nn.Linear(hidden_2,hidden_3)\r\n torch.nn.init.kaiming_normal_(self.fc3.weight)\r\n self.fc4 = torch.nn.Linear(hidden_3,hidden_4)\r\n torch.nn.init.kaiming_normal_(self.fc4.weight)\r\n self.fc5 = torch.nn.Linear(hidden_4,10)\r\n torch.nn.init.kaiming_normal_(self.fc5.weight)\r\n self.droput = torch.nn.Dropout(0.2)\r\n\r\n def forward(self, x):\r\n # flatten image input\r\n x = x.view(-1,16 * 3 * 8 * 8)\r\n # activation functionとしてrelu\r\n x = F.relu(self.fc1(x))\r\n # add dropout layer\r\n x = self.droput(x)\r\n # activation functionとしてrelu\r\n x = F.relu(self.fc2(x))\r\n x = self.droput(x)\r\n x = F.relu(self.fc3(x))\r\n x = self.droput(x)\r\n x = F.relu(self.fc4(x))\r\n x = self.droput(x)\r\n x = self.fc5(x)\r\n return F.log_softmax(x,dim=1)\r\n\r\n#def save_checkpoint(state, filename = MODEL_PATH):\r\n# torch.save(state, filename)\r\n\r\ndef train():\r\n print(\"will begin training\")\r\n for ep in range(epoch):\r\n train_loss_total = 0\r\n train_acc_total = 0\r\n valid_loss_total = 0\r\n valid_acc_total = 0\r\n net.train()\r\n loss = None\r\n for i, (images, labels) in enumerate(loader['train_loader']):\r\n optimizer.zero_grad()\r\n output = net(images)\r\n loss = criterion(output, labels)\r\n # 出力と結果が一致している個数を計算\r\n _,pred = torch.max(output,1)\r\n acc = np.squeeze(pred.eq(labels.data.view_as(pred)).sum())\r\n train_acc_total += acc\r\n loss.backward()\r\n optimizer.step()\r\n # training lossの計算\r\n train_loss_total += loss.item() * images.size(0)\r\n \"\"\"save_checkpoint({ # save parameters\r\n 'epoch': ep + 1,\r\n 'state_dict': net.state_dict(),\r\n 'optimizer' : optimizer.state_dict()\r\n })\"\"\"\r\n if i % 10 == 0:\r\n print('Training log: {} epoch ({} / 50000 train. data). Loss: {}, Acc: {}'.format(ep + 1,\r\n (i + 1) * 128,\r\n loss.item(),\r\n acc)\r\n )\r\n\r\n torch.save(net.state_dict(), MODEL_PATH)\r\n torch.save(net.state_dict(), MODEL_PATH_SUB)\r\n train_loss = train_loss_total / len(loader['train_loader'].sampler)\r\n train_acc = train_acc_total.item() / len(loader['train_loader'].sampler)\r\n\r\n history['train_loss'].append(train_loss)\r\n history['train_acc'].append(train_acc)\r\n\r\n net.eval()\r\n correct = 0\r\n with torch.no_grad():\r\n for i, (images, labels) in enumerate(tqdm(loader['valid_loader'])):\r\n outputs = net(images)\r\n loss = criterion(outputs,labels) # 損失を計算\r\n # 出力と結果が一致している個数を計算\r\n _,pred = torch.max(outputs,1)\r\n acc = np.squeeze(pred.eq(labels.data.view_as(pred)).sum())\r\n valid_acc_total += acc\r\n # validation lossの計算\r\n valid_loss_total += loss.item() * images.size(0)\r\n\r\n valid_loss = valid_loss_total / len(loader['valid_loader'].sampler)\r\n valid_acc = valid_acc_total.item() / len(loader['valid_loader'].sampler)\r\n #acc = float(correct / 50000)\r\n history['valid_loss'].append(valid_loss)\r\n history['valid_acc'].append(valid_acc)\r\n\r\ndef test():\r\n #correct = 0\r\n test_loss_total = 0\r\n test_acc_total = 0\r\n total = 0\r\n class_correct = list(0. for i in range(10))\r\n class_total = list(0. for i in range(10))\r\n net.eval() # ネットワークを推論モードへ\r\n with torch.no_grad():\r\n for i, (images, labels) in enumerate(tqdm(loader['test_loader'])):\r\n outputs = net(images)\r\n loss = criterion(outputs,labels) # 損失を計算\r\n # 出力と結果が一致している個数を計算\r\n _,pred = torch.max(outputs,1)\r\n test_acc_total += np.squeeze(pred.eq(labels.data.view_as(pred)).sum())\r\n total += labels.size(0)\r\n test_loss_total += loss.item()*images.size(0)\r\n #correct += (predicted == labels).sum()\r\n c = (pred == labels).squeeze()\r\n for i in range(4):\r\n label = labels[i]\r\n class_correct[label] += c[i]\r\n class_total[label] += 1\r\n\r\n #acc = float(correct / 10000)\r\n test_loss = test_loss_total / len(loader['test_loader'].sampler)\r\n test_acc = test_acc_total.item() / len(loader['test_loader'].sampler)\r\n history['test_loss'].append(test_loss)\r\n history['test_acc'].append(test_acc)\r\n\r\n print('Accuracy of the network on the 10000 test images: %d %%' % (\r\n 100 * test_acc_total.item() / total))\r\n for i in range(10):\r\n print('Accuracy of %5s : %2d %%' % (\r\n classes[i], 100 * class_correct[i] / class_total[i]))\r\n\r\ndef plot():\r\n # 結果をプロット\r\n plt.figure()\r\n plt.plot(range(1, epoch+1), history['train_loss'], label='train_loss', color='red')\r\n plt.plot(range(1, epoch+1), history['valid_loss'], label='val_loss', color='blue')\r\n plt.title('MLP Training Loss [CIFAR10]')\r\n plt.xlabel('epoch')\r\n plt.ylabel('loss')\r\n plt.legend()\r\n plt.savefig('img/MLP_cifar10_loss.png')\r\n\r\n plt.figure()\r\n plt.plot(range(1, epoch+1), history['train_acc'], label='train_acc', color='red')\r\n plt.plot(range(1, epoch+1), history['valid_acc'], label='val_acc', color='blue')\r\n plt.title('MLP Accuracies [CIFAR10]')\r\n plt.xlabel('epoch')\r\n plt.ylabel('accuracy')\r\n plt.legend()\r\n plt.savefig('img/MLP_cifar10_acc.png')\r\n plt.close()\r\n\r\nif __name__ == '__main__':\r\n epoch = 50\r\n loader = load_cifar10()\r\n classes = ('plane', 'car', 'bird', 'cat', 'deer',\r\n 'dog', 'frog', 'horse', 'ship', 'truck') # CIFAR10のクラス\r\n\r\n net: MyMLP = MyMLP()\r\n criterion = torch.nn.CrossEntropyLoss() # ロスの計算\r\n optimizer = torch.optim.SGD(params=net.parameters(), lr=0.001, momentum=0.9,weight_decay=0.00005)\r\n flag = os.path.exists(MODEL_PATH)\r\n if flag: #前回の続きから学習\r\n print('loading parameters...')\r\n #net.load_state_dict(torch.load(MODEL_PATH))\r\n source = torch.load(MODEL_PATH, map_location=lambda storage, loc: storage)\r\n net.load_state_dict(source)\r\n print('parameters loaded')\r\n\r\n history = {\r\n 'train_loss': [],\r\n 'train_acc': [],\r\n 'valid_loss': [],\r\n 'valid_acc': [],\r\n 'test_loss': [],\r\n 'test_acc': []\r\n }\r\n train()\r\n test()\r\n if flag == False:\r\n plot()\r\n","repo_name":"itakumi/B4-","sub_path":"スタートアップ/CIFAR10/MLP/MLP.py","file_name":"MLP.py","file_ext":"py","file_size_in_byte":10449,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27834190824","text":"from DAO.TermometroDAO import TermometroDAO\nfrom DAO.PersonaDAO import PersonaDAO\nfrom Modelos.Persona import Persona\nfrom Modelos.Termometro import Termometro\nfrom os import system\nfrom tabulate import tabulate\n\nimport time\nimport Vista.Menu as Menu\n\ndao_persona = PersonaDAO()\ndao_termometro = TermometroDAO()\n\ndef start():\n op = 1\n while op in [1, 2, 3]:\n op = Menu.menu()\n if op == 1:\n system('cls')\n print('******************CARGA AL SISTEMA******************')\n name = input('| Ingrese nombre.................: ')\n temp = input('| Ingrese temperatura corporal...: ')\n temp = temp + '°'\n \n persona = Persona(name)\n if not dao_persona.exists(persona.nombre):\n dao_persona.add(persona)\n\n persona.id = dao_persona.get_id_by_name(persona.nombre)\n\n termometro = Termometro(temp, time.strftime(\"%x\") + \" | \" + time.strftime(\"%X\"), persona.id)\n dao_termometro.add(persona, termometro.temperatura, termometro.fecha)\n\n system('cls')\n\n elif op == 2:\n system('cls')\n print('******************CARGA AL SISTEMA******************')\n name = input('| Ingrese nombre.................: ')\n temp = input('| Ingrese temperatura corporal...: ')\n temp = temp + '°'\n hora = input('| Ingrese la hora (HH-MM-SS).....: ')\n\n persona = Persona(name)\n if not dao_persona.exists(persona.nombre):\n dao_persona.add(persona)\n\n persona.id = dao_persona.get_id_by_name(persona.nombre)\n\n termometro = Termometro(temp, time.strftime(\"%x\") + \" | \" + hora, persona.id)\n dao_termometro.add(persona, termometro.temperatura, termometro.fecha)\n\n system('cls')\n\n elif op == 3:\n system('cls')\n name = input('| Ingrese nombre.................: ')\n if not dao_persona.exists(name):\n print('|| Ese no existe! cargue en el sistema sus temperaturas ||')\n system('pause')\n system('cls')\n else:\n system('cls')\n id_persona = dao_persona.get_id_by_name(name)\n lista = dao_termometro.get_temperatura_persona(id_persona)\n print(tabulate(lista, headers=['Temperatura', 'Fecha'], showindex=True), end='\\n')\n system('pause')\n system('cls')\n","repo_name":"JuanGilSosa/Temperatura-Paciente","sub_path":"Controllers/MainController.py","file_name":"MainController.py","file_ext":"py","file_size_in_byte":2529,"program_lang":"python","lang":"es","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34050307491","text":"import pandas as pd\nimport numpy as np\nfrom sklearn.model_selection import train_test_split\nfrom keras.models import Sequential\nfrom keras.optimizers import Adam\nfrom keras.callbacks import ModelCheckpoint\nfrom keras.layers import Lambda, Conv2D, MaxPooling2D, Dropout, Dense, Flatten\nfrom utils import INPUT_SHAPE, batch_generator\nimport argparse\nimport cv2, os\nimport matplotlib.pyplot as plt\n\nnp.random.seed(0)\n\n\ndef load_data(args):\n \"\"\"\n Load training data and split it into training and validation set\n \"\"\"\n data_df = pd.read_csv(os.path.join(os.getcwd(), args.data_dir, 'driver_log_02.csv'), names=['center', 'aceleracao', 'rotacao']) #carrega o arquivo CSV para o DataFrame e atribuir os valores de imagens para center, aceleração para aceleração e rotação para rotação\n\n X = data_df['center'].values #colocar o valor do dataframe center pro X\n y = data_df[['rotacao']].values #colocar o valor do dataframe center pro Y (rotação)\n\n X_train, X_valid, y_train, y_valid = train_test_split(X, y, test_size=args.test_size, random_state=0) #random_state = pegar as imagens em ordem aleatória\n\t#test_size = percentual de treino e teste\n print('--------- ESSE E O X TRAIN -------------')\n print(X_train)\n\n print('--------- ESSE E O X VALID -------------')\n print(X_valid)\n print('--------- ESSE E O Y TRAIN -------------')\n print(y_train)\n print('--------- ESSE E O Y VALID -------------')\n print(y_valid)\n print(args.data_dir)\n\n return X_train, X_valid, y_train, y_valid\n\n\ndef build_model(args): #criar a rede neural\n\n model = Sequential() #cria um espaço em branco na memoria para o keras trabalhar (modelo sequencial)\n model.add(Lambda(lambda x: x/127.5-1.0, input_shape=INPUT_SHAPE)) #camada de normalização de imagem (ele vai escapar da saturação e o gradiente vai funcionar melhor) os números acima foram escolhidos depois de treinar e escolher diferentes valores. Esses foram os melhores. eles normalizam as imagens assim que são colocadas e evitam a saturação e fazem com que o gradiente funcione melhor.\n#ou seja, as imagens podem vim com sombras, de má qualidade. Essa função pode formatar e remodelar a imagem para trazer boas predições.\n model.add(Conv2D(24, 5, 5, activation='elu', subsample=(2, 2))) #ELU = exponetial linear units ( usa ele porque ele cuida do problema gradiente de fuga)\n model.add(Conv2D(36, 5, 5, activation='elu', subsample=(2, 2)))\n model.add(Conv2D(48, 5, 5, activation='elu', subsample=(2, 2)))\n model.add(Conv2D(64, 3, 3, activation='elu'))\n model.add(Conv2D(64, 3, 3, activation='elu'))\n model.add(Dropout(args.keep_prob))\n model.add(Flatten())\n model.add(Dense(100, activation='elu'))\n model.add(Dense(50, activation='elu'))\n model.add(Dense(10, activation='elu'))\n model.add(Dense(1))\n model.summary() #imprime os valores dos layers\n\n return model\n\n\ndef train_model(model, args, X_train, X_valid, y_train, y_valid): #treinar o modelo\n \"\"\"\n Train the model\n \"\"\"\n checkpoint = ModelCheckpoint('model-{epoch:03d}.h5', #procurar ModelCheckpoint no keras\n monitor='val_loss', \n verbose=0, \n save_best_only=args.save_best_only, \n mode='auto')\n\n model.compile(loss='mean_squared_error', optimizer=Adam(lr=args.learning_rate)) #mean_squared_error no youtube\n\n model.fit_generator(batch_generator(args.data_dir, X_train, y_train, args.batch_size, True), #treinamento do modelo \n args.samples_per_epoch, \n args.nb_epoch,\n max_q_size=1,\n validation_data=batch_generator(args.data_dir, X_valid, y_valid, args.batch_size, False), #compara o treinamento com os dados validos\n nb_val_samples=len(X_valid),\n callbacks=[checkpoint], \n verbose=1)\n\n\ndef s2b(s): #converter uma string para um valor booleano\n \"\"\"\n Converts a string to boolean value\n \"\"\"\n s = s.lower()\n return s == 'true' or s == 'yes' or s == 'y' or s == '1'\n\n\ndef main(): #Parametros do modelo\n \"\"\"\n Load train/validation data set and train the model\n \"\"\"\n parser = argparse.ArgumentParser(description='Behavioral Cloning Training Program')\n parser.add_argument('-d', help='data directory', dest='data_dir', type=str, default='Data')\n parser.add_argument('-t', help='test size fraction', dest='test_size', type=float, default=0.2)\n parser.add_argument('-k', help='drop out probability', dest='keep_prob', type=float, default=0.5)\n parser.add_argument('-n', help='number of epochs', dest='nb_epoch', type=int, default=20)\n parser.add_argument('-s', help='samples per epoch', dest='samples_per_epoch', type=int, default=50000)\n parser.add_argument('-b', help='batch size', dest='batch_size', type=int, default=300)\n parser.add_argument('-o', help='save best models only', dest='save_best_only', type=s2b, default='True')\n parser.add_argument('-l', help='learning rate', dest='learning_rate', type=float, default=1.0e-3)\n args = parser.parse_args() #cria uma váriavel args com com todos os paramentos acima. \"dest\" será o nome da variável\n print('-' * 30)\n print('Parameters')\n print('-' * 30)\n for key, value in vars(args).items():\n print('{:<20} := {}'.format(key, value))\n print('-' * 30)\n\n data = load_data(args) #atribui os valores da função load_data para a variavel data\n #print(data)\n model = build_model(args) #atribui os valores do modelo criado do build_model para a variavel model\n #print(model)\n train_model(model, args, *data)\n\n\nif __name__ == '__main__':\n main()\n\n","repo_name":"pedrobcavalcante/behavioral-cloning-one-camera","sub_path":"model.py","file_name":"model.py","file_ext":"py","file_size_in_byte":5899,"program_lang":"python","lang":"pt","doc_type":"code","dataset":"github-code","pt":"86"}
+{"seq_id":"26482901658","text":"from scraper import Scraper\nimport time\nimport pandas as pd\nif __name__ == '__main__':\n # the periods options that we could choose from\n # for example: 1wk means to search for the houses that were sold in last week\n periods = ['1wk', '1mo', '3mo', '6mo', '1yr', '2yr', '3yr']\n\n # Getting input from the console.\n periodIdx = input(\n 'How far back in time do you want to search? (Hit enter if you want default option: 3 month) \\n 1: 1 week \\n 2: 1 month \\n 3: 3 months \\n 4: 6 months \\n 5: 1 year \\n 6: 2 years \\n 7: 3 years \\n')\n if periodIdx == '':\n periodIdx = 3\n\n # create the scraper\n scraper = Scraper()\n\n # scrape the information from the page\n scraper.search_houses('sold-{}'.format(periods[int(periodIdx) - 1]))\n scraper.houses.to_csv(\n 'LA-sold-{}.csv'.format(periods[int(periodIdx) - 1]), index=False)\n","repo_name":"chuanxiuXiong/python-webscraper-redfin","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":865,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"10586357358","text":"import os\nimport platform\nimport socket\n\n# ------------------------------------------------------------------------------\n\n# Module version\n__version_info__ = (1, 0, 1)\n__version__ = \".\".join(str(x) for x in __version_info__)\n\n# Documentation strings format\n__docformat__ = \"restructuredtext en\"\n\n# ------------------------------------------------------------------------------\n\n\ndef ipproto_ipv6():\n \"\"\"\n Returns the value of socket.IPPROTO_IPV6\n\n :return: The value of socket.IPPROTO_IPV6\n :raise AttributeError: Python or system doesn't support IPv6\n \"\"\"\n try:\n # pylint: disable=E1101\n return socket.IPPROTO_IPV6\n except AttributeError:\n if os.name == \"nt\":\n # Known bug: http://bugs.python.org/issue6926\n return 41\n else:\n # Unknown value\n raise\n\n\ndef set_double_stack(socket_obj, double_stack=True):\n # type: (socket.socket, bool) -> None\n \"\"\"\n Sets up the IPv6 double stack according to the operating system\n\n :param socket_obj: A socket object\n :param double_stack: If True, use the double stack, else only support IPv6\n :raise AttributeError: Python or system doesn't support V6\n :raise socket.error: Error setting up the double stack value\n \"\"\"\n try:\n # Use existing value\n opt_ipv6_only = socket.IPV6_V6ONLY\n except AttributeError:\n # Use \"known\" value\n if os.name == \"nt\":\n # Windows: see ws2ipdef.h\n opt_ipv6_only = 27\n elif platform.system() == \"Linux\":\n # Linux: see linux/in6.h (in recent kernels)\n opt_ipv6_only = 26\n else:\n # Unknown value: do nothing\n raise\n\n # Setup the socket (can raise a socket.error)\n socket_obj.setsockopt(ipproto_ipv6(), opt_ipv6_only, int(not double_stack))\n","repo_name":"tcalmant/ipopo","sub_path":"pelix/ipv6utils.py","file_name":"ipv6utils.py","file_ext":"py","file_size_in_byte":1839,"program_lang":"python","lang":"en","doc_type":"code","stars":69,"dataset":"github-code","pt":"86"}
+{"seq_id":"23378071323","text":"\n\nclass Solution:\n def reverseWords(self, s: str) -> str:\n l=s.split()\n l=[i[::-1] for i in l]\n return ' '.join(l)\n\nsl=Solution()\nprint(sl.reverseWords(\"Let's take LeetCode contest\"))\n","repo_name":"zzz136454872/leetcode","sub_path":"reverseWords3.py","file_name":"reverseWords3.py","file_ext":"py","file_size_in_byte":208,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3713477412","text":"from tkinter import Frame, Canvas, Label, ALL, Tk\n\n\nclass main:\n\n def __init__(self, master):\n self.frame = Frame(master)\n self.frame.pack(fill=\"both\", expand=True)\n self.canvas = Canvas(self.frame, width=300, height=300)\n self.canvas.pack(fill=\"both\", expand=True)\n self.label = Label(self.frame, text='Tic Tac Toe Game', height=6, bg='black', fg='red')\n self.label.pack(fill=\"both\", expand=True)\n\n self._draw_board()\n self.setup()\n\n def setup(self):\n self.canvas.delete(ALL)\n self.label['text'] = ('Tic Tac Toe Game')\n self.canvas.bind(\"\", self.check_click_event)\n self._draw_board()\n self.TTT = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]\n self.i = 0\n self.j = False\n\n def end(self):\n self.canvas.unbind(\"\")\n self.j = True\n\n def _draw_board(self):\n self.canvas.create_rectangle(0, 0, 300, 300, outline=\"black\")\n self.canvas.create_rectangle(100, 300, 200, 0, outline=\"black\")\n self.canvas.create_rectangle(0, 100, 300, 200, outline=\"black\")\n\n def _draw_circle(self, X, Y):\n self.canvas.create_oval(X + 25, Y + 25, X - 25, Y - 25, width=4, outline=\"black\")\n\n def _draw_x(self, X, Y):\n self.canvas.create_line(X + 20, Y + 20, X - 20, Y - 20, width=4, fill=\"black\")\n self.canvas.create_line(X - 20, Y + 20, X + 20, Y - 20, width=4, fill=\"black\")\n\n def check_click_event(self, event):\n print(event)\n for k in range(0, 300, 100):\n for j in range(0, 300, 100):\n if event.x in range(k, k + 100) and event.y in range(j, j + 100):\n if self.canvas.find_enclosed(k, j, k + 100, j + 100) == ():\n if self.i % 2 == 0:\n X = (2 * k + 100) / 2\n Y = (2 * j + 100) / 2\n X1 = int(k / 100)\n Y1 = int(j / 100)\n self._draw_circle(X, Y)\n self.TTT[Y1][X1] += 1\n self.i += 1\n else:\n X = (2 * k + 100) / 2\n Y = (2 * j + 100) / 2\n X1 = int(k / 100)\n Y1 = int(j / 100)\n self._draw_x(X, Y)\n self.TTT[Y1][X1] += 9\n self.i += 1\n self.check()\n\n def check(self):\n # horizontal check\n # vertical check\n # check for diagonal wins\n # check for draws\n return\n\n\nroot = Tk()\napp = main(root)\nroot.mainloop()\n\nif __name__ == '__main__':\n main.__init__()\n","repo_name":"golubot/python_tutorial","sub_path":"tutorial/solutions/TicTacToe.py","file_name":"TicTacToe.py","file_ext":"py","file_size_in_byte":2749,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"35200712779","text":"# -*- coding: utf-8 -*-\nfrom django.contrib import admin\nadmin.autodiscover()\nfrom app.models import Subscription\nfrom django.views.generic.base import RedirectView, TemplateView\nfrom django.conf.urls.defaults import patterns, include, url\nfrom app.views import SubscriptionListView, EntryListView, EntryListResponseView\n\nurlpatterns = patterns('',\n\turl(r'^admin/', include(admin.site.urls)),\n\t# Users\n\turl(r'^login/?', 'django.contrib.auth.views.login', {'template_name': 'users/login.html'}),\n\turl(r'^logout/?', 'django.contrib.auth.views.logout', {'template_name': 'users/logout.html'}),\n\turl(r'^register/?',\n\t\tTemplateView.as_view(\n\t\t\ttemplate_name='users/register.html')),\n\t\n\t# Subscriptions\n\turl(r'^$', \n\t\tSubscriptionListView.as_view(),\n\t\tname='home'),\n\turl(r'subscription/(?P[\\w-]+)/$',\n\t\tEntryListView.as_view(),\n\t\tname='subscription'),\n\n\t# Ajax\n\turl(r'_ajax/load_rss/', \n\t\tEntryListResponseView.as_view(), \n\t\tname='load_rss'),\n)\n","repo_name":"jgasteiz/nicereeder","sub_path":"urls.py","file_name":"urls.py","file_ext":"py","file_size_in_byte":946,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"18961177517","text":"import re\n\nif __name__ == '__main__':\n lines = open(\"timeTest/cpp_time.txt\").read().split(\"\\n\")\n file = open('yourCode/main.cpp')\n old_code = file.read()\n code_text = old_code\n bak = open('timeTest/main_bak.cpp', 'w')\n bak.write(old_code)\n bak.close()\n file.close()\n code_text = lines[0] + '\\n' + code_text\n reg = re.compile(r'[ ]*// \\*{14}')\n m = re.findall(reg, code_text)\n l = (len(m[0]) - len(m[0].lstrip()))\n code_text = re.sub(r'// \\*{14}', lines[1], code_text, count=1)\n code_text = re.sub(r'// \\*{14}', lines[2] + '\\n' + ' ' * l + lines[3] + '\\n' + ' ' * l + lines[4] + '\\n',\n code_text, count=1)\n file = open('yourCode/main.cpp', 'w')\n file.write(code_text)\n","repo_name":"naser-kazemi/Pattern-Matching-Engine","sub_path":"Tester/timeTest/test_time_cpp.py","file_name":"test_time_cpp.py","file_ext":"py","file_size_in_byte":737,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"36498064928","text":"import sys\nfrom PyQt5 import QtWidgets, QtGui\n\n\ndef window():\n app = QtWidgets.QApplication(sys.argv)\n pencere = QtWidgets.QWidget()\n\n pencere.setWindowTitle('PyQt Ders 2')\n button = QtWidgets.QPushButton(pencere)\n button.setText('Bir Buton')\n etiket = QtWidgets.QLabel(pencere)\n etiket.setText('Merhaba PyQt5')\n\n etiket.move(200, 30)\n button.move(200, 60)\n pencere.setGeometry(100, 100, 500, 500)\n\n pencere.show()\n sys.exit(app.exec_())\n\n\nwindow()\n","repo_name":"ilteriskeskin/Python-ornekler","sub_path":"PyQT5/buton_olusturma.py","file_name":"buton_olusturma.py","file_ext":"py","file_size_in_byte":485,"program_lang":"python","lang":"en","doc_type":"code","stars":11,"dataset":"github-code","pt":"86"}
+{"seq_id":"29382740544","text":"# -*- coding: utf-8 -*-\n#------------------------------------------------------------------------------------------#\n# This file is part of Pyccel which is released under MIT License. See the LICENSE file or #\n# go to https://github.com/pyccel/pyccel/blob/master/LICENSE for full license details. #\n#------------------------------------------------------------------------------------------#\n\"\"\" Module containing helper functions for managing strings\n\"\"\"\n\ndef create_incremented_string(forbidden_exprs, prefix = 'Dummy', counter = 1, name_clash_checker = None):\n \"\"\"\n Create a new unique string by incrementing a prefix.\n\n This function takes a prefix and a counter and uses them to construct\n a new name of the form:\n prefix_counter\n Where counter is formatted to fill 4 characters\n The new name is checked against a list of forbidden expressions. If the\n constructed name is forbidden then the counter is incremented until a valid\n name is found.\n\n Parameters\n ----------\n forbidden_exprs : set\n A set of all the values which are not valid solutions to this problem.\n prefix : str\n The prefix used to begin the string.\n counter : int\n The expected value of the next name.\n name_clash_checker : pyccel.naming.languagenameclashchecker.LanguageNameClashChecker\n A class instance providing access to a `has_clash` function which determines\n if names clash in a given language.\n\n Returns\n -------\n name : str\n The incremented string name.\n counter : int\n The expected value of the next name.\n \"\"\"\n nDigits = 4\n\n if prefix is None:\n prefix = 'Dummy'\n\n name_format = \"{prefix}_{counter:0=\"+str(nDigits)+\"d}\"\n name = name_format.format(prefix=prefix, counter = counter)\n counter += 1\n if name_clash_checker:\n while name_clash_checker.has_clash(name, forbidden_exprs):\n name = name_format.format(prefix=prefix, counter = counter)\n counter += 1\n else:\n while name in forbidden_exprs:\n name = name_format.format(prefix=prefix, counter = counter)\n counter += 1\n\n return name, counter\n","repo_name":"pyccel/pyccel","sub_path":"pyccel/utilities/strings.py","file_name":"strings.py","file_ext":"py","file_size_in_byte":2185,"program_lang":"python","lang":"en","doc_type":"code","stars":297,"dataset":"github-code","pt":"86"}
+{"seq_id":"12889228759","text":"import os\nimport openai\nopenai.api_key = os.getenv(\"OPENAI_API_KEY\")\n\nmessages = [\n {\"role\": \"system\", \"content\" : \"Hi Barbie!\"}\n]\n\nwhile True :\n content = input(\"User: \")\n messages.append({\"role\": \"user\", \"content\": content})\n\n completion = openai.ChatCompletion.create(\n model=\"gpt-3.5-turbo\",\n messages=messages\n )\n\n chat_response = completion.choices[0].message.content\n print(f'ChatGPT: {chat_response}')\n messages.append({\"role\": \"assistant\", \"content\": chat_response})","repo_name":"betty-godier/chatgpt-gpt3.5-turbo","sub_path":"chatgpt-gpt3.5-turbo/chatGPT.py","file_name":"chatGPT.py","file_ext":"py","file_size_in_byte":513,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"2626273514","text":"# See this article on creation of GMail oAuth credentials...\n# https://developers.google.com/gmail/api/quickstart/python#authorize_credentials_for_a_desktop_application\n# Ensure that the Google App that you are publishing has the GMail API enabled.\n# Make sure to include the correct scope (/auth/gmail.modify).\n\nfrom __future__ import print_function\nimport os.path\nimport base64\nimport logging\nfrom email.message import EmailMessage\nfrom configparser import ConfigParser\n\nfrom googleapiclient.discovery import build\nfrom googleapiclient.errors import HttpError\nfrom google.auth.transport.requests import Request\nfrom google.oauth2.credentials import Credentials\nfrom google_auth_oauthlib.flow import InstalledAppFlow\n\n# If modifying these scopes, delete the file token.json.\nSCOPES = ['https://www.googleapis.com/auth/gmail.modify']\n\ndef main():\n logging.basicConfig(level=logging.DEBUG)\n logging.debug('Authenticating with Google.')\n creds = auth()\n\n logging.debug('Loading and parsing \"mail.ini\" file.')\n config = ConfigParser()\n configFile = r'./mail.ini'\n config.read(configFile)\n\n to_address = config.get('GMail', 'to_smtp')\n from_address = config.get('GMail', 'from_smtp')\n\n logging.info('Sending test message from ' + from_address + ' going to ' + to_address + \".\")\n send_mail(creds, to_address, from_address, 'Test Message Subject', 'Test Message Body')\n\ndef auth():\n creds = None\n # The file token.json stores the user's access and refresh tokens, and is\n # created automatically when the authorization flow completes for the first\n # time.\n if os.path.exists('token.json'):\n logging.debug('Loading Google credentials from \"token.json\".')\n creds = Credentials.from_authorized_user_file('token.json', SCOPES)\n \n # If there are no (valid) credentials available, let the user log in.\n if not creds or not creds.valid:\n if creds and creds.expired and creds.refresh_token:\n logging.debug('Attempting to refresh Google Token.')\n creds.refresh(Request())\n else:\n logging.debug('No token found, starting login process.')\n flow = InstalledAppFlow.from_client_secrets_file(\n 'credentials.json', SCOPES)\n creds = flow.run_local_server(port=0)\n # Save the credentials for the next run\n with open('token.json', 'w') as token:\n token.write(creds.to_json())\n logging.debug('Token cached in \"token.json\"')\n\n return creds\n\ndef send_mail(creds, to_smtp, from_smtp, subject_text, message_text):\n try:\n # create gmail api client\n logging.debug('Building GMail message.')\n service = build('gmail', 'v1', credentials=creds)\n message = EmailMessage()\n\n message.set_content(str(message_text))\n\n message['To'] = str(to_smtp)\n message['From'] = str(from_smtp)\n message['Subject'] = str(subject_text)\n\n # encoded message\n encoded_message = base64.urlsafe_b64encode(message.as_bytes()).decode()\n\n create_message = {\n 'raw': encoded_message\n }\n logging.debug('Sending mail from ' + from_smtp + ' to ' + to_smtp + '.')\n # pylint: disable=E1101\n send_message = (service.users().messages().send\n (userId=\"me\", body=create_message).execute())\n\n logging.info(F'Message Id: {send_message[\"id\"]}')\n\n except HttpError as error:\n logging.error(F'An error occurred: {error}')\n send_message = None\n\n return send_message\n\n\nif __name__ == '__main__':\n main()","repo_name":"JonDeeming/hive-availability-checker","sub_path":"gmailSender.py","file_name":"gmailSender.py","file_ext":"py","file_size_in_byte":3596,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12648583988","text":"import tkinter as tk\nfrom tkinter import ttk\nfrom tkinter import font as tkfont\nfrom item import AmazonItem\nfrom multiprocessing.dummy import Pool as ThreadPool\nimport threading\nimport smtplib\nimport pickle\n\n\ndef doNothing():\n print('Do Nothing')\n\n\ndef calculateParallel(urls, threads=4):\n pool = ThreadPool(threads)\n results = pool.map(AmazonItem, urls)\n pool.close()\n pool.join()\n return results\n\n\ndef parseItem(item):\n arr = [None]*9\n arr[0] = item.title\n arr[1] = item.current_price\n arr[2] = item.highest_price\n arr[3] = item.highest_price_date\n arr[4] = item.lowest_price\n arr[5] = item.lowest_price_date\n arr[6] = item.avg_price\n arr[7] = item.availability\n arr[8] = item.url\n return arr\n\n\ndef popupmsg(msg, controller):\n popup = tk.Tk()\n popup.wm_minsize(150, 85)\n popup.wm_title(\"!\")\n popup.wm_maxsize(150, 85)\n label = ttk.Label(popup, text=msg, font=controller.NORM_FONT)\n label.pack(side=\"top\", fill=\"x\", pady=10, padx=12)\n B1 = ttk.Button(popup, text=\"Okay\", command=popup.destroy)\n B1.pack()\n popup.mainloop()\n\n\ndef send_email(controller, content, recipient):\n server = smtplib.SMTP('smtp.gmail.com', 587)\n server.ehlo()\n server.starttls() # Encrypts the information.\n server.ehlo()\n server.login('sebascaicedo25@gmail.com', 'vhhrbzhfcvoyffkz')\n\n subject = 'PriceTracker reminder!'\n body = content\n\n msg = f\"Subject: {subject}\\n\\n{body}\"\n server.sendmail(\n 'sebascaicedo25@gmail.com',\n recipient,\n msg\n )\n popupmsg(\"EMAIL HAS BEEN SENT!\")\n server.quit()\n\n\nclass Driver(tk.Tk):\n def __init__(self, *args, **kwargs):\n tk.Tk.__init__(self, *args, **kwargs)\n tk.Tk.wm_title(self, \"Price Tracker\")\n tk.Tk.wm_minsize(self, 600, 230)\n tk.Tk.iconbitmap(self, default='icon.ico')\n self.title_font = tkfont.Font(family='Helvetica', size=18, weight='bold', slant='italic')\n self.NORM_FONT = tkfont.Font(family=\"Helvetica\", size=10)\n self.container = tk.Frame(self, relief='raised', borderwidth=5)\n self.container.pack(side=\"top\", fill=\"both\", expand=True)\n self.container.grid_rowconfigure(1, weight=1)\n self.container.grid_columnconfigure(0, weight=1)\n\n self.frames = {}\n\n self.frames[\"WelcomePage\"] = WelcomePage(parent=self.container, controller=self)\n self.frames[\"LoadingScreen\"] = LoadingScreen(parent=self.container, controller=self)\n self.frames[\"EmailPage\"] = EmailPage(parent=self.container, controller=self)\n\n self.frames[\"WelcomePage\"].grid(row=1, column=0, sticky=\"nsew\")\n self.frames[\"LoadingScreen\"].grid(row=1, column=0, sticky=\"nsew\")\n self.frames[\"EmailPage\"].grid(row=1, column=0, sticky=\"nsew\")\n\n self.show_frame(\"WelcomePage\")\n\n def show_frame(self, page_name):\n frame = self.frames[page_name]\n frame.tkraise()\n\n def init_new_session(self):\n if 'NewSession' not in self.frames:\n NewSession(parent=self.container, controller=self)\n # self.frames[\"NewSession\"] = NewSession(parent=self.container, controller=self)\n # self.frames[\"NewSession\"].grid(row=1, column=0, sticky=\"nsew\")\n else:\n self.show_frame(\"NewSession\")\n\n def init_old_session(self):\n if \"OldSession\" not in self.frames:\n # TODO If there is time, make the loading screen work\n # temp_process = multiprocessing.Process(target=OldSession, args=(self.container,\n # self))\n # temp_process.start()\n # self.show_frame()\n OldSession(parent=self.container, controller=self)\n else:\n self.show_frame(\"OldSession\")\n\n\nclass LoadingScreen(tk.Frame):\n def __init__(self, parent, controller):\n tk.Frame.__init__(self, parent)\n self.controller = controller\n label = tk.Label(self, text=\"Loading...\", font=controller.title_font)\n label.pack(side=\"top\", fill=\"x\", pady=10)\n self.progress_bar = ttk.Progressbar(self, orient=\"horizontal\", mode=\"indeterminate\")\n self.progress_bar.pack(expand=\"True\", fill=\"x\", side=tk.TOP)\n\n def start_bar(self):\n self.progress_bar.start(50)\n\n def stop_bar(self):\n self.progress_bar.stop()\n\n\nclass EmailPage(tk.Frame):\n def __init__(self, parent, controller):\n tk.Frame.__init__(self, parent)\n self.prev_frame = \"WelcomePage\"\n self.controller = controller\n label1 = tk.Label(self, text=\"Edit Email \", font=controller.title_font)\n label2 = tk.Label(self, text=\"Email content \")\n label3 = tk.Label(self, text=\"Recipient \")\n email_text = tk.Text(self, width=40, height=1)\n email_text.insert(tk.END, \"example@example.com\")\n button1 = ttk.Button(self, text=\"Back\",\n command=lambda: controller.show_frame(self.prev_frame))\n button2 = ttk.Button(self, text=\"Send Email\", command=lambda:\n send_email(controller, self.text.get(\"1.0\",\n tk.END).strip(), email_text.get(\"1.0\", tk.END).strip()))\n body = \"Check out this link: \"\n self.text = tk.Text(self, width=40, height=10, wrap=\"word\")\n self.text.insert(tk.END, body)\n\n label1.grid(row=0, column=0, padx=20)\n label2.grid(row=1, column=0)\n label3.grid(row=2, column=0)\n email_text.grid(row=2, column=1)\n self.text.grid(row=1, column=1)\n button1.grid(row=3, column=2, pady=4)\n button2.grid(row=3, column=1, pady=5)\n\n\n\n controller.frames[\"EmailPage\"] = self\n controller.frames[\"EmailPage\"].grid(row=1, column=0, sticky=\"nsew\")\n\n def update_body(self, url):\n self.text.insert(tk.END, url)\n\n\nclass WelcomePage(tk.Frame):\n\n def __init__(self, parent, controller):\n tk.Frame.__init__(self, parent)\n self.controller = controller\n label = tk.Label(self, text=\"This is Welcome Page\", font=controller.title_font)\n label.pack(side=\"top\", fill=\"x\", pady=10)\n\n button1 = ttk.Button(self, text=\"New Session\",\n command=controller.init_new_session)\n button2 = ttk.Button(self, text='Old Session',\n command=controller.init_old_session)\n button3 = ttk.Button(self, text=\"Show loading screen\",\n command=lambda: controller.show_frame(\"LoadingScreen\"))\n button1.pack()\n button2.pack()\n button3.pack()\n\n\nclass NewSession(tk.Frame):\n def __init__(self, parent, controller):\n tk.Frame.__init__(self, parent, height=100, width=100)\n self.name = \"NewSession\"\n self.controller = controller\n self.table = TableOfItems(self, controller)\n self.table.grid(row=0, column=0, rowspan=2, columnspan=2)\n\n table = self.table.get_table()\n\n buttons = ActionButtons(self, controller, tree=table.tree, table=table, items_dict=self.table.items)\n buttons.grid(row=0, column=3, rowspan=10, columnspan=3)\n\n controller.frames[\"NewSession\"] = self\n controller.frames[\"NewSession\"].grid(row=1, column=0, sticky=\"nsew\")\n\n def get_name(self):\n return self.name\n\n\nclass OldSession(tk.Frame):\n def __init__(self, parent, controller):\n tk.Frame.__init__(self, parent)\n self.controller = controller\n self.table = TableOfItems(self, controller=controller, file=\"cache.txt\")\n self.table.grid(row=0, column=0, rowspan=2, columnspan=2)\n table = self.table.get_table()\n\n buttons = ActionButtons(self, controller, tree=table.tree, table=table, items_dict=self.table.items)\n buttons.grid(row=0, column=3, rowspan=10, columnspan=3)\n\n controller.frames[\"OldSession\"] = self\n controller.frames[\"OldSession\"].grid(row=1, column=0, sticky=\"nsew\")\n\n def get_name(self):\n return self.name\n\n\nclass TableOfItems(tk.Frame):\n def __init__(self, parent, controller, file=None):\n tk.Frame.__init__(self, parent, background=\"black\")\n self.tree = ttk.Treeview(self)\n self.tree[\"columns\"]=(\"Price\", \"two\")\n self.tree.column(\"Price\", width=100)\n self.tree.column(\"two\", width=100)\n self.tree.heading(\"Price\", text=\"Price ($)\")\n self.tree.pack(side=\"left\")\n vsb = ttk.Scrollbar(self, orient=\"vertical\", command=self.tree.yview)\n vsb.pack(side=\"right\", fill=\"y\")\n self.items = {}\n if file is not None:\n parse_file = open(file, 'rb')\n prev_sess_dict = pickle.load(parse_file)\n parse_file.close()\n for item in prev_sess_dict:\n temp = AmazonItem(arr=prev_sess_dict[item])\n self.items[temp.title] = temp\n\n for key in self.items:\n temp_thread = threading.Thread(target=self.populate_tree,\n args=(self.items[key],))\n temp_thread.start()\n else:\n pass\n\n def populate_tree(self, item):\n temp = self.tree.insert(\"\", \"end\", item.title, text=item.title,\n values=(\"${:.2f}\".format(item.current_price)))\n self.tree.insert(temp, \"end\", text=\"Highest Price\",\n values=(\"${:.2f}\".format(item.highest_price),\n item.highest_price_date))\n self.tree.insert(temp, \"end\", text=\"Lowest Price\",\n values=(\"${:.2f}\".format(item.lowest_price),\n item.lowest_price_date))\n self.tree.insert(temp, \"end\", text=\"Average Price\",\n values=(\"${:.2f}\".format(item.avg_price)))\n self.tree.insert(temp, \"end\", text=\"Availability\",\n values=item.availability)\n\n def get_table(self):\n return self\n\n\nclass ActionButtons(tk.Frame):\n def __init__(self, parent, controller, tree, table, items_dict):\n tk.Frame.__init__(self, parent)\n self.table = table\n self.parent_name = type(parent).__name__\n self.controller = controller\n self.tree = tree\n self.items_dict = items_dict\n button1 = ttk.Button(self, text=\"Add Item\", command=self.add_item)\n button2 = ttk.Button(self, text=\"Delete Item\", command=self.delete_tree_item)\n button3 = ttk.Button(self, text=\"Send Email\",\n command=self.show_email_page)\n button4 = ttk.Button(self, text=\"Update Selection\", command=self.update_selection)\n button5 = ttk.Button(self, text=\"Update All\", command=self.update_all)\n button6 = ttk.Button(self, text=\"Back\", command=lambda: controller.show_frame(\"WelcomePage\"))\n button7 = ttk.Button(self, text=\"Quit\", command=self.quit_window)\n self.v = tk.StringVar()\n\n self.e = ttk.Entry(self)\n self.v.set(\"Enter url here\")\n self.e.config(textvariable=self.v)\n\n button1.grid(row=0, column=0, padx=5, pady=5)\n button2.grid(row=1, column=0, padx=5, pady=5)\n button3.grid(row=2, column=0, padx=5, pady=5)\n button4.grid(row=3, column=0, padx=5, pady=5)\n button5.grid(row=4, column=0, padx=5, pady=5)\n button6.grid(row=5, column=0, padx=5, pady=5)\n button7.grid(row=6, column=0, padx=5, pady=5)\n self.e.grid(row=0, column=1, padx=5, pady=5)\n\n def show_email_page(self):\n try:\n self.controller.show_frame(\"EmailPage\")\n url = self.table.items[self.table.tree.selection()[0]].url\n self.controller.frames[\"EmailPage\"].update_body(url)\n self.controller.frames[\"EmailPage\"].prev_frame = self.parent_name\n self.controller.show_frame(\"EmailPage\")\n except IndexError:\n popupmsg(\"Select an item!\")\n\n def delete_tree_item(self, item=None):\n if item is not None:\n self.tree.delete(item)\n else:\n try:\n del self.tree.items[self.tree.selection()[0]] # Delete from dictionary\n self.tree.delete(self.tree.selection()[0]) # delete from tree\n except IndexError:\n popupmsg(\"Select an item!\")\n\n def add_item(self, url=None, index=None, spec_item=None):\n if spec_item is not None:\n item = spec_item\n self.items_dict[item.title] = item\n temp = self.tree.insert(\"\", index, item.title, text=item.title,\n values=(\"${:.2f}\".format(item.current_price)))\n self.tree.insert(temp, \"end\", text=\"Highest Price\",\n values=(\"${:.2f}\".format(item.highest_price),\n item.highest_price_date))\n self.tree.insert(temp, \"end\", text=\"Lowest Price\",\n values=(\"${:.2f}\".format(item.lowest_price),\n item.lowest_price_date))\n self.tree.insert(temp, \"end\", text=\"Average Price\",\n values=(\"${:.2f}\".format(item.avg_price)))\n self.tree.insert(temp, \"end\", text=\"Availability\",\n values=item.availability)\n self.tree.selection_add(item.title) # Highlights in the treeview\n elif url is not None:\n item = AmazonItem(url=url)\n self.items_dict[item.title] = item\n temp = self.tree.insert(\"\", index, item.title, text=item.title,\n values=(\"${:.2f}\".format(item.current_price)))\n self.tree.insert(temp, \"end\", text=\"Highest Price\",\n values=(\"${:.2f}\".format(item.highest_price),\n item.highest_price_date))\n self.tree.insert(temp, \"end\", text=\"Lowest Price\",\n values=(\"${:.2f}\".format(item.lowest_price),\n item.lowest_price_date))\n self.tree.insert(temp, \"end\", text=\"Average Price\",\n values=(\"${:.2f}\".format(item.avg_price)))\n self.tree.insert(temp, \"end\", text=\"Availability\",\n values=item.availability)\n self.tree.selection_add(item.title) # Highlights in the treeview\n\n elif self.e.get().find(\"amazon.com\") != -1: # Just making sure it's an amazon link\n item = AmazonItem(self.e.get().strip())\n self.items_dict[item.title] = item\n self.e.delete(0, tk.END)\n temp = self.tree.insert(\"\", \"end\", item.title, text=item.title,\n values=(\"${:.2f}\".format(item.current_price)))\n self.tree.insert(temp, \"end\", text=\"Highest Price\",\n values=(\"${:.2f}\".format(item.highest_price),\n item.highest_price_date))\n self.tree.insert(temp, \"end\", text=\"Lowest Price\",\n values=(\"${:.2f}\".format(item.lowest_price),\n item.lowest_price_date))\n self.tree.insert(temp, \"end\", text=\"Average Price\",\n values=(\"${:.2f}\".format(item.avg_price)))\n self.tree.insert(temp, \"end\", text=\"Availability\",\n values=item.availability)\n self.v.set(\"Enter url here\")\n else:\n popupmsg(\"Enter valid URL\")\n self.v.set(\"Enter url here\")\n pass\n\n def update_all(self):\n index = 0\n urls = [None]*len(self.items_dict)\n for item in self.items_dict: # This loop is just to get the urls\n urls[index] = self.items_dict[item].url\n index += 1\n\n arr_amazon_items = calculateParallel(urls) # array with updated values items\n\n for am_item in arr_amazon_items:\n self.items_dict[am_item.title] = am_item # updating values in the dictionary\n temp_index = self.tree.index(am_item.title)\n self.delete_tree_item(item=am_item.title) # delete old item from tree\n self.add_item(index=temp_index, spec_item=am_item) # Add updated item\n\n def update_selection(self):\n url = self.items_dict[self.tree.selection()[0]].url\n _index = self.tree.index(self.tree.selection()[0])\n del self.items_dict[self.tree.selection()[0]].url\n self.delete_tree_item(item=self.tree.selection()[0])\n self.add_item(url=url, index=_index)\n\n def quit_window(self):\n if len(self.items_dict) > 0:\n save_dict = {}\n for item in self.items_dict:\n save_dict[item.title] = parseItem(self.items_dict[item])\n\n print(\"saving to cache...\")\n file_name = \"cache.txt\"\n file = open(file_name, 'wb')\n pickle.dump(save_dict, file)\n file.close()\n self.controller.quit()\n pass\n else:\n print(\"quitting...\")\n self.controller.quit()\n\n\nclass Menus:\n def __init__(self, parent):\n self.menu = tk.Menu(parent)\n parent.config(menu=self.menu)\n self.sub_menu = tk.Menu(self.menu)\n self.menu.add_cascade(label=\"File\", menu=self.sub_menu)\n self.sub_menu.add_command(label=\"Add item\", command=doNothing)\n self.sub_menu.add_command(label=\"Remove item\", command=doNothing)\n self.sub_menu.add_separator()\n self.sub_menu.add_command(label=\"Exit\", command=doNothing)\n\n self.edit_menu = tk.Menu(self.menu)\n self.menu.add_cascade(label=\"Edit\", menu=self.edit_menu)\n\n\nclass Toolbar:\n def __init__(self, parent):\n self.toolbar = tk.Frame(parent, bg=\"blue\")\n self.add_button = tk.Button(self.toolbar, text=\"Add Item\", command=doNothing)\n self.add_button.pack(side=tk.LEFT, padx=2, pady=2)\n self.remove_item = tk.Button(self.toolbar, text=\"Remove Item\", command=doNothing)\n self.toolbar.pack(side=tk.TOP, fill=tk.X)\n\n\nclass StatusBar:\n def __init__(self, parent):\n self.status = tk.Label(parent, text=\"Doing nothing(for now)\", bd=1, relief=tk.SUNKEN, anchor=tk.W)\n self.status.pack(side=tk.BOTTOM, fill=tk.X)\n\n\nif __name__ == \"__main__\":\n app = Driver()\n app.mainloop()\n","repo_name":"SCaicedo99/PriceTracker","sub_path":"GUI_draft.py","file_name":"GUI_draft.py","file_ext":"py","file_size_in_byte":18301,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3817556150","text":"import copy\nfrom textwrap import dedent\n\nimport pytest\nfrom ruamel.yaml import YAML\nfrom traitlets import TraitError\n\nfrom pangeo_forge_runner.meta_yaml import MetaYaml\n\nyaml = YAML()\n\n\n@pytest.fixture\ndef with_recipes_list() -> str:\n return dedent(\n \"\"\"\\\n title: 'AWS NOAA WHOI SST'\n description: 'Analysis-ready datasets derived from AWS NOAA WHOI NetCDF'\n recipes:\n - id: aws-noaa-sea-surface-temp-whoi\n object: 'recipe:recipe'\n provenance:\n providers:\n - name: 'AWS NOAA Oceanic CDR'\n description: 'Registry of Open Data on AWS National Oceanographic & Atmospheric Administration National Centers for Environmental Information'\n roles:\n - producer\n - licensor\n url: s3://noaa-cdr-sea-surface-temp-whoi-pds/\n license: 'Open Data'\n maintainers:\n - name: 'Jo Contributor'\n orcid: '0000-0000-0000-0000'\n github: jocontributor123\n \"\"\" # noqa: E501\n )\n\n\n@pytest.fixture\ndef valid_meta_yaml(with_recipes_list: str) -> dict:\n return yaml.load(with_recipes_list)\n\n\n@pytest.fixture\ndef valid_meta_yaml_dict_object(with_recipes_list: str) -> dict:\n with_dict_object = with_recipes_list.replace(\n dedent(\n \"\"\"\\\n recipes:\n - id: aws-noaa-sea-surface-temp-whoi\n object: 'recipe:recipe'\n \"\"\"\n ),\n dedent(\n \"\"\"\\\n recipes:\n - dict_object: 'recipe:recipes'\n \"\"\"\n ),\n )\n return yaml.load(with_dict_object)\n\n\ndef test_schema_valid(valid_meta_yaml):\n _ = MetaYaml(**valid_meta_yaml)\n\n\ndef test_schema_valid_dict_object(valid_meta_yaml_dict_object):\n _ = MetaYaml(**valid_meta_yaml_dict_object)\n\n\n@pytest.mark.parametrize(\n \"field\",\n [\n \"title\",\n \"description\",\n \"recipes\",\n \"provenance\",\n \"maintainers\",\n ],\n)\ndef test_missing_toplevel_field(valid_meta_yaml, field):\n meta_yaml_copy = copy.deepcopy(valid_meta_yaml)\n del meta_yaml_copy[field]\n if field == \"recipes\":\n # ``recipes`` is the only required field\n with pytest.raises(TraitError):\n _ = MetaYaml(**meta_yaml_copy)\n else:\n # all others fields can be left empty without raising an error\n _ = MetaYaml(**meta_yaml_copy)\n\n\n@pytest.mark.parametrize(\n \"subfield\",\n [\n \"id\",\n \"object\",\n ],\n)\ndef test_missing_recipes_subfield(valid_meta_yaml, subfield):\n invalid_meta_yaml = copy.deepcopy(valid_meta_yaml)\n del invalid_meta_yaml[\"recipes\"][0][subfield]\n\n with pytest.raises(TraitError):\n _ = MetaYaml(**invalid_meta_yaml)\n\n\ndef test_recipes_field_cannot_be_empty_container():\n with pytest.raises(TraitError):\n _ = MetaYaml(recipes=[])\n\n\ndef test_recipes_field_invalid_keys():\n with pytest.raises(TraitError):\n # \"dict_object\" key can't be used in combination with other keys\n _ = MetaYaml(recipes={\"id\": \"abcdefg\", \"dict_object\": \"abc:def\"})\n with pytest.raises(TraitError):\n # the only valid keys are {\"id\", \"object\"} together,\n # or \"dict_object\" alone. other keys are not allowed.\n _ = MetaYaml(recipes={\"some_other_key\": \"abc:def\"})\n\n\n# TODO: In a future \"strict\" mode, ensure provenance fields are all provided.\n# --------------------------------------------------------------------------\n# @pytest.mark.parametrize(\n# \"subfield\",\n# [\n# \"providers\",\n# \"license\",\n# ],\n# )\n# def test_missing_provenance_subfield(valid_meta_yaml, subfield, schema):\n# invalid_meta_yaml = copy.deepcopy(valid_meta_yaml)\n# del invalid_meta_yaml[\"provenance\"][subfield]\n#\n# with pytest.raises(TraitError):\n# _ = MetaYaml(**meta_yaml_copy)\n\n\n# TODO: In a future \"strict\" mode, ensure providers fields are all provided.\n# --------------------------------------------------------------------------\n# @pytest.mark.parametrize(\n# \"subfield\",\n# [\n# \"name\",\n# \"description\",\n# \"roles\",\n# \"url\",\n# ],\n# )\n# def test_missing_providers_subfield(valid_meta_yaml, subfield, schema):\n# invalid_meta_yaml = copy.deepcopy(valid_meta_yaml)\n# del invalid_meta_yaml[\"provenance\"][\"providers\"][0][subfield]\n#\n# with pytest.raises(ValidationError, match=f\"'{subfield}' is a required property\"):\n# _ = MetaYaml(**meta_yaml_copy)\n\n\n# TODO: In a future \"strict\" mode, ensure maintainers fields are all provided.\n# ----------------------------------------------------------------------------\n# @pytest.mark.parametrize(\n# \"subfield\",\n# [\n# \"name\",\n# \"orcid\",\n# \"github\",\n# ],\n# )\n# def test_missing_maintainers_subfield(valid_meta_yaml, subfield, schema):\n# invalid_meta_yaml = copy.deepcopy(valid_meta_yaml)\n# del invalid_meta_yaml[\"maintainers\"][0][subfield]\n#\n# with pytest.raises(TraitError):\n# _ = MetaYaml(**meta_yaml_copy)\n","repo_name":"pangeo-forge/pangeo-forge-runner","sub_path":"tests/unit/test_meta_yaml.py","file_name":"test_meta_yaml.py","file_ext":"py","file_size_in_byte":4932,"program_lang":"python","lang":"en","doc_type":"code","stars":7,"dataset":"github-code","pt":"86"}
+{"seq_id":"5529819213","text":"# TODO: if script complains, update this dict and rerun\nects = {\n 0.0: 1,\n 0.5: 1,\n 1.0: 2,\n 1.5: 3,\n 2.0: 3,\n 3.0: 4,\n 4.0: 5,\n 5.0: 7,\n 6.0: 8,\n 7.0: 9,\n 9.0: 10,\n}\n\nfrom bs4 import BeautifulSoup\nimport sys\nimport re\nimport os\nimport os.path\nimport course_functions\n\ndef logger(message):\n print(message)\n\nargs = sys.argv\nsoup = None\n\nwith open(args[1]) as fp:\n soup = BeautifulSoup(fp, 'html.parser')\n\ncourses = soup.find_all('h3')\nlogger('Found {} courses.'.format(len(courses)))\n\ndef process_achievement(course):\n achievement = dict()\n header = course.string.strip().replace('\\r', '').replace('\\n', '')\n header_regex = r\"^([0-9\\-]+) - ([\\w-]+) (.+) \\(([\\d.]+)SWS .+ ([WS])S 20(\\d+)/(\\d+)\\)$\"\n header_match = re.search(header_regex, header)\n if header_match == None:\n raise Exception(header)\n header_number = header_match.group(2)\n header_number_regex = r\"^([A-Z]+).+$\"\n header_dep = re.search(header_number_regex, header_number).group(1)\n header_school = None\n if header_dep in course_functions.schools:\n header_school = course_functions.schools[header_dep]\n else:\n raise Exception('Unknown course dep: {}'.format(header_dep))\n header_sem = header_match.group(6) if header_match.group(5) == 'W' else header_match.group(7)\n header_hours = float(header_match.group(4))\n header_ects = 0\n if header_hours not in ects:\n raise Exception('Unknown SWS: {}'.format(header_hours))\n\n achievement = {\n 'id': 0,\n 'href': '',\n 'mode': 'written',\n 'date': '{} 12:00:00 +0100'.format(header_match.group(1)),\n 'number': header_number,\n 'name': header_match.group(3),\n 'type': 'endterm',\n 'semester': '20{}S'.format(header_sem + header_match.group(5)),\n 'hours': header_hours,\n 'ects': ects[header_hours],\n 'school': header_school,\n }\n\n grade_elem = next(filter(lambda x: x.name == 'div', course.next_siblings), None)\n grade_list = grade_elem.find_all('div', class_='kandcountbox')\n \n achievement = process_grades(achievement, grade_list)\n return achievement\n \ndef process_grades(achievement, grade_list):\n grades = dict()\n for grade_elem in grade_list:\n grade_people_elem = next(filter(lambda x: x.name == 'div', grade_elem.next_siblings), None)\n grade_people_text = grade_people_elem.contents[-1].strip()\n grade_people_regex = r\"^(\\d+) K.$\"\n grade_people = int(re.search(grade_people_regex, grade_people_text).group(1))\n if grade_people == 0:\n continue\n\n grade_value_elem = next(filter(lambda x: x.name == 'div', grade_people_elem.next_siblings), None)\n grade_value_text = grade_value_elem.div.contents[-1].strip()\n grade_value = 0.0\n # X didn't show up\n # U cheated\n # Q withdrew\n # Z rejected\n # B passed without grade\n # N didn't pass without grade\n if 'X' in grade_value_text:\n grade_value = 6.0\n elif 'U' in grade_value_text:\n grade_value = 5.0\n achievement['cheated'] = grade_people\n elif 'Z' in grade_value_text:\n grade_value = 5.0\n achievement['rejected'] = grade_people\n elif 'Q' in grade_value_text:\n achievement['withdrew'] = grade_people\n continue\n elif 'B' in grade_value_text:\n continue\n else:\n try:\n grade_value = float(grade_value_text.replace(',', '.'))\n except:\n logger('Failed to parse {}. Contact mcmikecreations.'.format(grade_value_text))\n achievement['grades'] = None\n return achievement\n \n grades[grade_value] = {\n 'value': grade_value,\n 'count': grade_people,\n }\n\n achievement['grades'] = list(grades.values())\n achievement['grades'].sort(key=lambda x: x['value'])\n return achievement\n\nfor course in courses:\n achievement = process_achievement(course)\n if achievement['grades'] == None or len(achievement['grades']) == 0 or course_functions.achievement_exists(achievement, logger, True):\n continue\n course_functions.achievement_save(achievement, logger, True)\n","repo_name":"mcmikecreations/tum_info","sub_path":"scripts/course_html_parse.py","file_name":"course_html_parse.py","file_ext":"py","file_size_in_byte":3935,"program_lang":"python","lang":"en","doc_type":"code","stars":15,"dataset":"github-code","pt":"86"}
+{"seq_id":"39814143597","text":" \n\n\nfrom bgi_h import *;\n\ndef draw(window):\n\tglobal TIME,CLK;\n\t#HUB\n\tbox(window,(sx+1,0),(nx,sy+1),TABBG);\n\tbox(window,(0,sy+1),(nx,ny),TABBG);\n\t#text = FONT.render(str(TIME), True, color(7));\n\t#text_rect = text.get_rect(center = window.get_rect().center);\n\t#window.blit(text, text_rect);\n\trectangle(window,(10,sy+2),(sx-10,ny-50),color(9));\n\tRR=CLK.RR();\n\tIX=CLK.IX();\n\tHIGH=abs(ny-51-(sy+3));\n\tlx=10;\n\tdata=(RR[0]+128)/256*HIGH;\n\tlast=(10,ny-51-data);\n\tscx=4;\n\tbox(window,(lx,sy+3),(sx-10,ny-51),color(7));\n\t\n\tcircle(window,(128,128),64,color(4));\n\tcfa(window,(128,128),64,color(3));\n\t\n\tfor f in range(1,len(RR)):\n\t\tnwx=10+f*scx;\n\t\tline(window,(lx,sy+3+HIGH/2),(nwx,sy+3+HIGH/2),color(0));\n\t\tlx=nwx;\n\t\tdata=((64 if RR[f]>0 else -64)+128)/256*HIGH;\n\t\tNEW=(nwx,ny-51-data);\n\t\tline(window,last,NEW,color(1));\n\t\tlast=NEW;\n\t\tif(f==IX):\n\t\t\tline(window,last,[last[0]+scx,last[1]],color(1));\n\t\t\tplot(window,last,color(2));\n\t\telse:\n\t\t\tline(window,last,[last[0]+scx,last[1]],color(6));\n\t\t\n\t\t#line(window,last,(lx,sy+3+HIGH/2),color(4));\n\t\t\n\tgprintf(window,[sx/2,ny-49],\"Pulses:%5.1f\",TIME/HZ);\n\tgprintf(window,[sx/2,ny-20],\"Noise:%5i\",NOISE_RR[NOISE_IX]);\n\t\n\tgprintf(window,[sx/2,ny-10],\"CLK:%5s\",CLK.text_status());\n\nclass Mem:\n\tdef __init__(self,length=NULL):\n\t\tif(length==NULL):\n\t\t\tself._LENGTH=M64K;\n\t\telse:\n\t\t\tself._LENGTH=length;\n\t\t\t\n\t\tself._FULLMEM=[0]*self._LENGTH;\n\t\tself._MAR=0;\n\t\tself._LINE=16;\n\t\tself._START=1;\n\t\tself._BLOCK=2;#2==WORD,1==BYTE\n\t\tself._FLAG=FlagReg();\n\t\n\tdef flag(self):\n\t\treturn(self._FLAG);\n\t\n\tdef __repr__(self):\n\t\tout=\"\";\n\t\tfor row in range(self._START,self._LENGTH,16):\n\t\t\tout+=\"%04x: \"%(row-row%self._LINE);\n\t\t\tfor col in range(0,self._LINE):\n\t\t\t\tout+=\"%02x \"%(self._FULLMEM[row+col]);\n\t\t\t\t\n\t\t\tout+=\"\\n\";\n\t\treturn(out);\n\tdef addr(self,pos=NULL):\n\t\tif (pos==NULL):\n\t\t\tpos=self._MAR;\n\t\telse:\n\t\t\tself._MAR=pos % self._LENGTH;\n\t\tif(self._MAR=0 else 1;\n\t\t\ti=int(value);\n\t\t\t\n\t\telif(type(value)==type(0.0)):#fld\n\t\t\ts=0 if value>=0 else 1;\n\t\t\tvalue=abs(value);\n\t\t\ti=int(value);\n\t\t\td=(value-i);\n\t\t\te=i/abs(value);\n\t\ttry:\n\t\t\tself._FULLMEM[self._MAR]=value;\n\t\t\tself._FLAG.resetEF();\n\t\texcept:\n\t\t\tself._FLAG.setEF();\n\t\treturn(out);\n\t\n\t\n\tdef reprRange(self,start=NULL,end=NULL):\n\t\tout=\"\";\n\t\tif (end==NULL):\n\t\t\tend=self._LENGTH;\n\t\tend=end % self._LENGTH;\n\t\t\n\t\tif(start==NULL):\n\t\t\tstart=self._START;\n\t\t\n\t\tend=\tend % self._LENGTH;\n\t\tstart=\tstart % self._LENGTH;\n\t\t\n\t\tfor row in range(start,end,16):\n\t\t\tout+=\"%04x: \"%(row-row%self._LINE);\n\t\t\tfor col in range(0,self._LINE):\n\t\t\t\tout+=\"%02x \"%(self._FULLMEM[row+col]);\n\t\t\t\t\n\t\t\tout+=\"\\n\";\n\t\treturn(out);\n\n\n\ndef main(args):\n\tglobal window,BG,tick,TIME,HZ,NOISE_IX,NOISE_RR,INK;\n\tcol=0;\n\tMEM=Mem();\n\tNUM_KEYS=[\n\t\t\tK_0, \tK_1, \tK_2, \tK_3,\n\t\t\tK_4, \tK_5, \tK_6, \tK_7,\n\t\t\tK_8, \tK_9, \tK_KP0, \tK_KP1,\n\t\t\tK_KP2,\tK_KP3,\tK_KP4,\tK_KP5,\n\t\t\tK_KP6,\tK_KP7,\tK_KP8,\tK_KP9,\n\t\t\tK_PERIOD, K_MINUS,K_PLUS, K_SLASH, \n\t\t\tK_ASTERISK, K_LEFTPAREN,K_RIGHTPAREN, K_CARET];\n\t\n\tCOLKEYS=[\n\t\t\tK_0, \tK_1, \tK_2, \tK_3,\n\t\t\tK_4, \tK_5, \tK_6, \tK_7,\n\t\t\tK_KP0,\tK_KP1,\tK_KP2,\tK_KP3,\n\t\t\tK_KP4,\tK_KP5,\tK_KP6,\tK_KP7 ];\n\tSHIFTKEYS=[\n\t\t\tK_LSHIFT,\tK_RSHIFT,\tK_LCTRL,\tK_RCTRL,\n\t\t\tK_LALT,\t\tK_RALT,\t\tK_LMETA,\tK_RMETA,\n\t\t\tK_LSUPER,\tK_RSUPER,\tK_MODE\t\t\t];\n\t\n\tprint(MEM.reprRange(0,100));\n\tset_title(\"Ensamble\");\n\tset_icon(\"icon.png\");\n\tclrscr(window);\n\trun=true;\n\tx,y=0,0;\n\twhile run:\n\t\tclock.tick(HZ);\n\t\tfor event in pygame.event.get():\n\t\t\tif event.type == timer_event:\n\t\t\t\tTIME+=1;\n\t\t\t\tNOISE_IX=(NOISE_IX+1)%RR_LENGTH;\n\t\t\t\tNOISE_RR[NOISE_IX]=rnd(-7,7);\n\t\t\t\tCLK.tick();\n\t\t\tif event.type == pygame.QUIT or (event.type==pygame.KEYDOWN and event.key == pygame.K_ESCAPE):\n\t\t\t\trun = False;\n\t\t\tif event.type==pygame.KEYDOWN:\n\t\t\t\tKEYPRESSED.add(event.key);\n\t\t\telif event.type==pygame.KEYUP:\n\t\t\t\tKEYPRESSED.discard(event.key);\n\t\tif x0 and (pygame.K_LEFT in KEYPRESSED or pygame.K_a in KEYPRESSED):\n\t\t\tx-=1;\n\t\tif y0 and (pygame.K_UP in KEYPRESSED or pygame.K_w in KEYPRESSED):\n\t\t\ty-=1;\n\t\tif pygame.K_SPACE in KEYPRESSED:\n\t\t\tcol+=1;\n\t\t\tcol=col % len(COLOURS);\n\t\t\tBG=color(col);\n\t\t\tINK=invert(BG,189);\n\t\t\t#color(len(COLOURS)-col)\n\t\t\t#print(BG,\"&&\",INK);\n\t\tfor f in range(0,len(COLKEYS)):\n\t\t\tif (COLKEYS[f] in KEYPRESSED):\n\t\t\t\tcol=f%8;\n\t\t\t\tif((K_LSHIFT in KEYPRESSED) or (K_RSHIFT in KEYPRESSED)):\n\t\t\t\t\tcol+=8;\n\t\t\t\t\n\t\t\t\t#col=col % len(COLOURS);\n\t\t\t\tBG=color(col);\n\t\t\t\tINK=invert(BG,189);\n\t\t\t\t\n\t\tif pygame.K_t in KEYPRESSED:\n\t\t\tprint([abs(f)>10 for f in CLK.RR()]);\n\t\t\t\n\t\tclrscr(window,BG);\n\t\tdraw(window);\n\t\tsz=8;\n\t\tfor f in range(sz):\n\t\t\tfor n in range(sz*2):\n\t\t\t\tplot(window,(x+f,y+n),invert(BG));\n\t\tsomethingChanged=False;\n\t\ttick=0 if tick==7 else 7;\n\t\tplot(window,(sx,sy),color(tick));\n\t\tpygame.display.flip();\n\t\t\n\tpygame.quit();\n\treturn(0);\n\nif __name__ == '__main__':\n\tsys.exit(main(sys.argv));\n","repo_name":"metfar/interTerms","sub_path":"base.py","file_name":"base.py","file_ext":"py","file_size_in_byte":5501,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"22686286829","text":"import sys, glob,subprocess,difflib\n \n\ndef run(fname):\n\n res = subprocess.Popen([\"..\\glox.exe\",\"%s\" % fname],stdout=subprocess.PIPE)\n return res\n\ndef basename(path):\n \n if \"\\\\\" in path:\n return path.split(\"\\\\\")[-1]\n return path\n\ndef process(fname,write,verbose):\n\n pipe = run(fname)\n testdatafile=\"output/%s.testoutput\" % basename(fname)\n \n if write:\n with open(testdatafile,\"wb\") as outfile:\n res=pipe.communicate()\n outfile.write(res[0])\n else:\n with open(testdatafile,\"rb\") as infile:\n res=pipe.communicate()\n data=infile.read()\n match=data==res[0]\n if match:\n print (\"Test %-30s : PASS\" % fname)\n else:\n print (\"Test %-30s : FAIL\" % fname)\n if verbose:\n a=res[0].decode('ascii').splitlines()\n b=data.decode('ascii').splitlines()\n d=difflib.context_diff(a,b)\n print ('\\n'.join(d))\n\n######################################################################################################################\n\nwrite=False\nverbose=False\n\nif len(sys.argv) > 1 :\n if sys.argv[1] in (\"--read\",\"--write\"):\n write=True if sys.argv[1]==\"--write\" else False\n del(sys.argv[1])\n if sys.argv[1] == \"--verbose\":\n verbose=True\n del(sys.argv[1])\n\nif len(sys.argv) > 1 :\n process(sys.argv[1],write,verbose)\nelse:\n for f in glob.glob(\"lox/*lox\"):\n process(f,write,verbose)\n ","repo_name":"nickharrismcr/glox","sub_path":"tests/test.py","file_name":"test.py","file_ext":"py","file_size_in_byte":1546,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"70019822046","text":"# whole team\n\n# gather inputs from user\nprint('We will ask you for three inputs.')\npath = input(\"Copy/ paste file path: \")\nfile_name = input(\"What would you like the file called? \")\ndestination = input('Where would you like the file to go? ')\n\n# input validation\nwhile path == None:\n path = input(\"File path missing value, please copy/paste the file path for the document to process: \")\n\nwhile destination == None:\n destination = input(\"Destination path missing value, please copy/paste the file path for the destination folder: \")\n\nwhile file_name == None:\n file_name = input(\"File name missing value, please input what you would like the processed file to be called: \")\n\npath = str(path)\ndestination = str(destination)\nfile_name = str(file_name)\n\n# process excel spreadsheet\nimport pandas as pd\n\nheader_index = 2\n\ntry:\n df = pd.read_excel(f\"{path}\", header = header_index)\nexcept:\n path = input(\"Error with file path, please double check path and copy/paste file path for document to process: \")\n\ndf = pd.read_excel(path, header = header_index)\n\ndf = df.iloc[0:len(df) - header_index]\n\ndef overlap(p):\n return {df['Incident Number'][i] for i in set(df.index) - {p} if (df['Dispatched Date'][i] <= df['Dispatched Date'][p] <= df['Clear Date'][i])\n or (df['Dispatched Date'][p] <= df['Dispatched Date'][i] <= df['Clear Date'][p])}\n\ndf['overlap'] = df.index.map(overlap)\n\ndf['num_overlaps'] = df.overlap.map(len)\n\n# output validation\nif destination[len(destination)] != \"/\":\n destination = destination + \"/\"\n\nif \".xls\" not in file_name:\n file_name = file_name + \".xls\"\n\ntry:\n df.to_excel(f\"{destination + file_name}\")\nexcept:\n print(\"An error has occurred. Please re-enter the folder destination and file name.\")\n file_name = input(\"File name: \")\n destination = input(\"Path to folder: \")\n\ndf.to_excel(f\"{destination + file_name}\")\n","repo_name":"ChrisSCorliss/Project-4","sub_path":"combined.py","file_name":"combined.py","file_ext":"py","file_size_in_byte":1934,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"74886192605","text":"import datetime\nimport logging\nimport os\nimport numpy as np\nimport pandas as pd\nimport subprocess\nimport sys\nimport torch\nimport torch.nn.functional as F\nimport matplotlib.pyplot as plt\n\nfrom argparse import Namespace\nfrom math import ceil\nfrom typing import List, Type\nfrom torch import nn\n\n\ndef _get_git_revision_hash() -> str:\n try:\n return subprocess.check_output(['git', 'rev-parse', 'HEAD'])\\\n .decode('ascii').strip()\n except:\n return 'no_git'\n\n\ndef _get_git_revision_short_hash() -> str:\n try:\n return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'])\\\n .decode('ascii').strip()\n except:\n return 'no_git'\n\n\ndef _generate_output_dirname(prefix: str) -> str:\n git_hash = _get_git_revision_short_hash()\n now = datetime.datetime.now().strftime(\"%Y-%m-%d_%H:%M:%S\")\n dirname = git_hash + '_' + now\n if prefix is not None:\n dirname = prefix + '_' + dirname\n return dirname\n\n\ndef generate_output_dirpath(module_path: str, output_rootname: str='output', prefix: str=None):\n module_dirpath = os.path.dirname(os.path.abspath(module_path))\n output_dirname = _generate_output_dirname(prefix)\n output_dirpath = f'{module_dirpath}/{output_rootname}/{output_dirname}'\n if not os.path.exists(output_dirname):\n os.makedirs(output_dirpath)\n return output_dirpath\n\n\ndef generate_model_experiment_name(args: Namespace, is_test_mode: bool=False) -> str:\n return \"_\".join([\n args.model,\n args.pretrained if args.pretrained else 'scratch',\n f\"ub{args.unfreeze_blocks}\",\n 'discretized' if args.discretized_image else 'original',\n args.optimizer,\n f\"lr{args.lr}\",\n f\"wd{args.weight_decay}\",\n f\"ep{args.num_train_epochs}\",\n f\"bs{args.train_batch_size}\",\n 'test' if is_test_mode else 'train'\n ])\n\n\ndef generate_classifier_experiment_name(args: Namespace, is_test_mode: bool=False) -> str:\n return \"_\".join([\n args.model,\n args.pretrained,\n 'discretized' if args.discretized_image else 'original',\n 'test' if is_test_mode else 'train'\n ])\n\n\ndef get_logger(filename: str=None) -> logging.Logger:\n log_format = '%(asctime)s [%(levelname)-5.5s] %(message)s'\n log_formatter = logging.Formatter(log_format)\n\n logger = logging.getLogger()\n logger.setLevel(logging.DEBUG)\n\n if filename is not None and filename != '':\n file_handler = logging.FileHandler(filename)\n file_handler.setFormatter(log_formatter)\n logger.addHandler(file_handler)\n\n console_handler = logging.StreamHandler(sys.stdout)\n console_handler.setFormatter(log_formatter)\n logger.addHandler(console_handler)\n\n return logger\n\n\ndef matplotlib_imshow(img, one_channel=False):\n if one_channel:\n img = img.mean(dim=0)\n img = img / 2 + 0.5 # unnormalize\n npimg = img.numpy()\n if one_channel:\n plt.imshow(npimg, cmap=\"Greys\")\n else:\n plt.imshow(np.transpose(npimg, (1, 2, 0)))\n\n\ndef images_to_probs(model: Type[nn.Module], inputs):\n '''\n Generates predictions and corresponding probabilities from a trained\n network and a list of images\n '''\n output = model(inputs).cpu()\n # convert output probabilities to predicted class\n _, preds_tensor = torch.max(output, 1)\n preds = np.squeeze(preds_tensor.numpy())\n return preds, [F.softmax(el, dim=0)[i].item() for i, el in zip(preds, output)]\n\n\ndef plot_classes_preds(model: Type[nn.Module], images: Type[torch.tensor], \n labels: Type[torch.tensor], classes: List[str]):\n '''\n Generates matplotlib Figure using a trained network, along with images\n and labels from a batch, that shows the network's top prediction along\n with its probability, alongside the actual label, coloring this\n information based on whether the prediction was correct or not.\n Uses the \"images_to_probs\" function.\n '''\n n_images = min(40, len(images))\n n_cols = min(4, n_images)\n n_rows = int(ceil(float(n_images) / n_cols))\n\n preds, probs = images_to_probs(model, images)\n images = images.cpu()\n # plot the images in the batch, along with predicted and true labels\n fig = plt.figure(figsize=(12, 36))\n for idx in np.arange(n_images):\n ax = fig.add_subplot(n_rows, n_cols, idx+1, xticks=[], yticks=[])\n matplotlib_imshow(images[idx], one_channel=True)\n ax.set_title(\"{0}, {1:.1f}%\\n(label: {2})\".format(\n classes[preds[idx]],\n probs[idx] * 100.0,\n classes[labels[idx]]),\n color=(\"green\" if preds[idx]==labels[idx].item() else \"red\")\n )\n return fig\n\n\ndef combine_dfs(dfs: List[pd.DataFrame]) -> pd.DataFrame:\n df_concat = pd.concat(dfs)\n group_df = df_concat.groupby(level=0)\n\n df_means = group_df.mean().applymap('{:.4f}'.format)\n df_stds = group_df.std().applymap('{:.4f}'.format)\n df = df_means.combine(df_stds, lambda x1, x2: x1 + ' ± ' + x2)\n return df\n","repo_name":"matwerner/resume_parser","sub_path":"resume_parser/layout/utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":5012,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"21520290067","text":"import re\n\"\"\"\n处理纠错log\n\"\"\"\nfile = open(\"/Users/ff/Desktop/word_output_huawei_ur_correct_17_0831_1598943561.txt\", 'r', encoding='utf-8')\nfile_out = open(\"/Users/ff/Desktop/word_output_huawei_ur_correct_17.txt\", 'w', encoding='utf-8')\nregex = re.compile('input=(.*),\\s+desire=(.*)\\t(.*)screen=\\[(.*)\\]\\):')\nfor l in file:\n # l=\"TASK: input=a, desire=b \tWORD(input=[آفریدی]|desire=[آفریدی]|screen=[آفریدی]): (autoCorrectHappen=0, correctPositiveCount=0, needToCorrectWordCount=0, autoCorrectHappenIncandidateTop3=0) \"\n if l.startswith(\"TASK\") and '\\t' in l:\n # print(l)\n # input= l.split('\\t')[0]\n input = regex.search(l)\n if input.group(1).strip() != input.group(2).strip():\n result=\"input=\"+input.group(1)+'\\t'+\"desire=\"+input.group(2)+'\\t'+\"screen=\"+input.group(4)\n file_out.write(result.strip() + '\\n')\n else:\n file_out.write(l.strip() + '\\n')\n\n# if regex.match(input):\n# input1 = lambda x: x.group(1)\n# print(input1)\n","repo_name":"Messiff10/dict_maker_crubadan","sub_path":"log_deal/correctAnaly.py","file_name":"correctAnaly.py","file_ext":"py","file_size_in_byte":1018,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"16555475548","text":"# Developed by Redjumpman for Redbot.\n# Inspired by the snail race mini game\n\n# STD Library\nimport asyncio\nimport random\nimport os\n\n# Discord and Red Utils\nimport discord\nfrom discord.ext import commands\nfrom __main__ import send_cmd_help\nfrom .utils import checks\nfrom .utils.dataIO import dataIO\nfrom pprint import pprint\n\nanimals = ((':rabbit2:', 'fast'), (':monkey:', 'fast'), (':cat2:', 'fast'), (':mouse2:', 'slow'),\n (':chipmunk:', 'fast'), (':rat:',\n 'fast'), (':dove:', 'fast'), (':bird:', 'fast'),\n (':dromedary_camel:', 'steady'), (':camel:',\n 'steady'), (':dog2:', 'steady'),\n (':poodle:', 'steady'), (':racehorse:', 'steady'), (':ox:', 'abberant'),\n (':cow2:', 'abberant'), (':elephant:',\n 'abberant'), (':water_buffalo:', 'abberant'),\n (':ram:', 'abberant'), (':goat:', 'abberant'), (':sheep:', 'abberant'),\n (':leopard:', 'predator'), (':tiger2:',\n 'predator'), (':dragon:', 'special'),\n (':unicorn:', 'special'), (':turtle:',\n 'slow'), (':bug:', 'slow'), (':rooster:', 'slow'),\n (':snail:', 'slow'), (':scorpion:',\n 'slow'), (':crocodile:', 'slow'), (':pig2:', 'slow'),\n (':turkey:', 'slow'), (':duck:', 'slow'), (':baby_chick:', 'slow'))\n\n\nclass Racer:\n track = '• ' * 20\n\n def __init__(self, animal, mode, user):\n self.animal = animal\n self.mode = mode\n self.user = user\n self.turn = 0\n self.position = 80\n self.placed = False\n self.current = Racer.track + self.animal\n self.bet = 0\n\n def get_user(self):\n return self.user\n\n def field(self):\n field = \":carrot: **{}** :flag_black: [{}]\".format(\n self.current, self.user)\n return field\n\n def get_position(self):\n return self.current.find(self.animal)\n\n def update_track(self):\n distance = self.move()\n self.current = (Racer.track[:max(0, self.position - distance)] + self.animal +\n Racer.track[max(0, self.position - distance):])\n\n '''self.get_position()'''\n\n def update_position(self):\n self.turn += 1\n self.update_track()\n self.position = self.get_position()\n\n def move(self):\n if self.mode == 'slow':\n return random.randint(1, 3) * 3\n\n elif self.mode == 'fast':\n return random.randint(0, 4) * 3\n\n elif self.mode == 'steady':\n return 2 * 3\n\n elif self.mode == 'abberant':\n if random.randint(1, 100) >= 90:\n return 5 * 3\n else:\n return random.randint(0, 2) * 3\n\n elif self.mode == 'predator':\n if self.turn % 2 == 0:\n return 0\n else:\n return random.randint(2, 5) * 3\n\n elif self.animal == ':unicorn:':\n if self.turn % 3:\n return random.choice([len('blue'), len('red'), len('green')]) * 3\n else:\n return 0\n else:\n if self.turn == 1:\n return 14 * 3\n elif self.turn == 2:\n return 0\n else:\n return random.randint(0, 2) * 3\n\n\nclass Race:\n \"\"\"Cog for racing animals\"\"\"\n\n def __init__(self, bot):\n self.bot = bot\n self.bets = {}\n self.system = {}\n self.config = dataIO.load_json('data/race/race.json')\n self.version = \"1.1.04\"\n\n @commands.group(pass_context=True, no_pm=True)\n async def race(self, ctx):\n \"\"\"Race cog's group command\"\"\"\n\n if ctx.invoked_subcommand is None:\n await send_cmd_help(ctx)\n\n @commands.group(pass_context=True, no_pm=True)\n async def setrace(self, ctx):\n \"\"\"Race cog's settings group command\"\"\"\n\n if ctx.invoked_subcommand is None:\n await send_cmd_help(ctx)\n\n @setrace.command(name=\"prize\", pass_context=True)\n @checks.admin_or_permissions(manage_server=True)\n async def _prize_setrace(self, ctx, minimum: int, maximum: int):\n \"\"\"Set the prize range\n\n A number of credits will be randomly picked from the set\n miminum to the set maximum.\n\n Parameters:\n minimum: integer\n Must be lower than maximum\n maximum: integer\n Must be higher than minimum\n\n Returns:\n Bot replies with invalid mode\n Bot replies with valid mode and saves choice\n \"\"\"\n\n if minimum > maximum:\n return await self.bot.say(\"https://simple.wikipedia.org/wiki/Maximum_and_minimum\")\n server = ctx.message.server\n settings = self.check_config(server)\n settings['Prize'] = (minimum, maximum)\n self.save_settings()\n await self.bot.say(\"Prize range set to {}-{}\".format(minimum, maximum))\n\n @setrace.command(name=\"time\", pass_context=True)\n @checks.admin_or_permissions(manage_server=True)\n async def _time_setrace(self, ctx, time: int):\n \"\"\"Set the time players have to enter a race\n\n Amount of time for the bot to wait for entrants until the race\n is ready to begin.\n\n Parameters:\n time: integer\n Unit is expressed in seconds\n Default is set to 60 seconds\n\n Returns:\n Bo\n \"\"\"\n author = ctx.message.author\n if time < 0:\n return await self.bot.say(\"{}. You are a dumbass. I can't turn back\"\n \"time.\".format(author.name))\n\n settings = self.check_config(author.server)\n settings['Time'] = time\n self.save_settings()\n await self.bot.say(\"Wait time set to {}s\".format(time))\n\n @setrace.command(name=\"mode\", pass_context=True)\n @checks.admin_or_permissions(manage_server=True)\n async def _mode_setrace(self, ctx, mode: str):\n \"\"\"Set the race mode\n\n Standard Mode assigns everyone a turtle. Everyone has the same\n random movement formula.\n\n Zoo Mode assigns every entrant a random animal. Animals are grouped into\n classes that meet a special formula for movement. 8 different animal classes!\n\n Parameters:\n mode: string\n Must be standard or zoo\n Returns:\n Bot replies with invalid mode\n Bot replies with valid mode and saves choice\n \"\"\"\n server = ctx.message.server\n settings = self.check_config(server)\n mode = mode.lower()\n modes = ['standard', 'zoo']\n if mode not in modes:\n return await self.bot.say(\"Invalid mode. Acceptable responses \"\n \"include: {}.\".format(', '.join(modes)))\n settings['Mode'] = mode\n self.save_settings()\n await self.bot.say(\"Mode now set to {}.\".format(mode))\n\n @race.command(name=\"version\")\n async def _version_race(self):\n \"\"\"Displays the version of race\"\"\"\n await self.bot.say(\"You are running race version {}\".format(self.version))\n\n @race.command(name=\"reset\", pass_context=True, hidden=True)\n @checks.admin_or_permissions(manage_server=True)\n async def _reset_race(self, ctx):\n \"\"\"Reset race parameters DEBUG USE ONLY\"\"\"\n server = ctx.message.server\n data = self.check_server(server)\n self.game_teardown(data, force=True)\n await self.bot.say(\"Parameters reset.\")\n\n @race.command(name=\"start\", pass_context=True)\n @commands.cooldown(1, 30, commands.BucketType.server)\n async def _start_race(self, ctx):\n \"\"\"Start an animal race and enter yourself as participant\n\n Returns:\n Two text outputs. One to start the race,\n and the second to represent the race. The second\n msg will be edited multiple times to represent the race.\n\n Notes:\n Must wait 2 minutes after every race to start a new one.\n You cannot start a race if a race is already active.\n A race is considered active once this command is used.\n A race is considered started once the track is displayed.\n The user who starts a race, will be automatically entered.\n The bot will always join a race.\n There are no cheaters and it isn't rigged.\n \"\"\"\n author = ctx.message.author\n data = self.check_server(author.server)\n settings = self.check_config(author.server)\n\n if data['Race Active']:\n return\n\n self.game_teardown(data, force=True)\n\n data['Race Active'] = True\n data['Players'][author.id] = {}\n wait = settings['Time']\n await self.bot.say(\":triangular_flag_on_post: A race has begun! Type {}race enter \"\n \"to join the race! :triangular_flag_on_post:\\n{}The race will \"\n \"begin in {} seconds!\\n\\n**{}** entered the \"\n \"race!\".format(ctx.prefix, ' ' * 25, wait, author.mention))\n await asyncio.sleep(wait)\n if len(data['Players']) == 1:\n if self.bets != {}:\n await self.npc_make_bet(ctx)\n await self.bot.say(\":checkered_flag: The race is now in progress :checkered_flag:\")\n\n data['Race Start'] = True\n\n racers = self.game_setup(author, data, settings['Mode'])\n race_msg = await self.bot.say('\\u200b' + '\\n' + '\\n'.join([player.field() for player in racers]))\n await self.run_game(racers, race_msg, data)\n\n footer = \"Type {}race claim to receive prize money. You must claim it before the next race!\"\n first = ':first_place: {0}'.format(*data['First'])\n fv = '{1}\\n{2:.2f}s'.format(*data['First'])\n second = ':second_place: {0}'.format(*data['Second'])\n sv = '{1}\\n{2:.2f}s'.format(*data['Second'])\n if data['Third']:\n third = ':third_place: {0}'.format(*data['Third'])\n tv = '{1}\\n{2:.2f}s'.format(*data['Third'])\n else:\n third = ':third_place:'\n tv = '--\\n--'\n\n embed = discord.Embed(colour=0x00CC33)\n embed.add_field(name=first, value=fv)\n embed.add_field(name=second, value=sv)\n embed.add_field(name=third, value=tv)\n embed.add_field(\n name='-' * 99, value='{} is the winner!'.format(data['Winner']))\n embed.title = \"Race Results\"\n embed.set_footer(text=footer.format(ctx.prefix))\n await self.bot.say(content=data['Winner'].mention, embed=embed)\n if self.bets != {}:\n await self.payout_betters(data, ctx)\n self.game_teardown(data)\n\n @race.command(name=\"totalBets\", pass_context=True)\n @commands.cooldown(1, 5, commands.BucketType.server)\n async def _get_total_bets(self):\n \"\"\"View total bets.\n\n Returns:\n Text informing the user that of the current Pot size\n\n Notes:\n Users can only place 1 bet,\n They are only entitled to the amount the place (if other enter at higher value)\n If Player does not bet, they are not entitled to anything.\n \"\"\"\n bet_total = 0\n for key, value in self.bets.items():\n bet_total += int(value)\n await self.bot.say(\"Total Pot: {}\".format(bet_total))\n\n @race.command(name=\"bet\", pass_context=True)\n async def _enter_bet(self, ctx, betAmount: int):\n \"\"\"Place a bet on the current race - 1 bet per player.\n\n Returns:\n Text informing the user that they have placed a bet on themselves.\n\n Notes:\n Users can only place 1 bet,\n They are only entitled to the amount the place (if other enter at higher value)\n If Player does not bet, they are not entitled to anything.\n \"\"\"\n author = ctx.message.author\n data = self.check_server(author.server)\n bets = self.bets\n bot = self.bot\n\n if data['Race Start']:\n return\n elif not data['Race Active']:\n return\n elif author.id in bets:\n return await bot.say(\"{0} has already placed a bet of **{1}**\".format(author.name, bets[author.id]))\n elif len(bets) == 8:\n return\n else:\n if author.id in data['Players']:\n try:\n bank = bot.get_cog('Economy').bank\n bank.withdraw_credits(author, betAmount)\n bets[author.id] = int(betAmount)\n await bot.say(\"{0} placed a **{1}** credit bet!\".format(author.name, betAmount))\n except AttributeError:\n return await bot.say(\"Economy is not loaded.\")\n except Exception as e:\n return await bot.say(\"Insufficient Funds, you looking for handouts? {}\".format(e))\n else:\n return await bot.say(\"NO {} !!! YOU ARE NOT IN THE RACE! SIDDOWN!\".format(author.name))\n\n @race.command(name=\"enter\", pass_context=True)\n async def _enter_race(self, ctx):\n \"\"\"Enter an animal race\n\n Returns:\n Text informing the user they have entered the race.\n If they cannot join for any reason (look at notes) then\n it will return silently with no response.\n\n Notes:\n Users cannot join if a race is not active, has 5 (exluding the bot)\n or more players, or is already in the race.\n \"\"\"\n author = ctx.message.author\n data = self.check_server(author.server)\n\n if data['Race Start']:\n return\n elif not data['Race Active']:\n return\n elif author.id in data['Players']:\n return\n elif len(data['Players']) == 8:\n return\n else:\n data['Players'][author.id] = {}\n await self.bot.say(\"**{}** entered the race!\".format(author.name))\n\n @race.command(name=\"claim\", pass_context=True)\n async def _claim_race(self, ctx):\n \"\"\"Claim your prize from the animal race\n\n Returns:\n One of three outcomes based on result\n :Text output giving random credits from 10-100\n :Text output telling you are not the winner\n :Text output telling you to get a bank account\n\n Raises:\n cogs.economy.NoAccount Error when bank account not found.\n\n Notes:\n If you do not have a bank account with economy, the bot will take your money\n and spend it on cheap booze and potatoes.\n \"\"\"\n author = ctx.message.author\n data = self.check_server(author.server)\n settings = self.check_config(author.server)\n\n if data['Race Active']:\n return\n\n if data['Winner'] != author:\n return await self.bot.say(\"Scram kid. You didn't win nothing yet.\")\n try:\n bank = self.bot.get_cog('Economy').bank\n except AttributeError:\n return await self.bot.say(\"Economy is not loaded.\")\n\n prize_range = settings['Prize']\n prize = random.randint(*prize_range)\n\n try: # Because people will play games for money without a fucking account smh\n bank.deposit_credits(author, prize)\n except Exception as e:\n print('{} raised {} because they are stupid.'.format(author.name, type(e)))\n await self.bot.say(\"We wanted to give you a prize, but you didn't have a bank \"\n \"account.\\nTo teach you a lesson, your winnings are mine this \"\n \"time. Now go register!\")\n else:\n await self.bot.say(\"After paying for animal feed, entrance fees, track fees, \"\n \"you get {} credits.\".format(prize))\n finally:\n data['Winner'] = None\n\n def check_server(self, server):\n if server.id in self.system:\n return self.system[server.id]\n else:\n self.system[server.id] = {'Race Start': False, 'Race Active': False, 'Players': {},\n 'Winner': None, 'First': None, 'Second': None, 'Third': None\n }\n return self.system[server.id]\n\n def check_config(self, server):\n if server.id in self.config['Servers']:\n return self.config['Servers'][server.id]\n else:\n self.config['Servers'][server.id] = {'Prize': (1, 100), 'Mode': 'standard', 'Time': 60}\n self.save_settings()\n return self.config['Servers'][server.id]\n\n def game_teardown(self, data, force=False):\n if data['Winner'] == self.bot.user or force:\n data['Winner'] = None\n data['Race Active'] = False\n data['Race Start'] = False\n data['First'] = None\n data['Second'] = None\n data['Third'] = None\n data['Players'].clear()\n self.bets = {}\n\n def save_settings(self):\n dataIO.save_json('data/race/race.json', self.config)\n\n async def npc_make_bet(self, ctx):\n total_bets = 0\n bot = self.bot\n botuser = ctx.message.server.me\n bets = self.bets\n pprint(botuser)\n for key, value in bets.items():\n total_bets += int(value)\n try:\n try:\n economy_cog = bot.get_cog('Economy')\n bank = economy_cog.bank\n\n if bank.get_balance(botuser) < total_bets:\n bank.deposit_credits(botuser, total_bets)\n bank.withdraw_credits(botuser, total_bets)\n self.bets[bot.user.id] = total_bets\n await bot.say(\"Bot {0} bets ***{1}*** credits.\".format(bot.user.name, total_bets))\n except AttributeError:\n return await bot.say(\"Economy is not loaded.\")\n except Exception as e:\n return await bot.say(\"Insufficient Funds, you looking for handouts?\")\n except Exception as e:\n print('{} raised {} because they are stupid.'.format(bot.user, type(e)))\n econ = self.bot.get_cog('Economy')\n bank = econ.bank\n bank.create_account(botuser)\n await self.npc_make_bet(ctx)\n\n async def payout_betters(self, data, ctx):\n totalpayout = 0\n bets = self.bets\n bot = self.bot\n if bot.user == data['Winner']:\n winner = ctx.message.server.me\n else:\n winner = data['Winner']\n\n for key, value in bets.items():\n totalpayout += int(value)\n\n if data['Winner'].id in bets:\n try: # Because people will play games for money without a fucking account smh\n try:\n bank = bot.get_cog('Economy').bank\n except AttributeError:\n return await bot.say(\"Economy is not loaded.\")\n bank.deposit_credits(winner, totalpayout)\n await bot.say(\"Congrats {0}, you get {1} credits.\".format(data['Winner'].name, totalpayout))\n except Exception as e:\n print('{} raised {} because they are stupid.'.format(data['Winner'], type(e)))\n return await bot.say(\"We wanted to give you a prize, but you didn't have a bank \"\n \"account.\\nGo register a bank account ya hippie!\"\n \"\\nYou missed out on {} credits\".format(totalpayout))\n else:\n await bot.say(\"You didn't bet, siddown, one day you'll all be refunded.\")\n\n def game_setup(self, author, data, mode):\n\n racers = []\n\n if mode == 'zoo':\n if len(data['Players']) == 1:\n bot_set = random.choice(animals)\n racers = [Racer(bot_set[0], bot_set[1], self.bot.user)]\n\n for user in data['Players']:\n mobj = author.server.get_member(user)\n animal_set = random.choice(animals)\n racers.append(Racer(animal_set[0], animal_set[1], mobj))\n else:\n animal_set = (\":turtle:\", \"slow\")\n if len(data['Players']) == 1:\n racers = [Racer(animal_set[0], animal_set[1], self.bot.user)]\n\n for user in data['Players']:\n mobj = author.server.get_member(user)\n racers.append(Racer(animal_set[0], animal_set[1], mobj))\n\n return racers\n\n async def run_game(self, racers, game, data):\n while True:\n await asyncio.sleep(2.0)\n for player in racers:\n player.update_position()\n position = player.get_position()\n if position == 0:\n if not data['Winner']:\n speed = player.turn + random.uniform(0.1, 0.88)\n data['Winner'] = player.user\n data['First'] = (player.user, player.animal, speed)\n player.placed = True\n elif not data['Second'] and not player.placed:\n if data['First'][2] > player.turn:\n speed = player.turn + random.uniform(0.89, 0.99)\n else:\n speed = player.turn + random.uniform(0.1, 0.88)\n data['Second'] = (player.user, player.animal, speed)\n player.placed = True\n elif not data['Third'] and not player.placed:\n if data['Second'][2] > player.turn:\n speed = player.turn + random.uniform(0.89, 0.99)\n else:\n speed = player.turn + random.uniform(0.1, 0.88)\n data['Third'] = (player.user, player.animal, speed)\n player.placed = True\n field = [player.field() for player in racers]\n await self.bot.edit_message(game, '\\u200b' + '\\n' + '\\n'.join(field))\n\n if [player.get_position() for player in racers].count(0) == len(racers):\n break\n\n prize = random.randint(10, 100)\n data['Prize'] = prize\n\n\ndef check_folders():\n if not os.path.exists('data/race'):\n print(\"Creating data/race folder...\")\n os.makedirs('data/race')\n\n\ndef check_files():\n system = {\"Servers\": {}}\n\n f = 'data/race/race.json'\n if not dataIO.is_valid_json(f):\n print('data/race/race.json')\n dataIO.save_json(f, system)\n\n\ndef setup(bot):\n check_folders()\n check_files()\n bot.add_cog(Race(bot))\n","repo_name":"NBKChat/nbk-cogs","sub_path":"race/race.py","file_name":"race.py","file_ext":"py","file_size_in_byte":22702,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"3519084451","text":"from video_streaming.grpc import GrpcServer\nfrom video_streaming.celery import celery_app\n\n# To found main.celery_app module and load celery application.\n__all__ = ['celery_app']\n\n\ndef main():\n \"\"\"Main entry point\"\"\"\n\n GrpcServer().serve() # start gRPC server\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"mojtaba-arvin/video-service","sub_path":"video-streaming/main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":307,"program_lang":"python","lang":"en","doc_type":"code","stars":25,"dataset":"github-code","pt":"86"}
+{"seq_id":"70692724124","text":"import time\nimport serial\n\nDEBUG=True\n\nSAMSUNG_REQUEST_PREFIX='\\x08\\x22'\nSAMSUNG_RESPONSE_SUCCESS='\\x03\\x0C\\xF1'\nSAMSUNG_RESPONSE_FAILURE='\\x03\\x0C\\xFF'\n\nST_INIT=0\nST_CC1=1\nST_CC2=2\n\nclass TVRemote(object):\n def __init__(self, device=None):\n if device is None:\n device = '/dev/ttyS0'\n\n self.port = serial.Serial(device,\n baudrate=9600,\n bytesize=8,\n parity='N',\n stopbits=1,\n timeout=3,\n writeTimeout=1)\n\n def close(self):\n self.port.close()\n\n def _checksum(self, cmd):\n chk = 0\n for ch in cmd:\n chk = (chk + ord(ch)) % 256\n return (~chk + 1) % 256\n\n def _analyze_response(self):\n status = ST_INIT\n while True:\n c = self.port.read(size=1)\n\n # timeout\n if not c:\n return False\n\n if DEBUG:\n print(\"%02X\" % ord(c), sep=' ')\n\n if status == ST_INIT:\n if c == SAMSUNG_RESPONSE_SUCCESS[0]:\n status = ST_CC1\n else:\n status = ST_INIT\n elif status == ST_CC1:\n if c == SAMSUNG_RESPONSE_SUCCESS[1]:\n status = ST_CC2\n else:\n status = ST_INIT\n elif status == ST_CC2:\n if c == SAMSUNG_RESPONSE_SUCCESS[2]:\n return True\n elif c == SAMSUNG_RESPONSE_FAILURE[2]:\n return False\n else:\n status = ST_INIT\n else:\n status = ST_INIT\n\n def _send_cmd(self, cmd1=0, cmd2=0, cmd3=0, value=0, timeout=0.1):\n cmd = \"%s%c%c%c%c\" % (SAMSUNG_REQUEST_PREFIX, cmd1, cmd2, cmd3, value)\n cmd += chr(self._checksum(cmd))\n\n self.port.write(cmd.encode('latin1'))\n\n time.sleep(timeout)\n\n response = self._analyze_response()\n\n return response == SAMSUNG_RESPONSE_SUCCESS\n\n def cmd_volume_set(self, volume):\n \"\"\"Set the volume to a specific level (0-255)\"\"\"\n if volume > 255:\n volume = 255\n elif volume < 0:\n volume = 0\n return self._send_cmd(0x01, 0x00, 0x00, volume)\n cmd_volume_set.nargs = 1\n\n def cmd_volume_up(self):\n \"\"\"Pump up the volume\"\"\"\n return self._send_cmd(0x01, 0x00, 0x01, 0x00)\n cmd_volume_up.nargs = 0\n\n def cmd_volume_down(self):\n \"\"\"Pump down the volume\"\"\"\n return self._send_cmd(0x01, 0x00, 0x02, 0x00)\n cmd_volume_down.nargs = 0\n\n def cmd_volume_mute(self):\n \"\"\"Mute\"\"\"\n return self._send_cmd(0x02, 0x00, 0x00, 0x00)\n cmd_volume_mute.nargs = 0\n\n def cmd_source_tv(self):\n \"\"\"Change image source to TV\"\"\"\n return self._send_cmd(0x0a, 0x00, 0x00, 0x00)\n cmd_source_tv.nargs = 0\n\n def cmd_source_av(self, av=0):\n \"\"\"Change image source to AV\"\"\"\n return self._send_cmd(0x0a, 0x00, 0x01, av)\n cmd_source_av.nargs = 0\n\n def cmd_source_svideo(self, svideo=0):\n \"\"\"Change image source to SVideo\"\"\"\n return self._send_cmd(0x0a, 0x00, 0x02, svideo)\n cmd_source_svideo.nargs = 0\n\n def cmd_source_component(self, component=0):\n \"\"\"Change image source to Component\"\"\"\n return self._send_cmd(0x0a, 0x00, 0x03, component)\n cmd_source_component.nargs = 0\n\n def cmd_source_pc(self, pc=0):\n \"\"\"Change image source to PC\"\"\"\n return self._send_cmd(0x0a, 0x00, 0x04, pc)\n cmd_source_pc.nargs = 0\n\n def cmd_source_hdmi(self, hdmi=0):\n \"\"\"Change image source to HDMI\"\"\"\n return self._send_cmd(0x0a, 0x00, 0x05, hdmi)\n cmd_source_hdmi.nargs = 0\n\n def cmd_source_dvi(self, dvi=0):\n \"\"\"Change image source to DVI\"\"\"\n return self._send_cmd(0x0a, 0x00, 0x06, dvi)\n cmd_source_dvi.nargs = 0\n\n def cmd_tv_channel_set(self, channel):\n \"\"\"Change TV channel (0-255)\"\"\"\n if channel > 255:\n chanel = 255\n elif channel < 0:\n channel = 0\n\n return self._send_cmd(0x04, 0, 0, channel)\n cmd_tv_channel_set.nargs = 1\n\n def cmd_tv_channel_up(self):\n \"\"\"Change to next TV channel\"\"\"\n return self._send_cmd(0x03, 0x00, 0x01, 0x00)\n cmd_tv_channel_up.nargs = 0\n\n def cmd_tv_channel_down(self):\n \"\"\"Change to previous TV channel\"\"\"\n return self._send_cmd(0x03, 0x00, 0x02, 0x00)\n cmd_tv_channel_down.nargs = 0\n\n def cmd_power_off(self):\n \"\"\"Power off TV. Warning: cannot be powered up again with ex-link cable\"\"\"\n return self._send_cmd(0x00, 0x00, 0x00, 0x01)\n cmd_power_off.nargs = 0\n\n def cmd_power_on(self):\n \"\"\"Power on TV. Actually not working\"\"\"\n return self._send_cmd(0x00, 0x00, 0x00, 0x02)\n cmd_power_on.nargs = 0\n\n\n @classmethod\n def method_list(cls):\n command_methods = [cls.__dict__[m] for m in cls.__dict__.keys() if m.startswith(\"cmd_\")]\n return command_methods\n\n @classmethod\n def command_list(cls):\n commands = [method.__name__[4:] for method in cls.method_list()]\n commands.sort()\n return commands\n\nif __name__ == '__main__':\n try:\n tv = TVRemote(\"/dev/ttyS0\")\n tv.cmd_source_pc(pc=0)\n tv.cmd_volume_mute()\n time.sleep(0.5)\n tv.cmd_set_volume(15)\n finally:\n tv.close()\n\n\n","repo_name":"enlavin/exlink","sub_path":"exlink.py","file_name":"exlink.py","file_ext":"py","file_size_in_byte":5403,"program_lang":"python","lang":"en","doc_type":"code","stars":12,"dataset":"github-code","pt":"86"}
+{"seq_id":"27526317746","text":"from bj.player import Player, Dealer\nfrom bj.deck import Deck\nclass Game:\n \n def __init__(self):\n self.player = Player()\n self.dealer = Dealer()\n self.deck = Deck()\n self.deck.add_player(player=self.player, dealer=self.dealer)\n\n def start(self):\n print(\"---------ゲーム開始---------\")\n # 初期はまず2枚ずつ引く\n for i in range(2):\n self.player.draw_card(self.deck)\n self.dealer.draw_card(self.deck)\n print(self.deck.display_deck())\n self.play()\n\n def play(self):\n while True:\n draw = input(\"追加でカードを引きますか? yes/no: \")\n if \"n\" in draw:\n break\n self.player.draw_card(self.deck)\n if self.deck.is_bust(self.player):\n print(\"\\n\")\n print(\"player bust!!\")\n break\n else:\n print(\"\\n\")\n print(\"---------デッキ状況---------\")\n print(self.deck.display_deck())\n self.final_judge()\n\n def final_judge(self):\n self.dealer.draw_card_by_17(self.deck)\n msg = self.deck.final_judge()\n self.end(msg)\n \n def end(self, msg):\n print(\"=========ゲーム結果=========\")\n print(\"###\", msg, \"###\")\n print(self.deck.display_deck(final_judge=True))\n\n\ndef main():\n game = Game()\n game.start()","repo_name":"anaaki/bj","sub_path":"bj/game.py","file_name":"game.py","file_ext":"py","file_size_in_byte":1429,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"20888890699","text":"\"\"\"\nGiven the root of a binary tree, invert the tree, and return its root.\n\"\"\"\n\nclass TreeNode(object):\n def __init__(self, val=0, left=None, right=None):\n self.val = val\n self.left = left\n self.right = right\n\nclass InvertBinaryTree(object):\n def invertTree(self, root):\n if root is None:\n return None\n elif root.left is None and root.right is None:\n return root\n elif root.left is None and root.right is not None:\n root.left = self.invertTree(root.right)\n root.right = None\n return root\n elif root.left is not None and root.right is None:\n root.right = self.invertTree(root.left)\n root.left = None\n return root\n else:\n newLeft = self.invertTree(root.right)\n newRight = self.invertTree(root.left)\n root.left = newLeft\n root.right = newRight\n return root","repo_name":"jasonwang7517/Interview-Prep","sub_path":"InvertBinaryTree.py","file_name":"InvertBinaryTree.py","file_ext":"py","file_size_in_byte":962,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"19132299178","text":"def findLow(num):\n l = 0\n h = len(LIS)-1\n ret = 1000000\n\n while l <= h:\n mid = (l + h)//2\n if LIS[mid] >= num:\n if ret > mid:\n ret = mid\n h = mid - 1\n else:\n l = mid + 1\n\n return ret\n\n\nN = int(input())\nnumber = [int(x) for x in input().split()]\nLIS = [number[0]]\n\nfor i in range(1, N):\n if LIS[len(LIS)-1] < number[i]:\n LIS.append(number[i])\n else:\n LIS[findLow(number[i])] = number[i]\n\nprint(LIS)\nprint(len(LIS))","repo_name":"JungDayoon/AlgorithmStudy","sub_path":"BOJ/[12015] 가장 긴 증가하는 부분 수열 2/ekdbsl/LIS_bs.py","file_name":"LIS_bs.py","file_ext":"py","file_size_in_byte":517,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"11108238883","text":"\nfrom pathlib import Path\n\nimport pickle\nimport logging\nimport os\nimport math\nimport numpy as np\nimport torch\nimport torch.nn as nn\nfrom torch.utils.data import DataLoader, Dataset, BatchSampler\nimport pytorch_lightning as pl\n\nimport torchtext\nfrom datasets import load_dataset, DatasetDict\n\nfrom .utils.collators import collate_batch_pad\nfrom .utils.bucket_sampler import BucketSampler\n\n# LRA tokenizer renames ']' to 'X' and delete parentheses as their tokenizer removes\n# non-alphanumeric characters.\n# https://github.com/google-research/long-range-arena/blob/264227cbf9591e39dd596d2dc935297a2070bdfe/lra_benchmarks/listops/input_pipeline.py#L46\ndef listops_tokenizer(s):\n return s.translate({ord(\"]\"): ord(\"X\"), ord(\"(\"): None, ord(\")\"): None}).split()\n\n\nclass ListOpsDataModuleVar(pl.LightningDataModule):\n def __init__(\n self,\n data_dir,\n batch_size,\n num_workers,\n max_length=2048,\n **kwargs,\n ):\n super().__init__()\n self.data_dir = Path(data_dir)\n self.batch_size = batch_size\n self.num_workers = num_workers\n self.max_length = max_length\n self.cache_dir = self.get_cache_dir()\n\n def prepare_data(self):\n self.process_dataset()\n\n def setup(self, stage=None):\n if stage == \"test\" and hasattr(self, \"dataset_test\"):\n return\n dataset, self.tokenizer, self.vocab = self.process_dataset()\n self.vocab_size = len(self.vocab)\n dataset.set_format(type=\"torch\", columns=[\"sequence\", \"label\", \"len\"])\n\n # Create all splits\n self.train_dataset, self.val_dataset, self.test_dataset = (\n dataset[\"train\"],\n dataset[\"val\"],\n dataset[\"test\"],\n )\n self.collate_fn = collate_batch_pad\n \n def process_dataset(self):\n if self.cache_dir is not None:\n return self._load_from_cache()\n\n dataset = load_dataset(\n \"csv\",\n data_files={\n \"train\": str(self.data_dir / \"basic_train.tsv\"),\n \"val\": str(self.data_dir / \"basic_val.tsv\"),\n \"test\": str(self.data_dir / \"basic_test.tsv\"),\n },\n delimiter=\"\\t\",\n keep_in_memory=True,\n )\n dataset = dataset.rename_column(\"Target\", \"label\")\n \n # Remove unnecessary tokens\n tokenizer = listops_tokenizer\n tokenize = lambda x: {\"tokens\": tokenizer(x[\"Source\"])}\n dataset = dataset.map(\n tokenize,\n remove_columns=[\"Source\"],\n keep_in_memory=True,\n load_from_cache_file=False\n )\n \n # Calculate lengths\n lengths_calc = lambda x: {\"len\": len(x[\"tokens\"])}\n dataset = dataset.map(\n lengths_calc,\n keep_in_memory=True,\n load_from_cache_file=False\n )\n \n # Biuld vocab\n vocab = torchtext.vocab.build_vocab_from_iterator(\n dataset[\"train\"][\"tokens\"],\n specials=(\n [\"\", \"\"]\n ),\n )\n vocab.set_default_index(vocab[\"\"])\n \n # Map vocab values\n numericalize = lambda x: {\"sequence\": vocab(x[\"tokens\"])}\n dataset = dataset.map(\n numericalize,\n remove_columns=[\"tokens\"],\n keep_in_memory=True,\n load_from_cache_file=False\n )\n\n self._save_to_cache(dataset, tokenizer, vocab)\n return dataset, tokenizer, vocab\n\n def _save_to_cache(self, dataset, tokenizer, vocab):\n cache_dir = self.data_dir / self._cache_dir_name\n os.makedirs(str(cache_dir), exist_ok=True)\n logger = logging.getLogger(__name__)\n logger.info(f\"Saving to cache at {str(cache_dir)}\")\n dataset.save_to_disk(str(cache_dir))\n with open(cache_dir / \"tokenizer.pkl\", \"wb\") as f:\n pickle.dump(tokenizer, f)\n with open(cache_dir / \"vocab.pkl\", \"wb\") as f:\n pickle.dump(vocab, f)\n\n def _load_from_cache(self):\n assert self.cache_dir.is_dir()\n logger = logging.getLogger(__name__)\n logger.info(f\"Load from cache at {str(self.cache_dir)}\")\n dataset = DatasetDict.load_from_disk(str(self.cache_dir))\n with open(self.cache_dir / \"tokenizer.pkl\", \"rb\") as f:\n tokenizer = pickle.load(f)\n with open(self.cache_dir / \"vocab.pkl\", \"rb\") as f:\n vocab = pickle.load(f)\n return dataset, tokenizer, vocab\n\n @property\n def _cache_dir_name(self):\n return f\"listops1_var_{self.batch_size}\"\n\n def get_cache_dir(self):\n cache_dir = self.data_dir / self._cache_dir_name\n if cache_dir.is_dir():\n return cache_dir\n else:\n return None\n\n def get_bucket_boundaries(self, df):\n max_log2_bin = math.ceil(np.log2(max(df['len'])))\n min_log2_bin = math.floor(np.log2(min(df['len'])))\n return [2**i for i in range(min_log2_bin, max_log2_bin + 1)]\n \n # Defining DataLoaders\n def train_dataloader(self):\n boundaries = self.get_bucket_boundaries(self.train_dataset)\n sampler_train = BucketSampler(\n lengths=self.train_dataset['len'], \n bucket_boundaries=boundaries,\n batch_size=self.batch_size\n )\n train_dataloader = DataLoader(\n self.train_dataset,\n batch_size=None,\n shuffle=False,\n sampler=sampler_train,\n num_workers=self.num_workers,\n drop_last=False,\n collate_fn=self.collate_fn\n )\n return train_dataloader\n\n def val_dataloader(self):\n boundaries = self.get_bucket_boundaries(self.val_dataset)\n sampler_val = BucketSampler(\n lengths=self.val_dataset['len'], \n bucket_boundaries=boundaries,\n batch_size=self.batch_size\n )\n val_dataloader = DataLoader(\n self.val_dataset,\n batch_size=None,\n shuffle=False,\n sampler=sampler_val,\n num_workers=self.num_workers,\n drop_last=False,\n collate_fn=self.collate_fn\n )\n return val_dataloader\n \n def test_dataloader(self):\n sampler_test = BucketSampler(\n lengths=self.test_dataset['len'], \n bucket_boundaries=self.get_bucket_boundaries(self.test_dataset),\n batch_size=self.batch_size\n )\n test_dataloader = DataLoader(\n self.test_dataset,\n batch_size=None,\n shuffle=False,\n sampler=sampler_test,\n num_workers=self.num_workers,\n drop_last=False,\n collate_fn=self.collate_fn\n )\n return test_dataloader","repo_name":"RuslanKhalitov/ChordMixer","sub_path":"dataloaders/lra_listops_var.py","file_name":"lra_listops_var.py","file_ext":"py","file_size_in_byte":6767,"program_lang":"python","lang":"en","doc_type":"code","stars":52,"dataset":"github-code","pt":"86"}
+{"seq_id":"43133824059","text":"'''\nThis module stores all of the data loading tools needed for GeneratorNet training and testing.\nThe tools available include a midi file information parser and a sound file parser.\n'''\n\n# dependencies\nimport random\nimport numpy as np\nimport h5py\nfrom torch.utils.data import Dataset\nfrom torch.utils.data import DataLoader\nimport torch\n\n# user defined modules\nfrom DataParameters import PARAMETERS as params\n\n\nclass RoseEtudes(Dataset):\n '''Data loader class for reading the Rose Etude data from the .h5 file stored in path.\n\n Args: path\n path (string): The location of the Rose Etudes .h5 files.\n data_name (string): Name of the Rose Etudes data .h5 file.\n labels_name (string): Name of the Rose Etudes label .h5 file.\n '''\n def __init__(self, path, data_name, labels_name):\n self.rose_data_frame = h5py.File(path + data_name, 'r')\n self.rose_data_keys = list(self.rose_data_frame.keys())\n self.rose_labels_frame = h5py.File(path + labels_name, 'r')\n self.rose_labels_keys = list(self.rose_labels_frame.keys())\n # the number of frames to include from the file\n self.num_frames = int(params['sound_duration'] * 44100)\n\n def __len__(self):\n return len(self.rose_data_keys)\n\n def __getitem__(self, idx):\n rose_data = torch.from_numpy(\n self.rose_data_frame[self.rose_data_keys[idx]][:self.num_frames])\n rose_labels = self.rose_labels_frame[self.rose_labels_keys[idx]][:, 3:5]\n rose_labels = torch.tensor([self.name_to_midi(note, octave) for note, octave in\n zip(rose_labels[:, 0], rose_labels[:, 1])])\n return rose_data, rose_labels\n def name_to_midi(self, note, octave):\n '''Method for converting between note names and midi labels\n\n Input: note, octave\n note (string): The name of the note to be converted to midi.\n octave (int): The octave of the note to be converted to midi.\n\n Output: midi\n midi (int): The midi note corresponding to the input.\n '''\n name = {b'rest': 0,\n b'C-': -1, b'C': 0, b'C#': 1, b'C##': 2,\n b'D-': 1, b'D': 2, b'D#': 3,\n b'E-':3, b'E': 4, b'E#': 5,\n b'F-': 4, b'F': 5, b'F#': 6, b'F##': 7,\n b'G-': 6, b'G': 7, b'G#': 8, b'G##': 9,\n b'A-': 8, b'A': 9, b'A#': 10,\n b'B--': 9, b'B-': 10, b'B': 11, b'B#': 12}\n midi = name[note] + (int(octave) + 1) * 12\n return midi\n\n\nclass Philharmonia(Dataset):\n '''Data loader class for reading the Philharmonia data from the .h5 file stored in path.\n\n Args: path\n path (string): The location of the Philharmonia .h5 file.\n name (string): Name of the Philharmonia .h5 file.\n '''\n def __init__(self, path, name):\n self.phil_frame = h5py.File(path + name, 'r')\n phil_keys = np.array(list(self.phil_frame.keys()))\n # shuffle the keys so as to not bias the input data\n random.Random(4).shuffle(phil_keys)\n '''\n Information from the key names separated by the '_' delimiter:.\n Index 0: instrument (banjo, bass-clarinet, bassoon, ..., violin).\n Index 1: midi note (22, 23,24, ..., 108).\n Index 2: duration (025, 05, 1, ..., very long).\n Index 3: dynamics (pianissimo, piano, mezzo-piano, ... fortissimo).\n Index 4: style (normal, fluttertonguing, nonlegato, ..., glissando).\n '''\n information = np.array([key.split('_') for key in phil_keys])\n # only include samples with monophonic, dynamically stable sounds\n # played normally on the clarinet,\n useful_samples = [(inst == 'clarinet' and 'phrase' not in dur\n and 'long' not in dur and 'cresc' not in dyn\n and 'normal' in style)\n for inst, dur, dyn, style in zip(information[:, 0],\n information[:, 2],\n information[:, 3],\n information[:, 4])]\n self.phil_keys = phil_keys[useful_samples]\n self.information = information[useful_samples]\n # the labels are the note names\n self.labels = torch.tensor([\n self.name_to_midi(info) for info in self.information[:, 1]]).long()\n\n def __len__(self):\n return len(self.phil_keys)\n\n def __getitem__(self, idx):\n phil_data = torch.from_numpy(\n self.phil_frame[self.phil_keys[idx]][:]).float()\n phil_labels = self.labels[idx].long()\n return phil_data, phil_labels\n def name_to_midi(self, note):\n '''Method for converting note name labels to midi labels\n Input: note\n note (string): Note name to convert to midi\n\n Output: midi\n midi (int): output midi note\n '''\n note_names = 'C Cs D Ds E F Fs G Gs A As B'.split(' ')\n midi = (note_names.index(note[:-1]))+(int(note[-1])+1)*12\n return midi\n\nDATASETS = {'Rose Etudes': RoseEtudes('../data/audio_data/', 'Rose_Data.h5', 'Rose_Labels.h5'),\n 'Philharmonia': Philharmonia('../data/audio_data/', 'Phil.h5')}\n\n\ndef get_loader(dataset, batch_size=1, shuffle=False,\n sampler=None, batch_sampler=None, num_workers=0,\n pin_memory=False, drop_last=False, timeout=0, worker_init_fn=None):\n '''Method for loading datasets with batching, samplers, and collate functions'''\n\n loader = DataLoader(dataset=DATASETS[dataset],\n batch_size=batch_size,\n shuffle=shuffle,\n sampler=sampler,\n batch_sampler=batch_sampler,\n num_workers=num_workers,\n pin_memory=pin_memory,\n drop_last=drop_last,\n timeout=timeout,\n worker_init_fn=worker_init_fn)\n return loader\n","repo_name":"orlandomelchor/BeyondMIDI","sub_path":"loader/DataLoader.py","file_name":"DataLoader.py","file_ext":"py","file_size_in_byte":6075,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"26181963227","text":"from collections import Counter\n\nclass Codigo:\n\n def __init__(self):\n pass\n\n def maoListada(self,board,hole_cards): \n mao_listada = {}\n listar_repeticao = self.listarRepeticao(board,hole_cards)\n listar_flush = self.listarFlush(board,hole_cards)\n listar_street = self.listarStreet(board,hole_cards)\n listar_street_flush = self.listarStreet(board,hole_cards,True)\n mao_listada['repeticao'] = listar_repeticao\n mao_listada['flush'] = listar_flush\n mao_listada['street'] = listar_street\n mao_listada['street_flush'] = listar_street_flush\n return mao_listada\n\n #============================= Metodos Privados =================================\n\n def listarFlush(self,board,hole_cards):\n valores = self.separarNumerosDosNapes(board,hole_cards)\n nape = self.napeMaisRecorrente(valores)\n numeros = self.numerosComNape(valores,nape)\n numeros = numeros if valores['napes'].count(nape) >= 5 else None\n return numeros\n\n def napeMaisRecorrente(self,valores):\n repeticao_napes = dict(Counter(valores['napes']).items())\n maior_repeticao = 0\n nape_mais_repeticao = ''\n for chave,valor in repeticao_napes.items():\n if valor > maior_repeticao:\n maior_repeticao = valor\n nape_mais_repeticao = chave\n return nape_mais_repeticao\n\n def numerosComNape(self,valores,nape):\n numeros = []\n for idx in range(len(valores['napes'])):\n if valores['napes'][idx] == nape:\n numeros.append(valores['numeros'][idx])\n numeros.sort(reverse = True)\n return numeros\n\n def listarStreet(self,board,hole_cards,flush=False):\n numero_anterior = 0\n street = []\n valores = self.separarNumerosDosNapes(board,hole_cards)\n numeros = self.numerosComNaipeMaisRecorrente(valores,flush)\n for numero in numeros:\n if (numero_anterior - numero) == 1:\n street.append(numero)\n numero_anterior = numero\n if len(street) == 5:\n street.sort(reverse = True)\n return street\n else:\n street = [numero]\n numero_anterior = numero\n return None\n\n def numerosComNaipeMaisRecorrente(self,valores,flush=False):\n numeros = []\n if flush == True:\n naipe = self.napeMaisRecorrente(valores)\n numeros = self.numerosComNape(valores,naipe)\n else:\n numeros = valores['numeros']\n return self.numerosSemRepeticao(numeros)\n\n def listarRepeticao(self,board=[],hole_cards=None):\n valores = self.separarNumerosDosNapes(board,hole_cards)\n grupos_repeticao = self.agruparPorRepeticao(valores['numeros'])\n numeros = []\n for i in reversed(range(1,5)):\n numeros += grupos_repeticao[i]\n return numeros[:5]\n\n def agruparPorRepeticao(self,numeros=[]):\n repeticao_numeros = dict(Counter(numeros).items())\n grupos_repeticao = {1:[],2:[],3:[],4:[]}\n for chave,valor in repeticao_numeros.items():\n for i in range(valor):\n grupos_repeticao[valor].append(chave)\n grupos_repeticao[valor].sort(reverse = True) \n return grupos_repeticao\n\n def numerosSemRepeticao(self,numeros):\n numeros_sem_repeticao = []\n repeticao_numeros = dict(Counter(numeros).items())\n for chave,valor in repeticao_numeros.items():\n numeros_sem_repeticao.append(chave)\n if 14 in numeros_sem_repeticao:\n numeros_sem_repeticao.append(1)\n numeros_sem_repeticao.sort(reverse = True)\n return numeros_sem_repeticao\n\n\n def separarNumerosDosNapes(self,board,holecads):\n cartas = board + holecads\n valores = {'numeros':[],'napes':[]}\n for carta in cartas:\n valores['numeros'].append(self.tranformarFiguraEmNumero(carta[0]))\n valores['napes'].append(carta[1])\n return valores\n\n def tranformarFiguraEmNumero(self,figura):\n figuras = { '2':2,'3':3,'4':4,'5':5,'6':6,'7':7,\n '8':8,'9':9,'T':10,'J':11,'Q':12,'K':13,'A':14}\n return figuras[figura]\n\n","repo_name":"robsonlopesunifor/Booker_api","sub_path":"MaosPossiveis/viewsets/Possibilidades/Codigo.py","file_name":"Codigo.py","file_ext":"py","file_size_in_byte":4279,"program_lang":"python","lang":"pt","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"1416615485","text":"from unittest.mock import MagicMock\n\nimport pytest\n\nfrom dao.genre import GenreDAO\nfrom dao.model.genre import Genre\n\n\n@pytest.fixture\ndef genre_dao():\n '''\n We will create a fixture with a mock,\n and here we have 3 instances of the class.\n :return: values for each method in GenreDAO\n '''\n genre_dao = GenreDAO(None)\n\n thriller = Genre(id=1, name='thriller')\n drama = Genre(id=2, name='drama')\n horror = Genre(id=3, name='horror')\n\n genre_dao.get_one = MagicMock(return_value=thriller)\n genre_dao.get_all = MagicMock(return_value=[thriller, drama, horror])\n genre_dao.create = MagicMock(return_value=Genre(id=3))\n genre_dao.update = MagicMock()\n genre_dao.delete = MagicMock()\n\n return genre_dao\n","repo_name":"TheFimerHub/SKYPRO_homework20_problem_1","sub_path":"tests/service/fixtures/conftest.py","file_name":"conftest.py","file_ext":"py","file_size_in_byte":742,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"17662873173","text":"import base64\nimport requests\nfrom urllib.parse import urlencode\n\nfrom django.shortcuts import render\nfrom django.http import HttpResponse, HttpResponseRedirect\n\n# Create your views here.\n\nclient_id = ''\nclient_secret = ''\n\ndef go_to_spotify_for_auth(req):\n\treturn HttpResponseRedirect('https://accounts.spotify.com/en/authorize?{}'.format(\n\t\turlencode(\n\t\t\t{\n\t\t\t\t'client_id': client_id,\n\t\t\t\t'redirect_uri': 'http://localhost:8000/auth/receive-redirect',\n\t\t\t\t'response_type': 'code',\n\t\t\t\t'scopes': 'playlist-read-private playlist-modify-private playlist-modify-public playlist-read-collaborative',\n\t\t\t\t'state': 'somestate'\n\t\t\t}\n\t\t)\n\t))\n\ndef receive_redirect_refresh(req):\n\treturn HttpResponse(\"Hello world\")\n\ndef receive_redirect(req):\n\tauth_code = req.GET['code']\n\tstate_value = req.GET['state']\n\n\tclient_stuff = '{}:{}'.format(client_id, client_secret)\n\tclientb64 = base64.b64encode(client_stuff.encode('utf-8')).decode('utf-8')\n\n\tprint(clientb64)\n\tprint('Basic ' + clientb64)\n\n\tresp = requests.post(\n\t\t\"https://accounts.spotify.com/api/token\",\n\t\t{\n\t\t\t'grant_type': 'authorization_code',\n\t\t\t'code': auth_code,\n\t\t\t'redirect_uri': 'http://localhost:8000/auth/receive-redirect'\n\t\t},\n\t\theaders={\n\t\t\t'Authorization': 'Basic ' + clientb64,\n\t\t},\n\t)\n\n\tprint(resp)\n\n\treturn HttpResponse(resp.content)\n","repo_name":"mrhwick/splitlist","sub_path":"discoverwith/spotify/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":1293,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"6333026201","text":"import json\nimport unittest\n\nfrom unittest import mock\n\nfrom ops.testing import Harness\nfrom ops.charm import CharmBase\n\nfrom charmhelpers.contrib.openstack.ha.utils import VIP_GROUP_NAME\n\nimport interface_hacluster\nimport interface_mssql_cluster\n\n\nclass TestInterfaceHaCluster(unittest.TestCase):\n\n def setUp(self):\n self.harness = Harness(CharmBase, meta='''\n name: mssql\n peers:\n cluster:\n interface: mssql-cluster\n requires:\n ha:\n interface: hacluster\n scope: container\n ''')\n self.addCleanup(self.harness.cleanup)\n\n @mock.patch.object(interface_hacluster,\n 'update_hacluster_vip')\n @mock.patch.object(interface_hacluster.HaCluster,\n 'setup_pacemaker_mssql_login')\n @mock.patch.object(interface_hacluster,\n 'apt_install')\n @mock.patch.object(interface_mssql_cluster.MssqlCluster,\n 'is_ag_ready',\n new_callable=mock.PropertyMock)\n def test_on_joined(self, _is_ag_ready, _apt_install,\n _setup_pacemaker_mssql_login, _update_hacluster_vip):\n _is_ag_ready.return_value = True\n self.harness.begin()\n self.harness.charm.cluster = interface_mssql_cluster.MssqlCluster(\n self.harness.charm, 'cluster')\n self.harness.charm.ha = interface_hacluster.HaCluster(\n self.harness.charm, 'ha')\n rel_id = self.harness.add_relation('ha', 'hacluster')\n self.harness.add_relation_unit(rel_id, 'hacluster/0')\n\n _apt_install.assert_called_once_with(\n packages=self.harness.charm.ha.APT_PACKAGES, fatal=True)\n _setup_pacemaker_mssql_login.assert_called_once_with()\n _update_hacluster_vip.assert_called_once()\n\n rel_data = self.harness.get_relation_data(rel_id, 'mssql/0')\n expected_rel_data = {}\n keys = ['resources', 'resource_params', 'ms', 'colocations', 'orders']\n for key in keys:\n json_value = rel_data.get('json_{}'.format(key))\n self.assertIsNotNone(json_value)\n expected_rel_data.update({key: json.loads(json_value)})\n group_name = VIP_GROUP_NAME.format(service='mssql')\n self.assertDictEqual(\n expected_rel_data,\n {\n 'resources': {\n 'ag_cluster': 'ocf:mssql:ag'\n },\n 'resource_params': {\n 'ag_cluster':\n 'params ag_name=\"{}\" '\n 'meta failure-timeout=60s '\n 'op start timeout=60s '\n 'op stop timeout=60s '\n 'op promote timeout=60s '\n 'op demote timeout=10s '\n 'op monitor timeout=60s interval=10s '\n 'op monitor timeout=60s interval=11s role=\"Master\" '\n 'op monitor timeout=60s interval=12s role=\"Slave\" '\n 'op notify timeout=60s'.format(\n self.harness.charm.cluster.AG_NAME)\n },\n 'ms': {\n 'ms-ag_cluster':\n 'ag_cluster meta '\n 'master-max=\"1\" master-node-max=\"1\" '\n 'clone-max=\"3\" clone-node-max=\"1\" notify=\"true\"'\n },\n 'colocations': {\n 'vip_on_master':\n 'inf: {} ms-ag_cluster:Master'.format(group_name)\n },\n 'orders': {\n 'ag_first':\n 'inf: ms-ag_cluster:promote {}:start'.format(group_name)\n }\n })\n\n def test_on_changed(self):\n self.harness.begin()\n self.harness.charm.cluster = interface_mssql_cluster.MssqlCluster(\n self.harness.charm, 'cluster')\n self.harness.charm.ha = interface_hacluster.HaCluster(\n self.harness.charm, 'ha')\n rel_id = self.harness.add_relation('ha', 'hacluster')\n self.harness.add_relation_unit(rel_id, 'hacluster/0')\n self.harness.update_relation_data(\n rel_id, 'hacluster/0', {'clustered': 'yes'})\n\n self.assertEqual(self.harness.charm.unit.status,\n self.harness.charm.ha.UNIT_ACTIVE_STATUS)\n self.assertTrue(self.harness.charm.ha.state.ha_cluster_ready)\n\n @mock.patch.object(interface_mssql_cluster.MssqlCluster,\n 'mssql_db_client',\n new_callable=mock.PropertyMock)\n @mock.patch.object(interface_hacluster.HaCluster,\n 'setup_pacemaker_mssql_login')\n def test_on_created_ag(self, _setup_pacemaker_mssql_login,\n _mssql_db_client):\n self.harness.begin()\n self.harness.charm.cluster = interface_mssql_cluster.MssqlCluster(\n self.harness.charm, 'cluster')\n self.harness.charm.ha = interface_hacluster.HaCluster(\n self.harness.charm, 'ha')\n self.harness.charm.cluster.on.created_ag.emit()\n\n _setup_pacemaker_mssql_login.assert_called_once_with()\n _mssql_db_client.assert_called_once_with()\n db_client_mock = _mssql_db_client.return_value\n db_client_mock.return_value.exec_t_sql.assert_called_once_with(\"\"\"\n GRANT ALTER, CONTROL, VIEW DEFINITION\n ON AVAILABILITY GROUP::[{ag_name}] TO [{login_name}]\n GRANT VIEW SERVER STATE TO [{login_name}]\n \"\"\".format(ag_name=self.harness.charm.cluster.AG_NAME,\n login_name=self.harness.charm.ha.PACEMAKER_LOGIN_NAME))\n\n @mock.patch.object(interface_mssql_cluster.MssqlCluster,\n 'mssql_db_client')\n @mock.patch('charmhelpers.core.host.pwgen')\n @mock.patch('os.chown')\n @mock.patch('os.chmod')\n @mock.patch('builtins.open', new_callable=mock.mock_open)\n def test_setup_pacemaker_mssql_login(\n self, _open, _chmod, _chown, _pwgen, _mssql_db_client):\n\n _pwgen.return_value = 'test-password'\n self.harness.begin()\n self.harness.charm.cluster = interface_mssql_cluster.MssqlCluster(\n self.harness.charm, 'cluster')\n self.harness.charm.ha = interface_hacluster.HaCluster(\n self.harness.charm, 'ha')\n self.harness.charm.ha.setup_pacemaker_mssql_login()\n\n _pwgen.assert_called_once_with(32)\n _mssql_db_client.assert_called_once_with()\n db_client_mock = _mssql_db_client.return_value\n db_client_mock.create_login.assert_called_once_with(\n name=self.harness.charm.ha.PACEMAKER_LOGIN_NAME,\n password='test-password',\n server_roles=['sysadmin'])\n _open.assert_called_once_with(\n self.harness.charm.ha.PACEMAKER_LOGIN_CREDS_FILE, 'w')\n _open.return_value.write.assert_called_once_with(\n '{}\\n{}\\n'.format(self.harness.charm.ha.PACEMAKER_LOGIN_NAME,\n 'test-password'))\n _chmod.assert_called_once_with(\n self.harness.charm.ha.PACEMAKER_LOGIN_CREDS_FILE, 0o400)\n _chown.assert_called_once_with(\n self.harness.charm.ha.PACEMAKER_LOGIN_CREDS_FILE, 0, 0)\n self.assertTrue(self.harness.charm.ha.state.pacemaker_login_ready)\n","repo_name":"ionutbalutoiu/charm-infra-mssql","sub_path":"unit_tests/test_interface_hacluster.py","file_name":"test_interface_hacluster.py","file_ext":"py","file_size_in_byte":7308,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"20650405936","text":"def count_cs(list):\n count = 0\n for item in list:\n if item == 'c':\n count += 1\n return count\n\nmy_list = ['a', 'b', 'c', 'c', 10]\n# print(count_cs(my_list)) # prints: 2\n# can pass in my_list as list because it is being defined\n# can also do:\n# print(my_list.count('c')) # prints: 2\n\n\n\ndef sum_up_items(list_of_nums):\n result = 0\n for num in list_of_nums:\n result += num\n return result\n\n# print(sum_up_items([1, 2, 3, 4, 5, 6, 7, 8])) # prints: 36\n# print(sum_up_items(['a', 2, 3])) # can NOT pass in string(s) because it it isn't possible to add a string with an integer\n\n\n\ndef print_elements(collection):\n for item in collection:\n print('item is:', item)\n\n# print(print_elements([1, 2, 3, 4, 5, 6, 7, 8])) # prints:\n# item is: 1\n# item is: 2\n# item is: 3\n# item is: 4\n# item is: 5\n# item is: 6\n# item is: 7\n# item is: 8\n\n\n\n# In Python, it is possible to reassign values of variables by swapping them unlike other programming languages\na, b = 10, 20\n# print(f'a = {a}, b = {b}') # prints: a = 10, b = 20\n\n# Swap variable values by doing so:\na, b = b, a\n# print(f'a = {a}, b = {b}') # prints: a = 20, b = 10","repo_name":"amyawong/baruch-cis2300","sub_path":"notes/nov29.py","file_name":"nov29.py","file_ext":"py","file_size_in_byte":1180,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"12761970243","text":"import CharmCord.CharmErrorHandling as ErrorHandling\nEH = ErrorHandling.CharmErrorHandling()\n\nasync def channelCreated(args: str, Context, timezones, format_datetime):\n if len(args) < 1:\n raise EH.Errors(4, \"No parameter provided for '$channelCreated'\")\n est, utc, pst = timezones\n try:\n ID, TIME, FORM = tuple(args.split(\",\"))\n TIME = locals()[TIME.strip()]\n FORM = FORM.lower()\n except ValueError:\n FORM=\"full\"\n try:\n ID, TIME = tuple(args.split(\",\"))\n TIME = locals()[TIME.strip()]\n except:\n ID = args\n TIME = utc\n \n\n\n \n from CharmCord.Classes.CharmCord import bots\n try:\n int(ID)\n channel = await bots.fetch_channel(ID)\n\n desiredDateForm = format_datetime(channel.created_at, FORM, TIME)\n if desiredDateForm != \"ERROR\":\n return desiredDateForm\n else:\n raise SyntaxError(\"Invalid Format option in $channelCreated!\")\n\n except ValueError:\n EH.Errors(2, ID)","repo_name":"1lgrand/CharmCord","sub_path":"CharmCord/Functions/Channels/channelCreated.py","file_name":"channelCreated.py","file_ext":"py","file_size_in_byte":1043,"program_lang":"python","lang":"en","doc_type":"code","dataset":"github-code","pt":"86"}
+{"seq_id":"17579892104","text":"#!/usr/bin/python3\n# Advent of code 2017 day 24\n# See https://adventofcode.com/2017/day/24\n\n\nwith open(\"input.txt\") as f:\n lines = f.readlines()\n\ncomponents = []\nfor line in lines:\n components.append(tuple([int(port) for port in line.split(\"/\")]))\n\n\ndef search(bridge: list, remaining, open_link):\n leaf = True\n for component in remaining:\n if component[0] == open_link:\n new_bridge = bridge[:]\n new_bridge.append(component)\n new_remaining = remaining[:]\n new_remaining.remove(component)\n leaf = False\n yield from search(new_bridge, new_remaining, component[1])\n if component[1] == open_link:\n new_bridge = bridge[:]\n new_bridge.append(component)\n new_remaining = remaining[:]\n new_remaining.remove(component)\n leaf = False\n yield from search(new_bridge, new_remaining, component[0])\n if leaf:\n yield (bridge)\n\n\ndef score(bridge):\n score = 0\n for component in bridge:\n score = score + component[0] + component[1]\n return score\n\n\nbridges = search([], components, 0)\n# Part 1\n# print(max([score(bridge) for bridge in bridges]))\n# Part 2\nprint(max([(len(bridge), score(bridge)) for bridge in bridges]))\n","repo_name":"chrisglencross/advent-of-code","sub_path":"aoc2017/day24/day24.py","file_name":"day24.py","file_ext":"py","file_size_in_byte":1284,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12837279421","text":"from django.urls import path\nfrom commons import views\n\nurlpatterns = [\n path(\"country/list/\", views.ListCountry.as_view(), name=\"country-list\"),\n path(\"country/region/list/\", views.ListRegionByCountryName.as_view(), name=\"region-list-by-country-name\"),\n path(\"region/list/\", views.ListRegionByCountry.as_view(), name=\"region-list\"),\n path(\"city/list/\", views.ListCityByRegion.as_view(), name=\"city-list\"),\n path(\"popular/city/list/\", views.PopularCityListView.as_view(), name=\"city-list\"),\n path(\"address//update/\", views.AddressRetrieveUpdateDestroyView.as_view(), name=\"address-update\"),\n\n path(\"periodicity/list/\", views.PeriodicityListView.as_view(), name=\"periodicity-list\"),\n]\n","repo_name":"zekariass/grinmove_backend","sub_path":"commons/urls.py","file_name":"urls.py","file_ext":"py","file_size_in_byte":713,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"40288290949","text":"import shutil\nimport os\n\nimport numpy as np\nimport tensorflow as tf\nfrom keras.models import Sequential\nfrom keras.layers import Dense, Dropout\nfrom keras.optimizers import Adam\nfrom keras.callbacks import EarlyStopping\nfrom keras_tuner.tuners import BayesianOptimization, Hyperband\nfrom sklearn.model_selection import train_test_split\nimport matplotlib.pyplot as plt\n\nclass ANNs_model(): \n def __init__(self, X_list, y_list, model=None, model_name='Untitled_model'):\n self.model_name = model_name\n self.X_list = X_list\n self.y_list = y_list\n # Define the input and output variables\n self.num_input_features = X_list.shape[1] # x2, y2\n self.num_output_features = y_list.shape[1] # q1, q2\n self.patience = 10 # if the validation loss does not improve for 20 epochs, the training will be stopped\n self.epochs = 500\n self.batch_size = 1024\n self.my_model = model if model is not None else self.get_neural_network()\n self.X_train, self.X_val, self.y_train, self.y_val = train_test_split(self.X_list, self.y_list, test_size = 0.2, random_state = 101)\n self.history = self.train_neural_network()\n \n def get_neural_network(self):\n # Define the ANN architecture\n model = Sequential()\n model.add(Dense(256, input_dim=self.num_input_features, activation='relu'))\n model.add(Dropout(0.2))\n model.add(Dense(128, input_dim=self.num_input_features, activation='relu'))\n model.add(Dropout(0.2))\n model.add(Dense(64, input_dim=self.num_input_features, activation='relu'))\n model.add(Dense(64, input_dim=self.num_input_features, activation='relu')) \n model.add(Dropout(0.2))\n model.add(Dense(self.num_output_features, activation='linear')) #we want the model to output continuous values representing the x and y coordinates of the corner of the SCARA arm\n model.compile(loss='mse', optimizer=Adam(learning_rate=0.001))\n return model\n \n def train_neural_network(self):\n history = self.my_model.fit(self.X_train, self.y_train, epochs=self.epochs, batch_size=self.batch_size, validation_split=0.2, callbacks=[EarlyStopping(monitor='val_loss', mode='min', verbose=1, patience=self.patience)]) # early stopping callback to prevent overfitting\n self.valid_neural_network()\n self.my_model.save(f'{self.model_name}_{self.loss}.h5')\n return history\n \n def valid_neural_network(self):\n # Validate the ANN\n self.loss = self.my_model.evaluate(self.X_val, self.y_val)\n return self.loss\n \n def plot_loss(self):\n plt.plot(self.history.history['loss'])\n plt.plot(self.history.history['val_loss'])\n plt.title('Model loss')\n plt.ylabel('Loss')\n plt.xlabel('Epoch')\n plt.legend(['Train', 'Validation'], loc='upper right')\n plt.savefig(f'{self.model_name}_{self.loss}.png')\n plt.show()\n\n\nclass Tuner():\n def __init__(self, inputs, outputs, num_trials=20, tuner_dir='my_dir', algorithm=None):\n self.X_list = inputs\n self.y_list = outputs\n self.num_trials = num_trials\n self.tuner_dir = tuner_dir\n self.algorithm = algorithm\n self.best_model, self.best_hyperparameters = self.tune_model()\n \n def build_model(self, hp): # Define the Keras Tuner search space\n model = Sequential()\n #input layer\n model.add(Dense(units=hp.Int('units_1', min_value=32, max_value=2048, step=32),\n activation=hp.Choice('activation_1', values=['relu', 'leaky_relu', 'elu', 'selu','tanh', 'sigmoid']),\n input_shape=(self.X_list.shape[1],)))\n # hidden layer\n model.add(Dropout(rate=hp.Float('dropout_1', min_value=0.0, max_value=0.5, step=0.1)))\n for i in range(hp.Int('num_layers', min_value=1, max_value=10)):\n model.add(Dense(units=hp.Int(f'units_{i+2}', min_value=32, max_value=1024, step=32),\n activation=hp.Choice(f'activation_{i+2}', values=['relu', 'leaky_relu', 'elu', 'selu','tanh', 'sigmoid'])))\n model.add(Dropout(rate=hp.Float(f'dropout_{i+2}', min_value=0.0, max_value=0.5, step=0.1)))\n #output layer\n model.add(Dense(self.y_list.shape[1], activation='linear'))\n optimizer = Adam(learning_rate=hp.Choice('learning_rate', values=[1e-2, 1e-3, 1e-4, 1e-5, 1e-6, 1e-7]),)\n model.compile(optimizer=optimizer, loss='mean_squared_error')\n return model\n \n def tune_model(self): # Define the Keras Tuner search strategy and perform hyperparameter tuning\n if \"B\" in str(self.algorithm):\n tuner = BayesianOptimization(self.build_model, objective='val_loss', max_trials=self.num_trials, directory= self.tuner_dir, project_name='scara_hyperparameter_tuning')\n else:\n tuner = Hyperband(self.build_model, objective='val_loss', max_epochs = 100, factor=3, directory= self.tuner_dir, project_name='scara_hyperparameter_tuning')\n early_stopping = EarlyStopping(patience=3)\n tuner.search(self.X_list, self.y_list, epochs=100, validation_split=0.2, callbacks=[early_stopping])\n best_model = tuner.get_best_models(num_models=1)[0]\n best_hyperparameters = tuner.get_best_hyperparameters(num_trials=1)[0] #we retrieve the best hyperparameters from the top-performing trial.\n return best_model, best_hyperparameters\n\n def write_best_model(self, file_name=\"best_model\"):\n with open(str(file_name)+\".txt\", \"w\") as file:\n file.write(\"Best Hyperparameters:\\n\")\n file.write(str(self.best_hyperparameters.get_config()))\n print(\"Best Model Summary:\", file=file)\n self.best_model.summary(print_fn=lambda x: file.write(x + '\\n'))\n file.write(\"\\n\\nLearning Rate:\\n\")\n file.write(str(self.best_hyperparameters.get('learning_rate')))\n file.write(\"\\n\\nActivation:\\n\")\n activation_hyperparams = {key: value for key, value in self.best_hyperparameters.values.items() if 'activation' in key}\n for key, value in activation_hyperparams.items():\n file.write(f\"{key}: {value}\\n\")\n file.write(\"\\nDropout:\\n\")\n dropout_hyperparams = {key: value for key, value in self.best_hyperparameters.values.items() if 'dropout' in key}\n for key, value in dropout_hyperparams.items():\n file.write(f\"{key}: {value}\\n\")\n\n\ndef main(tuner_dir='my_dir', model_name='my_best_model', num_tuner_samples=100000, num_train_samples=10000000):\n print(\"Num GPUs Available: \", len(tf.config.list_physical_devices('GPU')))\n os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"0\"\n gpus = tf.config.experimental.list_physical_devices('GPU')\n if gpus:\n try:\n tf.config.experimental.set_memory_growth(gpus[0], True)\n except RuntimeError as e:\n print(e)\n try:\n shutil.rmtree(tuner_dir) # Delete the folder\n shutil.rmtree(f'{tuner_dir}_BO')\n except:\n pass\n # Generate training data\n inputs = np.load(f\"data\\\\positions_orientations_{num_tuner_samples}.npy\")\n outputs = np.load(f\"data\\\\angles_{num_tuner_samples}.npy\")\n # Perform hyperparameter tuning\n tuner_BO = Tuner(inputs, outputs, num_trials=20, tuner_dir=f'{tuner_dir}_BO', algorithm=\"BayesianOptimization\")\n tuner = Tuner(inputs, outputs, num_trials=20, tuner_dir=tuner_dir)\n # Save the best model and hyperparameters\n tuner.write_best_model(file_name=model_name)\n tuner_BO.write_best_model(file_name=f'{model_name}_BO')\n # train the best model\n X_list = np.load(f\"data\\\\positions_orientations_{num_train_samples}.npy\")\n print(f\"X_list: {X_list.shape}\")\n y_list = np.load(f\"data\\\\angles_{num_train_samples}.npy\")\n print(f\"y_list: {y_list.shape}\")\n scara_model = ANNs_model(X_list, y_list, tuner.best_model, model_name)\n scara_model_BO = ANNs_model(X_list, y_list, tuner_BO.best_model, f'{model_name}_BO')\n scara_model.plot_loss()\n scara_model_BO.plot_loss()\n print(model_name if scara_model.loss <= scara_model_BO.loss else f'{model_name}_BO')\n\n\nif __name__ == \"__main__\":\n main(tuner_dir='my_dir', model_name='my_best_model', num_tuner_samples=int(1e6), num_train_samples=int(1e7))","repo_name":"nguyenngocvy1/Thesis","sub_path":"build_model.py","file_name":"build_model.py","file_ext":"py","file_size_in_byte":8324,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"26236629521","text":"# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom django.db import migrations, models\n\n\nclass Migration(migrations.Migration):\n\n dependencies = [\n ('secretsantaapp', '0005_assignees'),\n ]\n\n operations = [\n migrations.RenameField(\n model_name='secretsantagroups',\n old_name='users',\n new_name='members',\n ),\n ]\n","repo_name":"FadiAlnabolsi/Secret-Santa","sub_path":"secretsanta/secretsantaapp/migrations/0006_auto_20151128_1903.py","file_name":"0006_auto_20151128_1903.py","file_ext":"py","file_size_in_byte":396,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"18756212846","text":"import xlwings as xw\nimport os #os package which implements Environment variables\nimport numpy as np\n\n#wb = xw.Book()\n#wb.save(\"test.xlsx\")\n\"\"\" wbTest = xw.Book(\"test2.xlsx\")\n\nws1 = wbTest.sheets['Tab1']\nws2 = wbTest.sheets[\"Tab2\"]\nws3 = wbTest.sheets[\"Tab3\"]\n\nws1.range(\"A1:E100\").value = 100\nTmp = []\nTmp = ws1.range(\"A1:E100\").value \"\"\"\n#print(os.environ) #This prints out all the environment variables\n\ndict_a = {'key_1':'value_1',\n 'key_2':'value_2'}\ndict_b = {'key_3':'value_3',\n 'key_4':'value_4'}\nlist_a = [dict_a, dict_b, dict_a]\nprint(list_a)\ntype(list_a)\n\nsquares_dict = {x:x**2 for x in range(10)}\nprint(squares_dict)\ntype(squares_dict)\n\nsquares = [x**2 for x in range(10)]\nprint(squares)\ntype(squares)\n\na = np.ones((3,))\nb = np.ones((2,))\nc = np.append(a, b)\nprint(c)\n\n\na = np.ones((3,))\nb = np.ones((2,))\nc = np.append(a, b)\nprint(c)\n\n#print(Tmp)\n# the end","repo_name":"NnamdiOdozi/Python","sub_path":"xlwings basic.py","file_name":"xlwings basic.py","file_ext":"py","file_size_in_byte":888,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"23275157412","text":"from init import *\n\ndef properties(data, mode = 0):\n \"\"\"Extracts the different properties from the [data] dictionnary of performances. Either outputs the raw arrays of performances (mode = 0)\n or outputs the performances at the optimum (mode = 1).\n pre: data (dict {string:np.ndarray}): Contains the evolution of the validation set performances through time and through the different experiments.\n The four keys are : \"loss\", \"val_loss\", \"val_acc\", \"val_AUC\".\n mode (int): Changes the output to either be the raw arrays of performances (at mode = 0), or the best performances across trials (mode = 1)\n post: data_loss (np.ndarray): the training loss of the model through the epochs (axis 0) and through the experiments (axis 1)\n data_val_loss (np.ndarray): the validation loss of the model through the epochs (axis 0) and through the experiments (axis 1)\n data_val_acc (np.ndarray): the validation accuracy of the model through the epochs (axis 0) and through the experiments (axis 1)\n data_val_AUC (np.ndarray): the validation AUC of the model through the epochs (axis 0) and through the experiments (axis 1)\n \n min_data_val_loss (np.1darray): the minimum validation loss through the experiments\n epoch_min_data_val_loss (np.1darray): epoch at which the minimum validation loss occurs through the experiments\n acc_at_data_val_loss (np.1darray): accuracy at the minimum validation loss through all the experiments\n AUC_at_data_val_loss (np.1darray): AUC at the minimum validation loss through all the experiments\n\n \"\"\"\n\n data_loss = data[\"loss\"]\n data_val_loss = data[\"val_loss\"]\n data_val_acc = data[\"val_acc\"]\n data_val_AUC = data[\"val_AUC\"]\n\n min_data_val_loss = np.min(data_val_loss, axis=1)\n epoch_min_data_val_loss = np.argmin(data_val_loss, axis=1)\n acc_at_min_val_loss = np.array([data_val_acc[i,j] for i,j in zip(np.arange(data_val_acc.shape[0]),epoch_min_data_val_loss)])\n AUC_at_min_val_loss = np.array([data_val_AUC[i,j] for i,j in zip(np.arange(data_val_AUC.shape[0]),epoch_min_data_val_loss)])\n\n if mode==0:\n return data_loss, data_val_loss, data_val_acc, data_val_AUC\n if mode==1:\n return min_data_val_loss, epoch_min_data_val_loss + 1, acc_at_min_val_loss, AUC_at_min_val_loss\n\ndef stats_at_min_val_loss(properties):\n \"\"\"Extracts the mean and std from the best performances through the different experiments.\n pre : properties (np.ndarray): Contains the best performances metrics (i.e. validation loss, epoch of convergence, accuracy, AUC) through\n the different experiments.\n post: statistics (np.ndarray): The mean and std of the best performance metrics over the experiments.\n \"\"\"\n statistics = np.empty((len(properties),2))\n i = 0\n for a_property in properties:\n statistics[i,0] = np.mean(a_property)\n statistics[i,1] = np.std(a_property)\n i+=1\n return statistics\n\ndef multiple_ttests(all_data):\n \"\"\"Performs statistical significance testing of all the arrays present in [all_data] under the form of a half double entry table. Test used\n is a Welch's t.\n pre : all_data (list of np.1darray): Contains the data to be compared with one another using a Welch's t test. Each np.array the values of\n a performance metrics through the experiments.\n post: p_vals (2d array): table filled with -1 on the lower triangle and diagonal. Upper diagonal contains the p_values of the comparison of\n the different sets by pairs.\n\n \"\"\"\n p_vals = - np.ones((len(all_data),len(all_data)))\n for i in range(len(all_data)):\n j = i+1\n while j < len(all_data):\n _, p_vals[i,j] = stats.ttest_ind(all_data[i], all_data[j], equal_var = False)\n j+=1\n return np.round(p_vals,5)\n\n# Load the performances saved earlier\nwith open('../results/pre_trainings_performances.pickle', 'rb') as file:\n raw_results = pickle.load(file)\n\nepochs = np.arange(40)+1\n\n\n# Extract the performances values (raw and minimum) from the different pre-trainings\nno_pt_loss, no_pt_val_loss, no_pt_val_acc, no_pt_val_AUC = properties(raw_results[\"no_pre\"], mode=0)\nswap_pt_loss, swap_pt_val_loss, swap_pt_val_acc, swap_pt_val_AUC = properties(raw_results[\"swap\"], mode=0)\n\nmin_no_pt_val_loss, epoch_min_no_pt_val_loss, _, _ = properties(raw_results[\"no_pre\"], mode=1)\nmin_swap_pt_val_loss, epoch_min_swap_pt_val_loss, _, _ = properties(raw_results[\"swap\"], mode=1)\n\ngauss_pt_loss, gauss_pt_val_loss, gauss_pt_val_acc, gauss_pt_val_AUC = properties(raw_results[\"gauss\"], mode=0)\nshuffle_pt_loss, shuffle_pt_val_loss, shuffle_pt_val_acc, shuffle_pt_val_AUC = properties(raw_results[\"shuffle\"], mode=0)\n\nmin_gauss_pt_val_loss, epoch_min_gauss_pt_val_loss, _, _ = properties(raw_results[\"gauss\"], mode=1)\nmin_shuffle_pt_val_loss, epoch_min_shuffle_pt_val_loss, _, _ = properties(raw_results[\"shuffle\"], mode=1)\n\nhybrid_pt_loss, hybrid_pt_val_loss, hybrid_pt_val_acc, hybrid_pt_val_AUC = properties(raw_results[\"hybrid\"], mode=0)\nmin_hybrid_pt_val_loss, epoch_min_hybrid_pt_val_loss, _, _ = properties(raw_results[\"hybrid\"], mode=1)\n\nprint(\"# samples: \\n\", hybrid_pt_loss.shape[0])\n\n# Show the mean and std of each performance metrics for each pre-training\nprint(\"Stats no pre-training:\\n\", stats_at_min_val_loss(properties(raw_results[\"no_pre\"],1)))\nprint(\"\\nStats swap pre-training:\\n\", stats_at_min_val_loss(properties(raw_results[\"swap\"],1)))\nprint(\"\\nStats noise pre-training:\\n\", stats_at_min_val_loss(properties(raw_results[\"gauss\"],1)))\nprint(\"\\nStats shuffle pre-training:\\n\", stats_at_min_val_loss(properties(raw_results[\"shuffle\"],1)))\nprint(\"\\nStats hybrid pre-training:\\n\", stats_at_min_val_loss(properties(raw_results[\"hybrid\"],1)))\n\nnames = [\"min_data_val_loss\", \"epoch_min_data_val_loss\", \"acc_at_min_val_loss\", \"AUC_at_min_val_loss\"]\ndata_swap = properties(raw_results[\"swap\"],1)\ndata_no = properties(raw_results[\"no_pre\"],1)\ndata_gauss = properties(raw_results[\"gauss\"],1)\ndata_shuffle = properties(raw_results[\"shuffle\"],1)\ndata_hybrid = properties(raw_results[\"hybrid\"],1)\n\n# Show significance cross testing per metric for all pre-trainings\nprint(\"\\n\\n\\n\")\nfor i in range(len(names)):\n print(names[i])\n print(multiple_ttests([data_no[i],data_swap[i],data_gauss[i], data_shuffle[i], data_hybrid[i]]),\"\\n\")\n\n# Show significance cross testing per metric for pooled pre-trainings vs no pre-training\nall_data = np.concatenate((data_swap,data_shuffle,data_hybrid,data_gauss),axis=1)\nprint(\"\\n\\n\\nComparison between pre-training and no pre-training:\")\nprint(stats_at_min_val_loss(all_data))\nfor i in range(len(names)):\n print(names[i])\n print(multiple_ttests([data_no[i],all_data[i]]),\"\\n\")\n\n# Check if there is a linear relation between epoch and val_loss\nreg_shuffle = LinearRegression().fit(epoch_min_shuffle_pt_val_loss.reshape(-1, 1), min_shuffle_pt_val_loss)\nreg_hybrid = LinearRegression().fit(epoch_min_hybrid_pt_val_loss.reshape(-1, 1), min_hybrid_pt_val_loss)\nreg_gauss = LinearRegression().fit(epoch_min_gauss_pt_val_loss.reshape(-1, 1), min_gauss_pt_val_loss)\nreg_swap = LinearRegression().fit(epoch_min_swap_pt_val_loss.reshape(-1, 1), min_swap_pt_val_loss)\nreg_no = LinearRegression().fit(epoch_min_no_pt_val_loss.reshape(-1, 1), min_no_pt_val_loss)\n\nR2_shuffle = reg_shuffle.score(epoch_min_shuffle_pt_val_loss.reshape(-1, 1), min_shuffle_pt_val_loss)\nR2_hybrid = reg_hybrid.score(epoch_min_hybrid_pt_val_loss.reshape(-1, 1), min_hybrid_pt_val_loss)\nR2_gauss = reg_gauss.score(epoch_min_gauss_pt_val_loss.reshape(-1, 1), min_gauss_pt_val_loss)\nR2_swap = reg_swap.score(epoch_min_swap_pt_val_loss.reshape(-1, 1), min_swap_pt_val_loss)\nR2_no = reg_no.score(epoch_min_no_pt_val_loss.reshape(-1, 1), min_no_pt_val_loss)\n\nprint(\"R2 score of shuffle regression:\", R2_shuffle)\nprint(\"Shuffle regression slope:\", reg_shuffle.coef_[0],'\\n')\nprint(\"R2 score of hybrid regression:\",R2_hybrid)\nprint(\"Hybrid regression slope:\", reg_hybrid.coef_[0],'\\n')\nprint(\"R2 score of white noise regression:\", R2_gauss)\nprint(\"White noise regression slope:\", reg_gauss.coef_[0],'\\n')\nprint(\"R2 score of mixing regression:\",R2_swap)\nprint(\"Mixing regression slope:\", reg_swap.coef_[0],'\\n')\nprint(\"R2 score of no pre-training regression:\",R2_no)\nprint(\"No pre-training regression slope:\", reg_no.coef_[0])\n\ndef ci_95(data):\n \"\"\"Computes the 95% confidence interval of a given [data] through the experiment axis.\n pre : data (2d array): An array of data points (axis 0: epochs, axis 1: experiments).\n post: The 95% CI of the input datathrough the experiment axis.\n \"\"\"\n return 1.96 * np.std(data, axis = 0)/np.sqrt(data.shape[0])\n\ndef ci_99(data):\n \"\"\"Computes the 99% confidence interval of a given [data] through the experiment axis.\n pre : data (2d array): An array of data points (axis 0: epochs, axis 1: experiments).\n post: The 99% CI of the input datathrough the experiment axis.\n \"\"\"\n return 2.81 * np.std(data, axis = 0)/np.sqrt(data.shape[0])\n\ndef scatter_hist(x, y, label, ax, ax_histx, ax_histy):\n#https://matplotlib.org/stable/gallery/lines_bars_and_markers/scatter_hist.html\n n_plot = len(x)\n # no labels\n ax_histx.tick_params(axis=\"x\", labelbottom=False)\n ax_histy.tick_params(axis=\"y\", labelleft=False)\n\n for i in range(n_plot):\n ax.scatter(x[i], y[i], label = label[i], marker='.')\n mu = np.mean(x[i])\n sigma = np.std(x[i])\n base = np.linspace(max(1,mu - 3*sigma), min(45,mu + 3*sigma), 100)\n ax_histx.plot(base, stats.norm.pdf(base, mu, sigma))\n mu = np.mean(y[i])\n sigma = np.std(y[i])\n base = np.linspace(mu - 3*sigma, mu + 3*sigma, 100)\n ax_histy.plot(stats.norm.pdf(base, mu, sigma)/100,base)\n\n\n#https://matplotlib.org/stable/gallery/lines_bars_and_markers/scatter_hist.html (lines 172--189)\nfig = plt.figure(figsize=(6, 6))\ngs = fig.add_gridspec(2, 2, width_ratios=(4, 1), height_ratios=(1, 4),\n left=0.1, right=0.9, bottom=0.1, top=0.9,\n wspace=0.05, hspace=0.05)\n# Create the Axes.\nax = fig.add_subplot(gs[1, 0])\nax_histx = fig.add_subplot(gs[0, 0], sharex=ax)\nax_histx.set_ylabel(\"Density [-]\")\nax_histy = fig.add_subplot(gs[1, 1], sharey=ax)\nax_histy.set_xlabel(\"Density [-]\")\n# Draw the scatter plot and marginals.\nscatter_hist([epoch_min_shuffle_pt_val_loss, epoch_min_swap_pt_val_loss, epoch_min_gauss_pt_val_loss, epoch_min_hybrid_pt_val_loss, epoch_min_no_pt_val_loss],\n [min_shuffle_pt_val_loss, min_swap_pt_val_loss, min_gauss_pt_val_loss, min_hybrid_pt_val_loss,min_no_pt_val_loss],\n [\"Shuffling\", \"Mixing\", \"White noise\", \"Hybrid\", \"No pre-training\"],ax, ax_histx, ax_histy)\nax.legend()\nax.set_xlabel(\"Epoch of convergence [-]\")\nax.set_ylabel(\"Minimum validation loss [-]\")\nplt.show()\n\n\n\"\"\" Supplementary graphs\n\nplt.scatter(epoch_min_shuffle_pt_val_loss, min_shuffle_pt_val_loss,marker='.')\nplt.plot(np.arange(0,42), reg_shuffle.predict(np.arange(0,42).reshape(-1, 1)), label=\"Shuffling (R2 = {:.4f})\".format(R2_shuffle))\nplt.scatter(epoch_min_swap_pt_val_loss, min_swap_pt_val_loss,marker='.')\nplt.plot(np.arange(0,42), reg_swap.predict(np.arange(0,42).reshape(-1, 1)), label=\"Mixing (R2 = {:.4f})\".format(R2_swap))\n\nplt.scatter(epoch_min_gauss_pt_val_loss, min_gauss_pt_val_loss,marker='.')\nplt.plot(np.arange(0,42), reg_gauss.predict(np.arange(0,42).reshape(-1, 1)), label=\"White noise (R2 = {:.4f})\".format(R2_gauss))\n\nplt.scatter(epoch_min_hybrid_pt_val_loss, min_hybrid_pt_val_loss, marker='.')\nplt.plot(np.arange(0,42), reg_hybrid.predict(np.arange(0,42).reshape(-1, 1)), label=\"Hybrid (R2 = {:.4f})\".format(R2_hybrid))\n\nplt.scatter(epoch_min_no_pt_val_loss, min_no_pt_val_loss, marker='.')\nplt.plot(np.arange(0,42), reg_no.predict(np.arange(0,42).reshape(-1, 1)), label=\"No pre-training (R2 = {:.4f})\".format(R2_no))\n\nplt.xlabel(\"Epoch of convergence [-]\")\nplt.ylabel(\"Minimum validation loss [-]\")\nplt.legend()\nplt.show()\n\n\nplt.subplot(211)\nplt.title(\"Training set loss function\")\nplt.plot(epochs,np.mean(no_pt_loss,axis=0), label = \"No pre-training\")\nplt.fill_between(epochs, (np.mean(no_pt_loss,axis=0)-ci_95(no_pt_loss)), (np.mean(no_pt_loss,axis=0)+ci_95(no_pt_loss)), alpha=.1)\nplt.plot(epochs,np.mean(swap_pt_loss, axis=0), label = \"Swapping\")\nplt.fill_between(epochs, (np.mean(swap_pt_loss, axis=0)-ci_95(swap_pt_loss)), (np.mean(swap_pt_loss, axis=0)+ci_95(swap_pt_loss)), alpha=.1)\nplt.plot(epochs,np.mean(gauss_pt_loss,axis=0), label = \"Noise\")\nplt.fill_between(epochs, (np.mean(gauss_pt_loss,axis=0)-ci_95(gauss_pt_loss)), (np.mean(gauss_pt_loss,axis=0)+ci_95(gauss_pt_loss)), alpha=.1)\nplt.plot(epochs,np.mean(shuffle_pt_loss, axis=0), label = \"Shuffle\")\nplt.fill_between(epochs, (np.mean(shuffle_pt_loss, axis=0)-ci_95(shuffle_pt_loss)), (np.mean(shuffle_pt_loss, axis=0)+ci_95(shuffle_pt_loss)), alpha=.1)\nplt.plot(epochs,np.mean(hybrid_pt_loss, axis=0), label = \"Hybrid\")\nplt.fill_between(epochs, (np.mean(hybrid_pt_loss, axis=0)-ci_95(hybrid_pt_loss)), (np.mean(hybrid_pt_loss, axis=0)+ci_95(hybrid_pt_loss)), alpha=.1)\nplt.ylabel(\"Loss [-]\")\nplt.legend()\n\nplt.subplot(212)\nplt.title(\"Validation set loss function\")\nplt.plot(epochs,np.mean(no_pt_val_loss,axis=0), label = \"No pre-training\")\nplt.fill_between(epochs, (np.mean(no_pt_val_loss,axis=0)-ci_95(no_pt_val_loss)), (np.mean(no_pt_val_loss,axis=0)+ci_95(no_pt_val_loss)), alpha=.1)\nplt.plot(epochs,np.mean(swap_pt_val_loss, axis=0), label = \"Swapping\")\nplt.fill_between(epochs, (np.mean(swap_pt_val_loss, axis=0)-ci_95(swap_pt_val_loss)), (np.mean(swap_pt_val_loss, axis=0)+ci_95(swap_pt_val_loss)), alpha=.1)\nplt.plot(epochs,np.mean(gauss_pt_val_loss,axis=0), label = \"Noise\")\nplt.fill_between(epochs, (np.mean(gauss_pt_val_loss,axis=0)-ci_95(gauss_pt_val_loss)), (np.mean(gauss_pt_val_loss,axis=0)+ci_95(gauss_pt_val_loss)), alpha=.1)\nplt.plot(epochs,np.mean(shuffle_pt_val_loss, axis=0), label = \"Shuffle\")\nplt.fill_between(epochs, (np.mean(shuffle_pt_val_loss, axis=0)-ci_95(shuffle_pt_val_loss)), (np.mean(shuffle_pt_val_loss, axis=0)+ci_95(shuffle_pt_val_loss)), alpha=.1)\nplt.plot(epochs,np.mean(hybrid_pt_val_loss, axis=0), label = \"Hybrid\")\nplt.fill_between(epochs, (np.mean(hybrid_pt_val_loss, axis=0)-ci_95(hybrid_pt_val_loss)), (np.mean(hybrid_pt_val_loss, axis=0)+ci_95(hybrid_pt_val_loss)), alpha=.1)\nplt.ylabel(\"Loss [-]\")\nplt.xlabel(\"Epoch [-]\")\nplt.legend()\n\nplt.show()\n\n\nplt.subplot(211)\nplt.title(\"Validation set accuracy\")\nplt.plot(epochs,np.mean(no_pt_val_acc,axis=0), label = \"No pre-training\")\nplt.fill_between(epochs, (np.mean(no_pt_val_acc,axis=0)-ci_95(no_pt_val_acc)), (np.mean(no_pt_val_acc,axis=0)+ci_95(no_pt_val_acc)), alpha=.1)\nplt.plot(epochs,np.mean(swap_pt_val_acc, axis=0), label = \"Swapping\")\nplt.fill_between(epochs, (np.mean(swap_pt_val_acc, axis=0)-ci_95(swap_pt_val_acc)), (np.mean(swap_pt_val_acc, axis=0)+ci_95(swap_pt_val_acc)), alpha=.1)\nplt.plot(epochs,np.mean(gauss_pt_val_acc,axis=0), label = \"Noise\")\nplt.fill_between(epochs, (np.mean(gauss_pt_val_acc,axis=0)-ci_95(gauss_pt_val_acc)), (np.mean(gauss_pt_val_acc,axis=0)+ci_95(gauss_pt_val_acc)), alpha=.1)\nplt.plot(epochs,np.mean(shuffle_pt_val_acc, axis=0), label = \"Shuffle\")\nplt.fill_between(epochs, (np.mean(shuffle_pt_val_acc, axis=0)-ci_95(shuffle_pt_val_acc)), (np.mean(shuffle_pt_val_acc, axis=0)+ci_95(shuffle_pt_val_acc)), alpha=.1)\nplt.plot(epochs,np.mean(hybrid_pt_val_acc, axis=0), label = \"Hybrid\")\nplt.fill_between(epochs, (np.mean(hybrid_pt_val_acc, axis=0)-ci_95(hybrid_pt_val_acc)), (np.mean(hybrid_pt_val_acc, axis=0)+ci_95(hybrid_pt_val_acc)), alpha=.1)\nplt.ylabel(\"Accuracy [%]\")\nplt.legend()\n\nplt.subplot(212)\nplt.title(\"Validation set AUC\")\nplt.plot(epochs,np.mean(no_pt_val_AUC,axis=0), label = \"No pre-training\")\nplt.fill_between(epochs, (np.mean(no_pt_val_AUC,axis=0)-ci_95(no_pt_val_AUC)), (np.mean(no_pt_val_AUC,axis=0)+ci_95(no_pt_val_AUC)), alpha=.1)\nplt.plot(epochs,np.mean(swap_pt_val_AUC, axis=0), label = \"Swapping\")\nplt.fill_between(epochs, (np.mean(swap_pt_val_AUC, axis=0)-ci_95(swap_pt_val_AUC)), (np.mean(swap_pt_val_AUC, axis=0)+ci_95(swap_pt_val_AUC)), alpha=.1)\nplt.plot(epochs,np.mean(gauss_pt_val_AUC,axis=0), label = \"Noise\")\nplt.fill_between(epochs, (np.mean(gauss_pt_val_AUC,axis=0)-ci_95(gauss_pt_val_AUC)), (np.mean(gauss_pt_val_AUC,axis=0)+ci_95(gauss_pt_val_AUC)), alpha=.1)\nplt.plot(epochs,np.mean(shuffle_pt_val_AUC, axis=0), label = \"Shuffle\")\nplt.fill_between(epochs, (np.mean(shuffle_pt_val_AUC, axis=0)-ci_95(shuffle_pt_val_AUC)), (np.mean(shuffle_pt_val_AUC, axis=0)+ci_95(shuffle_pt_val_AUC)), alpha=.1)\nplt.plot(epochs,np.mean(hybrid_pt_val_AUC, axis=0), label = \"Hybrid\")\nplt.fill_between(epochs, (np.mean(hybrid_pt_val_AUC, axis=0)-ci_95(hybrid_pt_val_AUC)), (np.mean(hybrid_pt_val_AUC, axis=0)+ci_95(hybrid_pt_val_AUC)), alpha=.1)\nplt.ylabel(\"AUC [-]\")\nplt.xlabel(\"Epoch [-]\")\nplt.legend()\n\nplt.show()\n\"\"\"","repo_name":"tbary/MasterThesis","sub_path":"src/3_plot_pre_training_selection_results.py","file_name":"3_plot_pre_training_selection_results.py","file_ext":"py","file_size_in_byte":17084,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"33892404384","text":"# -*- coding: utf-8 -*-\n\nimport os\nfrom datetime import datetime\nfrom reportlab.pdfgen import canvas\nfrom reportlab.lib.pagesizes import A4\nfrom reportlab.lib.units import cm\nfrom reportlab.lib.styles import ParagraphStyle, getSampleStyleSheet\nfrom reportlab.lib.colors import Color\nfrom reportlab.platypus import (\n SimpleDocTemplate, Paragraph, PageBreak, Image, Spacer, Table, TableStyle, Flowable)\nfrom reportlab.lib.enums import TA_CENTER\nfrom reportlab.graphics.shapes import Image as sImage\nfrom reportlab.pdfbase import pdfmetrics\nfrom reportlab.pdfbase.ttfonts import TTFont\n\n\ndef getWeekdayName(time: datetime, language: str = 'vie') -> str:\n if language == 'vie':\n names = [\"Thứ 2\", \"Thứ 3\", \"Thứ 4\", \"Thứ 5\", \"Thứ 6\", \"Thứ 7\", \"Chủ Nhật\"]\n else:\n names = [\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"]\n return names[time.weekday()]\n\n\nclass ReportConfig:\n def __init__(self) -> None:\n self.marginTop = 2.5*cm\n self.marginBottom = 2.5*cm\n self.marginLeft = 2.0*cm\n self.marginRight = 2.0*cm\n self.pageWidth, self.pageHeight = A4\n self.bodyWidth = self.pageWidth - self.marginLeft - self.marginRight\n self.bodyHeight = self.pageHeight - self.marginTop - self.marginBottom\n\n def registerFont(self):\n pdfmetrics.registerFont(\n TTFont('NotoSans', './fonts/NotoSans-Regular.ttf'))\n pdfmetrics.registerFont(\n TTFont('NotoSansB', './fonts/NotoSans-Bold.ttf'))\n pdfmetrics.registerFont(\n TTFont('NotoSansBI', './fonts/NotoSans-BoldItalic.ttf'))\n pdfmetrics.registerFont(\n TTFont('NotoSansI', './fonts/NotoSans-Italic.ttf'))\n pdfmetrics.registerFontFamily('NotoSans', normal='NotoSans',\n bold='NotoSansB', italic='NotoSansI', boldItalic='NotoSansBI')\n\n\nclass FooterCanvas(canvas.Canvas):\n def __init__(self, filename, language='vie', config: ReportConfig = ReportConfig(), *args, **kwargs):\n canvas.Canvas.__init__(self, filename, *args, **kwargs)\n self.pages = []\n self.conf = config\n self.conf.registerFont()\n self.language = language\n\n def showPage(self):\n self.pages.append(dict(self.__dict__))\n self._startPage()\n\n def save(self):\n page_count = len(self.pages)\n for page in self.pages:\n self.__dict__.update(page)\n self.draw_canvas(page_count)\n canvas.Canvas.showPage(self)\n canvas.Canvas.save(self)\n\n def draw_canvas(self, page_count):\n\n if self.language == 'vie':\n page = \"Trang %s/%s\" % (self._pageNumber, page_count)\n else:\n page = \"Page %s/%s\" % (self._pageNumber, page_count)\n\n now = datetime.now()\n dateTime = getWeekdayName(now, language=self.language) + now.strftime(\", %d/%m/%Y %I:%M %p\")\n self.saveState()\n self.setStrokeColorRGB(0, 0, 0)\n self.setLineWidth(1)\n self.drawImage(\"icons/logo.png\", self.conf.marginLeft, self.conf.pageHeight - self.conf.marginBottom,\n width=150, height=50, preserveAspectRatio=True, mask='auto')\n self.line(self.conf.marginLeft, self.conf.pageHeight-self.conf.marginBottom,\n self.conf.pageWidth - self.conf.marginRight, self.conf.pageHeight-self.conf.marginBottom)\n self.line(self.conf.marginLeft, self.conf.marginTop,\n self.conf.pageWidth - self.conf.marginRight, self.conf.marginTop)\n self.setFont('NotoSans', 10)\n self.drawString(self.conf.marginLeft,\n self.conf.marginBottom-0.5*cm, dateTime)\n self.drawRightString(self.conf.pageWidth - self.conf.marginLeft,\n self.conf.marginBottom-0.5*cm, page)\n self.restoreState()\n\n\nclass Energy(Flowable):\n def __init__(self, energy_kwh: float, rect_size: float = 100.0):\n super().__init__()\n self.energy_kwh = energy_kwh\n self.width = rect_size\n self.height = rect_size\n self.hAlign = \"CENTER\"\n\n def draw(self):\n self.canv.saveState()\n self.canv.setLineWidth(2)\n self.canv.setStrokeColor(Color(50.0/255, 115.0/255, 50.0/255, 1))\n self.canv.roundRect(0, 0, self.width, self.height, self.width/6)\n self.canv.drawImage(\"icons/energy.png\", 35, 60,\n width=30, height=30, preserveAspectRatio=True, mask='auto')\n self.canv.restoreState()\n self.canv.setFont('NotoSansB', 16)\n self.canv.setFillColor(Color(50.0/255, 115.0/255, 50.0/255, 1))\n self.canv.drawCentredString(50, 25, \"%.3f kWh\" % self.energy_kwh)\n\n\nclass ACActivity:\n def __init__(self, type: str, power_status: str, op_mode: str, op_time: str, configured_temp: str, fan_speed: str) -> None:\n self.type = type\n self.power_status = power_status\n self.op_mode = op_mode\n self.op_time = op_time\n self.configured_temp = configured_temp\n self.fan_speed = fan_speed\n\n\nclass BenKonReportData:\n def __init__(self, user: str, device: str, report_date: datetime, energy_kwh: float, chart_url: str, activities: \"list[ACActivity]\") -> None:\n self.user = user\n self.device = device\n self.report_date = report_date\n self.energy_kwh = energy_kwh\n self.chart_url = chart_url\n self.activities = activities\n\n\nclass BenKonReport:\n def __init__(\n self,\n path: str,\n isGenSummaryPage: bool,\n url_pie_chart: str,\n url_bar_chart: str,\n data: \"list[BenKonReportData]\",\n config: ReportConfig = ReportConfig(),\n language: str = 'vie'\n ):\n # Create path if not exists\n if not os.path.exists(os.path.dirname(path)):\n os.makedirs(os.path.dirname(path), exist_ok=True)\n\n # Initialization\n self.conf = config\n self.conf.registerFont()\n self.path = path\n self.data = data\n self.language = language\n self.url_pie_chart = url_pie_chart\n self.url_bar_chart = url_bar_chart\n self.styleSheet = getSampleStyleSheet()\n self.elements = []\n\n self.colorBlue = Color((54.0/255), (122.0/255), (179.0/255), 1)\n self.colorWhite = Color(1, 1, 1, 1)\n self.colorGreen = Color(50.0/255, 115.0/255, 50.0/255, 1)\n self.colorGrey = Color(192.0/255, 192.0/255, 192.0/255, 1)\n self.colorBKLight = Color((246.0/255), (246.0/255), (247.0/255), 1)\n self.colorBKLightGray = Color((84.0/255), (181.0/255), (236.0/255), 1)\n self.colorBKNormal = Color((50.0/255), (123.0/255), (198.0/255), 1)\n self.colorBKDarkGray = Color((183.0/255), (143.0/255), (109.0/255), 1)\n self.colorBKDark = Color((31.0/255), (74.0/255), (154.0/255), 1)\n\n # Create page content\n if isGenSummaryPage:\n self.summaryPage()\n for idx in range(len(self.data)):\n self.firstPage(idx)\n self.activityPage(idx)\n\n # Build\n self.doc = SimpleDocTemplate(\n path, pagesize=A4, leftMargin=2*cm, rightMargin=2*cm,\n topMargin=1.5*cm, bottomMargin=1.5*cm)\n self.doc.multiBuild(self.elements, canvasmaker=FooterCanvas)\n\n def summaryPage(self):\n # Pie chart title\n self.elements.append(Spacer(10, 1 * cm))\n\n if self.language == 'vie':\n chartTitleText = \"Tổng điện năng tiêu thụ và thời gian hoạt động (3 ngày gần nhất)\"\n else:\n chartTitleText = \"Total energy consumption and working hours (last 3 days)\"\n\n chartTitleStyle = ParagraphStyle(\n name=\"chartTitleStyle\", fontName=\"NotoSans\", fontSize=14, alignment=TA_CENTER)\n chartTitle = Paragraph(\"%s \" % chartTitleText, chartTitleStyle)\n self.elements.append(chartTitle)\n\n # Pie chart image\n self.elements.append(Spacer(10, 0.25 * cm))\n if self.url_pie_chart == '':\n pass\n else:\n imgChart = Image(self.url_pie_chart)\n chartWidth = self.conf.pageWidth\n chartHeight = self.conf.pageHeight\n imgChart.drawHeight = chartHeight * 0.25\n imgChart.drawWidth = chartWidth * 0.6\n imgChart.hAlign = 'CENTER'\n self.elements.append(imgChart)\n\n # Bar chart image\n if self.url_bar_chart == '':\n pass\n else:\n imgChart = Image(self.url_bar_chart)\n chartWidth = self.conf.pageWidth\n chartHeight = self.conf.pageHeight\n imgChart.drawHeight = chartHeight * 0.55\n imgChart.drawWidth = chartWidth\n imgChart.hAlign = 'CENTER'\n self.elements.append(imgChart)\n\n self.elements.append(PageBreak())\n\n def firstPage(self, dataIndex: int):\n\n # report title\n self.elements.append(Spacer(10, 1.25 * cm))\n reportTitleStyle = ParagraphStyle(\n name=\"reportTitleStyle\", fontName=\"NotoSans\", fontSize=20, alignment=TA_CENTER)\n\n if self.language == 'vie':\n title = \"BÁO CÁO HOẠT ĐỘNG MÁY LẠNH\"\n else:\n title = \"AIR CONDITIONER's ACTIVITIES DAILY REPORT\"\n\n reportTitle = Paragraph(\"%s \" % title, reportTitleStyle)\n self.elements.append(reportTitle)\n\n # report date\n self.elements.append(Spacer(10, 0.5 * cm))\n dateTime = getWeekdayName(\n self.data[dataIndex].report_date, language=self.language) + self.data[dataIndex].report_date.strftime(\", %d/%m/%Y\")\n\n reportDateStyle = ParagraphStyle(\n name=\"reportDateStyle\", fontName=\"NotoSans\", fontSize=12, alignment=TA_CENTER)\n reportDate = Paragraph(\"%s \" % dateTime, reportDateStyle)\n self.elements.append(reportDate)\n\n # Header info\n iconSize = 0.7*cm\n spacer = Spacer(10, 0.5*cm)\n self.elements.append(spacer)\n\n imgUser = Image('icons/username.png')\n imgUser.drawHeight = iconSize\n imgUser.drawWidth = iconSize\n imgUser.hAlign = 'LEFT'\n\n imgAC = Image('icons/ac.png')\n imgAC.drawHeight = iconSize\n imgAC.drawWidth = iconSize\n imgAC.hAlign = 'LEFT'\n\n labelStyle = ParagraphStyle(\n name=\"Label\", fontName=\"NotoSans\")\n valueStyle = ParagraphStyle(\n name=\"Value\", borderWidth=3, fontName=\"NotoSans\")\n\n if self.language == 'vie':\n rowUser = [imgUser, Paragraph(\"Khách hàng:\", labelStyle), Paragraph(\n \"%s \" % self.data[dataIndex].user, valueStyle)]\n rowAC = [imgAC, Paragraph(\"Tên thiết bị:\", labelStyle), Paragraph(\n \"%s \" % self.data[dataIndex].device, valueStyle)]\n else:\n rowUser = [imgUser, Paragraph(\"Username:\", labelStyle), Paragraph(\n \"%s \" % self.data[dataIndex].user, valueStyle)]\n rowAC = [imgAC, Paragraph(\"Device name:\", labelStyle), Paragraph(\n \"%s \" % self.data[dataIndex].device, valueStyle)]\n\n tableData = [rowUser, rowAC]\n colWidths = [iconSize+0.3*cm, 2.5*cm, 1*cm]\n colWidths[2] = self.conf.bodyWidth - colWidths[0] - colWidths[1]\n titleTable = Table(tableData, colWidths=colWidths)\n titleTableStyle = TableStyle([\n ('VALIGN', (0, 0), (-1, -1), 'CENTER'),\n ])\n titleTable.setStyle(titleTableStyle)\n self.elements.append(titleTable)\n\n # chart title\n self.elements.append(Spacer(10, 1 * cm))\n\n if self.language == 'vie':\n chartTitleText = \"Biểu đồ trạng thái máy lạnh trong ngày\"\n else:\n chartTitleText = \"Air conditioner's status chart\"\n\n chartTitleStyle = ParagraphStyle(\n name=\"chartTitleStyle\", fontName=\"NotoSans\", fontSize=16, alignment=TA_CENTER)\n chartTitle = Paragraph(\"%s \" % chartTitleText, chartTitleStyle)\n self.elements.append(chartTitle)\n\n # chart image\n\n if self.data[dataIndex].chart_url == '':\n pass\n else:\n self.elements.append(Spacer(10, 0.25 * cm))\n imgChart = Image(self.data[dataIndex].chart_url)\n chartSize = self.conf.pageWidth\n imgChart.drawHeight = chartSize * 0.8\n imgChart.drawWidth = chartSize\n imgChart.hAlign = 'CENTER'\n self.elements.append(imgChart)\n\n # page break\n self.elements.append(PageBreak())\n\n def _getTableColumnWidth(self, percentageWidth: \"list[float]\") -> \"list[float]\":\n tableMaxWidth = self.conf.pageWidth - \\\n self.conf.marginLeft - self.conf.marginRight\n totalWidth = 0\n for colWidth in percentageWidth:\n totalWidth += colWidth\n result = []\n for colWidth in percentageWidth:\n result.append(colWidth*tableMaxWidth/totalWidth)\n return result\n\n def activityPage(self, dataIndex: int):\n\n # Energy title\n self.elements.append(Spacer(10, 1.5*cm))\n\n if self.language == 'vie':\n chartTitleText = \"Tổng điện năng tiêu thụ\"\n else:\n chartTitleText = \"Total energy consumption\"\n\n chartTitleStyle = ParagraphStyle(\n name=\"chartTitleStyle\", fontName=\"NotoSans\", fontSize=16, alignment=TA_CENTER)\n chartTitle = Paragraph(\"%s \" % chartTitleText, chartTitleStyle)\n self.elements.append(chartTitle)\n\n # Energy rect\n self.elements.append(Spacer(10, 1*cm))\n self.elements.append(\n Energy(energy_kwh=self.data[dataIndex].energy_kwh))\n\n # Activities table\n spacer = Spacer(10, 1.5*cm)\n self.elements.append(spacer)\n psHeaderText = ParagraphStyle(\n 'Hed0', fontSize=14, alignment=TA_CENTER, borderWidth=3, textColor=self.colorBlue, fontName=\"NotoSans\")\n\n if self.language == 'vie':\n paragraphReportHeader = Paragraph(\n 'Bảng các hoạt động trong ngày của máy lạnh', psHeaderText)\n else:\n paragraphReportHeader = Paragraph(\n \"Air conditioner's activities table of a day\", psHeaderText)\n\n self.elements.append(paragraphReportHeader)\n\n spacer = Spacer(10, 22)\n self.elements.append(spacer)\n\n \"\"\"\n Create the line items\n \"\"\"\n d = []\n\n if self.language == 'vie':\n textData = [\"STT\", \"Thời gian\", \"Hoạt động\", \"Trạng thái\", \"Chế độ\",\n \"Nhiệt độ thiết lập\", \"Tốc độ quạt\"]\n else:\n textData = [\"No.\", \"Timestamp\", \"Activity\", \"Status\", \"Mode\",\n \"Set up temperature\", \"Fan speed\"]\n\n fontSize = 8\n centered = ParagraphStyle(\n name=\"centered\", alignment=TA_CENTER, fontName=\"NotoSans\")\n for text in textData:\n ptext = \"%s \" % (fontSize, text)\n titlesTable = Paragraph(ptext, centered)\n d.append(titlesTable)\n\n data = [d]\n formattedLineData = []\n\n alignStyle = [ParagraphStyle(name=\"01\", alignment=TA_CENTER),\n ParagraphStyle(name=\"02\", alignment=TA_CENTER),\n ParagraphStyle(name=\"03\", alignment=TA_CENTER),\n ParagraphStyle(name=\"04\", alignment=TA_CENTER),\n ParagraphStyle(name=\"05\", alignment=TA_CENTER),\n ParagraphStyle(name=\"06\", alignment=TA_CENTER),\n ParagraphStyle(name=\"07\", alignment=TA_CENTER)]\n\n for id, activity in enumerate(self.data[dataIndex].activities):\n lineData = [str(id+1), activity.op_time, activity.type, activity.power_status,\n activity.op_mode, activity.configured_temp, activity.fan_speed]\n columnNumber = 0\n for item in lineData:\n ptext = \"%s \" % (fontSize-1, item)\n p = Paragraph(ptext, alignStyle[columnNumber])\n formattedLineData.append(p)\n columnNumber = columnNumber + 1\n data.append(formattedLineData)\n formattedLineData = []\n\n ''' Set table Columns width '''\n table = Table(data, colWidths=self._getTableColumnWidth(\n [7, 15, 18, 15, 15, 16, 15]))\n tStyle = TableStyle([ # ('GRID',(0, 0), (-1, -1), 0.5, grey),\n ('ALIGN', (0, 0), (0, -1), 'CENTER'),\n ('VALIGN', (0, 0), (-1, -1), 'CENTER'),\n (\"ALIGN\", (1, 0), (1, -1), 'RIGHT'),\n ('LINEBELOW', (0, 0), (-1, -1), 0.5, self.colorGrey),\n ('BACKGROUND', (0, 0), (-1, 0), self.colorBKLightGray),\n ('ROWBACKGROUNDS', (0, 1), (-1, -1),\n [self.colorBKLight, self.colorWhite]),\n # ('SPAN', (0, -1), (-2, -1))\n ])\n table.setStyle(tStyle)\n self.elements.append(table)\n\n # page break\n self.elements.append(PageBreak())\n","repo_name":"nhat-thai/test_new_api","sub_path":"bkreport/benkon_report.py","file_name":"benkon_report.py","file_ext":"py","file_size_in_byte":17097,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12329507013","text":"#!/bin/env python\n\n\nimport xml.dom.minidom\n\n\nfrom GeneralScriptSupport import *\n\n\n#\n# Default file locations\n#\n\ndefaultTrilinosDepsXmlInFile = getScriptBaseDir()+\"/data/TrilinosPackageDependencies.xml\"\n\ndefaultTrilinosDepsHtmlOutFile = getScriptBaseDir()+\"/data/TrilinosPackageDependenciesTable.html\"\n\ndefaultCDashDepsXmlFile = getScriptBaseDir()+\"/data/CDashSubprojectDependencies.xml\"\n\n\n#\n# Store and manipulate the dependencies\n#\n\n\nclass PackageEmailAddresses:\n\n def __init__(self, checkin_in, regression_in):\n self.checkin = checkin_in\n self.regression = regression_in\n\n def __str__(self):\n return \"{checkin=\"+self.checkin+\", regression=\"+self.regression+\"}\"\n \n\nclass PackageDependencies:\n\n def __init__(self, packageName_in, packageDir_in,\n libRequiredDepPackages_in, libOptionalDepPackages_in,\n testRequiredDepPackages_in, testOptionalDepPackages_in,\n emailAddresses_in\n ):\n self.packageName = packageName_in\n self.packageDir = packageDir_in\n self.packageID = -1\n self.libRequiredDepPackages = libRequiredDepPackages_in\n self.libOptionalDepPackages = libOptionalDepPackages_in\n self.testRequiredDepPackages = testRequiredDepPackages_in\n self.testOptionalDepPackages = testOptionalDepPackages_in\n self.emailAddresses = emailAddresses_in\n\n def __str__(self):\n return \"{\\n\"+\\\n \" packageName=\"+self.packageName+\",\\n\"+\\\n \" packageID=\"+str(self.packageID)+\",\\n\"+\\\n \" packageDir=\"+str(self.packageDir)+\",\\n\"+\\\n \" libRequiredDepPackages=\"+str(self.libRequiredDepPackages)+\",\\n\"+\\\n \" libOptionalDepPackages=\"+str(self.libOptionalDepPackages)+\",\\n\"+\\\n \" testRequiredDepPackages=\"+str(self.testRequiredDepPackages)+\",\\n\"+\\\n \" testOptionalDepPackages=\"+str(self.testOptionalDepPackages)+\" \\n\"+\\\n \" emailAddresses=\"+str(self.emailAddresses)+\"\\n\"+\\\n \"}\\n\"\n\n\ndef isRequiredDep(dep):\n return (dep[-1] == 'R')\n\n\ndef isDirectDep(dep):\n return (dep[0] != 'I')\n\n\ndef isLibDep(dep):\n return (dep[0] == 'L' or dep[1] == 'L')\n\n\n#\n# (dep1, dep2) => newDep\n#\n# (*) Required dependencies trump optional dependencies\n# (*) Direct dependencies trump indirect dependencies\n# (*) Library dependicnes trump test dependencies\n#\ndef updatePackageDep(dep1, dep2):\n\n #print \"\\n updatePackageDep(\"+dep1+\", \"+dep2+\") ...\"\n\n dep1_required = isRequiredDep(dep1)\n dep1_direct = isDirectDep(dep1)\n dep1_lib = isLibDep(dep1)\n\n dep2_required = isRequiredDep(dep2)\n dep2_direct = isDirectDep(dep2)\n dep2_lib = isLibDep(dep2)\n\n selectedDep = False\n\n if dep1 == dep2:\n newDep = dep1\n selectedDep = True\n\n # Required trumps optional\n if not selectedDep:\n if dep1_required and not dep2_required:\n newDep = dep1\n selectedDep = True\n elif not dep1_required and dep2_required:\n newDep = dep2\n selectedDep = True\n\n # Direct trumps indirect\n if not selectedDep:\n if dep1_direct and not dep2_direct:\n newDep = dep1\n selectedDep = True\n elif not dep1_direct and dep2_direct:\n newDep = dep2\n selectedDep = True\n\n # Library trumps test\n if not selectedDep:\n if dep1_lib and not dep2_lib:\n newDep = dep1\n selectedDep = True\n elif not dep1_lib and dep2_lib:\n newDep = dep2\n selectedDep = True\n\n assert(selectedDep)\n\n #print \"\\n newDep =\", newDep\n\n return newDep\n\n\nclass DepStats:\n isDirect = None\n isRequired = None\n isTestDepChain = None\n def __init__(self, isDirect, isRequired, isTestDepChain):\n self.isDirect = isDirect\n self.isRequired = isRequired\n self.isTestDepChain = isTestDepChain\n\n\nclass TrilinosDependencies:\n\n\n def __init__(self):\n self.__packagesList = []\n self.__packagesNameToID = {}\n self.__packagesDirToID = {}\n\n\n def addPackageDependencies(self, packageDeps):\n packageName = packageDeps.packageName\n packageDir = packageDeps.packageDir\n self.__packagesList.append(packageDeps)\n packageDeps.packageID = len(self.__packagesList)-1 \n self.__packagesNameToID.update( { packageName : packageDeps.packageID } )\n self.__packagesDirToID.update( { packageDir : packageDeps.packageID } )\n\n\n def numPackages(self):\n return len(self.__packagesList)\n\n\n def packageNameToID(self, packageName):\n return self.__packagesNameToID.get(packageName, -1)\n\n\n def getPackageByID(self, packageID):\n return self.__packagesList[packageID]\n\n\n def getPackageByName(self, packageName):\n return self.getPackageByID(self.__packagesNameToID[packageName])\n\n\n def getPackageByDir(self, packageDir):\n packageID = self.__packagesDirToID.get(packageDir, -1)\n #print \"\\ngetPackageByDir: packageDir=\"+packageDir+\", packageID=\"+str(packageID)\n if packageID >= 0:\n return self.__packagesList[packageID]\n return None\n\n\n def getPackageNameFromPath(self, fullPath, prefixPath):\n #print \"\\nfullPath=\"+fullPath\n fullPathArray = getFilePathArray(fullPath)\n if fullPathArray[0] == \"packages\":\n regexPathPrefix = \"packages/\"\n pathPrefix = \"\"\n else:\n regexPathPrefix = \"\"\n pathPrefix = \"../\"\n #print \"regexPathPrefix = '\"+regexPathPrefix+\"'\"\n #print \"pathPrefix = '\"+pathPrefix+\"'\"\n for packageDep in self.__packagesList:\n regexFilePath = regexPathPrefix+packageDep.packageDir+\"/\"\n ammendedFullPath = pathPrefix+fullPath \n #print \"regexFilePath=\"+regexFilePath\n #print \"ammendedFullPath=\"+ammendedFullPath\n if re.match(regexFilePath, ammendedFullPath):\n #print \"MATCH!\"\n return packageDep.packageName\n return u\"\"\n\n\n def __str__(self):\n strRep = \"\"\n for packageDep in self.__packagesList:\n strRep += str(packageDep)\n return strRep\n\n\n def updateDepCell(self, packageRow, packageID, depStats, depCategoryName):\n\n currentDepName = packageRow[packageID+1]\n\n newDepName = depCategoryName\n\n # If we are in a test dependency chain, we must change library\n # dependencies to test dependencies.\n if depStats.isTestDepChain:\n newDepName = 'T'+newDepName[1:]\n\n if depStats.isDirect:\n newDepName = newDepName\n else:\n newDepName = \"I\"+newDepName\n\n if not depStats.isRequired:\n newDepName = newDepName[0:-1]+\"O\"\n\n if currentDepName:\n #print \"\\n updateDepCell: depStats.isDirect=\"+str(depStats.isDirect)+\", depStats.isRequired=\"+str(depStats.isRequired)+\", depCategoryName=\"+depCategoryName\n newDepName = updatePackageDep(currentDepName, newDepName)\n\n packageRow[packageID+1] = newDepName\n\n\n def updatePackageDepsCategory(self, libsOnly, packageRowID, packageID, depCategory,\n depCategoryName, depStats, trilinosDepsTable\n ):\n\n packageRow = trilinosDepsTable[packageRowID+1]\n #print \"\\npackageRow =\", packageRow\n\n depList = getattr(self.__packagesList[packageID], depCategory)\n #print \"\\ndepList =\", depList\n\n for dep in depList:\n\n depPackage = self.getPackageByName(dep)\n #print \"\\n depPackageName =\", depPackage.packageName\n\n dep_i = depPackage.packageID\n\n self.updateDepCell(packageRow, dep_i, depStats, depCategoryName)\n \n if not depStats.isRequired:\n isRequiredDep = False\n elif depCategoryName[-1]==\"R\":\n isRequiredDep = True\n else:\n isRequiredDep = False\n\n childDepStats = DepStats(False, isRequiredDep, depStats.isTestDepChain)\n\n self.updatePackageDeps(libsOnly, packageRowID, dep_i, childDepStats,\n trilinosDepsTable)\n\n\n def updatePackageDeps(self, libsOnly, packageRowID, packageID, depStats,\n trilinosDepsTable\n ):\n\n self.updatePackageDepsCategory(libsOnly, packageRowID, packageID,\n \"libRequiredDepPackages\", \"LR\", depStats, trilinosDepsTable)\n self.updatePackageDepsCategory(libsOnly, packageRowID, packageID,\n \"libOptionalDepPackages\", \"LO\", depStats, trilinosDepsTable)\n\n # Only process the test dependencies if we are asked to do so\n # (i.e. libsOnly=True) or if this is the top-level package. The tests for\n # dependent packages are not any kind of dependency for tests for the\n # top-level package. However, we need to record that these are test\n # dependencies so that any package libraries that get recursed are\n # recorded as 'ITR' or 'ITO' and not as library dependencies.\n if not libsOnly and depStats.isDirect:\n libDepStats = DepStats(True, depStats.isRequired, True)\n self.updatePackageDepsCategory(False, packageRowID, packageID,\n \"testRequiredDepPackages\", \"TR\", libDepStats, trilinosDepsTable)\n self.updatePackageDepsCategory(False, packageRowID, packageID,\n \"testOptionalDepPackages\", \"TO\", libDepStats, trilinosDepsTable)\n\n \n def createRawTable(self, libsOnly):\n\n numPackages = self.numPackages()\n #print \"\\nnumPackages =\", numPackages\n\n trilinosDepsTable = []\n\n topRow = [ \"Packages\" ]\n topRow.extend([\"P%02d\"%(i+1) for i in range(numPackages)] )\n trilinosDepsTable.append(topRow)\n\n for packageDeps in self.__packagesList:\n i = packageDeps.packageID\n row = [\"P%02d\"%(i+1)+\") \"+packageDeps.packageName]\n row.extend([\"\" for i in range(numPackages)])\n trilinosDepsTable.append(row)\n\n for packageDeps in self.__packagesList:\n #print \"\\npackageName =\", packageDeps.packageName\n i = packageDeps.packageID\n trilinosDepsTable[i+1][i+1] = \"X\"\n self.updatePackageDeps(libsOnly, i, i, DepStats(True, True, False), trilinosDepsTable)\n\n return trilinosDepsTable\n\n def createTrilinosPackagesNumberedList(self):\n numPackages = self.numPackages()\n htmlText = \"Packages: \" + \\\n \", \".join( \\\n [ \"P%02d\"%(i+1)+\") \"+self.__packagesList[i].packageName \\\n for i in range(self.numPackages())] \\\n ) + \\\n \"
\"\n return htmlText\n\n def createHtmlFromTable(self, rawTable):\n\n numPackages = self.numPackages()\n\n htmlText = \\\n \"\\n\"+\\\n \"\\n\"\n\n for i in range(numPackages+2):\n htmlText += \" \\n\"\n\n topRow = rawTable[0]\n htmlText += \"\\n\\n\"\n for j in range(numPackages+1):\n htmlText += \" \"+topRow[j]+\" \\n\"\n htmlText += \" Packages \\n\"\n htmlText += \" \\n\"\n \n for package_i in range(numPackages):\n row = rawTable[package_i+1]\n htmlText += \"\\n\\n\"\n htmlText += \" \"+row[0]+\" \\n\"\n for j in range(numPackages):\n entry = row[j+1]\n if not entry: entry = \".\"\n htmlText += \" \"+entry+\" \\n\"\n htmlText += \" \"+row[0]+\" \\n\"\n htmlText += \" \\n\"\n\n htmlText += \"\\n\\n\"\n htmlText += \" Packages \\n\"\n for j in range(numPackages):\n htmlText += \" P%02d\"%(j+1)+\" \\n\"\n htmlText += \" Packages \\n\"\n htmlText += \" \\n\"\n\n htmlText += \"
\\n\"\n \n return htmlText\n\n\n def createHtmlTableLegend(self, libsOnly):\n\n htmlText =\\\n \"\\n\"+\\\n \"\\n\"+\\\n \" X : Diagonal entry for the package itself\\n\"+\\\n \" LR : Direct library required dependency\\n\"+\\\n \" ILR : Indirect library required dependency\\n\"+\\\n \" LO : Direct library optional dependency\\n\"+\\\n \" ILO : Indirect library optional dependency\\n\"\n\n if not libsOnly:\n htmlText +=\\\n \" TR : Direct test/example required dependency\\n\"+\\\n \" ITR : Indirect test/example required dependency\\n\"+\\\n \" TO : Direct test/example optional dependency\\n\"+\\\n \" ITO : Indirect test/example optional dependency\\n\"\n\n htmlText +=\\\n \" \\n\"+\\\n \"\\n\"+\\\n \"NOTE: When more than one type of dependency is present for any cell\"+\\\n \" the final selection is determined in the following order:\\n\"+\\\n \"\\n\"+\\\n \" A required dependency trumps an optional dependency\\n\"+\\\n \" A direct dependency trumps an indirect dependency\\n\"+\\\n \" A library dependency trumps a test/example dependency\\n\"+\\\n \" \\n\"\n\n return htmlText\n\n\n def createFullHtmlForTables(self):\n\n packagesListHtml = self.createTrilinosPackagesNumberedList()\n\n htmlText = \\\n \"Trilinos Test/Example and Library Package Dependencies
\\n\"+\\\n \"\\n\"+\\\n self.createHtmlFromTable(self.createRawTable(False))+\\\n \"\\n\"+\\\n packagesListHtml+\"\\n\"+\\\n \"\\n\"+\\\n \"Legend
\\n\"+\\\n \"\\n\"+\\\n self.createHtmlTableLegend(False)+\\\n \"\\n\"+\\\n \"Trilinos Libary-Only Package Dependencies
\\n\"+\\\n \"\\n\"+\\\n self.createHtmlFromTable(self.createRawTable(True))+\\\n \"\\n\"+\\\n packagesListHtml+\"\\n\"+\\\n \"\\n\"+\\\n \"Legend
\\n\"+\\\n \"\\n\"+\\\n self.createHtmlTableLegend(True)\n\n return htmlText\n\n def createFullHtmlPage(self):\n\n htmlText = \\\n \"\\n\"+\\\n \"\\n\"+\\\n \"Trilinos Package Dependencies \\n\"+\\\n \"\\n\"+\\\n \"\\n\"+\\\n \"\\n\"+\\\n \"\\n\"+\\\n self.createFullHtmlForTables()+\\\n \"\\n\"+\\\n \"\\n\"+\\\n \"\\n\"+\\\n \"\\n\"\n\n return htmlText\n\n\n def writeFullHtmlPage(self, htmlFileName=defaultTrilinosDepsHtmlOutFile):\n htmlString = self.createFullHtmlPage()\n htmlFile = open(htmlFileName, 'w')\n htmlFile.write(htmlString)\n htmlFile.close()\n\n\n #\n # CDash stuff\n #\n\n\n def createCDashDepsXMLFromRawDepsTable(self, rawTable):\n \n xmlText = \"\"\n\n xmlText += \"\\n\"\n\n numPackages = self.numPackages()\n\n for package_i in range(numPackages):\n\n packageDeps = self.__packagesList[package_i]\n\n packageName = packageDeps.packageName\n xmlText += (\" \\n\")\n\n row = rawTable[package_i+1]\n\n for dep_j in range(numPackages):\n entry = row[dep_j+1]\n if entry and entry != \"X\":\n depPackageName = self.__packagesList[dep_j].packageName\n xmlText += (\" \\n\" )\n\n xmlText += \\\n \" \\n\"+\\\n \" \\n\"+\\\n \" \\n\"\n\n xmlText += (\" \\n\")\n\n xmlText += \" \\n\"\n\n return xmlText\n \n\n def createCDashDepsXML(self):\n return self.createCDashDepsXMLFromRawDepsTable(self.createRawTable(False))\n\n\n def writeCDashXmlDepsFile(self, xmlDepsFile=defaultCDashDepsXmlFile):\n xmlString = self.createCDashDepsXML()\n xmlFile = open(xmlDepsFile, 'w')\n xmlFile.write(xmlString)\n xmlFile.close()\n\n\n#\n# Read in the dependencies from XML\n#\n\n\ndef getDependenciesByType(packageEle, typeName):\n packageDepsStr = packageEle.getElementsByTagName(typeName)[0].getAttribute('value');\n if len(packageDepsStr) == 0:\n return []\n return packageDepsStr.split(',')\n\n\ndef getSingleEmailAddress(emailEle, emailType):\n singleEmailEle = emailEle.getElementsByTagName(emailType)[0]\n singleEmailAddress = singleEmailEle.getAttribute('address');\n return singleEmailAddress\n\n\ndef getPackageEmailAddresses(packageEle):\n emailEle = packageEle.getElementsByTagName(\"EmailAddresses\")[0]\n checkinEmail = getSingleEmailAddress(emailEle, \"Checkin\")\n regressionEmail = getSingleEmailAddress(emailEle, \"Regression\")\n return PackageEmailAddresses(checkinEmail, regressionEmail)\n\n\ndef getTrilinosDependenciesFromXmlFile(xmlFile=defaultTrilinosDepsXmlInFile):\n #print \"xmlFile =\", xmlFile\n packageDepXmlDom = xml.dom.minidom.parse(xmlFile)\n trilinosDependencies = TrilinosDependencies()\n for ele in packageDepXmlDom.childNodes[0].childNodes:\n if ele.nodeType == ele.ELEMENT_NODE:\n packageName = ele.getAttribute('name')\n packageDir = ele.getAttribute('dir')\n #print \"\\npackageName =\", packageName\n packageDeps = PackageDependencies(packageName, packageDir,\n getDependenciesByType(ele, \"LIB_REQUIRED_DEP_PACKAGES\"),\n getDependenciesByType(ele, \"LIB_OPTIONAL_DEP_PACKAGES\"),\n getDependenciesByType(ele, \"TEST_REQUIRED_DEP_PACKAGES\"),\n getDependenciesByType(ele, \"TEST_OPTIONAL_DEP_PACKAGES\"),\n getPackageEmailAddresses(ele)\n )\n #print \"\\npackageDeps =\", str(packageDeps)\n trilinosDependencies.addPackageDependencies(packageDeps)\n return trilinosDependencies\n","repo_name":"qsnake/trilinos","sub_path":"cmake/python/TrilinosDependencies.py","file_name":"TrilinosDependencies.py","file_ext":"py","file_size_in_byte":16309,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"19068645646","text":"import pickle\nimport sys\n# local module\nfrom text_processing import *\n\n# get top k book summaries for a particluar query\ndef getSummaries(q, k):\n # pre processing query: tokenization, removing stopwords, stemming\n words = token_list(q)\n if len(words) == 0:\n return []\n else:\n # getting index created for all summaries in database with weight values for a summary and token\n index_file = open(\"search_data/index.pkl\",\"rb\")\n index = pickle.load(index_file)\n\n # get all matches with score,ids in sorted in desc order of scores\n docScores = get_all_matches(index, words)\n\n top_matches = []\n # getting summaries data from top summary ids found\n summaries_file = open(\"search_data/summaries.pkl\",\"rb\")\n summaries = pickle.load(summaries_file)\n count = 0\n for el in docScores:\n if count == k:\n break\n top_matches.append(summaries[el[1]])\n count += 1\n index_file.close()\n summaries_file.close()\n return top_matches\n\ndef get_all_matches(index, words):\n search_tokens = []\n # getting all summary ids (from index data) containing any of the query tokens\n result = set()\n for word in words:\n if word in index:\n search_tokens += [word]\n entries = [x[0] for x in index[word]]\n result=result|set(entries)\n\n # scoring for each summary document found\n # adding up wieghts of each token if present in summary document\n docscores = {}\n for query_token in search_tokens:\n for doc_weights in index[query_token]:\n if doc_weights[0] in result:\n if doc_weights[0] in docscores:\n docscores[doc_weights[0]] += doc_weights[1]\n else:\n docscores[doc_weights[0]] = doc_weights[1]\n\n # sorting summary document ids accoring to scores\n docScores=[ [score,doc] for doc,score in docscores.items()]\n docScores.sort(reverse=True)\n\n return docScores\n\nif __name__ == \"__main__\":\n print(getSummaries(sys.argv[1], int(sys.argv[2])))\n","repo_name":"monaligupta13/prototype-search-engine","sub_path":"search_summaries.py","file_name":"search_summaries.py","file_ext":"py","file_size_in_byte":2118,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3777795265","text":"import pandas as pd\nimport plotly\nimport plotly.graph_objs as go\n\nimport dashboards.prepare_feature_data as pfd\nfrom dashboards.dashboard import AbstractDashboard\n\nPLAN_PREFIX = 'Plan: '\nFACT_PREFIX = 'Fact: '\n\n\nclass FeatureProgressDashboard(AbstractDashboard):\n '''Plotly Bar Stacked Chart'''\n\n plan = None\n fact = None\n details = None\n\n def prepare(self, data):\n\n columns_size = 0\n epic_df = data[(data.issuetype == \"Epic\") | (data.issuetype == \"Documentation\")]\n epic_df = data[data[\"labels\"].str.contains(pat=\"num\")]\n\n plan_df, fact_df = pfd.prepare(epic_data=epic_df, issue_data=data, or_filter_list=self.filter_list,\n and_filter_list=None,\n plan_prefix=PLAN_PREFIX, fact_prefix=FACT_PREFIX, with_total=False,\n details=self.details)\n columns_size = plan_df.columns.size\n\n self.data = pd.DataFrame()\n\n for idx in range(0, columns_size):\n if self.fact:\n self.data[fact_df.columns[idx]] = fact_df[fact_df.columns[idx]]\n if self.plan:\n self.data[plan_df.columns[idx]] = plan_df[plan_df.columns[idx]]\n\n sorted_data = self.data.reindex(sorted(self.data.columns, key=lambda x: x[len(PLAN_PREFIX):], reverse=False),\n axis=1)\n self.data = sorted_data\n\n #self.data = self.data.assign(tmp=self.data.sum(axis=1)).sort_values('tmp', ascending=False)\n #self.data = self.data.sort_values(by=, ascending=False)\n\n def export_to_plotly(self):\n\n if len(self.data) == 0:\n return\n\n ind = 1\n\n feature_name_max_length = max(len(column) for column in self.data.columns)\n\n first_feature = 0\n last_feature = self.data.columns.size\n\n loop_exit = False\n\n # screen loop\n for current_feature in range(first_feature, last_feature, self.items_on_chart):\n\n final_feature = current_feature + self.items_on_chart\n if last_feature - final_feature <= self.min_item_tail:\n final_feature = last_feature\n loop_exit = True\n\n data_part = self.data.iloc[:, current_feature:final_feature]\n # reverse sorting due to go from top to down\n data_part = data_part.reindex(\n sorted(data_part.columns, key=lambda x: x[len(PLAN_PREFIX):], reverse=True), axis=1)\n\n traces = list()\n shapes = list()\n\n # now the colors\n # clrred = 'rgb(222,0,0)'\n # clrgrn = 'rgb(0,222,0)'\n\n for component_idx in range(0, len(data_part)):\n # clrs = [clrred if x%2 else clrgrn for x in range(data_part.iloc[component_idx].size)]\n total = str(data_part.iloc[component_idx].values.sum())\n\n bar_plan = go.Bar(\n y=data_part.columns,\n x=data_part.iloc[component_idx],\n name=data_part.index[component_idx],\n textposition='auto',\n orientation='h',\n legendgroup=data_part.index[component_idx],\n hoverinfo='name + text',\n text=data_part.iloc[component_idx],\n\n # marker=[x for x in dict(color=clrred)]\n )\n traces.append(bar_plan)\n plan_fact_str = ''\n if self.plan:\n plan_fact_str = 'plan '\n if self.fact:\n plan_fact_str = plan_fact_str + 'fact'\n\n if last_feature > self.items_on_chart:\n title = \"{0} \\nPart #{1} {2}\".format(self.dashboard_name.replace('num', ''), str(ind),\n plan_fact_str)\n else:\n title = \"{0} {1}\".format(self.dashboard_name, plan_fact_str)\n\n layout = go.Layout(\n annotations=[\n dict(\n x=1.09,\n y=1.03,\n xref='paper',\n yref='paper',\n text='Components',\n showarrow=False,\n font=dict(\n family='sans-serif',\n size=12,\n color='#000'\n )\n )\n ],\n legend=dict(\n x=1,\n y=1,\n traceorder='normal',\n font=dict(\n family='sans-serif',\n size=10,\n color='#000'\n )\n ),\n showlegend=True,\n margin=dict(t=50, b=50, r=100, l=feature_name_max_length * 6),\n autosize=True,\n font=dict(size=9, color='black'),\n barmode='stack',\n shapes=shapes,\n title=title,\n plot_bgcolor='white',\n yaxis=dict(\n rangemode=\"tozero\",\n autorange=True,\n showgrid=True,\n zeroline=True,\n showline=True,\n ticks='',\n showticklabels=True,\n tickangle=0,\n tickfont=dict(\n size=10,\n color='black'\n\n ),\n ),\n xaxis=dict(\n rangemode=\"tozero\",\n autorange=True,\n showgrid=True,\n zeroline=True,\n showline=True,\n ticks='',\n showticklabels=True,\n tickfont=dict(\n size=10,\n color='black'\n\n ),\n title='Estimates (man-days)',\n titlefont=dict(\n size=16,\n color='black'\n )\n )\n )\n file_name = self.dashboard_name.replace('num', '') + ' ' + plan_fact_str\n html_file = self.png_dir + \"{0}_{1}.html\".format(file_name, str(ind))\n fig = go.Figure(data=traces, layout=layout)\n plotly.offline.plot(fig, filename=html_file, auto_open=True)\n\n ind = ind + 1\n if loop_exit:\n break\n\n def export_to_plot(self):\n self.export_to_plotly()\n\n def export_to_json(self):\n raise NotImplementedError('export_to_json')\n","repo_name":"jazav/ProjectDashboard","sub_path":"dashboards/feature_progress_dashboard.py","file_name":"feature_progress_dashboard.py","file_ext":"py","file_size_in_byte":6724,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"74627534044","text":"#################### Tetris ByHiroki ####################\r\n\r\nimport tkinter as tk\r\nimport random\r\nfrom tkinter import messagebox\r\n\r\nSIZE = 30 #ブロックのサイズ\r\nmoveX = 4 #テトロミノ表示位置(横)\r\nmoveY = 0 #テトロミノ表示位置(縦)\r\ntype = random.randint(0, 6) #テトロミノのタイプ\r\n\r\ntimer = 800 #ゲームスピードコントロール\r\nscore = 0 #スコア\r\n\r\ncolor = [\"magenta\", \"blue\", \"cyan\", \"yellow\", \"orange\", \"red\", \"green\", \"black\", \"white\"]\r\n\r\n#テトロミノデータ\r\ntetroT = [-1, 0, 0, 0, 1, 0, 0, 1]\r\ntetroJ = [-1, 0, 0, 0, 1, 0, 1, 1]\r\ntetroI = [-1, 0, 0, 0, 1, 0, 2, 0]\r\ntetroO = [ 0, 0, 1, 0, 0, 1, 1, 1]\r\ntetroL = [-1, 0, 0, 0, 1, 0,-1, 1]\r\ntetroZ = [-1,-1, 0,-1, 0, 0, 1, 0]\r\ntetroS = [ 0, 0, 1, 0, 0, 1,-1, 1]\r\ntetro = [tetroT, tetroJ, tetroI, tetroO, tetroL, tetroZ, tetroS]\r\n\r\n#フィールドデータ\r\nfield = []\r\nfor y in range(22):\r\n sub = []\r\n for x in range(12):\r\n if x==0 or x==11 or y==21 :\r\n sub.append(8)\r\n else :\r\n sub.append(7)\r\n field.append(sub)\r\n\r\n#テトロミノを表示する関数\r\ndef drawTetris():\r\n for i in range(4):\r\n x = (tetro[type][i*2]+moveX)*SIZE\r\n y = (tetro[type][i*2+1]+moveY)*SIZE\r\n can. create_rectangle(x, y, x+SIZE, y+SIZE, fill=color[type])\r\n\r\n#フィールドを表示する関数\r\ndef drawField():\r\n for i in range(21):\r\n for j in range(12):\r\n outLine=0 if color[field[i+1][j]]==\"white\" else 1 #白いブロックは枠無しで表示\r\n can.create_rectangle(j*SIZE, i*SIZE, (j+1)*SIZE, (i+1)*SIZE, fill=color[field[i+1][j]], width=outLine)\r\n\r\n#テトロミノを動かす関数\r\ndef keyPress(event): \r\n global moveX, moveY\r\n afterX = moveX\r\n afterY = moveY\r\n afterTetro = []\r\n afterTetro.extend(tetro[type])\r\n if event.keysym==\"Right\" : #右移動\r\n afterX += 1\r\n elif event.keysym==\"Left\" : #左移動\r\n afterX -= 1\r\n elif event.keysym==\"Down\" : #下移動\r\n afterY += 1\r\n elif event.keysym==\"space\" : #右回転\r\n afterTetro.clear()\r\n for i in range(4):\r\n afterTetro.append(tetro[type][i*2+1]*(-1))\r\n afterTetro.append(tetro[type][i*2])\r\n judge(afterX, afterY, afterTetro) #アタリ判定関数呼び出し\r\n\r\ndef judge(afterX, afterY, afterTetro): #アタリ判定をする関数\r\n global moveX, moveY\r\n result = True\r\n for i in range(4):\r\n x = afterTetro[i*2]+afterX\r\n y = afterTetro[i*2+1]+afterY\r\n if field[y+1][x]!=7 :\r\n result = False\r\n if result==True :\r\n moveX = afterX\r\n moveY = afterY\r\n tetro[type].clear()\r\n tetro[type].extend(afterTetro)\r\n return result\r\n\r\ndef dropTetris():\r\n global moveX, moveY, type, timer\r\n afterTetro = []\r\n afterTetro.extend(tetro[type])\r\n result = judge(moveX, moveY+1, afterTetro)\r\n if result==False :\r\n for i in range(4):\r\n x = tetro[type][i*2]+moveX\r\n y = tetro[type][i*2+1]+moveY\r\n field[y+1][x] = type\r\n deleteLine()\r\n type = random.randint(0, 6)\r\n moveX = 4\r\n moveY = 0\r\n can.after(timer, dropTetris)\r\n timer -= 2 #落下速度コントロール\r\n if timer<140 :\r\n timer = 180\r\n\r\ndef deleteLine():\r\n global score\r\n for i in range(1, 21):\r\n if 7 not in field[i]:\r\n for j in range(i):\r\n for k in range(12):\r\n field[i-j][k] = field[i-j-1][k]\r\n score += 800-timer\r\n for i in range(1, 11):\r\n if 7 != field[1][i]:\r\n messagebox.showinfo(\"information\", \"GAME OVER !\")\r\n exit()\r\n\r\n#################### ゲームループ #################### \r\nwin = tk.Tk()\r\nwin.geometry(\"340x630\")\r\nwin.title(\"Tetris ByHiroki\")\r\ncan = tk.Canvas(win, width=12*SIZE, height=21*SIZE)\r\ncan.place(x=-10, y=0)\r\nvar = tk.StringVar()\r\nlab = tk.Label(win, textvariable=var, fg=\"blue\", bg=\"white\", font=(\"\", \"20\")) #得点表示\r\nlab.place(x=50, y=600)\r\n\r\nwin.bind(\"\", keyPress) #キープレスをバインド\r\n\r\ndef gameLoop():\r\n can.delete(\"all\")\r\n var.set(score)\r\n drawField()\r\n drawTetris()\r\n can.after(50, gameLoop)\r\n\r\ngameLoop()\r\ndropTetris()\r\n\r\nwin.mainloop()\r\n","repo_name":"XxPandaHirokixX/TetrisSample","sub_path":"Tetris.py","file_name":"Tetris.py","file_ext":"py","file_size_in_byte":4373,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"43172804961","text":"# A keras script to train a conditional variational auto-encoder (CVAE)\n# with a conditioning variable optimised via an auxillary neural network.\n# The conditioning network is further used for dimensionality reduction \n# to perform Artificial bandwidth extension using GMM regression. \n#\n# Written by Pramod Bachhav, Aug 2018\n# Contact : bachhav[at]eurecom[dot]fr, bachhavpramod[at]gmail[dot]com\n#\n# References:\n# \n# P.Bachhav, M. Todisco and N. Evans, \"Latent Representation Learning for Artificial \n# Bandwidth Extension using a Conditional Variational Auto-encoder\",\n# accepted in ICASSP 2019.\n# \n# Acknowledgements : \n#\n# https://github.com/twolffpiggott/autoencoders/blob/master/autoencoders.py#L34\n# https://tiao.io/post/tutorial-on-variational-autoencoders-with-a-concise-keras-implementation/\n#\n# https://blog.keras.io/building-autoencoders-in-keras.html\n# - Here, note that KL loss definition has a minor mistake - \n# - It should be KL-loss = -0.5 K.sum() .... instead of KL-loss = -0.5 K.mean()\n# Better version can be found at => \n# https://github.com/keras-team/keras/blob/master/examples/variational_autoencoder.py\n#\n# A very nice understanding about Kingma's papers on VAE at \n# http://bjlkeng.github.io/posts/variational-autoencoders/\n \n##############################################################################################\n\nimport numpy as np\nnp_seed = 1337\nimport os\nos.environ['PYTHONHASHSEED'] = '0'\nos.sys.path.append('./../../ABE_SSAE_IS18/2_SSAE_training') # to include files HTK.p, HTKFeat.py and my_functions.py\nimport random as rn\nrn.seed(12345)\nos.environ['KERAS_BACKEND'] = 'tensorflow'\nimport keras\t\nnp.random.seed(np_seed) \nfrom keras.callbacks import ModelCheckpoint\nimport my_functions\nfrom keras.models import Model\nimport cvae\n\n\nl1 = 2 \nl2 = 2\nmodelpath='./your_models_CVAE/'\nif not os.path.exists(modelpath):\n os.makedirs(modelpath)\n \nfeature='LPS'\nprint('Feature used is {}'.format(feature))\n\nprint( 'Loading data...')\ndata = my_functions.load_data(l1,l2, feature) \ninp_train, inp_dev, inp_test, op_reg_train, op_reg_dev, op_reg_test, feat_dim_X, feat_dim_Y = data\nprint('Data loaded') \nfeat_dim_X = (l1+l2+1)*feat_dim_X\n\n# =============================================================================\n# CVAE configuration\n# =============================================================================\n\nzy_dim = 10 # size of latent variable of CVAE (zy)\nzx_dim = 10 # size of conditioning variable of CVAE (zx)\n\nalpha_vae = 10\nalpha_cvae = 10\n \nhidden_layers_enc=[512, 256]; \nhidden_layers_dec=[256, 512]; \n\nactiv = 'tanh'; act = 'tanh'\nactivations_enc =[activ,activ]; \nactivations_dec =[activ,activ,'linear'] \n\nL_enc_X = np.append(feat_dim_X,hidden_layers_enc) \nL_dec_X = np.append( zx_dim, hidden_layers_dec); L_dec_X = np.append( L_dec_X , feat_dim_X)\n\nL_enc_Y = np.append( feat_dim_Y, hidden_layers_enc); \nL_dec_Y = np.append( zy_dim + zx_dim , hidden_layers_dec); L_dec_Y = np.append( L_dec_Y , feat_dim_Y)\n\n# =============================================================================\n# training parameters\n# =============================================================================\n\npDrop = 0; BN = 'b'\nreduce_lr_factor = 0.5; min_lr = 0.00001 # parameters for callback ReduceLROnPlateau\nbs = 512 # batch_size\nshuff = True\nloss='mse'\n\nepochs = 50; epochs_cvae = 50; patience = 5; patience_cvae = 5\nLR = 0.001; optimizer = 'adam'; \nbatch_size = 512\nshuff = True; loss = 'mse'\n\noptim1 = keras.optimizers.Adam(lr=LR, beta_1=0.9, beta_2=0.999, epsilon=1e-08, decay=0) # 0.87, 0.88, 0.90 decay - 0.0, bs=128\noptim2 = keras.optimizers.Adam(lr=LR, beta_1=0.9, beta_2=0.999, epsilon=1e-08, decay=0) # 0.87, 0.88, 0.90 decay - 0.0, bs=128\nopt_params = 'LR='+str(LR)\n\nkernel_initializer = keras.initializers.he_normal(seed=7); init='he_n'\nkr = 0; kernel_regularizer = keras.regularizers.l2(kr)\n\n################################################################\n\nsheet_name1 = ''\nfor i in range(len(hidden_layers_enc)):\n sheet_name1 = sheet_name1 + str(hidden_layers_enc[i])\n if i is not len(hidden_layers_enc)-1:\n sheet_name1 = sheet_name1+'_' \nsheet_name1 = 'ENC_' + sheet_name1 \nsheet_name2 = ''\nfor i in range(len(hidden_layers_dec)):\n sheet_name2 = sheet_name2 + str(hidden_layers_dec[i])\n if i is not len(hidden_layers_dec)-1:\n sheet_name2 = sheet_name2+'_' \nsheet_name2 = 'DEC_' + sheet_name2 \n \n################################################################\narch = 'CVAE' \nexpName=sheet_name1+'_'+sheet_name2+'_'+arch+'_'+feature+'_NB_LPC_'+str(int(feat_dim_X/(l1+l2+1)))+'.'+str(feat_dim_Y)+'_mem_'+str(l1)+'.'+str(l2)+'_act_'+act+'_dr='+str(pDrop)+'_BN='+str(BN)# HL+1-OL\nmodel_name = expName+'_'+optimizer+'_'+opt_params+'_bs='+str(batch_size)+'_ep='+str(epochs_cvae)+'_'+str(patience_cvae)+'_'+init+'_alpha='+str(alpha_cvae)\n\n################################################################\n\ndata_vae = inp_train, inp_dev, inp_train, inp_dev\ndata_cvae = op_reg_train, op_reg_dev, inp_train, inp_dev \n\n################################################################\nif not os.path.exists(modelpath):\n os.makedirs(modelpath) \npath_to_save = modelpath+model_name\nprint('Experiment setup is : '+path_to_save)\n \ndef sampling(z_mean, z_log_var, latent_dim):\n np.random.seed(np_seed) # for reproducibility\n epsilon = np.random.normal( 0., 1.0, (z_mean.shape[0], latent_dim))\n return z_mean + np.exp( z_log_var / 2) * epsilon \n\nprint('*******************************************************************')\nprint(' TRAINING A VAE for X ')\nprint('*******************************************************************')\n\nmonitor = 'val_loss'\nreduce_lr = keras.callbacks.ReduceLROnPlateau(monitor = monitor, factor=0.5, \n verbose = 1, patience = patience, min_lr = min_lr)\ncheckpointer = ModelCheckpoint(filepath = path_to_save+'_VAEx_init', verbose = 0, \n save_best_only = True, monitor= monitor)\ncb = [reduce_lr, checkpointer]\n\nparameters = {'zx_dim': zx_dim, 'optimizer':optim1, 'loss':loss,\n 'epochs' : epochs, 'batch_size' : batch_size, 'shuff' : shuff,\n 'kernel_initializer':kernel_initializer, 'kernel_regularizer' :kernel_regularizer,\n 'alpha' : alpha_vae}\n\nvae_instance = cvae.VAE (parameters)\n\nprint('--------------- Initializing encoder network for X --------------- ')\ninit_encoder_ff_X = vae_instance.init_feedforward( L_enc_X , activations_enc, pDrop, BN, 'encX_last_layer' )\nprint('--------------- Initializing decoder network for X ---------------')\ninit_decoder_ff_X = vae_instance.init_feedforward( L_dec_X, activations_dec, pDrop, BN, 'reconstructed_x')\nprint('--------------- Initializing VAE for X --------------- ')\nw_encX_init = init_encoder_ff_X.get_weights()\nw_decX_init = init_decoder_ff_X.get_weights()\nvae_instance.init(init_encoder_ff_X, init_decoder_ff_X, feat_dim_X)\nprint('--------------- Training VAE for X---------------')\nencX, encX_mean, encX_var, decX, vaeX, vae_arch, encX_arch, decX_arch, encX_check = vae_instance.train (data_vae, cb) \n\n\n# Weights of best model with best validation loss are saven in (path_to_save+'_VAEx_initial') \n# load best weights in model vaeX\nw_vaeX = vaeX.get_weights()\nvaeX.load_weights(path_to_save+'_VAEx_init')\nw_vaeX_best = vaeX.get_weights()\n\n# MATLAB, yet (Oct 2018), does not support loading keras models with lambda layer. \n# Therefore, it is not possible to use the model enc_x\nencX = Model(inputs=vaeX.input, outputs=vaeX.get_layer('VAE_lambda_z').output)\n# Save models for mean and variances of stochastic layer 'zx', separately.\nencX_mean = Model(inputs = vaeX.input, outputs=vaeX.get_layer('VAE_z_mean').output)\nencX_var = Model(inputs = vaeX.input, outputs=vaeX.get_layer('VAE_z_var').output)\n\n# this workaround helpful to read these models in MATLAB during ABE estimation, using importkeras add-on. \nencX_mean.save(path_to_save+'_encX_mean_init.hdf5')\nencX_var.save(path_to_save+'_encX_var_init.hdf5')\n\n\nprint('*******************************************************************')\nprint(' TRAINING A CVAE ')\nprint('*******************************************************************')\n\nreduce_lr = keras.callbacks.ReduceLROnPlateau(monitor = monitor, factor=0.5, \n verbose = 1, patience = patience_cvae, min_lr = min_lr)\ncheckpointer = ModelCheckpoint(filepath = path_to_save+'_CVAE', verbose = 0, \n save_best_only = True, monitor= monitor)\ncb = [reduce_lr, checkpointer]\nparameters['optimizer'] = optim2\nparameters['alpha'] = alpha_cvae\nparameters['zy_dim'] = zy_dim\n\ncvae_instance = cvae.CVAE (parameters)\n\nprint(' Initializing encoder network ')\ninit_encoder_ff_Y = cvae_instance.init_feedforward( L_enc_Y , activations_enc, pDrop, BN, 'encY_last_layer' )\nprint(' Initializing decoder network ')\ninit_decoder_ff_Y = cvae_instance.init_feedforward( L_dec_Y, activations_dec, pDrop, BN, 'reconstructed_y' )\nw_decY_init = init_decoder_ff_Y.get_weights()\nw_encY_init = init_encoder_ff_Y.get_weights()\nprint(' Initializing CVAE ')\ncvae_instance.init(init_encoder_ff_Y, init_decoder_ff_Y, encX_mean, encX_var, feat_dim_X, feat_dim_Y)\nprint(' Training CVAE ')\nencY, decY, encX_mean_new, encX_var_new, encX_new, cvae, cvae_arch, encY_arch, decY_arch, encX_mean_arch, encX_var_arch, encX_arch = cvae_instance.train(data_cvae, cb) \ndecY = []\n\n\n# load best weights in 'cvae'\ncvae.load_weights(path_to_save+'_CVAE')\n\n#encY_mean_new = Model(inputs = cvae.input, outputs = cvae.get_layer('CVAE_z_mean').output)\n#encY_var_new = Model(inputs = cvae.input, outputs = cvae.get_layer('CVAE_z_var').output)\n\n# Dec is last 'sequential model of' cvae\ndecY = cvae.get_layer(index = len(cvae.layers)-1)\n\n# zx_mean and zx_var should be 6th and 7th sequential layers\nencX_mean_best = cvae.get_layer(index = 5)\nencX_mean_best.summary()\nencX_var_best = cvae.get_layer(index = 6)\nencX_var_best.summary()\nencX_best = Model(inputs = cvae.input[1], outputs = cvae.get_layer('CVAE_zx').output)\nencX_best.summary()\n\nencY_mean_best = Model(inputs = cvae.input[0], outputs = cvae.get_layer('CVAE_z_mean').output)\nencY_mean_best.summary()\nencY_mean_best.input\n\nencY_var_best = Model(inputs = cvae.input[0], outputs = cvae.get_layer('CVAE_z_var').output)\nencY_var_best.summary()\nencY_var_best.input\n\n# Save models\nencX_best.save(path_to_save+'_encX.hdf5')\nencX_mean_best.save(path_to_save+'_encX_mean.hdf5')\nencX_var_best.save(path_to_save+'_encX_var.hdf5')\ndecY.save(path_to_save+'_decY.hdf5')\n\n\n# =============================================================================\n# Evaluation of the model (testing phase - where zy is sampled from prior distribution) \n# on train, validation/developement and test dataset\n# =============================================================================\n\n# Sample 'zy' from Normal distribution during estimation phase\nnp.random.seed(11); zy_train = np.random.normal( 0, 1.0, (inp_train.shape[0], zy_dim)) \nnp.random.seed(12); zy_dev = np.random.normal( 0, 1.0, (inp_dev.shape[0], zy_dim)) \nnp.random.seed(13); zy_test = np.random.normal( 0, 1.0, (inp_test.shape[0], zy_dim)) \n \n\nprint('*******************************************************************')\nprint(' EVALUATION - with best weights for encX and decY ')\nprint('*******************************************************************')\n\nmeans_train = encX_mean_best.predict(inp_train) \nlog_vars_train = encX_var_best.predict(inp_train) \nzx_train = sampling(means_train, log_vars_train, zx_dim)\n\nop_reg_train_est0 = decY.predict( np.concatenate((zy_train, zx_train), axis=-1) ) \nscore_pred_model0 = np.append(np.mean(np.square(op_reg_train - op_reg_train_est0)), np.mean(np.square(op_reg_train[:,0]-op_reg_train_est0[:,0])))\nprint (\"Train score : {0:.3f},,{1:.7f}\".format(score_pred_model0[0],score_pred_model0[1]))\n\n# ---------------------------------------------------------------------------\n\nmeans_dev = encX_mean_new.predict(inp_dev) \nlog_vars_dev = encX_var_new.predict(inp_dev) \nzx_dev = sampling(means_dev, log_vars_dev, zx_dim)\n\nop_reg_dev_est1 = decY.predict( np.concatenate((zy_dev, zx_dev), axis=-1) ) \nscore_pred_model1 = np.append(np.mean(np.square(op_reg_dev - op_reg_dev_est1)), np.mean(np.square(op_reg_dev[:,0]-op_reg_dev_est1[:,0])))\nprint (\"Dev score : {0:.3f},,{1:.7f}\".format(score_pred_model1[0],score_pred_model1[1]))\n\n# ---------------------------------------------------------------------------\n\nmeans_test = encX_mean_new.predict(inp_test) \nlog_vars_test = encX_var_new.predict(inp_test) \nzx_test = sampling(means_test, log_vars_test, zx_dim)\n\nop_reg_est2 = decY.predict( np.concatenate((zy_test, zx_test), axis=-1) ) \nscore_pred_model2 = np.append(np.mean(np.square(op_reg_test - op_reg_est2)), np.mean(np.square(op_reg_test[:,0]-op_reg_est2[:,0])))\nprint (\"Test score : {0:.3f},,{1:.7f}\".format(score_pred_model2[0],score_pred_model2[1]))\n\n \n##################################################################\n#\nprint('----------- Evaluation finished ----------') \nprint('-----------Experiment setup is : ' +path_to_save + '-----------')\n\n#################################################################\n\n\n","repo_name":"bachhavpramod/bandwidth_extension","sub_path":"ABE_CVAE_ICASSP19/2_CVAE_training/Train_CVAE.py","file_name":"Train_CVAE.py","file_ext":"py","file_size_in_byte":13429,"program_lang":"python","lang":"en","doc_type":"code","stars":43,"dataset":"github-code","pt":"86"}
+{"seq_id":"42000406010","text":"import sys\nimport os\nfrom subprocess import Popen, PIPE\nimport psutil\nfrom builtins import super\nimport datetime\nfrom PyQt5 import QtWidgets, QtCore\nimport pygui\n\n\nclass ExampleApp(QtWidgets.QMainWindow, pygui.Ui_MainWindow):\n def __init__(self):\n super().__init__()\n self.setupUi(self)\n self.file_types = {\n \".js\": \"node\"\n }\n self.processes = []\n self.default_dir = \"C:/Users/ilya1/OneDrive/Desktop/Automation Selenium Project/Tests\"\n self.current_dir = self.default_dir\n self.logger_output_file_full_path = \"\"\n\n # Event Handlers\n self.select_folder_btn.clicked.connect(self.browse_folder)\n self.run_btn.clicked.connect(self.run_checked_tests)\n self.stop_btn.clicked.connect(self.stop_all_tests)\n self.clear_btn.clicked.connect(self.clear)\n self.log_btn.clicked.connect(self.print_logs)\n self.select_all_btn.clicked.connect(self.select_all)\n self.unselect_all_btn.clicked.connect(self.unselect_all)\n\n # Styles\n self.treeWidget.setHeaderLabels(['Files'])\n\n def select_all(self):\n for file in self.get_tree_children():\n file.setCheckState(0, QtCore.Qt.Checked)\n\n def unselect_all(self):\n for file in self.get_tree_children():\n file.setCheckState(0, QtCore.Qt.Unchecked)\n\n def browse_folder(self):\n self.current_dir = QtWidgets.QFileDialog.getExistingDirectory(self, \"Select a folder\",\n directory=self.default_dir)\n if not self.current_dir:\n return\n\n self.treeWidget.clear()\n allowed_files = filter(lambda file_name: self.is_allowed_file(file_name), os.listdir(self.current_dir))\n for allowed_file in allowed_files:\n QtWidgets.QTreeWidgetItem(self.treeWidget, [allowed_file]).setCheckState(0, QtCore.Qt.Unchecked)\n\n def is_allowed_file(self, file_name):\n return not self.file_types or len(list(filter(lambda eof: file_name.endswith(eof), self.file_types))) > 0\n\n def get_tree_children(self):\n root = self.treeWidget.invisibleRootItem()\n child_count = root.childCount()\n return list(map(lambda i: root.child(i), range(child_count)))\n\n def run_file_with(self, file_name):\n if not self.file_types:\n return \"\"\n\n for eof in self.file_types:\n if file_name.endswith(eof):\n return self.file_types[eof]\n return \"\"\n\n def kill(self, pid):\n try:\n process = psutil.Process(pid)\n for process_child in process.children(recursive=True):\n process_child.kill()\n process.kill()\n except Exception as e:\n print(f'Got exception: {e}')\n\n def run_checked_tests(self):\n checked_files = list(map(lambda file: file.text(0),\n filter(lambda file: file.checkState(0) == QtCore.Qt.Checked,\n self.get_tree_children())))\n if not checked_files:\n return\n\n run_command = \" && \".join(\n list(map(lambda file_name: f\"{self.run_file_with(file_name)} {file_name}\", checked_files)))\n self.logger_output_file_full_path = f\"{self.current_dir}/log/{datetime.datetime.now().strftime('%H-%M-%S %Y-%m-%d')}.log \"\n\n with open(self.logger_output_file_full_path, \"w\") as logger_output_file:\n process = Popen(run_command, stdout=logger_output_file, stderr=logger_output_file, stdin=PIPE,\n shell=True, cwd=self.current_dir, universal_newlines=True, start_new_session=True)\n\n self.processes.append({\"id\": process.pid, \"process\": process})\n self.run_btn.setEnabled(False)\n\n def print_logs(self):\n if not self.logger_output_file_full_path:\n return\n with open(self.logger_output_file_full_path, \"r\") as logger_output_file:\n log_content = \" \".join(logger_output_file.read().split(\"\\n\"))\n self.logBrowser.setText(\"\") # log to screen\n self.logBrowser.setText(log_content) # log to screen\n\n def stop_all_tests(self):\n for p in self.processes:\n self.kill(p[\"id\"])\n self.processes = []\n self.run_btn.setEnabled(True)\n\n def clear(self):\n self.logBrowser.clear()\n\n\ndef main():\n app = QtWidgets.QApplication(sys.argv)\n window = ExampleApp()\n window.show()\n app.exec_()\n\n\nif __name__ == '__main__': # Если мы запускаем файл напрямую, а не импортируем\n main() # то запускаем функцию main()\n","repo_name":"ilya1200/gui-project","sub_path":"start.py","file_name":"start.py","file_ext":"py","file_size_in_byte":4677,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"14314861507","text":"from collections import defaultdict\nimport pprint\nfrom typing import List\n\n\nclass Solution:\n def gardenNoAdj(self, n: int, paths: List[List[int]]) -> List[int]:\n m = defaultdict(list[int])\n for u, v in paths:\n m[u].append(v)\n m[v].append(u)\n ans = [0]*n\n pprint.pprint(m)\n for u in range(1, n + 1):\n colors = set(range(1, 5)) - set(ans[v - 1] for v in m[u])\n ans[u - 1] = colors.pop()\n # pprint.pprint(ans)\n return ans\n\nif __name__ == '__main__':\n print(Solution().gardenNoAdj(n = 3, paths = [[1,2],[2,3],[3,1]]))","repo_name":"mole828/leetcode","sub_path":"problems/p1042.py","file_name":"p1042.py","file_ext":"py","file_size_in_byte":616,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"9908609171","text":"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Fri Jan 15 17:32:43 2021\n\n@author: vicente\n\nEste algoritmo sirve para aplicar isolation forest con un rango de numero de arboles\nse obtiene una grafica de el numero ed anomlias encontradas vs el numero de arboles\nel fin es poder hacer un analisis para escoger el numero de arboles ideal para el proyecto\n\"\"\"\nimport pandas as pd # data processing\nimport warnings\n#import os\nfrom sklearn.ensemble import IsolationForest\nimport matplotlib.pyplot as plt\n\nwarnings.filterwarnings('ignore')\n#print(os.listdir(\"../Tesis\"))\n\n#leer dataset de huellas digitales\ndf=pd.read_csv(\"../Tesis/fingerprints.csv\")\ndf.head()\nmetrics_df=df\n\nmetrics_df.columns\nto_model_columns=metrics_df.columns[3:18]\n\n#clf=IsolationForest(n_estimators=100, max_samples='auto', contamination=float(.12),\n #max_features=1.0, bootstrap=False, n_jobs=-1, random_state=42, \n #verbose=0)\nanomalias=[]\nestimador=[] \n#estimar modelo para un rango de 50 a 400 arboles \nfor i in range(5,40): \n n_estimator=i*10\n clf=IsolationForest(n_estimators=n_estimator, max_samples='auto', contamination='auto',\n max_features=1.0, bootstrap=False, n_jobs=-1, random_state=42, \n verbose=0)\n clf.fit(metrics_df[to_model_columns])\n pred= clf.predict(metrics_df[to_model_columns])\n metrics_df['anomaly']=pred\n outliers=metrics_df.loc[metrics_df['anomaly']==-1]\n outlier_index=list(outliers.index)\n #print(outlier_index)\n #Find the number of anomalies and normal points here points classified -1 are anomalous\n a=metrics_df['anomaly'].value_counts()\n estimador.append(n_estimator)\n anomalias.append(a.values[1])\n print(n_estimator)\n print(metrics_df['anomaly'].value_counts())\n \n#graficar numero de anomlias vs numero de arboles\nplt.figure()\nplt.title(\"Número de Anomalías Encontradas\")\nplt.xlabel(\"Numero de Árboles\")\nplt.ylabel(\"Cantidad de Anomalías\")\nplt.plot(estimador,anomalias)\nplt.show()\n","repo_name":"ViQuezada/Bootnet_Detection_Modules","sub_path":"Insolation Forest.py","file_name":"Insolation Forest.py","file_ext":"py","file_size_in_byte":2031,"program_lang":"python","lang":"es","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"36438774635","text":"import tensorflow as tf\nimport os\n\n# 降低输出log等级\nos.environ['TF_CPP_MIN_LOG_LEVEL'] = '1'\n# tf1.X\ntf.compat.v1.disable_eager_execution()\n\na = tf.constant(2, name='a')\nb = tf.constant(3, name='b')\nx = tf.add(a, b, name='add')\n\nwriter = tf.compat.v1.summary.FileWriter('./graphs', tf.compat.v1.get_default_graph())\nwith tf.compat.v1.Session() as sess:\n print(sess.run(x))\nwriter.close()\n\n# Constant\n# tf.constant(value,dtype=None,shape=None,name='Const',verify_shape=False)\na = tf.constant([2, 2], name='a')\nb = tf.constant([[2, 2], [3, 2]], name='b')\nx = tf.multiply(a, b, name='mul')\n\nwith tf.compat.v1.Session() as sess:\n print(sess.run(x))\n\n# 0填充张量\n# tf.zeros(shape, dtype=tf.float32, name=None)\n# 将输入的张量中的所有元素全部置为0\n# tf.zeros_like(input_tensor, dtype=None, name=None, optimize=True)\n# 张量每行大小要一样\ninput_tensor = tf.constant([[1, 2], [2, 3], [4, 6]])\na = tf.zeros([2, 3], tf.int32)\nc = tf.zeros_like(input_tensor)\n\nwith tf.compat.v1.Session() as sess:\n print(\"将元素置为0\")\n print(sess.run(c))\n\n# 将其中的元素置为1,意义同上\n# tf.ones(shape, dtype=tf.float32, name=None)\n# tf.ones_like(input_tensor, dtype=None, name=None, optimize=True)\na = tf.ones([2, 3], dtype=tf.int32)\nb = tf.ones_like(input_tensor)\nwith tf.compat.v1.Session() as sess:\n print(\"将元素置为1\")\n print(sess.run(a))\n print(sess.run(b))\n\n# 用指定值填充新建张量\n# tf.fill(dims, value, name=None)\na = tf.fill([2, 3], 8)\nwith tf.compat.v1.Session() as sess:\n print(\"填充指定值\")\n print(sess.run(a))\n","repo_name":"zyxeeker/CS-20","sub_path":"02_TF_Op.py","file_name":"02_TF_Op.py","file_ext":"py","file_size_in_byte":1594,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"44242287039","text":"class Depend:\n def process(self, commandArr, graph, edges):\n commandArr = self.sanitize(commandArr)\n parent = commandArr[0]\n for i in range(1, len(commandArr)):\n package = commandArr[i]\n if package != \" \":\n graph[parent].append(package)\n edges[package] += 1\n\n print(\"\".join(commandArr))\n return [graph, edges, \"DEPEND \"+\" \".join(commandArr)+\"\\n\"]\n\n def sanitize(self, arr):\n i = 0\n while arr[i] == \" \":\n i += 1\n\n return arr[i:]","repo_name":"tarun29061990/system_dependencies","sub_path":"src/commands/depend.py","file_name":"depend.py","file_ext":"py","file_size_in_byte":552,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"12653794583","text":"\"\"\"\nModule: read JSON file\nAuthor: Max\nDate: 30/05/2022\n\nDescription: reads JSON file.\n\"\"\"\n\nimport pandas as pd\nfrom utils.read_data import ReadData\nfrom pathlib import Path\n\nroot = Path('/')\n\n\nclass JSONReadData(ReadData):\n \"\"\"\n Class to read JSON file.\n\n Attribute:\n ----------\n\n Methods:\n --------\n\n\n\n \"\"\"\n def __init__(self, path, file_name):\n super().__init__(path, file_name)\n\n def read_json_data(self):\n print(\"Start reading source data: read_json_data()\")\n self.data = pd.read_json(root / self.path / self.file_name)\n","repo_name":"maxkad/code-20220530-maxk","sub_path":"utils/read_json_data.py","file_name":"read_json_data.py","file_ext":"py","file_size_in_byte":573,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"74246877725","text":"import json\nimport os\nfrom pprint import pprint\nimport time\nimport requests\nfrom tqdm import tqdm\n\nDAY_1 = 86400\nVERBOSE = False\nINTERACTIVE = False\nDATA_DIR = \"data\"\n\n\ndef read_constituents():\n with open(\"constituents.csv\", \"r\") as f:\n lines = f.readlines()\n lines = [line.strip().split(\",\") for line in lines]\n return lines\n\n\ndef fetch_data(start, end, candle_size):\n print(\"Reading list of symbols...\")\n stocks = read_constituents()\n\n if candle_size == \"D\":\n URL = \"https://query1.finance.yahoo.com/v7/finance/download/{symbol}?period1={start}&period2={end}&interval=1d&events=history&includeAdjustedClose=true\"\n fetch_daily_data(start, end, stocks, URL)\n elif candle_size == \"H\":\n # get access key from secerts.json\n try:\n with open(\"secrets.json\", \"r\") as f:\n secrets = f.read()\n secrets = json.loads(secrets)\n api_key = secrets[\"api_key\"]\n except FileNotFoundError:\n print(\"Could not find secrets.json file\")\n return\n except KeyError:\n print(\"Could not find access_key in secrets.json\")\n return\n\n URL = \"https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol={symbol}&interval=30min&outputsize=full&apikey={api_key}\"\n print(\"Fetching data...\")\n num = 1\n for stock in tqdm(stocks[1:]):\n symbol = stock[0]\n formattedURL = URL.format(symbol=symbol, api_key=api_key)\n headers = {\n \"User-Agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36\"\n }\n r = requests.get(formattedURL, headers=headers)\n # Create data folder if it doesn't exist\n if not os.path.exists(DATA_DIR):\n os.makedirs(DATA_DIR)\n\n if not os.path.exists(DATA_DIR + \"/intraday\"):\n os.makedirs(DATA_DIR + \"/intraday\")\n\n with open(DATA_DIR + \"/\" + \"intraday\" + \"/\" + symbol + \".csv\", \"w\") as f:\n f.write(r.text)\n\n num += 1\n if num % 75 == 0:\n time.sleep(60)\n\n\ndef fetch_daily_data(start, end, stocks, URL):\n print(\"Fetching daily data for {} stocks...\".format(len(stocks)))\n for stock in tqdm(stocks[1:]):\n symbol = stock[0]\n formattedURL = URL.format(symbol=symbol, start=start, end=end)\n headers = {\n \"User-Agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36\"\n }\n r = requests.get(formattedURL, headers=headers)\n # Create data folder if it doesn't exist\n if not os.path.exists(DATA_DIR):\n os.makedirs(DATA_DIR)\n os.makedirs(DATA_DIR + \"/daily\")\n with open(DATA_DIR + \"/\" + \"daily\" + \"/\" + symbol + \".csv\", \"w\") as f:\n f.write(r.text)\n\n # Rate limiting\n time.sleep(2)\n\n\ndef backtest(win_percent, loss_percent, threshold):\n # starting from the second day\n # list all of the stocks that opened 1% or more above the previous close\n # for each stock, calculate the daily return\n\n print(\"Getting list of symbols...\")\n stocks = read_constituents()\n # read data from stocks\n daily_data = {}\n hourly_data = {}\n for stock in tqdm(stocks[1:]):\n symbol = stock[0]\n daily_data[symbol] = {}\n with open(\"data/daily/\" + symbol + \".csv\", \"r\") as f:\n lines = f.readlines()\n stock_data = [line.strip().split(\",\") for line in lines]\n\n for line in stock_data[1:]:\n if \"null\" in line:\n continue\n daily_data[symbol][line[0]] = {\n \"open\": float(line[1]),\n \"high\": float(line[2]),\n \"low\": float(line[3]),\n \"close\": float(line[4]),\n \"adj_close\": float(line[5]),\n \"volume\": float(line[6]),\n }\n\n if not daily_data.get(symbol):\n continue\n\n # calculate the total volume of the stock\n total_volume = 0\n for value in daily_data[symbol].values():\n total_volume += value[\"volume\"]\n\n # calculate the average daily volume\n average_volume = total_volume / len(daily_data[symbol])\n\n # if average volume is below 5 million then skip\n if average_volume < 7500000:\n daily_data.pop(symbol)\n continue\n\n with open(\"data/intraday/\" + symbol + \".csv\", \"r\") as f:\n data = f.read()\n data = json.loads(data)\n data = data.get(\"Time Series (30min)\")\n if not data:\n continue\n\n hourly_data[symbol] = {}\n for timestamp in data:\n if hourly_data[symbol].get(timestamp[:10]) is None:\n hourly_data[symbol][timestamp[:10]] = {}\n hourly_data[symbol][timestamp[:10]][timestamp[11:]] = {\n \"open\": float(data[timestamp][\"1. open\"]),\n \"high\": float(data[timestamp][\"2. high\"]),\n \"low\": float(data[timestamp][\"3. low\"]),\n \"close\": float(data[timestamp][\"4. close\"]),\n \"volume\": float(data[timestamp][\"5. volume\"]),\n }\n\n stocks = [[key] for key in daily_data.keys()]\n print(stocks, len(stocks))\n\n # get first start date available\n symbol = stocks[0][0]\n start_date = min(hourly_data[symbol].keys())\n end_date = max(hourly_data[symbol].keys())\n\n start = convert_to_timestamp(start_date)\n end = convert_to_timestamp(end_date)\n\n results = []\n\n print(\"Running backtest...\")\n pbar = tqdm(total=int((start - end) / DAY_1))\n num_of_days = 0\n while start < end:\n num_of_days += 1\n # add a day\n start += DAY_1\n start_date = convert_to_date(start)\n # list each stock that opened 1% or more above the previous close\n horses = get_horses(stocks, daily_data, start_date)\n # for each horse, calclate current current days return\n calculate_return(daily_data, hourly_data, start_date, horses)\n # for each horse, calculate the total drawdown\n calculate_drawdown(daily_data, start_date, horses)\n # for each horse, calculate the first hour's return\n calculate_first_hour(start_date, hourly_data, horses)\n\n potential_horses = get_potential_horses(\n start_date, hourly_data, horses, threshold\n )\n winning_horses = get_winning_horses(\n win_percent,\n loss_percent,\n daily_data,\n hourly_data,\n start_date,\n potential_horses,\n )\n\n # calculate total gain of winning horses\n total_return = 0\n for horse in winning_horses:\n total_return += daily_data[horse][start_date][\"return\"]\n # calculate average return\n average_return = total_return / len(winning_horses) if winning_horses else 0\n losing_horses = list(set(potential_horses) - set(winning_horses))\n\n # calculate total loss of losing horses\n total_loss = 0\n for horse in losing_horses:\n total_loss += daily_data[horse][start_date][\"return\"]\n # calculate average loss\n average_loss = total_loss / len(losing_horses) if losing_horses else 0\n\n # print the winning horses\n if VERBOSE:\n print_details(\n win_percent,\n daily_data,\n hourly_data,\n start_date,\n horses,\n potential_horses,\n winning_horses,\n average_return,\n threshold,\n )\n print(\"-\" * 20)\n\n # if there were horses and some won, add to results\n if potential_horses and winning_horses:\n result = \"win\"\n elif potential_horses and not winning_horses:\n result = \"loss\"\n else:\n result = \"no_horses\"\n\n results.append(\n {\n \"result\": result,\n \"num_of_winning_horses\": len(winning_horses),\n \"percent_of_winners\": len(winning_horses) / len(potential_horses)\n if potential_horses\n else 100,\n \"average_return_of_winners\": average_return,\n \"average_return_of_losers\": average_loss,\n \"num_of_losing_horses\": len(losing_horses),\n }\n )\n\n if INTERACTIVE:\n # wait for user to continue\n input(\"Press Enter to continue...\")\n else:\n pbar.update(1)\n pbar.close()\n\n # for each day that there were horses, how many days had winning horses?\n print(\"-\" * 20)\n print(\"Results:\")\n print(\"From: {}\".format(min(hourly_data[symbol].keys())))\n print(\"To: {}\".format(end_date))\n\n potential_days = sum([1 for result in results if result[\"result\"] != \"no_horses\"])\n percent_of_days_with_potential_horses = round(\n (potential_days / len(results)) * 100, 2\n )\n print(\n \"Percent of days with potential horses: {}%\".format(\n percent_of_days_with_potential_horses\n )\n )\n winning_days = sum([1 for result in results if result[\"result\"] == \"win\"])\n percent_of_days_with_winning_horses = round(\n (winning_days / potential_days) * 100, 2\n )\n print(\n \"Percent of potential days with winning horses: {}%\".format(\n percent_of_days_with_winning_horses\n )\n )\n\n average_daily_percent_of_winning_horses = round(\n (\n sum(\n [\n results[\"percent_of_winners\"]\n for results in results\n if results[\"result\"] == \"win\"\n ]\n )\n / potential_days\n ),\n 2,\n )\n print(\n \"Average daily percent of winning horses: {}%\".format(\n average_daily_percent_of_winning_horses * 100\n )\n )\n\n print(\"-\" * 20)\n\n average_return_of_winning_horses = sum(\n [\n result[\"average_return_of_winners\"]\n for result in results\n if result[\"result\"] == \"win\"\n ]\n ) / sum(\n [\n result[\"num_of_winning_horses\"]\n for result in results\n if result[\"result\"] == \"win\"\n ]\n )\n average_return_of_losing_horses = sum(\n [\n result[\"average_return_of_losers\"]\n for result in results\n if result[\"result\"] != \"no_horses\"\n ]\n ) / sum(\n [\n result[\"num_of_losing_horses\"]\n for result in results\n if result[\"result\"] != \"no_horses\"\n ]\n )\n print(\n \"Average return of winning horses: {}%\".format(average_return_of_winning_horses)\n )\n print(\n \"Average return of losing horses: {}%\".format(average_return_of_losing_horses)\n )\n\n # TODO: calculate win rate of how many times a winning horse actually won ( stocks that go up 1% in the first hour and then go up 4% by the rest of the day)\n print(\"-\" * 20)\n\n\ndef print_details(\n win_percent,\n data,\n hourly_data,\n start_date,\n horses,\n potential_horses,\n winning_horses,\n average_return,\n threshold,\n):\n print(start_date)\n print(\"-\" * 20)\n if horses:\n print(\"Stocks up by 1% in premarket: ({}/{})\".format(len(horses), len(horses)))\n for horse in horses:\n if start_date not in data[horse]:\n continue\n print(horse + \": \" + str(data[horse][start_date][\"preMarket\"]) + \" %\")\n else:\n print(\"No stocks up by 1% in premarket\")\n\n if potential_horses:\n print(\n \"Stocks up by {}% in the first hour: ({}/{})\".format(\n threshold, len(potential_horses), len(horses)\n )\n )\n for horse in potential_horses:\n if start_date not in data[horse]:\n continue\n print(\n horse\n + \": \"\n + str(hourly_data[horse][start_date][\"first_hour_return\"])\n + \" %\"\n )\n else:\n print(\"No stocks up by {}% in the first hour\".format(threshold))\n if winning_horses:\n print(\n f\"Stocks went up {win_percent}% after opening: ({len(winning_horses)}/{len(horses)})\"\n )\n for horse in winning_horses:\n if start_date not in data[horse]:\n continue\n print(horse + \": \" + str(data[horse][start_date].get(\"return\")) + \" %\")\n print(\"Average return of winning horses: {}%\".format(average_return))\n else:\n print(f\"No stocks went up {win_percent}% after opening\")\n\n\ndef get_potential_horses(start_date, hourly_data, horses, threshold):\n potential_horses = []\n for horse in horses:\n if horse not in hourly_data:\n continue\n if start_date not in hourly_data[horse]:\n continue\n if hourly_data[horse][start_date][\"first_hour_return\"] > threshold:\n potential_horses.append(horse)\n return potential_horses\n\n\ndef get_winning_horses(\n win_percent, loss_percent, daily_data, hourly_data, start_date, horses\n):\n winning_horses = []\n for horse in horses:\n if horse not in hourly_data:\n continue\n if start_date not in daily_data[horse]:\n continue\n if (\n daily_data[horse][start_date][\"return\"] > win_percent\n and daily_data[horse][start_date][\"drawdown\"] < loss_percent\n ):\n winning_horses.append(horse)\n return winning_horses\n\n\ndef calculate_drawdown(data, start_date, horses):\n for horse in horses:\n if start_date not in data[horse]:\n continue\n current_open = data[horse][start_date][\"open\"]\n current_low = data[horse][start_date][\"low\"]\n current_drawdown = ((current_open - current_low) / current_open) * 100\n data[horse][start_date][\"drawdown\"] = round(current_drawdown, 2)\n\n\ndef calculate_return(data, hourly_data, start_date, horses):\n for horse in horses:\n if start_date not in data[horse]:\n continue\n if horse not in hourly_data:\n continue\n initial_price = hourly_data[horse][start_date][\"10:30:00\"][\"open\"]\n close = hourly_data[horse][start_date][\"16:00:00\"][\"close\"]\n current_return = ((close - initial_price) / initial_price) * 100\n data[horse][start_date][\"return\"] = round(current_return, 2)\n\n\ndef calculate_first_hour(date, hourly_data, horses):\n for horse in horses:\n if horse not in hourly_data:\n continue\n if date not in hourly_data[horse]:\n continue\n open = hourly_data[horse][date][\"10:00:00\"][\"open\"]\n close = hourly_data[horse][date][\"10:00:00\"][\"close\"]\n first_hour_return = ((close - open) / open) * 100\n hourly_data[horse][date][\"first_hour_return\"] = round(first_hour_return, 2)\n\n\ndef get_horses(stocks, data, start_date):\n horses = []\n for stock in stocks[1:]:\n symbol = stock[0]\n if start_date not in data[symbol]:\n continue\n # calculate the daily return\n start_timestamp = convert_to_timestamp(start_date)\n yesterday_timestamp = start_timestamp - DAY_1\n yesterday_date = convert_to_date(yesterday_timestamp)\n if yesterday_date in data[symbol]:\n previous_close = data[symbol][yesterday_date][\"close\"]\n current_open = data[symbol][start_date][\"open\"]\n if (\n current_open > previous_close * 1.01\n and current_open < previous_close * 1.04\n ):\n preMarket = ((current_open - previous_close) / previous_close) * 100\n data[symbol][start_date][\"preMarket\"] = round(preMarket, 2)\n horses.append(symbol)\n\n return horses\n\n\ndef get_dates():\n start_date = input(f\"Please enter the start date (YYYY-MM-DD): ({default_start})\")\n if not start_date:\n start_date = default_start\n # Ask for end date\n end_date = input(f\"Please enter the end date (YYYY-MM-DD): ({default_end})\")\n if not end_date:\n end_date = default_end\n return start_date, end_date\n\n\ndef convert_to_timestamp(date):\n return int(time.mktime(time.strptime(date, \"%Y-%m-%d\")))\n\n\ndef convert_to_date(timestamp):\n return time.strftime(\"%Y-%m-%d\", time.localtime(timestamp))\n\n\nwhile True:\n default_start = \"2017-03-24\"\n default_end = \"2022-03-25\"\n # Ask user if they want to backtest or get data\n print(\"What would you like to do?\")\n print(\"1. Get data\")\n print(\"2. Backtest\")\n print(\"3. Exit\")\n\n # get user input\n user_input = input(\"Please enter your choice: \")\n\n if user_input == \"1\":\n # Ask for dates\n start_date, end_date = get_dates()\n # convert to timestamp\n start_timestamp = convert_to_timestamp(start_date)\n end_timestamp = convert_to_timestamp(end_date)\n\n # ask for candle size\n candle_size = input(\"Please enter the candle size (D, H): \")\n if not candle_size:\n candle_size = \"D\"\n\n fetch_data(start_timestamp, end_timestamp, candle_size)\n print(\"Done!\")\n\n elif user_input == \"2\":\n # check if data directory has at least one file\n if not os.listdir(DATA_DIR + \"/\" + \"daily\"):\n print(\"No data found! Please fetch data first\")\n # Get win percent and loss percent\n win_percent = input(\"Please enter the win percent: (5) \")\n if not win_percent:\n win_percent = 5\n else:\n win_percent = int(win_percent)\n loss_percent = input(\"Please enter the loss percent: (2) \")\n if not loss_percent:\n loss_percent = 2\n else:\n loss_percent = int(loss_percent)\n threshold = input(\"Please enter the first hour threshold: (2) \")\n if not threshold:\n threshold = 2\n else:\n threshold = int(threshold)\n\n # Ask for verbosity level\n verbose = input(\"Display daily results? (y/n): (n) \")\n VERBOSE = verbose == \"y\"\n\n # Ask for interactive mode\n interactive = input(\"Interactive mode? (y/n): (n) \")\n INTERACTIVE = interactive == \"y\"\n\n backtest(win_percent, loss_percent, threshold)\n\n elif user_input == \"3\":\n print(\"Goodbye!\")\n break\n\n# Current analysis:\n\n# if there are stocks up by 1% in premarket, there's a 33% chance that one of them will go up 5% on the day, without going down by 2%\n\n# TODO:\n\"\"\"\n1. Of the pre-market stocks, which ones go up by 1% in the first hour?\n Needs:\n - algo to find horses that go up 1% in the first hour\n\"\"\"\n","repo_name":"jdriscoll98/trading","sub_path":"HorseRacing.py","file_name":"HorseRacing.py","file_ext":"py","file_size_in_byte":18786,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34075571974","text":"#!/usr/bin/env python3\n\nimport asyncio\nimport aiohttp.web\nimport typing\nimport json\nimport logging\nimport collections\n\nModel = collections.namedtuple('Model', 'queues entries')\nModels: typing.Dict[str, Model] = {}\nlogger = logging.getLogger('sse')\n\nclass ServerSentEventResponse (aiohttp.web.StreamResponse):\n def __init__(self, name):\n super().__init__()\n self.name = name\n self.headers['Cache-Control'] = 'no-store'\n self.headers['Content-Type'] = 'text/event-stream'\n self.headers['Access-Control-Allow-Origin'] = '*'\n\n async def send(self, data):\n logger.info('[Sending.|%s] %s', self.name, data)\n return await self.write(b'data: ' + data + b'\\n\\n')\n\nasync def handle_send(request):\n name = request.match_info['name']\n checkModel(name)\n\n logger.info('[Listener|%s] %s', name, request.remote)\n sse = ServerSentEventResponse(name)\n await sse.prepare(request)\n\n for entry in Models[name].entries:\n await sse.send(entry)\n queue = asyncio.Queue()\n Models[name].queues.append(queue)\n while True:\n entry = await queue.get()\n await sse.send(entry)\n queue.task_done()\n\nasync def handle_receive(request):\n name = request.match_info['name']\n checkModel(name)\n\n entry = await request.content.read()\n if entry == b'$flush$':\n Models[name].entries.clear()\n logger.info('[Flushing|%s]', name)\n resp = aiohttp.web.Response(text=json.dumps({\"result\": \"flush\"}))\n else:\n logger.info('[Received|%s] %s', name, entry)\n new_entry(name, entry)\n resp = aiohttp.web.Response(text=json.dumps({\"result\": \"success\", \"length\": len(entry)}))\n resp.headers['Access-Control-Allow-Origin'] = '*'\n return resp\n\ndef new_entry(name, entry):\n for queue in Models[name].queues:\n queue.put_nowait(entry)\n Models[name].entries.append(entry)\n\ndef checkModel(name):\n global Models\n if name not in Models:\n Models[name] = Model([], [])\n\n\ndef main():\n logHandler = logging.StreamHandler()\n logHandler.setFormatter(logging.Formatter('%(asctime)s %(message)s'))\n logHandler.setLevel(logging.INFO)\n logger.setLevel(logging.INFO)\n logger.addHandler(logHandler)\n app = aiohttp.web.Application()\n app.router.add_get('/{name}', handle_send)\n app.router.add_post('/{name}', handle_receive)\n aiohttp.web.run_app(app, port=5001)\n\n\nif __name__ == '__main__':\n main()","repo_name":"HoffmannP/Stabsarbeit","sub_path":"backend/server.py","file_name":"server.py","file_ext":"py","file_size_in_byte":2445,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"69832445085","text":"from __future__ import unicode_literals\nfrom logging import getLogger\n\nimport docker\nimport docker.errors\n\nfrom ds import context\nfrom . import naming\n\n\nlogger = getLogger()\n\n\nclass BaseDockerContext(naming.ContainerNaming, context.Context):\n def __init__(self):\n super(BaseDockerContext, self).__init__()\n self._client = None\n\n @property\n def client(self):\n if self._client is None:\n self._client = docker.from_env()\n return self._client\n\n @property\n def container(self):\n if not self.container_name:\n return\n try:\n return self.client.containers.get(self.container_name)\n except docker.errors.NotFound:\n pass\n\n def get_run_options(self, **options):\n \"\"\"\n https://docker-py.readthedocs.io/en/stable/containers.html#docker.models.containers.ContainerCollection.run\n \"\"\"\n result = dict(\n detach=False,\n auto_remove=True,\n stdin_open=True,\n tty=True,\n )\n result.update(options)\n return result\n\n def filter_commands(self, commands):\n result = []\n for command in commands:\n if command.container_name_required and not self.has_container_name:\n logger.debug('Filter command %s', command)\n continue\n if command.image_name_required and not self.has_image_name:\n logger.debug('Filter command %s', command)\n continue\n result.append(command)\n return super(BaseDockerContext, self).filter_commands(result)\n\n def calc_cpu_to_options(self, cpu=1.0):\n period = int(cpu * 100000)\n quota = int(cpu * 50000)\n return {\n 'cpu_period': period,\n 'cpu_quota': quota,\n }\n","repo_name":"hell10w/ds","sub_path":"ds-docker/dsjk_docker/presets/base/base.py","file_name":"base.py","file_ext":"py","file_size_in_byte":1820,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"9876011868","text":"import unittest\n\nfrom bigflow import transforms\nfrom bigflow import serde\nfrom bigflow.test import test_base\n\n\nclass FlattenValuesTestCase(test_base.PipelineBasedTest):\n def serde_equal(self, expect, real):\n self.assertEqual(str(serde.of(expect)), str(serde.of(real)))\n\n def test_flatten(self):\n data = self._pipeline.parallelize([(\"A\", 4), (\"A\", 3), (\"B\", 2), (\"A\", 1)])\n grouped = data.group_by_key()\n self.assertEqual(0, grouped.nested_level())\n\n flatten = grouped.flatten()\n\n self.assertItemsEqual([(\"B\", 2), (\"A\", 4), (\"A\", 3), (\"A\", 1)], self._pipeline.get(flatten))\n\n def test_nested_flatten(self):\n def to_tuple_list(elem):\n tuple2 = (chr(elem + ord('a') - 1), elem)\n return [tuple2, tuple2]\n\n data = self._pipeline.parallelize([(\"A\", 1), (\"B\", 2), (\"C\", 3), (\"D\", 4)])\n data = data.map(lambda x: x, serde = serde.of((str, int)))\n\n self.serde_equal(data.serde(), serde.of((str, int)))\n\n grouped = data.group_by_key().apply_values(transforms.flat_map, to_tuple_list,\n serde = serde.of((str, int)))\n\n self.serde_equal(str, grouped.key_serdes()[0])\n self.serde_equal((str, int), grouped.serde())\n\n self.assertEqual(0, grouped.nested_level())\n\n nested = grouped.apply_values(transforms.group_by_key)\n\n self.serde_equal(str, nested.key_serdes()[0])\n self.serde_equal(str, nested.key_serdes()[1])\n self.serde_equal(int, nested.serde())\n\n self.assertEqual(1, nested.nested_level())\n\n flatten = nested.flatten()\n self.serde_equal((str, (str, int)), flatten.serde())\n\n expected = [(\"D\", (\"d\", 4)),\n (\"D\", (\"d\", 4)),\n (\"C\", (\"c\", 3)),\n (\"C\", (\"c\", 3)),\n (\"B\", (\"b\", 2)),\n (\"B\", (\"b\", 2)),\n (\"A\", (\"a\", 1)),\n (\"A\", (\"a\", 1))]\n\n self.assertItemsEqual(expected, self._pipeline.get(flatten))\n\nif __name__ == \"__main__\":\n unittest.main()\n","repo_name":"baidu/bigflow","sub_path":"bigflow_python/python/bigflow/transform_impls/test/flatten_test.py","file_name":"flatten_test.py","file_ext":"py","file_size_in_byte":2070,"program_lang":"python","lang":"en","doc_type":"code","stars":1140,"dataset":"github-code","pt":"86"}
+{"seq_id":"28801633291","text":"import pygame\n\nclass Game:\n screen = None\n aliens = []\n shots = []\n lost = False\n\n\n def __init__(self, width, height):\n pygame.init()\n self.width = width\n self.height = height\n self.screen = pygame.display.set_mode((width, height))\n self.clock = pygame.time.Clock()\n done = False\n\n helt = Helt(self, width / 2, height - 20)\n generator = Generator(self)\n shot = None\n\n while not done:\n if len(self.aliens) == 0:\n self.displayText(\"VICTORY ACHIEVED\")\n\n pressed = pygame.key.get_pressed()\n if pressed[pygame.K_LEFT]:\n helt.x -= 2 if helt.x > 20 else 0\n elif pressed[pygame.K_RIGHT]:\n helt.x += 2 if helt.x < width - 20 else 0\n\n for event in pygame.event.get():\n if event.type == pygame.QUIT:\n done = True\n if event.type == pygame.KEYDOWN and event.key == pygame.K_SPACE and not self.lost:\n self.shot.append(Shot(self, helt.x, helt.y))\n\n\nclass Generator:\n def __init__(self, game):\n margin = 30\n width = 50\n for x in range(margin, game.width - margin, width):\n for y in range(margin, int(game.height / 2), width):\n game.aliens.append(Alien(game, x, y))\n\nclass Shot:\n def __init__(self, game, x, y):\n self.x = x\n self.y = y\n self.game = game\n\n def draw(self):\n pygame.draw.rect(self.game.screen,\n (254, 52, 110),\n pygame.Rect(self.x, self.y, 2, 4))\n self.y -= 2\n\nclass Alien:\n def __init__(self, game, x, y):\n self.x = x\n self.game = game\n self.y = y\n self.size = 30\n\n def draw(self):\n pygame.draw.rect(self.game.screen, # renderovací plocha\n (81, 43, 88), # barva objektu\n pygame.Rect(self.x, self.y, self.size, self.size))\n self.y += 0.05\n\n def checkCollision(self, game):\n for shot in game.shots:\n if (shot.x < self.x + self.size and\n shot.x > self.x - self.size and\n shot.y < self.y + self.size and\n shot.y > self.y - self.size):\n game.shot.remove(shot)\n game.aliens.remove(self)\n\npygame.init()\n\nscreen = pygame.display.set_mode((800, 800))\n\npygame.display.set_caption(\"SpaceInvader\")\nicon = pygame.image.load('whatthef.PNG')\npygame.display.set_icon(icon)\n\n\nplayerImg = pygame.image.load('pirat64.png')\nplayerX = 370\nplayerY = 480\n\nclass Helt:\n\n def __init__(self, game, x, y):\n self.x = x\n self.game = game\n self.y = y\n\n\ndef player():\n screen.blit(playerImg,(playerX, playerY))\n\n\nrunning = True\nwhile running:\n\n #Background\n screen.fill((0, 90, 55))\n\n for event in pygame.event.get():\n if event.type == pygame.QUIT:\n running = False\n\n\n player()\n pygame.display.update()\n\n\nclass RocketClass:\n def __init__(self, game, x, y):\n self.x = x\n self.y = y\n self.game = game\n\n def draw(self):\n pygame.draw.rect(self.game.screen,\n (254, 52, 110),\n pygame.Rect(self.x, self.y, 2, 4))\n self.y -= 2\n","repo_name":"MightGit/SpaceInvader","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":3334,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"29070662830","text":"from django.shortcuts import render\nimport requests\n\n# Create your views here.\ndef weatherIndex(request):\n urln = 'http://api.openweathermap.org/data/2.5/weather?q=gaza&units=imperial&appid=2398c9d11bf92c38bac9f03d1054d924'\n\n r=requests.get(urln).json()\n\n city_weather = {\n 'city': 'gaza',\n 'temperature': r['main']['temp'],\n 'description': r['weather'][0]['description'],\n 'icon': r['weather'][0]['icon']\n }\n\n\n context = {'city_weather':city_weather}\n a=render(request,'apisection/weather.html',context)\n return a\n\n","repo_name":"asiaetewi/asiasite","sub_path":"apisection/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":562,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5845939833","text":"import pandas as pd\n\nfrom . import _base_class\n\n\ndef sqlStmt():\n return \"\"\"\nwith USR as (\nselect\n username name\n ,account_status acc_stat\n ,profile\n ,default_tablespace ts\n ,temporary_tablespace tempts\n ,to_char(created, 'yyyy-mm-dd hh24:mi:ss') created\n ,to_char(last_login, 'yyyy-mm-dd hh24:mi:ss') last_login\n ,oracle_maintained ora\n ,password_versions pwd_versions\nfrom\n dba_users\n)\nselect * from USR\nwhere 1=1\n {}\norder by {}\n\"\"\"\n\n\nclass usr(_base_class.OraCommand):\n\n def __init__(self, ctx):\n super().__init__(ctx)\n self.cols = ['NAME', 'ACC_STAT', 'PROFILE', 'TS',\n 'TEMPTS', 'CREATED', 'LAST_LOGIN', 'ORA', 'PWD_VERSIONS']\n\n def execute(self):\n super().checkColNames(self.ctx.filterExpr)\n\n predicateString = super().predicateExpr(\n super().adjustCase_forColumnValues(self.ctx.filterExpr, []))\n SQL = sqlStmt().format(predicateString, super().sortExpr(self.ctx.sortExpr))\n super().printSQL(SQL)\n\n self.ctx.session.openConnection()\n df = pd.read_sql(SQL, con=self.ctx.session.connection)\n\n return df\n","repo_name":"solicon-it/o","sub_path":"cmd/usr.py","file_name":"usr.py","file_ext":"py","file_size_in_byte":1139,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"31627225434","text":"import asyncio\nimport random\nimport time\n\n\n@asyncio.coroutine\ndef newProducer(myque):\n while True:\n yield from myque.put(random.randint(2, 10))\n yield from asyncio.sleep(1)\n\n\n@asyncio.coroutine\ndef newConsumer(myque):\n while True:\n articleId = yield from myque.get()\n print(f\"New reader consumed the article {articleId}\")\n\n\nmyQueue = asyncio.Queue()\n\nloop = asyncio.get_event_loop()\n\nloop.create_task(newProducer(myQueue))\nloop.create_task(newConsumer(myQueue))\ntry:\n loop.run_forever()\nfinally:\n loop.close()\n\n\n\n\n","repo_name":"sreekanthreddyv/CodeFiles","sub_path":"Hacker/2_Async_q.py","file_name":"2_Async_q.py","file_ext":"py","file_size_in_byte":554,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"14351475036","text":"from common import *\n\ndef digits(n):\n n = abs(n)\n ret = []\n while n != 0:\n ret.append(n % 10)\n n //= 10\n ret.reverse()\n return ret\n\ndef check(n):\n s = digits(n)\n if len(s) != 6:\n return False, False\n\n last = -1\n good1 = False\n good2 = False\n repeats = 1\n for i in s:\n if i < last:\n return False, False\n elif i == last:\n repeats += 1\n good1 = True\n else:\n if repeats == 2:\n good2 = True\n repeats = 1\n last = i\n if repeats == 2:\n good2 = True\n return good1, good2\n\n\ncount1 = 0\ncount2 = 0\nfor i in range(123257, 647016):\n good1, good2 = check(i)\n if good1:\n count1 += 1\n if good2:\n count2 += 1\nprint(count1)\nprint(count2)\n","repo_name":"mattr555/advent-of-code","sub_path":"2019/day4.py","file_name":"day4.py","file_ext":"py","file_size_in_byte":810,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"18267214003","text":"import keras.backend as K\nfrom keras.layers.core import Layer\n\nclass AttentionLayer(Layer):\n def __init__(self, **kwargs):\n super(AttentionLayer, self).__init__(**kwargs)\n\n def build(self, input_shape):\n assert len(input_shape) == 3\n # W.shape = (time_steps, time_steps)\n self.W = self.add_weight(name='att_weight',\n shape=(input_shape[1], input_shape[1]),\n initializer='uniform',\n trainable=True)\n self.b = self.add_weight(name='att_bias',\n shape=(input_shape[1],),\n initializer='uniform',\n trainable=True)\n super(AttentionLayer, self).build(input_shape)\n\n def call(self, inputs):\n # inputs.shape = (batch_size, time_steps, seq_len)\n x = K.permute_dimensions(inputs, (0, 2, 1))\n ##################################################################\n # x.shape = (batch_size, seq_len, time_steps)\n # W.shape = (time_steps,time_steps) b.shape(time_steps)\n a = K.softmax(K.tanh(K.dot(x, self.W) + self.b))\n # a.shape = x.shape = (batch_size, seq_len, time_steps)\n outputs = K.permute_dimensions(a * x, (0, 2, 1))\n # outputs.shape = inputs.shape = (batch_size, seq_len, time_steps)\n outputs = K.sum(outputs, axis=1)\n # outputs.shape=(batch_size,time_steps)\n ###################################################################\n return outputs\n\n def compute_output_shape(self, input_shape):\n return input_shape[0], input_shape[2]\n","repo_name":"wp931120/Algorithm_Learning","sub_path":"deep_learing/sentiment/attention.py","file_name":"attention.py","file_ext":"py","file_size_in_byte":1666,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"11971710050","text":"def gradingStudents(grades):\n grades_table = [(grade - (grade % 5) + 5, grade) for grade in grades]\n ans = []\n for multiple, grade in grades_table:\n diff = multiple - grade\n if grade < 38 or diff >= 3:\n ans.append(grade)\n else:\n ans.append(multiple)\n return ans","repo_name":"tjdud0123/daily_algorithm","sub_path":"파이썬/gradingStudents.py","file_name":"gradingStudents.py","file_ext":"py","file_size_in_byte":316,"program_lang":"python","lang":"en","doc_type":"code","stars":11,"dataset":"github-code","pt":"86"}
+{"seq_id":"25490175931","text":"from flipkart_page import addEntry\r\nfrom bs4 import BeautifulSoup\r\nimport requests\r\n#import time\r\n\r\ndef populateDB(url):\r\n headers = {\"User-Agent\" : \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36 Edg/91.0.864.59\"}\r\n\r\n# U L R C S I G\r\n# R P O E S N\r\n\r\n r = requests.get(url, headers)\r\n htmlContent = r.content\r\n soup = BeautifulSoup(htmlContent, 'html.parser')\r\n \r\n data = soup.find_all('div', class_=\"_13oc-S\")\r\n \r\n product_class = data[0].contents[0].div['class'][0]\r\n \r\n links = soup.find_all('div', class_=product_class)\r\n\r\n #i = 1\r\n for link in links:\r\n product_link = 'https://flipkart.com' + link.find('a')['href']\r\n # print(i)\r\n # i+=1\r\n addEntry(product_link)\r\n #time.sleep(1)","repo_name":"Jinchuriki09/PyCK_Proj","sub_path":"flipkart_sectionB.py","file_name":"flipkart_sectionB.py","file_ext":"py","file_size_in_byte":846,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34185092517","text":"from know_me.profile import serializers\n\n\ndef test_serialize(api_rf, profile_item_factory, profile_topic_factory):\n \"\"\"\n Test serializing a profile topic.\n \"\"\"\n topic = profile_topic_factory()\n api_rf.user = topic.profile.km_user.user\n request = api_rf.get(topic.get_absolute_url())\n\n profile_item_factory(topic=topic)\n profile_item_factory(topic=topic)\n\n serializer = serializers.ProfileTopicDetailSerializer(\n topic, context={\"request\": request}\n )\n\n item_serializer = serializers.ProfileItemListSerializer(\n topic.items.all(), context={\"request\": request}, many=True\n )\n list_serializer = serializers.ProfileTopicListSerializer(\n topic, context={\"request\": request}\n )\n\n additional = {\"items\": item_serializer.data}\n\n expected = dict(list_serializer.data.items())\n expected.update(additional)\n\n assert serializer.data == expected\n\n\ndef test_validate():\n \"\"\"\n Test validating the attributes required to create a new profile\n topic.\n \"\"\"\n data = {\"is_detailed\": True, \"name\": \"Test Topic\"}\n serializer = serializers.ProfileTopicDetailSerializer(data=data)\n\n assert serializer.is_valid()\n","repo_name":"knowmetools/km-api","sub_path":"km_api/know_me/profile/tests/serializers/test_profile_topic_detail_serializer.py","file_name":"test_profile_topic_detail_serializer.py","file_ext":"py","file_size_in_byte":1184,"program_lang":"python","lang":"en","doc_type":"code","stars":4,"dataset":"github-code","pt":"86"}
+{"seq_id":"22072759697","text":"import os\nimport pandas as pd\nfrom glob import glob\n\n\nfrom Parser import Parser\n\ndataPath = '/Users/marcel/workspace/Equities/data/'\nkeyStatsPath = dataPath + 'Yahoo/forward/data/*'\nfileGlob = '*html'\n\np = Parser(dataPath)\nfullpaths = (e for e in glob(keyStatsPath))\n\noutput_df = pd.DataFrame()\n\nfor fullpath in fullpaths:\n output = {}\n keyStats = {}\n regex = 'market_time.....,\\s(...)\\s(..),\\s(....)'\n ticker = p.getTickerFromFullPath(fullpath, 'forward/data/', '.html')\n forwardDate, _ = p.getDateFromMarketTime(fullpath)\n fwdUnixTime, date = p.getDateFromMarketTime(fullpath)\n\n # pull key stats from Yahoo screen\n for feature in p.features:\n value = p.searchSourceForFeature(fullpath, feature)\n value = p.cleanup(value)\n keyStats[feature] = value\n\n # Pull stock price and s&p adjusted close on date and forward date and clean missing values\n price = p.getValueFromDf(p.stock_df, ticker.upper(), p.oneYearAgo(fwdUnixTime))\n priceFwd = p.getValueFromDf(p.stock_df, ticker.upper(),forwardDate)\n\n sp500 = p.getValueFromDf(p.sp500_df, 'Adjusted Close', p.oneYearAgo(fwdUnixTime))\n sp500Fwd = p.getValueFromDf(p.sp500_df, 'Adjusted Close', forwardDate)\n\n # clean up\n p.setDefaultIfNone(price, fwdUnixTime)\n p.setDefaultIfNone(priceFwd, fwdUnixTime)\n p.setDefaultIfNone(sp500, fwdUnixTime)\n p.setDefaultIfNone(sp500Fwd, fwdUnixTime)\n\n # calculate returns and alphas\n stockReturn = p.getReturn(price, priceFwd)\n sp500Return = p.getReturn(sp500, sp500Fwd)\n if all([stockReturn, sp500Return]):\n difference = stockReturn - sp500Return\n else:\n difference = 0.0\n\n # concatenate key stats from screens at forward date, stock price from Quandl at forward date\n # and index value from Yahoo index at forward date\n output['difference'] = difference\n output['stock_p_change'] = stockReturn\n output['sp500_p_change'] = sp500Return\n output['stock_price'] = price\n output['sp500_value'] = sp500\n output['ticker'] = ticker\n output['fullpath'] = fullpath\n\n output = dict({k: keyStats[v] for (k, v) in p.featuresDict.items()}, **output)\n output_df = output_df.append(output, ignore_index=True)\n\n# write output dataframe to file\noutput_df.to_csv(\"forward_sample_ALL.csv\")","repo_name":"mstampfer/Equities","sub_path":"YahooForward.py","file_name":"YahooForward.py","file_ext":"py","file_size_in_byte":2286,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"7386034882","text":"#!/usr/bin/python3\r\n# -*- coding: UTF-8 -*-\r\n__author__ = \"A.L.Kun\"\r\n__file__ = \"exts.py\"\r\n__time__ = \"2022/9/11 23:39\"\r\n\r\nfrom flask_sqlalchemy import SQLAlchemy\r\nfrom flask_migrate import Migrate\r\n\r\ndb = SQLAlchemy() # 操���数据库\r\n\r\n\r\ndef init_exts(app):\r\n db.init_app(app)\r\n Migrate().init_app(app, db) # 使用app初始化Migrate\r\n app.config[\"db\"] = db\r\n","repo_name":"liuzhongkun1/flask_","sub_path":"bot/App/exts.py","file_name":"exts.py","file_ext":"py","file_size_in_byte":375,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"1546526344","text":"import os\nimport sys\n\nfrom flask import Flask\nfrom flask import redirect, url_for, abort, render_template, flash\nfrom flask_sqlalchemy import SQLAlchemy\nfrom flask_wtf import FlaskForm\nfrom wtforms import SubmitField, TextAreaField\nfrom wtforms.validators import DataRequired\n\n# 兼容的sqlite url\nWIN = sys.platform.startswith('win')\nif WIN:\n prefix = 'sqlite:///'\nelse:\n prefix = 'sqlite:////'\n\napp = Flask(__name__)\n\n\napp.config['SECRET_KEY'] ='sdjsldj4323sdsdfssfdf43434'\n\napp.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL', prefix + os.path.join(app.root_path, 'data.db'))\napp.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # 禁止警告\n\ndb = SQLAlchemy(app)\n\n\nclass NewNoteForm(FlaskForm):\n body = TextAreaField('内容', validators=[DataRequired()])\n submit = SubmitField('保存')\n\n\nclass EditNoteForm(FlaskForm):\n body = TextAreaField('内容', validators=[DataRequired()])\n submit = SubmitField('更新')\n\n\nclass DeleteNoteForm(FlaskForm):\n submit = SubmitField('删除')\n\n\n# Models\nclass Note(db.Model):\n id = db.Column(db.Integer, primary_key=True)\n body = db.Column(db.Text)\n\n # optional\n def __repr__(self):\n return '' % self.body\n\n\n@app.route('/')\ndef index():\n form = DeleteNoteForm()\n notes = Note.query.all()\n\n return render_template('index.html', notes=notes, form=form)\n\n\n@app.route('/new', methods=['GET', 'POST'])\ndef new_note():\n form = NewNoteForm()\n if form.validate_on_submit():\n body = form.body.data\n note = Note(body=body)\n db.session.add(note)\n db.session.commit()\n flash('笔记已经被保存.')\n return redirect(url_for('index'))\n return render_template('new_note.html', form=form)\n\n\n@app.route('/edit/', methods=['GET', 'POST'])\ndef edit_note(note_id):\n form = EditNoteForm()\n note = Note.query.get(note_id)\n if form.validate_on_submit():\n note.body = form.body.data\n db.session.commit()\n flash('笔记已经被更新.')\n return redirect(url_for('index'))\n form.body.data = note.body\n return render_template('edit_note.html', form=form)\n\n\n@app.route('/delete/', methods=['POST'])\ndef delete_note(note_id):\n form = DeleteNoteForm()\n if form.validate_on_submit():\n note = Note.query.get(note_id)\n db.session.delete(note)\n db.session.commit()\n flash('笔记已经被删除.')\n else:\n abort(400)\n return redirect(url_for('index'))\n\n\nif __name__ == '__main__':\n app.run(host = '0.0.0.0', port='1234')","repo_name":"geekori/flask","sub_path":"src/database/webnote/app.py","file_name":"app.py","file_ext":"py","file_size_in_byte":2577,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"1691245587","text":"from selenium import webdriver\nfrom time import sleep\nimport sys\nimport settings\nfrom datetime import datetime\nimport random\nimport os\n\n\nclass WebDriverControl(object):\n def __init__(self):\n super(WebDriverControl, self).__init__()\n self.username = ''\n self.password = ''\n\n @staticmethod\n def create_driver(option):\n if sys.platform.startswith('win'):\n driver = webdriver.Chrome(settings.WEB_DRIVER_PATH_WIN, options=option)\n else:\n driver = webdriver.Chrome(settings.WEB_DRIVER_PATH_LINUX, chrome_options=option)\n\n # driver.implicitly_wait(10)\n return driver\n\n def init_driver(self):\n option = webdriver.ChromeOptions()\n # option.add_argument('headless')\n # option.add_argument(\"--start-maximized\")\n return self.create_driver(option)\n\n def init_driver_headless(self):\n option = webdriver.ChromeOptions()\n option.add_argument('headless')\n option.add_argument(\"window-size=1920,1080\")\n # option.add_argument(\"--start-maximized\")\n return self.create_driver(option)\n\n\nclass AutoPoint(WebDriverControl):\n def __init__(self):\n super(AutoPoint, self).__init__()\n\n self.isoweek = datetime.today().isoweekday()\n\n driver_control = WebDriverControl()\n\n if settings.DEBUG:\n self.driver = driver_control.init_driver()\n else:\n self.driver = driver_control.init_driver_headless()\n\n def start(self):\n if self.isoweek > 5:\n # do not run when week 6 and 7\n self.log_print(\"no need to run, return!!\")\n self.stop()\n return\n\n self.log_print(\"start!\")\n\n if settings.RANDOM_DELAY:\n delay_time = random.randint(0, settings.RANDOM_DELAY_SECOND)\n print_str = \"random delay : \" + str(delay_time) + \" second\"\n print(print_str)\n self.log_print(print_str)\n\n sleep(delay_time)\n\n try:\n self.driver.get(settings.POINT_URL)\n element = self.driver.find_element_by_class_name(\"checkHealth\")\n element.click()\n sleep(2)\n element = self.driver.find_element_by_name(\"send\")\n element.click()\n sleep(2)\n\n self.log_print(\"success!\")\n except Exception as e:\n self.log_print(\"error!, log: \" + str(e))\n finally:\n self.stop()\n\n def stop(self):\n self.driver.quit()\n self.log_print(\"*************\", data_time=False)\n\n def log_print(self, log_str, data_time=True):\n today_str = str(datetime.today())\n isoweek_str = str(self.isoweek)\n if data_time:\n log_str = \"echo \" + today_str + \" week: \" + isoweek_str + \" , \" + log_str + \" >> \" + settings.LOG_PATH\n else:\n log_str = \"echo \" + log_str + \" >> \" + settings.LOG_PATH\n os.system(log_str)\n\n\nauto_control = AutoPoint()\nauto_control.start()\n","repo_name":"Llona/AJ-auto_point","sub_path":"auto_point.py","file_name":"auto_point.py","file_ext":"py","file_size_in_byte":2978,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"36621772644","text":"from . import rules\nfrom .grammar import ps_program\n\nfrom hidc.utils.lazylist import lazy_list\nfrom hidc.errors import ParserError\nfrom hidc.lexer import lex\n\n\ndef parse(source, rule=ps_program(), partial=False):\n if isinstance(rule, rules.Parser):\n rule = rules.Parser(rule.consume, backtrack=False)\n elif not isinstance(rule, rules.Rule):\n # coroutine passed directly, eg expect\n rule = rules.Parser((lambda r: lambda: r)(rule), backtrack=False)\n\n result, remaining = rule.process(lazy_list(lex(source)))\n\n if remaining and not partial:\n raise ParserError(\n f'Unprocessed token: {remaining.head.token}',\n remaining.head.span\n )\n\n return result\n","repo_name":"benburrill/halt_is_defeat","sub_path":"hidc/parser/__init__.py","file_name":"__init__.py","file_ext":"py","file_size_in_byte":718,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"23572128038","text":"import random\nimport colorama\nfrom colorama import Fore, Back, Style\ncolorama.init(autoreset=True)\n\nclass UIModule:\n def __init__(self):\n pass\n\n def rand_or_not(self,time,w_e,randam_key,previous_num,remain_words):\n if randam_key == None:\n num = time % len(w_e)\n if num == previous_num and len(remain_words):\n self.rand_or_not(time,w_e,randam_key,previous_num,remain_words)\n else:\n return num\n else:\n num = random.randint(0, len(w_e)-1)\n return num\n\n def add_del(self, add_list, del_list, word):\n if word not in add_list:\n add_list.append(word)\n if word in del_list:\n del_list.remove(word)\n return add_list, del_list\n\n def right(self, except_words, remain_words, num ,w_e):\n print(Fore.BLUE + str(w_e[num]))\n except_words, remain_words =\\\n self.add_del(except_words, remain_words, num)\n print(\"残り: \" + str(len(remain_words))+ \"/\" + str(len(w_e)))\n\n def wrong(self, w_e, num):\n print(Fore.BLUE + str(w_e[num]))\n for i in range(100):\n trash = str(input(\"練習して:\"))\n if(trash == w_e[num]):\n break\n","repo_name":"KoyoJimbo/WordCards","sub_path":"gui/elec/sampleapp/pyword/ui_modules.py","file_name":"ui_modules.py","file_ext":"py","file_size_in_byte":1252,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"25477500711","text":"# -*- coding: utf-8 -*-\n\"\"\" nns/models/unet/models/unet3d \"\"\"\n\nimport torch.nn.functional as F\nfrom torch import nn\n\nfrom nns.models.unet.network_others import init_weights\nfrom nns.models.unet.utils import UnetConv3, UnetUp_CT\n\n\n__all__ = ['UNet3D']\n\n\nclass UNet3D(nn.Module):\n \"\"\"\n Original 3D UNet from Attention Gated Networks\n source: https://github.com/ozan-oktay/Attention-Gated-Networks/blob/master/models/networks/unet_3D.py\n \"\"\"\n\n def __init__(self, feature_scale=4, n_classes=21, n_channels=3, is_batchnorm=True):\n super().__init__()\n self.feature_scale = feature_scale\n self.n_classes = n_classes\n self.n_channels = n_channels\n self.is_batchnorm = is_batchnorm\n\n filters = [64, 128, 256, 512, 1024]\n filters = [int(x / self.feature_scale) for x in filters]\n maxpool_kernel_size = (2, 2, 2)\n\n # downsampling\n self.conv1 = UnetConv3(self.n_channels, filters[0], self.is_batchnorm)\n self.maxpool1 = nn.MaxPool3d(kernel_size=maxpool_kernel_size)\n\n self.conv2 = UnetConv3(filters[0], filters[1], self.is_batchnorm)\n self.maxpool2 = nn.MaxPool3d(kernel_size=maxpool_kernel_size)\n\n self.conv3 = UnetConv3(filters[1], filters[2], self.is_batchnorm)\n self.maxpool3 = nn.MaxPool3d(kernel_size=maxpool_kernel_size)\n\n self.conv4 = UnetConv3(filters[2], filters[3], self.is_batchnorm)\n self.maxpool4 = nn.MaxPool3d(kernel_size=maxpool_kernel_size)\n\n self.center = UnetConv3(filters[3], filters[4], self.is_batchnorm)\n\n # upsampling\n self.up_concat4 = UnetUp_CT(filters[4], filters[3], is_batchnorm, data_dimensions=3,\n scale_factor=maxpool_kernel_size)\n self.up_concat3 = UnetUp_CT(filters[3], filters[2], is_batchnorm, data_dimensions=3,\n scale_factor=maxpool_kernel_size)\n self.up_concat2 = UnetUp_CT(filters[2], filters[1], is_batchnorm, data_dimensions=3,\n scale_factor=maxpool_kernel_size)\n self.up_concat1 = UnetUp_CT(filters[1], filters[0], is_batchnorm, data_dimensions=3,\n scale_factor=maxpool_kernel_size)\n\n # final conv (without any concat)\n self.final = nn.Conv3d(filters[0], self.n_classes, 1)\n\n # initialise weights\n for m in self.modules():\n if isinstance(m, nn.Conv3d):\n init_weights(m, init_type='kaiming')\n elif isinstance(m, nn.BatchNorm3d):\n init_weights(m, init_type='kaiming')\n\n def forward(self, inputs):\n conv1 = self.conv1(inputs)\n maxpool1 = self.maxpool1(conv1)\n\n conv2 = self.conv2(maxpool1)\n maxpool2 = self.maxpool2(conv2)\n\n conv3 = self.conv3(maxpool2)\n maxpool3 = self.maxpool3(conv3)\n\n conv4 = self.conv4(maxpool3)\n maxpool4 = self.maxpool4(conv4)\n\n center = self.center(maxpool4)\n up4 = self.up_concat4(conv4, center)\n up3 = self.up_concat3(conv3, up4)\n up2 = self.up_concat2(conv2, up3)\n up1 = self.up_concat1(conv1, up2)\n\n final = self.final(up1)\n\n return final\n\n @staticmethod\n def apply_argmax_softmax(pred):\n log_p = F.softmax(pred, dim=1)\n\n return log_p\n","repo_name":"giussepi/disagreement-attention","sub_path":"nns/models/unet/models/unet3d.py","file_name":"unet3d.py","file_ext":"py","file_size_in_byte":3317,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"42543568118","text":"import sys\nsys.path.append('/home/noah/Desktop/proj/chainlink/LinkTunes')\n\nfrom scripts.helper_functions import get_account\nfrom flask import Flask, jsonify, render_template, request\nfrom flask_sqlalchemy import SQLAlchemy\n\napp = Flask(__name__)\n\n##CREATE DB\napp.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///temp.db'\ndb = SQLAlchemy()\ndb.init_app(app)\n\n##CREATE TABLE\n# User account info\nclass User(db.Model):\n id = db.Column(db.Integer, primary_key=True)\n name = db.Column(db.String(250), unique=True, nullable=False)\n wallet_id = db.Column(db.String(500), nullable=False)\n img_url = db.Column(db.String(500), nullable=False)\n location = db.Column(db.String(250), nullable=False)\n \n def to_dict(self):\n return {column.name: getattr(self, column.name) for column in self.__table__.columns}\n\n# Artist account\nclass Artist(db.Model):\n id = db.Column(db.Integer, primary_key=True)\n name = db.Column(db.String(250), unique=True, nullable=False)\n #artist type can be musician, visual artist, clothing etc\n artist_type = db.Column(db.String(30), nullable=False)\n wallet_id = db.Column(db.String(500), nullable=False)\n img_url = db.Column(db.String(500), nullable=False)\n location = db.Column(db.String(250), nullable=False)\n #preferred type of crypto to be paid in\n payment_favorite = db.Column(db.String(250), nullable=False)\n\n def to_dict(self):\n return {column.name: getattr(self, column.name) for column in self.__table__.columns}\n\n# Merch \nclass Merch(db.Model):\n id = db.Column(db.Integer, primary_key=True)\n name = db.Column(db.String(250), unique=True, nullable=False)\n #merch type can be music, art, clothing etc\n merch_type = db.Column(db.String(30), nullable=False)\n img_url = db.Column(db.String(500), nullable=False)\n \n def to_dict(self):\n return {column.name: getattr(self, column.name) for column in self.__table__.columns}\n\nwith app.app_context():\n db.create_all()\n\n#get all users\n@app.route('/users', methods=['GET'])\ndef get_all_users():\n result = db.session.execute(db.select(User).order_by(User.name))\n all_users = result.scalars().all()\n return jsonify(users=[user.to_dict() for user in all_users]) \n\n#get user by id\n@app.route('/users/', methods=['GET'])\ndef get_user_by_id(id: int):\n user_selected = db.get_or_404(User,id)\n return jsonify(user_selected.to_dict()) \n\n#get user by wallet id\n@app.route(\"/search\")\ndef get_user_by_wallet():\n query_wallet = request.args.get(\"wallet\")\n result = db.session.execute(db.select(User).where(User.wallet_id == query_wallet))\n \n all_users = result.scalars().all()\n if all_users:\n return jsonify(users=[user.to_dict() for user in all_users])\n else:\n return jsonify(error={\"Not Found\": \"Sorry, no user with that wallet.\"}), 404\n\n# Create a new user\n# Test this inside Postman. Request type: Post -> Body -> x-www-form-urlencoded\n@app.route(\"/add_user\", methods=[\"POST\"])\ndef post_new_user():\n new_user = User(\n name=request.form.get(\"name\"),\n img_url=request.form.get(\"img_url\"),\n location=request.form.get(\"loc\"),\n wallet_id=request.form.get(\"wallet_id\"),\n )\n db.session.add(new_user)\n db.session.commit()\n return jsonify(response={\"success\": \"Successfully added the new user.\"})\n\n# Create a new Artist\n# Test this inside Postman. Request type: Post -> Body -> x-www-form-urlencoded\n@app.route(\"/add_artist\", methods=[\"POST\"])\ndef post_new_artist():\n new_artist = Artist(\n name=request.form.get(\"name\"),\n img_url=request.form.get(\"img_url\"),\n location=request.form.get(\"loc\"),\n artist_type=request.form.get(\"artist_type\"),\n payment_favorite=request.form.get(\"payment_favorite\"),\n wallet_id=request.form.get(\"wallet_id\"),\n )\n db.session.add(new_artist)\n db.session.commit()\n return jsonify(response={\"success\": \"Successfully added the new artist.\"})\n\n# Create a new merch item\n# Test this inside Postman. Request type: Post -> Body -> x-www-form-urlencoded\n@app.route(\"/add_merch\", methods=[\"POST\"])\ndef post_new_merch():\n new_merch = Merch(\n name=request.form.get(\"name\"),\n img_url=request.form.get(\"img_url\"),\n merch_type=request.form.get(\"merch_type\"),\n \n )\n db.session.add(new_merch)\n db.session.commit()\n return jsonify(response={\"success\": \"Successfully added the new merch.\"})\n\n@app.route(\"/account\", methods=[\"GET\"])\ndef get_current_account():\n get_account(index=None, id=None)\n\n\n\n\nif __name__ == '__main__':\n app.run(debug=True)","repo_name":"jonnytrex/LinkTunes","sub_path":"api/main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":4593,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"25126638575","text":"import cv2\nimport numpy as np\n\nclass yolo_mosaic():\n # Initialize parameters\n def __init__(self, net_filename, conf_threshold=0.5, nms_threshold=0.5, obj_threshold=0.5):\n anchors = [[4, 5, 8, 10, 13, 16], [23, 29, 43,\n 55, 73, 105], [146, 217, 231, 300, 335, 433]]\n num_classes = 1\n self.nl = len(anchors)\n self.na = len(anchors[0]) // 2\n self.no = num_classes + 5 + 10\n self.grid = [np.zeros(1)] * self.nl\n self.stride = np.array([8., 16., 32.])\n self.anchor_grid = np.asarray(\n anchors, dtype=np.float32).reshape(self.nl, -1, 2)\n self.inp_width = 640\n self.inp_height = 640\n self.net = cv2.dnn.readNet(net_filename)\n self.conf_threshold = conf_threshold\n self.nms_threshold = nms_threshold\n self.obj_threshold = obj_threshold\n\n def _make_grid(self, nx=20, ny=20):\n xv, yv = np.meshgrid(np.arange(ny), np.arange(nx))\n return np.stack((xv, yv), 2).reshape((-1, 2)).astype(np.float32)\n\n def post_process(self, frame, outs):\n frame_height = frame.shape[0]\n frame_width = frame.shape[1]\n ratioh, ratiow = frame_height / self.inp_height, frame_width / self.inp_width\n\n # Scan through all the bounding boxes output from the network and keep only the ones with\n # high confidence scores. Assign the box's class label as the class with the highest score.\n confidences = []\n boxes = []\n landmarks = []\n for detection in outs:\n confidence = detection[15]\n if detection[4] > self.obj_threshold:\n center_x = int(detection[0] * ratiow)\n center_y = int(detection[1] * ratioh)\n width = int(detection[2] * ratiow)\n height = int(detection[3] * ratioh)\n left = int(center_x - width / 2)\n top = int(center_y - height / 2)\n\n confidences.append(float(confidence))\n boxes.append([left, top, width, height])\n landmark = detection[5:15] * \\\n np.tile(np.float32([ratiow, ratioh]), 5)\n landmarks.append(landmark.astype(np.int32))\n\n # Perform non maximum suppression to eliminate redundant overlapping boxes with lower\n # confidences.\n indices = cv2.dnn.NMSBoxes(\n boxes, confidences, self.conf_threshold, self.nms_threshold)\n for i in indices:\n box = boxes[i]\n left = box[0]\n top = box[1]\n width = box[2]\n height = box[3]\n landmark = landmarks[i]\n frame = self.draw_pred(\n frame, left, top, left + width, top + height, landmark)\n return frame\n\n # Add mosaic to the image crop\n def crop_mosaic(self, img, alpha):\n crop_width = img.shape[1]\n crop_height = img.shape[0]\n\n # Add mosaic by resizing the picture (INTER_LINEAR or INTER_NEAREST)\n img = cv2.resize(img, (int(crop_width*alpha + 1), int(crop_height*alpha + 1)))\n img = cv2.resize(img, (crop_width, crop_height),\n interpolation=cv2.INTER_LINEAR)\n\n return img\n\n # Draw mosaic on predicted face(s)\n def draw_pred(self, frame, left, top, right, bottom, landmark):\n frame_height = frame.shape[0]\n frame_width = frame.shape[1]\n\n # Pre-process, to handle unexpected prediction\n top = 0 if top < 0 else top\n top = frame_height if top > frame_height else top\n bottom = 0 if bottom < 0 else bottom\n bottom = frame_height if bottom > frame_height else bottom\n left = 0 if left < 0 else left\n left = frame_width if left > frame_width else left\n right = 0 if right < 0 else right\n right = frame_width if right > frame_width else right\n\n # Draw mosaic on the predicted face\n frame[top:bottom, left:right] = self.crop_mosaic(\n frame[top:bottom, left:right], 0.02)\n\n return frame\n\n def detect(self, srcimg):\n blob = cv2.dnn.blobFromImage(\n srcimg, 1 / 255.0, (self.inp_width, self.inp_height), [0, 0, 0], swapRB=True, crop=False)\n # Sets the input to the network\n self.net.setInput(blob)\n\n # Runs the forward pass to get output of the output layers\n outs = self.net.forward(self.net.getUnconnectedOutLayersNames())[0]\n\n # Inference output\n outs[..., [0, 1, 2, 3, 4, 15]] = 1 / \\\n (1 + np.exp(-outs[..., [0, 1, 2, 3, 4, 15]])) # sigmoid function\n row_ind = 0\n for i in range(self.nl):\n h, w = int(self.inp_height /\n self.stride[i]), int(self.inp_width/self.stride[i])\n length = int(self.na * h * w)\n if self.grid[i].shape[2:4] != (h, w):\n self.grid[i] = self._make_grid(w, h)\n\n g_i = np.tile(self.grid[i], (self.na, 1))\n a_g_i = np.repeat(self.anchor_grid[i], h * w, axis=0)\n outs[row_ind:row_ind + length, 0:2] = (\n outs[row_ind:row_ind + length, 0:2] * 2. - 0.5 + g_i) * int(self.stride[i])\n outs[row_ind:row_ind + length,\n 2:4] = (outs[row_ind:row_ind + length, 2:4] * 2) ** 2 * a_g_i\n\n outs[row_ind:row_ind + length, 5:7] = outs[row_ind:row_ind + length,\n 5:7] * a_g_i + g_i * int(self.stride[i]) # landmark x1 y1\n outs[row_ind:row_ind + length, 7:9] = outs[row_ind:row_ind +\n length, 7:9] * a_g_i + g_i * int(self.stride[i]) # landmark x2 y2\n outs[row_ind:row_ind + length, 9:11] = outs[row_ind:row_ind +\n length, 9:11] * a_g_i + g_i * int(self.stride[i]) # landmark x3 y3\n outs[row_ind:row_ind + length, 11:13] = outs[row_ind:row_ind +\n length, 11:13] * a_g_i + g_i * int(self.stride[i]) # landmark x4 y4\n outs[row_ind:row_ind + length, 13:15] = outs[row_ind:row_ind +\n length, 13:15] * a_g_i + g_i * int(self.stride[i]) # landmark x5 y5\n row_ind += length\n\n return outs","repo_name":"adamwuqwq/yolo_facemosaic","sub_path":"yolo_mosaic.py","file_name":"yolo_mosaic.py","file_ext":"py","file_size_in_byte":6343,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"27139275109","text":"#!/usr/bin/python3\n\nimport os\nimport json\n\n\nkLabelIfFirstPlayerLoss = -1\nkLabelIfFirstPlayerWin = 1\nkLabelFirstPlayerWinIfGreaterThan = 0\n\nkHeroFeatures = 1\nkMinionFeatures = 7 # exclude card id\nkMinions = 7\n\nkCurrentHandCards = 10\nkCurrentHandCardFeatures = 1 # exclude card id\nkCurrentHandFeatures = 1\n\nkMaxCardId = 1860\n\nclass DynamicMapper:\n def __init__(self, start_index = 0):\n self._dict_v_to_index = {}\n self._dict_index_to_v = {}\n self._next_index = start_index\n\n def _add_map(self, v):\n idx = self._next_index\n self._next_index = idx + 1\n\n self._dict_v_to_index[v] = idx\n self._dict_index_to_v[idx] = v\n\n def get_index(self, v):\n if v not in self._dict_v_to_index:\n self._add_map(v)\n return self._dict_v_to_index[v]\n\n def get_index_to_v_dict(self):\n return self._dict_index_to_v\n\nclass DataReader:\n def __init__(self, dirname):\n self._dirname = dirname\n self._data = []\n self._hand_card_mapper = DynamicMapper(1)\n\n @classmethod\n def from_bool(cls, v):\n if v == True:\n return 1.0\n else:\n return -1.0\n\n def _read_hero_data(self, data):\n hp = data['hero']['hp']\n armor = data['hero']['armor']\n\n self._data.extend([\n hp + armor])\n\n def _add_minion_data_placeholder(self):\n self._data.extend([\n 0,\n 0,\n 0,\n 0,\n -1.0,\n -1.0,\n -1.0,\n -1.0])\n\n def _add_minion_data(self, minion):\n attackable = False\n try:\n attackable = minion['attackable']\n except Exception as _:\n attackable = False\n\n self._data.extend([\n minion['card_id'],\n minion['hp'],\n minion['max_hp'],\n minion['attack'],\n self.from_bool(attackable),\n self.from_bool(minion['taunt']),\n self.from_bool(minion['shield']),\n self.from_bool(minion['stealth'])])\n\n def _read_minions_data(self, minions):\n if minions is None:\n minions = []\n\n count = len(minions)\n\n for idx in range(0, 7):\n if idx < count:\n self._add_minion_data(minions[idx])\n else:\n self._add_minion_data_placeholder()\n\n def _add_resource(self, resource):\n self._data.extend([\n resource['current'],\n resource['total'],\n resource['overload_next']])\n\n def _add_current_hand(self, hand):\n if hand is None:\n hand = {}\n\n playable = 0\n for card in hand:\n if card['playable']:\n playable = playable + 1\n self._data.append(playable)\n\n def add_data(card_id, cost):\n mapped_card_id = self._hand_card_mapper.get_index(card_id)\n self._data.append(mapped_card_id)\n self._data.append(cost)\n\n for card in hand:\n card_id = card['card_id']\n cost = card['cost']\n add_data(card_id, cost)\n for _ in range(10 - len(hand)):\n card_id = 0\n cost = -1\n add_data(card_id, cost)\n\n def _add_opponent_hand(self, hand):\n if hand is None:\n hand = {}\n\n self._data.extend([\n len(hand)])\n\n def _add_heropower(self, hero_power):\n self._data.extend([\n self.from_bool(hero_power['playable'])])\n\n def _read_board(self, board):\n self._data.clear()\n\n self._read_hero_data(board['current_player'])\n self._read_hero_data(board['opponent_player'])\n self._read_minions_data(board['current_player']['minions'])\n self._read_minions_data(board['opponent_player']['minions'])\n self._add_current_hand(board['current_player']['hand'])\n self._add_opponent_hand(board['opponent_player']['hand'])\n\n self._add_resource(board['current_player']['resource'])\n self._add_heropower(board['current_player']['hero_power'])\n\n return list(self._data)\n\n def _get_label(self, current_player, first_player_win):\n kFirstPlayerString = 'kFirstPlayer'\n kSecondPlayerString = 'kSecondPlayer'\n\n if kFirstPlayerString == current_player:\n current_player_is_first = True\n elif current_player == kSecondPlayerString:\n current_player_is_first = False\n else:\n assert False\n\n assert first_player_win is not None\n if current_player_is_first == first_player_win:\n return kLabelIfFirstPlayerWin\n else:\n return kLabelIfFirstPlayerLoss\n\n def _win_or_loss(self, result):\n kWinString = 'kResultFirstPlayerWin' # kResultWin for newer datasets\n kLossString = 'kResultSecondPlayerWin' # kResultLoss for newer datasets\n\n if result == kWinString:\n return True\n\n assert result == kLossString\n return False\n\n def _read_one_json(self, all_data, all_label, json_data):\n first_player_win = None\n for block_data in json_data:\n action_type = block_data['type']\n if action_type == 'kEnd':\n first_player_win = self._win_or_loss(block_data['result'])\n assert first_player_win is not None\n\n for block_data in json_data:\n action_type = block_data['type']\n if action_type == 'kMainAction':\n board = block_data['board']\n data = self._read_board(board)\n label = self._get_label(board['current_player_id'], first_player_win)\n\n all_data.append(data)\n all_label.append(label)\n\n def parse(self):\n data = []\n label = []\n\n for (dirpath, _, filenames) in os.walk(self._dirname):\n for idx, filename in enumerate(filenames):\n fullpath = os.path.join(dirpath, filename)\n print(\"Reading file (%d / %d): %s \" % (idx+1, len(filenames), fullpath))\n with open(fullpath) as data_file:\n try:\n json_data = json.load(data_file)\n except Exception:\n print(\"Skipped file %s: Failed to read json\" % fullpath)\n continue\n self._read_one_json(data, label, json_data)\n break\n\n return data, label, self._hand_card_mapper.get_index_to_v_dict()\n","repo_name":"peter1591/hearthstone-ai","sub_path":"agents/train/tensorflow/data_reader.py","file_name":"data_reader.py","file_ext":"py","file_size_in_byte":5681,"program_lang":"python","lang":"en","doc_type":"code","stars":289,"dataset":"github-code","pt":"86"}
+{"seq_id":"70712705245","text":"from collections import deque\nimport warnings\n\nimport moderngl\n\nfrom ...basic_shapes import ShapeDrawer\nfrom ....fonts.font_render import DirectFontRender, FormattedText\nfrom ....math import Matrix4, Vec2\n\n\nV0_PARAMS_V3 = {\n \"text_limit\": 256,\n \"max_text_size\": 32,\n \"pb_spacing_side\": 4,\n \"pb_spacing_main\": 2,\n \"node_bg_color\": (0.1, 0.1, 0.1, 1),\n \"text_node_bg_color\": (0.05, 0.05, 0.05, 1),\n \"node_border_color\": (0.2, 0.2, 0.2, 1),\n \"button_border_inactive_color\": (0.5, 0.5, 0.5, 1),\n \"button_border_hover_color\": (0.5, 0.7, 0.7, 0.8),\n \"button_border_active_color\": (0.5, 1, 1, 0.8),\n \"selectable_inactive_color\": (0.2, 0.2, 0.2, 1),\n \"selectable_active_color\": (0.7, 1, 1, 0.8),\n \"text_color\": (1, 1, 1),\n \"scrollbar_color\": (1, 1, 1, 0.8),\n \"progressbar_color\": (1, 1, 1, 0.8),\n \"img_flip\": True,\n}\n\nV0_PARAMS_V1 = {\n \"text_limit\": 256,\n \"max_text_size\": 32,\n \"pb_spacing_side\": 4,\n \"pb_spacing_main\": 2,\n \"node_bg_color\": (1, 1, 1, 0.1),\n \"node_border_color\": (1, 1, 1, 0.2),\n \"button_border_inactive_color\": (1, 1, 0.5, 0.4),\n \"button_border_hover_color\": (0.5, 1, 1, 0.6),\n \"button_border_active_color\": (0.5, 1, 1, 0.7),\n \"selectable_inactive_color\": (1, 1, 0.6, 0.3),\n \"selectable_active_color\": (0.7, 1, 1, 0.7),\n \"text_color\": (1, 1, 1),\n \"scrollbar_color\": (1, 1, 1, 0.8),\n \"progressbar_color\": (1, 1, 1, 0.8),\n}\n\nclass V0Renderer:\n def __init__(self, window, node=None, font=None, font_path=None, font_render=None, is_selected_cb=None):\n if font is not None or font_path is not None:\n warnings.warn(\"font and font_path are not supported anymore\", category=DeprecationWarning)\n self.ctx = window.ctx\n self.font_render = font_render or DirectFontRender(self.ctx, font, font_path=font_path)\n self.font_render.flip_y = True\n self.drawer = ShapeDrawer(self.ctx)\n self.node = node\n self.window = window\n self.text_queue = []\n self.excludes = [\"centerer\", \"scrollablelist\"]\n self.buttons = [\"button\", \"togglebutton\", \"radiobutton\"]\n self.border_excludes = [\"node\", \"textnode\", \"textinput\"]\n self.drawer.default_z = -1\n self.params = V0_PARAMS_V3.copy()\n self.is_selected_cb = is_selected_cb\n self.matrix = None\n self.sprite_master = None\n self.image_ident = 0\n \n def __getattr__(self, key):\n if key.startswith(\"param_\"): #TODO - node-specific params\n return self.params[key[6:]]\n raise AttributeError(\"Unknown key %s\" % key)\n\n def queue_text(self, text, x, y, scale=1, multiline=False, scissor_params=None):\n self.text_queue.append((text, x, y, scale, scissor_params, multiline))\n\n def render_image(self, node):\n self.render_drawer()\n #print(\"Rendering\", node.image_id, \"at\", node.pos)\n if node.image_mode is None:\n self.sprite_master.add_sprite_rect(node.image_id, *node.position, *node.size)\n else:\n \n dx = 1\n ratio = node.size.y / node.size.x\n dy = dx*node.image_ratio*ratio\n \n r = 1 \n if node.image_mode.startswith(\"fill\"):\n r = min(dx, dy)\n elif node.image_mode.startswith(\"fit\"):\n r = max(dx, dy)\n else:\n warnings.warn(\"Node %s has invalid image mode %s\" % (node, node.image_mode))\n \n dx /= r\n dy /= r\n\n cpos = node.position + node.size/2\n\n sizey = node.size.y*dx\n if self.param_img_flip:\n sizey *= -1\n\n if node.image_mode.endswith(\"cleft\"):\n x = node.position.x + node.size.x*dy * 0.5\n y = node.position.y + node.size.y*dx * 0.5\n self.image_ident = node.size.x*dy + 1\n self.sprite_master.add_sprite_centered(node.image_id, x, y, node.size.x*dy, sizey)\n else:\n self.sprite_master.add_sprite_centered(node.image_id, *cpos, node.size.x*dy, node.size.y*dx)# tpoints=tpoints)\n self.sprite_master.render(mvp=self.matrix)\n\n def render_node(self, node):\n self.image_ident = 0\n if node.hidden:\n return\n if node.type in self.excludes and node.image_id is None:\n return\n if node.type == \"customrender\":\n self.render_drawer()\n #mvp = Matrix4.orthogonal_projection(\n # node.position.x,\n # node.position.x+node.size.x,\n # node.position.y+node.size.y,\n # node.position.y,\n #)\n bak = self.ctx.viewport\n try:\n self.ctx.viewport = (node.position.x, node.position.y, node.size.x, node.size.y)\n node.ctx = self.ctx\n node.render()\n finally:\n self.ctx.viewport = bak\n return\n\n is_selected = node.selectable\n if self.is_selected_cb is not None:\n is_selected = self.is_selected_cb(node)\n\n if node.image_id is not None:\n self.render_image(node)\n else:\n if node.type == \"textinput\":\n color = self.param_text_node_bg_color\n else:\n color = self.param_node_bg_color\n self.drawer.add_rectangle(*node.position, *node.size, color=color)\n\n if node.type in self.buttons:\n active = getattr(node, \"state\", getattr(node, \"pressed\", False))\n hovered = getattr(node, \"hovered\", False)\n if active:\n color = self.param_button_border_active_color\n elif hovered:\n color = self.param_button_border_hover_color\n else:\n color = self.param_button_border_inactive_color\n self.drawer.add_line_rectangle(*node.position, node.size.x, node.size.y, color=color)\n elif node.selectable:\n if is_selected:\n color = self.param_selectable_active_color\n else:\n color = self.param_selectable_inactive_color\n self.drawer.add_line_rectangle(*node.position, node.size.x, node.size.y, color=color)\n else:\n if node.type not in self.border_excludes:\n self.drawer.add_line_rectangle(*node.position, node.size.x, node.size.y, color=self.param_node_border_color)\n\n if node.type == \"progressbar\":\n if node.size.x > node.size.y:\n self.drawer.add_rectangle(node.position.x+self.param_pb_spacing_main, node.position.y+self.param_pb_spacing_side, (node.size.x-self.param_pb_spacing_main*2)*node.fraction, node.size.y-self.param_pb_spacing_side*2, color=self.param_progressbar_color)\n else:\n self.drawer.add_rectangle(node.position.x+self.param_pb_spacing_side, node.position.y+self.param_pb_spacing_main, node.size.x-self.param_pb_spacing_side*2, (node.size.y-self.param_pb_spacing_side*2)*node.fraction, color=self.param_progressbar_color)\n\n if node.type == \"scrollbar\":\n if node.direction == 1:\n pos_x = node.position.x\n size_x = node.size.x\n pos_y = node.position.y + node.size.y * node.pos * 0.9\n size_y = node.size.y * 0.1\n else:\n pos_y = node.position.y\n size_y = node.size.y\n pos_x = node.position.x + node.size.x * node.pos * 0.9\n size_x = node.size.x * 0.1\n self.drawer.add_rectangle(pos_x, pos_y, size_x, size_y, color=self.param_scrollbar_color)\n \n if hasattr(node, \"text\"):\n if node.type == \"text\" or isinstance(node.text, FormattedText):\n pos = Vec2(*node.position)\n pos.y = self.window.height - pos.y - node.size.y\n scissor = (*pos, *node.size)\n self.queue_text(node.text, node.position.x+4, node.position.y+node.scale, node.scale, multiline=node.size.x-8, scissor_params=scissor)\n else:\n \n if len(node.text) > self.param_text_limit: #TODO later\n text = node.text[:self.param_text_limit//2] + \"...\" + node.text[-self.param_text_limit//2:]\n else:\n text = node.text\n\n used_scale = min(node.size.y, self.param_max_text_size)\n ident = 8\n size = self.font_render.calc_size(text, scale=used_scale)\n if size > 0 and size > node.size.x - self.image_ident - ident:\n used_scale *= (node.size.x-self.image_ident-ident) / size\n size = self.font_render.calc_size(text, scale=used_scale)\n\n align_ajust = node.size.x // 2 - size // 2\n if hasattr(node, \"textalign\"):\n if node.textalign == \"left\":\n align_ajust = ident / 2\n\n pos = node.position + node.size // 2\n pos.x += self.image_ident + align_ajust - node.size.x // 2\n text_height = self.font_render.calc_height(text, scale=used_scale)\n if text_height == 0:\n text_height = self.param_max_text_size\n pos.y += text_height // 2\n self.queue_text(text, *pos, scale=used_scale)\n\n if node.type == \"textinput\":\n if is_selected: #Draw cursor\n cpos = node.position.x + self.font_render.calc_size(text[:node.cursor], scale=used_scale) + align_ajust\n cy = node.position.y+node.size.y/2\n txh = text_height / 2\n self.drawer.add_line((cpos, cy-txh), (cpos, cy+txh))\n\n def render_drawer(self):\n self.drawer.render(mvp=self.matrix, change_context_state=False)\n\n def render(self, node):\n self.node = node\n try:\n self.ctx.enable_only(moderngl.BLEND)\n self.text_queue.clear()\n self.matrix = Matrix4.orthogonal_projection(0, self.window.width, self.window.height, 0, -1, 1)\n queue = deque()\n queue.append(self.node)\n while queue:\n current = queue.pop()\n self.render_node(current)\n for child in current.children:\n queue.append(child)\n self.render_drawer()\n \n for text_data in self.text_queue:\n *text, scissor, multiline = text_data\n if not multiline:\n self.font_render.render_string(*text, mvp=self.matrix, color=self.param_text_color)\n else:\n self.ctx.scissor = scissor\n self.font_render.render_multiline(*text[:3], multiline, mvp=self.matrix)\n self.ctx.scissor = None\n finally:\n self.ctx.scissor = None\n ","repo_name":"IntQuant/qlibs","sub_path":"qlibs/gui/widgets/renderers/v0.py","file_name":"v0.py","file_ext":"py","file_size_in_byte":10944,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"86"}
+{"seq_id":"35923583088","text":"\"\"\"\nThis module defines classes for computing halfspace intersections\n\"\"\"\n\nfrom __future__ import division\n\n__author__ = \"Will Richards\"\n__version__ = \"2.0\"\n__maintainer__ = \"Will Richards\"\n__email__ = \"wrichard@mit.edu\"\n__date__ = \"August 2, 2013\"\n\nfrom pyhull import qhalf\n\nimport numpy as np\n\nclass Halfspace(object):\n \"\"\"\n A halfspace defined by dot(normal, coords) + offset <= 0\n \"\"\"\n def __init__(self, normal, offset):\n \"\"\"\n Initializes a Halfspace.\n\n Args:\n normal: vector normal to hyperplane\n offset: offset of hyperplane from origin\n \"\"\"\n self.normal = normal\n self.offset = offset\n\n def __str__(self):\n return \"Halfspace, normal: {}, offset: {}\".format(self.normal, self.offset)\n\n @staticmethod\n def from_hyperplane(basis, origin, point, internal = True):\n \"\"\"\n Returns a Halfspace defined by a list of vectors parallel to the\n bounding hyperplane.\n\n Args:\n basis: basis for the hyperplane (array with vector rows)\n origin: point on the hyperplane\n point: point not on the hyperplane\n internal: whether point is inside the halfspace\n \"\"\"\n basis = np.array(basis)\n assert basis.shape[0] + 1 == basis.shape[1]\n\n big_basis = np.zeros((basis.shape[1], basis.shape[1]))\n big_basis[:basis.shape[0],:basis.shape[1]] = basis\n\n u, s, vh = np.linalg.svd(big_basis)\n null_mask = (s <= 1e-8)\n normal = np.compress(null_mask, vh, axis=0)[0]\n\n if np.inner(np.array(point)-np.array(origin), normal) > 0:\n if internal:\n normal *= -1\n else:\n if not internal:\n normal *= -1\n offset = -np.dot(origin, normal)\n return Halfspace(normal, offset)\n\n\nclass HalfspaceIntersection(object):\n \"\"\"\n Uses qhalf to calculate the vertex representation of the intersection\n of a set of halfspaces\n \"\"\"\n def __init__(self, halfspaces, interior_point):\n self.halfspaces = halfspaces\n self.interior_point = interior_point\n self._v_out = None\n self._fbv_out = None\n self._fbh_out = None\n\n @property\n def vertices(self):\n \"\"\"\n Returns the vertices of the halfspace intersection\n \"\"\"\n if self._v_out is None:\n output = qhalf('Fp', self.halfspaces, self.interior_point)\n pts = []\n for l in output[2:]:\n pt = []\n for c in l.split():\n c = float(c)\n if c != 10.101 and c != -10.101:\n pt.append(c)\n else:\n pt.append(np.inf)\n pts.append(pt)\n self._v_out = np.array(pts)\n return self._v_out\n\n @property\n def facets_by_vertex(self):\n \"\"\"\n Returns a list of non-redundant halfspace indices for each vertex\n e.g: facets_by_vertex[0] is the list of indices of halfspaces\n incident to vertex 0\n \"\"\"\n if self._fbv_out is None:\n output = qhalf('Fv', self.halfspaces, self.interior_point)\n facets = []\n for l in output[1:]:\n facets.append([int(i) for i in l.split()[1:]])\n self._fbv_out = facets\n return self._fbv_out\n\n @property\n def facets_by_halfspace(self):\n \"\"\"\n Returns a list of vertex indices for each halfspace\n e.g: facets_by_halfspace[0] is the list of indices ov vertices\n incident to halfspace 0\n \"\"\"\n if self._fbh_out is None:\n output = qhalf('FN', self.halfspaces, self.interior_point)\n facets = []\n for l in output[1:]:\n facets.append([int(i) for i in l.split()[1:]])\n self._fbh_out = facets\n return self._fbh_out\n\n\n","repo_name":"materialsvirtuallab/pyhull","sub_path":"pyhull/halfspace.py","file_name":"halfspace.py","file_ext":"py","file_size_in_byte":3900,"program_lang":"python","lang":"en","doc_type":"code","stars":96,"dataset":"github-code","pt":"86"}
+{"seq_id":"41592171672","text":"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"\nCreated on Wed Dec 2 17:35:40 2015\n\n@author: craigmoodie\n\"\"\"\nfrom __future__ import print_function, division, absolute_import, unicode_literals\n\nimport os\nfrom copy import deepcopy\n\nfrom niworkflows.nipype.pipeline import engine as pe\nfrom niworkflows.nipype.interfaces import utility as niu\n\nfrom fmriprep.interfaces import BIDSDataGrabber, BIDSFreeSurferDir\nfrom fmriprep.utils.misc import collect_bids_data\n\nfrom fmriprep.workflows.anatomical import init_anat_preproc_wf\n\nfrom fmriprep.workflows.epi import init_func_preproc_wf\n\nfrom bids.grabbids import BIDSLayout\n\n\ndef init_fmriprep_wf(subject_list, task_id, run_uuid,\n ignore, debug, anat_only, omp_nthreads,\n skull_strip_ants, reportlets_dir, output_dir, bids_dir,\n freesurfer, output_spaces, template, hires,\n bold2t1w_dof, fmap_bspline, fmap_demean, use_syn, force_syn,\n use_aroma, ignore_aroma_err, output_grid_ref,):\n fmriprep_wf = pe.Workflow(name='fmriprep_wf')\n\n if freesurfer:\n fsdir = pe.Node(\n BIDSFreeSurferDir(\n derivatives=output_dir,\n freesurfer_home=os.getenv('FREESURFER_HOME'),\n spaces=output_spaces),\n name='fsdir')\n\n for subject_id in subject_list:\n single_subject_wf = init_single_subject_wf(subject_id=subject_id,\n task_id=task_id,\n name=\"single_subject_\" + subject_id + \"_wf\",\n ignore=ignore,\n debug=debug,\n anat_only=anat_only,\n omp_nthreads=omp_nthreads,\n skull_strip_ants=skull_strip_ants,\n reportlets_dir=reportlets_dir,\n output_dir=output_dir,\n bids_dir=bids_dir,\n freesurfer=freesurfer,\n output_spaces=output_spaces,\n template=template,\n hires=hires,\n bold2t1w_dof=bold2t1w_dof,\n fmap_bspline=fmap_bspline,\n fmap_demean=fmap_demean,\n use_syn=use_syn,\n force_syn=force_syn,\n output_grid_ref=output_grid_ref,\n use_aroma=use_aroma,\n ignore_aroma_err=ignore_aroma_err)\n\n single_subject_wf.config['execution']['crashdump_dir'] = (\n os.path.join(output_dir, \"fmriprep\", \"sub-\" + subject_id, 'log', run_uuid)\n )\n for node in single_subject_wf._get_all_nodes():\n node.config = deepcopy(single_subject_wf.config)\n if freesurfer:\n fmriprep_wf.connect(fsdir, 'subjects_dir',\n single_subject_wf, 'inputnode.subjects_dir')\n else:\n fmriprep_wf.add_nodes([single_subject_wf])\n\n return fmriprep_wf\n\n\ndef init_single_subject_wf(subject_id, task_id, name,\n ignore, debug, anat_only, omp_nthreads,\n skull_strip_ants, reportlets_dir, output_dir, bids_dir,\n freesurfer, output_spaces, template, hires,\n bold2t1w_dof, fmap_bspline, fmap_demean, use_syn, force_syn,\n output_grid_ref, use_aroma, ignore_aroma_err):\n \"\"\"\n The adaptable fMRI preprocessing workflow\n \"\"\"\n\n if name == 'single_subject_wf':\n # for documentation purposes\n subject_data = {'func': ['/completely/made/up/path/sub-01_task-nback_bold.nii.gz']}\n layout = None\n else:\n layout = BIDSLayout(bids_dir)\n\n subject_data = collect_bids_data(bids_dir, subject_id, task_id)\n\n if not anat_only and subject_data['func'] == []:\n raise Exception(\"No BOLD images found for participant {} and task {}. \"\n \"All workflows require BOLD images.\".format(\n subject_id, task_id if task_id else ''))\n\n if not subject_data['t1w']:\n raise Exception(\"No T1w images found for participant {}. \"\n \"All workflows require T1w images.\".format(subject_id))\n\n workflow = pe.Workflow(name=name)\n\n inputnode = pe.Node(niu.IdentityInterface(fields=['subjects_dir']),\n name='inputnode')\n\n bidssrc = pe.Node(BIDSDataGrabber(subject_data=subject_data, anat_only=anat_only),\n name='bidssrc')\n\n # Preprocessing of T1w (includes registration to MNI)\n anat_preproc_wf = init_anat_preproc_wf(name=\"anat_preproc_wf\",\n skull_strip_ants=skull_strip_ants,\n output_spaces=output_spaces,\n template=template,\n debug=debug,\n omp_nthreads=omp_nthreads,\n freesurfer=freesurfer,\n hires=hires,\n reportlets_dir=reportlets_dir,\n output_dir=output_dir)\n\n workflow.connect([\n (inputnode, anat_preproc_wf, [('subjects_dir', 'inputnode.subjects_dir')]),\n (bidssrc, anat_preproc_wf, [('t1w', 'inputnode.t1w'),\n ('t2w', 'inputnode.t2w')]),\n ])\n\n if anat_only:\n return workflow\n\n for bold_file in subject_data['func']:\n func_preproc_wf = init_func_preproc_wf(bold_file=bold_file,\n layout=layout,\n ignore=ignore,\n freesurfer=freesurfer,\n bold2t1w_dof=bold2t1w_dof,\n reportlets_dir=reportlets_dir,\n output_spaces=output_spaces,\n template=template,\n output_dir=output_dir,\n omp_nthreads=omp_nthreads,\n fmap_bspline=fmap_bspline,\n fmap_demean=fmap_demean,\n use_syn=use_syn,\n force_syn=force_syn,\n debug=debug,\n output_grid_ref=output_grid_ref,\n use_aroma=use_aroma,\n ignore_aroma_err=ignore_aroma_err)\n\n workflow.connect([\n (anat_preproc_wf, func_preproc_wf,\n [('outputnode.t1_preproc', 'inputnode.t1_preproc'),\n ('outputnode.t1_brain', 'inputnode.t1_brain'),\n ('outputnode.t1_mask', 'inputnode.t1_mask'),\n ('outputnode.t1_seg', 'inputnode.t1_seg'),\n ('outputnode.t1_tpms', 'inputnode.t1_tpms'),\n ('outputnode.t1_2_mni_forward_transform', 'inputnode.t1_2_mni_forward_transform'),\n ('outputnode.t1_2_mni_reverse_transform', 'inputnode.t1_2_mni_reverse_transform')])\n ])\n\n if freesurfer:\n workflow.connect([\n (anat_preproc_wf, func_preproc_wf,\n [('outputnode.subjects_dir', 'inputnode.subjects_dir'),\n ('outputnode.subject_id', 'inputnode.subject_id'),\n ('outputnode.fs_2_t1_transform', 'inputnode.fs_2_t1_transform')]),\n ])\n\n return workflow\n","repo_name":"vsoch/fmriprep-debug","sub_path":"fmriprep/workflows/base.py","file_name":"base.py","file_ext":"py","file_size_in_byte":8584,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"24888821054","text":"import pandas as pd\nfrom gensim.corpora import Dictionary\nfrom gensim.models.ldamodel import LdaModel\nfrom sys import path as syspath\nfrom os import path as osPath, getcwd\nfrom Classifier import get_KNN_Model, get_lin_SVM_Model, get_NaiveBayes_Model\nimport numpy as np\nimport torch.nn as nn\nimport warnings\nimport torch\n\nfrom tensorflow.keras.models import load_model\n\nfrom tensorflow.keras.preprocessing.text import Tokenizer\nfrom tensorflow.keras.preprocessing.sequence import pad_sequences\nfrom sklearn.model_selection import train_test_split\nfrom tensorflow.keras.utils import to_categorical\nfrom filters import train_test_splitter\nfrom tensorflow.keras.layers import Input, Embedding, Bidirectional, LSTM, BatchNormalization, Dense, Dropout, Flatten\nfrom tensorflow.keras.callbacks import EarlyStopping\nfrom tensorflow.keras.models import Sequential\nfrom os import listdir\n\nwarnings.simplefilter(action='ignore')\n\nsyspath.insert(1, (osPath.dirname(getcwd()).replace('\\\\', '\\\\')) + '\\\\2_Cleaning_Visualization')\n\n# noinspection PyUnresolvedReferences\nfrom text_cleaning import text_clean\n\nnum_topics = 10\n\nx_train, x_test, y_train, y_test = None, None, None, None\ndf, dict_genuine, dict_fake, lda_genuine, lda_fake = None, None, None, None, None\n\nis_LDA_trained = False\ndata_updated = False\n\nLDA = None\ncorpus = None\nDict = None\n\n\nclass LstmClassifierModel(nn.Module):\n def __init__(self, input_size, hidden_size, num_layers, output_size):\n super(LstmClassifierModel, self).__init__()\n\n self.num_layers = num_layers\n self.hidden_size = hidden_size\n\n self.lstm = nn.LSTM(input_size, hidden_size, num_layers)\n\n self.fc = nn.Linear(hidden_size, output_size)\n\n def forward(self, inputs):\n h0 = torch.zeros(self.num_layers, inputs.size(1), self.hidden_size).to(device)\n c0 = torch.zeros(self.num_layers, inputs.size(1), self.hidden_size).to(device)\n\n out, _ = self.lstm(inputs, (h0, c0))\n out = out[:, -1, :]\n\n out = self.fc(out)\n\n return out\n\n\nclass LDAClassifierModel(nn.Module):\n def __init__(self, input_size, output_size):\n super(LDAClassifierModel, self).__init__()\n self.layer1 = nn.Linear(input_size, 64)\n self.layer2 = nn.Linear(64, 128)\n self.layer3 = nn.Linear(128, 256)\n self.layer4 = nn.Linear(256, 512)\n self.layer5 = nn.Linear(512, 256)\n\n self.layer6 = nn.Linear(256, 128)\n self.layer7 = nn.Linear(128, 64)\n self.layer8 = nn.Linear(64, 32)\n self.layer9 = nn.Linear(32, 16)\n self.layer10 = nn.Linear(16, output_size)\n self.relu = nn.ReLU()\n\n def forward(self, inputs):\n out = self.layer1(inputs)\n out = self.relu(out)\n\n out = self.layer2(out)\n out = self.relu(out)\n\n out = self.layer3(out)\n out = self.relu(out)\n\n out = self.layer4(out)\n out = self.relu(out)\n\n out = self.layer5(out)\n out = self.relu(out)\n\n out = self.layer6(out)\n out = self.relu(out)\n\n out = self.layer7(out)\n out = self.relu(out)\n\n out = self.layer8(out)\n out = self.relu(out)\n\n out = self.layer9(out)\n out = self.relu(out)\n\n out = self.layer10(out)\n\n return out\n\n\ndef get_Device():\n return torch.device('cuda' if torch.cuda.is_available() else 'cpu')\n\n\ndevice = get_Device()\n\n\ndef get_topic_vector(tweet_text, num_topics, Dict, LDA):\n d2b = Dict.doc2bow(tweet_text)\n\n topic_vector_sparse = LDA.get_document_topics(d2b)\n\n topic_vector = np.zeros(num_topics)\n\n for pair in topic_vector_sparse:\n topic_vector[pair[0]] = pair[1]\n\n return topic_vector\n\n\ndef get_LDA_trained_Models():\n dataset_path = \"C:/Users/Sampad/Desktop/Projects/Capstone/Implimentation/Code/0_DataSet/\"\n\n df = pd.read_csv(dataset_path + \"CompleteAnnotated.csv\")\n\n df.tweet_text = df.tweet_text.apply(text_clean)\n\n all_docs_genuine = []\n all_docs_fake = []\n labels = []\n complete_docs = []\n\n for i in range(df.shape[0]):\n labels.append(df.iloc[i]['Annotation'])\n complete_docs.append(df.iloc[i]['tweet_text'].split())\n if df.iloc[i]['Annotation'] == 0:\n all_docs_genuine.append(df.iloc[i]['tweet_text'].split())\n else:\n all_docs_fake.append(df.iloc[i]['tweet_text'].split())\n complete_dict = Dictionary(complete_docs)\n\n complete_corpus = [complete_dict.doc2bow(text) for text in complete_docs]\n\n lda = LdaModel(complete_corpus, num_topics=10)\n\n X = np.array([get_topic_vector(tweet.split(), 10, complete_dict, lda) for tweet in df.tweet_text])\n Y = np.array(labels)\n x_train, x_test, y_train, y_test = train_test_splitter(X, Y)\n return x_train, x_test, y_train, y_test, complete_dict, complete_corpus, lda\n\n\ndef get_BOW_trainable_data():\n dataset_path = \"C:/Users/Sampad/Desktop/Projects/Capstone/Implimentation/Code/0_DataSet/\"\n\n df = pd.read_csv(dataset_path + \"CompleteAnnotated.csv\")\n\n df.tweet_text = df.tweet_text.apply(text_clean)\n tokenizer = Tokenizer()\n tokenizer.fit_on_texts(df.tweet_text)\n counts = tokenizer.word_counts\n\n word_size = 7000\n vocab_size = word_size\n tokenizer = Tokenizer(num_words=word_size)\n\n tokenizer.fit_on_texts(df.tweet_text)\n tokenized = tokenizer.texts_to_sequences(df.tweet_text)\n\n sequence_size = 18\n padded = pad_sequences(tokenized, maxlen=sequence_size, padding='post', truncating='post')\n x_train, x_test, y_train, y_test = train_test_split(padded, df.Annotation.values, test_size=0.20)\n return x_train, x_test, y_train, y_test, tokenizer\n\n\ndef get_trainable_data():\n global x_train, x_test, y_train, y_test, data_updated, LDA, corpus, Dict\n x_train, x_test, y_train, y_test, Dict, corpus, LDA = get_LDA_trained_Models()\n data_updated = True\n return x_train, x_test, y_train, y_test\n\n\ndef get_text_knn_model():\n global x_train, x_test, y_train, y_test, data_updated\n if data_updated == False:\n x_train, x_test, y_train, y_test = get_trainable_data()\n return get_KNN_Model(x_train, y_train)\n\n\ndef get_text_svm_model():\n global x_train, x_test, y_train, y_test, data_updated\n if data_updated == False:\n x_train, x_test, y_train, y_test = get_trainable_data()\n return get_lin_SVM_Model(x_train, y_train)\n\n\ndef get_text_NB_model():\n global x_train, x_test, y_train, y_test, data_updated\n if data_updated == False:\n x_train, x_test, y_train, y_test = get_trainable_data()\n return get_NaiveBayes_Model(x_train, y_train)\n\n\ndef Validator(model, x_test, y_test):\n predicted = model(x_test).to(device)\n pred = torch.max(predicted.data, 1)[1]\n total_test = len(y_test)\n correct_pred = 0\n\n for i in range(total_test):\n if y_test[i] == pred[i]:\n correct_pred += 1\n\n return correct_pred / total_test\n\n\ndef get_text_nnLDA_model():\n global x_train, x_test, y_train, y_test, data_updated\n\n if \"textual_simple_nn.pt\" in listdir(\n \"C:\\\\Users\\\\Sampad\\\\Desktop\\\\Projects\\\\Capstone\\\\Implimentation\\\\Code\\\\4_Model\\\\saved_model\"):\n return torch.load(\n \"C:\\\\Users\\\\Sampad\\\\Desktop\\\\Projects\\\\Capstone\\\\Implimentation\\\\Code\\\\4_Model\\\\saved_model\\\\textual_simple_nn.pt\").to(\n device)\n\n if data_updated == False:\n x_train, x_test, y_train, y_test = get_trainable_data()\n\n x_tr = torch.Tensor(x_train).to(device)\n y_tr = torch.Tensor(y_train).to(device)\n x_ts = torch.Tensor(x_test).to(device)\n y_ts = torch.Tensor(y_test).to(device)\n y_tr = y_tr.to(torch.long)\n\n input_size = 10\n output_size = 2\n learning_rate = 0.0001\n n_epochs = 250\n\n model = LDAClassifierModel(input_size=input_size,\n output_size=output_size)\n\n model.to(device)\n\n lossfn = torch.nn.CrossEntropyLoss()\n lossfn.to(device)\n optimizer = torch.optim.Adam(model.parameters(), lr=learning_rate)\n\n models = []\n acc = []\n\n for epoch in range(n_epochs):\n predicted = model(x_tr).to(device)\n\n loss = lossfn(predicted, y_tr)\n\n optimizer.zero_grad()\n loss.backward()\n\n optimizer.step()\n\n val_acc = Validator(model, x_ts, y_ts.to(torch.int))\n\n acc.append(val_acc)\n models.append(model)\n\n # print(f'Epoch [ {epoch + 1} / {n_epochs} ] Training-Loss = {loss.item():.4f} Training-Accuracy = {1 - loss.item()} Validation-Accuracy = {val_acc}')\n model = models[acc.index(max(acc))]\n torch.save(model,\n \"C:\\\\Users\\\\Sampad\\\\Desktop\\\\Projects\\\\Capstone\\\\Implimentation\\\\Code\\\\4_Model\\\\saved_model\\\\textual_simple_nn.pt\")\n return model\n\n\ndef get_text_nnBOW_model():\n x_train, x_test, y_train, y_test, tokenizer = get_BOW_trainable_data()\n\n if \"textual_lstm_nn.pt\" in listdir(\n \"C:\\\\Users\\\\Sampad\\\\Desktop\\\\Projects\\\\Capstone\\\\Implimentation\\\\Code\\\\4_Model\\\\saved_model\"):\n return torch.load(\n \"C:\\\\Users\\\\Sampad\\\\Desktop\\\\Projects\\\\Capstone\\\\Implimentation\\\\Code\\\\4_Model\\\\saved_model\\\\textual_lstm_nn.pt\").to(\n device), tokenizer\n\n x_train = x_train.reshape(x_train.shape[0], 1, x_train.shape[1])\n x_test = x_test.reshape(x_test.shape[0], 1, x_test.shape[1])\n\n x_train = torch.Tensor(x_train).to(device)\n y_train = torch.Tensor(y_train).to(device)\n x_test = torch.Tensor(x_test).to(device)\n y_test = torch.Tensor(y_test).to(device)\n y_train = y_train.to(torch.long)\n\n input_size = 18\n output_size = 2\n hidden_size = 256\n num_layers = 16\n learning_rate = 0.0001\n n_epochs = 250\n\n model = LstmClassifierModel(input_size=input_size,\n hidden_size=hidden_size,\n num_layers=num_layers,\n output_size=output_size)\n\n model.to(device)\n\n lossfn = torch.nn.CrossEntropyLoss()\n lossfn.to(device)\n optimizer = torch.optim.SGD(model.parameters(), lr=learning_rate)\n\n models = []\n acc = []\n\n for epoch in range(n_epochs):\n predicted = model(x_train).to(device)\n\n loss = lossfn(predicted, y_train)\n\n optimizer.zero_grad()\n loss.backward()\n\n optimizer.step()\n val_acc = Validator(model, x_test, y_test.to(torch.int))\n acc.append(val_acc)\n models.append(model)\n\n # print(f'Epoch [{epoch + 1}/{n_epochs}] Training-Loss = {loss.item():.4f} Train-Accuracy = {1 - loss.item():.4f} Valid-Accuracy = {val_acc}')\n\n torch.save(models[acc.index(max(acc))],\n \"C:\\\\Users\\\\Sampad\\\\Desktop\\\\Projects\\\\Capstone\\\\Implimentation\\\\Code\\\\4_Model\\\\saved_model\\\\textual_lstm_nn.pt\")\n return models[acc.index(max(acc))], tokenizer\n\n\ndef get_text_bilstm_model():\n x_train, x_test, y_train, y_test, tokenizer = get_BOW_trainable_data()\n y_train = to_categorical(y_train, num_classes=2)\n\n word_vec_size = 20\n hidden_size = 128\n sequence_size = 18\n vocab_size = 7000\n\n if \"textual_bilstm_nn.h5\" in listdir(\n \"C:\\\\Users\\\\Sampad\\\\Desktop\\\\Projects\\\\Capstone\\\\Implimentation\\\\Code\\\\4_Model\\\\saved_model\"):\n return load_model(\n \"C:\\\\Users\\\\Sampad\\\\Desktop\\\\Projects\\\\Capstone\\\\Implimentation\\\\Code\\\\4_Model\\\\saved_model\\\\textual_bilstm_nn.h5\"), tokenizer\n\n model = Sequential()\n model.add(Input(shape=[sequence_size]))\n model.add(Embedding(vocab_size, word_vec_size, input_length=sequence_size))\n\n model.add(Bidirectional(LSTM(hidden_size, return_sequences=True)))\n model.add(BatchNormalization())\n model.add(Bidirectional(LSTM(int(hidden_size / 2), return_sequences=True)))\n model.add(BatchNormalization())\n model.add(Bidirectional(LSTM(int(hidden_size / 2), return_sequences=True)))\n\n model.add(Flatten())\n model.output_shape\n model.add(Dense(256, activation='relu'))\n model.add(Dense(128, activation='relu'))\n model.add(Dropout(0.25))\n model.add(Dense(2, activation='softmax'))\n\n # model = keras.models.Model(X,Y)\n model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])\n # model.summary()\n\n es = EarlyStopping(monitor='val_accuracy', mode='min', patience=6, verbose=1)\n\n hist = model.fit(x_train, y_train, epochs=100, batch_size=256, validation_split=0.2, callbacks=[es])\n\n model.save(\n \"C:\\\\Users\\\\Sampad\\\\Desktop\\\\Projects\\\\Capstone\\\\Implimentation\\\\Code\\\\4_Model\\\\saved_model\\\\textual_bilstm_nn.h5\")\n return model, tokenizer\n","repo_name":"Sampad-Hegde/Detecting-Fake-Re_Tweeters-and-Hashtag-misuse-using-Machine-Learning-and-Topic-Modelling","sub_path":"4_Model/LDA.py","file_name":"LDA.py","file_ext":"py","file_size_in_byte":12425,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"14500455427","text":"import numpy as np\nimport pygame\nimport sys\nimport time\n#module I wrote to keep maze wall definitions in, also in the github portfolio:\nimport rw\n\npygame.init()\n\nepsilon = 0.9 \ndiscount_factor = 0.9\nlearning_rate = 0.9\n\nwidth = 1000\nheight = 500\nsteps = 0\ntotal = 0\nenv_x = 25\nenv_y = 50\n\n#drawing coordinates:\nx = 0\ny = 0\nagent_x = 0\nagent_y = 100\ncolor = (66, 135, 245)\n\niterations = 1200\nmax_steps = 10000\ndelay = 5\n\npygame.display.set_caption(\"optimum path\")\nscreen = pygame.display.set_mode((width, height))\nclock = pygame.time.Clock()\nrunning = True\n\n#3d tensor of q values based on location and 4 possible actions\nq_values = np.random.random((env_x, env_y, 4))\n\n#to avoid redrawing squares:\ndrawn = np.zeros((25, 50)) \n\n#did agent reach the goal?\ndef episode_complete(current_row_index, current_col_index):\n if rw.rewards[current_row_index][current_col_index] == 75:\n return True\n \n#what to do next? act on experience or explore? \ndef get_next_action(current_row_index, current_col_index, epsilon):\n if np.random.random() < epsilon:\n return np.argmax(q_values[current_row_index, current_col_index])\n else:\n return np.random.randint(4)\n\n#update location\ndef get_next_location(current_row_index, current_col_index, action_index):\n new_row_index = current_row_index\n new_col_index = current_col_index\n if action_index == 0 and current_row_index > 0:\n new_row_index -= 1\n elif action_index == 1 and current_col_index < 49:\n new_col_index += 1\n elif action_index == 2 and current_row_index < 24:\n new_row_index += 1\n elif action_index == 3 and current_col_index > 0:\n new_col_index -= 1\n return new_row_index, new_col_index\n\n#the final iteration will be with epsilon = 1, and hence reveal optimum path (no randomness). \nfor episode in range((iterations + 1)): \n\n drawn.fill(0)\n screen.fill((0, 0, 0))\n \n #how experience vs explore is decided. explore a lot at the beginning and act on experience later\n if 1000 < episode:\n epsilon = 0.95\n elif 100 < episode:\n epsilon = 0.9\n else:\n epsilon = 0.2\n \n #drawing loop\n for i in range(len(rw.rewards)):\n for j in range(len(rw.rewards[i])):\n if (rw.rewards[i][j] == -100) and (episode % 100 == 0):\n pygame.draw.rect(screen, (42, 163, 127), (x, y, 20, 20), 5)\n x += 20\n x = 0\n if y == 480:\n y = 0\n else:\n y += 20\n\n total += steps\n steps = 0\n \n #return to starting point\n row_index = 5\n col_index = 0\n \n if episode == iterations:\n color = (180, 202, 237)\n avg = round(total / episode, 2)\n epsilon = 1\n \n while not episode_complete(row_index, col_index):\n \n action_index = get_next_action(row_index, col_index, epsilon)\n old_row_index, old_col_index = row_index, col_index\n row_index, col_index = get_next_location(row_index, col_index, action_index)\n #receive reward for current loction\n reward = rw.rewards[row_index, col_index]\n #save old q value before updating\n old_q_value = q_values[old_row_index, old_col_index, action_index]\n #how much should the q value change?\n temporal_difference = reward + (discount_factor * np.max(q_values[row_index, col_index])) - old_q_value \n #update q value for current location\n new_q_value = old_q_value + (learning_rate * temporal_difference)\n q_values[old_row_index, old_col_index, action_index] = new_q_value\n \n if steps == max_steps:\n break\n \n steps += 1\n \n #drawing coordinates\n agent_x = (col_index * 20)\n agent_y = (row_index * 20)\n \n #update best path drawing every 100 iterations, make sure not to redraw squares\n if drawn[row_index][col_index] == 0 and episode % 100 == 0:\n\n pygame.draw.rect(screen, color, (agent_x, agent_y, 20, 20), 2)\n pygame.draw.rect(screen, (117, 240, 117), (780, 440, 20, 20))\n pygame.draw.rect(screen, (255, 255, 255), (0, 100, 20, 20))\n pygame.display.flip()\n \n drawn[row_index][col_index] = 1\n \n if episode % 100 == 0:\n print(episode, steps)\n\n if episode == (iterations):\n print(\"Average steps =\", avg)\n print(\"Optimum path is\", steps, \"steps.\")\n \n episode += 1\n \n for event in pygame.event.get():\n if event.type == pygame.QUIT:\n running = False\n \ntime.sleep(delay)\npygame.quit()\nsys.exit()\n\n \n \n","repo_name":"AntonHufford/Portfolio","sub_path":"q_learning_optimum_path.py","file_name":"q_learning_optimum_path.py","file_ext":"py","file_size_in_byte":4651,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5258277106","text":"from unittest import TestCase\n\nfrom nose_parameterized import parameterized\n\nfrom triangle import Solution\n\n\nclass TestTriangle(TestCase):\n @parameterized.expand([\n [\n {\n 'triangle': [\n [2],\n [3, 4],\n [6, 5, 7],\n [4, 1, 8, 3],\n ],\n },\n 11,\n ],\n ])\n def test_minimum_total(self, kwargs, expected_ans):\n # Setup\n sol = Solution()\n\n # Exercise\n ans = sol.minimum_total(**kwargs)\n\n # Verify\n self.assertEqual(ans, expected_ans)\n","repo_name":"nkukarl/leetcode","sub_path":"triangle_test.py","file_name":"triangle_test.py","file_ext":"py","file_size_in_byte":628,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"6017109974","text":"from django.contrib import admin\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom relativedeltafield import RelativeDeltaField\n\nfrom ztc.datamodel.models.besluittype import BesluitType\n\nfrom ..models import ResultaatType, ZaakInformatieobjectTypeArchiefregime\nfrom .forms import RelativeDeltaField as RelativeDeltaFormField, ResultaatTypeForm\n\n\nclass ZaakInformatieobjectTypeArchiefregimeInline(admin.TabularInline):\n model = ZaakInformatieobjectTypeArchiefregime\n extra = 1\n\n\nclass BesluitTypeInline(admin.TabularInline):\n model = BesluitType.resultaattypen.through\n extra = 1\n\n\n@admin.register(ResultaatType)\nclass ResultaatTypeAdmin(admin.ModelAdmin):\n model = ResultaatType\n form = ResultaatTypeForm\n\n # List\n list_display = (\n \"omschrijving\",\n \"omschrijving_generiek\",\n \"selectielijstklasse\",\n \"uuid\",\n )\n ordering = (\"zaaktype\", \"omschrijving\")\n search_fields = (\n \"omschrijving\",\n \"omschrijving_generiek\",\n \"selectielijstklasse\",\n \"toelichting\",\n \"uuid\",\n )\n\n # Details\n fieldsets = (\n (\n _(\"Algemeen\"),\n {\n \"fields\": (\n \"zaaktype\",\n \"omschrijving\",\n \"toelichting\",\n \"procesobjectaard\",\n \"indicatie_specifiek\",\n \"procestermijn\",\n \"datum_begin_geldigheid\",\n \"datum_einde_geldigheid\",\n )\n },\n ),\n (\n _(\"Gemeentelijke selectielijst\"),\n {\"fields\": (\"resultaattypeomschrijving\", \"selectielijstklasse\")},\n ),\n (\n _(\"Bepaling brondatum archiefprocedure\"),\n {\n \"fields\": (\n \"brondatum_archiefprocedure_afleidingswijze\",\n \"brondatum_archiefprocedure_datumkenmerk\",\n \"brondatum_archiefprocedure_einddatum_bekend\",\n \"brondatum_archiefprocedure_objecttype\",\n \"brondatum_archiefprocedure_registratie\",\n \"brondatum_archiefprocedure_procestermijn\",\n )\n },\n ),\n (\n _(\"Relaties\"),\n {\n \"fields\": (\n \"catalogus\",\n \"zaakobjecttypen\",\n \"informatieobjecttypen\",\n )\n },\n ),\n )\n raw_id_fields = (\"zaaktype\",)\n filter_horizontal = (\n \"zaakobjecttypen\",\n \"informatieobjecttypen\",\n )\n inlines = (BesluitTypeInline,)\n\n def formfield_for_dbfield(self, db_field, request, **kwargs):\n if isinstance(db_field, RelativeDeltaField):\n kwargs[\"form_class\"] = RelativeDeltaFormField\n return super().formfield_for_dbfield(db_field, request, **kwargs)\n","repo_name":"VNG-Realisatie/catalogi-api","sub_path":"src/ztc/datamodel/admin/resultaattype.py","file_name":"resultaattype.py","file_ext":"py","file_size_in_byte":2885,"program_lang":"python","lang":"en","doc_type":"code","stars":5,"dataset":"github-code","pt":"86"}
+{"seq_id":"32811532792","text":"import math\n\ndef issosu(num):\n if num == 1:\n return False\n\n for i in range(2,int(math.sqrt(num))+1):\n if num%i==0:\n return False\n return True\n\narr = [0]*(123456*2+1)\nsosusum = 0\nfor i in range(2,123456*2+1):\n if issosu(i):\n sosusum+=1\n arr[i]=sosusum\n else:\n arr[i]=sosusum\n\n\nwhile(True):\n result=0\n n = int(input())\n if n==0:\n break\n \n print(arr[2*n]-arr[n])","repo_name":"soongsari/Algorithm","sub_path":"백준알고리즘/손지혜/소수_4948.py","file_name":"소수_4948.py","file_ext":"py","file_size_in_byte":424,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5671743497","text":"import torch\n\nfrom ..trainer import Trainer\nfrom ...evaluation.evaluators.evaluator import VoidEvaluator\n\n\nclass MultitaskSupervisedTrainer(Trainer):\n \"\"\"\n Trainer for multitask supervised tasks learning of predicting multiple outputs given x (classification or regression).\n \"\"\"\n\n def __init__(self, model, optimizer, by_task_loss_functions, by_task_loss_weights=None,\n train_evaluator=VoidEvaluator(), val_evaluator=VoidEvaluator(),\n callback=None, device=torch.device(\"cpu\")):\n \"\"\"\n :param model: model that outputs a dictionary with name and output for each task.\n :param optimizer: optimizer.\n :param by_task_loss_functions: dictionary of loss functions, names should match outputs of model.\n :param by_task_loss_weights: dictionary of weights for the corresponding loss functions.\n :param train_evaluator: train phase evaluator.\n :param val_evaluator: validation phase evaluator.\n :param callback: callback for the training process.\n :param device: device to run on.\n \"\"\"\n super().__init__(model, optimizer, train_evaluator, val_evaluator, callback, device)\n self.by_task_loss_functions = by_task_loss_functions\n self.by_task_loss_weights = by_task_loss_weights if by_task_loss_weights is not None else {}\n\n def batch_update(self, batch_num, batch, total_num_batches):\n self.optimizer.zero_grad()\n\n x, by_task_y = batch\n x = x.to(self.device)\n by_task_y = {task_name: y.to(self.device) for task_name, y in by_task_y.items()}\n\n by_task_y_pred = self.model(x)\n by_task_loss = self.__calculate_by_task_losses(by_task_y_pred, by_task_y)\n\n total_loss = self.__calculate_total_loss(by_task_loss)\n total_loss.backward()\n self.optimizer.step()\n\n return {\n \"loss\": total_loss.item(),\n \"by_task_loss\": {name: loss.item() for name, loss in by_task_loss.items()},\n \"by_task_y_pred\": {task_name: task_y_pred.detach() for task_name, task_y_pred in by_task_y_pred.items()},\n \"by_task_y\": by_task_y\n }\n\n def __calculate_by_task_losses(self, by_task_y_preds, by_task_y):\n by_task_losses = {}\n for name, loss_fn in self.by_task_loss_functions.items():\n y_pred = by_task_y_preds[name]\n y = by_task_y[name]\n\n loss = loss_fn(y_pred, y)\n by_task_losses[name] = loss\n\n return by_task_losses\n\n def __calculate_total_loss(self, by_task_losses):\n losses = [self.by_task_loss_weights.get(name, 1) * loss for name, loss in by_task_losses.items()]\n return sum(losses)\n","repo_name":"noamrazin/gnn_interactions","sub_path":"common/train/trainers/multitask_supervised_trainer.py","file_name":"multitask_supervised_trainer.py","file_ext":"py","file_size_in_byte":2689,"program_lang":"python","lang":"en","doc_type":"code","stars":20,"dataset":"github-code","pt":"86"}
+{"seq_id":"21138019669","text":"import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nfrom operator_pool import *\nfrom torch.autograd import Variable\nfrom genotypes import PRIMITIVES\n# from utils.darts_utils import drop_path, compute_speed, compute_speed_tensorrt\nfrom pdb import set_trace as bp\nfrom seg_oprs import Head\nimport numpy as np\nimport networks\nfrom layers import *\nfrom collections import OrderedDict\nfrom loss import MonodepthLoss\n###############depth#################################\n\ndef rot_from_axisangle(vec):\n \"\"\"Convert an axisangle rotation into a 4x4 transformation matrix\n (adapted from https://github.com/Wallacoloo/printipi)\n Input 'vec' has to be Bx1x3\n \"\"\"\n angle = torch.norm(vec, 2, 2, True)\n axis = vec / (angle + 1e-7)\n\n ca = torch.cos(angle)\n sa = torch.sin(angle)\n C = 1 - ca\n\n x = axis[..., 0].unsqueeze(1)\n y = axis[..., 1].unsqueeze(1)\n z = axis[..., 2].unsqueeze(1)\n\n xs = x * sa\n ys = y * sa\n zs = z * sa\n xC = x * C\n yC = y * C\n zC = z * C\n xyC = x * yC\n yzC = y * zC\n zxC = z * xC\n\n rot = torch.zeros((vec.shape[0], 4, 4)).to(device=vec.device)\n\n rot[:, 0, 0] = torch.squeeze(x * xC + ca)\n rot[:, 0, 1] = torch.squeeze(xyC - zs)\n rot[:, 0, 2] = torch.squeeze(zxC + ys)\n rot[:, 1, 0] = torch.squeeze(xyC + zs)\n rot[:, 1, 1] = torch.squeeze(y * yC + ca)\n rot[:, 1, 2] = torch.squeeze(yzC - xs)\n rot[:, 2, 0] = torch.squeeze(zxC - ys)\n rot[:, 2, 1] = torch.squeeze(yzC + xs)\n rot[:, 2, 2] = torch.squeeze(z * zC + ca)\n rot[:, 3, 3] = 1\n\n return rot\n\n\ndef get_translation_matrix(translation_vector):\n \"\"\"Convert a translation vector into a 4x4 transformation matrix\n \"\"\"\n T = torch.zeros(translation_vector.shape[0], 4, 4).to(device=translation_vector.device)\n\n t = translation_vector.contiguous().view(-1, 3, 1)\n\n T[:, 0, 0] = 1\n T[:, 1, 1] = 1\n T[:, 2, 2] = 1\n T[:, 3, 3] = 1\n T[:, :3, 3, None] = t\n\n return T\n\ndef transformation_from_parameters(axisangle, translation, invert=False):\n \"\"\"Convert the network's (axisangle, translation) output into a 4x4 matrix\n \"\"\"\n R = rot_from_axisangle(axisangle)\n t = translation.clone()\n\n if invert:\n R = R.transpose(1, 2)\n t *= -1\n\n T = get_translation_matrix(t)\n\n if invert:\n M = torch.matmul(R, T)\n else:\n M = torch.matmul(T, R)\n\n return M\n\n\n\ndef predict_poses(self, inputs, features):\n \"\"\"Predict poses between input frames for monocular sequences.\n \"\"\"\n a = []\n outputs = {}\n model_pose_encoder = networks.ResnetEncoder(self.num_layers, self.weights_init == \"pretrained\",num_input_images=2)\n\n model_pose = networks.PoseDecoder(model_pose_encoder.num_ch_enc,num_input_features=1,num_frames_to_predict_for=2)\n\n\n # In this setting, we compute the pose to each source frame via a\n # separate forward pass through the pose network.\n\n # select what features the pose network takes as input\n\n pose_feats = {f_i: inputs[\"color_aug\", f_i, 0] for f_i in self.frame_ids}\n\n for f_i in self.frame_ids[1:]:\n if f_i != \"s\":\n # To maintain ordering we always pass frames in temporal order\n if f_i < 0:\n pose_inputs = [pose_feats[f_i], pose_feats[0]]\n else:\n pose_inputs = [pose_feats[0], pose_feats[f_i]]\n\n pose_inputs[0] = torch.randn((1,3,192,640))\n pose_inputs[1] = torch.randn((1,3,192,640))\n pose_inputs = model_pose_encoder(torch.cat(pose_inputs, 1))\n a.append(pose_inputs)\n axisangle, translation = model_pose(a[f_i])\n outputs[(\"axisangle\", 0, f_i)] = axisangle\n outputs[(\"translation\", 0, f_i)] = translation\n\n # Invert the matrix if the frame id is negative\n outputs[(\"cam_T_cam\", 0, f_i)] = transformation_from_parameters(\n axisangle[:, 0], translation[:, 0], invert=(f_i < 0))\n return outputs\n\nclass conv(nn.Module):\n def __init__(self, num_in_layers=128, num_out_layers=256, kernel_size=3, stride=1):\n super(conv, self).__init__()\n self.kernel_size = kernel_size\n self.conv_base = nn.Conv2d(num_in_layers, num_out_layers, kernel_size=kernel_size, stride=stride)\n self.normalize = nn.BatchNorm2d(num_out_layers)\n\n def forward(self, x):\n p = int(np.floor((self.kernel_size-1)/2))\n p2d = (p, p, p, p)\n x = self.conv_base(F.pad(x, p2d))\n x = self.normalize(x)\n return F.elu(x, inplace=True)\n\n\nclass convblock(nn.Module):\n def __init__(self, num_in_layers, num_out_layers, kernel_size):\n super(convblock, self).__init__()\n self.conv1 = conv(num_in_layers, num_out_layers, kernel_size, 1)\n self.conv2 = conv(num_out_layers, num_out_layers, kernel_size, 2)\n\n def forward(self, x):\n x = self.conv1(x)\n return self.conv2(x)\n\n\nclass maxpool(nn.Module):\n def __init__(self, kernel_size):\n super(maxpool, self).__init__()\n self.kernel_size = kernel_size\n\n def forward(self, x):\n p = int(np.floor((self.kernel_size-1) / 2))\n p2d = (p, p, p, p)\n return F.max_pool2d(F.pad(x, p2d), self.kernel_size, stride=2)\n\n\nclass resconv(nn.Module):\n def __init__(self, num_in_layers, num_out_layers, stride):\n super(resconv, self).__init__()\n self.num_out_layers = num_out_layers\n self.stride = stride\n self.conv1 = conv(num_in_layers, num_out_layers, 1, 1)\n self.conv2 = conv(num_out_layers, num_out_layers, 3, stride)\n self.conv3 = nn.Conv2d(num_out_layers, 4*num_out_layers, kernel_size=1, stride=1)\n self.conv4 = nn.Conv2d(num_in_layers, 4*num_out_layers, kernel_size=1, stride=stride)\n self.normalize = nn.BatchNorm2d(4*num_out_layers)\n\n def forward(self, x):\n # do_proj = x.size()[1] != self.num_out_layers or self.stride == 2\n do_proj = True\n shortcut = []\n x_out = self.conv1(x)\n x_out = self.conv2(x_out)\n x_out = self.conv3(x_out)\n if do_proj:\n shortcut = self.conv4(x)\n else:\n shortcut = x\n return F.elu(self.normalize(x_out + shortcut), inplace=True)\n\n\nclass resconv_basic(nn.Module):\n # for resnet18\n def __init__(self, num_in_layers, num_out_layers, stride):\n super(resconv_basic, self).__init__()\n self.num_out_layers = num_out_layers\n self.stride = stride\n self.conv1 = conv(num_in_layers, num_out_layers, 3, stride)\n self.conv2 = conv(num_out_layers, num_out_layers, 3, 1)\n self.conv3 = nn.Conv2d(num_in_layers, num_out_layers, kernel_size=1, stride=stride)\n self.normalize = nn.BatchNorm2d(num_out_layers)\n\n def forward(self, x):\n # do_proj = x.size()[1] != self.num_out_layers or self.stride == 2\n do_proj = True\n shortcut = []\n x_out = self.conv1(x)\n x_out = self.conv2(x_out)\n if do_proj:\n shortcut = self.conv3(x)\n else:\n shortcut = x\n return F.elu(self.normalize(x_out + shortcut), inplace=True)\n\n\ndef resblock(num_in_layers, num_out_layers, num_blocks, stride):\n layers = []\n layers.append(resconv(num_in_layers, num_out_layers, stride))\n for i in range(1, num_blocks - 1):\n layers.append(resconv(4 * num_out_layers, num_out_layers, 1))\n layers.append(resconv(4 * num_out_layers, num_out_layers, 1))\n return nn.Sequential(*layers)\n\n\ndef resblock_basic(num_in_layers, num_out_layers, num_blocks, stride):\n layers = []\n layers.append(resconv_basic(num_in_layers, num_out_layers, stride))\n for i in range(1, num_blocks):\n layers.append(resconv_basic(num_out_layers, num_out_layers, 1))\n return nn.Sequential(*layers)\n\n\nclass upconv(nn.Module):\n def __init__(self, num_in_layers, num_out_layers, kernel_size, scale):\n super(upconv, self).__init__()\n self.scale = scale\n self.conv1 = conv(num_in_layers, num_out_layers, kernel_size, 1)\n\n def forward(self, x):\n x = nn.functional.interpolate(x, scale_factor=self.scale, mode='bilinear', align_corners=True)\n return self.conv1(x)\n\n\nclass get_disp(nn.Module):\n def __init__(self, num_in_layers):\n super(get_disp, self).__init__()\n self.conv1 = nn.Conv2d(num_in_layers, 2, kernel_size=3, stride=1)\n self.normalize = nn.BatchNorm2d(2)\n self.sigmoid = torch.nn.Sigmoid()\n\n def forward(self, x):\n p = 1\n p2d = (p, p, p, p)\n x = self.conv1(F.pad(x, p2d))\n x = self.normalize(x)\n return 0.3 * self.sigmoid(x)\n\n\n\n\n# https://github.com/YongfeiYan/Gumbel_Softmax_VAE/blob/master/gumbel_softmax_vae.py\ndef sample_gumbel(shape, eps=1e-20):\n U = torch.rand(shape)\n U = U.cuda()\n return -torch.log(-torch.log(U + eps) + eps)\n\n\ndef gumbel_softmax_sample(logits, temperature=1):\n y = logits + sample_gumbel(logits.size())\n return F.softmax(y / temperature, dim=-1)\n\n\ndef gumbel_softmax(logits, temperature=1, hard=False):\n \"\"\"\n ST-gumple-softmax\n input: [*, n_class]\n return: flatten --> [*, n_class] an one-hot vector\n \"\"\"\n y = gumbel_softmax_sample(logits, temperature)\n\n if not hard:\n return y\n\n shape = y.size()\n _, ind = y.max(dim=-1)\n y_hard = torch.zeros_like(y).view(-1, shape[-1])\n y_hard.scatter_(1, ind.view(-1, 1), 1)\n y_hard = y_hard.view(*shape)\n # Set gradients w.r.t. y_hard gradients w.r.t. y\n y_hard = (y_hard - y).detach() + y\n return y_hard\n\n\nclass MixedOp(nn.Module):\n\n def __init__(self, C_in, C_out, stride=1, width_mult_list=[1.]):\n super(MixedOp, self).__init__()\n self._ops = nn.ModuleList()\n self._width_mult_list = width_mult_list\n for primitive in PRIMITIVES:\n op = OPS[primitive](C_in, C_out, stride, True, width_mult_list=width_mult_list)\n self._ops.append(op)\n\n def set_prun_ratio(self, ratio):\n for op in self._ops:\n op.set_ratio(ratio)\n\n def forward(self, x, weights, thetas):\n # int: force #channel; tensor: arch_ratio; float(<=1): force width\n result = 0\n if isinstance(thetas[0], torch.Tensor):\n ratio0 = self._width_mult_list[thetas[0].argmax()]\n r_score0 = thetas[0][thetas[0].argmax()]\n else:\n ratio0 = thetas[0]\n r_score0 = 1.\n if isinstance(thetas[1], torch.Tensor):\n ratio1 = self._width_mult_list[thetas[1].argmax()]\n r_score1 = thetas[1][thetas[1].argmax()]\n else:\n ratio1 = thetas[1]\n r_score1 = 1.\n self.set_prun_ratio((ratio0, ratio1))\n for w, op in zip(weights, self._ops):\n op(x).cuda()\n result = result + op(x) * w * r_score0 * r_score1 # 每一次的结果相加\n return result\n\n def forward_latency(self, size, weights, thetas):\n # int: force #channel; tensor: arch_ratio; float(<=1): force width\n result = 0\n if isinstance(thetas[0], torch.Tensor):\n ratio0 = self._width_mult_list[thetas[0].argmax()]\n r_score0 = thetas[0][thetas[0].argmax()]\n else:\n ratio0 = thetas[0]\n r_score0 = 1.\n if isinstance(thetas[1], torch.Tensor):\n ratio1 = self._width_mult_list[thetas[1].argmax()]\n r_score1 = thetas[1][thetas[1].argmax()]\n else:\n ratio1 = thetas[1]\n r_score1 = 1.\n self.set_prun_ratio((ratio0, ratio1))\n for w, op in zip(weights, self._ops):\n latency, size_out = op.forward_latency(size)\n result = result + latency * w * r_score0 * r_score1\n return result, size_out\n\n def forward_flops(self, size, fai, ratio):\n # int: force #channel; tensor: arch_ratio; float(<=1): force width\n result = 0\n if isinstance(ratio[0], torch.Tensor):\n ratio0 = self._width_mult_list[ratio[0].argmax()]\n r_score0 = ratio[0][ratio[0].argmax()]\n else:\n ratio0 = ratio[0]\n r_score0 = 1.\n if isinstance(ratio[1], torch.Tensor):\n ratio1 = self._width_mult_list[ratio[1].argmax()]\n r_score1 = ratio[1][ratio[1].argmax()]\n else:\n ratio1 = ratio[1]\n r_score1 = 1.\n\n\n self.set_prun_ratio((ratio0, ratio1))\n\n for w, op in zip(fai, self._ops):\n flops, size_out = op.forward_flops(size)\n result = result + flops * w * r_score0 * r_score1\n return result, size_out\n\nclass Cell(nn.Module):\n def __init__(self, C_in, C_out=None, down=True, width_mult_list=[1.]):\n super(Cell, self).__init__()\n self._C_in = C_in\n if C_out is None: C_out = C_in\n self._C_out = C_out\n self._down = down\n self._width_mult_list = width_mult_list\n\n self._op = MixedOp(C_in, C_out, width_mult_list=width_mult_list)\n\n if self._down:\n self.downsample = MixedOp(C_in, C_in*2, stride=2, width_mult_list=width_mult_list)\n\n def forward(self, input, fais, thetas):\n # thetas: (in, out, down)\n out = self._op(input, fais, (thetas[0], thetas[1]))\n assert (self._down and (thetas[2] is not None)) or ((not self._down) and (thetas[2] is None))\n down = self.downsample(input, fais, (thetas[0], thetas[2])) if self._down else None\n return out, down\n\n def forward_latency(self, size, fais, thetas):\n # thetas: (in, out, down)\n out = self._op.forward_latency(size, fais, (thetas[0], thetas[1]))\n assert (self._down and (thetas[2] is not None)) or ((not self._down) and (thetas[2] is None))\n down = self.downsample.forward_latency(size, fais, (thetas[0], thetas[2])) if self._down else None\n return out, down\n\n def forward_flops(self, size, fais, thetas):\n # thetas: (in, out, down)\n out = self._op.forward_flops(size, fais, (thetas[0], thetas[1]))\n assert (self._down and (thetas[2] is not None)) or ((not self._down) and (thetas[2] is None))\n down = self.downsample.forward_latency(size, fais, (thetas[0], thetas[2])) if self._down else None\n return out, down\n\nclass get_disp(nn.Module):\n def __init__(self, num_in_layers):\n super(get_disp, self).__init__()\n self.conv1 = nn.Conv2d(num_in_layers, 2, kernel_size=3, stride=1)\n self.normalize = nn.BatchNorm2d(2)\n self.sigmoid = torch.nn.Sigmoid()\n\n def forward(self, x):\n p = 1\n p2d = (p, p, p, p)\n x = self.conv1(F.pad(x, p2d))\n x = self.normalize(x)\n return 0.3 * self.sigmoid(x)\n\ndef get_smooth_loss(disp, img):\n \"\"\"Computes the smoothness loss for a disparity image\n The color image is used for edge-aware smoothness\n \"\"\"\n if(img.size()==3):\n img = torch.randn(1,img.size(0),img.size(1),img.size(2))\n img = img.cuda()\n grad_disp_x = torch.abs(disp[:, :, :, :-1] - disp[:, :, :, 1:])\n grad_disp_y = torch.abs(disp[:, :, :-1, :] - disp[:, :, 1:, :])\n\n grad_img_x = torch.mean(torch.abs(img[:, :, :, :-1] - img[:, :, :, 1:]), 1, keepdim=True)\n grad_img_y = torch.mean(torch.abs(img[:, :, :-1, :] - img[:, :, 1:, :]), 1, keepdim=True)\n\n grad_disp_x *= torch.exp(-grad_img_x)\n grad_disp_y *= torch.exp(-grad_img_y)\n\n return grad_disp_x.mean() + grad_disp_y.mean()\n\n\nclass SSIM(nn.Module):\n \"\"\"Layer to compute the SSIM loss between a pair of images\n \"\"\"\n\n def __init__(self):\n super(SSIM, self).__init__()\n self.mu_x_pool = nn.AvgPool2d(3, 1)\n self.mu_y_pool = nn.AvgPool2d(3, 1)\n self.sig_x_pool = nn.AvgPool2d(3, 1)\n self.sig_y_pool = nn.AvgPool2d(3, 1)\n self.sig_xy_pool = nn.AvgPool2d(3, 1)\n\n self.refl = nn.ReflectionPad2d(1)\n\n self.C1 = 0.01 ** 2\n self.C2 = 0.03 ** 2\n\n def forward(self, x, y):\n x = self.refl(x)\n y = self.refl(y)\n\n mu_x = self.mu_x_pool(x)\n mu_y = self.mu_y_pool(y)\n\n sigma_x = self.sig_x_pool(x ** 2) - mu_x ** 2\n sigma_y = self.sig_y_pool(y ** 2) - mu_y ** 2\n sigma_xy = self.sig_xy_pool(x * y) - mu_x * mu_y\n\n SSIM_n = (2 * mu_x * mu_y + self.C1) * (2 * sigma_xy + self.C2)\n SSIM_d = (mu_x ** 2 + mu_y ** 2 + self.C1) * (sigma_x + sigma_y + self.C2)\n\n return torch.clamp((1 - SSIM_n / SSIM_d) / 2, 0, 1)\n\n\ndef compute_reprojection_loss(self, pred, target):\n \"\"\"Computes reprojection loss between a batch of predicted and target images\n \"\"\"\n self.ssim = SSIM()\n\n target = torch.randn(1, target.size(0), target.size(1), target.size(2))\n target = target.cuda()\n abs_diff = torch.abs(target - pred)\n l1_loss = abs_diff.mean(1, True)\n if(pred.dim() == 3):\n pred = torch.randn(1,pred.size(0),pred.size(1),pred.size(2))\n pred = pred.cuda()\n ssim_loss = self.ssim(pred, target).mean(1, True)\n reprojection_loss = 0.85 * ssim_loss + 0.15 * l1_loss\n\n return reprojection_loss\n\n\ndef compute_losses(self, inputs, outputs):\n \"\"\"Compute the reprojection and smoothness losses for a minibatch\n \"\"\"\n losses = {}\n total_loss = 0\n\n for scale in self.scales:\n loss = 0\n reprojection_losses = []\n\n if self.v1_multiscale:\n source_scale = scale\n else:\n source_scale = 0\n\n disp = outputs[(\"disp\", scale)]\n color = inputs[(\"color\", 0, scale)]\n target = inputs[(\"color\", 0, source_scale)]\n\n for frame_id in self.frame_ids[1:]:\n pred = outputs[(\"color\", frame_id, scale)]\n reprojection_losses.append(compute_reprojection_loss(self,pred, target))\n\n reprojection_losses = torch.cat(reprojection_losses, 1)\n\n if not self.disable_automasking:\n identity_reprojection_losses = []\n for frame_id in self.frame_ids[1:]:\n pred = inputs[(\"color\", frame_id, source_scale)]\n identity_reprojection_losses.append(\n compute_reprojection_loss(self,pred, target))\n\n identity_reprojection_losses = torch.cat(identity_reprojection_losses, 1)\n\n if self.avg_reprojection:\n identity_reprojection_loss = identity_reprojection_losses.mean(1, keepdim=True)\n else:\n # save both images, and do min all at once below\n identity_reprojection_loss = identity_reprojection_losses\n\n elif self.predictive_mask:\n # use the predicted mask\n mask = outputs[\"predictive_mask\"][\"disp\", scale]\n if not self.v1_multiscale:\n mask = F.interpolate(\n mask, [self.height, self.width],\n mode=\"bilinear\", align_corners=False)\n\n reprojection_losses *= mask\n\n # add a loss pushing mask to 1 (using nn.BCELoss for stability)\n weighting_loss = 0.2 * nn.BCELoss()(mask, torch.ones(mask.shape).cuda())\n loss += weighting_loss.mean()\n\n if self.avg_reprojection:\n reprojection_loss = reprojection_losses.mean(1, keepdim=True)\n else:\n reprojection_loss = reprojection_losses\n\n if not self.disable_automasking:\n # add random numbers to break ties\n identity_reprojection_loss += torch.randn(\n identity_reprojection_loss.shape, device=0) * 0.00001\n\n combined = torch.cat((identity_reprojection_loss, reprojection_loss), dim=1)\n else:\n combined = reprojection_loss\n\n if combined.shape[1] == 1:\n to_optimise = combined\n else:\n to_optimise, idxs = torch.min(combined, dim=1)\n\n if not self.disable_automasking:\n outputs[\"identity_selection/{}\".format(scale)] = (\n idxs > identity_reprojection_loss.shape[1] - 1).float()\n\n loss += to_optimise.mean()\n\n mean_disp = disp.mean(2, True).mean(3, True)\n norm_disp = disp / (mean_disp + 1e-7)\n smooth_loss = get_smooth_loss(norm_disp, color)\n\n loss += self.disparity_smoothness * smooth_loss / (2 ** scale)\n total_loss += loss\n losses[\"loss/{}\".format(scale)] = loss\n\n total_loss /= self.nums_scales\n losses[\"loss\"] = total_loss\n return losses\n\ndef disp_to_depth(disp, min_depth, max_depth):\n \"\"\"Convert network's sigmoid output into depth prediction\n The formula for this conversion is given in the 'additional considerations'\n section of the paper.\n \"\"\"\n min_disp = 1 / max_depth\n max_disp = 1 / min_depth\n scaled_disp = min_disp + (max_disp - min_disp) * disp\n depth = 1 / scaled_disp\n return scaled_disp, depth\n\ndef generate_images_pred(self, inputs, outputs):\n \"\"\"Generate the warped (reprojected) color images for a minibatch.\n Generated images are saved into the `outputs` dictionary.\n \"\"\"\n self.backproject_depth = {}\n self.project_3d = {}\n for scale in self.scales:\n h = self.height // (2 ** scale)\n w = self.width // (2 ** scale)\n\n self.backproject_depth[scale] = BackprojectDepth(self.batch_size, h, w)\n self.backproject_depth[scale] = self.backproject_depth[scale].cuda()\n\n self.project_3d[scale] = Project3D(self.batch_size, h, w)\n self.project_3d[scale] = self.project_3d[scale].cuda()\n\n for scale in self.scales:\n disp = outputs[(\"disp\", scale)]\n if self.v1_multiscale:\n source_scale = scale\n else:\n disp = F.interpolate(disp, [self.height, self.width], mode=\"bilinear\", align_corners=False)\n source_scale = 0\n\n _, depth = disp_to_depth(disp, self.min_depth, self.max_depth)\n\n outputs[(\"depth\", 0, scale)] = depth\n\n for i, frame_id in enumerate(self.frame_ids[1:]):\n\n if frame_id == \"s\":\n T = inputs[\"stereo_T\"]\n else:\n T = outputs[(\"cam_T_cam\", 0, frame_id)]\n\n # from the authors of https://arxiv.org/abs/1712.00175\n if self.pose_model_type == \"posecnn\":\n\n axisangle = outputs[(\"axisangle\", 0, frame_id)]\n translation = outputs[(\"translation\", 0, frame_id)]\n\n inv_depth = 1 / depth\n mean_inv_depth = inv_depth.mean(3, True).mean(2, True)\n\n T = transformation_from_parameters(\n axisangle[:, 0], translation[:, 0] * mean_inv_depth[:, 0], frame_id < 0)\n\n cam_points = self.backproject_depth[source_scale](\n depth, inputs[(\"inv_K\", source_scale)])\n pix_coords = self.project_3d[source_scale](\n cam_points, inputs[(\"K\", source_scale)], T)\n\n outputs[(\"sample\", frame_id, scale)] = pix_coords\n if(inputs[(\"color\", frame_id, source_scale)].dim()==3):\n inputs[(\"color\", frame_id, source_scale)] = torch.randn(1,inputs[(\"color\", frame_id, source_scale)].size(0),inputs[(\"color\", frame_id, source_scale)].size(1),inputs[(\"color\", frame_id, source_scale)].size(2))\n inputs[(\"color\", frame_id, source_scale)] = inputs[(\"color\", frame_id, source_scale)].cuda()\n outputs[(\"color\", frame_id, scale)] = F.grid_sample(\n inputs[(\"color\", frame_id, source_scale)],\n outputs[(\"sample\", frame_id, scale)],\n padding_mode=\"border\")\n inputs[(\"color\", frame_id, source_scale)] = torch.randn(inputs[(\"color\", frame_id, source_scale)].size(1),inputs[(\"color\", frame_id, source_scale)].size(2),inputs[(\"color\", frame_id, source_scale)].size(3))\n inputs[(\"color\", frame_id, source_scale)] = inputs[(\"color\", frame_id, source_scale)].cuda()\n\n if not self.disable_automasking:\n outputs[(\"color_identity\", frame_id, scale)] = \\\n inputs[(\"color\", frame_id, source_scale)]\nfrom collections import OrderedDict\nfrom layers import *\n\n\nclass DepthDecoder(nn.Module):\n def __init__(self, num_ch_enc, scales=range(4), num_output_channels=1, use_skips=True):\n super(DepthDecoder, self).__init__()\n\n self.num_output_channels = num_output_channels\n self.use_skips = use_skips\n self.upsample_mode = 'nearest'\n self.scales = scales\n\n self.num_ch_enc = num_ch_enc\n self.num_ch_dec = np.array([16, 32, 64, 128, 256])\n\n # decoder\n self.convs = OrderedDict()\n for i in range(4, -1, -1):\n # upconv_0\n num_ch_in = self.num_ch_enc[-1] if i == 4 else self.num_ch_dec[i + 1]\n num_ch_out = self.num_ch_dec[i]\n self.convs[(\"upconv\", i, 0)] = ConvBlock(num_ch_in, num_ch_out)\n\n # upconv_1\n num_ch_in = self.num_ch_dec[i]\n if self.use_skips and i > 0:\n num_ch_in += self.num_ch_enc[i - 1]\n num_ch_out = self.num_ch_dec[i]\n self.convs[(\"upconv\", i, 1)] = ConvBlock(num_ch_in, num_ch_out)\n\n for s in self.scales:\n self.convs[(\"dispconv\", s)] = Conv3x3(self.num_ch_dec[s], self.num_output_channels)\n\n self.decoder = nn.ModuleList(list(self.convs.values()))\n self.sigmoid = nn.Sigmoid()\n\n def forward(self, input_features):\n self.outputs = {}\n\n # decoder\n x = input_features[-1]\n x = x.cuda()\n for i in range(4, -1, -1):\n x = self.convs[(\"upconv\", i, 0)](x)\n x = [upsample(x)]\n if self.use_skips and i > 0:\n x += [input_features[i - 1]]\n x = torch.cat(x, 1)\n x = self.convs[(\"upconv\", i, 1)](x)\n if i in self.scales:\n self.outputs[(\"disp\", i)] = self.sigmoid(self.convs[(\"dispconv\", i)](x))\n\n return self.outputs\n\nclass Network_Multi_Path(nn.Module):\n def __init__(self, num_classes=19, layers=16, criterion=nn.CrossEntropyLoss(ignore_index=-1), Fch=12, width_mult_list=[1.,], prun_modes=['arch_ratio',], stem_head_width=[(1., 1.),]):\n super(Network_Multi_Path, self).__init__()\n self._num_classes = num_classes\n assert layers >= 3\n self._layers = layers\n self._criterion = criterion\n self._Fch = Fch\n self._width_mult_list = width_mult_list\n self._prun_modes = prun_modes\n self.prun_mode = None # prun_mode is higher priority than _prun_modes\n self._stem_head_width = stem_head_width\n self._flops = 0\n self._params = 0\n #self.lossdepth =\n \"\"\"\n stem由5个3*3的卷积组成\n \"\"\"\n self.stem = nn.ModuleList([\n nn.Sequential(\n ConvNorm(3, self.num_filters(2, stem_ratio)*2, kernel_size=3, stride=2, padding=1, bias=False, groups=1, slimmable=False),\n BasicResidual2x(self.num_filters(2, stem_ratio)*2, self.num_filters(4, stem_ratio)*2, kernel_size=3, stride=2, groups=1, slimmable=False),\n BasicResidual2x(self.num_filters(4, stem_ratio)*2, self.num_filters(8, stem_ratio), kernel_size=3, stride=2, groups=1, slimmable=False)\n ) for stem_ratio, _ in self._stem_head_width ])\n #构建基础Cell\n #########depth###############################\n self.convdepth1 = resblock_basic(3,self.num_filters(2, 1)*2,2,2)\n self.convdepth2 = resblock_basic(self.num_filters(2, 1)*2, self.num_filters(4, 1)*2,2,2)\n self.convd = conv()\n self.cells = nn.ModuleList()\n for l in range(layers):# 网络层数\n cells = nn.ModuleList()\n if l == 0:\n # first node has only one input (prev cell's output)\n cells.append(Cell(self.num_filters(8), width_mult_list=width_mult_list))\n elif l == 1:#第二层\n cells.append(Cell(self.num_filters(8), width_mult_list=width_mult_list))\n cells.append(Cell(self.num_filters(16), width_mult_list=width_mult_list))\n elif l < layers - 1:#中间层\n cells.append(Cell(self.num_filters(8), width_mult_list=width_mult_list))\n cells.append(Cell(self.num_filters(16), width_mult_list=width_mult_list))\n cells.append(Cell(self.num_filters(32), down=False, width_mult_list=width_mult_list))\n else:#最后一层\n cells.append(Cell(self.num_filters(8), down=False, width_mult_list=width_mult_list))\n cells.append(Cell(self.num_filters(16), down=False, width_mult_list=width_mult_list))\n cells.append(Cell(self.num_filters(32), down=False, width_mult_list=width_mult_list))\n self.cells.append(cells)\n\n self.refine32 = nn.ModuleList([\n nn.ModuleList([\n ConvNorm(self.num_filters(32, head_ratio), self.num_filters(16, head_ratio), kernel_size=1, bias=False, groups=1, slimmable=False),\n ConvNorm(self.num_filters(32, head_ratio), self.num_filters(16, head_ratio), kernel_size=3, padding=1, bias=False, groups=1, slimmable=False),\n ConvNorm(self.num_filters(16, head_ratio), self.num_filters(8, head_ratio), kernel_size=1, bias=False, groups=1, slimmable=False),\n ConvNorm(self.num_filters(16, head_ratio), self.num_filters(8, head_ratio), kernel_size=3, padding=1, bias=False, groups=1, slimmable=False)]) for _, head_ratio in self._stem_head_width ])\n self.refine16 = nn.ModuleList([\n nn.ModuleList([\n ConvNorm(self.num_filters(16, head_ratio), self.num_filters(8, head_ratio), kernel_size=1, bias=False, groups=1, slimmable=False),\n ConvNorm(self.num_filters(16, head_ratio), self.num_filters(8, head_ratio), kernel_size=3, padding=1, bias=False, groups=1, slimmable=False)]) for _, head_ratio in self._stem_head_width ])\n\n self.head0 = nn.ModuleList([ Head(self.num_filters(8, head_ratio), num_classes, False) for _, head_ratio in self._stem_head_width ])\n self.head1 = nn.ModuleList([ Head(self.num_filters(8, head_ratio), num_classes, False) for _, head_ratio in self._stem_head_width ])\n self.head2 = nn.ModuleList([ Head(self.num_filters(8, head_ratio), num_classes, False) for _, head_ratio in self._stem_head_width ])\n self.head02 = nn.ModuleList([ Head(self.num_filters(8, head_ratio)*2, num_classes, False) for _, head_ratio in self._stem_head_width ])\n self.head12 = nn.ModuleList([ Head(self.num_filters(8, head_ratio)*2, num_classes, False) for _, head_ratio in self._stem_head_width ])\n\n # contains arch_param names: {\"fais\": fais, \"mjus\": mjus, \"thetas\": thetas}\n self._arch_names = []\n self._arch_parameters = []\n for i in range(len(self._prun_modes)):\n arch_name, arch_param = self._build_arch_parameters(i)\n self._arch_names.append(arch_name)\n self._arch_parameters.append(arch_param)\n self._reset_arch_parameters(i)\n # switch set of arch if we have more than 1 arch\n self.arch_idx = 0\n\n\n def num_filters(self, scale, width=1.0):\n return int(np.round(scale * self._Fch * width))\n\n def new(self):\n model_new = Network(self._num_classes, self._layers, self._criterion, self._Fch).cuda()\n for x, y in zip(model_new.arch_parameters(), self.arch_parameters()):\n x.data.copy_(y.data)\n return model_new\n\n def sample_prun_ratio(self, mode=\"arch_ratio\"):\n '''\n mode: \"min\"|\"max\"|\"random\"|\"arch_ratio\"(default)\n '''\n assert mode in [\"min\", \"max\", \"random\", \"arch_ratio\"]\n if mode == \"arch_ratio\":\n thetas = self._arch_names[0][\"thetas\"]\n thetas0 = getattr(self, thetas[0])\n thetas0_sampled = []\n for layer in range(self._layers - 1):\n thetas0_sampled.append(gumbel_softmax(F.log_softmax(thetas0[layer], dim=-1), hard=True))\n thetas1 = getattr(self, thetas[1])\n thetas1_sampled = []\n for layer in range(self._layers - 1):\n thetas1_sampled.append(gumbel_softmax(F.log_softmax(thetas1[layer], dim=-1), hard=True))\n thetas2 = getattr(self, thetas[2])\n thetas2_sampled = []\n for layer in range(self._layers - 2):\n thetas2_sampled.append(gumbel_softmax(F.log_softmax(thetas2[layer], dim=-1), hard=True))\n return [thetas0_sampled, thetas1_sampled, thetas2_sampled]\n elif mode == \"min\":\n thetas0_sampled = []\n for layer in range(self._layers - 1):\n thetas0_sampled.append(self._width_mult_list[0])\n thetas1_sampled = []\n for layer in range(self._layers - 1):\n thetas1_sampled.append(self._width_mult_list[0])\n thetas2_sampled = []\n for layer in range(self._layers - 2):\n thetas2_sampled.append(self._width_mult_list[0])\n return [thetas0_sampled, thetas1_sampled, thetas2_sampled]\n elif mode == \"max\":\n thetas0_sampled = []\n for layer in range(self._layers - 1):\n thetas0_sampled.append(self._width_mult_list[-1])\n thetas1_sampled = []\n for layer in range(self._layers - 1):\n thetas1_sampled.append(self._width_mult_list[-1])\n thetas2_sampled = []\n for layer in range(self._layers - 2):\n thetas2_sampled.append(self._width_mult_list[-1])\n return [thetas0_sampled, thetas1_sampled, thetas2_sampled]\n elif mode == \"random\":\n thetas0_sampled = []\n for layer in range(self._layers - 1):\n thetas0_sampled.append(np.random.choice(self._width_mult_list))\n thetas1_sampled = []\n for layer in range(self._layers - 1):\n thetas1_sampled.append(np.random.choice(self._width_mult_list))\n thetas2_sampled = []\n for layer in range(self._layers - 2):\n thetas2_sampled.append(np.random.choice(self._width_mult_list))\n return [thetas0_sampled, thetas1_sampled, thetas2_sampled]\n\n\n def forward(self, arg, input,inputs):\n # out_prev: cell-state\n # index 0: keep; index 1: down\n input = torch.randn((1,3,192,640))\n input = input.cuda(non_blocking=True)\n x1 = self.convdepth1(input)\n x2 = self.convdepth2(x1)\n\n stem = self.stem[0]\n refine16 = self.refine16[0]\n refine32 = self.refine32[0]\n head0 = self.head0[0]\n head1 = self.head1[0]\n head2 = self.head2[0]\n head02 = self.head02[0]\n head12 = self.head12[0]\n\n fais0 = F.softmax(getattr(self, self._arch_names[0][\"fais\"][0]), dim=-1).cuda()\n fais1 = F.softmax(getattr(self, self._arch_names[0][\"fais\"][1]), dim=-1).cuda()\n fais2 = F.softmax(getattr(self, self._arch_names[0][\"fais\"][2]), dim=-1).cuda()\n fais = [fais0, fais1, fais2]\n mjus1 = F.softmax(getattr(self, self._arch_names[0][\"mjus\"][0]), dim=-1).cuda()\n mjus2 = F.softmax(getattr(self, self._arch_names[0][\"mjus\"][1]), dim=-1).cuda()\n mjus = [None, mjus1, mjus2]\n if self.prun_mode is not None:\n thetas = self.sample_prun_ratio(mode=self.prun_mode)\n else:\n thetas = self.sample_prun_ratio(mode=self._prun_modes[0])\n\n out_prev = [[stem(input), None]] # stem: one cell\n\n\n #out_prev = [[stem(input), None]] # stem: one cell\n # i: layer | j: scale\n for i, cells in enumerate(self.cells):\n # layers\n out = []\n for j, cell in enumerate(cells):\n # scales\n # out,down -- 0: from down; 1: from keep\n out0 = None; out1 = None\n down0 = None; down1 = None\n fai = fais[j][i-j]\n # ratio: (in, out, down)\n # int: force #channel; tensor: arch_ratio; float(<=1): force width\n if i == 0 and j == 0:\n # first cell\n ratio = (self._stem_head_width[0][0], thetas[j][i-j], thetas[j+1][i-j])\n elif i == self._layers - 1:\n # cell in last layer\n if j == 0:\n ratio = (thetas[j][i-j-1], self._stem_head_width[0][1], None)\n else:\n ratio = (thetas[j][i-j], self._stem_head_width[0][1], None)\n elif j == 2:\n # cell in last scale: no down ratio \"None\"\n ratio = (thetas[j][i-j], thetas[j][i-j+1], None)\n else:\n if j == 0:\n ratio = (thetas[j][i-j-1], thetas[j][i-j], thetas[j+1][i-j])\n else:\n ratio = (thetas[j][i-j], thetas[j][i-j+1], thetas[j+1][i-j])\n # out,down -- 0: from down; 1: from keep\n if j == 0:\n out1, down1 = cell(out_prev[0][0], fai, ratio)\n out.append((out1, down1))\n else:\n if i == j:\n out0, down0 = cell(out_prev[j-1][1], fai, ratio)\n out.append((out0, down0))\n else:\n if mjus[j][i-j-1][0] > 0:\n out0, down0 = cell(out_prev[j-1][1], fai, ratio)\n if mjus[j][i-j-1][1] > 0:\n out1, down1 = cell(out_prev[j][0], fai, ratio)\n out.append((\n sum(w * out for w, out in zip(mjus[j][i-j-1], [out0, out1])),\n sum(w * down if down is not None else 0 for w, down in zip(mjus[j][i-j-1], [down0, down1])),\n ))\n out_prev = out\n ###################################\n out0 = None; out1 = None; out2 = None\n #pose\n outputs = {}\n out_pose = predict_poses(arg,inputs,out)\n features = []\n x3 = out[0][0]#64*128\n x4 = out[1][0]#32*64\n x5 = out[2][0]#16*32\n features.append(x1)\n features.append(x2)\n features.append(x3)\n features.append(x4)\n features.append(x5)\n num_ch_enc = np.array([x1.size(1), x2.size(1), x3.size(1), x4.size(1), x5.size(1)])\n scales = [0,1,2,3]\n decoder = DepthDecoder(num_ch_enc, scales).cuda()\n outputs = decoder(features)\n outputs.update(out_pose)\n generate_images_pred(arg,inputs, outputs)\n\n return outputs\n ###################################\n\n def forward_latency(self, size, fai=True, beta=True, ratio=True):\n # out_prev: cell-state\n # index 0: keep; index 1: down\n stem = self.stem[0]\n\n if fai:\n fais0 = F.softmax(getattr(self, self._arch_names[0][\"fais\"][0]), dim=-1)\n fais1 = F.softmax(getattr(self, self._arch_names[0][\"fais\"][1]), dim=-1)\n fais2 = F.softmax(getattr(self, self._arch_names[0][\"fais\"][2]), dim=-1)\n fais = [fais0, fais1, fais2]\n else:\n fais = [\n torch.ones_like(getattr(self, self._arch_names[0][\"fais\"][0])).cuda() * 1./len(PRIMITIVES),\n torch.ones_like(getattr(self, self._arch_names[0][\"fais\"][1])).cuda() * 1./len(PRIMITIVES),\n torch.ones_like(getattr(self, self._arch_names[0][\"fais\"][2])).cuda() * 1./len(PRIMITIVES)]\n if beta:\n mjus1 = F.softmax(getattr(self, self._arch_names[0][\"mjus\"][0]), dim=-1)\n mjus2 = F.softmax(getattr(self, self._arch_names[0][\"mjus\"][1]), dim=-1)\n mjus = [None, mjus1, mjus2]\n else:\n mjus = [\n None,\n torch.ones_like(getattr(self, self._arch_names[0][\"mjus\"][0])).cuda() * 1./2,\n torch.ones_like(getattr(self, self._arch_names[0][\"mjus\"][1])).cuda() * 1./2]\n if ratio:\n # thetas = self.sample_prun_ratio(mode='arch_ratio')\n if self.prun_mode is not None:\n thetas = self.sample_prun_ratio(mode=self.prun_mode)\n else:\n thetas = self.sample_prun_ratio(mode=self._prun_modes[0])\n else:\n thetas = self.sample_prun_ratio(mode='max')\n\n stem_latency = 0\n latency, size = stem[0].forward_latency(size); stem_latency = stem_latency + latency\n latency, size = stem[1].forward_latency(size); stem_latency = stem_latency + latency\n latency, size = stem[2].forward_latency(size); stem_latency = stem_latency + latency\n out_prev = [[size, None]] # stem: one cell\n latency_total = [[stem_latency, 0], [0, 0], [0, 0]] # (out, down)\n\n # i: layer | j: scale\n for i, cells in enumerate(self.cells):\n # layers\n out = []\n latency = []\n for j, cell in enumerate(cells):\n # scales\n # out,down -- 0: from down; 1: from keep\n out0 = None; out1 = None\n down0 = None; down1 = None\n fai = fais[j][i-j]\n # ratio: (in, out, down)\n # int: force #channel; tensor: arch_ratio; float(<=1): force width\n if i == 0 and j == 0:\n # first cell\n ratio = (self._stem_head_width[0][0], thetas[j][i-j], thetas[j+1][i-j])\n elif i == self._layers - 1:\n # cell in last layer\n if j == 0:\n ratio = (thetas[j][i-j-1], self._stem_head_width[0][1], None)\n else:\n ratio = (thetas[j][i-j], self._stem_head_width[0][1], None)\n elif j == 2:\n # cell in last scale\n ratio = (thetas[j][i-j], thetas[j][i-j+1], None)\n else:\n if j == 0:\n ratio = (thetas[j][i-j-1], thetas[j][i-j], thetas[j+1][i-j])\n else:\n ratio = (thetas[j][i-j], thetas[j][i-j+1], thetas[j+1][i-j])\n # out,down -- 0: from down; 1: from keep\n if j == 0:\n out1, down1 = cell.forward_latency(out_prev[0][0], fai, ratio)\n out.append((out1[1], down1[1] if down1 is not None else None))\n latency.append([out1[0], down1[0] if down1 is not None else None])\n else:\n if i == j:\n out0, down0 = cell.forward_latency(out_prev[j-1][1], fai, ratio)\n out.append((out0[1], down0[1] if down0 is not None else None))\n latency.append([out0[0], down0[0] if down0 is not None else None])\n else:\n if mjus[j][i-j-1][0] > 0:\n # from down\n out0, down0 = cell.forward_latency(out_prev[j-1][1], fai, ratio)\n if mjus[j][i-j-1][1] > 0:\n # from keep\n out1, down1 = cell.forward_latency(out_prev[j][0], fai, ratio)\n assert (out0 is None and out1 is None) or out0[1] == out1[1]\n assert (down0 is None and down1 is None) or down0[1] == down1[1]\n out.append((out0[1], down0[1] if down0 is not None else None))\n latency.append([\n sum(w * out for w, out in zip(mjus[j][i-j-1], [out0[0], out1[0]])),\n sum(w * down if down is not None else 0 for w, down in zip(mjus[j][i-j-1], [down0[0] if down0 is not None else None, down1[0] if down1 is not None else None])),\n ])\n out_prev = out\n for ii, lat in enumerate(latency):\n # layer: i | scale: ii\n if ii == 0:\n # only from keep\n if lat[0] is not None: latency_total[ii][0] = latency_total[ii][0] + lat[0]\n if lat[1] is not None: latency_total[ii][1] = latency_total[ii][0] + lat[1]\n else:\n if i == ii:\n # only from down\n if lat[0] is not None: latency_total[ii][0] = latency_total[ii-1][1] + lat[0]\n if lat[1] is not None: latency_total[ii][1] = latency_total[ii-1][1] + lat[1]\n else:\n if lat[0] is not None: latency_total[ii][0] = mjus[j][i-j-1][1] * latency_total[ii][0] + mjus[j][i-j-1][0] * latency_total[ii-1][1] + lat[0]\n if lat[1] is not None: latency_total[ii][1] = mjus[j][i-j-1][1] * latency_total[ii][0] + mjus[j][i-j-1][0] * latency_total[ii-1][1] + lat[1]\n ###################################\n latency0 = latency_total[0][0]\n latency1 = latency_total[1][0]\n latency2 = latency_total[2][0]\n latency = sum([latency0, latency1, latency2])\n return latency\n ###################################\n\n def forward_flops(self, size, fai=True, beta=True, ratio=True):\n # out_prev: cell-state\n # index 0: keep; index 1: down\n stem = self.stem[0]\n\n if fai:\n fais0 = F.softmax(getattr(self, self._arch_names[0][\"fais\"][0]), dim=-1)\n fais1 = F.softmax(getattr(self, self._arch_names[0][\"fais\"][1]), dim=-1)\n fais2 = F.softmax(getattr(self, self._arch_names[0][\"fais\"][2]), dim=-1)\n fais = [fais0, fais1, fais2]\n else:\n fais = [\n torch.ones_like(getattr(self, self._arch_names[0][\"fais\"][0])).cuda() * 1./len(PRIMITIVES),\n torch.ones_like(getattr(self, self._arch_names[0][\"fais\"][1])).cuda() * 1./len(PRIMITIVES),\n torch.ones_like(getattr(self, self._arch_names[0][\"fais\"][2])).cuda() * 1./len(PRIMITIVES)]\n if beta:\n mjus1 = F.softmax(getattr(self, self._arch_names[0][\"mjus\"][0]), dim=-1)\n mjus2 = F.softmax(getattr(self, self._arch_names[0][\"mjus\"][1]), dim=-1)\n mjus = [None, mjus1, mjus2]\n else:\n mjus = [\n None,\n torch.ones_like(getattr(self, self._arch_names[0][\"mjus\"][0])).cuda() * 1./2,\n torch.ones_like(getattr(self, self._arch_names[0][\"mjus\"][1])).cuda() * 1./2]\n if ratio:\n # thetas = self.sample_prun_ratio(mode='arch_ratio')\n if self.prun_mode is not None:\n thetas = self.sample_prun_ratio(mode=self.prun_mode)\n else:\n thetas = self.sample_prun_ratio(mode=self._prun_modes[0])\n else:\n thetas = self.sample_prun_ratio(mode='max')\n\n stem_flops = 0\n flops, size = stem[0].forward_flops(size); stem_flops = stem_flops + flops\n flops, size = stem[1].forward_flops(size); stem_flops = stem_flops + flops\n flops, size = stem[2].forward_flops(size); stem_flops = stem_flops + flops\n out_prev = [[size, None]] # stem: one cell\n flops_total = [[stem_flops, 0], [0, 0], [0, 0]] # (out, down)\n\n # i: layer | j: scale\n for i, cells in enumerate(self.cells):\n # layers\n out = []\n flops = []\n for j, cell in enumerate(cells):\n # scales\n # out,down -- 0: from down; 1: from keep\n out0 = None; out1 = None\n down0 = None; down1 = None\n fai = fais[j][i-j]\n # ratio: (in, out, down)\n # int: force #channel; tensor: arch_ratio; float(<=1): force width\n if i == 0 and j == 0:\n # first cell\n ratio = (self._stem_head_width[0][0], thetas[j][i-j], thetas[j+1][i-j])\n elif i == self._layers - 1:\n # cell in last layer\n if j == 0:\n ratio = (thetas[j][i-j-1], self._stem_head_width[0][1], None)\n else:\n ratio = (thetas[j][i-j], self._stem_head_width[0][1], None)\n elif j == 2:\n # cell in last scale\n ratio = (thetas[j][i-j], thetas[j][i-j+1], None)\n else:\n if j == 0:\n ratio = (thetas[j][i-j-1], thetas[j][i-j], thetas[j+1][i-j])\n else:\n ratio = (thetas[j][i-j], thetas[j][i-j+1], thetas[j+1][i-j])\n # out,down -- 0: from down; 1: from keep\n if j == 0:\n out1, down1 = cell.forward_flops(out_prev[0][0], fai, ratio)\n out.append((out1[1], down1[1] if down1 is not None else None))\n flops.append([out1[0], down1[0] if down1 is not None else None])\n else:\n if i == j:\n out0, down0 = cell.forward_flops(out_prev[j-1][1], fai, ratio)\n out.append((out0[1], down0[1] if down0 is not None else None))\n flops.append([out0[0], down0[0] if down0 is not None else None])\n else:\n if mjus[j][i-j-1][0] > 0:\n # from down\n out0, down0 = cell.forward_flops(out_prev[j-1][1], fai, ratio)\n if mjus[j][i-j-1][1] > 0:\n # from keep\n out1, down1 = cell.forward_flops(out_prev[j][0], fai, ratio)\n assert (out0 is None and out1 is None) or out0[1] == out1[1]\n assert (down0 is None and down1 is None) or down0[1] == down1[1]\n out.append((out0[1], down0[1] if down0 is not None else None))\n flops.append([\n sum(w * out for w, out in zip(mjus[j][i-j-1], [out0[0], out1[0]])),\n sum(w * down if down is not None else 0 for w, down in zip(mjus[j][i-j-1], [down0[0] if down0 is not None else None, down1[0] if down1 is not None else None])),\n ])\n out_prev = out\n for ii, lat in enumerate(flops):\n # layer: i | scale: ii\n if ii == 0:\n # only from keep\n if lat[0] is not None: flops_total[ii][0] = flops_total[ii][0] + lat[0]\n if lat[1] is not None: flops_total[ii][1] = flops_total[ii][0] + lat[1]\n else:\n if i == ii:\n # only from down\n if lat[0] is not None: flops_total[ii][0] = flops_total[ii-1][1] + lat[0]\n if lat[1] is not None: flops_total[ii][1] = flops_total[ii-1][1] + lat[1]\n else:\n if lat[0] is not None: flops_total[ii][0] = mjus[j][i-j-1][1] * flops_total[ii][0] + mjus[j][i-j-1][0] * flops_total[ii-1][1] + lat[0]\n if lat[1] is not None: flops_total[ii][1] = mjus[j][i-j-1][1] * flops_total[ii][0] + mjus[j][i-j-1][0] * flops_total[ii-1][1] + lat[1]\n ###################################\n flops0 = flops_total[0][0]\n flops1 = flops_total[1][0]\n flops2 = flops_total[2][0]\n flops = sum([flops0, flops1, flops2])\n return flops\n ###################################\n def _loss(self, arg, input, target, pretrain=False):\n losses = []\n val_losses = []\n running_val_loss = 0.0\n if pretrain is not True:\n # \"random width\": sampled by gambel softmax\n self.prun_mode = None\n for idx in range(len(self._arch_names)):\n #self.arch_idx = idx\n logits = self(arg,input,target)\n losses = compute_losses(arg,target,logits)\n losses[\"loss\"].backward()\n #loss = loss + sum(self._criterion(logit, target) for logit in logits)\n if len(self._width_mult_list) > 1:\n self.prun_mode = \"max\"\n logits = self(arg, input, target)\n losses = compute_losses(arg, target, logits)\n losses[\"loss\"].backward()\n self.prun_mode = \"min\"\n logits = self(arg, input, target)\n losses = compute_losses(arg, target, logits)\n losses[\"loss\"].backward()\n return losses\n\n def _build_arch_parameters(self, idx):\n num_ops = len(PRIMITIVES)\n\n # define names\n fais = [ \"fai_\"+str(idx)+\"_\"+str(scale) for scale in [0, 1, 2] ]\n mjus = [ \"beta_\"+str(idx)+\"_\"+str(scale) for scale in [1, 2] ]\n\n setattr(self, fais[0], nn.Parameter(Variable(1e-3*torch.ones(self._layers, num_ops), requires_grad=True)))\n setattr(self, fais[1], nn.Parameter(Variable(1e-3*torch.ones(self._layers-1, num_ops), requires_grad=True)))\n setattr(self, fais[2], nn.Parameter(Variable(1e-3*torch.ones(self._layers-2, num_ops), requires_grad=True)))\n # mjus are now in-degree probs\n # 0: from down; 1: from keep\n setattr(self, mjus[0], nn.Parameter(Variable(1e-3*torch.ones(self._layers-2, 2), requires_grad=True)))\n setattr(self, mjus[1], nn.Parameter(Variable(1e-3*torch.ones(self._layers-3, 2), requires_grad=True)))\n\n thetas = [ \"ratio_\"+str(idx)+\"_\"+str(scale) for scale in [0, 1, 2] ]\n if self._prun_modes[idx] == 'arch_ratio':\n # prunning ratio\n num_widths = len(self._width_mult_list)\n else:\n num_widths = 1\n setattr(self, thetas[0], nn.Parameter(Variable(1e-3*torch.ones(self._layers-1, num_widths), requires_grad=True)))\n setattr(self, thetas[1], nn.Parameter(Variable(1e-3*torch.ones(self._layers-1, num_widths), requires_grad=True)))\n setattr(self, thetas[2], nn.Parameter(Variable(1e-3*torch.ones(self._layers-2, num_widths), requires_grad=True)))\n\n\n\n\n\n return {\"fais\": fais, \"mjus\": mjus, \"thetas\": thetas}, [getattr(self, name) for name in fais] + [getattr(self, name) for name in mjus] + [getattr(self, name) for name in thetas]\n\n def _reset_arch_parameters(self, idx):\n num_ops = len(PRIMITIVES)\n if self._prun_modes[idx] == 'arch_ratio':\n # prunning ratio\n num_widths = len(self._width_mult_list)\n else:\n num_widths = 1\n\n getattr(self, self._arch_names[idx][\"fais\"][0]).data = Variable(1e-3*torch.ones(self._layers, num_ops), requires_grad=True)\n getattr(self, self._arch_names[idx][\"fais\"][1]).data = Variable(1e-3*torch.ones(self._layers-1, num_ops), requires_grad=True)\n getattr(self, self._arch_names[idx][\"fais\"][2]).data = Variable(1e-3*torch.ones(self._layers-2, num_ops), requires_grad=True)\n getattr(self, self._arch_names[idx][\"mjus\"][0]).data = Variable(1e-3*torch.ones(self._layers-2, 2), requires_grad=True)\n getattr(self, self._arch_names[idx][\"mjus\"][1]).data = Variable(1e-3*torch.ones(self._layers-3, 2), requires_grad=True)\n getattr(self, self._arch_names[idx][\"thetas\"][0]).data = Variable(1e-3*torch.ones(self._layers-1, num_widths), requires_grad=True)\n getattr(self, self._arch_names[idx][\"thetas\"][1]).data = Variable(1e-3*torch.ones(self._layers-1, num_widths), requires_grad=True)\n getattr(self, self._arch_names[idx][\"thetas\"][2]).data = Variable(1e-3*torch.ones(self._layers-2, num_widths), requires_grad=True)\n #getattr(self, self._arch_names[idx][\"log_latency\"][0]).data = Variable(torch.zeros((1,), requires_grad=True))\n #getattr(self, self._arch_names[idx][\"log_flops\"][0]).data = Variable(torch.zeros((1,), requires_grad=True))\n","repo_name":"douziwenhit/FasterMDE","sub_path":"train_new/model_search.py","file_name":"model_search.py","file_ext":"py","file_size_in_byte":55533,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"39551914208","text":"# -*- coding: utf-8 -*-\nimport datetime\nimport json\nimport socketserver\n\n\"\"\"\nVariables and functions that must be used by all the ClientHandler objects\nmust be written here (e.g. a dictionary for connected clients)\n\"\"\"\n\n# Dictionary\nclients = {}\nhistory_list = {}\n\nclass ClientHandler(socketserver.BaseRequestHandler):\n \"\"\"\n This is the ClientHandler class. Everytime a new client connects to the\n server, a new ClientHandler object will be created. This class represents\n only connected clients, and not the server itself. If you want to write\n logic for the server, you must write it outside this class\n \"\"\"\n\n username = \"\"\n timestamp = \"\"\n is_logged_in = False\n\n def handle(self):\n \"\"\"\n This method handles the connection between a client and the server.\n \"\"\"\n self.ip = self.client_address[0]\n self.port = self.client_address[1]\n self.connection = self.request\n\n # Loop that listens for messages from the client\n while True:\n print(\"Listening!\")\n self.timestamp = datetime.datetime.now().strftime('%H.%M %d %b')\n received_string = self.connection.recv(4096)\n if not received_string:\n print('error!')\n break\n decoded_object = json.loads(received_string.decode(\"utf-8\"))\n request = decoded_object['request']\n content = decoded_object['content']\n print(\"Found something! request:\",request,\", content:\",content)\n if request == 'login':\n self.login(content)\n elif request == 'logout':\n self.logout()\n elif request == 'names':\n self.names()\n elif request == 'help':\n self.help()\n elif request == 'msg':\n self.msg(content)\n elif request == 'history':\n self.history()\n\n def login(self, username):\n global clients\n self.username = username\n self.is_logged_in = True\n clients[username] = self\n self.send_response('server', 'info', 'Login successful!', False, False)\n\n def logout(self):\n if self.username:\n global clients\n del clients[self.username]\n self.send_response('server', 'info', 'Logout successful', False)\n\n def names(self):\n names = []\n for username in clients:\n names.append(username)\n strigToReturn = 'All users in this channel: ' + str(names)\n self.send_response('server', 'info', strigToReturn, False)\n\n def help(self):\n help_string = '\\nThese are the available commands:'\n help_string += '\\nlogin - Logs in to the server'\n help_string += '\\nlogout- Logs out'\n help_string += '\\nnames - Returns a list of all the connected clients\\' names'\n help_string += '\\nmsg - Sends the enclosed message to all connected clients'\n help_string += '\\nhistory - lists all the messages posted to this server'\n self.send_response('server', 'info', help_string, False, False)\n\n def msg(self, message):\n if self.username:\n global history_list\n if not self.username in history_list:\n history_list[self.username] = []\n history_list[self.username].append(message)\n self.send_response(self.username, 'message', message, True)\n else:\n self.send_response('server', 'info', 'error inc', False)\n\n def history(self):\n history_string = ''\n if history_list:\n for username, user_history in history_list.items():\n history_string += 'User ' + username + ' has posted the following messages:\\n'\n for post in user_history:\n history_string += '\\t' + post + '\\n'\n else:\n history_string = 'No messages in the server\\'s history.'\n self.send_response('server', 'history', history_string, False)\n\n def send_response(self, sender, response, message, send_to_all, must_be_logged_in = True):\n if must_be_logged_in and not self.is_logged_in:\n raw_respone = {\n 'timestamp': self.timestamp,\n 'sender': 'server',\n 'response': 'error',\n 'content': 'You need to log in!'\n }\n else:\n raw_respone = {\n 'timestamp': self.timestamp,\n 'sender': sender,\n 'response': response,\n 'content': message\n }\n JSON_response = json.dumps(raw_respone).encode(\"utf-8\")\n\n if send_to_all:\n for username, client in clients.items():\n client.connection.send(JSON_response)\n else:\n self.connection.send(JSON_response)\n\nclass ThreadedTCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer):\n \"\"\"\n This class is present so that each client connected will be ran as a own\n thread. In that way, all clients will be served by the server.\n\n No alterations are necessary\n \"\"\"\n allow_reuse_address = True\n\nif __name__ == \"__main__\":\n \"\"\"\n This is the main method and is executed when you type \"python Server.py\"\n in your terminal.\n\n No alterations are necessary\n \"\"\"\n HOST, PORT = '78.91.69.136', 30000\n print('Server running...')\n\n # Set up and initiate the TCP server\n server = ThreadedTCPServer((HOST, PORT), ClientHandler)\n server.serve_forever()\n","repo_name":"finnss/KTN-Project","sub_path":"Server/Server.py","file_name":"Server.py","file_ext":"py","file_size_in_byte":5511,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27787608091","text":"import seaborn as sns\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom src.cardpool import builder\nfrom src.apimanager.apifields import APICollectibleFields\n\n\n# TODO refactor duplicate code (mostly matplotlib stuff)\n\n\nclass CardPoolVisualizer(builder.CardPoolBuilder):\n def __init__(self, card_pool, path_to_plots, save=True):\n super().__init__(card_pool)\n self.path_to_plots = path_to_plots\n self.save = save\n\n def _distplot(self, data, xlabel, ylabel, plot_title, kde=False, save_fig=True, save_title=None):\n sns.set()\n plt.figure()\n sns.distplot(data[APICollectibleFields.COST], kde=kde,\n bins=max(data[APICollectibleFields.COST].unique().tolist()),\n color='Red')\n plt.xlabel(xlabel)\n plt.ylabel(ylabel)\n plt.title(plot_title)\n if save_fig:\n self.save_plot(save_title)\n plt.tight_layout()\n plt.show()\n\n @staticmethod\n def annotation():\n pass\n\n @staticmethod\n def plt_customization():\n pass\n\n def save_plot(self,\n plot_title,\n extension='.png'):\n plt.savefig('{path}{title}{ext}'.format(path=self.path_to_plots,\n title=plot_title,\n ext=extension), bbox_inches='tight')\n\n def cost_distribution(self, complete=True, minions=False, spells=False, kde=False):\n if complete:\n self._distplot(self.card_pool,\n 'Mana Cost',\n 'Total Cards',\n 'Cost Distribution: All cards',\n kde=kde,\n save_title='cost_distribution_kde_{}'.format(kde))\n if minions:\n self._distplot(self.minions,\n 'Mana Cost',\n 'Total Minions',\n 'Cost Distribution: Minions',\n kde=kde,\n save_title='minion_distribution_kde_{}'.format(kde))\n if spells:\n self._distplot(self.spells,\n 'Mana Cost',\n 'Total Spells',\n 'Cost Distribution: Spells',\n kde=kde,\n save_title='spell_distribution_kde_{}'.format(kde))\n\n def generate_countplots(self, adventure=False):\n sns.set(palette='bright')\n xpos = 'center'\n xpos = xpos.lower()\n ha = {'center': 'center',\n 'right': 'left',\n 'left': 'right'}\n offset = {'center': 0.5,\n 'right': 0.60, # 0.57\n 'left': 0.45} # 0.43\n countable_fields = APICollectibleFields.COUNTABLE_FIELDS\n if adventure:\n countable_fields.remove(APICollectibleFields.FACTION)\n for countable in countable_fields:\n plt.figure()\n ax = sns.countplot(x=countable, data=self.card_pool)\n if not np.issubdtype(self.card_pool[countable], np.integer):\n ax.set_xticklabels(ax.get_xticklabels(), rotation=40, ha=\"right\")\n # Annotate the top of the bars with their corresponding values\n for rect in ax.patches:\n height = rect.get_height()\n ax.text(rect.get_x() + rect.get_width() * offset[xpos], 1.002 * height,\n '{}'.format(height), ha=ha[xpos], va='bottom', rotation=90, fontsize=11)\n plt.ylim(0, max(self.card_pool[countable].value_counts()) * 1.20)\n plt.xlabel(countable.upper())\n plt.ylabel('counts'.upper())\n plt.title('{} counts'.format(countable).upper())\n if self.save:\n self.save_plot('{}_counts'.format(countable))\n plt.tight_layout()\n plt.show()\n\n def generate_avg_stats_plot(self):\n ax = sns.barplot(x='MANA_COST', y='STATS', data=self.avg_stats(), hue='TYPE_OF_STATS', palette='seismic')\n xpos = 'center'\n xpos = xpos.lower() # normalize the case of the parameter\n ha = {'center': 'center',\n 'right': 'left',\n 'left': 'right'}\n offset = {'center': 0.5,\n 'right': 0.60,\n 'left': 0.45}\n # Annotate the top of the bars with their corresponding values\n for rect in ax.patches:\n height = rect.get_height()\n ax.text(rect.get_x() + rect.get_width() * offset[xpos], 1.008 * height,\n '{}'.format(height), ha=ha[xpos], va='bottom', rotation=90, fontsize=11)\n # Customize plot's Legend\n leg = ax.legend(loc=2)\n leg.set_title('Type of Stats')\n for t, l in zip(leg.texts, ['Average Attack', 'Average Health']):\n t.set_text(l)\n plt.ylim(0, 12)\n plt.xlabel('Mana Cost')\n plt.ylabel('Average Stats')\n plt.title('Average Stats Per Mana Cost')\n sns.despine()\n if self.save:\n self.save_plot('average_stats')\n plt.show()\n\n def stats_per_race(self):\n sns.set()\n avg_stats = self.avg_stats_by_race()\n races = avg_stats['RACE'].unique().tolist()\n xpos = 'center'\n xpos = xpos.lower() # normalize the case of the parameter\n ha = {'center': 'center',\n 'right': 'left',\n 'left': 'right'}\n offset = {'center': 0.5,\n 'right': 0.60,\n 'left': 0.45}\n for race in races:\n plt.figure()\n ax = sns.barplot(x='COST', y='STATS', data=avg_stats[avg_stats['RACE'] == race],\n hue='STATS TYPE', palette='seismic')\n # Annotate the top of the bars with their corresponding values\n for rect in ax.patches:\n height = rect.get_height()\n if height == 0:\n continue\n ax.text(rect.get_x() + rect.get_width() * offset[xpos], 1.008 * height,\n '{}'.format(height), ha=ha[xpos], va='bottom', rotation=90, fontsize=11)\n\n leg = ax.legend(loc=2)\n leg.set_title('Type of Stats')\n for t, l in zip(leg.texts, ['Average Attack', 'Average Health']):\n t.set_text(l)\n plt.ylim(0, avg_stats[avg_stats['RACE'] == race]['STATS'].max() + 2)\n plt.xlabel('Mana Cost')\n plt.ylabel('Average Stats')\n plt.title('Average Stats Per Mana Cost: ' + race)\n sns.despine()\n if self.save:\n self.save_plot('avg_stats_{}'.format(race.lower()))\n plt.show()\n\n def probability_plots(self):\n sns.set(palette='muted')\n ax = sns.barplot(x='cost', y='probability', data=self.probabilities(), hue='mechanics', palette='Set1')\n xpos = 'center'\n xpos = xpos.lower() # normalize the case of the parameter\n ha = {'center': 'center',\n 'right': 'left',\n 'left': 'right'}\n offset = {'center': 0.5,\n 'right': 0.60,\n 'left': 0.45}\n # Annotate the top of the bars with their corresponding values\n for rect in ax.patches:\n height = rect.get_height()\n if height == 0:\n continue\n ax.text(rect.get_x() + rect.get_width() * offset[xpos], 1.008 * height,\n '{}%'.format(int(height)), ha=ha[xpos], va='bottom', rotation=90, fontsize=7)\n # Customize plot's Legend\n leg = ax.legend(loc=0)\n leg.set_title('Type of Mechanic')\n plt.ylim(0, self.probabilities()['probability'].max() + 5)\n plt.xlabel('Mana Cost')\n plt.ylabel('Probability')\n plt.title('Taunt, Rush, Charge Probabilities per Cost')\n sns.despine()\n if self.save:\n self.save_plot('probabilities')\n plt.show()\n","repo_name":"RottenCrab/HearthVizualizer","sub_path":"src/cardpool/visualizer.py","file_name":"visualizer.py","file_ext":"py","file_size_in_byte":7968,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"41927679285","text":"import pygame, sys\nimport time\nfrom pygame.locals import *\n\npygame.init()\n\n#constants\nDOWNLEFT = 'downleft'\nDOWNRIGHT = 'downright'\nUPLEFT = 'upleft'\nUPRIGHT = 'upright'\nMOVESPEED = 4\nWHITE = (255, 255, 255)\nRED = (255, 0, 0)\nGREEN = (0, 255, 0)\nBLUE = (0, 0, 255)\nWINDOW_V = 400\nWINDOW_H = 400\n\n#main window\nwindow_surface = pygame.display.set_mode((WINDOW_H, WINDOW_V), 0, 32)\npygame.display.set_caption(\"Basic animation\")\n\n#boxes\nb1 = {'rect': pygame.Rect(300, 80, 50, 100), 'color': RED, 'dir': UPRIGHT}\nb2 = {'rect':pygame.Rect(200, 200, 20, 20), 'color':GREEN, 'dir':UPLEFT}\nb3 = {'rect':pygame.Rect(100, 150, 60, 60), 'color':BLUE, 'dir':DOWNLEFT}\nboxes = [b1, b2, b3]\n\n#main loop\nwhile True:\n for event in pygame.event.get():\n if event.type == QUIT:\n pygame.quit()\n sys.exit()\n \n window_surface.fill(WHITE)\n \n for box in boxes:\n if box['dir'] == DOWNRIGHT:\n box['rect'].left += MOVESPEED\n box['rect'].top += MOVESPEED\n if box['dir'] == DOWNLEFT:\n box['rect'].left -= MOVESPEED\n box['rect'].top += MOVESPEED\n if box['dir'] == UPLEFT:\n box['rect'].left -= MOVESPEED\n box['rect'].top -= MOVESPEED\n if box['dir'] == UPRIGHT:\n box['rect'].left += MOVESPEED\n box['rect'].top -= MOVESPEED\n \n if box['rect'].top < 0:\n if box['dir'] == UPRIGHT:\n box['dir'] = DOWNRIGHT\n if box['dir'] == UPLEFT:\n box['dir'] = DOWNLEFT\n \n if box['rect'].right > WINDOW_H:\n if box['dir'] == UPRIGHT:\n box['dir'] = UPLEFT\n if box['dir'] == DOWNRIGHT:\n box['dir'] = DOWNLEFT\n \n if box['rect'].bottom > WINDOW_V:\n if box['dir'] == DOWNLEFT:\n box['dir'] = UPLEFT\n if box['dir'] == DOWNRIGHT:\n box['dir'] = UPRIGHT \n \n if box['rect'].left < 0:\n if box['dir'] == UPLEFT:\n box['dir'] = UPRIGHT \n if box['dir'] == DOWNLEFT:\n box['dir'] = DOWNRIGHT\n \n pygame.draw.rect(window_surface, box['color'], box['rect'])\n \n pygame.display.update()\n time.sleep(0.02)\n","repo_name":"HardEnoughy/games_on_python","sub_path":"Pygame/basic_animation.py","file_name":"basic_animation.py","file_ext":"py","file_size_in_byte":2271,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"41245417164","text":"import pymongo\nimport re\n\n# hidden DB information\nclient = pymongo.MongoClient(\"\")\ndb = client[ \"\" ]\ncol = db[ \"\" ] \n\n\n \ndef handler(event, context):\n \n maskFlag = 0\n socialDistancingFlag = 0\n sickFlag = 0\n dirtyFlag = 0\n \n maskWords = ['not wearing', 'not covering', 'no mask', 'under chin', 'under his chin', 'under her chin', 'under their chin', 'without mask', 'took off mask', 'without a mask', 'without his mask', 'without her mask', 'took off his mask', 'took off her mask', 'took off their mask', 'under nose', 'under his nose', 'under her nose', 'under their nose']\n socialDistancing = ['too many people', 'social distancing', 'close', 'group', 'groups', 'crowd', 'crowds', 'crowded', 'no space', '6 feet', 'close', 'touching', 'shaking hands', 'sharing food', 'packed', 'gathering', 'not socially distanc']\n sick = ['cough', 'coughing', 'sick', 'ill', 'sneeze', 'sneezing', 'sneezed', 'puke', 'debilitated', 'infected', 'green', 'ailing', 'frail', 'fever', 'feverish', 'vomit', ]\n dirty = ['dirty', 'nasty', 'gross', 'not clean', 'unsanitary', 'unclean', 'not sanitary', 'grubby', 'filthy', 'unwashed', 'not washed', 'stains', 'stain', 'smeared', 'kams']\n \n cmpl = event['Complaints'].lower()\n addr = event['Address']\n\n for word in maskWords:\n if word in cmpl:\n maskFlag = 1\n break\n for word in socialDistancing:\n if word in cmpl:\n socialDistancingFlag = 1\n break\n for word in sick:\n if word in cmpl:\n sickFlag = 1\n break\n for word in dirty:\n if word in cmpl:\n dirtyFlag = 1\n break\n firstHalf = addr.split(' ')[0]\n firstHalf = re.sub(\"[^0-9]\", \"\", firstHalf)\n street_address = addr.split(',')[0].split(' ')\n processed_address = [street_address[0] + ' ' + ' '.join(filter(lambda x: ('#' not in x and 'suite' not in x.lower() and 'ste' not in x.lower()), street_address[1:]))] + addr.split(',')[1:]\n processed_address = ','.join(processed_address)\n personDocument = {\n \"Address\": processed_address,\n \"violations\": [cmpl],\n \"mask\": maskFlag,\n \"socialDistancing\": socialDistancingFlag,\n \"sick\": sickFlag,\n \"dirty\": dirtyFlag\n }\n if(col.find({'Address': processed_address}).count() > 0):\n myquery = { \"Address\": processed_address }\n curViol = col.find({'Address': processed_address})\n violList = [cmpl]\n numMask = 0\n numSocialDist = 0\n numSick = 0\n numDirty = 0\n for x in curViol:\n numMask = x[\"mask\"]\n numSocialDist = x[\"socialDistancing\"]\n numSick = x[\"sick\"]\n numDirty = x[\"dirty\"]\n if(isinstance(x[\"violations\"], str)):\n violList.append(x[\"violations\"])\n else:\n for violation in x[\"violations\"]:\n violList.append(violation)\n newvalues = { \"$set\": { \"violations\": violList, \"mask\": numMask + maskFlag, \"socialDistancing\": numSocialDist + socialDistancingFlag, \"sick\": numSick + sickFlag, \"dirty\": numDirty + dirtyFlag} }\n col.update_one(myquery, newvalues)\n else:\n col.insert_one(personDocument)\n\n client.close()\n return\n","repo_name":"balooop/covid-tracker","sub_path":"mysql/customerComplaints/customerComplaints.py","file_name":"customerComplaints.py","file_ext":"py","file_size_in_byte":3057,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"5012416544","text":"import numpy as np\n\nfrom duplicates_model import DuplicatesModels\nfrom learn_engine import LearnEngine\n\nimport app_env\nimport helpers\nfrom data_loader import DataLoader\n\nimport os\n\nclass DuplicatesEngine:\n def __init__(self):\n self.md = DuplicatesModels()\n self.md_loaded = False\n\n def get_idea_duplicates(self, idea_id, with_own_project=True, project_ids=None,\n idea_batch_size=app_env.ml_params_dataset_scoring_limit()):\n if project_ids is None:\n project_ids = []\n\n dl = DataLoader()\n df = dl.ideas(idea_id, with_own_project=with_own_project, project_ids=project_ids)\n df['answer'] = np.nan\n\n result = self.idea_duplicates_by_batch(idea_id, df, idea_batch_size=idea_batch_size)\n\n return result\n\n def idea_duplicates_by_batch(self, idea_id, df,\n idea_batch_size=app_env.ml_params_dataset_scoring_limit()):\n result = {}\n\n if idea_batch_size is not None:\n index_start = 0\n index_stop = idea_batch_size\n while True:\n df1 = df.iloc[index_start:index_stop]\n if len(df1) == 0:\n break\n result_batch = self.__idea_duplicates(idea_id, df1)\n for k in result_batch:\n v = result.setdefault(k, [])\n v += result_batch[k]\n index_start = index_stop\n index_stop += idea_batch_size\n else:\n result = self.__idea_duplicates(idea_id, df)\n\n return result\n\n def __idea_duplicates(self, idea_id, df):\n self.load_md()\n\n results_proba = self.md.predict(df)\n results = helpers.expand(df).copy()\n results['proba'] = list(results_proba) + list(results_proba)\n results['is_duplicate'] = (results['proba'] > self.md.th).astype(int)\n results['scoring_search_filter'] = df['scoring_search_filter'].values[0]\n\n def project_apply(row):\n if row.is_own_project is True:\n return 'own_project'\n else:\n return row.project_id2\n\n results['project'] = results[['project_id2', 'is_own_project']].apply(project_apply, axis=1)\n\n results_dups = results[results['is_duplicate'] == 1]\n results_dups.sort_values(by='proba', ascending=False, inplace=True)\n\n result_ideas = results_dups[results['id2'] != idea_id]\n result_ideas = result_ideas[['id2', 'proba', 'project']].copy()\n result_ideas = result_ideas.rename(columns={'id2': 'id', 'proba': 'score'})\n\n result_array = result_ideas.to_dict('records')\n result_dict = {}\n for row in result_array:\n v = result_dict.setdefault(row['project'], [])\n row_copy = row.copy()\n del row_copy['project']\n v.append(row_copy)\n\n return result_dict\n\n def ideas_for_project(self, project_id):\n return DataLoader().ideas_in_project(project_id)\n\n def learn(self):\n learn_engine = LearnEngine(self.md)\n\n self.md = learn_engine.learn()\n self.md_loaded = True\n\n def load_md(self):\n if self.md_loaded is False:\n data_dir = app_env.data_model_runtime_path('v3')\n if(os.path.isdir(data_dir)):\n path_for_load = data_dir\n data_file = app_env.data_model_runtime_path('v3.pkl')\n if(os.path.isfile(data_file)):\n path_for_load = data_file\n self.md.load(path_for_load)\n self.md_loaded = True\n","repo_name":"alik1993/duplicates","sub_path":"python/duplicates_engine.py","file_name":"duplicates_engine.py","file_ext":"py","file_size_in_byte":3574,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"43828086157","text":"# -*- coding: utf-8 -*-\n\nimport os\nimport json\nimport yaml\nimport logging\nimport logging.config\nimport time\nimport traceback\nimport pathlib\n\nimport aiohttp\nfrom aiohttp import web\nimport numpy\n\nfrom word2vec.w2v import Word2Vec\nfrom word2vec.svc_config import SvcConfig\n\n\ndef _get_logger():\n logger = logging.getLogger('word2vec.server')\n return logger\n\n\nclass JsonEncoder(json.JSONEncoder):\n def default(self, obj):\n if isinstance(obj, numpy.integer):\n return int(obj)\n elif isinstance(obj, numpy.floating):\n return float(obj)\n elif isinstance(obj, numpy.ndarray):\n return obj.tolist()\n else:\n return super(JsonEncoder, self).default(obj)\n\n\nclass Word2VecServer:\n def __init__(self):\n self.__w2v = None\n self.__mean = None\n self.__dim = None\n self.__loading = True\n self.logger = _get_logger()\n\n def load(self, path):\n wv = Word2Vec(path=path)\n self.logger.info(\"Loading vectors...\")\n time1 = time.time()\n self.__w2v = wv.load_embeddings()\n self.__loading = False\n self.__dim = len(list(self.__w2v.values())[-1])\n self.__mean = wv.get_mean_norm(self.__w2v)\n time2 = time.time()\n self.logger.info(\n \"Done loading vectors - took {}\".format(time2 - time1))\n\n def gen_random_mean_norm_vector(self):\n tmp = numpy.random.normal(size=self.__dim).astype(numpy.float64)\n tmp /= numpy.linalg.norm(tmp) / self.__mean\n return tmp\n\n async def handle_reload(self, request):\n data = await request.json()\n if 'path' not in data:\n raise web.HTTPBadRequest()\n path = data['path']\n self.load(path)\n return web.Response()\n\n async def handle_request_multiple_words(self, request):\n \"\"\"\n This endpoint handles a request that takes a JSON array of words, and returns\n a dictionary containing the vectorization of those words.\n Example:\n Request: {\"words\" : [\"word1\", \"word2\"]}\n Assuming we have the vectorisation for word1 but not for word2\n Response: {\"vectors\":{\"word1\":[...], \"word2\":null}}\n \"\"\"\n\n data = await request.json()\n if 'words' not in data:\n raise web.HTTPBadRequest()\n words = data['words']\n self.logger.info(\"Request for {} words\".format(len(words)))\n wordvec_dict = {}\n try:\n for word in words:\n vecs = self.__w2v.get(word)\n if vecs is not None:\n wordvec_dict[word] = vecs\n else:\n self.logger.info(\"unknown word {}\".format(word))\n json_response = json.dumps({'vectors': wordvec_dict},\n cls=JsonEncoder)\n return web.json_response(body=json_response)\n except Exception:\n self.logger.exception(\"Error obtaining the vectors\")\n raise\n\n async def handle_request_health(self, request):\n return web.Response(status=200)\n\n async def handle_request_unknown_words(self, request):\n data = await request.json()\n if 'words' not in data:\n raise web.HTTPBadRequest()\n words = data['words']\n self.logger.info(\"checking for unknown words from {} words\".format(\n len(words)))\n try:\n unk_words = [w for w in words if w not in self.__w2v.keys()]\n json_response = json.dumps({'unk_words': unk_words},\n cls=JsonEncoder)\n return web.json_response(body=json_response)\n except Exception:\n self.logger.exception(\"Error obtaining unknown words\")\n raise\n\n\nLOGGING_CONFIG_TEXT = \"\"\"\nversion: 1\nroot:\n level: DEBUG\n handlers: ['console']\nformatters:\n json:\n class: pythonjsonlogger.jsonlogger.JsonFormatter\n format: \"(asctime) (levelname) (name) (message)\"\nfilters:\n w2vlogfilter:\n (): word2vec.server.W2vLogFilter\nhandlers:\n console:\n class: logging.StreamHandler\n level: INFO\n stream: ext://sys.stdout\n formatter: json\n filters: [w2vlogfilter]\n\"\"\"\n\n\n@web.middleware\nasync def log_error_middleware(request, handler):\n try:\n response = await handler(request)\n except aiohttp.web_exceptions.HTTPException:\n # assume if we're throwing this that it's already logged\n raise\n except Exception:\n _get_logger().exception(\"Unexpected exception in call\")\n\n error_string = \"Internal Server Error\\n\" + traceback.format_exc()\n raise aiohttp.web_exceptions.HTTPInternalServerError(text=error_string)\n return response\n\n\ndef initialize_web_app(app, w2v_server):\n app.middlewares.append(log_error_middleware)\n app.router.add_post('/words', w2v_server.handle_request_multiple_words)\n app.router.add_get('/health', w2v_server.handle_request_health)\n app.router.add_post('/unk_words', w2v_server.handle_request_unknown_words)\n app.router.add_post('/reload', w2v_server.handle_reload)\n\n\nclass W2vLogFilter(logging.Filter):\n def __init__(self):\n self.language = os.environ.get(\"W2V_LANGUAGE\", \"en\")\n self.version = os.environ.get(\"W2V_VERSION\", None)\n\n def filter(self, record):\n \"\"\"Add language, and if available, the version\"\"\"\n record.w2v_language = self.language\n if self.version:\n record.w2v_version = self.version\n return True\n\n\ndef main():\n \"\"\"Main function\"\"\"\n logging_config_file = os.environ.get(\"LOGGING_CONFIG_FILE\", None)\n if logging_config_file:\n logging_config_path = pathlib.Path(logging_config_file)\n with logging_config_path.open() as file_handle:\n logging_config = yaml.safe_load(file_handle)\n else:\n logging_config = yaml.safe_load(LOGGING_CONFIG_TEXT)\n print(\"*** LOGGING CONFIG ***\")\n print(logging_config)\n print(\"*** LOGGING CONFIG ***\")\n logging.config.dictConfig(logging_config)\n\n config = SvcConfig.get_instance()\n server = Word2VecServer()\n server.load(config.vectors_file)\n\n app = web.Application()\n initialize_web_app(app, server)\n web.run_app(app, port=config.server_port)\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"hutomadotAI/word2vec","sub_path":"src/word2vec/server.py","file_name":"server.py","file_ext":"py","file_size_in_byte":6257,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"21241076143","text":"import json\n\nfrom django.contrib import auth\nfrom django.contrib.auth.decorators import login_required\nfrom django.forms import model_to_dict\nfrom django.http import HttpResponseNotFound, HttpResponseRedirect, HttpResponse, JsonResponse\nfrom django.shortcuts import render, get_object_or_404, redirect\nfrom django.core.paginator import Paginator, EmptyPage, PageNotAnInteger\nfrom django.views.decorators.http import require_http_methods, require_POST\n\nfrom app.forms import *\nfrom app.models import *\nfrom app.utilits import *\n\n\ndef paginate(content, request, number):\n paginator = Paginator(content, number)\n page_num = request\n return paginator.get_page(page_num)\n\ndef search(query, request, search_field):\n search_query = request.GET.get('search','')\n if search_query:\n if search_field == 'title':\n return query.filter(title__icontains=search_query).all()\n elif search_field == 'content':\n return query.filter(content__icontains=search_query).all()\n else:\n return query.all()\n\ndef index(request):\n new_questions = search(Question.new_questions, request, 'title')\n questions = paginate(new_questions, request.GET.get('page'), 20)\n return render(request, \"index.html\", {\"questions\":questions})\n\ndef hot(request):\n hot_questions = search(Question.hot_questions, request, 'title')\n questions = paginate(hot_questions, request.GET.get('page'), 20)\n return render(request, \"hot.html\", {\"questions\":questions})\n\ndef question(request, id):\n\n if request.method == 'POST':\n form = AnswerForm(request.user, id, data=request.POST)\n if form.is_valid():\n quest = form.save().question\n url = quest\n return redirect(url)\n else:\n form = AnswerForm(request.user, id)\n\n question = get_object_or_404(Question, pk = id)\n\n answers = Answer.answers.filter(question = question)\n answers = search(answers, request, 'content')\n\n answers = paginate(answers, request.GET.get('page'), 10)\n return render(request, \"question.html\", {\"question\":question, \"answers\":answers, \"form\":form,})\n\n\n\n@login_required\ndef ask(request):\n if request.method == 'POST':\n form = QuestionForm(request.user, data=request.POST)\n if form.is_valid():\n question = form.save() #?\n url = question.get_absolute_url()\n return redirect(url)\n else:\n form = QuestionForm(request.user, data=request.POST)\n return render(request, \"ask.html\", {'form':form, })\n\ndef login(request):\n if request.method == 'POST':\n form = LoginForm(request.POST)\n if form.is_valid():\n user = auth.authenticate(request, **form.cleaned_data)\n if user:\n print(user)\n auth.login(request, user)\n\n return redirect(reverse('home'))\n else:\n form.add_error(None, 'Incorrect login or password')\n else:\n form = LoginForm()\n\n return render(request, \"login.html\", { \"form\":form })\n\n@login_required()\ndef logout(request):\n auth.logout(request)\n return redirect(reverse('login'))\n\ndef signup(request):\n if request.method == 'POST':\n user_form = UserForm(request.POST, request.FILES)\n if user_form.is_valid():\n new_user = user_form.save(commit=False)\n new_user.set_password(user_form.cleaned_data['password'])\n new_user.save()\n\n new_profile = Profile.users.create(user=new_user)\n new_profile.avatar = user_form.cleaned_data['avatar']\n new_profile.save()\n auth.login(request, new_user)\n return redirect(reverse('home'))\n else:\n\n print(\"bad\")\n\n else:\n user_form = UserForm()\n return render(request, 'signup.html', {'user_form':user_form})\n\n\n\ndef tag(request, slug):\n tag_questions = get_object_or_404(Tag.tags.filter(tag=slug)).questions.all()\n\n questions = paginate(tag_questions, request.GET.get('page'), 20)\n return render(request, \"tag.html\", {\"questions\":questions, \"slug\":slug})\n\n@login_required\n@require_http_methods(['GET','POST'])\ndef settings(request):\n if request.method == 'POST':\n initial_data = request.POST\n instance = request.user\n user_form = SettingsForm(initial=initial_data, instance = instance, files = request.FILES)\n if user_form.is_valid():\n user_form.save()\n\n return redirect(reverse('home'))\n else:\n initial_data = model_to_dict(request.user)\n initial_data['avatar'] = request.user.profile.avatar\n user_form = SettingsForm(initial=initial_data)\n\n\n return render(request, \"settings.html\", {\"user_form\":user_form, })\n\n@login_required\n@require_POST\ndef vote(request):\n type_vote = request.POST['vote']\n type_object = request.POST['type_object']\n object_id = request.POST['object_id']\n user = request.user\n if type_object == 'question':\n print(\"tyt\")\n object = Question.new_questions.get(id=object_id)\n vote = Question.hot_questions.is_liked(user, object_id)\n else:\n object = Answer.answers.get(id=object_id)\n vote = Answer.answers.is_liked(user, object_id)\n\n print(vote)\n if vote:\n if vote.type_vote == int(type_vote):\n vote.delete()\n elif vote.type_vote == -1:\n vote.delete()\n vote = Vote.objects.create(user=user, content_object=object, type_vote=1)\n vote.save()\n else:\n vote.delete()\n vote = Vote.objects.create(user=user, content_object=object, type_vote=-1)\n vote.save()\n else:\n print('net')\n vote = Vote.objects.create(user=user, content_object=object, type_vote=type_vote)\n vote.save()\n\n likes = object.votes.likes().count()\n print(likes)\n # likes=0\n # dislikes=0\n dislikes = object.votes.dislikes().count()\n print(dislikes)\n response_data = {}\n response_data['likes'] = likes\n response_data['dislikes'] = dislikes\n return HttpResponse(json.dumps(response_data),content_type=\"application/json\")\n\n\n@login_required\n@require_POST\ndef correct_answer(request):\n print(request.GET)\n answer_id = request.POST['answer_id']\n question_id = request.POST['question_id']\n print((answer_id))\n answer = Answer.answers.get(id = answer_id)\n question = Question.new_questions.get(id=question_id)\n if question.author == request.user:\n if answer.is_correct:\n answer.is_correct = False\n else:\n answer.is_correct = True\n answer.save()\n print(answer.is_correct)\n return JsonResponse({'is_correct':answer.is_correct})\n\n\ndef pageNotFound(request, exception):\n return HttpResponseNotFound('Not found! ')\n\n\n\n","repo_name":"Julia1505/WEB","sub_path":"app/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":6773,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"72112777243","text":"#!/usr/bin/python\n\nLIMIT = 1000000\nsteps = [0] * LIMIT\nmax_step = 0\nmax_step_pos = 0\n\nfor i in range(2, LIMIT):\n test = i\n n_steps = 0\n\n while test > 1:\n if test % 2 == 1:\n test = (3 * test) + 1\n else:\n test //= 2\n n_steps += 1\n if test < i:\n n_steps += steps[test]\n break\n\n if n_steps > max_step:\n max_step = n_steps\n max_step_pos = i\n steps[i] = n_steps\n\nprint(max_step_pos)\n","repo_name":"cifvts/PyEuler","sub_path":"euler014.py","file_name":"euler014.py","file_ext":"py","file_size_in_byte":478,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"69796293084","text":"from typing import List\n\n\nclass Solution:\n\n # time (n * 2 ^n)\n def subsetsWithDup(self, nums: List[int]) -> List[List[int]]:\n ans = []\n nums.sort()\n def decision_tree(cur: List[int], idx):\n if idx >= len(nums):\n ans.append(cur)\n return\n\n rarr = cur[:]\n larr = cur[:]\n larr.append(nums[idx])\n\n decision_tree(larr, idx + 1)\n\n idx = idx + 1\n while idx != 0 and idx < len(nums) and nums[idx - 1] == nums[idx]:\n idx += 1\n decision_tree(rarr, idx)\n\n decision_tree([], 0)\n\n return ans\n\n\nprint(Solution().subsetsWithDup([1, 1]))\nassert [[1, 2, 2], [1, 2], [1], [2, 2], [2], []] == Solution().subsetsWithDup([1, 2, 2])\n","repo_name":"haxul/algorithm_tasks_solving","sub_path":"python/leetcode/medium/90. Subsets II.py","file_name":"90. Subsets II.py","file_ext":"py","file_size_in_byte":784,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"18340354992","text":"import pickle\nimport torch\nimport warnings\nfrom torch._six import string_classes\nfrom datetime import timedelta\n\n# This module is wildcard imported from torch.distributed.\n# TODO: specify __all__\n\nfrom .constants import default_pg_timeout\nfrom .rendezvous import rendezvous, register_rendezvous_handler # noqa: F401\nfrom . import (\n AllreduceOptions,\n AllreduceCoalescedOptions,\n AllToAllOptions,\n BroadcastOptions,\n GatherOptions,\n ReduceOptions,\n ReduceScatterOptions,\n ScatterOptions,\n)\nfrom . import ReduceOp\nfrom . import PrefixStore\n\n\n_MPI_AVAILABLE = True\n_NCCL_AVAILABLE = True\n_GLOO_AVAILABLE = True\n\n\ntry:\n from. import ProcessGroupMPI\nexcept ImportError:\n _MPI_AVAILABLE = False\n\ntry:\n from. import ProcessGroupNCCL\nexcept ImportError:\n _NCCL_AVAILABLE = False\n\ntry:\n from. import ProcessGroupGloo\nexcept ImportError:\n _GLOO_AVAILABLE = False\n\n\nclass Backend(object):\n \"\"\"\n An enum-like class of available backends: GLOO, NCCL, MPI, and other registered\n backends.\n\n The values of this class are lowercase strings, e.g., ``\"gloo\"``. They can\n be accessed as attributes, e.g., ``Backend.NCCL``.\n\n This class can be directly called to parse the string, e.g.,\n ``Backend(backend_str)`` will check if ``backend_str`` is valid, and\n return the parsed lowercase string if so. It also accepts uppercase strings,\n e.g., ``Backend(\"GLOO\")`` returns ``\"gloo\"``.\n\n .. note:: The entry ``Backend.UNDEFINED`` is present but only used as\n initial value of some fields. Users should neither use it directly\n nor assume its existence.\n \"\"\"\n UNDEFINED = \"undefined\"\n GLOO = \"gloo\"\n NCCL = \"nccl\"\n MPI = \"mpi\"\n TCP = \"tcp\"\n\n def __new__(cls, name):\n if not isinstance(name, string_classes):\n raise ValueError(\"Backend name must be a string, but got: {}\".format(name))\n value = getattr(Backend, name.upper(), Backend.UNDEFINED)\n\n if value == Backend.TCP:\n raise ValueError(\"TCP backend has been deprecated. Please use \"\n \"Gloo or MPI backend for collective operations \"\n \"on CPU tensors.\")\n elif value == Backend.UNDEFINED:\n raise ValueError(\"Invalid backend: '{}'\".format(name))\n elif value != Backend.GLOO and value != Backend.NCCL and value != Backend.MPI:\n value = name\n return value\n\n @classmethod\n def register_backend(cls, name, func):\n \"\"\"\n Registers a new backend.\n\n This class method is used by 3rd party cpp extension to register new backend.\n\n Arguments:\n name (str): Backend name matching with the one in `init_process_group()`.\n func (function): Function handler that instantiates the backend.\n The function should be implemented in the backend cpp extension\n and takes four arguments, including prefix_store, rank,\n world_size, and timeout.\n\n .. note:: This support of 3rd party backend is experimental and subject to change.\n\n \"\"\"\n setattr(Backend, name.upper(), func)\n\n# `_backend`, `dist_backend`, and `reduce_op` are here to maintain backward\n# compatibility with pre-c10d distributed package.\n# TODO: remove them when users are ready to take a hard dependency on PyTorch 1.\n_backend = Backend.UNDEFINED\ndist_backend = Backend\n\n\nclass reduce_op(object):\n r\"\"\"\n Deprecated enum-like class for reduction operations: ``SUM``, ``PRODUCT``,\n ``MIN``, and ``MAX``.\n\n :class:`~torch.distributed.ReduceOp` is recommended to use instead.\n \"\"\"\n\n def __init__(self):\n # __members__ is a dict storing key-value pairs for enum classes\n for k, v in ReduceOp.__members__.items():\n setattr(self, k, v)\n self.__members__ = ReduceOp.__members__\n\n def __getattribute__(self, key):\n warnings.warn(\"torch.distributed.reduce_op is deprecated, please use \"\n \"torch.distributed.ReduceOp instead\")\n return object.__getattribute__(self, key)\n\nreduce_op = reduce_op()\n\n\nclass group(object):\n WORLD = object()\n\n\nclass GroupMember(object):\n # Alias to group.WORLD for backward compatibility\n WORLD = group.WORLD\n NON_GROUP_MEMBER = object()\n\n\n# Cached process groups\n# For NCCL and GLOO pg, it is a map from ProcessGroup to (Backend, Store)\n# For MPI pg, it is a map from ProcessGroup to (Backend, None)\n_pg_map = {}\n# Process group's names, map from ProcessGroup to str\n_pg_names = {}\n# Process group's global rank to local rank mapping\n_pg_group_ranks = {}\n\n# Default process group state\n_default_pg = None\n_default_pg_init_method = None\n\n# Process group count for default naming\n_group_count = 0\n\n\ndef _rank_not_in_group(group):\n \"\"\"\n Helper that checks if the current process's rank is not in a given group\n\n \"\"\"\n if group == GroupMember.WORLD:\n return False\n return group == GroupMember.NON_GROUP_MEMBER\n\n\ndef _get_group_rank(group, rank):\n \"\"\"\n Helper that gets a given group's local rank in the group from a given global\n rank\n\n \"\"\"\n if group is GroupMember.WORLD:\n raise RuntimeError(\"group.WORLD does not have local rank to global \"\n \"rank mapping\")\n if group not in _pg_group_ranks:\n raise RuntimeError(\"The given group does not exist\")\n try:\n group_rank = _pg_group_ranks[group][rank]\n except KeyError:\n raise RuntimeError(f\"The global rank {rank} is not part of the group {group}\") from None\n return group_rank\n\n\ndef _get_global_rank(group, group_rank):\n \"\"\"\n Helper that gets a given group's global rank from a given local rank in the\n group\n\n \"\"\"\n if group is GroupMember.WORLD:\n raise RuntimeError(\"group.WORLD does not have local rank to global \"\n \"rank mapping\")\n group_rank_map = _pg_group_ranks[group]\n for rank, grp_rank in group_rank_map.items():\n if grp_rank == group_rank:\n return rank\n raise RuntimeError(\"The group rank is not part of the group\")\n\n\ndef _check_default_pg():\n \"\"\"\n Helper that checks if the default ProcessGroup has been initialized, with\n assertion\n\n \"\"\"\n assert _default_pg is not None, \\\n \"Default process group is not initialized\"\n\n\ndef _get_group_size(group):\n \"\"\"\n Helper that gets a given group's world size\n\n \"\"\"\n if group is GroupMember.WORLD:\n _check_default_pg()\n return _default_pg.size()\n if group not in _pg_group_ranks:\n raise RuntimeError(\"The given group does not exist\")\n return len(_pg_group_ranks[group])\n\n\ndef _check_single_tensor(param, param_name):\n \"\"\"\n Helper to check that the parameter ``param_name`` is a single tensor.\n\n \"\"\"\n if not isinstance(param, torch.Tensor):\n raise RuntimeError(\"Invalid function argument. Expected parameter `{}` \"\n \"to be of type torch.Tensor.\".format(param_name))\n\n\ndef _check_tensor_list(param, param_name):\n \"\"\"\n Helper to check that the parameter ``param_name`` is a list of tensors.\n\n \"\"\"\n if not isinstance(param, list) or \\\n not all(isinstance(p, torch.Tensor) for p in param):\n raise RuntimeError(\"Invalid function argument. Expected parameter `{}` \"\n \"to be of type List[torch.Tensor].\".format(param_name))\n\n\ndef is_mpi_available():\n \"\"\"\n Checks if the MPI backend is available.\n\n \"\"\"\n return _MPI_AVAILABLE\n\n\ndef is_nccl_available():\n \"\"\"\n Checks if the NCCL backend is available.\n\n \"\"\"\n return _NCCL_AVAILABLE\n\n\ndef is_gloo_available():\n \"\"\"\n Checks if the Gloo backend is available.\n\n \"\"\"\n return _GLOO_AVAILABLE\n\n\ndef is_initialized():\n \"\"\"\n Checking if the default process group has been initialized\n\n \"\"\"\n return _default_pg is not None\n\n\ndef _get_default_group():\n \"\"\"\n Getting the default process group created by init_process_group\n\n \"\"\"\n if not is_initialized():\n raise RuntimeError(\"Default process group has not been initialized, \"\n \"please make sure to call init_process_group.\")\n return _default_pg\n\n\ndef _get_default_store():\n \"\"\"\n Getting the default store created by init_process_group\n\n \"\"\"\n if not is_initialized():\n raise RuntimeError(\"Default process group has not been initialized, \"\n \"please make sure to call init_process_group.\")\n _, default_store = _pg_map[_default_pg]\n return default_store\n\n\ndef get_backend(group=group.WORLD):\n \"\"\"\n Returns the backend of the given process group.\n\n Arguments:\n group (ProcessGroup, optional): The process group to work on. The\n default is the general main process group. If another specific group\n is specified, the calling process must be part of :attr:`group`.\n\n Returns:\n The backend of the given process group as a lower case string.\n\n \"\"\"\n _check_default_pg()\n\n if group == GroupMember.WORLD:\n pg = _default_pg\n else:\n pg = group\n if _rank_not_in_group(pg):\n raise RuntimeError(\"Invalid process group specified\")\n return _pg_map.get(pg, None)[0]\n\n\ndef init_process_group(backend,\n init_method=None,\n timeout=default_pg_timeout,\n world_size=-1,\n rank=-1,\n store=None,\n group_name=''):\n \"\"\"\n Initializes the default distributed process group, and this will also\n initialize the distributed package.\n\n There are 2 main ways to initialize a process group:\n 1. Specify ``store``, ``rank``, and ``world_size`` explicitly.\n 2. Specify ``init_method`` (a URL string) which indicates where/how\n to discover peers. Optionally specify ``rank`` and ``world_size``,\n or encode all required parameters in the URL and omit them.\n\n If neither is specified, ``init_method`` is assumed to be \"env://\".\n\n\n Arguments:\n backend (str or Backend): The backend to use. Depending on\n build-time configurations, valid values include ``mpi``, ``gloo``,\n and ``nccl``. This field should be given as a lowercase string\n (e.g., ``\"gloo\"``), which can also be accessed via\n :class:`Backend` attributes (e.g., ``Backend.GLOO``). If using\n multiple processes per machine with ``nccl`` backend, each process\n must have exclusive access to every GPU it uses, as sharing GPUs\n between processes can result in deadlocks.\n init_method (str, optional): URL specifying how to initialize the\n process group. Default is \"env://\" if no\n ``init_method`` or ``store`` is specified.\n Mutually exclusive with ``store``.\n world_size (int, optional): Number of processes participating in\n the job. Required if ``store`` is specified.\n rank (int, optional): Rank of the current process.\n Required if ``store`` is specified.\n store(Store, optional): Key/value store accessible to all workers, used\n to exchange connection/address information.\n Mutually exclusive with ``init_method``.\n timeout (timedelta, optional): Timeout for operations executed against\n the process group. Default value equals 30 minutes.\n This is applicable for the ``gloo`` backend. For ``nccl``, this is\n applicable only if the environment variable ``NCCL_BLOCKING_WAIT``\n or ``NCCL_ASYNC_ERROR_HANDLING`` is set to 1. When\n ``NCCL_BLOCKING_WAIT`` is set, this is the duration for which the\n process will block and wait for collectives to complete before\n throwing an exception. When ``NCCL_ASYNC_ERROR_HANDLING`` is set,\n this is the duration after which collectives will be aborted\n asynchronously and the process will crash. ``NCCL_BLOCKING_WAIT``\n will provide errors to the user which can be caught and handled,\n but due to its blocking nature, it has a performance overhead. On\n the other hand, ``NCCL_ASYNC_ERROR_HANDLING`` has little\n performance overhead, but crashes the process on errors. This is\n done since CUDA execution is async and it is no longer safe to\n continue executing user code since failed async NCCL operations\n might result in subsequent CUDA operations to run on corrupted\n data. Only one of these two environment variables should be set.\n group_name (str, optional, deprecated): Group name.\n\n To enable ``backend == Backend.MPI``, PyTorch needs to be built from source\n on a system that supports MPI.\n\n \"\"\"\n global _pg_group_ranks\n global _backend\n global _default_pg\n global _default_pg_init_method\n\n if not isinstance(timeout, timedelta):\n raise RuntimeError(\"Expected timeout argument to be of type\"\n \"datetime.timedelta\")\n\n if _default_pg is not None:\n raise RuntimeError(\"trying to initialize the default process group \"\n \"twice!\")\n\n assert (store is None) or (init_method is None), \\\n \"Cannot specify both init_method and store.\"\n\n if store is not None:\n assert world_size > 0, 'world_size must be positive if using store'\n assert rank >= 0, 'rank must be non-negative if using store'\n elif init_method is None:\n init_method = \"env://\"\n\n backend = Backend(backend)\n\n if backend == Backend.MPI:\n if world_size != -1 or rank != -1:\n warnings.warn(\n \"For MPI backend, world_size ({}) and rank ({}) \"\n \"are ignored since they are assigned by the \"\n \"MPI runtime.\".format(world_size, rank))\n\n _default_pg = _new_process_group_helper(\n -1,\n -1,\n [],\n Backend.MPI,\n None,\n group_name=group_name,\n timeout=timeout)\n else:\n # backward compatible API\n if store is None:\n rendezvous_iterator = rendezvous(\n init_method, rank, world_size, timeout=timeout\n )\n store, rank, world_size = next(rendezvous_iterator)\n store.set_timeout(timeout)\n\n _default_pg = _new_process_group_helper(\n world_size,\n rank,\n [],\n backend,\n store,\n group_name=group_name,\n timeout=timeout)\n\n _pg_group_ranks[_default_pg] = {i: i for i in range(_default_pg.size())}\n _backend = _pg_map[_default_pg][0]\n _default_pg_init_method = init_method\n\n # barrier at the end to ensure that once we return from this method, all\n # process groups including global variables are updated correctly on all\n # ranks.\n barrier()\n\ndef _new_process_group_helper(world_size,\n rank,\n group_ranks,\n backend,\n store,\n group_name=None,\n timeout=default_pg_timeout):\n \"\"\"\n Create a new distributed process group.\n\n This function must be called by ALL processes in the global group, even if\n the calling process is not part of the newly created group. In that case,\n this function returns GroupMember.NON_GROUP_MEMBER.\n\n This function is called with ``group_ranks == []`` for the default group.\n \"\"\"\n global _pg_map\n global _group_count\n global _pg_names\n\n if not group_name:\n group_name = str(_group_count)\n _group_count += 1\n\n if group_name in _pg_names.values():\n raise RuntimeError(\"The specified group name has already been \"\n \"created, please use a different group name\")\n\n if not isinstance(timeout, timedelta):\n raise RuntimeError(\"Expected timeout argument to be of type\"\n \"datetime.timedelta\")\n\n # The list of group ranks is empty if we're creating the default group.\n is_default_group = (len(group_ranks) == 0)\n\n backend = Backend(backend)\n if backend == Backend.MPI:\n if not is_mpi_available():\n raise RuntimeError(\n \"Distributed package doesn't have MPI built in.\"\n \" MPI is only included if you build PyTorch from\"\n \" source on a host that has MPI installed.\")\n pg = ProcessGroupMPI.create(group_ranks)\n if not pg:\n return GroupMember.NON_GROUP_MEMBER\n _pg_map[pg] = (Backend.MPI, None)\n _pg_names[pg] = group_name\n else:\n # If this is a subgroup (which means group_ranks is specified),\n # we check if the current process is a member of the new group.\n if not is_default_group:\n global_rank = _default_pg.rank()\n if global_rank not in group_ranks:\n return GroupMember.NON_GROUP_MEMBER\n\n # Use the group name as prefix in the default store, such that\n # a single store can be reused by multiple groups.\n prefix_store = PrefixStore(group_name, store)\n\n if backend == Backend.GLOO:\n pg = ProcessGroupGloo(\n prefix_store,\n rank,\n world_size,\n timeout=timeout)\n _pg_map[pg] = (Backend.GLOO, store)\n _pg_names[pg] = group_name\n elif backend == Backend.NCCL:\n if not is_nccl_available():\n raise RuntimeError(\"Distributed package doesn't have NCCL \"\n \"built in\")\n pg = ProcessGroupNCCL(\n prefix_store,\n rank,\n world_size,\n timeout)\n _pg_map[pg] = (Backend.NCCL, store)\n _pg_names[pg] = group_name\n else:\n pg = getattr(Backend, backend.upper())(\n prefix_store,\n rank,\n world_size,\n timeout)\n _pg_map[pg] = (backend, store)\n _pg_names[pg] = group_name\n\n return pg\n\n\ndef destroy_process_group(group=group.WORLD):\n \"\"\"\n Destroy a given process group, and deinitialize the distributed package\n\n Arguments:\n group (ProcessGroup, optional): The process group to be destroyed, if\n group.WORLD is given, all process\n groups including the default one will\n be destroyed.\n \"\"\"\n global _pg_map\n global _pg_names\n global _pg_group_ranks\n global _default_pg\n global _default_pg_init_method\n global _group_count\n\n if group == GroupMember.NON_GROUP_MEMBER:\n return\n\n if group == GroupMember.WORLD:\n pg = _default_pg\n else:\n pg = group\n\n if _pg_map.get(pg, None) is None:\n raise RuntimeError(\"Invalid process group specified\")\n\n if group == GroupMember.WORLD:\n _default_pg = None\n _default_pg_init_method = None\n _pg_map.clear()\n _pg_names.clear()\n _pg_group_ranks.clear()\n\n # when process group doesn't have an explicit name (only WORLD (default)\n # process group can have an explicit name), we use global _group_counter\n # to generate the name. We need to reset the counter on destruction to\n # allow consistent value to be generated when we re-create process\n # groups after some trainers recover from failure\n #\n # We only reset this when WORLD is being destroyed because if this\n # process group is in good state, we aren't dealing with failures.\n _group_count = 0\n else:\n del _pg_map[pg]\n del _pg_names[pg]\n del _pg_group_ranks[pg]\n\n\ndef get_rank(group=group.WORLD):\n \"\"\"\n Returns the rank of current process group\n\n Rank is a unique identifier assigned to each process within a distributed\n process group. They are always consecutive integers ranging from 0 to\n ``world_size``.\n\n Arguments:\n group (ProcessGroup, optional): The process group to work on\n\n Returns:\n The rank of the process group\n -1, if not part of the group\n\n \"\"\"\n if _rank_not_in_group(group):\n return -1\n\n _check_default_pg()\n if group == GroupMember.WORLD:\n return _default_pg.rank()\n\n return _get_group_rank(group, _default_pg.rank())\n\n\ndef get_world_size(group=group.WORLD):\n \"\"\"\n Returns the number of processes in the current process group\n\n Arguments:\n group (ProcessGroup, optional): The process group to work on\n\n Returns:\n The world size of the process group\n -1, if not part of the group\n\n \"\"\"\n if _rank_not_in_group(group):\n return -1\n\n return _get_group_size(group)\n\n\ndef isend(tensor,\n dst,\n group=group.WORLD,\n tag=0):\n \"\"\"\n Sends a tensor asynchronously.\n\n Arguments:\n tensor (Tensor): Tensor to send.\n dst (int): Destination rank.\n group (ProcessGroup, optional): The process group to work on\n tag (int, optional): Tag to match send with remote recv\n\n Returns:\n A distributed request object.\n None, if not part of the group\n\n \"\"\"\n _check_single_tensor(tensor, \"tensor\")\n if _rank_not_in_group(group):\n return\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n return _default_pg.send([tensor], dst, tag)\n else:\n group_dst_rank = _get_group_rank(group, dst)\n return group.send([tensor], group_dst_rank, tag)\n\n\ndef irecv(tensor,\n src,\n group=group.WORLD,\n tag=0):\n \"\"\"\n Receives a tensor asynchronously.\n\n Arguments:\n tensor (Tensor): Tensor to fill with received data.\n src (int): Source rank.\n group (ProcessGroup, optional): The process group to work on\n tag (int, optional): Tag to match recv with remote send\n\n Returns:\n A distributed request object.\n None, if not part of the group\n\n \"\"\"\n _check_single_tensor(tensor, \"tensor\")\n if _rank_not_in_group(group):\n return\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n return _default_pg.recv([tensor], src, tag)\n else:\n group_src_rank = _get_group_rank(group, src)\n return group.recv([tensor], group_src_rank, tag)\n\n\ndef send(tensor,\n dst,\n group=group.WORLD,\n tag=0):\n \"\"\"\n Sends a tensor synchronously.\n\n Arguments:\n tensor (Tensor): Tensor to send.\n dst (int): Destination rank.\n group (ProcessGroup, optional): The process group to work on\n tag (int, optional): Tag to match send with remote recv\n\n \"\"\"\n _check_single_tensor(tensor, \"tensor\")\n if _rank_not_in_group(group):\n return\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n _default_pg.send([tensor], dst, tag).wait()\n else:\n group_dst_rank = _get_group_rank(group, dst)\n group.send([tensor], group_dst_rank, tag).wait()\n\n\ndef recv(tensor,\n src=None,\n group=group.WORLD,\n tag=0):\n \"\"\"\n Receives a tensor synchronously.\n\n Arguments:\n tensor (Tensor): Tensor to fill with received data.\n src (int, optional): Source rank. Will receive from any\n process if unspecified.\n group (ProcessGroup, optional): The process group to work on\n tag (int, optional): Tag to match recv with remote send\n\n Returns:\n Sender rank\n -1, if not part of the group\n\n \"\"\"\n _check_single_tensor(tensor, \"tensor\")\n if _rank_not_in_group(group):\n return -1\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n pg = _default_pg\n else:\n pg = group\n\n if src is None:\n work = pg.recv_anysource([tensor], tag)\n work.wait()\n src_rank = work._source_rank()\n if group == GroupMember.WORLD:\n return src_rank\n else:\n return _get_global_rank(pg, src_rank)\n else:\n if group == GroupMember.WORLD:\n pg.recv([tensor], src, tag).wait()\n else:\n group_src_rank = _get_group_rank(pg, src)\n pg.recv([tensor], group_src_rank, tag).wait()\n return src\n\n\ndef broadcast_multigpu(tensor_list,\n src,\n group=group.WORLD,\n async_op=False,\n src_tensor=0):\n \"\"\"\n Broadcasts the tensor to the whole group with multiple GPU tensors\n per node.\n\n ``tensor`` must have the same number of elements in all the GPUs from\n all processes participating in the collective. each tensor in the list must\n be on a different GPU\n\n Only nccl and gloo backend are currently supported\n tensors should only be GPU tensors\n\n Arguments:\n tensor_list (List[Tensor]): Tensors that participate in the collective\n operation. If ``src`` is the rank, then the specified ``src_tensor``\n element of ``tensor_list`` (``tensor_list[src_tensor]``) will be\n broadcast to all other tensors (on different GPUs) in the src process\n and all tensors in ``tensor_list`` of other non-src processes.\n You also need to make sure that ``len(tensor_list)`` is the same\n for all the distributed processes calling this function.\n\n src (int): Source rank.\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n src_tensor (int, optional): Source tensor rank within ``tensor_list``\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n opts = BroadcastOptions()\n opts.rootRank = src\n opts.rootTensor = src_tensor\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.broadcast(tensor_list, opts)\n else:\n group_src_rank = _get_group_rank(group, src)\n opts.rootRank = group_src_rank\n work = group.broadcast(tensor_list, opts)\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef broadcast(tensor,\n src,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Broadcasts the tensor to the whole group.\n\n ``tensor`` must have the same number of elements in all processes\n participating in the collective.\n\n Arguments:\n tensor (Tensor): Data to be sent if ``src`` is the rank of current\n process, and tensor to be used to save received data otherwise.\n src (int): Source rank.\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n \"\"\"\n _check_single_tensor(tensor, \"tensor\")\n if _rank_not_in_group(group):\n return\n\n opts = BroadcastOptions()\n opts.rootRank = src\n opts.rootTensor = 0\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.broadcast([tensor], opts)\n else:\n group_src_rank = _get_group_rank(group, src)\n opts.rootRank = group_src_rank\n work = group.broadcast([tensor], opts)\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef all_reduce_multigpu(tensor_list,\n op=ReduceOp.SUM,\n group=group.WORLD,\n async_op=False):\n r\"\"\"\n Reduces the tensor data across all machines in such a way that all get\n the final result. This function reduces a number of tensors on every node,\n while each tensor resides on different GPUs.\n Therefore, the input tensor in the tensor list needs to be GPU tensors.\n Also, each tensor in the tensor list needs to reside on a different GPU.\n\n After the call, all ``tensor`` in ``tensor_list`` is going to be bitwise\n identical in all processes.\n\n Only nccl and gloo backend is currently supported\n tensors should only be GPU tensors\n\n Arguments:\n tensor list (List[Tensor]): List of input and output tensors of\n the collective. The function operates in-place and requires that\n each tensor to be a GPU tensor on different GPUs.\n You also need to make sure that ``len(tensor_list)`` is the same for\n all the distributed processes calling this function.\n op (optional): One of the values from\n ``torch.distributed.ReduceOp``\n enum. Specifies an operation used for element-wise reductions.\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n opts = AllreduceOptions()\n opts.reduceOp = op\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.allreduce(tensor_list, opts)\n else:\n work = group.allreduce(tensor_list, opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef all_reduce(tensor,\n op=ReduceOp.SUM,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Reduces the tensor data across all machines in such a way that all get\n the final result.\n\n After the call ``tensor`` is going to be bitwise identical in all processes.\n\n Arguments:\n tensor (Tensor): Input and output of the collective. The function\n operates in-place.\n op (optional): One of the values from\n ``torch.distributed.ReduceOp``\n enum. Specifies an operation used for element-wise reductions.\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n \"\"\"\n _check_single_tensor(tensor, \"tensor\")\n if _rank_not_in_group(group):\n return\n\n opts = AllreduceOptions()\n opts.reduceOp = op\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.allreduce([tensor], opts)\n else:\n work = group.allreduce([tensor], opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef all_reduce_coalesced(tensors,\n op=ReduceOp.SUM,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n WARNING: at this time individual shape checking is not implemented across nodes.\n For example, if the rank 0 node passes [torch.rand(4), torch.rand(2)] and the\n rank 1 node passes [torch.rand(2), torch.rand(2), torch.rand(2)], the allreduce\n operation will proceed without complaint and return erroneous outputs. This lack\n of shape checking results in significant performance improvements but users of this\n function should take extra care to ensure that each node passes in tensors whose\n shapes match across nodes.\n\n Reduces each tensor in tensors (residing on the same device) across all machines\n in such a way that all get the final result.\n\n After the call each tensor in tensors is going to bitwise identical\n in all processes.\n\n Arguments:\n tensors (List[Tensor]): Input and output of the collective. The function\n operates in-place.\n op (Optional[ReduceOp]): One of the values from\n ``torch.distributed.ReduceOp`` enum. Specifies an operation used for\n element-wise reductions.\n group (Optional[ProcessGroup]): The process group to work on.\n async_op (Optional[bool]): Whether this op should be an async op.\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group.\n\n \"\"\"\n _check_tensor_list(tensors, \"tensor\")\n if _rank_not_in_group(group):\n return\n\n opts = AllreduceCoalescedOptions()\n opts.reduceOp = op\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.allreduce_coalesced(tensors, opts)\n else:\n work = group.allreduce_coalesced(tensors, opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef reduce_multigpu(tensor_list,\n dst,\n op=ReduceOp.SUM,\n group=group.WORLD,\n async_op=False,\n dst_tensor=0):\n \"\"\"\n Reduces the tensor data on multiple GPUs across all machines. Each tensor\n in ``tensor_list`` should reside on a separate GPU\n\n Only the GPU of ``tensor_list[dst_tensor]`` on the process with rank ``dst``\n is going to receive the final result.\n\n Only nccl backend is currently supported\n tensors should only be GPU tensors\n\n Arguments:\n tensor_list (List[Tensor]): Input and output GPU tensors of the\n collective. The function operates in-place.\n You also need to make sure that ``len(tensor_list)`` is the same for\n all the distributed processes calling this function.\n dst (int): Destination rank\n op (optional): One of the values from\n ``torch.distributed.ReduceOp``\n enum. Specifies an operation used for element-wise reductions.\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n dst_tensor (int, optional): Destination tensor rank within\n ``tensor_list``\n\n Returns:\n Async work handle, if async_op is set to True.\n None, otherwise\n\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n opts = ReduceOptions()\n opts.reduceOp = op\n opts.rootRank = dst\n opts.rootTensor = dst_tensor\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.reduce(tensor_list, opts)\n else:\n group_dst_rank = _get_group_rank(group, dst)\n opts.rootRank = group_dst_rank\n work = group.reduce(tensor_list, opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef reduce(tensor,\n dst,\n op=ReduceOp.SUM,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Reduces the tensor data across all machines.\n\n Only the process with rank ``dst`` is going to receive the final result.\n\n Arguments:\n tensor (Tensor): Input and output of the collective. The function\n operates in-place.\n dst (int): Destination rank\n op (optional): One of the values from\n ``torch.distributed.ReduceOp``\n enum. Specifies an operation used for element-wise reductions.\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n \"\"\"\n _check_single_tensor(tensor, \"tensor\")\n if _rank_not_in_group(group):\n return\n\n opts = ReduceOptions()\n opts.reduceOp = op\n opts.rootRank = dst\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.reduce([tensor], opts)\n else:\n group_dst_rank = _get_group_rank(group, dst)\n opts.rootRank = group_dst_rank\n work = group.reduce([tensor], opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef all_gather_multigpu(output_tensor_lists,\n input_tensor_list,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Gathers tensors from the whole group in a list.\n Each tensor in ``tensor_list`` should reside on a separate GPU\n\n Only nccl backend is currently supported\n tensors should only be GPU tensors\n\n Arguments:\n output_tensor_lists (List[List[Tensor]]): Output lists. It should\n contain correctly-sized tensors on each GPU to be used for output\n of the collective, e.g. ``output_tensor_lists[i]`` contains the\n all_gather result that resides on the GPU of\n ``input_tensor_list[i]``.\n\n Note that each element of ``output_tensor_lists`` has the size of\n ``world_size * len(input_tensor_list)``, since the function all\n gathers the result from every single GPU in the group. To interpret\n each element of ``output_tensor_lists[i]``, note that\n ``input_tensor_list[j]`` of rank k will be appear in\n ``output_tensor_lists[i][k * world_size + j]``\n\n Also note that ``len(output_tensor_lists)``, and the size of each\n element in ``output_tensor_lists`` (each element is a list,\n therefore ``len(output_tensor_lists[i])``) need to be the same\n for all the distributed processes calling this function.\n\n input_tensor_list (List[Tensor]): List of tensors(on different GPUs) to\n be broadcast from current process.\n Note that ``len(input_tensor_list)`` needs to be the same for\n all the distributed processes calling this function.\n\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.allgather(output_tensor_lists, input_tensor_list)\n else:\n work = group.allgather(output_tensor_lists, input_tensor_list)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef _object_to_tensor(obj):\n buffer = pickle.dumps(obj)\n byte_storage = torch.ByteStorage.from_buffer(buffer)\n byte_tensor = torch.ByteTensor(byte_storage)\n local_size = torch.LongTensor([byte_tensor.numel()])\n return byte_tensor, local_size\n\n\ndef _tensor_to_object(tensor, tensor_size):\n buf = tensor.numpy().tobytes()[:tensor_size]\n out = pickle.loads(buf)\n return out\n\n\ndef all_gather_object(object_list, obj, group=group.WORLD):\n \"\"\"\n Gathers picklable objects from the whole group into a list. Similar to\n :func:`all_gather`, but Python objects can be passed in. Note that the object\n must be picklable in order to be gathered.\n\n Arguments:\n object_list (list[Any]): Output list. It should be correctly sized as the\n size of the group for this collective and will contain the output.\n object (Any): Pickable Python object to be broadcast from current process.\n group (ProcessGroup, optional): The process group to work on\n\n Returns:\n None. If the calling rank is part of this group, the output of the\n collective will be populated into the input ``object_list``. If the\n calling rank is not part of the group, the passed in ``object_list`` will\n be unmodified.\n\n .. note:: Note that this API differs slightly from the :func:`all_gather`\n collective since it does not provide an ``async_op`` handle and thus\n will be a blocking call.\n\n .. warning::\n :func:`all_gather_object` uses ``pickle`` module implicitly, which is\n known to be insecure. It is possible to construct malicious pickle data\n which will execute arbitrary code during unpickling. Only call this\n function with data you trust.\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n input_tensor, local_size = _object_to_tensor(obj)\n group_backend = get_backend(group)\n my_rank = get_rank()\n is_nccl_backend = group_backend == Backend.NCCL\n if is_nccl_backend:\n input_tensor, local_size = input_tensor.to(my_rank), local_size.to(my_rank)\n # Gather all local sizes. This is so that we can find the max size, and index\n # until the correct size when deserializing the tensors.\n group_size = get_world_size(group=group)\n object_sizes_tensor = torch.zeros(group_size, dtype=int).to(\n my_rank if is_nccl_backend else \"cpu\"\n )\n object_size_list = [\n object_sizes_tensor[i].unsqueeze(dim=0) for i in range(group_size)\n ]\n # Allgather tensor sizes\n all_gather(object_size_list, local_size, group=group)\n max_object_size = max(object_size_list)\n # Resize tensor to max size across all ranks.\n input_tensor.resize_(max_object_size)\n coalesced_output_tensor = torch.empty(\n max_object_size * group_size, dtype=torch.uint8\n ).to(my_rank if is_nccl_backend else \"cpu\")\n # Output tensors are nonoverlapping views of coalesced_output_tensor\n output_tensors = [\n coalesced_output_tensor[max_object_size * i : max_object_size * (i + 1)]\n for i in range(group_size)\n ]\n all_gather(output_tensors, input_tensor, group=group)\n # Deserialize outputs back to object.\n for i, tensor in enumerate(output_tensors):\n tensor = tensor.type(torch.ByteTensor)\n tensor_size = object_size_list[i]\n object_list[i] = _tensor_to_object(tensor, tensor_size)\n\n\ndef gather_object(obj, object_gather_list=None, dst=0, group=group.WORLD):\n \"\"\"\n Gathers picklable objects from the whole group in a single process.\n Similar to :func:`gather`, but Python objects can be passed in. Note that the\n object must be picklable in order to be gathered.\n\n Arguments:\n obj (Any): Input object. Must be picklable.\n object_gather_list (list[Any]): Output list. On the ``dst`` rank, it\n should be correctly sized as the size of the group for this\n collective and will contain the output. Must be ``None`` on non-dst\n ranks. (default is ``None``)\n dst (int, optional): Destination rank. (default is 0)\n group: (ProcessGroup, optional): The process group to work on.\n\n Returns:\n None. On the ``dst`` rank, ``object_gather_list`` will contain the\n output of the collective.\n\n .. note:: Note that this API differs slightly from the gather collective\n since it does not provide an async_op handle and thus will be a blocking\n call.\n\n .. note:: Note that this API is not supported when using the NCCL backend.\n\n .. warning::\n :func:`gather_object` uses ``pickle`` module implicitly, which is\n known to be insecure. It is possible to construct malicious pickle data\n which will execute arbitrary code during unpickling. Only call this\n function with data you trust.\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n # Ensure object_gather_list is specified appopriately.\n my_rank = get_rank()\n _validate_output_list_for_rank(my_rank, dst, object_gather_list)\n input_tensor, local_size = _object_to_tensor(obj)\n group_backend = get_backend(group)\n is_nccl_backend = group_backend == Backend.NCCL\n if is_nccl_backend:\n input_tensor, local_size = input_tensor.to(my_rank), local_size.to(my_rank)\n # Gather all local sizes. This is so that we can find the max size, and index\n # until the correct size when deserializing the tensors.\n group_size = get_world_size(group=group)\n object_sizes_tensor = torch.zeros(group_size, dtype=int).to(\n my_rank if is_nccl_backend else \"cpu\"\n )\n object_size_list = [\n object_sizes_tensor[i].unsqueeze(dim=0) for i in range(group_size)\n ]\n # Allgather tensor sizes. An all-gather is needed here despite this being a gather,\n # since each rank needs to broadcast a tensor of the same (maximal) size.\n all_gather(object_size_list, local_size, group=group)\n max_object_size = max(object_size_list)\n # Resize tensor to max size across all ranks.\n input_tensor.resize_(max_object_size)\n # Avoid populating output tensors if the result won't be gathered on this rank.\n if my_rank == dst:\n coalesced_output_tensor = torch.empty(\n max_object_size * group_size, dtype=torch.uint8\n ).to(my_rank if is_nccl_backend else \"cpu\")\n # Output tensors are nonoverlapping views of coalesced_output_tensor\n output_tensors = [\n coalesced_output_tensor[max_object_size * i : max_object_size * (i + 1)]\n for i in range(group_size)\n ]\n # All ranks call gather with equal-sized tensors.\n gather(\n input_tensor,\n gather_list=output_tensors if my_rank == dst else None,\n dst=dst,\n group=group,\n )\n if my_rank != dst:\n return\n for i, tensor in enumerate(output_tensors):\n tensor = tensor.type(torch.ByteTensor)\n tensor_size = object_size_list[i]\n object_gather_list[i] = _tensor_to_object(tensor, tensor_size)\n\n\ndef broadcast_object_list(object_list, src, group=group.WORLD):\n \"\"\"\n Broadcasts picklable objects in ``object_list`` to the whole group. Similar\n to :func:`broadcast`, but Python objects can be passed in.\n Note that all objects in ``object_list`` must be picklable in order to be\n broadcasted.\n\n Arguments:\n object_list (List[Any]): List of input objects to broadcast.\n Each object must be picklable. Only objects on the ``src`` rank will\n be broadcast, but each rank must provide lists of equal sizes.\n src (int): Source rank from which to broadcast ``object_list``.\n group: (ProcessGroup, optional): The process group to work on.\n\n Returns:\n ``None``. If rank is part of the group, ``object_list`` will contain the\n broadcasted objects from ``src`` rank.\n\n .. note:: Note that this API differs slightly from the broadcast collective\n since it does not provide an ``async_op`` handle and thus will be a\n blocking call.\n\n .. warning::\n :func:`broadcast_object_list` uses ``pickle`` module implicitly, which\n is known to be insecure. It is possible to construct malicious pickle\n data which will execute arbitrary code during unpickling. Only call this\n function with data you trust.\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n my_rank = get_rank()\n # Serialize object_list elements to tensors on src rank.\n if my_rank == src:\n tensor_list, size_list = zip(*[_object_to_tensor(obj) for obj in object_list])\n object_sizes_tensor = torch.cat(size_list)\n else:\n object_sizes_tensor = torch.LongTensor(len(object_list))\n\n group_backend = get_backend(group)\n is_nccl_backend = group_backend == Backend.NCCL\n if is_nccl_backend:\n object_sizes_tensor = object_sizes_tensor.to(my_rank)\n\n # Broadcast object sizes\n broadcast(object_sizes_tensor, src=src, group=group)\n\n # Concatenate and broadcast serialized object tensors\n if my_rank == src:\n object_tensor = torch.cat(tensor_list)\n else:\n object_tensor = torch.ByteTensor(torch.sum(object_sizes_tensor).item())\n\n if is_nccl_backend:\n object_tensor = object_tensor.to(my_rank)\n broadcast(object_tensor, src=src, group=group)\n # Deserialize objects using their stored sizes.\n offset = 0\n if my_rank != src:\n for i, obj_size in enumerate(object_sizes_tensor):\n obj_view = object_tensor[offset : offset + obj_size]\n obj_view = obj_view.type(torch.ByteTensor)\n offset += obj_size\n object_list[i] = _tensor_to_object(obj_view, obj_size)\n\n\ndef all_gather(tensor_list,\n tensor,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Gathers tensors from the whole group in a list.\n\n Arguments:\n tensor_list (list[Tensor]): Output list. It should contain\n correctly-sized tensors to be used for output of the collective.\n tensor (Tensor): Tensor to be broadcast from current process.\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n \"\"\"\n _check_tensor_list(tensor_list, \"tensor_list\")\n _check_single_tensor(tensor, \"tensor\")\n if _rank_not_in_group(group):\n return\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.allgather([tensor_list], [tensor])\n else:\n work = group.allgather([tensor_list], [tensor])\n\n if async_op:\n return work\n else:\n work.wait()\n\ndef all_gather_coalesced(output_tensor_lists,\n input_tensor_list,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Gathers input tensors from the whole group in a list in a coalesced manner.\n\n Arguments:\n output_tensor_lists (list[list[Tensor]]): Output list. It should contain\n correctly-sized tensors to be used for output of the collective.\n input_tensor_list (list[Tensor]): Tensors to be broadcast from\n current process. At least one tensor has to be non empty.\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op.\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n Example:\n we have 2 process groups, 2 ranks.\n rank 0 passes:\n input_tensor_list = [[[1, 1], [1, 1]], [2], [3, 3]]\n output_tensor_lists =\n [[[[-1, -1], [-1, -1]], [-1], [-1, -1]],\n [[[-1, -1], [-1, -1]], [-1], [-1, -1]]]\n rank 1 passes:\n input_tensor_list = [[[3, 3], [3, 3]], [5], [1, 1]]\n output_tensor_lists =\n [[[[-1, -1], [-1, -1]], [-1], [-1, -1]],\n [[[-1, -1], [-1, -1]], [-1], [-1, -1]]]\n both rank 0 and 1 get:\n output_tensor_lists =\n [[[1, 1], [1, 1]], [2], [3, 3]],\n [[3, 3], [3, 3]], [5], [1, 1]]].\n\n WARNING: at this time individual shape checking is not implemented across nodes.\n For example, if the rank 0 node passes [torch.rand(4), torch.rand(2)] and the\n rank 1 node passes [torch.rand(2), torch.rand(2), torch.rand(2)], the\n all_gather_coalesced operation will proceed without complaint and return\n erroneous outputs. This lack of shape checking results in significant\n performance improvements but users of this function should take extra care\n to ensure that each node passes in tensors whose shapes match across nodes.\n \"\"\"\n # We only check basic compatibility with C++ params here, C++ code will\n # do shape and type checking.\n if _rank_not_in_group(group):\n return\n _check_tensor_list(input_tensor_list, \"tensor_list\")\n if not isinstance(output_tensor_lists, list):\n raise RuntimeError(\"Invalid function argument: \"\n \"output_tensor_lists should be a list\")\n for output_tensor_list in output_tensor_lists:\n _check_tensor_list(output_tensor_list, \"output_tensor_lists\")\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.allgather_coalesced(\n output_tensor_lists, input_tensor_list)\n else:\n work = group.allgather_coalesced(output_tensor_lists, input_tensor_list)\n\n if async_op:\n return work\n else:\n work.wait()\n\ndef _validate_output_list_for_rank(my_rank, dst, gather_list):\n if dst == my_rank:\n if not gather_list:\n raise ValueError(\n \"Argument ``gather_list`` must be specified on destination rank.\"\n )\n elif gather_list:\n raise ValueError(\n \"Argument ``gather_list`` must NOT be specified \"\n \"on non-destination ranks.\"\n )\n\n\ndef gather(tensor,\n gather_list=None,\n dst=0,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Gathers a list of tensors in a single process.\n\n Arguments:\n tensor (Tensor): Input tensor.\n gather_list (list[Tensor], optional): List of appropriately-sized\n tensors to use for gathered data (default is None, must be specified\n on the destination rank)\n dst (int, optional): Destination rank (default is 0)\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n \"\"\"\n _check_single_tensor(tensor, \"tensor\")\n\n # Parameter ``gather_list`` may be left unspecified on non-dst ranks.\n if gather_list:\n _check_tensor_list(gather_list, \"gather_list\")\n else:\n gather_list = []\n\n if _rank_not_in_group(group):\n return\n\n my_rank = get_rank()\n _validate_output_list_for_rank(my_rank, dst, gather_list)\n output_tensors = [gather_list] if dst == my_rank else []\n input_tensors = [tensor]\n\n opts = GatherOptions()\n opts.rootRank = dst\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.gather(output_tensors, input_tensors, opts)\n else:\n group_dst_rank = _get_group_rank(group, dst)\n opts.rootRank = group_dst_rank\n work = group.gather(output_tensors, input_tensors, opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef scatter(tensor,\n scatter_list=None,\n src=0,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Scatters a list of tensors to all processes in a group.\n\n Each process will receive exactly one tensor and store its data in the\n ``tensor`` argument.\n\n Arguments:\n tensor (Tensor): Output tensor.\n scatter_list (list[Tensor]): List of tensors to scatter (default is\n None, must be specified on the source rank)\n src (int): Source rank (default is 0)\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n\n \"\"\"\n _check_single_tensor(tensor, \"tensor\")\n\n # Parameter ``scatter_list`` may be left unspecified on non-src ranks.\n if scatter_list:\n _check_tensor_list(scatter_list, \"scatter_list\")\n else:\n scatter_list = []\n\n if _rank_not_in_group(group):\n return\n\n my_rank = get_rank()\n if src == my_rank:\n if not scatter_list:\n raise ValueError(\"Argument ``scatter_list`` must be specified \"\n \"on source rank.\")\n input_tensors = [scatter_list]\n output_tensors = [tensor]\n else:\n if scatter_list:\n raise ValueError(\"Argument ``scatter_list`` must NOT be specified \"\n \"on non-source ranks.\")\n input_tensors = []\n output_tensors = [tensor]\n\n opts = ScatterOptions()\n opts.rootRank = src\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.scatter(output_tensors, input_tensors, opts)\n else:\n group_src_rank = _get_group_rank(group, src)\n opts.rootRank = group_src_rank\n work = group.scatter(output_tensors, input_tensors, opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef reduce_scatter_multigpu(output_tensor_list,\n input_tensor_lists,\n op=ReduceOp.SUM,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Reduce and scatter a list of tensors to the whole group. Only nccl backend\n is currently supported.\n\n Each tensor in ``output_tensor_list`` should reside on a separate GPU, as\n should each list of tensors in ``input_tensor_lists``.\n\n Arguments:\n output_tensor_list (List[Tensor]): Output tensors (on different GPUs)\n to receive the result of the operation.\n\n Note that ``len(output_tensor_list)`` needs to be the same for all\n the distributed processes calling this function.\n\n input_tensor_lists (List[List[Tensor]]): Input lists. It should\n contain correctly-sized tensors on each GPU to be used for input of\n the collective, e.g. ``input_tensor_lists[i]`` contains the\n reduce_scatter input that resides on the GPU of\n ``output_tensor_list[i]``.\n\n Note that each element of ``input_tensor_lists`` has the size of\n ``world_size * len(output_tensor_list)``, since the function\n scatters the result from every single GPU in the group. To\n interpret each element of ``input_tensor_lists[i]``, note that\n ``output_tensor_list[j]`` of rank k receives the reduce-scattered\n result from ``input_tensor_lists[i][k * world_size + j]``\n\n Also note that ``len(input_tensor_lists)``, and the size of each\n element in ``input_tensor_lists`` (each element is a list,\n therefore ``len(input_tensor_lists[i])``) need to be the same for\n all the distributed processes calling this function.\n\n group (ProcessGroup, optional): The process group to work on.\n async_op (bool, optional): Whether this op should be an async op.\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group.\n\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n opts = ReduceScatterOptions()\n opts.reduceOp = op\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.reduce_scatter(\n output_tensor_list,\n input_tensor_lists,\n opts\n )\n else:\n work = group.reduce_scatter(\n output_tensor_list,\n input_tensor_lists,\n opts\n )\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef reduce_scatter(output,\n input_list,\n op=ReduceOp.SUM,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Reduces, then scatters a list of tensors to all processes in a group.\n\n Arguments:\n output (Tensor): Output tensor.\n input_list (list[Tensor]): List of tensors to reduce and scatter.\n group (ProcessGroup, optional): The process group to work on.\n async_op (bool, optional): Whether this op should be an async op.\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group.\n\n \"\"\"\n _check_single_tensor(output, \"output\")\n _check_tensor_list(input_list, \"input_list\")\n if _rank_not_in_group(group):\n return\n\n opts = ReduceScatterOptions()\n opts.reduceOp = op\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.reduce_scatter([output], [input_list], opts)\n else:\n work = group.reduce_scatter([output], [input_list], opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef all_to_all_single(output,\n input,\n output_split_sizes=None,\n input_split_sizes=None,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Each process splits input tensor and then scatters the split list\n to all processes in a group. Then concatenate the received tensors from all\n the processes in the group and return single output tensor.\n\n Arguments:\n output (Tensor): Gathered cancatenated output tensor.\n input (Tensor): Input tensor to scatter.\n output_split_sizes: (list[Int], optional): Output split sizes for dim 0\n if specified None or empty, dim 0 of ``output`` tensor must divide\n equally by ``world_size``.\n input_split_sizes: (list[Int], optional): Input split sizes for dim 0\n if specified None or empty, dim 0 of ``input`` tensor must divide\n equally by ``world_size``.\n group (ProcessGroup, optional): The process group to work on.\n async_op (bool, optional): Whether this op should be an async op.\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group.\n\n .. warning::\n `all_to_all_single` is experimental and subject to change.\n\n Examples:\n >>> input = torch.arange(4) + rank * 4\n >>> input\n tensor([0, 1, 2, 3]) # Rank 0\n tensor([4, 5, 6, 7]) # Rank 1\n tensor([8, 9, 10, 11]) # Rank 2\n tensor([12, 13, 14, 15]) # Rank 3\n >>> output = torch.empty([4], dtype=torch.int64)\n >>> dist.all_to_all_single(output, input)\n >>> output\n tensor([0, 4, 8, 12]) # Rank 0\n tensor([1, 5, 9, 13]) # Rank 1\n tensor([2, 6, 10, 14]) # Rank 2\n tensor([3, 7, 11, 15]) # Rank 3\n\n >>> # Essentially, it is similar to following operation:\n >>> scatter_list = list(input.chunk(world_size))\n >>> gather_list = list(output.chunk(world_size))\n >>> for i in range(world_size):\n >>> dist.scatter(gather_list[i], scatter_list if i == rank else [], src = i)\n\n >>> # Another example with uneven split\n >>> input\n tensor([0, 1, 2, 3, 4, 5]) # Rank 0\n tensor([10, 11, 12, 13, 14, 15, 16, 17, 18]) # Rank 1\n tensor([20, 21, 22, 23, 24]) # Rank 2\n tensor([30, 31, 32, 33, 34, 35, 36]) # Rank 3\n >>> input_splits\n [2, 2, 1, 1] # Rank 0\n [3, 2, 2, 2] # Rank 1\n [2, 1, 1, 1] # Rank 2\n [2, 2, 2, 1] # Rank 3\n >>> output_splits\n [2, 3, 2, 2] # Rank 0\n [2, 2, 1, 2] # Rank 1\n [1, 2, 1, 2] # Rank 2\n [1, 2, 1, 1] # Rank 3\n >>> output = ...\n >>> dist.all_to_all_single(output, input, output_splits, input_splits)\n >>> output\n tensor([ 0, 1, 10, 11, 12, 20, 21, 30, 31]) # Rank 0\n tensor([ 2, 3, 13, 14, 22, 32, 33]) # Rank 1\n tensor([ 4, 15, 16, 23, 34, 35]) # Rank 2\n tensor([ 5, 17, 18, 24, 36]) # Rank 3\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n opts = AllToAllOptions()\n _check_single_tensor(output, \"output\")\n _check_single_tensor(input, \"input\")\n output_split_sizes = [] if output_split_sizes is None else output_split_sizes\n input_split_sizes = [] if input_split_sizes is None else input_split_sizes\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.alltoall_base(output, input, output_split_sizes, input_split_sizes, opts)\n else:\n work = group.alltoall_base(output, input, output_split_sizes, input_split_sizes, opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\ndef all_to_all(output_tensor_list,\n input_tensor_list,\n group=group.WORLD,\n async_op=False):\n \"\"\"\n Each process scatters list of input tensors to all processes in a group and\n return gathered list of tensors in output list.\n\n Arguments:\n output_tensor_list (list[Tensor]): List of tensors to be gathered one\n per rank.\n input_tensor_list (list[Tensor]): List of tensors to scatter one per rank.\n group (ProcessGroup, optional): The process group to work on.\n async_op (bool, optional): Whether this op should be an async op.\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group.\n\n .. warning::\n `all_to_all` is experimental and subject to change.\n\n Examples:\n >>> input = torch.arange(4) + rank * 4\n >>> input = list(input.chunk(4))\n >>> input\n [tensor([0]), tensor([1]), tensor([2]), tensor([3])] # Rank 0\n [tensor([4]), tensor([5]), tensor([6]), tensor([7])] # Rank 1\n [tensor([8]), tensor([9]), tensor([10]), tensor([11])] # Rank 2\n [tensor([12]), tensor([13]), tensor([14]), tensor([15])] # Rank 3\n >>> output = list(torch.empty([4], dtype=torch.int64).chunk(4))\n >>> dist.all_to_all(output, input)\n >>> output\n [tensor([0]), tensor([4]), tensor([8]), tensor([12])] # Rank 0\n [tensor([1]), tensor([5]), tensor([9]), tensor([13])] # Rank 1\n [tensor([2]), tensor([6]), tensor([10]), tensor([14])] # Rank 2\n [tensor([3]), tensor([7]), tensor([11]), tensor([15])] # Rank 3\n\n >>> # Essentially, it is similar to following operation:\n >>> scatter_list = input\n >>> gather_list = output\n >>> for i in range(world_size):\n >>> dist.scatter(gather_list[i], scatter_list if i == rank else [], src = i)\n\n >>> input\n tensor([0, 1, 2, 3, 4, 5]) # Rank 0\n tensor([10, 11, 12, 13, 14, 15, 16, 17, 18]) # Rank 1\n tensor([20, 21, 22, 23, 24]) # Rank 2\n tensor([30, 31, 32, 33, 34, 35, 36]) # Rank 3\n >>> input_splits\n [2, 2, 1, 1] # Rank 0\n [3, 2, 2, 2] # Rank 1\n [2, 1, 1, 1] # Rank 2\n [2, 2, 2, 1] # Rank 3\n >>> output_splits\n [2, 3, 2, 2] # Rank 0\n [2, 2, 1, 2] # Rank 1\n [1, 2, 1, 2] # Rank 2\n [1, 2, 1, 1] # Rank 3\n >>> input = list(input.split(input_splits))\n >>> input\n [tensor([0, 1]), tensor([2, 3]), tensor([4]), tensor([5])] # Rank 0\n [tensor([10, 11, 12]), tensor([13, 14]), tensor([15, 16]), tensor([17, 18])] # Rank 1\n [tensor([20, 21]), tensor([22]), tensor([23]), tensor([24])] # Rank 2\n [tensor([30, 31]), tensor([32, 33]), tensor([34, 35]), tensor([36])] # Rank 3\n >>> output = ...\n >>> dist.all_to_all(output, input)\n >>> output\n [tensor([0, 1]), tensor([10, 11, 12]), tensor([20, 21]), tensor([30, 31])] # Rank 0\n [tensor([2, 3]), tensor([13, 14]), tensor([22]), tensor([32, 33])] # Rank 1\n [tensor([4]), tensor([15, 16]), tensor([23]), tensor([34, 35])] # Rank 2\n [tensor([5]), tensor([17, 18]), tensor([24]), tensor([36])] # Rank 3\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n opts = AllToAllOptions()\n _check_tensor_list(output_tensor_list, \"output_tensor_list\")\n _check_tensor_list(input_tensor_list, \"input_tensor_list\")\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.alltoall(output_tensor_list, input_tensor_list, opts)\n else:\n work = group.alltoall(output_tensor_list, input_tensor_list, opts)\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef barrier(group=group.WORLD,\n async_op=False):\n \"\"\"\n Synchronizes all processes.\n\n This collective blocks processes until the whole group enters this function,\n if async_op is False, or if async work handle is called on wait().\n\n Arguments:\n group (ProcessGroup, optional): The process group to work on\n async_op (bool, optional): Whether this op should be an async op\n\n Returns:\n Async work handle, if async_op is set to True.\n None, if not async_op or if not part of the group\n \"\"\"\n if _rank_not_in_group(group):\n return\n\n if group == GroupMember.WORLD:\n _check_default_pg()\n work = _default_pg.barrier()\n else:\n work = group.barrier()\n\n if async_op:\n return work\n else:\n work.wait()\n\n\ndef new_group(ranks=None, timeout=default_pg_timeout, backend=None):\n \"\"\"\n Creates a new distributed group.\n\n This function requires that all processes in the main group (i.e. all\n processes that are part of the distributed job) enter this function, even\n if they are not going to be members of the group. Additionally, groups\n should be created in the same order in all processes.\n\n Arguments:\n ranks (list[int]): List of ranks of group members. If ``None``, will be\n set to all ranks. Default is ``None``.\n timeout (timedelta, optional): Timeout for operations executed against\n the process group. Default value equals 30 minutes.\n This is only applicable for the ``gloo`` backend.\n backend (str or Backend, optional): The backend to use. Depending on\n build-time configurations, valid values are ``gloo`` and ``nccl``.\n By default uses the same backend as the global group. This field\n should be given as a lowercase string (e.g., ``\"gloo\"``), which can\n also be accessed via :class:`Backend` attributes (e.g.,\n ``Backend.GLOO``).\n\n Returns:\n A handle of distributed group that can be given to collective calls.\n \"\"\"\n\n _check_default_pg()\n\n global _pg_group_ranks\n\n default_backend, default_store = _pg_map[_default_pg]\n global_rank = _default_pg.rank()\n global_world_size = _default_pg.size()\n\n # Default to the same backend as the global process group\n # if the backend is not specified.\n if not backend:\n backend = default_backend\n\n # checks the input ranks\n if ranks is not None:\n ranks = sorted(ranks)\n group_world_size = len(ranks)\n if group_world_size > global_world_size:\n raise RuntimeError(\"the new group's world size should be less or \"\n \"equal to the world size set by \"\n \"init_process_group\")\n # check ranks' sanity\n for rank in ranks:\n if rank < 0 or rank >= global_world_size:\n raise RuntimeError(\"The new group's rank should be within the \"\n \"the world_size set by init_process_group\")\n if global_rank in ranks:\n group_rank = ranks.index(global_rank)\n else:\n group_rank = None\n else:\n ranks = list(range(global_world_size))\n group_world_size = global_world_size\n group_rank = global_rank\n\n backend = Backend(backend)\n pg = _new_process_group_helper(group_world_size,\n group_rank,\n ranks,\n backend,\n default_store,\n timeout=timeout)\n\n # Create the global rank to group rank mapping\n _pg_group_ranks[pg] = {\n global_rank: group_rank\n for group_rank, global_rank in enumerate(ranks)\n }\n\n # barrier at the end to ensure that once we return from this method, all\n # process groups including global variables are updated correctly on all\n # ranks.\n barrier()\n\n return pg\n","repo_name":"snuspl/nimble","sub_path":"torch/distributed/distributed_c10d.py","file_name":"distributed_c10d.py","file_ext":"py","file_size_in_byte":72925,"program_lang":"python","lang":"en","doc_type":"code","stars":248,"dataset":"github-code","pt":"86"}
+{"seq_id":"71229707164","text":"import yahooquery as yq\n\nfrom src.empresas.outils.data_management.information_sources.y_finance import YFinanceInfo\n\n\ndef simple_stock_analysis(empresa):\n inf = YFinanceInfo(empresa).request_info_yfinance\n current_price = inf.get(\"currentPrice\")\n result = {\"result\": 4}\n if not current_price:\n yahooquery_info = yq.Ticker(empresa.ticker).price\n key = yahooquery_info.keys()[0] # type: ignore\n if yahooquery_info[key] != \"Quote not found for ticker symbol: LB\":\n current_price = yahooquery_info[key][\"regularMarketPrice\"] # type: ignore\n\n result_buy = {\"result\": 1}\n\n result_sell = {\"result\": 2}\n\n result_hold = {\"result\": 3}\n\n if \"recommendationKey\" in inf:\n recommendationKey = inf[\"recommendationKey\"]\n if recommendationKey == \"buy\":\n result = result_buy\n elif recommendationKey == \"hold\":\n result = result_hold\n elif recommendationKey == \"sell\":\n result = result_sell\n\n else:\n if \"targetMeanPrice\" in inf:\n targetMeanPrice = inf[\"targetMeanPrice\"]\n if targetMeanPrice < current_price:\n result = result_sell\n elif targetMeanPrice > current_price:\n result = result_buy\n elif targetMeanPrice == current_price:\n result = result_hold\n\n else:\n current_price = inf[\"currentPrice\"]\n try:\n per = empresa.per_share_values.latest().eps / current_price\n if per < 10:\n result = result_buy\n elif per > 20:\n result = result_sell\n elif per > 10 and per < 20:\n result = result_hold\n except Exception:\n pass\n\n return result\n","repo_name":"InvFin/InvFin-Backend","sub_path":"src/empresas/brain/analysis.py","file_name":"analysis.py","file_ext":"py","file_size_in_byte":1802,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"7752351019","text":"import pya\nimport math\n\nclass TText(pya.PCellDeclarationHelper):\n\n def __init__(self):\n # Important: initialize the super class\n super(TText, self).__init__()\n db = pya.QFontDatabase()\n fonts = []\n for font in db.families():\n fonts.append([font, font])\n # declare the parameters\n self.param(\"l\", self.TypeLayer, \"Layer\", default = pya.LayerInfo(1, 0))\n self.param(\"text\", self.TypeString, \"Text\", default = \"\")\n self.param(\"f\", self.TypeList, \"Font\", choices = fonts)\n self.param(\"w\", self.TypeList, \"Weight\", default = 50, choices = [[\"Thin\", 0], [\"Extra light\", 12], [\"Light\", 25], [\"Normal\", 50], [\"Medium\", 57], [\"Demi Bold\", 63], [\"Bold\", 75], [\"Extra Bold\", 81], [\"Black\", 87]])\n self.param(\"s\", self.TypeList, \"Style\", default = 0, choices = [[\"Normal\", 0], [\"Italic\", 1], [\"Oblique\", 2]])\n self.param(\"q\", self.TypeInt, \"Resolution\", default = 20)\n\n def display_text_impl(self):\n return \"Text(\" + self.text + \")\"\n \n def coerce_parameters_impl(self):\n pass \n \n def can_create_from_shape_impl(self):\n return self.shape.is_text()\n \n def parameters_from_shape_impl(self):\n self.text = self.shape.text.string\n \n def transformation_from_shape_impl(self):\n return pya.Trans(self.shape.bbox().center())\n \n def produce_impl(self):\n dbu = self.layout.dbu\n path = pya.QPainterPath()\n font = pya.QFont(self.f, self.q, self.w, False)\n if self.s == 0:\n font.setStyle(pya.QFont.StyleNormal)\n elif self.s == 1:\n font.setStyle(pya.QFont.StyleItalic)\n else:\n font.setStyle(pya.QFont.StyleOblique)\n path.addText(0, 0, font, self.text)\n polygons = path.toSubpathPolygons()\n # gen polygon data\n source = []\n for polygon in polygons:\n points = []\n for point in polygon:\n points.append(pya.Point.from_dpoint(pya.DPoint(point.x/dbu/self.q, -point.y/dbu/self.q)))\n source.append([points, []])\n # generate parent tree\n for polygon in source:\n for suspectedParent in source:\n if polygon != suspectedParent:\n inside = True\n for point in polygon[0]:\n if not pya.Polygon(suspectedParent[0]).inside(point):\n inside = False\n if inside:\n polygon[1].append(suspectedParent)\n # generate KLayout polygons\n outpoly = []\n i = 0\n while len(source):\n # find top\n for poly in source:\n if len(poly[1]) == 0:\n source.remove(poly)\n top = pya.Polygon(poly[0])\n break\n remove = []\n # add corresponding holes\n for polygon in source:\n if poly in polygon[1]:\n if len(polygon[1]) == 1:\n remove.append(polygon)\n top.insert_hole(polygon[0])\n polygon[1].remove(poly)\n for polygon in remove:\n source.remove(polygon)\n self.cell.shapes(self.l_layer).insert(top)","repo_name":"jurask/ShapeLib","sub_path":"python/text.py","file_name":"text.py","file_ext":"py","file_size_in_byte":2872,"program_lang":"python","lang":"en","doc_type":"code","stars":7,"dataset":"github-code","pt":"86"}
+{"seq_id":"22992752960","text":"import sys\nfrom typing import List\n\n\"\"\"\nName: Amos Choo Jia Shern\nID: 31164498\n\n\"\"\"\n\n\ndef read_file(txt_file,pat_file):\n \"\"\"\n Read file\n \n \"\"\"\n with open (txt_file,\"r\",encoding=\"utf-8\") as f:\n txt=f.read()\n with open(pat_file,\"r\",encoding=\"utf-8\") as f:\n pat=f.read()\n return txt,pat\n\ndef write_tofile(occurences:List[int]):\n \"\"\"\n Write to file\n \"\"\"\n with open(\"output_modkmp.txt\",\"w\",encoding=\"utf-8\") as f:\n if not occurences:\n f.close()\n return\n\n #This line of code is referenced from \n # https://monash.au.panopto.com/Panopto/Pages/Viewer.aspx?id=c11e7654-565b-415b-a7d9-ad7f0090bc75&start=0 \n f.write(str(occurences[0]+1))\n for i in range(1,len(occurences)):\n f.write(\"\\n\")\n f.write(str(occurences[i]+1))\n\n\ndef zalgo(word:str):\n \"\"\"\n Z-algorithm for pattern matching\n Generate and return zarray\n\n Time Complexity: O(len(word))\n\n \n \"\"\"\n zarray=[0]*len(word)\n\n zarray[0]=len(word) #first position holds no info\n left,right=0,0\n for i in range(1,len(word)):\n\n #Case 1: explicit comparison\n if i>right:\n count=explicit_comparison(word,i,0) #start from i\n if count>0:\n #update count\n zarray[i]=count\n left=i\n right=i+count-1\n else: #Case 2, inside z box\n k=i-left\n remaining=right-i+1\n #Case 2a, value of previous zbox lesseer than remaining\n if zarray[k]remaining:\n zarray[i]=remaining\n\n else: #zarray[k]==remaining: Case 2c, need to explicit compare\n count=explicit_comparison(word,right+1,remaining) #start from right+1\n zarray[i]=zarray[k]+count\n if count>0:\n right=remaining-1\n left=i\n return zarray\n\ndef explicit_comparison(pattern,start1,start2):\n \"\"\"\n Explicit comparison\n given two indexes\n \n \"\"\"\n count=0\n for i in range(start1,len(pattern)):\n if pattern[i]!=pattern[start2]:\n break\n start2+=1\n count+=1\n return count\n\ndef shared_prefix(pattern,zarray):\n \"\"\"\n Shared prefix array\n Algorithm referenced from Lecture notes\n\n \"\"\"\n m=len(pattern)\n sp=[0]*m\n for j in range(m-1,0,-1):\n i=j+zarray[j]-1\n sp[i]=zarray[j]\n return sp\n\ndef spix(pattern,zarray):\n \"\"\"\n spi(x) matrix\n\n Same thing as SPi array but fill up mismatches according to the mismatch\n character index\n \n \"\"\"\n\n m=len(pattern)\n matrix=[[0 for i in range(m)] for j in range(126-32)] #126-32 == printable ascii characters\n\n for j in range(m-1,0,-1):\n i=j+zarray[j]-1\n x=zarray[j] #mismatch position at pattern from prefix\n matrix[ord(pattern[x])-32][i]=zarray[j]\n return matrix\n\n \n\ndef kmp_mod(pattern,text):\n \"\"\"\n \n Modded kmp to use SPi(x) when a mismatch occurs\n Time complexity: O(m+n)\n \"\"\"\n\n #Preprocess\n zarray=zalgo(pattern)\n sp=shared_prefix(pattern,zarray)\n spix_array=spix(pattern,zarray)\n\n\n i=0\n n=len(text)\n m=len(pattern)\n matches=[]\n resume=0 #galil variable\n\n\n while i+m<=n:\n j=0\n mismatch=False\n\n while j 0 and not done:\n GUESS_LIMIT -= 1 # Take one guess = lose one chance\n if GUESS_LIMIT > 0:\n if GUESS < RANDOM:\n print(f\"It should be higher than {GUESS}.\")\n elif GUESS > RANDOM:\n print(f\"It should be lower than {GUESS}.\")\n else:\n ATTEMPTS_TOOK = ATTEMPTS_ALLOWED - GUESS_LIMIT\n print(f\"You nailed it! And it only took you {ATTEMPTS_TOOK} attempts.\")\n done = True\n if GUESS_LIMIT > 0 and not done:\n print(f\"You still have {GUESS_LIMIT} chances left.\\n\")\n GUESS = int(input(\"Try a new guess: \"))\n # Another input validation loop.\n GUESS = InputValidation(GUESS, GUESS_RANGE)\n elif GUESS_LIMIT == 0 and not done: # Last chance to guess\n if GUESS == RANDOM:\n print(\n f\"You nailed it! However, it took you all the {ATTEMPTS_ALLOWED} attempts.\"\n )\n else:\n print(\n f\"GAME OVER! It took you more than {ATTEMPTS_ALLOWED} attempts. \"\n f\"The correct number is {RANDOM}.\"\n )\n\n\ndef InputValidation(GUESS, GUESS_RANGE):\n while not 1 <= GUESS <= GUESS_RANGE:\n print(\"TRY AGAIN! Your guess is out of range!\\n\")\n GUESS = int(input(\"What is your guess? \"))\n return GUESS\n\n\ndef easy():\n print(\"You are to guess a number between 1 and 10 in no more than 6 attempts.\")\n guessing_game(10, 6)\n\n\ndef medium():\n print(\"You are to guess a number between 1 and 20 in no more than 4 attempts.\")\n guessing_game(20, 4)\n\n\ndef hard():\n print(\"You are to guess a number between 1 and 50 in no more than 3 attempts.\")\n guessing_game(50, 3)\n\n\ndef try_again():\n print()\n again = input(\"Do you want to play again? (yes/no) \")\n if again.lower() in [\"y\", \"yes\"]:\n welcome()\n elif again.lower() in [\"n\", \"no\"]:\n print(\"Thanks for playing the game\")\n else:\n print(\"INVALID VALUE\")\n try_again()\n\n\ndef welcome():\n print(\"Hello, Welcome to the Guessing Game!\")\n name = input(\"I'm Geek! What's Your Name? \")\n sleep(1)\n\n print(f\"Okay, {name}. Let's Begin The Guessing Game!\")\n print(\n \"Choose a level:\",\n \"1. Easy\",\n \"2. Medium\",\n \"3. Hard\",\n sep=\"\\n\",\n )\n sleep(1)\n level = int(input(\"Pick a number: \"))\n print()\n sleep(1)\n if level == 1:\n easy()\n try_again()\n elif level == 2:\n medium()\n try_again()\n elif level == 3:\n hard()\n try_again()\n else:\n print(\"INVALID VALUE! Please try again.\\n\")\n welcome()\n\n\nwelcome()\n","repo_name":"geekcomputers/Python","sub_path":"Guessing_Game.py","file_name":"Guessing_Game.py","file_ext":"py","file_size_in_byte":3129,"program_lang":"python","lang":"en","doc_type":"code","stars":28675,"dataset":"github-code","pt":"80"}
+{"seq_id":"40706507867","text":"# functions/relu.py\nimport torch\nfrom torch.autograd import Function\nfrom _ext import ext_lib\n\n\nclass ReLUF(Function):\n def forward(self, input):\n self.save_for_backward(input)\n\n output = input.new()\n if not input.is_cuda:\n ext_lib.relu_forward(input, output)\n else:\n raise Exception(\"No CUDA Implementation\")\n return output\n\n def backward(self, grad_output):\n input, = self.saved_tensors\n\n grad_input = grad_output.new()\n if not grad_output.is_cuda:\n ext_lib.relu_backward(grad_output, input, grad_input)\n else:\n raise Exception(\"No CUDA Implementation\")\n return grad_input\n","repo_name":"DingKe/pytorch_workplace","sub_path":"cffi/functions/relu.py","file_name":"relu.py","file_ext":"py","file_size_in_byte":695,"program_lang":"python","lang":"en","doc_type":"code","stars":174,"dataset":"github-code","pt":"80"}
+{"seq_id":"11954641931","text":"import csv\nimport xml.etree.cElementTree as ET\n\nroot = ET.Element(\"root\") # set up root\ndoc = ET.SubElement(root, \"input\") # set up input\n\nwith open('OfficialDatatoConvert.csv') as csv_file: # import csv file\n csv_reader = csv.reader(csv_file, delimiter=';') # split the file using the | as a delimiter\n for row in csv_reader: # iterate through each row in the file\n blanks_removed_row = ' '.join(row).split() # remove any row in the file that is empty (I've assumed you needed this as the output didn't have blank data)\n input = ET.SubElement(doc, \"item\") # create an item \n for i, item in enumerate(blanks_removed_row, start=1): # iterate through each row item and enumerate (to start counting from 1)\n ET.SubElement(input, \"data{0}\".format(i)).text = item # insert a new data element with the item appending the count number to the data\n\ntree = ET.ElementTree(root) \ntree.write(\"filename.xml\", encoding='utf-8', xml_declaration=True) # save tree","repo_name":"LiamKaist/PostBuildingData","sub_path":"converttoxml.py","file_name":"converttoxml.py","file_ext":"py","file_size_in_byte":986,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"21894433940","text":"#!/usr/bin/env python3\nimport json\n\ndef parse_bytes(n):\n xs = [n&0xFF]\n n >>= 8\n while n != 0:\n xs.append(n&0xFF)\n n >>= 8\n return xs\n\ndef val2str(n):\n s = ''\n for b in parse_bytes(n):\n s += chr(b) if b > 31 and b < 128 else '' # '\\\\x'+str(hex(b))\n return s\n\ndef main(path):\n with open(path, 'r') as f:\n data = json.load(f)\n for cmp in data['cmps']:\n print(cmp['header'])\n for i, log in enumerate(cmp['log']):\n v0 = val2str(log['v0'])\n v1 = val2str(log['v1'])\n if len(v0) or len(v1):\n print(f\"{i:02} - /{v0}/ - /{v1}/\")\n v0_128 = val2str(log['v0_128'])\n v1_128 = val2str(log['v1_128'])\n if len(v0_128) or len(v1_128):\n print(f\"{i:02} - /{v0_128}/ - /{v1_128}/ (128)\")\n\nif __name__ == '__main__':\n import sys\n if len(sys.argv) < 2:\n print(f\"usage: {sys.argv[0]} \")\n sys.exit(1)\n main(sys.argv[1])\n","repo_name":"acidghost/cmplog-runner","sub_path":"inspect.py","file_name":"inspect.py","file_ext":"py","file_size_in_byte":1000,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"38361575596","text":"#travelling salesman problem\r\nimport doctest\r\nfrom itertools import permutations\r\n\r\ndef distance(point1, point2):\r\n return ((point1[0] - point2[0])**2 + (point1[1] - point2[1])**2) ** 0.5\r\n\r\n\r\ndef total_distance(points):\r\n return sum([distance(point, points[index + 1]) for index, point in enumerate(points[:-1])])\r\n\r\n\r\ndef travelling_salesman(points, start=None):\r\n if start is None:\r\n start = points[0]\r\n return min([perm for perm in permutations(points) if perm[0] == start], key=total_distance)\r\n\r\n\r\ndef optimized_travelling_salesman(points, start=None):\r\n if start is None:\r\n start = points[0]\r\n must_visit = points\r\n path = [start]\r\n must_visit.remove(start)\r\n while must_visit:\r\n nearest = min(must_visit, key=lambda x: distance(path[-1], x))\r\n path.append(nearest)\r\n must_visit.remove(nearest)\r\n return path\r\n\r\n\r\ndoctest.testmod()\r\npoints = [[0, 0], [1, 5.7], [2, 3], [3, 7],\r\n [0.5, 9], [3, 5], [9, 1], [10, 5]]\r\nprint(\"\"\"The minimum distance to visit all the following points: {}\r\nstarting at {} is {}.\r\n\r\nThe optimized algorithm yields a path long {}.\"\"\".format(\r\ntuple(points),\r\npoints[0],\r\ntotal_distance(travelling_salesman(points)),\r\ntotal_distance(optimized_travelling_salesman(points))))\r\n","repo_name":"coderanony/ezpz","sub_path":"TravellingSalesman.py","file_name":"TravellingSalesman.py","file_ext":"py","file_size_in_byte":1285,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"36908553266","text":"# Definition for a binary tree node.\n# class TreeNode(object):\n# def __init__(self, x):\n# self.val = x\n# self.left = None\n# self.right = None\n\nclass Solution(object):\n def inorderTraversal(self, root):\n \"\"\"\n :type root: TreeNode\n :rtype: List[int]\n \"\"\"\n # def helper(root,stack):\n # if root is None: return None\n # if root.left:\n # helper(root.left,stack)\n # stack.append(root.val)\n # if root.right:\n # helper(root.right,stack)\n # res = []\n # helper(root,res)\n # return res\n if root is None: return []\n lis = []\n stack = []\n cur = root\n while cur is not None or stack:\n while cur is not None:\n stack.append(cur)\n cur = cur.left\n tmp = stack.pop()\n lis.append(tmp.val)\n cur = tmp.right\n\n\n\n\n","repo_name":"yiz202/leetcode","sub_path":"94.py","file_name":"94.py","file_ext":"py","file_size_in_byte":959,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"35167241131","text":"import glob\nimport yaml\n\n\ndef get_platform(input_file: str) -> str:\n if \"/android/\" in input_file:\n return \"android\"\n elif \"/ios/\" in input_file:\n return \"ios\"\n\ndef get_mastg_tests_dict():\n\n mastg_tests = {}\n\n for file in glob.glob(\"tests/**/*.md\", recursive=True):\n with open(file, 'r') as f:\n id = \"\"\n content = f.read()\n platform = get_platform(file)\n\n frontmatter = next(yaml.load_all(content, Loader=yaml.FullLoader))\n masvs_v2_id = frontmatter['masvs_v2_id']\n frontmatter['path'] = file\n if masvs_v2_id:\n id = masvs_v2_id[0] \n if id not in mastg_tests:\n mastg_tests[id] = {}\n if platform not in mastg_tests[id]:\n mastg_tests[id][platform] = []\n mastg_tests[id][platform].append(frontmatter)\n else:\n print(f\"No MASVS v2 coverage for: {frontmatter['title']} (was {frontmatter['masvs_v1_id']})\")\n return mastg_tests\n\n# with open('mastg_tests.yaml', 'w') as f:\n# f.write(yaml.dump(get_mastg_tests_dict(), indent=4, sort_keys=False))\n","repo_name":"OWASP/owasp-mastg","sub_path":"src/scripts/get_tests_dict.py","file_name":"get_tests_dict.py","file_ext":"py","file_size_in_byte":1176,"program_lang":"python","lang":"en","doc_type":"code","stars":10847,"dataset":"github-code","pt":"80"}
+{"seq_id":"43070114029","text":"\"\"\"\nMADE BY RDUAN, FOR RESEARCH ONLY\n\nThis programe is for displace all the \n\nWARNING:\n1. THIS PROGRAME CAN BE USED IN GET HORTZONTAL PROJECTILE MOTION ONLY\n2. PLEASE PLACE YOUR ORIGINAL DATA FILE ON ./csv_data FOLDER\n3. THE OUTPUT DATA WILL BE PLACED IN ./csv_displacement\n\"\"\"\n\nimport csv\nimport os\n\n# VARIABLE DEFINE AREA\n\ncsv_dir='./csv_data' # ORIGINAL CSV DATA PATH\noutput_csv_dir='./csv_displacement' # OUTPUT CSV DATA PATH\nratio_csv_dir='./csv_data/ratio.csv' # ratio_csv_data\nobject_height=60 #object height #物件高度(cm)\nratio_switch=True\n# 設定True會轉換為公分,False不會\n\n\n\ndef read_csv_to_array(file_path):\n data_array = []\n\n with open(file_path, 'r') as file:\n csv_reader = csv.reader(file)\n for row in csv_reader:\n try:\n row_int = [int(element) for element in row]\n data_array.append(row_int)\n except ValueError:\n continue\n\n return data_array\n\ndef write_array_to_csv(data_array, file_path):\n file_path = os.path.join(output_csv_dir, file_path)\n title = [['frame', 'x', 'y']] + [row for row in data_array]\n with open(file_path, 'w', newline='') as file:\n csv_writer = csv.writer(file)\n csv_writer.writerows(title)\n\n\nratio_data=read_csv_to_array(ratio_csv_dir)\nr_b = ratio_data[0][2] #bottom\nr_h= ratio_data[1][2] #height\nratio=(abs(r_h-r_b)/object_height)\n\n\ncsv_datas=[] # DO NOT CHANGE THIS VARIABLE\nprint(csv_datas)\nfor root,dir,files in os.walk(csv_dir):\n for file in files:\n print(type(file))\n if os.path.basename(file) == \"ratio.csv\":\n continue\n else:\n csv_datas.append(os.path.join(root,file))\nprint(csv_datas)\n\nfor csv_name in csv_datas:\n data = read_csv_to_array(csv_name)\n try:\n x_f = data[0][1]\n y_f = data[0][2]\n print(\"FILE {} BEFORE DISPLACEMENT\".format(csv_name))\n print(data)\n \n for i in range(len(data)):\n data[i][1] -= x_f\n data[i][2] -= y_f\n if ratio_switch==True:\n data[i][1] /= ratio\n data[i][2] /= ratio\n \n print(\"FILE {} AFTER DISPLACEMENT\".format(csv_name))\n # 使用 os.path.basename() 取得檔案名稱\n filename = os.path.basename(csv_name)\n\n # 使用 os.path.splitext() 分割檔案名稱和副檔名\n write_array_to_csv(data,filename)\n\n \n except IndexError:\n print(\"FILE {} Index out of range error occurred.\".format(csv_name))\n","repo_name":"Rduanchen/ScientNet","sub_path":"data_process.py","file_name":"data_process.py","file_ext":"py","file_size_in_byte":2510,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"6227303654","text":"\"\"\"Abstract Syntax Tree Nodes\n\nThis module defines classes for the AST nodes. Only the initializers are\ndefined here. Semantic analysis methods, optimization methods, and code\ngeneration are handled by other modules. This keeps the compiler organized\nby phase.\n\"\"\"\n\nfrom io import StringIO\n\n\nclass Program:\n def __init__(self, statements):\n self.statements = statements\n\n def __str__(self):\n return text(self)\n\n\nclass Declaration:\n def __init__(self, name, initializer):\n self.name = name\n self.initializer = initializer\n\n\nclass Assignment:\n def __init__(self, target, source):\n self.target = target\n self.source = source\n\n\nclass PrintStatement:\n def __init__(self, expression):\n self.expression = expression\n\n\nclass BinaryExpression:\n def __init__(self, op, left, right):\n self.op = op\n self.left = left\n self.right = right\n\n\nclass UnaryExpression:\n def __init__(self, op, operand):\n self.op = op\n self.operand = operand\n\n\nclass IdentifierExpression:\n def __init__(self, name):\n self.name = name\n\n\nclass LiteralExpression:\n def __init__(self, value):\n self.value = value\n\n\ndef text(node):\n # Return a compact but pretty string representation of the node graph,\n # taking care of cycles. Written here from scracth because the built-in\n # Python pprint library has a function that works fine on dictionaries\n # but not on custom classes (unless you were to write your own str\n # function for each class, which would be very tedious and not necessary\n # in this case).\n buffer = StringIO()\n seen = {}\n node_id = 0\n\n def subtree_text(node, prefix, indent):\n nonlocal node_id\n node_id += 1\n seen[node] = node_id\n descriptor = f\"{' ' * indent}{prefix}: {type(node).__name__}\"\n simple_attributes, complex_attributes = \"\", []\n for attribute, child in node.__dict__.items():\n if '__dict__' in dir(child) and child in seen:\n simple_attributes += f\" {attribute}=${seen[child]}\"\n elif isinstance(child, list) or '__dict__' in dir(child):\n complex_attributes.append((attribute, child))\n else:\n simple_attributes += f\" {attribute}={repr(child)}\"\n print(f\"{node_id:4} | {descriptor}{simple_attributes}\", file=buffer)\n for attribute, child in complex_attributes:\n if isinstance(child, list):\n for index, node in enumerate(child):\n subtree_text(node, f'{attribute}[{index}]', indent + 2)\n else:\n subtree_text(child, attribute, indent + 2)\n\n subtree_text(node, prefix='program', indent=0)\n return buffer.getvalue()\n","repo_name":"rtoal/ael","sub_path":"ael/ast.py","file_name":"ast.py","file_ext":"py","file_size_in_byte":2764,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"80"}
+{"seq_id":"3452151887","text":"# -*- coding: utf-8 -*-\n\n# Resource object code\n#\n# Created by: The Resource Compiler for PyQt5 (Qt v5.13.2)\n#\n# WARNING! All changes made in this file will be lost!\n\nfrom PyQt5 import QtCore\n\nqt_resource_data = b\"\\\n\\x00\\x00\\x57\\x30\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\xa3\\x00\\x00\\x00\\xa3\\x08\\x06\\x00\\x00\\x00\\xe6\\x6c\\xae\\x80\\\n\\x00\\x00\\x00\\x09\\x70\\x48\\x59\\x73\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\\n\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x00\\x20\\x63\\x48\\x52\\x4d\\x00\\x00\\x7a\\\n\\x25\\x00\\x00\\x80\\x83\\x00\\x00\\xf9\\xff\\x00\\x00\\x80\\xe9\\x00\\x00\\x75\\\n\\x30\\x00\\x00\\xea\\x60\\x00\\x00\\x3a\\x98\\x00\\x00\\x17\\x6f\\x92\\x5f\\xc5\\\n\\x46\\x00\\x00\\x56\\xb6\\x49\\x44\\x41\\x54\\x78\\xda\\xec\\x9d\\x77\\x9c\\x1d\\\n\\x65\\xbd\\xff\\xdf\\xcf\\xcc\\x9c\\xde\\xf6\\x6c\\x6f\\xd9\\x96\\xb2\\xc9\\x26\\\n\\x9b\\x6c\\x7a\\x25\\xa1\\x86\\x2a\\x10\\x44\\xb1\\xc0\\x4d\\x44\\xe5\\x87\\xa8\\\n\\x57\\xee\\xf5\\x5e\\xae\\xa8\\x97\\xa2\\x88\\x8a\\xa0\\x28\\xa0\\x68\\x14\\x41\\\n\\x10\\x45\\xb8\\xd2\\x0d\\x04\\x12\\x42\\x20\\x01\\xd2\\xb3\\x09\\x49\\x36\\x65\\\n\\x5b\\xb6\\xf7\\x72\\xfa\\x99\\x99\\xe7\\xf7\\xc7\\x9c\\x24\\x9b\\x18\\x30\\x81\\\n\\x00\\x09\\xec\\xf7\\xf5\\x1a\\xd8\\xec\\x9e\\x99\\xf3\\x3c\\x33\\x9f\\xf9\\xf6\\\n\\x22\\xa4\\x94\\x0c\\xd3\\x30\\x9d\\x0c\\xa4\\x0c\\xdf\\x82\\x61\\x1a\\x06\\xe3\\\n\\x30\\x0d\\xd3\\x30\\x18\\x87\\x69\\x18\\x8c\\xc3\\x34\\x4c\\xc3\\x60\\x1c\\xa6\\\n\\x61\\x30\\x0e\\xd3\\x30\\x0d\\x83\\x71\\x98\\x86\\xc1\\x38\\x4c\\xc3\\x34\\x0c\\\n\\x46\\x8b\\x9e\\x5b\\xf6\\xda\\x95\\x5b\\x36\\x6f\\x99\\x35\\xfc\\x48\\x87\\xc1\\\n\\xf8\\x91\\xd2\\xce\\xd5\\xcf\\x5d\\xa9\\xee\\x38\\xe7\\xe1\\xc6\\xbd\\xb7\\xff\\\n\\x75\\xf8\\x91\\xfe\\x33\\x19\\xf4\\x3b\\x87\\xc1\\xf8\\x21\\x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\\xf9\\xd5\\x67\\x56\\xbe\\x46\\xc0\\\n\\x29\\x20\\x2a\\xfe\\xd9\\xbb\\x70\\x34\\x12\\x12\\x13\\x89\\x8c\\x46\\x19\\x51\\\n\\x02\\x8e\\xc1\\xa5\\x97\\x6f\\xdb\\xd2\\x31\\x7d\\x18\\x8c\\x47\\x50\\x67\\x73\\\n\\x7f\\xde\\xda\\x97\\x16\\xd6\\xcf\\x9e\\xb2\\x9a\\x74\\x97\\x17\\x06\\x55\\x14\\\n\\x5b\\x18\\x35\\xe1\\x3e\\x78\\xa3\\x45\\xea\\xff\\x52\\x9a\\x74\\xeb\\xdd\\x40\\\n\\x94\\xfe\\x64\\x08\\x94\\x41\\x30\\x40\\x2a\\x09\\x10\\x06\\xc8\\x43\\xcf\\x46\\\n\\xb8\\xa0\\x20\\xb0\\x81\\xc6\\x8d\\x8f\\x7c\\x15\\x40\\xd1\\x4e\\x6d\\xdf\\x63\\\n\\x7b\\x5d\\x67\\x59\\xcd\\x4b\\x67\\xec\\x5a\\x30\\x7b\\x35\\x81\\x80\\x02\\x61\\\n\\x15\\x53\\x3a\\x8e\\xf9\\x7c\\xd5\\xd4\\x30\\x6d\\x36\\x00\\xc6\\x97\\xb5\\xd3\\\n\\xb2\\xf7\\xb6\\x3b\\x86\\xc1\\x38\\x84\\x7a\\xdb\\x43\\x99\\x6b\\x97\\x7f\\x6e\\\n\\xd7\\xb4\\xb1\\xaf\\x91\\xe5\\x75\\xa0\\xc7\\x0d\\x4c\\x77\\x14\\xa1\\xbb\\x11\\\n\\x72\\x48\\x88\\x59\\x5a\\x87\\x10\\x3a\\x36\\x47\\x04\\xf0\\xe1\\x11\\x7e\\x70\\\n\\x9b\\x90\\x67\\x43\\xe4\\xda\\xc0\\x9d\\x72\\x84\\x9b\\x02\\xa4\\x82\\x0c\\xab\\\n\\x8c\\x2a\\x83\\x44\\xef\\xdd\\xb7\\xed\\xae\\x0d\\x95\\x9f\\xd2\\x40\\x1c\\x34\\\n\\x33\\x3b\\xf6\\x7e\\x7d\\xe5\\x45\\x17\\xae\\x27\\x23\\xdb\\x0e\\x03\\xa0\\x6b\\\n\\x76\\x74\\x7b\\x2c\\xb5\\x5f\\x71\\xf0\\x1e\\x21\\x53\\xdc\\xf2\\x88\\x43\\x24\\\n\\x4c\\xf0\\x00\\xba\\x9d\\x60\\xb6\\x4a\\xc0\\xb7\\xf4\\xf4\\xf5\\xaf\\xaf\\x5f\\\n\\x38\\x0c\\x46\\xa0\\xaf\\xd7\\xf0\\xbc\\xf6\\xe2\\xa2\\xfd\\x33\\xca\\x5e\\xf0\\\n\\x17\\x06\\x55\\x08\\xc5\\x51\\x45\\x14\\x21\\x25\\x90\\x40\\xaa\\xba\\xa5\\x0e\\\n\\x4a\\x10\\x66\\xca\\xd0\\xb1\\x29\\x24\\x84\\x03\\x08\\x91\\xe1\\xf7\\x42\\xb8\\\n\\x84\\x57\\x57\\x06\\x79\\xe3\\xa5\\x62\\x12\\x89\\x7c\\x28\\xcb\\x00\\x07\\x18\\\n\\xa6\\x83\\x84\\x62\\x03\\xc3\\x46\\x71\\x66\\x35\\x0d\\xd5\\x4b\\xbf\\x7e\\x4a\\\n\\xa1\\x2f\\xd9\\x77\\x30\\xf3\\xa8\\x6e\\x47\\x63\\xe5\\x15\\xa7\\x4d\\xed\\xfc\\\n\\xf7\\xff\\x7d\\xa9\\x78\\xc9\\x97\\x2a\\xd9\\xf2\\x46\\x3a\\xe4\\x38\\x51\\x89\\\n\\xa1\\x02\\x52\\xb1\\x59\\x2f\\x61\\xca\\x85\\x2d\\x55\\x89\\x89\\x0d\\x69\\x78\\\n\\x40\\x77\\x20\\x51\\x00\\x37\\xc2\\x0b\\x5d\\x5d\\x19\\x7c\\xf6\\x7b\\xff\\xc9\\\n\\xd9\\x57\\xff\\x80\\xf4\\x64\\x0c\\x57\\xef\\xad\\x7f\\xed\\x0c\\xa7\\x8c\\x3c\\\n\\xb3\\xd7\\xf3\\x89\\x01\\xa3\\xe4\\x50\\xbc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\xb3\\x1c\\x9e\\x86\\x8a\\xb4\\x60\\x78\\x71\\x7e\\x9e\\x1f\\\n\\x9f\\x33\\x03\\xc8\\x45\\x4a\\x15\\x69\\xf6\\x22\\x70\\x59\\xa2\\x58\\xf4\\x82\\\n\\x59\\x90\\xf2\\xbf\\x86\\x01\\x37\\x63\\x4b\\x22\\x94\\xe7\\xf9\\x90\\xa6\\xce\\\n\\x88\\x09\\x1d\\x40\\x25\\xc2\\x6c\\x42\\xaa\\x75\\x80\\x17\\x01\\xc4\\x13\\x71\\\n\\xcf\\x29\\x03\\xc6\\x50\\x74\\xcf\\x94\\x8a\\xb1\\x2e\\x0b\\x88\\x52\\x3d\\x90\\\n\\x88\\x38\\x84\\x54\\xcb\\x42\\x03\\x2e\\xbb\\x64\\x01\\x50\\x0b\\xac\\xa7\\xac\\\n\\x64\\x32\\x73\\xe7\\x56\\xf0\\xca\\x2b\\x6f\\xb0\\x73\\x67\\x5f\\xca\\x14\\x6e\\\n\\xa1\\xbc\\x2c\\x87\\x11\\x79\\xca\\x77\\xd6\\x6f\\xf8\\x63\\x76\\xf3\\x2b\\x15\\\n\\x6b\\xa6\\x4f\\x3b\\xff\\x11\\xaf\\xef\\xf8\\xf4\\x29\\x9d\\xb0\\xaa\\x93\\x70\\\n\\x66\\x65\\x07\\x7b\\xb3\\xb2\\xe7\\x2f\\x3b\\xf4\\xfb\\x90\\xaa\\xa2\\x25\\xdf\\\n\\xa9\\xf4\\x66\\xdb\\xbe\\xbd\\x53\\x36\\x36\\xbc\\xbd\\xb0\\xcb\\x93\\x18\\xa1\\\n\\x8c\\x4e\\xbf\\xce\\x93\\x95\\x4f\\x3e\\x36\\x0c\\x74\\x92\\x18\\x18\\x48\\xab\\\n\\xd7\\x0f\\x02\\xd5\\x6e\\xc7\\xe9\\x71\\xe1\\xcc\\xca\\x42\\x43\\x21\\x6a\\xc6\\\n\\xae\\x7f\\xab\\xb1\\xed\\xfa\\x75\\xfb\\xd7\\x3d\\x34\\xb2\\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x3d\\xbb\\x13\\xde\\x01\\x88\\xfd\\xdd\\\n\\x5d\\xfe\\x3f\\x6d\\x78\\xf9\\xa6\\xb6\\x12\\x57\\x59\\x69\\xf9\\xe4\\x45\\x49\\\n\\x74\\xba\\xe9\\xc1\\x25\\x15\\x82\\x86\\x46\\x5c\\xb5\\xda\\xdb\\xa8\\x29\\x86\\\n\\xaf\\x20\\x2d\\x07\\x35\\x0a\\x12\\x89\\x01\\x98\\x08\\x34\\x24\\x41\\x19\\x26\\\n\\x22\\x04\\xde\\x92\\x52\\x62\\x45\\xb9\\xd7\\x3f\\xb9\\x6e\\xcb\\xa8\\xee\\x15\\\n\\xa1\\xbc\\x8b\\xce\\x3a\\xe7\\x91\\xe3\\x59\\x6b\\x57\\x57\\x5b\\x66\\x53\\x73\\\n\\xeb\\xa8\\x68\\x6c\\x5f\\x95\\xaa\\x34\\x54\\xba\\x9c\\xf2\\xba\\xd2\\x32\\x27\\\n\\x69\\x69\\x4e\\x46\\x57\\x8c\\xe6\\xd1\\xbf\\xaf\\x62\\xe9\\xb7\\x96\\xa3\\x08\\\n\\x07\\x17\\x9e\\x5b\\xcb\\xd4\\x39\\x45\\xec\\x69\\x6b\\xe3\\x86\\xef\\xff\\x92\\\n\\x57\\x5e\\x5b\\xc7\\x3f\\x5e\\xf8\\x4f\\x54\\xe1\\xa6\\xb9\\xcd\\xcd\\x39\\xb3\\\n\\xde\\xa2\\xa8\\xc8\\xc6\\xdf\\x5f\\x9d\\xc6\\xf5\\x5f\\x72\\x72\\xd6\\x94\\x9d\\\n\\xbc\\xb9\\xd7\\x4f\\x56\\x5e\\x80\\xbe\\x01\\x1f\\x5f\\xfb\\xec\\x2e\\x20\\x83\\\n\\x15\\xcf\\x8e\\xa0\\xb4\\xc8\\x00\\x25\\x04\\xd2\\x0d\\x74\\x62\\x53\\x35\\x84\\\n\\x72\\xe2\\xfb\\x15\\x7d\\x20\\x29\\x64\\x46\\xa4\\xad\\xac\\xa4\\xc8\\x9f\\x72\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\\x95\\xd1\\x39\\x72\\x5b\\x5e\\x56\\xf6\\xd1\\\n\\xad\\x6c\\xc3\\xd3\\x1b\\x8b\\xd9\\x00\\x1f\\x0a\\xae\\x94\\x64\\x88\\xff\\x13\\\n\\x2f\\x11\\x07\\x57\\xa8\\xa0\\x69\\x2a\\x60\\x92\\x88\\xdb\\x48\\x26\\x2d\\x29\\\n\\x14\\x48\\xf7\\xe0\\xf7\\xdb\\x0f\\xd6\\xc7\\x4c\\x99\\x35\\x93\\x25\\xff\\x36\\\n\\x1e\\xd8\\x09\\xf4\\x00\\x23\\x00\\x1b\\xd1\\x70\\x1a\\x52\\xed\\x42\\x98\\x11\\\n\\x2b\\x53\\xe8\\x08\\x9f\\x84\\xc3\\x29\\x50\\x14\\xf3\\xe4\\xd6\\x19\\xf7\\xd6\\\n\\x6e\\x9b\\xa2\\x39\\xfa\\x72\\x7c\\xee\\x4c\\xa4\\x74\\x83\\x74\\x72\\x90\\x43\\\n\\x22\\x52\\x6a\\xfd\\x01\\xdb\\xd3\\x32\\x52\\xd2\\x73\\xd2\\xb8\\xe2\\xdf\\xce\\\n\\x45\\xb5\\x1d\\x7a\\x2f\\x2e\\xbf\\x62\\x01\\xbf\\xff\\xe3\\xb7\\x80\\x3a\\x4c\\\n\\x53\\x43\\xe2\\x39\\xe2\\xcd\\x57\\x00\\x1d\\x29\\x06\\x00\\x17\\x42\\xe6\\x22\\\n\\xf0\\x02\\x6d\\x64\\xa7\\x07\\x39\\xf7\\x9c\\x82\\x2b\\x35\\xe7\\x33\\x8b\\x57\\\n\\xae\\xf8\\xdd\\xad\\xe1\\x3e\\xc1\\xb1\\x00\\x71\\xb0\\x3f\\xec\\xdc\\xd0\\x5c\\\n\\x77\\x7e\\xc6\\xf4\\xb1\\x57\\x84\\x89\\xe0\\x37\\x04\\x0e\\x20\\x79\\x5c\\x40\\\n\\x4c\\xe9\\x91\\x80\\xc0\\xc4\\x8f\\x8e\\x9d\\x24\\x66\\x8a\\xb3\\x1c\\x00\\x8b\\\n\\x0e\\xd8\\x11\\xe4\\x99\\x71\\xe2\\x9a\\x42\\xcf\\x98\\xac\\x1b\\xde\\xda\\xba\\\n\\xee\\xa2\\x77\\x7c\\x48\\x2a\\x18\\xba\\x1d\\x70\\x81\\x08\\x23\\x45\\x24\\xc5\\\n\\x47\\x8e\\x54\\x0e\\x0e\\x91\\x43\\xf5\\x01\\x2e\\x3a\\x7b\\x1c\\xb4\\x75\\xf5\\\n\\x00\\x30\\x7e\\x7c\\x01\\xe9\\x81\\xac\\x83\\xf5\\x31\\xeb\\x57\\x46\\x80\\x06\\\n\\xcb\\x5d\\xc3\\x08\\xf6\\x54\\xb7\\x00\\x51\\x6c\\xae\\x28\\xa8\\x31\\xa4\\xd4\\\n\\xd0\\x34\\xc9\\xc1\\x80\\xbe\\x55\\x42\\x88\\x4d\\x13\\x68\\x9a\\x9a\\x0c\\x0d\\\n\\xc6\\xed\\x27\\x2d\\x18\\x7b\\x7a\\xf6\\x55\\xa5\\xa7\\x37\\x5f\\x0f\\x0e\\x4c\\\n\\x21\\x31\\x85\\xc0\\xc0\\x99\\x52\\xec\\xfb\\x90\\x32\\x80\\x14\\x12\\x49\\x37\\\n\\x0b\\x16\\x94\\x5a\\xa2\\xa3\\x3d\\xce\\x1d\\x3f\\xba\\x9e\\xa6\\xa6\\xdf\\xf3\\\n\\xc8\\x03\\x57\\xb3\\xe9\\xad\\xbb\\x78\\xfc\\xaf\\xb7\\xa0\\xaa\\x6d\\x48\\xbd\\\n\\x0f\\xc5\\xcc\\x42\\x31\\xbd\\x87\\x59\\xdf\\x07\\xc0\\x2d\\x50\\x53\\xc0\\x16\\\n\\x96\\x33\\x17\\x3b\\xd2\\x54\\xc1\\x30\\x98\\x3a\\x35\\xef\\x0b\\x18\\xa1\\x60\\\n\\x6b\\x6b\\xf7\\xe8\\x63\\x59\\xfb\\x1b\\x35\\x1b\\x2e\\xea\\xcd\\x53\\xae\\x0f\\\n\\x38\\xd2\\x48\\xca\\xf8\\x41\\x9d\\xf6\\xd8\\x23\\xf7\\x12\\x45\\x0a\\x12\\xd2\\\n\\x40\\x4a\\x0f\\x39\\xb8\\x68\\x6f\\x73\\x62\\x8f\\x3a\\x49\\x23\\x49\\x44\\x0a\\\n\\x24\\xbd\\x68\\xa6\\x01\\x52\\x41\\x17\\x06\\x49\\x34\\xe2\\x24\\x28\\x19\\x59\\\n\\xc6\\x5e\\x7b\\xef\\xd4\\xc6\\x86\\xda\\xb2\\xa3\\x5d\\xd9\\xe1\\x74\\x85\\x4d\\\n\\xd3\\x66\\xd9\\xe7\\xa6\\x1d\\x4c\\x17\\x3a\\x32\\xd5\\xb9\\x9c\\x94\\x02\\x31\\\n\\x54\\x4b\\xd5\\x79\\xec\\xf1\\xe7\\x81\\x42\\xfe\\xf6\\xd8\\x4e\\xf4\\x68\\x88\\\n\\x8c\\x60\\x80\\xcf\\x5e\\x31\\x0b\\x08\\x73\\xc5\\x62\\x13\\x5d\\x46\\x79\\xfc\\\n\\x2f\\x01\\x7e\\xf2\\xcb\\x16\\x5a\\x7b\\xa2\\xdc\\xf5\\xe3\\x76\\xfe\\xfc\\xd7\\\n\\x76\\x20\\x93\\x70\\xb8\\x97\\xf6\\xc6\\x01\\x3a\\x9a\\xa1\\xbb\\x37\\x17\\x08\\\n\\xa2\\x8a\\x1e\\x54\\x33\\x88\\x21\\x83\\x08\\x54\\xa4\\xe8\\xfa\\x4d\\x22\\x69\\\n\\xd8\\x4e\\x4a\\x30\\x46\\xc3\\xa8\\xc9\\x50\\xd2\\x59\\x3a\\x22\\x0f\\xe8\\x44\\\n\\xd0\\x87\\x20\\x8c\\x20\\x89\\x20\\x89\\x82\\x8a\\x22\\x6d\\x47\\x79\\x84\\x51\\\n\\x46\\x14\\x36\\x90\\x93\\x1d\\xe7\\x0b\\x5f\\x9a\\x49\\xd5\\x0c\\x2f\\x92\\xdd\\\n\\x48\\x4c\\xab\\x8d\\x9b\\xd6\\x05\\xca\\xc0\\x51\\x96\\x2a\\x52\\xd6\\xb5\\x04\\\n\\x91\\xea\\x56\\x8b\\x02\\x4a\\x02\\x54\\x27\\x83\\x03\\xdd\\x38\\x5d\\xb9\\xb5\\\n\\xa3\\xc7\\x95\\xfe\\xeb\\x68\\x4d\\x58\\x57\\x1b\\xe3\\x9d\\x15\\xe9\\x15\\x79\\\n\\xc4\\x18\\x44\\x0a\\x30\\x14\\x4b\\x4b\\x3c\\x76\\xd1\\xac\\x61\\x8a\\x3e\\x84\\\n\\x48\\x92\\x2e\\x06\\x79\\xf8\\xd6\\x76\\xae\\xcf\\x2b\\xe6\\x96\\x85\\xd9\\x84\\\n\\x43\\x7e\\x02\\xc2\\x8d\\x90\\x3e\\x84\\xb4\\x81\\x74\\x59\\xc0\\x55\\x54\\x6c\\\n\\xa9\\x78\\x6f\\x32\\xdf\\x77\\xdd\\xf6\\xfa\\xdd\\x47\\x1d\\xde\\xee\\xb4\\xf9\\\n\\xba\\x15\\x54\\xcb\\x17\\xab\\xc4\\x40\\xc4\\x80\\x30\\x0a\\x11\\x04\\x51\\x04\\\n\\x71\\xeb\\x6f\\xc2\\x72\\xa1\\x3a\\x1d\\x05\\xf4\\xb6\\xa7\\x71\\xd1\\xd9\\x57\\\n\\xf2\\xdf\\x37\\xdc\\x45\\x56\\x20\\x8b\\x67\\x9f\\xf9\\x29\\x19\\xd9\\x99\\xc0\\\n\\x3e\\xbe\\xfa\\xd5\\x5c\\x7e\\xfe\\x2b\\x17\\xd9\\x45\\x75\\xdc\\x72\\xe3\\x1e\\\n\\xce\\xac\\xdc\\x4f\\x7d\\x7d\\x98\\xef\\xdd\\x3e\\x13\\x0c\\x1f\\x2f\\xfd\\xad\\\n\\x87\\x05\\x33\\x73\\x38\\x63\\x81\\x9d\\xd5\\xaf\\x57\\x13\\x8e\\x74\\x59\\xd1\\\n\\x1a\\xa5\\x0f\\x29\\x3a\\x2d\\x7d\\x55\\x84\\x88\\xc7\\x12\\x27\\xd4\\x88\\x39\\\n\\x61\\x3a\\x63\\x73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\x0c\\x18\\x56\\x37\\x94\\x44\\xdc\\\n\\x75\\x52\\x72\\xc6\\xfd\\x2d\\xeb\\x2e\\x0c\\x64\\x0e\\xa4\\x5c\\x0e\\x96\\x9f\\\n\\x0d\\x61\\x80\\x92\\x04\\x25\\x89\\x50\\xf4\\x54\\xec\\x73\\x28\\xf9\\x71\\x88\\\n\\x13\\xf9\\x72\\x09\\x30\\xad\\x6e\\xb7\\xfd\\xfd\\xd9\\x3f\\xc8\\xc9\\x1b\\xb3\\\n\\xf5\\x58\\xce\\x6a\\x08\\x75\\x57\\xc4\\xd2\\xed\\x24\\x49\\xbe\\x27\\x20\\x92\\\n\\x12\\x95\\x8a\\x80\\x24\\x0a\\x69\\xb9\\x1a\\x63\\x66\\xa6\\x01\\x75\\x78\\x3d\\\n\\x92\\x91\\xd3\\xd2\\x08\\xd3\\x05\\xea\\x20\\x30\\x08\\x22\\x64\\x8d\\xae\\x19\\\n\\xf2\\x00\\xec\\x76\\x1f\\x5d\\x7e\\xf3\\xd6\\xfd\\x5d\\xcd\\xff\\x54\\xca\\xeb\\\n\\xf3\\x67\\xb7\\xf6\\x76\\x3b\\xbf\\xbf\\xad\\x7a\\x3f\\x3b\\x77\\xc3\\xfe\\xb6\\\n\\x10\\x91\\x44\\x47\\xea\\xfe\\x9a\\xa0\\x5a\\xf7\\xd5\\xa6\\x8e\\x48\\x3d\\xd5\\\n\\x10\\x86\\xdc\\x46\\xd9\\xe8\\x32\\x2e\\x38\\xef\\x5c\\xbc\\xee\\xfd\\x48\\xb6\\\n\\x20\\x70\\x21\\x14\\x0d\\x21\\x34\\x60\\x1f\\xf9\\x99\\x21\\xe6\\xcc\\xc8\\x65\\\n\\x74\\x79\\x02\\xab\\xb3\\x99\\x1d\\x5f\\xd0\\x20\\x2d\\xab\\x1b\\x50\\xd1\\x50\\\n\\xc8\\xcd\\x90\\xf8\\xbd\\x59\\x56\\x32\\x85\\x18\\x40\\x49\\x35\\xcf\\xb2\\xa9\\\n\\x2a\\x86\\xd4\\xd5\\x93\\x92\\x33\\x2a\\x4a\\x46\\x53\\x7b\\x4b\\xe2\\x07\\x89\\\n\\x90\\xfd\\x26\\x83\\x08\\x86\\x99\\x44\\xa8\\x49\\xec\\x4e\\x13\\x4d\\x55\\xd1\\\n\\x65\\x08\\x4d\\xeb\\xc7\\xe7\\xf4\\x11\\x89\\x38\\x68\\xe9\\xee\\x62\\xc3\\x96\\\n\\xab\\x70\\xd9\\xec\\xec\\xaa\\x69\\xc0\\x66\\x73\\x60\\xb3\\x49\\xa4\\x62\\x43\\\n\\x51\\x15\\x04\\x06\\x46\\xc2\\x83\\xcb\\x19\\x27\\x27\\xdb\\x8d\\xd5\\x16\\xc2\\\n\\x38\\x22\\x82\\x73\\x24\\x67\\x54\\x41\\xf1\\xd3\\x3b\\xd0\\x80\\x2e\\x27\\xb6\\\n\\x16\\x17\\x15\\x36\\x20\\xc3\\x2a\\xe2\\xdd\\x4b\\x07\\xba\\x93\\xe1\\x42\\x4f\\\n\\xba\\x1f\\x49\\x82\\xa3\\x0d\\x24\\x14\\x28\\x98\\x48\\x14\\x74\\xc0\\x81\\x4e\\\n\\x1c\\x3f\\x2a\\x1e\\x1c\\x08\\x20\\x4a\\x9c\\x7e\\x24\\xaa\\x30\\x88\\xca\\x41\\\n\\xfc\\x22\\xc2\\x0f\\x9f\\x0f\\xb3\\x72\\x53\\x06\\x15\\xa3\\xfb\\xc9\\xcc\\x1c\\\n\\x64\\xaf\\x4c\\xc7\\x2b\\xe2\\xd8\\xcc\\x74\\x00\\x22\\x4a\\x12\\x1b\\x36\\x94\\\n\\x94\\x61\\xa3\\xa3\\x93\\xf0\\xd9\\xe9\\xeb\\xef\\xcd\\x3e\\x72\\x7d\\xc1\\xcc\\\n\\xc0\\xc0\\xd4\\xe9\\x97\\xdd\\xdd\\xd5\\x53\\xb7\\x22\\x14\\x97\\xb4\\xb5\\xb4\\\n\\x97\\xb5\\x35\\xd6\\x57\\x0a\\x21\\x0d\\x9b\\x7d\\xe0\\x7b\\x6e\\x57\\x82\\xd1\\\n\\x63\\xba\\xd9\\xb2\\x75\\xeb\\x41\\x4f\\xcf\\x9b\\x6f\\xee\\xa0\\x7c\\x74\\x39\\\n\\xb0\\x1f\\xe8\\x43\\xc8\\x74\\x90\\x7e\\x4c\\x25\\x86\\x24\\x81\\x22\\x4b\\x2d\\\n\\x17\\x9a\\xa8\\x46\\x62\\x07\\x14\\x84\\x34\\x91\\xb8\\x41\\xc4\\x11\\xba\\xc7\\\n\\x2a\\x11\\x51\\x92\\x48\\xa1\\x22\\x95\\x2e\\x10\\x31\\x14\\xd3\\x03\\x0a\\xd8\\\n\\xec\\x0e\\xcc\\xa1\\x91\\x8b\\x93\\x09\\x8c\\x0b\\x4e\\xbb\\xe8\\x91\\x68\\x38\\\n\\xae\\x26\\xe3\\xdc\\x11\\x8b\\xeb\\x9e\\x64\\x32\\x66\\xd7\\x8d\\x98\\x5d\\x92\\\n\\xc0\\x30\\x74\\x9b\\x9e\\x34\\xec\\xf1\\x68\\xd8\\x1f\\xe9\\x89\\x79\\x7c\\x5e\\\n\\x7b\\x6c\\xc2\\x68\\x35\\x11\\x89\\x76\\x14\\x0b\\x29\\x55\\xa1\\x0a\\x43\\xb5\\\n\\xe9\\x7f\\x35\\x64\\x0c\\x69\\x44\\xb0\\x69\\x51\\xec\\x76\\x05\\x5b\\xc0\\x4e\\\n\\x3c\\x31\\x40\\x6d\\x5d\\x17\\xaa\\xe6\\xc1\\xe9\\x54\\x51\\x35\\x03\\xcd\\x06\\\n\\x0e\\x87\\x86\\xdd\\xe6\\x44\\x3d\\x38\\xf8\\x44\\xa4\\xec\\xd4\\x0c\\x9a\\x1a\\\n\\x6d\\x78\\x9c\\x39\\x0d\\x07\\x38\\xd6\\xbb\\xf1\\xba\\xe4\\x40\\xd4\\x1e\\xb6\\\n\\x99\\x7e\\x47\\xd0\\x93\\xb2\\xf6\\xb5\\x23\\xf8\\x9d\\x03\\x49\\x04\\xbb\\x09\\\n\\x61\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\\x48\\x50\\xbb\\xbe\\x85\\x96\\x46\\xc1\\x88\\\n\\xa2\\x0c\\x92\\xd2\\x32\\x76\\x2c\\x8e\\x38\\x80\\x44\\x07\\x54\\xa4\\xd0\\x01\\\n\\xed\\x60\\xa4\\xe6\\xb0\\x40\\x9b\\x69\\xa0\\x28\\xea\\x87\\x50\\xa7\\x1d\\x52\\\n\\x41\\xaa\\x19\\x99\\xbe\\x81\\x8c\\x4c\\xdf\\x00\\x50\\x0b\\x63\\x53\\x81\\x8b\\\n\\x90\\x27\\x14\\x6a\\xfb\\x7b\\x38\\xda\\x9b\\xdf\\xd7\\xd3\\x55\\xd8\\xdb\\xd1\\\n\\x9b\\x9d\\xd4\\xc3\\x41\\x55\\x8b\\xdf\\x64\\x77\\x27\\xb0\\xdb\\x34\\xf2\\x32\\\n\\x6c\\xa8\\x66\\x10\\x99\\x50\\x13\\x27\\x2d\\x18\\xfb\\x42\\x86\\xd3\\x66\\x53\\\n\\x93\\x1e\\x07\\x1f\\x59\\x07\\x58\\x93\\x41\\xfb\\xf1\\xb4\\xdd\\x70\\x3b\\x9d\\\n\\x21\\x61\\x18\\x3f\\x4a\\x12\\xfb\\x9e\\xed\\x28\\xfa\\xa2\\x82\\x89\\x26\\x75\\\n\\x24\\x01\\x3a\\xea\\xd2\\x80\\x7e\\xc0\\x4e\\x53\\x75\\x39\\xeb\\x1e\\xdf\\x4d\\\n\\x28\\xda\\x8b\\x3f\\xd7\\xc3\\xdc\\x2f\\xb7\\x62\\x26\\x13\\x28\\x76\\x0f\\x3a\\\n\\x89\\x21\\xa3\\x6b\\x04\\xa8\\x71\\x14\\xc2\\x08\\x4c\\x54\\xe9\\x40\\xe2\\x24\\\n\\x29\\xe4\\x61\\xa9\\x0e\\x02\\x85\\x64\\x34\\x8e\\xe3\\x9f\\xfd\\x5f\\x1f\\x84\\\n\\x62\\x64\\x0c\\x71\\x4d\\x1c\\x46\\xe9\\xe9\\xde\\x70\\x7a\\xfa\\xa8\\xbd\\x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x6b\\x26\\xc2\\xc1\\x2e\\x72\\xba\\xd4\\x92\\xaa\\x38\\x89\\\n\\x38\\xa3\\x4f\\xb6\\x97\\xe5\\x38\\xd7\\x52\\x16\\x58\\x5b\\xa9\\x0f\\x58\\x4e\\\n\\x96\\xa4\\x80\\x98\\x09\\xc9\\xb8\\xc0\\xd8\\x2f\\x89\\xea\\x2a\\x86\\x66\\x43\\\n\\x88\\x38\\x5a\\x5c\\x43\\x1a\\xa5\\x44\\x34\\x05\\xdd\\x3d\\x80\\x2e\\x6d\\x68\\\n\\x89\\x0c\\x04\\x99\\x74\\xa8\\xbe\\x26\\xd5\\xe6\\xeb\\x8a\\x09\\x57\\xd8\\x10\\\n\\xb6\\x98\\x62\\xcb\\x68\\x55\\x45\\x56\\x93\\xaa\\xba\\xfb\\x6d\\x4e\\x4f\\x9f\\\n\\xa2\\xa8\\x86\\x29\\xed\\x51\\xec\\x05\\x35\\x8a\\x62\\x4f\\xda\\x9d\\xde\\x90\\\n\\xcd\\xe9\\x0b\\x9b\\x42\\x53\\x6d\\x86\\x41\\xee\\x88\\xb4\\xe3\\xea\\x6c\\x96\\\n\\x6e\\xf7\\xb6\\x34\\xf4\\x76\\xe3\\x4d\\x4b\\x4b\\x89\\xd3\\x43\\xde\\x4b\\x89\\\n\\x44\\x57\\xdc\\x40\\x98\\xac\\x31\\x0d\\xa9\\x28\\x48\\x06\\xb5\\x5b\\xbb\\x69\\\n\\x88\\xfa\\xe8\\x71\\x75\\x11\\xc7\\x4b\\x26\\xb5\\xb8\\xa5\\x49\\x42\\x64\\xe2\\\n\\xc2\\x8b\\x2a\\xed\\xa9\\x2b\\xa8\\x48\\x91\\xc0\\x20\\x0d\\x03\\x3b\\x09\\x45\\\n\\x22\\x95\\x10\\x2e\\xe9\\xc2\\x14\\xa4\\x32\\xc2\\x25\\x6e\\x6c\\xd8\\x42\\x09\\\n\\x02\\xbe\\x40\\xfb\\x71\\x0b\\xdd\\x04\\xaa\\x69\\xa2\\x4a\\x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n\\x82\\x34\\x32\\x72\\x12\\x74\\xb7\\xbb\\x69\\x6f\\x18\\xe4\\x85\\xc7\\x24\\x4b\\\n\\x96\\xe4\\x20\\xe9\\x22\\xac\\xcf\\xe7\\xc7\\x3f\\x68\\x67\\xde\\x55\\xfb\\x39\\\n\\x7b\\x74\\x14\\x87\\x9a\\x7f\\x40\\x79\\xc1\\xe1\\xec\\x45\\xe0\\x41\\x4a\\x89\\\n\\x14\\x1e\\xa4\\x74\\xa2\\x1a\\x60\\x6a\\x87\\xd2\\x3f\\x74\\x19\\x21\\xd8\\xcf\\\n\\x8f\\x0a\\x0b\\xf3\\xde\\xb1\\x82\\x70\\xfd\\xaa\\x9f\\xfc\\x4e\\x26\\xea\\x2b\\\n\\x1d\\x8a\\x9a\\xb0\\x9b\\xa1\\x60\\xd2\\x00\\x4d\\x55\\x0d\\x69\\x82\\x61\\xc4\\\n\\xab\\x54\\x11\\xb3\\x4a\\x1e\\x0c\\x1d\\x5d\\x37\\x50\\x55\\x09\\xc4\\x91\\x66\\\n\\x1c\\xa1\\x26\\x90\\x44\\x91\\x42\\x47\\x8d\\x9b\\xd8\\x04\\xa8\\x9a\\x89\\x49\\\n\\x2c\\x15\\x31\\x8b\\x92\\x14\\x49\\x0c\\x43\\xa2\\x28\\x02\\x89\\xe5\\x93\\x74\\\n\\x2b\\x0a\\xb2\\x37\\xc6\\xaa\\x1d\\x23\\x28\\x2a\\x48\\x50\\x9c\\xde\\xca\\x40\\\n\\x42\\x01\\x61\\xc3\\xeb\\x8b\\x53\\x53\\x03\\x8a\\x59\\xfe\\x06\\x27\\x13\\x18\\\n\\x45\\x46\\x7a\\x77\\xa8\\x2d\\x09\\x1a\\xd8\\x07\\x3d\\xa0\\x86\\xe8\\x6c\\xca\\\n\\x80\\x78\\x36\\x59\\x45\\x61\\xa2\\xc2\\x86\\x5d\\x69\\x43\\xcd\\xb1\\x11\\x6d\\\n\\x0f\\x50\\xfd\\xa6\\x82\\xcb\\x6e\\xa3\\xb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x88\\x56\\x72\\xc6\\xd6\\xe1\\xce\\xf2\\xf1\\x7f\\x7f\\xde\\xcb\\x9e\\xae\\\n\\x08\\x41\\x91\\x86\\xca\\x00\\x82\\x08\\x06\\x02\\x45\\x9a\\xe8\\x98\\xd8\\x70\\\n\\x60\\xb4\\xf4\\x2c\\x1d\\x5b\\x50\\xba\\xfe\\x1d\\x8d\\xc3\\xae\\xfa\\xca\\x3c\\\n\\x5f\\x33\\x5e\\x2f\\x78\\xbc\\x60\\xf3\\x0a\\x9c\\x0e\\x07\\x9a\\xdd\\x86\\xaa\\\n\\x39\\x11\\xaa\\x1d\\x53\\x71\\x62\\x08\\x85\\xa4\\xa6\\x92\\x40\\x43\\x47\\x90\\\n\\xb4\\x72\\x6c\\x31\\x25\\x24\\x55\\x52\\xf7\\x4c\\xa0\\x27\\x6c\\xe8\\x49\\x1b\\\n\\x46\\x12\\x8c\\xb8\\x8a\\xa1\\x6b\\x98\\x51\\x1f\\x32\\xa2\\x91\\x94\\x90\\x50\\\n\\x53\\x81\\x9a\\x88\\xc1\\x6b\\xbb\\x9d\\x84\\x7b\\xcf\\x63\\xf3\\x1b\\x95\\xc4\\\n\\xbb\\x7c\\x20\\x04\\xd2\\x00\\x63\\x10\\x06\\x95\\x29\\x1d\\xae\\xbc\\xfc\\x13\\\n\\xd2\\x00\\x4a\\xbd\\xe5\\x96\\x5b\\x4e\\x8c\\x98\\x76\\x92\\xac\\xdf\\xd7\\x30\\\n\\x36\\x4d\\x59\\x59\\x65\\xf3\\x82\\x19\\x31\\x28\\xa8\\x12\\xa8\\x42\\xe1\\x91\\\n\\xa7\\x7a\\x31\\x75\\x83\\xb7\\x77\\x04\\xe9\\x19\\xec\\xe6\\x6b\\xd7\\xaa\\x28\\\n\\x66\\x1a\\x3b\\xeb\\x5a\\xd9\\xd3\\x14\\xe1\\xc5\\x55\\x01\\xf6\\xbd\\x9d\\xc9\\\n\\x97\\x96\\x80\\xea\\xe8\\x67\\xd7\\xde\\x18\\x3b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\xf8\\xe9\\x43\\x08\\x25\\x01\\x48\\x42\\x7a\\x31\\x69\\xe9\\x93\\x56\\x9f\\x28\\\n\\xfc\\x9c\\xd0\\x14\\x20\\x77\\x5a\\xc5\\x8e\\xa8\\x59\\x32\\x24\\xec\\x2a\\x51\\\n\\xe5\\x01\\x6d\\xb9\\x9b\\x68\\x44\\x87\\xb0\\x1d\\xdc\\x09\\xe2\\x22\\x7e\\x90\\\n\\xad\\x25\\x42\\x59\\xd0\\xe5\\x04\\x77\\x1c\\x43\\xe9\\x3d\\xa4\\x79\\x2b\\x26\\\n\\xe2\\x80\\xff\\xe3\\x68\\x40\\x4c\\x29\\xdf\\xd2\\x14\\x48\\x43\\x01\\x97\\x80\\\n\\x20\\xb4\\xf4\\x42\\x4b\\xfb\\xa6\\xf7\\x34\\xa4\\xf2\\x8a\\x99\\xe7\\xfe\\x38\\\n\\xb9\\x6d\\xff\\xaf\\xcd\\xde\\x2e\\x02\\xb8\\x89\\x2a\\x66\\xaa\\x86\\xe5\\x48\\\n\\xbe\\x6c\\x22\\x84\\x04\\x74\\x14\\xd1\\x87\\x50\\xb6\\x23\\x45\\x37\\x26\\x9e\\\n\\x94\\x12\\x21\\x91\\xc2\\xc0\\x14\\x89\\x54\\x8c\\xf7\\x40\\x59\\x3f\\x24\\x85\\\n\\x24\\x5d\\x04\\x49\\xd6\\xec\\xba\\x3f\\x7f\\xd0\\xbe\\x77\\xc6\\xe9\\xef\\xde\\\n\\x79\\x6c\\xa0\\x77\\xdb\\xac\\x00\\x5b\\x53\\xf8\\x56\\x11\\xa6\\xc4\\x30\\x21\\\n\\x41\\x1c\\x12\\xfb\\xb9\\xec\\xeb\\x3a\\x45\\x95\\xdd\\xc0\\x00\\x6f\\xad\\x8c\\\n\\x70\\xd9\\xe9\\x8d\\xec\\x7a\\xa3\\x88\\x82\\xbc\\x1c\\xda\\x3b\\xfa\\xf9\\xe6\\\n\\x92\\xfd\\x9c\\x37\\xcd\\xa0\\x76\\x7b\\x82\\x11\\xc5\\x5e\\xda\\xe3\\x4d\\xdc\\\n\\xfd\\x40\\x07\\x04\\x54\\x70\\x08\\x7e\\xf0\\xc3\\xff\\xc7\\xc3\\xcb\\x3f\\xc5\\\n\\x17\\xbe\\xb4\\x81\\x2b\\xfe\\x63\\x35\\xc5\\x17\\xed\\x63\\xc9\\x0f\\x96\\x50\\\n\\xf3\\xb4\\x87\\x89\\x97\\xb4\\x31\\x7e\\x41\\x2d\\xdd\\x03\\x7e\\x12\\xfd\\x25\\\n\\xf8\\x07\\xa3\\x96\\x0e\\x1a\\x87\\x84\\x9c\\xd4\\x11\\x48\\x2f\\x6b\\x3d\\x69\\\n\\xc0\\x68\\x12\\x52\\x31\\xac\\x51\\xb0\\xee\\xb4\\x9c\\x3e\\x69\\x2b\\x8e\\x1d\\\n\\xea\\xf3\\x24\\x90\\xd2\\x9e\\xfa\\x9a\\x20\\x2a\\x02\\xb4\\x2e\\x6b\\x33\\x28\\\n\\x29\\x21\\x08\\xba\\xbd\\x1d\\x43\\x09\\x82\\xe2\\x20\\x29\\x3d\\x1c\\xc8\\xd8\\\n\\x56\\x84\\x81\\x22\\xc5\\x21\\xa6\\x22\\x95\\x43\\x25\\xae\\x42\\x80\\x6e\\x4d\\\n\\x5d\\x55\\x7c\\x26\\x12\\x93\\xd6\\x5d\\x26\\x6b\\xb7\\x56\\xd2\\xef\\xbc\\xf7\\\n\\x8e\\x19\\x0b\\xee\\x99\\xf6\\x9e\\x0c\\xb1\\xf4\\x60\\xf8\\x33\\xd3\\xce\\xfc\\\n\\x71\\xfb\\xea\\x2d\\x8f\\xf4\\x77\\x77\\xa2\\xa8\\x5e\\x8c\\x21\\x55\\x8d\\x02\\\n\\x50\\xa5\\x40\\x11\\x83\\x08\\x12\\x08\\x33\\x03\\x61\\xe6\\x20\\xa4\\x07\\x89\\\n\\x8a\\x81\\x86\\x81\\x8a\\x89\\x40\\x4f\\x59\\xcb\\x56\\x1e\\xe4\\x81\\x9e\\x3c\\\n\\xe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\\x52\\xa6\\xca\\x06\\x00\\xdd\\x09\\x46\\x37\\x92\\x1e\\xc2\\xf6\\x34\\\n\\x22\\x5d\\xb9\\x4c\\x99\\xf9\\x07\\x66\\x4f\\x68\\xe4\\xc2\\xc1\\x22\\x7e\\x92\\\n\\xf1\\x18\\x4a\\x32\\x0e\\x1d\\x5e\\x8c\\x78\\x16\\x8a\\xd6\\x84\\x3d\\x9e\\x8e\\\n\\x26\\xa3\\x60\\x83\\x90\\x9e\\x8d\\x3f\\x7d\\xcc\\x09\\xed\\x5c\\x7b\\x42\\x74\\\n\\x46\\x75\\x48\\x3c\\x58\\x51\\x66\\x3e\\x17\\x4f\\x80\\xe2\\xab\\x81\\xf4\\x4c\\\n\\x5a\\xd4\\x51\\x1c\\x98\\xbf\\xd2\\x1b\\x0b\\x82\\x9a\\x07\\x79\\x21\\x06\\x94\\\n\\xec\\x14\\x18\\xe3\\xb4\\x44\\x15\\xd0\\x0a\\x20\\x47\\xa1\\xdf\\x91\\x8e\\x89\\\n\\x0f\\xd0\\x18\\x8c\\x07\\xc0\\x95\\x0d\\xb6\\x01\\xec\\xd2\\x89\\x70\\xc0\\x9e\\\n\\x76\\x58\\xbd\\xbd\\x88\\x3d\\xe1\\xef\\x3e\\xe9\\x1b\\xb9\\x6f\\xc6\\xdc\\x4f\\\n\\x3d\\x31\\x62\\xc2\\xdc\\x39\\xcb\\xd3\\x32\\x18\\x48\\x12\\x52\\xff\\x79\\x83\\\n\\x16\\x10\\xbb\\x3a\\x3a\\x8e\\x3b\\xdd\\x29\\xcd\\x9f\\x16\\x5b\\x72\\xe6\\xa2\\\n\\x9f\\x5c\\xe8\\xa8\\xb8\\xcf\\x7c\\xad\\xee\\x27\\x5d\\x5b\\xb7\\xa3\\x46\\xe2\\\n\\xf8\\xf0\\x22\\x84\\x93\\xb8\\xd0\\x88\\x08\\x95\\x90\\x50\\x18\\x14\\x82\\x41\\\n\\x01\\x03\\x2a\\x84\\x55\\xd0\\x15\\x15\\x14\\x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\\xd0\\x90\\xaa\\\n\\x8a\\xa9\\x4a\\x0c\\x45\\x47\\x31\\x25\\x42\\x2a\\x96\\xc3\\xd6\\xb4\\xa1\\x1a\\\n\\x80\\x99\\x00\\xaf\\xa5\\x55\\x36\\x35\\x42\\xcb\\xc0\\x68\\x12\\xfe\\xcb\\x9e\\\n\\x49\\x2f\\x59\\xf4\\x8b\\x09\\xe3\\x66\\xae\\x3a\\x9e\\xef\\xed\\x68\\xef\\xcf\\\n\\xdc\\xf6\\xf6\\xb2\\xcf\\x6b\\xf6\\xba\\xaa\\xc9\\x55\\x99\\x57\\xfb\\xbd\\x2a\\\n\\xd0\\x6d\\x35\\x19\\x15\\x12\\x88\\x62\\x92\\xc3\\xca\\x55\\x75\\xf7\\x7b\\xb4\\\n\\xe9\\xcb\\x66\\xcf\\x3b\\xe3\\x19\\x4e\\x32\\xea\\x1b\\xe8\\x77\\xae\\x5c\\xf1\\\n\\xfb\\xbb\\xa6\\x4f\\xf3\\x5f\\x37\\x62\\x84\\x23\\x35\\x08\\xc8\\x95\\xe2\\x96\\\n\\x3d\\xec\\xde\\xd7\\xf7\\x98\\x11\\x2f\\x5f\\x5f\\x52\\x74\\xce\\x93\\x25\\xa5\\\n\\xd9\\xff\\xe4\\x28\\xd7\\x7b\\x77\\x56\\xee\\x5a\\x7d\\xe3\\xcb\\x5e\\xc7\\xd3\\\n\\xd9\\x25\\x73\\x00\\xc5\\x0f\\x71\\x89\\xd9\\x91\\x00\\x55\\x47\\xc9\\x75\\x40\\\n\\xc2\\x05\\xc2\\x40\\xf6\\x25\\x90\\x5d\\x31\\x14\\x61\\x42\\x36\\xe0\\x55\\x20\\\n\\x1c\\x00\\x11\\x82\\xc1\\x24\\x84\\x15\\x08\\x68\\xe0\\x4f\\x58\\xc1\\x6a\\xcd\\\n\\x04\\x29\\x59\\xbf\\x6e\\x3a\\x23\\x66\\xbf\\x91\\x93\\x9b\\xa7\\x76\\x9c\\xf4\\\n\\x60\\xdc\\xb0\\xf6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\x9e\\xbb\\xae\\x2f\\xcb\\xdf\\x4f\\x6e\\x11\\\n\\x10\\xd2\\x30\\x93\\x0a\\x42\\x4d\\x20\\x4c\\x05\\x53\\x7a\\xad\\xef\\xd2\\x13\\\n\\x20\\x24\\xa6\\xdb\\x4c\\xb9\\x89\\x55\\x14\\xa7\\xce\\xd6\\x5d\\xa7\\x91\\x35\\\n\\x6b\\x55\\x7e\\x7e\\x81\\xd2\\x7a\\xa2\\xef\\xc1\\x07\\x02\\xc6\\x70\\x0c\\x75\\\n\\xf7\\xab\\x9f\\xdb\\x3d\\x26\\xf0\\x58\\x59\\xdb\\x7e\\x41\\x7b\\x72\\x1e\\x22\\\n\\x6b\\xd1\\x3d\\x39\\x23\\x3f\\x7d\\x77\\x59\\x59\\x51\\x4a\\x94\\xfc\\xeb\\x21\\\n\\x40\\x47\\x52\\x43\\x43\\x6d\\xd9\\xee\\x5d\\x6f\\x2c\\xf2\\x06\\xea\\x2a\\xab\\\n\\xa6\\x38\\x17\\xbb\\xec\\x41\\xa0\\x07\\x13\\xaf\\xd5\\x23\\x86\\xc1\\x54\\x82\\\n\\x96\\x76\\x98\\x22\\x64\\x90\\x40\\x48\\x8f\\x95\\x76\\xa5\\xf4\\xd3\\xd5\\x63\\\n\\xb0\\x79\\x53\\xf6\\xff\\x9c\\x73\\xf6\\x55\\x77\\x70\\x92\\x50\\x67\\xe7\\x40\\\n\\xf0\\xad\\xb7\\xfe\\xf4\\x9d\\x85\\xe7\\xd9\\x6f\\xb0\\x6b\\x03\\x20\\xb3\\x30\\\n\\x52\\xe0\\xb3\\x82\\x8e\\x87\\xba\\xd2\\x8a\\x54\\xfd\\xb5\\x14\\x56\\xec\\xdb\\\n\\xc0\\x40\\x41\\x43\\xc5\\x03\\x84\\xa9\\x6d\\x6e\\xa1\\x71\\x9f\\x7b\\xa9\\x66\\\n\\x8e\\xdc\\x34\\x72\\xd4\\x82\\xa7\\xf3\\x0a\\x0f\\xaf\\x97\\xae\\xdb\\xdd\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\\x0f\\xd3\\x30\\x0d\\\n\\x83\\x71\\x98\\x86\\xc1\\x38\\x4c\\xc3\\x34\\x0c\\xc6\\x61\\x1a\\x06\\xe3\\x30\\\n\\x0d\\xd3\\x30\\x18\\x87\\xe9\\x94\\xa6\\xff\\x3f\\x00\\x41\\x76\\xd6\\xee\\x03\\\n\\x0c\\xc7\\x5e\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x02\\x01\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\x20\\x00\\x00\\x00\\x20\\x08\\x06\\x00\\x00\\x00\\x73\\x7a\\x7a\\xf4\\\n\\x00\\x00\\x01\\xc8\\x49\\x44\\x41\\x54\\x58\\x47\\xed\\x95\\x3d\\x6b\\x54\\x41\\\n\\x18\\x85\\x9f\\xf3\\x07\\xb6\\x10\\xb4\\x48\\x95\\x22\\x55\\xfc\\x11\\x96\\x62\\\n\\x97\\x48\\x3e\\x6c\\x14\\x0b\\x2b\\xb7\\xd1\\x2a\\x45\\x20\\xc4\\x2e\\x95\\x56\\\n\\xb1\\xb1\\x90\\x58\\x89\\xdb\\x68\\xa3\\x16\\x62\\xa1\\x58\\x84\\x34\\x76\\x22\\\n\\x24\\xa4\\x10\\x02\\x92\\x80\\xa0\\x08\\x81\\x44\\x8f\\x5c\\x98\\x95\\x61\\xb9\\\n\\xf7\\xce\\xcc\\xdd\\x62\\x9b\\xbd\\xed\\x9d\\x33\\xe7\\x99\\xf7\\x7d\\xe7\\x8c\\\n\\x98\\xf0\\xa7\\x09\\xfb\\x33\\x05\\x98\\x56\\x20\\x59\\x01\\xdb\\x73\\x92\\xf6\\\n\\xbb\\x0c\\xab\\xed\\x8b\\x92\\x8e\\xdb\\xb4\\x8d\\x00\\xb6\\x67\\x81\\x4f\\xc0\\\n\\x0c\\x30\\x90\\xb4\\x52\\x02\\x61\\xfb\\x01\\xb0\\x11\\x34\\x3d\\x49\\xbf\\xea\\\n\\xf4\\x6d\\x00\\xb7\\x81\\xa7\\x91\\x28\\x1b\\xc2\\xf6\\x16\\xb0\\x16\\x69\\xfb\\\n\\x92\\x1e\\x97\\x02\\x5c\\x00\\x3e\\x00\\x97\\x4b\\x20\\x6c\\x3f\\x04\\xee\\x47\\\n\\x9a\\x2f\\xc0\\x95\\xa6\\x56\\xb4\\xce\\x80\\xed\\x79\\xe0\\x45\\x2e\\x84\\xed\\\n\\x6d\\xe0\\x6e\\x64\\x7e\\x00\\x2c\\x49\\xfa\\xdc\\xd4\\xbe\\x9c\\x21\\xcc\\x82\\\n\\xb0\\xfd\\x04\\xb8\\x13\\x19\\x7d\\x03\\x96\\x25\\xed\\x76\\x1a\\xc2\\x58\\x94\\\n\\xaa\\x84\\xed\\x1d\\xe0\\x56\\xa4\\xf9\\x1e\\xcc\\x3f\\xa6\\x06\\x37\\x59\\x81\\\n\\xe1\\x06\\x4d\\x10\\xc0\\x1f\\xe0\\x46\\x64\\xf4\\x03\\x58\\x91\\xf4\\x2e\\x65\\\n\\x5e\\xfd\\xcf\\x06\\xa8\\x16\\x37\\x40\\xc4\\x3e\\xbf\\x83\\xf9\\xeb\\x1c\\xf3\\\n\\x62\\x80\\x04\\xc4\\x59\\x30\\x7f\\x99\\x6b\\xde\\x09\\x20\\x40\\xc4\\x21\\x33\\\n\\xf4\\xcb\\xce\\x89\\x18\\xb0\\xa8\\x05\\xc1\\x7c\\x34\\x64\\xe2\\xfd\\x8a\\x21\\\n\\x8a\\x00\\x6c\\x3f\\x02\\xee\\x45\\x8e\\x5f\\x81\\xf3\\xdc\\x9c\\x28\\x4a\\xc2\\\n\\xd1\\xc5\\x35\\x21\\x73\\x08\\x2c\\x04\\x80\\xec\\xb0\\x1a\\xdd\\x37\\xab\\x02\\\n\\x35\\x21\\x73\\x54\\x99\\x4b\\xda\\x6b\\x19\\xcc\\xac\\x76\\x24\\x01\\x6c\\x3f\\\n\\x03\\x6e\\x46\\xe4\\x27\\xc1\\xbc\\x7a\\x29\\xff\\x7f\\xa9\\xb0\\xea\\x14\\xc5\\\n\\xb6\\x9f\\x03\\xab\\x91\\xf8\\x27\\xb0\\x28\\xe9\\x7d\\xdd\\x86\\x5d\\x20\\xda\\\n\\x9e\\xe3\\x6b\\x40\\x1c\\x28\\xa7\\xc0\\x75\\x49\\x6f\\xda\\xee\\x79\\x03\\x44\\\n\\x95\\x8c\\x83\\xa2\\x21\\xb4\\x7d\\x15\\x78\\x1b\\x44\\x7f\\x83\\xf9\\xab\\x9c\\\n\\x90\\xa9\\x81\\xe8\\x04\\xd0\\x03\\xd6\\x81\\x4b\\xd5\\x93\\x9c\\x3a\\x79\\xcd\\\n\\xad\\xa9\\x5e\\xd1\\x3e\\x70\\x2c\\x69\\xb3\\xd3\\x0c\\xe4\\x9c\\x76\\xdc\\x35\\\n\\xc9\\x5b\\x30\\xae\\x41\\x4a\\x3f\\x05\\x98\\x56\\xe0\\x1f\\x5d\\xa3\\xb6\\x21\\\n\\x9a\\x39\\x89\\x97\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\\n\\x00\\x00\\x79\\x1f\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\xa3\\x00\\x00\\x00\\xa3\\x08\\x06\\x00\\x00\\x00\\xe6\\x6c\\xae\\x80\\\n\\x00\\x00\\x00\\x09\\x70\\x48\\x59\\x73\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\\n\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x00\\x20\\x63\\x48\\x52\\x4d\\x00\\x00\\x7a\\\n\\x25\\x00\\x00\\x80\\x83\\x00\\x00\\xf9\\xff\\x00\\x00\\x80\\xe9\\x00\\x00\\x75\\\n\\x30\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\\n\\x14\\x89\\x69\\xba\\xfe\\xcb\\x96\\xf1\\x4f\\xd9\\x0e\\xcf\\x37\\x6c\\x1b\\xfb\\\n\\xdf\\x5f\\x92\\xda\\xbe\\x73\\x06\\xfd\\x03\\xc8\\x53\\x4e\\x7c\\x37\\x80\\xaa\\\n\\xae\\x46\\xad\\x7d\\xfa\\xdb\\xb2\\xa1\\x7e\\x3d\\xb9\\x1c\\x6e\\x3a\\xad\\x80\\\n\\xc0\\x17\\x18\\x54\\x57\\x97\\x1c\\x08\\xfd\\x8a\\x6f\\x20\\x65\\x1c\\xec\\x03\\\n\\xab\\x1d\\x84\\x81\\xe9\\xa4\\xdc\\xc4\\xf7\\x7c\\xc3\\xfd\\x23\\x09\\x8a\\x91\\\n\\x12\\x86\\x36\\x94\\x77\\xf8\\x7b\\x10\\x8f\\x08\\x14\\xd0\\x78\\x81\\x97\\xa9\\\n\\x5d\\x90\\xf6\\xfe\\x1c\\x10\\xe3\\x7e\\xc1\\xd8\\x2f\\xac\\xbe\\xcc\\x65\\x11\\\n\\x56\\x87\\x30\\x82\\xb2\\x9f\\x37\\x52\\x1a\\x01\\xbe\\x61\\xa6\\x43\\x80\\x62\\\n\\xd1\\x37\\xfc\\x92\\x51\\xa7\\x35\\x0c\\xf7\\x0a\\xbc\\x31\\xb1\\x6e\\xf2\\x62\\\n\\x3f\\xe7\\x64\\xc4\\x47\\x36\\x3e\\x28\\x3f\\x68\\x1c\\x97\\x74\\x58\\x13\\xfc\\\n\\xc3\\xa6\\x70\\xff\\xe2\\x56\\xc1\\xf3\\x7d\\x23\\xed\\xaa\\x3c\\x88\\x21\\x29\\\n\\x45\\x35\\xf8\\xb6\\xef\\x51\\xd2\\x40\\xfa\\x25\\x60\\x99\\x5f\\x52\\x09\\x8c\\\n\\x69\\x62\\x78\\x65\\xfe\\x00\\x00\\x49\\x6f\\xd7\\x7a\\xe6\\xcf\\x7e\\xb7\\x56\\\n\\x6a\\x9f\\x03\\xdf\\x91\\x0d\\xf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\\xfe\\x4f\\x79\\xc8\\x37\\xed\\x3a\\\n\\x22\\xbd\\x5f\\xe2\\x1d\\x91\\x94\\x16\\x2b\\xea\\xd2\\x02\\x95\\xd7\\x78\\x43\\\n\\x9a\\xc6\\x7c\\x42\\x52\\x82\\x9e\\xd8\\x24\\x3f\\x29\\xc1\\x35\\x05\\x43\\x15\\\n\\x4d\\xa1\\x53\\x92\\x74\\x49\\x7a\\x3a\\x89\\xa5\\x01\\x35\\xcd\\x09\\x29\\x97\\\n\\x49\\x4e\\xd6\\x1b\\xaa\\x6b\\x4e\\x97\\x82\\xc0\\x37\\x52\\xa9\\x3f\\x7c\\xb6\\\n\\x42\\x21\\x30\\xf2\\xf9\\xd4\\xff\\x08\\x18\\x9e\\xe7\\x1b\\x4e\\x1a\\x37\\x8c\\\n\\x28\\x62\\x28\\xdc\\xb4\\xa8\\x06\\x0a\\xbe\\xe7\\x1b\\xff\\x11\\x94\\x2f\\x80\\\n\\xae\\xf0\\x6f\\xee\\xfb\\x65\\x9e\\xf1\\x4f\\x03\\x52\\x55\\xdc\\xb1\\x31\\x6d\\\n\\x2c\\x3f\\x21\\x29\\xde\\x78\\x9d\\x64\\xc9\\x22\\x59\\x0d\\xce\\x7f\\xcb\\x0a\\\n\\x7a\\x65\\xdf\\x48\\xbf\\x20\\x72\\xf0\\x2b\\xbe\\x41\\x8c\\x21\\x52\\xa0\\x15\\\n\\x09\\x7f\\x86\\x58\\xf6\\x2b\\x15\\x83\\x18\\xed\\x66\\x1d\\x55\\x09\\xfd\\x6a\\\n\\xc7\\x76\\x47\\xcb\\xa3\\xbe\\x91\\xa9\\x1e\\xff\\x7c\\x84\\x2f\\xd0\\x5a\\xf5\\\n\\x7f\\xc5\\x60\\x20\\x67\\xe0\\x4f\\xd7\\x24\\x83\\xe0\\x8f\\x48\\xec\\xb4\\x26\\\n\\xb1\\x35\\x61\\x49\\xa0\\x13\\x70\\xf3\\x1a\\xd3\\x07\\x11\\x6b\\xcc\\x36\\x03\\\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\\x71\\x8e\\x56\\x02\\xdf\\x70\\x52\\xff\\x73\\xe0\\x44\\xda\\\n\\xcf\\x06\\x3d\\xba\\xb8\\x61\\x15\\xcc\\xfb\\x85\\x8d\\x99\\x52\\x6c\\x78\\x45\\\n\\xcc\\x9c\\x3b\\x04\\x75\\xc7\\x92\\x33\\x70\\x4b\\xff\\x57\\xc0\\xf8\\x92\\x14\\\n\\x4a\\x44\\x21\\xfe\\x7b\\xaf\\x16\\x9c\\x7e\\x8a\\xa6\\xa9\\x23\\xe1\\xc0\\x41\\\n\\x3d\\x3a\\x1e\\xe7\\xf8\\xf9\\x28\\xac\\xd8\\xde\\x1f\\x11\\xbf\\xba\\x8e\\x9b\\\n\\x88\\x14\\x3e\\x88\\x58\\x58\\xc4\\x18\\xba\\xcd\\x6c\\xa0\\x25\\x29\\x83\\xff\\\n\\xac\\x44\\xda\\x3a\\x16\\x69\\x5c\\x2f\\x88\\x6c\\x3f\\x08\\x8c\\xff\\x28\\xa0\\\n\\x15\\x20\\xd2\\x99\\xf1\\xec\\x56\\x98\\xba\\x46\\x8f\\x48\\xa2\\x1e\\xce\\x4b\\\n\\x28\\xb7\\x54\\x06\\xf5\\x31\\xa5\\x27\\x2d\\x06\\xea\\x04\\x81\\x10\\x88\\x40\\\n\\xe1\\x9a\\x0a\\xd7\\xd6\\x98\\x68\\xf2\\x59\\x41\\x73\\x9b\\xbe\\xb6\\x65\\xb1\\\n\\x9a\\xd4\\x36\\x2d\\x6a\\x6e\\x98\\xa3\\xb0\\xa7\\xe9\\x69\\x69\\xdb\\x2a\\xd6\\\n\\x4f\\x73\\x3e\\x3d\\x79\\xa5\\x62\\xc6\\x49\\x9a\\xb6\\x19\\xe9\\x2f\\xe4\\x32\\\n\\xee\\x50\\x6d\\xbd\\xa3\\xab\\xea\\xd8\\x1f\\xf9\\x72\\x7f\\x1c\\x09\\x77\\x9c\\\n\\x03\\xfc\\xdf\\x59\\x30\\x4b\\x60\\x1c\\xb9\\x56\\x90\\x5b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xd4\\xc8\\xb1\\x73\\x1f\\xe1\\xaa\\xd7\\xcd\\x41\\x65\\x42\\x8a\\x23\\\n\\xc9\\xa9\\x33\\x8e\\x51\\xcf\\x8f\\xf6\\x48\\xe3\\xc0\\x46\\x31\\x5a\\x1a\\x91\\\n\\x48\\x53\\x62\\x5a\\x8a\\xaa\\x5a\\xb0\\xac\\x04\\xad\\x04\\x23\\x03\\x06\\x33\\\n\\x8f\\x53\\xd4\\xb5\\x24\\x59\\x49\\xba\\xfc\\xfb\\x3b\\xf5\\x3d\\xa1\\xb5\\x20\\\n\\x9d\\x76\\xf5\\x60\\x6f\\xa5\\x69\\xdd\\x3d\\x46\\xef\\x9c\\xe3\\x12\\x26\\xcc\\\n\\x52\\x40\\x5a\\xf0\\x12\\x3e\\x7f\\xd5\\x04\\xe6\\x77\\xbd\\xcf\\x7f\\x0c\\x88\\\n\\x95\\xc0\\x37\\x82\\xc4\\x77\\xff\\x78\\x11\\x33\\xa3\\xd3\\x1f\\x73\\xc4\\x9e\\\n\\xc7\\x34\\x93\\x46\\x25\\x33\\x16\\xea\\x9d\\x00\\x76\\x5a\\x8c\\x35\\xfa\\x65\\\n\\x4e\\x59\\x3a\\x01\\x59\\x28\\xa1\\xa2\\xde\\xec\\xbf\\x07\\xa2\\xef\\xf9\\xc2\\\n\\xce\\x3b\\xc5\\x04\\x1d\\xbe\\xfa\\x5d\\x06\\x9f\\x3a\\x13\\x2e\\xf8\\x5a\\x89\\\n\\xa3\\xa9\\x99\\xb4\\xcc\\x59\\x85\\xdc\\x74\\x03\\x46\\x25\\x04\\x47\\xf2\\x5f\\\n\\xcd\\xdb\\xd1\\x5a\\x10\\x94\\xa0\\x62\\xfd\\x86\\x33\\xce\\xec\\x23\\x93\\x1a\\\n\\x25\\x95\\x1b\\x64\\x6a\\x7e\\x3d\\x49\\x4d\\x07\\xd6\\xf4\\x2c\\xd1\\x80\\x26\\\n\\x4e\\xaa\\xe0\\x50\\x17\\x94\\x7a\\x78\\xc3\\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\\x2c\\xc5\\xbe\\x8f\\x45\\xbf\\x82\\\n\\xc8\\x19\\x78\\x20\\x78\\xe5\\xd6\\x4f\\x46\\xaf\\xef\\xf8\\xd0\\x7f\\xfe\\x7c\\\n\\x57\\x45\\x7e\\x41\\x69\\x1e\\x13\\x12\\xc0\\x19\\xba\\x74\\x42\\x32\\x75\\xf1\\\n\\x49\\xc3\\xfc\\xe4\\x63\\xe3\\x49\\xa3\\xed\\x56\\x30\\x7a\\xba\\xd1\\x70\\x34\\\n\\xd0\\x9e\\xe1\\xae\\x54\\x37\\xbb\\xf5\\x09\\x41\\x00\\x9d\\xed\\x31\\x22\\x01\\\n\\x2b\\x96\\x68\\xa1\\x19\\x29\\x1b\\xbc\\x69\\x8a\\xc1\\x6b\\x52\\x12\\x64\\x99\\\n\\x77\\xae\\x6b\\x61\\xfb\\x60\\x0b\\x6d\\x85\\x35\\x44\\x0e\\xa0\\xc7\\x89\\xee\\\n\\xfa\\x0c\\xac\\xd9\\x32\\x42\\xcb\\x92\\x03\\x34\\xb7\\x37\\x03\\x92\\x75\\x8f\\\n\\x8d\\xd0\\xea\\x2a\\x66\\xd6\\x6a\\x66\\xb4\\xcc\\x62\\xd5\\xc4\\x0b\\x78\\x63\\\n\\xfb\\xd7\\xa9\\x2b\\xfc\\x0b\\x5b\\x33\\xf0\\x91\\x45\\x1f\\xe5\\x73\\xd6\\x55\\\n\\xac\\x5e\\xaf\\xf9\\xf5\\x47\\xf7\\xc3\\x60\\x01\\x73\\xd6\\x09\\x88\\x38\\x46\\\n\\x0d\\xec\\x22\\x53\\xe5\\x70\\xf6\\xbb\\xe6\\x73\\xc2\\x49\\x55\\x1c\\x7a\\xb4\\\n\\x87\\xcf\\x7f\\xba\\xc0\\x93\\x8f\\x8d\\x72\\xe5\\x2b\\xe7\\x72\\xd1\\x5b\\xda\\\n\\x79\\xba\\xf7\\xfb\\x3c\\xf7\\xfc\\x22\\xa6\\xe6\\xef\\xa5\\x36\\x27\\xa9\\x04\\\n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\\x86\\x63\\xcd\\xab\\x9a\\x15\\x27\\xd5\\\n\\x29\\x6e\\xea\\x96\\x68\\x04\\x4d\\x29\\x85\\x25\\x15\\xd2\\x10\\x04\\x15\\xef\\\n\\x3f\\xa5\\xfe\\x33\\x6a\\xdc\\xfe\\x3a\\x47\\x53\\x8e\\x04\\xa5\\x92\\xe4\\xc0\\\n\\x1c\\x38\\x30\\x65\\x0a\\x7d\\x11\\x54\\x4d\\x07\\x47\\x98\\x90\\xc4\\x08\\x6b\\\n\\xdc\\x12\\x5a\\x16\\xf8\\x45\\x18\\x1b\\x10\\x54\\xb4\\xa6\\xa2\\x05\\x56\\x45\\\n\\x63\\x79\\x82\\x6d\\x43\\x1a\\x42\\x45\\x62\\x4f\\x65\\xc6\\x25\\x47\\x59\\xbf\\\n\\x3d\\xc1\\xbe\\xd1\\xe4\\xb9\\x7f\\x81\\x57\\x1e\\x7b\\x17\\xe7\\x9e\\xdf\\x0b\\\n\\x58\\x6c\\xd9\\x6e\\x20\\x07\\x07\\x98\\x7a\\xa5\\x22\\xdc\\x3a\\xc0\\xab\\xda\\\n\\x4f\\x22\\x76\\xc6\\xa7\\xa8\\x69\\xa1\\xf1\\x1c\\x08\\x4d\\x85\\xa1\\x34\\xc2\\\n\\x80\\xcc\\x98\\xc9\\x84\\x43\\x82\\xca\\xb0\\x26\\xb1\\x24\\x61\\xa8\\x19\\x2c\\\n\\xc5\\xcc\\x9d\\xde\\xc6\\x29\\x13\\x1f\\x67\\xe4\\xd0\\xbb\\x99\\x34\\x75\\x98\\\n\\xb3\\xde\\xac\\xf0\\xa6\\xd4\\xf0\\xa3\\xdb\\xe1\\x27\\x3f\\x0a\\x08\\x47\\x03\\\n\\xec\\x76\\x87\\xaa\\xa5\\xad\\x60\\x57\\x53\\x19\\x74\\xf0\\x65\\x06\\x7f\\x45\\\n\\x2d\\xc1\\xf1\\xd5\\x44\\x0d\\x12\\xf9\\x44\\x85\\xe4\\xf9\\x02\\x54\\x77\\x13\\\n\\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\\x78\\xb1\\x60\\\n\\x8f\\x2f\\xc9\\x54\\xc1\\x29\\xc3\\x5b\\x91\\x1b\\x0b\\x8c\\x6a\\x38\\xd8\\x0c\\\n\\xdb\\xed\\x5a\\x74\\x92\\xc5\\x52\\xa0\\x92\\x84\\x38\\x11\\x60\\x69\\x4c\\x47\\\n\\xd3\\x3e\\x06\\x93\\x63\\x68\\x6c\\x56\\x4c\\x9f\\xa2\\x50\\x15\\xc1\\x9d\\xc3\\\n\\xd0\\x30\\x55\\x53\\x94\\xc7\\x53\\xb3\\x60\\x98\\x13\\xcf\\xd9\\xc7\\x4d\\xeb\\\n\\xf7\\x61\\x4d\\xda\\x8a\\x63\\xd4\\x52\\xf1\\x1c\\x56\\xdf\\x71\\x88\\xb3\\x5e\\\n\\x3d\\x8b\\x19\\xfd\\x77\\x71\\x45\\xed\\x0c\\xc8\\x83\\x91\\xd1\\xb8\\x29\\x48\\\n\\x6a\\x25\\xba\\x01\\xec\\x94\\x20\\xca\\x69\\x62\\x5b\\x10\\x65\\x05\\xc3\\x8d\\\n\\x12\\xab\\xca\\xa0\\x29\\x92\\x58\\x29\\x13\\x9d\\x96\\x64\\xab\\xa0\\x5c\\x49\\\n\\x88\\x04\\x9c\\x7c\\xdc\\x25\\x2c\\x68\\x5a\\x4b\\xab\\xf7\\x19\\x16\\x4c\\xce\\\n\\x73\\xdc\\x1b\\xc6\\x98\\xf4\\x0f\\x39\\xbe\\x78\\x5d\\xc4\\x6b\\x97\\xae\\xe6\\\n\\xbe\\xeb\\xf6\\xa3\\xf3\\x79\\xec\\xa9\\xcd\\xa4\\xab\\x32\\x88\\xc3\\x21\\xba\\\n\\x3a\\x81\\x79\\x11\\x3a\\xcc\\x42\\x2a\\xc7\\x9a\\x8d\\x01\\xf5\\x93\\x26\\xb0\\\n\\x67\\xdd\\xe5\\xdc\\x74\\xdb\\x30\\xab\\xb7\\xbe\\x1a\\x4b\\xd8\\x78\\xa3\\x8a\\\n\\x4a\\xc9\\xa4\\x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x12\\x8c\\xc0\\x60\\xd2\\x98\\x43\\xe1\\xf8\\\n\\xe9\\x64\\xda\\x6a\\x71\\x12\\x85\\x95\\x8e\\x08\\xe2\\x84\\x9a\\x7a\\x87\\x93\\\n\\xea\\x3f\\xca\\xfe\\x23\\xaf\\x45\\xf7\\x7e\\x9d\\xfa\\x8e\\x7b\\x98\\x71\\xf5\\\n\\x7e\\x52\\x25\\x97\\x8d\\x8f\\x0f\\x70\\x70\\x73\\x91\\xd6\\x89\\x06\\xcb\\x3a\\\n\\x62\\xda\\x5b\\x25\\xd1\\x58\\x82\\x2e\\x44\\x58\\x0d\\x2d\\x24\\x43\\xc3\\x44\\\n\\x35\\x9a\\xba\\xdc\\x1b\\xb9\\xfd\\x7b\\x9b\\x51\\x76\\x85\\x99\\xf3\\xdf\\xcc\\\n\\xd8\\x18\\xa8\\x64\\x5c\\x0a\\x17\\x85\\x30\\x6d\\x39\\xd8\\xe9\\x18\\xaf\\xa8\\\n\\x71\\x32\\x2f\\x94\\x01\\x5f\\x22\\x33\\x1c\\x5f\\x74\\x30\\x9a\\x02\\x43\\x25\\\n\\x8c\\x76\\x05\\xe3\\x2e\\x0c\\x01\\xe5\\x58\\xe0\\x29\\xcd\\xc4\\x74\\x82\\x29\\\n\\x04\\x91\\x86\\xb1\\x18\\x2e\\x6d\\x12\\xaf\\xaf\\x4e\\xbb\\xbb\\x36\\x0e\\xfa\\\n\\x1f\\xbb\\xa1\\xc7\\xfc\\xb4\\x2d\\x61\\xaf\\x27\\x71\\xa4\\xc2\\x10\\x92\\x03\\\n\\x65\\xc1\\xd6\\x94\\x62\\x4a\\x46\\x32\\x23\\x27\\xd8\\xdb\\x97\\x50\\x65\\xe7\\\n\\x48\\xa2\\x49\\x28\\x34\\x6e\\x45\\x50\\x27\\x6d\\x44\\xb3\\x44\\x39\\xa0\\x95\\\n\\x89\\x56\\xa0\\xd0\\x48\\x25\\x88\\x4a\\x12\\x7f\\xa2\\x46\\x18\\x9a\\xee\\xbd\\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\xd5\\x32\\x1c\\x09\\x96\\xe6\\xf4\\xab\\xa6\\x55\\xbb\\x37\\\n\\x6c\\x1c\\xf0\\x9b\\xae\\xeb\\x32\\x3e\\x5d\\x65\\x41\\xde\\xd6\\x0c\\x86\\x82\\\n\\xa3\\x81\\xc0\\x96\\x31\\x0a\\x93\\x4d\\x45\\x93\\xfe\\x18\\x8e\\x6d\\x30\\x78\\\n\\xea\\xd0\\x08\\xdd\\xe6\\x44\\x96\\x18\\x1d\\x04\\x44\\x24\\x91\\x85\\xc8\\x3b\\\n\\xd8\\x83\\x60\\x4b\\x85\\xe1\\x4a\\x12\\xa5\\x48\\x19\\x30\\x98\\x57\\x8c\\xf6\\\n\\x6a\\x5a\\x3b\\x14\\x3a\\x05\\xd9\\x12\\x0c\\xec\\x82\\x4f\\x5c\\x69\\xd2\\xf5\\\n\\x0b\\xc1\\xa4\\xaf\\x05\\xdc\\xf4\\x1a\\x8b\\x8d\\x47\\xd6\\x91\\x6e\\xdb\\x41\\\n\\x2e\\x9f\\xe6\\xf9\\xe7\\x6d\\x32\\x66\\x85\\x79\\x27\\x57\\xf1\\xbe\\x37\\xd4\\\n\\xd1\\x9e\\xab\\xe6\\xf1\\xcc\\x2f\\x19\\x19\\xf0\\xe8\\x76\\xf2\\xf4\\x39\\x6d\\\n\\x0c\\x44\\x26\\x63\\xb6\\x20\\xc8\\x43\\x18\\x25\\x8c\\x08\\x03\\x95\\xbb\\x18\\\n\\xea\\xc7\\x39\\x4e\\x23\\x81\\xa8\\x19\\xfc\\xa1\\x12\\xe5\\xfb\\x22\\x92\\x6c\\\n\\x44\\xe6\\xe6\\x23\\x14\\xdc\\x66\\x3c\\x23\\xc3\\xc2\\xa6\\x12\\x97\\x9e\\x66\\\n\\x73\\xda\\x71\\x06\\xe7\\x9d\\x35\\x81\\x63\\x8f\\xf9\\x24\\xcf\\x3d\\x1f\\xf3\\\n\\xd4\\x9d\\x77\\x81\\xf9\\x33\\xe6\\x4c\\x7b\\x98\\x13\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xa0\\xe2\\x1b\\x29\\x53\\\n\\x30\\x10\\x8c\\x37\\x35\\x25\\x80\\x46\\xa2\\x48\\x08\\x12\\x41\\x5f\\xa0\\x99\\\n\\x90\\x49\\x98\\x92\\x11\\xfc\\xa6\\x4b\\x77\\x46\\x1a\\x9a\\x1c\\x4d\\x39\\x52\\\n\\xc4\\x40\\xbd\\x23\\x38\\x54\\x81\\xc3\\xfe\\x38\\xa7\\x27\\xc4\\xf8\\x9c\\xe0\\\n\\xe1\\xc8\\x44\\x58\\xe0\\x18\\x1a\\x2f\\x90\\x64\\x1d\\xa8\\x9a\\x6c\\x70\\xe0\\\n\\x48\\x42\\x45\\x43\\x25\\xb1\\x50\\xe5\\x32\\xba\\x06\\xc2\\x40\\x81\\x36\\xe0\\\n\\xa8\\x62\\xf0\\xf8\\x98\\xb5\\x4b\\x25\\xe7\\xae\\xb1\\x70\\xa5\\x24\\x30\\x35\\\n\\x15\\x47\\x11\\x18\\x9a\\xba\\x75\\x92\\xa7\\xd6\\xde\\xc8\\xcc\\x79\\x9d\\x30\\\n\\x67\\x0e\\x8f\\xde\\xee\\x91\\xcf\\x68\\xec\\xdc\\x10\\x4f\\xdc\\x77\\x02\\x7b\\\n\\xb6\\xae\\x64\\xe5\\x51\\x8f\\xee\\xea\\x34\\x81\\x17\\x60\\x19\\x82\\xfa\\xd1\\\n\\x80\\x54\\x4a\\x60\\x55\\x4b\\x2c\\x5b\\x21\\x02\\x90\\x96\\xc6\\xc2\\xa4\\x94\\\n\\x4e\\x40\\x82\\x9b\\x08\\x2a\\x69\\x90\\x25\\x89\\x03\\x18\\xae\\x22\\x0a\\x03\\\n\\x92\\xda\\x13\\x69\\xd9\\x0a\\xc5\\x9f\\x79\\xd4\\x2d\\xca\\xb3\\x74\\x46\\xc0\\\n\\xa4\\x85\\x82\\x1b\\xee\\xd2\\x74\\x0e\\x25\\x7c\\xe0\\xed\\x92\\xde\\xfe\\x88\\\n\\xbc\\x29\\x39\\xf3\\xf8\\x79\\xdc\\xf7\\xd8\\x65\\xac\\x9c\\x7e\\x13\\x97\\x9d\\\n\\x68\\x11\\xf7\\x8e\\x70\\x40\\x5f\\x49\\xe6\\x8c\\xa9\\x88\\x3d\\x9f\\x61\\x56\\\n\\xf3\\xfc\\xf1\\x65\\x10\\x23\\x31\\x76\\x1a\\x82\\xb2\\x40\\x48\\x05\\x42\\x13\\\n\\x06\\x06\\x51\\xa0\\xc8\\x56\\xeb\\x2e\\x29\\xdd\\xa2\\x52\\xbe\\xf8\\xfb\\x75\\\n\\xd3\\x5a\\x15\\x23\\x0c\\xca\\x31\\x68\\x3d\\x3e\\x46\\xa4\\x18\\x43\\x01\\x89\\\n\\x46\\x71\\x72\\xbd\\x66\\x77\\x09\\xfa\\x42\\x49\\x5b\\x0a\\x8a\\x91\\x20\\x63\\\n\\x2a\\x16\\xe5\\x05\\xe5\\x18\\x7e\\xdd\\x09\\xb6\\x10\\x64\\x5f\\xa8\\x25\\x6b\\\n\\x04\\xa6\\x18\\xb7\\x44\\xbe\\xb2\\x48\\x99\\x26\\x61\\x04\\x53\\x97\\x28\\xd6\\\n\\xdd\\x05\\x83\\x43\\xa0\\x9c\\x3a\\x54\\x05\\x74\\x11\\x18\\x92\\x98\\x81\\x62\\\n\\xd0\\x91\\xcc\\x2c\\x4a\\xf6\\xce\\x8d\\x59\\x8f\\x60\\xc5\\x06\\x83\\x20\\xa5\\\n\\x48\\x05\\x9a\\xc1\\x5a\\x8b\\xdd\\x65\\xd8\\xde\\x77\\x1d\\xaf\\x7e\\xa7\\x01\\\n\\x62\\x12\\xeb\\x37\\x6e\\xe7\\xd5\\x57\\xe4\\x39\\x70\\xf0\\x10\\x4b\\xd2\\x9f\\\n\\xe3\\xa7\\x9f\\x90\\x6c\\xbe\\xfb\\xbb\\xec\\x69\\x7d\\x35\\x47\\x9d\\x26\\x3a\\\n\\xcb\\x3e\\x83\\xf5\\x9a\\x54\\xbf\\x81\\xd1\\x2d\\x29\\xc4\\x06\\x71\\x73\\x42\\\n\\xc5\\x54\\xa8\\x61\\x41\\xdd\\x98\\x09\\x28\\x3c\\x53\\x53\\x41\\x12\\xdb\\x8a\\\n\\xc0\\xd6\\x18\\x65\\x49\\x10\\x25\\x98\\x43\\x3e\\x3b\\xa6\\x9e\\x48\\x76\\xe7\\\n\\x36\\x06\\x9e\\x48\\x58\\xbf\\xba\\x99\\x36\\x43\\x71\\xdc\\x0a\\xcd\\x9a\\xb5\\\n\\x11\\x17\\xae\\xd5\\xb4\\x4e\\x4f\\x28\\x7b\\x9a\\x9a\\x74\\x86\\xa1\\xc1\\x2b\\\n\\xf8\\xe5\\xa7\\x6f\\x62\\xf9\\x85\\x35\\x1c\\x7e\\x5a\\x71\\xd8\\x6b\\x61\\x5e\\\n\\x7b\\x81\\x89\\xfb\\x34\\x49\\xe5\\x1c\\xfa\\x7b\\xa1\\xba\\x1e\\xfc\\xb2\\x1e\\\n\\x77\\xcd\\x0a\\x34\\x1a\\xad\\x15\\x6e\\x4e\\x63\\x39\\x3c\\xa7\\xb4\\x2f\\xd2\\\n\\x69\\x57\\xff\\xfd\\x82\\x51\\x08\\x0a\\x91\\x66\\x9f\\x27\\x98\\x9a\\x36\\xc8\\\n\\x18\\x7a\\x3c\\x31\\x09\\x34\\xd3\\x73\\x30\\x12\\x4b\\xb6\\x14\\x34\\x0d\\x8e\\\n\\xc6\\x4b\\x04\\x4a\\x6b\\x4e\\x6b\\xb4\\x38\\x54\\xd2\\xec\\x2a\\x6a\\x52\\x08\\\n\\x9c\\x17\\x32\\x40\\x81\\x46\\x8d\\x27\\xe4\\x18\\xb1\\x26\\x4c\\xd5\\x90\\xb4\\\n\\x1f\\xc1\\xdf\\x08\\x73\\x5b\\x25\\x77\\x58\\x11\\x5b\\xd6\\xc3\\x99\\x58\\x1c\\\n\\x28\\x54\\xe8\\x6b\\x86\\x72\\x2d\\x94\\xab\\x05\\xf9\\x26\\x45\\xc3\\x18\\x14\\\n\\x0c\\x93\\x8d\\x2b\\x15\\x4b\\x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\x16\\xb4\\xa7\\\n\\x21\\x63\\x40\\x6f\\x08\\x83\\x91\\xa6\\xca\\x04\\x43\\x68\\x02\\x65\\xfc\\xde\\\n\\x4d\\x03\\x44\\x71\\x82\\xd7\\x52\\xc7\\xd4\\x83\\xfb\\x50\\x62\\x12\\xd3\\xf2\\\n\\x53\\x89\\xda\\x63\\x7e\\xfc\\x38\\x1c\\xf3\\xe6\\x12\\xfb\\x77\\x0f\\xf2\\xec\\\n\\x29\\x0b\\xc8\\x0e\\x27\\x38\\xc6\\x78\\x8f\\x30\\xbe\\x20\\x17\\x68\\x06\\x3c\\\n\\xc1\\x0d\\xab\\x60\\xe9\\x33\\x82\\x96\\x5e\\x89\\xb4\\xa0\\x7f\\xd7\\x6f\\x98\\\n\\x3c\\xdd\\x43\\x64\\x26\\xb0\\xee\\xe1\\xdd\\x9c\\xbb\\x30\\xa4\\x10\\x1e\\xa1\\\n\\xb0\\xfe\\x55\\x9c\\x79\\x5c\\x2b\\xfd\\xfd\\x31\\x51\\xe3\\x52\\xec\\xe5\\x55\\\n\\xc8\\x27\\xee\\x25\\x49\\xef\\xc2\\xad\\x5a\\xc2\\xe6\\xc5\\x13\\x48\\xdb\\xd0\\\n\\x1e\\x41\\x38\\x0c\\x0c\\x81\\x5d\\x0b\\x71\\xc9\\x40\\x85\\x60\\x7b\\x90\\x5d\\\n\\x1b\\xd2\\x3f\\x3a\\xc4\\x11\\x2b\\x26\\x1e\\x32\\x71\\xeb\\xab\\x30\\xea\\x32\\\n\\x0c\\x57\\xc0\\xae\\x3b\\x9b\\x19\\x1b\\xbe\\x8b\\x0e\\x0b\\x74\\x36\\xe5\\x08\\\n\\xf6\\x69\\x3e\\x74\\xa1\\xc5\\x0f\\x6e\\x8f\\xd9\\xba\\x4f\\xf0\\xba\\x73\\x05\\\n\\x67\\x1f\\x03\\x96\\x5f\\x20\\x93\\x91\\x40\\xc8\\xb3\\x3b\\x73\\x34\\x1c\\x3b\\\n\\x9f\\xea\\xc3\\xab\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x30\\x26\\x5f\\x12\\xd0\\x92\\\n\\x90\\xf4\\x18\\x18\\xd2\\xc1\\x4c\\x46\\x60\\x74\\x18\\x73\\x60\\x88\\xe9\\x9b\\\n\\xa1\\xb3\\x2d\\x4d\\x45\\x84\\xe4\\x0d\\x9f\\x72\\xf5\\x44\\x6a\\xa2\\x34\\xde\\\n\\xf4\\xa5\\x14\\x5b\\x56\\x32\\xad\\xeb\\x28\\xc3\\x85\\xb9\\x1c\\xb5\\x62\\xea\\\n\\x84\\xe4\\xd8\\xa9\\x9a\\x8d\\xdd\\x9a\\xd1\\x48\\x72\\x74\\x1b\\x38\\xee\\x13\\\n\\x9c\\x7b\\x7a\\x42\\x30\\xec\\x23\\x9b\\x97\\x93\\x6d\\x04\\x7d\\x5f\\x27\\x5f\\\n\\x7b\\xcf\\x1b\\x59\\x5f\\x80\\x77\\x7d\\x5c\\x71\\xea\\x71\\x8a\\x2f\\xfd\\xb3\\\n\\x81\\x29\\xa0\\x1c\\x29\\x0a\\x03\\x02\\x27\\x17\\x31\\x65\\xb1\\x7a\\x9d\\x80\\\n\\xbd\\x5a\\x6b\\x99\\xcd\\xa6\\x13\\xe0\\xef\\x33\\x9b\\xce\\xa4\\xdd\\x24\\xac\\\n\\xf8\\xbe\\xa5\\xe0\\x68\\x20\\x89\\x14\\xd8\\x1a\\x02\\x21\\xa9\\x28\\xc8\\x1a\\\n\\x1a\\x43\\x0b\\x0c\\x39\\x1e\\x57\\x1f\\xf2\\x05\\x39\\x43\\x22\\xa5\\x26\\x63\\\n\\x08\\x46\\x42\\x8d\\xaf\\x21\\x6f\\x82\\x69\\x28\\x0a\\x91\\xc4\\x92\\x82\\x20\\\n\\x51\\x58\\xc3\\xd0\\x7f\\xd9\\xa5\\x2c\\xf9\\xc6\\x27\\xd8\\x75\\xcf\\x4f\\xa8\\\n\\xaa\\x75\\x39\\xf3\\xc4\\x31\\x6a\\x0a\\x15\\x1a\\xe7\\xec\\x64\\xd2\\x23\\x9b\\\n\\x78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69\\x82\\xb2\\\n\\x66\\xed\\x1d\\xe6\\x75\\x0b\\x4e\\x49\\x98\\xb6\\xd8\\xab\\xae\\x78\\x94\\x64\\\n\\x26\\xe3\\xaa\\x9e\\x9e\\x51\\x36\\x6f\\xb8\\x3e\\x35\\x69\\xca\\x67\\xa2\\xbd\\\n\\x7b\\x7e\\xa5\\xe7\\xcd\\x03\\xc3\\x30\\xff\\x76\\x2d\\xa3\\x80\\xa1\\x51\\xa8\\\n\\x99\\x62\\xf0\\x85\\x67\\x04\\x87\\x9e\\xd5\\x64\\xd3\\x92\\xc1\\x61\\x28\\x86\\\n\\x9a\\x6a\\x4b\\xe0\\x98\\x8a\\x58\\x69\\x4a\\x31\\xe4\\x2d\\x28\\x84\\x06\\x0a\\\n\\xc5\\xac\\x5c\\xc2\\x60\\x28\\xa9\\x6d\\x13\\xfc\\xf4\\xea\\xeb\\x78\\xcb\\x49\\\n\\x0f\\xa2\\xd5\\x54\\xee\\xfb\\xfa\\x73\\xb4\\x35\\x37\\xd1\\x3c\\x41\\xa1\\x92\\\n\\x34\\xf1\\x88\\x01\\x61\\x2f\\x46\\xab\\x42\\x65\\x6a\\x10\\x4e\\x1a\\xc1\\x0b\\\n\\xb5\\x63\\x24\\x22\\x5d\\x8b\\xea\\x3d\\x80\\xdc\\xb1\\x1b\\x9d\\x1a\\xa7\\x88\\\n\\x74\\x09\\x68\\x9d\\x84\\x1f\\x67\\xf8\\xcd\\x2f\\x43\\x4e\\x99\\xfe\\x1c\\xea\\\n\\xe6\\xdb\\xf9\\xed\\x96\\x37\\xb0\\x35\\x70\\x18\\xdb\\x77\\x18\\x7d\\xe4\\x00\\\n\\x7e\\x52\\xc7\\xe1\\xa9\\x1d\\xd4\\x0f\\xd6\\x30\\xdd\\xb7\\xe8\\xae\\x01\\xab\\\n\\x16\\x36\\x6c\\x82\\x6f\\x5d\\x57\\x21\\x53\\x35\\x99\\x37\\x5f\\x38\\x99\\x37\\\n\\x2f\\xd9\\x46\\xd3\\x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bc\\x81\\x37\\x1e\\xfc\\x19\\xfa\\xfe\\xbb\\x39\\x74\\xe9\\xf9\\\n\\x54\\x7a\\x03\\x7c\\xa1\\xc9\\x24\\x70\\x4c\\x83\\x40\\x2b\\xc9\\xd3\\x23\\x9a\\\n\\x51\\x04\\xa9\\x34\\x90\\xb5\\xf1\\x89\\x98\\xdf\\x03\\xed\\x09\\x90\\xaa\\xc3\\\n\\x61\\x32\\x9b\\xc5\\xb5\\xb4\\x5c\\x18\\x72\\xff\\xfd\\x29\\x96\\x2f\\xb3\\xa1\\\n\\xbc\\x07\\x2b\\xba\\x9a\\x25\\x8b\\xea\\xe8\\x1f\\x8c\\x88\\x43\\x89\\x93\\xd6\\\n\\x04\\x15\\x83\\x5c\\xad\\x22\\x0a\\xc7\\xef\\xb1\\x5c\\xd6\\xcc\\x9f\\x06\\xc7\\\n\\xad\\x80\\x9b\\xee\\x53\\x5c\\x79\\x82\\x60\\xd6\\x31\\x8a\\x86\\x76\\xfd\\xcf\\\n\\x95\\x8a\\xf8\\xb6\\xe3\\x80\\x80\\x4e\\xdd\\xdd\\x85\\x9c\\x3b\\x7b\\xda\\xef\\\n\\x5f\\xd4\\xf0\\xd0\\x76\\x5d\\x28\\xcc\\xfd\\x9b\\x05\\x63\\xc5\\xf7\\x0d\\x4b\\\n\\x88\\xa4\\x31\\xa5\\x69\\x75\\x13\\x7a\\x2a\\x82\\x89\\x69\\x4d\\x4d\\x4a\\x72\\\n\\xc4\\x53\\x08\\xad\\xf1\\x15\\x54\\x5b\\xd0\\xe4\\x08\\x0a\\x89\\x20\\x51\\x31\\\n\\x23\\x91\\x20\\x63\\x68\\x6a\\x2c\\x48\\x22\\x8d\\x93\\x83\\x6d\\xa3\\x92\\x96\\\n\\x56\\x78\\xd3\\xdb\\x24\\x0f\\xdc\\x7c\\x39\\xbb\\x0f\\x3d\\x40\\xbe\\xf6\\x3c\\\n\\xce\\x3e\\xee\\x6b\\x34\\xb4\\x3e\\x8b\\x2a\\x55\\x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d6\\xc7\\xfd\\xcf\\xad\\x27\\xa8\\xda\\\n\\xcc\\xa2\\x33\\x06\\x99\\x56\\xab\\x98\\xdf\\x31\\x4a\\x2e\\xe3\\x61\\x09\\x49\\\n\\x58\\x82\\xde\\xd1\\x84\\x7e\\x09\\xa5\\x04\\x8a\\xbe\\x45\\xba\\xce\\x40\\xe7\\\n\\xcb\\xdc\\x70\\x7f\\x89\\xfb\\x76\\x3b\\x2c\\xf2\\x4a\\xbc\\xc5\\x39\\x8b\\xcf\\\n\\xbc\\xfe\\x7a\\x1c\\x0b\\x8e\\x76\\xc7\\xe4\\xb4\\xc1\\x58\\x0c\\xfb\\xdb\\x62\\\n\\x3c\\xc7\\x23\\xae\\x32\\xd1\\xa6\\x40\\x54\\x12\\x16\\xdf\\x7f\\x00\\x5b\\x69\\\n\\x0e\\xce\\xaa\\x21\\x09\\x62\\x22\\xcb\\xa0\\xaf\\x41\\x51\\x6f\\x25\\xcc\\x17\\\n\\x30\\x64\\x1b\\x14\\xba\\x24\\x7d\\x2b\\xe0\\x84\\xde\\x07\\xc9\\x3d\\x9f\\xe5\\\n\\x9b\\xfd\\xf3\\x78\\xc3\\xc5\\xfd\\xcc\\x99\\x30\\x91\\xf6\\x92\\xe6\\x80\\x96\\\n\\x94\\xcc\\x71\\xd5\\xb7\\x25\\x04\\x5a\\x42\\x46\\x27\\x24\\xe9\\x5a\\xc2\\xd6\\\n\\x23\\x54\\xbb\\x23\\xf4\\xed\\x1d\\x61\\xe9\\xa4\\x9f\\x50\\x87\\x60\\xdd\\xfa\\\n\\x90\\xd3\\x5e\\x61\\xf0\\xcd\\xdb\\x4f\\xc4\\x5e\\x75\\x05\\x53\\xc6\\x12\\xce\\\n\\xec\\x89\\x51\\x5a\\xd2\\x1d\\x8d\\x0f\\x29\\x48\\x12\\x88\\x42\\x49\\x14\\x8d\\\n\\x8f\\x53\\x4e\\x67\\x15\\x1a\\x81\\xd0\\x82\\xda\\x66\\xc1\\xbc\\xf9\\x12\\x27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\x25\\x88\\xb4\\xc4\\x10\\xe3\\x56\\\n\\xb6\\xb1\\x27\\xa2\\x21\\x1d\\xb3\\x7f\\x51\\x1d\\x5b\\x8f\\xa9\\xe3\\x99\\x00\\\n\\x5a\\x4a\\x21\\xcd\\xa1\\x62\\xac\\x12\\x13\\x2b\\x89\\x3d\\x66\\xd1\\xd2\\x6b\\\n\\x51\\x3d\\x1a\\x11\\x65\\xc6\\x47\\x7c\\x38\\xa3\\x15\\xa2\\x2a\\x83\\x59\\xf7\\\n\\x6c\\xe0\\xc0\\x8a\\x09\\x1c\\x3e\\x71\\x26\\xa5\\xfa\\x34\\xdb\\x73\\x01\\x4d\\\n\\x87\\xba\\xe8\\xae\\x69\\xc2\\x1c\\x2b\\xa1\\xa3\\x80\\xaa\\x54\\x86\\x89\\xdd\\\n\\x92\\x81\\x66\\x41\\xe3\\x88\\xc2\\xb2\\x72\\xb8\\x89\\x41\\xe7\\xfc\\x3c\\x03\\\n\\x53\\xf2\\x2c\\xbf\\x6e\\x17\\x7b\\xde\\x3c\\x13\\x9d\\x87\\xfc\\x82\\x1a\\x52\\\n\\x8b\\xb3\\x34\\x3e\\x36\\x40\\xef\\x85\\x0b\\x58\\x7e\\xf7\\x5e\\x42\\x52\\x94\\\n\\x1c\\x93\\x9a\\xc7\\x77\\x61\\x17\\x17\\x71\\xa8\\x35\\x87\\xd8\\xbb\\x97\\x9a\\\n\\x11\\x17\\x5d\\xab\\x99\\x78\\xeb\\x76\\x9e\\x5d\\xd9\\x4e\\xc5\\x31\\x58\\x34\\\n\\x92\\xa6\\xa7\\x19\\xb6\\x0c\\x5d\\xcf\\x3f\\x2e\\x4c\\x18\\xdd\\x90\\x62\\x70\\\n\\x38\\xe6\\xd0\\xae\\x88\\xe5\\x0b\\xae\\x26\\xdd\\x0c\\xf7\\xb8\\x45\\x7a\\x6e\\\n\\x15\\xdc\\x5f\\x90\\x4c\\x7d\\xab\\x89\\xda\\x10\\x53\\x79\\x56\\xe1\\x9e\\x68\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\\x8c\\x39\\x3c\\x3f\\xc3\\x8e\\xe3\\xdb\\x58\\xbc\\xe6\\\n\\x28\\x4e\\x9d\\xc5\\x98\\x61\\xb2\\x64\\x7d\\x3f\\xd5\\x83\\x1e\\xc2\\x71\\xc8\\\n\\x7a\\x21\\xa5\\x89\\x4d\\x14\\xe7\\xcf\\x44\\x08\\x1b\\x7a\\x87\\xb1\\x8b\\x25\\\n\\x06\\x22\\x09\\x4f\\x74\\x33\\xe9\\xbe\\x2d\\x4c\\xff\\xd9\\x6a\\x46\\x0c\\x45\\\n\\xb6\\x58\\x66\\xee\\x86\\x22\\xde\\xc2\\x46\\x0e\\x46\\x60\\x79\\x3f\\xa6\\x71\\\n\\x09\\xdc\\xbf\\xc5\\xa4\\xa7\\x37\\xe2\\x50\\x17\\x5c\\x54\\x7d\\x16\\xe5\\xd5\\\n\\xb0\\xee\\x3a\\x45\\x6b\\x8d\\x24\\xff\\x13\\xd8\\xf0\\xe5\\x98\\x28\\x9f\\xd0\\\n\\x34\\xc7\\xc6\\x4e\\x04\\x55\\x25\\xc5\\xc4\\x09\\x82\\x16\\x25\\x70\\x1c\\x39\\\n\\x62\\x5a\\x72\\xd8\\x4e\\x89\\x6e\\x33\\xc5\\x7e\\xcb\\x10\\xc3\\x60\\x0c\\x4f\\\n\\x7a\\x8f\\x51\\xb7\\x6c\\x8e\\xa0\\xf0\\x76\\x03\\x03\\xde\\xeb\\x07\\xfe\\x1f\\\n\\x31\\x4c\\xe9\\xf8\\xa2\\xf3\\x61\\x78\\x58\\x01\\xe2\\x2f\\x1e\\x33\\xbe\\x68\\\n\\x60\\x74\\x5d\\xdc\\xed\\x3b\\x93\\xe2\\x4d\\x37\\xa9\\xa2\\xe7\\xe9\\x62\\x18\\\n\\xfa\\x16\\x80\\x25\\x49\\x39\\x52\\x91\\x95\\x9a\\x85\\x59\\x41\\x93\\x2b\\xb0\\\n\\x24\\x18\\x42\\xd0\\xed\\x0b\\x12\\xc6\\x5b\\x11\\x40\\x13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\\x04\\x56\\x45\\x60\\x09\\\n\\x4d\\xcc\\x38\\x50\\x1d\\x43\\x61\\x09\\x41\\xac\\x04\\x91\\xd2\\x18\\x28\\x4c\\\n\\x24\\x15\\x21\\x30\\xc6\\xc9\\x0c\\x4a\\x4e\\x8a\\x09\\x66\\x84\\x91\\xd5\\xf4\\\n\\xf5\\x85\\x54\\x85\\x0a\\xaa\\x4d\\x1a\\x07\\x12\\x32\\xd2\\xa6\\x92\\x35\\xb0\\\n\\xc7\\x3c\\xe2\\x54\\x42\\xa1\\xa5\\x86\\x2d\\x17\\x2f\\x23\\xb0\\x04\\x67\\x7c\\\n\\xee\\x7e\\x1e\\xff\\xf0\\xd9\\xf4\\x2e\\xab\\x42\\x76\\x79\\x08\\xc3\\xa6\\xf1\\\n\\x90\\x22\\x5f\\xf2\\x89\\x32\\x26\\x47\\x97\\x4e\\xa1\\x6e\\xa8\\x44\\x7f\\x4b\\\n\\x8e\\xa1\\x5c\\x82\\x53\\x67\\xb0\\xef\\xc2\\x76\\x76\\x7c\\xe2\\xeb\\xdc\\x7d\\\n\\x93\\xc1\\x81\\x31\\x45\\x94\\xda\\xcc\\xdc\\x1f\\xee\\xa6\\x66\\x8e\\x87\\xd4\\\n\\x19\\x7c\\x69\\x90\\xba\\xc0\\x26\\x15\\x76\\x72\\xc3\\xe0\\x3e\\x9e\\xfd\\xac\\\n\\xe0\\x8e\\x81\\x63\\x98\\x50\\x9a\\xc2\\xf4\\x21\\x97\\x6c\\x7a\\x2e\\x84\\x01\\\n\\xcd\\x99\\x55\\x3c\\xb4\\x1d\\x1a\\xe6\\xde\\x40\\xc3\\x8c\\x16\\x1e\\x7b\\xd2\\\n\\xe7\\x9e\\xbb\\xc6\\x38\\xe3\\xd8\\xa9\\x2c\\xb2\\x16\\x30\\x9a\\x48\\x6a\\xe7\\\n\\x9f\\xc9\\xda\\xe4\\x3e\\xde\\xf5\\x78\\x23\\x77\\xf6\\xce\\x40\\x33\\x7d\\x1c\\\n\\x5c\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c\\x75\\\n\\x0f\\x72\\xd5\\xaa\\xa7\\x89\\x32\\x29\\xae\\x59\\xb2\\x86\\xb3\\x9c\\x3a\\x7a\\\n\\x8f\\x6d\\x43\\xd8\\x92\\xe8\\xc0\\xf8\\x78\\x97\\xb6\\xcb\\x80\\xaa\\x3e\\xb8\\\n\\xcf\\x87\\x63\\x4c\\x48\\xe7\\x60\\xa7\\x0d\\x43\\x02\\x7a\\x1d\\x9e\\xba\\x02\\\n\\x1e\\xad\\x82\\xfa\\x32\\xf4\\x05\\x8a\\xc5\\x59\\xb8\\xa8\\x99\\x95\\x1a\\x99\\\n\\x2b\\x1c\\xe1\\xe1\\x75\\x53\\x23\\xe6\\x7c\\x73\\x27\\xad\\xa7\\x1f\\x85\\x99\\\n\\xb3\\x79\\x6e\\xfb\\x64\\x56\\xce\\x2b\\x73\\xc3\\x2d\\x92\\x2b\\x2f\\x15\\xb9\\\n\\xf1\\x0d\\xab\\x7f\\x63\\x42\\x09\\xcb\\xb2\\x34\\x98\\x21\\x58\\x01\\x58\\x81\\\n\\x6d\\x5b\\xbf\\xff\\x16\\x04\\xbe\\x6f\\x38\\x52\\x54\\x32\\xe9\\xf4\\xf6\\x91\\\n\\x4a\\xe5\\xac\\x43\\x9e\\xb8\\xdc\\xaf\\x97\\x4c\\x79\\xaf\\x22\\xda\\x0c\\xf1\\\n\\x14\\xc9\\xc4\\xdb\\x15\\x5d\\xff\\x60\\x50\\x29\\x09\\xea\\x4d\\xc5\\xcc\\x1c\\\n\\x1c\\xf1\\xc6\\xe7\\x0e\\xd6\\xd8\\x82\\x91\\x08\\xbc\\x48\\xe3\\x98\\x92\\x3a\\\n\\x13\\x86\\x11\\x04\\x69\\x13\\x0b\\x89\\xd3\\xa3\\x59\\x52\\x09\\x11\\x53\\xd2\\\n\\xec\\x73\\x6c\\xd2\\x63\\x15\\xa4\\x9d\\x22\\x9a\\x92\\xa3\\xba\\xec\\x13\\x55\\\n\\x34\\xe1\\xf4\\x2c\\x3b\\x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\n\\xc6\\x8c\\x0c\\x1f\\x9f\\x78\\x3b\\xde\\xf3\\x43\\x88\\xe1\\x01\\x4a\\x27\\x2e\\\n\\xc3\\x5f\\x30\\x05\\x57\\x86\\xc4\\x98\\x78\\x7d\\x92\\xaa\\xb9\\xe0\\x4e\\xad\\\n\\xe0\\x6d\\x90\\x54\\xe7\\x05\\x23\\x47\\x05\\xbf\\x3d\\x27\\x24\\xac\\x16\\x54\\\n\\x7b\\x06\\x3d\\x91\\xe0\\xb4\\x9a\\xe4\\xa1\\xe5\\x8d\\xce\\x99\\x00\\x31\\x7e\\\n\\x73\\xb0\\xdb\\xe8\\x79\\x78\\x96\\x62\\xc6\\x5d\\x11\\xb3\\xce\\xcf\\xb5\\x57\\\n\\xa2\\x04\\xf3\\xe9\\x47\\x8e\\x5a\\x27\\xce\\x60\\xf2\\x8a\\x89\\x5c\\x7e\\x5a\\\n\\x99\\x2f\\x7f\\xc1\\xcc\\x79\\xde\\x8b\\xb3\\x65\\xf5\\x25\\x33\\x5e\\x3c\\xd6\\\n\\xa8\\x5a\\x83\\xce\\x50\\x4b\\xc2\\x94\\x60\\xfe\\x93\\x50\\x68\\x17\\x0c\\xac\\\n\\x50\\x14\\x80\\x91\\xaf\\xc0\\xb4\\xef\\x0a\\xea\\x87\\x35\\x9e\\x25\\x38\\x50\\\n\\xd6\\x54\\x12\\x3d\\xae\\x04\\x17\\x09\\x29\\x21\\x68\\x74\\x6d\\x26\\x64\\x35\\\n\\x5d\\x81\\x26\\xa5\\x34\\x76\\x34\\xbe\\xdf\\x39\\xb6\\x05\\xfd\\x09\\x3c\\x53\\\n\\x12\\x4c\\x36\\x35\\x56\\x9d\\x49\\x22\\x6d\\xe2\\xa2\\x81\\xb2\\x4c\\x6c\\x3b\\\n\\x46\\x84\\x82\\xab\\x4e\\x0c\\x80\\x18\\xd0\\xd4\\x01\\xe9\\xbe\\x88\\xa0\\xb1\\\n\\x96\\x67\\xdf\\x7b\\x06\\x5d\\xc7\\x75\\x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\\x27\\xf1\\\n\\x12\\x45\\x53\\x06\\x86\\x02\\x49\\x26\\xa7\\x30\\x95\\x62\\xc2\\xbb\\x40\\xc6\\\n\\xf0\\xf4\\x7b\\x24\\xe7\\x9c\\x05\\xb3\\xe3\\x14\\x07\\x1e\\x4f\\xc0\\x28\\xd3\\\n\\x69\\x5a\\x64\\x86\\x25\\x01\\x9a\\x31\\x17\\xd2\\xa1\\x45\\x26\\xd1\\x24\\x9e\\\n\\xa6\\x6a\\x4c\\xe1\\x04\\x21\\x49\\x5a\\x53\\x34\\x52\\x68\\xd3\\x24\\x55\\xa9\\\n\\x20\\xfc\\x84\\x67\\x4e\\xab\\xa2\\x34\\x13\\x16\\xfe\\xf2\\x72\\x7e\\xf5\\xe9\\\n\\x5b\\xb8\\xf5\\x21\\x9b\\x28\\x3e\\x9e\\x1f\\x7e\\xfb\\x55\\xf4\\x1f\\xfc\\x08\\\n\\xd9\\xea\\x01\\xce\\x3b\\x33\\xcd\\xcc\\x4c\\x16\\xdb\\x36\\xa0\\xa2\\x10\\x86\\\n\\x46\\x08\\x85\\xb1\\x57\\xc3\\x7e\\x41\\xff\\xa4\\x84\\x1d\\x83\\x9a\\xa7\\xd7\\\n\\x14\\x98\\x91\\xd5\\x78\\xaf\\x9a\\xc5\\x37\\xb7\\x9f\\x43\\xdd\\x94\\x33\\x68\\\n\\x7d\\xf2\\x2a\\x5e\\xbd\\xff\\x74\\xce\\xb8\\xe8\\xeb\\xd0\\xbb\\x79\\x3c\\x7a\\\n\\x68\\x70\\xa1\\xbb\\x08\\x9d\\x9d\\x30\\x3c\\xc0\\x58\\x7d\\x13\\x6b\\xfa\\x05\\\n\\x87\\xfa\\x22\\x86\\xc3\\x7a\\x82\\x06\\x9b\\x01\\x37\\xa4\\x6c\\xba\\x1c\\x7b\\\n\\x65\\x9a\\xf6\\xcb\\x9a\\x70\\x26\\xcf\\x67\\x6e\\x31\\xe0\\xb1\\x51\\xe8\\xaa\\\n\\x08\\xda\\x52\\x09\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\x8e\\x21\\xee\\xf1\\xb8\\xe9\\x75\\x53\\x11\\xaf\\x6a\\x63\\xc3\\x7d\\\n\\x01\\x5f\\x3d\\x57\\x53\\xd3\\x0e\\x6f\\xbe\\x56\\x70\\xef\\x6d\\x2e\\xa7\\x87\\\n\\x8f\\x73\\xc1\\xc7\\xeb\\x78\\x3a\\x37\\x9f\\xa5\\xca\\xe7\\x9c\\x56\\x31\\x2b\\\n\\x08\\x92\\xd1\\x54\\x69\\x6d\\x6f\\xf7\\xa7\\x96\\x31\\xf7\\x7b\\x19\\x46\\x33\\\n\\x09\\x94\\xe1\\xb9\\x75\\x9a\\xe5\\x4b\\xc5\\x25\\xe0\\xde\\x56\\x3e\\xdc\\x75\\\n\\x72\\x66\\x42\\xee\\x6c\\x84\\xf9\\x29\\xcf\\x93\\xe1\\x0b\\x3a\\x82\\xbf\\xbf\\\n\\x98\\xf1\\xcf\\x9d\\xb4\\xeb\\x26\\x9e\\xef\\x63\\x4b\\x91\\xae\\xb7\\xb5\\x57\\\n\\x8c\\xc5\\xbe\\x92\\x57\\x91\\x75\\xa6\\xfa\\x4d\\x95\\x29\\x56\\xcd\\xcc\\x69\\\n\\xb6\\x8f\\x42\\xcd\\x61\\x18\\xf8\\x92\\xa0\\x6a\\x44\\xd1\\x7e\\xa6\\xe4\\x48\\\n\\x95\\xa2\\x77\\x48\\x53\\xff\\x51\\x58\\xf4\\x09\\x4d\\x36\\x16\\x8c\\x78\\x8a\\\n\\xfc\\x2c\\x45\\x8d\\x69\\x50\\x24\\xe2\\x48\\x64\\x90\\xd7\\x12\\x3d\\x16\\xb3\\\n\\xb3\\x60\\x53\\x70\\x52\\xd8\\x83\\x31\\x69\\xed\\x53\\x71\\x4d\\x16\\x3c\\xd0\\\n\\x45\\x61\\x41\\x35\\xd9\\x44\\x71\\x60\\x2c\\xe4\\xa0\\x61\\x31\\x67\\x1b\\x1c\\\n\\x6e\\x11\\x54\\xa3\\x49\\xf5\\x2a\\x06\\x14\\xf8\\x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\x75\\xdd\\\n\\x21\\x9b\\x23\\xa5\\x99\\x94\\x85\\xd1\\x08\\x7a\\x2a\\x82\\x8c\\x31\\x2e\\xf0\\\n\\x3d\\x52\\x11\\x6c\\x1a\\x03\\x3f\\xd4\\x04\\x85\\x18\\x1b\\x30\\x3b\\xcb\\x78\\\n\\xf3\\xf3\\xb4\\x64\\x0c\\xf6\\x7a\\x60\\x8d\\x24\\x9c\\xbc\\x43\\x30\\xe5\\x88\\\n\\x81\\xe3\\x6a\\x74\\xb5\\x26\\x35\\x68\\x52\\xca\\x57\\x88\\x1c\\x9b\\xba\\xce\\\n\\x90\\xfc\\x6f\\x1f\\xc0\\x88\\x22\\x54\\x6d\\x15\\x24\\x8a\\x44\\x08\\xe2\\xc6\\\n\\x7a\\x94\\x4e\\x10\\x61\\x48\\xb6\\x73\\x10\\x25\\x21\\xc9\\xa6\\xe9\\x3b\\xa9\\\n\\x83\\xd1\\x5e\\x9f\\xc9\\x5b\\x7a\\xb0\\x47\\x02\\xd4\\xa4\\x2a\\x98\\xe8\\xa2\\\n\\x0b\\x31\\xba\\x21\\x85\\x28\\x86\\x68\\x47\\x92\\x1d\\x8a\\xe9\\xad\\x69\\xe1\\\n\\xf1\\x95\\xbb\\xe9\\x3b\\x79\\x2a\\x71\\xdb\\x7c\\xfc\\xee\\x80\\x96\\xe9\\x1a\\\n\\xff\\xf1\\x84\\x8f\\xbc\\x12\\xdc\\x26\\xc1\\x35\\xf7\\xa7\\x69\\x7a\\x78\\x35\\\n\\xd6\\xcc\\x1a\\xe6\\xad\\x98\\x07\\xe5\\x0a\\xc3\\xa1\\xda\\x72\\x72\\x4b\\xfa\\\n\\x15\\x74\\xef\\x1e\\xa6\\x75\\x66\\x71\\xe4\\x8d\\xf4\\xbc\\x77\\xa8\\xd4\\xfc\\\n\\x8b\\x7b\\x24\\x24\\xb0\\xea\\x44\\xc5\\x23\\x0f\\xbb\\x38\\x56\\xdf\\x88\\xd7\\\n\\x25\\xae\\x10\\x2d\\x8d\\x4f\\xba\\xd2\\x08\\x5f\\x06\\xe3\\x7f\\x71\\x82\\x8a\\\n\\x6f\\xa4\\x1c\\x37\\xe9\\x19\\xf3\\xaa\\xab\\x2c\\x91\\x64\\xa4\\x78\\x7e\\x67\\\n\\x49\\xcd\\x3c\\x92\\x68\\x4a\\xa1\\xc1\\xe1\\x31\\x8d\\x9d\\x12\\xcc\\x9e\\x00\\\n\\xbe\\x05\\xb3\\x12\\x68\\x09\\x74\\x73\\x26\\xed\\xf6\\x01\\x0c\\x97\\xfd\\x05\\\n\\x29\\xa1\\x37\\xa7\\x84\\xe8\\x48\\x04\\x1d\\x41\\x22\\xde\\x1b\\x28\\x7d\\x79\\\n\\x43\\x2a\\x01\\x25\\x40\\x0a\\xf6\\x87\\x82\\xde\\xc1\\xf8\\xd9\\xda\\x91\\x68\\\n\\xff\\xda\\x96\\xfc\\x3f\\x54\\x86\\x43\\x02\\x53\\x22\\xa4\\xa0\\xa5\\xac\\xc8\\\n\\x0e\\x08\\x3a\\xfa\\x35\\x0d\\x7b\\x24\\x56\\x02\\x31\\x12\\x33\\x13\\x91\\x18\\\n\\x29\\xe8\\xf3\\xc8\\x6c\\x7c\\x8e\\xc4\\x32\\x49\\xef\\xee\\xa4\\x78\\xe2\\x31\\\n\\x80\\x26\\x98\\xd0\\x4e\\xa9\\xd5\\x21\\x5f\\x80\\xe8\\xf0\\x61\\x6a\\x1f\\x59\\\n\\x43\\x3a\\xca\\x72\\xef\\x8f\\x5e\\xc1\\xc8\\xa9\\x70\\xc9\\xce\\xa1\\x8f\\x1b\\\n\\x0f\\x76\\x7f\\x3a\\x7e\\x7a\\x18\\xfd\\xfc\\x10\\xa2\\xce\\x41\\xb5\\xb9\\x08\\\n\\x1b\\x32\\x43\\x15\\x7a\\xdb\\xb2\\xfc\\xe8\\x0b\\x27\\x90\\xd4\\xc2\\x92\\x1b\\\n\\xef\\x64\\xdd\\xa2\\x93\\x11\\x6e\\x86\\x77\\xcc\\x4c\\xd8\\xb1\\x53\\xf1\\xb1\\\n\\xaf\\x29\\x4c\\x01\\xc7\\xbd\\x3a\\xcd\\x29\\xf5\\x1b\\x38\\x58\\xa8\\x47\\x4e\\\n\\xee\\x60\\xa0\\x14\\x51\\x49\\x14\\x2b\\xaa\\x25\\xa7\\x64\\x82\\x59\\xae\\xdc\\\n\\x36\\xa1\\x72\\xff\\xe4\\x86\\xe2\\x6f\\x9b\\x7f\\xfd\\xdd\\xb9\\x09\\x5f\\xbe\\\n\\x23\\xc2\\x5f\\xa7\\x41\\x6a\\x1e\\x7a\\x30\\xe6\\xb4\\x13\\x12\\x02\\x9d\\x36\\\n\\x9d\\x54\\xea\\x6f\\x75\\x8c\\xf2\\x7f\\xff\\xf8\\x9e\\x67\\xfc\\xb9\\x79\\xd2\\\n\\x29\\xc7\\x4d\\xa2\\xa0\\x62\\xa3\\x69\\xca\\xb8\\xee\\xee\\x24\\xf0\\x07\\x67\\\n\\x66\\x98\\x99\\x0e\\x24\\xcf\\x87\\x92\\x8a\\x88\\x19\\x0b\\x04\\x73\\x7d\\xcd\\\n\\x8e\\x01\\xcd\\x36\\x2d\\x98\\xd6\\xe6\\xf6\\x79\\x7e\\xc5\\x55\\x28\\x0a\\x11\\\n\\x27\\xf8\\x89\\x60\\x72\\x9a\\x63\\x5d\\xc7\\xbd\\xb9\\x50\\x2a\\x1f\\x33\\x16\\\n\\x72\\xf9\\x81\\x32\\x0c\\x87\\x06\\x2d\\x59\\x41\\x8b\\xa5\\x58\\x56\\x2f\\xde\\\n\\x90\\x9a\\x54\\xbb\\x73\\xea\\xe0\\xd8\\xfb\\xec\\x76\\x2e\\xa1\\xca\\xf2\\x92\\\n\\x30\\xfe\\xa9\\x21\\x24\\xfe\\x4d\\x26\\x5e\\xbb\\xa0\\xd4\\x10\\x51\\xd8\\x6d\\\n\\xf2\\xff\\xb1\\x77\\xee\\xc1\\x71\\x55\\x77\\x9e\\xff\\x9c\\xfb\\xea\\x7b\\x6e\\\n\\x77\\x4b\\x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ff\\xaf\\x78\\xe6\\x9e\\x65\\x1c\\xbf\\x7d\\x21\\x97\\x47\\x75\\x16\\x05\\x86\\\n\\x6e\\x1b\\x90\\x92\\xda\\x23\\x7b\\x11\\xd7\\x77\\x60\\xad\\xe9\\xc2\\x84\\xa1\\\n\\x33\\xed\\xad\\xd0\\x92\\xa8\\xd0\\x1f\\x9a\\xca\\xa3\\x27\\x05\\x1d\\x8e\\x61\\\n\\x89\\x14\\x54\\x32\\x41\\xbf\\x82\\x4a\\xa2\\xf9\\xe8\\x12\\xc9\\x32\\x9d\\xf0\\\n\\xc4\\xde\\x41\\x16\\x6e\\xdf\\xc6\\x29\\xd9\\xca\\x40\\xdb\\x1c\\xbe\\xb0\\xba\\\n\\xf5\\xdf\\xb5\\x97\\x82\\xdd\\x49\\x2a\\xfa\\x5d\\x57\\x4b\\x94\\xfa\\xf5\\xf3\\\n\\x55\\xc9\\x33\\xb5\\x3c\\x47\\x5d\\x87\\xaf\\x2c\\xcd\\x61\\xae\\xd5\\xcc\\x7d\\\n\\x54\\x52\\xba\\x49\\x70\\xf2\\xb1\\x98\\xbe\\xcf\\x64\\xdc\\x3c\\x48\\x87\\xd3\\\n\\x49\\xec\\x09\\x39\\x3b\\x4b\\xc8\\x00\\x94\\x0a\\x6d\\x1c\\x37\\xb6\\xef\\xb8\\\n\\x93\\xec\\xd9\\x67\\xc9\\xbe\\xff\\x57\\xe0\\xd8\\x4f\\x99\\x2c\\xc1\\x08\\x81\\\n\\xbb\\x69\\x23\\xd6\\xa2\\x45\\xe8\\x30\\x1c\\xc0\\x39\\xcb\\x2c\\xf3\\x5c\\x6e\\\n\\x85\\x3e\\x70\\x10\\x67\\xac\\x3c\\x1f\\xcf\\xab\\x01\\x64\\xa3\\x23\\xbf\\x34\\\n\\xab\\xaf\\xba\\x3b\\xd5\\xda\\x77\\x2d\\xab\\x9a\\xb3\\xc1\\x03\\x35\\x56\\x0b\\\n\\xd7\\x79\\x73\\xe4\\x76\\xef\\x57\\x83\\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75\\\n\\xeb\\x13\\xaf\\x07\\x57\\xac\\x58\\xc3\\xca\\xcb\\x8b\\x51\\x18\\x8d\\x4f\\xb4\\\n\\x4f\\xc2\\xd6\\x83\\x55\\x51\\x7e\\xe4\\xe8\\xf8\\x86\\xa0\\x9e\\xcc\\x81\\xd0\\\n\\x14\\xdf\\x3c\\x88\\x1e\\x2d\\x33\\x26\\x3c\\x62\\xc7\\xe3\\xf2\\x82\\xe0\\xda\\\n\\xc5\\xad\\x5c\\x31\\x37\\x00\\xd7\\x2b\\xe1\\x06\\xa3\\xa1\\x52\\xb6\\x30\\x20\\\n\\x5c\\x6c\\xd7\\xc5\\xd3\\x80\\x8b\\xac\\x36\\xf3\\x8c\\xd3\\x40\\x96\\x11\\xaf\\\n\\xb8\\xcc\\x62\\xc3\\x27\\x60\\x7c\\x05\\x2e\\x87\\x9f\\x3d\\x01\\x5f\\xff\\x4f\\\n\\xe0\\x38\\x78\\x51\\x74\\xfe\\x39\\xb2\\x9c\\xef\\x67\\x13\\x44\\x54\\xf5\\xc8\\\n\\x8e\\xc0\\xe8\\xaf\\xed\\xc4\\x7c\\xf1\\x45\\x32\\x6d\\x91\\x58\\x8e\\x3d\\x99\\\n\\x88\\x00\\x32\\x1f\\x64\\x68\\x32\\xea\\x99\\xf2\\x7d\\x69\\xc6\\x73\\x74\\x66\\\n\\xd0\\x7a\\x70\\x15\\x5c\\x96\\xff\\x9f\\x2a\\x89\\xbb\\x25\\x44\\xe2\\xe3\\x5d\\\n\\xf0\\xd3\\x7e\\x44\\x9c\\x94\\xf1\\xec\\x33\\xcf\\x4d\\x76\\x3d\\x99\\x9d\\x38\\\n\\x81\\xd5\\xd6\\x86\\x35\\x77\\xce\\xdd\\x44\\x51\\x17\\x61\\x98\\x01\\x58\\x82\\\n\\x58\\xbd\\xf2\\x1a\\x31\\x82\\x89\\x69\\xa4\\xf5\\x54\\x54\\x2f\\x2b\\x68\\xee\\\n\\xe9\\x31\\xb4\\x39\\x82\\x48\\xc5\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\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\x20\\x00\\x00\\x00\\x20\\x08\\x06\\x00\\x00\\x00\\x73\\x7a\\x7a\\xf4\\\n\\x00\\x00\\x00\\x09\\x70\\x48\\x59\\x73\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\\n\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x0a\\x4d\\x69\\x43\\x43\\x50\\x50\\x68\\x6f\\\n\\x74\\x6f\\x73\\x68\\x6f\\x70\\x20\\x49\\x43\\x43\\x20\\x70\\x72\\x6f\\x66\\x69\\\n\\x6c\\x65\\x00\\x00\\x78\\xda\\x9d\\x53\\x77\\x58\\x93\\xf7\\x16\\x3e\\xdf\\xf7\\\n\\x65\\x0f\\x56\\x42\\xd8\\xf0\\xb1\\x97\\x6c\\x81\\x00\\x22\\x23\\xac\\x08\\xc8\\\n\\x10\\x59\\xa2\\x10\\x92\\x00\\x61\\x84\\x10\\x12\\x40\\xc5\\x85\\x88\\x0a\\x56\\\n\\x14\\x15\\x11\\x9c\\x48\\x55\\xc4\\x82\\xd5\\x0a\\x48\\x9d\\x88\\xe2\\xa0\\x28\\\n\\xb8\\x67\\x41\\x8a\\x88\\x5a\\x8b\\x55\\x5c\\x38\\xee\\x1f\\xdc\\xa7\\xb5\\x7d\\\n\\x7a\\xef\\xed\\xed\\xfb\\xd7\\xfb\\xbc\\xe7\\x9c\\xe7\\xfc\\xce\\x79\\xcf\\x0f\\\n\\x80\\x11\\x12\\x26\\x91\\xe6\\xa2\\x6a\\x00\\x39\\x52\\x85\\x3c\\x3a\\xd8\\x1f\\\n\\x8f\\x4f\\x48\\xc4\\xc9\\xbd\\x80\\x02\\x15\\x48\\xe0\\x04\\x20\\x10\\xe6\\xcb\\\n\\xc2\\x67\\x05\\xc5\\x00\\x00\\xf0\\x03\\x79\\x78\\x7e\\x74\\xb0\\x3f\\xfc\\x01\\\n\\xaf\\x6f\\x00\\x02\\x00\\x70\\xd5\\x2e\\x24\\x12\\xc7\\xe1\\xff\\x83\\xba\\x50\\\n\\x26\\x57\\x00\\x20\\x91\\x00\\xe0\\x22\\x12\\xe7\\x0b\\x01\\x90\\x52\\x00\\xc8\\\n\\x2e\\x54\\xc8\\x14\\x00\\xc8\\x18\\x00\\xb0\\x53\\xb3\\x64\\x0a\\x00\\x94\\x00\\\n\\x00\\x6c\\x79\\x7c\\x42\\x22\\x00\\xaa\\x0d\\x00\\xec\\xf4\\x49\\x3e\\x05\\x00\\\n\\xd8\\xa9\\x93\\xdc\\x17\\x00\\xd8\\xa2\\x1c\\xa9\\x08\\x00\\x8d\\x01\\x00\\x99\\\n\\x28\\x47\\x24\\x02\\x40\\xbb\\x00\\x60\\x55\\x81\\x52\\x2c\\x02\\xc0\\xc2\\x00\\\n\\xa0\\xac\\x40\\x22\\x2e\\x04\\xc0\\xae\\x01\\x80\\x59\\xb6\\x32\\x47\\x02\\x80\\\n\\xbd\\x05\\x00\\x76\\x8e\\x58\\x90\\x0f\\x40\\x60\\x00\\x80\\x99\\x42\\x2c\\xcc\\\n\\x00\\x20\\x38\\x02\\x00\\x43\\x1e\\x13\\xcd\\x03\\x20\\x4c\\x03\\xa0\\x30\\xd2\\\n\\xbf\\xe0\\xa9\\x5f\\x70\\x85\\xb8\\x48\\x01\\x00\\xc0\\xcb\\x95\\xcd\\x97\\x4b\\\n\\xd2\\x33\\x14\\xb8\\x95\\xd0\\x1a\\x77\\xf2\\xf0\\xe0\\xe2\\x21\\xe2\\xc2\\x6c\\\n\\xb1\\x42\\x61\\x17\\x29\\x10\\x66\\x09\\xe4\\x22\\x9c\\x97\\x9b\\x23\\x13\\x48\\\n\\xe7\\x03\\x4c\\xce\\x0c\\x00\\x00\\x1a\\xf9\\xd1\\xc1\\xfe\\x38\\x3f\\x90\\xe7\\\n\\xe6\\xe4\\xe1\\xe6\\x66\\xe7\\x6c\\xef\\xf4\\xc5\\x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\\x00\\\n\\x00\\xbc\\xe8\\x18\\x5c\\xa8\\x94\\x17\\x4c\\xc6\\x08\\x00\\x00\\x44\\xa0\\x81\\\n\\x2a\\xb0\\x41\\x07\\x0c\\xc1\\x14\\xac\\xc0\\x0e\\x9c\\xc1\\x1d\\xbc\\xc0\\x17\\\n\\x02\\x61\\x06\\x44\\x40\\x0c\\x24\\xc0\\x3c\\x10\\x42\\x06\\xe4\\x80\\x1c\\x0a\\\n\\xa1\\x18\\x96\\x41\\x19\\x54\\xc0\\x3a\\xd8\\x04\\xb5\\xb0\\x03\\x1a\\xa0\\x11\\\n\\x9a\\xe1\\x10\\xb4\\xc1\\x31\\x38\\x0d\\xe7\\xe0\\x12\\x5c\\x81\\xeb\\x70\\x17\\\n\\x06\\x60\\x18\\x9e\\xc2\\x18\\xbc\\x86\\x09\\x04\\x41\\xc8\\x08\\x13\\x61\\x21\\\n\\x3a\\x88\\x11\\x62\\x8e\\xd8\\x22\\xce\\x08\\x17\\x99\\x8e\\x04\\x22\\x61\\x48\\\n\\x34\\x92\\x80\\xa4\\x20\\xe9\\x88\\x14\\x51\\x22\\xc5\\xc8\\x72\\xa4\\x02\\xa9\\\n\\x42\\x6a\\x91\\x5d\\x48\\x23\\xf2\\x2d\\x72\\x14\\x39\\x8d\\x5c\\x40\\xfa\\x90\\\n\\xdb\\xc8\\x20\\x32\\x8a\\xfc\\x8a\\xbc\\x47\\x31\\x94\\x81\\xb2\\x51\\x03\\xd4\\\n\\x02\\x75\\x40\\xb9\\xa8\\x1f\\x1a\\x8a\\xc6\\xa0\\x73\\xd1\\x74\\x34\\x0f\\x5d\\\n\\x80\\x96\\xa2\\x6b\\xd1\\x1a\\xb4\\x1e\\x3d\\x80\\xb6\\xa2\\xa7\\xd1\\x4b\\xe8\\\n\\x75\\x74\\x00\\x7d\\x8a\\x8e\\x63\\x80\\xd1\\x31\\x0e\\x66\\x8c\\xd9\\x61\\x5c\\\n\\x8c\\x87\\x45\\x60\\x89\\x58\\x1a\\x26\\xc7\\x16\\x63\\xe5\\x58\\x35\\x56\\x8f\\\n\\x35\\x63\\x1d\\x58\\x37\\x76\\x15\\x1b\\xc0\\x9e\\x61\\xef\\x08\\x24\\x02\\x8b\\\n\\x80\\x13\\xec\\x08\\x5e\\x84\\x10\\xc2\\x6c\\x82\\x90\\x90\\x47\\x58\\x4c\\x58\\\n\\x43\\xa8\\x25\\xec\\x23\\xb4\\x12\\xba\\x08\\x57\\x09\\x83\\x84\\x31\\xc2\\x27\\\n\\x22\\x93\\xa8\\x4f\\xb4\\x25\\x7a\\x12\\xf9\\xc4\\x78\\x62\\x3a\\xb1\\x90\\x58\\\n\\x46\\xac\\x26\\xee\\x21\\x1e\\x21\\x9e\\x25\\x5e\\x27\\x0e\\x13\\x5f\\x93\\x48\\\n\\x24\\x0e\\xc9\\x92\\xe4\\x4e\\x0a\\x21\\x25\\x90\\x32\\x49\\x0b\\x49\\x6b\\x48\\\n\\xdb\\x48\\x2d\\xa4\\x53\\xa4\\x3e\\xd2\\x10\\x69\\x9c\\x4c\\x26\\xeb\\x90\\x6d\\\n\\xc9\\xde\\xe4\\x08\\xb2\\x80\\xac\\x20\\x97\\x91\\xb7\\x90\\x0f\\x90\\x4f\\x92\\\n\\xfb\\xc9\\xc3\\xe4\\xb7\\x14\\x3a\\xc5\\x88\\xe2\\x4c\\x09\\xa2\\x24\\x52\\xa4\\\n\\x94\\x12\\x4a\\x35\\x65\\x3f\\xe5\\x04\\xa5\\x9f\\x32\\x42\\x99\\xa0\\xaa\\x51\\\n\\xcd\\xa9\\x9e\\xd4\\x08\\xaa\\x88\\x3a\\x9f\\x5a\\x49\\x6d\\xa0\\x76\\x50\\x2f\\\n\\x53\\x87\\xa9\\x13\\x34\\x75\\x9a\\x25\\xcd\\x9b\\x16\\x43\\xcb\\xa4\\x2d\\xa3\\\n\\xd5\\xd0\\x9a\\x69\\x67\\x69\\xf7\\x68\\x2f\\xe9\\x74\\xba\\x09\\xdd\\x83\\x1e\\\n\\x45\\x97\\xd0\\x97\\xd2\\x6b\\xe8\\x07\\xe9\\xe7\\xe9\\x83\\xf4\\x77\\x0c\\x0d\\\n\\x86\\x0d\\x83\\xc7\\x48\\x62\\x28\\x19\\x6b\\x19\\x7b\\x19\\xa7\\x18\\xb7\\x19\\\n\\x2f\\x99\\x4c\\xa6\\x05\\xd3\\x97\\x99\\xc8\\x54\\x30\\xd7\\x32\\x1b\\x99\\x67\\\n\\x98\\x0f\\x98\\x6f\\x55\\x58\\x2a\\xf6\\x2a\\x7c\\x15\\x91\\xca\\x12\\x95\\x3a\\\n\\x95\\x56\\x95\\x7e\\x95\\xe7\\xaa\\x54\\x55\\x73\\x55\\x3f\\xd5\\x79\\xaa\\x0b\\\n\\x54\\xab\\x55\\x0f\\xab\\x5e\\x56\\x7d\\xa6\\x46\\x55\\xb3\\x50\\xe3\\xa9\\x09\\\n\\xd4\\x16\\xab\\xd5\\xa9\\x1d\\x55\\xbb\\xa9\\x36\\xae\\xce\\x52\\x77\\x52\\x8f\\\n\\x50\\xcf\\x51\\x5f\\xa3\\xbe\\x5f\\xfd\\x82\\xfa\\x63\\x0d\\xb2\\x86\\x85\\x46\\\n\\xa0\\x86\\x48\\xa3\\x54\\x63\\xb7\\xc6\\x19\\x8d\\x21\\x16\\xc6\\x32\\x65\\xf1\\\n\\x58\\x42\\xd6\\x72\\x56\\x03\\xeb\\x2c\\x6b\\x98\\x4d\\x62\\x5b\\xb2\\xf9\\xec\\\n\\x4c\\x76\\x05\\xfb\\x1b\\x76\\x2f\\x7b\\x4c\\x53\\x43\\x73\\xaa\\x66\\xac\\x66\\\n\\x91\\x66\\x9d\\xe6\\x71\\xcd\\x01\\x0e\\xc6\\xb1\\xe0\\xf0\\x39\\xd9\\x9c\\x4a\\\n\\xce\\x21\\xce\\x0d\\xce\\x7b\\x2d\\x03\\x2d\\x3f\\x2d\\xb1\\xd6\\x6a\\xad\\x66\\\n\\xad\\x7e\\xad\\x37\\xda\\x7a\\xda\\xbe\\xda\\x62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c0\\x60\\xcf\\xc3\\\n\\x59\\x0f\\xef\\x0e\\x09\\x87\\x9e\\xfe\\x94\\xff\\xd3\\x87\\xe1\\xd2\\x47\\xcc\\\n\\x47\\xd5\\x23\\x46\\x23\\x8d\\x8f\\x9d\\x1f\\x1f\\x1b\\x0d\\x1a\\xbd\\xf2\\x64\\\n\\xce\\x93\\xe1\\xa7\\xb2\\xa7\\x13\\xcf\\xca\\x7e\\x56\\xff\\x79\\xeb\\x73\\xab\\\n\\xe7\\xdf\\xfd\\xe2\\xfb\\x4b\\xcf\\x58\\xfc\\xd8\\xf0\\x0b\\xf9\\x8b\\xcf\\xbf\\\n\\xae\\x79\\xa9\\xf3\\x72\\xef\\xab\\xa9\\xaf\\x3a\\xc7\\x23\\xc7\\x1f\\xbc\\xce\\\n\\x79\\x3d\\xf1\\xa6\\xfc\\xad\\xce\\xdb\\x7d\\xef\\xb8\\xef\\xba\\xdf\\xc7\\xbd\\\n\\x1f\\x99\\x28\\xfc\\x40\\xfe\\x50\\xf3\\xd1\\xfa\\x63\\xc7\\xa7\\xd0\\x4f\\xf7\\\n\\x3e\\xe7\\x7c\\xfe\\xfc\\x2f\\xf7\\x84\\xf3\\xfb\\x25\\xd2\\x9f\\x33\\x00\\x00\\\n\\x00\\x20\\x63\\x48\\x52\\x4d\\x00\\x00\\x7a\\x25\\x00\\x00\\x80\\x83\\x00\\x00\\\n\\xf9\\xff\\x00\\x00\\x80\\xe9\\x00\\x00\\x75\\x30\\x00\\x00\\xea\\x60\\x00\\x00\\\n\\x3a\\x98\\x00\\x00\\x17\\x6f\\x92\\x5f\\xc5\\x46\\x00\\x00\\x00\\xaa\\x49\\x44\\\n\\x41\\x54\\x78\\xda\\xec\\xd7\\xb1\\x0d\\xc2\\x30\\x10\\x85\\xe1\\xff\\xcd\\x03\\\n\\x43\\x30\\x00\\x25\\x9b\\x30\\x00\\xd9\\x0c\\xa7\\xa7\\xcd\\x3c\\x97\\x02\\x04\\\n\\x91\\x91\\x13\\x90\\xec\\xb3\\x22\\xdd\\x6b\\x5d\\xdc\\x67\\xdd\\x93\\xe2\\x88\\\n\\x95\\x98\\xd9\\x19\\xb8\\x02\\x27\\xea\\x27\\x01\\xa3\\x36\\x00\\x03\\x70\\xa3\\\n\\x5d\\xa6\\x2d\\xc0\\xbd\\xd1\\xed\\xdf\\xf9\\x07\\xa0\\x8a\\x73\\x6d\\x9f\\x00\\\n\\xa9\\x8e\\xc1\\xcc\\x3e\\x80\\x57\\xd1\\x2e\\xc0\\xa1\\xd1\\x9a\\x9f\\x6d\\x97\\\n\\x86\\x12\\xa0\\x79\\xd1\\x80\\x49\\xd2\\xb1\\x04\\x30\\x1c\\xb2\\xdc\\xdf\\x1a\\\n\\x40\\x95\\xe7\\xda\\xfe\\x00\\xb5\\x9a\\xfe\\x35\\x28\\x00\\x01\\x08\\x40\\x00\\\n\\x02\\xd0\\x1b\\x50\\xfc\\x4a\\x76\\x06\\x24\\x4f\\x40\\xca\\x8e\\x47\\xe0\\xd1\\\n\\xa5\\x03\\x5d\\x56\\x10\\x80\\x5f\\x01\\x2e\\x8f\\xd2\\x1c\\xe0\\xfe\\x2c\\xcf\\\n\\x01\\xee\\x3f\\x26\\xcb\\xcc\\x03\\x00\\xf9\\x7e\\x1b\\x2f\\x79\\xb0\\x0e\\xfa\\\n\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x01\\x6d\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\x10\\x00\\x00\\x00\\x10\\x08\\x06\\x00\\x00\\x00\\x1f\\xf3\\xff\\x61\\\n\\x00\\x00\\x01\\x34\\x49\\x44\\x41\\x54\\x38\\x4f\\xad\\x93\\x2d\\x4f\\xc4\\x40\\\n\\x10\\x86\\xdf\\xd9\\x54\\xd5\\x9d\\x38\\x87\\x00\\x83\\x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xae\\x64\\x4a\\xa9\\x8d\\x2c\\xcb\\xc6\\x15\\x20\\x49\\x92\\x3d\\xe7\\xdc\\\n\\xf5\\x22\\x00\\x22\\xda\\xcf\\xf3\\xfc\\xa6\\x02\\x30\\xf3\\x09\\x80\\x5d\\x00\\\n\\x6b\\x7d\\x20\\xce\\xb9\\x31\\x11\\xdd\\x8a\\xc8\\x69\\x63\\x8c\\x5a\\xeb\\x61\\\n\\x10\\x04\\x9b\\xce\\xb9\\x01\\x11\\x0d\\xfc\\x0e\\xe0\\x03\\xc0\\xd4\\x2f\\x22\\\n\\x9a\\x16\\x45\\xf1\\x50\\xff\\xda\\x5f\\x67\\x25\\x6e\\x11\\xb0\\xfe\\x09\\xbe\\\n\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x42\\x00\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\xa3\\x00\\x00\\x00\\xa3\\x08\\x06\\x00\\x00\\x00\\xe6\\x6c\\xae\\x80\\\n\\x00\\x00\\x00\\x09\\x70\\x48\\x59\\x73\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\\n\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x00\\x20\\x63\\x48\\x52\\x4d\\x00\\x00\\x7a\\\n\\x25\\x00\\x00\\x80\\x83\\x00\\x00\\xf9\\xff\\x00\\x00\\x80\\xe9\\x00\\x00\\x75\\\n\\x30\\x00\\x00\\xea\\x60\\x00\\x00\\x3a\\x98\\x00\\x00\\x17\\x6f\\x92\\x5f\\xc5\\\n\\x46\\x00\\x00\\x41\\x86\\x49\\x44\\x41\\x54\\x78\\xda\\xec\\xbd\\x79\\x90\\x24\\\n\\xd7\\x7d\\xdf\\xf9\\xf9\\xbd\\x97\\x47\\x9d\\x7d\\xce\\x3d\\x03\\x60\\x06\\x37\\\n\\x08\\x60\\x30\\x20\\xc0\\x4b\\x24\\xc8\\xa1\\x44\\x88\\x87\\xb4\\x22\\x68\\x05\\\n\\x25\\x59\\x32\\x45\\xca\\x6b\\x87\\xe4\\xdd\\x55\\x90\\xb4\\xbd\\xbb\\xf6\\x86\\\n\\x4c\\x43\\xb6\\xc3\\x61\\x5b\\x11\\x2b\\x48\\xf6\\x4a\\x61\\xcb\\x16\\x41\\xcb\\\n\\xb6\\xbc\\xde\\x95\\x08\\x4a\\xa2\\x65\\xad\\x25\\x11\\xe0\\x21\\x92\\x20\\x09\\\n\\x0e\\x07\\x10\\x71\\x63\\x0e\\xcc\\xdd\\x3d\\x7d\\xd6\\x99\\x99\\xef\\xfd\\xf6\\\n\\x8f\\xcc\\xea\\xae\\xee\\xe9\\xe9\\xe9\\x1e\\x74\\x03\\x33\\x40\\x3d\\x20\\x63\\\n\\xba\\xaa\\xb2\\xaa\\xb2\\xf2\\x7d\\xdf\\xef\\xf8\\xfe\\x8e\\x27\\xaa\\xca\\x60\\\n\\x0c\\xc6\\x95\\x30\\xcc\\xe0\\x16\\x0c\\xc6\\x00\\x8c\\x83\\x31\\x18\\x03\\x30\\\n\\x0e\\xc6\\x00\\x8c\\x83\\x31\\x18\\x03\\x30\\x0e\\xc6\\x00\\x8c\\x83\\x31\\x18\\\n\\x03\\x30\\x0e\\xc6\\x00\\x8c\\x83\\x31\\x18\\x03\\x30\\x0e\\xc6\\x00\\x8c\\x83\\\n\\x31\\x18\\x03\\x30\\x0e\\xc6\\x00\\x8c\\x83\\x31\\x18\\x03\\x30\\x0e\\xc6\\x00\\\n\\x8c\\x83\\x31\\x18\\x03\\x30\\x0e\\xc6\\x00\\x8c\\x83\\x31\\x18\\x03\\x30\\x0e\\\n\\xc6\\x60\\x0c\\xc0\\x38\\x18\\x03\\x30\\x0e\\xc6\\x60\\x0c\\xc0\\x38\\x18\\x03\\\n\\x30\\x0e\\xc6\\x60\\xac\\x6d\\x04\\xeb\\x39\\xb9\\xdd\\xdc\\xf8\\x0b\\x28\\x03\\\n\\x0a\\xb4\\xc5\\x23\\xc5\\x73\\x22\\x86\\x76\\xf7\\x2c\\xb8\\x09\\x46\\xab\\xd7\\\n\\xd3\\xf4\\x09\\x7f\\x79\\xee\\x2b\\xa4\\xda\\x65\\xb8\\xbe\\x0f\\x63\\xba\\x34\\\n\\x3b\\xe7\\x69\\x34\\x26\\x48\\xdd\\x1c\\x19\\x90\\x4a\\x84\\xb0\\xb6\\x4a\\xc7\\\n\\xd7\\x4b\\x3d\\xa4\\xa2\\xfc\\xd0\\x35\\x7f\\x03\\xe7\\x7c\\xf8\\xec\\xd9\\x3f\\\n\\x4c\\x47\\xeb\\xbb\\x18\\x2e\\x6f\\x63\\x4b\\xb8\\x33\\x72\\x3e\\x51\\x44\\x52\\\n\\x55\\xc1\\xaa\\x80\\x04\\x78\\xea\\x38\\x3b\\x47\\x26\\x2d\\x50\\x41\\xc5\\x53\\\n\\xed\\x6e\\xc1\\x6a\\x78\\xc1\\x67\\xbb\\x50\\x49\\x33\\x05\\x04\\x91\\x04\\x1b\\\n\\x34\\xe8\\xca\\x10\\xba\\xc2\\xb9\\x97\\x1a\\xb5\\xca\\x26\\x80\\x71\\x73\\xef\\\n\\xac\\x82\\x51\\x50\\x04\\xc4\\x8a\\x98\\x0c\\x11\\x9b\\xf9\\x2e\\x99\\x4f\\x9c\\\n\\x60\\x10\\xc4\\x88\\x58\\x80\\x31\\x55\\x1d\\x56\\xb4\\x02\\x6a\\xb5\\x98\\x98\\\n\\x35\\xc2\\x4c\\x37\\x08\\x8f\\xba\\x81\\xb8\\xf6\\x97\\x3e\\x45\\x56\\x7c\\xf6\\\n\\xeb\\xcf\\xff\\x26\\xa1\\x54\\x7c\\xad\\xba\\xa5\\x63\\x30\\xcd\\xa6\\x6b\\x36\\\n\\x9f\\x38\\xfb\\x3b\\xad\\xac\\xdd\\xa5\\x5a\\xda\\x0d\\xbe\\xcd\\x0f\\xee\\xfb\\\n\\x6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\x28\\x06\\x15\\x8b\\x3a\\x03\\\n\\xe2\\x00\\x07\\x2a\\xcb\\x26\\xea\\xb5\\x53\\x3c\\xf2\\x1a\\x79\\x49\\x4a\\x80\\\n\\x14\\x73\\x28\\x52\\x7c\\xad\\x15\\xc4\\x78\\xbc\\x76\\xe9\\xa6\\x2d\\x9a\\x69\\\n\\x03\\x83\\x61\\x57\\x70\\x73\\x16\\x9b\\x91\\x6f\\xef\\xdf\\x73\\xff\\xe7\\x22\\\n\\xb3\\xfb\\x8f\\x4b\\x59\\xf9\\xd8\\x9e\\xa1\\x7d\\x61\\x1c\\x54\\x1d\\xe0\\x45\\\n\\x0c\\xa0\\x34\\x3a\\xe7\\xa9\\x57\\xc7\\x49\\xae\\x64\\x30\\x76\\x5b\\xeb\\x97\\\n\\x0e\\xde\\x24\\x05\\x78\\x16\\x47\\x96\\x7a\\x1c\\x19\\x01\\x01\\x0d\\x37\\xcf\\\n\\xef\\x3d\\xf3\\x8f\\x6a\\xbb\\xaa\\x43\\x1f\\x71\\x3e\\xfa\\xf4\\x93\\xe7\\xbe\\\n\\x78\\xb7\\xb3\\x35\\xaa\\xa5\\x94\\xd0\\x46\\x18\\xad\\xa3\\x3e\\x40\\x71\\x7d\\\n\\x33\\x2c\\xaf\\x23\\x9f\\x78\\x23\\x04\\xb0\\x2e\\x59\\x0e\\xfd\\x7f\\x19\\x42\\\n\\x90\\x0a\\x8e\\x59\\xda\\xc9\\x51\\xbc\\x64\\x54\\xcd\\x35\\xdd\\x9b\\xeb\\xef\\\n\\xff\\xfa\\x0b\\xe7\\x5e\\xfe\\xf5\\x0f\\xee\\xff\\x85\\xcf\\x0f\\x97\\x6a\\xb4\\\n\\xbb\\xb3\\xa4\\xae\\x83\\x77\\xca\\xd4\\xfc\\x51\\xde\\x75\\xed\\x8f\\xd3\\xcd\\\n\\xfc\\x95\\xeb\\x4d\\xaf\\xb7\\x47\\x94\\x28\\xa4\\x66\\x0e\\x6f\\x1b\\x0b\\x94\\\n\\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x1b\\x8c\\x0f\\x16\\x62\\xcd\\xa0\\x24\\\n\\x41\\x86\\xcd\\x2a\\x60\\x60\\xba\\x75\\x8e\\x89\\xb9\\x33\\x04\\x61\\x05\\xa7\\\n\\x0e\\xd4\\xe5\\x04\\x91\\x38\\x90\\x04\\xc1\\x61\\x54\\x90\\x35\\x4e\\xbb\\x14\\\n\\xcc\\x84\\xb5\\x31\\xdd\\xa8\\xc5\\xd9\\xc6\\x73\\xb7\\x54\\x5c\\xf9\\x86\\x9b\\\n\\xc6\\xef\\x64\\xeb\\xf0\\x4e\\x32\\x97\\xca\\x6b\\x06\\x46\\xb9\\xc4\\x7f\\x46\\\n\\xc4\\x65\\x2e\\x6a\\x74\\x33\\xb5\\x93\\xb3\\xc7\\xca\\x89\\x4b\\x09\\x6d\\x58\\\n\\x64\\xb5\\xeb\\x86\\x7c\\x87\\x2c\\x38\\x4a\\x5c\\xa5\\x43\\x16\\x01\\xd9\\x73\\\n\\xff\\xb5\\xc8\\xcc\\xb6\\x19\\x1a\\x18\\xd4\\x06\\x78\\xb5\\x04\\x52\\x21\\x2e\\\n\\x45\\x3c\\x7f\\xea\\x9b\\x1c\\x3d\\xf7\\x24\\xc4\\x10\\x5a\\x83\\x05\\xac\\xfa\\\n\\xfc\\x10\\x4b\\xc9\\x96\\x68\\xf9\\x39\\xbe\\xf5\\xec\\x7f\\x67\\xa6\\x33\\xc5\\\n\\x50\\xad\\x8e\\x27\\xc3\\xdb\\x08\\xcf\\x18\\xe8\\x30\\x42\\x39\\xcf\\x94\\x37\\\n\\x1e\\x21\\x5b\\x83\\x39\\x29\\x79\\x7d\\x0d\\x9e\\x30\\xab\\x52\\xb2\\x65\\xe6\\\n\\xf5\\xd8\\xe8\\x74\\xe7\\xe4\\x7e\\xe7\\x9d\\x15\\x35\\x86\\x9c\\x3c\\xda\\xb0\\\n\\x99\\x58\\x17\\xb5\\x63\\x7c\\x74\\x49\\xfe\\xc5\\xbb\\x94\\xc9\\xb9\\x67\\x6f\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xf6\\x03\\x17\\x5d\\x67\\x13\\x38\\x5a\\xf3\\x2d\\xd2\\\n\\x4e\\x56\\xa8\\xb8\\x95\\x85\\xae\\xd3\\x8c\\x56\\xab\\x45\\xd0\\xee\\xd2\\x09\\\n\\x5a\\x88\\x66\\x38\\xeb\\x40\\xf3\\x3a\\x0f\\x11\\x29\\xf2\\x26\\xc1\\x18\\x43\\\n\\x1c\\x95\\xb1\\x12\\xbe\\x0a\\x16\\x66\\x61\\xef\\x9a\\x0c\\x21\\x22\\xf3\\x29\\\n\\xad\\x6e\\x03\\x93\\x26\\x54\\xa8\\xe0\\xb1\\x38\\x3f\\x49\\x47\\x66\\x31\\xd1\\\n\\x56\\x62\\x3b\\xc2\\x8e\\xad\\xbb\\x38\\x3e\\xf1\\x02\\xff\\xf6\\xb1\\x5f\\xe2\\\n\\x9d\\x37\\x7c\\x98\\xfd\\xd7\\x1f\\xa4\\x1e\\xd5\\x30\\x78\\x4e\\xcd\\x1e\\xe5\\\n\\xeb\\x4f\\xfd\\x19\\x87\\x9e\\xfb\\x73\\x2a\\x5b\\x03\\xc6\\x86\\xc6\\xf0\\x22\\\n\\x74\\xd3\\x79\\xb2\\x66\\x93\\x92\\x56\\x09\\x8c\\x90\\xf8\\x36\\x19\\x60\\xca\\\n\\x43\\x44\\x41\\x35\\x17\\x0e\\x5e\\x11\\xd3\\x9b\\x1c\\xb3\\x2a\\x05\\x24\\x1a\\\n\\x92\\x48\\x83\\x8e\\x99\\xde\\x5e\\x32\\xd1\\x78\\x27\\x4b\\x8e\\x69\\x80\\x33\\\n\\x1b\\x18\\xef\\x0f\\xd6\\x7d\\x1f\\x57\\x5f\\x44\\x76\\xac\\xb6\\x3b\\xeb\\x26\\\n\\x1d\\x69\\xa5\\xb3\\x12\\x14\\x2a\\x48\\xe5\\xa2\\xfe\\x1a\\x81\\x66\\x74\\x55\\\n\\x49\\x5d\\xc2\\x0e\\xb9\\x91\\x3b\\xb7\\xbc\\x95\\xae\\xb4\\x00\\x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\x0c\\x0d\\x68\\xf8\\x79\\xd2\\\n\\xa8\\x43\\xad\\x53\\x27\\x36\\x25\\xde\\x75\\xcb\\x47\\x49\\x52\\xcb\\x97\\x5e\\\n\\xfa\\x97\\x24\\xf5\\x0e\\x91\\xf1\\x05\\xcb\\x21\\xab\\x06\\x05\\x8c\\x08\\x06\\\n\\x83\\xd3\\x64\\x74\\xa2\\xf9\\xf2\\xdb\\x1a\\x9d\\xce\\x23\\xf5\\xca\\x48\\x7b\\\n\\xfb\\xf8\\x6e\\xaa\\x15\\xb3\\x22\\x07\\xba\\xb9\\x6a\\x7a\\xb5\\x9b\\x6c\\x60\\\n\\xa2\\x75\\x8a\\xef\\x4f\\x7e\\x73\\xc7\\x54\\xf7\\xcc\\xad\\x12\\x64\\x18\\xd5\\\n\\xc5\\x5a\\xde\\x95\\xfd\\x1d\\x1c\\x11\\x5e\\x52\\xbc\\x34\\xc1\\xcf\\x82\\xcf\\\n\\xf0\\x3e\\xc4\\x39\\x59\\x06\\x88\\x45\\xcf\\x13\\xe9\\x82\\xa4\\x88\\x2d\\xa8\\\n\\x22\\x1f\\xf5\\x65\\x40\\x08\\x22\\x1e\\x27\\x29\\xad\\x24\\xed\\x63\\xdb\\x2c\\\n\\x64\\xe1\\x42\\x8c\\x5b\\x25\\x23\\x50\\x25\\xd6\\x0a\\xad\\xb4\\x43\\x83\\x36\\\n\\x4e\\x53\\x44\\x15\\x31\\x97\\xce\\x98\\xbe\\xec\\x28\\x92\\x57\\x52\\xe9\\xd0\\\n\\xe9\\x08\\xf7\\xde\\xf4\\x13\\x8c\\x54\\xc6\\x49\\xe7\\x3b\\x78\\xab\\x18\\x13\\\n\\xd0\\x8b\\x59\\x76\\x3a\\x2d\\x2a\\xb6\\xc6\\x5b\\xf7\\x7d\\x88\\x97\\xce\\x7d\\\n\\x8d\\x97\\xda\\x8f\\x52\\x8a\\x2b\\xc4\\xa2\\x18\\x67\\xb1\\x12\\x20\\x22\\x18\\\n\\xb1\\xa4\\x36\\x23\\x25\\xc3\\x74\\x86\\xb9\\x63\\xe7\\x41\\xae\\xd9\\x76\\x33\\\n\\xda\\x84\\xd4\\xa7\\x18\\x1c\\xa1\\x0b\\x70\\x36\\x23\\xed\\x74\\x09\\x6d\\xcc\\\n\\x0f\\xdc\\xfc\\x21\\x5e\\x3c\\xfd\\x38\\x2f\\x77\\x1e\\x43\\x86\\xda\\xc4\\x2e\\\n\\x40\\x5c\\x80\\x37\\xab\\xb9\\x99\\x0a\\xc4\\x74\\xb5\\x1d\\x25\\xfe\\xc4\\x81\\\n\\xb2\\x65\\x7c\\xeb\\xd0\\xd8\\x89\\x91\\x4a\\x9d\\x76\\x3a\\xbf\\xba\\x0d\\xb7\\\n\\x46\\x36\\x6f\\x23\\x49\\x6f\\x71\\xea\\x48\\x5c\\x3a\\xe2\\xb2\\xe6\\x1e\\x49\\\n\\x1c\\x86\\x12\\x7a\\x09\\x0e\\xc1\\xaa\\x12\\x78\\x03\\xde\\xe1\\xc8\\x8a\\x15\\\n\\x92\\x12\\xd0\\x59\\x76\\x74\\x89\\xe8\\x10\\xd1\\x46\\x24\\x2d\\x6c\\x9c\\x95\\\n\\x88\\xef\\xc2\\x4b\\xd6\\x32\\x2a\\x15\\x94\\x18\\x15\\xc1\\x92\\x11\\x69\\x42\\\n\\xa0\\x09\\x21\\x5d\\xac\\x64\\x38\\xa3\\x60\\x40\\x35\\x24\\x49\\x4a\\xb8\\x54\\\n\\x28\\x2c\\x81\\x3e\\xc2\\x78\\x23\\xd1\\xa8\\x88\\x38\\xb2\\xcc\\x53\\x96\\xeb\\\n\\xb8\\x66\\xcb\\x8d\\xe0\\x1d\\xc6\\xb4\\x41\\xaa\\x2c\\xa4\\xc1\\xa8\\x41\\x6d\\\n\\x86\\xf7\\x5d\\xea\\xa5\\x0a\\x5b\\xcb\\xe3\\x04\\x5d\\x20\\x03\\xe7\\x3d\\x48\\\n\\x86\\x0d\\x05\\x63\\x05\\x23\\x01\\xde\\x5a\\x12\\x35\\x94\\xd8\\xce\\x75\\x5b\\\n\\xef\\x04\\xa0\\x69\\x1b\\xa4\\xa5\\x06\\x81\\x0f\\x89\\xdb\\x23\\x48\\x16\\xd3\\\n\\x2d\\xb5\\x68\\xfb\\x36\\xa5\\xa8\\xc4\\x8d\\xe3\\xf7\\xe2\\xba\\x21\\x89\\xb6\\\n\\x73\\x5a\\x4e\\xed\\x2a\\xe1\\xc3\\x22\\x49\\x45\\x4a\\x24\\x34\\x70\\x4c\\x05\\\n\\xb7\\x6c\\x7b\\xb3\\xdd\\x52\\xdd\\x4b\\x92\\x75\\xc3\\x8d\\xf2\\x60\\xd6\\x05\\\n\\x46\\x23\\x17\\x3f\\x50\\x18\\xab\\x6c\\x63\\xcf\\xd8\\xad\\x81\\xc1\\x05\\xf8\\\n\\x04\\x4c\\xd4\\x67\\xb4\\x5f\\x8c\\xfe\\x55\\xac\\x02\\xce\\x82\\x86\\xa8\\x18\\\n\\x32\\x93\\x1f\\x6e\\xd9\\x91\\x1a\\x4b\\x6a\\x0c\\x60\\x11\\x8d\\x73\\xe2\\x18\\\n\\x5d\\x31\\xc4\\x68\\xf0\\x18\\x4d\\xb1\\x78\\xac\\x06\\x40\\x80\\x33\\x82\\xb3\\\n\\x06\\x67\\x05\\x67\\xf2\\xd2\\x85\\x5c\\x00\\x26\\xd8\\x24\\xc3\\x67\\x16\\x25\\\n\\x28\\x6e\\xcb\\xc6\\xbb\\x2f\\xb2\\xc0\\xa4\\x7a\\xca\\xd6\\x60\\x4d\\x00\\x0a\\\n\\x1d\\x6b\\xc8\\x58\\xac\\xff\\xe9\\x59\\x36\\x92\\x77\\x65\\xc3\\x66\\x96\\xc4\\\n\\xc7\\x24\\x45\\x6c\\x5f\\x0d\\x79\\xc7\\x36\\xe3\\x10\\xe3\\xc1\\xd5\\x10\\x4d\\\n\\x09\\x71\\x54\\xed\\x78\\x7e\\xc7\\x4d\\xbb\\xb8\\xc9\\x11\\x4e\\x3c\\x99\\x49\\\n\\x51\\xf1\\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x6e\\xfc\\xed\\xd4\\xa3\\x1d\\xb8\\xcc\\x31\\\n\\x39\\xf7\\x04\\xa7\\x67\\x8f\\x13\\x8d\\xcd\\x51\\xaf\\x54\\xa9\\xbb\\x0a\\x53\\\n\\x33\\xdf\\xe4\\x77\\xbf\\xf6\\x12\\xdf\\x7e\\xe6\\x3e\\x6e\\xda\\x79\\x2f\\xf5\\\n\\xda\\x28\\x53\\x8d\\xb3\\x7c\\xff\\xf8\\x37\\x79\\xfe\\xd4\\x57\\xd0\\x52\\x93\\\n\\xe1\\xe1\\x2d\\xd8\\x20\\x86\\x20\\x25\\x08\\x12\\x50\\xbb\\xba\\x80\\x93\\xdc\\\n\\x5e\\x0f\\x7d\\x40\\xd2\\x68\\x33\\x19\\xcc\\x86\\x41\\x54\\x0e\\x47\\xca\\x01\\\n\\xea\\xf5\\xd5\\x07\\x63\\x68\\x47\\x57\\x4d\\x74\\x50\\x95\\xa8\\xe5\\x9b\\xa5\\\n\\xd4\\xa6\\x94\\x31\\x6b\\xeb\\xe2\\x20\\x92\\xaf\\x2c\\xf1\\x48\\xe0\\xa8\\x58\\\n\\x8b\\x25\\x06\\xcd\\x1d\\x90\\xfc\\x2e\\xd8\\xdc\\x61\\x51\\x03\\x41\\xc0\\x58\\\n\\xbb\\x46\\x1c\\xdb\\x55\\xc9\\x69\\x09\\x84\\x6a\\xad\\x8e\\x8c\\x45\\x8c\\x46\\\n\\x43\\x20\\x19\\x89\\x31\\x0b\\x99\\x90\\x56\\xc1\\xf8\\x22\\x2b\\x25\\x30\\x84\\\n\\x81\\xa0\\x81\\x27\\xcf\\xc5\\xdc\\x1c\\xc2\\x3b\\xf7\\xb9\\x72\\x15\\x9b\\xdf\\\n\\x1b\\x43\\xad\\x5e\\x21\\xda\\x03\\x93\\xb3\\x4f\\xf2\\xd2\\x91\\x6f\\x81\\xb7\\\n\\x84\\x51\\x46\\x75\\x4b\\xc8\\x50\\xb4\\x85\\xb0\\x1a\\x92\\x86\\x1d\\x9a\\xd3\\\n\\x1d\\x6e\\xa9\\xde\\xc7\\xc1\\xfd\\x3f\\xce\\xce\\x2d\\x77\\x60\\x4c\\x0c\\x0e\\\n\\xda\\x9d\\x79\\xbe\\x71\\xf4\\x0f\\xf8\\xda\\x91\\x7f\\xcf\\xfc\\xd0\\x14\\xb5\\\n\\x5a\\x8d\\x71\\xa9\\xd1\\x68\\xce\\x70\\x78\\xe6\\x11\\xbe\\x3b\\xf9\\x87\\x84\\\n\\x6a\\x70\\x59\\x82\\x33\\x19\\x76\\x2c\\xa0\\x5a\\xad\\x52\\x89\\x22\\xa2\\xc0\\\n\\x62\\x6c\\x5a\\x30\\xaa\\x97\\x34\\xec\\xc1\\x78\\x8c\\x8d\\xc8\\x12\\xe1\\xec\\\n\\xe4\\xb1\\xd1\\x66\\x67\\x6a\\xcb\\x70\\x6d\\xe4\\xa4\\x23\\x7d\\xf5\\xc1\\xb8\\\n\\xfa\\xc2\\xb1\\x74\\x92\\xc6\\xae\\x56\\x67\\x7a\\x87\\x15\\x03\\x46\\x8a\\xd8\\\n\\xf2\\x25\\xa3\\x63\\xb9\\x47\\x68\\x7b\\xa1\\x32\\xa1\\xac\\x31\\xaa\\x5a\\x64\\\n\\xd6\\x98\\x45\\xaa\\xc5\\x1b\\x24\\x14\\x4a\\x25\\x83\\xb1\\x45\\xa2\\xae\\x9a\\\n\\xa2\\x57\\x9f\\x5f\\xf0\\x44\\x01\\x32\\x42\\x08\\x4a\\x04\\x91\\x12\\xc4\\x01\\\n\\x91\\x18\\x4a\\xc6\\x2c\\x96\\xc9\\x4a\\xa1\\x31\\x7d\\x0e\\x10\\x15\\x83\\xe0\\\n\\x31\\x66\\xf3\\xfa\\x1a\\x48\\x2f\\x5a\\x24\\x20\\xde\\xe3\\x34\\x84\\xd0\\x10\\\n\\xd4\\x53\\x46\\xe2\\x51\\x86\\x5c\\x90\\xe7\\x66\\x0a\\x18\\x09\\x88\\x8c\\x23\\\n\\x2b\\x37\\x98\\x9f\\xf6\\xdc\\x39\\xfa\\x01\\xfe\\x87\\x03\\xff\\x13\\xa3\\xd5\\\n\\xad\\x64\\x1d\\x81\\xb4\\x89\\xd8\\x16\\x23\\xa5\\xad\\xbc\\xef\\xce\\x8f\\xb1\\\n\\x6d\\x64\\x2b\\xbf\\xff\\xad\\x5f\\x27\\x19\\x49\\x28\\xd9\\xad\\x94\\x2a\\x29\\\n\\x1a\\xb7\\x48\\x5c\\x07\\xe3\\x32\\x22\\x17\\x22\\x41\\x1d\\x13\\xd6\\x89\\xc2\\\n\\x90\\x30\\xec\\xe6\\xad\\x06\\x8b\\xac\\x21\\xbd\\x24\\x9d\\x95\\x77\\x07\\x57\\\n\\x53\\x26\\xf5\\x21\\x73\\xdd\\x53\\x37\\x4c\\xb7\\x8f\\xbc\\x85\\x70\\xcb\\xf7\\\n\\x32\\xb7\\x3a\\x18\\xaf\\x65\\xd7\\xc6\\x83\\xb1\\x95\\x9e\\x5b\\x51\\xe9\\x68\\\n\\xe1\\x69\\x75\\x92\\xc6\\xcd\\x99\\x9b\\xbf\\x36\\x92\\x00\\x31\\x96\\xcc\\x7b\\\n\\xcc\\x1a\\x24\\x78\\x0e\\x48\\x03\\x41\\x54\\x3c\\x96\\x85\\x64\\x85\\xbe\\xd8\\\n\\x45\\x4e\\x1a\\xe7\\x3e\\xc8\\x05\\x0d\\x48\\x97\\xc5\\x69\\x08\\x1d\\x84\\x36\\\n\\xc3\\x58\\x87\\x8d\\x42\\x8c\\x28\\xc6\\x2c\\x92\\x36\\x7d\\xc9\\x64\\x7d\\x25\\\n\\x97\\x66\\x41\\x2a\\xaa\\xea\\xa6\\xaa\\x6a\\x31\\x8a\\x21\\xc0\\x4b\\x88\\xb1\\\n\\x11\\x15\\x71\\xd8\\xd4\\xe1\\xc5\\x00\\x11\\x56\\x23\\x4c\\xd4\\xe0\\x5c\\x6b\\\n\\x8a\\xf1\\xf8\\x76\\x0e\\xde\\xfc\\x93\\x8c\\x56\\xb7\\x31\\x9f\\x34\\x11\\x02\\\n\\xac\\x09\\x10\\x89\\xe9\\xe8\\x24\\x51\\x7b\\x94\\x3b\\x76\\xdf\\xcf\\xd9\\x89\\\n\\x13\\x3c\\x7a\\xf4\\x37\\xb1\\x3b\\x1d\\x41\\x58\\x63\\x34\\x1d\\xc6\\x67\\x5b\\\n\\x48\\xe9\\xe2\\x25\\xc5\\x8a\\x12\\x5a\\x45\\x4c\\x17\\x6f\\x52\\xc4\\x08\\x22\\\n\\x41\\x01\\xc4\\x4b\\x09\\x1b\\x41\\xc4\\xd1\\x49\\x94\\xb6\\xf3\\x74\\xfd\\xe4\\\n\\xe8\\xd9\\xa9\\x67\\xdf\\x31\\xdf\\x3a\\xf5\\xbb\\xce\\xaf\\xee\\x4c\\xec\\xdf\\\n\\xf7\\xb6\\x8d\\x07\\xe3\\x1d\\x7b\\x6e\\x5b\\x1a\\x3d\\x31\\x96\\xf3\\xf3\\x93\\\n\\x3c\\x71\\xec\\x71\\x4a\\x61\\x85\\x66\\x77\\xe6\\x8e\\x79\\x37\\x39\\xec\\xe3\\\n\\x9c\\xb9\\xcd\\xdb\\xfb\\xae\\xa3\\x2c\\x55\\x17\\x01\\xbe\\x04\\x59\\x52\\x3c\\\n\\xa7\\x79\\xd3\\x27\\x15\\xed\\x37\\x11\\x59\\x39\\x58\\xa2\\x18\\x8a\\x76\\xcb\\\n\\x02\\x5e\\x24\\xf7\\xba\\xfb\\xbe\\xcb\\x40\\x6e\\x46\\x48\\xf1\\xb7\\x6e\\x36\\\n\\x08\\x17\\x83\\xfc\\x5a\\x84\\x2d\\x6d\\xcf\\x53\\xb5\\x82\\x33\\x02\\x84\\x08\\\n\\xe0\\x70\\x24\\x92\\xa2\\x99\\xe1\\xfa\\x1d\\x77\\x33\\x5e\\xbf\\x06\\xd7\\xcd\\\n\\x13\\x6a\\xc1\\xa1\\x84\\xe0\\x4a\\x18\\x02\\x3a\\xd6\\x51\\x57\\xe1\\x96\\xed\\\n\\xef\\xe4\\xeb\\x27\\xff\\x23\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n\\x54\\xf3\\x05\\x93\\x65\\x29\\xe9\\x0a\\xc7\\x26\\x81\\x31\\x5d\\x72\\xa8\\x76\\\n\\xb5\\x12\\x96\\xb3\\x91\\xf2\\x16\\xce\\x35\\x8e\\xdd\\xde\\xe8\\x9c\\xbf\\xc7\\\n\\x62\\x73\\xfa\\x42\\x37\\xa3\\xe3\\x97\\xcf\\x41\\x97\\x56\\x08\\xa8\\x60\\x8d\\\n\\x25\\x34\\x21\\x95\\xb0\\x46\\x29\\xb6\\x94\\x4a\\x21\\xe5\\x52\\xde\\x8d\\x3f\\\n\\x2c\\x55\\x8b\\x6c\\x6e\\x29\\xd2\\xc2\\xb8\\xba\\x8a\\xf8\\x55\\x09\\x5d\\x4c\\\n\\xa9\\x5a\\xe6\\xf9\\x73\\x8f\\xf2\\xec\\xcb\\x5f\\x47\\x42\\x88\\x83\\x32\\x64\\\n\\x41\\x91\\x48\\xd3\\x24\\x54\\x4f\\xc5\\x84\\xb4\\x1d\\x7c\\xfd\\xc5\\x3f\\x63\\\n\\xb6\\x73\\x86\\xa1\\xea\\x30\\xea\\xfd\\x22\\x2d\\x76\\xd9\\x23\\x7f\\x6f\\x60\\\n\\xf3\\xd4\\xb7\\xc6\\x6c\\x87\\x24\\x71\\x44\\x51\\x40\\x28\\xd0\\x68\\xcf\\xee\\\n\\x99\\x9c\\x3d\\xf5\\xa6\\x89\\xd9\\x53\\x9c\\x9b\\x39\\x41\\x37\\xe9\\xe2\\xbc\\\n\\x27\\xf3\\xd9\\x92\\x63\\x53\\xd4\\xb4\\x6a\\xf9\\x82\\x67\\x32\\x6f\\xa8\\x56\\\n\\xab\\x0c\\x6f\\xd9\\x35\\x36\\x7d\\xe6\\xd4\\x56\\x63\\x72\\x9e\\xce\\x6f\\x70\\\n\\x2f\\x11\\x29\\xca\\x17\\x54\\x95\\x6a\\x50\\xa2\\x91\\x1e\\xe7\\xb9\\x53\\x8f\\\n\\x13\\x51\\x43\\xf1\\x88\\x04\\xb9\\x2d\\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16\\x95\\x23\\xbd\\x78\\x3d\\x6a\\x8b\\x30\\\n\\x96\\x86\\x38\\xf2\\x74\\x7e\\xed\\x23\\x0f\\x4d\\x10\\xa3\\xc5\\x06\\xdf\\x39\\\n\\xc7\\x78\\x75\\xed\\xae\\x25\\x6a\\x10\\x89\\xf2\\x7c\\x5b\\xeb\\x70\\xaa\\x90\\\n\\x19\\xaa\\xa5\\x21\\xca\\xbb\\x2a\\x64\\xd9\\x18\\x6a\\x04\\xd1\\x14\\x30\\x04\\\n\\x26\\x23\\xb0\\x16\\x35\\x0a\\xc6\\xac\\xb3\\xc3\\x8e\\x16\\x59\\xf3\\x16\\x4c\\\n\\x27\\x6f\\xdb\\x6c\\x02\\x62\\x89\\x38\\x79\\x62\\x96\\xe9\\xd3\\x79\\x2f\\x46\\\n\\x13\\xe5\\x94\\xb9\\x01\\x62\\x6b\\x09\\xf0\\xcc\\xb5\\xcf\\xbe\\xed\\x7c\\xeb\\\n\\xd4\\x81\\xb2\\x19\\xfe\\x53\\x62\\xc1\\x3b\\xb7\\x42\\xbe\\x40\\xb4\\xf1\\xde\\\n\\x74\\x6f\\xf7\\xd2\\xde\\x61\\x24\\x64\\xa6\\x3d\\xc5\\x53\\x27\\x1e\\xdb\\x9d\\\n\\x66\\xf3\\xb7\\x63\\x92\\x0d\\x6f\\x93\\x76\\xc1\\x3d\\xd3\\xbc\\xdf\\xb9\\x29\\\n\\x0e\\x6b\\x0c\\x41\\x20\\x18\\x23\\x04\\x46\\x08\\xac\\x10\\x58\\x83\\x88\\xc1\\\n\\x98\\xbc\\x71\\x51\\x4e\\xf9\\x5c\\x45\\x3a\\x7a\\xa1\\x1f\\x4f\\x41\\x45\\x49\\\n\\xd1\\x74\\xc0\\x1a\\x82\\xe2\\x08\\x4d\\x48\\x2c\\x21\\xa1\\xad\\x10\\x07\\x25\\\n\\x02\\x9b\\xb3\\xbe\\xa6\\x77\\xff\\xe5\\x92\\x4c\\xec\\x32\\x8f\\xc9\\x17\\x3d\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13\\xd6\\x1d\\xd2\\xbd\\x92\\xbd\\xd8\\x62\\xcf\\x65\\x27\\x88\\x2d\\x13\\x07\\\n\\x11\\x69\\xa2\\xb8\\x34\\xbf\\xf9\\xbd\\x4d\\x32\\x17\\xca\\x1d\\x44\\x30\\xe2\\\n\\x40\\x16\\x5b\\x0e\\x8b\\x91\\x5c\\x52\\x16\\xf5\\x32\\xfd\\x35\\x9a\\x4b\\x3c\\\n\\x59\\xe9\\xdf\\x62\\xf8\\x22\\x5c\\x8b\\x2e\\x6e\\x25\\xb2\\x32\\x98\\x75\\x61\\\n\\x01\\x2c\\x2c\\x92\\xde\\xf3\\x0b\\x86\\x62\\x9e\\xf5\\x4e\\xff\\x1e\\x6a\\x3d\\\n\\xa2\\x5f\\x7d\\x7e\\x9e\\x81\\x52\\x10\\x60\\xb1\\xa4\\x59\\xc0\\xf4\\x44\\x83\\\n\\x73\\xa7\\x67\\x98\\x99\\xce\\x6b\\x88\\x82\\x28\\x26\\xb0\\x61\\xee\\x9d\\xe7\\\n\\xe5\\x92\\x79\\x41\\x92\\xe4\\x91\\x2c\\x4c\\x56\\xe4\\x43\\x7a\\x7a\\x41\\x1d\\\n\\x11\\xb0\\x46\\x10\\x23\\x84\\x41\\x89\\x8e\\x9b\\xa5\\xd9\\x78\\x6e\\xc8\\x67\\\n\\x07\\x6a\\x81\\xa9\\x37\\x2e\\x77\\x4d\\xae\\x0b\\x8c\\x13\\x9d\\x23\\xcb\\xc0\\\n\\x18\\xd9\\x89\\xf6\\x4b\\xb7\\x77\\x93\\x39\\xca\\xa6\\x8a\\x57\\x77\\xe5\\x6a\\\n\\x2f\\xe9\\x2d\\x6a\\x43\\xb9\\x5a\\x66\\xfa\\x5c\\x83\\xe7\\xbe\\x77\\x8a\\x24\\\n\\x49\\x08\\xe3\\xb0\\xb8\\xc1\\x06\\x31\\x06\\x6b\\x72\\x92\\xdc\\xd8\\x10\\x43\\\n\\x8c\\xf4\\x48\\x67\\x03\\x62\\x26\\xf3\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\\xa8\\xc6\\x08\\\n\\xb6\\x48\\xc5\\x36\\x66\\xb1\\x45\\x14\\x48\\xaf\\xbd\\xce\\x12\\xe0\\x48\\xd1\\\n\\xb7\\x52\\x6c\\x5e\\x68\\xd6\\x6b\\x4e\\x90\\x47\\xa7\\xc2\\x3c\\x8d\\xcf\\x39\\\n\\xba\\x49\\x87\\x56\\x47\\x71\\x59\\xfe\\xf9\\xa5\\xa8\\x8e\\x2d\\x24\\x61\\xaf\\\n\\x5a\\xb1\\xb7\\xd0\\x8c\\xf1\\x45\\x5d\\x0c\\x0b\\x20\\xcf\\xc9\\xa3\\x62\\x41\\\n\\x91\\x7f\\xc6\\xc2\\xfb\\x54\\x08\\x4c\\x80\\x8a\\x30\\xd1\\x9a\\xdc\\xdf\\xf6\\\n\\xdd\\x51\\x4b\\xe5\\x02\\x28\\x1a\\x36\\x21\\x6b\\x67\\x7a\\x66\\x7a\\x29\\x18\\\n\\x25\\x88\\x67\\x3b\\x8d\\x9d\\x99\\x82\\x33\\x9a\\x17\\xed\\x5f\\xa1\\xbe\\x74\\\n\\x64\\x84\\x72\\x14\\x30\\x33\\x39\\xcb\\x73\\xdf\\x39\\x4f\\xda\\xaa\\x52\\xa9\\\n\\xe6\\xfc\\x99\\xb5\\x79\\x2e\\x64\\x8f\\x95\\xe8\\x55\\x0c\\x62\\x15\\x42\\xbb\\\n\\xb4\\x41\\x40\\xd1\\x21\\x57\\xd6\\xe8\\xe4\\xea\\x2a\\x7b\\x28\\xe9\\x12\\xf5\\\n\\xda\\xef\\x14\\xf5\\x54\\x71\\x61\\xcb\\x66\\xba\\x00\\x7e\\x28\\x52\\xc3\\xb4\\\n\\x2f\\x72\\xd2\\x57\\xe7\\x83\\x64\\x60\\xd2\\x85\\x72\\x8b\\xd0\\x86\\x94\\xa3\\\n\\x18\\x53\\x09\\x50\\xcd\\x39\\xc2\\x5e\\x5b\\x7d\\x24\\xdf\\x56\\x48\\x24\\x6f\\\n\\xb6\\x60\\x4c\\x51\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2\\xf0\\x6d\\x55\\x1f\\x5c\\x0b\\x1e\\xbc\\xc1\\\n\\x9b\\x54\\xc5\\xa4\\x13\\xc6\\xc4\\x59\\x54\\x1e\\xf9\\x4e\\xb9\\xd2\\xfe\\xad\\\n\\x72\\xb9\\xf2\\x64\\x60\\xca\\x27\\xd2\\x34\\x7b\\xc5\\xc1\\xc5\\x01\\x18\\x07\\\n\\xa3\\x37\\x3a\\x41\\xa9\\xf4\\xa4\\xb4\\xb2\\x27\\x45\\x44\\x86\\x47\\x86\\x87\\\n\\xc4\\xd8\\x77\\x64\\x99\\x3b\\xa8\\xaa\\x11\\x30\\x24\\xc6\\x77\\xac\\x64\\x5f\\\n\\x10\\x23\\x5f\\x8e\\xe2\\x11\\xa7\\x12\\x26\\x68\\xba\\x61\\x86\\xbe\\xe8\\xc0\\\n\\x58\\x1b\\x8c\\x2b\\x64\\x98\\xc1\\x2d\\x18\\x8c\\x01\\x18\\x07\\x63\\x30\\x06\\\n\\x60\\x1c\\x8c\\x01\\x18\\x07\\x63\\x30\\x06\\xde\\xf4\\xea\\x63\\xff\\xfe\\xfd\\\n\\x57\\xea\\xa5\\xed\\x05\\x8e\\x5e\\xea\\xa4\\xc3\\x87\\x0f\\x0f\\x24\\xe3\\xeb\\\n\\x6c\\x7c\\x0a\\x78\\xe0\\x12\\xc0\\x78\\x04\\x38\\xf0\\x2a\\x5d\\xcf\\x27\\x80\\\n\\x23\\xc0\\xc3\\xc5\\xe3\\x11\\xe0\\x50\\xdf\\xe3\\x81\\x64\\xbc\\x4a\\x25\\xdf\\\n\\x27\\x8a\\xc9\\xfd\\xd4\\xe1\\xc3\\x87\\x0f\\x5d\\x04\\x88\\xbf\\x5a\\xfc\\xfd\\\n\\x5e\\xe0\\xd1\\x15\\xce\\x79\\x08\\xf8\\x70\\x01\\x8a\\x83\\xaf\\x92\\x54\\xec\\\n\\xff\\xf7\\x61\\xe0\\xae\\xe2\\xe8\\x81\\x75\\x60\\x33\\x5e\\x85\\xe3\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x1b\\x70\\x55\\x8d\\xd7\\\n\\x7d\\x0d\\x4c\\x01\\xc0\\x43\\x87\\x0f\\x1f\\x7e\\x74\\xff\\xfe\\xfd\\x3d\\xc7\\\n\\xe0\\x28\\xf0\\x89\\xc3\\x87\\x0f\\xf7\\x62\\xd4\\x7b\\xfb\\x6c\\xb1\\x47\\xfb\\\n\\x26\\xf7\\x81\\x42\\x7a\\x5d\\xb7\\xc2\\x47\\xaf\\x56\\xa0\\x35\\xc2\\x62\\xfd\\\n\\xf5\\x5a\\x9c\\x8e\\x9e\\x6a\\xee\\x79\\xda\\x47\\x57\\xf9\\xdc\\xe5\\x8e\\xcd\\\n\\x63\\x45\\xde\\xe6\\x00\\x8c\\xaf\\x03\\xb0\\xae\\x55\\xc2\\x1e\\xec\\x93\\x66\\\n\\x8f\\xb0\\xb1\\x19\\x33\\x23\\x7d\\x36\\xe6\\x5a\\xce\\xfd\\x44\\xb1\\x50\\x8e\\\n\\x92\\xd7\\xf7\\xcc\\x0c\\xc0\\x38\\x18\\x83\\x31\\xb0\\x19\\x07\\x63\\x00\\xc6\\\n\\xc1\\x18\\x8c\\x01\\x18\\x07\\x63\\x00\\xc6\\xc1\\x18\\x8c\\x01\\x18\\x07\\x63\\\n\\x00\\xc6\\xc1\\x18\\x8c\\xd7\\x70\\xfc\\xff\\x03\\x00\\x84\\xcf\\x3d\\x32\\x5f\\\n\\x74\\xd9\\x06\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x0b\\x47\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\x20\\x00\\x00\\x00\\x20\\x08\\x06\\x00\\x00\\x00\\x73\\x7a\\x7a\\xf4\\\n\\x00\\x00\\x00\\x09\\x70\\x48\\x59\\x73\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\\n\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x0a\\x4d\\x69\\x43\\x43\\x50\\x50\\x68\\x6f\\\n\\x74\\x6f\\x73\\x68\\x6f\\x70\\x20\\x49\\x43\\x43\\x20\\x70\\x72\\x6f\\x66\\x69\\\n\\x6c\\x65\\x00\\x00\\x78\\xda\\x9d\\x53\\x77\\x58\\x93\\xf7\\x16\\x3e\\xdf\\xf7\\\n\\x65\\x0f\\x56\\x42\\xd8\\xf0\\xb1\\x97\\x6c\\x81\\x00\\x22\\x23\\xac\\x08\\xc8\\\n\\x10\\x59\\xa2\\x10\\x92\\x00\\x61\\x84\\x10\\x12\\x40\\xc5\\x85\\x88\\x0a\\x56\\\n\\x14\\x15\\x11\\x9c\\x48\\x55\\xc4\\x82\\xd5\\x0a\\x48\\x9d\\x88\\xe2\\xa0\\x28\\\n\\xb8\\x67\\x41\\x8a\\x88\\x5a\\x8b\\x55\\x5c\\x38\\xee\\x1f\\xdc\\xa7\\xb5\\x7d\\\n\\x7a\\xef\\xed\\xed\\xfb\\xd7\\xfb\\xbc\\xe7\\x9c\\xe7\\xfc\\xce\\x79\\xcf\\x0f\\\n\\x80\\x11\\x12\\x26\\x91\\xe6\\xa2\\x6a\\x00\\x39\\x52\\x85\\x3c\\x3a\\xd8\\x1f\\\n\\x8f\\x4f\\x48\\xc4\\xc9\\xbd\\x80\\x02\\x15\\x48\\xe0\\x04\\x20\\x10\\xe6\\xcb\\\n\\xc2\\x67\\x05\\xc5\\x00\\x00\\xf0\\x03\\x79\\x78\\x7e\\x74\\xb0\\x3f\\xfc\\x01\\\n\\xaf\\x6f\\x00\\x02\\x00\\x70\\xd5\\x2e\\x24\\x12\\xc7\\xe1\\xff\\x83\\xba\\x50\\\n\\x26\\x57\\x00\\x20\\x91\\x00\\xe0\\x22\\x12\\xe7\\x0b\\x01\\x90\\x52\\x00\\xc8\\\n\\x2e\\x54\\xc8\\x14\\x00\\xc8\\x18\\x00\\xb0\\x53\\xb3\\x64\\x0a\\x00\\x94\\x00\\\n\\x00\\x6c\\x79\\x7c\\x42\\x22\\x00\\xaa\\x0d\\x00\\xec\\xf4\\x49\\x3e\\x05\\x00\\\n\\xd8\\xa9\\x93\\xdc\\x17\\x00\\xd8\\xa2\\x1c\\xa9\\x08\\x00\\x8d\\x01\\x00\\x99\\\n\\x28\\x47\\x24\\x02\\x40\\xbb\\x00\\x60\\x55\\x81\\x52\\x2c\\x02\\xc0\\xc2\\x00\\\n\\xa0\\xac\\x40\\x22\\x2e\\x04\\xc0\\xae\\x01\\x80\\x59\\xb6\\x32\\x47\\x02\\x80\\\n\\xbd\\x05\\x00\\x76\\x8e\\x58\\x90\\x0f\\x40\\x60\\x00\\x80\\x99\\x42\\x2c\\xcc\\\n\\x00\\x20\\x38\\x02\\x00\\x43\\x1e\\x13\\xcd\\x03\\x20\\x4c\\x03\\xa0\\x30\\xd2\\\n\\xbf\\xe0\\xa9\\x5f\\x70\\x85\\xb8\\x48\\x01\\x00\\xc0\\xcb\\x95\\xcd\\x97\\x4b\\\n\\xd2\\x33\\x14\\xb8\\x95\\xd0\\x1a\\x77\\xf2\\xf0\\xe0\\xe2\\x21\\xe2\\xc2\\x6c\\\n\\xb1\\x42\\x61\\x17\\x29\\x10\\x66\\x09\\xe4\\x22\\x9c\\x97\\x9b\\x23\\x13\\x48\\\n\\xe7\\x03\\x4c\\xce\\x0c\\x00\\x00\\x1a\\xf9\\xd1\\xc1\\xfe\\x38\\x3f\\x90\\xe7\\\n\\xe6\\xe4\\xe1\\xe6\\x66\\xe7\\x6c\\xef\\xf4\\xc5\\xa2\\xfe\\x6b\\xf0\\x6f\\x22\\\n\\x3e\\x21\\xf1\\xdf\\xfe\\xbc\\x8c\\x02\\x04\\x00\\x10\\x4e\\xcf\\xef\\xda\\x5f\\\n\\xe5\\xe5\\xd6\\x03\\x70\\xc7\\x01\\xb0\\x75\\xbf\\x6b\\xa9\\x5b\\x00\\xda\\x56\\\n\\x00\\x68\\xdf\\xf9\\x5d\\x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\x06\\xe4\\x80\\x1c\\x0a\\\n\\xa1\\x18\\x96\\x41\\x19\\x54\\xc0\\x3a\\xd8\\x04\\xb5\\xb0\\x03\\x1a\\xa0\\x11\\\n\\x9a\\xe1\\x10\\xb4\\xc1\\x31\\x38\\x0d\\xe7\\xe0\\x12\\x5c\\x81\\xeb\\x70\\x17\\\n\\x06\\x60\\x18\\x9e\\xc2\\x18\\xbc\\x86\\x09\\x04\\x41\\xc8\\x08\\x13\\x61\\x21\\\n\\x3a\\x88\\x11\\x62\\x8e\\xd8\\x22\\xce\\x08\\x17\\x99\\x8e\\x04\\x22\\x61\\x48\\\n\\x34\\x92\\x80\\xa4\\x20\\xe9\\x88\\x14\\x51\\x22\\xc5\\xc8\\x72\\xa4\\x02\\xa9\\\n\\x42\\x6a\\x91\\x5d\\x48\\x23\\xf2\\x2d\\x72\\x14\\x39\\x8d\\x5c\\x40\\xfa\\x90\\\n\\xdb\\xc8\\x20\\x32\\x8a\\xfc\\x8a\\xbc\\x47\\x31\\x94\\x81\\xb2\\x51\\x03\\xd4\\\n\\x02\\x75\\x40\\xb9\\xa8\\x1f\\x1a\\x8a\\xc6\\xa0\\x73\\xd1\\x74\\x34\\x0f\\x5d\\\n\\x80\\x96\\xa2\\x6b\\xd1\\x1a\\xb4\\x1e\\x3d\\x80\\xb6\\xa2\\xa7\\xd1\\x4b\\xe8\\\n\\x75\\x74\\x00\\x7d\\x8a\\x8e\\x63\\x80\\xd1\\x31\\x0e\\x66\\x8c\\xd9\\x61\\x5c\\\n\\x8c\\x87\\x45\\x60\\x89\\x58\\x1a\\x26\\xc7\\x16\\x63\\xe5\\x58\\x35\\x56\\x8f\\\n\\x35\\x63\\x1d\\x58\\x37\\x76\\x15\\x1b\\xc0\\x9e\\x61\\xef\\x08\\x24\\x02\\x8b\\\n\\x80\\x13\\xec\\x08\\x5e\\x84\\x10\\xc2\\x6c\\x82\\x90\\x90\\x47\\x58\\x4c\\x58\\\n\\x43\\xa8\\x25\\xec\\x23\\xb4\\x12\\xba\\x08\\x57\\x09\\x83\\x84\\x31\\xc2\\x27\\\n\\x22\\x93\\xa8\\x4f\\xb4\\x25\\x7a\\x12\\xf9\\xc4\\x78\\x62\\x3a\\xb1\\x90\\x58\\\n\\x46\\xac\\x26\\xee\\x21\\x1e\\x21\\x9e\\x25\\x5e\\x27\\x0e\\x13\\x5f\\x93\\x48\\\n\\x24\\x0e\\xc9\\x92\\xe4\\x4e\\x0a\\x21\\x25\\x90\\x32\\x49\\x0b\\x49\\x6b\\x48\\\n\\xdb\\x48\\x2d\\xa4\\x53\\xa4\\x3e\\xd2\\x10\\x69\\x9c\\x4c\\x26\\xeb\\x90\\x6d\\\n\\xc9\\xde\\xe4\\x08\\xb2\\x80\\xac\\x20\\x97\\x91\\xb7\\x90\\x0f\\x90\\x4f\\x92\\\n\\xfb\\xc9\\xc3\\xe4\\xb7\\x14\\x3a\\xc5\\x88\\xe2\\x4c\\x09\\xa2\\x24\\x52\\xa4\\\n\\x94\\x12\\x4a\\x35\\x65\\x3f\\xe5\\x04\\xa5\\x9f\\x32\\x42\\x99\\xa0\\xaa\\x51\\\n\\xcd\\xa9\\x9e\\xd4\\x08\\xaa\\x88\\x3a\\x9f\\x5a\\x49\\x6d\\xa0\\x76\\x50\\x2f\\\n\\x53\\x87\\xa9\\x13\\x34\\x75\\x9a\\x25\\xcd\\x9b\\x16\\x43\\xcb\\xa4\\x2d\\xa3\\\n\\xd5\\xd0\\x9a\\x69\\x67\\x69\\xf7\\x68\\x2f\\xe9\\x74\\xba\\x09\\xdd\\x83\\x1e\\\n\\x45\\x97\\xd0\\x97\\xd2\\x6b\\xe8\\x07\\xe9\\xe7\\xe9\\x83\\xf4\\x77\\x0c\\x0d\\\n\\x86\\x0d\\x83\\xc7\\x48\\x62\\x28\\x19\\x6b\\x19\\x7b\\x19\\xa7\\x18\\xb7\\x19\\\n\\x2f\\x99\\x4c\\xa6\\x05\\xd3\\x97\\x99\\xc8\\x54\\x30\\xd7\\x32\\x1b\\x99\\x67\\\n\\x98\\x0f\\x98\\x6f\\x55\\x58\\x2a\\xf6\\x2a\\x7c\\x15\\x91\\xca\\x12\\x95\\x3a\\\n\\x95\\x56\\x95\\x7e\\x95\\xe7\\xaa\\x54\\x55\\x73\\x55\\x3f\\xd5\\x79\\xaa\\x0b\\\n\\x54\\xab\\x55\\x0f\\xab\\x5e\\x56\\x7d\\xa6\\x46\\x55\\xb3\\x50\\xe3\\xa9\\x09\\\n\\xd4\\x16\\xab\\xd5\\xa9\\x1d\\x55\\xbb\\xa9\\x36\\xae\\xce\\x52\\x77\\x52\\x8f\\\n\\x50\\xcf\\x51\\x5f\\xa3\\xbe\\x5f\\xfd\\x82\\xfa\\x63\\x0d\\xb2\\x86\\x85\\x46\\\n\\xa0\\x86\\x48\\xa3\\x54\\x63\\xb7\\xc6\\x19\\x8d\\x21\\x16\\xc6\\x32\\x65\\xf1\\\n\\x58\\x42\\xd6\\x72\\x56\\x03\\xeb\\x2c\\x6b\\x98\\x4d\\x62\\x5b\\xb2\\xf9\\xec\\\n\\x4c\\x76\\x05\\xfb\\x1b\\x76\\x2f\\x7b\\x4c\\x53\\x43\\x73\\xaa\\x66\\xac\\x66\\\n\\x91\\x66\\x9d\\xe6\\x71\\xcd\\x01\\x0e\\xc6\\xb1\\xe0\\xf0\\x39\\xd9\\x9c\\x4a\\\n\\xce\\x21\\xce\\x0d\\xce\\x7b\\x2d\\x03\\x2d\\x3f\\x2d\\xb1\\xd6\\x6a\\xad\\x66\\\n\\xad\\x7e\\xad\\x37\\xda\\x7a\\xda\\xbe\\xda\\x62\\xed\\x72\\xed\\x16\\xed\\xeb\\\n\\xda\\xef\\x75\\x70\\x9d\\x40\\x9d\\x2c\\x9d\\xf5\\x3a\\x6d\\x3a\\xf7\\x75\\x09\\\n\\xba\\x36\\xba\\x51\\xba\\x85\\xba\\xdb\\x75\\xcf\\xea\\x3e\\xd3\\x63\\xeb\\x79\\\n\\xe9\\x09\\xf5\\xca\\xf5\\x0e\\x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\x86\\x4f\\x46\\x75\\xc6\\x33\\x09\\x4f\\x52\\x2b\\x79\\x91\\x19\\x92\\xb9\\x23\\\n\\xf3\\x4d\\x56\\x44\\xd6\\xde\\xac\\xcf\\xd9\\x71\\xd9\\x2d\\x39\\x94\\x9c\\x94\\\n\\x9c\\xa3\\x52\\x0d\\x69\\x96\\xb4\\x2b\\xd7\\x30\\xb7\\x28\\xb7\\x4f\\x66\\x2b\\\n\\x2b\\x93\\x0d\\xe4\\x79\\xe6\\x6d\\xca\\x1b\\x93\\x87\\xca\\xf7\\xe4\\x23\\xf9\\\n\\x73\\xf3\\xdb\\x15\\x6c\\x85\\x4c\\xd1\\xa3\\xb4\\x52\\xae\\x50\\x0e\\x16\\x4c\\\n\\x2f\\xa8\\x2b\\x78\\x5b\\x18\\x5b\\x78\\xb8\\x48\\xbd\\x48\\x5a\\xd4\\x33\\xdf\\\n\\x66\\xfe\\xea\\xf9\\x23\\x0b\\x82\\x16\\x7c\\xbd\\x90\\xb0\\x50\\xb8\\xb0\\xb3\\\n\\xd8\\xb8\\x78\\x59\\xf1\\xe0\\x22\\xbf\\x45\\xbb\\x16\\x23\\x8b\\x53\\x17\\x77\\\n\\x2e\\x31\\x5d\\x52\\xba\\x64\\x78\\x69\\xf0\\xd2\\x7d\\xcb\\x68\\xcb\\xb2\\x96\\\n\\xfd\\x50\\xe2\\x58\\x52\\x55\\xf2\\x6a\\x79\\xdc\\xf2\\x8e\\x52\\x83\\xd2\\xa5\\\n\\xa5\\x43\\x2b\\x82\\x57\\x34\\x95\\xa9\\x94\\xc9\\xcb\\x6e\\xae\\xf4\\x5a\\xb9\\\n\\x63\\x15\\x61\\x95\\x64\\x55\\xef\\x6a\\x97\\xd5\\x5b\\x56\\x7f\\x2a\\x17\\x95\\\n\\x5f\\xac\\x70\\xac\\xa8\\xae\\xf8\\xb0\\x46\\xb8\\xe6\\xe2\\x57\\x4e\\x5f\\xd5\\\n\\x7c\\xf5\\x79\\x6d\\xda\\xda\\xde\\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cf\\xca\\x7e\\x56\\xff\\x79\\xeb\\x73\\xab\\\n\\xe7\\xdf\\xfd\\xe2\\xfb\\x4b\\xcf\\x58\\xfc\\xd8\\xf0\\x0b\\xf9\\x8b\\xcf\\xbf\\\n\\xae\\x79\\xa9\\xf3\\x72\\xef\\xab\\xa9\\xaf\\x3a\\xc7\\x23\\xc7\\x1f\\xbc\\xce\\\n\\x79\\x3d\\xf1\\xa6\\xfc\\xad\\xce\\xdb\\x7d\\xef\\xb8\\xef\\xba\\xdf\\xc7\\xbd\\\n\\x1f\\x99\\x28\\xfc\\x40\\xfe\\x50\\xf3\\xd1\\xfa\\x63\\xc7\\xa7\\xd0\\x4f\\xf7\\\n\\x3e\\xe7\\x7c\\xfe\\xfc\\x2f\\xf7\\x84\\xf3\\xfb\\x25\\xd2\\x9f\\x33\\x00\\x00\\\n\\x00\\x20\\x63\\x48\\x52\\x4d\\x00\\x00\\x7a\\x25\\x00\\x00\\x80\\x83\\x00\\x00\\\n\\xf9\\xff\\x00\\x00\\x80\\xe9\\x00\\x00\\x75\\x30\\x00\\x00\\xea\\x60\\x00\\x00\\\n\\x3a\\x98\\x00\\x00\\x17\\x6f\\x92\\x5f\\xc5\\x46\\x00\\x00\\x00\\x74\\x49\\x44\\\n\\x41\\x54\\x78\\xda\\xec\\xd7\\xb1\\x0d\\x80\\x40\\x0c\\x43\\xd1\\xef\\x79\\x60\\\n\\x08\\x86\\x60\\x20\\x36\\x03\\x86\\x60\\x9e\\xd0\\xd0\\x80\\x40\\xa2\\xb8\\xbb\\\n\\xe8\\x24\\x7b\\x01\\xbf\\x28\\x4d\\xa2\\x88\\x20\\x33\\x32\\xe0\\x01\\x58\\x80\\\n\\x19\\x18\\x2a\\xf5\\x6d\\xc0\\x7e\\xf5\\xbc\\x02\\x56\\x60\\xaa\\x3c\\xf4\\x01\\\n\\x8c\\x5f\\x80\\x56\\xfb\\xd0\\x1f\\x80\\x0a\\x97\\x46\\x7f\\x00\\xa9\\x9c\\x21\\\n\\xee\\x45\\x06\\x18\\x60\\x80\\x01\\x06\\x18\\x60\\x80\\x01\\x7d\\x00\\x52\\x8e\\\n\\xd2\\xf4\\xb3\\x3c\\xfd\\x31\\xf1\\x6f\\xd8\\x3c\\x27\\x00\\x00\\x00\\xff\\xff\\\n\\x03\\x00\\xcb\\x6a\\xc9\\xc1\\xe8\\xfb\\xfc\\x7e\\x00\\x00\\x00\\x00\\x49\\x45\\\n\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x02\\x2a\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\x20\\x00\\x00\\x00\\x20\\x08\\x06\\x00\\x00\\x00\\x73\\x7a\\x7a\\xf4\\\n\\x00\\x00\\x01\\xf1\\x49\\x44\\x41\\x54\\x58\\x47\\xcd\\x97\\x3f\\xa8\\xcd\\x61\\\n\\x18\\xc7\\x3f\\x9f\\x85\\x92\\x85\\xc9\\xc0\\x44\\x12\\x32\\x5c\\x49\\x16\\x89\\\n\\x92\\x0c\\xae\\x3f\\x61\\xb0\\xdc\\x81\\xb2\\x28\\xb3\\xc9\\x64\\x56\\x26\\x49\\\n\\xb1\\x18\\x28\\x71\\x17\\x4a\\xc2\\xa2\\x84\\x5b\\xe4\\x50\\x32\\x49\\xb1\\x90\\\n\\x52\\x92\\xc1\\xa3\\x27\\xe7\\xdc\\x7e\\xb9\\xbf\\x73\\xee\\x79\\x8f\\xf7\\x74\\\n\\xbd\\xeb\\xfb\\x3c\\xdf\\xe7\\xd3\\xf3\\xbe\\xef\\xf7\\xf9\\xfd\\x64\\x81\\x97\\\n\\x0b\\x5c\\x9f\\xff\\x1f\\x20\\x22\\x76\\x74\\xbb\\xf4\\x52\\xfd\\x32\\x4c\\xc7\\\n\\x22\\x62\\x39\\xb0\\x29\\x63\\xd5\\x87\\x83\\x72\\xfa\\x76\\x20\\x22\\xd6\\x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xf7\\x65\\x2c\\x06\\x7e\\x54\\x02\\x38\\xa0\\xe6\\xfd\\\n\\x9a\\xb3\\x06\\x0d\\xa3\\xa5\\xc0\\xb7\\x4a\\x00\\x27\\xd5\\x8b\\xa5\\x00\\x39\\\n\\x52\\x3f\\x57\\x02\\x38\\xae\\x5e\\x2e\\x05\\xc8\\xe7\\xf8\\xb1\\x12\\x40\\x8e\\\n\\xe3\\xab\\xa5\\x00\\xab\\x80\\xf7\\x95\\x00\\x8e\\xa9\\xd7\\x4a\\x01\\x56\\x03\\\n\\x39\\xfb\\x6b\\xac\\xa3\\x6a\\xda\\x7d\\xd1\\x25\\x5c\\x07\\xbc\\xa9\\x51\\x1d\\\n\\x38\\xa4\\xa6\\xd5\\x17\\x01\\xe4\\x37\\xdd\\x8b\\x4a\\x00\\x93\\x6a\\x3a\\x6c\\\n\\x11\\x40\\x8e\\xcb\\x67\\x95\\x00\\xf6\\xaa\\x77\\x4a\\x01\\xb6\\x01\\x8f\\x2b\\\n\\x01\\xec\\x56\\xef\\x95\\x02\\x6c\\x07\\x1e\\x55\\x02\\xd8\\xa9\\x3e\\x28\\x02\\\n\\xc8\\xe0\\x88\\x88\\x1a\\x00\\x6a\\x5f\\xc7\\x9d\\xf7\\xcf\\xa8\\xf1\\x63\\x32\\\n\\x12\\xcb\\xc8\\x3f\\x26\\x23\\x55\\x1b\\x21\\x69\\xde\\x0e\\x8c\\xa0\\x59\\x94\\\n\\xb2\\xe0\\x00\\xbf\\x01\\x4f\\x8f\\x96\\x21\\x4c\\x4b\\x8e\\x96\\x00\\x00\\x00\\\n\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x00\\xee\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\x20\\x00\\x00\\x00\\x20\\x08\\x06\\x00\\x00\\x00\\x73\\x7a\\x7a\\xf4\\\n\\x00\\x00\\x00\\xb5\\x49\\x44\\x41\\x54\\x58\\x47\\xed\\x96\\xb1\\x09\\x02\\x41\\\n\\x14\\x05\\xe7\\x45\\x8a\\x3d\\x88\\xe9\\xe5\\x72\\x2d\\xd8\\x80\\x99\\x75\\x88\\\n\\xd1\\x71\\x2a\\x86\\xf6\\x61\\x66\\x03\\xd6\\x60\\x01\\x86\\x62\\x13\\x62\\xf4\\\n\\xc5\\xe0\\x16\\x5d\\x15\\x0c\\x76\\x59\\x83\\x7f\\x05\\xbc\\x19\\x06\\xfe\\xb1\\\n\\xa2\\xf0\\xa7\\xc2\\x7c\\x5c\\xc0\\x0b\\x78\\x01\\x2f\\xe0\\x05\\xbc\\x80\\x17\\\n\\xf0\\x02\\x5e\\xe0\\xad\\x80\\x99\\x4d\\x80\\x19\\xd0\\x4b\\xfc\\x5c\\xbb\\x01\\\n\\x3b\\x49\\x87\\xe7\\xdd\\x17\\x01\\x33\\x1b\\x03\\xc7\\xc4\\xe0\\x78\\xae\\x96\\\n\\x14\\x18\\xb1\\x40\\x03\\x6c\\x32\\x0b\\xb4\\x92\\x02\\x23\\x16\\x58\\x02\\xab\\\n\\xcc\\x02\\x6b\\x49\\x81\\xf1\\x77\\x02\\x73\\x60\\x9b\\xb9\\xc0\\x42\\x52\\x60\\\n\\xc4\\x05\\x46\\xc0\\x09\\xe8\\x67\\x92\\x78\\x5c\\x42\\x25\\xe9\\xdc\\xed\\x7f\\\n\\x3a\\xc3\\x21\\x30\\x05\\x06\\x89\\x25\\xae\\xc0\\x5e\\xd2\\xe5\\xeb\\x19\\x26\\\n\\x06\\xfe\\x34\\xe7\\xbf\\xe2\\xe2\\x05\\xee\\xbb\\x7c\\x2b\\x21\\xde\\xd2\\x12\\\n\\x76\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x62\\xb6\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\xd5\\x00\\x00\\x00\\x4d\\x08\\x06\\x00\\x00\\x00\\x31\\x75\\x21\\xad\\\n\\x00\\x00\\x00\\x09\\x70\\x48\\x59\\x73\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\\n\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x0a\\x4d\\x69\\x43\\x43\\x50\\x50\\x68\\x6f\\\n\\x74\\x6f\\x73\\x68\\x6f\\x70\\x20\\x49\\x43\\x43\\x20\\x70\\x72\\x6f\\x66\\x69\\\n\\x6c\\x65\\x00\\x00\\x78\\xda\\x9d\\x53\\x77\\x58\\x93\\xf7\\x16\\x3e\\xdf\\xf7\\\n\\x65\\x0f\\x56\\x42\\xd8\\xf0\\xb1\\x97\\x6c\\x81\\x00\\x22\\x23\\xac\\x08\\xc8\\\n\\x10\\x59\\xa2\\x10\\x92\\x00\\x61\\x84\\x10\\x12\\x40\\xc5\\x85\\x88\\x0a\\x56\\\n\\x14\\x15\\x11\\x9c\\x48\\x55\\xc4\\x82\\xd5\\x0a\\x48\\x9d\\x88\\xe2\\xa0\\x28\\\n\\xb8\\x67\\x41\\x8a\\x88\\x5a\\x8b\\x55\\x5c\\x38\\xee\\x1f\\xdc\\xa7\\xb5\\x7d\\\n\\x7a\\xef\\xed\\xed\\xfb\\xd7\\xfb\\xbc\\xe7\\x9c\\xe7\\xfc\\xce\\x79\\xcf\\x0f\\\n\\x80\\x11\\x12\\x26\\x91\\xe6\\xa2\\x6a\\x00\\x39\\x52\\x85\\x3c\\x3a\\xd8\\x1f\\\n\\x8f\\x4f\\x48\\xc4\\xc9\\xbd\\x80\\x02\\x15\\x48\\xe0\\x04\\x20\\x10\\xe6\\xcb\\\n\\xc2\\x67\\x05\\xc5\\x00\\x00\\xf0\\x03\\x79\\x78\\x7e\\x74\\xb0\\x3f\\xfc\\x01\\\n\\xaf\\x6f\\x00\\x02\\x00\\x70\\xd5\\x2e\\x24\\x12\\xc7\\xe1\\xff\\x83\\xba\\x50\\\n\\x26\\x57\\x00\\x20\\x91\\x00\\xe0\\x22\\x12\\xe7\\x0b\\x01\\x90\\x52\\x00\\xc8\\\n\\x2e\\x54\\xc8\\x14\\x00\\xc8\\x18\\x00\\xb0\\x53\\xb3\\x64\\x0a\\x00\\x94\\x00\\\n\\x00\\x6c\\x79\\x7c\\x42\\x22\\x00\\xaa\\x0d\\x00\\xec\\xf4\\x49\\x3e\\x05\\x00\\\n\\xd8\\xa9\\x93\\xdc\\x17\\x00\\xd8\\xa2\\x1c\\xa9\\x08\\x00\\x8d\\x01\\x00\\x99\\\n\\x28\\x47\\x24\\x02\\x40\\xbb\\x00\\x60\\x55\\x81\\x52\\x2c\\x02\\xc0\\xc2\\x00\\\n\\xa0\\xac\\x40\\x22\\x2e\\x04\\xc0\\xae\\x01\\x80\\x59\\xb6\\x32\\x47\\x02\\x80\\\n\\xbd\\x05\\x00\\x76\\x8e\\x58\\x90\\x0f\\x40\\x60\\x00\\x80\\x99\\x42\\x2c\\xcc\\\n\\x00\\x20\\x38\\x02\\x00\\x43\\x1e\\x13\\xcd\\x03\\x20\\x4c\\x03\\xa0\\x30\\xd2\\\n\\xbf\\xe0\\xa9\\x5f\\x70\\x85\\xb8\\x48\\x01\\x00\\xc0\\xcb\\x95\\xcd\\x97\\x4b\\\n\\xd2\\x33\\x14\\xb8\\x95\\xd0\\x1a\\x77\\xf2\\xf0\\xe0\\xe2\\x21\\xe2\\xc2\\x6c\\\n\\xb1\\x42\\x61\\x17\\x29\\x10\\x66\\x09\\xe4\\x22\\x9c\\x97\\x9b\\x23\\x13\\x48\\\n\\xe7\\x03\\x4c\\xce\\x0c\\x00\\x00\\x1a\\xf9\\xd1\\xc1\\xfe\\x38\\x3f\\x90\\xe7\\\n\\xe6\\xe4\\xe1\\xe6\\x66\\xe7\\x6c\\xef\\xf4\\xc5\\xa2\\xfe\\x6b\\xf0\\x6f\\x22\\\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5c\\xa8\\x94\\x17\\x4c\\xc6\\x08\\x00\\x00\\x44\\xa0\\x81\\\n\\x2a\\xb0\\x41\\x07\\x0c\\xc1\\x14\\xac\\xc0\\x0e\\x9c\\xc1\\x1d\\xbc\\xc0\\x17\\\n\\x02\\x61\\x06\\x44\\x40\\x0c\\x24\\xc0\\x3c\\x10\\x42\\x06\\xe4\\x80\\x1c\\x0a\\\n\\xa1\\x18\\x96\\x41\\x19\\x54\\xc0\\x3a\\xd8\\x04\\xb5\\xb0\\x03\\x1a\\xa0\\x11\\\n\\x9a\\xe1\\x10\\xb4\\xc1\\x31\\x38\\x0d\\xe7\\xe0\\x12\\x5c\\x81\\xeb\\x70\\x17\\\n\\x06\\x60\\x18\\x9e\\xc2\\x18\\xbc\\x86\\x09\\x04\\x41\\xc8\\x08\\x13\\x61\\x21\\\n\\x3a\\x88\\x11\\x62\\x8e\\xd8\\x22\\xce\\x08\\x17\\x99\\x8e\\x04\\x22\\x61\\x48\\\n\\x34\\x92\\x80\\xa4\\x20\\xe9\\x88\\x14\\x51\\x22\\xc5\\xc8\\x72\\xa4\\x02\\xa9\\\n\\x42\\x6a\\x91\\x5d\\x48\\x23\\xf2\\x2d\\x72\\x14\\x39\\x8d\\x5c\\x40\\xfa\\x90\\\n\\xdb\\xc8\\x20\\x32\\x8a\\xfc\\x8a\\xbc\\x47\\x31\\x94\\x81\\xb2\\x51\\x03\\xd4\\\n\\x02\\x75\\x40\\xb9\\xa8\\x1f\\x1a\\x8a\\xc6\\xa0\\x73\\xd1\\x74\\x34\\x0f\\x5d\\\n\\x80\\x96\\xa2\\x6b\\xd1\\x1a\\xb4\\x1e\\x3d\\x80\\xb6\\xa2\\xa7\\xd1\\x4b\\xe8\\\n\\x75\\x74\\x00\\x7d\\x8a\\x8e\\x63\\x80\\xd1\\x31\\x0e\\x66\\x8c\\xd9\\x61\\x5c\\\n\\x8c\\x87\\x45\\x60\\x89\\x58\\x1a\\x26\\xc7\\x16\\x63\\xe5\\x58\\x35\\x56\\x8f\\\n\\x35\\x63\\x1d\\x58\\x37\\x76\\x15\\x1b\\xc0\\x9e\\x61\\xef\\x08\\x24\\x02\\x8b\\\n\\x80\\x13\\xec\\x08\\x5e\\x84\\x10\\xc2\\x6c\\x82\\x90\\x90\\x47\\x58\\x4c\\x58\\\n\\x43\\xa8\\x25\\xec\\x23\\xb4\\x12\\xba\\x08\\x57\\x09\\x83\\x84\\x31\\xc2\\x27\\\n\\x22\\x93\\xa8\\x4f\\xb4\\x25\\x7a\\x12\\xf9\\xc4\\x78\\x62\\x3a\\xb1\\x90\\x58\\\n\\x46\\xac\\x26\\xee\\x21\\x1e\\x21\\x9e\\x25\\x5e\\x27\\x0e\\x13\\x5f\\x93\\x48\\\n\\x24\\x0e\\xc9\\x92\\xe4\\x4e\\x0a\\x21\\x25\\x90\\x32\\x49\\x0b\\x49\\x6b\\x48\\\n\\xdb\\x48\\x2d\\xa4\\x53\\xa4\\x3e\\xd2\\x10\\x69\\x9c\\x4c\\x26\\xeb\\x90\\x6d\\\n\\xc9\\xde\\xe4\\x08\\xb2\\x80\\xac\\x20\\x97\\x91\\xb7\\x90\\x0f\\x90\\x4f\\x92\\\n\\xfb\\xc9\\xc3\\xe4\\xb7\\x14\\x3a\\xc5\\x88\\xe2\\x4c\\x09\\xa2\\x24\\x52\\xa4\\\n\\x94\\x12\\x4a\\x35\\x65\\x3f\\xe5\\x04\\xa5\\x9f\\x32\\x42\\x99\\xa0\\xaa\\x51\\\n\\xcd\\xa9\\x9e\\xd4\\x08\\xaa\\x88\\x3a\\x9f\\x5a\\x49\\x6d\\xa0\\x76\\x50\\x2f\\\n\\x53\\x87\\xa9\\x13\\x34\\x75\\x9a\\x25\\xcd\\x9b\\x16\\x43\\xcb\\xa4\\x2d\\xa3\\\n\\xd5\\xd0\\x9a\\x69\\x67\\x69\\xf7\\x68\\x2f\\xe9\\x74\\xba\\x09\\xdd\\x83\\x1e\\\n\\x45\\x97\\xd0\\x97\\xd2\\x6b\\xe8\\x07\\xe9\\xe7\\xe9\\x83\\xf4\\x77\\x0c\\x0d\\\n\\x86\\x0d\\x83\\xc7\\x48\\x62\\x28\\x19\\x6b\\x19\\x7b\\x19\\xa7\\x18\\xb7\\x19\\\n\\x2f\\x99\\x4c\\xa6\\x05\\xd3\\x97\\x99\\xc8\\x54\\x30\\xd7\\x32\\x1b\\x99\\x67\\\n\\x98\\x0f\\x98\\x6f\\x55\\x58\\x2a\\xf6\\x2a\\x7c\\x15\\x91\\xca\\x12\\x95\\x3a\\\n\\x95\\x56\\x95\\x7e\\x95\\xe7\\xaa\\x54\\x55\\x73\\x55\\x3f\\xd5\\x79\\xaa\\x0b\\\n\\x54\\xab\\x55\\x0f\\xab\\x5e\\x56\\x7d\\xa6\\x46\\x55\\xb3\\x50\\xe3\\xa9\\x09\\\n\\xd4\\x16\\xab\\xd5\\xa9\\x1d\\x55\\xbb\\xa9\\x36\\xae\\xce\\x52\\x77\\x52\\x8f\\\n\\x50\\xcf\\x51\\x5f\\xa3\\xbe\\x5f\\xfd\\x82\\xfa\\x63\\x0d\\xb2\\x86\\x85\\x46\\\n\\xa0\\x86\\x48\\xa3\\x54\\x63\\xb7\\xc6\\x19\\x8d\\x21\\x16\\xc6\\x32\\x65\\xf1\\\n\\x58\\x42\\xd6\\x72\\x56\\x03\\xeb\\x2c\\x6b\\x98\\x4d\\x62\\x5b\\xb2\\xf9\\xec\\\n\\x4c\\x76\\x05\\xfb\\x1b\\x76\\x2f\\x7b\\x4c\\x53\\x43\\x73\\xaa\\x66\\xac\\x66\\\n\\x91\\x66\\x9d\\xe6\\x71\\xcd\\x01\\x0e\\xc6\\xb1\\xe0\\xf0\\x39\\xd9\\x9c\\x4a\\\n\\xce\\x21\\xce\\x0d\\xce\\x7b\\x2d\\x03\\x2d\\x3f\\x2d\\xb1\\xd6\\x6a\\xad\\x66\\\n\\xad\\x7e\\xad\\x37\\xda\\x7a\\xda\\xbe\\xda\\x62\\xed\\x72\\xed\\x16\\xed\\xeb\\\n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f\\xe1\\x79\\xf2\\x16\\xf1\\x4e\\x05\\x60\\x01\\xc1\\x01\\\n\\xe5\\x01\\xbd\\x81\\x1a\\x81\\xb3\\x03\\x6b\\x03\\x1f\\x04\\x99\\x04\\xa5\\x07\\\n\\x35\\x05\\x8d\\x05\\xbb\\x06\\x2f\\x0c\\x3e\\x15\\x42\\x0c\\x09\\x0d\\x59\\x1f\\\n\\x72\\x93\\x6f\\xc0\\x17\\xf2\\x1b\\xf9\\x63\\x33\\xdc\\x67\\x2c\\x9a\\xd1\\x15\\\n\\xca\\x08\\x9d\\x15\\x5a\\x1b\\xfa\\x30\\xcc\\x26\\x4c\\x1e\\xd6\\x11\\x8e\\x86\\\n\\xcf\\x08\\xdf\\x10\\x7e\\x6f\\xa6\\xf9\\x4c\\xe9\\xcc\\xb6\\x08\\x88\\xe0\\x47\\\n\\x6c\\x88\\xb8\\x1f\\x69\\x19\\x99\\x17\\xf9\\x7d\\x14\\x29\\x2a\\x32\\xaa\\x2e\\\n\\xea\\x51\\xb4\\x53\\x74\\x71\\x74\\xf7\\x2c\\xd6\\xac\\xe4\\x59\\xfb\\x67\\xbd\\\n\\x8e\\xf1\\x8f\\xa9\\x8c\\xb9\\x3b\\xdb\\x6a\\xb6\\x72\\x76\\x67\\xac\\x6a\\x6c\\\n\\x52\\x6c\\x63\\xec\\x9b\\xb8\\x80\\xb8\\xaa\\xb8\\x81\\x78\\x87\\xf8\\x45\\xf1\\\n\\x97\\x12\\x74\\x13\\x24\\x09\\xed\\x89\\xe4\\xc4\\xd8\\xc4\\x3d\\x89\\xe3\\x73\\\n\\x02\\xe7\\x6c\\x9a\\x33\\x9c\\xe4\\x9a\\x54\\x96\\x74\\x63\\xae\\xe5\\xdc\\xa2\\\n\\xb9\\x17\\xe6\\xe9\\xce\\xcb\\x9e\\x77\\x3c\\x59\\x35\\x59\\x90\\x7c\\x38\\x85\\\n\\x98\\x12\\x97\\xb2\\x3f\\xe5\\x83\\x20\\x42\\x50\\x2f\\x18\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d\\x65\\x74\\x61\\x20\\x78\\x6d\\x6c\\\n\\x6e\\x73\\x3a\\x78\\x3d\\x22\\x61\\x64\\x6f\\x62\\x65\\x3a\\x6e\\x73\\x3a\\x6d\\\n\\x65\\x74\\x61\\x2f\\x22\\x20\\x78\\x3a\\x78\\x6d\\x70\\x74\\x6b\\x3d\\x22\\x41\\\n\\x64\\x6f\\x62\\x65\\x20\\x58\\x4d\\x50\\x20\\x43\\x6f\\x72\\x65\\x20\\x35\\x2e\\\n\\x36\\x2d\\x63\\x31\\x33\\x38\\x20\\x37\\x39\\x2e\\x31\\x35\\x39\\x38\\x32\\x34\\\n\\x2c\\x20\\x32\\x30\\x31\\x36\\x2f\\x30\\x39\\x2f\\x31\\x34\\x2d\\x30\\x31\\x3a\\\n\\x30\\x39\\x3a\\x30\\x31\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x22\\x3e\\x0a\\\n\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\x52\\x44\\x46\\x20\\x78\\x6d\\x6c\\x6e\\\n\\x73\\x3a\\x72\\x64\\x66\\x3d\\x22\\x68\\x74\\x74\\x70\\x3a\\x2f\\x2f\\x77\\x77\\\n\\x77\\x2e\\x77\\x33\\x2e\\x6f\\x72\\x67\\x2f\\x31\\x39\\x39\\x39\\x2f\\x30\\x32\\\n\\x2f\\x32\\x32\\x2d\\x72\\x64\\x66\\x2d\\x73\\x79\\x6e\\x74\\x61\\x78\\x2d\\x6e\\\n\\x73\\x23\\x22\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\\n\\x44\\x65\\x73\\x63\\x72\\x69\\x70\\x74\\x69\\x6f\\x6e\\x20\\x72\\x64\\x66\\x3a\\\n\\x61\\x62\\x6f\\x75\\x74\\x3d\\x22\\x22\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x78\\x6d\\x6c\\x6e\\x73\\x3a\\x78\\x6d\\x70\\x3d\\x22\\\n\\x68\\x74\\x74\\x70\\x3a\\x2f\\x2f\\x6e\\x73\\x2e\\x61\\x64\\x6f\\x62\\x65\\x2e\\\n\\x63\\x6f\\x6d\\x2f\\x78\\x61\\x70\\x2f\\x31\\x2e\\x30\\x2f\\x22\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x78\\x6d\\x6c\\x6e\\x73\\x3a\\\n\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3d\\x22\\x68\\x74\\x74\\x70\\x3a\\\n\\x2f\\x2f\\x6e\\x73\\x2e\\x61\\x64\\x6f\\x62\\x65\\x2e\\x63\\x6f\\x6d\\x2f\\x70\\\n\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x2f\\x31\\x2e\\x30\\x2f\\x22\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x78\\x6d\\x6c\\x6e\\x73\\\n\\x3a\\x64\\x63\\x3d\\x22\\x68\\x74\\x74\\x70\\x3a\\x2f\\x2f\\x70\\x75\\x72\\x6c\\\n\\x2e\\x6f\\x72\\x67\\x2f\\x64\\x63\\x2f\\x65\\x6c\\x65\\x6d\\x65\\x6e\\x74\\x73\\\n\\x2f\\x31\\x2e\\x31\\x2f\\x22\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x78\\x6d\\x6c\\x6e\\x73\\x3a\\x78\\x6d\\x70\\x4d\\x4d\\x3d\\x22\\\n\\x68\\x74\\x74\\x70\\x3a\\x2f\\x2f\\x6e\\x73\\x2e\\x61\\x64\\x6f\\x62\\x65\\x2e\\\n\\x63\\x6f\\x6d\\x2f\\x78\\x61\\x70\\x2f\\x31\\x2e\\x30\\x2f\\x6d\\x6d\\x2f\\x22\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x78\\x6d\\x6c\\\n\\x6e\\x73\\x3a\\x73\\x74\\x45\\x76\\x74\\x3d\\x22\\x68\\x74\\x74\\x70\\x3a\\x2f\\\n\\x2f\\x6e\\x73\\x2e\\x61\\x64\\x6f\\x62\\x65\\x2e\\x63\\x6f\\x6d\\x2f\\x78\\x61\\\n\\x70\\x2f\\x31\\x2e\\x30\\x2f\\x73\\x54\\x79\\x70\\x65\\x2f\\x52\\x65\\x73\\x6f\\\n\\x75\\x72\\x63\\x65\\x45\\x76\\x65\\x6e\\x74\\x23\\x22\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x78\\x6d\\x6c\\x6e\\x73\\x3a\\x73\\x74\\\n\\x52\\x65\\x66\\x3d\\x22\\x68\\x74\\x74\\x70\\x3a\\x2f\\x2f\\x6e\\x73\\x2e\\x61\\\n\\x64\\x6f\\x62\\x65\\x2e\\x63\\x6f\\x6d\\x2f\\x78\\x61\\x70\\x2f\\x31\\x2e\\x30\\\n\\x2f\\x73\\x54\\x79\\x70\\x65\\x2f\\x52\\x65\\x73\\x6f\\x75\\x72\\x63\\x65\\x52\\\n\\x65\\x66\\x23\\x22\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x78\\x6d\\x6c\\x6e\\x73\\x3a\\x74\\x69\\x66\\x66\\x3d\\x22\\x68\\x74\\x74\\\n\\x70\\x3a\\x2f\\x2f\\x6e\\x73\\x2e\\x61\\x64\\x6f\\x62\\x65\\x2e\\x63\\x6f\\x6d\\\n\\x2f\\x74\\x69\\x66\\x66\\x2f\\x31\\x2e\\x30\\x2f\\x22\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x78\\x6d\\x6c\\x6e\\x73\\x3a\\x65\\x78\\\n\\x69\\x66\\x3d\\x22\\x68\\x74\\x74\\x70\\x3a\\x2f\\x2f\\x6e\\x73\\x2e\\x61\\x64\\\n\\x6f\\x62\\x65\\x2e\\x63\\x6f\\x6d\\x2f\\x65\\x78\\x69\\x66\\x2f\\x31\\x2e\\x30\\\n\\x2f\\x22\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x78\\x6d\\\n\\x70\\x3a\\x43\\x72\\x65\\x61\\x74\\x6f\\x72\\x54\\x6f\\x6f\\x6c\\x3e\\x41\\x64\\\n\\x6f\\x62\\x65\\x20\\x50\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x20\\x43\\x43\\\n\\x20\\x32\\x30\\x31\\x37\\x20\\x28\\x57\\x69\\x6e\\x64\\x6f\\x77\\x73\\x29\\x3c\\\n\\x2f\\x78\\x6d\\x70\\x3a\\x43\\x72\\x65\\x61\\x74\\x6f\\x72\\x54\\x6f\\x6f\\x6c\\\n\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x78\\x6d\\x70\\x3a\\\n\\x43\\x72\\x65\\x61\\x74\\x65\\x44\\x61\\x74\\x65\\x3e\\x32\\x30\\x31\\x37\\x2d\\\n\\x30\\x39\\x2d\\x30\\x35\\x54\\x31\\x32\\x3a\\x31\\x36\\x3a\\x32\\x31\\x2b\\x30\\\n\\x38\\x3a\\x30\\x30\\x3c\\x2f\\x78\\x6d\\x70\\x3a\\x43\\x72\\x65\\x61\\x74\\x65\\\n\\x44\\x61\\x74\\x65\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\\n\\x78\\x6d\\x70\\x3a\\x4d\\x65\\x74\\x61\\x64\\x61\\x74\\x61\\x44\\x61\\x74\\x65\\\n\\x3e\\x32\\x30\\x31\\x37\\x2d\\x31\\x32\\x2d\\x32\\x30\\x54\\x31\\x36\\x3a\\x34\\\n\\x35\\x3a\\x33\\x37\\x2b\\x30\\x38\\x3a\\x30\\x30\\x3c\\x2f\\x78\\x6d\\x70\\x3a\\\n\\x4d\\x65\\x74\\x61\\x64\\x61\\x74\\x61\\x44\\x61\\x74\\x65\\x3e\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x78\\x6d\\x70\\x3a\\x4d\\x6f\\x64\\x69\\\n\\x66\\x79\\x44\\x61\\x74\\x65\\x3e\\x32\\x30\\x31\\x37\\x2d\\x31\\x32\\x2d\\x32\\\n\\x30\\x54\\x31\\x36\\x3a\\x34\\x35\\x3a\\x33\\x37\\x2b\\x30\\x38\\x3a\\x30\\x30\\\n\\x3c\\x2f\\x78\\x6d\\x70\\x3a\\x4d\\x6f\\x64\\x69\\x66\\x79\\x44\\x61\\x74\\x65\\\n\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\\n\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x43\\x6f\\x6c\\x6f\\x72\\x4d\\x6f\\x64\\x65\\x3e\\\n\\x33\\x3c\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x43\\x6f\\x6c\\\n\\x6f\\x72\\x4d\\x6f\\x64\\x65\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x49\\x43\\x43\\x50\\\n\\x72\\x6f\\x66\\x69\\x6c\\x65\\x3e\\x73\\x52\\x47\\x42\\x20\\x49\\x45\\x43\\x36\\\n\\x31\\x39\\x36\\x36\\x2d\\x32\\x2e\\x31\\x3c\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\\n\\x68\\x6f\\x70\\x3a\\x49\\x43\\x43\\x50\\x72\\x6f\\x66\\x69\\x6c\\x65\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\\n\\x68\\x6f\\x70\\x3a\\x54\\x65\\x78\\x74\\x4c\\x61\\x79\\x65\\x72\\x73\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\\n\\x3a\\x42\\x61\\x67\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\x6c\\x69\\x20\\x72\\x64\\x66\\\n\\x3a\\x70\\x61\\x72\\x73\\x65\\x54\\x79\\x70\\x65\\x3d\\x22\\x52\\x65\\x73\\x6f\\\n\\x75\\x72\\x63\\x65\\x22\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\\n\\x68\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\x4e\\x61\\x6d\\x65\\x3e\\xe9\\x82\\\n\\xa3\\xe5\\x88\\xbb\\xe6\\xb8\\xa9\\xe5\\xad\\x98\\x3c\\x2f\\x70\\x68\\x6f\\x74\\\n\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\x4e\\x61\\x6d\\x65\\x3e\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x4c\\x61\\\n\\x79\\x65\\x72\\x54\\x65\\x78\\x74\\x3e\\xe9\\x82\\xa3\\xe5\\x88\\xbb\\xe6\\xb8\\\n\\xa9\\xe5\\xad\\x98\\x3c\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\\n\\x4c\\x61\\x79\\x65\\x72\\x54\\x65\\x78\\x74\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\x3a\\\n\\x6c\\x69\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\x6c\\x69\\x20\\x72\\x64\\x66\\x3a\\x70\\\n\\x61\\x72\\x73\\x65\\x54\\x79\\x70\\x65\\x3d\\x22\\x52\\x65\\x73\\x6f\\x75\\x72\\\n\\x63\\x65\\x22\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\\n\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\x4e\\x61\\x6d\\x65\\x3e\\x54\\x20\\x20\\x3c\\\n\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\\n\\x4e\\x61\\x6d\\x65\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\\n\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\x54\\x65\\x78\\x74\\x3e\\x54\\x20\\x20\\\n\\x3c\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\\n\\x72\\x54\\x65\\x78\\x74\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\x3a\\x6c\\x69\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\\n\\x72\\x64\\x66\\x3a\\x6c\\x69\\x20\\x72\\x64\\x66\\x3a\\x70\\x61\\x72\\x73\\x65\\\n\\x54\\x79\\x70\\x65\\x3d\\x22\\x52\\x65\\x73\\x6f\\x75\\x72\\x63\\x65\\x22\\x3e\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x4c\\x61\\\n\\x79\\x65\\x72\\x4e\\x61\\x6d\\x65\\x3e\\xe9\\x82\\xa3\\xe5\\x88\\xbb\\xe6\\xb8\\\n\\xa9\\xe5\\xad\\x98\\x20\\xe6\\x8b\\xb7\\xe8\\xb4\\x9d\\x3c\\x2f\\x70\\x68\\x6f\\\n\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\x4e\\x61\\x6d\\x65\\\n\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x4c\\\n\\x61\\x79\\x65\\x72\\x54\\x65\\x78\\x74\\x3e\\xe9\\x82\\xa3\\xe5\\x88\\xbb\\xe6\\\n\\xb8\\xa9\\xe5\\xad\\x98\\x3c\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\\n\\x3a\\x4c\\x61\\x79\\x65\\x72\\x54\\x65\\x78\\x74\\x3e\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\\n\\x3a\\x6c\\x69\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\x6c\\x69\\x20\\x72\\x64\\x66\\x3a\\\n\\x70\\x61\\x72\\x73\\x65\\x54\\x79\\x70\\x65\\x3d\\x22\\x52\\x65\\x73\\x6f\\x75\\\n\\x72\\x63\\x65\\x22\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\\n\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\x4e\\x61\\x6d\\x65\\x3e\\x54\\x20\\x20\\\n\\x20\\xe6\\x8b\\xb7\\xe8\\xb4\\x9d\\x3c\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\\n\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\x4e\\x61\\x6d\\x65\\x3e\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\\n\\x54\\x65\\x78\\x74\\x3e\\x54\\x20\\x20\\x3c\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\\n\\x68\\x6f\\x70\\x3a\\x4c\\x61\\x79\\x65\\x72\\x54\\x65\\x78\\x74\\x3e\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\\n\\x72\\x64\\x66\\x3a\\x6c\\x69\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\x3a\\x42\\x61\\x67\\x3e\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\\n\\x68\\x6f\\x70\\x3a\\x54\\x65\\x78\\x74\\x4c\\x61\\x79\\x65\\x72\\x73\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x70\\x68\\x6f\\x74\\x6f\\x73\\\n\\x68\\x6f\\x70\\x3a\\x44\\x6f\\x63\\x75\\x6d\\x65\\x6e\\x74\\x41\\x6e\\x63\\x65\\\n\\x73\\x74\\x6f\\x72\\x73\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\x42\\x61\\x67\\x3e\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\\n\\x3a\\x6c\\x69\\x3e\\x61\\x64\\x6f\\x62\\x65\\x3a\\x64\\x6f\\x63\\x69\\x64\\x3a\\\n\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x66\\x30\\x61\\x38\\x37\\x35\\\n\\x33\\x30\\x2d\\x39\\x30\\x63\\x33\\x2d\\x31\\x31\\x65\\x37\\x2d\\x62\\x31\\x66\\\n\\x64\\x2d\\x38\\x38\\x33\\x39\\x34\\x61\\x38\\x61\\x33\\x33\\x34\\x33\\x3c\\x2f\\\n\\x72\\x64\\x66\\x3a\\x6c\\x69\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\x3a\\x42\\x61\\x67\\x3e\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\x70\\x68\\x6f\\x74\\x6f\\x73\\\n\\x68\\x6f\\x70\\x3a\\x44\\x6f\\x63\\x75\\x6d\\x65\\x6e\\x74\\x41\\x6e\\x63\\x65\\\n\\x73\\x74\\x6f\\x72\\x73\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x3c\\x64\\x63\\x3a\\x66\\x6f\\x72\\x6d\\x61\\x74\\x3e\\x69\\x6d\\x61\\x67\\x65\\\n\\x2f\\x70\\x6e\\x67\\x3c\\x2f\\x64\\x63\\x3a\\x66\\x6f\\x72\\x6d\\x61\\x74\\x3e\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x78\\x6d\\x70\\x4d\\x4d\\\n\\x3a\\x49\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\x44\\x3e\\x78\\x6d\\x70\\x2e\\\n\\x69\\x69\\x64\\x3a\\x32\\x36\\x35\\x63\\x30\\x64\\x64\\x32\\x2d\\x65\\x62\\x66\\\n\\x31\\x2d\\x30\\x30\\x34\\x66\\x2d\\x38\\x62\\x62\\x38\\x2d\\x32\\x31\\x66\\x61\\\n\\x36\\x38\\x31\\x39\\x62\\x39\\x62\\x37\\x3c\\x2f\\x78\\x6d\\x70\\x4d\\x4d\\x3a\\\n\\x49\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\x44\\x3e\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x3c\\x78\\x6d\\x70\\x4d\\x4d\\x3a\\x44\\x6f\\x63\\x75\\\n\\x6d\\x65\\x6e\\x74\\x49\\x44\\x3e\\x61\\x64\\x6f\\x62\\x65\\x3a\\x64\\x6f\\x63\\\n\\x69\\x64\\x3a\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x3a\\x31\\x33\\x65\\\n\\x66\\x61\\x61\\x31\\x33\\x2d\\x65\\x35\\x36\\x32\\x2d\\x31\\x31\\x65\\x37\\x2d\\\n\\x39\\x39\\x37\\x34\\x2d\\x38\\x65\\x33\\x33\\x33\\x62\\x34\\x64\\x62\\x33\\x63\\\n\\x65\\x3c\\x2f\\x78\\x6d\\x70\\x4d\\x4d\\x3a\\x44\\x6f\\x63\\x75\\x6d\\x65\\x6e\\\n\\x74\\x49\\x44\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x78\\\n\\x6d\\x70\\x4d\\x4d\\x3a\\x4f\\x72\\x69\\x67\\x69\\x6e\\x61\\x6c\\x44\\x6f\\x63\\\n\\x75\\x6d\\x65\\x6e\\x74\\x49\\x44\\x3e\\x78\\x6d\\x70\\x2e\\x64\\x69\\x64\\x3a\\\n\\x62\\x63\\x66\\x63\\x61\\x39\\x34\\x63\\x2d\\x66\\x61\\x61\\x64\\x2d\\x62\\x36\\\n\\x34\\x33\\x2d\\x61\\x61\\x33\\x63\\x2d\\x64\\x35\\x63\\x33\\x65\\x61\\x31\\x61\\\n\\x61\\x35\\x64\\x37\\x3c\\x2f\\x78\\x6d\\x70\\x4d\\x4d\\x3a\\x4f\\x72\\x69\\x67\\\n\\x69\\x6e\\x61\\x6c\\x44\\x6f\\x63\\x75\\x6d\\x65\\x6e\\x74\\x49\\x44\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x78\\x6d\\x70\\x4d\\x4d\\x3a\\\n\\x48\\x69\\x73\\x74\\x6f\\x72\\x79\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\x53\\x65\\x71\\x3e\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\\n\\x64\\x66\\x3a\\x6c\\x69\\x20\\x72\\x64\\x66\\x3a\\x70\\x61\\x72\\x73\\x65\\x54\\\n\\x79\\x70\\x65\\x3d\\x22\\x52\\x65\\x73\\x6f\\x75\\x72\\x63\\x65\\x22\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x61\\x63\\x74\\x69\\x6f\\x6e\\x3e\\\n\\x63\\x72\\x65\\x61\\x74\\x65\\x64\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x61\\\n\\x63\\x74\\x69\\x6f\\x6e\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\\n\\x69\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\x44\\x3e\\x78\\x6d\\x70\\x2e\\x69\\\n\\x69\\x64\\x3a\\x62\\x63\\x66\\x63\\x61\\x39\\x34\\x63\\x2d\\x66\\x61\\x61\\x64\\\n\\x2d\\x62\\x36\\x34\\x33\\x2d\\x61\\x61\\x33\\x63\\x2d\\x64\\x35\\x63\\x33\\x65\\\n\\x61\\x31\\x61\\x61\\x35\\x64\\x37\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x69\\\n\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\x44\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\\n\\x45\\x76\\x74\\x3a\\x77\\x68\\x65\\x6e\\x3e\\x32\\x30\\x31\\x37\\x2d\\x30\\x39\\\n\\x2d\\x30\\x35\\x54\\x31\\x32\\x3a\\x31\\x36\\x3a\\x32\\x31\\x2b\\x30\\x38\\x3a\\\n\\x30\\x30\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x77\\x68\\x65\\x6e\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x73\\x6f\\x66\\x74\\x77\\x61\\x72\\\n\\x65\\x41\\x67\\x65\\x6e\\x74\\x3e\\x41\\x64\\x6f\\x62\\x65\\x20\\x50\\x68\\x6f\\\n\\x74\\x6f\\x73\\x68\\x6f\\x70\\x20\\x43\\x43\\x20\\x32\\x30\\x31\\x37\\x20\\x28\\\n\\x57\\x69\\x6e\\x64\\x6f\\x77\\x73\\x29\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\\n\\x73\\x6f\\x66\\x74\\x77\\x61\\x72\\x65\\x41\\x67\\x65\\x6e\\x74\\x3e\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\\n\\x72\\x64\\x66\\x3a\\x6c\\x69\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\x6c\\x69\\x20\\x72\\\n\\x64\\x66\\x3a\\x70\\x61\\x72\\x73\\x65\\x54\\x79\\x70\\x65\\x3d\\x22\\x52\\x65\\\n\\x73\\x6f\\x75\\x72\\x63\\x65\\x22\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\\n\\x74\\x3a\\x61\\x63\\x74\\x69\\x6f\\x6e\\x3e\\x73\\x61\\x76\\x65\\x64\\x3c\\x2f\\\n\\x73\\x74\\x45\\x76\\x74\\x3a\\x61\\x63\\x74\\x69\\x6f\\x6e\\x3e\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x69\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\\n\\x44\\x3e\\x78\\x6d\\x70\\x2e\\x69\\x69\\x64\\x3a\\x64\\x35\\x34\\x66\\x33\\x38\\\n\\x31\\x61\\x2d\\x39\\x38\\x38\\x38\\x2d\\x38\\x64\\x34\\x34\\x2d\\x39\\x66\\x63\\\n\\x34\\x2d\\x63\\x64\\x64\\x32\\x35\\x38\\x37\\x62\\x39\\x65\\x30\\x33\\x3c\\x2f\\\n\\x73\\x74\\x45\\x76\\x74\\x3a\\x69\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\x44\\\n\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x77\\x68\\x65\\x6e\\x3e\\\n\\x32\\x30\\x31\\x37\\x2d\\x30\\x39\\x2d\\x30\\x35\\x54\\x31\\x36\\x3a\\x31\\x33\\\n\\x3a\\x32\\x32\\x2b\\x30\\x38\\x3a\\x30\\x30\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\\n\\x3a\\x77\\x68\\x65\\x6e\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\\n\\x73\\x6f\\x66\\x74\\x77\\x61\\x72\\x65\\x41\\x67\\x65\\x6e\\x74\\x3e\\x41\\x64\\\n\\x6f\\x62\\x65\\x20\\x50\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x20\\x43\\x43\\\n\\x20\\x32\\x30\\x31\\x37\\x20\\x28\\x57\\x69\\x6e\\x64\\x6f\\x77\\x73\\x29\\x3c\\\n\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x73\\x6f\\x66\\x74\\x77\\x61\\x72\\x65\\x41\\\n\\x67\\x65\\x6e\\x74\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x63\\\n\\x68\\x61\\x6e\\x67\\x65\\x64\\x3e\\x2f\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\\n\\x63\\x68\\x61\\x6e\\x67\\x65\\x64\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\x3a\\x6c\\x69\\\n\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x3c\\x72\\x64\\x66\\x3a\\x6c\\x69\\x20\\x72\\x64\\x66\\x3a\\x70\\x61\\x72\\\n\\x73\\x65\\x54\\x79\\x70\\x65\\x3d\\x22\\x52\\x65\\x73\\x6f\\x75\\x72\\x63\\x65\\\n\\x22\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x61\\x63\\x74\\x69\\\n\\x6f\\x6e\\x3e\\x73\\x61\\x76\\x65\\x64\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\\n\\x61\\x63\\x74\\x69\\x6f\\x6e\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\\n\\x3a\\x69\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\x44\\x3e\\x78\\x6d\\x70\\x2e\\\n\\x69\\x69\\x64\\x3a\\x64\\x65\\x31\\x62\\x65\\x64\\x33\\x33\\x2d\\x35\\x33\\x63\\\n\\x34\\x2d\\x66\\x32\\x34\\x32\\x2d\\x62\\x39\\x61\\x61\\x2d\\x30\\x32\\x63\\x62\\\n\\x66\\x62\\x61\\x36\\x65\\x31\\x63\\x62\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\\n\\x69\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\x44\\x3e\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\\n\\x74\\x45\\x76\\x74\\x3a\\x77\\x68\\x65\\x6e\\x3e\\x32\\x30\\x31\\x37\\x2d\\x31\\\n\\x32\\x2d\\x32\\x30\\x54\\x31\\x36\\x3a\\x34\\x35\\x3a\\x33\\x37\\x2b\\x30\\x38\\\n\\x3a\\x30\\x30\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x77\\x68\\x65\\x6e\\x3e\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x73\\x6f\\x66\\x74\\x77\\x61\\\n\\x72\\x65\\x41\\x67\\x65\\x6e\\x74\\x3e\\x41\\x64\\x6f\\x62\\x65\\x20\\x50\\x68\\\n\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x20\\x43\\x43\\x20\\x32\\x30\\x31\\x37\\x20\\\n\\x28\\x57\\x69\\x6e\\x64\\x6f\\x77\\x73\\x29\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\\n\\x3a\\x73\\x6f\\x66\\x74\\x77\\x61\\x72\\x65\\x41\\x67\\x65\\x6e\\x74\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x63\\x68\\x61\\x6e\\x67\\x65\\x64\\\n\\x3e\\x2f\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x63\\x68\\x61\\x6e\\x67\\x65\\\n\\x64\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\x3a\\x6c\\x69\\x3e\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\\n\\x6c\\x69\\x20\\x72\\x64\\x66\\x3a\\x70\\x61\\x72\\x73\\x65\\x54\\x79\\x70\\x65\\\n\\x3d\\x22\\x52\\x65\\x73\\x6f\\x75\\x72\\x63\\x65\\x22\\x3e\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\\n\\x73\\x74\\x45\\x76\\x74\\x3a\\x61\\x63\\x74\\x69\\x6f\\x6e\\x3e\\x63\\x6f\\x6e\\\n\\x76\\x65\\x72\\x74\\x65\\x64\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x61\\x63\\\n\\x74\\x69\\x6f\\x6e\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x70\\\n\\x61\\x72\\x61\\x6d\\x65\\x74\\x65\\x72\\x73\\x3e\\x66\\x72\\x6f\\x6d\\x20\\x61\\\n\\x70\\x70\\x6c\\x69\\x63\\x61\\x74\\x69\\x6f\\x6e\\x2f\\x76\\x6e\\x64\\x2e\\x61\\\n\\x64\\x6f\\x62\\x65\\x2e\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\x70\\x20\\x74\\\n\\x6f\\x20\\x69\\x6d\\x61\\x67\\x65\\x2f\\x70\\x6e\\x67\\x3c\\x2f\\x73\\x74\\x45\\\n\\x76\\x74\\x3a\\x70\\x61\\x72\\x61\\x6d\\x65\\x74\\x65\\x72\\x73\\x3e\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\\n\\x72\\x64\\x66\\x3a\\x6c\\x69\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\x6c\\x69\\x20\\x72\\\n\\x64\\x66\\x3a\\x70\\x61\\x72\\x73\\x65\\x54\\x79\\x70\\x65\\x3d\\x22\\x52\\x65\\\n\\x73\\x6f\\x75\\x72\\x63\\x65\\x22\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\\n\\x74\\x3a\\x61\\x63\\x74\\x69\\x6f\\x6e\\x3e\\x64\\x65\\x72\\x69\\x76\\x65\\x64\\\n\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x61\\x63\\x74\\x69\\x6f\\x6e\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x70\\x61\\x72\\x61\\x6d\\x65\\x74\\\n\\x65\\x72\\x73\\x3e\\x63\\x6f\\x6e\\x76\\x65\\x72\\x74\\x65\\x64\\x20\\x66\\x72\\\n\\x6f\\x6d\\x20\\x61\\x70\\x70\\x6c\\x69\\x63\\x61\\x74\\x69\\x6f\\x6e\\x2f\\x76\\\n\\x6e\\x64\\x2e\\x61\\x64\\x6f\\x62\\x65\\x2e\\x70\\x68\\x6f\\x74\\x6f\\x73\\x68\\\n\\x6f\\x70\\x20\\x74\\x6f\\x20\\x69\\x6d\\x61\\x67\\x65\\x2f\\x70\\x6e\\x67\\x3c\\\n\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x70\\x61\\x72\\x61\\x6d\\x65\\x74\\x65\\x72\\\n\\x73\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\x3a\\x6c\\x69\\x3e\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x72\\x64\\x66\\x3a\\\n\\x6c\\x69\\x20\\x72\\x64\\x66\\x3a\\x70\\x61\\x72\\x73\\x65\\x54\\x79\\x70\\x65\\\n\\x3d\\x22\\x52\\x65\\x73\\x6f\\x75\\x72\\x63\\x65\\x22\\x3e\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\\n\\x73\\x74\\x45\\x76\\x74\\x3a\\x61\\x63\\x74\\x69\\x6f\\x6e\\x3e\\x73\\x61\\x76\\\n\\x65\\x64\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x61\\x63\\x74\\x69\\x6f\\x6e\\\n\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x69\\x6e\\x73\\x74\\x61\\\n\\x6e\\x63\\x65\\x49\\x44\\x3e\\x78\\x6d\\x70\\x2e\\x69\\x69\\x64\\x3a\\x32\\x36\\\n\\x35\\x63\\x30\\x64\\x64\\x32\\x2d\\x65\\x62\\x66\\x31\\x2d\\x30\\x30\\x34\\x66\\\n\\x2d\\x38\\x62\\x62\\x38\\x2d\\x32\\x31\\x66\\x61\\x36\\x38\\x31\\x39\\x62\\x39\\\n\\x62\\x37\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x69\\x6e\\x73\\x74\\x61\\x6e\\\n\\x63\\x65\\x49\\x44\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\x76\\x74\\x3a\\x77\\\n\\x68\\x65\\x6e\\x3e\\x32\\x30\\x31\\x37\\x2d\\x31\\x32\\x2d\\x32\\x30\\x54\\x31\\\n\\x36\\x3a\\x34\\x35\\x3a\\x33\\x37\\x2b\\x30\\x38\\x3a\\x30\\x30\\x3c\\x2f\\x73\\\n\\x74\\x45\\x76\\x74\\x3a\\x77\\x68\\x65\\x6e\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\\n\\x45\\x76\\x74\\x3a\\x73\\x6f\\x66\\x74\\x77\\x61\\x72\\x65\\x41\\x67\\x65\\x6e\\\n\\x74\\x3e\\x41\\x64\\x6f\\x62\\x65\\x20\\x50\\x68\\x6f\\x74\\x6f\\x73\\x68\\x6f\\\n\\x70\\x20\\x43\\x43\\x20\\x32\\x30\\x31\\x37\\x20\\x28\\x57\\x69\\x6e\\x64\\x6f\\\n\\x77\\x73\\x29\\x3c\\x2f\\x73\\x74\\x45\\x76\\x74\\x3a\\x73\\x6f\\x66\\x74\\x77\\\n\\x61\\x72\\x65\\x41\\x67\\x65\\x6e\\x74\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x45\\\n\\x76\\x74\\x3a\\x63\\x68\\x61\\x6e\\x67\\x65\\x64\\x3e\\x2f\\x3c\\x2f\\x73\\x74\\\n\\x45\\x76\\x74\\x3a\\x63\\x68\\x61\\x6e\\x67\\x65\\x64\\x3e\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\x72\\x64\\\n\\x66\\x3a\\x6c\\x69\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\x3a\\x53\\x65\\x71\\x3e\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\x78\\x6d\\x70\\x4d\\x4d\\x3a\\x48\\x69\\\n\\x73\\x74\\x6f\\x72\\x79\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x3c\\x78\\x6d\\x70\\x4d\\x4d\\x3a\\x44\\x65\\x72\\x69\\x76\\x65\\x64\\x46\\x72\\\n\\x6f\\x6d\\x20\\x72\\x64\\x66\\x3a\\x70\\x61\\x72\\x73\\x65\\x54\\x79\\x70\\x65\\\n\\x3d\\x22\\x52\\x65\\x73\\x6f\\x75\\x72\\x63\\x65\\x22\\x3e\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x52\\x65\\x66\\x3a\\\n\\x69\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\x44\\x3e\\x78\\x6d\\x70\\x2e\\x69\\\n\\x69\\x64\\x3a\\x64\\x65\\x31\\x62\\x65\\x64\\x33\\x33\\x2d\\x35\\x33\\x63\\x34\\\n\\x2d\\x66\\x32\\x34\\x32\\x2d\\x62\\x39\\x61\\x61\\x2d\\x30\\x32\\x63\\x62\\x66\\\n\\x62\\x61\\x36\\x65\\x31\\x63\\x62\\x3c\\x2f\\x73\\x74\\x52\\x65\\x66\\x3a\\x69\\\n\\x6e\\x73\\x74\\x61\\x6e\\x63\\x65\\x49\\x44\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x52\\x65\\x66\\x3a\\x64\\x6f\\\n\\x63\\x75\\x6d\\x65\\x6e\\x74\\x49\\x44\\x3e\\x78\\x6d\\x70\\x2e\\x64\\x69\\x64\\\n\\x3a\\x62\\x63\\x66\\x63\\x61\\x39\\x34\\x63\\x2d\\x66\\x61\\x61\\x64\\x2d\\x62\\\n\\x36\\x34\\x33\\x2d\\x61\\x61\\x33\\x63\\x2d\\x64\\x35\\x63\\x33\\x65\\x61\\x31\\\n\\x61\\x61\\x35\\x64\\x37\\x3c\\x2f\\x73\\x74\\x52\\x65\\x66\\x3a\\x64\\x6f\\x63\\\n\\x75\\x6d\\x65\\x6e\\x74\\x49\\x44\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x3c\\x73\\x74\\x52\\x65\\x66\\x3a\\x6f\\x72\\x69\\x67\\\n\\x69\\x6e\\x61\\x6c\\x44\\x6f\\x63\\x75\\x6d\\x65\\x6e\\x74\\x49\\x44\\x3e\\x78\\\n\\x6d\\x70\\x2e\\x64\\x69\\x64\\x3a\\x62\\x63\\x66\\x63\\x61\\x39\\x34\\x63\\x2d\\\n\\x66\\x61\\x61\\x64\\x2d\\x62\\x36\\x34\\x33\\x2d\\x61\\x61\\x33\\x63\\x2d\\x64\\\n\\x35\\x63\\x33\\x65\\x61\\x31\\x61\\x61\\x35\\x64\\x37\\x3c\\x2f\\x73\\x74\\x52\\\n\\x65\\x66\\x3a\\x6f\\x72\\x69\\x67\\x69\\x6e\\x61\\x6c\\x44\\x6f\\x63\\x75\\x6d\\\n\\x65\\x6e\\x74\\x49\\x44\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x3c\\x2f\\x78\\x6d\\x70\\x4d\\x4d\\x3a\\x44\\x65\\x72\\x69\\x76\\x65\\x64\\x46\\\n\\x72\\x6f\\x6d\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x74\\\n\\x69\\x66\\x66\\x3a\\x4f\\x72\\x69\\x65\\x6e\\x74\\x61\\x74\\x69\\x6f\\x6e\\x3e\\\n\\x31\\x3c\\x2f\\x74\\x69\\x66\\x66\\x3a\\x4f\\x72\\x69\\x65\\x6e\\x74\\x61\\x74\\\n\\x69\\x6f\\x6e\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x74\\\n\\x69\\x66\\x66\\x3a\\x58\\x52\\x65\\x73\\x6f\\x6c\\x75\\x74\\x69\\x6f\\x6e\\x3e\\\n\\x37\\x32\\x30\\x30\\x30\\x30\\x2f\\x31\\x30\\x30\\x30\\x30\\x3c\\x2f\\x74\\x69\\\n\\x66\\x66\\x3a\\x58\\x52\\x65\\x73\\x6f\\x6c\\x75\\x74\\x69\\x6f\\x6e\\x3e\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x74\\x69\\x66\\x66\\x3a\\x59\\\n\\x52\\x65\\x73\\x6f\\x6c\\x75\\x74\\x69\\x6f\\x6e\\x3e\\x37\\x32\\x30\\x30\\x30\\\n\\x30\\x2f\\x31\\x30\\x30\\x30\\x30\\x3c\\x2f\\x74\\x69\\x66\\x66\\x3a\\x59\\x52\\\n\\x65\\x73\\x6f\\x6c\\x75\\x74\\x69\\x6f\\x6e\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x3c\\x74\\x69\\x66\\x66\\x3a\\x52\\x65\\x73\\x6f\\x6c\\x75\\\n\\x74\\x69\\x6f\\x6e\\x55\\x6e\\x69\\x74\\x3e\\x32\\x3c\\x2f\\x74\\x69\\x66\\x66\\\n\\x3a\\x52\\x65\\x73\\x6f\\x6c\\x75\\x74\\x69\\x6f\\x6e\\x55\\x6e\\x69\\x74\\x3e\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x65\\x78\\x69\\x66\\x3a\\\n\\x43\\x6f\\x6c\\x6f\\x72\\x53\\x70\\x61\\x63\\x65\\x3e\\x31\\x3c\\x2f\\x65\\x78\\\n\\x69\\x66\\x3a\\x43\\x6f\\x6c\\x6f\\x72\\x53\\x70\\x61\\x63\\x65\\x3e\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x65\\x78\\x69\\x66\\x3a\\x50\\x69\\\n\\x78\\x65\\x6c\\x58\\x44\\x69\\x6d\\x65\\x6e\\x73\\x69\\x6f\\x6e\\x3e\\x32\\x31\\\n\\x33\\x3c\\x2f\\x65\\x78\\x69\\x66\\x3a\\x50\\x69\\x78\\x65\\x6c\\x58\\x44\\x69\\\n\\x6d\\x65\\x6e\\x73\\x69\\x6f\\x6e\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x3c\\x65\\x78\\x69\\x66\\x3a\\x50\\x69\\x78\\x65\\x6c\\x59\\x44\\x69\\\n\\x6d\\x65\\x6e\\x73\\x69\\x6f\\x6e\\x3e\\x37\\x37\\x3c\\x2f\\x65\\x78\\x69\\x66\\\n\\x3a\\x50\\x69\\x78\\x65\\x6c\\x59\\x44\\x69\\x6d\\x65\\x6e\\x73\\x69\\x6f\\x6e\\\n\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x3c\\x2f\\x72\\x64\\x66\\x3a\\x44\\x65\\\n\\x73\\x63\\x72\\x69\\x70\\x74\\x69\\x6f\\x6e\\x3e\\x0a\\x20\\x20\\x20\\x3c\\x2f\\\n\\x72\\x64\\x66\\x3a\\x52\\x44\\x46\\x3e\\x0a\\x3c\\x2f\\x78\\x3a\\x78\\x6d\\x70\\\n\\x6d\\x65\\x74\\x61\\x3e\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x0a\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\x20\\\n\\x20\\x20\\x20\\x20\\x20\\x0a\\x3c\\x3f\\x78\\x70\\x61\\x63\\x6b\\x65\\x74\\x20\\\n\\x65\\x6e\\x64\\x3d\\x22\\x77\\x22\\x3f\\x3e\\xbb\\x64\\x55\\x1b\\x00\\x00\\x00\\\n\\x20\\x63\\x48\\x52\\x4d\\x00\\x00\\x7a\\x25\\x00\\x00\\x80\\x83\\x00\\x00\\xf9\\\n\\xff\\x00\\x00\\x80\\xe9\\x00\\x00\\x75\\x30\\x00\\x00\\xea\\x60\\x00\\x00\\x3a\\\n\\x98\\x00\\x00\\x17\\x6f\\x92\\x5f\\xc5\\x46\\x00\\x00\\x11\\xe4\\x49\\x44\\x41\\\n\\x54\\x78\\xda\\xec\\x5d\\x7d\\x6c\\x1c\\xc5\\x15\\xff\\x9d\\x71\\x00\\xa3\\x09\\\n\\x3d\\x1f\\xf4\\xc3\\x44\\xc5\\x45\\x38\\xa9\\x52\\xa8\\x68\\x22\\x54\\x35\\x22\\\n\\x8d\\xad\\x8a\\x82\\x04\\x45\\x38\\x02\\x61\\x82\\x10\\x51\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\xe2\\x2d\\xfe\\xed\\xa3\\x00\\x06\\xe8\\x75\\x12\\x40\\x59\\x57\\xdb\\xdd\\x04\\\n\\xa8\\x41\\xf9\\x83\\xbf\\x95\\x4a\\x40\\xa9\\x94\\xf6\\x6f\\xfd\\x96\\xc7\\x67\\\n\\x03\\x00\\x8a\\x09\\xf1\\xbd\\x48\\x63\\x5b\\x1b\\x01\\x4c\\x03\\x28\\x00\\xb8\\\n\\x17\\x00\\x47\\x76\\xe9\\x09\\x00\\xd7\\x00\\xe8\\x23\\x60\\xfd\\x17\\xc0\\x55\\\n\\x25\\xcb\\x9a\\x54\\x7c\\x77\\x50\\x23\\xdf\\xcb\\x32\\xd0\\x2f\\x77\\xd1\\xdf\\\n\\x5a\\xc9\\xb2\\xca\\x3a\\x1b\\xee\\xee\\x18\\x6c\\x7a\\xa9\\x64\\x59\\x33\\x26\\\n\\x63\\x47\\x49\\x08\\x6f\\x09\\x23\\x3c\\x34\\x7b\\xee\\xa1\\x76\\x0a\\x29\\x3c\\\n\\xeb\\x24\\x80\\x0b\\x4c\\xc6\\x76\\x02\\xd8\\x4a\\x1a\\xf6\\xa8\\xc9\\xd8\\xee\\\n\\x92\\x65\\x6d\\x73\\xd3\\x32\\x00\\xde\\x8b\\x01\\xa6\\x62\\xab\\xc7\\xc8\\x64\\\n\\x6c\\x2d\\x4d\\xd2\\x00\\x70\\x40\\x77\\xfb\\x79\\x06\\xd5\\x02\\x80\\x4f\\x63\\\n\\xdc\\x5f\\x8c\\x30\\x18\\x4a\\x53\\x59\\x41\\xcb\\x1c\\x33\\x30\\xa0\\xd9\\x34\\\n\\xae\\x7b\\xb6\\x0c\\x09\\xae\\x6d\\x26\\x63\\x7b\\x01\\x9c\\xa0\\x7e\\xb9\\xc7\\\n\\x64\\x6c\\x8d\\x8b\\x39\\xf8\\x68\\xd4\\x67\\xa5\\xbe\\x18\\xcc\\x80\\xec\\xfc\\\n\\xd6\\x71\\x89\\x92\\x30\\x43\\xf3\\x0c\\xa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\xee\\x5f\\x4e\\x01\\xd5\\x0f\\xe0\\x49\\xba\\x9c\\x95\\xac\\x08\\xdd\\x8b\\\n\\xd0\\xed\\x05\\x2a\\x12\\x7e\\xf1\\xb7\\x1e\\x8d\\xab\\x2d\\x68\\x06\\x7c\\x44\\\n\\xd0\\x3e\\xdc\\x03\\x50\\xcf\\x08\\xa6\\x53\\x26\\x82\\x14\\x25\\xcb\\x5a\\x4f\\\n\\x42\\x77\\x42\\xd0\\x5a\\x73\\x00\\xbe\\x93\\xe5\\x24\\xe0\\x90\\x74\\x82\\xc6\\\n\\xbd\\x06\\x60\\x8d\\xf4\\xd9\\x7c\\xcc\\xb6\\xbf\\x24\\x58\\x3e\\x73\\xed\\x68\\\n\\xfe\\xdd\\xe7\\xa1\\xb5\\xa2\\x9a\\x7c\\x8e\\x86\\xaa\\x00\\xb8\\x92\\x80\\x0b\\\n\\xd8\\x59\\x17\\xcb\\x00\\x9c\\x8f\\xe6\\xf5\\xb0\\x7a\\x5c\\xbe\\x09\\x00\\xcb\\\n\\xc9\\xa2\\x18\\xa3\\xe7\\x2e\\x02\\xa8\\x98\\x8c\\xdd\\xea\\x61\\x0e\\x66\\x26\\\n\\xa4\\xee\\x33\\x46\\x53\\x68\\x44\\x63\\x6f\\x95\\x27\\x8a\\x92\\x65\\xf5\\xea\\\n\\x1a\\xff\\xde\\x6a\\x75\\x7d\\x5b\\x81\\x8a\\x34\\x85\\x28\\xdc\\xb1\\x7c\\x1a\\\n\\xc9\\xe4\\x03\\xf9\\x53\\xef\\x06\\xb8\\x75\\x77\\x56\\x35\\x00\\x69\\xad\\x11\\\n\\x00\\x07\\x49\\x26\\x0e\\x9a\\x8c\\xbd\\xe2\\xf2\\xbc\\x99\\x0f\\xa9\\x53\\xaa\\\n\\x95\\x13\\x10\\xf9\\x50\\xa7\\xbf\\x28\\xa4\\x71\\x39\\x80\\x5a\\xde\\x8e\\x81\\\n\\x8a\\xfd\\xd2\\x75\\x5c\\x9f\\x66\\x0c\\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ea\\xd7\\x8b\\x10\\x50\\x08\\x6b\\x21\\x48\\x25\\\n\\xe3\\x94\\xf7\\xaa\\x76\\xfe\\x76\\x2d\\xd2\\xce\\x9b\\x01\\xb0\\x12\\x76\\x5e\\\n\\x1e\\x24\\x60\\x8d\\xc4\\x6c\\xf7\\x1d\\x72\\xbe\\xf7\\x95\\x2c\\xab\\x37\\x00\\\n\\xa0\\x36\\x0b\\xc1\\x92\\x2c\\x17\\xd6\\x7c\\x7e\\x91\\x6b\\xa9\\xd4\\x28\\x36\\\n\\xa8\\xce\\x3c\\x75\\x2a\\x8e\\x43\\xb5\\x22\\x49\\x60\\x51\\x79\\x2d\\x19\\x58\\\n\\xfb\\xe3\\xd4\\xce\\x86\\x1d\\x15\\x5b\\xe2\\x07\\x10\\x45\\x19\\xb4\\x6e\\x93\\\n\\xb1\\x39\\x1f\\xde\\xaf\\x91\\x99\\x31\\x91\\xa6\\x10\\xe4\\x6d\\xed\\x6c\\xd1\\\n\\x83\\x6a\\xc9\\xa9\\x53\\x71\\xda\\x48\\x3c\\x31\\x53\\x01\\xac\\x1e\\xd8\\xe1\\\n\\xef\\x38\\xda\\xca\\x4f\\x48\\x5f\\x47\\x73\\x16\\xfb\\x3e\\xf2\\xa7\\x8a\\x00\\\n\\xde\\x74\\xd3\\x96\\x25\\xcb\\x9a\\x2c\\x59\\xd6\\x50\\x0b\\x02\\x19\\xce\\x56\\\n\\xf3\\x4a\\x47\\x4b\\x65\\x00\\x54\\x39\\x31\\x07\\x97\\xc3\\x8e\\xce\\x39\\x54\\\n\\x4c\\xe2\\x54\\x0e\\x93\\xb1\\x11\\xda\\x49\\xbb\\x4a\\x08\\x60\\x2c\\x27\\xad\\\n\\xb6\\x81\\xcc\\xc6\\x9e\\xb8\\x66\\xa8\\xe6\\x67\\x1e\\x43\\x63\\xab\\xf9\\xa6\\\n\\x0e\\x24\\x3a\\xa0\\x0a\\x43\\x2b\\x49\\xa8\\x1d\\x1a\\xd4\\x25\\xd8\\x26\\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xe2\\x23\\x7d\\\n\\xd7\\x59\\x20\\x77\\x68\\xbb\\x61\\x18\\x93\\x01\\xf9\\x78\\xde\\x4b\\xbf\\xe7\\\n\\x1a\\xf2\\xd3\\xc4\\x31\\x78\\x17\\xc0\\xa3\\x7e\\x67\\x4c\\x87\\xfc\\xcd\\x06\\\n\\xb9\\x36\\xdf\\x90\\x70\\x32\\x0f\\x3b\\x18\\x33\\x6a\\x18\\xc6\\x4c\\xa1\\x50\\\n\\x90\\xfb\\xb9\\x12\\xc7\\xfc\\xbb\\x2d\\xcf\\x40\\x71\\x8e\\x0a\\x15\\xe8\\xdf\\\n\\x1e\\x02\\x35\\x8d\\x46\\x01\\xff\\x82\\x34\\x29\\xf5\\x01\\xd8\\xcc\\x39\\xff\\\n\\x8c\\x73\\x1e\\x26\\x41\\x77\\xd0\\x79\\x71\\xce\\x77\\x46\\x18\\xf4\\x9d\\x62\\\n\\x1b\\xb0\\xf7\\x62\\xb5\\x92\\x8f\\x43\\x97\\x4b\\xdf\\xbf\\x3c\\x04\\x3b\\xe5\\\n\\xbd\\x9c\\xf3\\x11\\xce\\xf9\\x67\\xb0\\xb7\\xd3\\xf4\\x29\\xc6\\x60\\x00\\xc0\\\n\\x1e\\xce\\xf9\\x94\\x06\\x30\\x8d\\x0a\\xbc\\x06\\x14\\x8a\\xa7\\x48\\xb2\\x30\\\n\\xcd\\x39\\x77\\x14\\xcb\\x0d\\xc2\\x33\\xdf\\x10\\x07\\x54\\xdf\\xd6\\x2c\\xe7\\\n\\xf3\\x29\\xe3\\xea\\x5a\\xe9\\xfa\\x3d\\x45\\x07\\x4f\\x51\\x47\\x05\\x49\\xc5\\\n\\xea\\x06\\xf0\\x74\\x40\\xc1\\xbd\\x1f\\xcd\\xa9\\x2f\\x37\\x46\\x78\\x7e\\x31\\\n\\x01\\x76\\xde\\x45\\x1b\\xa4\\xc5\\x27\\x49\\x2b\\x61\\x14\\x76\\xf6\\x7f\\x10\\\n\\xab\\x6a\\x20\\x0e\\xb0\\x48\\xe3\\xec\\x09\\xc8\\xab\\x40\\x40\\x1e\\xd5\\x12\\\n\\xa8\\xa0\\x84\\xcb\\xbc\\x2f\\x1c\\xcb\\x02\\xf6\\x98\\x02\\x50\\x62\\xfa\\x4a\\\n\\x0d\\xf6\\x66\\xc3\\xef\\x1b\\x86\\x51\\x30\\x0c\\xa3\\x40\\x0e\\x79\\x45\\x6a\\\n\\x67\\x2b\\x99\\x31\\x5e\\x3e\\x87\\xb3\\x2d\\x5f\\x14\\x86\\xfe\\x10\\x83\\xbf\\\n\\x16\\xcd\\x69\\x4c\\xcf\\xb6\\x92\\x4f\\x82\\x74\\x29\\x1a\\x67\\x80\\x39\\xfd\\\n\\xff\\x0d\\xa1\\xff\\x77\\x29\\x26\\xe3\\x01\\x95\\xa0\\x07\\xd4\\xc8\\x9b\\x15\\\n\\x13\\xfd\\x2e\\x89\\xa7\\x3c\\xe6\\x8f\\x40\\x0a\\xb8\\x45\\x05\\xc6\\x8e\\x04\\\n\\xcc\\xaf\\x34\\x4d\\xbf\\x11\\x19\\x30\\x62\\xad\\x09\\xce\\xf9\\x98\\xf4\\x79\\\n\\x05\\xc0\\x95\\x24\\xa4\\xb2\\x43\\x5e\\xa6\\x41\\xdc\\x23\\xcc\\x60\\xcf\\xc3\\\n\\x5e\\xf8\\xf4\\xa2\\xed\\x34\\x03\\x3b\\x74\\x2f\\x02\\x26\\xf6\\x02\\xf8\\x85\\\n\\xf0\\xbe\\xee\\xe3\\xcf\\xa5\\xc5\\x27\\x09\\xba\\x9d\\xfa\\xb3\\x62\\x18\\xc6\\\n\\x72\\xc5\\xa4\\xb1\\x0d\\xc0\\x36\\xc5\\x04\\x78\\x5f\\x98\\x20\\x09\\x4d\\x34\\\n\\x5b\\xa5\\x7f\\xef\\x53\\xfd\\x5e\\x61\\xcc\\x9d\\xa3\\x87\\x0a\\x72\\xc0\\xad\\\n\\x2b\\x82\\x40\\x8a\\x07\\x42\\xa3\\xd6\\x15\\xd9\\x82\\xbc\\xbc\\x45\\x80\\x32\\\n\\xa8\\x33\\x44\\x7a\\x59\\xea\\xe0\\xeb\\x85\\xcf\\x66\\x0d\\xc3\\x58\\x2e\\x03\\\n\\x4a\\xd1\\xd1\\x62\\x5d\\x89\\x62\\x00\\x6d\\x75\\x08\\xcd\\xbb\\x91\\x6f\\x09\\\n\\xf1\\x33\\x7e\\x24\\xbc\\x3f\\x91\\x05\\x3e\\x09\\x51\\xc1\\xe9\\x7f\\x9f\\xdf\\\n\\xb8\\x1c\\xcd\\x1b\\x50\\x8b\\x61\\x34\\x32\\xec\\xc2\\xa1\\x05\\x29\\x18\\xc3\\\n\\x03\\xf4\\xeb\\x06\\x28\\x32\\xd8\\xa3\\x20\\xa2\\xa9\\xda\\xab\\x79\\xf6\\xd9\\\n\\xff\\xd3\\xd4\\x81\\xff\\x8e\\x01\\x94\\x51\\x2a\\xaa\\x32\\x67\\x32\\x36\\x65\\\n\\x32\\x76\\x44\\xf1\\x9a\\x33\\x19\\x3b\\x45\\x2a\\xbe\\x20\\x99\\x75\\x1b\\xa5\\\n\\xdf\\xe7\\x7c\\xee\\x96\\xc5\\xed\\xe6\\x7b\\xd4\\x5d\\x66\\x79\\x37\\x7a\\x4a\\\n\\x78\\xdf\\xe3\\x07\\x44\\xc7\\x69\\x97\\x2c\\x8c\\x9f\\x65\\x88\\x4f\\x12\\x14\\\n\\xb4\\x3c\\xf6\\xdf\\xa4\\xeb\\x40\\x45\\x36\\x09\\x7c\\x17\\x4b\\x7e\\x63\\xa0\\\n\\x7b\\x09\\x58\\x47\\x63\\x81\\x4a\\x71\\x92\\x46\\x7d\\xfe\\xcc\\x33\\x3f\\xd1\\\n\\xd4\\x79\\xef\\xc5\\xb8\\xf7\\x35\\x8a\\xca\\x14\\x49\\x8b\\x0e\\x2a\\x5e\\x45\\\n\\x97\\x80\\xc3\\xdd\\xd2\\x42\\xb0\\x58\\x83\\xfd\\x84\\x97\\x86\\x52\\xf8\\x2f\\\n\\x62\\x3d\\x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4\\xd6\\x09\\x4c\\xfb\\x4a\\x96\\x75\\x41\\xd0\\x52\\xc9\\x29\\x92\\\n\\x9c\\xe3\\xb6\\x35\\xcc\\xe6\\x43\\xce\\xf9\\x4e\\xca\\x72\\x8f\\x14\\x48\\x40\\\n\\xf3\\x22\\xf8\\x0e\\x49\\x5b\\x6a\\x31\\x93\\xd3\\xe2\\x93\\x07\\xa2\\x05\\xf0\\\n\\x79\\x69\\x92\\x99\\x0a\\x30\\xce\\xfd\\x00\\x5e\\x54\\x58\\x5e\\xee\\xeb\\x54\\\n\\xbd\\xd5\\x2a\\x9f\\x5b\\xba\\xf4\\x64\\x6f\\xb5\\x1a\\xd6\\x34\\xdb\\x00\\x75\\\n\\xc9\\xe2\\xd9\\x98\\x61\\xf3\\xed\\x68\\xce\\x6c\\x1f\\x4b\\xa8\\x93\\x27\\x39\\\n\\xe7\\x13\\x82\\x3f\\x55\\x00\\x70\\x90\\x73\\x7e\\x33\\x68\\x0b\\xb5\\x1b\\x98\\\n\\x60\\xd7\\x0e\\x2c\\x22\\xde\\x49\\x88\\x62\\xe6\\xc3\\x15\\x52\\xe0\\x40\\xa7\\\n\\x99\\x9c\\x16\\x9f\\x3c\\xd0\\x9d\\x68\\xde\\x1e\\x33\\xc0\\x39\\x7f\\x1f\\xc0\\\n\\x4d\\x2a\\x8d\\x4d\\x01\\x2c\\x67\\x21\\x7d\\x01\\x76\\x46\\x45\\xd1\\x17\\x54\\\n\\x04\\x2c\\xdf\\xce\\x55\\x84\\xe4\\x0f\\x79\\xa9\\xa8\\x18\\x34\\x49\\x2f\\x5d\\\n\\xed\\x9d\\x46\\x85\\x42\\xc1\\x01\\xd6\\x90\\xb4\\x47\\xa7\\x00\\x7b\\xd1\\xf4\\\n\\x7a\\xce\\xf9\\x3f\\x01\\xbc\\x2d\\xdc\\xb6\\x02\\xcd\\x35\\x13\\x62\\x07\\x2c\\\n\\x84\\xcc\\x87\\x6e\\x17\\x3f\\x28\\x37\\x7c\\xf2\\xa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ca\\\n\\x68\\xae\\x91\\x31\\x9a\\x73\\x3e\\x8b\\x9d\\xe4\\x52\\x77\\x7b\\x3b\\xa0\\xca\\\n\\x1e\\x89\\x15\\x8c\\xde\\x49\\x30\\x70\\x90\\x16\\x9f\\xc5\\xac\\xa5\\x46\\x21\\\n\\x95\\xb2\\x33\\x0c\\x63\\xa6\\x03\\xaa\\x6c\\x0d\\xd2\\x18\\x9a\\xd7\\x8c\\x36\\\n\\xe5\\x99\\x4f\\x8e\\xfa\\x7d\\x24\\x64\\x49\\x33\\xa7\\xda\\xd4\\x23\\xd2\\xbf\\\n\\xb7\\x03\\x9d\\xe8\\x5f\\x66\\x02\\x15\\x54\\x72\\x58\\x5c\\x7c\\x9c\\x48\\x62\\\n\\x3f\\x57\\x5a\\x7c\\x72\\x06\\xaa\\x23\\xb0\\xd7\\xa1\\x2a\\x00\\xfe\\xe0\\xb5\\\n\\xe5\\x85\\xc0\\x77\\x00\\x76\\xce\\x9f\\x28\\x30\\xc7\\x0d\\xc3\\x58\\x0d\\xb4\\\n\\xe9\\x99\\xbf\\x19\\x19\\xc8\\xf7\\xd1\\xc8\\xcc\\xf8\\x2e\\x9a\\xab\\x9c\\x2e\\\n\\x40\\x51\\xfa\\x2a\\xcb\\x7c\\x16\\x09\\x0d\\x00\\xb8\\x87\\x73\\xbe\\x15\\x76\\\n\\x11\\x18\\x31\\x83\\xfd\\x5c\\x00\\x17\\x41\\x7d\\x7c\\x54\\xc5\\x01\\x54\\x07\\\n\\x54\\xad\\xa5\\x3e\\xa8\\x73\\x24\\x17\\x00\\xac\\xd4\\xe8\\xe3\\xa4\\xc5\\x67\\\n\\x51\\x19\\x2d\\x68\\x64\\x52\\xf8\\xd1\\x69\\x9a\\xbe\\xe3\\x53\\x65\\x8b\\x2a\\\n\\x29\\x09\\x7a\\xa5\\x03\\xa8\\x06\\x11\\x28\\xf6\\x21\\x78\\xf1\\xa1\\x1a\\x80\\\n\\xe3\\xb0\\x0f\\xab\\x38\\xcd\\x74\\xee\\x68\\xaa\\xd6\\xd1\\x2e\\x34\\x56\\xeb\\\n\\x2b\\x00\\x9e\\x48\\x68\\x0f\\x53\\x5a\\x7c\\xf2\\x0e\\x2c\\x2e\\x98\\xcc\\xa3\\\n\\xb0\\x4f\\x1c\\x91\\x37\\xea\\x1e\\x83\\x5d\\xb5\\xd8\\x33\\x0d\\xed\\xff\\x03\\\n\\x00\\x1a\\xca\\x1b\\xe1\\x26\\x74\\x21\\x3d\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\\n\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x7e\\xe1\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\xa3\\x00\\x00\\x00\\xa3\\x08\\x06\\x00\\x00\\x00\\xe6\\x6c\\xae\\x80\\\n\\x00\\x00\\x00\\x09\\x70\\x48\\x59\\x73\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\\n\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x00\\x20\\x63\\x48\\x52\\x4d\\x00\\x00\\x7a\\\n\\x25\\x00\\x00\\x80\\x83\\x00\\x00\\xf9\\xff\\x00\\x00\\x80\\xe9\\x00\\x00\\x75\\\n\\x30\\x00\\x00\\xea\\x60\\x00\\x00\\x3a\\x98\\x00\\x00\\x17\\x6f\\x92\\x5f\\xc5\\\n\\x46\\x00\\x00\\x7e\\x67\\x49\\x44\\x41\\x54\\x78\\xda\\xec\\x7d\\x77\\xb8\\x5d\\\n\\x57\\x71\\xfd\\x9a\\xbd\\x4f\\xbb\\xfd\\xbe\\xde\\x8b\\xde\\x53\\x97\\xac\\xe6\\\n\\x22\\x17\\x5c\\x30\\xee\\xc6\\xc6\\xc6\\x60\\x3a\\x98\\xd0\\x03\\x84\\x50\\x42\\\n\\x28\\x01\\x0c\\x84\\x92\\xd0\\x13\\x13\\xf2\\x23\\x90\\x84\\xde\\x12\\x7a\\x73\\\n\\xb7\\x5c\\x64\\xcb\\xb2\\x24\\xcb\\xea\\xed\\xf5\\xde\\x6e\\xbf\\xa7\\xed\\xf2\\\n\\xfb\\xe3\\xde\\xf7\\x24\\x59\\x92\\x6d\\x12\\x93\\x88\\x7c\\x3e\\xf2\\xfe\\xa4\\\n\\xcf\\xd2\\xbb\\xe5\\x9c\\xb5\\x67\\xcf\\xac\\x59\\x33\\x43\\x5a\\x6b\\x3c\\x77\\\n\\x3d\\x77\\x9d\\x0e\\x17\\x7b\\xee\\x16\\x3c\\x77\\x3d\\x07\\xc6\\xe7\\xae\\xe7\\\n\\xae\\xe7\\xc0\\xf8\\xdc\\xf5\\x1c\\x18\\x9f\\xbb\\x9e\\xbb\\x9e\\x03\\xe3\\x73\\\n\\xd7\\x73\\x60\\x7c\\xee\\x7a\\xee\\xfa\\x03\\x2f\\xe3\\xd9\\x7c\\xb1\\x41\\xe9\\\n\\xfe\\x97\\x7f\\x56\\x41\\xa3\\x24\\x05\\x02\\xd2\\x98\\x61\\x21\\x48\\x02\\xb6\\\n\\x20\\x28\\x19\\x42\\x31\\x05\\x53\\x13\\xe2\\x64\\x61\\x4f\\x61\\x0a\\x1a\\x21\\\n\\x3a\\x78\\x0a\\x81\\xc3\\x30\\x5e\\xca\\xa1\\x9e\\x6c\\x58\\xa6\\x81\\xd0\\x0f\\\n\\x51\\x67\\x38\\x98\\x0d\\x5c\\xf0\\x68\\x14\\x75\\xb7\\x6f\\x81\\xdc\\x7b\\x08\\\n\\xb0\\x4c\\xe8\\x44\\x0c\\x4d\\xeb\\xd7\\x63\\xec\\xb7\\xbf\\x44\\xa6\\x98\\x43\\\n\\xf7\\x35\\xd7\\x62\\x72\\x75\\x17\\xf6\\xe6\\xa6\\xb0\\x21\\xd2\\x80\\x62\\xe0\\\n\\x61\\x47\\x71\\x12\\xcb\\xd3\\x2d\\xe8\\x8c\\x24\\x69\\xce\\x2d\\x98\\x13\\xc5\\\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23\\x4a\\x10\\xa8\\xde\\x95\\x41\\x5d\\x2e\\xf0\\x96\\\n\\x4c\\xbb\\xc5\\x9e\\x59\\xbf\\xdc\\x1b\\x6a\\xd5\\xb0\\x67\\x6e\\xb4\\xf1\\xa1\\\n\\xc9\\x43\\x2b\\x49\\xe9\\x98\\xd2\\x0a\\x5a\\x02\\x24\\x34\\x60\\x71\\x28\\x00\\\n\\x90\\x00\\xe7\\x1c\\x0a\\x1c\\x42\\x06\\x10\\xe4\\x83\\x73\\x80\\x84\\x02\\x93\\\n\\x1c\\x86\\x61\\x21\\x54\\x12\\x06\\x67\\x93\\x35\\x66\\x74\\xbc\\xa4\\x83\\xa9\\\n\\xd9\\x72\\x71\\xd0\\xd0\\x6c\\x28\\x16\\x8d\\xed\\xd4\\x1a\\x43\\x04\\xe4\\xa1\\\n\\x75\\x86\\x13\\x2b\\x30\\x22\\x49\\xcf\\x59\\xc6\\xff\\x63\\xd8\\x53\\x1a\\x3a\\\n\\x14\\xd0\\x06\\x87\\xe6\\x0c\\x2a\\x0c\\xdb\\x20\\xc4\\x19\\x5a\\x08\\x5b\\x0a\\\n\\xf1\\x04\\xb4\\x2e\\x85\\x50\\x8b\\xa6\\x83\\xd2\\xa2\\x39\\xaf\\x78\\x51\\x49\\\n\\x06\\x1b\\x37\\x4d\\x1f\\x69\\x2f\\x97\\xcb\\x8d\\x4c\\x29\\x10\\x29\\x30\\xc6\\\n\\x60\\x5a\\x26\\x22\\x71\\x07\\xa4\\x05\\xb4\\x0a\\xa0\\x24\\x07\\x49\\x03\\xcc\\\n\\xd6\\x00\\x67\\x30\\x94\\x01\\x05\\x0e\\x0d\\x06\\xa8\\x08\\x14\\x04\\xb8\\x45\\\n\\x10\\x5a\\x02\\x60\\x30\\x34\\x07\\x07\\x83\\xd4\\xb2\\xa9\\x10\\x06\\x4d\\xd3\\\n\\x7e\\x01\\x07\\xcb\\x59\\x84\\xf9\\x51\\x10\\x23\\x51\\x67\\x46\\x66\\x85\\xd2\\\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xe3\\x20\\x6f\\xfe\\xfb\\x6f\\xfd\\xbd\\xfe\\xfd\\xaf\\x7b\\\n\\x58\\x4b\\x3d\\xda\\x67\\x14\\xf6\\xec\\x3f\\x78\\xd9\\xf6\\x74\\x09\\x85\\xeb\\\n\\x2f\\x86\\x4d\\x04\\x65\\x72\\x38\\x81\\x42\\x34\\xa0\\x82\\x19\\x8b\\x14\\x23\\\n\\xb6\\x93\\xb1\\x41\\x81\\x65\\x1a\\x9e\\x6d\\x46\\x3d\\x5b\\xda\\x6e\\x8a\\xc5\\\n\\x7e\\x23\\x39\\xeb\\x8b\\x98\\x7e\\x89\\x73\\xe5\\xd6\\xf1\\x74\\x2e\\x01\\x23\\\n\\xa7\\xa1\\x05\\x91\\x81\\xd0\\xd0\\x11\\x41\\x21\\x57\\x82\\xb3\\xa2\\x14\\xe9\\\n\\x40\\x7b\\xb6\\x20\\x6e\\xe6\\x5c\\xaf\\xbe\\xe0\\x97\\x12\\x44\\x32\\x61\\x73\\\n\\x73\\x5d\\x99\\x74\\x4f\\xa0\\x45\\x34\\x1f\\x16\\x6b\\x5c\\xa6\\x53\\x9e\\xc1\\\n\\x9a\\x23\\x4e\\x04\\xba\\x8e\\x40\\x5a\\x22\\x2c\\x8a\\x9a\\xc7\\xfd\\xd2\\xe5\\\n\\xfb\\x67\\x0f\\x5d\\x7e\\xc9\\x91\\x81\\xb1\\x96\\x5f\\x3f\\xd2\\xea\\x4f\\x4c\\\n\\x62\\xa6\\xb3\\x2b\\x17\\x86\\xec\\x73\\xd6\\xc6\\x8d\\x5f\\x60\\xe2\\xff\\x1e\\\n\\x20\\xff\\x4f\\x82\\x51\\x03\\x60\\x8c\\x21\\x26\\xc9\\x74\\xe7\\x66\\xcf\\x99\\\n\\x48\\xf2\\x75\\x2b\\x84\\x57\\x63\\xf5\\xae\\xc5\\x48\\x9c\\xc1\\x6e\\x08\\xb0\\\n\\x68\\xbc\\x0e\\x43\\x07\\x72\\x62\\xce\\x67\\x83\\x1d\\x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xc2\\x04\\x3c\\x29\\xa0\\x09\\x60\\x92\\x81\\xcb\\x00\\x80\\x87\\x18\\x59\\x58\\\n\\x53\\xdb\\x89\\xa8\\x02\\xda\\xcd\\x28\\x54\\x54\\xf0\\xfe\\xec\\xe8\\x3b\\x8d\\\n\\x44\\x64\\xed\\x43\\xfd\\xdb\\x75\\x61\\x66\\x7a\\xd3\\xb2\\x8e\\x95\\xdf\\x4b\\\n\\xa6\\x99\\x48\\x58\\x35\\x18\\x14\\x13\\x08\\x8f\\x11\\xa2\\x48\\xad\\x50\\x12\\\n\\xbe\\x2e\\x48\\xcf\\xb7\\xc8\\x98\\xec\\xb2\\xea\\x27\\x53\\xf1\\x38\\x72\\x5c\\\n\\xfe\\x66\\xa2\\x38\\x62\\xad\\x17\\xed\\x4b\\xf3\\x01\\x2d\\x1a\\x96\\x85\\x73\\\n\\x26\\x75\\xf9\\x9a\\xfa\\xc7\\x36\\x2d\\x5e\\x9d\\xc9\\x26\\x63\\x1d\\x11\\xf8\\\n\\xe4\\x60\\x69\\x5d\\x2b\\xee\\x60\\x29\\xf3\\xf7\\x7d\\xfe\\x87\\x3a\\x0d\\xf7\\\n\\xd2\\x74\\x10\\x7e\\x33\\x66\\xb3\\xbb\\x19\\xd1\\xc8\\x73\\x60\\x3c\\x8d\\x2e\\\n\\x02\\x10\\x63\\x06\\x4a\\x4a\\x5c\\xb0\\xd3\\x9b\\x7d\\xcd\\x40\\x6e\\xfa\\x72\\\n\\x2f\\x2c\\xf6\\x48\\x3f\\xc4\\x24\\x03\\x6a\\x57\\x2c\\x1a\\xd8\\xf8\\x9b\\xfb\\\n\\xba\\x53\\xb3\\x63\\xb0\\x65\\x1c\\x5a\\x99\\x68\\xbb\\xfa\\xca\\xdf\\x47\\xa3\\\n\\x75\\x77\\x1e\\x0a\\x0a\\xe0\\x52\\xa1\\x1c\\xfa\\x10\\x4a\\x82\\x4e\\x42\\x75\\\n\\x48\\xa5\\x11\\xb1\\x6c\\xac\\xad\\xeb\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\x7d\\x28\\x19\\x22\\xa9\\x08\\x2a\\x0c\\x4f\\x38\\x96\\xe3\\xb6\\x09\\x93\\\n\\x18\\xce\\xed\\x4a\\x63\\x71\\x5d\\x0a\\x2f\\x5d\\xdd\\x84\\xab\\x97\\xb5\\xa0\\\n\\x31\\x1a\\x87\\xd2\\xa0\\xf3\\x3a\\x1a\\x10\\x31\\xf5\\x6f\\xdf\\x70\\x2e\\xdd\\\n\\xb8\\xae\\xae\\xbc\\x23\\xe7\\x05\\x28\\xb3\\x12\\xba\\x3a\\x3b\\x20\\x9b\\x2f\\\n\\x5a\\x7c\\xff\\x58\\xf4\\xeb\\x5b\\x0f\\x4d\\xbf\\xda\\x0f\\x43\\x9c\\x6e\\x78\\\n\\x34\\x4e\\x57\\x20\\x12\\x31\\x63\\x5a\\x07\\x97\\xec\\x9d\\x1b\\xfc\\xc0\\xec\\\n\\xec\\xc8\\xb9\\x28\\x08\\x04\\xf9\\x12\\xce\\x6b\\x6b\\xfb\\x97\\x17\\xf5\\x9c\\\n\\xfb\\xf6\\xc1\\xdc\\x74\\xf8\\x87\\xbc\\x66\\x10\\x06\\xd0\\x86\\x80\\x16\\x21\\\n\\x58\\x77\\x13\\x10\\x8f\\x81\\x85\\x0a\\x60\\x06\\x08\\x15\\x71\\xaf\\x94\\x02\\\n\\xa1\\x12\\x10\\x4a\\x02\\x4a\\xb6\\x1e\\x14\\x47\\xde\\x9e\\xee\\x49\\xbd\\x3f\\\n\\x3b\\x3c\\x86\\x4d\\x3b\\xef\\x05\\x5f\\x1b\\x83\\x2e\\xb9\\x68\\x1f\\xaa\\xfd\\\n\\xf6\\xda\\xb6\\x33\\xfe\\x5f\\x2e\\xc8\\x07\\xb5\\x16\\x47\\x3a\\xde\\x84\\xd6\\\n\\x86\\x45\\x20\\x10\\x12\\x4e\\xf4\\x6b\\x79\\x3f\\xbb\\xe6\\x6f\\x86\\xff\\xe6\\\n\\xad\\xd9\\x25\\x19\\x3c\\xb4\\xf7\\x3e\\x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xb0\\xd2\\\n\\xe5\\x48\\xff\\x54\\xdf\\x39\\x4b\\x62\\x4b\\xef\\xa9\\x75\\x6a\\xa6\\x34\\x34\\\n\\x88\\xd8\\x89\\xfe\\xec\\xfc\\xf1\\x4c\\x04\\xad\\x15\\x18\\xe3\\xe0\\x8c\\x9f\\\n\\x12\\x8c\\x27\\x3c\\x64\\x46\\x7a\\xd6\\x55\\x98\\xf1\\x02\\x28\\xb0\\x30\\x66\\\n\\xb3\\x2d\\x91\\x18\\xda\\xfb\\x73\\x62\\xbd\\xa9\\x2d\\xa4\\xe2\\x69\\x1c\\x9a\\\n\\x72\\x97\\xb8\\xee\\x5c\\xeb\\x39\\x4b\\x12\\xbf\\x3e\\x32\\x51\\x86\\xf1\\x0c\\\n\\x7c\\xc6\\x95\\xdd\\xcd\\xa7\\xaf\\xcf\\xf8\\x5f\\x73\\x79\\x75\\xe2\\x21\\x8c\\\n\\x7e\\xf0\\xc0\\xc4\\xa1\\x37\\x94\\xa7\\x94\\x95\\x51\\x0a\\x97\\xb5\\x77\\xfe\\\n\\xf8\\xba\\x45\\xeb\\x3f\\x40\\xdc\\x2a\\x45\\x4d\\xe7\\xa8\\x43\\x0f\\x8d\\x10\\\n\\xe2\\x29\\xdf\\x5f\\x93\\x84\\xa6\\x10\\x1a\\xf4\\x94\\x1f\\x48\\x69\\x85\\x50\\\n\\x86\\x08\\x21\\x63\\x33\\x32\\x7b\\xae\\xac\\x17\\xab\\x8c\\x80\\xd9\\x0f\\x6c\\\n\\xd9\\x8c\\x4c\\x47\\x01\\xbc\\xce\\x41\\xec\\x40\\xfa\\x91\\x97\\x2f\\x7b\\xd9\\\n\\x87\\xd3\\xd1\\xe4\\x24\\x40\\xe0\\x55\\x10\\x78\\xd2\\x7b\\xd2\\x9b\\xea\\x93\\\n\\x0a\\x72\\x51\\xf5\\x27\\x43\\x15\\x8e\\xaf\\x49\\xad\\x7f\\xc7\\xc4\\xe4\\xe5\\\n\\xbf\\xba\\x1b\\x77\\x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\\xe6\\x60\\\n\\x47\\x35\\xec\\xa8\\x82\\x64\\x02\\x8a\\x0b\\x48\\x12\\x90\\x4c\\x40\\x73\\x89\\\n\\xa6\\x64\\x03\\xce\\x68\\x5c\\x8e\\xab\\x96\\x5c\\x76\\x78\\xb1\\xb1\\x64\\xe0\\\n\\xf6\\x03\\xf7\\x5c\\xeb\\x76\\x64\\xf8\\xe4\\x64\\x01\\xa9\\x62\\x0a\\x2b\\x97\\\n\\xb6\\x62\\x20\\x3f\\x78\\x46\\xad\\x68\\x8e\\xd6\\xb2\\xd4\\x03\\x51\\x27\\x1a\\\n\\xa6\\xa2\\xc9\\xa7\\xdf\\x4c\\x5a\\x43\\x3f\\x39\\xc2\\x3e\\x99\\x7f\\x0c\\x82\\\n\\x22\\x05\\xcd\\x34\\x38\\x23\\x30\\x06\\x70\\x06\\x70\\xa2\\x62\\x57\\x3d\\xdf\\\n\\xd1\\x37\\x2e\\xae\\x2d\\x4b\\x8a\\x99\\x8e\\x83\\xbc\\x67\\xd5\\x05\\xb9\\xe9\\\n\\xf8\\xaa\\xf6\\xd8\\xcf\\x73\\x1e\\x29\\xc2\\xfc\\xeb\\x9f\\xb8\\x96\\x77\\xd6\\\n\\x9d\\xc6\\x96\\xf1\\x18\\xdf\\xe6\\xb8\\x35\\xdf\\xc9\\xe1\\x98\\x93\\x8d\\x81\\\n\\x52\\xdb\\xfc\\x91\\x9b\\xf2\\xc3\\x23\\x67\\x7b\\xc5\\x12\\x09\\xb8\\xfe\\x05\\\n\\x75\\x5d\\xb7\\x11\\x61\\xcf\\x51\\x8f\\x49\\x9f\\x84\\x00\\xaa\\xca\\xb0\\x18\\\n\\x83\\x6d\\x5a\\x48\\x9a\\x0e\\x22\\x8a\\x3f\\xe3\\x23\\x8b\\x88\\xc0\\xc0\\x50\\\n\\x08\\x4a\\x8b\\x07\\x31\\xf6\\xbe\\x54\\x6b\\xfc\\xf5\\x87\\x0e\\xed\\x67\\xbb\\\n\\x07\\x77\\x81\\xad\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\\xd8\\xf5\\x75\\x08\\x49\\\n\\x63\\x98\\xfc\\x8b\\xb6\\xcd\\x8d\\xfe\\x75\\x66\\x74\\x62\\xed\\x5c\\x58\\xa4\\\n\\xa8\\x5f\\x9e\\x7d\\x59\\xdb\\xba\\x97\\xc5\\x12\\xb1\\x19\\xad\\x2b\\x99\\x90\\\n\\xa7\\x5b\\x5a\\x6b\\x40\\xe8\\x8a\\x43\\xa4\\xf5\\x33\\x5a\\x05\\xcf\\xc5\\x74\\\n\\x66\\x26\\x76\\xb8\\x70\\xe4\\x96\\xe8\\x62\\xfb\\x43\\xca\\x93\\xf8\\xcd\\xa6\\\n\\x7b\\xe1\\xb7\\x08\\x88\\x7a\\x8e\\xda\\x91\\xd8\\x8e\\x75\\xf6\\xd2\\xbf\\x4a\\\n\\x44\\x52\\xc3\\xf1\\x48\\x1c\\x11\\xcb\\x82\\xc9\\x39\\x18\\xb7\\xa1\\xcd\\x18\\\n\\x34\\xb7\\x2a\\xc1\\x0a\\x01\\x8c\\x11\\xf2\\x45\\x17\\x33\\x99\\x02\\x1c\\xc3\\\n\\x00\\xa8\\xa2\\xdc\\x66\\x44\\x30\\x38\\x61\\x26\\x2b\\x30\\x95\\x0d\\x91\\x88\\\n\\x18\\x10\\x12\\x70\\xac\\xca\\xd1\\x26\\x84\\xc4\\x48\\x6e\\xcc\\xab\\x61\\xb5\\\n\\x3b\\x0b\\x53\\xa5\\x33\\xfb\\xac\\x23\\x5d\\x73\\xa9\\x29\\xf8\\x87\\x27\\xb1\\\n\\xac\\xf1\\x5c\\x94\\x3b\\x4d\\x1c\\x1a\\xde\\x7d\\xfe\\x9a\\xc4\\xea\\xdf\\x7a\\\n\\x32\\x9c\\x15\\x5a\\x56\\x7d\\x52\\x0d\\x46\\xec\\x94\\xfe\\x29\\x53\\x1a\\x8a\\\n\\x68\\x61\\x93\\x3c\\x39\\x78\\xb1\\x2c\\x06\\xd3\\x22\\x9c\\x02\\xcf\\xa2\\x3e\\\n\\x22\\x1e\\x3d\\x3c\\xe6\\xbe\\x62\\x3a\\x88\\x26\\xd3\\x49\\x1b\\xd3\\x79\\x9d\\\n\\x32\\xc2\\x32\\x96\\xb7\\x5a\\x77\\x08\\xa5\\x42\\xa1\\x34\\xe4\\x93\\x56\\x3a\\\n\\x19\\x3b\\x8d\\x7d\\xc6\\xf1\\xc9\\xca\\x91\\x7c\\xec\\xe2\\x0c\\xda\\x0f\\x81\\\n\\xe6\\x46\\xf0\\x54\\x02\\x01\\x54\\xed\\xc3\\x72\\xfc\\x2d\\x23\\x83\\x47\\x6e\\\n\\x74\\x8b\\x21\\x15\\x66\\x8b\\xb8\\xb2\\xa1\\xfb\\x1f\\xeb\\xa3\\xb5\\x3f\\x8c\\\n\\x58\\x16\\x84\\x54\\x90\\xcf\\x60\\x19\\x60\\x30\\x02\\xfd\\x07\\x85\\xf0\\x52\\\n\\x81\\x66\\xfd\\x99\\x0b\\x45\\x93\\x7c\\x69\\x8d\\x13\\x5f\\x7e\\xcf\\xa6\\xfb\\\n\\xd0\\x17\\x1d\\x83\\xb9\\xd4\\x80\\x75\\x04\\xfb\\x5f\\x5c\\x7b\\xcd\\x5f\\x6e\\\n\\x5c\\x7c\\xf6\\xf6\\x54\\x3c\\x86\\x98\\x65\\xc2\\x34\\x63\\x90\\xd0\\x30\\xec\\\n\\x9a\\xa3\\x5e\\x80\\xa6\\xa7\\x04\\x23\\x81\\xaa\\x1c\\x66\\x45\\x38\\x38\\x9d\\\n\\x13\\xc8\\x96\\x35\\x12\\x51\\x03\\xf1\\x88\\xb9\\x90\\xae\\x13\\x3c\\xcc\\x6e\\\n\\x68\\x38\\x6b\\xff\\xc4\\xd8\\xc4\\x55\\x03\\x91\\x23\\xc9\\x09\\x3e\\x0d\\xea\\\n\\x23\\xac\\xee\\x5e\\x8b\\x99\\xe4\\x68\\xb2\\xaf\\xef\\xf0\\x2a\\xee\\x27\\x7e\\\n\\x55\\xd2\\x25\\x97\\x14\\x07\\x94\\x86\\xcd\\x23\\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\\xf9\\xdf\\xa7\\x16\\xcf\\x60\\xd7\\xc0\\x6e\\x34\\x6f\\x6d\\xc0\\xf2\\\n\\x0b\\x16\\x61\\xb0\\x3c\\x7c\\xf9\\xfe\\xf2\\xa1\\xbf\\xe9\\x64\\x17\\xbf\\x1f\\\n\\x80\\x47\\x4f\\xe3\\x4f\\x10\\x11\\xca\\x52\\x82\\x02\\x81\\xa8\\x65\\x3e\\x23\\\n\\x09\\x1e\\x23\\x06\\x4f\\x81\\x95\\x7d\\x17\\xf5\\x81\\x09\\xe1\\x6b\\xe4\\xe7\\\n\\x72\\x30\\xb2\\x73\\x48\\xa6\\x63\\x83\\xa2\\xa3\\x25\\x03\\x83\\x9f\\xfe\\xc7\\\n\\x74\\x24\\x59\\x7b\\x82\\x7f\\x24\\x39\\x57\\x5e\\xa2\\x39\\xe2\\xd5\\x2e\\x61\\\n\\xc5\\x9c\\x40\\xce\\xf4\\x40\\x2f\\x7b\\xf1\\xe1\\x15\\x6f\\x7e\\xd5\\xcd\\x76\\\n\\x84\\xcf\\x41\\xba\\x4f\\xeb\\xa2\\x11\\x80\\x50\\x6b\\x84\\x4f\\xc5\\x28\\x68\\\n\\x40\\x48\\x81\\x72\\x50\\x86\\xeb\\x95\\x6a\\x26\\x68\\xfa\\xef\\x93\\xed\\x75\\\n\\xcf\\x9f\\x19\\x1b\\xc4\\x23\\xfb\\xb6\\x20\\xba\\xb2\\x15\\x25\\xb7\\x80\\x65\\\n\\xb9\\x8e\\x87\\x5e\\xbe\\xee\\xa5\\x6f\\xd6\\x5a\\x09\\x11\\xf8\\xe8\\x6a\\x48\\\n\\xeb\\xcb\\xcf\\x6d\\x80\\x13\\x4f\\x3c\\x11\\x73\\x52\\x77\\x18\\xa4\\x12\\xdc\\\n\\x20\\xa5\\x19\\xc9\\x6a\\xdc\\x01\\xce\\x98\\x60\\xe0\\x06\\x11\\xde\\xae\\x39\\\n\\xc0\\x04\\xc1\\x8a\\xc5\\x00\\xdf\\xa5\\xd9\\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\x17\\x93\\x08\\xf3\\x85\\x06\\x35\\x36\\x9e\\x28\\xcf\\x4e\\x41\\xd5\\\n\\xa7\\x3d\\x9e\\x8c\\xdf\\x03\\x45\\xee\\x71\\x68\\x3b\\x45\\x56\\x00\\x55\\x20\\\n\\x3e\\x13\\x51\\x18\\x81\\x40\\x9a\\xec\\x29\\x95\\xdd\\x18\\x36\\xf2\\x5b\\x1d\\\n\\xb2\\xcf\\xbe\\x67\\xf3\\x3d\\x98\\x68\\x72\\x81\\x46\\x0b\\xd1\\x21\\x94\\xaf\\\n\\x6b\\x7f\\xe1\\x1b\\x4c\\x6e\\x1e\\x99\\x0f\\x80\\x88\\x48\\x01\\xf0\\xb4\\x86\\\n\\xa7\\x35\\x82\\x6a\\x83\\x06\\x71\\xb4\\x51\\xc3\\xf1\\x4b\\x29\\xe9\\xc5\\x13\\\n\\x69\\xef\\xcc\\x0b\\x5e\\xe0\\x99\\x21\\x85\\xdb\\xbf\\xf9\\x1f\\x88\\xcc\\x78\\\n\\xa8\\x29\\x33\\xc4\\x46\\xca\\x28\\x3e\\xb4\\x03\\xdf\\x7d\\xf5\\x5f\\x60\\xfc\\\n\\xc0\\xe1\\xfb\\x0c\\x1e\\xab\\x17\\xbe\\xf0\\x34\\x91\\xa7\\x01\\x4f\\x03\\x1e\\\n\\x4e\\xb1\\xaa\\x7f\\xa7\\xe6\\x4f\\x13\\x83\\x71\\x18\\x86\\x51\\xec\\x8e\\x75\\\n\\xbf\\xf7\\x06\\xbc\\xe4\\x00\\x0a\\x21\\x86\\x3a\\x87\\x71\\xf7\\x63\\xb7\\xc3\\\n\\xcc\\x31\\x94\\x3a\\x45\\xe3\\x10\\x1f\\xfb\\x77\\xad\\xf4\\xf9\\xcf\\xc4\\x42\\\n\\x11\\x11\\xb2\\x5e\\x09\\x79\\xbf\\x0c\\x62\\x15\\x7f\\x55\\x9f\\x72\\x29\\x80\\\n\\x69\\x68\\x15\\x8a\\xfa\\x33\\xcf\\xfc\\x66\\xea\\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x61\\x2e\\xe7\\x1c\\x75\\x75\\x75\\x1b\\x53\\xc9\\xd4\\xda\\x74\\x2a\\xb5\\x25\\\n\\x1a\\x71\\x76\\x4a\\x71\\xb4\\x1e\\x59\\x88\\x00\\x9d\\x5d\\x3d\\x80\\xd0\\x95\\\n\\xaa\\xba\\x13\\x62\\x2c\\xa5\\x95\\x92\\x50\\x90\\xd0\\x8a\\x2a\\xa9\\x39\\xc6\\\n\\xa0\\xa1\\x41\\x0a\\xc4\\xd4\\xf1\\xe5\\x28\\x0a\\x84\\x58\\x24\\x81\\x06\\x37\\\n\\x85\\xd2\\x60\\x1e\\x9e\\xed\\x83\\xb8\\x01\\xa6\\x34\\x7c\\x25\\x91\\xed\\x9f\\\n\\x85\\x92\\x1a\\x24\\x15\\xbc\\x52\\x19\\xe4\\x98\\x58\\x74\\xfe\\x2a\\x28\\x21\\\n\\x91\\xe6\\x1c\\x0d\\xb5\\xf5\\x88\\xdb\\xf1\\xb1\\xa6\\x74\\xcb\\x9b\\x0f\\xdf\\\n\\xd3\\xf7\\xb3\\x07\\x1a\\xee\\xeb\\xd9\\x97\\xd8\\x85\\x3b\\xb7\\x26\\x71\\xf1\\\n\\xc5\\x97\\x62\\xaa\\x69\\x6e\\xc9\\xf6\\xc3\\x3b\\xbf\\x71\\x5e\\xfc\\xbc\\xd7\\\n\\x03\\xd8\\xf1\\x94\\xc1\\x0c\\x07\\x4a\\x05\\x03\\xca\\x3a\\x0c\\xc0\\x7d\\x1a\\\n\\x6f\\x4d\\x83\\x28\\x56\\x20\\x8a\\x96\\x19\\x69\\xc7\\x36\\xca\\xf0\\xfd\\xe9\\\n\\x4e\\xa5\\x52\\x26\\x80\\xf0\\xb4\\x05\\x23\\x79\\xe1\\x51\\xd9\\x98\\x90\\x09\\\n\\x99\\x29\\xc5\\x3d\\x2f\\x40\\x98\\x88\\x14\\xad\\xba\\xe4\\xe1\\x48\\xc4\\x46\\\n\\xa8\\x4f\\x8d\\x44\\xad\\x34\\x4a\\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2\\xd0\\xff\\x0d\\x71\\x01\\x11\\xc1\\xb0\\x0c\\\n\\x88\\x20\\x44\\x71\\x26\\x83\\xf3\\xd3\\x6b\\xf0\\xea\\xb3\\x5e\\x52\\xfc\\xec\\\n\\x75\\x9f\\x7e\\xd5\\x35\\xee\\x75\\x7d\\xe4\\x7a\\x18\\xec\\x9a\\xc0\\xaf\\x77\\\n\\xdc\\x87\\x44\\x06\\xe0\\x8d\\xba\\xe5\\xb1\\x60\\xf7\\x67\\x1c\\xb2\\x57\\xd1\\\n\\x71\\x5c\\xc5\\x93\\x0c\\x88\\x24\\x40\\xf3\\xa7\\x59\\x06\\x94\\x86\\x0c\\x41\\\n\\x60\\xdc\\x00\\xb1\\xa0\\x27\\x10\\xb3\\xcf\\x3a\\xd1\\xf8\\xec\\x9a\\x5a\\xaa\\\n\\xc2\\x5b\\x69\\x0b\\x45\\xbf\\x46\\x4a\\x01\\x44\\x2d\\xcc\\xed\\xee\\x43\\x66\\\n\\xe7\\xe1\\x93\\xba\\x49\\xc4\\x19\\xda\\x6e\\xb9\\xfc\\xc4\\xf4\\x94\\x5e\\x20\\\n\\xda\\xc0\\x89\\xd3\\x13\\x93\\x07\\xae\\xf5\\x9b\\xbc\\xbf\\x6d\\x6f\\xe8\\x6c\\\n\\x7e\\xf8\\xe1\\x87\\xb1\\xb7\\xbc\\x0f\\xb5\\xeb\\xeb\\xe1\\x0f\\x84\\xde\\x59\\\n\\xea\\xec\\x7f\\xe0\\x26\\xfb\\x49\\xc5\\xf5\\x94\\x50\\x5a\\x54\\x68\\x20\\x46\\\n\\x20\\x46\\x51\\xce\\x39\\x03\\x29\\x75\\x64\\x7c\\x9f\\x5e\\xde\\xb9\\xbe\\xc4\\\n\\x48\\x83\\x94\\x01\\x68\\x17\\x91\\x78\\x12\\x89\\xc4\\x32\\xd4\\xd7\\x76\\x4e\\\n\\x76\\x76\\x74\\x8c\\xfe\\xf0\\xc7\\x3f\\xc4\\xcc\\xec\\x0c\\x5a\\x5b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\\x3b\\x81\\x17\\xe0\\xf2\\x1f\\xdf\\x74\\xf6\\x8d\\x9f\\xf0\\\n\\x85\\x8f\\x4a\\x73\\xa8\\x10\\x4a\\x29\\x70\\xce\\x50\\x2a\\x96\\xce\\xc9\\x66\\\n\\xb2\\xdf\\x2b\\x14\\xf2\\x8b\\x73\\xb9\\xec\\xb0\\xe7\\xea\\xc2\\x84\\x5d\\x98\\\n\\xae\\x6f\\xa8\\x87\\xef\\x6a\\x80\\x13\\xd2\\x89\\x46\\x74\\xb6\\xf6\\x20\\x9e\\\n\\x48\\x39\\x3f\\xf9\\xd9\\x4f\\xda\\x36\\x6f\\x79\\x50\\x6c\\x58\\x77\\x96\\x6f\\\n\\x18\\x86\\xe0\\x9c\\x9b\\x9c\\x33\\x1f\\x40\\x51\\x69\\x0d\\x11\\xa2\\x52\\x2b\\\n\\x22\\x09\\x50\\x8c\\x83\\x99\\x00\\x33\\x01\\x32\\xc1\\x19\\x07\\xab\\xd6\\x9d\\\n\\x1c\\xbb\\xe7\\xec\\x48\\x14\\xdc\\x30\\xa0\\xa4\\x32\\x49\\xea\\x56\\x39\\x57\\\n\\xbe\\xc2\\xcd\\x15\\xce\\xf7\\x02\\x59\\x60\\xcc\\x90\\x5a\\x6b\\x26\\x95\\x60\\\n\\x92\\x34\\x94\\xd2\\x4c\\x2b\\x69\\x08\\xad\\x20\\xb4\\xe2\\xa1\\xd2\\x4c\\x42\\\n\\x41\\x69\\xc9\\xa0\\x39\\x18\\xb3\\xa4\\x94\\xae\\x85\\x10\\x96\\x9b\\xc9\\xfd\\\n\\x3c\\xd2\\x92\\xfc\\x45\\x58\\x90\\x65\\xa5\\xf4\\xa1\\x8f\\xaf\\xf9\\xc4\\xab\\\n\\xde\\xfa\\xf8\\x9b\\x7f\\x3e\\xb0\\x7c\\x30\\xf1\\x58\\x71\\x2f\\x6a\\xb6\\x36\\\n\\x63\\xc3\\x0b\\x36\\x62\\x77\\x78\\xf0\\xc2\\xf8\\x4c\\xec\\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\xff\\xc5\\xdd\\x2f\\x7e\\xb9\\x2f\\x7c\\x11\\\n\\xe5\\x06\\x34\\x04\\x94\\x16\\xe0\\x8c\\xc1\\xf3\\x82\\xc6\\x2d\\x77\\xee\\xff\\\n\\xc8\\x92\\xfa\\x33\\x97\\x7c\\xf5\\x53\\x37\\xa2\\xe8\\x66\\x31\\x38\\x72\\x10\\\n\\x52\\x10\\xea\\x13\\xf5\\xc8\\xce\\x94\\x00\\xa6\\x10\\x8a\\x00\\x42\\x7a\\x88\\\n\\xa5\\x09\\xe9\\x64\\x03\\x86\\xfa\\xa6\\x71\\x70\\xef\\x30\\x5c\\xef\\xf6\\x25\\\n\\xa1\\xf4\\x96\\xc4\\x93\\x4d\\xe8\\x39\\xe3\\x8a\\x45\\x4d\\x9d\\x4b\\xfb\\x6c\\\n\\xc7\\xfe\\xa0\\x63\\x30\\xc5\\x6a\\x1c\\x40\\x4b\\x00\\x92\\x11\\xe3\\x60\\xcc\\\n\\x84\\x42\\x08\\xc9\\x08\\x86\\x81\\xca\\xf1\\x5d\\x1d\\x18\\xa4\\xa5\\xc2\\xfe\\\n\\x07\\xb6\\x56\\xbe\\x9f\\xc9\\x4b\\x6c\\x70\\x76\\x46\\xa6\\x55\\x7d\\x4f\\x62\\\n\\x2d\\xa2\\xfe\\x38\\xa2\\xe0\\xf0\\x39\\x03\\xe7\\x06\\x4c\\x46\\x70\\x1c\\x07\\\n\\x4e\\xc4\\x06\\x63\\x06\\xa4\\xd4\\x70\\xcb\\x65\\xb8\\x7e\\x19\\x42\\x49\\x68\\\n\\xcd\\xe0\\xcb\\x00\\x45\\xee\\x61\\x8d\\xaa\\x87\\x9e\\x9e\\xc6\\xf0\\x63\\xfb\\\n\\x36\\x96\\x09\\xdf\\x52\\x6e\\x90\\x8d\\xaf\\xac\\x45\\x4b\\x6d\\xeb\\x17\\xfe\\\n\\x5c\\xbd\\xed\\xe2\\xaf\\x0c\\x7e\\xe9\\xba\\xfc\\xe2\\x00\\x77\\xed\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\x91\\x9a\\x44\\x2c\\xb8\\x60\\xf1\\x8b\\x2a\\x8c\\x8d\\xd6\\x44\\\n\\x54\\x21\\xd1\\x15\\xa8\\x12\\xd4\\x60\\xbe\\x61\\x80\\xa6\\x79\\x3f\\xb0\\x63\\\n\\x45\\x77\\xc5\\xba\\x71\\x14\\x75\\x63\\xcb\\x91\\x54\\xe3\\xca\\xfa\\x2b\\x6a\\\n\\xe3\\x40\\xb9\\x80\\x90\\x6b\\x70\\x70\\x30\\xc3\\xac\\x94\\x36\\x18\\x66\\x85\\\n\\x0b\\x25\\x06\\x82\\x01\\x11\\x86\\x08\\xc3\\x00\\xa1\\x0a\\xa1\\xa1\\xc0\\x42\\\n\\x09\\x62\\x80\\xe5\\x71\\x8c\\x1e\\x1c\\x41\\x79\\xed\\xd2\\xfd\\x46\\x77\\x53\\\n\\x59\\xfb\\x21\\xea\\x97\\x76\\x61\\xbd\\xbd\\x01\\x57\\x7b\\x57\\xdf\\x38\\xf6\\\n\\xd3\\xd1\\xad\\x3f\\x9a\\xfd\\xd1\\xfa\\x89\\xae\\x39\\xdc\\xb7\\xfd\\xf7\\x78\\\n\\x7e\\xdd\\xe5\\xb0\\x3a\\x6b\\xa2\\x07\\x0e\\x1f\\x7e\\x7f\\x8f\\xea\\x38\\x68\\\n\\x92\\xb9\\xed\\x58\\xb7\\xbc\\xb2\\x5b\\x22\\x30\\x71\\x01\\x42\\x76\\x0f\\x08\\\n\\xd1\\x93\\x04\\x3b\\xb6\\xaf\\x41\\xb2\\x9a\\x7d\\x82\\xd6\\x7e\\xf4\\xb4\\x06\\\n\\xa3\\x92\\x55\\x55\\x8b\\xd6\\xa4\\xa4\\x26\\x68\\x02\\xe3\\x86\\x6f\\x44\\xcc\\\n\\xf2\\x09\\xad\\x8c\\x95\\x86\\xb9\\xbc\\xb5\\x7a\\xbe\\x1d\\x2d\\x76\\xe7\\x8c\\\n\\xc3\\x73\\x5d\\xfb\\xe0\\xdc\\xe1\\x57\\xfa\\xed\\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0f\\xed\\x51\\x4a\\x41\\x4a\\x60\\x71\\x47\\x07\\xfc\\x20\\xc0\\xbc\\xcb\\\n\\xaf\\xa5\\xaa\\x28\\xbf\\x51\\x11\\xda\\x02\\xb2\\x5a\\x02\\x41\\x9c\\x34\\x48\\\n\\x0b\\x89\\xc3\\x9b\\x1e\\xc2\\xea\\x17\\x5c\\x0a\\x37\\x97\\x03\\x4f\\x46\\xb3\\\n\\x89\\xeb\\xce\\xfc\\x88\\xdf\\x37\\x91\\xe0\\x96\\x19\\x56\\x26\\x2d\\x90\\x22\\\n\\xc6\\x14\\xe7\\x5c\\x13\\x91\\x22\\x00\\x9a\\x31\\xad\\xcc\\x6a\\xf1\\x56\\xc5\\\n\\xed\\x81\\x86\\x06\\xd3\\x80\\x92\\x8a\\x10\\xb3\\x10\\xee\\x1b\\xd7\\x3a\\x38\\\n\\x9e\\xea\\x63\\x8c\\x63\\xfe\\x6c\\x2a\\x8b\\xb2\\x24\\xa2\\xdb\\x56\\xe6\\xd6\\\n\\x2e\\x1d\\x53\\x93\\x6f\\xc9\\xb5\\xcf\\xe2\\xae\\xbe\\x7b\\x70\\xf3\\x9e\\x24\\\n\\x7a\\x57\\x35\\xe1\\xf6\\x7d\\x77\\xbc\\xbd\\xb6\\xaf\\x66\\xb0\\x35\\xde\\xf6\\\n\\xb9\\xb4\\x13\\x43\\xd2\\x49\\x56\\x3f\\x7f\\x14\\x30\\x3a\\xc1\\x9d\\x43\\x80\\\n\\x32\\x8f\\x71\\xf0\\x13\\x96\\x56\\xba\\x32\\x0e\\x41\\x12\\x18\\xcc\\xe0\\xf4\\\n\\xe6\\x19\\x99\\x3d\\x0f\\x12\\x4d\\xcc\\x12\\x9a\\x11\\x94\\xf4\\x23\\xa1\\x5b\\\n\\x8a\\xce\\x83\\x51\\x0b\\x89\\xd8\\xe2\\x36\\x30\\xcb\\x38\\x86\\xd8\\x26\\x28\\\n\\xad\\x1a\\x47\\xe5\\xf0\\xcd\\x0d\\xcb\\xea\\xde\\xe0\\xe7\\x82\\xa6\\x3b\\x37\\\n\\xdf\\x83\\x42\\x77\\x00\\x27\\xc1\\xd1\\x73\\xa4\\xed\\xc8\\xd9\\x0d\\x6b\\xff\\\n\\x8a\\xb8\\x1e\\x91\\x5a\\x82\\x55\\xf3\\xc4\\x9c\\x38\\x14\\x57\\x50\\x51\\x1f\\\n\\xdc\\x8d\\x54\\x28\\x62\\x3a\\x3e\\x6b\\x11\\x06\\x02\\xbe\\x1b\\xc2\\xe0\\x1c\\\n\\xe3\\x03\\x93\\xda\\x30\\x75\\x49\\x0b\\x05\\x52\\x26\\x92\\xb1\\x38\\x76\\xf5\\\n\\x3f\\x8a\\x1f\\xfe\\xe6\\x36\\xdc\\x10\\xb9\\x46\\x9e\\x73\\xe9\\xaa\\x47\\x1a\\\n\\x1a\\x93\\x43\\x8e\\x69\\xfd\\x36\\x91\\xb0\\xbd\\xc1\\xa1\\x69\\x48\\xa9\\x40\\\n\\x44\\xd8\\xb0\\x62\\x39\\x3c\\xdf\\xaf\\xba\\xbb\\x15\\x9f\\x91\\x69\\x05\\x4d\\\n\\x02\\x9c\\x99\\xe0\\x30\\xa0\\x35\\xab\\x44\\xd3\\x4a\\x19\\x72\\xde\\xf7\\x53\\\n\\x1a\\x5b\\x7f\\xfc\\x53\\xac\\xbd\\xee\\x2a\\x48\\xa9\\xa0\\xca\\x01\\x50\\x0e\\\n\\x0a\\x10\\xba\\xd2\\x9f\\x87\\x57\\x3a\\xfb\\x6a\\xce\\x17\\x94\\x4a\\x9a\\x11\\\n\\xb4\\x38\\xa6\\x3a\\x4d\\x1f\\xed\\x1d\\xae\\xa5\\xaa\\xb0\\xe3\\xf2\\xe8\\x77\\\n\\x65\\xd5\\x88\\x78\\x76\\x6e\\x1a\\x5a\\x6b\\x18\\x60\\x68\\x4f\\xb5\\x22\\x11\\\n\\x89\\x07\\x17\\x77\\x5e\\xf0\\xa1\\xba\\x43\\xc9\\x45\\xdf\\xce\\x7e\\xfb\\x8a\\\n\\xf1\\xce\\x3e\\xfc\\x6a\\xdf\\x9d\\x78\\x65\\xea\\x6a\\x2c\\x5a\\x56\\x8f\\x9f\\\n\\xee\\xf9\\xcd\\x47\\x6f\\x0c\\x5f\\xbc\\x8f\\xa5\\xf0\\xeb\\x28\\x8f\\x57\\x09\\\n\\x47\\x0e\\x03\\xcb\\x60\\xf1\\x3a\\x68\\xcc\\xef\\x70\\x0b\\xa1\\xda\\xdb\\xa0\\\n\\x74\\x39\\xc2\\x94\\x81\\x50\\x2a\\xd8\\x66\\x62\\xf6\\xf4\\xce\\x4d\\x5b\\x56\\\n\\x65\\x99\\x96\\x20\\xc3\\x08\\x18\\xd3\\x20\\x84\\x9c\\x42\\x61\\x92\\x10\\x20\\\n\\x21\\x00\\xdf\\x87\\x95\\x8e\\x83\\x4c\\x03\\xa4\\x69\\x1e\\x58\\xe6\\x60\\x6e\\\n\\xec\\xca\\x78\\x5b\\xf2\\xbd\\xa4\\xd0\\xb4\\xe9\\xc1\\xbb\\xe1\\x45\\x72\\x88\\\n\\x37\\x70\\x18\\x43\\x4c\\xb7\\x87\\x5d\\x9f\\xd0\\x1a\\x9b\\x43\\x19\\x62\\x7e\\\n\\xeb\\x13\\x08\\x33\\xf9\\x39\\x64\\x4a\\x39\\x20\\xa2\\x20\\x53\\x2e\\xb4\\x23\\\n\\x00\\xc9\\x4e\\x08\\x04\\x0d\\x93\\x63\\xa4\\x7f\\x02\\x85\\x4c\\x11\\x22\\x50\\\n\\x71\\x46\\xbc\\xe2\\x63\\x92\\x86\\x6d\\x46\\x21\\x21\\x90\\x2b\\xe4\\xd2\\xc5\\\n\\x20\\xdb\\xc6\\xb8\\x84\\x08\\xb5\\xe7\\xb9\\xe1\\x82\\xea\\x46\\x08\\x81\\xa6\\\n\\xda\\x5a\\x28\\xa5\\x2a\\x4b\\x2b\\x40\\x4a\\x22\\x11\\x42\\x6b\\x09\\x70\\x0e\\\n\\xae\\x2a\\x05\\xf9\\x00\\xa0\\x48\\x29\\x49\\x0a\\x8a\\x34\\x42\\x19\\x60\\xfc\\\n\\xf0\\x61\\xd8\\x91\\xe8\\xb3\\x5e\\x6b\\x4c\\x20\\x18\\xc4\\x30\\xe7\\x17\\x31\\\n\\x1b\\xe4\\x01\\xad\\xe1\\x79\\x2e\\x98\\x06\\xe2\\x76\\x1c\\x9d\\xc9\\x76\\xf4\\\n\\x36\\x76\\xcf\\xbd\\x79\\xe5\\x9f\\xfd\\xcd\\x45\\x85\\x0b\\x0e\\x22\\x54\\xe8\\\n\\xab\\x3b\\x88\\xbb\\x77\\x6e\\x41\\xb2\\xdc\\x8c\\x44\\xa7\\x13\\x7f\\x28\\x77\\\n\\xf7\\xd7\\x2d\\x6e\\x2e\\x63\\x34\\xdf\\xa4\\x4a\\x81\\xc8\\x00\\x43\\x27\\x18\\\n\\xb5\\x81\\x51\\x1b\\x0c\\xd6\\x0d\\xa5\\xc3\\x36\\x49\\x5e\\x54\\x69\\x0b\\x8c\\\n\\x73\\x69\\x18\\xe9\\xb1\\xd3\\x3b\\x37\\x1d\\x35\\x81\\x88\\x09\\x44\\x4d\\xc1\\\n\\x4c\\xee\\x9a\\xc4\\x80\\x50\\x3b\\xa2\\x14\\x44\\x65\\x39\\x80\\x74\\x43\\x88\\\n\\xbc\\x07\\x92\\x15\\x20\\xe4\\xfc\\x2c\\x26\\x4b\\x53\\xd8\\x37\\xb1\\xff\\xa5\\\n\\x6e\\xbd\\xff\\xa5\\xba\\x68\\x6d\\xcd\\xa6\\x6d\\x8f\\x62\\x3f\\xdb\\x87\\xf8\\\n\\xe2\\x08\\xcc\\x7e\\x8e\\x17\\xa6\\xae\\xfc\\xe0\\x95\\xe7\\x5d\\xf3\\x83\\x9e\\\n\\xae\\x65\\xa8\\x6f\\x68\\x80\\x19\\x31\\x61\\x38\\x06\\x66\\x8b\\x73\\x08\\x44\\\n\\x80\\xb0\\xda\\x34\\x4a\\x1b\\x0a\\x70\\x04\\x74\\xad\\x0b\\x6d\\x4b\\x68\\x01\\\n\\x28\\xa1\\xc1\\x39\\xc3\\xe8\\xd0\\x34\\x32\\x73\\x25\\x28\\x70\\x28\\xcd\\x48\\\n\\x57\\x9b\\x20\\x85\\x61\\x88\\x74\\xba\\x11\\x89\\x68\\x0b\\xbc\\xb2\\x5b\\x9b\\\n\\x9b\\x2d\\xd4\\xdd\\x7f\\xff\\x7d\\x18\\x19\\x19\\x82\\x69\\x5a\\xd0\\x1a\\x08\\\n\\x43\\x81\\xf3\\xd7\\xac\\x39\\xa1\\x10\\x9e\\x80\\x4a\\x0d\\x8c\\x12\\x20\\x4e\\\n\\x50\\xba\\x32\\xce\\x83\\x81\\x81\\x11\\x13\\xc4\\x98\\x26\\xc6\\xc0\\x0d\\x03\\\n\\x7e\\xa9\\x84\\xfb\\xff\\xed\\x3b\\xb0\\xa3\\xd1\\x6a\\x49\\x6d\\xa5\\xbc\\xa2\\\n\\x5a\\x35\\x5a\\xf9\\xf3\\xa9\\xa6\\x1b\\x9c\\x62\\x19\\x9a\\x90\\x97\\x65\\x8c\\\n\\xfb\\x59\\x78\\xd2\\x47\\xa8\\x05\\x0c\\x6e\\x20\\x16\\x8d\\xc1\\x76\\x22\\x90\\\n\\x4a\\x22\\x54\\x02\\xa5\\xb0\\x0c\\xd3\\x34\\x1f\\x7b\\x55\\xf3\\x2b\\x3e\\xb1\\\n\\x7c\\x62\\xe9\\x1c\\xd2\\x2e\\xb6\\x9a\\x5b\\xb1\\xe9\\xd1\\x5d\\x68\\x77\\x9a\\\n\\x51\\x6a\\x19\\x6d\\xf9\\x65\\xff\\x9d\\xff\\x66\\x72\\xd3\\xe6\\x8c\\x57\\xdc\\\n\\x25\\x26\\x01\\x2a\\x40\\x53\\xb1\\xba\\x0a\\xd0\\x54\\xde\\x40\\xa4\\x0c\\x50\\\n\\x00\\x68\\x76\\xd8\\x34\\x6a\\xa6\\x4f\\xeb\\x63\\x9a\\xd5\\xc5\\xe6\\x79\\x46\\\n\\xcf\\x98\\xb5\\x73\\x16\\x11\\xca\\xc5\\xa0\\xd6\\x9b\\xc9\\x35\\x6b\\x5f\\x40\\\n\\xb9\\x3e\\x9a\\xae\\x3c\\x0b\\x76\\x73\\x2d\\x44\\x10\\x40\\x6a\\x89\\x50\\x8b\\\n\\xd5\\xe5\\x44\\xa9\\x25\\xdd\\x1c\\xaf\\xdb\\xf1\\xc4\\x4e\\xec\\x1e\\xdf\\x8b\\\n\\xf8\\xfa\\x06\\x64\\x67\\x02\\x5c\\x11\\xb9\\xe4\\xab\\x17\\xf4\\x6e\\xfc\\xa2\\\n\\x32\\x54\\xa8\\x94\\x01\\x22\\x86\\xe9\\xd9\\x69\\x08\\x21\\xa0\\xb4\\x3a\\xa6\\\n\\x46\\x46\\x1f\\x6d\\x60\\x49\\x1a\\x01\\xb9\\x68\\x58\\x1d\\x41\\xed\\xca\\x76\\\n\\xb8\\xbe\\x07\\x15\\x00\\xa9\\x9a\\x44\\x95\\x0b\\x55\\xa3\\x86\\x95\\x85\\x54\\\n\\x0a\\x7e\\xa8\\x10\\x4a\\x8d\\x30\\x50\\x88\\xc7\\x6b\\x46\\xba\\x3b\\xbb\\x07\\\n\\x66\\x67\\x67\\x51\\x72\\x33\\x28\\xbb\\x25\\x24\\x1b\\x2c\\xbc\\xe0\\x86\\xf3\\\n\\x00\\xc7\\x06\\x84\\x3c\\x3a\\x1e\\x50\\x29\\x40\\x29\\xae\\x94\\x04\\x69\\x05\\\n\\x70\\x82\\x64\\x80\\x49\\x04\\xbe\\xd0\\xaa\\xaf\\x3a\\x44\\x48\\x69\\x98\\xc9\\\n\\x04\\x52\\x57\\x9c\\x89\\x03\\xb3\\x7d\\x15\\x32\\xbc\\x19\\x20\\x0a\\xab\\x9e\\\n\\x27\\x55\\x67\\x54\\x6a\\x48\\xa5\\xaa\\x09\\x2c\\x05\\x68\\x76\\xdc\\x3c\\xc2\\\n\\x4a\\x1c\\x4d\\x60\\x26\\x01\\xbe\\x06\\x6b\\x23\\x38\\x09\\x06\\x26\\xc4\\x82\\\n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\xa9\\xdf\\x7f\\x3a\\x5b\\x9e\\\n\\x49\\x1b\\x6a\\x11\\x5a\\xad\\x97\\xc1\\xe2\\x4e\\x93\\x36\\xfd\\x38\\x98\\x81\\\n\\xd0\\x97\\xda\\x34\\x1a\\x8e\\x30\\xe6\\x9c\\xde\\x3c\\xa3\\x39\\x90\\x99\\x37\\\n\\x45\\xd0\\xa1\\x2c\\xd8\\xcd\\xe9\\xac\\x35\\xa0\\xe1\\x4e\\x4e\\x2f\\x2a\\xcc\\\n\\xe5\\xba\\x62\\xad\\x8d\\xfb\\x85\\x2c\\xf5\\xb8\\x09\\xef\\x25\\xf1\\x9a\\x14\\\n\\xed\\x7d\\x74\\x3b\\x72\\x99\\x2c\\x7a\\x97\\x2e\\x47\\x30\\x5e\\x42\\xc2\\xad\\\n\\x51\\x64\\x45\\x96\\x4f\\x96\\x27\\xfe\\xac\\xa8\\x72\\x3d\\x44\\x08\\x48\\x9b\\\n\\x15\\x9e\\x4d\\xcf\\x0f\\x56\\xa4\\x13\\x34\\xb8\\x04\\x4d\\x1a\\x60\\x0c\\x24\\\n\\x34\\x20\\x35\\xb4\\xa1\\xb5\\x36\\xaa\\x6e\\x19\\xaf\\xb6\\x9c\\xad\\xb4\\x13\\\n\\x86\\x21\\x48\\x43\\x02\\x54\\x69\\xdb\\x2f\\x54\\x35\\xa2\\xad\\x72\\x7c\\xea\\\n\\x78\\xbf\\x8b\\x48\\x03\\x9a\\xa4\\x26\\xc6\\xa1\\x15\\xc0\\xb9\\x2e\\x78\\x40\\\n\\x38\\xdd\\x7f\\x81\\x0d\\x02\\xa9\\x0a\\xdf\\x4d\\x1a\\x30\\x0c\\x0b\\x96\\x15\\\n\\xc1\\xe4\\xec\\x54\\x5b\\x36\\x3f\\xf3\\xb6\\x48\\x6d\\x22\\x2b\\x74\\x21\\x22\\\n\\x95\\x29\\x09\\xd0\\x8a\\x14\\x3b\\x7a\\xe0\\xea\\x85\\x79\\x5f\\x0c\\x50\\x80\\\n\\x26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\\x5e\\xc1\\x60\\x95\\x57\\x99\\xa7\\x58\\x98\\x66\\\n\\x55\\xa1\\xef\\x7c\\x0e\\x43\\x57\\x9b\\xc5\\xcf\\x83\\xc6\\xac\\x70\\x93\\x26\\\n\\x83\\x1d\\x61\\x10\\x22\\x0f\\x05\\x01\\x46\\xd5\\x19\\xcd\\xcc\\x00\\x0c\\x0e\\\n\\x01\\x0d\\x4f\\xba\\xd1\\x52\\xb4\\xfc\\x09\\xaa\\x37\\x11\\x58\\x05\\x84\\xcc\\\n\\x06\\x97\\x0c\\x82\\x8b\\x2a\\x5a\\x68\\x81\\xe7\\x24\\x10\\x98\\xc6\\xd1\\x6c\\\n\\x0b\\x34\\x84\\x94\\x50\\xf2\\xe8\\x74\\xae\\xca\\x67\\x20\\x28\\x42\\x85\\x24\\\n\\x5f\\x70\\x88\\x8b\\x60\\x5a\\x83\\xb4\\xa8\\x2a\\xd0\\x59\\x15\\xe2\\x74\\x42\\\n\\x34\\x33\\x7f\\x5f\\x04\\x09\\x08\\x11\\xc2\\x45\\x0e\\xaf\\xbc\\xe6\\x95\\x18\\\n\\xf9\\xdd\\x08\\xbe\\x3b\\xf2\\x3d\\xb8\\xcb\\x0b\\x78\\xe0\\xe0\\x7d\\x68\\xe8\\\n\\x8b\\x60\\xd1\\x92\\x95\\x34\\x30\\x31\\xfa\\xa6\\x7d\\x63\\xfd\\xe8\\xe9\\xac\\\n\\x7f\\x9c\\xac\\x99\\x6b\\x98\\x10\\x2c\\x08\\x3c\\x40\\x37\\x1f\\x0a\\x44\\x61\\\n\\x34\\x94\\x21\\x80\\x65\\xa7\\x2f\\x18\\x45\\x75\\xe8\\x4e\\xa5\\x8b\\x3a\\x2f\\\n\\xea\\xa8\\x9d\\x35\\xed\\x38\\xcc\\x92\\x51\\x3b\\xb3\\xfb\\xd0\\xa5\\x53\\x8b\\\n\\xdd\\x52\\x7c\\x51\\xed\\x1b\\xa7\\xf6\\x8f\\x19\\xb9\\x91\\x59\\xac\\x3a\\x67\\\n\\x6d\\x45\\x83\\x18\\x86\\x28\\x59\\x1c\\x96\\x14\\xb0\\x6c\\x82\\x8a\\xda\\xb0\\\n\\x45\\x0c\\x4c\\x19\\xd0\\x5c\\x56\\xf8\\xbb\\x85\\x59\\xce\\xc7\\xc7\\x8f\\xf3\\\n\\xa5\\xaf\\xc4\\x18\\x48\\x55\\x65\\xfc\\xac\\x52\\xbf\\xac\\xb5\\x86\\x64\\x04\\\n\\x01\\x0e\\x82\\xae\\x2a\\xb1\\xab\\xf6\\x48\\x57\\x1e\\x1b\\x03\\x5f\\xa0\\x45\\\n\\x2a\\x06\\x4a\\x1c\\xf3\\x2c\\x2b\\xd2\\x30\\x45\\x0a\\x4c\\x9b\\x15\\xe0\\x3b\\\n\\x1a\\x51\\x23\\x8a\\x22\\xc5\\xe0\\xc2\\xae\\x80\\x90\\x31\\x70\\xcb\\x82\\x69\\\n\\xd9\\x20\\x62\\x30\\x2d\\x03\\x76\\xd4\\x41\\xc4\\xb1\\x60\\x86\\x0e\\x02\\x1e\\\n\\x85\\xa1\\x78\\x35\\xdd\\x36\\x4f\\x43\\xe9\\x79\\x33\\x56\\xe9\\xbd\\x59\\xd9\\\n\\x31\\x95\\xb9\\x88\\x46\\x25\\xad\\xa7\\x16\\x82\\x9e\\x6a\\xbd\\x10\\x01\\xaa\\\n\\x5a\\x88\\x50\\xe9\\x7b\\x55\\x2d\\x59\\x00\\x1d\\xe5\\x41\\xf5\\xd1\\xb9\\x93\\\n\\x54\\x9d\\x85\\x5d\\x55\\xdf\\x57\\xb6\\x18\\x33\\x00\\xee\\xa1\\x14\\x7a\\x50\\\n\\x26\\xe1\\x5d\\x57\\xfe\\x39\\xc6\\x7f\\x3e\\x8e\\xfb\\x46\\x36\\xc3\\xad\\x23\\\n\\x3c\\xf8\\xf8\\x56\\xd4\\x97\\x6a\\xe0\\x1b\\x61\\xfc\\x17\\x33\\x77\\xbd\\xbb\\\n\\x76\\x74\\x12\\xeb\\xba\\xca\\xe0\\x14\\xc5\\x4c\\x61\\x06\\xa0\\x55\\xbb\\xbc\\\n\\xc0\\xcd\\x3e\\xcb\\x55\\xaa\\xcf\\x3e\\x18\\xf9\\x7c\\x72\\x5d\\x03\\x30\\x4c\\\n\\xd7\\x48\\xa7\\x73\\x91\\x48\\x12\\x3c\\x50\\xfc\\xf0\\xf8\\xc4\\x7b\\x7f\\xf6\\\n\\xf8\\xed\\x37\\x67\\x06\\xd0\\xe8\\x3e\\x9a\\x41\\x7b\\xba\\x19\\x0f\\xd3\\x6e\\\n\\xe4\\x4b\\x53\\xb0\\x08\\x90\\xcc\\x04\\x17\\x47\\x4f\\x31\\xa9\\x9c\\x8a\\x24\\\n\\x8b\\x87\\x47\\x77\\x7b\\xf5\\xa6\\x62\\xbe\\x75\\xe7\\xc2\\xa9\\x5d\\xb1\\x21\\\n\\x8a\\x54\\xf5\\x38\\xab\\x3c\\x2c\\x76\\xec\\x71\\x58\\x05\\x33\\x69\\x3d\\x5f\\\n\\xa7\\x83\\xca\\x84\\x42\\x5e\\xa5\\x53\\xaa\\x56\\x8a\\xe6\\xcd\\x6b\\xf5\\xef\\\n\\x35\\x21\\x24\\x80\\x29\\x06\\x47\\x00\\x85\\x88\\x07\\x23\\x55\\x87\\x6b\\xa7\\\n\\x14\\x16\\x21\\x06\\xad\\x7c\\x84\\x7e\\xb9\\xd2\\x59\\xc2\\x64\\x48\\x19\\x51\\\n\\x8c\\xbb\\x01\\xbe\\xfb\\xc8\\x8f\\x50\\x48\\x15\\x11\\xcd\\x05\\xf0\\x0d\\xab\\\n\\x3a\\xfd\\x54\\x1d\\x1d\\xc5\\xa9\\x35\\x78\\xc5\\xc3\\xac\\x8e\\x80\\xd3\\xd5\\\n\\x96\\x7c\\x04\\xcb\\x30\\x61\\xc2\\xa8\\x7e\\xbe\\x05\\x1b\\x7d\\xcc\\x08\\x90\\\n\\xea\\x46\\x91\\xaa\\xd2\\x33\\x9c\\x51\\xd5\\xda\\x1e\\xdd\\xaa\\x54\\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\xca\\x87\\x3a\\x6e\\xea\\xb8\\xc0\\x33\\xf4\\x7b\\x94\\x05\\x34\\x86\\x84\\x6c\\\n\\xe8\\x42\\xe6\\x4a\\xd8\\x98\\x99\\xfb\\x72\\x4b\\xe4\\xaa\\x52\\xe0\\x78\\x11\\\n\\x93\\x73\\x4f\\x16\\x43\\x13\\x4c\\x6b\\xb2\\xb8\\x82\\x5e\\xc8\\x9a\\x90\\x86\\\n\\xe6\\x44\\x24\\x89\\x31\\x25\\x95\\x34\\x7d\\x3f\\x88\\x10\\x31\\x15\\xf8\\x7e\\\n\\xdc\\x0b\\xfc\\x18\\x11\\xa9\\x63\\xce\\x5d\\x10\\x94\\xa2\\x8a\\x54\\x08\\xd5\\\n\\xd7\\xd1\\x54\\x99\\xe7\\xf1\\xa4\\x8d\\x77\\x4c\\x9a\\x94\\x24\\x55\\x2d\\x6b\\\n\\x75\\x52\\x30\\x51\\x65\\x0f\\xd3\\xc2\\x86\\x65\\x5a\\x2b\\x29\\x25\\x53\\x44\\\n\\x06\\xb8\\xd4\\x32\\xc6\\x4b\\xa5\\x26\\x7f\\xc5\\x39\\xca\\xbf\\x80\\xe7\\x00\\\n\\x9d\\x2a\\x81\\x51\\x11\\xb6\\x71\\xf9\\xef\\x48\\xf1\\x41\\x29\\x73\\xf8\\x63\\\n\\x4c\\x6e\\x7a\\x76\\x33\\x30\\xd9\\xe2\\x02\\xb5\\x23\\x4b\\x3e\\xb2\\xb3\\xb3\\\n\\x39\\xa3\\x46\\xce\\xd5\\x95\\xc6\\x50\\x98\\x9b\\x46\\xf6\\xab\\x77\\x62\\xc3\\\n\\xdc\\x4d\\x75\\xcf\\x7b\\xe1\\xc5\\x1f\\x3b\\x52\\x57\\xcc\\xb9\\x51\\x8f\\x0c\\\n\\xcd\\x75\\x05\\x8c\\x21\\x31\\x30\\xad\\x35\\x55\\xc1\\x38\\x1f\\x5d\\xb2\\x05\\\n\\x3f\\x8b\\x2a\\x3a\\xe7\\xf9\\x41\\x64\\x5a\\x11\\x88\\x31\\xa6\\x45\\x28\\x48\\\n\\x48\\xc1\\x0c\\xd3\\xd4\\x20\\x82\\x14\\x21\\x05\\xa1\\x20\\xad\\x09\\x9c\\x53\\\n\\xf5\\x67\\x00\\x6e\\x98\\xda\\x30\\xb8\\xae\\xca\\xb1\\xa8\\x0a\\x46\\x08\\x21\\\n\\x48\\x09\\x45\\xdc\\xe4\\x7a\\xde\\x43\\x9b\\xf7\\x45\\xb5\\x56\\xb0\\x74\\xc5\\\n\\x4c\\x85\\x5c\\x33\\xd2\\x0a\\xae\\x2f\\x59\\x3a\\xd2\\xe4\\x0e\\x17\\xb2\\x6b\\\n\\x6d\\xc6\\xc0\\x1d\\x1b\\x7e\\x28\\xa1\\x42\\x85\\xf1\\xe2\\x2c\\x6a\\x92\\x89\\\n\\xfd\\xcb\\x93\\xb5\\xdf\\x91\\x66\\xa0\\x4d\\x66\\x28\\xc9\\x43\\x06\\xae\\x35\\\n\\x59\\x7c\\xe1\\xd3\\x6b\\x00\\x9a\\x34\\x11\\x48\\x2b\\xa6\\xc1\\x18\\x23\\xcf\\\n\\xf5\\x19\\xe7\\x1c\\x5e\\xd9\\xe3\\xc5\\x62\\x89\\x31\\xf6\\xa4\\x53\\x81\\x29\\\n\\x4d\\x4c\\x1f\\x1d\\x8e\\x04\\x80\\x8c\\x67\\x00\\xc6\\x85\\xe3\\x62\\x01\\x8c\\\n\\x20\\xcd\\x2a\\x84\\x58\\x05\\x8c\\x5a\\x29\\x49\\x21\\x07\\xc5\\x25\\xd7\\x67\\\n\\xab\\xae\\x98\\x7d\\x78\\xf8\\x8b\\xf2\\xce\\x5f\\x62\\xee\\xce\\x31\\xa8\\x73\\\n\\xf3\\x30\\x56\\xb6\\x3c\\x11\\xef\\x39\\xeb\\x17\\xa6\\xd5\\xec\\x69\\xf5\\xac\\\n\\x53\\x8c\\x7f\\x84\\x68\\x7a\\x72\\xe6\\xe8\\x91\\x20\\xc9\\x90\\x03\\xa3\\x37\\\n\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xbf\\x33\\x25\\x84\\x43\\x3d\\\n\\xad\\x88\\x72\\x85\\x96\\x42\\x0b\\xc2\\xad\\x33\\x1b\\x67\\xac\\x5f\\x9e\\x8b\\\n\\x98\\xbd\\x77\\xbe\\xa1\\x55\\xe7\\x17\\x3f\\x7e\\xfa\\x82\\x51\\x95\\xdd\\x85\\\n\\xa8\\x50\\x2b\\x39\\xcb\\x16\\xd7\\xdf\\xc5\\x46\\xd2\\x97\\xc7\\x67\\x26\\x22\\\n\\x9d\\x7e\\x1e\\x73\\xf9\\x10\\xbb\\x13\\x16\\x1a\\xd6\\x2f\\xb9\\x23\\xb1\\xa8\\\n\\x3b\\xa7\\x82\\x10\\xf1\\xf1\\x10\\x53\\xcb\\xa2\\xf0\\x95\\xfe\\x6f\\xdf\\x64\\\n\\xa5\\x35\\x0c\\x56\\xe9\\x6e\\xbb\\xb2\\x65\\x29\\x9a\\x8b\\x8f\\x83\\x8c\\x51\\\n\\x18\\xf6\\x06\\x48\\x66\\xc3\\x64\\x06\\x57\\x64\\x49\\x8b\\x0c\\x9c\\x57\\xb7\\\n\\x06\\xb9\\xa0\\x84\\xbd\\xc5\\xbe\\xca\\x03\\x36\\x38\\x42\\x25\\x50\\xaf\\x13\\\n\\x78\\xf4\\xf6\\xfb\\xd0\\xd6\\xdc\\x88\\x9a\\xb5\\x8b\\x10\\x72\\x76\\x94\\xad\\\n\\x92\\x0c\\x89\\x92\\x53\\x39\\xde\\x34\\x48\\x29\\xcd\\x25\\x23\\x30\\x32\\xa0\\\n\\x21\\xab\\x4d\\x45\\x35\\x18\\x05\\x11\\x56\\xd1\\x51\\xc8\\xc8\\x2c\\x50\\x72\\\n\\x70\\x8c\\x42\\x47\\x23\\x08\\x43\\xb4\\xd8\\x2d\\xa8\\xe7\\xf5\\x28\\xbb\\x1e\\\n\\xb8\\x61\\x3a\\x1a\\xea\\x47\\x9f\\xfa\\xdb\\x4f\\x5e\\x3f\\x39\\x35\\x8d\\x78\\\n\\x3c\\x89\\xbe\\xfe\\x89\\x6f\\xde\\x78\\xfd\\x8d\\x8b\\xa1\\xe8\\x0b\\x8c\\x51\\\n\\xb1\\x29\\xde\\x8c\\xf6\\x54\\x07\\x06\\x72\\x7d\\x38\\x92\\x39\\xb8\\xc0\\x57\\\n\\xfe\\x77\\x20\\xa9\\xb4\\x86\\x63\\x5a\\x30\\x43\\x85\\x35\\x8f\\x66\\x20\\xd2\\\n\\x09\\x80\\x1b\\xd2\\x77\\x94\\x2b\\xf2\\x03\\xc9\\xa6\\xbd\\x80\\xdd\\xd6\\x82\\\n\\xbc\\x2d\\x50\\x72\\x48\\xd9\\xe9\\x98\\xc7\\x62\\xd1\\x93\\x8e\\xe5\\x3b\\xfd\\\n\\x2c\\xe3\\xb1\\xa3\\x6d\\x6d\\x33\\x10\\xbd\\xad\\xf7\\x16\\xb7\\xb0\\x3d\\x98\\\n\\xec\\x5b\\x33\\x99\\x6c\\xd1\\x5b\\x52\\x8b\\xac\\xad\\x4e\\x33\\xbd\\x7c\\xe3\\\n\\x85\\x9b\\x1a\\x97\\x77\\x96\\x64\\x58\\xc9\\x1c\\xd4\\x49\\x81\\xbd\\x33\\x7b\\\n\\x41\\x00\\x7c\\x15\\x80\\xff\\x81\\x77\\x58\\xaa\\x8a\\x9f\\x6f\\x1b\\x26\\x3a\\\n\\xd3\\x35\\x58\\xdc\\x50\\x0f\\x5f\\x38\\x28\\xe7\\x04\\x2c\\x43\\x83\\x98\\x05\\\n\\x43\\x67\\xda\\xdd\\xcc\\xc8\\x8b\\xf3\\x9e\\xb9\\x9d\\x1b\\xb1\\x87\\x94\\x56\\\n\\x3a\\x66\\x38\\x38\\x27\\xbd\\x1a\\x76\\x04\\x70\\x12\\x09\\xfc\\xee\\x17\\x77\\\n\\x62\\x46\\x67\\xc1\\x8d\\xca\\x00\\x21\\x6b\\xba\\x84\\x96\\xba\\x36\\xcc\\x18\\\n\\x45\\x08\\x29\\x11\\xf7\\xa3\\x95\\x92\\xd1\\xf9\\x3c\\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\\x2b\\x8a\\x70\\x28\\x80\\x60\\x40\\xaa\\xd1\\xd5\\xa5\\xf5\\xc3\\\n\\x97\\x44\\xce\\x3d\\x13\\xd6\\x4d\\x33\\x18\\xfe\\xca\\x96\\x1c\\x79\\xaf\\xfd\\\n\\x66\\xf7\\x9b\\xdf\\xf8\\x71\\x33\\x6a\\xe6\\xa5\\xeb\\xe3\\x8f\\x75\\x3d\\xab\\\n\\x60\\x0c\\x66\\x86\\x8e\\x37\\x94\\x86\\xe1\\x91\\x14\\x3f\\x76\\x7a\\x97\\x22\\\n\\xba\\xfe\\x8a\\xd7\\xe7\\x37\\x17\\xaf\\x8b\\x0c\\x86\\x78\\xec\\xc8\\xe4\\x79\\\n\\x07\\x56\\x14\\x5e\\xbc\\xaa\\x8d\\xfd\\xf3\\xd1\\xae\\x27\\x21\\x38\\x71\\x34\\\n\\x5b\\x3d\\x18\\xf3\\x06\\x40\\xa4\\xa0\\x10\\x1c\\x9b\\x6b\\x39\\xc1\\x1a\\x36\\\n\\xc4\\x63\\x88\\x5a\\x36\\x56\\x36\\xb7\\x00\\x4a\\x21\\x0c\\x82\\x05\\xee\\x10\\\n\\xcc\\x02\\x78\\xac\\xd6\\xa4\\x91\\xbf\\x18\\xde\\xff\\xcd\\x8f\\x7d\\xf3\\xf3\\\n\\xdb\\x30\\xb4\\x37\\x82\\x19\\x7f\\x18\\xdf\\xff\\xf2\\xad\\xdf\\xea\\xfa\\xd2\\\n\\xbf\\x6f\\x05\\xf4\\x21\\xdb\\xe4\\xb0\\x38\\x03\\x90\\xa8\\x4c\\x21\\xb5\\x1d\\\n\\xd8\\x91\\xc8\\x4a\\x27\\x1a\\x2b\\x30\\xc6\\x86\\xe7\\xe9\\xbd\\x88\\x63\\x21\\\n\\xef\\x9d\\x28\\xee\\x55\\x52\\x03\\x5c\\x83\\x91\\x06\\x43\\xe5\\xf7\\x13\\x1a\\\n\\xaa\\x91\\x86\\xa1\\x0d\\xa4\\x75\\x23\\x3c\\xe1\\x61\\x76\\x2e\\x03\\xcb\\x36\\\n\\x91\\x48\\xc4\\xc1\\x0d\\x0b\\xfb\\x77\\x3d\\x7e\\xc3\\xbd\\xbf\\xf9\\x75\\xed\\\n\\x15\\xcf\\x7f\\x29\\xea\\x6a\\xbb\\xb0\\x7b\\xd7\\x30\\xcc\\x28\\xa1\\x26\\x1d\\\n\\x81\\x12\\x69\\x94\\x72\\x61\\x57\\x34\\xe2\\x60\\xaa\\x90\\x45\\xbe\\x90\\x87\\\n\\x1d\\xb1\\xa1\\x49\\x23\\x90\\x1e\\xda\\x8c\\x1e\\x30\\xc6\\x30\\x1c\\x1e\\x82\\\n\\xd0\\x01\\xf2\\x22\\x57\\x19\\x33\\xf7\\x24\\x50\\x2a\\xad\\x11\\x86\\x12\\xf1\\\n\\x48\\x04\\x67\\x2d\\xee\\x41\\x3a\\x1e\\x83\\x17\\xe4\\x11\\x40\\x57\\xc5\\xbe\\\n\\x0c\\x5a\\x06\\xf5\\x9e\\xbb\\xe5\\xed\\x60\\x61\\x63\\x4e\\x8c\\xa0\\x8c\\x8c\\\n\\x0e\\xaf\\x5d\\xf7\\xcd\\xd8\\x81\\x45\\xef\\xd7\\x6e\\x20\\x75\\x84\\xe3\\x8f\\\n\\x79\\x3d\\xab\\x12\\x32\\x62\\xfc\\xb8\\x05\\x62\\xd0\\xa1\\x84\\x4c\\xd7\\xa1\\\n\\xbb\\x25\\xf5\\x70\\x4f\\x9d\\x7c\\x3c\\x65\\x67\\xd0\\x14\\xa9\\xc1\\xb7\\x1f\\\n\\x99\\xfd\\xc4\\x58\\xb6\\xb4\\xa8\\xe0\\xb9\\x98\\x29\\x94\\x31\\x95\\x2b\\x61\\\n\\x3c\\x9b\\x47\\xa6\\x28\\x90\\x90\\x3d\\xb0\\xc3\\x66\\x68\\xc9\\x11\\x2a\\xff\\\n\\x84\\x79\\x77\\x02\\x06\\xda\\x6a\\x1b\\x71\\x56\\xd7\\x52\\xac\\x6c\\xe9\\x84\\\n\\x50\\x0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x56\\x44\\x00\\x37\\x14\\x08\\xa3\\xa8\\\n\\x1a\\x3d\\x4d\\xd5\\xff\\x4f\\x10\\x95\\xee\\x61\\x24\\x60\\x32\\x86\\x64\\x24\\\n\\x3a\\x53\\xad\\x84\\x47\\xcc\\xae\\xa9\\x24\\xd1\\x35\\x47\\x63\\x63\\x53\\x66\\\n\\xd5\\xca\\x33\\xf7\\xef\\xdd\\x95\\x79\\x11\\x17\\x05\\xac\\x5a\\xb7\\x01\\xf5\\\n\\x8d\\x0d\\x48\\xc6\\x63\\x88\\xc6\\x62\\x88\\x58\\x51\\x38\\x4e\\x04\\x06\\xe3\\\n\\x80\\xe0\\x10\\x21\\x20\\x85\\x46\\x28\\x24\\x5c\\x0f\\xf0\\x02\\x09\\xa1\\x14\\\n\\x9c\\x68\\x1d\\xda\\x1a\\x22\\x28\\xcc\\x8e\\x77\\x33\\x42\\x6d\\x3c\\xe1\\x8c\\\n\\x8a\\x27\\x17\\x92\\x29\\x02\\x19\\x0c\\x66\\x24\\x84\\x3a\\x85\\xf4\\x90\\x60\\\n\\x3b\\x1e\\x6d\\xf9\\x20\\xcc\\xdc\\x79\\x44\\x30\\x67\\x33\\xe3\\xc8\\xcd\\xd8\\\n\\xdb\\x7a\\x5b\\xd6\\x7d\\xc2\\x30\\x6c\\x0f\\x52\\x81\\xfe\\x08\\x82\\x88\\xff\\\n\\x19\\xa1\\x84\\x78\\x06\\x11\\x97\\xd2\\x8c\\x29\\x91\\xbb\\x76\\x59\\xea\\x73\\\n\\xf9\\xb9\\x70\\xc5\\xd4\\x88\\xdf\\x03\\x5d\\x63\\xff\\xfc\\xb1\\xb1\\xbf\\xf9\\\n\\xb3\\xe7\\xa5\\x77\\x0b\\x91\\x7e\\xc0\\x30\\x68\\xa1\\xfe\\x63\\x7e\\x56\\xa0\\\n\\x54\\x1a\\xae\\x17\\x20\\x53\\x12\\xf8\\xd9\\x7d\\xc3\\xb8\\xf8\\x8c\\x26\\xd4\\\n\\xd6\\x1a\\xd5\\x32\\x01\\x3a\\x49\\x4a\\xd0\\x05\\x19\\x91\\x61\\x73\\xe9\\x07\\\n\\xff\\x22\\x7f\\xe0\\x8d\\x3f\\x8c\\x89\\xa9\\xb4\\xb4\\xd3\\x90\\xbe\\x40\\x77\\\n\\x87\\x09\\xd0\\x1c\\xdc\\xe9\\x19\\x48\\x25\\x60\\xf0\\x14\\xc8\\x63\\xb0\\x69\\\n\\x0c\\x45\\xc5\\x51\\xee\\x7a\\xe3\\x83\\xed\\xeb\\xde\\xfd\\xee\\x78\\xba\\xe7\\\n\\x31\\xad\\xa6\\x01\\x54\\x44\\xbb\\x93\\x23\\x73\\xc0\\x71\\x11\\x75\\xb5\\x13\\\n\\x04\\x63\\x95\\xcf\\x21\\x42\\x90\\x12\\x88\\xd8\\xd1\\x1c\\xb1\\x4a\\x03\\x76\\\n\\xdb\\x88\\x82\\x31\\xc2\\xc4\\xf8\\xec\\x0b\\xff\\xe3\\x47\\x0f\\x7d\\xee\\xc2\\\n\\xe7\\x9d\\x17\\xfd\\xe8\\x5f\\x7d\\x10\\x23\\x87\\x06\\x91\\x9d\\x2d\\x20\\xe2\\\n\\xc4\\xa1\\xa5\\x86\\x52\\x0a\\xc2\\x17\\x70\\x8b\\x1e\\x02\\xbf\\x5c\\x99\\xc2\\\n\\x25\\x75\\xa5\\x47\\x39\\x04\\xa4\\x64\\x50\\x8a\\x03\\x2a\\x80\\x32\\x58\\x25\\\n\\xab\\x4e\\xd5\\x94\\xf9\\x49\\xea\\x78\\xc9\\xd0\\x30\\x6d\\x05\\xad\\x0c\\xd0\\\n\\x09\\x76\\x91\\x40\\x64\\xf2\\x4c\\x78\\xd7\\x5f\\x69\\x3e\\x71\\x93\\xc1\\x6c\\\n\\xb3\\x50\\x1e\\xc6\\xec\\x6c\\xa1\\xd0\\x56\\x77\\xd3\\xdf\\x6b\\xa5\\x86\\x74\\\n\\xb5\\xdd\\x9f\\x86\\xfe\\xd3\\x04\\xe3\\x33\\x75\\x2d\\x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b8\\xe7\\xd0\\x56\\x73\\x7a\\xe2\\x62\\x2c\\x6a\\\n\\x6b\\x80\\x65\\x68\\x30\\x32\\xa1\\xb5\\x53\\x55\\x18\\x19\\x60\\x9c\\x23\\xea\\\n\\x18\\xc8\\x17\\xb2\\xc8\\xe6\\x32\\xa1\\x65\\x72\\x68\\x13\\xa0\\x28\\x9f\\x89\\\n\\xa7\\xec\\xed\\x35\\x91\\x54\\x91\\x9b\\x61\\xb1\\x63\\x71\\xf3\\xf6\\x68\\x2c\\\n\\xfe\\x63\\xdf\\x15\\xb9\\xe3\\x4f\\x84\\x8a\\x9b\\xbe\\x74\\xb5\\x8d\\x20\\x2c\\\n\\x42\\xea\\x32\\x94\\xf6\\xc1\\x34\\x07\\xb4\\x05\\x20\\x24\\xa5\\x83\\xeb\\x04\\\n\\xeb\\x7f\\x11\\xe7\\x56\\x5c\\x2a\\x0f\\x23\\x13\\x07\\x64\\x94\\x5d\\xf8\\xed\\\n\\x9a\\xf8\\xb2\\xbf\\x23\\x90\\x60\\xcc\\x04\\xfe\\x88\\x14\\xce\\x69\\x04\\x46\\\n\\x20\\x69\\x2f\\x80\\x27\\x7f\\xd5\\xaa\\xda\\xaf\\x64\\x4a\\x7c\\xd1\\xfe\\xc1\\\n\\xe9\\x73\\x6d\\x0e\\xba\\x7d\\x4f\\xf8\\x7a\\x86\\xc1\\xe0\\xd5\\x97\\xf5\\xfe\\\n\\x25\\x88\\xbc\\x67\\x98\\x0a\\x3f\\xc1\\x1b\\x82\\x0e\\xa0\\xb5\\x30\\x40\\xec\\\n\\x72\\x6f\\xf4\\xfd\\xdf\\x30\\x90\\x6b\\xa2\\x38\\x07\\x74\\x16\\xa6\\xd7\\x0a\\\n\\x72\\x3c\\x30\\xf2\\x60\\x50\\x02\\x47\\x0e\\xa6\\xf0\\xbd\\x5f\\xf6\\xe3\\xa1\\\n\\x87\\x86\\xe1\\x89\\xaf\\xbc\\xb2\\x77\\x55\\xef\\xde\\xb3\\x2e\\x7c\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\x81\\x5b\\x28\\x22\\x12\\xf1\\xf1\\xfa\\\n\\xf7\\x77\\x62\\xd9\\x6a\\x0b\\x85\\x02\\xc3\\xbb\\xff\\xb2\\x16\\xcb\\x5a\\x7e\\\n\\xf3\\xbc\\x64\\x3a\\x79\\x46\\x7d\\xcb\\x62\\xd4\\x34\\x75\\x43\\xf9\\x5e\\xa5\\\n\\xcc\\x53\\x55\\xda\\x23\\x93\\xae\\x1c\\xcf\\x60\\x95\\x51\\x67\\x44\\x95\\x66\\\n\\x78\\x8c\\x48\\x31\\x22\\xcd\\x88\\xc0\\x58\\xa5\\x3b\\x6f\\xb1\\x90\\x5b\\xd8\\\n\\xac\\x5e\\x59\\x60\\xd1\\xca\\x46\\x74\\x2d\\xaf\\x07\\x29\\x0b\\x9b\\x36\\x6d\\\n\\xfa\\xe0\\x3f\\xff\\xd3\\x27\\x5a\\xfa\\xfb\\x76\\xa2\\x25\\x55\\x83\\xb9\\xb1\\\n\\x71\\xe4\\x72\\xe3\\x70\\x2c\\x86\\x84\\x95\\x6a\\x1d\\x3c\\x30\\x72\\x3e\\x63\\\n\\x84\\xd0\\x97\\xc8\\xce\\x16\\xd1\\xbb\\xac\\x0d\\xbd\\x8b\\xbb\\x91\\x48\\x73\\\n\\xb4\\x9f\\xf1\\x28\\x88\\x7b\\xd0\\x8a\\x3d\\x09\\x84\\x0c\\x8c\\x22\\x5c\\x41\\\n\\xbc\\xc2\\xc3\\xbe\\xcf\\xc3\\x98\\xbd\\x50\\x87\\x11\\x63\\x60\\x60\\x37\\xf2\\\n\\x73\\xe6\\xe0\\xd2\\xf6\\x57\\xbe\\xde\\x60\\xe6\\x23\\x15\\x0a\\xe7\\x29\\x9e\\\n\\xe9\\x7c\\x27\\x23\\x06\\x30\\x4e\\xc7\\xad\\xff\\x0b\\xd4\\xce\\x49\\x8f\\x6b\\\n\\xad\\x35\\xa4\\xd6\\xe5\\x96\\x04\\xfb\\xea\\xf9\\x3d\\xb6\\x7e\\xb8\\xbf\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\x3b\\xce\\x47\\x24\\xe2\\x50\\x5a\\xc4\\x4a\\xc1\\xee\\xb7\\\n\\x69\\x36\\xfa\\x5e\\xd3\\x34\\x1a\\x43\\x19\\x60\\x68\\x78\\x17\\xbc\\x7c\\xeb\\\n\\x81\\xc5\\x4d\\x37\\xbc\\xcb\\xe0\\xce\\x7d\\x4a\\x87\\x60\\xb0\\x4e\\xea\\xd3\\\n\\x93\\xc1\\x60\\xc4\\x1c\\x94\\xc6\\x73\\x08\\x4a\\x02\\x46\\xc4\\x3e\\xc1\\x37\\\n\\xaf\\x4d\\x3c\\xbb\\x20\\xe0\\xb7\\xde\\x7a\\xeb\\xb3\\xf8\\x72\\x01\\xfe\\xab\\\n\\x42\\xf8\\xb2\\x27\\x30\\x38\\xe7\\x81\\x11\\x0f\\x53\\x16\\x76\\xa6\\xa2\\xf0\\\n\\x32\\x81\\x5e\\xe5\\xfb\\x7e\\x32\\x1a\\xb1\\xb1\\x63\\x18\\x2b\\xa7\\x73\\xe5\\\n\\x73\\x96\\xb5\\xd8\\x3b\\x4b\\xae\\x1e\\xeb\\x6d\\x49\\x20\\x5f\\x2a\\x63\\xff\\\n\\x88\\x87\\x87\\xf7\\x25\\xb1\\xb6\\xa7\\x03\\xed\\x8d\\x26\\x84\\xaa\\x03\\xa3\\\n\\x74\\x81\\x19\\x67\\xee\\x16\\xda\\x59\\x17\\x92\\x6a\\x0e\\xed\\x9b\\x7e\\xe1\\\n\\x05\\xd7\\x7f\\x20\\xf4\\xfb\\xbe\\x65\\xf2\\x75\\x3a\\x59\\xdb\\x04\\x27\\xb6\\\n\\x64\\x9c\\xec\\x1e\\xe5\\x7a\\x77\\x5d\\xae\\x59\\x19\\x86\\x65\\x41\\x96\\x7c\\\n\\x34\\x2e\\x15\\x08\\xca\\x45\\x6c\\xde\\xba\\xb1\\xbf\\x10\\x5c\\xf1\\xc1\\xd6\\\n\\x45\\x3d\\x3f\\x35\\x4c\\xae\\x41\\x04\\x6e\\x5a\\x60\\x9c\\x1d\\x33\\x34\\x55\\\n\\xbf\\x80\\x73\\xba\\xd0\\x32\\x9d\\x85\\x3a\\x68\\x3f\\x70\\x21\\xa4\\xfa\\x9d\\\n\\x06\\xb6\\x69\\x54\\x29\\x50\\x0d\\x70\\x83\\x63\\x6c\\x74\\x12\\x07\\x0f\\x0c\\\n\\xe1\\xbc\\x8b\\xd6\\xc1\\x88\\x4a\\x14\\xf2\\x45\\xe4\\x0b\\x79\\x74\\x74\\x74\\\n\\x6c\\x5b\\xba\\x64\\x45\\xb6\\x90\\xcd\\x5d\\x15\\xa5\\x38\\xec\\x48\\x02\\x99\\\n\\xbc\\x07\\x4f\\x16\\xb2\\x4d\\xbd\\xce\\x77\\x1a\\xdb\\x6b\\xbe\\xd9\\xd4\\x5a\\\n\\x37\\x2b\\x85\\x02\\xb4\\x03\\xd3\\x24\\x94\\xad\\x3b\\xab\\x29\\xd3\\x32\\xa0\\\n\\x4c\\x98\\xbc\\x11\\xa1\\x1a\\x05\\xa3\\x24\\x2c\\x5e\\xd3\\x91\\x0b\\x1f\\x7d\\\n\\x4f\\x31\\xdc\\xf2\\x21\\xcb\\xb6\\xd3\\x9e\\x57\\xa0\\xfe\\x81\\x1d\\xf0\\x0b\\\n\\xad\\x5b\\x17\\x37\\xbf\\xf2\\x1d\\x96\\x19\\xb9\\x47\\x23\\x04\\x63\\x06\\x88\\\n\\x59\\xc8\\x14\\xf6\\x22\\x62\\xd5\\x23\\x12\\xa9\\x85\\x63\\x27\\xc0\\x93\\x0e\\\n\\xc2\\x99\\x3c\\xe6\\x1e\\xda\\x8d\\x6c\\xdf\\x2c\\x7c\\xe9\\x40\\x69\\x0b\\x7e\\\n\\x49\\x22\\x28\\xab\\x85\\xd5\\xd0\\xd2\\x72\\xfa\\x5a\\x46\\x5f\\x5a\\xb0\\xf9\\\n\\x49\\x08\\x68\\x18\\x55\\x6f\\xfe\\xe9\\xc1\\xaa\\xb5\\x86\\x50\\x54\\x6a\\x8f\\\n\\x19\\x5f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\\xcc\\x66\\x98\\x2b\\x06\\x28\\x87\\x1c\\xab\\xba\\x22\\x30\\xb8\\x07\\\n\\xcd\\x42\\x10\\x0f\\xe0\\xd0\\x39\\x98\\xf9\\xcd\\x7e\\xd4\\x5d\\x66\\x80\\x98\\\n\\xae\\xb6\\x37\\x09\\x41\\x90\\x13\\x14\\x7d\\xfd\\x6b\\x58\\xfc\\xad\\xcb\\x08\\\n\\xac\\x8f\\xd1\\x4f\\xfb\\xc2\\x70\\x0e\\x4a\\x35\\xe2\\xd8\\x3e\\x35\\xcc\\x34\\\n\\x4e\\xcc\\xf4\\x68\\x10\\x63\\x54\\x89\\xa8\\x15\\x16\\xda\\xd6\\xa9\\xca\\x78\\\n\\xa9\\x13\\x76\\x9b\\xef\\x06\\x88\\xc6\\x22\\x58\\xdc\\xdc\\x83\\xd9\\xfc\\x24\\\n\\x72\\x28\\x81\\x24\\x2a\\xc3\\x2b\\xe7\\x1d\\x1d\\x2f\\xd4\\xa1\\x2f\\x20\\x14\\\n\\x41\\x48\\x0d\\x01\\x0e\\xed\\x18\\x60\\x89\\x09\\xc8\\xf2\\x34\\xb8\\x6e\\x3a\\\n\\x21\\xee\\x24\\x58\\x97\\x64\\x83\\xdb\\xdf\\xa2\\xd8\\xcc\\x55\\x9c\\x59\\xa9\\\n\\x30\\x64\\xd4\\x3f\\xfc\\x30\\x4a\\x79\\xbb\\xdc\\x91\\x7e\\xc5\\x07\\xa4\\x62\\\n\\xdf\\x99\\x0c\\x76\\x67\\x9f\\x2c\\xc8\\x25\\xab\\x32\\x3c\\xb3\\x76\\x47\\x1b\\\n\\x0c\\x15\\x22\\x98\\x9a\\x05\\x38\\x81\\x27\\x9c\\x0a\\x8d\\xe5\\xff\\x89\\xa7\\\n\\x03\\x39\\x67\\xc7\\x81\\x91\\x31\\x86\\x68\\x34\\x8a\\xe1\\xe1\\x11\\xf8\\xc5\\\n\\x29\\x3c\\x76\\xfb\\x8f\\xd0\\xdb\\xbb\\x04\\x35\\xdd\\xab\\xd1\\xd8\\xda\\x55\\\n\\x7d\\x66\\xf2\\xa4\\xed\\x86\\xab\\x6d\\xdf\\x74\\xd4\\xa4\\x47\\xaf\\xdc\\xd0\\\n\\xf4\\xd6\\xba\\xe1\\xec\\x87\\x37\\xef\\x9f\\x7d\\x91\\xa3\\x93\\xb5\\x21\\x6f\\\n\\xa4\\xc7\\x66\\xcb\\x17\\x26\\x66\\xf2\\xcb\\xcf\\x69\\xd5\\x17\\x99\\x9c\\xfe\\\n\\xde\\x15\\x98\\xe0\\x1c\\x88\\x92\\x85\\x87\\x76\\x4d\\x21\\x92\\x7c\\x01\\xd8\\\n\\x76\\x86\\xfa\\x65\\xf5\\x88\\x37\\x34\\x41\\x8d\\xc5\\x60\\x48\\x42\\xae\\xa8\\\n\\x90\\x8e\\xf3\\xea\\x74\\xd4\\x10\\xa0\\xe8\\x30\\x33\\xcf\\x18\\x86\\x38\\x0c\\\n\\x68\\xef\\x38\\x1c\\x29\\xa5\\x60\\x38\\x91\\x53\\x67\\x25\\xa8\\xda\\x4e\\x8f\\\n\\x69\\xf0\\xea\\x94\\x03\\xa9\\x4e\\xa4\\xff\\x95\\x92\\x88\\x46\\x13\\x58\\xbe\\\n\\x6c\\x2d\\x74\\x3e\\x40\\xfc\\x10\\x21\\xdd\\xdd\\x82\\xd8\\xa2\\x7a\\x0c\\x0f\\\n\\x0d\\x42\\x92\\x46\\x20\\x45\\xa5\\x35\\x9e\\x61\\x20\\xe9\\x95\\x10\\x1c\\x1a\\\n\\xc6\\x0a\\x39\\x0d\\x8c\\x8e\\x43\\x39\\xe7\\x00\\xa5\\xe3\\x37\\x04\\xc1\\xe8\\\n\\x04\\xac\\x57\\xf9\\x6c\\xd7\\xd5\\x52\\x89\\xf3\\x4d\\x0e\\x5e\\x2a\\x4e\\x60\\\n\\x78\\x74\\x18\\x0e\\xad\\x7a\\x6c\\x59\\xdb\\xf3\\x3f\\x24\\x82\\xf0\\x5e\\xd7\\\n\\x2f\\x88\\xe3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\\x85\\x7f\\xab\\xa6\\x0b\\x59\\xb2\\xad\\x51\\x32\\xcd\\x19\\xb2\\xac\\x22\\xd9\\\n\\xb6\\x26\\x7e\\x6a\\x80\\x6a\\xad\\x61\\x18\\x1c\\xdd\\xed\\x0d\\x18\\x9c\\x98\\\n\\x45\\x28\\x84\\x52\\xa6\\x09\\x69\\x39\\x30\\x35\\x60\\x30\\x06\\x43\\x13\\x2c\\\n\\xd8\\x65\\x83\\x10\\x92\\x5f\\x82\\x9a\\xce\\x2f\\x44\\xdd\\x64\\x01\\xa4\\x0c\\\n\\x90\\x65\\x82\\xa7\\xa3\\x51\\xef\\xc1\\xa1\\x06\\x4c\\x15\\xa3\\x3a\\x6d\\x6c\\\n\\xc0\\x44\\xf0\\x02\\x23\\xa4\\xda\\x9a\\x83\\xe1\\x85\\xb1\\xde\\xc5\\x10\\xe1\\\n\\x04\\x4a\\xae\\x02\\xa2\\x4d\\x48\\x4c\\x2b\\x8c\\xfe\\x6e\\x58\\x15\\x6f\\x5c\\\n\\x3c\\xcc\\xc3\\x96\\xcd\\x9d\\x89\\x75\\xbf\\xf5\\xcd\\xa1\\xef\\x91\\xcc\\xea\\\n\\x65\\x91\\x0d\\xd0\\x5e\\x16\\xa0\\x22\\x96\\xc5\\x7b\\x21\\xaa\\x93\\x0f\\xa0\\\n\\x15\\xfe\\xd4\\xae\\xd3\\x14\\x8c\\x04\\x90\\x51\\x29\\x01\\xad\\xba\\xf8\\xc7\\\n\\x05\\x0c\\x00\\x02\\x55\\x91\\xfc\\x2b\\x70\\x30\\x2d\\xb1\\x26\\x35\\x0a\\x3b\\\n\\xaa\\xc7\\xd6\\x37\\xd8\\xb7\\x1d\\xca\\x1a\\xff\\x3e\\x29\\x9a\\xfe\\xa1\\x79\\\n\\x92\\xbd\\x9e\\x0f\\x1c\\xc1\\x9c\\x3b\\x05\\xaf\\xc0\\x30\\x65\\x4a\\x50\\xcf\\\n\\x72\\x4a\\x8f\\x7b\\x1b\\x33\\x5f\\xf8\\xd5\\xaf\\xa4\\x83\\x0c\\x3a\\xeb\\x0e\\\n\\xf9\\x07\\x07\\x9e\\xa0\\xb9\\xdc\\x28\\x32\\xf9\\x27\\x82\\xb9\\xe2\\x6e\\x6d\\\n\\x38\\x25\\x30\\xbb\\x08\\xee\\x94\\x60\\x44\\x04\\x19\\xd5\\x31\\x74\\x9c\\xa0\\\n\\x39\\x47\\xc4\\x32\\xd0\\xdd\\x16\\xc1\\x81\\xfd\\x83\\x25\\x02\\x60\\x73\\x0b\\\n\\x4c\\x29\\x28\\xaf\\x84\\xe2\\xd8\\x2c\\x62\\xc9\\x86\\xfd\\x89\\x48\\x24\\xf0\\\n\\x83\\x10\\xb0\\x04\\xc0\\x45\\x4a\\x97\\x75\\xca\\xdb\\x3f\\xd5\\x1a\\xf8\\x61\\\n\\x77\\x90\\x2d\\x26\\x83\\xc1\\xb9\\xb5\\x3c\\xf0\\xd7\\x78\\xf7\\x1d\\x69\\x66\\\n\\xae\\x58\\xec\\xb8\\x0c\\xa6\\x13\\x81\\x4e\\x36\\x21\\x1f\\xaf\\x83\\x1e\\x1e\\\n\\x05\\x59\\x25\\x40\\x48\\xe4\\xca\\x76\\x18\\x78\\x4b\\x7f\\xd2\\x66\\xad\\xff\\\n\\x52\\x4b\\x6c\\xc9\\x63\\x51\\x3f\\x82\\x30\\x12\\x81\\x92\\x3e\\x94\\x76\\xa1\\\n\\x99\\x09\\x22\\x55\\x99\\x5e\\x78\\xec\\x14\\xf8\\x05\\x5d\\x6d\\xa5\\xa6\\xbb\\\n\\x4a\\x6a\\x56\\xd5\\x1b\\x4c\\x1d\\xc7\\x61\\xcd\\xf3\\xf4\\xb4\\x30\\xc4\\x1a\\\n\\x60\\x8c\\x11\\xe7\\x0a\\xff\\x43\\x91\\xf6\\x69\\x07\\x46\\x22\\x06\\xe8\\x30\\\n\\xa6\\x82\\xd9\\x95\\x08\\xb2\\x2d\\x5a\\x09\\x53\\x57\\x27\\xa5\\x3c\\xb9\\xa8\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\\xc1\\x31\\x57\\x28\\x00\\xe1\\x0e\\x0b\\\n\\x85\\x78\\x45\\xc7\\x22\\xbe\\x9f\\xd4\\x29\\x1a\\x35\\x4a\\x6c\\x59\\x85\\xc4\\\n\\xbd\\x26\\x90\\x70\\xce\\x02\\x07\\x55\\x8a\\x88\\x55\\x98\\xad\\x66\\x42\\xac\\\n\\xca\\x99\\x21\\x61\\x25\\x51\\x56\\x43\\x22\\x94\\x01\\x60\\x6b\\x63\\x37\\x87\\\n\\x87\\x85\\x55\\xd8\\x7a\\x4d\\xcf\\x24\\x91\\x10\\x59\\xf2\\xed\\x67\\x16\\xa6\\\n\\x29\\x04\\x8e\\xd4\\x1a\\x80\\xd4\\x12\\x89\\x11\\xf2\\x43\\xa7\\x84\\x45\\x40\\\n\\x20\\x21\\x02\\x65\\xa4\\x71\\xa6\\x44\\x6a\\x84\\xac\\x75\\x5c\\x35\\x91\\x90\\\n\\x18\\x05\\x94\\x24\\xce\\xd4\\xb6\\x4a\\x59\\x59\\x4c\\xdc\\x8a\\x9b\\xcf\\x24\\\n\\xcd\\xd1\\x7b\\xdb\\x8d\\x91\\x32\\x41\\x19\\xac\\x2d\\x52\\x18\\x90\\x55\\x26\\\n\\x07\\x60\\x80\\x40\\x6a\\x84\\xb8\\x6d\\xa2\\x91\\x91\\xff\\x7c\\xfa\\x89\\x34\\\n\\x6c\\xf3\\x2f\\x68\\x37\\xaf\\x41\\xc7\\x06\\x2a\\x9a\\x36\\x08\\x9a\\x14\\xbb\\\n\\x1b\\xae\\xfa\\xd7\\x57\\xa0\\x0a\\xb1\\x99\\x25\\xa2\\x1b\\x44\\x74\\xa3\\x32\\\n\\x75\\xec\\xf2\\xc4\\x63\\xa7\\xc8\\xf0\\x1d\\x30\\x8f\\x2a\\x59\\x82\\x91\\xcc\\\n\\xf5\\x09\\xc2\\xb8\\xa1\\x9c\\x0e\\x8c\\x4e\\x4b\\x81\\xfd\\x9c\\x6d\\xdb\\xd1\\\n\\x1e\\x5d\\x30\\x32\\x8c\\x28\\x98\\x3b\\x93\\x82\\x3b\\xc1\\x50\\x3e\\xd6\\xce\\\n\\x83\\xb1\\x9b\\x3c\\xea\\x82\\x51\\xc5\\xa7\\xdd\\xbc\\x99\\x24\\x25\\x56\\x56\\\n\\x81\\x07\\x23\\xc0\\xd2\\x65\\x44\\x53\\x45\\x44\\x0c\\x61\\x86\\x66\\x02\\x56\\\n\\x75\\x84\\x48\\x4a\\xaa\\xac\\x44\\x22\\xae\\x76\\x6d\\xad\\xf7\\x7d\\x19\\xac\\\n\\x02\\x4b\\x1e\\x8c\\x70\\x1a\\xd0\\x9b\\x63\\xb2\\x30\\x2a\\x04\\x44\\xea\\x3a\\\n\\x89\\x2c\\x11\\x02\\x30\\x3a\\x17\\x81\\xdc\\x60\\x26\\xd2\\x18\\x4a\\x04\\x23\\\n\\xac\\xd6\\x08\\x48\\x85\\x24\\xd7\\x9e\\x12\\x43\\xa5\\x05\\x13\\x09\\x45\\x59\\\n\\xac\\x63\\x27\\x9b\\x84\\x66\\x03\\x25\\xcf\\xa1\\x13\\x93\\x27\\xfe\\x64\\x82\\\n\\x11\\xed\\x90\\x69\\x65\\xa2\\xa8\\x3c\\xf1\\x24\\x67\\x23\\xb1\\x7e\\xf1\\x8f\\\n\\xd4\\x7e\\x15\\x6d\\x65\\xa4\\x3a\\x28\\xc5\\xa2\\xa1\\x1c\\x76\\x89\\x8e\\xfa\\\n\\x17\\x90\\x24\\xc9\\xa3\\x70\\x1b\\xf3\\x00\\xa6\\x01\\xac\\xdc\\xef\\x81\\x69\\\n\\x9a\\x1e\\x9a\\xb5\\xe0\\x23\\x0c\\xc2\\x6a\\x92\\x24\\xeb\\x7d\\x00\\x30\\xd7\\\n\\x03\\x2c\\xcb\\x1e\\x30\\x07\\x95\\xea\\x2e\\x7f\\x5f\\x01\\xf0\\x6e\\x8f\\xeb\\\n\\xf6\\x92\\x45\\x00\\xeb\\x00\\x16\\x0e\\xdb\\x9a\\xf0\\x11\\x01\\x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x38\\x94\\xa1\\x0c\\xc1\\x38\\x94\\x21\\x18\\\n\\x87\\x32\\x94\\x21\\x18\\x87\\x32\\x28\\xf2\\xdf\\x01\\x00\\x2f\\x5b\\x0a\\x6c\\\n\\xce\\xd0\\xa3\\x82\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\\n\\x00\\x00\\x8b\\xfb\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\xa3\\x00\\x00\\x00\\xa3\\x08\\x06\\x00\\x00\\x00\\xe6\\x6c\\xae\\x80\\\n\\x00\\x00\\x00\\x09\\x70\\x48\\x59\\x73\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\\n\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x0a\\x4d\\x69\\x43\\x43\\x50\\x50\\x68\\x6f\\\n\\x74\\x6f\\x73\\x68\\x6f\\x70\\x20\\x49\\x43\\x43\\x20\\x70\\x72\\x6f\\x66\\x69\\\n\\x6c\\x65\\x00\\x00\\x78\\xda\\x9d\\x53\\x77\\x58\\x93\\xf7\\x16\\x3e\\xdf\\xf7\\\n\\x65\\x0f\\x56\\x42\\xd8\\xf0\\xb1\\x97\\x6c\\x81\\x00\\x22\\x23\\xac\\x08\\xc8\\\n\\x10\\x59\\xa2\\x10\\x92\\x00\\x61\\x84\\x10\\x12\\x40\\xc5\\x85\\x88\\x0a\\x56\\\n\\x14\\x15\\x11\\x9c\\x48\\x55\\xc4\\x82\\xd5\\x0a\\x48\\x9d\\x88\\xe2\\xa0\\x28\\\n\\xb8\\x67\\x41\\x8a\\x88\\x5a\\x8b\\x55\\x5c\\x38\\xee\\x1f\\xdc\\xa7\\xb5\\x7d\\\n\\x7a\\xef\\xed\\xed\\xfb\\xd7\\xfb\\xbc\\xe7\\x9c\\xe7\\xfc\\xce\\x79\\xcf\\x0f\\\n\\x80\\x11\\x12\\x26\\x91\\xe6\\xa2\\x6a\\x00\\x39\\x52\\x85\\x3c\\x3a\\xd8\\x1f\\\n\\x8f\\x4f\\x48\\xc4\\xc9\\xbd\\x80\\x02\\x15\\x48\\xe0\\x04\\x20\\x10\\xe6\\xcb\\\n\\xc2\\x67\\x05\\xc5\\x00\\x00\\xf0\\x03\\x79\\x78\\x7e\\x74\\xb0\\x3f\\xfc\\x01\\\n\\xaf\\x6f\\x00\\x02\\x00\\x70\\xd5\\x2e\\x24\\x12\\xc7\\xe1\\xff\\x83\\xba\\x50\\\n\\x26\\x57\\x00\\x20\\x91\\x00\\xe0\\x22\\x12\\xe7\\x0b\\x01\\x90\\x52\\x00\\xc8\\\n\\x2e\\x54\\xc8\\x14\\x00\\xc8\\x18\\x00\\xb0\\x53\\xb3\\x64\\x0a\\x00\\x94\\x00\\\n\\x00\\x6c\\x79\\x7c\\x42\\x22\\x00\\xaa\\x0d\\x00\\xec\\xf4\\x49\\x3e\\x05\\x00\\\n\\xd8\\xa9\\x93\\xdc\\x17\\x00\\xd8\\xa2\\x1c\\xa9\\x08\\x00\\x8d\\x01\\x00\\x99\\\n\\x28\\x47\\x24\\x02\\x40\\xbb\\x00\\x60\\x55\\x81\\x52\\x2c\\x02\\xc0\\xc2\\x00\\\n\\xa0\\xac\\x40\\x22\\x2e\\x04\\xc0\\xae\\x01\\x80\\x59\\xb6\\x32\\x47\\x02\\x80\\\n\\xbd\\x05\\x00\\x76\\x8e\\x58\\x90\\x0f\\x40\\x60\\x00\\x80\\x99\\x42\\x2c\\xcc\\\n\\x00\\x20\\x38\\x02\\x00\\x43\\x1e\\x13\\xcd\\x03\\x20\\x4c\\x03\\xa0\\x30\\xd2\\\n\\xbf\\xe0\\xa9\\x5f\\x70\\x85\\xb8\\x48\\x01\\x00\\xc0\\xcb\\x95\\xcd\\x97\\x4b\\\n\\xd2\\x33\\x14\\xb8\\x95\\xd0\\x1a\\x77\\xf2\\xf0\\xe0\\x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f\\\n\\xc0\\x4e\\xb6\\x07\\xb5\\xcb\\x6c\\xc0\\x7e\\xee\\x01\\x02\\x8b\\x0e\\x58\\xd2\\\n\\x76\\x00\\x40\\x7e\\xf3\\x2d\\x8c\\x1a\\x0b\\x91\\x00\\x10\\x67\\x34\\x32\\x79\\\n\\xf7\\x00\\x00\\x93\\xbf\\xf9\\x8f\\x40\\x2b\\x01\\x00\\xcd\\x97\\xa4\\xe3\\x00\\\n\\x00\\xbc\\xe8\\x18\\x5c\\xa8\\x94\\x17\\x4c\\xc6\\x08\\x00\\x00\\x44\\xa0\\x81\\\n\\x2a\\xb0\\x41\\x07\\x0c\\xc1\\x14\\xac\\xc0\\x0e\\x9c\\xc1\\x1d\\xbc\\xc0\\x17\\\n\\x02\\x61\\x06\\x44\\x40\\x0c\\x24\\xc0\\x3c\\x10\\x42\\x06\\xe4\\x80\\x1c\\x0a\\\n\\xa1\\x18\\x96\\x41\\x19\\x54\\xc0\\x3a\\xd8\\x04\\xb5\\xb0\\x03\\x1a\\xa0\\x11\\\n\\x9a\\xe1\\x10\\xb4\\xc1\\x31\\x38\\x0d\\xe7\\xe0\\x12\\x5c\\x81\\xeb\\x70\\x17\\\n\\x06\\x60\\x18\\x9e\\xc2\\x18\\xbc\\x86\\x09\\x04\\x41\\xc8\\x08\\x13\\x61\\x21\\\n\\x3a\\x88\\x11\\x62\\x8e\\xd8\\x22\\xce\\x08\\x17\\x99\\x8e\\x04\\x22\\x61\\x48\\\n\\x34\\x92\\x80\\xa4\\x20\\xe9\\x88\\x14\\x51\\x22\\xc5\\xc8\\x72\\xa4\\x02\\xa9\\\n\\x42\\x6a\\x91\\x5d\\x48\\x23\\xf2\\x2d\\x72\\x14\\x39\\x8d\\x5c\\x40\\xfa\\x90\\\n\\xdb\\xc8\\x20\\x32\\x8a\\xfc\\x8a\\xbc\\x47\\x31\\x94\\x81\\xb2\\x51\\x03\\xd4\\\n\\x02\\x75\\x40\\xb9\\xa8\\x1f\\x1a\\x8a\\xc6\\xa0\\x73\\xd1\\x74\\x34\\x0f\\x5d\\\n\\x80\\x96\\xa2\\x6b\\xd1\\x1a\\xb4\\x1e\\x3d\\x80\\xb6\\xa2\\xa7\\xd1\\x4b\\xe8\\\n\\x75\\x74\\x00\\x7d\\x8a\\x8e\\x63\\x80\\xd1\\x31\\x0e\\x66\\x8c\\xd9\\x61\\x5c\\\n\\x8c\\x87\\x45\\x60\\x89\\x58\\x1a\\x26\\xc7\\x16\\x63\\xe5\\x58\\x35\\x56\\x8f\\\n\\x35\\x63\\x1d\\x58\\x37\\x76\\x15\\x1b\\xc0\\x9e\\x61\\xef\\x08\\x24\\x02\\x8b\\\n\\x80\\x13\\xec\\x08\\x5e\\x84\\x10\\xc2\\x6c\\x82\\x90\\x90\\x47\\x58\\x4c\\x58\\\n\\x43\\xa8\\x25\\xec\\x23\\xb4\\x12\\xba\\x08\\x57\\x09\\x83\\x84\\x31\\xc2\\x27\\\n\\x22\\x93\\xa8\\x4f\\xb4\\x25\\x7a\\x12\\xf9\\xc4\\x78\\x62\\x3a\\xb1\\x90\\x58\\\n\\x46\\xac\\x26\\xee\\x21\\x1e\\x21\\x9e\\x25\\x5e\\x27\\x0e\\x13\\x5f\\x93\\x48\\\n\\x24\\x0e\\xc9\\x92\\xe4\\x4e\\x0a\\x21\\x25\\x90\\x32\\x49\\x0b\\x49\\x6b\\x48\\\n\\xdb\\x48\\x2d\\xa4\\x53\\xa4\\x3e\\xd2\\x10\\x69\\x9c\\x4c\\x26\\xeb\\x90\\x6d\\\n\\xc9\\xde\\xe4\\x08\\xb2\\x80\\xac\\x20\\x97\\x91\\xb7\\x90\\x0f\\x90\\x4f\\x92\\\n\\xfb\\xc9\\xc3\\xe4\\xb7\\x14\\x3a\\xc5\\x88\\xe2\\x4c\\x09\\xa2\\x24\\x52\\xa4\\\n\\x94\\x12\\x4a\\x35\\x65\\x3f\\xe5\\x04\\xa5\\x9f\\x32\\x42\\x99\\xa0\\xaa\\x51\\\n\\xcd\\xa9\\x9e\\xd4\\x08\\xaa\\x88\\x3a\\x9f\\x5a\\x49\\x6d\\xa0\\x76\\x50\\x2f\\\n\\x53\\x87\\xa9\\x13\\x34\\x75\\x9a\\x25\\xcd\\x9b\\x16\\x43\\xcb\\xa4\\x2d\\xa3\\\n\\xd5\\xd0\\x9a\\x69\\x67\\x69\\xf7\\x68\\x2f\\xe9\\x74\\xba\\x09\\xdd\\x83\\x1e\\\n\\x45\\x97\\xd0\\x97\\xd2\\x6b\\xe8\\x07\\xe9\\xe7\\xe9\\x83\\xf4\\x77\\x0c\\x0d\\\n\\x86\\x0d\\x83\\xc7\\x48\\x62\\x28\\x19\\x6b\\x19\\x7b\\x19\\xa7\\x18\\xb7\\x19\\\n\\x2f\\x99\\x4c\\xa6\\x05\\xd3\\x97\\x99\\xc8\\x54\\x30\\xd7\\x32\\x1b\\x99\\x67\\\n\\x98\\x0f\\x98\\x6f\\x55\\x58\\x2a\\xf6\\x2a\\x7c\\x15\\x91\\xca\\x12\\x95\\x3a\\\n\\x95\\x56\\x95\\x7e\\x95\\xe7\\xaa\\x54\\x55\\x73\\x55\\x3f\\xd5\\x79\\xaa\\x0b\\\n\\x54\\xab\\x55\\x0f\\xab\\x5e\\x56\\x7d\\xa6\\x46\\x55\\xb3\\x50\\xe3\\xa9\\x09\\\n\\xd4\\x16\\xab\\xd5\\xa9\\x1d\\x55\\xbb\\xa9\\x36\\xae\\xce\\x52\\x77\\x52\\x8f\\\n\\x50\\xcf\\x51\\x5f\\xa3\\xbe\\x5f\\xfd\\x82\\xfa\\x63\\x0d\\xb2\\x86\\x85\\x46\\\n\\xa0\\x86\\x48\\xa3\\x54\\x63\\xb7\\xc6\\x19\\x8d\\x21\\x16\\xc6\\x32\\x65\\xf1\\\n\\x58\\x42\\xd6\\x72\\x56\\x03\\xeb\\x2c\\x6b\\x98\\x4d\\x62\\x5b\\xb2\\xf9\\xec\\\n\\x4c\\x76\\x05\\xfb\\x1b\\x76\\x2f\\x7b\\x4c\\x53\\x43\\x73\\xaa\\x66\\xac\\x66\\\n\\x91\\x66\\x9d\\xe6\\x71\\xcd\\x01\\x0e\\xc6\\xb1\\xe0\\xf0\\x39\\xd9\\x9c\\x4a\\\n\\xce\\x21\\xce\\x0d\\xce\\x7b\\x2d\\x03\\x2d\\x3f\\x2d\\xb1\\xd6\\x6a\\xad\\x66\\\n\\xad\\x7e\\xad\\x37\\xda\\x7a\\xda\\xbe\\xda\\x62\\xed\\x72\\xed\\x16\\xed\\xeb\\\n\\xda\\xef\\x75\\x70\\x9d\\x40\\x9d\\x2c\\x9d\\xf5\\x3a\\x6d\\x3a\\xf7\\x75\\x09\\\n\\xba\\x36\\xba\\x51\\xba\\x85\\xba\\xdb\\x75\\xcf\\xea\\x3e\\xd3\\x63\\xeb\\x79\\\n\\xe9\\x09\\xf5\\xca\\xf5\\x0e\\xe9\\xdd\\xd1\\x47\\xf5\\x6d\\xf4\\xa3\\xf5\\x17\\\n\\xea\\xef\\xd6\\xef\\xd1\\x1f\\x37\\x30\\x34\\x08\\x36\\x90\\x19\\x6c\\x31\\x38\\\n\\x63\\xf0\\xcc\\x90\\x63\\xe8\\x6b\\x98\\x69\\xb8\\xd1\\xf0\\x84\\xe1\\xa8\\x11\\\n\\xcb\\x68\\xba\\x91\\xc4\\x68\\xa3\\xd1\\x49\\xa3\\x27\\xb8\\x26\\xee\\x87\\x67\\\n\\xe3\\x35\\x78\\x17\\x3e\\x66\\xac\\x6f\\x1c\\x62\\xac\\x34\\xde\\x65\\xdc\\x6b\\\n\\x3c\\x61\\x62\\x69\\x32\\xdb\\xa4\\xc4\\xa4\\xc5\\xe4\\xbe\\x29\\xcd\\x94\\x6b\\\n\\x9a\\x66\\xba\\xd1\\xb4\\xd3\\x74\\xcc\\xcc\\xc8\\x2c\\xdc\\xac\\xd8\\xac\\xc9\\\n\\xec\\x8e\\x39\\xd5\\x9c\\x6b\\x9e\\x61\\xbe\\xd9\\xbc\\xdb\\xfc\\x8d\\x85\\xa5\\\n\\x45\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d6\\x48\\x21\\x31\\x0d\\x13\\xad\\x35\\x42\\\n\\x08\\x5c\\xd7\\x45\\x6b\\x85\\x61\\x4a\\xde\\x8e\\xfd\\xd2\\x08\\x1c\\x3b\\x8f\\\n\\x5d\\xc8\\x22\\x84\\x04\\x84\\xf7\\x53\\x21\\x0c\\x29\\xa5\\xd2\\x5a\\x6b\\xb4\\\n\\x46\\x48\\x01\\x42\\xa2\\x95\\x46\\x1a\\x41\\xa4\\x34\\xf0\\xe8\\x34\\x0d\\x18\\\n\\x28\\xad\\x90\\x86\\x46\\x08\\x89\\xeb\\xb8\\x04\\xcd\\x20\\x01\\x33\\x80\\xd2\\\n\\xca\\x7b\\x8d\\xaa\\x88\\xad\\x6c\\x4c\\x69\\x20\\xa5\\x40\\x6b\\x41\\xd1\\x76\\\n\\x11\\x5a\\x13\\x0e\\x84\\xfd\\xe7\\xd9\\xeb\\x73\\x41\\xa0\\xb4\\xc2\\x56\\x45\\\n\\xef\\x25\\xbd\\xcd\\xeb\\x2e\\xfd\\xfb\\x1f\\x07\\xc6\\xf7\\xae\\xc7\\x7f\\xf0\\\n\\xf2\\x51\\x0a\\x69\\x04\\x30\\x2d\\x85\\x72\\x6d\\xd0\\x0a\\x0d\\x42\\x4a\\x43\\\n\\x5b\\xa6\\xa1\\x35\\x02\\x69\\x58\\x20\\x24\\x52\\x1a\\xb8\\xae\\xc2\\xb1\\x5d\\\n\\xde\\xe3\\x75\\xdf\\x03\\xe3\\xbf\\xc7\\x9a\\x23\\x30\\xac\\x10\\xd2\\x0c\\xa0\\\n\\x95\\x8d\\xeb\\x14\\x35\\x5a\\x69\\xa5\\x4d\\xa4\\x19\\x04\\x69\\xa0\\x95\\xc2\\\n\\x33\\x92\\xba\\xfc\\x98\\xf7\\x8e\\xf7\\xc0\\xf8\\x6f\\x01\\x64\\xc9\\xad\\x4b\\\n\\x2b\\x8c\\x90\\xa6\\x07\\x3e\\x69\\x78\\xa0\\xd3\\xea\\x3d\\x00\\xbe\\x97\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\\xcb\\xb0\\x94\\x16\\xa0\\xb4\\x9a\\x8d\\xe6\\x8b\\xae\\\n\\x07\\x9b\\xac\\x46\\xa0\\x94\\x71\\xb1\\xd6\\x0a\\xad\\x40\\xe3\\xf1\\x95\\x25\\\n\\xd0\\x69\\xf6\\x30\\x74\\x7b\\xb2\\x63\\xed\\x81\\x54\\x83\\x90\\x02\\x81\\xf0\\\n\\x7f\\xb2\\xe7\\xde\\x42\\x4b\\x84\\x14\\xe3\\xe4\\x1e\\x23\\x3a\\xce\\x10\\xe2\\\n\\x08\\x21\\xc4\\x6a\\x21\\xc5\\x62\\xad\\xdd\\x6a\\x10\\xdb\\xa4\\x90\\x5f\\x2b\\\n\\xba\\x76\\xd9\\xd8\\xba\\xca\\x45\\xa1\\xfe\\x7f\\xe3\\xde\\xff\\x4f\\x83\\x51\\\n\\x88\\xbd\\xdd\\xa5\\x07\\x1b\\x57\\xbb\\x28\\xc7\\x99\\xa2\\x85\\x78\\xbf\\x10\\\n\\xe2\\x17\\x5a\\x2b\\x94\\x2b\\xd1\\x5a\\xa2\\xb5\\x02\\xed\\xa2\\x94\\x02\\xd3\\\n\\xc0\\xd1\\x1a\\xa5\\x6c\\x0f\\xcc\\x42\\x78\\xf8\\x52\\xa2\\x84\\xf0\\x7d\\x12\\\n\\x18\\xcf\\x23\\xfb\\xc0\\x17\\x7b\\x72\\x18\\xed\\x5b\\x48\\xa1\\x04\\x52\\x96\\\n\\xa1\\x8b\\xa1\\x04\\x52\\xaa\\x99\\x42\\xeb\\x99\\x12\\x8d\\x10\\x0a\\x43\\x88\\\n\\x26\\x8d\\x7a\\x32\\x5f\\x74\\x96\\x0a\\x21\\x37\\x29\\x14\\xa6\\x61\\x94\\x9f\\\n\\xce\\x7b\\x2f\\xff\\x77\\x81\\x29\\x06\\x06\\xb2\\xff\\x11\\x14\\xc9\\xbf\\xa3\\\n\\x02\\x23\\xa5\\xc0\\x34\\x0d\\x94\\xd6\\x38\\xae\\x1b\\x43\\xd3\\x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x14\\xb2\\x4e\\xb9\\x62\\\n\\xaa\\x52\\x02\\x25\\x84\\xe7\\x92\\xb5\\x00\\x57\\xa3\\x5c\\x8f\\xdb\\xf6\\xac\\\n\\xa3\\xc6\\x75\\x5c\\x5c\\x01\\x55\\x31\\x83\\x7b\\x9e\\x7a\\x80\\x97\\x5e\\x7a\\\n\\x9e\\xaa\\xaa\\x2a\\x00\\x1a\\x1a\\xea\\xc9\\xe5\\x72\\x6c\\xdf\\xb6\\x9d\\x07\\\n\\x1f\\x7c\\x88\\x44\\x22\\xce\\xb4\\xc9\\x93\\x70\\x65\\x80\\x33\\xce\\xbf\\x90\\\n\\x74\\x3e\\xeb\\xb9\\x78\\x40\\xe3\\xfa\\x76\\x4c\\x80\\x7a\\x6b\\xe8\\xad\\xde\\\n\\x64\\xe9\\x85\\xde\\xc3\\x17\\x4a\\x29\\xb0\\x94\\xe7\\xbe\\x95\\xa9\\x50\\xca\\\n\\xc5\\x90\\x12\\x43\\x6b\\x84\\xf0\\xb2\\x6f\\x57\\x29\\xa4\\x61\\x60\\x48\\xe9\\\n\\xe9\\x2d\\xfd\\x64\\x47\\x6b\\xcf\\xdd\\xbb\\xae\\x8b\\xd4\\x60\\x4a\\x7d\\xac\\\n\\x14\\x62\\xbd\\x80\\x1f\\xa0\\xf5\\x35\\x5a\\x97\\xaa\\xe7\\xff\\xef\\xd5\\x7a\\\n\\xfe\\x43\\x2c\\x23\\x38\\x38\\xd8\\x8e\\xfb\\xd6\\x5f\\xf8\\x59\\x6b\\x29\\x56\\\n\\xdb\\xab\\x8e\\x02\\xe8\\x15\\xae\\x76\\xf7\\x53\\x2e\\x28\\x47\\xa0\\x94\\x8b\\\n\\x12\\x12\\x57\\x79\\xc2\\x05\\xa5\\x94\\x97\\x44\\x08\\x81\\x02\\xf2\\xb9\\x02\\\n\\xae\\xed\\x30\\xba\\x31\\x49\\x6b\\x73\\x3d\\xca\\x55\\xac\\x5c\\xb5\\x8a\\xe7\\\n\\x9e\\x7b\\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05\\xf2\\xad\\xa0\\xd8\\xfb\\x14\\xef\\xf5\\x6d\\\n\\x29\\x49\\x29\\x21\\x43\\x4a\\x01\\xc2\\x28\\xbb\\x61\\x89\\x57\\x1f\\x97\\xb2\\\n\\xa4\\x12\\x12\\x18\\x80\\x61\\x18\\x20\\x45\\x39\\xc1\\x29\\xbb\\x6f\\x29\\x91\\\n\\x12\\x0c\\x69\\x60\\x08\\x03\\x29\\x0c\\x0c\\x03\\x0c\\xa1\\x10\\x86\\xf1\\x13\\\n\\xa1\\xf5\\x6d\\x52\\xea\\xd5\\x6f\\x4b\\x39\\xf9\\x89\\xd4\\x7b\\x15\\x98\\x7f\\\n\\x32\\xac\\xc4\\xab\\xcc\\x9d\\xa8\\xb4\\xbe\\xcb\\x75\\x15\\x8e\\x16\\x28\\xd7\\\n\\x0f\\xfe\\x95\\x97\\xcc\\xb8\\x7e\\x82\\xa2\\x5d\\x8d\\xeb\\x2a\\xac\\x40\\x90\\\n\\x44\\xb2\\x92\\xc5\\x2f\\x3c\\x4b\\x7d\\x22\\xc0\\xc2\\xf7\\x1d\\xeb\\x9d\\x13\\\n\\xc3\\xa0\\x90\\x2f\\x50\\x28\\x16\\xb0\\x6d\\x87\\xe6\\x96\\x66\\xce\\x3a\\xf3\\\n\\x4c\\xd6\\x2e\\x7f\\x8d\\x68\\x55\\x25\\x97\\x5e\\x71\\x35\\x87\\x1d\\xf5\\x01\\\n\\x3a\\x3b\\xba\\xc9\\x65\\x53\\x48\\x29\\x70\\xfc\\x8c\\xdc\\x73\\x97\\xea\\xad\\\n\\x49\\xc1\\x3e\\xe7\\x5e\\xed\\x93\\x9b\\x79\\xf1\\x9b\\xf7\\x26\\x3c\\x70\\x02\\\n\\x42\\x62\\x4a\\x8f\\x6c\\x57\\x42\\x22\\xb4\\x04\\x29\\x30\\x4a\\x80\\x17\\x1a\\\n\\xe1\\xbb\\x68\\x81\\xc6\\x11\\x1e\\x13\\x29\\xd1\\x48\\x24\\x0a\\x85\\x42\\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\xdc\\x7e\\x33\\x4f\\\n\\x3e\\x74\\x0f\\x63\\xc7\\x8d\\xa3\\xae\\xa1\\x89\\x91\\x91\\x14\\x3b\\xb6\\x6f\\\n\\xa7\\xbd\\x7d\\x17\\xa1\\x50\\x98\\x05\\x0b\\x16\\x30\\x77\\xce\\x4c\\xae\\xbf\\\n\\xfe\\x7a\\x02\\x89\\x3a\\xae\\xfe\\xf5\\xad\\x24\\x93\\x09\\x76\\xee\\xdc\\xe1\\\n\\x59\\x21\\xa5\\x50\\xae\\x40\\x2b\\x81\\x42\\xfb\\xa5\\x44\\x85\\x52\\x5e\\x39\\\n\\xb1\\x04\\xbb\\x52\\x19\\x50\\xb0\\x2f\\x30\\xf7\\x05\\xa3\\xde\\x27\\xf6\\x28\\\n\\x57\\x5e\\x84\\xc7\\xef\\x79\\x3f\\xf3\\x68\\x1e\\x61\\x28\\x0f\\x68\\x5a\\x78\\\n\\xd4\\x8d\\x21\\x11\\x38\\x1e\\x68\\x0c\\x59\\x76\\xcd\\xc2\\x7f\\xac\\x61\\x98\\\n\\x65\\xea\\xc7\\x92\\xc2\\x73\\xbb\\xfb\\x80\\xd5\\x03\\xb0\\x14\\x26\\xa6\\x01\\\n\\xa6\\x21\\xf7\\x80\\xd4\\x34\\x3d\\x80\\x0a\\x30\\x0d\\x93\\x80\\xa1\\xdb\\x24\\\n\\x4c\\x15\\x52\\x64\\xc4\\x7f\\x12\\x18\\x07\\x07\\xfe\\x03\\x66\\xed\\x08\\x84\\\n\\xad\\x1d\\xed\\x38\\x36\\x5a\\xe9\\x95\\x4a\\xa9\\x59\\xae\\xeb\\xe2\\x68\\xe9\\\n\\x81\\xd1\\x75\\x71\\x94\\xe7\\x96\\xb5\\x86\\x4c\\x3a\\x4b\\x55\\x45\\x9c\\xc6\\\n\\xea\\x18\\xaf\\xbe\\xbc\\x88\\x65\\xcb\\x5e\\x63\\xc5\\xeb\\x6f\\xb0\\x71\\xe3\\\n\\x46\\x84\\x10\\x84\\xc3\\x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63\\x3b\\xc5\\x7c\\x11\\\n\\xe5\\x33\\x46\\x5e\\x5f\\xb4\\xbb\\xd7\\xa0\\x27\\x8d\\x12\\x62\\x9f\\x91\\x24\\\n\\x25\\x85\\xb7\\xf2\\x7f\\x56\\x52\\x6e\\xef\\xa5\\xd9\\xd9\\xab\\x0a\\xb3\\x77\\\n\\xe3\\xbe\\xf6\\xe3\\x35\\x81\\xd6\\x72\\x1f\\x49\\x97\\x94\\x12\\xb9\\x17\\x48\\\n\\x85\\xcf\\x39\\x1a\\x12\\x4c\\x29\\x11\\x86\\xc4\\xd1\\x1a\\x57\\x83\\x21\\xc0\\\n\\x32\\xf0\\x5c\\xb4\\x36\\xb0\\x4c\\x13\\x69\\x0a\\x5f\\x01\\x2e\\xb1\\xa4\\x85\\\n\\x69\\x98\\x98\\x96\\x85\\x69\\x48\\x84\\x74\\x08\\x18\\x02\\x4b\\x1a\\x48\\x1f\\\n\\xb0\\x86\\x69\\x62\\x4a\\x81\\x29\\x3c\\x2b\\xe9\\xf1\\x90\\x12\\x4b\\x8a\\x07\\\n\\x85\\x54\\x27\\x7b\\x2f\\xea\\x7f\\xdf\\x42\\x8a\\xdd\\xbd\\x03\\xff\\x19\\x57\\\n\\x05\\x5c\\xe9\\xba\\xce\\xb7\\x1d\\x17\\x1c\\x25\\x3c\\xd5\\xb3\\x02\\xe5\\xba\\\n\\x14\\x8b\\x0e\\x89\\x64\\x92\\x4c\\x66\\x88\\xa6\\xfa\\x4a\\x6a\\x2a\\x92\\x00\\\n\\xe4\\xb2\\x39\\x1c\\xd7\\x93\\x9e\\xc5\\x62\\xb1\\xf2\\x73\\x7d\\xf1\\x0b\\xff\\\n\\xc5\\x2f\\x7e\\xf9\\x6b\\x8e\\x7a\\xff\\xa9\\x5c\\x7a\\xe5\\x8f\\x09\\x87\\x42\\\n\\xec\\xda\\xbe\\x05\\x84\\x40\\x6b\\xd3\\x53\\x5f\\x6b\\x50\\xda\\x4f\\x8c\\xca\\\n\\xe4\\xb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9b\\x37\\xaf\\\n\\x21\\x97\\x4d\\xa1\\x45\\xd0\\xb3\\x38\\xae\\xeb\\x0b\\x2a\\xbc\\x13\\xa9\\xb4\\\n\\x97\\x1c\\xe1\\x57\\x6f\\x1c\\x0d\\x2e\\xa6\\x0f\\x46\\xbf\\x65\\x55\\x6b\\x7c\\\n\\x06\\x05\\xad\\x1c\\xd0\\x0a\\x43\\x86\\x30\\x82\\x61\\x84\\xd4\\x74\\xee\\xde\\\n\\xc1\\xcc\\x89\\xa3\\x18\\x55\\x1d\\xe3\\xc1\\x47\\x9f\\xa5\\x75\\xea\\x81\\xe4\\\n\\x8b\\x99\\xbd\\x32\\x69\\xe1\\x65\\xd9\\xe5\\xf8\\x11\\x24\\x9e\\x9b\\xcc\\x3a\\\n\\x45\\x94\\xeb\\xd2\\x5c\\x15\\x63\\x4c\\x73\\x92\\xd6\\xea\\x18\\xb5\\xc9\\xa8\\\n\\xa7\\x61\\xf4\\xc7\\xe9\\xb9\\xae\\x4b\\x49\\x67\\x53\\xb2\\xd4\\xa5\\xd8\\x75\\\n\\x9f\\x7e\\x18\\x3f\\x46\\x75\\x5d\\x17\\xdb\\x2e\\xa0\\x5c\\x4d\\xb1\\xe0\\x92\\\n\\xb1\\x1d\\x8a\\xae\\x85\\x08\\x84\\x31\\x4d\\x83\\x80\\xa1\\x31\\xa5\\xc0\\x30\\\n\\x25\\x86\\x61\\x61\\x0a\\x81\\x61\\x69\\xa4\\x10\\x35\\x40\\xff\\xff\\x2a\\x0e\\\n\\x3a\\xba\\x07\\xfe\\xb7\\xdd\\x73\\x58\\x69\\xfd\\xac\\xed\\x70\\x70\\x89\\xc0\\\n\\x76\\x35\\x64\\xf3\\x05\\xa2\\x89\\x38\\x6f\\xbc\\xba\\x88\\x1f\\x5e\\xf9\\x4d\\\n\\x94\\x76\\x18\\x3b\\x6e\\x02\\x4a\\xc1\\xd0\\xd0\\x10\\xed\\xed\\xed\\x6c\\xdf\\\n\\xbe\\x1d\\x80\\x85\\xc7\\x1c\\xcd\\xe6\\x2d\\x9b\\x29\\x10\\xe2\\x57\\x37\\xdd\\\n\\x4d\\xe3\\xe8\\xd1\\x6c\\xda\\xb8\\x16\\xed\\x3a\\x68\\xad\\x71\\x95\\xc0\\x2d\\\n\\x73\\x95\\xde\\x09\\xf3\\xc0\\xa8\\xfc\\x58\\x50\\x7a\\xf1\\xa9\\xf6\\x84\\xb7\\\n\\xf8\\x75\\x6e\\xad\\x15\\x1a\\xcf\\x0d\\x17\\x6c\\x97\\x91\\x91\\x11\\x0c\\x21\\\n\\xa9\\xac\\xac\\x26\\xdf\\xbf\\x9b\\x74\\xf7\\x56\\x56\\xaf\\x78\\x99\\xdf\\xfc\\\n\\xf2\\x17\\xec\\xb7\\xff\\xfe\\x9c\\xfe\\xa1\\x53\\xa9\\x9d\\x7b\\x12\\xd5\\x35\\\n\\xcd\\x28\\x7b\\xc4\\x93\\x7f\\x51\\x72\\xc9\\x5e\\x0d\\x5a\\x18\\x26\\xb9\\xa2\\\n\\xa2\\x98\\xcb\\xd3\\x52\\x17\\x67\\xf6\\xb8\\x06\\x26\\xb5\\x56\\x52\\x91\\x08\\\n\\xe1\\xba\\x82\\xa2\\x2b\\x70\\x5c\\x45\\x26\\xed\\x29\\x85\\x22\\x91\\xa8\\x0f\\\n\\x30\\x9b\\x37\\x37\\x63\\x95\\x46\\xb0\\x04\\x02\\x01\\x0c\\xc3\\x20\\x9b\\xcd\\\n\\xa2\\x94\\x4b\\x24\\x1c\\xc3\\x30\\x05\\x42\\x14\\xd1\\x8e\\x26\\x9d\\x73\\xc8\\\n\\xe4\\x8a\\xb8\\xda\\x40\\x06\\xa2\\x58\\x01\\x13\\x53\\x6a\\x0c\\x69\\x78\\x34\\\n\\x91\\xa9\\x31\\xa4\\x1c\\x05\\xb4\\xfd\\x6f\\x62\\xc1\\xf8\\xd2\\x57\\xbe\\xf2\\\n\\xf6\\x63\\xb6\\xfe\\x47\\x6e\\x02\\x0d\\x67\\x3a\\xae\\x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81\\x01\\x84\\x10\\x84\\x42\\x21\\xa4\\x94\\x14\\x8b\\x05\\x1c\\xc7\\x1b\\x68\\\n\\x1a\\x8e\\x04\\x89\\x46\\x02\\x18\\x28\\x9c\\x62\\x9a\\xa2\\x0b\\xc2\\x0a\\x7b\\\n\\x6d\\x0b\\x5a\\x23\\x31\\x10\\x52\\x2e\\x94\\x82\\xeb\\x05\\x7b\\x9a\\xc4\\xfe\\\n\\xa7\\x6f\\xff\\xcb\\x15\\x18\\x55\\xef\\x6a\\x7d\\xb5\\x56\\x12\\xc7\\x51\\x98\\\n\\x81\\x00\\xe1\\x48\\x80\\x40\\xc0\\xa0\\xa9\\x2a\\x4a\\x28\\x64\\x42\\xa4\\x8a\\\n\\xea\\x43\\xe7\\x73\\xf0\\xa1\\xf3\\x39\\xed\\x43\\xa7\\x73\\xff\\xfd\\xf7\\xf3\\\n\\xfc\\x0b\\x2f\\xb0\\xf8\\xa5\\x17\\x19\\x1c\\x1a\\xa6\\xba\\xa6\\x96\\x6f\\xff\\\n\\xf0\\x5a\\x0e\\x3d\\xfa\\x44\\xb6\\xef\\xdc\\x48\\x26\\x95\\xf2\\x7b\\xa7\\xfd\\\n\\x04\\x45\\x7b\\xba\\x46\\xe5\\xf8\\x34\\x0e\\x7e\\x73\\x96\\xd6\\x38\\x78\\xd6\\\n\\x45\\x2b\\x8d\\x52\\x8e\\x27\\x47\\xd3\\x06\\xd2\\x0c\\x21\\x2d\\x93\\xd4\\x70\\\n\\x3f\\x01\\x14\\xa7\\x1d\\x35\\x93\\xd9\\x93\\x5b\\x18\\xdd\\x54\\x0f\\x6e\\x96\\\n\\x9f\\x6f\\x5a\\x8d\\x34\\x0c\\x32\\xf9\\x02\\xa3\\x46\\x8f\\xa6\\xce\\x97\\xa2\\\n\\xcd\\x9f\\x7f\\x28\\x0f\\x3f\\xbf\\x94\\x62\\x31\\x8d\\xad\\x34\\x52\\xbb\\x28\\\n\\xc0\\x94\\x06\\x39\\xc7\\x66\\x28\\x9d\\x67\\x66\\x4b\\x92\\x0f\\x1c\\x38\\x8e\\\n\\x31\\xa3\\xea\\x29\\xb8\\xd0\\x3d\\x9c\\x62\\x78\\x78\\x84\\x5c\\x36\\x03\\xca\\\n\\xe3\\x19\\x0d\\xc3\\x20\\x14\\x0a\\x13\\x8e\\x44\\x91\\x91\\x08\\x23\\xe9\\x14\\\n\\xc5\\x62\\x91\\xba\\xba\\x3a\\x1c\\xc7\\xf1\\x1b\\xae\\x24\\x81\\x40\\x80\\xfe\\\n\\xfe\\x7e\\x72\\xd9\\x2c\\x91\\x68\\x04\\x21\\x0d\\x86\\x87\\x86\\xc8\\x64\\x52\\\n\\x65\\x76\\xc0\\x32\\x2d\\x82\\xa1\\x30\\x89\\x8a\\x4a\\xe2\\xf1\\x04\\xe1\\x50\\\n\\x88\\x4c\\x26\\x4d\\x26\\x9f\\xa2\\x10\\x8c\\x21\\x85\\xc0\\x15\\x20\\x5c\\x35\\\n\\x43\\x18\\xfa\\x74\\x21\\xcc\\x7b\\x84\\xfc\\xdf\\x69\\x5b\\x10\\x43\\xa9\\xc2\\\n\\xbf\\xfe\\x49\\xa5\\x24\\x9f\\xcd\\x62\\xdb\\xf6\\x5b\\x87\\x18\\xed\\x19\\x70\\\n\\x18\\x00\\xfd\\xac\\xed\\xb8\\xf3\\x73\\xb6\\xa2\\xa2\\xa2\\x9a\\xf4\\xc8\\x30\\\n\\x3b\\xb7\\xac\\xe5\\xe8\\xa3\\x0e\\x2f\\xdf\\x7d\\x78\\x78\\xb8\\x7c\\x02\\x92\\\n\\xc9\\x24\\x81\\x40\\x80\\x8d\\x1b\\xd6\\x31\\x65\\xea\\x74\\x66\\xce\\x3d\\x98\\\n\\xef\\xff\\xec\\x06\\x6a\\x9b\\x47\\xb1\\x79\\xe3\\x1a\\x70\\x15\\x2e\\xd2\\xb3\\\n\\x6c\\xae\\xe7\\x9e\\x95\\x76\\x71\\x1d\\xed\\x05\\xfa\\xae\\xbb\\xc7\\x32\\x2a\\\n\\x8d\\xab\\x00\\xe5\\x62\\x2b\\x87\\x4c\\xc1\\x61\\x24\\x55\\xa0\\xae\\xba\\x12\\\n\\x55\\x4c\\x91\\xea\\xde\\xca\\xba\\xe5\\x8b\\xb8\\xf8\\x13\\xe7\\x73\\xd6\\x59\\\n\\x67\\x97\\x5f\\xcf\\x2b\\xaf\\xbe\\xc2\\x17\\xbf\\xf0\\x79\\xaa\\xab\\x6a\\x68\\\n\\x6b\\xdb\\xcd\\xf1\\xc7\\x1f\\xc7\\x35\\xd7\\x5c\\x43\\x36\\x93\\x25\\x1c\\xb6\\\n\\xf8\\xf4\\xe7\\xfe\\x8b\\x1e\\x31\\x8a\\xd6\\x49\\xd3\\xd1\\x76\\x0e\\x43\\x08\\\n\\xb2\\xf9\\x02\\xc5\\x82\\xcb\\x31\\x07\\x8c\\xe6\\x84\\x83\\x27\\x12\\x0e\\x87\\\n\\x18\\x4a\\xd9\\xf4\\x0e\\x8c\\x30\\x32\\xd8\\x0d\\x5a\\x11\\x0e\\x06\\xc9\\xd9\\\n\\x8a\\x54\\xb6\\x88\\xab\\x35\\x52\\x28\\x22\\xa1\\x00\\x0d\\xb5\\x55\\x54\\xc4\\\n\\x92\\x74\\xf7\\x0f\\x61\\x05\\x2d\\x1a\\x1b\\x1a\\x28\\x14\\x0a\\x84\\x42\\x21\\\n\\x7a\\x7a\\x7a\\xc8\\x64\\xd2\\x54\\xd6\\xd4\\x93\\x1a\\x1a\\x62\\x64\\xa0\\x07\\\n\\x07\\x85\\xab\\x4d\\xb4\\x36\\xfc\\xb8\\x55\\x21\\x94\\x83\\x29\\x34\\xb1\\x44\\\n\\x82\\xfa\\x86\\x66\\x02\\x81\\x00\\xe9\\xd4\\x08\\xe9\\x6c\\x1e\\x23\\x90\\x20\\\n\\x10\\x0c\\x22\\x05\\x58\\xa6\\xcc\\x48\\x69\\x4c\\x93\\x06\\xbb\\xfe\\x37\\xc0\\\n\\x68\\xb6\\xb7\\xef\\xfc\\x97\\xd7\\x97\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\\xe9\\x59\\x42\\x17\\x47\\xb9\\x08\\x19\\xc0\\x08\\x86\\x70\\x8a\\x60\\x67\\\n\\x06\\x99\\x3b\\x79\\x34\\xfb\\x4d\\x6e\\x66\\xd6\\xf8\\x26\\xc2\\xe1\\x30\\x8f\\\n\\xde\\x7e\\x0d\\xe9\\xe1\\x41\\x22\\x91\\x18\\x35\\x0d\\x4d\\x34\\xb5\\x8c\\xf2\\\n\\x5e\\x73\\xb1\\x48\\x38\\x1c\\x66\\xfd\\xba\\x75\\x38\\x8e\\x43\\x2e\\x9f\\x27\\\n\\x18\\x0c\\x72\\xc0\\x01\\x07\\xd0\\xd7\\xd7\\xc7\\xfd\\xf7\\xdd\\xc7\\xb3\\x2f\\\n\\xbd\\xc8\\xca\\x57\\x5f\\xa1\\x6a\\xf4\\x44\\x6c\\x3b\\x45\\xdf\\x60\\x16\\x43\\\n\\x0a\\x2e\\x3c\\xf9\\x10\\x0e\\x9d\\x59\\x4f\\x2a\\x6b\\x53\\x28\\x6a\\xfa\\x07\\\n\\x86\\x70\\x0a\\x59\\x9a\\x1a\\xaa\\xd9\\xd8\\x91\\x65\\xf1\\xca\\xcd\\xf4\\x65\\\n\\x24\\xc1\\x68\\x98\\x58\\x50\\x60\\x08\\x9b\\xa2\\xeb\\xd2\\xef\\x40\\x6f\\x4a\\\n\\xd2\\x91\\xee\\x62\\xd0\\x2d\\xb0\\xff\\x84\\x51\\xf4\\x0e\\x8c\\x30\\x30\\x30\\\n\\x40\\x6a\\x64\\x84\\x78\\x22\\x49\\xff\\xc0\\x00\\xa6\\x2e\\xd0\\xa3\\xc2\\xf4\\\n\\x66\\x05\\x06\\x26\\x96\\x01\\xa6\\xe1\\xa2\\x84\\xc0\\x50\\x06\\x8e\\x15\\x44\\\n\\x04\\x93\\x98\\x56\\x91\\xa2\\xdd\\xc7\\x60\\x7f\\x3f\\x86\\xb4\\x08\\x87\\x42\\\n\\x08\\x34\\xc3\\x99\\x3c\\x85\\xbc\\x89\\x0c\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xe0\\x48\\\n\\x9e\\xa2\\x23\\x29\\x14\\x32\\xd8\\xc5\\x2c\\xcd\\x35\\x49\\xd6\\xb6\\xa7\\xb8\\\n\\xf7\\xf9\\x4d\\x04\\xc3\\x06\\xc9\\xb8\\x89\\x40\\x21\\x5c\\xbf\\x31\\x0b\\x85\\\n\\x90\\x26\\x81\\x90\\xc4\\x76\\x34\\x2f\\xaf\\xec\\x23\\x1e\\xad\\x60\\x4a\\x4b\\\n\\x92\\x5d\\xed\\xbb\\xa8\\x48\\x56\\x21\\x85\\x26\\x28\\x6c\\x76\\x64\\x4d\\xb6\\\n\\xf6\\xd9\\x24\\x02\\x26\\x32\\x50\\x40\\x6b\\x89\\xab\\x4d\\x84\\xd2\\x18\\xb8\\\n\\x1e\\xcd\\x83\\x46\\x9b\\x06\\xc1\\x70\\x3d\\xb6\\x4a\\x91\\xcb\\x8e\\x60\\x1a\\\n\\x95\\x44\\xa3\\x31\\xac\\x40\\x88\\xbe\\x81\\x11\\xf2\\x42\\x10\\x8e\\x44\\x10\\\n\\x70\\x95\\xd0\\x7a\\xfe\\xff\\xb4\\xa3\\x36\\xff\\x1d\\x73\\x59\\x8c\\x80\\x41\\\n\\x6a\\x78\\x84\\x42\\xca\\x46\\xbb\\x72\\xaf\\x89\\x09\\x36\\xd2\\x30\\x52\\x6e\\\n\\xd1\\xee\\x77\\x95\\x48\\x54\\x44\\x2d\\xaa\\xe2\\x55\\x5c\\xf3\\xc3\\xab\\x58\\\n\\xbf\\x71\\x13\\x0f\\x3e\\xf8\\x20\\xf7\\xdf\\x7f\\x1f\\x4b\\x97\\x2e\\x05\\x20\\\n\\x14\\xdc\\x73\\xa1\\x2c\\x3c\\xf1\\x54\\xbe\\xf3\\x93\\x5f\\xa3\\x09\\xb2\\x7e\\\n\\xed\\x1b\\xbe\\x94\\x4a\\xa2\\x5c\\x07\\x57\\xe3\\xbb\\x67\\x0f\\x88\\xde\\x6c\\\n\\x45\\xc1\\x70\\x3a\\xc5\\x70\\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x64\\xb3\\x69\\xfa\\x07\\x06\\x08\\x87\\xfc\\x0b\\x4b\\x29\\x12\\x35\\x15\\x3c\\\n\\xfe\\xfa\\x3a\\xda\\x7b\\xf3\\xb4\\x36\\x46\\x71\\x6c\\x07\\x29\\x15\\x52\\x58\\\n\\xb8\\xca\\x26\\x18\\x8e\\x92\\xa8\\x68\\xc0\\xc9\\xa7\\xe9\\xd8\\xb5\\x95\\x81\\\n\\xdd\\xdb\\x19\\x68\\xdb\\xc6\\xb6\\xcd\\xeb\\xa9\\xfa\\xfe\\xe5\\x9c\\x7a\\xd2\\\n\\x49\\x6c\\xdf\\xd9\\xc6\\x95\\xdf\\xf9\\x36\\x99\\xa2\\x45\\xc3\\xd8\\x69\\x4c\\\n\\x9c\\x34\\x81\\xf1\\x53\\x26\\xd2\\xdc\\x38\\x8a\\x74\\x26\\x4d\\x7a\\x64\\x90\\\n\\x20\\xa5\\x91\\x92\\x02\\x57\\x48\\x84\\xe3\\x60\\x58\\x92\\xbc\\x92\\x98\\xae\\\n\\x37\\x82\\xcf\\x75\\x8a\\x0c\\xa6\\xd3\\xd4\\xd7\\x56\\x51\\xe3\\xba\\xf4\\x0f\\\n\\xa5\\xb1\\x0d\\x93\\x40\\x28\\x7c\\x81\\x08\\x04\\xaf\\xf7\\x46\\xa3\\xe9\\xff\\\n\\x77\\xc1\\x28\\x84\\x81\\xe3\\x14\\x71\\xdd\\x22\\x96\\x65\\x11\\x0c\\x04\\x90\\\n\\x09\\x28\\x14\\x0b\\xc9\\xbf\\xde\\xff\\xe0\\x33\\xc9\\x58\\x38\\x77\\xcc\\xb1\\\n\\x0b\\xc3\\x60\\x62\\x46\\x61\\x78\\x68\\x98\\xfe\\x8e\\x21\\x94\\x76\\x19\\x37\\\n\\x6e\\x2c\\xe3\\xc6\\x8d\\xe5\\xc6\\xdf\\xfc\\x9a\\x71\\xe3\\x26\\xf3\\xd3\\xeb\\\n\\x6f\\x65\\xea\\x9c\\x03\\xd9\\xb4\\x79\\x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e\\x72\\x03\\\n\\xbf\\xd6\\x9a\\x91\\xe1\\x61\\x92\\x15\\x49\\x9e\\x78\\xec\\x71\\xae\\xfe\\xfe\\\n\\xd5\\x74\\xf7\\xf5\\x90\\x0c\\x87\\xe8\\x68\\xef\\x40\\x86\\xaa\\xa8\\xab\\xab\\\n\\xc3\\x70\\x14\\x93\\x43\\x26\\xdd\\x9d\\x3b\\x59\\xf7\\xc6\\x6b\\x3c\\xf3\\xcc\\\n\\xf3\\xcc\\xd9\\x6f\\x36\\x2d\\xad\\xad\\xf4\\x74\\xf7\\x92\\xcd\\xa4\\xe4\\x70\\\n\\x78\\x70\\xfe\\xe8\\xd1\\x63\\xff\\xec\\x38\\x45\\xb2\\xf9\\x6c\\x79\\x46\\xf9\\\n\\x3f\\x55\\xa9\\x13\\x02\\xd3\\xb2\\x78\\xe1\\xb9\\xa7\\x69\\x6d\\x6e\\xc2\\x2c\\\n\\x71\\x61\\xfe\\x68\\x91\\x7f\\xe8\\xf9\\xbd\\xe6\\x76\\xaf\\x59\\x3d\\x9f\\x2f\\\n\\xa0\\xb5\\x16\\x8e\\x63\\xeb\\x60\\x75\\x55\\xe7\\xe1\\x47\\x1c\\xd1\\xfb\\xd7\\\n\\x7b\\xef\\x89\\x67\\x33\\x59\\x86\\x53\\x29\\x22\\xe1\\x70\\xd9\\x85\\x39\\xfe\\\n\\xa6\\xa9\\x12\\x00\\xae\\xb9\\xe6\\x1a\\xd6\\xae\\x5d\\x4b\\x53\\x53\\x13\\xdd\\\n\\xdd\\xdd\\x5c\\x7c\\xf1\\xc5\\x34\\x34\\x34\\x90\\x48\\x24\\x28\\x16\\x8b\\x68\\\n\\xad\\xb1\\x6d\\x9b\\xae\\xae\\xae\\x72\\x49\\xee\\xe4\\x93\\x4f\\x66\\xda\\xb4\\\n\\x69\\x04\\x83\\x41\\xfa\\xfa\\xfa\\xf8\\xeb\\x5f\\xff\\xca\\xa3\\x8f\\x3e\\x4a\\\n\\xb1\\x58\\xc4\\x30\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\x24\\x72\\x69\\x4e\\x3c\\xe1\\x78\\xd2\\xd9\\x3c\\xbb\\xda\\x76\\x71\\xc4\\x51\\\n\\x47\\x31\\x69\\xf2\\x64\\x86\\x87\\x87\\x89\\x44\\x23\\xf4\\xf7\\xf7\\x93\\x19\\\n\\x19\\x21\\x14\\x08\\xec\\x3b\\x4f\\x12\\x4f\\xff\\x58\\xcc\\xa4\\xc9\\xa6\\x53\\\n\\xd4\\xd6\\x37\\x61\\x93\\xde\\xa7\\xc4\\x9b\\xcb\\x17\\x19\\x35\\x66\\x1c\\x86\\\n\\x0c\\x50\\x28\\x14\\xd0\\xca\\xd1\\x9b\\x37\\x6d\\x54\\x83\\x83\\xfd\\x0c\\x0e\\\n\\x0f\\x78\\xe3\\xa4\\xdf\\xf5\\xe7\\xa8\\xa8\\xaa\\xae\\xc2\\xb1\\x6d\\xfe\\xf4\\\n\\x87\\x3f\\x50\\x28\\x16\\x39\\xf4\\xd0\\x43\\x19\\x1a\\x1a\\xf2\\x2e\\x38\\xc3\\\n\\x30\\x88\\x44\\xa2\\xac\\x7c\\x7d\\x15\\x89\\x8a\\x18\\xb3\\x67\\xcf\\x62\\x78\\\n\\x64\\x84\\x42\\xbe\\x50\\x26\\x57\\xdf\\x45\\x65\\xd0\\x9f\\x7b\\xad\\x90\\x52\\\n\\xba\\x55\\x55\\x55\\xbf\\xea\\xeb\\xeb\\xbb\\x3c\\x1e\\x8f\\xf1\\x83\\xab\\x7e\\\n\\xce\\xd2\\xc5\\xaf\\xd2\\xdb\\xd3\\x4e\\x36\\x9b\\x25\\x97\\xcb\\xd1\\xd9\\xd9\\\n\\x89\\x6d\\xdb\\xcc\\x9d\\x3b\\x97\\x33\\xcf\\x3c\\x93\\xb1\\x63\\xc7\\x12\\x08\\\n\\x04\\xe8\\xea\\xea\\xe2\\xce\\x3b\\xef\\xe4\\xc9\\x27\\x9f\\x2c\\xd7\\x77\\x4b\\\n\\x25\\x36\\xaf\\x9c\\x97\\x2b\\x03\\xa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\\x0a\\x8c\\xa4\\x53\\x24\\x62\\x71\\xfa\\x07\\x06\\x18\\x1a\\x19\\\n\\xe6\\x43\\xa7\\x7d\\x88\\xab\\xaf\\xbe\\x1a\\xe1\\x97\\x1c\\x2d\\xcb\\x2a\\xd3\\\n\\x5e\\x52\\x4a\\xce\\x39\\xe7\\x9c\\xf2\\x89\\x2f\\x89\\x89\\xb5\\x21\\xc0\\x05\\\n\\xc7\\xb1\\xb1\\x6d\\x9b\\x79\\x07\\xcc\\xe3\\x88\\xc3\\x8f\\xf0\\x07\\x41\\x65\\\n\\x88\\xf9\\xbc\\x1d\\x40\\x26\\x93\\xe1\\x53\\x17\\x7d\\x8a\\x74\\x3a\\xcd\\x77\\\n\\xbf\\xff\\x3d\\x06\\x86\\x87\\xa9\\xaa\\x88\\x13\\xaf\\x88\\x32\\x6d\\xbf\\x79\\\n\\x64\\x32\\x59\\x2c\\xe1\\x0d\\x29\\x37\\xad\\x08\\x52\\x19\\x6c\\x5c\\xf9\\x1a\\\n\\xd5\\x15\\x51\\x66\\xcd\\x9e\\x41\\x26\\x93\\x27\\x14\\x0a\\x11\\xb1\\x82\\x4f\\\n\\x54\\x54\\x54\\xa2\\x6c\\x17\\x43\\x19\\x18\\xc8\\xff\\xd6\\x2a\\x46\\xac\\x10\\\n\\x6d\\x83\\x83\\x0c\\x0e\\xf6\\x33\\x61\\xe2\\x04\\x72\\xb9\\xdc\\xdf\\x3d\\xa7\\\n\\xe6\\x7f\\xeb\\xde\\xa4\\xa0\\xb9\\xa5\\x85\\x47\\x1f\\x7e\\x80\\x05\\x47\\x1e\\\n\\xc3\\xfe\\x73\\x66\\xd1\\xdd\\x3f\\x54\\x9e\\xe4\\xff\\xce\\x00\\xe2\\x2d\\xd7\\\n\\x29\\x16\\x0b\\x8c\\x6e\\x4e\\x72\\xdc\\x07\\x4e\\x66\\xed\\xea\\xd5\\xef\\xe8\\\n\\x64\\xff\\xa3\\x20\\x29\\x1d\\x07\\x1f\\x7c\\x30\\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\\x83\\x91\\x91\\\n\\x0c\\xa9\\x8e\\x2e\\x46\\x46\\x46\\xbc\\xde\\xa1\\x64\\x12\\xa7\\x68\\x93\\x4a\\\n\\xa7\\x89\\x55\\x54\\x23\\x85\\x9c\\x85\\x06\\x25\\x5c\\x94\\xe9\\xbc\\xad\\x65\\\n\\x0c\\x47\\x22\\x74\\xee\\xee\\x60\\xf9\\x92\\x97\\xe9\\xed\\xed\\xa6\\xaa\\xaa\\\n\\xba\\xac\\x1f\\xfd\\xb7\\xb4\\x1d\\x24\\x92\\x49\\xd6\\xaf\\x5b\\x43\\x7f\\x7f\\\n\\x1f\\x33\\xa7\\x7d\\x1e\\x43\\x46\\x18\\x19\\xce\\xbe\\x85\\x83\\x14\\x50\\x2d\\\n\\xe0\\xcb\\xc0\\x24\\xe0\\x2b\\x00\\x42\\x69\\x5f\\x40\\x61\\x73\\xf4\\xb1\\xc7\\\n\\x73\\xd5\\x95\\xdf\\xc6\\x75\\x8a\\x6f\\xdb\\x01\\xf9\\xb7\\x12\\x11\\xc3\\x30\\\n\\x38\\xf1\\xc4\\x13\\x39\\xe4\\x90\\x43\\xa8\\xae\\xae\\x66\\x68\\x68\\x88\\xc5\\\n\\x8b\\x17\\xf3\\xe4\\x93\\x4f\\x92\\x4a\\xa5\\x68\\x6a\\x6a\\x62\\xc6\\xf4\\xe9\\\n\\x04\\xc3\\x11\\xa2\\xd1\\x10\\x2f\\xbf\\xb4\\x88\\xb1\\xa3\\x5a\\x90\\xb9\\x21\\\n\\xd6\\xae\\x5d\\x4b\\x43\\xd4\\x20\\x2e\\x1d\\xec\\x4c\\x86\\x86\\xc6\\x46\\xa8\\\n\\x68\\x62\\x67\\x7f\\x8a\\xb1\\x75\\x95\\x8c\\x1e\\x33\\x9e\\xa6\\x39\\x0b\\x08\\\n\\x47\\x2c\\xea\\x9a\\x5b\\xd9\\x8c\\x24\\x32\\xfb\\x08\\x4e\\x5b\\xf8\\x61\\x42\\\n\\xa1\\x10\\x17\\x57\\x55\\x12\\x0a\\x5a\\xb8\\x8e\\x8d\\x61\\x9a\\x24\\x13\\x09\\\n\\x26\\x8d\\x6f\\xe0\\x91\\x3b\\xee\\xe1\\x96\\x6b\\xae\\x24\\x59\\x59\\x49\\xcd\\\n\\xa4\\xd9\\x8c\\x99\\x31\\x93\\x59\\x27\\x7e\\x18\\x61\\x48\\x76\\xef\\xee\\x64\\\n\\x6d\\x57\\x37\\x75\\x87\\x9e\\xc2\\x05\\x0b\\x3f\\x4c\\x7f\\x7f\\x3f\\x77\\xaf\\\n\\xde\\x8d\\x49\\x25\\xd3\\x4f\\xbe\\x10\\x3b\\x9f\\x25\\x36\\x76\\x39\\x76\\x5f\\\n\\x3b\\xbb\\x07\\x46\\x10\\x35\\xa3\\x69\\xc9\\xd9\\xa4\\xbb\\x3b\\x10\\x52\\x91\\\n\\xe9\\xdf\\x4d\\x3e\\x62\\x10\\xae\\xab\\xe4\\xc3\\x1f\\x39\\x87\\xef\\x5c\\x7e\\\n\\x25\\x1d\\xbb\\x77\\x32\\x3c\\x34\\xcc\\x6b\\xcb\\x96\\x11\\x0a\\x06\\xf9\\xaf\\\n\\xcf\\x7f\\x1e\\xcb\\xb4\\x18\\x3b\\x7a\\xcc\\x1e\\x8e\\x56\\x29\\x6c\\xc7\\x93\\\n\\xcb\\x55\\x55\\x57\\x03\\x9a\\xee\\xde\\x5e\\x1e\\x78\\xe2\\x45\\x8e\\x5c\\x78\\\n\\x12\\xf1\\x88\\x43\\x36\\x57\\xa4\\xbd\\xbd\\x9d\\x40\\xc0\\x42\\x6b\\x2f\\x81\\\n\\x8a\\x44\\x22\\xe5\\xb0\\x60\\x24\\x35\\x8c\\x56\\x92\\x68\\x24\\xba\\xc5\\x55\\\n\\xee\\x6f\\x84\\x94\\x98\\x01\\xc3\\xaf\\x73\\xeb\\xb7\\x48\\xef\\xa4\\x61\\x60\\\n\\x06\\x2c\\x40\\x90\\x48\\x24\\xdf\\x75\\x12\\xfa\\xae\\xc1\\xe8\\x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d\\xdd\\x3d\\xa5\\x37\\x31\\x77\\\n\\xee\\x5c\\xde\\xf7\\xbe\\xf7\\x31\\x65\\xca\\x14\\xb4\\xd6\\xac\\x5f\\xbf\\x9e\\\n\\x3f\\xff\\xf9\\xcf\\xac\\xde\\x2b\\x13\\x6f\\x69\\x69\\x66\\xcc\\xb8\\x09\\x48\\\n\\x5c\\xb6\\xbc\\xb1\\x94\\x70\\x20\\x48\\x3c\\x1a\\x43\\x45\\xab\\x28\\x4c\\x3d\\\n\\x82\\x29\\x27\\xcf\\x22\\x54\\xd1\\x80\\x55\\x53\\x4b\\xb2\\xa6\\x9a\\xb0\\x19\\\n\\x24\\x60\\x99\\x98\\x5a\\x10\\x44\\x13\\xab\\xa8\\xc7\\x10\\x82\\xc1\\x11\\x87\\\n\\xba\\x6c\\x9a\\xc2\\x50\\x3f\\x76\\x7e\\x04\\xa9\\x35\\x96\\x94\\x14\\x02\\xde\\\n\\xae\\xbe\\xa0\\x29\\x08\\x98\\x92\\x80\\x61\\x51\\x30\\xf1\\xd4\\xdd\\x86\\x60\\\n\\x24\\x99\\x24\\x9b\\x49\\x93\\xcb\\xe7\\x29\\x16\\x6d\\xf2\\x99\\x34\\x23\\x59\\\n\\x48\\x0f\\x0f\\x52\\xb4\\x05\\x45\\xd7\\xa1\\xe8\\x38\\x14\\x5d\\xfc\\xaf\\xde\\\n\\xc2\\xa0\\xa2\\xab\\x50\\xb6\\x26\\xa0\\x25\\x85\\x74\\x8a\\xc1\\xe1\\x3c\\xd5\\\n\\xa2\\x40\\xb2\\xba\\x86\\x8c\\x11\\x42\\xb4\\x4c\\xc1\\x56\\x0e\\xb6\\xad\\xc9\\\n\\x0d\\x0e\\x33\\xd0\\xd7\\xcd\\x2d\\x1b\\xd6\\x50\\xac\\x9a\\x46\\x60\\xf1\\x2b\\\n\\xac\\x5d\\xf1\\x1a\\x62\\xa4\\x1b\\x3b\\x9d\\x64\\xea\\xcc\\x19\\x74\\xb5\\x77\\\n\\xb0\\x71\\xe3\\x7a\\xa4\\x34\\xbc\\x7d\\xdc\\x42\\x10\\xb0\\x02\\xbe\\x60\\xb6\\\n\\x9f\\x09\\x53\\x26\\x73\\xf5\\xaf\\xff\\x80\\x61\\x18\\xe4\\x94\\x83\\xca\\xc2\\\n\\xee\\xf6\\x6d\\xc4\\x93\\xd5\\xe5\\xc9\\x17\\x25\\x06\\x21\\x93\\xc9\\xe0\\xd8\\\n\\x36\\xae\\xd6\\xc4\\x2b\\x6b\\x28\\x2a\\x71\\x38\\x82\\x2f\\xe3\\xaa\\xf3\\xbd\\\n\\xd5\\x73\\x52\\x97\\xc2\\xa5\\x70\\x38\\x8c\\x21\\x25\\x5b\\xb6\\x6f\\x27\\x37\\\n\\x3c\\xcc\\xf2\\x25\\x4b\\x68\\x68\\x6c\\x24\\x12\\x89\\xfc\\xb7\\x42\\xe6\\xb7\\\n\\x80\\x31\\x12\\x89\\x10\\x0a\\x85\\xfe\\xa1\\xae\\xae\\x86\\x86\\x46\\x46\\x46\\\n\\x52\\xdc\\x7c\\xf3\\x8d\\x84\\x82\\x26\\xe7\\x7c\\xf4\\x7c\\x8c\\x40\\x98\\xbe\\\n\\xbe\\x41\\x4f\\x1d\\xad\\x55\\x69\\x9b\\xe8\\x62\\xd0\\xd3\\x4a\\x74\\x80\\x61\\\n\\x18\\xf4\\xf6\\x8c\\xb0\\xe0\\xa8\\xf7\\x13\\x4d\\x54\\x90\\x19\\x19\\x2a\\x3f\\\n\\xef\\xb8\\x71\\xe3\\x38\\xee\\xb8\\xe3\\x98\\x3e\\x7d\\x3a\\xc1\\x60\\xd0\\x13\\\n\\x99\\xfe\\xee\\x77\\x2c\\xf6\\x6b\\xb4\\x7b\\x5b\\xce\\x44\\x45\\x15\\x53\\xa7\\\n\\xcd\\x64\\xd7\\x86\\x15\\xa4\\xba\\x7a\\x08\\x4c\\x3e\\x04\\x67\\xee\\x42\\xcc\\\n\\x8d\\xcf\\xa1\\x86\\x86\\x88\\x9d\\xf8\\x19\\x62\\xf1\\x08\\xe4\\x06\\x09\\x38\\\n\\x0e\\x6a\\xb0\\x8f\\x9c\\xd0\\xb8\\xa6\\x41\\xc8\\x30\\xd1\\xa6\\x41\\xa8\\x22\\\n\\x4a\\xbe\\x98\\x21\\x07\\x38\\x45\\xb5\\x97\\x75\\x50\\xde\\x8d\\xc0\\xdb\\xc4\\\n\\xac\\x7b\\x5e\\x87\\x01\\x28\\x07\\x8a\\xd9\\x1c\\xc5\\x7c\\xd6\\x1f\\x8a\\xba\\\n\\x27\\xb6\\x55\\xfe\\x3a\\x60\\xef\\x5c\\xfb\\xd6\\x07\\x81\\xf4\\xf7\\xcb\\x68\\\n\\x43\\xe0\\x28\\x97\\xa2\\x03\\x22\\x53\\xc0\\xcd\\x65\\xc9\\xa7\\xfb\\x70\\x95\\\n\\x83\\x5b\\x50\\x28\\xd7\\x46\\x60\\x92\\xa8\\x6b\\x22\\xd8\\x32\\x85\\xb4\\x73\\\n\\x2a\\xaf\\x7f\\xff\\x43\\xe4\\x23\\x55\\x54\\x2c\\xbc\\x84\\xc1\\x57\\xee\\xc1\\\n\\x19\\x5e\\x46\\xdd\\xf4\\x69\\x84\\x76\\x47\\xe9\\xef\\xed\\x25\\x12\\x8d\\x60\\\n\\x5a\\x26\\xd9\\xcc\\x08\\x99\\x4c\\x9e\\x59\\x73\\x0f\\xe6\\xea\\x5f\\xde\\x40\\\n\\x28\\x1a\\xa3\\xb7\\xbb\\x93\\x50\\x34\\x04\\x6e\\x92\\xd4\\xc8\\x6e\\xc2\\x91\\\n\\x22\\xa1\\x50\\x02\\xdb\\xb6\\x31\\x0c\\xaf\\x55\\xc1\\xb6\\x1d\\x86\\x87\\xfa\\\n\\xa9\\xae\\x6d\\xa4\\xb2\\xaa\\x96\\xa2\\x93\\x6d\\x37\\x84\\xb8\\xd0\\x75\\x34\\\n\\xc2\\x51\\x18\\x21\\x03\\x14\\x84\\x23\\x61\\x0a\\x85\\x22\\x76\\x26\\xc3\\x6d\\\n\\xbf\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\x96\\x43\\x11\\x82\\xe1\\x20\\xd1\\x70\\x8c\\xca\\x96\\x7a\\x64\\\n\\x28\\x81\\x03\\x18\\xd2\\x21\\x5e\\x1b\\x60\\x38\\x1f\\x40\\x15\\x0a\\x64\\x33\\\n\\x69\\xb2\\x29\\x07\\xad\\x8a\\xa0\\x6c\\x82\\x86\\x04\\xd7\\xc6\\xce\\x67\\x30\\\n\\x85\\x44\\x0a\\x49\\x67\\x73\\x25\\x3b\\xd7\\xae\\x22\\x1a\\x0a\\x81\\x51\\x64\\\n\\xf9\\xb3\\x0f\\x31\\xd2\\x31\\x8d\\x3e\\x5b\\x83\\x15\\xf6\\x76\\xc3\\xe4\\xf2\\\n\\x04\\x62\\x55\\x44\\x2b\\xaa\\x28\\x14\\x1d\\xba\\x07\\x86\\x08\\xc4\\x92\\x54\\\n\\xd5\\xd6\\x91\\x68\\x09\\x11\\x0a\\x07\\xc9\\x03\\xae\\x65\\x11\\xad\\x6d\\x26\\\n\\x67\\x5b\\xa8\\xf4\\x10\\x56\\x7e\\xd8\\x1b\\xeb\\xec\\x8f\\x12\\xd1\\x08\\x30\\\n\\xa4\\xbf\\xbb\\xfa\\xcd\\xd4\\x08\\xd8\\xb9\\x0c\\xa2\\x98\\x21\\x3b\\x32\\x88\\\n\\xe3\\x14\\x19\\x3d\\x76\\x02\\xa1\\x50\\x88\\x5c\\x36\\x4d\\x21\\x9f\\x65\\xd4\\\n\\xa8\\xd1\\x18\\x68\\x36\\xbc\\xfe\\x0a\\xda\\x29\\x90\\xa8\\x18\\x8d\\xab\\x5c\\\n\\xd2\\xa9\\x61\\x82\\xb1\\x4a\\xac\\x68\\x82\\x8e\\xb6\\x76\\x72\\x99\\x0c\\x1b\\\n\\xd6\\x6c\\x40\\xe8\\xe2\\x84\\xea\\x9a\\x64\\x3c\\x97\\xcb\\x6f\\xdc\\xbc\\x79\\\n\\x83\\xfb\\xd2\\xa2\\x97\\x9e\\x7a\\xe1\\xf9\\x17\\x62\\xed\\x3b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\\n\\x88\\x23\\x19\\x1c\\x1c\\xa4\\x50\\x28\\xf0\\xfc\\xf3\\xcf\\xd3\\xd1\\xd1\\xc1\\\n\\xa6\\x4d\\x9b\\x18\\x18\\x18\\xc0\\x34\\x4d\\x66\\xcc\\x98\\x41\\x34\\x1a\\x65\\\n\\xfd\\xca\\xd7\\x71\\xa4\\x9f\\xec\\x22\\xd1\\x42\\x81\\x90\\x28\\xed\\x7a\\xc3\\\n\\x04\\xa4\\x89\\xb4\\x24\\x66\\x38\\x41\\x28\\xd2\\x48\\x40\\x2a\\xc8\\x0f\\xa2\\\n\\xb5\\xa4\\x30\\xd0\\x87\\x3d\\xb0\\x8d\\xac\\x9d\\x63\\xa7\\x1b\\x64\\x68\\xcb\\\n\\x6a\\x26\\x36\\xd5\\x91\\xed\\xef\\xe6\\xd6\\x4f\\x9f\\x4b\\xa1\\xa7\\x87\\x80\\\n\\x25\\xb0\\x95\\xc3\\x70\\xdf\\x00\\x79\\x7f\\xf7\\xb3\\x65\\x9a\\xe4\\x32\\x19\\\n\\x9c\\x42\\x01\\x5b\\xb9\\x04\\x64\\x11\\x43\\x5a\\xe8\\x40\\x82\\xda\\xaa\\x0a\\\n\\x22\\x81\\x30\\x4f\\x3d\\xbe\\x84\\xc7\\x1f\\x5d\\xca\\xb6\\x15\\x8f\\x93\\x1d\\\n\\xee\\xa5\\x69\\xca\\x81\\x4c\\xd9\\xef\\x60\\x3a\\xb7\\xae\\xa4\\x6d\\xc7\\x56\\\n\\xaa\\xea\\xea\\x39\\xe0\\xc0\\x83\\x18\\x4e\\xe5\\x69\\xeb\\xdc\\x4d\\x7c\\xd4\\\n\\x38\\xdc\\x81\\x4e\\x46\\x57\\x24\\xc8\\x75\\x76\\xb0\\xed\\xb9\\xbf\\xa2\\x70\\\n\\x20\\x5e\\x85\\x4c\\x8e\\x45\\x84\\xe2\\x04\\x64\\x00\\xb3\\x60\\xa3\\x72\\x39\\\n\\xcf\\xa5\\x28\\x1b\\xa1\\xc0\\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\\x27\\xae\\x74\\xc9\\xc7\\x5b\\x08\\xf4\\xad\\x44\\xae\\xb8\\x9b\\xf0\\\n\\xfa\\x45\\xc8\\x58\\x03\\x23\\x46\\x04\\x7b\\xcd\\x73\\x6c\\xe9\\x1d\\xa1\\xa6\\\n\\x52\\x52\\x8c\\x26\\xc9\\xe6\\x87\\x69\\x4d\\x48\\xea\\x65\\x15\\x81\\x91\\x27\\\n\\xc8\\x1a\\x01\\x2a\\xc6\\xef\\x87\\xb0\\x12\\x4c\\x54\\x3b\\x11\\x81\\x2c\\x66\\\n\\x55\\x0d\\xe9\\x4c\\x96\\xea\\x78\\x05\\x31\\xa9\\xb1\\x73\\x69\\x42\\x55\\xb5\\\n\\x4c\\x38\\xe4\\x04\\x5a\\xa6\\xcc\\x43\\x06\\x43\\x38\\x76\\x01\\xc3\\x08\\x51\\\n\\xcc\\x66\\x29\\x64\\x86\\x18\\x35\\xef\\x04\\x02\\x87\\x9f\\x89\\x6b\\xe7\\x29\\\n\\xa4\\xfa\\xd1\\x5a\\xd0\\x38\\xed\\x00\\x84\\x69\\x61\\x67\\x46\\x28\\x0c\\xf5\\\n\\xd1\\x32\\xfb\\x30\\x26\\x1d\\xb2\\x90\\x5c\\x2e\\xcb\\x0b\\x1b\\xfa\\x71\\x06\\\n\\xb7\\x11\\x9a\\x72\\x22\\xc1\\x70\\x05\\x33\\xdc\\xd5\\x90\\xcb\\x11\\x6c\\x99\\\n\\x4b\\xa3\\x76\\x08\\xa5\\x5f\\x20\\xae\\x76\\x13\\xaf\\x31\\x59\\xa5\\x6d\\x74\\\n\\x20\\x46\\xd8\\xb4\\xe8\\xd9\\xb8\\x93\\x9a\\xdd\\x7d\\x84\\x02\\x41\\x82\\x83\\\n\\xed\\x64\\x6e\\xfd\\x3c\\x7a\\xde\\x49\\x14\\x47\\xcd\\x45\\xa5\\x3a\\x31\\xc6\\\n\\x2c\\x04\\x1d\\xe4\\xa1\\x35\\x59\\x1e\\x5a\\xf1\\x24\\x46\\xf5\\x71\\x58\\x0d\\\n\\x82\\x3b\\xd7\\x6b\\x1e\\xdc\\xfe\\x0a\\x85\\x7c\\x08\\x21\\xe0\\xb1\\xa5\\xdd\\\n\\x3c\\x73\\xd9\\x03\\x68\\xe7\\x00\\xac\\x03\\xe6\\xf1\\x8a\\x2b\\x39\\xe8\\xe2\\\n\\x3f\\x21\\xe3\\x55\\x24\\x4e\\xf8\\x01\\xca\\x32\\xf8\\xaf\\x3f\\x6c\\x21\\x50\\\n\\x55\\x17\\x9f\\xfa\\xb1\\xdf\\x50\\x35\\x7a\\x3a\\x8f\\xfe\\xf1\\x7b\\x14\\xd7\\\n\\xae\\x61\\xd4\\xfe\\xef\\x67\\xee\\x79\\x57\\x90\\xed\\x6e\\x23\\x6c\\x38\\x04\\\n\\x2c\\x89\\xd6\\x0e\\x91\\x48\\x98\\x62\\x66\\x88\\xee\\x9d\\x29\\x02\\x01\\x83\\\n\\x78\\x2c\\x86\\x74\\x0b\\x38\\x76\\x91\\x40\\x34\\x89\\x34\\x3c\\xc6\\x00\\xb5\\\n\\xa7\\xa4\\xaa\\x4a\\x5e\\xd9\\x75\\xd1\\xc2\\xc5\\xd4\\x4a\\x7b\\x49\\xc0\\x9b\\\n\\xa9\\x35\\x41\\xb9\\x9a\\x10\\xf4\\xcb\\x84\\xf9\\x7c\\x1e\\x43\\x1a\\x5e\\xb5\\\n\\x42\\xec\\x29\\x69\\xa1\\x15\\xda\\x75\\x71\\x0b\\x0e\\x45\\xdb\\x81\\xfe\\x0e\\\n\\x8a\\x19\\xaf\\xde\\x5c\\x11\\x0b\\xa1\\x46\\x76\\x93\\xcb\\x0c\\x10\\xb2\\x2c\\\n\\x26\\x4e\\x9a\\x4a\\x41\\xe5\\xc9\\x38\\x92\\x68\\x4d\\x9c\\x7c\\xbc\\x91\\x42\\\n\\x51\\x01\\x06\\x52\\x17\\x20\\x54\\x0d\\xca\\x46\\xe3\\xc5\\x44\\x6e\\xd5\\x6c\\\n\\xb4\\x25\\x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83\\xcf\\x2b\\x6a\\xd3\\x44\\x19\\x61\\\n\\x5c\\x57\\x61\\x07\\xab\\x30\\x86\\x77\\xa1\\xfb\\x36\\xa3\\xe3\\x63\\xc9\\xb4\\\n\\x1c\\x03\\x62\\x04\\xcb\\x0c\\x23\\x85\\x85\\x72\\x6d\\x82\\x21\\x41\\x28\\x18\\\n\\x24\\x10\\x30\\x19\\xd3\\x3c\\x95\\xa0\\x25\\xd0\\xd2\\x40\\xd8\\x79\\xc6\\xd6\\\n\\x55\\xb0\\x11\\x70\\xb5\\x66\\xa8\\x73\\x2b\\x6e\\xba\\x1f\\x61\\x08\\x54\\xc0\\\n\\xc2\\xb2\\x24\\x86\\xe5\\x15\\x0a\\xca\\x75\\x2e\\xd3\\xa2\\x90\\x1f\\x44\\x03\\\n\\xe1\\x60\\x0c\\x29\\xbd\\x02\\x86\\xf5\\x26\\x12\\x56\\x80\\xa7\\x66\\x2a\\xda\\\n\\x98\\x5a\\x38\\x5e\\xf0\\xbf\\x57\\x71\\x7f\\x8f\\x9a\\x5a\\xa2\\x5d\\x30\\x23\\\n\\x51\\xcf\\x7c\\xe7\\x52\\x9e\\xaf\\xf4\\xcb\\x19\\x7a\\xef\\x29\\x04\\xbe\\x75\\\n\\x75\\xb5\\xc2\\x56\\x2e\\xf8\\x00\\xd6\\x4e\\x01\\xd7\\x75\\x30\\x95\\xc4\\x56\\\n\\x19\\x6c\\x57\\xe3\\x38\\x1a\\x69\\xbb\\x38\\x76\\x11\\x27\\xef\\xf8\\x93\\xcf\\\n\\x14\\xae\\xd6\\x18\\x00\\x85\\x7e\\x9f\\xbf\\x93\\x68\\xa7\\x03\\xdc\\x10\\xb6\\\n\\x9b\\x45\\x6b\\x17\\x5c\\x07\\xe1\\xba\\x60\\x04\\x30\\x0c\\x8b\\xea\\xd7\\xfe\\\n\\x4c\\xac\\x6f\\x27\\x45\\x1b\\xfa\\x22\\x0d\\x34\\x59\\x83\\x4c\\x4d\\x0e\\xe1\\\n\\x26\\x67\\x63\\x8f\\xec\\x46\\xd8\\x23\\xec\\x0a\\xce\\x24\\x63\\x35\\x52\\xc8\\\n\\xe7\\x29\\xca\\x18\\x28\\x09\\xa2\\x02\\x6c\\x13\\x0a\\x39\\x30\\x35\\xc4\\x83\\\n\\x30\\xb8\\x9b\\x51\\xf5\\xad\\x1c\\x7c\\xe2\\x31\\x24\\x1a\\x27\\x52\\xd9\\x38\\\n\\x0a\\x23\\x10\\x25\\x95\\x19\\xa2\\x90\\x1e\\x41\\x28\\x5d\\x5e\\x0e\\x59\\xaa\\\n\\x8e\\x68\\x04\\x4a\\xfa\\x27\\x40\\x83\\x2c\\x91\\x84\\x86\\xc7\\x1f\\x49\\x17\\\n\\xa4\\x0b\\xb8\\x02\\xa5\\x25\\x76\\x41\\xe2\\x98\\x01\\xec\\xcc\\x30\\x38\\x06\\\n\\xb9\\x54\\x07\\xb9\\xac\\xc6\\x73\\x2f\\x79\\x70\\x2d\\x70\\xbd\\x6d\\x0e\\x52\\\n\\x17\\x88\\xcb\\x66\\xcc\\x62\\x3b\\xb1\\x81\\x4d\\xc4\\x12\\x15\\x98\\xd1\\x26\\\n\\xc6\\x26\\xf3\\x44\\x71\\xe8\\x1c\\xa9\\xc3\\x28\\x28\\x9a\\xde\\x78\\x98\\xc1\\\n\\xee\\x4d\\x6c\\xcd\\x8f\\x42\\x18\\x0e\\x42\\xa5\\xd0\\x42\\xa2\\x5d\\x13\\x44\\\n\\x0a\\x21\\x4d\\x74\\xc0\\x44\\xda\\x9e\\x5b\\x56\\xa4\\x31\\x65\\x06\\x37\\x37\\\n\\x80\\xad\\x2d\\x84\\x21\\x91\\x96\\x89\\x2c\\x0a\\x94\\x12\\x14\\x95\\x85\\x30\\\n\\x2d\\xb4\\x2b\\x3c\\x52\\xdd\\x71\\x70\\x7c\\x6d\\xa4\\x69\\x58\\x68\\x61\\x94\\\n\\x05\\x64\\x7a\\x9f\\x6a\\x92\\x8f\\x07\\x55\\x9a\\x79\\xee\\x3d\\x26\\x14\\x89\\\n\\x20\\x2d\\x3f\\xfc\\x2b\\x15\\x2e\\x34\\xbe\\x90\\xc4\\x27\\xb1\\x84\\xc6\\xd4\\\n\\xda\\x25\\x14\\x0e\\x61\\xe2\\xad\\xc7\\x2d\\xf3\\x59\\xa5\\x3b\\xba\\x10\\xf4\\\n\\xc1\\x98\\x4b\\x8f\\x94\\xd9\\x2f\\x55\\x26\\x72\\xf5\\x3e\\x25\\x02\\x85\\xc6\\\n\\xd5\\x02\\x69\\x7a\\x71\\xa6\\xb6\\x6d\\x5c\\xbf\\x79\\xdc\\x2d\\xd3\\x32\\x02\\\n\\x1b\\xc3\\x6b\\x48\\x90\\x5e\\x7c\\xe0\\xcd\\xee\\x94\\x68\\x6d\\xec\\xa5\\x6e\\\n\\xf1\\xec\\xa3\\x2b\\xdc\\x3d\\x83\\x13\\xa5\\x3f\\xfc\\xc0\\x71\\x89\\x99\\x82\\\n\\xfa\\x5c\\x17\\xbb\\x72\\x2e\\xb1\\x8a\\x04\\x53\\x6b\\x6a\\x19\\x49\\xd5\\xd0\\\n\\x6f\\x27\\xe8\\x2b\\x5a\\xa4\\xd6\\x3f\\x0b\\x38\\x20\\x47\\x20\\x1e\\xf5\\xf9\\\n\\x20\\xcf\\x22\\x6a\\x23\\x04\\xd2\\x42\\x84\\x2b\\xd0\\xca\\x04\\x33\\x09\\x85\\\n\\x00\\x63\\xa7\\xee\\xcf\\x51\\x67\\x7c\\x96\\xed\\x5b\\xb7\\x50\\xc8\\x0c\\xa1\\\n\\x46\\x86\\x40\\x0a\\x2c\\xd3\\x03\\x97\\xa0\\x34\\xdd\\x56\\x94\\x5f\\xa1\\xab\\\n\\xbd\\xf7\\x67\\x08\\xaf\\xdc\\xe7\\x25\\x82\\xba\\x5c\\x02\\x2c\\x91\\xe7\\xd2\\\n\\x57\\xeb\\x04\\xa4\\x8d\\x08\\xc7\\x11\\x86\\x81\\xce\\x01\\x86\\x81\\x61\\x86\\\n\\x71\\x35\\x48\\x2b\\x80\\x54\\x05\\x4f\\x18\\x51\\x4c\\x33\\x6c\\x4b\\xe8\\x4b\\\n\\xd1\\xdf\\xde\\x01\\x74\\x11\\x18\\xdb\\x48\\x5d\\x34\\x81\\x0e\\x66\\x69\\x6a\\\n\\xad\\x24\\x97\\x19\\xa0\\x23\\x9d\\xa6\\x29\\xdb\\x43\\xc2\\x68\\x65\\x10\\xe5\\\n\\x97\\x3f\\x35\\xda\\xfb\\x70\\x7d\\xaf\\x17\\xc4\\x2d\\x11\\x86\\xa2\\x74\\xfe\\\n\\x7c\\x4b\\x26\\xfc\\x81\\x09\\x5a\\xa2\\x84\\x81\\xa1\\xbd\\x41\\x0c\\x1a\\x89\\\n\\x16\\x02\\x8d\\x83\\x53\\xf4\\x5a\\x78\\xcd\\x40\\xd0\\x2b\\x28\\x68\\x85\\x52\\\n\\xf2\\x2d\\x15\\xa2\\x12\\x18\\xa5\\x94\\x14\\x0b\\x5e\\x37\\x63\\x20\\x1a\\x45\\\n\\xcb\\xf2\\xda\\xc3\\xb7\\x54\\x9e\\x4c\\xd3\\x44\\x1a\\x02\\x33\\x95\\xce\\xb0\\\n\\x6d\\xf3\\x26\\x2c\\x60\\xdc\\xa8\\x0a\\x36\\xb6\\xe5\\x70\\x9c\\x0c\\xc2\\x5f\\\n\\x7d\\xe1\\xb8\\x9a\\x50\\xc8\\x1b\\x8d\\x91\\xcd\\x64\\xf6\\xc8\\xa2\\xca\\xe3\\\n\\x46\\xf6\\x55\\xb5\\x08\\x04\\x42\\x09\\x0c\\x1f\\x8c\\xca\\x75\\xd0\\xae\\xeb\\\n\\x0d\\x1f\\x62\\x8f\\x45\\x05\\xfd\\x36\\x45\\xaf\\x52\\x0a\\xf5\\x66\\xd6\\x50\\\n\\xec\\x35\\x59\\xaa\\xc4\\xf4\\xba\\x48\\x53\\x93\\x73\\x34\\xcd\\xad\\x35\\xe4\\\n\\xa8\\x66\\xf3\\xee\\x22\\xdd\\x69\\x0d\\x62\\x04\\xc2\\x26\\x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xfa\\xd2\\x65\\x3c\\xfd\\xfc\\xd3\\x7c\\xf1\\xb2\\x2f\\x71\\xf4\\xfb\\x4e\\xa2\\\n\\x79\\xea\\x81\\x8c\\x9b\\x5c\\x43\\x57\\x37\\x64\\xbb\\x7b\\x71\\x5c\\x17\\x19\\\n\\xf0\\xc0\\xe8\\xe6\\xd3\\x5e\\x41\\xe3\\x4d\\x4a\\x16\\xcf\\xaa\\x69\\xaf\\x6b\\\n\\x4c\\x09\\x94\\xce\\x23\\x7d\\x15\\x87\\xb2\\xb3\\x48\\x6d\\x97\\xcd\\xf3\\x1e\\\n\\xd7\\xae\\x70\\x11\\x28\\x2d\\x3c\\xb7\\x89\\x0b\\xda\\x41\\x6b\\x55\\x8e\\x3d\\\n\\x7c\\x61\\x8d\\xf7\\x55\\x95\\xa2\\x03\\xef\\x7e\\xe8\\x00\\xae\\xad\\x68\\x6d\\\n\\xae\\x65\\x63\\x67\\x81\\x0d\\x5b\\x37\\x7b\\x95\\x96\\x64\\x05\\x32\\x9c\\x44\\\n\\x38\\x29\\x4c\\x37\\x8f\\x8b\\x40\\xf7\\x2d\\xa7\\xaa\\x22\\x49\\x65\\x30\\x4a\\\n\\xe7\\xe6\\x35\\x64\\x87\\xda\\x69\\xa8\\x8d\\x13\\x8c\\x54\\x33\\xb0\\x73\\x07\\\n\\x89\\x84\\x45\\xc4\\x9c\\x02\\xc3\\x6b\\x88\\x26\\xe7\\x23\\x50\\x48\\xcb\\xc0\\\n\\x44\\x78\\xeb\\x68\\xfc\\xb2\\x5b\\x09\\x64\\x1a\\xdf\\xbc\\xec\\x23\\x2b\\xe3\\\n\\x4d\\x82\\x0a\\xe1\\x83\\x51\\x60\\xf9\\xc1\\xfb\\x1e\\xc1\\x84\\x49\\x53\\x3c\\\n\\x8c\\x1e\\xd9\\x81\\x59\\x5f\\x45\\x45\\x7e\\x1b\\xed\\x43\\x39\\x54\\x5c\\x10\\\n\\xef\\xdb\\xc0\\xc8\\x90\\x43\\x30\\x92\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66\\x70\\x33\\x39\\\n\\x1c\\x37\\x80\\x08\\xc5\\x3c\\x6a\\xc6\\xc9\\xa1\\xdc\\x1c\\x50\\x01\\x5a\\xa0\\\n\\x00\\xa7\\x1c\\x9f\\x94\\xde\\xb1\\x02\\xb5\\xc7\\x9d\\x94\\x52\\x1d\\x51\\xba\\\n\\x2a\\xa5\\x06\\xc3\\xf5\\xc4\\x10\\xa5\\x04\\x81\\x1c\\x19\\xa7\\x92\\x09\\x93\\\n\\x0f\\xc5\\xe9\\x7a\\x95\\xc1\\xda\\x26\\x52\\xc3\\xed\\x68\\xe5\\x50\\x1d\\x8b\\\n\\x81\\x18\\x41\\xf4\\xaf\\x20\\xdc\\x3a\\x11\\x17\\x83\\x74\\x5e\\x50\\x11\\x33\\\n\\x18\\x76\\x9b\\x70\\x0b\\x19\\xea\\x6a\\xc3\\x8c\\x19\\x33\\x96\\x64\\x6d\\x1d\\\n\\x4d\\x63\\x66\\xf1\\xc8\\x3d\\xb7\\x70\\xdc\\xe9\\x67\\x32\\x75\\xee\\x31\\x64\\\n\\x06\\xfb\\x08\\x1a\\x1a\\x57\\x6b\\xa4\\xd0\\xde\\x49\\x52\\x7b\\x45\\x5d\\x42\\\n\\xee\\x0b\\xc6\\x52\\xba\\xa5\\x5d\\xa4\\xf0\\x3a\\x20\\x3d\\xe1\\xac\\xe7\\xe2\\\n\\x4a\\xd6\\x11\\xe9\\x22\\x84\\x66\\x24\\x35\\xcc\\xa4\\x59\\xfb\\x73\\xf8\\xb1\\\n\\x27\\xb2\\x62\\xe9\\x2b\\xcc\\x38\\xe4\\x48\\x2c\\xc3\\x62\\xd1\\x93\\xf7\\x13\\\n\\x6b\\x6a\\xa6\\x3b\\x17\\x27\\xa3\\x04\\xf5\\x91\\x08\\x6e\\x70\\x1a\\xd1\\xca\\\n\\x71\\x18\\x32\\x07\\xf9\\x95\\x14\\x83\\x20\\x92\\xd5\\x08\\xa1\\x08\\x9a\\x10\\\n\\xa8\\x18\\x4b\\x45\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\xf9\\x86\\xeb\\xb8\\xf8\\x8c\\x63\\xf9\\xfa\\x25\\xe7\\xf0\\x95\\x4f\\x9c\\xc9\\\n\\xfa\\x45\\x0f\\x70\\xfa\\xe1\\xd3\\x89\\x64\\xdb\\x79\\xf1\\xce\\x5f\\x91\\xcf\\\n\\x0c\\x92\\x8c\\x45\\x50\\xe9\\x14\\xc3\\xbd\\x3b\\xc8\\x74\\x6e\\xa4\\x73\\xd5\\\n\\x2b\\xe4\\x3a\\x76\\x10\\xb2\\xc0\\x2d\\xa4\\x29\\xae\\x5e\\x09\\x83\\x7d\\x18\\\n\\x89\\x88\\x97\\xe8\\xec\\xd8\\x05\\x1d\\x1b\\x08\\xa4\\xd7\\x43\\xa8\\x02\\xc7\\\n\\xae\\x83\\x81\\x14\\x66\\xd4\\x04\\x37\\x8b\\xde\\xb8\\x12\\x86\\x7a\\x31\\x42\\\n\\x12\\x35\\xd8\\x06\\xdb\\x5e\\x26\\x35\\xd4\\xc9\\xf0\\x40\\x37\\x46\\xa6\\x9f\\\n\\xa8\\x2c\\xd2\\xd5\\xb5\\x9b\\x80\\x25\\x38\\xf5\\xc4\\xa3\\x59\\xf6\\xe4\\x1f\\\n\\x68\\xad\\x31\\xb8\\xea\\x27\\xd7\\x70\\xf7\\x6d\\xd7\\x72\\xfe\\xc7\\x2f\\x22\\\n\\x90\\x88\\xf3\\xd4\\x43\\xf7\\x10\\x8b\\x25\\xa9\\xad\\xae\\xe0\\xf8\\x93\\x3e\\\n\\xc4\\x51\\xa7\\x7e\\x92\\xae\\xee\\x21\\xec\\xec\\x20\\x96\\x69\\x78\\x5c\\x1a\\\n\\x06\\x52\\xec\\xc9\\x18\\x0d\\x29\\xbc\\x85\\x3f\\x42\\xfb\\xdf\\x97\\x6e\\xde\\\n\\xef\\x64\\xe9\\xab\\x2f\\x5e\\x30\\xa4\\x81\\xe1\\x73\\xb6\\x52\\xf8\\xf7\\x35\\\n\\x24\\x96\\x21\\xc1\\x29\\xe0\\x20\\x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xb8\\xe8\\xa2\\x8b\\xf8\\\n\\xe9\\x4f\\x7f\\xca\\x51\\x47\\x1d\\xc5\\xd9\\x67\\x9f\\xcd\\xa7\\x3f\\xfd\\x69\\\n\\xb4\\x86\\x4b\\x2e\\xb9\\x38\\x3e\\x3c\\x3c\\x12\\xfb\\xe9\\x4f\\x7f\\xc2\\x33\\\n\\xcf\\x3c\\xc3\\xcf\\x7f\\xf6\\x73\\x73\\xde\\xc1\\xf3\\xe6\\xde\\x7b\\xef\\xfd\\\n\\x07\\x28\\x97\\xa1\\x9a\\xda\\x9a\\x21\\xc7\\x75\\x70\\x8a\\xee\\xc4\\x44\\x34\\\n\\xf6\\xd5\\xea\\x9a\\x6a\\x14\\x82\\xb6\\xce\\xdd\\x48\\xc3\\xa0\\xb5\\xb5\\x15\\\n\\x69\\x18\\xb4\\xef\\x6c\\x27\\x91\\x48\\x32\\x6e\\xfc\\x38\\x5c\\xa5\\xe8\\xec\\\n\\x19\\x60\\xcc\\xf8\\x09\\x54\\x55\\x55\\x93\\x49\\xe7\\xd1\\xa6\\x49\\x38\\x1a\\\n\\x21\\x9b\\x4e\\x93\\xcb\\xe7\\x18\\x4a\\x17\\x28\\x16\\xb3\\xa8\\x62\\x11\\xed\\\n\\x77\\xfc\\xb9\\xae\\xed\\x75\\xe0\\x29\\xaf\\xac\\xe5\\x68\\xe5\\x13\\xf6\\x9e\\\n\\x9a\\x49\\x95\\x6a\\xed\\xe5\\xba\\xbb\\xb7\\xca\\x17\\xa1\\x50\\xb8\\xde\\x9a\\\n\\x0c\\xb1\\x77\\x29\\x4c\\xee\\x45\\x95\\x94\\x08\\x70\\xaf\\xff\\x46\\x68\\xaf\\\n\\xde\\xb1\\x0f\\x18\\xf7\\x6a\\x4a\\x13\\x52\\x21\\x84\\xc7\\xc3\\x1a\\x58\\x48\\\n\\x61\\x60\\x18\\x60\\x48\\x8d\\x14\\x02\\x65\\x1a\\x04\\x03\\x41\\x2a\\xa2\\x31\\\n\\x42\\xa1\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\x52\\xa3\\x46\\x8d\\xa2\\xa1\\xa1\\x81\\xaa\\xea\\\n\\x2a\\xa6\\x4e\\x99\\xda\\x36\\x7d\\xda\\xa6\\x07\\x26\\x4f\\x9d\\xc1\\x9c\\x99\\\n\\x53\\xf7\\x7e\\xda\\x51\\xc0\\x87\\x35\\x90\\x57\\x50\\x70\\x3c\\xf5\\x90\\xe3\\\n\\x6a\\x8a\\x85\\x02\\x45\\xc7\\xc5\\xb6\\x1d\\xec\\x42\\x9e\\xca\\xba\\x66\\x0a\\\n\\x8e\\x43\\x77\\x7f\\x3f\\x8e\\xe3\\xa2\\x95\\x62\\xb0\\xdf\\xc5\\x75\\x15\\xae\\\n\\xf6\\x1a\\xbf\\x4c\\x34\\xda\\x5f\\x44\\xa9\\xd0\\x08\\x43\\x7a\\x95\\x19\\x0c\\\n\\xaf\\x6a\\xa3\\x8b\\xb8\\xda\\xf5\\x48\\x6e\\x61\\x94\\x4b\\x9e\\xae\\x3f\\x16\\\n\\x5a\\x94\\x6a\\xce\\x4a\\x22\\xb5\\xcf\\xa7\\x95\\xb9\\x50\\xe1\\x37\\x48\\x79\\\n\\x73\\x22\\xca\\xc1\\xa4\\xf0\\x2a\\xd1\\x18\\x1e\\x3d\\x24\\xfc\\xe6\\x2d\\x59\\\n\\x22\\xc1\\x85\\x40\\xf8\\xc9\\x90\\x07\\x4e\\x89\\xc4\\xdb\\x61\\x5d\\x6a\\x5d\\\n\\x15\\x52\\x60\\xa0\\x90\\x4e\\x81\\x74\\xca\\x21\\x9b\\xf1\\x88\\x78\\x4b\\x6a\\\n\\x0c\\x13\\xa2\\x55\\xb5\\x48\\x03\\xaa\\xeb\\xeb\\x39\\xea\\x03\\xa7\\x10\\x09\\\n\\x05\\xb0\\x82\\x21\\x2c\\xd3\\xc2\\xc2\\x25\\x18\\x32\\xb0\\x2c\\xef\\x02\\x70\\\n\\x6d\\x88\\x5a\\x65\\x46\\xb1\\x0f\\x38\\x26\\x6f\\x93\\x2f\\x64\\x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x91\\xa4\\xf9\\x08\\x21\\xcf\\x65\\\n\\xe4\\x79\\x81\\xa0\\x11\\x89\\x44\\x79\\x86\\x65\\x85\\x4a\\x02\\xa0\\x50\\x13\\\n\\x24\\x13\\x98\\x10\\xcc\\xa9\\xdd\\x83\\x6c\\x06\\xd2\\xab\\x76\\x99\\x00\\x8d\\\n\\xc1\\x84\\x43\\xf4\\x20\\x06\\x6a\\x58\\xbe\\x34\\x80\\x59\\xe3\\xcd\\xf7\\x99\\\n\\xb1\\x3a\\xc4\\x40\\x95\\xba\\xb0\\xd1\\x41\\xd9\\x6e\\x5a\\x15\\x95\\xb6\\xf0\\\n\\x2b\\xba\\xa9\\x36\\x2d\\x8a\\x9a\\x67\\x04\\xa2\\x65\\x14\\xad\\xcb\\x6e\\xe3\\\n\\x46\\x6f\\x85\\x95\\x62\\x1d\\x85\\x10\\xf1\\x89\\xd9\\x12\\x23\\x9c\\x49\\x4f\\\n\\x09\\x05\\x26\\x91\\x44\\xea\\x4e\\xe9\\x01\\x89\\x14\\x3d\\xd1\\x90\\xd8\\x3a\\\n\\x21\\xde\\x2c\\xe6\\x13\\x32\\x24\\x1e\\x1b\\x29\\xa7\\x94\\x5e\\x20\\xf8\\xeb\\\n\\xa3\\xac\\xb8\\xe3\\xf6\\x77\\x60\\xb4\\xb6\\x8e\\xd1\\xc8\\xea\\x0a\\xe5\\xb7\\\n\\x6a\\x9c\\xf5\\x54\\x82\\xb1\\x6b\\x5b\\x72\\x1e\\x79\\x4c\\xe5\\x4d\\xea\\x2f\\\n\\x89\\xe9\\x47\\x8d\\xfa\\xe9\\x46\\x0c\\x2c\\xd5\\x81\\xb0\\x28\\xd9\\x0c\\x23\\\n\\x11\\x2f\\xd5\\xe5\\x8c\\x46\\x33\\x14\\x8a\\x11\\x05\\x96\\x12\\x90\\x33\\x44\\\n\\xcc\\xc7\\xa9\\x10\\x50\\x4b\\x5e\\xf8\\x52\\x17\\xbb\\xab\\xfa\\xc5\\x86\\x19\\\n\\x46\\xea\\xc4\\x44\\xa8\\x91\\x50\\x17\\x48\\xee\\x0c\\x70\\x82\\x5b\\x53\\x93\\\n\\x76\\x59\\xa7\\x32\\xca\\x68\\x34\\x98\\xc8\\xa6\\x0b\\x37\\xa8\\xd5\\x1a\\x8b\\\n\\x11\\x26\\x06\\xc2\\x73\\x97\\x14\\x03\\x39\\xaa\\x73\\xb7\\x25\\x5e\\xa3\\x04\\\n\\x90\\xdc\\x18\\x12\\x92\\x04\\x09\\x86\\x24\\xa5\\xf3\\x56\\x2a\\xd0\\x12\\xc5\\\n\\x2d\\x31\\x33\\x20\\xea\\x56\\x56\\xa4\\x63\\x39\\x03\\xac\\x42\\x24\\xc2\\x5b\\\n\\x56\\xc5\\x7e\\xdb\\x60\\x1f\\x33\\x34\\xc8\\x6a\\x68\\x6e\\xfb\\xbe\\x98\\xf0\\\n\\x60\\xfb\\x02\\x03\\xfb\\x02\\x8c\\x0c\\x5d\\xe0\\xa8\\xac\\xcf\\x2d\\xa1\\x97\\\n\\xe2\\x69\\xf1\\x2b\\xf9\\x29\\xcb\\x2e\\x62\\x4d\\x74\\xff\\x54\\x9b\\xfd\\x63\\\n\\xe3\\x54\\xd9\\xcd\\x22\\x06\\x68\\x36\\xe4\\x24\\xc8\\x06\\x50\\x09\\xd2\\x42\\\n\\xe2\\x2e\\xc8\\x14\\x27\\x0c\\x2c\\x9b\\x57\\x89\\x46\\x5a\\xb7\\x5b\\x36\\xa7\\\n\\x32\\x9a\\x72\\x8a\\x40\\xc2\\xb4\\xb8\\xff\\xc1\\x26\\xe0\\xb5\\x53\\xc9\\x3a\\\n\\x96\\x31\\x75\\x86\\x43\\x75\\xd3\\x18\\xd4\\x00\\x5f\\x53\\x25\\x67\\x04\\xab\\\n\\x45\\x64\\x94\\x10\\x25\\xc4\\x1a\\x89\\xea\\x3a\\xc9\\x14\\xd6\\x55\\x92\\x93\\\n\\x1b\\x71\\xc6\\x9e\\x98\\xaa\\x95\\xac\\x00\\x96\\x14\\x37\\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x1d\\x0c\\xaa\\x5e\\xf6\\\n\\x53\\xc8\\x86\\xd5\\xc1\\xde\\x1a\\x90\\x23\\x21\\x1e\\xcf\\x0b\\x7a\\xee\\x32\\\n\\xd4\\xcc\\x4d\\xb7\\x1f\\x67\\x2c\\xfd\\x51\\x12\\xdb\\xb6\\x41\\x49\\x6d\\xc1\\\n\\x9e\\xbd\\x2c\\x98\\xc2\\xf2\\xd5\\xfb\\x77\\xaa\\x31\\x12\\x83\\x9f\\xd2\\x58\\\n\\xba\\x46\\x22\\x95\\x83\\x88\\x25\\x13\\xc5\\x27\\xa0\\x49\\xf2\\xdc\\x63\\xf2\\\n\\xe7\\x6d\\x68\\x48\\xc9\\x00\\xe3\\x87\\x69\\x76\\xba\\x2c\\x54\\xe7\\x2e\\x53\\\n\\x34\\x65\\xfd\\x70\\x0f\\xc6\\x3d\\xb9\\x6d\\x40\\x92\\x3c\\x05\\xe2\\x0a\\xb3\\\n\\x3e\\xe7\\x66\\x91\\xf5\\x13\\x2f\\x99\\xd0\\x44\\x28\\xd5\\xd9\\xb3\\x0c\\x20\\\n\\xe1\\xce\\x45\\x35\\xc0\\xe5\\x55\\x9d\\x1c\\x44\\x88\\x51\\x8f\\x56\\x48\\x99\\\n\\x43\\x5e\\xad\\xa6\\x24\\xd6\\x96\\x4a\\xe9\\x74\\x41\\x58\\xed\\xff\\x41\\xdb\\\n\\x1d\\x58\\xd2\\x54\\x61\\x3b\\x49\\x05\\x25\\x98\\x3e\\x52\\x1b\\x33\\x96\\xca\\\n\\x8e\\x74\\x5c\\x76\\x47\\x58\\x21\\x35\\x17\\x89\\x0d\\x09\\x70\\x67\\xd3\\xac\\\n\\x2c\\xb9\\xa1\\x20\\xc1\\x93\\xe7\\x4c\\xf9\\x5f\\x45\\xf8\\x34\\x0c\\xa7\\x35\\\n\\xb7\\x4b\\xd7\\x6d\\x4a\\xae\\xeb\\x54\\x82\\xb1\\x8d\\xd4\\xf8\\x3c\\xc1\\xd5\\\n\\x44\\x3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\\xa2\\x91\\xec\\\n\\x06\\x16\\x76\\x4a\\xa0\\xbf\\x65\\xe0\\xff\\x52\\x92\\x13\\x9f\\x9a\\x7b\\x37\\\n\\xc0\\x30\\x95\\x67\\x4a\\xdd\\xb4\\xd5\\x69\\x27\\x9b\\x76\\xd8\\x39\\x7f\\xfd\\\n\\x77\\x49\\x7c\\x98\\x09\\x9f\\x32\\xb3\\x63\\xa6\\xf2\\xa3\\x49\\x13\\xb2\\x10\\\n\\x2a\\xac\\x23\\x9a\\x59\\xaa\\x2c\\x2c\\xdf\\xf3\\xd6\\xd4\\x41\\x79\\x7e\\xc4\\\n\\xfc\\x0b\\x35\\xa8\\xad\\x79\\x0c\\x97\\x04\\xdd\\xa9\\x17\\x12\\x75\\x6a\\x53\\\n\\x00\\x89\\x31\\xb3\\x5c\\x5c\\x05\\x44\\x2f\\x0b\\x76\\x93\\xde\\xa5\\x3c\\xe8\\\n\\x2c\\x2c\\xe2\\xbf\\xa8\\xff\\x85\\x6d\\xab\\xcb\\x81\\x48\\x71\\x86\\x1c\\xf1\\\n\\x27\\x93\\x7c\\x26\\x80\\xf9\\x1b\\x50\\xfb\\x9e\\x85\\x20\\xc4\\x00\\x90\\x98\\\n\\xfa\\xd3\\x60\\x16\\x0f\\x6b\\x96\\xef\\x57\\x08\\x19\\x08\\xf1\\x27\\x14\\xfd\\\n\\x88\\xc0\\xee\\xc8\\x46\\x58\\x89\\xf3\\x92\\xc0\\x94\\x18\\x89\\x8b\\x27\\x4c\\\n\\x0d\\xa2\\x6c\\x85\\xb5\\x61\\x6e\\x94\\x06\\xe1\\x9c\\xb7\\x1b\\x74\\x45\\xb5\\\n\\xdd\\xa1\\x47\\x6c\\xa7\\x4a\\x38\\x79\\x71\\x92\\xd2\\x54\\x45\\x37\\x3a\\xea\\\n\\x6e\\xcf\\x83\\xba\\x57\\x6f\\x55\\x3c\\x8d\\xa5\\x68\\x6f\\x2d\\x4b\\x91\\x0c\\\n\\x42\\xfb\\x0e\\xc5\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f4\\x60\\xec\\x4f\\x7f\\\n\\x7a\\x30\\xf6\\xa7\\x07\\x63\\x7f\\xfa\\xd3\\x83\\xb1\\x3f\\x3d\\x18\\xfb\\xd3\\\n\\x9f\\xbd\\x9e\\xff\\x1f\\x00\\x39\\x4b\\xd8\\x42\\x59\\xfc\\xe4\\xed\\x00\\x00\\\n\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x02\\x3f\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\x20\\x00\\x00\\x00\\x20\\x08\\x06\\x00\\x00\\x00\\x73\\x7a\\x7a\\xf4\\\n\\x00\\x00\\x02\\x06\\x49\\x44\\x41\\x54\\x58\\x47\\xc5\\xd7\\xbd\\x6b\\x14\\x41\\\n\\x18\\xc7\\xf1\\xef\\xef\\x2f\\x88\\xd8\\x58\\xd8\\x58\\x08\\x16\\x07\\x5a\\x18\\\n\\x04\\x3b\\xd3\\x48\\xc4\\x37\\x2c\\x14\\x4b\\x11\\x11\\x31\\x0a\\x86\\x90\\x4e\\\n\\x48\\x22\\x88\\x8d\\x28\\x8a\\x2f\\x10\\x10\\x6b\\x2d\\x04\\xc5\\xc2\\xd8\\x28\\\n\\x04\\x14\\xc1\\x80\\x04\\x12\\x30\\x10\\x03\\x62\\x1d\\x21\\xa5\\xcd\\x4f\\x1e\\\n\\xd9\\xc0\\xde\\x70\\xbb\\x77\\x59\\x9c\\xcd\\x34\\x07\\xc7\\xcc\\x3c\\x9f\\x99\\\n\\x79\\x76\\x5e\\xc4\\x36\\x17\\xd9\\x3e\\x0b\\x74\\x80\\xef\\xc0\\xbc\\xa4\\x5f\\\n\\x6d\\x9a\\x02\\xe0\\x24\\xe0\\x67\\xe0\\x5c\\x5b\\x90\\x00\\x9c\\x00\\x86\\x81\\\n\\xbd\\xc0\\x31\\x60\\x27\\xf0\\x0e\\x38\\x2d\\xe9\\x4f\\xee\\xd9\\x50\\x39\\x80\\\n\\xed\\xfd\\xc0\\x7b\\x60\\x17\\x70\\x53\\xd2\\xed\\x56\\x01\\x11\\xcc\\xf6\\x71\\\n\\xe0\\x2d\\xb0\\x22\\x69\\x5f\\xeb\\x80\\x02\\xf1\\x09\\x38\\x0c\\xcc\\x64\\x02\\\n\\xac\\x02\\xcb\\x92\\x16\\xba\\x96\\x60\\x33\\x98\\xed\\xbb\\xc0\\x44\\xa6\\xe0\\\n\\xe5\\x6e\\x87\\xab\\x00\\x47\\x80\\x0f\\x2d\\x00\\x66\\xab\\x00\\x7b\\x80\\xb5\\\n\\x16\\x00\\xeb\\x3d\\x01\\x45\\x1e\\xa4\\xfb\\x43\\x0e\\xcf\\x52\\x1d\\x20\\x76\\\n\\xc4\\xdd\\x39\\xa2\\x96\\xfa\\x7c\\x56\\x07\\xf8\\x02\\x1c\\xca\\x0c\\xb8\\x54\\\n\\x07\\x78\\x05\\x9c\\xc9\\x0c\\xe8\\xd4\\x01\\x1e\\x01\\x63\\x19\\x01\\x1b\\x92\\\n\\x86\\xea\\x00\\x37\\x80\\xfb\\x19\\x01\\x73\\x92\\x46\\xeb\\x00\\x07\\x81\\xaf\\\n\\x19\\x01\\x33\\x92\\xa6\\x2b\\x01\\xc5\\xa7\\xf8\\x1b\\xd8\\x91\\x09\\x31\\x2a\\\n\\x69\\xae\\x1f\\xe0\\x0d\\x70\\x32\\x13\\x60\\x48\\xd2\\x46\\x3f\\xc0\\x34\\x30\\\n\\x95\\x01\\xb0\\x28\\xe9\\x40\\xf4\\xdb\\x0f\\x10\\x95\\xbe\\x65\\x00\\x3c\\x96\\\n\\x74\\xad\\x2f\\xa0\\xc8\\x83\\xd7\\xc0\\xa9\\xff\\x8c\\x38\\x2f\\xe9\\xc5\\x40\\\n\\x80\\x0c\\xe7\\xc2\\x03\\x49\\xf1\\x89\\xff\\x2b\\xb5\\x4b\\x50\\x1e\\xb5\\xed\\\n\\x3b\\xc0\\xe5\\xe2\\xce\\xd8\\x74\\x42\\x9e\\x4a\\xba\\x5a\\x6e\\x3c\\x30\\x60\\\n\\xb3\\x91\\xed\\xb8\\x2b\\x34\\x29\\x3f\\x24\\xfd\\x4c\\x1b\\x6e\\x19\\xd0\\x24\\\n\\x72\\x5d\\x9b\\x81\\x01\\xb6\\x63\\xfa\\x2f\\x02\\x71\\x51\\x9d\\x07\\x66\\x25\\\n\\xc5\\xe5\\xb5\\x67\\xb1\\x7d\\x05\\x88\\x4c\\x8f\\x23\\x3d\\x4e\\xd6\\x29\\x49\\\n\\xf1\\xdb\\x55\\x06\\x02\\xd8\\xbe\\x00\\x3c\\x4f\\xda\\xae\\x03\\x23\\x92\\x16\\\n\\xd3\\x4e\\x6d\\x8f\\x03\\xf7\\x92\\xff\\x17\\x24\\xc5\\xfb\\xa3\\x11\\x20\\x82\\\n\\x07\\x22\\x2d\\x63\\x92\\x9e\\xf4\\x00\\x54\\xd5\\xef\\x48\\x5a\\xde\\x72\\x12\\\n\\xda\\xde\\x76\\x40\\x3c\\x60\\x5f\\x26\\x23\\x5d\\x2a\\xde\\x90\\x5d\\x23\\x8a\\\n\\x3a\\xb6\\xaf\\x03\\x0f\\x93\\xfa\\x1f\\x25\\x8d\\x34\\x5a\\x82\\xa2\\xd3\\xa3\\\n\\xc0\\xad\\x22\\x09\\xe3\\xca\\x3e\\x29\\x29\\x1e\\x18\\x55\\x49\\x18\\xe8\\x38\\\n\\x47\\x22\\x09\\xe3\\xd5\\xdd\\x73\\x37\\xfd\\x0b\\x7e\\x7e\\xba\\xc2\\x96\\xa7\\\n\\xa2\\x50\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x02\\xa0\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\x22\\x00\\x00\\x00\\x20\\x08\\x06\\x00\\x00\\x00\\x77\\x8f\\xaa\\xc9\\\n\\x00\\x00\\x02\\x67\\x49\\x44\\x41\\x54\\x58\\x47\\xbd\\x98\\x3b\\x68\\x15\\x51\\\n\\x10\\x86\\xbf\\xbf\\xf1\\x01\\x76\\x96\\x36\\x22\\xa2\\x41\\x10\\x0b\\x51\\xf0\\\n\\x05\\x8a\\xe2\\x8b\\xa0\\x68\\x54\\xd4\\x42\\x4c\\x61\\x0a\\x11\\xac\\xad\\xed\\\n\\x2d\\x04\\x9b\\x08\\x72\\x9b\\x18\\x7c\\xe0\\x03\\x89\\xa2\\xa0\\x46\\xd1\\x88\\\n\\x60\\x15\\x41\\xf1\\x55\\x89\\x85\\x9d\\x85\\xa8\\x29\\xe4\\x97\\x91\\x5d\\xb9\\\n\\xd9\\xdc\\xdd\\xbb\\xbb\\x77\\xe3\\xc0\\xb2\\xc5\\x9d\\xf9\\xe7\\xdb\\xb9\\x33\\\n\\x67\\xcf\\x59\\xd1\\x83\\xd9\\xde\\x0c\\x5c\\x04\\xa6\\x80\\x21\\x49\\x13\\x75\\\n\\xe5\\x54\\x37\\x30\\xe2\\x6c\\xdf\\x06\\xf6\\x24\\x1a\\x63\\x92\\xfa\\xeb\\xea\\\n\\xd5\\x06\\xb1\\xbd\\x13\\xb8\\x97\\x49\\xbc\\x5f\\xd2\\xcd\\x3a\\x30\\xbd\\x80\\\n\\x5c\\x03\\x0e\\x64\\x92\\x3e\\x90\\xb4\\xe3\\xbf\\x81\\xd8\\xde\\x02\\x3c\\xca\\\n\\x49\\x38\\x20\\xe9\\x46\\x55\\x98\\x5a\\x15\\xb1\\x7d\\x0b\\xd8\\x9b\\x93\\x6c\\\n\\x5c\\x52\\x80\\x56\\xb2\\xca\\x20\\xb6\\x37\\x00\\xcf\\xba\\x64\\xe9\\x97\\x34\\\n\\x56\\x85\\xa4\\x0e\\x48\\x34\\x68\\x34\\x6a\\x91\\x4d\\x48\\x0a\\xe0\\xd2\\x56\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85\\xef\\x1a\\xdb\\x57\\x80\\x43\\x4d\\x50\\x00\\xa3\\x92\\\n\\x8e\\xe6\\x69\\x75\\x03\\xf9\\x04\\x2c\\x69\\x08\\xe4\\x83\\xa4\\x65\\x75\\x41\\\n\\x1a\\x5d\\x75\\x25\\xe5\\x3e\\x78\\x51\\x8f\\xac\\x06\\x62\\xc1\\x69\\xd2\\x56\\\n\\x49\\x9a\\xac\\xd4\\x23\\xb6\\x4f\\x02\\x17\\x9a\\xa4\\x00\\x06\\x25\\xc5\\x1e\\\n\\x65\\x86\\x15\\x55\\x64\\x18\\x38\\xd1\\x30\\xc8\\x79\\x49\\xa7\\xab\\x82\\xbc\\\n\\x04\\xd6\\x96\\x00\\x19\\x07\\x62\\x24\\xb7\\x96\\xf0\\x7d\\x2e\\x69\\x63\\x55\\\n\\x90\\x5f\\xc0\\xdc\\x02\\xf1\\x38\\xd7\\x9c\\x95\\x14\\x20\\xb1\\xb9\\x5a\\x03\\\n\\x9c\\x01\\xf6\\x15\\xc4\\x4c\\x49\\x9a\\x57\\x1a\\xc4\\x76\\x1f\\xf0\\x36\\x47\\\n\\x30\\x56\\xc7\\x73\\x29\\x40\\xd6\\xc7\\x76\\x34\\xf9\\x29\\xe0\\x78\\x4e\\x7c\\\n\\x9f\\xa4\\x77\\xa5\\x56\\xd6\\xe4\\x94\\x1f\\x2f\\xa6\\x76\\x1b\\x05\\x86\\xf3\\\n\\x00\\x72\\x80\\x86\\xe2\\x2b\\x41\\xe6\\xb7\\xe5\\x92\\xde\\x97\\x02\\x49\\x4a\\\n\\x1d\\xfb\\xd8\\xf8\\xec\\x10\\x27\\xfe\\x4b\\x92\\x5e\\x94\\xe8\\x81\\x19\\x2e\\\n\\x49\\x85\\x52\\xa0\\x96\\xa4\\xc1\\x4e\\x3a\\x7f\\x00\\xfa\\x36\\xc8\\x82\\x95\\\n\\x4b\\xf9\\x04\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x46\\x06\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\xa3\\x00\\x00\\x00\\xa3\\x08\\x06\\x00\\x00\\x00\\xe6\\x6c\\xae\\x80\\\n\\x00\\x00\\x00\\x09\\x70\\x48\\x59\\x73\\x00\\x00\\x0b\\x13\\x00\\x00\\x0b\\x13\\\n\\x01\\x00\\x9a\\x9c\\x18\\x00\\x00\\x00\\x20\\x63\\x48\\x52\\x4d\\x00\\x00\\x7a\\\n\\x25\\x00\\x00\\x80\\x83\\x00\\x00\\xf9\\xff\\x00\\x00\\x80\\xe9\\x00\\x00\\x75\\\n\\x30\\x00\\x00\\xea\\x60\\x00\\x00\\x3a\\x98\\x00\\x00\\x17\\x6f\\x92\\x5f\\xc5\\\n\\x46\\x00\\x00\\x45\\x8c\\x49\\x44\\x41\\x54\\x78\\xda\\xec\\x5d\\x77\\x78\\x14\\\n\\xd5\\xde\\x7e\\xa7\\x6d\\x99\\x6c\\xcb\\xa6\\xf7\\x10\\x20\\xb4\\x10\\x42\\x68\\\n\\x91\\xde\\x44\\x54\\xc0\\x86\\x22\\x16\\xec\\x5c\\xbb\\xd8\\x3e\\xf5\\xaa\\x57\\\n\\xaf\\x58\\xae\\xd7\\x8b\\xd8\\xb0\\x61\\x41\\x45\\x01\\x0b\\x52\\x15\\x41\\x20\\\n\\xd2\\x7b\\x49\\xa8\\x21\\xa4\\xf7\\xb2\\xd9\\x3a\\xdb\\x66\\xe6\\x7c\\x7f\\xec\\\n\\x06\\x52\\x36\\x21\\x54\\x15\\xf6\\x7d\\x9e\\x40\\xb2\\x3b\\xe5\\xcc\\x39\\xef\\\n\\xfc\\xfa\\x39\\x87\\x22\\x84\\x20\\x88\\x20\\xfe\\x0a\\xa0\\x83\\x5d\\x10\\x44\\\n\\x90\\x8c\\x41\\x04\\x11\\x24\\x63\\x10\\x41\\x32\\x06\\x11\\x44\\x90\\x8c\\x41\\\n\\x04\\xc9\\x18\\x44\\x10\\x41\\x32\\x06\\x11\\x24\\x63\\x10\\x41\\x04\\xc9\\x18\\\n\\x44\\x90\\x8c\\x41\\x04\\x71\\x8e\\xc1\\x06\\xbb\\xa0\\x6d\\xb8\\xca\\x77\\xf4\\\n\\x14\\x2d\\xe5\\x5b\\x41\\x24\\xd0\\xbc\\x11\\x8a\\x88\\x9e\\xf1\\xac\\x26\\xda\\\n\\x16\\xec\\x99\\xa0\\x64\\xbc\\xa0\\xb0\\xe7\\xad\\x1c\\xed\\xae\\xda\\xdb\\x9f\\\n\\x10\\x49\\x07\\x9a\\xd1\\x89\\x96\\x12\\x9d\\x70\\xec\\xd7\\xab\\x3d\\xf5\\xc7\\\n\\xe2\\x83\\xbd\\x13\\x24\\xe3\\x05\\x94\\x88\\x3b\\xd3\\x24\\x6b\\x45\\x2c\\x13\\\n\\x12\\xf5\\x15\\x45\\x33\\xbe\\x8e\\x52\\x19\\x40\\x73\\xfc\\x02\\x57\\xf1\\x86\\\n\\xe1\\xa2\\xbd\\x4a\\x17\\xec\\xa5\\x20\\x19\\x2f\\x08\\xbc\\xe6\\xa2\\x64\\x5a\\\n\\xa5\\xff\\x06\\x4d\\x2b\\x9a\\x08\\x01\\x58\\x25\\xc0\\x28\\xbe\\x75\\x57\\xec\\\n\\xee\\x1f\\xec\\xa5\\x20\\x19\\xcf\\x3b\\x44\\x4b\\x69\\x38\\x11\\x9d\\x2a\\x8a\\\n\\xe1\\x5a\\x7f\\x49\\x08\\x68\\x85\\x06\\x92\\x50\\x17\\xee\\xb5\\x55\\x18\\x82\\\n\\xbd\\x15\\x24\\xe3\\x79\\x05\\x11\\x5d\\x2a\\x10\\xf2\\x43\\xfb\\x07\\xc9\\x8b\\\n\\x24\\x7b\\x75\\x74\\xb0\\xb7\\x82\\xde\\xf4\\xf9\\x05\\x45\\xcb\\xa7\\x3e\\x86\\\n\\x01\\x11\\x05\\xfe\\x6c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\\\n\\xab\\x8e\\x52\\x6a\\x8e\\x2b\\x0d\\x9d\\xa5\\xd3\\x39\\xb7\\xae\\xae\\x8e\\xef\\\n\\x99\\xda\\xe5\\x78\\x43\\x83\\x25\\x3a\\x29\\x31\\x16\\xa2\\x28\\x9d\\xdd\\x60\\\n\\x51\\x14\\x18\\x9a\\x42\\x41\\x69\\x25\\x08\\x20\\xbc\\xf1\\xda\\xcc\\x17\\x9f\\\n\\xfd\\xe7\\x0b\\x6f\\x07\\xd5\\xf4\\x25\\x02\\x85\\xa1\\x53\\x95\\x2a\\xaa\\x4f\\\n\\x1e\\xed\\x10\\x68\\xe7\\xae\\x45\\x93\\x2c\\x3f\\x3e\\xfe\\x5a\\xe5\\x33\\x9d\\\n\\x73\\x6d\\x1b\\xe6\\xdc\\x7d\\xaa\\x73\\x67\\xcf\\x7a\\xeb\\x99\\xda\\x06\\x4b\\\n\\x74\\x52\\xc2\\xd9\\x13\\x11\\x00\\x08\\x21\\x10\\x25\\x19\\x29\\x09\\xb1\\x30\\\n\\xea\\x42\\xf8\\xe7\\x9e\\x7f\\x71\\xe6\\x6d\\x53\\x6f\\xfe\\x32\\x28\\x19\\x2f\\\n\\x01\\xd8\\x56\\xff\\xe7\\x51\\x4f\\xc1\\xa6\\x61\\x62\\x5d\\x41\\x8a\\x5c\\x57\\\n\\x98\\x2c\\xd9\\x5d\\x46\\xc8\\x00\\x71\\x02\\xca\\xde\\xbd\\x76\\x45\\xfe\\xf3\\\n\\xc0\\x80\\xf6\\xce\\xef\\x9f\\x91\\xb6\\x33\\x37\\xf7\\x50\\xff\\x98\\xe8\\xa8\\\n\\xb3\\x8b\\x05\\x05\\x92\\x22\\x34\\x05\\xd1\\x2b\\xa2\\xb4\\xba\\x4e\\xb8\\xfa\\\n\\xca\\x2b\\x56\\xaf\\xf8\\x65\\xd5\\x75\\x41\\xc9\\x78\\x11\\xc3\\xb9\\xff\\xa7\\\n\\x1b\\x6c\\x2b\\x56\\x4e\\x96\\x6a\\x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xe4\\xf6\\xf4\\x1c\\xde\\x3d\\\n\\x80\\xd6\\x69\\x9b\\x13\\x86\\x55\\x41\\xac\\x69\\x50\\x31\\x06\\x43\\x9d\\xb2\\\n\\xeb\\xc8\\xcd\\x81\\xce\\xed\\xd4\\x29\\xa5\\x74\\xec\\x98\\x51\\xbf\\x97\\x94\\\n\\x55\\xc5\\x54\\x55\\x56\\xf1\\x35\\x75\\x26\\x9d\\xd9\\xe6\\x80\\xc5\\xee\\x80\\\n\\xc5\\xd6\\xe4\\xc7\\xde\\xe2\\xc7\\xff\\xb9\\xe8\\x95\\x10\\xc2\\xab\\x4f\\x49\\\n\\x4e\\x42\\x08\\x74\\x9a\\x10\\x94\\x54\\xd5\\xea\\xba\\x76\\x4e\\x39\\xda\\x37\\\n\\x33\\x33\\x37\\x28\\x19\\x2f\\x42\\x08\\xbb\\x17\\x4e\\xaa\\x9f\\x33\\x75\\x29\\\n\\x17\\x13\\xdd\\xca\\xf4\\x93\\x6d\\x75\\x60\\x22\\x3b\\xe5\\x44\\xbd\\x98\\xd7\\\n\\xe7\\x54\\xd7\\xc9\\x59\\xf5\\xc1\\xdd\\x45\\x65\\x35\\x9f\\x3b\\x9c\\x1e\\x08\\\n\\x4e\\x37\\xdc\\x6e\\x0f\\x08\\x00\\x96\\x61\\xa0\\x54\\x72\\xe0\\x58\\x06\\x0c\\\n\\x4d\\xc3\\x2b\\x4a\\x30\\x5b\\x1d\\xc8\\x2f\\xaf\\xc1\\x86\\x4d\\xfb\\xb1\\xef\\\n\\x70\\x3e\\x22\\x42\\x0d\\xd0\\x69\\x78\\x88\\x92\\xd4\\x6e\\xd8\\xa7\\xa8\\xbc\\\n\\x0a\\xf7\\xdc\\x39\\xed\\xe3\\xcf\\xbe\\xfc\\xea\\x81\\xbf\\x63\\x5f\\x07\\x0b\\\n\\x25\\x4e\\x01\\x65\\x8f\\x71\\xab\\xb9\\xa8\\xf0\\x12\\xe2\\xb4\\x24\\x52\\x2a\\\n\\x7d\\x73\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\\x55\\xa0\\x18\\x0e\\x34\\xa7\\x06\\xa3\\x89\\xf8\\x46\\xb2\\\n\\x55\\x46\\xbb\\x2a\\xf7\\x76\\x0f\\xda\\x8c\\xe7\\x00\\xae\\x63\\x47\\x13\\x3d\\\n\\x47\\x8f\\xa6\\x7a\\x4b\\x4b\\x13\\x89\\x20\\xf0\\x74\\x48\\x88\\x5d\\xd1\\xb3\\\n\\xd7\\x21\\xcd\\xf0\\x11\\x3b\\x3a\\x72\\x7e\\x81\\xb9\\x2c\\xda\\xe4\\xb6\\x1b\\\n\\x25\\x22\\xb3\\x3a\\x4e\\x6d\\xed\\x11\\xd6\\xa9\\x28\\x2c\\x75\\xcc\\xef\\x38\\\n\\xb4\\x3f\\xab\\x5e\\x4b\\xe0\\xa6\\x68\\xd0\\x27\\x5c\\x6b\\x02\\x46\\x1f\\x06\\\n\\xcf\\xf1\\x9c\\x74\\xf7\\xb1\\xec\\x81\\xca\\xae\\x23\\x77\\x00\\x80\\x64\\xaf\\\n\\x8a\\xa6\\x68\\x66\\x41\\xe3\\x61\\x34\\xc3\\xc0\\x21\\xb8\\x00\\xc1\\x05\\x9a\\\n\\xf1\\x05\\xc1\\xc5\\x6a\\x13\\xba\\x24\\x45\\x23\\x25\\x21\\x0a\\x62\\xbd\\xd5\\\n\\x67\\x12\\x78\\x45\\xe8\\xa2\\xc3\\x20\\x39\\x5c\\x38\\x9c\\x57\\x84\\x9e\\xa9\\\n\\x49\\xe0\\xc3\\x43\\x61\\x29\\xa9\\x84\\x3e\\xdc\\x80\\xd7\\x67\\x3d\\x8e\\xdb\\\n\\xaf\\x1b\\x89\\x55\\xd9\\xbb\\x61\\x35\\x9b\\x30\\x7c\\xfc\\x8d\\x53\\x46\\x5d\\\n\\x75\\xd3\\x8a\\x0e\\x47\\x07\\x8a\\x37\\xf4\\x97\\x1c\\x35\\x91\\x0c\\x1f\\xf6\\\n\\xad\\x6f\\xf6\\x23\\x69\\x19\\x27\\x02\\xa5\\x08\\xf9\\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\x9b\\x9b\\xc6\\x68\\x74\\x46\\x26\\x22\\x1c\\x4c\\x62\\xe2\\x49\\x17\\x93\\\n\\xa2\\x00\\x49\\x8e\\x77\\xef\\xdc\\x11\\x5f\\x32\\xfe\\x8a\\xcc\\xa4\\x55\\xab\\\n\\xaf\\x50\\x67\\xf6\\x3b\\x74\\xac\\xbe\\x38\\xfe\\xb9\\xcd\\x1f\\xbd\\xb1\\xb8\\\n\\x70\\xcb\\xf5\\xc4\\x56\\xc9\\x83\\x62\\x00\\x95\\x1e\\xe0\\x54\\x00\\xab\\xf0\\\n\\xb9\\x28\\xb2\\xc4\\xd7\\x55\\xe4\\x26\\x2e\\x55\\x69\\x12\\x97\\x76\\xea\\x87\\\n\\x25\\x0d\\x65\\xf8\\xae\\xfa\\x18\\x42\\x25\\x2f\\xcc\\x0c\\x0b\\x06\\x00\\x88\\\n\\x0c\\xda\\xa8\\x86\\x3b\\x77\\xd9\\x24\\xe2\\x76\\x3c\\x42\\x29\\x43\\x64\\x88\\\n\\x5e\\xb6\\xdd\\x39\\x34\\x7e\\x69\\x29\\x38\\x5d\\xbe\\xdf\\xfd\\x29\\x43\\x22\\\n\\xcb\\x70\\x39\\x5c\\x98\\x30\\xba\\x3f\\xc6\\x8c\\x1a\\x88\\x9d\\x87\\x8e\\x61\\\n\\xce\\x87\\x3f\\x81\\x51\\x72\\xc8\\x1a\\xd8\\x0b\\x42\\xbd\\x05\\xf6\\xda\\x06\\\n\\xa0\\xb6\\x01\\xb2\\xdb\\x0a\\x55\\x62\\x55\\xb4\\xc2\\xa8\\x2d\\xeb\\x48\\x3f\\\n\\x49\\xd6\\xf2\\x78\\x02\\xb2\\xc8\\x67\\x9d\\x91\\xb6\\x2d\\x37\\xc9\\x7d\\x2b\\\n\\x13\\x12\\x51\\x73\\x49\\x93\\xf1\\x8a\\x2f\\x76\\xfe\\x7c\\xac\\xd0\\x9c\\x3a\\\n\\x3a\\x3d\\x7a\\x5d\\x56\\x82\\x61\\x6b\\x66\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a\\\n\\x4e\\x48\\x88\\x08\\x29\\x4b\\x8f\\xd1\\xe6\\x0c\\x8c\\xd3\\x6d\\x1f\\x10\\xa7\\\n\\xdb\\x75\\x65\\xaf\\xe8\\x6c\\xdf\\x5b\\x6e\\x51\\x94\\xdd\\x3a\\x75\\x81\\xe7\\\n\\x40\\xee\\x50\\x65\\x5a\\x6f\\x5f\\xa0\\x58\\x96\\x4e\\x31\\x18\\x22\\xb8\\x94\\\n\\x2e\\x70\\xed\\xde\\x9d\\x89\\xcd\\xfb\\x33\\x35\\x59\\xc9\\x76\\x84\\x26\\x01\\\n\\x8a\\x90\\x13\\xac\\x08\\x34\\x4c\\xe4\\x44\\xbc\\x85\\x00\\x6e\\x3b\\x7e\\xd4\\\n\\x47\\x63\\xb5\\xad\\x0e\\xe3\\x84\\x06\\x54\\xb1\\xca\\x93\\x63\\xa9\\x04\\x84\\\n\\x9d\\xf3\\x6f\\xe7\\x07\\x4d\\xfb\\x91\\x56\\xea\\xac\\x92\\xa3\\xae\\x85\\xcc\\\n\\xa1\\x00\\x02\\xd4\\xd4\\x5b\\xa0\\x56\\x72\\xa0\\x18\\xa6\\x55\\xcc\\x90\\x66\\\n\\x59\\xd8\\xcd\\x76\\xff\\x8b\\xc0\\x00\\xb5\\x0d\\x3e\\x87\\x48\\x94\\x00\\x8f\\\n\\x17\\x14\\xe5\\x6b\\x2a\\x11\\x5d\\x60\\xd4\\xa1\\x26\\x86\\x0f\\x0b\\x38\\xa5\\\n\\x55\\x76\\xdb\\x58\\xd3\\xe7\\x53\\x17\\x48\\xf5\\x25\\x89\\xe1\\x8f\\xaf\\x1d\\\n\\xc3\\x68\\x22\\xec\\xb4\\x52\\x6f\\x26\\x92\\x0b\\xa0\\xf4\\x3e\\x32\\xb7\\x68\\\n\\x1d\\xf1\\x08\\x90\\x45\\xe7\\xad\\x7c\\x97\\x71\\x7f\\x4a\\x05\\xf9\\x5f\\xc6\\\n\\x9b\\x5e\\x7f\\xdc\\x34\\x1a\\x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\xd2\\x64\\x5c\\\n\\x7d\\xac\\xee\\x72\\x48\\x72\\x13\\x3b\\x0f\\x00\\xcb\\x00\\x1a\\x05\\x10\\x19\\\n\\xe2\\x23\\x68\\x94\\x86\\x5f\\x7a\\xb0\\x76\\x92\\xcd\\x2d\\xb1\\x00\\xa0\\x1e\\\n\\x30\\x70\\xa7\\x64\\xb6\\x04\\x88\\x9e\\xd2\\xf0\\x96\\x97\\x83\\x0e\\x35\\x42\\\n\\x3d\\x74\\x18\\x68\\x63\\x18\\xc4\\xe2\\x62\\x34\\xce\\xf6\\xa3\\xf5\\x3a\\xe0\\\n\\xf8\\x71\\x08\\x65\\x25\\x80\\x52\\xd9\\x7c\\x12\\x20\\x45\\xfb\\xc6\\xc8\\x52\\\n\\x01\\x38\\x1b\\x00\\x5b\\x0d\\x60\\xaf\\x05\\x68\\xa6\\x31\\xcc\\x0d\\xc8\\x12\\\n\\xf2\\x39\\x05\\x40\\xb3\\x60\\x9a\\x48\\x36\\x8a\\x55\\x43\\xb2\\xcb\\x1a\\xd7\\\n\\xee\\xef\\x4b\\xb9\\x90\\x58\\x33\\x64\\xa9\\x0e\\x4d\\x09\\xa7\\x56\\xa2\\xa0\\\n\\xa4\\x0a\\x56\\xbb\\x0b\\x4c\\x94\\x11\\x72\\x93\\xea\\x6f\\x22\\x13\\x28\\x38\\\n\\x16\\x2a\\xa5\\x02\\xa4\\xc9\\x8b\\x25\\xd4\\x9b\\x31\\x62\\x50\\x2f\\x4c\\xba\\\n\\x22\\x0b\\x42\\x8d\\x19\\xa0\\x68\\xc8\\x1e\\x07\\x18\\x3e\\xbc\\x4e\\x11\\x9e\\\n\\xda\\xcc\\x56\\x94\\x3d\\x76\\xda\\x34\\xff\\xbe\\x77\\x4d\\xef\\x5d\\xf7\\xb3\\\n\\x5c\\x5f\\xdc\\x9d\\x4d\\x88\\x07\\x97\\x18\\x0f\\xb9\\xa1\\x32\\xa5\\xe6\\xf5\\\n\\x7e\\x47\\x9d\\xfb\\x97\\x10\\x4d\\xea\\x04\\x70\\x61\\x5d\\x7d\\x04\\xf4\\x08\\\n\\x90\\xbd\\xae\\xeb\\x28\\x46\\x79\\x85\\x22\\xb2\\x57\\x1f\\x4d\\xb7\\x89\\x2b\\\n\\x14\\x86\\xe4\\x9a\\x3f\\x8b\\x03\\x7f\\x19\\x32\\xfe\\x5e\\xd8\\x30\\x16\\x6a\\\n\\x45\\xdb\\x76\\x35\\x81\\x8f\\x98\\x26\\x81\\x5f\\x9d\\x57\\x3b\\x0e\\x00\\x94\\\n\\x69\\x69\\x07\\x4e\\xa6\\x2c\\x4e\\x4a\\x28\\xb1\\xb2\\x0a\\xba\\x1b\\x26\\x23\\\n\\x61\\xf1\\x52\\x24\\x2c\\x58\\x84\\x84\\xc5\\x4b\\x10\\x32\\x61\\x22\\xbc\\x25\\\n\\xc5\\x00\\x45\\x83\\x56\\x2a\\x01\\xab\\x19\\x2e\\x53\\x3d\\xa0\\x68\\xb1\\xa6\\\n\\x8e\\xe4\\x05\\xbc\\x76\\xdc\\x3b\\x60\\x1a\\x56\\xdd\\xf4\\x11\\xbe\\xbb\\xee\\\n\\x6d\\xa4\\xc5\\x66\\x00\\xe6\\x52\\x7f\\xce\\xd8\\x9f\\xbd\\xa0\\x68\\x00\\x54\\\n\\xf3\\x0e\\x24\\x32\\x18\\xbd\\x02\\xce\\x9d\\xf3\\x7d\\xef\\x84\\x31\\xc9\\x40\\\n\\x24\\xef\\x49\\xb2\\x58\\x1c\\x18\\x31\\x24\\x1d\\x15\\x55\\x75\\xb0\\xe5\\x97\\\n\\x42\\x13\\x13\\x06\\x59\\x92\\x40\\x64\\x19\\x2a\\x5e\\x09\\x85\\x4a\\x81\\xda\\\n\\x7a\\xcb\\x09\\x67\\xc6\\xf7\\x6e\\xd0\\x70\\x7b\\x44\\x38\\xec\\x4e\\x50\\x0c\\\n\\x0d\\xc8\\x22\\x20\\xba\\x6e\\x55\\xc5\\xf6\\xdf\\xd5\\xf4\\xd6\\xce\\xdc\\xe5\\\n\\x63\\x6b\\x66\\xa6\\xe7\\x3a\\x7e\\xfb\\xec\\x51\\x36\\xdc\\xc8\\x33\\x61\\x71\\\n\\x80\\x24\\x82\\x48\\x22\\x98\\xc8\\x78\\xd0\\x0c\\x8d\\xfa\\x77\\xae\\x83\\x6d\\\n\\xcd\\x7f\\xc1\\x27\\x0d\\x87\\xb6\\xf7\\x54\\x8a\\x4f\\x19\\x19\\xc6\\xa7\\x8c\\\n\\x59\\xa7\\xe9\\x71\\xed\\x6a\\x55\\x7c\\x56\\x0e\\xad\\xfc\\x73\\x4b\\xcf\\xfe\\\n\\x12\\x64\\x3c\\x5c\\x6d\\x4b\\x2e\\x28\\xb7\\xa6\\x40\\xa3\\x68\\x22\\xa1\\x00\\\n\\xb8\\x44\\x40\\x22\\x27\\x25\\x17\\x05\\x40\\x94\\xb1\\xfc\\x48\\xcd\\x44\\x00\\\n\\xe0\\xd3\\xd2\\x0e\\xd0\\x06\\x7d\\x1e\\xf1\\x7a\\x9b\\x6b\\x57\\x53\\x3d\\x34\\\n\\x57\\x5e\\x09\\xce\\xaf\\xc2\\xb9\\xa8\\x68\\xc4\\xcd\\xfd\\x1c\\xaa\\xde\\xbd\\\n\\x21\\xd7\\xd6\\x80\\x80\\x06\\x08\\x05\\x89\\x48\\x7e\\x5b\\xb1\\x09\\x99\\x45\\\n\\x17\\x68\\x56\\x85\\x4f\\x47\\x3f\\x81\\x2b\\x12\\x07\\x60\\x6a\\xea\\x68\\xec\\\n\\x9d\\xfa\\x29\\x3a\\x47\\x76\\x03\\x6c\\xb5\\x27\\x03\\xe1\\x44\\x06\\x20\\x43\\\n\\x6e\\xa1\\x69\\x69\\x8d\\x11\\xee\\xe3\\x47\\xe0\\xca\\x5d\\x49\\x42\\x92\\xc7\\\n\\x70\\xb2\\xd3\\x27\\xcd\\x00\\x40\\xb0\\x0b\\xe8\\xda\\xbf\\x07\\x86\\x0f\\xee\\\n\\x8d\\xb1\\xb7\\xbe\\x84\\x06\\x9b\\x00\\x5d\\xaf\\xce\\xd0\\xf6\\xec\\x04\\x2e\\\n\\x26\\x1c\\x37\\x3f\\xf4\\x16\\xbe\\x5d\\xba\\x01\\x21\\x71\\x91\\xad\\x1c\\x9f\\\n\\xc6\\x42\\x5a\\xd9\\xd9\\x70\\x2b\\x17\\xd1\\xeb\\x00\\xab\\x8b\\x3b\\xe1\\xb8\\\n\\x34\\x7c\\x77\\xff\\xec\\xfa\\x77\\x27\\x2d\\x95\\xeb\\x0a\\x7b\\x72\\x49\\x71\\\n\\xbe\\xd5\\xd2\\x9a\\xda\\xcf\\x92\\x08\\x46\\x1f\\x05\\x36\\xdc\\x80\\x86\\x2f\\\n\\x9e\\x41\\xed\\xec\\x11\\x90\\xed\\xf5\\x3c\\xab\\x8d\\x37\\xb1\\x9a\\x28\\xeb\\\n\\x5f\\x45\\x20\\xfd\\x25\\xc8\\xf8\\x7b\\xbe\\x69\\x2c\\xcc\\x2e\\x1e\\x1c\\x7d\\\n\\xd2\\xbd\\x14\\x65\\x44\\x19\\xd5\\x50\\x70\\x34\\x9a\\xc4\\x97\\x01\\x8d\\x02\\\n\\xbf\\xe6\\xd7\\x8f\\x07\\x00\\x45\\xef\\x3e\\x79\\x5c\\x42\\x62\\x09\\x71\\x38\\\n\\x9a\\xd9\\x8b\\x14\\xa7\\x80\\xe3\\xf7\\xd6\\x75\\x0b\\xaa\\x81\\x03\\x21\\x9a\\\n\\x1b\\x40\\x9c\\x0e\\xc0\\x68\\x04\\x31\\x86\\x02\\x6e\\x57\\x73\\xb7\\x85\\x00\\\n\\x34\\xa3\\x40\\xa5\\x70\\xd2\\x49\\x65\\x69\\x06\\xcf\\x64\\xdd\\x03\\x08\\x0d\\\n\\x27\\x3c\\xf3\\x44\\xd1\\x03\\xc8\\x32\\xa4\\x56\\x13\\xfd\\x29\\x50\\x2c\\x20\\\n\\x6c\\xfd\\xd4\\x27\\x1d\\xf5\\x71\\x20\\x1e\\x87\\xcf\\x53\\x05\\xe0\\x2c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4f\\xaf\\x2f\\xc1\\x8d\\xd7\\\n\\x6b\\xbd\\x82\\xf0\\x24\\x64\\xd2\\xca\\x83\\xe6\\x68\\x16\\x31\\x4d\\xa6\\x19\\\n\\xec\\xa8\\x3a\\x8c\\x57\\x36\\x7d\\x08\\x68\\x23\\x01\\x9a\\x81\\xd6\\x69\\xc6\\\n\\xf5\\x82\\x19\\x02\\xa3\\x08\\xfc\\x40\\x1c\\x0f\\x22\\x00\\xe6\\x85\\xff\\x20\\\n\\x00\\xa0\\xeb\\x77\\x2f\\x25\\xb9\\x6c\\x20\\x92\\x07\\x34\\x43\\xc3\\xed\\xf1\\\n\\xc2\\x76\\xac\\x14\\x7d\\xfb\\xa4\\xe2\\xff\\xfe\\x75\\x2f\\x5e\\x7a\\xe3\\x21\\\n\\x5c\\x77\\xc3\\x28\\x08\\xe5\\x75\\xb0\\x59\\x1c\\xcd\\x6c\\x46\\x80\\x82\\xec\\\n\\x6c\\x00\\x63\\x88\\x87\\xb6\\xe7\\xe4\\x5f\\xdc\\x79\\xd9\\x03\\xab\\x5e\\x4a\\\n\\xdd\\xef\\xf8\\xf5\\xa3\\xfb\\x99\\x50\\x03\\xcf\\x84\\xc7\\xf9\\x22\\x09\\xad\\\n\\xa6\\x2e\\x30\\x00\\x91\\x20\\x96\\x94\\x83\\x52\\x87\\x15\\x19\\xee\\x9b\\x7b\\\n\\x5f\\xf8\\xa3\\x6b\\xae\\x51\\x76\\xed\\x58\\x4a\\xf4\\xcf\\xc0\\x69\\xc7\\x19\\\n\\xf7\\x7c\\xb6\\xe9\\x96\\xf5\\xff\\x5a\\x3a\\xb3\\xb8\\xf2\\x68\\x74\\x74\\xdf\\\n\\xc4\\x3d\\x49\\xc3\\xbb\\xee\\x02\\x00\\x4b\\xa9\\x29\\x7c\\xcd\\x93\\x3f\\xce\\\n\\x3a\\xf4\\xc3\\xae\\xc9\\x32\\x64\\x3e\\x2a\\x21\\x1e\\xa1\\xf6\\x08\\xec\\xfe\\\n\\xf8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\xd2\\x65\\xdc\\x41\\\n\\x31\\x6a\\x23\\x24\\xa7\\x09\\xb2\\xb7\\x51\\xcd\\xb7\\xb6\\x39\\x01\\x02\\xe2\\\n\\x75\\x82\\x0a\\x09\\x83\\x36\\xed\\x66\\xca\\xb1\\xfb\\x7b\\x52\\xfd\\xef\\x5e\\\n\\xc4\\xb2\\x6c\\xd6\\x15\\x8c\\x31\\x14\\x4c\\x78\\x1c\\x48\\x40\\xdb\\x90\\x02\\\n\\x28\\x0a\\x62\\x79\\x19\\x08\\xab\\xae\\x09\\x9d\\xfe\\xf9\\x3d\\x61\\xf7\\xfe\\\n\\x70\\xc7\\xdf\\x81\\x88\\x1d\\x22\\x63\\xcd\\xc1\\x8a\\xe4\\x95\\x0f\\x7c\\x3b\\\n\\xeb\\xab\\x91\\xff\\x5b\\x5f\\xb0\\xfe\\xe0\\x55\\x91\\x09\\x71\\xbc\\x26\\x46\\\n\\x0f\\x7d\\x84\\x11\\x87\\x17\\xef\\xb9\\xde\\x94\\xe7\\xb3\\x09\\x0d\\xc9\\xe1\\\n\\x35\\x23\\x5f\\xbc\\x76\\xa6\\xcd\\x63\\x39\\x29\\xc4\\x24\\x19\\xa1\\xa1\\x11\\\n\\xd8\\x3d\\x77\\xe3\\x74\\x5b\\x85\\xd9\\x10\\x90\\x8c\\xf9\\xa6\\xcb\\xa1\\x62\\\n\\x4f\\xaa\\x19\\xe2\\x8b\\x13\\x0e\\x4f\\xf6\\x1d\\xae\\x56\\x30\\xb8\\xaa\\x5b\\\n\\x38\\x60\\x75\\x81\\x50\\xfe\\x63\\x14\\x0c\\x60\\x72\\xf2\\xcb\\x0e\\x98\\x1a\\\n\\xa0\\x0d\\x77\\x70\\x9d\\x52\\x20\\x5b\\x2d\\xcd\\xd3\\x7f\\xa2\\x04\\x2e\\x2e\\\n\\x0e\\x5c\\x72\\x27\\x80\\x65\\xf7\\x29\\x33\\x32\\x17\\xc7\\x2e\\xf8\\x7e\\x4a\\\n\\xf4\\xab\\x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x00\\x88\\xec\\x19\\x5b\\xd4\\xfd\\x9a\\xbe\\\n\\xcb\\x72\\x7f\\xde\\x7e\\x4b\\x44\\x52\\x0c\\x88\\x4c\\x20\\xfb\\x6d\\xc7\\x3d\\\n\\x9f\\x6d\\xbc\\x37\\xeb\\xa9\\xcb\\x67\\xe9\\xe2\\x0c\\xa6\\x13\\x29\\xc0\\x90\\\n\\x16\\x29\\xc0\\xf0\\x10\\x2c\\x3b\\x5c\\x8b\\x65\\xfb\\x2b\\x01\\x05\\x03\\xad\\\n\\x92\\x45\\xac\\x4e\\x09\\xaf\\x4c\\x80\\x50\\xbe\\xf9\\x6b\\x24\\xca\\x58\\xb6\\\n\\xa3\\x0a\\x57\\x8d\\xec\\x06\\x2e\\x3e\\x1e\\x72\\x43\\x03\\x28\\xad\\xb6\\x79\\\n\\x00\\x5b\\xa3\\x85\\xe7\\xc8\\xd1\\x6e\\x81\\x9e\\xcb\\x2b\\x8b\\x8a\\x80\\xab\\\n\\xd3\\x12\\x02\\x0a\\x34\\x28\\x50\\x01\\x0b\\x4c\\x19\\x7d\\x9c\\x89\\xd1\\xc7\\\n\\x55\\x88\\xe5\\xfb\\x93\\x29\\xa5\\xb6\\xfd\\xce\\x23\\x32\\x68\\x85\\x1a\\x88\\\n\\x08\\x83\\x7d\\xc5\\x2c\\x78\\x0e\\xaf\\x22\\xca\\xb4\\x09\\xa0\\xb5\\x91\\x20\\\n\\x82\\x19\\x62\\xd9\\x7e\\xb8\\x0a\\x36\\x41\\xae\\x35\\x81\\xe6\\x01\\x2e\\x36\\\n\\xe6\\x84\\x47\\xde\\xb6\\x08\\xa1\\x01\\x8f\\x0b\\xde\\x0a\\x93\\xc0\\x0f\\x9e\\\n\\xb0\\x22\\xec\\xc1\\xe5\\x53\\x70\\x11\\xa0\\x43\\xde\\x74\\xc6\\xdd\\x97\\x7d\\\n\\x11\\x11\\x1b\\x97\\x2f\\xd4\\xdb\\x5b\\x8e\\x19\\x42\\x22\\x74\\xa8\\x28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e\\x65\\x8d\\x91\\x38\\xd5\\xc4\\xab\\x33\\x05\\x01\\x05\\x8a\\\n\\xa1\\x21\\x55\\x94\\x83\\x0e\\x8b\\x28\\x09\\x7f\\x32\\x7b\\x04\\x17\\xd5\\xb3\\\n\\x08\\x17\\x29\\x4e\\xab\\x17\\xc3\\xba\\x45\\x95\\xf4\\xbc\\xae\\xdf\\x92\\x86\\\n\\xda\\xda\\xe6\\x39\\x54\\x00\\x92\\x57\\x84\\x3a\\x4c\\x03\\x63\\x42\\x14\\x14\\\n\\x1a\\x65\\x40\\x22\\x36\\xc6\\x1d\\xad\\x61\\x1a\\x8c\\xcf\\x2b\\x47\\x68\\x49\\\n\\x2d\\xa0\\x55\\x37\\xb7\\x95\\x28\\x1f\\xc1\\x06\\xc5\\xeb\\x9b\\x25\\xf4\\x0d\\\n\\x3c\\xe7\\xe9\\x1b\\xa7\\xdb\\x07\\x47\\x8b\\xd8\\x9e\\x82\\x05\\xca\\x1b\\xb0\\\n\\xaa\\xdc\\x39\\x9e\\xee\\xd3\\xef\\xd0\\x85\\x20\\x22\\x00\\x50\\x2a\\x9d\\x95\\\n\\x62\\x71\\x4a\\x3b\\xef\\xec\\x24\\x22\\x0d\\xb1\\xbc\\x1c\\x74\\x74\\xd2\\x91\\\n\\x88\\xe7\\x76\\x0e\\xb8\\x98\\x89\\x78\\xda\\x64\\x04\\x80\\x81\\x33\\x46\\xcd\\\n\\xa6\\x41\\x0b\\x72\\x3b\\x9e\\x24\\xcd\\x32\\x70\\x5b\\xdd\\x68\\x28\\xad\\x85\\\n\\xec\\x15\\x41\\x33\\xcd\\x6f\\x23\\x28\\x39\\x18\\x6d\\x4e\\x5c\\xb5\\xaf\\xd0\\\n\\x5f\\x69\\xed\\x77\\x36\\x00\\x40\\x06\\xa0\\x60\\x30\\x30\\x5e\\xbf\\xbd\\xe5\\\n\\x75\\x07\\x27\\xe8\\xb7\\xc0\\x2d\\xb6\\xa8\\xf8\\x22\\x00\\x47\\x63\\xc5\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\\x89\\xba\\xfe\\xbb\\xba\\x85\\x5f\\xbe\\xe9\\\n\\xa2\\x25\\x63\\x74\\x9f\\x84\\xbc\\xdb\\xbf\\x9a\\x71\\x07\\x1b\\xa2\\x10\\x62\\\n\\xfb\\x25\\xed\\x32\\x24\\x87\\xfd\\xa5\\x42\\x13\\xe6\\x0f\\x36\\xdd\\x6d\\xdf\\\n\\xb9\\xab\\xbf\\xca\\xd0\\xa9\\xfd\\x5c\\x32\\x01\\x68\\x8a\\x87\\x7b\\x77\\x79\\\n\\xff\\x53\\x49\\x46\\x9a\\xa6\\xce\\x20\\x13\\x48\\x01\\xa2\\x07\\x92\\xc5\\x05\\\n\\x3c\\xf6\\x1d\\xd4\\x9d\\x87\\x03\\xab\\x5e\\x05\\x14\\xaa\\xb3\\x7e\\xc6\\xed\\\n\\xe5\\xf3\\x6e\\x5a\\x53\\xf0\\xc6\\x73\\xd5\\x42\\x5e\\x2a\\x00\\x9e\\xa3\\x15\\\n\\x60\\x68\\xa5\\x6f\\xb1\\x28\\x22\\x41\\x94\\x5c\\x90\\x88\\x04\\x05\\xad\\x32\\\n\\x45\\x6b\\x7a\\x1e\\xea\\x15\\x71\\xf5\\xca\\xcb\\xe2\\xef\\xfd\\x2c\\x54\\x95\\\n\\x58\\x77\\x51\\x91\\x11\\x00\\xd2\\xa7\\x65\\xfd\\xf8\\x57\\x15\\xff\\xa6\\x97\\\n\\x7f\\xfb\\x37\\x47\\x1b\\x79\\x30\\x38\\xe5\\xd6\\xcf\\x8c\\x46\\x05\\xb1\\xb2\\\n\\x2e\\x5a\\xd8\\x50\\xd0\\x9f\\x1f\\x9e\\xb2\\xab\\x2d\\x32\\x72\\x34\\x05\\xf7\\\n\\xe9\\x46\\x22\\x68\\x1a\\xde\\x8a\\x5a\\x84\\x8c\\x9e\\x0a\\x74\\x1e\\x0e\\xb1\\\n\\xae\\x00\\x67\\xa5\\xee\\xfd\\xc8\\x2e\\x7e\\x77\\xfa\\xfc\\x03\\x33\\x66\\x87\\\n\\xaa\\xb4\\x7c\\x74\\x48\\x77\\xff\\x7b\\x15\\xa0\\x7c\\x0f\\x14\\x64\\xc8\\xc6\\\n\\x3a\\x67\\xc1\\xd0\\x15\\xf9\\x33\\x87\\x6e\\x29\\x9b\\x7b\\x5f\\x56\\xdc\\xdd\\\n\\x5f\\x4e\\xe8\\xfa\\xda\\xab\\x17\\x15\\x19\\xcf\\x27\\x6a\\x8f\\x54\\x26\\x6e\\\n\\x7f\\xf7\\xf7\\xc7\\x62\\x33\\x3b\\xed\\x0d\\x89\\xd2\\x56\\x69\\xa2\\x74\\x35\\\n\\x9a\\x18\\x43\\x85\\x52\\xaf\\xb2\\xaa\\xf4\\xea\\x76\\xc3\\x44\\x96\\xcf\\xb6\\\n\\xde\\xe2\\xaa\\x2f\\x33\\xaa\\x8c\\xf1\\x6d\\x97\\x7b\\xd1\\x34\\xe0\\x11\\x21\\\n\\x5a\\xad\\x20\\x70\\xc1\\x85\\x72\\xde\\xf1\\xd3\\xfe\\x1b\\xda\\x22\\x23\\xc7\\\n\\x50\\x1e\\x96\\xa6\\xe0\\x3e\\xad\\x54\\x20\\x05\\xd9\\x6e\\x02\\x63\\xd4\\xc3\\\n\\x70\\xd3\\x47\\x00\\x00\\xd9\\xe3\\xc0\\xd9\\xb2\\xb1\\xd2\\x96\\xdb\\x65\\xc9\\\n\\xd1\\x27\\x67\\x45\\x87\\x44\\xf3\\x6a\\x2e\\x14\\x84\\x48\\xed\\x08\\x7e\\x5f\\\n\\x96\\x48\\xab\\x88\\x82\\x5e\\x19\\x03\\x87\\xd7\\x94\\xb2\\xe2\\xd8\\xeb\\xcf\\\n\\x1d\\xac\\x5d\\x79\\xf5\\x3d\\x7d\\x7e\\xba\\x21\\x3c\\xa4\\x73\\x45\\x90\\x8c\\\n\\xa7\\x80\\x26\\x5a\\x5f\\x75\\x70\\xc1\\xee\\x5b\\x7e\\xff\\xf8\\xa7\\x27\\x8c\\\n\\x88\\x82\\x82\\x57\\x42\\x15\\xca\\x43\\xa1\\x55\\xee\\x09\\x89\\xd4\\xd6\\x84\\\n\\x44\\xe9\\x6a\\x28\\x15\\xe5\\xea\\x7e\\x75\\xdf\\x95\\xbd\\xa6\\xf4\\x6f\\x36\\\n\\x5d\\xd3\\xb6\\x60\\xdf\\x54\\x1a\\x4a\\xbe\\x69\\x95\\x5a\\x33\\x8a\\xd0\\x34\\\n\\xbc\\x75\\xf5\\x20\\x80\\xc0\\x0f\\xed\\xbe\\x49\\x3d\\x36\\x75\\xad\\x2c\\x38\\\n\\x42\\x28\\x5e\\xed\\x68\\xe6\\x00\\x95\\xdb\\x8d\\x84\\x96\\x65\\x2e\\x46\\x67\\\n\\x56\\xd2\\x94\\x47\\xc9\\x50\\x65\\x0e\\x20\\xbe\\xe3\\x52\\x91\\x82\\x54\\xef\\\n\\x84\\x61\\xda\\x4b\\xa0\\xd5\\x7a\\xff\\xbd\\xcf\\x7e\\x53\\xf4\\x9d\\x95\\xf3\\\n\\x6f\\xf7\\x48\\x92\\x86\\xe7\\x8c\\x90\\x3b\\x3c\\x29\\x87\\x40\\x26\\x12\\x78\\\n\\xd6\\x80\\x10\\xbd\\x91\\x2f\\xb3\\xed\\xcf\\x9a\\xbd\\x63\\xe8\\xc6\\xa7\\xb2\\\n\\xb6\\x0f\\x0a\\x55\\xff\\x79\\x6a\\xfb\\x6f\\x41\\x46\\xb5\\x81\\xf7\\x5c\\xfb\\\n\\xf5\\x5d\\xb7\\x7f\\x7d\\xcd\\xac\\xa5\\xfa\\xd8\\x50\\x5e\\x92\\x25\\x78\\x05\\\n\\x0f\\xdc\\x16\\x67\\x66\\x43\\x7e\\x2d\\x44\\xd1\\x0b\\x2b\\xcc\\x28\\x58\\x7e\\\n\\x68\\x42\\x53\\x32\\x8a\\x95\\x56\\x83\\x6b\\x6b\\xf1\\x60\\x96\\xd3\\x05\\x94\\\n\\x8a\\x14\\x45\\xc3\\x53\\x57\\x09\\x65\\x6a\\xe2\\xbe\\xf0\\xff\\x5d\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\x31\\x1d\\x97\\x8a\\x0d\\x2e\\x68\\xc6\\xdc\\x05\\x4a\\xc1\\\n\\x9f\\xd3\\x7e\\xe1\\x39\\x83\\x59\\x94\\xbc\\xa0\\xc0\\x80\\xb4\\x70\\xef\\x09\\\n\\x91\\x60\\xf7\\xd4\\x55\\xf4\\x89\\xb8\\xfe\\x97\\x58\\x5d\\x7a\\xae\\xd3\\xdb\\\n\\x60\\x38\\x66\\xca\\x1e\\x55\\x62\\xdd\\xd5\\xdf\\xa0\\x8a\\xd7\\x28\\x18\\x1e\\\n\\x32\\x91\\x20\\x43\\x46\\x54\\x48\\x2a\\xb6\\x96\\xef\\x18\\xd9\\x2d\\xec\\x3f\\\n\\xcf\\x4e\\xe8\\xfa\\xea\\xeb\\x00\\xe0\\xcd\\x9b\\xb2\\x48\\xae\\x38\\xd8\\x93\\\n\\x8e\\xea\\x7d\\x80\\x36\\x4e\\x58\\xce\\x84\\x4d\\x5c\\x41\\xeb\\x2f\\xdb\\xf7\\\n\\x97\\x8d\\x33\\x9e\\x29\\x1c\\x75\\x36\\x3e\\xff\\xd7\\xdc\\x91\\xa7\\x73\\x4e\\\n\\xd6\\xff\\x5d\\xfe\\x96\\x4b\\x12\\x84\\x40\\xa6\\x1a\\xc5\\x50\\xf0\\xc2\\xcd\\\n\\x17\\xfd\\x7e\\x64\\x6c\\xe3\\x67\\xde\\xfc\\xba\\x2e\\x80\\xd4\\xaa\\x96\\x12\\\n\\x00\\x24\\x9b\\x1d\\x8c\\x46\\x5b\\x13\\xbf\\xf6\\x91\\x31\\x2d\\x89\\x28\\x56\\\n\\xdb\\x74\\x55\\xff\\x58\\x38\\xbb\\x74\\xc8\\xff\\x36\\x3b\\xb3\\x0f\\x5e\\xa5\\\n\\x34\\xc4\\xf2\\x4a\\x26\\x01\\xae\\x0d\\x85\\xc3\\xfd\\x96\\x9a\\x81\\x6b\\x28\\\n\\xf4\\x40\\xa1\\xed\\x58\\xc3\\xdd\\x36\\x28\\xf4\\x1c\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76\\x50\\x00\\x71\\\n\\x00\\x54\\xcc\\xe8\\x75\\x8c\\xb1\\x6d\\xa7\\x86\\x88\\x26\\x95\\xb8\\x7f\\xe2\\\n\\x72\\xf1\\xd0\\x7f\\x9e\\xf1\\x1c\\x98\\xf2\\xe5\\x9f\\x4e\\xc6\\x95\\x79\\xff\\\n\\x7c\\xe1\\x93\\x7d\\x0f\\xce\\xf9\\xfe\\xe0\\x03\\x1f\\xb5\\x75\\x4c\\xfc\\xa0\\\n\\x94\\x9c\\xa8\\x5e\\x71\\x07\\x9c\\xb5\\x76\\x28\\x34\\x4a\\x84\\x27\\xc5\\x20\\\n\\x34\\x3e\\x92\\xaf\\x3b\\x5c\\x95\\xb5\\xe6\\x95\\x9f\\xde\\xf8\\xf2\\xb2\\xff\\\n\\x6e\\x5d\\x38\\x69\\xce\\xa2\\x7d\\x5f\\x6f\\x9d\\xec\\xb2\\x3a\\x4f\\x88\\x91\\\n\\x21\\xcf\\x5d\\xf1\\x86\\xc3\\x6d\\x69\\xb5\\x08\\x3c\\x01\\x01\\x0b\\x16\\x45\\\n\\xeb\\xf3\\x46\\x01\\x00\\x3f\\x20\\x71\\x07\\x05\\x4e\\x20\\xde\\x16\\xeb\\x5d\\\n\\xf3\\x0a\\x88\\xa6\\x06\\x88\\x05\\x75\\x29\\x00\\xa0\\x1e\\x96\\xb2\\x41\\xc9\\\n\\xc5\\x89\\x34\\xc7\\x43\\x34\\xd9\\xe0\\xad\\xaf\\x01\\x24\\xd9\\xb7\\xcc\\x4a\\\n\\xd3\\x80\\x38\\xad\\x87\\x73\\xef\\x41\\x60\\xe7\\x7a\\x28\\xf5\\x9a\\xc0\\xdd\\\n\\x47\\x29\\x00\\xe2\\x02\\xbc\\x45\\xa0\\xc4\\x42\\x50\\xde\\x02\\x50\\xae\\x42\\\n\\x50\\xac\\x19\\x94\\x51\\x01\\xe8\\x38\\x20\\x84\\x05\\x43\\xf9\\x16\\xce\\x38\\\n\\x57\\x30\\xa8\\x13\\xea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58\\x2f\\\n\\x14\\x44\\xcf\\xde\\x36\\x78\\xed\\x1f\\xa5\\x9f\\x4e\\x8f\\xd6\\x74\\xe6\\x79\\\n\\x2e\\x14\\x32\\x11\\xc1\\x50\\x2c\\xec\\xde\\x3a\\x54\\x39\\x0a\\x84\\x91\\x89\\\n\\xff\\xf8\\xf4\\xd1\\x81\\x7f\\x5c\\x99\\xa4\\x1f\\xd4\\xe6\\xe4\\xab\\xe4\\x51\\\n\\xdd\\xd6\\x8b\\xf0\\x06\\x0c\\x4e\\xfb\\x36\\x58\\x06\\x84\\x5a\\x3b\\x24\\x4f\\\n\\xe0\\x00\\x76\\x2b\\x82\\x87\\x85\\xa0\\xe6\\x50\\x59\\xcf\\x92\\xcd\\xf9\\x99\\\n\\x00\\x10\\xfe\\xf6\\xa4\\x27\\x19\\x4a\\x27\\x88\\x66\\x6b\\xb3\\xcd\\x28\\x89\\\n\\x24\\x81\\x09\\xd7\\x83\\x09\\xd1\\xc2\\xf2\\xcd\\x06\\x94\\x5f\\xfb\\x31\\x4a\\\n\\x33\\x66\\xa1\\xfc\\x8a\\x39\\xb0\\x7e\\xb7\\x03\\xac\\xce\\xd0\\x4c\\xf8\\x11\\\n\\x99\\x06\\x38\\x2f\\xa0\\xb2\\x43\\x29\\xca\\x17\\x40\\x30\\xca\\x60\\x28\\x85\\\n\\xe8\\x0b\\x60\\xe7\\xc7\\xce\\xde\\x3e\\x78\\xed\\xfa\\xe2\\x4f\\xa6\\x47\\x85\\\n\\xa4\\xf0\\x89\\xfa\\x14\\x6c\\x2e\\xfb\\x64\\xfa\\x9e\\xca\\xef\\xae\\x6d\\x37\\\n\\xc5\\x46\\x2b\\x3d\\x72\\x93\\xe2\\x09\\x99\\x88\\x88\\xe0\\xbb\\x22\\xcf\\xb4\\\n\\x71\\xe8\\xa1\\xda\\x5f\\x46\\x9e\\xf4\\xa0\\x9f\\x0c\\xec\\x41\\xfb\\x59\\x42\\\n\\x51\\x22\\xbc\\x7b\\x47\\xae\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2b\\x49\\x47\\x08\\xf8\\x70\\x2d\\\n\\xec\\x36\\xab\\x66\\xe1\\xc4\\x0f\\x17\\x01\\xc0\\x55\\xef\\xdf\\xf2\\xcc\\x1d\\\n\\x1b\\x9e\\x1a\\x91\\x34\\xb4\\xdb\\xea\\xea\\xd2\\x52\\x41\\xa8\\xb3\\xb7\\xd8\\\n\\xfc\\x11\\x60\\x79\\x05\\x6c\\x76\\x73\\x64\\xe1\\xda\\xc3\\xcd\\xd2\\x8b\\xf1\\\n\\xcb\\xff\\x31\\x25\\x74\\xfa\\x84\\x4f\\xdd\\x8e\\x6a\\x41\\xac\\xab\\xf7\\x2d\\\n\\xf4\\xd9\\x96\\xca\\xa7\\x28\\x50\\x34\\x03\\xa9\\xce\\x01\\xd9\\xeb\\x05\\x3f\\\n\\x65\\x2d\\xe8\\xf8\\x52\\xc0\\x0a\\xb0\\xf0\\xa9\\x7b\\x42\\x29\\x41\\x28\\x35\\\n\\x08\\xa5\\x01\\xa1\\x75\\x20\\x4c\\x28\\x08\\x13\\x06\\xc2\\xc5\\x82\\xb8\\x14\\\n\\x20\\x16\\x2f\\x88\\xd9\\x03\\xd2\\xe0\\x05\\x31\\x79\\x80\\x7a\\x37\\x50\\xe7\\\n\\x82\\x28\\xf9\\x36\\xfa\\x6a\\xd7\\xee\\x74\\x97\\x22\\xce\\x70\\x3b\\xfa\\x44\\\n\\x4d\\x45\\xad\\x33\\xcf\\x9f\\x59\\x69\\xcd\\x0e\\x42\\x24\\x28\\x19\\x0d\\xc2\\\n\\xd5\\x29\\x88\\xe4\\xbb\\x22\\x92\\xef\\x0a\\x83\\x2a\\xc1\\xff\\x5d\\xa0\\x8a\\\n\\x6f\\x1a\\x1e\\x50\\xd0\\xb1\\xba\\x59\\x28\\x7f\\xfd\\x98\\x4c\\x9a\\xda\\x7b\\\n\\x14\\x40\\x03\\xc4\\xeb\\x93\\x6a\\xc4\\xe5\\x0b\\x76\\xb7\\x22\\x1c\\x75\\xea\\\n\\x60\\x02\\x11\\x20\\x70\\xdd\\x5e\\xfa\\x37\\xa3\\x19\\x70\\xe0\\xbc\\x65\\x60\\\n\\x26\\x74\\x7d\\xfd\\xd5\\x2e\\xa1\\x03\\x76\\xd5\\x0a\\xc7\\x5a\\x75\\x90\\x5e\\\n\\x19\\x87\\x3f\\x8a\\x3f\\xbf\\x3b\\xbb\\xe8\\xed\\xfb\\x9b\\x7e\\xfe\\xf3\\xd1\\\n\\x27\\x5e\\x7b\\x6f\\xe7\\xd4\\x05\\xdf\\xe6\\x4e\\xfb\\x2a\\x20\\x19\\x47\\xa4\\\n\\xee\\x88\\xe8\\x11\\x73\\xc4\\x65\\x72\\xb4\\xb6\\x7f\\x45\\x09\\xe1\\xb1\\x31\\\n\\x7c\\xce\\x8a\\xad\\x13\\xf2\\x56\\xe4\\x8c\\x06\\x80\\xa4\\x61\\xa9\\xbb\\xee\\\n\\xde\\xf8\\x7f\\x57\\x4c\\x78\\x7b\\xda\\x93\\x8c\\x9a\\x29\\xab\\x2a\\x2c\\x81\\\n\\xec\\x6d\\xea\\xe0\\x10\\x30\\x60\\x51\\xb4\\xee\\x68\\xab\\x69\\x9e\\x31\\x9f\\\n\\xdc\\xfc\\x78\\xdc\\xc2\\x47\\xa6\\x72\\x29\\x11\\x07\\xdc\\xf5\\xa5\\x82\\xb7\\\n\\xbe\\x06\\xc4\\xea\\x02\\xf1\\xca\\xbe\\x52\\x1a\\x51\\x86\\x2c\\x78\\x21\\xd6\\\n\\x9b\\xe0\\xac\\x2b\\x16\\xb8\\xce\\x69\\x07\\x22\\xbf\\xe8\\x3e\\x95\\xc9\\xdc\\\n\\x0e\\xb9\\x56\\xe7\\xef\\xb8\\x46\\x07\\x86\\x01\\x45\\x5c\\x50\\xc9\\x26\\xe8\\\n\\xc5\\x2a\\x44\\x7a\\x0b\\x91\\xe0\\x39\\x84\\xae\\x96\\x35\\xe8\\x67\\xa8\\xde\\\n\\x34\\xbc\\xbb\\x66\\xd5\\xb8\\x34\\xed\\x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xd3\\x77\\x75\\x8f\\x6b\\xfa\\xae\\x5e\\xf7\\xc2\\x92\\\n\\x7f\\x6e\\xfd\\xdf\\x9a\\xa7\\x6d\\x66\\x8b\\x41\\x86\\x84\\xe2\\xf5\\x79\\xa3\\\n\\x4e\\x45\\x46\\x2e\\xc1\\x50\\xc7\\x25\\x18\\x02\\xce\\xff\\x90\\x04\\x93\\xca\\\n\\x5b\\xb6\\x2d\\x8b\\xf6\\xb7\\x89\\x25\\x12\\xac\\xb4\\x06\\x56\\x5a\\x13\\xf0\\\n\\x5a\\xa2\\x4b\\x80\\x3a\\x35\\x73\\x4f\\x7b\\x44\\x04\\x00\\x97\\xe8\\x56\\x41\\\n\\x30\\x01\\xda\\x48\\x84\\x69\\x63\\xca\\x62\\x34\\xe1\\x15\\x89\\x7c\\x58\\x49\\\n\\x82\\x2e\\xaa\\x2c\\x41\\x1b\\x55\\xda\\x89\\x37\\x16\\xf4\\x89\\xe9\\x75\\xa2\\\n\\x9f\\xae\\xef\\xf1\\xde\\x33\\x21\\x8a\\xc8\\xea\\x35\\x85\\x6f\\x3c\\xd7\\x20\\\n\\x54\\x85\\x87\\xaa\\x63\\xa0\\x66\\xf5\\xbe\\xb4\\x5b\\xbb\\xde\\x07\\x05\\x9a\\\n\\xa2\\x61\\x71\\x57\\xa2\\xc1\\x6d\\x16\\xae\\xe9\\xf5\\xf1\\x03\\xfd\\xed\\xcb\\\n\\x26\\x7a\\xad\\xae\\xc9\\xd0\\xf9\\x55\\x6f\\xa3\\x8a\\x16\\x21\\x30\\x31\\x33\\\n\\xde\\x0d\\x68\\xc2\\xee\\x48\\x3e\\x0c\\x4f\\x83\\x81\\xe2\\xdb\\xf1\\x9e\\x6d\\\n\\x10\\x98\\x4e\\x53\\x17\\x9e\\x2e\\x11\\xcf\\x5a\\x32\\x02\\x80\\xd5\\x5d\\x69\\\n\\x78\\x7d\\x73\\xaf\\x83\\x14\\x45\\xc7\\x6a\\x14\\x91\\x6d\\xce\\x4e\\xa3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6\\xa7\\x18\\x86\\x6c\\xc9\\x88\\xba\\xf1\\x87\\x7e\\x31\\x53\\xbf\\x0b\\\n\\x51\\x5c\\x1c\\x1e\\x67\\x10\\xe7\\x06\\x17\\x64\\x7d\\xc6\\x6b\\xba\\xbd\\xf5\\\n\\xb4\\x28\\x4b\\x6c\\xdf\\xe8\\x6b\\x7f\\xee\\x13\\x35\\xf9\\x97\\x60\\xb7\\x07\\\n\\xf1\\xa7\\x49\\xc6\\x20\\x82\\xe8\\x08\\xe8\\x60\\x17\\x04\\x11\\x24\\x63\\x10\\\n\\x41\\x04\\xc9\\x18\\x44\\x90\\x8c\\x41\\x04\\x11\\x24\\x63\\x10\\x41\\x32\\x06\\\n\\x11\\x44\\x90\\x8c\\x41\\x04\\xc9\\x18\\x44\\x10\\x41\\x32\\x06\\x11\\x24\\x63\\\n\\x10\\x41\\x04\\xc9\\x18\\x44\\x90\\x8c\\x41\\x04\\x11\\x24\\x63\\x10\\x41\\x32\\\n\\x06\\x11\\x44\\x90\\x8c\\x41\\x5c\\xaa\\x60\\x2f\\xd5\\x07\\x4f\\x4f\\x4f\\xbf\\\n\\x13\\x40\\x11\\x80\\xec\\x0e\\x1c\\x6e\\x00\\x70\\x27\\x80\\x77\\xce\\xf0\\x76\\\n\\x19\\x00\\xf6\\x9d\\x8f\\xe7\\xc8\\xc9\\xc9\\xb9\\x68\\xc6\\xe4\\x92\\x2c\\xae\\\n\\x4d\\x4f\\x4f\\x1f\\x09\\x60\\xbd\\xff\\xcf\\xbe\\x1d\\x20\\x4a\\x36\\x80\\x11\\\n\\x00\\xfe\\x0d\\xe0\\xe5\\xd3\\xbc\\x5d\\xe3\\xb9\\xef\\x02\\x98\\x11\\x80\\xa4\\\n\\xd7\\x9e\\xe5\\xe3\\xcc\\xcb\\xc9\\xc9\\x29\\x0a\\x4a\\xc6\\x8b\\x03\\x86\\xf3\\\n\\x7c\\xfd\\x0c\\xff\\xff\\x8f\\x35\\x21\\x9f\\xb9\\x09\\x51\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x64\\xca\\\n\\x68\\x42\\xd8\\x25\\x2d\\x3c\\xf7\\x79\\x08\\x5c\\xfb\\xd8\\x11\\xfc\\x91\\x93\\\n\\x93\\x33\\xf2\\x62\\x19\\xb3\\x8b\\x59\\x4d\\xdf\\x19\\x80\\x34\\x16\\xbf\\x54\\\n\\xba\\x2e\\x27\\x27\\x27\\x39\\x27\\x27\\xe7\\x74\\xbd\\xe4\\x46\\x9b\\x71\\x94\\\n\\xff\\x3a\\x81\\x24\\x5b\\x5b\\xd2\\x35\\xd9\\x4f\\xca\\x97\\x5b\\x7c\\xf7\\x4e\\\n\\x13\\xbb\\xf4\\x74\\xf1\\x4e\\x50\\x4d\\xff\\x3d\\x30\\xcf\\x4f\\x1c\\xb3\\x9f\\\n\\x0c\\xd9\\x39\\x39\\x39\\xe7\\xca\\x46\\xcb\\xc6\\xc9\\x49\\x5b\\xd7\\x36\\xb9\\\n\\xcf\\xbc\\x33\\xb8\\x56\\x53\\xa2\\x9e\\x0e\\x8a\\x70\\x91\\xd5\\x3c\\x06\\x37\\\n\\xb2\\x0c\\x22\\xa8\\xa6\\x83\\x08\\x22\\x48\\xc6\\x20\\x82\\x64\\x0c\\x22\\x88\\\n\\x20\\x19\\x83\\x08\\x92\\x31\\x88\\x20\\x82\\x64\\x0c\\xe2\\x6f\\x8b\\xff\\x1f\\\n\\x00\\x1a\\xaa\\x6c\\x4a\\x36\\xea\\x1a\\x8a\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\\n\\x44\\xae\\x42\\x60\\x82\\\n\\x00\\x00\\x01\\x72\\\n\\x89\\\n\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\\x00\\x00\\x00\\x0d\\x49\\x48\\x44\\x52\\x00\\\n\\x00\\x00\\x30\\x00\\x00\\x00\\x30\\x08\\x06\\x00\\x00\\x00\\x57\\x02\\xf9\\x87\\\n\\x00\\x00\\x01\\x39\\x49\\x44\\x41\\x54\\x68\\x43\\xed\\x99\\xcd\\x8d\\xc2\\x30\\\n\\x10\\x85\\xdf\\x44\\xe1\\xce\\xd2\\x00\\x70\\x80\\x36\\x36\\x54\\x02\\x57\\xa0\\\n\\x08\\xa0\\x08\\xe0\\xca\\x56\\xb2\\xd0\\x06\\x1c\\x08\\x0d\\x00\\x77\\xa2\\x0c\\\n\\x22\\xfc\\x88\\x48\\x44\\xb2\\x89\\x7d\\x88\\xf4\\x72\\x8d\\x33\\xf6\\xbc\\xf9\\\n\\xfc\\xac\\x89\\x05\\x15\\x7f\\xa4\\xe2\\xeb\\x07\\x13\\x28\\xaa\\x60\\x7d\\xb9\\\n\\x6f\\x89\\x5e\\xfe\\x6f\\xef\\x55\\x6a\\xbd\\xf3\\xb0\\x1d\\xfb\\xa8\\xb6\\xb7\\\n\\x0a\\x34\\xe6\\xbb\\x29\\x04\\x93\\x6c\\xd1\\x8a\\xd9\\x71\\xdc\\x99\\x32\\x81\\\n\\x0f\\x0a\\xb0\\x02\\x45\\x58\\x10\\x21\\xc3\\x0d\\x43\\x84\\x88\\x90\\x21\\x2a\\\n\\x45\\xc3\\x88\\x10\\x11\\x22\\x42\\x25\\x15\\x20\\x42\\x25\\x05\\xa4\\x0b\\x11\\\n\\x21\\x22\\xf4\\xa6\\xc0\\xad\\x0d\\x0c\\x90\\xf4\\x4b\\x8a\\x72\\x6f\\xc2\\x14\\\n\\x91\\x00\\xd1\\xbd\\x21\\xc3\\x5a\\x04\\x6b\\x17\\x71\\x53\\x84\\x7f\\xef\\xed\\\n\\x69\\x6e\\x13\\xff\\x2c\\xb6\\x7b\\x81\\xb4\\x5c\\x4c\\xe4\\x2b\\x86\\x42\\xe3\\\n\\xd3\\xa8\\xdb\\x7e\\xc6\\xcf\\x27\\x30\\xdf\\xc5\\x22\\x68\\xfa\\x9a\\xdc\\x45\\\n\\x5c\\x55\\x1c\\x4e\\xe3\\xce\\x4b\\xe4\\x5c\\x02\\x19\\x42\\x69\\x32\\x70\\x32\\\n\\x11\\x10\\x89\\xe0\\xf7\\x81\\xd3\\x46\\xe0\\x08\\xa1\\x20\\x5c\\x15\\x22\\xe4\\\n\\x62\\xe1\\xcf\\x18\\x6c\\x29\\x0d\\xd5\\xe4\\x49\\xcc\\x93\\xd8\\x10\\x15\\xb6\\\n\\x94\\xb6\\x42\\xd1\\x85\\x0c\\x15\\xa3\\x0b\\xd1\\x85\\x0c\\x51\\xa1\\x0b\\xd9\\\n\\x0a\\x45\\x17\\x32\\x54\\x8c\\x2e\\x44\\x17\\x32\\x44\\x85\\x2e\\x64\\x2b\\x54\\\n\\x76\\xd1\\x9d\\x26\\xd9\\x9f\\x08\\x0d\\xc2\\xa8\\x72\\x17\\xdd\\xb6\\x09\\x7f\\\n\\x3b\\xde\\x9b\\x0b\\x7d\\xbb\\x20\\xdb\\xef\\x2a\\x9f\\xc0\\x15\\xa9\\xd2\\x0f\\\n\\x40\\x81\\xeb\\x2f\\xeb\\x00\\x00\\x00\\x00\\x49\\x45\\x4e\\x44\\xae\\x42\\x60\\\n\\x82\\\n\"\n\nqt_resource_name = b\"\\\n\\x00\\x04\\\n\\x00\\x07\\x37\\xfe\\\n\\x00\\x6d\\\n\\x00\\x61\\x00\\x69\\x00\\x6e\\\n\\x00\\x06\\\n\\x07\\x03\\x7d\\xc3\\\n\\x00\\x69\\\n\\x00\\x6d\\x00\\x61\\x00\\x67\\x00\\x65\\x00\\x73\\\n\\x00\\x0b\\\n\\x05\\x7e\\x1b\\xc7\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x63\\x00\\x6e\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0e\\\n\\x02\\x60\\xf8\\xc7\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x63\\x00\\x6c\\x00\\x6f\\x00\\x73\\x00\\x65\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0e\\\n\\x0d\\x3e\\x85\\x27\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x6d\\x00\\x75\\x00\\x73\\x00\\x69\\x00\\x63\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0f\\\n\\x0f\\xf2\\x44\\xe7\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x6e\\x00\\x6f\\x00\\x72\\x00\\x6d\\x00\\x61\\x00\\x6c\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0f\\\n\\x06\\x0f\\xf0\\xc7\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x61\\x00\\x76\\x00\\x61\\x00\\x74\\x00\\x61\\x00\\x72\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0d\\\n\\x0b\\x7c\\xdd\\x47\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x67\\x00\\x61\\x00\\x6d\\x00\\x65\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0c\\\n\\x0e\\x7f\\x9f\\x87\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x6d\\x00\\x61\\x00\\x78\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0d\\\n\\x0e\\xcd\\xdb\\xa7\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x73\\x00\\x6b\\x00\\x69\\x00\\x6e\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0d\\\n\\x03\\x08\\xda\\x87\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x6d\\x00\\x69\\x00\\x6e\\x00\\x69\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x08\\\n\\x05\\xe2\\x59\\x27\\\n\\x00\\x6c\\\n\\x00\\x6f\\x00\\x67\\x00\\x6f\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0d\\\n\\x07\\xe7\\xda\\x87\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x6d\\x00\\x61\\x00\\x74\\x00\\x68\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0e\\\n\\x08\\x40\\xb4\\x67\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x6d\\x00\\x6f\\x00\\x76\\x00\\x69\\x00\\x65\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0d\\\n\\x00\\x2f\\xdb\\xc7\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x73\\x00\\x68\\x00\\x6f\\x00\\x70\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x10\\\n\\x03\\x08\\xf8\\x87\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x63\\x00\\x6f\\x00\\x6c\\x00\\x6c\\x00\\x65\\x00\\x63\\x00\\x74\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x0b\\\n\\x05\\x9e\\x1b\\xc7\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x65\\x00\\x6e\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\\x00\\x10\\\n\\x09\\x75\\xed\\x87\\\n\\x00\\x69\\\n\\x00\\x63\\x00\\x6f\\x00\\x6e\\x00\\x5f\\x00\\x61\\x00\\x64\\x00\\x64\\x00\\x53\\x00\\x6b\\x00\\x69\\x00\\x6e\\x00\\x2e\\x00\\x70\\x00\\x6e\\x00\\x67\\\n\"\n\nqt_resource_struct_v1 = b\"\\\n\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x01\\\n\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x02\\\n\\x00\\x00\\x00\\x0e\\x00\\x02\\x00\\x00\\x00\\x10\\x00\\x00\\x00\\x03\\\n\\x00\\x00\\x01\\x9e\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\x9d\\x5b\\\n\\x00\\x00\\x00\\x3c\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x57\\x34\\\n\\x00\\x00\\x01\\x26\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x2e\\xcb\\\n\\x00\\x00\\x01\\xbe\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\x9f\\x9e\\\n\\x00\\x00\\x00\\x20\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x00\\\n\\x00\\x00\\x01\\xe4\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\xa2\\x42\\\n\\x00\\x00\\x01\\x46\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x2f\\xbd\\\n\\x00\\x00\\x00\\xa4\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\xdd\\xdd\\\n\\x00\\x00\\x01\\x5c\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x92\\x77\\\n\\x00\\x00\\x01\\x7c\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\x11\\x5c\\\n\\x00\\x00\\x02\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\xe8\\x4c\\\n\\x00\\x00\\x00\\xc8\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\xdf\\x4e\\\n\\x00\\x00\\x00\\x5e\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x59\\x39\\\n\\x00\\x00\\x00\\xe8\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x21\\x52\\\n\\x00\\x00\\x01\\x06\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x2c\\x9d\\\n\\x00\\x00\\x00\\x80\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\xd2\\x5c\\\n\"\n\nqt_resource_struct_v2 = b\"\\\n\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x01\\\n\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\\n\\x00\\x00\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x02\\\n\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\\n\\x00\\x00\\x00\\x0e\\x00\\x02\\x00\\x00\\x00\\x10\\x00\\x00\\x00\\x03\\\n\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\\n\\x00\\x00\\x01\\x9e\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\x9d\\x5b\\\n\\x00\\x00\\x01\\x71\\xa1\\x3c\\x79\\x30\\\n\\x00\\x00\\x00\\x3c\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x57\\x34\\\n\\x00\\x00\\x01\\x71\\xa1\\x42\\x90\\x54\\\n\\x00\\x00\\x01\\x26\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x2e\\xcb\\\n\\x00\\x00\\x01\\x71\\xa1\\x3f\\x3c\\xb9\\\n\\x00\\x00\\x01\\xbe\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\x9f\\x9e\\\n\\x00\\x00\\x01\\x71\\xca\\xa5\\x43\\x51\\\n\\x00\\x00\\x00\\x20\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x00\\\n\\x00\\x00\\x01\\x6c\\x70\\x6d\\x0f\\xa5\\\n\\x00\\x00\\x01\\xe4\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\xa2\\x42\\\n\\x00\\x00\\x01\\x6c\\x70\\x6d\\x0f\\xc9\\\n\\x00\\x00\\x01\\x46\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x2f\\xbd\\\n\\x00\\x00\\x01\\x6c\\x70\\x6d\\x0f\\xe5\\\n\\x00\\x00\\x00\\xa4\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\xdd\\xdd\\\n\\x00\\x00\\x01\\x71\\xa5\\xe2\\x5e\\x38\\\n\\x00\\x00\\x01\\x5c\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x92\\x77\\\n\\x00\\x00\\x01\\x6c\\x70\\x6d\\x0f\\xb3\\\n\\x00\\x00\\x01\\x7c\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\x11\\x5c\\\n\\x00\\x00\\x01\\x71\\xc5\\x01\\x15\\x43\\\n\\x00\\x00\\x02\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x02\\xe8\\x4c\\\n\\x00\\x00\\x01\\x6c\\x70\\x6d\\x0f\\xe6\\\n\\x00\\x00\\x00\\xc8\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\xdf\\x4e\\\n\\x00\\x00\\x01\\x6c\\x70\\x6d\\x0f\\xdc\\\n\\x00\\x00\\x00\\x5e\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x59\\x39\\\n\\x00\\x00\\x01\\x6c\\x70\\x6d\\x0f\\xe3\\\n\\x00\\x00\\x00\\xe8\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x21\\x52\\\n\\x00\\x00\\x01\\x71\\xca\\xa7\\x1d\\x7a\\\n\\x00\\x00\\x01\\x06\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x01\\x2c\\x9d\\\n\\x00\\x00\\x01\\x71\\xa1\\x27\\x31\\xc0\\\n\\x00\\x00\\x00\\x80\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\xd2\\x5c\\\n\\x00\\x00\\x01\\x71\\xca\\xa7\\xcd\\xc1\\\n\"\n\nqt_version = [int(v) for v in QtCore.qVersion().split('.')]\nif qt_version < [5, 8, 0]:\n rcc_version = 1\n qt_resource_struct = qt_resource_struct_v1\nelse:\n rcc_version = 2\n qt_resource_struct = qt_resource_struct_v2\n\ndef qInitResources():\n QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)\n\ndef qCleanupResources():\n QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)\n\nqInitResources()\n","repo_name":"teyying/LearningForChildren","sub_path":"main/resource/images_rc.py","file_name":"images_rc.py","file_ext":"py","file_size_in_byte":793589,"program_lang":"python","lang":"ja","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"74812023299","text":"#!/usr/bin/python\n# -*- coding: utf-8 -*-\nimport sys\nimport io\nfrom xml.etree.ElementTree import parse\nfrom os import urandom\nimport struct\n\n\ndef xml2pcap(input_file, output_file):\n tree = parse(input_file)\n root = tree.getroot()\n header = root[0]\n snaplen = int(header[4].text)\n with io.open(output_file, mode='wb') as f:\n f.write(struct.pack('=IhhiIII', *([0xa1b2c3d4] + [int(t.text) for t in header])))\n for c in root[1:]:\n incl_len = min(int(c[2].text), snaplen)\n f.write(struct.pack('=IIII', int(c[0].text), int(c[1].text), incl_len, incl_len))\n f.write(bytearray(urandom(incl_len)))\n\n\nif __name__ == '__main__':\n xml2pcap(sys.argv[1], sys.argv[2])","repo_name":"fasia/mxmlmate","sub_path":"subjects/pcap/converters/xml2pcap.py","file_name":"xml2pcap.py","file_ext":"py","file_size_in_byte":718,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"30543392055","text":"from django.urls import path\n\nfrom . import views\n\napp_name = 'salingbantu'\n\nurlpatterns = [\n path('', views.SalingBantu.as_view(), name='salingbantu'),\n path('details/', views.DetailsPost.as_view(), name='details_post'),\n path('details//comment', views.AddComment.as_view(), name='add_comment'),\n path('add-post/', views.AddPost.as_view(), name='add_post'),\n]","repo_name":"rafiatha09/berlapan-website","sub_path":"salingbantu/urls.py","file_name":"urls.py","file_ext":"py","file_size_in_byte":388,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"27035470657","text":"import pandas as pd\nimport numpy as np\nfrom sklearn import preprocessing\nfrom sklearn.model_selection import train_test_split\nfrom sklearn.naive_bayes import GaussianNB\nfrom matplotlib import pyplot as plt\nfrom sklearn.naive_bayes import MultinomialNB\nfrom sklearn.naive_bayes import ComplementNB\nfrom sklearn.naive_bayes import BernoulliNB\nfrom sklearn import tree\nfrom random import randint\n\ndata = pd.read_csv('iris.data', header=None)\nfeatures = data.iloc[:, :4].to_numpy()\nlabels = data.iloc[:, 4].to_numpy()\n\nencoder = preprocessing.LabelEncoder()\nencoded_labels = encoder.fit_transform(labels)\nX_train, X_test, y_train, y_test = train_test_split(features, encoded_labels, test_size=0.5)\n\n# 1. calculate number of misclassified observations\ngnb = GaussianNB()\ny_pred = gnb.fit(X_train, y_train).predict(X_test)\nmisclassified = np.count_nonzero(y_test != y_pred)\nprint(\"Number of misclassified observations:\", misclassified)\n\n# 2. calculate classification accuracy\naccuracy = gnb.fit(X_train, y_train).score(X_test, y_test) * 100\nprint(\"Classification accuracy:\", accuracy)\n\n# 3. plot classification accuracy and percentage of misclassified observations against test set size\ntest_sizes = []\nmisclassification_percentages = []\naccuracies = []\n\nsize = 0\nwhile size <= 0.95:\n size += 0.05\n X_train, X_test, y_train, y_test = train_test_split(features, encoded_labels, test_size=size)\n gnb = GaussianNB()\n y_pred = gnb.fit(X_train, y_train).predict(X_test)\n test_sizes.append(size)\n misclassification_percentages.append(np.count_nonzero(y_test != y_pred) / len(y_pred))\n accuracies.append(gnb.fit(X_train, y_train).score(X_test, y_test))\n\n# create bar plot\nfig, ax = plt.subplots()\nax.bar(test_sizes, accuracies, width=0.03, color='dodgerblue', label='Accuracy')\nax.bar(test_sizes, misclassification_percentages, width=0.03, color='salmon', label='% Misclassified')\nax.set_facecolor('seashell')\nfig.set_figwidth(17)\nfig.set_figheight(8)\nfig.set_facecolor('floralwhite')\nax.legend()\nax.set_xlabel('Test Set Size')\nax.set_ylabel('Accuracy/Misclassification %')\nax.set_title('Classification Accuracy and Misclassification % vs Test Set Size')\nplt.show()\n\n# 1. calculate number of misclassified observations for MultinomialNB\nclf = MultinomialNB(alpha=1.0, fit_prior=True, class_prior=None)\ny_pred = clf.fit(X_train, y_train).predict(X_test)\nmisclassified = (y_test != y_pred).sum()\nprint(\"Number of misclassified observations for MultinomialNB:\", misclassified)\n\nprint(np.count_nonzero(y_test != y_train))\nprint(clf.fit(X_train, y_train).score(X_test, y_test) * 100)\nclf = ComplementNB(force_alpha=True)\nY_pred = clf.fit(X_train, y_train).predict(X_test)\nprint(f'Number of observations that were misclassified: {np.count_nonzero(y_test != Y_pred)}')\nprint(f'Classification accuracy: {clf.fit(X_train, y_train).score(X_test, y_test) * 100}%')\nclf = BernoulliNB(force_alpha=True)\nY_pred = clf.fit(X_train, y_train).predict(X_test)\nprint(f'Number of observations that were misclassified: {np.count_nonzero(y_test != Y_pred)}')\nprint(f'Classification accuracy: {clf.fit(X_train, y_train).score(X_test, y_test) * 100}%')\nclf = tree.DecisionTreeClassifier()\nY_pred = clf.fit(X_train, y_train).predict(X_test)\nprint(np.count_nonzero(y_test != Y_pred))\nprint(f'Classification accuracy: {clf.fit(X_train, y_train).score(X_test, y_test) * 100}%')\n#3\nprint(f'Number of leaves: {clf.get_n_leaves()}')\nprint(f'Depth: {clf.get_depth()}')\n#4\nplt.subplots(1, 1, figsize=(10, 10))\ntree.plot_tree(clf, filled=True)\nplt.show()\n#5\nsize = 0\nlist_test_size = []\npercentage_misclassified_observations = []\nclassification_accuracy = []\nwhile size <= 0.95:\n size += 0.05\n X_train, X_test, Y_train, Y_test = train_test_split(features, labels, test_size=size)\n gnb = tree.DecisionTreeClassifier()\n Y_pred = gnb.fit(X_train, Y_train).predict(X_test)\n list_test_size.append(size)\n percentage_misclassified_observations.append(np.count_nonzero(Y_test != Y_pred) / len(Y_pred))\n classification_accuracy.append(gnb.fit(X_train, Y_train).score(X_test, Y_test))\nfig, ax = plt.subplots()\nax.bar(list_test_size, classification_accuracy, width=0.03, color='mediumaquamarine')\nax.bar(list_test_size, percentage_misclassified_observations, width=0.03, color='coral')\nax.set_facecolor('lightsteelblue')\nfig.set_figwidth(17)\nfig.set_figheight(8)\nfig.set_facecolor('lightgray')\nplt.xlabel('Test size')\nplt.ylabel('Accuracy and percentage of misclassified observations')\nplt.title('Accuracy and percentage of misclassified observations vs. test size')\nplt.show()\n#6\ncriterion_parameters = ('gini', 'entropy', 'log_loss')\nsplitter_parameter = ('best', 'random')\nfor parameter in criterion_parameters:\n sp_par_random = splitter_parameter[randint(0, 1)]\n max_dp_random = randint(5, 40)\n min_samples_split_random = randint(5, 40)\n min_samples_leaf_random = randint(5, 40)\n gnb = tree.DecisionTreeClassifier(criterion=parameter, splitter=sp_par_random, max_depth=max_dp_random,\n min_samples_split=min_samples_split_random,\n min_samples_leaf=min_samples_leaf_random)\n Y_pred = gnb.fit(X_train, Y_train).predict(X_test)\n print(f'With criterion: {parameter}, splitter: {sp_par_random}, max_depth: {max_dp_random}, min_samples_split: {min_samples_split_random}, min_samples_leaf: {min_samples_leaf_random} \\n classification accuracy: {gnb.fit(X_train, Y_train).score(X_test, Y_test) * 100}%, number of leaves: {gnb.get_n_leaves()}, depth: {gnb.get_depth()}\\n')","repo_name":"louisesesese/pythonProject_Lab7_MachineLearning","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":5544,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"28789891259","text":"import requests\nfrom bs4 import BeautifulSoup\nimport pandas as pd\n\nr = requests.get('http://chart.capital.com.tw/Chart/TWII/TAIEX11.aspx')\nif r.status_code == requests.codes.ok:\n soup = BeautifulSoup(r.text, 'lxml')\n tables = soup.find_all('table', attrs={'cellpadding': '2'})\n content = []\n title = ''\n for table in tables:\n details = table.find_all('tr')\n title = list(details.pop(0).stripped_strings)\n for detail in details:\n c = list(detail.stripped_strings)\n content.append(c)\n\n\ndf = pd.DataFrame(content, columns=title)\nprint(df.head())\n# df.to_csv('big888.csv', index=False)\n\n\n\n# data = []\n# r = requests.get('http://chart.capital.com.tw/Chart/TWII/TAIEX11.aspx')\n\n# if r.status_code == requests.codes.ok:\n# r.encoding = 'utf-8'\n# soup = BeautifulSoup(r.text, 'lxml')\n# tables = soup.find_all('table', attrs={'cellpadding': '2'})\n\n# for table in tables:\n# details = table.find_all('tr')\n# for detail in details:\n# date, value, price = [trs.text for trs in detail.find_all('td')]\n# if date == '日期':\n# continue\n\n# data.append([date, value, price])\n\n\n# df = pd.DataFrame(data, columns=['日期', '買賣超金額', '台指期'])\n# df.to_csv('big8.csv', index=False)\n# df.to_excel('big8.xlsx', index=False)\n# df.to_html('big8.html', index=False)\n","repo_name":"aws753951/ptt-crawler","sub_path":"bank8.py","file_name":"bank8.py","file_ext":"py","file_size_in_byte":1395,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"14788330972","text":"from django.shortcuts import render,HttpResponse,redirect\nfrom .forms import PersonDataForm,FaceImageForm\nimport face_recognition\nfrom .models import PersonData\nfrom django.contrib import messages\n\n\n# Create your views here.\ndef home(request):\n return render(request,\"face/index.html\",context={\n\n })\n\n\ndef user_data(request):\n if request.method==\"POST\":\n form=PersonDataForm(request.POST)\n if form.is_valid():\n form.save()\n return redirect(\"success\")\n \n else:\n form =PersonDataForm()\n\n return render(request,\"face/person_data.html\",{\n \"form\":form,\n })\n\n\n\ndef face_search(request):\n if request.method==\"POST\":\n form=FaceImageForm(request.POST,request.FILES)\n if form.is_valid():\n image=form.cleaned_data['image']\n print(image)\n unknown_image = face_recognition.load_image_file(f\"/home/rtr/Pictures/{image}\",)\n\n\n # unknown_encoding = face_recognition.face_encodings(unknown_image)[0]\n try:\n unknown_encoding = face_recognition.face_encodings(unknown_image)[0]\n\n except IndexError:\n messages.error(request,\"Please give a person image not any fictional object\")\n return redirect(face_search)\n\n print(unknown_encoding)\n\n user_data=PersonData.objects.all()\n\n for data in user_data:\n print(data.person_face_image.url)\n known_image = face_recognition.load_image_file(f\"/home/rtr/biometric_data_finder/{data.person_face_image.url}\")\n known_encoding = face_recognition.face_encodings(known_image)[0]\n print(f\"known_encoding{data.id}: {known_encoding}\")\n results = face_recognition.compare_faces([known_encoding], unknown_encoding)\n print(f\"result{data.id}:{results}\")\n\n if results[0]==True:\n match_data=data\n messages.success(request,f\"The {data.last_name} face matched with your image face\")\n print(\"Matched\")\n return render(request,\"face/person_details.html\",{\n \"match_data\":match_data,\n })\n \n \n else:\n print(\"not matched\")\n \n messages.error(request,\"Sorry The person you want is not available in our database\")\n\n\n return redirect(\"face_search\")\n \n else:\n form=FaceImageForm()\n \n return render(request,\"face/face_search.html\",{\n 'form':form,\n })\n\n\n\ndef person_details(request):\n return render(request,\"face/person_details.html\")","repo_name":"AbdullahAlmizan644/biometric_data_finder","sub_path":"face/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":2748,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"9314210651","text":"import model\r\n\r\ndef napisi_tabelo_naprej(datoteka, morje, velikost, st):\r\n vsebina = ''\r\n with open(datoteka, 'w', encoding='utf-8') as dat:\r\n dat.write(\"%rebase('base_za_sestavljanje_ladjic\" + str(velikost) + \".tpl')\\n\")\r\n dat.write('Izberi si nadaljne kvadratke tvoje ladjice.\\n')\r\n if st == 0:\r\n dat.write('\\n')","repo_name":"klarakresnik/Potapljanje-ladjic","sub_path":"napisi_tabelo_naprej.py","file_name":"napisi_tabelo_naprej.py","file_ext":"py","file_size_in_byte":1769,"program_lang":"python","lang":"sl","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"45842159025","text":"from gtk import PrintOperation, PageSetup\nimport gtksourceview2\nimport gobject\n\n########################\n###\n### SEARCH\n###\n########################\n\ndef search(act):\n act.vibase.view.emit(\"start_interactive_search\")\n \ndef search_cursor(act, forward=True):\n \"\"\"search for word under cursor\"\"\"\n doc = act.vibase.doc\n view = act.vibase.view\n buf = view.get_buffer()\n\n word = act.pos.get_word_under_cursor(act)\n doc.set_search_text(word, 0)\n\n #get search boundaries\n start = buf.get_iter_at_mark(buf.get_insert())\n if start.inside_word:\n if start.inside_word: start.backward_word_start()\n\n end = buf.get_iter_at_mark(buf.get_insert())\n if end.inside_word:\n if end.inside_word: end.forward_word_end()\n\n if forward:\n ret = end.forward_search(word, 0)\n\n #if nothing was found, search again from start\n if not ret:\n ret = buf.get_bounds()[0].forward_search(word, 0)\n else:\n ret = start.backward_search(word, 0)\n\n if not ret:\n ret = buf.get_bounds()[1].backward_search(word, 0)\n act.pos.moveInsert(act, ret[0])\n\ndef search_cursor_backward(act):\n search_cursor(act, forward=False)\n\n########################\n###\n### UNDO/REDO\n###\n########################\n\ndef undo(act):\n act.vibase.view.emit(\"undo\")\n \ndef redo(act):\n act.vibase.view.emit(\"redo\")\n\ndef redoLastOperation(act):\n act.vibase.lastOperation(act)\n\ndef getTerminal(act):\n # Get the terminal\n # TODO Probably needs a more sophisticated lookup, e.g., python terminal not installed, etc.\n window = act.vigtk.window\n bottom_panel = window.get_bottom_panel()\n notebook = bottom_panel.get_children()[0].get_children()[0]\n if len(notebook.get_children()) != 0:\n terminal = notebook.get_children()[1]\n return terminal\n return None\n\n########################\n###\n### PRINTING\n###\n########################\n\ndef draw_page(operation, context, page_nr, compositor):\n compositor.draw_page(context, page_nr)\n \ndef begin_print(operation, context, compositor):\n n_pages = 1\n while not compositor.paginate(context):\n pass\n \n n_pages = compositor.get_n_pages()\n operation.set_n_pages(n_pages)\n \ndef printall(act, location):\n views = [view for view in act.vigtk.window.get_views()]\n\n count = 1\n for view in views:\n \n po = PrintOperation()\n setup = PageSetup()\n po.set_default_page_setup(setup)\n \n po.set_export_filename(\"%s/%d.pdf\" % (location, count))\n count += 1\n \n pc = gtksourceview2.print_compositor_new_from_view(view)\n \n po.connect(\"begin_print\", begin_print, pc)\n po.connect(\"draw_page\", draw_page, pc)\n \n res = po.run(act.gtk.PRINT_OPERATION_ACTION_EXPORT)\n","repo_name":"icebreaker/dotfiles","sub_path":"gnome/gnome2/gedit/plugins.symlink/ViGedit/actions/others.py","file_name":"others.py","file_ext":"py","file_size_in_byte":2807,"program_lang":"python","lang":"en","doc_type":"code","stars":6,"dataset":"github-code","pt":"80"}
+{"seq_id":"37637309239","text":"# Definition for singly-linked list.\n# class ListNode(object):\n# def __init__(self, val=0, next=None):\n# self.val = val\n# self.next = next\nclass Solution(object):\n def reverseList(self, head):\n \"\"\"\n :type head: ListNode\n :rtype: ListNode\n \"\"\"\n stack = []\n temp = head\n while temp:\n stack.append(temp.val)\n temp = temp.next\n temp = head\n while temp:\n temp.val = stack.pop()\n temp = temp.next\n return head","repo_name":"concealedtea/Coding-Interview-Prep","sub_path":"Easy/0206_Reverse_LL.py","file_name":"0206_Reverse_LL.py","file_ext":"py","file_size_in_byte":540,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"18531097345","text":"import pandas as pd\nimport xml.etree.ElementTree as et\n\n\ndef extract_from_csv(file):\n dataframe = pd.read_csv(file)\n return dataframe\n\n\ndef extract_from_json(file):\n dataframe = pd.read_json(file, lines=True)\n return dataframe\n\n\ndef extract_from_xml(file):\n\n dataframe = pd.DataFrame(\n columns=['car_model', 'year_of_manufacture', 'price', 'fuel'])\n\n tree = et.parse(file)\n root = tree.getroot()\n\n for car in root:\n car_model = car.find(\"car_model\").text\n year_of_manufacture = int(car.find(\"year_of_manufacture\").text)\n price = float(car.find(\"price\").text)\n fuel = car.find(\"fuel\").text\n dataframe = dataframe.append({\"car_model\": car_model,\n \"year_of_manufacture\": year_of_manufacture,\n \"price\": price,\n \"fuel\": fuel\n }, ignore_index=True)\n\n return dataframe\n","repo_name":"seniorpe/python-etl","sub_path":"extract/extract.py","file_name":"extract.py","file_ext":"py","file_size_in_byte":979,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"71427207619","text":"from page.main_page import MainPage\nfrom business.init import instance\nfrom page.project_page import ProjectPage\nimport time\nfrom selenium.webdriver.common.action_chains import ActionChains\nfrom page.login_page import LoginPage\n\n\ndef page():\n return MainPage(instance.driver)\n\n\ndef log_out():\n hover = ActionChains(page().driver).move_to_element(page().username_text())\n hover.perform()\n time.sleep(2)\n # page().wait_for_text(page().LOG_OUT_BUTTON_XPATH, '退出登录')\n page().log_out_button().click()\n LoginPage(instance.driver).wait_for_text(LoginPage(instance.driver).LOGIN_BUTTON_XPATH, '登录')\n time.sleep(2)\n\n\ndef verify_username(user_name):\n assert page().username_text().text == user_name\n time.sleep(5)\n\n\ndef verify_sidebar():\n assert page().xpath_is_visible(page().PROJECT_LIST_BUTTON_XPATH)\n assert page().xpath_is_visible(page().MY_LIBRARY_BUTTON_XPATH)\n assert page().xpath_is_visible(page().CUBE_LIBRARY_BUTTON_XPATH)\n\n\ndef verify_click_side_bar():\n page().my_library_button().click()\n time.sleep(3)\n page().wait_for_text(page().MY_LIBRARY_TEXT_XPATH, '我的构件库')\n\n page().cube_library_button().click()\n time.sleep(3)\n page().wait_for_text(page().CUBE_LIBRARY_TEXT_XPATH, 'CUBE构件库')\n\n page().project_list_button().click()\n time.sleep(3)\n page().wait_for_text(page().PROJECT_LIST_TEXT_XPATH, '项目列表')\n\n\ndef open_project():\n page().project_button().click()\n ProjectPage(instance.driver).xpath_is_visible(ProjectPage(instance.driver).SIDE_BAR_BUTTON_XPATH)\n ProjectPage(instance.driver).loading_text_disappear()\n time.sleep(5)\n","repo_name":"harrisson-li/cube","sub_path":"business/main_page.py","file_name":"main_page.py","file_ext":"py","file_size_in_byte":1640,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"5659783779","text":"from dbutils.to_string import auto_str\nfrom schedule.models import ExtraActivity\n\n\n@auto_str\nclass ExtraFacActivity:\n\n def __init__(self, activity: ExtraActivity):\n self.id = activity.id\n self.title = activity.title\n self.priority = activity.priority\n self.day = activity.day\n self.frequency = activity.frequency\n self.duration = activity.duration\n self.location = activity.location\n self.start_time = activity.start_time\n self.description = activity.description\n","repo_name":"Team-Guy/timetable","sub_path":"dbutils/extra_activity.py","file_name":"extra_activity.py","file_ext":"py","file_size_in_byte":529,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"29996894261","text":"#-*- coding: utf-8 -*-\nfrom collections import defaultdict\nimport networkx as nx\n#-*- coding: utf-8 -*-\n# Copyright (C) 2011 by \n# Jordi Torrents \n# Aric Hagberg \n# All rights reserved.\n# BSD license.\n__author__ = \"\"\"\\n\"\"\".join(['Jordi Torrents ',\n 'Aric Hagberg (hagberg@lanl.gov)'])\n__all__ = [\"average_neighbor_degree\",\n \"average_neighbor_in_degree\",\n \"average_neighbor_out_degree\",\n 'average_degree_connectivity',\n 'average_in_degree_connectivity',\n 'average_out_degree_connectivity',\n 'k_nearest_neighbors']\n\ndef _average_nbr_deg(G, degree_method, nodes=None, weighted=False):\n avg_nbr_deg = {}\n for n in G.nbunch_iter(nodes):\n nbrdeg = degree_method(G[n])\n if weighted:\n nbrv = [G[n][nbr].get('weight',1)*d for nbr,d in nbrdeg.items()]\n else:\n nbrv = nbrdeg.values()\n norm = degree_method(n,weighted=weighted)\n avg_nbr_deg[n] = float(sum(nbrv))\n if norm > 0:\n avg_nbr_deg[n] /= norm\n return avg_nbr_deg\n\ndef average_neighbor_degree(G, nodes=None, weighted=False):\n r\"\"\"Returns the average degree of the neighborhood of each node.\n\n The average degree of a node `i` is\n\n .. math::\n\n k_{nn,i} = \\frac{1}{|N(i)|} \\sum_{j \\in N(i)} k_j\n\n where `N(i)` are the neighbors of node `i` and `k_j` is\n the degree of node `j` which belongs to `N(i)`. For weighted \n graphs, an analogous measure can be defined [1]_,\n\n .. math::\n\n k_{nn,i}^{w} = \\\\frac{1}{s_i} \\sum_{j \\in N(i)} w_{ij} k_j\n\n where `s_i` is the weighted degree of node `i`, `w_{ij}`\n is the weight of the edge that links `i` and `j` and\n `N(i)` are the neighbors of node `i`.\n\n\n Parameters\n ----------\n G : NetworkX graph\n\n nodes: list or iterable (optional)\n Compute neighbor connectivity for these nodes. The default is all nodes.\n\n weighted: bool (default=False)\n Compute weighted average nearest neighbors degree.\n\n Returns\n -------\n d: dict\n A dictionary keyed by node with average neighbors degree value.\n\n Examples\n --------\n >>> G=nx.path_graph(4)\n >>> G.edge[0][1]['weight'] = 5\n >>> G.edge[2][3]['weight'] = 3\n >>> nx.average_neighbor_degree(G)\n {0: 2.0, 1: 1.5, 2: 1.5, 3: 2.0}\n >>> nx.average_neighbor_degree(G, weighted=True)\n {0: 2.0, 1: 1.1666666666666667, 2: 1.25, 3: 2.0}\n\n >>> G=nx.DiGraph()\n >>> G.add_path([0,1,2,3])\n >>> nx.average_neighbor_in_degree(G)\n {0: 1.0, 1: 1.0, 2: 1.0, 3: 0.0}\n >>> nx.average_neighbor_out_degree(G)\n {0: 1.0, 1: 1.0, 2: 0.0, 3: 0.0}\n \n Notes\n -----\n For directed graphs you can also specify in-degree or out-degree \n by calling the relevant functions. \n\n See Also\n --------\n average_neighbor_out_degree, average_neighbor_in_degree, \n average_degree_connectivity \n \n References\n ---------- \n .. [1] A. Barrat, M. Barthélemy, R. Pastor-Satorras, and A. Vespignani, \n \"The architecture of complex weighted networks\". \n PNAS 101 (11): 3747–3752 (2004).\n \"\"\"\n degree_method = G.degree\n return _average_nbr_deg(G, degree_method, nodes=nodes, weighted=weighted)\n\ndef average_neighbor_in_degree(G, nodes=None, weighted=False):\n if not G.is_directed():\n raise nx.NetworkXError(\"Not defined for undirected graphs.\")\n degree_method = G.in_degree\n return _average_nbr_deg(G, degree_method, nodes=nodes, weighted=weighted)\naverage_neighbor_in_degree.__doc__=average_neighbor_degree.__doc__\n\ndef average_neighbor_out_degree(G, nodes=None, weighted=False):\n if not G.is_directed():\n raise nx.NetworkXError(\"Not defined for undirected graphs.\")\n degree_method = G.out_degree\n return _average_nbr_deg(G, degree_method, nodes=nodes, weighted=weighted)\naverage_neighbor_out_degree.__doc__=average_neighbor_degree.__doc__\n\ndef _avg_deg_conn(G, degree_method, nodes=None, weighted=False):\n # \"k nearest neighbors, or neighbor_connectivity\n if nodes is None:\n node_iter = G\n else:\n node_iter = G.nbunch_iter(nodes)\n dsum = defaultdict(float)\n dnorm = defaultdict(float)\n for n,k in degree_method(node_iter).items():\n nbrdeg = degree_method(G[n])\n if weighted:\n nbrv = [G[n][nbr].get('weight',1)*d for nbr,d in nbrdeg.items()]\n dnorm[k] += degree_method(n, weighted=weighted)\n else:\n nbrv = nbrdeg.values()\n dnorm[k] += k\n dsum[k] += float(sum(nbrv))\n\n dc = {}\n for k,avg in dsum.items():\n dc[k]=avg\n if avg > 0:\n dc[k]/=dnorm[k]\n return dc\n\ndef average_degree_connectivity(G, nodes=None, weighted=False):\n r\"\"\"Compute the average degree connectivity of graph.\n\n The average degree connectivity is the average nearest neighbor degree of\n nodes with degree k. For weighted graphs, an analogous measure can \n be computed using the weighted average neighbors degree defined in \n [1]_, for a node `i`, as:\n\n .. math::\n\n k_{nn,i}^{w} = \\frac{1}{s_i} \\sum_{j \\in N(i)} w_{ij} k_j\n\n where `s_i` is the weighted degree of node `i`, \n `w_{ij}`is the weight of the edge that links `i` and `j`,\n and `N(i)` are the neighbors of node `i`.\n\n Parameters\n ----------\n G : NetworkX graph\n\n nodes: list or iterable (optional)\n Compute neighbor connectivity for these nodes. The default is all nodes.\n\n weighted: bool (default=False)\n Compute weighted average nearest neighbors degree.\n\n Returns\n -------\n d: dict\n A dictionary keyed by degree k with the value of average neighbor degree.\n \n Examples\n --------\n >>> G=nx.path_graph(4)\n >>> G.edge[1][2]['weight'] = 3\n >>> nx.k_nearest_neighbors(G)\n {1: 2.0, 2: 1.5}\n >>> nx.k_nearest_neighbors(G, weighted=True)\n {1: 2.0, 2: 1.75}\n\n See also\n --------\n neighbors_average_degree\n\n Notes\n -----\n This algorithm is sometimes called \"k nearest neighbors'.\n\n References\n ---------- \n .. [1] A. Barrat, M. Barthélemy, R. Pastor-Satorras, and A. Vespignani, \n \"The architecture of complex weighted networks\". \n PNAS 101 (11): 3747–3752 (2004).\n \"\"\"\n degree_method = G.degree\n return _avg_deg_conn(G, degree_method, nodes=nodes, weighted=weighted)\n\ndef average_in_degree_connectivity(G, nodes=None, weighted=False):\n if not G.is_directed():\n raise nx.NetworkXError(\"Not defined for undirected graphs.\")\n degree_method = G.in_degree\n return _avg_deg_conn(G, degree_method, nodes=nodes, weighted=weighted)\naverage_in_degree_connectivity.__doc__=average_degree_connectivity.__doc__\n\ndef average_out_degree_connectivity(G, nodes=None, weighted=False):\n if not G.is_directed():\n raise nx.NetworkXError(\"Not defined for undirected graphs.\")\n degree_method = G.out_degree\n return _avg_deg_conn(G, degree_method, nodes=nodes, weighted=weighted)\naverage_out_degree_connectivity.__doc__=average_degree_connectivity.__doc__\n\n\nk_nearest_neighbors=average_degree_connectivity\nneighbor_connectivity=average_degree_connectivity\n","repo_name":"fstwn/cockatoo","sub_path":"modules/networkx/algorithms/neighbor_degree.py","file_name":"neighbor_degree.py","file_ext":"py","file_size_in_byte":7228,"program_lang":"python","lang":"en","doc_type":"code","stars":23,"dataset":"github-code","pt":"80"}
+{"seq_id":"3657132399","text":"import random\n\n# two people take turns counting up by 1 or 2. The goal is to say 21.\n# different variations can exist based on the values that can be counted up by or the goal number.\n# This is the 1 player version, playing against a bot that will always play the best moves.\n\n# play function: first argument is max_interval, the most that can be counted up to by a player in a single turn\n# second argument: goal, the number that each player is trying to say and wins upon saying\n# third argument: whether the player goes first\ndef play(max_interval:int, goal:int, human_turn:int, difficulty:int):\n current = 0\n player_turn = 0\n\n while current < goal:\n if human_turn == player_turn % 2:\n print(\"player turn\")\n move = 0\n while move < 1 or move > max_interval:\n try:\n move = int(input('Type a valid number between 1 and ' + str(max_interval) + \" \"))\n if move < 1 or move > max_interval:\n print(\"Invalid input. Choose a number between 1 and \" + str(max_interval) + \" \")\n except (TypeError, ValueError):\n print(\"Invalid input. Choose a number between 1 and \" + str(max_interval) + \" \")\n player_turn += 1\n current += move\n print(str(current))\n else:\n print(\"computer turn\")\n move = 0\n if (goal - current) % (max_interval + 1) == 0 or difficulty == 0:\n move = random.randint(1,max_interval)\n else:\n move = (goal - current) % (max_interval + 1)\n current += move\n player_turn += 1\n print(str(current))\n\n player_turn -= 1\n print(\"Game Over: Player \" + str(player_turn % 2 + 1) + \" wins\")\n if player_turn % 2 == human_turn:\n print(\"Human victory\")\n else:\n print(\"Bot victory\")\n\nwhile True:\n print(\"Counting Game\")\n if (input('Type \"1\" to play: ')) == \"1\":\n max_interval = 0\n goal = 0\n human_turn = -1\n difficulty = -1\n while human_turn == -1:\n try:\n human_turn = int(input('Do you want to go first? Type \"0\" if you want to go first and \"1\" if you want to go second: '))\n if human_turn < 0 or human_turn >= 2:\n print(\"Invalid input\")\n human_turn = -1\n except (TypeError, ValueError):\n print(\"Invalid input\")\n while max_interval < 2:\n try:\n max_interval = int(input('What is the maximum interval? '))\n if max_interval < 2:\n print(\"Invalid input\")\n except (TypeError, ValueError):\n print(\"Invalid input. Choose a number greater than 1\")\n while goal < 2:\n try:\n goal = int(input('What is the goal number(the number you need to say to win)? '))\n if goal < 2:\n print(\"Invalid Input\")\n except (TypeError, ValueError):\n print(\"Invalid input. Choose a number greater than 2\")\n while difficulty < 0 or difficulty > 1:\n try:\n difficulty = int(input('How difficult do you want the bot to be? Type \"1\" for hard mode and type \"0\" for easy mode: '))\n if difficulty < 0 or difficulty > 1:\n print(\"Invalid Input\")\n except (TypeError, ValueError):\n print(\"Invalid Input\")\n play(max_interval, goal, human_turn, difficulty)\n else:\n break","repo_name":"NathanN70/Simple-Games","sub_path":"counting_vs_bot.py","file_name":"counting_vs_bot.py","file_ext":"py","file_size_in_byte":3582,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"5619947383","text":"#!/usr/bin/env python3\n\nimport numpy as np\nimport pandas as pd\nfrom scipy.spatial import ConvexHull\nfrom scipy.spatial.distance import cdist\nimport os\nimport shutil\nimport fnmatch\nimport sys\n\n#subsamples = [10,20,30,40,50,60,80,100,200,300]\nsubsamples = [50]\n\n#scenes = ['001_standing_coated', '002_lying_coated', '003_standing_liquid', '004_lying_liquid', '005_standing_empty', '006_lying_empty']\nscenes = ['001_standing_coated']\n\ntest_img_indices = [3, 12, 13, 17, 18, 22, 23, 27, 30, 33, 34, 36, 41, 43, 46, 47, 49, 56, 64, 79, 87, 93, 97, 99, 103, 105, 106, 107, 108, 111, 112, 113, 114, 120, 121, 123, 124, 125, 127, 131, 137, 140, 156, 157, 166, 168, 171, 174, 179, 182, 183, 186, 187, 189, 195, 196, 197, 201, 202, 203, 212, 213, 214,\n 217, 224, 225, 230, 234, 235, 239, 242, 245, 250, 252, 253, 254, 255, 257, 258, 261, 268, 276, 301, 302, 305, 307, 308, 309, 311, 317, 319, 320, 324, 325, 327, 328, 329, 333, 335, 336, 339, 341, 349, 353, 368, 376, 380, 383, 386, 387, 391, 392, 395, 396, 402, 403, 408, 409, 410, 413, 414, 419, 420, 424]\nsubsample_image_names = [(str(item).zfill(6)) +\n '.png' for item in test_img_indices]\n\n#/home/julius/Documents/Julius_03_x_auswertung/Julius_03_10/scenes/001_standing_coated/depth_nerf_v2_centered_nerfacto\n#/home/julius/Documents/Julius_03_x_auswertung/Julius_03_10/scenes/001_standing_coated/depth_nerf_124\n\n#path_to_master = '/home/julius/Documents/Julius_03_x_auswertung/Julius_03_' \npath_to_master = '/home/julius/Videos/Julius_03_x/Julius_03_' \n#folders = [\"rgb_nerf\", \"depth_nerf\", \"depth_norm_nerf\"]\nfolders = [\"depth_nerf\"]\n\nextension = \"_v2_centered_nerfacto_only_subsamples_v2\"\n\nfor folder in folders:\n for subsample in subsamples:\n for scene in scenes:\n path = path_to_master + f\"{subsample}/scenes/{scene}/{folder}\"\n #print(path)\n dest = os.path.dirname(path.replace(\"Videos/Julius_03_x\", \"Documents/Julius_03_x_auswertung\")) + f\"/{folder}{extension}\"\n #print(dest)\n os.makedirs(dest, exist_ok=True)\n dest_names_to_read = dest.replace(f\"{folder}{extension}\", \"rgb\")\n files = sorted([os.path.join(path, f) for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))])\n file_names_to_read = sorted([os.path.basename(os.path.join(dest_names_to_read, f)) for f in os.listdir(dest_names_to_read) if os.path.isfile(os.path.join(dest_names_to_read, f))])\n \n for idx, file in enumerate(files):\n dest2 = os.path.join(dest, file_names_to_read[idx])\n shutil.copy2(file, dest2)\n \n # if os.path.basename(file) in subsample_image_names:\n \n # shutil.copy2(file, dest)\n \n \n","repo_name":"juliusroschmann/viewpoint_sampling","sub_path":"misc/test_img_extraction.py","file_name":"test_img_extraction.py","file_ext":"py","file_size_in_byte":2820,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"22144211195","text":"from mitsui.Mitsui import *\n\nfrom controllers.parseArgs import *\n\nclass MitsuiScraping:\n\n def switch(self, scraping_type, args, states):\n default = getattr(self, '_default')\n request = parseArgs(args)\n return getattr(self, scraping_type, lambda: default)(request, states)\n\n def _default(self, request, states):\n return {\n 'status' : 500,\n 'error' : 'Server Error.'\n }\n\n def login_search(self, request, states):\n\n\n return {\n 'data' : {},\n 'states' : states\n }\n\n def get_ptable(self, request, states):\n \n helper = Mitsui()\n browser = helper.new_browser(debug=False)\n try:\n helper.login(browser, request)\n except:\n browser.quit()\n return{\n 'data' : {\n 'status' : 500,\n 'message' : 'Login Failed'\n },\n 'states' : states\n }\n browser_id = request['browser_id']\n states[browser_id] = browser\n response = helper.ptable_search(browser, request, browser_id)\n\n if(response['browser_table']['has_next'] == None or response['browser_table']['has_next'] == -1):\n # Clear Browser\n browser.quit()\n states[browser_id] = None\n del states[browser_id]\n browser_id = 0\n\n return {\n 'data' : response,\n 'states' : states\n }\n\n def get_batch(self, request, states):\n helper = Mitsui()\n browser_id = request['browser_id']\n browser = states[browser_id]\n\n # Traverse PTABLE\n result = helper.getSmallBatchResult(browser)\n\n if (result['has_next'] == -1):\n # Clear Browser\n browser.quit()\n states[browser_id] = None\n del states[browser_id]\n browser_id = 0\n\n return {\n 'data' : {\n 'status' : 200,\n 'browser_table' : {\n 'browser_id' : browser_id,\n 'has_next' : result['has_next']\n },\n 'payload' : result['payload'],\n },\n 'states' : states\n }\n \n def get_detail(self, request, states):\n helper = Mitsui()\n # Check if Browser is initialized\n if 'mitsui_detail' in states:\n browser = states['mitsui_detail']\n if(helper.isBrowserActive(browser) is False):\n # Clear Browser\n browser.quit()\n states['mitsui_detail'] = None\n del states['mitsui_detail']\n return self.get_detail(request, states)\n # Login if not\n else:\n # New Browser\n browser = helper.new_browser(debug=False)\n # Login\n helper.login(browser, request)\n # Store on States\n states['mitsui_detail'] = browser\n\n # Visit Url\n browser.visit(request['detail_link'])\n # Get Detail\n response = helper.getDetailPage(browser)\n # Prep for Next\n browser.back()\n browser.reload()\n\n return {\n 'data' : response,\n 'states' : states,\n 'detail_browser' : True\n }","repo_name":"kenta-crv/perfect","sub_path":"python/controllers/MitsuiScraping.py","file_name":"MitsuiScraping.py","file_ext":"py","file_size_in_byte":2984,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"1468895406","text":"from sympy.testing.pytest import raises, XFAIL\nfrom sympy.external import import_module\n\nfrom sympy import (\n Symbol, Mul, Add, Abs, sin, asin, cos, Pow, csc, sec,\n Limit, oo, Derivative, Integral, factorial, sqrt, root,\n conjugate, StrictLessThan, LessThan, StrictGreaterThan,\n GreaterThan, Sum, Product, E, log, tan, Function, binomial,\n exp, floor, ceiling, Unequality\n)\nfrom sympy.core.relational import Eq, Ne, Lt, Le, Gt, Ge\nfrom sympy.physics.quantum.state import Bra, Ket\nfrom sympy.abc import x, y, z, a, b, c, t, k, n\nantlr4 = import_module(\"antlr4\")\n\n# disable tests if antlr4-python*-runtime is not present\nif not antlr4:\n disabled = True\n\ntheta = Symbol('theta')\nf = Function('f')\n\n\n# shorthand definitions\ndef _Add(a, b):\n return Add(a, b, evaluate=False)\n\n\ndef _Mul(a, b):\n return Mul(a, b, evaluate=False)\n\n\ndef _Pow(a, b):\n return Pow(a, b, evaluate=False)\n\n\ndef _Sqrt(a):\n return sqrt(a, evaluate=False)\n\n\ndef _Conjugate(a):\n return conjugate(a, evaluate=False)\n\n\ndef _Abs(a):\n return Abs(a, evaluate=False)\n\n\ndef _factorial(a):\n return factorial(a, evaluate=False)\n\n\ndef _exp(a):\n return exp(a, evaluate=False)\n\n\ndef _log(a, b):\n return log(a, b, evaluate=False)\n\n\ndef _binomial(n, k):\n return binomial(n, k, evaluate=False)\n\n\ndef test_import():\n from sympy.parsing.latex._build_latex_antlr import (\n build_parser,\n check_antlr_version,\n dir_latex_antlr\n )\n # XXX: It would be better to come up with a test for these...\n del build_parser, check_antlr_version, dir_latex_antlr\n\n\n# These LaTeX strings should parse to the corresponding SymPy expression\nGOOD_PAIRS = [\n (r\"0\", 0),\n (r\"1\", 1),\n (r\"-3.14\", _Mul(-1, 3.14)),\n (r\"(-7.13)(1.5)\", _Mul(_Mul(-1, 7.13), 1.5)),\n (r\"x\", x),\n (r\"2x\", 2*x),\n (r\"x^2\", x**2),\n (r\"x^{3 + 1}\", x**_Add(3, 1)),\n (r\"-c\", -c),\n (r\"a \\cdot b\", a * b),\n (r\"a / b\", a / b),\n (r\"a \\div b\", a / b),\n (r\"a + b\", a + b),\n (r\"a + b - a\", _Add(a+b, -a)),\n (r\"a^2 + b^2 = c^2\", Eq(a**2 + b**2, c**2)),\n (r\"(x + y) z\", _Mul(_Add(x, y), z)),\n (r\"\\left(x + y\\right) z\", _Mul(_Add(x, y), z)),\n (r\"\\left( x + y\\right ) z\", _Mul(_Add(x, y), z)),\n (r\"\\left( x + y\\right ) z\", _Mul(_Add(x, y), z)),\n (r\"\\left[x + y\\right] z\", _Mul(_Add(x, y), z)),\n (r\"\\left\\{x + y\\right\\} z\", _Mul(_Add(x, y), z)),\n (r\"1+1\", _Add(1, 1)),\n (r\"0+1\", _Add(0, 1)),\n (r\"1*2\", _Mul(1, 2)),\n (r\"0*1\", _Mul(0, 1)),\n (r\"x = y\", Eq(x, y)),\n (r\"x \\neq y\", Ne(x, y)),\n (r\"x < y\", Lt(x, y)),\n (r\"x > y\", Gt(x, y)),\n (r\"x \\leq y\", Le(x, y)),\n (r\"x \\geq y\", Ge(x, y)),\n (r\"x \\le y\", Le(x, y)),\n (r\"x \\ge y\", Ge(x, y)),\n (r\"\\lfloor x \\rfloor\", floor(x)),\n (r\"\\lceil x \\rceil\", ceiling(x)),\n (r\"\\langle x |\", Bra('x')),\n (r\"| x \\rangle\", Ket('x')),\n (r\"\\sin \\theta\", sin(theta)),\n (r\"\\sin(\\theta)\", sin(theta)),\n (r\"\\sin^{-1} a\", asin(a)),\n (r\"\\sin a \\cos b\", _Mul(sin(a), cos(b))),\n (r\"\\sin \\cos \\theta\", sin(cos(theta))),\n (r\"\\sin(\\cos \\theta)\", sin(cos(theta))),\n (r\"\\frac{a}{b}\", a / b),\n (r\"\\frac{a + b}{c}\", _Mul(a + b, _Pow(c, -1))),\n (r\"\\frac{7}{3}\", _Mul(7, _Pow(3, -1))),\n (r\"(\\csc x)(\\sec y)\", csc(x)*sec(y)),\n (r\"\\lim_{x \\to 3} a\", Limit(a, x, 3)),\n (r\"\\lim_{x \\rightarrow 3} a\", Limit(a, x, 3)),\n (r\"\\lim_{x \\Rightarrow 3} a\", Limit(a, x, 3)),\n (r\"\\lim_{x \\longrightarrow 3} a\", Limit(a, x, 3)),\n (r\"\\lim_{x \\Longrightarrow 3} a\", Limit(a, x, 3)),\n (r\"\\lim_{x \\to 3^{+}} a\", Limit(a, x, 3, dir='+')),\n (r\"\\lim_{x \\to 3^{-}} a\", Limit(a, x, 3, dir='-')),\n (r\"\\infty\", oo),\n (r\"\\lim_{x \\to \\infty} \\frac{1}{x}\", Limit(_Pow(x, -1), x, oo)),\n (r\"\\frac{d}{dx} x\", Derivative(x, x)),\n (r\"\\frac{d}{dt} x\", Derivative(x, t)),\n (r\"f(x)\", f(x)),\n (r\"f(x, y)\", f(x, y)),\n (r\"f(x, y, z)\", f(x, y, z)),\n (r\"\\frac{d f(x)}{dx}\", Derivative(f(x), x)),\n (r\"\\frac{d\\theta(x)}{dx}\", Derivative(Function('theta')(x), x)),\n (r\"x \\neq y\", Unequality(x, y)),\n (r\"|x|\", _Abs(x)),\n (r\"||x||\", _Abs(Abs(x))),\n (r\"|x||y|\", _Abs(x)*_Abs(y)),\n (r\"||x||y||\", _Abs(_Abs(x)*_Abs(y))),\n (r\"\\pi^{|xy|}\", Symbol('pi')**_Abs(x*y)),\n (r\"\\int x dx\", Integral(x, x)),\n (r\"\\int x d\\theta\", Integral(x, theta)),\n (r\"\\int (x^2 - y)dx\", Integral(x**2 - y, x)),\n (r\"\\int x + a dx\", Integral(_Add(x, a), x)),\n (r\"\\int da\", Integral(1, a)),\n (r\"\\int_0^7 dx\", Integral(1, (x, 0, 7))),\n (r\"\\int_a^b x dx\", Integral(x, (x, a, b))),\n (r\"\\int^b_a x dx\", Integral(x, (x, a, b))),\n (r\"\\int_{a}^b x dx\", Integral(x, (x, a, b))),\n (r\"\\int^{b}_a x dx\", Integral(x, (x, a, b))),\n (r\"\\int_{a}^{b} x dx\", Integral(x, (x, a, b))),\n (r\"\\int^{b}_{a} x dx\", Integral(x, (x, a, b))),\n (r\"\\int_{f(a)}^{f(b)} f(z) dz\", Integral(f(z), (z, f(a), f(b)))),\n (r\"\\int (x+a)\", Integral(_Add(x, a), x)),\n (r\"\\int a + b + c dx\", Integral(_Add(_Add(a, b), c), x)),\n (r\"\\int \\frac{dz}{z}\", Integral(Pow(z, -1), z)),\n (r\"\\int \\frac{3 dz}{z}\", Integral(3*Pow(z, -1), z)),\n (r\"\\int \\frac{1}{x} dx\", Integral(Pow(x, -1), x)),\n (r\"\\int \\frac{1}{a} + \\frac{1}{b} dx\",\n Integral(_Add(_Pow(a, -1), Pow(b, -1)), x)),\n (r\"\\int \\frac{3 \\cdot d\\theta}{\\theta}\",\n Integral(3*_Pow(theta, -1), theta)),\n (r\"\\int \\frac{1}{x} + 1 dx\", Integral(_Add(_Pow(x, -1), 1), x)),\n (r\"x_0\", Symbol('x_{0}')),\n (r\"x_{1}\", Symbol('x_{1}')),\n (r\"x_a\", Symbol('x_{a}')),\n (r\"x_{b}\", Symbol('x_{b}')),\n (r\"h_\\theta\", Symbol('h_{theta}')),\n (r\"h_{\\theta}\", Symbol('h_{theta}')),\n (r\"h_{\\theta}(x_0, x_1)\",\n Function('h_{theta}')(Symbol('x_{0}'), Symbol('x_{1}'))),\n (r\"x!\", _factorial(x)),\n (r\"100!\", _factorial(100)),\n (r\"\\theta!\", _factorial(theta)),\n (r\"(x + 1)!\", _factorial(_Add(x, 1))),\n (r\"(x!)!\", _factorial(_factorial(x))),\n (r\"x!!!\", _factorial(_factorial(_factorial(x)))),\n (r\"5!7!\", _Mul(_factorial(5), _factorial(7))),\n (r\"\\sqrt{x}\", sqrt(x)),\n (r\"\\sqrt{x + b}\", sqrt(_Add(x, b))),\n (r\"\\sqrt[3]{\\sin x}\", root(sin(x), 3)),\n (r\"\\sqrt[y]{\\sin x}\", root(sin(x), y)),\n (r\"\\sqrt[\\theta]{\\sin x}\", root(sin(x), theta)),\n (r\"\\sqrt{\\frac{12}{6}}\", _Sqrt(_Mul(12, _Pow(6, -1)))),\n (r\"\\overline{z}\", _Conjugate(z)),\n (r\"\\overline{\\overline{z}}\", _Conjugate(_Conjugate(z))),\n (r\"\\overline{x + y}\", _Conjugate(_Add(x, y))),\n (r\"\\overline{x} + \\overline{y}\", _Conjugate(x) + _Conjugate(y)),\n (r\"x < y\", StrictLessThan(x, y)),\n (r\"x \\leq y\", LessThan(x, y)),\n (r\"x > y\", StrictGreaterThan(x, y)),\n (r\"x \\geq y\", GreaterThan(x, y)),\n (r\"\\mathit{x}\", Symbol('x')),\n (r\"\\mathit{test}\", Symbol('test')),\n (r\"\\mathit{TEST}\", Symbol('TEST')),\n (r\"\\mathit{HELLO world}\", Symbol('HELLO world')),\n (r\"\\sum_{k = 1}^{3} c\", Sum(c, (k, 1, 3))),\n (r\"\\sum_{k = 1}^3 c\", Sum(c, (k, 1, 3))),\n (r\"\\sum^{3}_{k = 1} c\", Sum(c, (k, 1, 3))),\n (r\"\\sum^3_{k = 1} c\", Sum(c, (k, 1, 3))),\n (r\"\\sum_{k = 1}^{10} k^2\", Sum(k**2, (k, 1, 10))),\n (r\"\\sum_{n = 0}^{\\infty} \\frac{1}{n!}\",\n Sum(_Pow(_factorial(n), -1), (n, 0, oo))),\n (r\"\\prod_{a = b}^{c} x\", Product(x, (a, b, c))),\n (r\"\\prod_{a = b}^c x\", Product(x, (a, b, c))),\n (r\"\\prod^{c}_{a = b} x\", Product(x, (a, b, c))),\n (r\"\\prod^c_{a = b} x\", Product(x, (a, b, c))),\n (r\"\\exp x\", _exp(x)),\n (r\"\\exp(x)\", _exp(x)),\n (r\"\\ln x\", _log(x, E)),\n (r\"\\ln xy\", _log(x*y, E)),\n (r\"\\log x\", _log(x, 10)),\n (r\"\\log xy\", _log(x*y, 10)),\n (r\"\\log_{2} x\", _log(x, 2)),\n (r\"\\log_{a} x\", _log(x, a)),\n (r\"\\log_{11} x\", _log(x, 11)),\n (r\"\\log_{a^2} x\", _log(x, _Pow(a, 2))),\n (r\"[x]\", x),\n (r\"[a + b]\", _Add(a, b)),\n (r\"\\frac{d}{dx} [ \\tan x ]\", Derivative(tan(x), x)),\n (r\"\\binom{n}{k}\", _binomial(n, k)),\n (r\"\\tbinom{n}{k}\", _binomial(n, k)),\n (r\"\\dbinom{n}{k}\", _binomial(n, k)),\n (r\"\\binom{n}{0}\", _binomial(n, 0)),\n (r\"a \\, b\", _Mul(a, b)),\n (r\"a \\thinspace b\", _Mul(a, b)),\n (r\"a \\: b\", _Mul(a, b)),\n (r\"a \\medspace b\", _Mul(a, b)),\n (r\"a \\; b\", _Mul(a, b)),\n (r\"a \\thickspace b\", _Mul(a, b)),\n (r\"a \\quad b\", _Mul(a, b)),\n (r\"a \\qquad b\", _Mul(a, b)),\n (r\"a \\! b\", _Mul(a, b)),\n (r\"a \\negthinspace b\", _Mul(a, b)),\n (r\"a \\negmedspace b\", _Mul(a, b)),\n (r\"a \\negthickspace b\", _Mul(a, b)),\n (r\"\\int x \\, dx\", Integral(x, x)),\n (r\"\\log_2 x\", _log(x, 2)),\n (r\"\\log_a x\", _log(x, a)),\n]\n\ndef test_parseable():\n from sympy.parsing.latex import parse_latex\n for latex_str, sympy_expr in GOOD_PAIRS:\n assert parse_latex(latex_str) == sympy_expr\n\n# These bad LaTeX strings should raise a LaTeXParsingError when parsed\nBAD_STRINGS = [\n r\"(\",\n r\")\",\n r\"\\frac{d}{dx}\",\n r\"(\\frac{d}{dx})\",\n r\"\\sqrt{}\",\n r\"\\sqrt\",\n r\"\\overline{}\",\n r\"\\overline\",\n r\"{\",\n r\"}\",\n r\"\\mathit{x + y}\",\n r\"\\mathit{21}\",\n r\"\\frac{2}{}\",\n r\"\\frac{}{2}\",\n r\"\\int\",\n r\"!\",\n r\"!0\",\n r\"_\",\n r\"^\",\n r\"|\",\n r\"||x|\",\n r\"()\",\n r\"((((((((((((((((()))))))))))))))))\",\n r\"-\",\n r\"\\frac{d}{dx} + \\frac{d}{dt}\",\n r\"f(x,,y)\",\n r\"f(x,y,\",\n r\"\\sin^x\",\n r\"\\cos^2\",\n r\"@\",\n r\"#\",\n r\"$\",\n r\"%\",\n r\"&\",\n r\"*\",\n r\"\" \"\\\\\",\n r\"~\",\n r\"\\frac{(2 + x}{1 - x)}\",\n]\n\ndef test_not_parseable():\n from sympy.parsing.latex import parse_latex, LaTeXParsingError\n for latex_str in BAD_STRINGS:\n with raises(LaTeXParsingError):\n parse_latex(latex_str)\n\n# At time of migration from latex2sympy, should fail but doesn't\nFAILING_BAD_STRINGS = [\n r\"\\cos 1 \\cos\",\n r\"f(,\",\n r\"f()\",\n r\"a \\div \\div b\",\n r\"a \\cdot \\cdot b\",\n r\"a // b\",\n r\"a +\",\n r\"1.1.1\",\n r\"1 +\",\n r\"a / b /\",\n]\n\n@XFAIL\ndef test_failing_not_parseable():\n from sympy.parsing.latex import parse_latex, LaTeXParsingError\n for latex_str in FAILING_BAD_STRINGS:\n with raises(LaTeXParsingError):\n parse_latex(latex_str)\n","repo_name":"thebaselab/codeapp","sub_path":"LanguageResources/Library/lib/python3.9/site-packages/sympy/parsing/tests/test_latex.py","file_name":"test_latex.py","file_ext":"py","file_size_in_byte":9914,"program_lang":"python","lang":"en","doc_type":"code","stars":2422,"dataset":"github-code","pt":"80"}
+{"seq_id":"14746283490","text":"import sys\r\nimport os\r\nimport random\r\n\r\nif os.path.dirname(os.path.abspath(__file__)) in sys.path:\r\n sys.path.remove(os.path.dirname(os.path.abspath(__file__)))\r\n\r\ndef main(num_small, num_large):\r\n for i in range(num_small):\r\n capacity_w = random.randrange(100, 1000, 17)\r\n num_classes_m = random.randint(1,6)\r\n n = random.randint(10,40)\r\n weights = [None] * n\r\n values = [None] * n\r\n classes = [None] * n\r\n for j in range(n):\r\n weights[j] = random.randrange(1, capacity_w - 15, 3)\r\n values[j] = random.randrange(1, capacity_w - 15, 3)\r\n if num_classes_m == 1:\r\n classes[j] = 1\r\n else:\r\n classes[j] = random.randint(1, num_classes_m)\r\n fileName = \"INPUT_\" + str(i+1) + \".txt\"\r\n f = open(fileName, 'w')\r\n f.write(str(capacity_w) + '\\n')\r\n f.write(str(num_classes_m) + '\\n')\r\n f.write(str(weights).replace('[','').replace(']','') + '\\n')\r\n f.write(str(values).replace('[','').replace(']','') + '\\n')\r\n f.write(str(classes).replace('[','').replace(']','') + '\\n')\r\n \r\n for i in range(num_large):\r\n capacity_w = random.randrange(1000, 10000, 29)\r\n num_classes_m = random.randint(5, 10)\r\n n = random.randint(50, 1000)\r\n weights = [None] * n\r\n values = [None] * n\r\n classes = [None] * n\r\n for j in range(n):\r\n weights[j] = random.randrange(10, capacity_w - 53, 23)\r\n values[j] = random.randrange(10, capacity_w - 53, 23)\r\n if num_classes_m == 1:\r\n classes[j] = 1\r\n else:\r\n classes[j] = random.randint(1, num_classes_m)\r\n fileName = \"INPUT_\" + str(num_small + i + 1) + \".txt\"\r\n f = open(fileName, 'w')\r\n f.write(str(capacity_w) + '\\n')\r\n f.write(str(num_classes_m) + '\\n')\r\n f.write(str(weights).replace('[','').replace(']','') + '\\n')\r\n f.write(str(values).replace('[','').replace(']','') + '\\n')\r\n f.write(str(classes).replace('[','').replace(']','') + '\\n')\r\n\r\n\r\nif __name__ == \"__main__\":\r\n if len(sys.argv) != 3:\r\n print(\"Usage: create_input.py \")\r\n sys.exit(0)\r\n main(max(5,int(sys.argv[1])), max(5,int(sys.argv[2])))","repo_name":"khangkontum/knapsack","sub_path":"input/create_input.py","file_name":"create_input.py","file_ext":"py","file_size_in_byte":2335,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"9230629571","text":"#!/usr/bin/env python3\n\nimport os\nimport numpy as np\nimport jax.numpy as jnp\nfrom multiprocessing import Pool, Manager, Condition, Value, Process,TimeoutError\nfrom multiprocessing.dummy import Pool as ThreadPool\nfrom functools import partial\nimport sys\nimport io\nimport time\nimport re\nimport traceback\nimport subprocess\nfrom multiprocessing.managers import BaseManager\nfrom multiprocessing import Queue as mpQueue\nfrom queue import Queue\nfrom .isa import *\nfrom .utils import *\n\nfrom rich.progress import (\n Progress,\n TextColumn,\n BarColumn,\n TimeElapsedColumn,\n TimeRemainingColumn\n)\n\nfrom .common import import_from_directory\nimport_from_directory('isa', globals())\nimport_from_directory('utils', globals())\n\n\ndef sync_variable():\n # to synchronize the runner processes with the main process\n globals()[\"manager\"] = Manager()\n globals()[\"result_dict\"] = manager.dict()\n globals()[\"result_condition\"] = Condition()\n globals()[\"result_detail_dict\"] = manager.dict()\n globals()[\"tests\"] = Value('L', 0)\n globals()[\"fails\"] = Value('L', 0)\n\n# run failed cases last time\ndef get_retry_cases():\n print(\"retry last failed cases...\")\n if os.access('log/runner_report.log', os.R_OK):\n with open('log/runner_report.log') as fp:\n cases = []\n lines = fp.read().splitlines()\n for line in lines:\n if line.startswith('PASS '):\n continue\n line = line.replace('FAIL ', '')\n line = line.split( ' ', 1 )[0]\n cases.append( line )\n \n if len(cases) == 0:\n print('all pass, retry abort.')\n sys.exit(0)\n\n return cases \n else:\n print('could not retry without last run log.')\n sys.exit(-1)\n\n# get cases from arguments\ndef get_arg_cases(args_cases):\n s = lambda l: l.strip()\n f = lambda l: l != '' and not l.startswith('#')\n if os.access(args_cases, os.R_OK):\n with open(args_cases) as fp:\n cases = list(filter(f, map(s, fp.read().splitlines())))\n elif args_cases != '':\n cases = list(filter(f, map(s, args_cases.split(','))))\n else:\n cases = [] \n \n return cases\n\ndef get_generator_case():\n with open(\"log/generator_case.log\") as fp:\n s = lambda l: l.strip()\n f = lambda l: l != '' and not l.startswith('#')\n generator_info_list = list(filter(f, map(s, fp.read().splitlines())))\n generator_case_list = []\n generator_num_list = []\n for no in range(len(generator_info_list)):\n [case_name, case_num] = re.split(r'\\s*,\\s*', generator_info_list[no])\n generator_case_list.append(case_name)\n generator_num_list.append(int(case_num)) \n\n return [generator_case_list, generator_num_list] \n\ndef select_run_case( generator_case_list, generator_num_list, cases ):\n total_num = 0\n run_case_list = []\n\n if len(cases) > 0:\n for no in range(len(generator_case_list)):\n case_name = generator_case_list[no]\n for case in cases:\n if not case in case_name:\n continue\n\n run_case_list.append(case_name)\n total_num += generator_num_list[no]\n break\n else:\n run_case_list = generator_case_list\n total_num = sum(generator_num_list)\n\n return [run_case_list, total_num]\n\ndef process_bar_setup( total_num ):\n # progress bar configurations\n progress = Progress(\n TextColumn(\"[bold blue]{task.fields[name]}\"),\n BarColumn(bar_width=None),\n \"[progress.percentage]{task.percentage:>3.1f}%\",\n \"case_sum:\",\n TextColumn(\"[bold red]{task.total}\"),\n \"elapsed:\",\n TimeElapsedColumn(),\n \"remaining:\",\n TimeRemainingColumn()\n )\n\n progress.start()\n task_id = progress.add_task(\"runner\", name = \"runner\", total=total_num, start=True) \n\n return [progress, task_id]\n\ndef runner_error(case):\n with result_condition:\n result_dict[case] = \"python run failed.\"\n result_detail_dict[case] = ''\n with open(f'build/{case}/runner.log', 'w') as f:\n f.write( result_dict[case] + '\\n' + result_detail_dict[case] + '\\n' ) \n\ndef runner_callback(progress, task_id, completed, total):\n progress.update( task_id, completed = completed )\n\ndef abortable_worker(func, *args, **kwargs):\n timeout = kwargs.get('timeout', None)\n p = ThreadPool(1)\n res = p.apply_async(func, args=args)\n try:\n out = res.get(timeout) # Wait timeout seconds for func to complete.\n return out\n except TimeoutError:\n case = args[0]\n result_dict[case] = \"TimeoutError\"\n return io.StringIO()\n\ndef gen_runner_report( ps, args, generator_case_list, generator_num_list ):\n\n failed_num = 0\n\n # save the runner result into the log file\n if args.append:\n write_mode = 'a+'\n else:\n write_mode = 'w'\n report_path = f'log/runner_report{args.worker_job_name}.log'\n report = open(report_path, write_mode)\n for case, p in ps:\n ok = True\n\n p_str = p.get().getvalue() \n # find case result in result_dict\n if result_dict[case] != \"ok\":\n reason = result_dict[case]\n ok = False\n if p_str != '': \n with open(f'build/{case}/runner.log', 'w') as f:\n f.write(p_str) \n\n if not ok:\n failed_num += 1\n if args.failing_info: \n time.sleep(0.5)\n print(f'FAIL {case} - {reason}')\n \n report.write(f'FAIL {case} - {reason}\\n')\n else:\n report.write(f'PASS {case}\\n')\n\n report.close()\n\n return failed_num \n\n# the main entrance of the runner process, including run in simulators and check the data\ndef run_test(case, args):\n try:\n stdout = sys.stdout\n stderr = sys.stderr\n output = io.StringIO()\n sys.stdout = output\n sys.stderr = output\n\n check_golden = f'build/{case}/check_golden.npy' \n\n # get the cases list in the case, including test_num, name, check string, golden\n case_list = np.load( check_golden, allow_pickle=True )\n\n case_info_list = []\n for test_case in case_list:\n\n test_case_dict = dict()\n\n if args.riscv_dv != True:\n for key, value in test_case[\"params\"].items():\n if key.endswith('_data') and key.replace('data', 'dtype') in test_case[\"params\"].keys():\n test_case_dict[key.replace('_data','')] = copy_to_dtype( value, eval(f\"jnp.{test_case['params'][key.replace('data', 'dtype')]}\") )\n elif key.endswith('_dtype') and key.replace('dtype', 'data') in test_case[\"params\"].keys():\n continue\n else:\n if value == 'bfloat16':\n test_case_dict[ key ] = jnp.bfloat16\n else:\n test_case_dict[ key ] = value\n\n param_str = ','.join( f'{key}=test_case_dict[\"{key}\"]' for key in test_case_dict.keys() )\n test_case_dict['inst'] = test_case[\"inst\"]\n\n if args.riscv_dv != True:\n inst = eval( f'{test_case_dict[\"inst\"]}({param_str})' )\n test_case_dict['golden'] = inst.golden()\n\n test_case_dict['no'] = test_case[\"no\"]\n test_case_dict['name'] = test_case[\"name\"]\n test_case_dict['rule'] = test_case[\"rule\"]\n test_case_dict['rule_params'] = test_case[\"rule_params\"]\n\n case_info_list.append( test_case_dict )\n\n param_str = '( args=args, case=case, case_info_list=case_info_list )'\n [ test_result, test_detail, failed_num ] = eval( case_info_list[0]['rule'] + param_str, globals(), locals() ) \n\n\n with result_condition: \n result_dict[case] = test_result\n result_detail_dict[case] = test_detail\n fails.value += failed_num\n tests.value += len(case_list)\n with open(f'build/{case}/runner.log', 'w') as f:\n f.write( result_dict[case] + '\\n' + result_detail_dict[case] + '\\n' ) \n\n sys.stdout = stdout\n sys.stderr = stderr\n\n return output \n \n except:\n if output in locals().keys():\n sys.stdout = stdout\n sys.stderr = stderr\n else:\n output = io.StringIO()\n\n result_dict[case] = 'python failed'\n\n error_output = io.StringIO()\n traceback.print_tb(sys.exc_info()[2], file=error_output)\n error_str = error_output.getvalue()\n error_str += \"\\nUnexpected error: \" + str(sys.exc_info()[0]) + \" \" + str(sys.exc_info()[1])\n result_detail_dict[case] = error_str\n with open(f'build/{case}/runner.log', 'w') as f:\n f.write( result_dict[case] + '\\n' + result_detail_dict[case] + '\\n' )\n\n return output\n\ndef bsub_run(cmd,port,job_name,queue_hosts):\n os.system( f'bsub -Ip -J {job_name} -m \"{queue_hosts}\" -q normal {cmd} --worker true --worker_port {port} -wjn {job_name}' )\n\ndef hosts_bqueues(queue):\n while True:\n try: \n result = subprocess.check_output( 'bqueues -l', shell=True, stderr=subprocess.STDOUT, encoding='utf-8' )\n except subprocess.CalledProcessError:\n continue\n\n if f\"QUEUE: {queue}\" in result:\n break\n\n result_list = result.split('\\n')\n no = 0\n queue_flag = False\n while True:\n if result_list[no].startswith( f\"QUEUE: {queue}\" ):\n queue_flag = True\n if queue_flag and result_list[no].startswith( \"HOSTS\" ): \n hosts_str = result_list[no]\n hosts_str = hosts_str.replace('HOSTS: ', '')\n break\n no += 1\n if no == len(result_list):\n hosts_str = ''\n break\n return hosts_str\n\ndef host_bjobs(job_name):\n while True:\n try:\n result = subprocess.check_output( f'bjobs -a -w | grep {job_name}', shell=True, stderr=subprocess.STDOUT, encoding='utf-8' )\n except subprocess.CalledProcessError as e:\n result = e.output # Output generated before error \n code = e.returncode # Return code \n continue\n\n result_list = result.split(' ')\n if result_list[4] == 'RUN':\n host = result_list[13]\n break\n \n return host\n\ndef merge_runner_report():\n files = os.listdir('log')\n with open('log/runner_report.log', 'w') as report:\n for file in files:\n if file.startswith( 'runner_report' ):\n with open(f'log/{file}', 'r') as f_read:\n report.write(f_read.read())\n os.remove( f'log/{file}' )\n\ndef worker_runner_callback( tests, tests_done_q ):\n # transfer completed tests number to worker process\n tests_done_q.put( tests )\n\n# create workers in different hosts\ndef create_workers( cmd, batch, port ):\n queue_hosts = hosts_bqueues('normal').split(' ')\n for i in range(batch):\n job_name = str(port) + '_' + str(i)\n p = Process( target = bsub_run, args=(cmd,port,job_name, ' '.join(queue_hosts)) )\n p.daemon = True # when its parent process terminates, this process terminates, too.\n p.start()\n # to know which host this job use\n host = host_bjobs( job_name ) \n # remove the host to make sure next job will use another host \n queue_hosts.remove(host)\n\ndef main(args, tests_done_q=None):\n\n try:\n if not args.worker:\n if args.retry:\n cases = get_retry_cases()\n else:\n cases = get_arg_cases(args.cases)\n \n if not args.append: # runner process of worker needn't print this information.\n print(\"looking for the cases...\")\n\n [generator_case_list, generator_num_list] = get_generator_case()\n\n [run_case_list, total_num] = select_run_case( generator_case_list, generator_num_list, cases )\n\n # server process, if args.batch == 0, don't use lsf cluster\n if args.batch == 0:\n\n # define some global sync variables to synchronize the runner processes with the main process\n sync_variable()\n\n if not args.append: # runner process of worker needn't process bar.\n [progress, task_id] = process_bar_setup( total_num )\n \n ps = []\n with Pool(processes=args.nproc, maxtasksperchild=1) as pool:\n # FIXME It's better to hidden --worker/append/worker_port/worker_job_name from users, but now we haven't found methods to do that.\n if args.append:\n # runner process of worker needn't process bar.\n for case in run_case_list:\n abortable_func = partial(abortable_worker, run_test, timeout=args.timeout)\n res = pool.apply_async(abortable_func, [ case, args ], \n callback=lambda _: worker_runner_callback( tests.value, tests_done_q ), \n error_callback=lambda _: runner_error(case) )\n ps.append((case, res)) \n\n else:\n global tests\n for case in run_case_list:\n abortable_func = partial(abortable_worker, run_test, timeout=args.timeout)\n res = pool.apply_async(abortable_func, [ case, args ], \n callback=lambda _: runner_callback( progress, task_id, tests.value, total_num ), \n error_callback=lambda _: runner_error(case) )\n ps.append((case, res)) \n\n \n failed_num = gen_runner_report( ps, args, generator_case_list, generator_num_list )\n\n if not args.append: # runner process of worker needn't process bar.\n progress.stop()\n\n # spike may make that user can't input in command line, use stty sane to fix that.\n os.system(\"stty sane\")\n\n if args.append:\n global fails\n # transfer test results to worker process\n tests_done_q.put( [ len(ps), failed_num, tests.value, fails.value ] )\n return\n\n else:\n if failed_num == 0:\n print(f'{len(ps)} files running finish, all pass.( {tests.value} tests )')\n sys.exit(0)\n else:\n if args.failing_info:\n print(f'{len(ps)} files running finish, {failed_num} failed.( {tests.value} tests, {fails.value} failed.)') \n else:\n if args.timeout == None:\n print(f'{len(ps)} files running finish, {failed_num} failed.( {tests.value} tests, {fails.value} failed, please look at the log/runner_report.log for the failing information. )') \n else:\n print(f'{len(ps)} files running finish, {failed_num} failed.( please look at the log/runner_report.log for the failing information. )') \n \n sys.exit(-1) \n else:\n # dispatcher\n if total_num != 0:\n if os.path.exists('log/runner_report.log'): \n os.remove( 'log/runner_report.log' )\n\n [progress, task_id] = process_bar_setup( total_num )\n\n # lsf server\n class QueueManager(BaseManager):\n pass \n case_q = Queue()\n done_q = Queue() \n\n QueueManager.register( 'get_case_queue', callable=lambda:case_q )\n QueueManager.register( 'get_done_queue', callable=lambda:done_q )\n\n port = 5000\n while True:\n try:\n m = QueueManager( address=('',port), authkey=b'123456' )\n m.start()\n break\n except OSError:\n # sometimes port has been used, that will raise OSError. So just pick another port.\n port += 1\n continue\n\n # a queue to dispatch cases and a queue to know workers done\n case_q = m.get_case_queue()\n done_q = m.get_done_queue() \n\n print(f\"{total_num} cases need to dispatch...\")\n\n for i in range(len(run_case_list)):\n case_q.put( run_case_list[i] )\n \n # create workers process in different host\n cmd = ' '.join(sys.argv) \n p = Process( target=create_workers, args=(cmd, args.batch, port) )\n p.start()\n\n # get result info from workers\n files_dict = dict()\n failed_files_dict = dict()\n tests_dict = dict()\n fails_dict = dict()\n done_workers = 0\n while True:\n\n res_str = done_q.get()\n if res_str == 'done':\n done_workers += 1\n if done_workers == args.batch:\n progress.stop()\n break\n else:\n continue\n\n res_strs = res_str.split('--')\n\n if len( res_strs ) == 2:\n # use tests_done info to update progress bar\n tests_dict[ res_strs[1] ] = int( res_strs[0].replace('tests_done', '') )\n tests_sum = sum( tests_dict.values() )\n progress.update( task_id, completed = tests_sum )\n\n elif len( res_strs ) == 5:\n # update more detail info when a runner process finished\n files_dict[ res_strs[4] ] = int( res_strs[0].replace('files', '') )\n failed_files_dict[ res_strs[4] ] = int( res_strs[1].replace('failed_files', '') )\n tests_dict[ res_strs[4] ] = int( res_strs[2].replace('tests', '') )\n fails_dict[ res_strs[4] ] = int( res_strs[3].replace('fails', '') )\n if sum(files_dict.values()) == len(run_case_list):\n progress.stop()\n break\n \n\n\n if p.is_alive():\n # terminate worker create process\n p.terminate()\n\n\n files_sum = sum( files_dict.values() )\n failed_files_sum = sum( failed_files_dict.values() )\n tests_sum = sum( tests_dict.values() )\n fails_sum = sum( fails_dict.values() )\n\n # merge all runner reports by workers to log/runner_report.log \n merge_runner_report()\n\n m.shutdown()\n\n os.system(\"sleep 1\")\n os.system(\"stty sane\")\n \n print('', end='\\r') # the stop function of progress bar make there are some null characters in command line, so take the cursor back to start.\n if fails_sum == 0:\n print(f'{files_sum} files running finish, all pass.( {tests_sum} tests )')\n sys.exit(0)\n else:\n if args.failing_info:\n print(f'{files_sum} files running finish, {failed_files_sum} failed.( {tests_sum} tests, {fails_sum} failed.)') \n else:\n print(f'{files_sum} files running finish, {failed_files_sum} failed.( {tests_sum} tests, {fails_sum} failed, please look at the log/runner_report.log for the failing information. )') \n \n sys.exit(-1) \n\n else:\n #worker\n class QueueManager(BaseManager):\n pass\n QueueManager.register('get_case_queue')\n QueueManager.register('get_done_queue') \n m = QueueManager( address=('bjsw-expsrv01', args.worker_port), authkey=b'123456' )\n try:\n m.connect()\n except ConnectionRefusedError:\n return\n case_q = m.get_case_queue()\n done_q = m.get_done_queue()\n\n my_name = os.popen(\"hostname\").read()\n nproc = subprocess.check_output( 'nproc', encoding='utf-8' )\n cmd = ' '.join(sys.argv)\n cases_str = ''\n cases_num = 0\n\n # update args values in runner process\n orig_args = args\n orig_args.retry = False\n orig_args.nproc = int( nproc )\n orig_args.batch = 0\n orig_args.worker = False\n orig_args.append = True \n\n # queue and variables to get and keep runner info\n tests_done_q = mpQueue()\n tests_done_last = 0\n files_last = 0\n failed_files_last = 0\n tests_last = 0\n fails_last = 0\n\n while True:\n if case_q.empty():\n break\n\n case_str = case_q.get()\n\n if cases_num == 0:\n cases_str += case_str\n else:\n cases_str += ',' + case_str\n\n cases_num += 1\n\n if cases_num == int(nproc):\n orig_args.cases = cases_str\n # call main function as runner process\n p = Process( target=main, args=(orig_args, tests_done_q) )\n p.start()\n \n while True:\n q_content = tests_done_q.get()\n if isinstance( q_content, list ):\n break\n tests_done = tests_done_last + q_content\n done_q.put( f'tests_done{tests_done}--{my_name}' )\n\n [files, failed_files, tests, fails] = q_content\n files_last += files\n failed_files_last += failed_files\n tests_last += tests\n tests_done_last += tests\n fails_last += fails \n done_q.put( f'files{files_last}--failed_files{failed_files_last}--tests{tests_last}--fails{fails_last}--{my_name}' )\n\n cases_str = ''\n cases_num = 0\n\n if cases_num != 0:\n orig_args.cases = cases_str\n p = Process( target=main, args=(orig_args, tests_done_q) )\n p.start()\n \n while True:\n q_content = tests_done_q.get()\n if isinstance( q_content, list ):\n break\n tests_done = tests_done_last + q_content\n done_q.put( f'tests_done{tests_done}--{my_name}' )\n\n [files, failed_files, tests, fails] = q_content\n files_last += files\n failed_files_last += failed_files\n tests_last += tests\n fails_last += fails \n done_q.put( f'files{files_last}--failed_files{failed_files_last}--tests{tests_last}--fails{fails_last}--{my_name}' )\n\n done_q.put(\"done\")\n \n \n except KeyboardInterrupt:\n \n if 'pool' in locals():\n pool.close()\n pool.join()\n \n if 'progress' in locals():\n progress.stop()\n \n print(\"Catch KeyboardInterrupt!\")\n os.system(\"stty sane\")\n sys.exit(-1) \n\n\n\nif __name__ == \"__main__\":\n main()\n","repo_name":"riscv-stc/riscv-pvp","sub_path":"rvpvp/runner.py","file_name":"runner.py","file_ext":"py","file_size_in_byte":24554,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"37928278556","text":"MAX = 100000000\r\ndef solution(arr):\r\n n = len(arr)\r\n maxdp = [[0 for j in range(n)] for i in range(n)]\r\n mindp = [[0 for j in range(n)] for i in range(n)]\r\n for j in range(0, n, 2):\r\n for i in range(0, n, 2):\r\n if i+j= 100:\n messages.success(request, f'Your request for the payment of ${pay} was successful!\\\n Please update your bank account details in your profile.')\n else:\n messages.warning(request, f'Your request for the payment of ${pay} was unsuccessful.\\\n Your earning is less than the payout threshold of $100.')\n items = Item.objects.filter(user=user)\n context = {\n 'items':items\n }\n return render(request, 'users/admin.html', context)\n else:\n orders = Order.objects.filter(user=user).order_by('-id')\n form = BecomeSeller()\n context = {\n 'orders': orders,\n 'form':form\n }\n return render(request, 'users/dashboard.html', context)\n\n@login_required\ndef become_a_seller(request):\n if request.method == 'POST':\n form = BecomeSeller(request.POST)\n if form.is_valid():\n business_name = form.cleaned_data.get('business_name')\n experience = form.cleaned_data.get('experience')\n\n request.user.profile.business_name = business_name\n request.user.profile.experience = experience\n request.user.profile.save()\n request.user.seller = True\n request.user.customer = False\n request.user.save()\n messages.success(request, 'You have successflu signed up a seller.')\n return redirect('/dashboard')\n else:\n form = BecomeSeller()\n return render(request, 'form.html', {'form':form})\n\ndef earnings(request):\n user = request.user\n if user.seller:\n items = Item.objects.filter(user=user)\n total_earning = 0\n earning = 0\n for item in items:\n if item.discount_price:\n earning = item.downloads * item.discount_price\n total_earning += earning\n else:\n earning = item.downloads * item.price\n total_earning += earning\n context = {\n 'items':items,\n 'total_earning':total_earning\n }\n return render(request, 'users/earnings.html', context)\n else:\n return redirect('/dashboard')","repo_name":"yemiemy/imgrepo","sub_path":"users/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":3593,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"9373382488","text":"import re\nimport random\nfrom playwright.sync_api import sync_playwright, TimeoutError as PlaywrightTimeoutError\n\n# Haga falso si desea ver la automatización en vivo.\nhead = True\n\n\n\ndef agenteUsuario():\n \"\"\"\n agenteUsuario Funcion para generar aleatoriamente un navegador en la nueva consulta a realizar\n\n Returns:\n string: User Agent\n \"\"\"\n with open('comparer/user-agents.txt') as f:\n # with open('user-agents.txt') as f:\n agente = f.read().split(\"\\n\")\n return random.choice(agente)\n\n\nclass TryExcept:\n \"\"\"\n Creamos un try general para cuando no existe un texto o atributo que estemos buscando con los XPATH\n \"\"\"\n def text(self, element):\n try:\n return element.inner_text().strip()\n except AttributeError:\n return \"-\"\n\n def attributes(self, element, attr):\n try:\n return element.get_attribute(attr)\n except AttributeError:\n return \" Valor No disponible\"\n\n\ndef scraping(prompt, head=True):\n \"\"\"\n scraping Función principal del código, se ingresa el producto y realiza las búsquedas y extracción de información\n \"\"\"\n # main Data\n data = []\n # Instanciamos la clase\n catchClause = TryExcept()\n\n ml_product1 = prompt.replace(\" \", \"-\")\n ml_product2 = prompt.replace(\" \", \"%20\")\n\n # Definir la URL del sitio web que se desea consultar\n url = f\"https://listado.mercadolibre.com.mx/{ml_product1}#D[A:{ml_product2}]\"\n\n # Inicializar Playwright y abrir un navegador\n with sync_playwright() as play:\n # browser = play.chromium.launch(headless=head, slow_mo=3*1000)\n browser = play.chromium.launch(headless=head)\n page = browser.new_page(user_agent=agenteUsuario())\n\n # Acceder a la página web\n page.goto(url)\n\n # Obtenemos todos los resultados de la pagina\n totalResults = \"//li[contains(@class,'ui-search-layout__item')]\"\n\n # Creamos los XPATH para cada elemento que vamos a obtener\n name = \"//h2[contains(@class,'ui-search-item__title')]\"\n id = \"//input[@name='itemId']\"\n price = \"//div[@class='ui-search-price ui-search-price--size-medium shops__price']//div[@class='ui-search-price__second-line shops__price-second-line']//span[@class='price-tag-amount']//span\"\n original_price = \"//s[@class='price-tag ui-search-price__part ui-search-price__original-value shops__price-part price-tag__disabled']//span[@class='price-tag-amount']//span\"\n flash_sale = \"//label[@class='ui-search-styled-label ui-search-item__highlight-label__text' and contains(text(), 'OFERTA')]\"\n rating = \"//span[@class='ui-search-reviews__ratings']//*[contains(@class, 'star-full')]\"\n rating_half = \"//span[@class='ui-search-reviews__ratings']//*[contains(@class, 'star-half')]\"\n rating_number = \"//span[@class='ui-search-reviews__amount']\"\n link = \"//div[@class='ui-search-result__image shops__picturesStyles']//a\"\n img = \"//div[@class='ui-search-result__image shops__picturesStyles']//img\"\n label = \"//label[@class='ui-search-styled-label ui-search-item__highlight-label__text']\"\n free_shipping = \"//p[@class='ui-search-item__shipping ui-search-item__shipping--free shops__item-shipping-free']\"\n is_full = \"//*[@href='#full']\"\n\n # Esperamos la carga total de la pagina, de lo contrario controlamos el error y mostramos un error\n try:\n page.wait_for_selector(totalResults, timeout=10*1000)\n except PlaywrightTimeoutError:\n print(f\"Error al cargar contenido. Vuelva a intentarlo en unos minutos.. URL: {url}\")\n\n # Comenzamos con la extraccion de datos\n for content in page.query_selector_all(totalResults):\n # Inicializamos las variables que requieren tratamiento especial\n real_price = \"\"\n real_original_price = \"\"\n real_rating = 0.0\n real_rating_number = 0\n real_flash_sale = False\n real_link = \"-\"\n real_img = \"-\"\n real_free_shipping = False\n real_is_full = False\n\n # Seccion de tratamiento especial de datos\n for single_element in content.query_selector_all(price):\n real_price += single_element.inner_text().strip()\n\n for single_element in content.query_selector_all(original_price):\n real_original_price += single_element.inner_text().strip()\n\n real_rating += len(content.query_selector_all(rating))\n\n if len(content.query_selector_all(rating_half)):\n real_rating += .5\n\n if \"-\" not in catchClause.text(content.query_selector(rating_number)):\n real_rating_number = int(catchClause.text(content.query_selector(rating_number)))\n\n if \"#\" in catchClause.attributes(content.query_selector(link), 'href'):\n real_link = catchClause.attributes(content.query_selector(link), 'href').split(\"#\")[0]\n\n if len(content.query_selector_all(flash_sale)):\n real_flash_sale = True\n\n if \"webp\" in catchClause.attributes(content.query_selector(img), 'src'):\n real_img = catchClause.attributes(content.query_selector(img), 'src').replace(\"webp\", \"jpg\")\n\n if len(content.query_selector_all(free_shipping)):\n real_free_shipping = True\n\n if len(content.query_selector_all(is_full)):\n real_is_full = True\n\n single_data = {\n \"source\": \"mercado_libre\",\n \"name\": catchClause.text(content.query_selector(name)),\n \"id\": catchClause.attributes(content.query_selector(id), 'value'),\n \"price\": real_price,\n \"price_float\": float(real_price.replace(\"$\", \"\").replace(\",\", \"\")),\n \"original_price\": real_original_price,\n \"flash_sale\": real_flash_sale,\n \"rating\": real_rating,\n \"rating_number\": real_rating_number,\n \"link\": real_link,\n \"img\": real_img,\n \"label\": catchClause.text(content.query_selector(label)).lower().capitalize(),\n \"free_shipping\": real_free_shipping,\n \"is_full_or_prime\": real_is_full,\n }\n\n # Agregando información recolectada\n data.append(single_data)\n\n # Cerrar el navegador\n # browser.close()\n\n ####################################################################################################\n\n amnz_product = prompt.replace(\" \", \"=\")\n\n # Definir la URL del sitio web que se desea consultar\n url = f\"https://www.amazon.com.mx/s?k={amnz_product}\"\n\n # Inicializar Playwright y abrir un navegador\n with sync_playwright() as play:\n # browser = play.chromium.launch(headless=head, slow_mo=3*1000)\n browser = play.chromium.launch(headless=head)\n page = browser.new_page(user_agent=agenteUsuario())\n\n # Acceder a la página web\n page.goto(url)\n\n # Obtenemos todos los resultados de la pagina\n totalResults = \"//div[@data-component-type='s-search-result']\"\n\n # Creamos los XPATH para cada elemento que vamos a obtener\n name = \"//a[@class='a-link-normal s-underline-text s-underline-link-text s-link-style a-text-normal']\"\n id = \"data-asin\"\n price = \"//span[@data-a-color='base']/span[@class='a-offscreen']\"\n original_price = \"//span[@data-a-color='secondary']/span[@class='a-offscreen']\"\n flash_sale = \"//span[@data-a-badge-color='sx-lightning-deal-red']//span[@class='a-badge-text'][@data-a-badge-color='sx-cloud']\"\n rating = \"//span[@class='a-declarative']/a/i/span[@class='a-icon-alt']\"\n # rating_half = \"//span[@class='ui-search-reviews__ratings']//*[contains(@class, 'star-half')]\"\n rating_number = \"//a[@class='a-link-normal s-underline-text s-underline-link-text s-link-style']/span[@class='a-size-base s-underline-text']\"\n link = \"//div[@class='ui-search-result__image shops__picturesStyles']//a\"\n img = \"//img[@class='s-image']\"\n label = \"//label[@class='ui-search-styled-label ui-search-item__highlight-label__text']\"\n free_shipping = \"//span[contains(@aria-label, 'GRATIS')]\"\n is_prime = \"//span[contains(@class, 's-prime')]\"\n\n # Esperamos la carga total de la pagina, de lo contrario controlamos el error y mostramos un error\n try:\n page.wait_for_selector(totalResults, timeout=10*1000)\n except PlaywrightTimeoutError:\n print(f\"Error al cargar contenido. Vuelva a intentarlo en unos minutos. URL: {url}\")\n\n # Comenzamos con la extraccion de datos\n for content in page.query_selector_all(totalResults):\n real_price = catchClause.text(content.query_selector(price))\n real_price_float = 0.0\n real_flash_sale = False\n real_rating = 0.0\n real_rating_number = 0\n real_label = \"-\"\n real_link = \"-\"\n real_free_shipping = False\n real_is_prime = False\n\n if \"-\" not in real_price:\n real_price_float = float(catchClause.text(content.query_selector(price)).replace(\"$\", \"\").replace(\",\", \"\"))\n\n if len(content.query_selector_all(flash_sale)):\n real_flash_sale = True\n\n if \"-\" not in catchClause.text(content.query_selector(rating)):\n real_rating = float(catchClause.text(content.query_selector(rating)).split(\" \")[0])\n\n if \"-\" not in catchClause.text(content.query_selector(rating_number)):\n real_rating_number = int(re.sub(r\"[()]\", \"\", catchClause.text(content.query_selector(rating_number))).replace(\",\", \"\"))\n\n for single_label in content.query_selector_all(label):\n real_label += \" \" + single_label.strip()\n\n # if \"-\" not in catchClause.attributes(content.query_selector(name), 'href'):\n real_link = f\"\"\"http://www.amazon.com.mx{catchClause.attributes(content.query_selector(name), 'href')}\"\"\"\n real_link = '/'.join(real_link.split('/')[:6])\n\n if len(content.query_selector_all(free_shipping)):\n real_free_shipping = True\n\n if len(content.query_selector_all(is_prime)):\n real_is_prime = True\n\n single_data = {\n \"source\": \"amazon\",\n \"name\": catchClause.text(content.query_selector(name)),\n \"id\": catchClause.attributes(content, id),\n \"price\": real_price,\n \"price_float\": real_price_float,\n \"original_price\": catchClause.text(content.query_selector(original_price)),\n \"flash_sale\": real_flash_sale,\n \"rating\": real_rating,\n \"rating_number\": real_rating_number,\n \"link\": real_link,\n \"img\": f\"\"\"{catchClause.attributes(content.query_selector(img), 'src')}\"\"\",\n \"label\": real_label,\n \"free_shipping\": real_free_shipping,\n \"is_full_or_prime\": real_is_prime,\n }\n\n # Agregando información recolectada\n data.append(single_data)\n\n # Cerrar el navegador\n browser.close()\n return sorted(data, key=lambda x: x[\"price_float\"], reverse=True)\n\n# print(scraping(\"triangulo pikler\", False))\n","repo_name":"developer-edwin/ml","sub_path":"price_compare/comparer/tools.py","file_name":"tools.py","file_ext":"py","file_size_in_byte":11441,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"80"}
+{"seq_id":"18226476370","text":"\"\"\"TwitterClone URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n https://docs.djangoproject.com/en/3.1/topics/http/urls/\nExamples:\nFunction views\n 1. Add an import: from my_app import views\n 2. Add a URL to urlpatterns: path('', views.home, name='home')\nClass-based views\n 1. Add an import: from other_app.views import Home\n 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')\nIncluding another URLconf\n 1. Import the include() function: from django.urls import include, path\n 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))\n\"\"\"\nfrom django.contrib import admin\nfrom django.urls import path\nfrom core.views import splash, signup_view, login_view, home_view, tweet, profile_view, logout_action, hashtag_view, like_tweet, delete_tweet, hashtag_all_view\n\nurlpatterns = [\n path('admin/', admin.site.urls),\n path('', splash, name = \"splash\"),\n path('signup', signup_view, name = \"signup\"),\n path('login', login_view, name = \"login\"),\n path('home', home_view, name = \"home\"),\n path('tweet', tweet, name = \"tweet\"),\n path('profile/', profile_view, name = \"profile\"),\n path('logout', logout_action, name = 'logout'),\n path('hashtag/', hashtag_view, name = \"hashtag\"),\n path('like/', like_tweet, name = \"like_tweet\"),\n path('delete/', delete_tweet, name = \"delete_tweet\"),\n path('hashtag', hashtag_all_view, name = \"hashtag_all_view\")\n]\n","repo_name":"JerryWuuuuuu/TwitterClone","sub_path":"TwitterClone/urls.py","file_name":"urls.py","file_ext":"py","file_size_in_byte":1496,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"70466024260","text":"#\n# @lc app=leetcode id=560 lang=python3\n#\n# [560] Subarray Sum Equals K\n#\n\n# @lc code=start\nclass Solution:\n def subarraySum(self, nums: List[int], k: int) -> int:\n if len(nums) == 0:\n return 0\n counts = {0: 1}\n sumValue, ans = 0, 0\n for num in nums:\n sumValue += num\n ans += counts[sumValue - k]\n counts[sumValue] += 1\n return ans\n# @lc code=end\n","repo_name":"DarkAlexWang/leetcode","sub_path":"Solutions/560.subarray-sum-equals-k.py","file_name":"560.subarray-sum-equals-k.py","file_ext":"py","file_size_in_byte":431,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"80"}
+{"seq_id":"2160943635","text":"\"\"\"\n Help functions\n\"\"\"\n\nimport os\nfrom typing import Optional\nimport functools\nimport torch\nfrom torch import nn\nfrom torch.nn import init\nimport matplotlib.pyplot as plt\n\n\ndef data_reg(images):\n \"\"\"Regularization\"\"\"\n images_mean = images.mean()\n images_std = images.std()\n images = (images - images_mean) / images_std\n images_min = images.min()\n images = images - images_min\n return images\n\n\ndef init_weights(net, init_type=\"normal\", init_gain=0.02):\n \"\"\"Initialization methods provided by CycleGAN.\"\"\"\n\n def init_func(m): # define the initialization function\n classname = m.__class__.__name__\n if hasattr(m, \"weight\") and (\n classname.find(\"Conv\") != -1 or classname.find(\"Linear\") != -1\n ):\n if init_type == \"normal\":\n init.normal_(m.weight.data, 0.0, init_gain)\n elif init_type == \"xavier\":\n init.xavier_normal_(m.weight.data, gain=init_gain)\n elif init_type == \"kaiming\":\n init.kaiming_normal_(m.weight.data, a=0, mode=\"fan_in\")\n elif init_type == \"orthogonal\":\n init.orthogonal_(m.weight.data, gain=init_gain)\n else:\n raise NotImplementedError(\n f\"initialization method {init_type} is not implemented\"\n )\n if hasattr(m, \"bias\") and m.bias is not None:\n init.constant_(m.bias.data, 0.0)\n elif classname.find(\"BatchNorm2d\") != -1:\n init.normal_(m.weight.data, 1.0, init_gain)\n init.constant_(m.bias.data, 0.0)\n\n print(f\"initialize network with {init_type}\")\n net.apply(init_func)\n\n\ndef get_embedding_function(\n num_encoding_functions=6, include_input=True, log_sampling=True\n):\n r\"\"\"Returns a lambda function that internally calls positional_encoding.\"\"\"\n return lambda x: positional_encoding(\n x, num_encoding_functions, include_input, log_sampling\n )\n\n\ndef positional_encoding(\n tensor, num_encoding_functions=6, include_input=True, log_sampling=True\n):\n r\"\"\"Apply positional encoding to the input.\n\n Args:\n tensor (torch.Tensor): Input tensor to be positionally encoded.\n num_encoding_functions (optional, int): Number of encoding functions used to\n compute a positional encoding (default: 6).\n include_input (optional, bool): Whether or not to include the input in the\n computed positional encoding (default: True).\n log_sampling (optional, bool): Sample logarithmically in frequency space, as\n opposed to linearly (default: True).\n\n Returns:\n (torch.Tensor): Positional encoding of the input tensor.\n \"\"\"\n # Trivially, the input tensor is added to the positional encoding.\n encoding = [tensor] if include_input else []\n # Now, encode the input using a set of high-frequency functions and append the\n # resulting values to the encoding.\n frequency_bands = None\n if log_sampling:\n frequency_bands = 2.0 ** torch.linspace(\n 0.0,\n num_encoding_functions - 1,\n num_encoding_functions,\n dtype=tensor.dtype,\n device=tensor.device,\n )\n else:\n frequency_bands = torch.linspace(\n 2.0 ** 0.0,\n 2.0 ** (num_encoding_functions - 1),\n num_encoding_functions,\n dtype=tensor.dtype,\n device=tensor.device,\n )\n\n for freq in frequency_bands:\n for func in [torch.sin, torch.cos]:\n encoding.append(func(tensor * freq))\n\n # Special case, for no positional encoding\n if len(encoding) == 1:\n return encoding[0]\n else:\n return torch.cat(encoding, dim=-1)\n\n\ndef get_minibatches(inputs: torch.Tensor, chunksize: Optional[int] = 1024 * 8):\n r\"\"\"Takes a huge tensor (ray \"bundle\") and splits it into a list of minibatches.\n Each element of the list (except possibly the last) has dimension `0` of length\n `chunksize`.\n \"\"\"\n return [inputs[:, i : i + chunksize] for i in range(0, inputs.shape[1], chunksize)]\n\n\ndef meshgrid_xy(\n tensor1: torch.Tensor, tensor2: torch.Tensor\n) -> (torch.Tensor, torch.Tensor):\n \"\"\"Mimick np.meshgrid(..., indexing=\"xy\") in pytorch. torch.meshgrid only allows \"ij\" indexing.\n Args:\n tensor1 (torch.Tensor): Tensor whose elements define the first dimension of the returned meshgrid.\n tensor2 (torch.Tensor): Tensor whose elements define the second dimension of the returned meshgrid.\n \"\"\"\n ii, jj = torch.meshgrid(tensor1, tensor2)\n return ii.transpose(-1, -2), jj.transpose(-1, -2)\n\n\ndef get_ray_bundle(height, width, tform_cam2world):\n # Generate camera rays\n ii, jj = meshgrid_xy(\n torch.arange(width).to(tform_cam2world),\n torch.arange(height).to(tform_cam2world),\n )\n # return B,H,W,3\n scale_factor = height / width\n grid = torch.stack(\n [\n (ii - width * 0.5) / width,\n -((jj - height * 0.5) / height) * scale_factor,\n torch.zeros_like(ii),\n ],\n dim=0,\n )\n grid = grid.reshape([3, -1])\n ray_directions = torch.matmul(\n tform_cam2world[:, :3, :3], torch.tensor([0, 0, -1]).to(tform_cam2world)\n )\n ray_origins = (\n torch.matmul(tform_cam2world[:, :3, :3], grid) + tform_cam2world[:, :3, 3:]\n )\n ray_origins = ray_origins.reshape(*ray_origins.shape[:2], width, height).permute(\n 0, 2, 3, 1\n )\n ray_directions = ray_directions[:, None, None, :].expand(ray_origins.shape)\n return ray_origins, ray_directions\n\n\ndef repeat_interleave(data, repeats):\n \"\"\"\n Repeat interleave along axis 0\n torch.repeat_interleave is currently very slow\n https://github.com/pytorch/pytorch/issues/31980\n \"\"\"\n output = data.unsqueeze(1).expand(-1, repeats, *data.shape[1:])\n return output.reshape(-1, *data.shape[1:])\n\n\ndef combine_interleaved(t, inner_dims=(1,), agg_type=\"average\"):\n if len(inner_dims) == 1 and inner_dims[0] == 1:\n return t\n t = t.reshape(-1, *inner_dims, *t.shape[1:])\n if agg_type == \"average\":\n t = torch.mean(t, dim=1)\n elif agg_type == \"max\":\n t = torch.max(t, dim=1)[0]\n else:\n raise NotImplementedError(\"Unsupported combine type \" + agg_type)\n return t\n\n\ndef get_norm_layer(norm_type=\"instance\", group_norm_groups=32):\n \"\"\"Return a normalization layer\n Parameters:\n norm_type (str) -- the name of the normalization layer: batch | instance | none\n For BatchNorm, we use learnable affine parameters and track running statistics (mean/stddev).\n For InstanceNorm, we do not use learnable affine parameters. We do not track running statistics.\n \"\"\"\n if norm_type == \"batch\":\n norm_layer = functools.partial(\n nn.BatchNorm2d, affine=True, track_running_stats=True\n )\n elif norm_type == \"instance\":\n norm_layer = functools.partial(\n nn.InstanceNorm2d, affine=False, track_running_stats=False\n )\n elif norm_type == \"group\":\n norm_layer = functools.partial(nn.GroupNorm, group_norm_groups)\n elif norm_type == \"none\":\n norm_layer = None\n else:\n raise NotImplementedError(f\"Normalization layer {norm_type} is not found.\")\n return norm_layer\n\n\ndef gather_cdf_util(cdf, inds):\n # A very contrived way of mimicking a version of the tf.gather()\n orig_inds_shape = inds.shape\n inds_flat = [inds[i].view(-1) for i in range(inds.shape[0])]\n valid_mask = [\n torch.where(ind >= cdf.shape[1], torch.zeros_like(ind), torch.ones_like(ind))\n for ind in inds_flat\n ]\n inds_flat = [\n torch.where(ind >= cdf.shape[1], (cdf.shape[1] - 1) * torch.ones_like(ind), ind)\n for ind in inds_flat\n ]\n cdf_flat = [cdf[i][ind] for i, ind in enumerate(inds_flat)]\n cdf_flat = [cdf_flat[i] * valid_mask[i] for i in range(len(cdf_flat))]\n cdf_flat = [\n cdf_chunk.reshape([1] + list(orig_inds_shape[1:])) for cdf_chunk in cdf_flat\n ]\n return torch.cat(cdf_flat, dim=0)\n\n\ndef sample_pdf(bins, weights, num_samples, det=False):\n # Get pdf\n weights = weights + 1e-5 # prevent nans\n pdf = weights / weights.sum(-1).unsqueeze(-1)\n cdf = torch.cumsum(pdf, -1)\n cdf = torch.cat((torch.zeros_like(cdf[..., :1]), cdf), -1)\n\n # Take uniform samples\n if det:\n u = torch.linspace(0.0, 1.0, num_samples).to(weights)\n u = u.expand(list(cdf.shape[:-1]) + [num_samples])\n else:\n u = torch.rand(list(cdf.shape[:-1]) + [num_samples]).to(weights)\n # use pytorch 1.8 searchsorted\n inds = torch.searchsorted(cdf.contiguous(), u.contiguous(), right=True)\n below = torch.max(torch.zeros_like(inds), inds - 1)\n above = torch.min((cdf.shape[-1] - 1) * torch.ones_like(inds), inds)\n inds_g = torch.stack((below, above), -1)\n\n cdf_g = gather_cdf_util(cdf, inds_g)\n bins_g = gather_cdf_util(bins, inds_g)\n\n denom = cdf_g[..., 1] - cdf_g[..., 0]\n denom = torch.where(denom < 1e-5, torch.ones_like(denom), denom)\n t = (u - cdf_g[..., 0]) / denom\n samples = bins_g[..., 0] + t * (bins_g[..., 1] - bins_g[..., 0])\n\n return samples\n\n\ndef cumprod_exclusive(tensor: torch.Tensor) -> torch.Tensor:\n r\"\"\"Mimick functionality of tf.math.cumprod(..., exclusive=True), as it isn't available in PyTorch.\n\n Args:\n tensor (torch.Tensor): Tensor whose cumprod (cumulative product, see `torch.cumprod`) along dim=-1\n is to be computed.\n\n Returns:\n cumprod (torch.Tensor): cumprod of Tensor along dim=-1, mimiciking the functionality of\n tf.math.cumprod(..., exclusive=True) (see `tf.math.cumprod` for details).\n \"\"\"\n # Only works for the last dimension (dim=-1)\n dim = -1\n # Compute regular cumprod first (this is equivalent to `tf.math.cumprod(..., exclusive=False)`).\n cumprod = torch.cumprod(tensor, dim)\n # \"Roll\" the elements along dimension 'dim' by 1 element.\n cumprod = torch.roll(cumprod, 1, dim)\n # Replace the first element by \"1\" as this is what tf.cumprod(..., exclusive=True) does.\n cumprod[..., 0] = 1.0\n\n return cumprod\n\n\ndef save_tensor_plot(data, save_folder=0, save_name=0):\n plt.rcParams.update({\"font.size\": 22})\n plt.figure(figsize=(20, 20))\n plt.imshow(data.squeeze().cpu().numpy())\n plt.axis(\"off\")\n\n if save_folder != 0 and save_name != 0:\n if not os.path.exists(save_folder):\n os.makedirs(save_folder)\n plt.savefig(f\"{save_folder}/{save_name}.png\")\n plt.cla()\n plt.close()\n","repo_name":"pvilla/ONIX","sub_path":"models/utils.py","file_name":"utils.py","file_ext":"py","file_size_in_byte":10532,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"1082213289","text":"\nimport sys\nimport glob, os\nimport numpy as np\nimport nltk\nimport csv\nfrom collections import Counter\nfrom nltk.corpus import stopwords\nfrom sklearn import svm\nfrom sklearn.feature_selection import VarianceThreshold\nfrom sklearn.metrics import accuracy_score\nimport matplotlib.pyplot as mp\nfrom arrays import * \n\nimdbpath = \"./trainingdata/train_file.txt\"\ntestpath = \"./trainingdata/test_file.txt\"\n\nprediction = []\nactual = []\npunct = ['.',',', '-']\nstops = punct + stopwords.words('english')\n\n#Percent of variance allowed: Ignore all features that are the same (whether 1 or 0) in p*100% of the samples.\np = .9\n\ndef read_data(path):\n data_file = open(path,'r')\n sentences = []\n scores = []\n for line in data_file:\n sentence, score = line.split(\" \",1)\n sentences.append(sentence)\n scores.append(score.strip())\n return sentences, scores\n\ndef create_vocab(sentences):\n text = ' '.join(sentences)\n tokens = nltk.word_tokenize(text)\n\n tokens_filtered = [x.lower() for x in tokens if not x in stops]\n \n freq_dist = nltk.FreqDist(tokens_filtered)\n return freq_dist.keys()\n \ndef transform_sentence(sentence, vocab):\n tokens = [x.lower() for x in nltk.word_tokenize(sentence) if not x in stops]\n fdist = nltk.FreqDist(tokens)\n features = [fdist[x] for x in vocab]\n return features\n\ndef predict(sentence, vocab, clf):\n answer = clf.predict([transform_sentence(sentence, vocab)])\n answer = answer.astype(int)\n prediction.append(answer[0])\n return answer[0]\n\n \n\nsentences, scores = read_data(imdbpath)\nvocab = create_vocab(sentences)\nX = [transform_sentence(x, vocab) for x in sentences]\nclf = svm.SVC(kernel='linear', C = 1.0)\nclf.fit(X, scores)\n\n\ntest_data = open(testpath,'r')\n \nfor line in test_data:\n sentence, score = line.split(\" \",1)\n predict(sentence,vocab,clf)\n actual.append(int(score))\n\n\nprint(accuracy_score(actual,prediction))\n\nprediction = []\n\nprint(\" SVM \")\n\ni=0\nn=0\nxaxis = [\"BUSS\",\"ENT\",\"LIFE\",\"SPORTS\",\"TECH\"]\nyaxis = []\nwidth = 1/1.5\nind = [0, 1, 2, 3, 4]\n\nprint(\"DNA \")\nos.chdir(\"../news_output/DNA\")\nfor file in glob.glob(\"*.txt\"):\n print(file)\n actual = []\n with open(file,'r') as txtinput:\n with open(file.replace('.txt','')+\"DnaSvm.csv\",'w') as txtoutput:\n writer = csv.writer(txtoutput, delimiter=',')\n j=0\n for line in txtinput:\n actual.append(DNA[n][j]) \n x = line+\",\"+str(predict(line,vocab,clf))+\",\"+str(DNA[n][j])\n print(x)\n print(str(n)+str(j))\n writer.writerow(x.split(\",\"))\n j+=1\n txtoutput.close()\n print(actual)\n print(prediction)\n n+=1\n print(accuracy_score(actual,prediction)) \n final= dict(Counter(prediction))\n ans = (final[1])/(final[1]+final[-1])*100\n print ('Objective Percentage\\t'+str(ans))\n yaxis.append(ans)\n prediction = []\n i=i+1\n\nmp.bar(ind, yaxis, width, color=\"white\",align ='center')\nmp.xticks(ind,xaxis)\nmp.ylabel('Objective Percentage')\nmp.title('DNA India')\nfor a,b in zip(ind, yaxis):\n mp.text(a-0.25, b-2.4, str(round(b,2)),size=14)\nfont = {'family' : 'normal',\n 'size' : 15}\nmp.rc('font', **font) \nmp.show() \n \n \nprint(\"THE TIMES OF INDIA\")\n\nyaxis = []\ni=0\nn=0\nos.chdir(\"../TOI\")\nfor file in glob.glob(\"*.txt\"):\n print(file)\n actual = []\n with open(file,'r') as txtinput:\n with open(file.replace('.txt','')+\"ToiSvm.csv\",'w') as txtoutput:\n writer = csv.writer(txtoutput, delimiter=',')\n j=0\n for line in txtinput:\n actual.append(TOI[n][j]) \n x = line+\",\"+str(predict(line,vocab,clf))+\",\"+str(TOI[n][j])\n writer.writerow(x.split(\",\"))\n j+=1\n txtoutput.close()\n #print(actual)\n #print(prediction) \n print(accuracy_score(actual,prediction)) \n final= dict(Counter(prediction))\n print(final)\n ans = (final[1])/(final[1]+final[-1])*100\n print ('Objective Percentage\\t'+str(ans))\n yaxis.append(ans) \n prediction = []\n i=i+1\n n+=1\nmp.bar(ind, yaxis, width, color=\"white\",align ='center')\nmp.xticks(ind,xaxis)\nmp.ylabel('Objective Percentage')\nmp.title('THE TIMES OF INDIA')\nfor a,b in zip(ind, yaxis):\n mp.text(a-0.25, b-2.4, str(round(b,2)),size =14)\nfont = {'family' : 'normal',\n 'size' : 15}\n\nmp.rc('font', **font) \nmp.show()\n\n\n","repo_name":"rheyavlan/SentimentAnalysis","sub_path":"sentiment_analysis_svm.py","file_name":"sentiment_analysis_svm.py","file_ext":"py","file_size_in_byte":4450,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"5839160959","text":"\nclass constants(object):\n HTTP_METHODS = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH']\n \nclass constantEndpoints(object):\n \n ENDPOINT_CUSTOMER = \"customer\"\n ENDPOINT_TRANSPORTER = \"transporter\"\n ENDPOINT_PUBLIC = \"public\"\n\n class ENDPOINT_EMPLOYEE(object): \n ENDPOINT = \"employee\"\n CUSTOMER_REPRESENTATIVE = \"customer_rep\"\n STOREKEEPER = \"storekeeper\"\n PRODUCTION_PLANNER = \"production_planner\"\n \n \nclass http(object):\n# The server encountered an unexpected condition that prevented it from fulfilling the request.\n StatusInternalServerError = 500\n# The request could not be understood by the server due to incorrect syntax. \n# The client SHOULD NOT repeat the request without modifications.\n StatusBadRequest = 400\n# Indicates that the request requires user authentication information. \n# The client MAY repeat the request with a suitable Authorization header field\n StatusUnauthorized = 401\n# Unauthorized request. The client does not have access rights to the content. \n# Unlike 401, the client’s identity is known to the server.\n StatusForbidden = 403\n# The request HTTP method is known by the server but has been disabled and cannot be used for that resource.\n StatusMethodNotAllowed = 405\n# The server doesn’t find any content.\n# That conforms, to the criteria given by the user agent in the Accept header sent in the request.\n StatusNotAcceptable = 406\n# Allows a client to tell the server that the same resource (with the same binding) was mentioned earlier. \n# It never appears as a true HTTP response code in the status line, and only appears in bodies.\n StatusAlreadyReported = 208\n# Indicates that the request has succeeded and a new resource has been created as a result.\n StatusCreated = 201\n# Indicates that the request has succeeded.\n StatusOk = 200\n \n \nclass error(object):\n Login_InvalidMethod = \"Invalid method, Use \"\n \n Endpoint = \": \"\n\n Login_NotLoggedIn = (\"LOGIN: Login as correct user first\")\n \n Body_Invalid = \"BODY: Invalid input\"\n \n Query_Duplicate = \"QUERY: Input already exists within database\"\n \n No_DataBase_Found = \"FATAL ERROR: Database connection not found\"\n DataBase_Found = \" * SERVER: Database connection found!\"\n","repo_name":"Mystodan/database_prosjekt_33","sub_path":"iteration-2/code/constants/REST.py","file_name":"REST.py","file_ext":"py","file_size_in_byte":2264,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"13606081353","text":"u=0\nwhile(u<11):\n print(\"Shirsha\")\n u=u+1\nfor t in range(0,11):\n print(\"Avinaba\",end=\"+Shirsha,\")\nprint()\no=int(input(\"enter a number\"))\ncount=0\nwhile o!=0:\n count=count+1\n o=o//10\nprint(\"your number is carrying\",count,\"digits\")\nh=int(input(\"enter a number\"))\nsum=0\nwhile h!=0:\n sum+=h%10\n h//=10\nprint(sum) \n","repo_name":"avinabadey6/python","sub_path":"name2.py","file_name":"name2.py","file_ext":"py","file_size_in_byte":339,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"41406383996","text":"import os.path\nfrom datetime import datetime\nfrom enum import Enum\nfrom typing import *\n\nfrom pros.common import logger\nimport pros.common.ui as ui\nfrom pros.config import Config\nfrom pros.config.cli_config import cli_config\nfrom .manifests import *\nfrom .instructions import UpgradeResult\n\n\nclass ReleaseChannel(Enum):\n Stable = 'stable'\n Beta = 'beta'\n\n\nclass UpgradeManager(Config):\n def __init__(self, file=None):\n if file is None:\n file = os.path.join(cli_config().directory, 'upgrade.pros.json')\n self._last_check: datetime = datetime.min\n self._manifest: Optional[UpgradeManifestV1] = None\n self.release_channel: ReleaseChannel = ReleaseChannel.Stable\n\n super().__init__(file)\n\n @property\n def has_stale_manifest(self):\n if self._manifest is None:\n logger(__name__).debug('Upgrade manager\\'s manifest is nonexistent')\n if datetime.now() - self._last_check > cli_config().update_frequency:\n logger(__name__).debug(f'Upgrade manager\\'s last check occured at {self._last_check}.')\n logger(__name__).debug(f'Was longer ago than update frequency ({cli_config().update_frequency}) allows.')\n return (self._manifest is None) or (datetime.now() - self._last_check > cli_config().update_frequency)\n\n def get_manifest(self, force: bool = False) -> UpgradeManifestV1:\n if not force and not self.has_stale_manifest:\n return self._manifest\n\n ui.echo('Fetching upgrade manifest...')\n import requests\n import jsonpickle\n import json\n\n channel_url = f'https://purduesigbots.github.io/pros-mainline/{self.release_channel.value}'\n self._manifest = None\n\n manifest_urls = [f\"{channel_url}/{manifest.__name__}.json\" for manifest in manifests]\n for manifest_url in manifest_urls:\n resp = requests.get(manifest_url)\n if resp.status_code == 200:\n try:\n self._manifest = jsonpickle.decode(resp.text, keys=True)\n logger(__name__).debug(self._manifest)\n self._last_check = datetime.now()\n self.save()\n break\n except json.decoder.JSONDecodeError as e:\n logger(__name__).warning(f'Failed to decode {manifest_url}')\n logger(__name__).debug(e)\n else:\n logger(__name__).debug(f'Failed to get {manifest_url} ({resp.status_code})')\n if not self._manifest:\n manifest_list = \"\\n\".join(manifest_urls)\n logger(__name__).warning(f'Could not access any upgrade manifests from any of:\\n{manifest_list}')\n return self._manifest\n\n @property\n def needs_upgrade(self) -> bool:\n manifest = self.get_manifest()\n if manifest is None:\n return False\n return manifest.needs_upgrade\n\n def describe_update(self) -> str:\n manifest = self.get_manifest()\n assert manifest is not None\n return manifest.describe_update()\n\n @property\n def can_perform_upgrade(self):\n manifest = self.get_manifest()\n assert manifest is not None\n return manifest.can_perform_upgrade\n\n def perform_upgrade(self) -> UpgradeResult:\n manifest = self.get_manifest()\n assert manifest is not None\n return manifest.perform_upgrade()\n\n def describe_post_upgrade(self) -> str:\n manifest = self.get_manifest()\n assert manifest is not None\n return manifest.describe_post_install()\n","repo_name":"purduesigbots/pros-cli","sub_path":"pros/upgrade/upgrade_manager.py","file_name":"upgrade_manager.py","file_ext":"py","file_size_in_byte":3575,"program_lang":"python","lang":"en","doc_type":"code","stars":101,"dataset":"github-code","pt":"80"}
+{"seq_id":"72951456899","text":"import pandas as pd\n\npd.set_option('display.max_columns', None)\npd.set_option('display.max_rows', 20)\npd.set_option('display.width', 50)\npd.set_option('display.expand_frame_repr', False)\n\ndf_ = pd.read_excel('online_retail_II.xlsx',sheet_name=\"Year 2010-2011\")\ndf = df_.copy()\ndf.head()\n\ndef outlier_thresholds(dataframe, variable):\n quartile1 = dataframe[variable].quantile(0.01)\n quartile3 = dataframe[variable].quantile(0.99)\n interquantile_range = quartile3 - quartile1\n up_limit = quartile3 + 1.5 * interquantile_range\n low_limit = quartile1 - 1.5 * interquantile_range\n return low_limit, up_limit\n\ndef replace_with_thresholds(dataframe, variable):\n low_limit, up_limit = outlier_thresholds(dataframe, variable)\n dataframe.loc[(dataframe[variable] < low_limit), variable] = low_limit\n dataframe.loc[(dataframe[variable] > up_limit), variable] = up_limit\n\ndef retail_data_prep(dataframe):\n dataframe.drop(dataframe[dataframe[\"StockCode\"] == \"POST\"].index, inplace=True)\n dataframe.dropna(inplace=True)\n dataframe = dataframe[~dataframe[\"Invoice\"].str.contains(\"C\", na=False)]\n dataframe = dataframe[dataframe[\"Quantity\"] > 0]\n dataframe = dataframe[dataframe[\"Price\"] > 0]\n replace_with_thresholds(dataframe, \"Quantity\")\n replace_with_thresholds(dataframe, \"Price\")\n return dataframe\n\ndf = retail_data_prep(df)\n\ndf_grm = df[df['Country']=='Germany']\ndf_grm.head()\n\ndef create_invoice_product_df(dataframe, id=False):\n if id:\n return dataframe.groupby(['Invoice', \"StockCode\"])['Quantity'].sum(). \\\n unstack(). \\\n fillna(0). \\\n applymap(lambda x: 1 if x > 0 else 0)\n else:\n return dataframe.groupby(['Invoice', 'Description'])['Quantity'].sum(). \\\n unstack(). \\\n fillna(0). \\\n applymap(lambda x: 1 if x > 0 else 0)\n\ngrm_inv_sto_df = create_invoice_product_df(df_grm, id=True)\n\ndef check_id(dataframe, stock_code):\n product_name = dataframe[dataframe[\"StockCode\"] == stock_code][[\"Description\"]].values[0].tolist()\n print(product_name)\n\nfrom mlxtend.frequent_patterns import apriori, association_rules\nfrequent_itemsets = apriori(grm_inv_sto_df, min_support=0.01, use_colnames=True)\nrules = association_rules(frequent_itemsets, metric=\"support\", min_threshold=0.01)\n\nsorted_rules = rules.sort_values(\"lift\", ascending=False)\n\ndef arl_recommender(rules_df, product_id, rec_count=1):\n sorted_rules = rules_df.sort_values(\"lift\", ascending=False)\n recommendation_list = []\n for i, product in sorted_rules[\"antecedents\"].items():\n for j in list(product):\n if j == product_id:\n recommendation_list.append(list(sorted_rules.iloc[i][\"consequents\"]))\n recommendation_list = list({item for item_list in recommendation_list for item in item_list})\n return recommendation_list[:rec_count]\n\n# Example: Reccommendation 5 products for 21987\narl_recommender(rules,21987,rec_count=5)\n\ncheck_id(df, 21244)\ncheck_id(df, 23307)\ncheck_id(df, 22029)\ncheck_id(df, 20750)\ncheck_id(df, 22423)\n","repo_name":"cansinkutlucan/Association-Rule-Learning","sub_path":"ARL.py","file_name":"ARL.py","file_ext":"py","file_size_in_byte":3062,"program_lang":"python","lang":"en","doc_type":"code","stars":3,"dataset":"github-code","pt":"80"}
+{"seq_id":"71049677698","text":"import collections\nimport functools\n\nimport oslo_messaging as messaging\nfrom oslo_serialization import jsonutils\n\n\nNOTIFICATIONS = []\nVERSIONED_NOTIFICATIONS = []\n\n\ndef reset():\n del NOTIFICATIONS[:]\n del VERSIONED_NOTIFICATIONS[:]\n\n\nFakeMessage = collections.namedtuple('Message',\n ['publisher_id', 'priority',\n 'event_type', 'payload', 'context'])\n\n\nclass FakeNotifier(object):\n\n def __init__(self, transport, publisher_id, serializer=None):\n self.transport = transport\n self.publisher_id = publisher_id\n self._serializer = serializer or messaging.serializer.NoOpSerializer()\n\n for priority in ['debug', 'info', 'warn', 'error', 'critical']:\n setattr(self, priority,\n functools.partial(self._notify, priority.upper()))\n\n def prepare(self, publisher_id=None):\n if publisher_id is None:\n publisher_id = self.publisher_id\n return self.__class__(self.transport, publisher_id,\n serializer=self._serializer)\n\n def _notify(self, priority, ctxt, event_type, payload):\n payload = self._serializer.serialize_entity(ctxt, payload)\n # NOTE(Dinesh_Bhor): simulate the kombu serializer\n # this permit to raise an exception if something have not\n # been serialized correctly\n jsonutils.to_primitive(payload)\n # NOTE(Dinesh_Bhor): Try to serialize the context, as the rpc would.\n # An exception will be raised if something is wrong\n # with the context.\n self._serializer.serialize_context(ctxt)\n msg = FakeMessage(self.publisher_id, priority, event_type,\n payload, ctxt)\n NOTIFICATIONS.append(msg)\n\n\nclass FakeVersionedNotifier(FakeNotifier):\n def _notify(self, priority, ctxt, event_type, payload):\n payload = self._serializer.serialize_entity(ctxt, payload)\n VERSIONED_NOTIFICATIONS.append({'publisher_id': self.publisher_id,\n 'priority': priority,\n 'event_type': event_type,\n 'payload': payload})\n","repo_name":"openstack/masakari","sub_path":"masakari/tests/unit/fake_notifier.py","file_name":"fake_notifier.py","file_ext":"py","file_size_in_byte":2252,"program_lang":"python","lang":"en","doc_type":"code","stars":56,"dataset":"github-code","pt":"80"}
+{"seq_id":"44538345705","text":"#! /usr/bin/env python3\n\n# https://projecteuler.net/problem=46\n\nfrom math import sqrt\nfrom itertools import count\n\ndef is_prime(n):\n if n <= 1:\n return False\n if n > 2 and n % 2 == 0:\n return False\n for elem in range(3, int(sqrt(n)) + 1, 2):\n if not n % elem:\n return False\n return True\n\ndef theorem_matches(n):\n for power in count(start=1):\n if 2 * power ** 2 >= n:\n return False\n if is_prime(n - (2 * power ** 2)):\n return True\n\n# All odd numbers\nfor n in count(start=3, step=2):\n if not is_prime(n):\n if not theorem_matches(n):\n print(n)\n break\n","repo_name":"AlbertoPeon/project-euler","sub_path":"46/46.py","file_name":"46.py","file_ext":"py","file_size_in_byte":663,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"30913624825","text":"# -*- coding: utf-8 -*-\r\n\"\"\"\r\nCreated on Tue Jun 16 22:13:15 2020\r\n\r\n@author: Sardor Mirzaev\r\n\"\"\"\r\nimport os\r\nimport pyodbc\r\nimport pandas as pd\r\n\r\nusername1 = '006'\r\npassword1 = 'Vrl'\r\n \r\n# Databank Connection \r\n#s = 'Driver={SQL Server};DSN=ZDA;Description=ZDA;UID='+username1+';PWD='+password1\r\ns = 'DSN=ZDA;UID='+username1+';PWD='+password1\r\n\r\ncnxn2 = pyodbc.connect(s)#+';DATABASE=ZDA_006000;SCHEMA=dbo')\r\ncursor = cnxn2.cursor()\r\n\r\n\r\n#%% \r\n\r\nt2 = pd.read_sql(\"select CAST(RAT_CREATION_DATE as DATE) xxNEU, * from dbo.RATING where RATING_ID = '7990007800'\", cnxn2) \r\nt2.to_clipboard(decimal =',')\r\n# %%\r\nt2 = pd.read_sql(\"select CAST(RAT_CREATION_DATE as DATE) RAT_CREATION_DATE from dbo.RATING where RATING_ID = '7990007827'\", cnxn2) \r\nt2.to_clipboard(decimal =',')\r\n\r\n# %%\r\nsZDA = \"\"\"SELECT \r\n'6000' as X01_Mandant_ID ,\r\nCUST_ID as X02_CUST_ID,\r\nMODUL_ID as X03a_MODUL_ID,\r\nMODUL_ID_FUNC as X03b_MODUL_ID_FUNC,\r\nSUBMODUL as X03c_SUBMODUL,\r\nRAT_BUS_ID as X04_RAT_BUS_ID,\r\n'2017_12' as X05_Stichtag,\r\nRAT_SCORE_INT as X07_FCR_Stufe_ST1,\t\r\nRAT_APPROVE_DATE as X08_ST1_RAT_APPROVE_DATE, \r\nOVERRIDE_FLAG as X14_Overrides, \r\nRAT_APPROVE_DATE as Y01_RAT_APPROVE_DATE,\r\nRAT_CLEAR_DATE as Y02_RAT_CLEAR_DATE,\r\nTECH_RATING_ID as Y03_TECH_RATING_ID,\r\nRAT_MAN_INAKTIV as Y04_RAT_MAN_INAKTIV\r\nFROM dbo.RATING \r\nwhere MODUL_ID in (10298, 10299, 10303, 10304, 10305, 10306, 10307, 17596, 48342, 58703, 65911, 66170, 70596, 72216, 76249, 79042)\r\n\"\"\" + \\\r\n\"order by RAT_APPROVE_DATE\" \r\n\r\n\r\nt3 = pd.read_sql(sZDA, cnxn2)\r\n\r\n# %%\r\n\r\ndiff1 = set( t2.Y03_TECH_RATING_ID ).difference( t3.Y03_TECH_RATING_ID )\r\n\r\nt2.Y03_TECH_RATING_ID.min()\r\nt3.Y03_TECH_RATING_ID.min()\r\n\r\n\r\nt2.Y03_TECH_RATING_ID.max()\r\nt3.Y03_TECH_RATING_ID.max()\r\n\r\n\r\n# %%\r\nmerged1 = pd.merge(t2[['Y03_TECH_RATING_ID', 'X02_CUST_ID', 'Y01_RAT_APPROVE_DATE']], \r\n t3[['Y03_TECH_RATING_ID', 'X02_CUST_ID', 'Y01_RAT_APPROVE_DATE']], how = 'outer', \r\n left_on = 'Y03_TECH_RATING_ID', right_on = 'Y03_TECH_RATING_ID')\r\nmerged1.to_clipboard(decimal =',')\r\n\r\n\r\n# => The not-approved Ratings left out in ZDA","repo_name":"sardormirzaev/access_SQL_ZDA-database-","sub_path":"Databank_access.py","file_name":"Databank_access.py","file_ext":"py","file_size_in_byte":2196,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"4285172174","text":"from tensorflow.keras import models\nfrom tensorflow.keras import layers\nfrom tensorflow.keras import utils\n\nfrom tensorflow.keras.layers import Dense, Dropout, Activation, Flatten\nfrom tensorflow.keras.layers import Conv2D, MaxPooling2D\n\nimport tensorflow.keras\n\nimport os\nimport cv2\nimport numpy as np\n\n#path = \"cards_imgs/\"\npath = \"result_photos/\"\ncards = os.listdir(path=path) \n\nx_train_cards = []\ny_train1 = []\n\nh = 200 # 355\nw = 200\n\nfor card in cards: \n image = cv2.imread(path + card, cv2.IMREAD_COLOR)\n x_train_cards.append(image)\n y_train1.append(card.split('[')[1].split(']')[0])\n\nx_train1 = []\n\nfor x in x_train_cards: \n img_g = cv2.cvtColor(x, cv2.COLOR_BGR2GRAY) # BGR to GRAY\n dim = (h,w) \n img_rs = cv2.resize(img_g, dim, interpolation=cv2.INTER_AREA) # Изменение размера\n \n x_train1.append(img_rs)\n\nimport matplotlib.pyplot as plt\n\nfrom sklearn import preprocessing\nfrom tensorflow.keras.utils import to_categorical\nimport pandas as pd\n\nle = preprocessing.LabelEncoder()\ny_train = np.asarray(y_train1)\nid_numbers = pd.Series(y_train)\n\nd = {\"abbr\": y_train, \"value\": y_train}\ndf = pd.DataFrame(d[\"abbr\"])\n\ntrain_lbl = df.apply(le.fit_transform) # Преобразовали слова (действия) в цифры\n\ny_train = to_categorical(train_lbl)\n\nvalues = y_train1\nnumbers = np.asarray(train_lbl)\ndic = {}\ndic_r = {}\ni = -1\nfor n in numbers:\n i += 1\n dic[y_train1[i]] = numbers[i][0]\n dic_r[numbers[i][0]] = y_train1[i]\n \"\"\"dic.update({\n \"value\": y_train1[i],\n \"number\": numbers[i][0]\n })\"\"\"\n \nprint(dic_r)\n\nx_train = x_train1\nx_train = np.asarray(x_train)\nx_train = x_train.astype('float32')\n\nprint(x_train[0].shape)\nprint(x_train.shape)\nx_train = x_train.reshape(x_train.shape[0], h, w, 1)\nprint(x_train.shape)\n\n\nimport tensorflow as tf\n\nnum_classes = id_numbers.nunique()\nbatch_size = 24\nepochs = 8\n\nmodel = models.Sequential()\nmodel.add(Conv2D(100, (3, 3), input_shape=(200, 200, 1), activation='relu'))\nmodel.add(MaxPooling2D(pool_size=(2, 2)))\nmodel.add(Conv2D(100, (3, 3), activation='relu'))\nmodel.add(MaxPooling2D(pool_size=(2, 2)))\nmodel.add(Flatten())\nmodel.add(Dense(units=200, activation='relu'))\n#model.add(Dense(units=num_classes, activation='sigmoid'))\nmodel.add(Dense(units=num_classes, activation='softmax'))\nmodel.compile(optimizer=\"adam\",\n loss='categorical_crossentropy',\n metrics=['accuracy'])\n\nmodel.fit(x_train, y_train,\n batch_size=batch_size,\n epochs=epochs,\n validation_data=(x_train, y_train),\n shuffle=True)\n\nmodel.save('model.h5')\nprint(\"model saved\")","repo_name":"kerassun/Recognition_playing_cards_IRT","sub_path":"create_model.py","file_name":"create_model.py","file_ext":"py","file_size_in_byte":2660,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"8871770209","text":"# combination으로 방해물 위치 정할 수 있긴 하다.\r\n# 그래도 dfs로 구현해보는게 좋을듯?\r\n# bfs로는 설치 불가능 ㅇㅈ?\r\nn = int(input())\r\ndata =[]\r\nfor _ in range(n):\r\n data.append(list(map(str,input().split())))\r\n# 위 왼 아 오\r\ndx = [-1,0,1,0]\r\ndy = [0,-1,0,1]\r\n# 학생이 한명이라도 걸리면 False 모두 안걸리면 True\r\ndef canHide():\r\n global n\r\n for i in range(n):\r\n for j in range(n):\r\n if data[i][j]=='T':\r\n for d in range(4):\r\n x,y = i,j\r\n while 0<=x<=n-1 and 0<=y<=n-1:\r\n if data[x][y] == 'O':\r\n break\r\n elif data[x][y] =='S':\r\n return False\r\n x+=dx[d]\r\n y+=dy[d]\r\n return True\r\ncomb = []\r\nfor i in range(n):\r\n for j in range(n):\r\n comb.append([i,j])\r\n\r\nhide = False\r\ndef dfs(cnt,idx):\r\n global hide\r\n # 처음에 이렇게 했다가 계속 시간초과가 떴다.\r\n # dfs의 탈출 조건(return 조건이 없었기 때문이다.)\r\n # dfs에선 dfs 탈출조건 잘 구현하자.\r\n # if cnt == 3:\r\n # if canHide():\r\n # hide = True\r\n if cnt == 3:\r\n hide =hide or canHide()\r\n return \r\n\r\n for i in range(idx,len(comb)):\r\n # if i == len(comb)-(3-cnt):\r\n # return\r\n x,y = comb[i]\r\n if data[x][y] == 'X':\r\n data[x][y] = 'O'\r\n dfs(cnt+1,i)\r\n data[x][y]='X'\r\ndfs(0,0)\r\nif hide:\r\n print(\"YES\")\r\nelse:\r\n print(\"NO\")","repo_name":"AlgorithmGosu/2022-05-challenge","sub_path":"chapter13_DFS_BFS_Problem/20_yuje.py","file_name":"20_yuje.py","file_ext":"py","file_size_in_byte":1625,"program_lang":"python","lang":"ko","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"43144527402","text":"from pyramid.response import Response\nfrom pyramid.view import view_config\nfrom pyramid.httpexceptions import HTTPFound\n\nfrom sqlalchemy import desc\nfrom sqlalchemy.exc import DBAPIError\nfrom sqlalchemy.orm import aliased\n\nfrom webhelpers.paginate import PageURL, Page\n\nfrom ..models import (\n DBSession,\n IPBan,\n User,\n )\nfrom ..lib import cache\n\nimport logging\n\nlogger = logging.getLogger(__name__)\n\n\nclass IPBanExistsException(Exception):\n pass\n\n\n@view_config(request_method=\"POST\", route_name='ipbans', permission=\"ipban-create\")\ndef ipban_create(request):\n existing = DBSession.query(IPBan).filter(IPBan.ip.ilike(request.POST[\"ip\"])).first()\n if existing:\n raise IPBanExistsException(\"%s is already banned (until %s for %s)\" % (existing.ip, existing.until, existing.reason))\n\n end = request.POST[\"until\"].strip()\n ipban = IPBan(banner=request.user, ip=request.POST[\"ip\"].strip(),\n reason=request.POST[\"reason\"].strip(), until=end)\n logger.info(\"Create ipban for %s because %s\", ipban.ip, ipban.reason)\n DBSession.add(ipban)\n DBSession.flush()\n return HTTPFound(request.route_url('ipbans'), headers=[(\"X-VTB-Ban-ID\", ipban.id)])\n\n\n@view_config(request_method=\"GET\", route_name='ipbans', renderer='ipban/list.mako', permission=\"ipban-list\")\ndef ipban_list(request):\n ipbans_per_page = int(request.registry.settings.get(\"votabo.ipbans_per_page\", 200))\n page = int(request.GET.get(\"page\", \"1\"))\n url_for_page = PageURL(request.path, request.params)\n\n sql = DBSession.query(IPBan).order_by(desc(IPBan.id))\n if request.GET.get(\"ip\"):\n if \"/\" not in request.GET[\"ip\"]:\n sql = sql.filter(IPBan.ip == request.GET[\"ip\"])\n else: # pragma: no cover -- requires postgres\n sql = sql.filter(IPBan.ip.op(\">>=\")(request.GET[\"ip\"]))\n if request.GET.get(\"reason\"):\n sql = sql.filter(IPBan.reason.ilike(\"%\" + request.GET[\"reason\"] + \"%\"))\n if request.GET.get(\"banner\"):\n sql = sql.join(User).filter(User.username.ilike(request.GET[\"banner\"]))\n ipbans = Page(sql, page=page, items_per_page=ipbans_per_page, url=url_for_page)\n return {\"ipbans\": ipbans, \"pager\": ipbans}\n\n\n@view_config(request_method=\"DELETE\", route_name='ipban', permission=\"ipban-delete\")\ndef ipban_delete(request):\n bid = request.matchdict[\"id\"]\n ipban = DBSession.query(IPBan).filter(IPBan.id == bid).first()\n if ipban:\n logger.info(\"Deleting ban for %s\", ipban.ip)\n DBSession.delete(ipban)\n return HTTPFound(request.referrer or request.route_url('ipbans'))\n","repo_name":"shish/votabo","sub_path":"votabo/views/ipban.py","file_name":"ipban.py","file_ext":"py","file_size_in_byte":2568,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"41110266112","text":"# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this file,\n# You can obtain one at http://mozilla.org/MPL/2.0/.\n\nimport dateutil.parser\nfrom distutils import dir_util\nimport json\nimport logging\nimport os\nimport shutil\n\nfrom tlscanary.tools import cert\n\n\nlogger = logging.getLogger(__name__)\nmodule_dir = os.path.split(__file__)[0]\n\n\ndef generate(mode, logs, output_dir):\n global logger\n\n logger.debug(\"Generating `%s` report for %d logs in `%s`\" % (mode, len(logs), output_dir))\n\n if mode == \"web\":\n for log_name in sorted(logs.keys()):\n log = logs[log_name]\n meta = log.get_meta()\n if meta[\"mode\"] != \"regression\":\n logger.warning(\"Skipping report generation for non-regression log `%s`\" % log_name)\n continue\n if not log.has_finished():\n logger.warning(\"Skipping report generation for incomplete log `%s`\" % log_name)\n continue\n if not log.is_compatible():\n logger.warning(\"Skipping report generation for incompatible log `%s`\" % log_name)\n continue\n web_report(log, output_dir)\n else:\n logger.critical(\"Report generator mode `%s` not implemented\" % mode)\n\n\ndef web_report(log, report_dir):\n global logger\n\n # Create report directory if necessary.\n if not os.path.exists(report_dir):\n logger.debug('Creating report directory %s' % report_dir)\n os.makedirs(report_dir)\n\n # Fetch log metadata\n meta = log.get_meta()\n run_start_time = dateutil.parser.parse(meta[\"run_start_time\"])\n timestamp = run_start_time.strftime(\"%Y-%m-%d-%H-%M-%S\")\n\n # Read the complete runs log to see if this log was already reported\n runs_log_file = os.path.join(report_dir, \"runs\", \"runs.json\")\n\n if os.path.exists(runs_log_file):\n with open(runs_log_file) as f:\n runs_log = json.load(f)\n for line in runs_log[0][\"data\"]:\n logger.debug(\"Line read from runs.json: `%s`\" % line)\n else:\n # File does not exist, create an empty log\n runs_log = json.loads('[{\"data\":[]}]')\n\n if timestamp in json.dumps(runs_log):\n logger.warning(\"Skipping log `%s` which was already reported before\" % log.handle)\n return\n\n # Write log file\n run_dir = os.path.join(report_dir, \"runs\", timestamp)\n logger.info(\"Writing HTML report to `%s`\" % run_dir)\n\n uri_data = []\n for line in log:\n if meta[\"args\"][\"filter\"] == 1:\n # Filter out stray timeout errors\n connection_speed = line[\"response\"][\"response_time\"]-line[\"response\"][\"command_time\"]\n timeout = line[\"response\"][\"original_cmd\"][\"args\"][\"timeout\"] * 1000\n try:\n error_message = line[\"response\"][\"result\"][\"info\"][\"short_error_message\"]\n except KeyError:\n error_message = \"unknown\"\n if error_message == \"NS_BINDING_ABORTED\" and connection_speed > timeout:\n continue\n uri_data.append(line)\n\n log_data = [{\"meta\": log.get_meta(), \"data\": uri_data}]\n\n # Install static template files in report directory\n template_dir = os.path.join(module_dir, \"template\")\n dir_util.copy_tree(os.path.join(template_dir, \"js\"),\n os.path.join(report_dir, \"js\"))\n dir_util.copy_tree(os.path.join(template_dir, \"css\"),\n os.path.join(report_dir, \"css\"))\n dir_util.copy_tree(os.path.join(template_dir, \"img\"),\n os.path.join(report_dir, \"img\"))\n shutil.copyfile(os.path.join(template_dir, \"index.htm\"),\n os.path.join(report_dir, \"index.htm\"))\n\n # Create per-run directory for report output\n if not os.path.isdir(run_dir):\n os.makedirs(run_dir)\n\n # Copy profiles\n if \"profiles\" in meta:\n for profile in meta[\"profiles\"]:\n log_zip = log.part(profile[\"log_part\"])\n run_dir_zip = os.path.join(run_dir, profile[\"log_part\"])\n logger.debug(\"Copying `%s` profile archive from `%s` to `%s`\" % (profile[\"name\"], log_zip, run_dir_zip))\n shutil.copyfile(log_zip, run_dir_zip)\n\n cert_dir = os.path.join(run_dir, \"certs\")\n __extract_certificates(log, cert_dir)\n\n shutil.copyfile(os.path.join(template_dir, \"report_template.htm\"),\n os.path.join(run_dir, \"index.htm\"))\n\n # Write the final log file\n with open(os.path.join(run_dir, \"log.json\"), \"w\") as log_file:\n log_file.write(json.dumps(log_data, indent=4, sort_keys=True))\n\n # Append to runs log\n new_run_log = {\n \"run\": timestamp,\n \"branch\": meta[\"test_metadata\"][\"branch\"].capitalize(),\n \"errors\": len(log),\n \"description\": \"Fx%s %s vs Fx%s %s\" % (meta[\"test_metadata\"][\"app_version\"],\n meta[\"test_metadata\"][\"branch\"],\n meta[\"base_metadata\"][\"app_version\"],\n meta[\"base_metadata\"][\"branch\"])\n }\n runs_log[0][\"data\"].append(new_run_log)\n logger.debug(\"Writing back runs log to `%s`\" % runs_log_file)\n with open(runs_log_file, \"w\") as f:\n f.write(json.dumps(runs_log, indent=4, sort_keys=True))\n\n\ndef __extract_certificates(log, cert_dir):\n global logger\n\n if not os.path.exists(cert_dir):\n os.makedirs(cert_dir)\n\n for log_line in log:\n result = {\n \"host\": log_line[\"host\"],\n \"rank\": log_line[\"rank\"],\n \"response\": log_line[\"response\"]\n }\n cert_file = os.path.join(cert_dir, \"%s.der\" % result[\"host\"])\n if \"certificate_chain\" in result[\"response\"][\"result\"][\"info\"] \\\n and result[\"response\"][\"result\"][\"info\"][\"certificate_chain\"] is not None:\n server_cert_string = \"\".join(map(chr, result[\"response\"][\"result\"][\"info\"][\"certificate_chain\"][0]))\n logger.debug(\"Writing certificate data for `%s` to `%s`\" % (result[\"host\"], cert_file))\n with open(cert_file, \"w\") as f:\n f.write(server_cert_string)\n else:\n logger.debug(\"No certificate data available for `%s`\" % result[\"host\"])\n\n\nNSErrorMap = {\n # For network error messages that are not obtainable otherwise\n # https://developer.mozilla.org/en-US/docs/Mozilla/Errors\n 0X00000000: \"NS_OK\",\n 0X80004004: \"NS_ERROR_ABORT\",\n 0X8000FFFF: \"UNEXPECTED_ERROR\",\n 0X804B0002: \"NS_BINDING_ABORTED\",\n 0X804B000A: \"ERROR_MALFORMED_URI\",\n 0X804B000D: \"CONNECTION_REFUSED_ERROR\",\n 0X804B0014: \"NET_RESET_ERROR\",\n 0X804B001E: \"DOMAIN_NOT_FOUND_ERROR\",\n}\n\n\ndef decode_ns_status(scan_result):\n status = scan_result[\"response\"][\"result\"][\"info\"][\"status\"]\n try:\n return NSErrorMap[status]\n except KeyError:\n return \"UNKNOWN_STATUS\"\n\n\ndef decode_error_type(scan_result):\n status = scan_result[\"response\"][\"result\"][\"info\"][\"status\"]\n if status & 0xff0000 == 0x5a0000: # security module\n error_class = scan_result[\"response\"][\"result\"][\"info\"][\"error_class\"]\n if error_class == 2: # nsINSSErrorsService::ERROR_CLASS_BAD_CERT\n return \"certificate\"\n else:\n return \"protocol\"\n else:\n return \"network\"\n\n\ndef decode_raw_error(scan_result):\n if \"raw_error\" in scan_result[\"response\"][\"result\"][\"info\"]:\n raw_error = scan_result[\"response\"][\"result\"][\"info\"][\"raw_error\"]\n if \"Error code:\" in raw_error:\n return raw_error.split(\"Error code:\")[1].split(\">\")[1].split(\"<\")[0]\n return decode_ns_status(scan_result)\n\n\ndef collect_error_info(scan_result):\n error_info = {\n \"message\": decode_raw_error(scan_result),\n \"code\": \"%s\" % hex(scan_result[\"response\"][\"result\"][\"info\"][\"status\"]),\n \"type\": decode_error_type(scan_result)\n }\n return error_info\n\n\ndef collect_site_info(scan_result):\n site_info = {\n \"timestamp\": scan_result[\"response\"][\"response_time\"],\n \"connectionSpeed\": scan_result[\"response\"][\"response_time\"] - scan_result[\"response\"][\"command_time\"],\n \"uri\": scan_result[\"host\"],\n \"rank\": scan_result[\"rank\"]\n }\n return site_info\n\n\ndef collect_certificate_info(scan_result):\n\n result = scan_result[\"response\"][\"result\"]\n\n if not result[\"info\"][\"ssl_status_status\"]:\n return {}\n\n status = result[\"info\"][\"ssl_status\"]\n\n server_cert = status[\"serverCert\"]\n parsed_server_cert = cert.Cert(result[\"info\"][\"certificate_chain\"][0])\n\n root_cert = server_cert\n chain_length = 1\n while root_cert[\"issuer\"] is not None:\n root_cert = root_cert[\"issuer\"]\n chain_length += 1\n\n cert_info = {\n \"nickname\": server_cert[\"nickname\"] if \"nickname\" in server_cert else \"(no nickname)\",\n \"emailAddress\": server_cert[\"emailAddress\"],\n \"subjectName\": server_cert[\"subjectName\"],\n \"commonName\": server_cert[\"commonName\"],\n \"organization\": server_cert[\"organization\"],\n \"organizationalUnit\": server_cert[\"organizationalUnit\"],\n \"issuerCommonName\": server_cert[\"issuerCommonName\"],\n \"issuerOrganization\": server_cert[\"issuerOrganization\"],\n \"sha1Fingerprint\": server_cert[\"sha1Fingerprint\"],\n \"sha256Fingerprint\": server_cert[\"sha256Fingerprint\"],\n \"chainLength\": chain_length,\n \"certifiedUsages\": result[\"info\"][\"certified_usages\"],\n \"validityNotBefore\": server_cert[\"validity\"][\"notBeforeGMT\"],\n \"validityNotAfter\": server_cert[\"validity\"][\"notAfterGMT\"],\n \"isEV\": str(status[\"isExtendedValidation\"]),\n \"subjectAltName\": parsed_server_cert.subject_alt_name(),\n \"signatureAlgorithm\": parsed_server_cert.signature_hash_algorithm(),\n \"keyUsage\": server_cert[\"keyUsages\"],\n \"extKeyUsage\": parsed_server_cert.ext_key_usage(),\n \"rootCertificateSubjectName\": root_cert[\"subjectName\"],\n \"rootCertificateOrganization\": root_cert[\"organization\"],\n \"rootCertificateOrganizationalUnit\": root_cert[\"organizationalUnit\"],\n \"rootCertificateSHA1Fingerprint\": root_cert[\"sha1Fingerprint\"],\n }\n\n return cert_info\n\n\ndef collect_scan_info(scan_result):\n return {\n \"site_info\": collect_site_info(scan_result),\n \"error\": collect_error_info(scan_result),\n \"cert_info\": collect_certificate_info(scan_result)\n }\n\n\ndef add_performance_info(log_data, scan_result):\n log_data[\"site_info\"][\"connectionSpeedChange\"] = scan_result[\"response\"][\"connection_speed_change\"]\n log_data[\"site_info\"][\"connectionSpeedSamples\"] = scan_result[\"response\"][\"connection_speed_samples\"]\n","repo_name":"arroway/tls-canary","sub_path":"tlscanary/report.py","file_name":"report.py","file_ext":"py","file_size_in_byte":10757,"program_lang":"python","lang":"en","doc_type":"code","dataset":"github-code","pt":"80"}
+{"seq_id":"33004838807","text":"from torch.utils.data import DataLoader\nimport torch\nfrom hetu.gpu_ops.Node import Op\nfrom hetu import ndarray\n\nimport numpy as np\nimport os.path as osp\nimport h5py\n\nfrom more_itertools import peekable\n\ndef tensor2ndarray(x):\n return ndarray.array(x.numpy(), ctx=ndarray.cpu())\n\nclass WikiCorpusDataset():\n def __init__(self, data_name, rank, nrank):\n self.data_name = data_name\n self.rank = rank\n self.nrank = nrank\n self.data_id = rank\n self.reload_data()\n\n def reload_data(self):\n directory = osp.expanduser(\"~/.cache/hetu/datasets/wikicorpus_en/\")\n fname = directory + \"wikicorpus_en_training_{}.hdf5\".format(self.data_id)\n if not osp.exists(fname):\n self.data_id = self.rank\n fname = directory + \"wikicorpus_en_training_{}.hdf5\".format(self.data_id)\n assert osp.exists(fname)\n self.data_id += self.nrank\n f = h5py.File(fname, mode='r')\n if self.data_name == \"input_ids\":\n self.data = f[\"input_ids\"][:]\n elif self.data_name == \"token_type_ids\":\n self.data = f[\"segment_ids\"][:]\n elif self.data_name == \"masked_lm_labels\":\n masked_lm_positions = f[\"masked_lm_positions\"][:]\n masked_lm_ids = f[\"masked_lm_ids\"][:]\n self.data = np.ones(f[\"input_ids\"].shape, dtype=np.int64) * -1\n # store number of masked tokens in index\n n, max_pred_len = masked_lm_positions.shape\n x = np.arange(n).repeat(max_pred_len).reshape(n, max_pred_len)\n self.data[(x, masked_lm_positions)] = masked_lm_ids\n self.data[:, 0] = -1\n elif self.data_name == \"next_sentence_label\":\n self.data = f[\"next_sentence_labels\"][:]\n elif self.data_name == \"attention_mask\":\n self.data = f[\"input_mask\"][:]\n else:\n raise NameError(\"Data name not correct.\")\n f.close()\n self.data = torch.Tensor(self.data)\n\n def __getitem__(self, index):\n return self.data[index]\n\n def __len__(self):\n return self.data.shape[0]\n\n def shape(self):\n return self.data[0].shape\n\nclass WikiCorpusDataLoader(Op):\n def __init__(self, batch_size, data_name, transform=None, tondarry=True):\n super().__init__(WikiCorpusDataLoader, [], ndarray.cpu(0))\n self.on_gpu = True\n self.on_cpu = False\n self.name = \"WikiCorpusDataLoader\"\n self.desc = self.name\n self.batch_size = batch_size\n self.tondarry=tondarry\n self.transform = transform\n self.data_name = data_name\n\n def get_batch_num(self, name):\n if name==\"train\":\n return 100\n else:\n assert False\n\n def get_arr(self, name):\n if name==\"train\":\n return next(self.dl_train_gen)\n else:\n assert False\n\n def get_cur_shape(self, name):\n return self.dl_train_gen.peek().shape\n\n def infer_shape(self, input_shapes):\n raise NotImplementedError\n\n def gradient(self, output_grad):\n return None\n\n def backward_hook(self, config):\n if config.pipeline:\n rank, nrank = config.pipeline_dp_rank, config.nrank // config.pipeline_nrank\n elif config.context_launch:\n rank, nrank = config.rank, config.nrank\n else:\n rank, nrank = 0, 1\n self.train_data = WikiCorpusDataset(self.data_name, rank, nrank)\n gen = torch.Generator()\n gen.manual_seed(rank)\n self.dl_train = DataLoader(\n self.train_data, shuffle=False, drop_last=True,\n num_workers=1, batch_size=self.batch_size, generator=gen)\n self.dl_train_gen = peekable(self.get_generator(self.dl_train))\n\n def get_generator(self, dataloader):\n while True:\n for _, x in enumerate(dataloader):\n if self.transform:\n x = self.transform(x)\n if self.tondarry:\n yield tensor2ndarray(x)\n else:\n yield x\n self.train_data.reload_data()\n\n\n","repo_name":"Hsword/VLDB2023_SDPipe","sub_path":"artifacts/pipeline/models/wiki.py","file_name":"wiki.py","file_ext":"py","file_size_in_byte":4096,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"80"}
+{"seq_id":"43022726988","text":"import cv2 as cv\r\nimport numpy as np\r\ncap = cv.VideoCapture(\"bolt_test_pothole.mp4\") #opening the video\r\n#cap = cv.VideoCapture(\"virat_test_pothole.mp4\")\r\nwhile cap.isOpened():\r\n #reading each frame individually\r\n ret, frame = cap.read() \r\n # if frame is read correctly ret is True\r\n if not ret:\r\n #breaking when the stream ends\r\n print(\"Can't receive frame (stream end!). Exiting ...\") \r\n break\r\n #convert to grayscale\r\n gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)\r\n #run a binary thresholding process to detect only white pixels above the threshold\r\n ret, thresh = cv.threshold(gray, 220, 255, cv.THRESH_BINARY)\r\n kernel1 = cv.getStructuringElement(cv.MORPH_RECT, (3,3))\r\n kernel2 = np.ones((5,5),np.uint8)\r\n #erosion and dilation\r\n erosion = cv.erode(thresh,kernel2,iterations = 1)\r\n dilate = cv.dilate(erosion, kernel1, iterations=4)\r\n #detecting contours\r\n contours, _ = cv.findContours(dilate, cv.RETR_EXTERNAL, cv.CHAIN_APPROX_SIMPLE)\r\n color = (0,255,0)\r\n for c in contours:\r\n poly=[None]*1\r\n perim = cv.arcLength(c, True)\r\n boundRect=cv.boundingRect(c)\r\n epsilon = 0.02 * cv.arcLength(c, True)\r\n poly[0] = cv.approxPolyDP(c, epsilon, True)\r\n #filtering the contours and draw their apprroximated polygons and bouding boxes\r\n if perim <600 and perim>30 and boundRect[2]<250 and boundRect[3]<100 and boundRect[2]>30 and len(poly[0])>3 :\r\n cv.drawContours(frame, poly, -1, color)\r\n cv.rectangle(frame, (int(boundRect[0]), int(boundRect[1])), \r\n (int(boundRect[0]+boundRect[2]), int(boundRect[1]+boundRect[3])), color, 2)\r\n #draw everything on the original frame itself\r\n cv.imshow('frame', frame)\r\n # wait after each frame to adjust speed\r\n if cv.waitKey(2) == ord('q'):\r\n break\r\ncap.release()\r\ncv.destroyAllWindows()\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","repo_name":"RamziDevil/Abhiyaan_App","sub_path":"opencv.py","file_name":"opencv.py","file_ext":"py","file_size_in_byte":1924,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"22702797862","text":"import json\n\n\ndef add_q_and_a():\n\tq = input('Enter a question:')\n\ta = input('Enter answer:')\n\n\tq_num=len(q_and_a)\n\tq = f'{q_num+1}.{q}'\n\tq_and_a[q]=a\n\ndef to_json(data):\n\tf = open(json_file, 'w')\n\tjson.dump(data, f)\n\n\njson_file = 'data.json'\n\nq_and_a = json.load(open(json_file,'r'))\n\nadd_q_and_a()\n\nfor q, a in q_and_a.items():\n\tprint(f'{q} - {a}')\n\nto_json(q_and_a)\n\n\n\n\n","repo_name":"WWWCourses/PythonCourse_27.02.2023-Labs","sub_path":"lab26/data_interchange_demos/QuizGame/main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":372,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"80"}
+{"seq_id":"40662529146","text":"import os\n\nimport views\nfrom framework.core import Application\n\nroot = os.getcwd() + '\\\\html'\n\nfolders_tree = {\n 'root': root,\n 'static': root + '\\\\static\\\\',\n 'pictures': root + '\\\\pictures\\\\',\n 'templates': root + '\\\\templates\\\\'\n}\n\nurlpatterns = {\n '/': views.main_view,\n '/about': views.about_view,\n '/about/': views.about_view,\n '/contacts': views.contacts_view,\n '/contacts/': views.contacts_view,\n '/register': views.register_view,\n '/register/': views.register_view,\n '/info': views.info_view,\n '/info/': views.info_view,\n '/new_category': views.n_cat_view,\n '/new_category/': views.n_cat_view,\n '/new_course': views.n_course_view,\n '/new_course/': views.n_course_view,\n '*': views.page_404_view\n}\n\n\ndef secret_controller(request):\n request['secret_key'] = 'SECRET'\n\n\nfront_controllers = [\n secret_controller\n]\n\napplication = Application(urlpatterns, front_controllers)\n\n\n# waitress-serve --listen=127.0.0.1:8000 main:application\n","repo_name":"RomanovYS/Lesson-Arch-and-Design-Patterns-in-Python","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":998,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"16542800079","text":"# This Source Code Form is subject to the terms of the Mozilla Public\n# License, v. 2.0. If a copy of the MPL was not distributed with this\n# file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\"\"\"\nProxies for shared freeswitch objects\n\"\"\"\nimport functools\nimport signal\nfrom collections import OrderedDict\nimport multiprocessing as mp\nfrom multiprocessing import managers, util\n# from multiprocessing.managers import State, DictProxy\nfrom utils import get_logger\nfrom . import utils\n\n\n# mp debugging\n_log_level = None\n\n\ndef set_debug(toggle=True):\n global _log_level\n logger = mp.log_to_stderr()\n if toggle:\n # _log_level = logger.getLevel()\n logger.setLevel('DEBUG')\n # else:\n # logger.setLevel(_log_level)\n\n\n# \"transparent\" proxy methods\ndef _repr(self):\n return self._callmethod('__repr__')\n\n\ndef _proxy_dir(self):\n try: # to get the proxy listing\n attrs = self._callmethod('__dir__')\n except IOError:\n assert not self._manager._process.is_alive(),\\\n \"Mng is alive but proxy received IOerror!?\"\n raise RuntimeError(\"the proxy mng has died?!\")\n except managers.RemoteError:\n attrs = dir(type(self))\n # attrs.extend(self.exposed)\n attrs.extend(utils._dir(self))\n return attrs\n\n\ndef make_inst_proxy(cls, exposed=None, method_to_typeid=None):\n '''\n Return a custom proxy for wrapping access to a shared instance\n\n Parameters\n ----------\n cls : type\n Class for which a proxy object should be created\n exposed : list\n Sequence of methods which should be made public via the proxy\n object. If not provided public methods are automatically\n retrieved from the class' declared interface\n\n Returns\n -------\n proxy : a subclass of mp.managers.BaseProxy with a getattr/setattr\n interface (see mp.managers.py for details)\n '''\n if exposed is None:\n try:\n exposed = cls._exposed\n except AttributeError:\n exposed = managers.public_methods(cls)\n\n # auto-attach listed methods\n ProxyBase = managers.MakeProxyType('ProxyBase', exposed)\n\n # make mutable to extend\n exposed = list(ProxyBase._exposed_)\n\n class InstProxy(ProxyBase):\n _exposed_ = tuple(exposed + ['__getattribute__', '__setattr__',\n '__dir__'])\n _attr_redirect = {}\n\n __repr__ = _repr\n\n __dir__ = _proxy_dir\n\n def __getattr__(self, key):\n try:\n return object.__getattribute__(self, key)\n except AttributeError:\n callmethod = object.__getattribute__(self, '_callmethod')\n # handle attr redirects declared by this proxy\n if key in self._attr_redirect:\n method = self._attr_redirect[key]\n return callmethod(method)\n else:\n method = '__getattribute__'\n return callmethod(method, (key,))\n\n def __setattr__(self, key, value):\n if key[0] == '_': # this is critical do not change\n return object.__setattr__(self, key, value)\n else:\n callmethod = object.__getattribute__(self, '_callmethod')\n return callmethod('__setattr__', (key, value))\n\n # mark shared 'sub-proxy' attributes\n if method_to_typeid:\n InstProxy._method_to_typeid_.update(method_to_typeid)\n\n return InstProxy\n\n\n# override the default manager to catch a weird OSError and\n# add some functionality\nclass CustomSyncMng(managers.SyncManager):\n\n @staticmethod\n def _finalize_manager(process, address, authkey, state, _Client):\n '''\n Shutdown the manager process; will be registered as a finalizer\n '''\n if process.is_alive():\n util.info('sending shutdown message to manager')\n try:\n conn = _Client(address, authkey=authkey)\n try:\n managers.dispatch(conn, None, 'shutdown')\n finally:\n conn.close()\n except Exception:\n pass\n\n process.join(timeout=0.2)\n if process.is_alive():\n util.info('manager still alive')\n if hasattr(process, 'terminate'):\n util.info('trying to `terminate()` manager process')\n\n try:\n process.terminate()\n process.join(timeout=0.1)\n # XXX: catch the OS error ... something weird is going on here..\n except OSError:\n pass\n if process.is_alive():\n util.info('manager still alive after terminate')\n\n state.value = managers.State.SHUTDOWN\n try:\n del managers.BaseProxy._address_to_local[address]\n except KeyError:\n pass\n\n @functools.wraps(managers.BaseManager.start)\n def start(self, *args, **kwargs):\n try:\n # disable SIGINT while we spawn\n signal.signal(signal.SIGINT, signal.SIG_IGN)\n super(self.__class__, self).start(*args, **kwargs)\n finally:\n # re-enable SIGINT\n signal.signal(signal.SIGINT, signal.default_int_handler)\n\n @classmethod\n def auto_register(mng_cls, cls, proxytype=None, init_args=(),\n init_kwargs={}, **kwargs):\n '''\n Register shared object classes with a default proxytype.\n\n Parameters\n ----------\n cls : type\n class which is to be registered with the manager for use\n as a shared object\n proxytype : subclass of multiprocessing.managers.BaseProxy\n Proxy object used to communicate with a shared instance of cls.\n If None, then the following steps are attempted:\n 1) an attempt is made to call the class' build_proxy method which\n is expected to provision and return a proxy object as well as\n register with the manager any sub-proxies which it expects to\n utilize.\n 2) failing that, a default -> make_inst_proxy(cls) will be used.\n '''\n assert type(cls) == type\n typeid = cls.__name__\n if proxytype is None:\n try: # to use cls defined proxy\n proxytype = cls.build_proxy(mng_cls)\n except AttributeError:\n proxytype = make_inst_proxy(cls)\n get_logger().debug(\"no proxy was provided for '{}' using \"\n \"default '{}'\".format(cls, proxytype))\n\n cls = functools.partial(cls, *init_args, **init_kwargs)\n mng_cls.register(typeid, cls, proxytype=proxytype, **kwargs)\n\n\n# Register some more useful shared types\nCustomSyncMng.register('MpLock', mp.Lock, managers.AcquirerProxy)\n\n\nclass OrderedDictProxy(managers.DictProxy):\n __dir__ = _proxy_dir\n __repr__ = _repr\n\nCustomSyncMng.register('OrderedDict', OrderedDict, OrderedDictProxy)\n\n\ndef dict_of_proxies(value_type, mng, dict_typeid='OrderedDict'):\n assert type(value_type) == type\n name = value_type.__name__\n assert name in mng._registry\n dicttype, exp, meth_to_type, dictproxytype = mng._registry[dict_typeid]\n proxy_name = '{}sDictProxy'.format(name)\n # make a new subclass of the specified dict proxy type\n # and make it contain sub-proxies of value_type\n proxytype = type(proxy_name, (dictproxytype,), {})\n proxytype._method_to_typeid_ = {'__getitem__': name}\n mng.register(proxy_name, dicttype, proxytype)\n return proxy_name, proxytype\n\n\ndef get_mng(address=None, authkey=None, proxy_map={},\n _mng_type=CustomSyncMng,\n _mng_cache={}, **kwargs):\n '''\n Return a custom multiprocessing.mangers proxy manager which has\n some extra features.\n\n Parameters\n ----------\n proxy_map : map\n An optional map of python objects to proxy objects which will\n immediately be 'auto registered' with the requested manager.\n Proxies must inherit from multiprocessing.managers.BaseProxy\n kwargs : same as for mp.BaseManager\n\n Returns\n -------\n mng : instance of {} by default\n '''.format(_mng_type)\n try:\n addr = kwargs.get('address', None)\n mng = _mng_cache[addr]\n except KeyError:\n # TODO: calls to rypc if address is not found on this host\n # eg. if kwargs['address'] not on localhost: rpyc.connect()\n mng = _mng_type(**kwargs)\n _mng_cache[addr] = mng\n\n # register shared objects with mng cls\n for cls, proxy in proxy_map.items():\n mng.auto_register(cls, proxytype=proxy, **kwargs)\n return mng\n","repo_name":"wwezhuimeng/switch","sub_path":"switchy/multiproc.py","file_name":"multiproc.py","file_ext":"py","file_size_in_byte":8732,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"80"}
+{"seq_id":"73536452444","text":"import json\nimport xml.etree.ElementTree as ET\nimport sys\n\nclass Human:\n def __init__(self, name, age, gender, birth_year):\n self.name = name\n self.age = age\n self.gender = gender\n self.birth_year = birth_year\n\n def convert_to_json(self):\n data = {\n 'name': self.name,\n 'age': self.age,\n 'gender': self.gender,\n 'birth_year': self.birth_year\n }\n return json.dumps(data, indent=2)\n\n def convert_to_xml(self):\n human_element = ET.Element('Human')\n name_element = ET.SubElement(human_element, 'Name')\n name_element.text = self.name\n\n age_element = ET.SubElement(human_element, 'Age')\n age_element.text = str(self.age)\n\n gender_element = ET.SubElement(human_element, 'Gender')\n gender_element.text = self.gender\n\n birth_year_element = ET.SubElement(human_element, 'BirthYear')\n birth_year_element.text = str(self.birth_year)\n\n xml_str = ET.tostring(human_element, encoding='utf-8').decode('utf-8')\n return xml_str\n\nif __name__ == \"__main__\":\n if len(sys.argv) != 2:\n print(\"Usage: python script.py [json/xml]\")\n sys.exit(1)\n\n output_format = sys.argv[1].lower()\n\n human_instance = Human(\"Pears Brosnan\", 25, \"Male\", 1998)\n\n if output_format == 'json':\n json_data = human_instance.convert_to_json()\n print(json_data)\n with open('output.json', 'w') as json_file:\n json_file.write(json_data)\n elif output_format == 'xml':\n xml_data = human_instance.convert_to_xml()\n print(xml_data)\n with open('output.xml', 'w') as xml_file:\n xml_file.write(xml_data)\n else:\n print(\"Invalid format. Please use 'json' or 'xml'.\")\n\n","repo_name":"YevheniyaSilenko/pytestFramework","sub_path":"HumanProject/Human_converter.py","file_name":"Human_converter.py","file_ext":"py","file_size_in_byte":1789,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"38859040209","text":"import json\r\nimport psycopg2\r\n\r\n# Define the filename\r\nfilename = \"C:/Users/ekodh/OneDrive/Desktop/Heart/db.json\"\r\n\r\nprint(\"Reading configuration from:\", filename)\r\n\r\ndef connectDB():\r\n try:\r\n print(\"Reading database configuration...\") \r\n with open(filename) as config_file:\r\n config = json.load(config_file)\r\n print(\"Connecting to the database...\")\r\n db_connection = psycopg2.connect(\r\n host=config['host'],\r\n dbname=config['dbname'],\r\n user=config['user'],\r\n password=config['password'],\r\n port=config['port']\r\n )\r\n print(\"Database connection established.\")\r\n return db_connection\r\n except Exception as error:\r\n print('Error while connecting to the database:', error)\r\n return None\r\n\r\nif __name__ == \"__main__\":\r\n connection = connectDB()\r\n if connection is not None:\r\n try:\r\n cursor = connection.cursor()\r\n\r\n # Create users table\r\n create_users_table = \"\"\"\r\n CREATE TABLE IF NOT EXISTS users (\r\n id SERIAL PRIMARY KEY,\r\n username VARCHAR(100) NOT NULL,\r\n password VARCHAR(100) NOT NULL,\r\n gender VARCHAR(10),\r\n email VARCHAR(100) NOT NULL,\r\n phone VARCHAR(20)\r\n )\r\n \"\"\"\r\n cursor.execute(create_users_table)\r\n\r\n # Create contact_form table\r\n create_contact_form_table = \"\"\"\r\n CREATE TABLE IF NOT EXISTS contact_form (\r\n id SERIAL PRIMARY KEY,\r\n name VARCHAR(100) NOT NULL,\r\n email VARCHAR(100) NOT NULL,\r\n message TEXT\r\n )\r\n \"\"\"\r\n cursor.execute(create_contact_form_table)\r\n\r\n # Commit the changes\r\n connection.commit()\r\n print(\"Tables created successfully.\")\r\n\r\n except psycopg2.Error as e:\r\n print(\"Error creating tables:\", e)\r\n connection.rollback()\r\n finally:\r\n if cursor:\r\n cursor.close()\r\n if connection:\r\n connection.close()\r\n else:\r\n print('Database connection could not be established.')\r\n","repo_name":"PrasannaNarisetti/Heart-Attack-Prediction","sub_path":"connect2DB.py","file_name":"connect2DB.py","file_ext":"py","file_size_in_byte":2273,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"3987722918","text":"from selenium import webdriver\nfrom selenium.webdriver.common.by import By\nfrom selenium.webdriver.chrome.options import Options\nimport time\nimport pyautogui\n\n\nopt = Options()\nopt.add_experimental_option(\"debuggerAddress\", \"localhost:8982\")\ndriver = webdriver.Chrome(\n executable_path=\"C:/Users/musta/Desktop/click/chromedriver.exe\", chrome_options=opt)\n# driver.get(\"https://...........\")\n\nfor i in range(350):\n pyautogui.dragTo(100, 150)\n print('-------------------------------Click Deneme Sayısı :',i)\n driver.execute_script(\"window.scrollTo(0,document.body.scrollHeight)\")\n time.sleep(2)\n ileri = driver.find_element(\n By.XPATH, '/html/body/in-root/in-users/in-dashboard-layout/main/in-lecture/div/div[1]/div/div[2]/span[2]/in-loading-button/dx-button/div/span')\n\n ileri.click()\n pyautogui.dragTo(150, 100)\n for x in range(60):\n time.sleep(1)\n print(x)\n\n\n","repo_name":"marcussteel/python-auto-click","sub_path":"click.py","file_name":"click.py","file_ext":"py","file_size_in_byte":909,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"74677475805","text":"# This module is meant to accompany the work in \"Unitary Entanglement Generation\n# in Hierarchical Quantum Networks\" Bapat et al 2018\n# IPython notebooks are provided which demonstrate the functions included by\n# reproducing the results printed in the text\n# Contact Zachary Eldredge at eldredge@umd.edu with questions\n\nimport matplotlib.pyplot as plt\nimport itertools as it\nimport random\nimport copy\nimport numpy as np\nimport networkx as nx\nfrom functools import reduce\nfrom operator import mul, add\nfrom math import log, sqrt, ceil\nimport os\nimport pandas as pd\n\n########################################\n## PART 1: Functions for Probabilistic Unitary Simulation\n########################################\n\n\n#1A: Weighted Graph construction\ndef build_weighted_hierarchical(H : nx.Graph,levels : int, wfun): \n \"\"\" Function to build a hierarchical weighted graph out of a small, simple\n graph\n\n Parameters\n ----------\n H, networkx.Graph:\n A graph which will be hierarchically expanded to a larger one\n levels, int:\n Number of times to repeat the nesting process\n wfun, function from int -> int or float:\n A function that defines what weight to use for connections at the lth\n level of the hierarchy.\n\n Returns\n -------\n hierarchy, Graph:\n The iterated hierarchical product of H with itself and the appropriate\n weight function\n \"\"\"\n # Build a hierarchical product of one graph ('H') with 'levels' levels,\n # where the l-th level has weight wfun(l) Note that this identical to the\n # build_hierarchical function, and I refer you to that function for the\n # algorithm that constructs the graph. In this function, we use the same\n # logic except that we add the weight according to the passed function\n label_list = list(it.product(list(H.nodes()),repeat=levels))\n hierarchy = nx.Graph()\n for i in label_list: # Add all those nodes\n hierarchy.add_node(i)\n \n for node in label_list:\n node_num = hierarchyToNumber(node, len(H.nodes()))\n for l in range(levels):\n base = node[:-(1+l)] # get the first part of the node\n for h in H.edges(node[-(l+1)]): # for every edge in base graph\n connected_node = base + (h[-1],) + tuple(0 for i in range(l))\n connected_node_num = hierarchyToNumber(connected_node, \n len(H.nodes()))\n hierarchy.add_edge(node, connected_node, weight = wfun(l)) \n # add the corresponding edge in this hierarchy graph\n if node[-(l+1)] != 0:\n break\n \n return hierarchy\n\ndef hierarchyToNumber(digits, b):\n \"\"\" Function to convert an address in the hierarchy to a number.\n\n Parameters\n ----------\n digits, tuple of ints:\n The address in the hierarchy.\n b, int:\n The order of the base graph for the hierarcical product.\n\n Returns\n -------\n count, int:\n A number which can be used to index the hierarchy.\n \"\"\"\n\n count = 0\n for pos, d in enumerate(digits):\n count += d*(b**pos)\n return count\n\n#1B: GHZ Creation (\"Color Spread\") Simulation\ndef nx_color_spread(init_pt, graph,maxtsteps):\n \"\"\" Function to perform the random simulation of spreading the GHZ state on\n a weighted graph\n\n Parameters\n ----------\n init_pt, any type:\n Label for the initial point we are spreading from. Should be present in\n the graph.\n graph, Graph:\n Weighted graph describing connections between nodes. Weight of each node\n will be the probability of success\n maxtsteps, int:\n Maximum number of timesteps to run simulation for\n\n Returns\n -------\n color_count, list of ints:\n List whose ith element is the number of converted nodes at the ith\n timestep\n boundary_count, list of ints:\n List whose ith element is the size of the boundary at the ith timestep\n graph, Graph:\n The graph (complete with converted nodes recolored blue) after the final\n timestep\n \"\"\"\n # Try to probabilistically color the graph and see how long it takes\n # Function will return a list of how many points were colored at each time\n # step\n color_count = [1]\n color_dict = {}\n for x in graph.nodes():\n color_dict[x] = 'white'\n color_dict[init_pt] = 'blue' # I like blue.\n nodes = [init_pt]\n boundary = list(graph[init_pt].keys())\n boundary_count = [len(boundary)]\n for t in range(maxtsteps):\n new_boundary = copy.deepcopy(boundary) # Make a copy of the current\n # boundary to update as we go\n for b in boundary: # Look at each node b on the boundary\n for n in graph[b]: \n # Look at each node connected to those nodes\n if color_dict[n] == 'blue': \n # If they are blue, there is chance they spread the entanglement\n if random.uniform(0,1) <= graph[n][b]['weight']:\n # weight provides the probability of spread\n color_dict[b] = 'blue' # color that node\n nodes.append(b)\n # Now that we have added the node b, we need to remove\n # it from the list of the boundary\n new_boundary.remove(b)\n for new_b in graph[b]:\n # Don't add already-added nodes to boundary!\n if color_dict[new_b] != 'blue':\n # Don't double up in the boundary\n if new_b not in new_boundary: \n new_boundary.append(new_b)\n if color_dict[b] == 'blue':\n break # Break out of this loop\n boundary = new_boundary\n color_count.append(len(nodes))\n boundary_count.append(len(boundary))\n return color_count\n\n\ndef run_trials(graph, ntrials, init_pt, maxtsteps = 10000):\n \"\"\" Function to run many trials of the function nx_color_spread and report\n the average.\n\n Parameters\n ----------\n graph, nx.Graph:\n The graph which the GHZ state creation is being tried on.\n ntrials, int:\n Number of trials to run.\n init_pt:\n A node label in graph which is identified as the inital qubit in state\n |+> from which the GHZ state will be created.\n\n Returns\n -------\n mean_time, float:\n The average number of steps required to complete the state creation.\n \"\"\"\n trials = []\n for trial in range(ntrials):\n trials.append(nx_color_spread(init_pt, graph, maxtsteps).index(len(graph)))\n\n mean_time = np.mean(trials)\n return mean_time\n\n#1C Analytic functions for weighted diameters\ndef nn_fit_fn(x):\n \"\"\" Function to guess from analytics the time requried to complete the GHZ\n state creation on the nearest-neighbor 2D grid when starting from one\n corner.\n\n Parameters\n ----------\n x, int:\n Size of the grid, in total number of qubits.\n\n Returns\n -------\n The total distance that needs to be traversed by two-qubit gates to create\n the GHZ state.\n \"\"\"\n return 2*(sqrt(x) - 1)\n\ndef hier_fit_fn(x, alpha,unit_size):\n \"\"\" Function to guess from analytics the time requried to complete the GHZ\n state creation on the hierarchy when starting from a bottom-level node.\n\n Parameters\n ----------\n x, int:\n Size of the graph, in total number of qubits.\n alpha, float:\n Scaling constant of the graph.\n unit_size, int:\n Order of the base graph in the hierarchy.\n\n Returns\n -------\n The total distance that needs to be traversed by two-qubit gates to create\n the GHZ state.\n \"\"\"\n #Note that, as dicussed in the paper, we convert alpha (the weight that\n # scales the probabilities) to 1/alpha (to get estimated times)\n levels = log(x, unit_size)\n beta = 1/alpha\n hier_fit = (beta**levels + beta**(levels - 1) - 2)/(beta - 1)\n return hier_fit\n\n########################################\n## PART 2: Functions for Circuit Placement \n########################################\n\n# note the circuit placement notebook will also call some Part 1 functions\n\n\n#2A: Functions that aren't (directly) related to parition and rotate algorithm\ndef get_random_comp_graph(nqubits, ngates):\n \"\"\" Function to build a random computational graph.\n\n Parameters\n ----------\n nqubits, int:\n Number of qubits which will be included in the graph\n ngates, int: \n The total number of gates in the circuit the computational graph\n represents\n\n Returns\n -------\n comp_graph, nx.Graph:\n A computational graph for a random circuit with ngates nodes and total\n edge weigth ngates\n \"\"\"\n comp_graph = nx.Graph() # Create an empty graph\n for q in range(nqubits): # Add all the desired nodes\n comp_graph.add_node(q)\n for g in range(ngates): # Now we will add all the edges\n # Pick two random points\n choose = np.random.choice(np.arange(nqubits),(2,),replace=False) \n # If we've already got that edge, (there is already a gate)\n if comp_graph.has_edge(*choose):\n # increase its weight by one (add another gate)\n comp_graph[choose[0]][choose[1]]['weight'] += 1\n else:\n comp_graph.add_edge(*choose, weight = 1) # Otherwise make a new edge\n return comp_graph\n\n\ndef length_cost(c, metric, mapping):\n \"\"\" Function to evaluate the cost of a computational graph C being placed on\n physical architecture.\n\n Parameters\n ----------\n c, nx.Graph:\n The computational graph. c[i][j]['weight'] yields the total number of\n gates between qubit i and qubit j in the algorithm to be placed.\n\n metric, nx.Graph:\n The graph representing the physical architecture (the metric graph).\n metric[i][j] exists if and only if the nodes i and j can perform a\n two-qubit gate between them.\n\n mapping, dictionary:\n A dictionary where every key is a node label from the comptuational\n graph and every value is a node label from the metric graph,\n representing the proposed circuit placement. Should be a one-to-one map. \n\n Returns\n -------\n cost, int or float:\n The total cost of the mapping, that is, the total distance traversed by\n all gates.\n \"\"\"\n # First we reverse the mapping\n rev_mapping = {v:k for k,v in mapping.items()} \n # A note from the authors: why use rev_mapping like this, why not make the\n # map in that order to start with?\n # The reason is that in other code we have developed, we have used\n # rev_mapping to relabel the nodes, which networkx allows you to do easily\n # when the dictionary is in this order. \n cost = 0 # Initialize the cost\n for i, j in c.edges(): \n # For every edge, accumulate the cost and multiply by the weight in c\n cost += nx.shortest_path_length(metric, source = rev_mapping[i], \n target = rev_mapping[j])*c[i][j]['weight']\n return cost\n\n\n#2B: Partition-and-Rotate Algorithm Functions\ndef pr_split_nodes(cgraph, node_list, k):\n \"\"\" Function which uses partition-and-rotate to produce a grouping of the\n nodes that can be used to place the circuit on a hierarchical graph. \n\n Parameters\n ----------\n cgraph, nx.Graph:\n Computational graph to cluster\n\n node_list, list of labels from cgraph:\n Nodes in node_list which will be clustered (used because this function\n is recursive)\n\n k, int:\n Number of partitions to create in the \"partition\" part of the algorithm \n\n Returns\n -------\n cluster_list, a list of lists of lists, etc:\n A list which can be fed to convert_split_list_to_dict() to produce the\n circuit mapping. In this list, nodes in the same sub-hierarchies are in\n the same sub-lists, and the first node or cluster in a list is at the\n root of that hierarchy.\n \"\"\"\n \n # PARTITION\n\n if len(node_list) <= k: # Everything in one cluster? no need to split!\n cluster_list = node_list # Return the list\n \n else:\n # Perform clustering on this set of nodes\n if len(nx.subgraph(cgraph,node_list).edges()) > 0: \n # Assuming there are edges, hand it off to paritioning subroutine\n cluster_list = metis_partition(nx.subgraph(cgraph,node_list), k)\n else:\n # If there are no edges, just chop it into three, it doesn't matter\n cluster_list = list(np.array_split(node_list,3)) \n # Now for each sublist, call pr_split_nodes (this function!) again\n for l in enumerate(cluster_list):\n # Now, we replace every list element with an element which is split.\n # this recursion continues until we only have k nodes in the\n # subgraph in question\n\n cluster_list[l[0]] = pr_split_nodes(cgraph,l[1], k) \n\n # ROTATE\n\n # Next, we sort each cluster in terms of the number of connections it has\n # leading outside the cluster. So for instance, at this point cluster_list\n # should be:\n # [ [cluster 1 ], [cluster 2], [cluster 3]] \n # We now look at each of them in turn and ask which one has the most\n # connections (in Cgraph) that lead to none of the others. That one gets the\n # 0-coordinate. See the function count_out_from_set for more info.\n\n # Each cluster starts out assuming it has no outward connection\n out_scores = [0]*k\n for l in range(k):\n # Then for each one we count how many outward connections it has\n out_scores[l] = count_out_from_set(cgraph, cluster_list[l], node_list) \n\n # Now sort by those scores\n cluster_list = sorted(cluster_list, key = lambda x: \n count_out_from_set(cgraph, x, node_list), reverse = True) \n\n return cluster_list\n\n\ndef metis_partition(graph, nparts):\n \"\"\" Function which uses the Metis software package to partition a graph into\n several parts which are minimally connected and perfectly balanced. \n\n Parameters\n ----------\n graph, nx.Graph:\n Graph to partition\n nparts, int:\n Number of parts to partition the graph into \n\n Returns\n -------\n A list of nparts lists, where the elements which share a sublist belong to\n the same partition\n \"\"\"\n\n # This function works through what I will confess is an ugly hack: it writes\n # the graph to file using my function write_metis and then calls the Metis\n # command-line tool\n\n # Write the file\n write_metis(graph, './temp')\n # Execute Metis\n os.system('gpmetis -ptype=rb ' + './temp ' + str(nparts) + ' > /dev/null')\n # Remove the file we wrote\n os.system('rm ./temp')\n \n # Now, we're going to read in the file and put it into a numpy array\n part_data = np.empty(len(graph), int)\n with open('./temp.part.' + str(nparts)) as f: # Open the file\n # The kth line has information on the kth node\n for k,line in enumerate(f): \n part_data[k] = int(line[0]) \n # Node k will now be in partition labeled by part_data[k]\n os.system('rm ./temp.part.' + str(nparts)) # Delete that file\n\n # On semi-rare occasions, METIS does not yield a balanced partition, so\n # here's some code to fix that. I think this tends to happen if the graph is\n # disconnected or something, I'm not sure.\n\n # First, count all the different values in part_data \n vals, inds, counts = np.unique(part_data, \n return_index = True, return_counts = True)\n \n # IF all the partitions were the same size, every element of counts would be\n # the same, there'd be no standard deviation, so we use that as a diagnostic\n while np.std(counts) > 0: \n # find indices with too many and too few\n k_to_reduce = np.where(counts == max(counts)) \n k_to_increase = np.where(counts == min(counts)) \n # flip the first in k_to_reduce to be in k_to_increase\n part_data[inds[k_to_reduce]] = k_to_increase \n # redo standard dev calculation\n vals, inds, counts = np.unique(part_data, return_index = True, \n return_counts = True)\n \n # Alright, now we want to turn our partition data into a list of lists (how\n # we handle the data elsewhere). partition will be that list of lists;\n # initialize it empty\n partition = np.empty((nparts, len(graph)//nparts), int)\n\n for i in range(nparts): \n # For every partition, find every node whose corresponding part_data\n # indicates it belongs there and put it in that array\n partition[i,:] = np.array(graph.nodes())[np.where(\n np.array(part_data) == i)[0]]\n\n # Then return that array as a list-of-lists\n return [list(i) for i in partition] \n\ndef write_metis(graph, filename):\n \"\"\" Function to write a NetworkX Graph object to file in a form that can\n then be acted on by the Metis command-line program.\n\n Parameters\n ----------\n graph, nx.Graph:\n Graph to write to file\n\n filename, string:\n filename to use\n\n Returns\n -------\n None\n \"\"\"\n metis_file = [str(len(graph)) + ' ' + str(len(graph.edges())) + ' 001\\n']\n \n # Metis doesn't want a label above number of nodes\n metis_node_label_dict = {j:i for i,j in enumerate(graph.nodes())} \n \n for node in graph:\n node_string = ''\n for adj_node in graph[node]:\n node_string += ' ' + str(metis_node_label_dict[adj_node] + \n 1) + ' ' + str(graph[node][adj_node]['weight'])\n node_string += '\\n'\n metis_file.append(node_string)\n \n with open(filename,'w') as f:\n for n in metis_file:\n f.write(n)\n \n return\n\ndef count_out_from_set(cgraph, set_to_eval, set_to_leave):\n \"\"\" Function which counts how many connections lead out of a set. Used in\n rotation, since we want to ensure this set ends up being at the root of a\n hierarchy. \n\n Parameters\n ----------\n cgraph, nx.Graph:\n Computational graph partition-and-rotate is being performed on.\n\n set_to_eval:\n Set we are interested in seeing the total number of outward connections\n from.\n\n set_to_leave:\n Set of nodes whose edges we want to discount\n \n\n Returns\n -------\n count, float:\n Total weight of all edges that originate in set_to_eval and end\n somewhere besides set_to_leave\n \"\"\"\n count = 0 # initiate the count\n \n # we flatten so we have an easy to work with list of nodes of interest\n for node in flatten(set_to_eval): \n for edge in cgraph[node]: # look at every one of those edges\n # make sure they don't go to where we're ignoring\n if edge not in set_to_leave:\n # add that weight to the count\n count+=cgraph[node][edge]['weight'] \n return count\n\ndef flatten(l):\n \"\"\" Function for flattening lists-of-lists-of-lists in Python. \n\n Parameters\n ----------\n l, lists of lists of lists\n\n Returns\n -------\n A flattened version, a list of the individual items\n \"\"\"\n\n # We work with lists-of-lists-of-lists-etc rather than numpy arrays, because\n # we need to be able to replace the list elements with further lists for our\n # recursive scheme to work. BUT python lists can't be easily flattened\n # unlike numpy arrays. Since sometimes we just need the list without all the\n # smaller-scale detail, we need this function\n\n return list(np.array(l).flatten())\n\n\ndef convert_split_list_to_dict(in_list):\n \"\"\" Function to convert a \"splitting list\" of the type returned by our\n clustering algorithm into a dictionary with node mappings.\n\n Parameters\n ----------\n in_list, list of lists (of lists, etc):\n The output of a function like pr_split_nodes. This is a nested list of\n numbers in which qubits in the same sub-hierarchy are in the same\n sub-list, and the first entry in every element is the node/cluster which\n is at the root of that sub-hierarchy.\n\n Returns\n -------\n dictionary, a dictionary of tuple:int pairings:\n This tells us which node in the computational graph each node in the\n hierarchy corresponds to, with each node in the hierarchy represented by\n a tuple (equivalently, a base-k number where k is the order of the base\n graph).\n \"\"\"\n splitting_array = np.array(in_list)\n nlevels = len(splitting_array.shape) # we can deduce the number of levels\n k = splitting_array.shape[0] # as well as the order of the base graph k\n # Now just use the fact that every node in hierarchy is a base-k number\n dictionary = {i:splitting_array[i] for i in \n it.product(tuple(range(k)), repeat = nlevels)}\n return dictionary\n","repo_name":"zeldredge/unitary-modular","sub_path":"modular_entanglement.py","file_name":"modular_entanglement.py","file_ext":"py","file_size_in_byte":20952,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"13808479711","text":"#\n# Perceptron\n#\nfrom random import uniform\n\nLEARNING_RATE = 0.001\nCONST_A = uniform(0, 10)\nCONST_B = uniform(-0.5, 0.5)\n\ndef f(x):\n return CONST_A * x + CONST_B\n\ndef translateX(value):\n return int(-value * 200 + 200)\n\ndef translateY(value):\n return int(value * 200 + 200)\n\n#\n# Perceptron\n#\nclass Perceptron:\n ''' Perceptron '''\n def __init__(self, array_size, canvas=None):\n self.canvas = canvas\n self.neuron = Neuron()\n self.points = []\n if self.canvas is not None:\n self.errorLabel = self.canvas.create_text(5, 5, text='Current error : -', anchor='nw')\n for i in range(array_size):\n self.points.append(Point(canvas=self.canvas))\n\n def draw(self):\n for point in self.points:\n point.draw()\n\n def learn(self):\n errors = self.checkPoints()\n # FIXME: self.neuron.learn(error) for error in errors\n for error in errors:\n self.neuron.learn(error)\n # TODO: valider la gestion des erreurs\n error = sum(abs(x.error) for x in errors)\n if self.canvas is not None:\n self.canvas.itemconfig(self.errorLabel, text='Current error : %s' % error)\n else:\n print('Total error : %s' % error)\n return error\n \n def guessY(self, x):\n w0 = self.neuron.weights[0]\n w1 = self.neuron.weights[1]\n w2 = self.neuron.bias\n return -(w0/w1) * x - (w2/w1)\n\n def checkPoints(self):\n errors = []\n for point in self.points:\n guess = self.neuron.guess([point.x, point.y])\n point.cheked = (point.label == guess)\n errors.append(Error([point.x, point.y], point.label-guess))\n return errors\n\n#\n# Neuron\n#\nclass Neuron:\n def __init__(self):\n self.weights = [uniform(-1, 1), uniform(-1, 1)]\n self.bias = uniform(-1, 1)\n \n def guess(self, inputs):\n sum = self.bias\n for i in range(len(self.weights)):\n sum += inputs[i] * self.weights[i]\n if(sum >= 0):\n return 1\n return -1\n\n def learn(self, error):\n self.bias += error.error * LEARNING_RATE\n for i in range(len(self.weights)):\n self.weights[i] += error.inputs[i] * error.error * LEARNING_RATE\n \n#\n# Error\n#\nclass Error:\n def __init__(self, inputs, error):\n self.inputs = inputs\n self.error = error\n\n#\n# Point\n#\nclass Point:\n def __init__(self, x=None, y=None, canvas=None):\n self.canvas = canvas\n self.r = 5\n self.cheked = False\n\n if x is None:\n self.x = uniform(-1, 1)\n else:\n self.x = x\n\n if y is None:\n self.y = uniform(-1, 1)\n else:\n self.y = y\n\n if self.y >= f(self.x):\n self.label = 1\n else:\n self.label = -1\n\n if self.canvas is not None:\n fill_color = '#0000FF'\n if self.label == 1: #self.cheked:\n fill_color = '#00FF00'\n self.gx_proxy = self.canvas.create_oval(translateX(self.x)-self.r, translateY(self.y)-self.r, translateX(self.x)+self.r, translateY(self.y)+self.r, fill=fill_color)\n \n def draw(self):\n if self.canvas is not None:\n fill_color = '#0000FF'\n if self.label == 1: #self.cheked:\n fill_color = '#00FF00'\n self.canvas.coords(self.gx_proxy, translateX(self.x)-self.r, translateY(self.y)-self.r, translateX(self.x)+self.r, translateY(self.y)+self.r)\n self.canvas.itemconfig(self.gx_proxy, fill=fill_color)\n else:\n print('Point[%s, %s, %s] : %s' % (self.x, self.y, self.label, self.cheked))\n","repo_name":"vincentlambert/python-ml","sub_path":"src/perceptron/perceptron.py","file_name":"perceptron.py","file_ext":"py","file_size_in_byte":3688,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"72242101083","text":"# coding=utf-8\nfrom __future__ import absolute_import, print_function\n\nfrom suanpan.app.arguments import Folder, String, Float, Int\nfrom suanpan.app import app\nfrom tools import cli\nfrom lib.cli import FullHelpArgumentParser\n\n\n@app.input(Folder(key=\"inputData\"))\n@app.param(\n String(\n key=\"sortBy\",\n default=\"face\",\n help=\"blur, face, face-cnn, face-cnn-dissim, face-yaw, hist, hist-dissim\",\n )\n)\n@app.param(\n Float(\n key=\"refThreshold\",\n default=-1.0,\n help=\"(-1.0, 10.0) Defaults: face-cnn 7.2, hist 0.3\",\n )\n)\n@app.param(String(key=\"finalProcess\", default=\"rename\", help=\"folders, rename\"))\n@app.param(String(key=\"groupBy\", default=\"hist\", help=\"blur, face-cnn, face-yaw, hist\"))\n@app.param(Int(key=\"bins\", default=5, help=\"(1, 100)\"))\n@app.output(Folder(key=\"outputData\"))\ndef SPSort(context):\n args = context.args\n\n PARSER = FullHelpArgumentParser()\n SORT = cli.SortArgs(\n PARSER, \"sort\", \"This command lets you sort images using various methods.\"\n )\n\n ARGUMENTS = PARSER.parse_args(\n [\n \"--input\",\n args.inputData,\n \"--output\",\n args.outputData,\n \"--sort-by\",\n args.sortBy,\n \"--ref_threshold\",\n str(args.refThreshold),\n \"--final-process\",\n args.finalProcess,\n \"--group-by\",\n args.groupBy,\n \"--bins\",\n str(args.bins),\n ]\n )\n ARGUMENTS.func(ARGUMENTS)\n\n return args.outputData\n\n\nif __name__ == \"__main__\":\n SPSort()\n","repo_name":"yanqinghao/AiLab-Faceswap","sub_path":"components/docker/SPSortSwap.py","file_name":"SPSortSwap.py","file_ext":"py","file_size_in_byte":1576,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"23013116386","text":"import requests\n\nr = requests.get('http://api.icndb.com/jokes/random')\n\n\ndata = r.json()\n\nprint('Joke #{}: '.format(data['value']['id']))\n\nprint('{}'.format(data['value']['joke']))\n\"\"\"don't put imports in functions. You generally won't have to do that ever\"\"\"\n#we will be using this script A LOT. We should know how to drill down in to a JS\n#object and figure out its path/tree. Need to be able to look at a JSON piece and\n#create this path\n","repo_name":"tabdansby/newRepo","sub_path":"nightclass/playing_api.py","file_name":"playing_api.py","file_ext":"py","file_size_in_byte":441,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34781102372","text":"def dewp_temp_to_ah(D, T):\n \"\"\"Determine absolute humidity from the Dewpoint and the temperature\"\"\"\n # (Invalid name) pylint: disable=C0103\n\n k = 0.21668\n d = 273\n a = -4.9283\n c = 23.5518\n b = -2937.4\n return k / (T + d) * (D + d) ** a * 10 ** (c + (b / (D + d)))\n","repo_name":"SandervanNoort/mconvert","sub_path":"mconvert/newtools/dewp_temp_to_ah.py","file_name":"dewp_temp_to_ah.py","file_ext":"py","file_size_in_byte":289,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"25463736038","text":"import torch\r\nfrom torch import nn\r\n\r\n\r\nclass LTSFLinear(nn.Module):\r\n def __init__(self, latent_dim, lookback):\r\n super(LTSFLinear, self).__init__()\r\n self.latent_dim = latent_dim\r\n self.lookback = lookback\r\n\r\n self.ll = nn.Linear(latent_dim * lookback, latent_dim)\r\n\r\n def forward(self, x):\r\n x = x.view(x.shape[0], -1)\r\n return self.ll(x[:, -self.lookback * self.latent_dim :])\r\n\r\n\r\nclass LTSFNLinear(nn.Module):\r\n def __init__(self, latent_dim, lookback):\r\n super(LTSFNLinear, self).__init__()\r\n self.latent_dim = latent_dim\r\n self.lookback = lookback\r\n\r\n self.ll = nn.Linear(latent_dim * lookback, latent_dim)\r\n\r\n def forward(self, x):\r\n last_l = x[:, 0].unsqueeze(1).repeat(1, x.shape[1], 1)\r\n x = x - last_l\r\n x = x.view(x.shape[0], -1)\r\n return self.ll(x[:, -self.lookback * self.latent_dim :]) + last_l[:, 0]\r\n\r\n\r\nclass moving_avg(nn.Module):\r\n \"\"\"\r\n Moving average block to highlight the trend of time series\r\n \"\"\"\r\n\r\n def __init__(self, kernel_size, stride):\r\n super(moving_avg, self).__init__()\r\n self.kernel_size = kernel_size\r\n self.avg = nn.AvgPool1d(\r\n kernel_size=kernel_size, stride=stride, padding=0\r\n )\r\n\r\n def forward(self, x):\r\n # padding on the both ends of time series\r\n front = x[:, 0:1, :].repeat(1, (self.kernel_size - 1) // 2, 1)\r\n end = x[:, -1:, :].repeat(1, (self.kernel_size - 1) // 2, 1)\r\n x = torch.cat([front, x, end], dim=1)\r\n x = self.avg(x.permute(0, 2, 1))\r\n x = x.permute(0, 2, 1)\r\n return x\r\n\r\n\r\nclass series_decomp(nn.Module):\r\n \"\"\"\r\n Series decomposition block\r\n \"\"\"\r\n\r\n def __init__(self, kernel_size):\r\n super(series_decomp, self).__init__()\r\n self.moving_avg = moving_avg(kernel_size, stride=1)\r\n\r\n def forward(self, x):\r\n moving_mean = self.moving_avg(x)\r\n res = x - moving_mean\r\n return res, moving_mean\r\n\r\n\r\nclass LTSFDLinear(nn.Module):\r\n \"\"\"\r\n Decomposition-Linear\r\n \"\"\"\r\n\r\n def __init__(self, latent_dim, lookback):\r\n super(LTSFDLinear, self).__init__()\r\n\r\n kernel_size = 25\r\n self.decompsition = series_decomp(kernel_size)\r\n\r\n self.latent_dim = latent_dim\r\n self.lookback = lookback\r\n\r\n self.llt = nn.Linear(latent_dim * lookback, latent_dim)\r\n self.lls = nn.Linear(latent_dim * lookback, latent_dim)\r\n\r\n def forward(self, x):\r\n # x: [Batch, Input length, Channel]\r\n seasonal_init, trend_init = self.decompsition(x)\r\n trend_init = trend_init.view(trend_init.shape[0], -1)\r\n seasonal_init = seasonal_init.view(seasonal_init.shape[0], -1)\r\n trend_output = self.llt(\r\n trend_init[:, -self.latent_dim * self.lookback :]\r\n )\r\n seasonal_output = self.lls(\r\n seasonal_init[:, -self.latent_dim * self.lookback :]\r\n )\r\n\r\n x = seasonal_output + trend_output\r\n return x\r\n\r\n\r\nclass MLP(nn.Module):\r\n def __init__(self, layers, activation, use_batchnorm, add_last=False):\r\n super(MLP, self).__init__()\r\n\r\n if use_batchnorm:\r\n raise NotImplementedError\r\n\r\n if activation == \"ELU\":\r\n self.activation = nn.ELU()\r\n elif activation == \"Tanh\":\r\n self.activation = nn.Tanh()\r\n elif activation == \"sigmoid\":\r\n self.activation = nn.Sigmoid()\r\n else:\r\n raise NotImplementedError(\r\n \"unknown activation: {}\".format(activation)\r\n )\r\n\r\n self.activation = nn.Tanh()\r\n\r\n self.fcs = nn.ModuleList(\r\n [\r\n nn.Linear(\r\n in_dim,\r\n out_dim,\r\n )\r\n for (\r\n in_dim,\r\n out_dim,\r\n ) in layers\r\n ]\r\n )\r\n self.fcs_bn = nn.ModuleList(\r\n [\r\n nn.BatchNorm1d(in_dim)\r\n for (\r\n in_dim,\r\n _,\r\n ) in layers\r\n ]\r\n )\r\n\r\n self.add_last = add_last\r\n print(add_last)\r\n\r\n self.bias = nn.Parameter(torch.Tensor(layers[-1][1]))\r\n\r\n def set_freeze(self, freeze):\r\n for param in self.parameters():\r\n param.requires_grad = not freeze\r\n\r\n def forward(self, x):\r\n orig_dim = len(x.shape)\r\n orig_shape = x.shape\r\n\r\n dx = x\r\n\r\n if orig_dim == 3:\r\n dx = dx.view(-1, orig_shape[2])\r\n\r\n # dx = self.fcs_bn[0](dx)\r\n for fc, bn in zip(self.fcs[:-1], self.fcs_bn[1:]):\r\n dx = fc(dx)\r\n # dx = bn(dx)\r\n if dx.size(-1) == fc.out_features:\r\n ddx = self.activation(dx)\r\n dx = dx + ddx\r\n else:\r\n dx = self.activation(dx)\r\n\r\n dx = self.fcs[-1](dx)\r\n\r\n if orig_dim == 3:\r\n dx = dx.view(orig_shape[0], orig_shape[1], -1)\r\n\r\n if self.add_last:\r\n return x + dx / 100\r\n else:\r\n return dx\r\n","repo_name":"MIMUW-RL/Unified-Long-Horizon-Time-Series-Benchmark","sub_path":"src/model/components/mlp.py","file_name":"mlp.py","file_ext":"py","file_size_in_byte":5152,"program_lang":"python","lang":"en","doc_type":"code","stars":8,"dataset":"github-code","pt":"86"}
+{"seq_id":"9963743473","text":"import unittest\nimport random\nimport os\nfrom definitions import EDRM_DIR, TEMP_DIR\nfrom test.context import documents, directories, trec, db\n\n\nclass TC(unittest.TestCase):\n def test_attachment_types(self):\n d1 = directories.general.compose_dir(EDRM_DIR, \"Allen\", \"P\")\n d2 = directories.general.compose_dir(EDRM_DIR, \"Arnold\", \"J\")\n res = set()\n\n def build_set(_, file_dir):\n with open(file_dir, encoding=\"utf-8\") as file:\n types = documents.attachment.parse_attachment_types(file)\n for type_id in types:\n res.add(type_id)\n\n for d in [d1, d2]:\n directories.general.for_each_file(d, build_set)\n\n self.assertEqual(len(res), 9)\n self.assertCountEqual(res, {\n \"application/msexcell\", \"application/msword\", \"application/pdf\", \"application/mspowerpoint\",\n \"application/octet-stream\", \"application/rtf\", \"image/gif\", \"image/jpeg\", \"image/bmp\"\n })\n\n def test_process(self):\n export_dir = os.path.join(TEMP_DIR, \"test_doc_attachments\")\n if not os.path.exists(export_dir):\n os.makedirs(export_dir)\n cached = trec.docids.Cached()\n doc_ids = trec.docids.doc_ids()\n with db.doc_to_dir.Reader() as reader_dir:\n with db.attachment_type.Reader() as reader_attach:\n for n in range(20):\n doc_id = random.choice(doc_ids)\n doc_id = cached.find(doc_id)\n if not documents.attachment.is_attachment(doc_id):\n continue\n with reader_dir.open(doc_id) as file:\n lst = documents.attachment.process(file)\n self.assertIsNotNone(lst)\n attachment_type = reader_attach.find(doc_id)\n if attachment_type == \"application/msexcell\":\n seen = set()\n lst = [w for w in lst if not (w in seen or seen.add(w))]\n file_dir = os.path.join(export_dir, str(n))\n with open(file_dir, mode=\"w\", encoding=\"utf-8\") as file:\n file.write(doc_id + \"\\n\")\n for token in lst:\n file.write(token + \"\\n\")\n\n\nif __name__ == \"__main__\":\n unittest.main()\n","repo_name":"lsylove/tstutorial","sub_path":"test/documents/test_attachment.py","file_name":"test_attachment.py","file_ext":"py","file_size_in_byte":2353,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"5256692696","text":"class Solution:\n def maxProfit(self, prices):\n profits = [a - b for a, b in zip(prices[1:], prices[:-1])]\n l2r = self.helper(profits)\n r2l = self.helper(profits[::-1])[::-1]\n\n l2r.insert(0, 0)\n r2l.append(0)\n\n ans = 0\n\n for i in range(len(l2r)):\n ans = max(ans, l2r[i] + r2l[i])\n\n return ans\n\n def helper(self, profits):\n curP = []\n cur = 0\n maxP = 0\n for p in profits:\n cur += p\n if cur <= 0:\n cur = 0\n maxP = max(maxP, cur)\n curP.append(maxP)\n return curP\n\n\nprices = [1, 2, 1, 3, 7, 1]\nprices = [2, 1, 2, 0, 1]\n\ninst = Solution()\nprint(inst.maxProfit(prices))\n","repo_name":"nkukarl/leetcode","sub_path":"13.5 Best Time to Buy and Sell Stock III.py","file_name":"13.5 Best Time to Buy and Sell Stock III.py","file_ext":"py","file_size_in_byte":729,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"341917437","text":"# day05\n# s=\"ABC DE\"\n# for ch in s:\n# print(\"ch------>\",ch)\n# print(ord(ch))\n# else:\n# print(\"结束\")\n\n#练习:\n# 1.任意输入一段字符串,写程序做如下两件事: \n#l=input(\"请随意输入:\")\n# i=0\n# print(l[1])\n# for n in l:\n# if n ==' ':\n# i+=1\n# else:\n# print(\"空格个数\",i)\n#-----while实现????\n# while i=0:\n# for a in s[b]:\n# print(a)\n# b-=1\n# index = len(s)-1\n# for ch in l[::-1]: 利用切片来实现,-1代表从右向左开始获取索引\n# print (ch)\n# for x in range(1,21):\n# print(x,end=' ')\n# print()\n#公式x*(x+1)% 11== 8:的0-100里的数\n# for x in range(1,101):\n# if x*(x+1)% 11== 8:\n# print(x)\n# y=0\n# for x in range(1,100,2):\n# y+=x\n# print(y)\n#-----------练习---------\n# 1234\n# 2345\n# 3456\n# 4567\n# y=int(input(\"请输入正方形长度:\"))\n# for x in range(y):\n# j=x+1\n# z = y+j\n# for z in range(j,z):\n# print(z,end=' ',flush=True) \n# print()\n\n#-----------continue\n# for x in range(5):\n# if x==2:\n# continue #跳过2这个数\n# print(x) \n# for num in range(10):#跳过基数,打印偶数\n# if num %2 == 1: #取余\n# continue:\n# print(num)\n# y=0 \n# for x in range(1,101):\n# if x%2==0 or x%3==0 or x%5==0 or x%7==0: #条件或同时判断\n# continue\n# else:\n# y+=x\n# print(y)\n# if 2<3 and 2>3:\n# print(\"dd\")\n# else:\n# print(\"yy\")\n\n#------练习--------\n# L1=input(\"请输入文字\")\n# L2=input(\"请输入文字\")\n# L3=input(\"请输入文字\")\n# L =[]\n# L+=[L1]\n# L+=[L2]\n# L+=[L3]\n# print(L)\n#------------------\n# i=0\n# L=[]\n# while True:\n# x=int(input(\"请输入正整数\"))\n# if x>0:\n# L+=[x]\n# i+=x\n# else:\n# print(\"输入的数字为\" + str(L))\n# print(\"输入的总和为\" + str(i))\n# break\n\n#------------练习1-------\n\n#------------99乘法表------------ \n# i=0\n# for x in range(1,10):\n# for y in range(1,11):\n# if y<10:\n# print(x,\"*\",i+1,\"=\",x*(i+1),sep='',end=' ',flush=True)\n# i+=1\n# else :\n# i=0\n# print()\n# continue \n\n#-------------练习2------\n# 写一个程序,任意输入一个整数,判断这个数是否为素数prime\n# 素数(也叫质数),是只能被1和自身整数的正整数\n# 如: 2 3 5 7 11 13 17 19 ...\n# 提示:\n# 用排除法: 当判断x是否为素数时,只要让x分别除以\n# 2, 3, 4, 5, 6 ... x-1,只要有一次被整除,则x不是\n# 素数,否则x是素数\n#方法1---------------------------------------\nx = int(input('请输入一个整数: '))\nif x < 2:\n print(x, '不是素数')\nelse:\n # 用一个变量Flag作为标志,很假设x是素数,Flag=True\n # 当不是素数时,把变量值改变False,最后由变量Flag的真假值\n # 来判断x是否为素数\n flag = True # 先假设x为素数\n for i in range(2, x): # i为2,3,4,.... x-1\n if x % i == 0:\n # print(x, '不是素数')\n flag = False\n break\n if flag:\n print(x, '是素数')\n else:\n print(x, '不是素数')\n#方法2----------------------------------------\nx = int(input('请输入一个整数: '))\nif x < 2:\n print(x, '不是素数')\nelse:\n for i in range(2, x): # i为2,3,4,.... x-1\n if x % i == 0:\n print(x, '不是素数')\n break\n else:\n print(x, '是素数')\n\n\n#-------------练习3------\n# 输入一个整数,此整数代表树干的高度,打印一棵如下形状的圣\n# 诞树\n# i=int(input(\"请输入一个整数:\"))\n# h=0\n# for x in range(1,i+1):\n# print (\" \"*(i-x)+\"*\"*(h+1),flush=True)\n# h+=2\n# for y in range(1,i+1):\n# print(\" \"*(i-1)+\"*\")\n\n#------------练习4--------\n# 算出 100 ~ 999 范围内的水仙花数(Narcissistic Number)\n# 水仙花数是指百位的3次方 + 十位的3次方 + 个位的3次方 等于原\n# 数的整数\n# 如:\n# 153 = 1**3 + 5**3 + 3**3\n# 答案:\n# 153, 370, ....\n\n# for x in range(100,1000):\n# w=567\n# w1=w/100\n# w2=w/10%10\n# w3=w%10\n# print(int(w1),int(w2),int(w3)) #5,6,7\nfor bai in range(1,10):\n for shi in range(0,10):\n for ge in range(0,10):\n #print(bai,shi,ge)\n x= bai *100 +shi *10 +ge\n if x == bai **3+ shi **3+ge **3:\n print(x)\n\n# L=[0,1.2,2,3,4,5,6,7,8]\n# #L2=L[1:8:2] #L2 = [1,3,5,7]\n# L[:]=[]\n# print(L)\n\n# L=[1,2,3,4]\n# L2=L\n# L=[]\n# print(L2)\n\n# L=[1,2,3,4,]\n# L2= L\n# L[:]=[] #此处与上面不同\n# print(L2)","repo_name":"timzk/AID1811","sub_path":"aid1811/pbase/Python/day05/day05.py","file_name":"day05.py","file_ext":"py","file_size_in_byte":4660,"program_lang":"python","lang":"zh","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"15184309801","text":"from django.shortcuts import render, redirect, get_object_or_404\nfrom .models import Question, Answer\nfrom .forms import QuestionForm, AnswerForm\nfrom .serializers import QuestionSerializer, AnswerSerializer\nfrom rest_framework import generics\nfrom django.contrib.auth.decorators import login_required\n\n\ndef question_list(request):\n questions = Question.objects.all()\n return render(request, 'question_list.html', {'questions': questions})\n\n\ndef question_detail(request, question_id):\n question = get_object_or_404(Question, id=question_id)\n answers = question.answer_set.all()\n context = {'question': question, 'answers': answers}\n return render(request, 'question_detail.html', context)\n\n\n@login_required\ndef create_question(request):\n if request.method == 'POST':\n form = QuestionForm(request.POST)\n if form.is_valid():\n question = form.save(commit=False)\n question.author = request.user\n question.save()\n return redirect('QuestionAnswer:question_list')\n else:\n form = QuestionForm()\n\n return render(request, 'create_question.html', {'form': form})\n\n\n@login_required\ndef answer_question(request, question_id):\n question = get_object_or_404(Question, id=question_id)\n\n if request.method == 'POST':\n form = AnswerForm(request.POST)\n if form.is_valid():\n answer = form.save(commit=False)\n answer.question = question\n answer.author = request.user\n answer.save()\n return redirect('QuestionAnswer:question_detail', question_id=question_id)\n else:\n form = AnswerForm()\n\n answers = question.answer_set.all()\n context = {'form': form, 'question': question, 'answers': answers}\n return render(request, 'answer_question.html', context)\n\n\n@login_required\ndef like_answer(request, answer_id):\n answer = get_object_or_404(Answer, id=answer_id)\n if request.user not in answer.likes.all():\n answer.likes.add(request.user)\n return redirect('QuestionAnswer:question_detail', question_id=answer.question.id)\n\n\n@login_required\ndef unlike_answer(request, answer_id):\n answer = get_object_or_404(Answer, id=answer_id)\n if request.user not in answer.unlikes.all():\n answer.unlikes.add(request.user)\n return redirect('QuestionAnswer:question_detail', question_id=answer.question.id)\n\n\nclass QuestionListAPIView(generics.ListAPIView):\n queryset = Question.objects.all()\n serializer_class = QuestionSerializer\n\n\nclass QuestionDetailAPIView(generics.RetrieveAPIView):\n queryset = Question.objects.all()\n serializer_class = QuestionSerializer\n\n\nclass AnswerListAPIView(generics.ListAPIView):\n queryset = Answer.objects.all()\n serializer_class = AnswerSerializer\n\n\nclass AnswerDetailAPIView(generics.RetrieveAPIView):\n queryset = Answer.objects.all()\n serializer_class = AnswerSerializer\n","repo_name":"JosephAntony123/Quora","sub_path":"quora/QuestionAnswer/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":2904,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"11916516744","text":"\"\"\"Django models utilities.\"\"\"\n\n# Django\nfrom django.db import models\nfrom django.conf import settings\n\n\nclass TemplateModel(models.Model):\n \"\"\" Manager base model.\"\"\"\n\n created = models.DateTimeField(\n \"created at\",\n auto_now_add=True,\n help_text=\"Date time on which the object was created.\",\n )\n modified = models.DateTimeField(\n \"modified at\",\n auto_now=True,\n help_text=\"Date time on which the object was last modified.\",\n )\n\n class Meta:\n \"\"\"Meta option.\"\"\"\n\n abstract = True\n get_latest_by = \"created\"\n ordering = [\"-created\", \"-modified\"]\n\n\nclass GeoPoint(TemplateModel):\n latitude = models.DecimalField(\n max_digits=10,\n decimal_places=settings.GEOPOINT_DECIMAL_PLACES,\n blank=True,\n null=True,\n )\n longitude = models.DecimalField(\n max_digits=11,\n decimal_places=settings.GEOPOINT_DECIMAL_PLACES,\n blank=True,\n null=True,\n )\n street_number = models.CharField(blank=True, null=True, max_length=50)\n route = models.CharField(blank=True, null=True, max_length=50)\n neighborhood = models.CharField(blank=True, null=True, max_length=50)\n political = models.CharField(blank=True, null=True, max_length=50)\n administrative_area_level_1 = models.CharField(blank=True, null=True, max_length=50)\n administrative_area_level_2 = models.CharField(blank=True, null=True, max_length=50)\n country = models.CharField(blank=True, null=True, max_length=50)\n postal_code = models.CharField(blank=True, null=True, max_length=10)\n\n @property\n def formatted_address(self):\n return \"{street_number} {route} {neighborhood} {political}, {administrative_area_level_1} {administrative_area_level_2} {postal_code}, {country}\".format(\n street_number=self.street_number or \"\",\n route=self.route or \"\",\n neighborhood=self.neighborhood or \"\",\n political=self.political or \"\",\n administrative_area_level_1=self.administrative_area_level_1 or \"\",\n administrative_area_level_2=self.administrative_area_level_2 or \"\",\n country=self.country or \"\",\n postal_code=self.postal_code or \"\",\n )\n\n def __str__(self):\n \"\"\"Return details.\"\"\"\n return \"created at {created} postiion {latitude} | {longitude} \".format(\n created=self.created, latitude=self.latitude, longitude=self.longitude,\n )\n","repo_name":"rielsu/hitman-target-detector","sub_path":"api/geocodes/models.py","file_name":"models.py","file_ext":"py","file_size_in_byte":2477,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"11931591505","text":"from rest_framework import generics\n\nfrom rest_framework import status, views, viewsets\nfrom rest_framework.response import Response\nfrom django.http import JsonResponse\n\nfrom rest_framework.decorators import permission_classes, action\nfrom rest_framework.permissions import IsAuthenticated, IsAdminUser, AllowAny\nfrom commons.permissions import IsUserOrReadOnly\n\nfrom django.db.models import Q\nfrom django.contrib.auth import get_user_model\nfrom django.shortcuts import get_object_or_404\n\nfrom knox.auth import TokenAuthentication\nfrom knox.views import LoginView as KnoxLoginView\nfrom django.contrib.auth import authenticate\nfrom django.contrib.auth import logout, login\n\nfrom .models import PhoneOTP\nfrom .serializers import (AllUserSerializer, \n LoginSerializer, \n ChangePasswordSerializer )\n\nfrom concurrent.futures import ThreadPoolExecutor\nfrom utils.utils import send_otp\n\nUser = get_user_model()\nexecutor = ThreadPoolExecutor()\n\n\nclass LoginView(KnoxLoginView):\n permission_classes = (AllowAny,)\n serializer_class = LoginSerializer\n\n def post(self, format=None):\n serializer = LoginSerializer(data = self.request.data)\n serializer.is_valid(raise_exception=True)\n\n user = serializer.validated_data['user']\n login(self.request, user)\n return super().post(self.request, format=None)\n\n\n\n\nclass UserView(viewsets.ModelViewSet):\n authentication_classes = (TokenAuthentication, IsUserOrReadOnly)\n serializer_class = AllUserSerializer\n permission_classes = [IsAuthenticated,]\n http_method_names = ['get','delete','put','post']\n\n def get_object(self):\n return self.request.user\n\n def get_queryset(self):\n return User.objects.filter(phone = self.request.user)\n\n @action(methods=['post'], detail=True) #url :http://127.0.0.1:8000/users-api/user/3/changephoneotp/\n def changephoneotp(self, *args, **kwargs):\n new_phone = self.request.data.get('new_phone')\n if new_phone:\n user = User.objects.filter(phone = new_phone)\n\n if user.exists():\n return JsonResponse({\n 'error':'New phone number is already taken'\n })\n \n thread = executor.submit(send_otp, new_phone)\n otp = thread.result()\n print(otp)\n if otp:\n otp = str(otp)\n old = PhoneOTP.objects.filter(phone__iexact=new_phone)\n if old.exists():\n old = old.first()\n if old.count > 7:\n return JsonResponse({\n 'error':'Maximum otp limits reached. Kindly support our customer care or try with different number'\n })\n old.count = old.count + 1\n old.otp = otp\n old.save()\n return Response(otp, status=status.HTTP_200_OK)\n\n count = 0\n count = count+1\n PhoneOTP.objects.create(\n phone = new_phone,\n otp = otp,\n changephoneOTP = True,\n count = count\n )\n return Response('OTP sent successfully.', status=status.HTTP_200_OK)\n\n return JsonResponse({\n 'error':'OTP sending error. Please try after sometime.'\n })\n\n return JsonResponse({\n 'error':'No phone number has been received. Kindly do the POST request.'\n })\n\n\n def update(self, request, pk=None):\n otp = self.request.data.get('otp')\n new_phone = self.request.data.get('new_phone')\n\n if otp and new_phone:\n old = PhoneOTP.objects.filter(Q(phone__iexact = new_phone) & Q(otp__iexact = otp))\n if old.exists():\n old = old.first()\n\n if str(otp) == str(old.otp):\n if old.changephoneOTP:\n user = get_object_or_404(User,id=pk)\n user.phone = new_phone\n user.save()\n old.delete()\n return Response(new_phone, status=status.HTTP_200_OK)\n\n return JsonResponse({\n 'error':'OTP Verification failed. Please verify OTP'\n }) \n\n return JsonResponse({\n 'error':'OTP incorrect, please try again'\n })\n\n return JsonResponse({\n 'error':'Phone and otp are not matching or a new phone has entered. Request a new otp in forgot password'\n })\n\n return JsonResponse({'error':'Either phone or otp was not recieved in Put request'})\n\n\n\nclass ChangePasswordView(generics.UpdateAPIView):\n serializer_class = ChangePasswordSerializer\n permission_classes = (IsAuthenticated, IsUserOrReadOnly)\n\n def get_object(self):\n return self.request.user\n\n \n\n\n\n\n","repo_name":"satyarth12/Food-Delivery-API","sub_path":"account/views.py","file_name":"views.py","file_ext":"py","file_size_in_byte":5022,"program_lang":"python","lang":"en","doc_type":"code","stars":6,"dataset":"github-code","pt":"86"}
+{"seq_id":"22724013958","text":"\nimport os\n\nimport re\nimport tensorflow as tf\nimport numpy as np\nimport argparse\n\nfrom layers.bert_basic_model import *\n\n\n# Load tf checkpoints in a pytorch model.\ndef load_tf_weights_in_bert(model, tf_checkpoint_path):\n tf_path = os.path.abspath(tf_checkpoint_path)\n logger.info(\"Converting TensorFlow checkpoint from {}\".format(tf_path))\n # Load weights from TF model\n init_vars = tf.train.list_variables(tf_path)\n names = []\n arrays = []\n for name, shape in init_vars:\n logger.info(\"Loading TF weight {} with shape {}\".format(name, shape))\n array = tf.train.load_variable(tf_path, name)\n names.append(name)\n arrays.append(array)\n\n for name, array in zip(names, arrays):\n name = name.split('/')\n # adam_v and adam_m are variables used in AdamWeightDecayOptimizer to calculated m and v\n # which are not required for using pretrained model\n if any(n in [\"adam_v\", \"adam_m\", \"global_step\", \"cls\"] for n in name):\n logger.info(\"Skipping {}\".format(\"/\".join(name)))\n continue\n pointer = model\n for m_name in name:\n if re.fullmatch(r'[A-Za-z]+_\\d+', m_name):\n l = re.split(r'_(\\d+)', m_name)\n else:\n l = [m_name]\n if l[0] == 'kernel' or l[0] == 'gamma':\n pointer = getattr(pointer, 'weight')\n elif l[0] == 'output_bias' or l[0] == 'beta':\n pointer = getattr(pointer, 'bias')\n elif l[0] == 'output_weights':\n pointer = getattr(pointer, 'weight')\n elif l[0] == 'squad':\n pointer = getattr(pointer, 'classifier')\n else:\n try:\n pointer = getattr(pointer, l[0])\n except AttributeError:\n logger.info(\"Skipping {}\".format(\"/\".join(name)))\n continue\n if len(l) >= 2:\n num = int(l[1])\n pointer = pointer[num]\n if m_name[-11:] == '_embeddings':\n pointer = getattr(pointer, 'weight')\n elif m_name == 'kernel':\n array = np.transpose(array)\n try:\n assert pointer.shape == array.shape\n except AssertionError as e:\n e.args += (pointer.shape, array.shape)\n raise\n logger.info(\"Initialize PyTorch weight {}\".format(name))\n pointer.data = torch.from_numpy(array)\n return model\n\n\nif __name__ == '__main__':\n parser = argparse.ArgumentParser(description=\"Converts tf bert ckpt weights to pytorch bin\")\n parser.add_argument(\"--infile\", type=str, help=\"Path to the ckpt.\")\n parser.add_argument(\"--outfile\", type=str, help=\"Path to the pytorch dump.\")\n args = parser.parse_args()\n bert_config = BertConfig.from_json_file(\"chinese_L-12_H-768_A-12/bert_config.json\")\n model = BertModel(bert_config)\n load_tf_weights_in_bert(model, args.infile)\n torch.save(model.state_dict(), args.outfile)\n","repo_name":"EuphoriaYan/ICCRE","sub_path":"convert_tf_ckpt_to_pytorch.py","file_name":"convert_tf_ckpt_to_pytorch.py","file_ext":"py","file_size_in_byte":2996,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"10758358713","text":"import nltk\nfrom nltk.stem import *\nfrom nltk.stem.porter import *\nfrom textblob import TextBlob\nfrom nltk.corpus import stopwords\n\nstemmer = SnowballStemmer(\"english\")\nf = open('sentiment/negative_words.txt', 'r')\nnegative = set(f.read().split('\\n'))\nstop = set(stopwords.words('english'))\n\ndef tokenize(text):\n words = TextBlob(text).words.lower()\n words = filter(lambda w: not w in stop, words)\n tokens = [0]*len(words)\n i = 0\n while i < len(words):\n if words[i] in negative:\n try:\n tokens[i+1] = '!' + stemmer.stem(words[i+1])\n tokens[i] = stemmer.stem(words[i])\n tokens[i-1] = '!' + stemmer.stem(words[i-1])\n i += 2\n continue\n except IndexError:\n pass\n tokens[i] = stemmer.stem(words[i])\n #tokens[i] = words[i]\n i += 1\n return tokens\n\n","repo_name":"Radahika/Persimmon","sub_path":"sentiment/tokenizer.py","file_name":"tokenizer.py","file_ext":"py","file_size_in_byte":898,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"24928111190","text":"\"\"\"\nUse map and lambda expression together to\nmake the codes clean and beautiful.\n\"\"\"\n\n\ndef square(x): return x * x\n\n\ndef multiply(x, y): return list(map(lambda s, t: s * t, x, y))\n\n\ndef main():\n # Ordinary style.\n squares = list(map(square, range(10)))\n print(squares)\n\n # A more compact way.\n squares = list(map(lambda x: x * x, range(10)))\n print(squares)\n\n # Another alternative way.\n xes = [x for x in range(10)]\n print(multiply(xes, xes))\n\n # Filter numbers that are greater than 10 in the list 'squares'.\n result = [x for x in squares if x >= 10]\n print(result)\n\n # Filter odd numbers.\n odds = list(filter(lambda x: x % 2 == 1, range(10)))\n print(odds)\n\n # List induction alternative.\n odds = [x for x in range(10) if x % 2 == 1]\n print(odds)\n\n # Sort an array of dicts with lambda expression.\n test_array = [\n {'name': 'Anna', 'age': 10},\n {'name': 'Catherine', 'age': 8}\n ]\n print(sorted(test_array, key=lambda dict_item: dict_item['name']))\n print(sorted(test_array, key=lambda dict_item: dict_item['age']))\n test_array.sort(key=lambda dict_item: dict_item['name'])\n print(test_array)\n test_array.sort(key=lambda dict_item: dict_item['age'])\n print(test_array)\n\n # Sort a list with lambda expression, small to big.\n test_array = [-5, 8, 0, 4, 9, -4, -20, -2, 8, 2, -4]\n test_array = [[i, test_array[i]] for i in range(len(test_array))]\n test_array.sort(key=lambda array_item: array_item[1])\n print([test_array[i][1] for i in range(len(test_array))])\n\n # Sort a list with lambda expression, with positives\n # from small to big, and negatives from big to small.\n test_array = [-5, 8, 0, 4, 9, -4, -20, -2, 8, 2, -4]\n positives = [t for t in test_array if t >= 0]\n negatives = [t for t in test_array if t < 0]\n positives = [[i, positives[i]] for i in range(len(positives))]\n negatives = [[i, negatives[i]] for i in range(len(negatives))]\n positives.sort(key=lambda array_item: array_item[1])\n negatives.sort(key=lambda array_item: array_item[1])\n positives = [positives[i][1] for i in range(len(positives))]\n negatives = [negatives[i][1] for i in range(len(negatives))]\n test_array = positives + negatives\n print(test_array)\n\n # Sort a list of tuples with lambda expression.\n test_array = [(0, 'c'), (1, 'b'), (2, 'a')]\n print(sorted(test_array, key=lambda array_item: array_item[0]))\n print(sorted(test_array, key=lambda array_item: array_item[1]))\n test_array.sort(key=lambda array_item: array_item[0])\n print(test_array)\n test_array.sort(key=lambda array_item: array_item[1])\n print(test_array)\n\n # Sort a list of strings by their lengths in reverse order.\n test_array = [\n 'a', 'ab', 'cd', 'c',\n 'that', 'ssf', 'sds',\n 'Challenge', 'great'\n ]\n test_array = [[len(t), t] for t in test_array]\n test_array.sort(key=lambda array_item: array_item[0], reverse=True)\n test_array = [test_array[i][1] for i in range(len(test_array))]\n print(test_array)\n\n\nif __name__ == '__main__':\n main()\n","repo_name":"volksvagen/mypy","sub_path":"src/map_lambda.py","file_name":"map_lambda.py","file_ext":"py","file_size_in_byte":3110,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"799855022","text":"\nimport logging\nfrom decorators import run_daemon\n\nCHECK_CONNECTORS_JOB_RESTART_DELAY = 10.0\n\n\nclass CheckConnectorJob:\n\n # __mapper_args__ = {'polymorphic_identity': 'ConnectorCheckJob'}\n\n @run_daemon\n def execute(self):\n logging.info('Сервис проверки коннекторов был запущен')\n print('Сервис проверки к��ннекторов был запущен')\n\n from connector import check_connectors_status\n # timers = EventScheduler()\n check_connectors_status()\n # timers.call_regular_interval(\n # CHECK_CONNECTORS_JOB_RESTART_DELAY,\n # check_connectors_status,\n # )\n # for _ in itertools.count(start=1):\n # self.heartbeat()\n # timers.run(blocking=False)\n","repo_name":"rundect/learn_python_oop","sub_path":"decorator/decorator_scheduler_daemon/jobs.py","file_name":"jobs.py","file_ext":"py","file_size_in_byte":805,"program_lang":"python","lang":"ru","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32396861282","text":"import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport os\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport click\nimport pickle\nimport torch.backends.cudnn as cudnn\n\nfrom content_model import QA_RNN\nfrom buzz_model import DDQNQuizBowlPlayer\n\nfrom util.helper_functions import load_checkpoint_policy, load_checkpoint\nfrom util.helper_classes import MBLoader\n\nnp.random.seed(0)\ntorch.manual_seed(0)\n\n@click.command()\n@click.option('--model_name', default=\"buzz_RL\", help='Name of model.',show_default=True)\n@click.option('--data_dir', default=\"data/\", help='Path to dataset file containing questions.')\n@click.option('--content_model_path', default=\"checkpoints/content/best_model.pth\", help='Path of checkpoint_file of best content model')\n@click.option('--buzz_model_path', default=\"checkpoints/buzz/policy.pth\", help='Path of checkpoint_file of best buzz model')\n@click.option('--checkpoint_file', default=\"checkpoints/dolly/checkpoint.pth\", help='Path of checkpoint_file of dolly')\n@click.option('--batch_size', default=64, help=\"Batch size.\",show_default=True)\n@click.option('--num_layers', default=1, help=\"Number of RNN layers.\",show_default=True)\n@click.option('--learning_rate', default=0.001, help=\"LR\",show_default=True)\n@click.option('--state_size', default=128, help=\"RNN state size.\",show_default=True)\n@click.option('--dropout', default=0.0, help=\"keep_prob for droupout.\",show_default=True)\n@click.option('--val_interval', default=1, help='validation interval for early stopping. ',show_default=True)\n@click.option('--num_epochs', default=50, help='Number of iteration to train.',show_default=True)\n@click.option('--train_embeddings', default=False, is_flag=True, help='train word embeddings.',show_default=True)\n@click.option('--disable_cuda', default=False, is_flag=True, help='run on gpu or not',show_default=True)\n@click.option('--restore', default=False, is_flag=True, help='restore previous model',show_default=True)\n@click.option('--early_stopping', default=True, is_flag=True, help='early stopping on validation error.',show_default=True)\n@click.option('--early_stopping_interval', default=15, help='early stopping on validation error.',show_default=True)\ndef main(model_name,data_dir,batch_size,num_layers,learning_rate, state_size,dropout,val_interval,early_stopping_interval,num_epochs,train_embeddings,early_stopping,disable_cuda,content_model_path,buzz_model_path,checkpoint_file,restore):\n preprocessed_file = os.path.join(data_dir,\"preprocessed_data.npz\")\n nf = np.load(preprocessed_file)\n train_X,train_y,train_seq_len,\\\n train_buzzes,\\\n test_X,test_y,test_seq_len,\\\n test_buzzes,\\\n val_X,val_y,val_seq_len,\\\n val_buzzes,\\\n embd_mat = nf[\"train_X\"],nf[\"train_y\"],nf[\"train_seq_len\"],\\\n nf[\"train_buzzes\"],\\\n nf[\"test_X\"],nf[\"test_y\"],nf[\"test_seq_len\"],\\\n nf[\"test_buzzes\"],\\\n nf[\"val_X\"],nf[\"val_y\"],nf[\"val_seq_len\"],\\\n nf[\"val_buzzes\"],\\\n nf[\"embd_mat\"]\n\n print(list(map(lambda x:x.shape ,[train_X,train_y,train_seq_len,train_buzzes])))\n print(list(map(lambda x:x.shape ,[test_X,test_y,test_seq_len,test_buzzes])))\n print(list(map(lambda x:x.shape ,[val_X,val_y,val_seq_len,val_buzzes])))\n\n in_file = os.path.join(data_dir,\"mapping_opp.pkl\")\n with open(in_file,\"rb\") as handle:\n user_features = pickle.load(handle)\n user_features = user_features[0]\n \n num_ans = len(set(train_y)|set(test_y)|set(val_y))\n print(\"#Answers :\",num_ans)\n\n model_name = model_name+\"_\"+str(train_X.shape[0])+\"_\"+str(val_X.shape[0])+\"_\"+str(test_X.shape[0])+\"_\"+str(batch_size)+\"_\"+str(dropout)\n\n train_X = torch.from_numpy(train_X)\n train_y = torch.from_numpy(train_y)\n train_seq_len = torch.from_numpy(train_seq_len)\n val_X = torch.from_numpy(val_X)\n val_y = torch.from_numpy(val_y)\n val_seq_len = torch.from_numpy(val_seq_len)\n test_X = torch.from_numpy(test_X)\n test_y = torch.from_numpy(test_y)\n test_seq_len = torch.from_numpy(test_seq_len)\n embd_mat = torch.from_numpy(embd_mat)#.cuda()\n\n\n content_model = QA_RNN(batch_size, train_X.size(1), num_layers, state_size, num_ans + 1, embd_mat, non_trainable = True, disable_cuda = disable_cuda)\n buzz_model = DDQNQuizBowlPlayer(inp_state_dim, opp_state_dim, n_actions)\n\n inputs = [(train_X,train_y,train_seq_len), \n (val_X,val_y,val_seq_len), \n (test_X,test_y,test_seq_len)]\n\n loader = MBLoader(inputs, batch_size)\n optimizer = torch.optim.Adam(filter(lambda p: p.requires_grad, content_model.parameters()), lr=learning_rate)\n\n content_model = load_best_model(content_model, content_model_path)\n buzz_model = load_checkpoint_policy(buzz_model, buzz_model_path)\n\n if not disable_cuda:\n torch.backends.cudnn.enabled = True\n cudnn.benchmark = True\n model.cuda()\n criterion = criterion.cuda()\n train_X = train_X.cuda()\n # train_seq_len = train_seq_len.cpu()\n train_y = train_y.cuda()\n test_X = test_X.cuda()\n test_y = test_y.cuda()\n # test_seq_len = test_seq_len.cpu()\n val_X = val_X.cuda()\n val_y = val_y.cuda()\n # val_seq_len = val_seq_len.cpu()\n \n\n\n print(optimizer)\n print(criterion)\n # print(next(model.parameters()).is_cuda)\n\n logger = run(loader, content_model, buzz_model, criterion, optimizer, early_stopping, early_stopping_interval, checkpoint_file = checkpoint_file, num_epochs = num_epochs, restore = restore)\n\n plot_from_logger(logger)\n\nif __name__ == '__main__':\n main()\n\n","repo_name":"ranjithkumar007/Dolly","sub_path":"main.py","file_name":"main.py","file_ext":"py","file_size_in_byte":5582,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27142839300","text":"\n# programa para um usuario jogar p\\r ou imp\\r com o computador\n\nfrom random import randint\nctdor=0\n\nwhile True:\n cpdor=randint(1,10)\n jdor=int(input('Digite um numero entre 1 e 10_'))\n dsao=str(input('Escolha par ou ímpar [P/I]?_')).strip().upper()[0]\n print(f'Jogador tirou {jdor} e decidiu {dsao}. Computador tirou {cpdor}')\n soma=jdor+cpdor\n\n if soma%2==0: # linha para marcar o resultado par ou impar\n res='P'\n else:\n res=\"I\"\n\n if dsao==res: # linha para saber quem ganhou\n ctdor+=1\n print('jogador ganhou')\n \n else:\n print('Computador ganhou.')\n break\nprint(f'Fim. Vc ganhou {ctdor} vezes')","repo_name":"GuglielmoTargino/PY_m2","sub_path":"exer068.py","file_name":"exer068.py","file_ext":"py","file_size_in_byte":673,"program_lang":"python","lang":"pt","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"27804686960","text":"# coding: utf-8\n\"\"\"Visualize samples from dataset.\"\"\"\n\nimport argparse\nimport time\n\nimport cv2\nimport numpy as np\nfrom torch.utils.data import DataLoader\n\nfrom dataloader import TLessDataset, TransparentDataset\n\n\ndef read_dataset(path, b, dataset='notex'):\n dataset = TLessDataset(path) if dataset == 'notex' else TransparentDataset(path)\n print(len(dataset), \"samples in dataset.\")\n\n return DataLoader(dataset, batch_size=b, shuffle=True)\n\n\ndef create_view(frame):\n \"\"\"Show current frame of the RGB-D dataset as images.\n\n :param frame:\n :return:\n \"\"\"\n image, depth, norms, mask = frame\n\n # convert normals from [-1, 1] to [0, 255]\n norms = ((norms + 1) / 2) * 255\n\n # apply a colormap on grayscale depth map, makes easier to see depth changes\n depth = cv2.applyColorMap((depth * 255.0).astype(np.uint8), cv2.COLORMAP_JET)\n\n masked_image = image.copy()\n\n bg_color = 128 # gray window background\n masked_image[mask, :] = bg_color\n depth[mask, :] = bg_color\n norms[mask, :] = bg_color\n\n dst = np.hstack((image, masked_image, depth, norms))\n return dst.astype(np.uint8)\n\n\ndef parse_args():\n parser = argparse.ArgumentParser()\n parser.add_argument('--dataset_dir', '-d', type=str, default='../out')\n parser.add_argument('--batch_size', '-b', type=int, default=4)\n parser.add_argument('--dataset', '-ds', type=str, default='notex', choices=['notex', 'trans'])\n return parser.parse_args()\n\n\ndef main(args):\n data = read_dataset(args.dataset_dir, args.batch_size, args.dataset)\n for it in data:\n image, label = it\n dmap, nmap, mask = label\n\n rows = []\n for i in range(image.shape[0]):\n im = image[i].numpy()\n dm = dmap[i].numpy()\n nm = nmap[i].numpy()\n ma = mask[i].numpy()\n\n rows.append(create_view(frame=(im, dm, nm, ma)))\n\n cv2.imshow('Dataset', np.vstack(rows))\n if cv2.waitKey(delay=1) == ord('q'):\n raise KeyboardInterrupt\n\n time.sleep(3)\n\n\nif __name__ == '__main__':\n try:\n main(parse_args())\n except KeyboardInterrupt:\n print(\"Visualization interrupted.\")\n","repo_name":"tahirashehzadi/blender_texless_data","sub_path":"src/visualize.py","file_name":"visualize.py","file_ext":"py","file_size_in_byte":2171,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"72422085085","text":"import os\nimport pickle\n\nfrom loguru import logger\nfrom tensorflow import keras\n\n\nclass AiTokenizer:\n def __init__(self, max_words=1000, max_len=1000):\n self.max_words = max_words\n self.max_len = max_len\n self.tokenizer = None\n logger.info(\"Tokenizer initialized\")\n\n self.tokenizer_path = os.path.abspath(\n os.path.join(os.path.dirname(__file__), '..', '..', 'dataset', 'tokenizer.pickle'))\n\n def tokenize(self, data):\n tokenizer = keras.preprocessing.text.Tokenizer(num_words=1000)\n tokenizer.fit_on_texts(data)\n with open(self.tokenizer_path, 'wb') as handle:\n pickle.dump(tokenizer, handle, protocol=pickle.HIGHEST_PROTOCOL)\n self.tokenizer = tokenizer\n return self.tokenizer\n","repo_name":"TheQuiu/Eternal-Algorithm-AI","sub_path":"network/tokenizer/tokenizer.py","file_name":"tokenizer.py","file_ext":"py","file_size_in_byte":777,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32020296189","text":"# coding: utf-8\n\nfrom __future__ import absolute_import\nfrom datetime import date, datetime # noqa: F401\n\nfrom typing import List, Dict # noqa: F401\n\nfrom legion.sdk.models.base_model_ import Model\nfrom legion.sdk.models import util\n\n\nclass Parameter(Model):\n \"\"\"NOTE: This class is auto generated by the swagger code generator program.\n\n Do not edit the class manually.\n \"\"\"\n\n def __init__(self, name: str=None, value: object=None): # noqa: E501\n \"\"\"Parameter - a model defined in Swagger\n\n :param name: The name of this Parameter. # noqa: E501\n :type name: str\n :param value: The value of this Parameter. # noqa: E501\n :type value: object\n \"\"\"\n self.swagger_types = {\n 'name': str,\n 'value': object\n }\n\n self.attribute_map = {\n 'name': 'name',\n 'value': 'value'\n }\n\n self._name = name\n self._value = value\n\n @classmethod\n def from_dict(cls, dikt) -> 'Parameter':\n \"\"\"Returns the dict as a model\n\n :param dikt: A dict.\n :type: dict\n :return: The Parameter of this Parameter. # noqa: E501\n :rtype: Parameter\n \"\"\"\n return util.deserialize_model(dikt, cls)\n\n @property\n def name(self) -> str:\n \"\"\"Gets the name of this Parameter.\n\n Parameter name # noqa: E501\n\n :return: The name of this Parameter.\n :rtype: str\n \"\"\"\n return self._name\n\n @name.setter\n def name(self, name: str):\n \"\"\"Sets the name of this Parameter.\n\n Parameter name # noqa: E501\n\n :param name: The name of this Parameter.\n :type name: str\n \"\"\"\n\n self._name = name\n\n @property\n def value(self) -> object:\n \"\"\"Gets the value of this Parameter.\n\n Parameter value # noqa: E501\n\n :return: The value of this Parameter.\n :rtype: object\n \"\"\"\n return self._value\n\n @value.setter\n def value(self, value: object):\n \"\"\"Sets the value of this Parameter.\n\n Parameter value # noqa: E501\n\n :param value: The value of this Parameter.\n :type value: object\n \"\"\"\n\n self._value = value\n","repo_name":"legion-platform/legion","sub_path":"legion/sdk/legion/sdk/models/parameter.py","file_name":"parameter.py","file_ext":"py","file_size_in_byte":2227,"program_lang":"python","lang":"en","doc_type":"code","stars":23,"dataset":"github-code","pt":"86"}
+{"seq_id":"2632831783","text":"import io\nimport logging\nimport logging.handlers\nimport threading\nimport time\nfrom abc import ABC, abstractmethod\nfrom collections import defaultdict\nfrom datetime import datetime, timedelta\n\n_4h = timedelta(hours=4)\n_1min = timedelta(minutes=1)\n\n\nclass BaseBufferedHandler(ABC, logging.Handler):\n def __init__(\n self,\n level: int | str = logging.NOTSET,\n *,\n capacity: int | None = None,\n flush_interval: timedelta | int = _4h,\n starting_times: int | None = 10,\n starting_interval: timedelta | int | None = _1min,\n ):\n super().__init__(level)\n\n self.capacity = capacity or None\n self.buffer: list[logging.LogRecord] = []\n\n if isinstance(flush_interval, timedelta):\n self.flush_interval = int(flush_interval.total_seconds())\n elif isinstance(flush_interval, int):\n self.flush_interval = flush_interval\n\n if starting_times:\n self.starting_times = starting_times\n if isinstance(starting_interval, timedelta):\n self.starting_interval = int(starting_interval.total_seconds())\n elif isinstance(starting_interval, int):\n self.starting_interval = starting_interval\n else:\n self.starting_times = 0\n self.starting_interval = None\n\n self.closed = threading.Event()\n self._start_flushing_thread()\n\n def emit(self, record: logging.LogRecord):\n if self.closed.is_set():\n return\n self.buffer.append(record)\n if self._should_flush(record):\n self.flush()\n\n def _should_flush(self, record: logging.LogRecord) -> bool:\n if self.capacity is None:\n # using timed flush only\n return False\n return len(self.buffer) >= self.capacity\n\n @abstractmethod\n def flush(self):\n raise NotImplementedError\n\n def close(self):\n try:\n self.closed.set()\n self.flush()\n finally:\n super().close()\n\n def _start_flushing_thread(self):\n self.thread = threading.Thread(\n target=self._flush_intervals,\n daemon=True,\n )\n self.thread.start()\n\n def _sleep_time_generator(self):\n for _ in range(self.starting_times):\n yield self.starting_interval\n while True:\n yield self.flush_interval\n\n def _flush_intervals(self):\n for sleep_time in self._sleep_time_generator():\n if self.closed.is_set():\n break\n time.sleep(sleep_time)\n self.flush()\n\n def build_message(self) -> str:\n sb = io.StringIO()\n count = defaultdict(lambda: 0)\n min_time = None\n max_time = None\n for r in self.buffer:\n key = f\"{r.filename}:{r.lineno}::{r.funcName}()\"\n count[key] += 1\n\n if min_time is None or r.created < min_time:\n min_time = r.created\n if max_time is None or r.created > max_time:\n max_time = r.created\n min_date_str = datetime.fromtimestamp(min_time).isoformat(sep=\" \", timespec=\"milliseconds\")\n max_date_str = datetime.fromtimestamp(max_time).isoformat(sep=\" \", timespec=\"milliseconds\")\n\n if len(self.buffer) > 1:\n sb.write(f\"Collected {len(self.buffer)} logs created between {min_date_str} and {max_date_str}\\n\")\n else:\n sb.write(f\"Collected 1 log created at {max_date_str}\\n\")\n sb.write(\"\\n\")\n\n for k, v in count.items():\n sb.write(f\"{v} - {k}\\n\")\n sb.write(\"\\n\")\n\n for r in self.buffer:\n sb.write(f\"{self.format(r)}\\n\\n\")\n\n sb.write(\"-- End of message --\\n\")\n return sb.getvalue()\n","repo_name":"a-was/logdog.py","sub_path":"src/logdog/handler/base_buffered_handler.py","file_name":"base_buffered_handler.py","file_ext":"py","file_size_in_byte":3761,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"8333772998","text":"import os\nimport pprint\nimport json\nimport tweepy\n\n\nclient = tweepy.Client(os.environ['BEARER_TOKEN'], wait_on_rate_limit=True)\n\ncnt = 0\nall = 0\n\nfor users_tweets in tweepy.Paginator(\n client.get_users_tweets,\n id=1511906485349265415,\n exclude=['retweets', 'replies'],\n max_results=100,\n):\n for tweet in users_tweets.data:\n all += 1\n if '彼女' in tweet.text:\n cnt += 1\n\nprint('{}/{}'.format(cnt, all))\n","repo_name":"mio256/airrep","sub_path":"cnt_kanojo_hanya.py","file_name":"cnt_kanojo_hanya.py","file_ext":"py","file_size_in_byte":444,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"32531436652","text":"\n# Specialized script for preprocesing the compilation\n\n\nimport sys\nsrc = sys.argv[1:-1]\ndst = sys.argv[-1]\n\n# collect class names\nclass_names = []\nfor s in src:\n class_names += [line.strip().split()[1].split(':')[0] for line in open(s, 'r') \n if line.strip().startswith('class ')]\nfor line in open(dst, 'r'):\n if line.strip().startswith('preprocfac'):\n cname = line.split()[1].split(';')[0]\n for c in class_names:\n print(' %s (strcmp(%s, %s::get_name()) == 0){return new %s();}' % \n ('if' if c == class_names[0] else 'else if', cname, c, c))\n print(' else {throw std::runtime_error(\"Potential not found\\\\n\");}')\n else:\n print(line.strip('\\n'))\n\n","repo_name":"subotnikgroup/scatter2","sub_path":"preprocfac.py","file_name":"preprocfac.py","file_ext":"py","file_size_in_byte":718,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"7703793715","text":"from datetime import datetime\nfrom io import TextIOBase\nimport logging\nfrom logging import FileHandler, Formatter, Handler, StreamHandler\nfrom pathlib import Path\nimport sys\nimport time\nfrom typing import Optional\n\nimport colorama\n\nfrom .env_vars import dispatcher_env_vars, trial_env_vars\n\n\ndef init_logger() -> None:\n \"\"\"\n This function will (and should only) get invoked on the first time of importing nni (no matter which submodule).\n It will try to detect the running environment and setup logger accordingly.\n\n The detection should work in most cases but for `nnictl` and `nni.experiment`.\n They will be identified as \"standalone\" mode and must configure the logger by themselves.\n \"\"\"\n colorama.init()\n\n if dispatcher_env_vars.SDK_PROCESS == 'dispatcher':\n _init_logger_dispatcher()\n return\n\n trial_platform = trial_env_vars.NNI_PLATFORM\n\n if trial_platform == 'unittest':\n return\n\n if trial_platform and not trial_env_vars.REUSE_MODE:\n _init_logger_trial()\n return\n\n _init_logger_standalone()\n\n\ndef init_logger_experiment() -> None:\n \"\"\"\n Initialize logger for `nni.experiment.Experiment`.\n\n This function will get invoked after `init_logger()`.\n \"\"\"\n formatter.format = _colorful_format\n\n\ntime_format = '%Y-%m-%d %H:%M:%S'\n\nformatter = Formatter(\n '[%(asctime)s] %(levelname)s (%(name)s/%(threadName)s) %(message)s',\n time_format\n)\n\ndef _init_logger_dispatcher() -> None:\n log_level_map = {\n 'fatal': logging.CRITICAL,\n 'error': logging.ERROR,\n 'warning': logging.WARNING,\n 'info': logging.INFO,\n 'debug': logging.DEBUG,\n 'trace': 0\n }\n\n log_path = _prepare_log_dir(dispatcher_env_vars.NNI_LOG_DIRECTORY) / 'dispatcher.log'\n log_level = log_level_map.get(dispatcher_env_vars.NNI_LOG_LEVEL, logging.INFO)\n _setup_root_logger(FileHandler(log_path), log_level)\n\n\ndef _init_logger_trial() -> None:\n log_path = _prepare_log_dir(trial_env_vars.NNI_OUTPUT_DIR) / 'trial.log'\n log_file = open(log_path, 'w')\n _setup_root_logger(StreamHandler(log_file), logging.INFO)\n\n if trial_env_vars.NNI_PLATFORM == 'local':\n sys.stdout = _LogFileWrapper(log_file)\n\n\ndef _init_logger_standalone() -> None:\n _setup_nni_logger(StreamHandler(sys.stdout), logging.INFO)\n\n # Following line does not affect NNI loggers, but without this user's logger won't\n # print log even it's level is set to INFO, so we do it for user's convenience.\n # If this causes any issue in future, remove it and use `logging.info()` instead of\n # `logging.getLogger('xxx').info()` in all examples.\n logging.basicConfig()\n\n\ndef _prepare_log_dir(path: Optional[str]) -> Path:\n if path is None:\n return Path()\n ret = Path(path)\n ret.mkdir(parents=True, exist_ok=True)\n return ret\n\ndef _setup_root_logger(handler: Handler, level: int) -> None:\n _setup_logger('', handler, level)\n\ndef _setup_nni_logger(handler: Handler, level: int) -> None:\n _setup_logger('nni', handler, level)\n\ndef _setup_logger(name: str, handler: Handler, level: int) -> None:\n handler.setFormatter(formatter)\n logger = logging.getLogger(name)\n logger.addHandler(handler)\n logger.setLevel(level)\n logger.propagate = False\n\ndef _colorful_format(record):\n if record.levelno >= logging.ERROR:\n color = colorama.Fore.RED\n elif record.levelno >= logging.WARNING:\n color = colorama.Fore.YELLOW\n elif record.levelno >= logging.INFO:\n color = colorama.Fore.GREEN\n else:\n color = colorama.Fore.BLUE\n msg = color + (record.msg % record.args) + colorama.Style.RESET_ALL\n time = formatter.formatTime(record, time_format)\n if record.levelno < logging.INFO:\n return '[{}] {}:{} {}'.format(time, record.threadName, record.name, msg)\n else:\n return '[{}] {}'.format(time, msg)\n\nclass _LogFileWrapper(TextIOBase):\n # wrap the logger file so that anything written to it will automatically get formatted\n\n def __init__(self, log_file: TextIOBase):\n self.file: TextIOBase = log_file\n self.line_buffer: Optional[str] = None\n self.line_start_time: Optional[datetime] = None\n\n def write(self, s: str) -> int:\n cur_time = datetime.now()\n if self.line_buffer and (cur_time - self.line_start_time).total_seconds() > 0.1:\n self.flush()\n\n if self.line_buffer:\n self.line_buffer += s\n else:\n self.line_buffer = s\n self.line_start_time = cur_time\n\n if '\\n' not in s:\n return len(s)\n\n time_str = cur_time.strftime(time_format)\n lines = self.line_buffer.split('\\n')\n for line in lines[:-1]:\n self.file.write(f'[{time_str}] PRINT {line}\\n')\n self.file.flush()\n\n self.line_buffer = lines[-1]\n self.line_start_time = cur_time\n return len(s)\n\n def flush(self) -> None:\n if self.line_buffer:\n time_str = self.line_start_time.strftime(time_format)\n self.file.write(f'[{time_str}] PRINT {self.line_buffer}\\n')\n self.file.flush()\n self.line_buffer = None\n","repo_name":"ShireFolk/nni","sub_path":"nni/runtime/log.py","file_name":"log.py","file_ext":"py","file_size_in_byte":5169,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"12361539529","text":"import asyncio\nimport datetime\n\nimport parsedatetime as pdt\nfrom discord.ext import commands\n\n\ndef get_date(text):\n cal = pdt.Calendar()\n time, res = cal.parseDT(text, datetime.datetime.utcnow())\n return time if res else None\n\nclass Reminders:\n \"\"\"Tools for reminding me\"\"\"\n def __init__(self, bot):\n self.bot = bot\n self.timers = bot.get_cog('Timers')\n\n async def on_message(self, msg):\n if msg.content.lower().startswith('remind '):\n reminder = msg.content[7:]\n if reminder.lower().startswith('me '):\n reminder = reminder[3:]\n if reminder.lower().startswith('to '):\n reminder = reminder[3:]\n\n time = get_date(reminder)\n if not time:\n await msg.channel.send(\"When?\")\n msg = await self.bot.wait_for('message',\n check=lambda m: m.author == msg.author and m.channel == msg.channel)\n time = get_date(msg.content)\n if time:\n await self.timers.create_timer('reminder', time, [msg.author.id, msg.channel.id, reminder])\n await msg.channel.send(f'I\\'ll remind you then!')\n else:\n await msg.channel.send(f\"Idk when you want me to remind you\")\n\n async def on_reminder_event(self, author_id, destination_id, msg):\n author = self.bot.get_user(author_id)\n if author is None:\n return\n channel = self.bot.get_channel(destination_id)\n if channel is None:\n # Check if it's a DM channel\n author = self.bot.get_user(author_id)\n try:\n channel = await author.dm_channel()\n except:\n return\n\n await channel.send(f'{author.mention}\\n{msg}')\n\ndef setup(bot):\n bot.add_cog(Reminders(bot))\n","repo_name":"Rooni/rub","sub_path":"cogs/reminders.py","file_name":"reminders.py","file_ext":"py","file_size_in_byte":1870,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"70604062046","text":"\"\"\"\nSerenity Force Field.\n\"\"\"\n\nfrom setuptools import find_packages, setup\nimport sys\nimport versioneer\n\nneeds_pytest = {\"pytest\", \"test\", \"ptr\"}.intersection(sys.argv)\npytest_runner = [\"pytest-runner\"] if needs_pytest else []\n\nshort_description = __doc__.split(\"\\n\")\n\ntry:\n with open(\"README.md\", \"r\") as handle:\n long_description = handle.read()\nexcept IOError:\n long_description = \"\\n\".join(short_description[2:])\n\nsetup(\n name=\"serenityff\",\n author=\"rinikerlab\",\n author_email=\"mlehner@ethz.ch\",\n description=short_description[0],\n long_description=long_description,\n long_description_content_type=\"text/markdown\",\n url=\"http://github.com/rinikerlab/serenityff\",\n setup_requires=[] + pytest_runner,\n version=versioneer.get_version(),\n cmdclass=versioneer.get_cmdclass(),\n license=\"MIT\",\n packages=find_packages(),\n # packages=find_namespace_packages(include=[\"serenityff/charge/*\"]),\n include_package_data=True,\n keywords=\"molecular dynamics, force field, parametrization, nonbonded parameters, explainable ml\",\n python_requires=\">=3.7\",\n entry_points={\n \"openff.toolkit.plugins.handlers\": [\n \"SerenityFFCharge = serenityff.charge.utils.serenityff_charge_handler:SerenityFFChargeHandler\"\n ]\n },\n)\nprint(\"test setup.py done\")\n","repo_name":"rinikerlab/DASH-tree","sub_path":"setup.py","file_name":"setup.py","file_ext":"py","file_size_in_byte":1321,"program_lang":"python","lang":"en","doc_type":"code","stars":6,"dataset":"github-code","pt":"86"}
+{"seq_id":"21323656448","text":"import sys\nfrom setuptools import setup, find_packages\n\n\n__version__ = open(\"triform2/version.py\").readline().split(\" = \")[1].replace(\n '\"', '').strip()\n\ninstall_requires = [\"pyranges\"]\n\nsetup(\n name=\"triform2\",\n packages=find_packages(),\n # package_dir=find_packages(),\n # package_data={\"triform2\": [\"scripts/chromsizes/*.chromsizes\"]},\n scripts=[\"bin/triform2\"],\n version=__version__,\n description=\n \"Improved sensitivity, specificity and control of false discovery rates in ChIP-Seq peak finding.\",\n author=\"Endre Bakken Stovner\",\n author_email=\"endrebak85@gmail.com\",\n url=\"http://github.com/endrebak/triform2\",\n keywords=[\"ChIP-Seq\"],\n license=[\"MIT\"],\n install_requires=install_requires,\n classifiers=[\n \"Programming Language :: Python :: 2.7\",\n \"Programming Language :: Python :: 3\",\n \"Development Status :: 2 - Pre-Alpha\",\n \"Environment :: Other Environment\", \"Intended Audience :: Developers\",\n \"Intended Audience :: Science/Research\",\n \"License :: OSI Approved :: GNU General Public License v3 (GPLv3)\",\n \"Operating System :: POSIX :: Linux\",\n \"Operating System :: MacOS :: MacOS X\",\n \"Topic :: Scientific/Engineering\"\n ],\n long_description=\n \"Improved sensitivity, specificity and control of false discovery rates in ChIP-Seq peak finding.\")\n","repo_name":"endrebak/triform","sub_path":"setup.py","file_name":"setup.py","file_ext":"py","file_size_in_byte":1373,"program_lang":"python","lang":"en","doc_type":"code","stars":1,"dataset":"github-code","pt":"86"}
+{"seq_id":"36621791473","text":"#!/usr/bin/python\n# -*- coding:utf-8 -*- \nimport unittest\nfrom devicewrapper.android import device as d\nimport util as u\n\nclass MessageTest(unittest.TestCase):\n def setUp(self):\n super(MessageTest, self).setUp()\n d.wakeup()\n #d.start_activity(action='android.intent.action.DIAL', data='tel:13581739891', flags=0x04000000)\n u.backHome(d)\n\n def tearDown(self):\n super(MessageTest, self).tearDown()\n u.backHome(d)\n\n def testMO_MTSms(self):\n str_receiver = '10010'\n str_content = 'Message Test Content'\n #assert d.exists(text='Messaging') , 'message app not appear on the home screen'\n #assert d.exists(text='Apps') , 'apps not appear on the home screen'\n #d(text='Messaging').click.wait()\n\n d.start_activity(component='com.android.mms/.ui.ConversationList')\n assert d(text='Messaging').wait.exists(timeout=3000), 'can not launch message in 3s'\n\n #Delete messages\n if not d(text=\"No conversations.\").wait.exists(timeout=2000):\n d.press('menu')\n d(text='Delete all threads').click.wait()\n d(text='Delete', className='android.widget.Button').click.wait()\n assert d(text=\"No conversations.\").wait.exists(timeout=3000), 'Delete message failed'\n\n d(description='New message').click.wait()\n d(text='To').set_text(str_receiver)\n assert d(text=str_receiver).wait.exists(timeout=10000), 'receiver number input error' \n d(text='Type message').set_text(str_content)\n assert d(text=str_content).wait.exists(timeout=10000), 'content input error' \n d(description='Send', className='android.widget.ImageButton').click.wait()\n\n assert d(text='SENDING…').wait.exists(timeout=10000), 'Sending not start in 10s'\n assert d(text='SENDING…').wait.gone(timeout=20000), 'sms sending failed in 20s'\n d.sleep(15)\n assert d(textStartsWith='尊敬的').wait.exists(timeout=20000), 'No feedback in 35s'\n\n def testMoMMS(self):\n str_receiver = '13501101339'\n str_content = 'Message Test Content'\n d.start_activity(component='com.android.mms/.ui.ConversationList')\n\n if not d(text=\"No conversations.\").wait.exists(timeout=2000):\n d.press('menu')\n d(text='Delete all threads').click.wait()\n d(text='Delete', className='android.widget.Button').click.wait()\n assert d(text=\"No conversations.\").wait.exists(timeout=3000), 'Delete message failed'\n\n d(description='New message').click.wait()\n d(text='To').set_text(str_receiver)\n #assert d(text=str_receiver).wait.exists(timeout=10000), 'receiver number input error' \n d(text='Type message').set_text(str_content)\n #assert d(text=str_content).wait.exists(timeout=10000), 'content input error' \n #d(description='Send', className='android.widget.ImageButton').click.wait()\n\n d(description='Attach').click.wait()\n assert d(text='Capture picture').wait.exists(timeout=3000), 'no adding attachment panel' \n d(text='Capture picture').click.wait()\n assert d(description='Shutter button').wait.exists(timeout=3000), 'no camera' \n d(description='Shutter button').click.wait()\n d.sleep(1)\n assert d(description='Review done').wait.exists(timeout=3000), 'Take picture failed.'\n d(description='Review done').click.wait()\n assert d(text='MMS', description='Send MMS').wait.exists(timeout=3000), 'add attachment failed'\n d(text='MMS', description='Send MMS').click.wait()\n assert d(text='SENDING…').wait.exists(timeout=10000), 'No sending status'\n d.sleep(30)\n assert d(text='SENDING…').wait.gone(timeout=20000), 'MMS sending failed in 50s'\n\n\n\n \n\n","repo_name":"shaofang/falcon","sub_path":"scripts/testcases/message.py","file_name":"message.py","file_ext":"py","file_size_in_byte":3841,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"33607183678","text":"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nfrom random import randint\n\nclass Card(object):\n def __init__(self, suit_idx = 0,number_idx = 0, deck_name=None):\n suits = ['Club', 'Heart', 'Spade', 'Diamond']\n numbers = [i for i in range(1,14)] # indica o valor da carta\n names = ['ace','two','three','four','five','six','seven','eigth','nine','ten','jack','queen','king']\n self.suit = suits[suit_idx]\n self.number = numbers[number_idx]\n self.name = names[number_idx]\n self.face_on = False # indica se esta virada (True) ou nao (False)\n self.deck_name = deck_name\n self.shows_deck_name = False # for debug, change it to True\n\n def turn(self):\n self.face_on = not self.face_on\n\n def is_turned_on(self):\n return self.face_on\n\n def __str__(self):\n if self.deck_name and self.shows_deck_name:\n return '%s: %s of %s' % (self.deck_name, self.name, self.suit)\n else:\n return '%s of %s' % (self.name, self.suit)\n\nclass Deck(Card):\n def __init__(self, deck_name=None):\n self.deck_name = deck_name\n self.cards=[]\n for i in range(0,4):\n for j in range(0,13):\n card=Card(i, j, self.deck_name)\n self.cards.append(card)\n\n def shuffle(self):\n '''shuffle deck'''\n buffer=[]\n while(len(self.cards)):\n i = randint(0, len(self.cards)-1)\n card = self.cards.pop(i)\n buffer.append(card)\n print('I like to shuffle it, shuffle it')\n self.cards = buffer\n\n def get_number_of_cards_with_faces_on(self):\n sum = 0\n for card in self.cards:\n sum = sum + 1 if card.is_turned_on() else sum\n return sum\n\n def __str__(self):\n # for card in self.cards:\n # print(card)\n return 'deck: %s' % (self.deck_name)","repo_name":"FredericoTakayama/blackjack","sub_path":"deck.py","file_name":"deck.py","file_ext":"py","file_size_in_byte":1893,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"41919240755","text":"from operator import add,sub,mul,truediv\n\n# a solution to https://adventofcode.com/2020/day/18\n\nclass Statement:\n def __init__(self):\n self.operator = None\n self.operand1 = None\n self.operand2 = None\n\n def add_operand(self, op):\n if self.operand1 is None:\n self.operand1 = op\n else:\n if self.operand2 is None:\n self.operand2 = op\n else: # only relevant for part 2\n self.operand2.add_operand(op)\n\n def ready(self):\n return self.operand1 is not None and self.operand2 is not None and self.operator is not None\n\n def value(self):\n return self.operator(self.operand1.value(),self.operand2.value())\n\nclass Num:\n def __init__(self, val):\n self.val = float(val)\n\n def ready(self):\n return True\n\n def value(self):\n return self.val\n\nclass ParenGroup:\n def __init__(self, content):\n self.content = content[1:-1] # strip off enclosing parentheses\n self.val = parse(self.content)\n\n def value(self):\n return self.val\n\nknown_operators = {\n '+':add,\n '-':sub,\n '*':mul,\n '/':truediv\n}\n\ndef parse(line):\n chunks = line.strip().split(' ')\n token_index = 0\n statement = Statement()\n\n while token_index < len(chunks):\n chunk = chunks[token_index]\n if chunk.isnumeric():\n n = Num(chunk)\n statement.add_operand(n)\n elif chunk in known_operators:\n if statement.ready():\n s2 = Statement()\n s2.operator = known_operators[chunk]\n\n if part == 1 or chunk != '+':\n s2.operand1 = statement\n statement = s2\n else:\n s2.operand1 = statement.operand2\n statement.operand2 = s2\n else:\n statement.operator = known_operators[chunk] \n elif chunk.startswith('('):\n num_parens = 0\n parenthetical = []\n while token_index < len(chunks):\n num_parens += chunks[token_index].count('(')\n num_parens -= chunks[token_index].count(')')\n parenthetical.append(chunks[token_index])\n if num_parens == 0:\n break\n token_index += 1\n pg = ParenGroup(' '.join(parenthetical))\n statement.add_operand(pg)\n else:\n print(f\"Uh oh: unexpected: {chunk}\")\n exit()\n\n token_index += 1\n \n return statement.value()\n\n\ndef process():\n total = 0\n with open(\"dec18in.txt\") as in_file:\n\n for line in in_file:\n result = parse(line.strip())\n total += result\n print(result)\n\n print(total)\n\npart = 1\n#print(parse('1 + 2 * 3 + 4 * 5 + 6'))\nprocess()\npart = 2\n# print(parse('1 + (2 * 3) + (4 * (5 + 6))'))\n# print(parse('2 * 3 + (4 * 5)'))\n# print(parse('5 + (8 * 3 + 9 + 3 * 4 * 3)'))\n# print(parse('5 * 9 * (7 * 3 * 3 + 9 * 3 + (8 + 6 * 4))'))\n# print(parse('((2 + 4 * 9) * (6 + 9 * 8 + 6) + 6) + 2 + 4 * 2'))\nprocess()","repo_name":"mjsambol/advent-of-code","sub_path":"2020/dec18.py","file_name":"dec18.py","file_ext":"py","file_size_in_byte":3133,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"34438587471","text":"import errno\nimport fnmatch\nimport io\nimport os\nimport pygame\nimport stat\nimport sys\nimport threading\nimport time\nfrom pygame.locals import *\nfrom subprocess import call \n\n# fb/ts setup\nos.putenv('SDL_VIDEODRIVER', 'fbcon')\nos.putenv('SDL_FBDEV' , '/dev/fb1')\nos.putenv('SDL_MOUSEDRV' , 'TSLIB')\nos.putenv('SDL_MOUSEDEV' , '/dev/input/touchscreen')\n\n# init\npygame.init()\npygame.mouse.set_visible(False)\nscreen = pygame.display.set_mode((0,0), pygame.FULLSCREEN)\nscreen.fill((255,255,255))\n\n# fonts\ntemp_font = pygame.font.SysFont('Monospace', 16)\nwelcome_font = pygame.font.SysFont('Monospace', 12)\nsize_font = pygame.font.SysFont('Monospace', 36)\n\n# classes\nclass Icon:\n def __init__(self, name):\n self.name = name\n try:\n self.bitmap = pygame.image.load(iconPath + '/' + name + '.png')\n except:\n pass\n\n# Text Class\n# __init__:\n# size (W,H)\n# textpos (X,Y), X=-1 for centered\n# font pygame.[Sys]Font\n# text string\n# color (R,G,B); default (0,0,0)\n# getRenderedSurface:\n# returns: pygame.Surface\n\nclass Text:\n def __init__(self, size, textpos, font, text, color=(0,0,0)):\n self.size = size\n self.textposx= textpos[0]\n self.textposy= textpos[1]\n self.font = font\n self.text = text\n self.color = color\n self.surface = pygame.Surface(size, pygame.SRCALPHA, 32)\n self.textsz = self.font.size(text)\n if (self.textposx == -1):\n self.textposx = (size[0]-self.textsz[0])/2\n rtext = self.font.render(self.text, 1, self.color)\n self.surface.blit(rtext, (self.textposx, self.textposy))\n self.font = None\n\n def getRenderedSurface(self):\n return self.surface\n\nclass Button:\n def __init__(self, rect, **kwargs):\n self.rect = rect # Bounds\n self.color = None # Background fill color, if any\n self.iconBg = None # Background Icon (atop color fill)\n self.iconFg = None # Foreground Icon (atop background)\n self.bg = None # Background Icon name\n self.fg = None # Foreground Icon name\n self.callback = None # Callback function\n self.value = None # Value passed to callback\n self.selectable = True\n for key, value in kwargs.iteritems():\n if key == 'color' : self.color = value\n elif key == 'bg' : self.bg = value\n elif key == 'fg' : self.fg = value\n elif key == 'cb' : self.callback = value\n elif key == 'value' : self.value = value\n elif key == 'selectable': self.selectable = value\n\n def selected(self, pos):\n if(self.selectable == False):\n return False\n x1 = self.rect[0]\n y1 = self.rect[1]\n x2 = self.rect[2]\n y2 = self.rect[3]\n if ((pos[0] >= x1) and (pos[0] <= x2) and\n (pos[1] >= y1) and (pos[1] <= y2)):\n if self.callback:\n if self.value is None: self.callback()\n else: self.callback(self.value)\n return True\n return False\n\n def draw(self, screen):\n if self.color:\n screen.fill(self.color, self.rect)\n if self.iconBg:\n screen.blit(self.iconBg.bitmap, (self.rect[0], self.rect[1]))\n if self.iconFg:\n screen.blit(self.iconFg.bitmap,\n (self.rect[0]+(self.rect[2]-self.iconFg.bitmap.get_width())/2,\n self.rect[1]+(self.rect[3]-self.iconFg.bitmap.get_height())/2))\n elif isinstance(self.fg, Text):\n screen.blit(self.fg.getRenderedSurface(), (self.rect[0], self.rect[1]))\n\n def setBg(self, name):\n if name is None:\n self.iconBg = None\n else:\n for i in icons:\n if name == i.name:\n self.iconBg = i\n break\n\n\n# globals\niconPath = 'icons'\ntemp = 192\nuser = None\nicons = []\n\n# callbacks\n\ndef changeTemp(updn):\n global temp\n if(updn == 0):\n temp -= 1\n elif(updn == 1):\n temp += 1\n\nbuttons = [\n # screen mode 0 - login page\n [],\n\n # screen mode 1 - main menu\n [\n Button((295, 0,315, 30), bg='check', selectable=False ),\n Button(( 0, 80, 18,160), bg='slide-left-disabled' ),\n Button((302, 80,320,160), bg='slide-right' ),\n Button(( 10,200,110,220), fg=Text((100,20), (0,0), temp_font, \"Boil Temp:\"), selectable=False),\n Button(( 16,220, 30,234), bg='btn-minus', cb=changeTemp, value=0 ),\n Button(( 86,220, 100,234), bg='btn-plus', cb=changeTemp, value=1 ),\n Button(( 24, 80, 89,160), bg='size-frame', fg=Text((65,80), (-1,6), size_font, \"3\") ),\n Button(( 93, 80,158,160), bg='size-frame-selected', fg=Text((65,80), (-1,6), size_font, \"7\") ),\n Button((162, 80,227,160), bg='size-frame', fg=Text((65,80), (-1,6), size_font, \"12\") ),\n Button((231, 80,296,160), bg='size-frame', fg=Text((65,80), (-1,6), size_font, \"16\") ),\n Button((198,198,318,238), bg='brew-ok', cb=exit ),\n ],\n\n # screen mode 2 - working\n [],\n\n # screen mode 3 - standby mode\n [],\n]\n\nfor file in os.listdir(iconPath):\n if fnmatch.fnmatch(file, '*.png'):\n icons.append(Icon(file.split('.')[0]))\n\n# Assign Icons to Buttons, now that they're loaded\nfor s in buttons: # For each screenful of buttons...\n for b in s: # For each button on screen...\n for i in icons: # For each icon...\n if b.bg == i.name: # Compare names; match?\n b.iconBg = i # Assign Icon to Button\n# b.bg = None # Name no longer used; allow garbage collection\n if b.fg == i.name:\n b.iconFg = i\n b.fg = None\n\nscreenMode=1\nwhile(True):\n for event in pygame.event.get():\n if(event.type is MOUSEBUTTONDOWN):\n pos = pygame.mouse.get_pos()\n for b in buttons[screenMode]:\n if b.selected(pos): print(\"selected button: \"+b.bg)\n\n screen.fill((255,255,255))\n for i,b in enumerate(buttons[screenMode]):\n b.draw(screen)\n welcome = welcome_font.render('Welcome, Katelyn!', 0, (0,0,0))\n screen.blit(welcome, (5,5))\n temp_txt = temp_font.render(str(temp)+'F', 0, (0,0,0))\n screen.blit(temp_txt, (38,218))\n pygame.display.flip()\n if ( len(sys.argv) > 1 and sys.argv[1] == \"screen\" ):\n print(\"taking screen capture\")\n pygame.image.save(screen, \"keurig-screen.jpg\")\n exit()\n","repo_name":"slowbro/keurig-control","sub_path":"keurig.py","file_name":"keurig.py","file_ext":"py","file_size_in_byte":6559,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"35162434195","text":"list = [(\"student1\", \"A\"),(\"student2\", \"B\"),(\"student3\",\"A\"),(\"student4\",\"F\"),(\"student5\",\"D\"),(\"student6\",\"B\")]\r\ndict={}\r\ndict['A'] = []\r\ndict['B'] = []\r\ndict['C'] = []\r\ndict['D'] = []\r\ndict['F'] = []\r\n\r\nfor i in list:\r\n\tdict[i[1]].append(i[0])\r\n\r\n\r\nprint(dict)","repo_name":"McSherryBP/pythonCodeSnippets","sub_path":"dictionaryFromListGradesAlternative.py","file_name":"dictionaryFromListGradesAlternative.py","file_ext":"py","file_size_in_byte":262,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"41368947344","text":"annual_salary = int(input(\"Enter the starting salary: \"))\n\ncurrent_savings = 0\nsemi_annual_raise = 0.07\nr = 0.04\ndown_payment_portion = 0.25\ntotal_cost = 1000000\nmonths = 36\ndiff = 5000\nlow = 0.00\nhigh = 1.00\nportion_guess = (low+high)/2\nnum_guesses = 0\n\nwhile abs(current_savings - total_cost * down_payment_portion) >= diff and low < high:\n current_savings = 0\n temp_annual_salary = annual_salary\n\n for n in range(months+1):\n monthly_salary = temp_annual_salary/12\n if n % 6 == 0 and n != 0 :\n temp_annual_salary += temp_annual_salary * semi_annual_raise\n current_savings = current_savings + portion_guess * monthly_salary\n current_savings = current_savings + current_savings * r/12\n\n if current_savings < total_cost * down_payment_portion:\n low = portion_guess\n else:\n high = portion_guess\n\n portion_guess = (low+high)/2\n num_guesses += 1\n\nif(low < high):\n print(\"Best saving rate: \" + str(portion_guess))\n print(\"Steps in bisection search: \" + str(num_guesses))\nelse:\n print(\"It is not possible to pay the down payment in three years.\")\n","repo_name":"PanPapag/MIT-OCW-6.0001","sub_path":"PS1/ps1c.py","file_name":"ps1c.py","file_ext":"py","file_size_in_byte":1124,"program_lang":"python","lang":"en","doc_type":"code","stars":2,"dataset":"github-code","pt":"86"}
+{"seq_id":"8509066727","text":"# First take command from user\n# todos = [] no need to create a list its done by readlines method.\nimport functions\nimport time\n\n# To show current time and date. \nnow = time.strftime(\"%b %d %H:%M:%S\")\n\nprint(\"Welcome, Its\", now)\nwhile True:\n\n userAction = input(\"Type add, show, complete, edit or exit: \")\n userAction = userAction.lower().strip()\n # Using match case for all given commands.\n\n if userAction.startswith(\"add\"):\n newTodo = userAction[4:]\n # This is a line to read it back help to store all todos.\n # file = open(\"Files/todos.txt\", \"r\")\n # # store it into todos variable to iterate it.\n # todos = file.readlines()\n # file.close()\n # Using with context manager to do the same thing\n\n todos = functions.read_todos()\n\n todos.append(newTodo + \"\\n\")\n\n # file = open(\"Files/todos.txt\", \"w\")\n # file.writelines(todos)\n # file.close()\n\n functions.write_todos(todos)\n\n elif userAction.startswith(\"show\"):\n # we have to open todos here to show it\n # file = open(\"Files/todos.txt\", \"r\")\n # todos = file.readlines()\n # file.close()\n # todos = [t.title().strip() for t in todos] # use of list comprehension\n todos = functions.read_todos()\n\n for index, t in enumerate(todos):\n t = t.title().strip()\n # print(index,t)\n\n # using f strings to print variables same as $ in js\n toPrint = f\"{index + 1}- {t}\"\n print(toPrint)\n\n elif userAction.startswith(\"edit\"):\n try:\n\n # In this by entering index we are editing but user counts from 1..\n index = int(userAction[5:])\n todos = functions.read_todos()\n\n todos[index - 1] = input(\"Enter edited todo: \") + \"\\n\"\n\n # This part is writing the edited todos so first edit then write.\n # file = open(\"Files/todos.txt\", \"w\")\n # file.writelines(todos)\n # file.close()\n\n functions.write_todos(todos)\n\n except ValueError:\n print(\"Please enter number of particular todo\")\n continue\n except IndexError:\n print(\"There is no todo at that number\")\n continue\n\n # This case is for completed todos, removing it from the list.\n elif userAction.startswith(\"complete\"):\n try:\n index = int(userAction[9:])\n index = index - 1\n\n todos = functions.read_todos()\n\n todo_to_remove = todos[index].strip(\"\\n\")\n todos.pop(index)\n\n # This part is re writing the todos which is available.\n # file = open(\"Files/todos.txt\", \"w\")\n # file.writelines(todos)\n # file.close()\n\n functions.write_todos(todos)\n\n # its good to display a message which todo is removed.\n message = f\"Todo '{todo_to_remove}' is removed from list.\"\n print(message.title())\n except IndexError:\n print(\"There is no todo at that number\")\n continue\n except ValueError:\n print(\"Please enter number of particular todo\")\n continue\n\n elif userAction.startswith(\"exit\"):\n break\n\n # This case is executed if no any case matches.\n else:\n print(\"Command is not valid..\")\n","repo_name":"Navyam-Raushan/To_do_app","sub_path":"cli.py","file_name":"cli.py","file_ext":"py","file_size_in_byte":3349,"program_lang":"python","lang":"en","doc_type":"code","stars":0,"dataset":"github-code","pt":"86"}
+{"seq_id":"29408685599","text":"from urllib.request import urlopen\nfrom bs4 import BeautifulSoup\nimport json\nimport requests\nimport ssl\nssl._create_default_https_context = ssl._create_unverified_context\n\ndef text(raw):\n if 'span class=\"desc\"' in str(raw):\n t = raw.getText().strip().replace(\"\\n\", \"\")\n while \" \" in t:\n t = t.replace(\" \", \" \")\n return t + \"\"\n else:\n t = raw.getText().strip().replace(\"\\n\", \"\")\n while \" \" in t:\n t = t.replace(\" \", \" \")\n return t\n\ndef get_player_stats(name, num):\n l = name.lower().split(\" \")\n player_string = f\"{l[1][0:5] + l[0][0:2]}0{str(num)}\"\n url = f\"https://www.basketball-reference.com/players/{player_string[0]}/{player_string}.html\"\n\n r = requests.get(url)\n try:\n html = urlopen(url)\n except:\n print('player not found')\n return False\n soup = BeautifulSoup(html, 'html.parser')\n\n with open('file.html', 'w+') as file:\n file.write(r.text)\n\n stats = {}\n\n ps = soup.findAll('p')\n for p in range(len(ps)):\n\n t = text(ps[p])\n if p == 0 and \"pronunciation\" in t.lower():\n t = text(ps[p + 1])\n if p == 0 and \"▪\" not in t.lower():\n stats['name'] = t\n elif p == 0:\n ats = t.split(\" ▪ \")\n stats['name'] = ats[0].split(\": \")\n if 'twitter' in t.lower() and 'instagram' in t.lower():\n stats['twitter'] = ats[1].split(\": \")[1]\n stats['instagram'] = ats[2].split(\": \")[1]\n if 'twitter' in t.lower() and 'instagram' not in t.lower():\n stats['twitter'] = ats[1].split(\": \")[1]\n if 'instagram' in t.lower() and 'twitter' not in t.lower():\n stats['instagram'] = ats[1].split(\": \")[1]\n if (p == 1 or p == 2) and '' in t.lower():\n stats['former_name'] = t.split(\"\")[0].replace(\")\", \"\").replace(\"(\", \"\")\n if (p in list(range(0, 5))) and t.lower()[0] == '(' and '' not in t.lower() and t[1] != '-':\n stats['nicknames'] = t.replace(\"(\", \"\").replace(\")\", \"\").split(\", \")\n if p in list(range(0, 6)) and 'position: ' in t.lower():\n stats['position'] = t.lower().split('position: ')[1].split(' ▪')[0]\n stats['shooting_hand'] = t.lower().split('shoots: ')[1]\n if p in list(range(1, 10)) and len(t) > 0 and t[1] == '-':\n stats['height'] = t.split(',')[0]\n stats['weight'] = t.split(',')[1].split('lb')[0].strip()\n if p in list(range(2, 11)) and len(t) > 0 and t.lower()[0:6] == 'born: ':\n stats['birthday'] = (t.lower().split('born')[1].split(' in')[0])[2:]\n if \"in\" in t.lower():\n stats['birthplace'] = t.lower().split('in ')[1].replace(', ', ', ')[0:-2] + \" \" + t.lower()[len(t)-2:len(t)].upper()\n if p in list(range(2, 12)) and len(t) > 0 and t.lower()[0:6] == 'died: ':\n stats['died'] = (t.lower().split('died')[1].split('(')[0])[2:].replace(' ', ' ')\n if p in list(range(2, 14)) and len(t) > 0 and (t.lower()[0:9] == 'college: ' or t.lower()[0:10] == 'colleges: '):\n if 'college: ' in t.lower():\n stats['college'] = t.lower().split('college:')[1][1:]\n if 'colleges: ' in t.lower():\n stats['colleges'] = t.lower().split('colleges:')[1][1:].split(', ')\n if p in list(range(2, 16)) and len(t) > 0 and t.lower().startswith(\"high school\"):\n stats['high school'] = t.lower()[12:]\n if p in list(range(2, 18)) and len(t) > 0 and t.lower().startswith('draft: '):\n stats['draft'] = t.lower().split('draft: ')[1]\n # stats['drafted_to'] = t.lower().split('draft: ')[1].split(',')[0] + \", \" + t.lower().split('), ')[1].replace(' nba draft', '')\n # stats['draft_pick'] = t.lower().split('draft: ')[1].split(',')[1][1:] + t.lower().split('draft: ')[1].split(',')[2] \n if p in list(range(2, 20)) and len(t) > 0 and t.lower().startswith('nba debut: '):\n stats['debut'] = t.lower().split(': ')[1]\n break\n\n \n try:\n awards = []\n blings = soup.findAll('ul', {'id': 'bling'})[0].findAll('li')\n for b in blings:\n awards.append(b.getText().lower())\n\n stats['accomplishments'] = awards\n except IndexError:\n pass\n\n\n stats['career_summary'] = {}\n\n career_div = soup.findAll('div', {'class': 'stats_pullout'})[0]\n # print(r.text.split('