blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f045e88e410fb769ce9548717c356b5dfbda0e11 | aa5be4f335d040394e6282b4cfe4612c4a0db65d | /polygontools/pt_modules/pt_tools_func.py | 28d8e5d2f1fcb56f687b07f88e01ef8e22b6fb3d | [
"MIT"
] | permissive | Ivanou-Dzmitry/polygon_tools_2_max | eaac4b5ded9c10b381e577c3982b19d47c4f8022 | eaccfaef92207a2114c9d0ec5152aaab28e8eb9d | refs/heads/main | 2023-03-18T12:10:49.463029 | 2021-02-28T16:32:49 | 2021-02-28T16:32:49 | 343,153,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,053 | py | # This Python file uses the following encoding: utf-8
#******************************************************************************************************
# Created: polygon.by
# # Last Updated: 12 may 2020
# Version: 2.0.1
#
# Authors:
# Dzmitry Ivanou
# Dzmitry Dzrynou
#
# Much tha... | [
"noreply@github.com"
] | Ivanou-Dzmitry.noreply@github.com |
51ff98de2341afa7e968bbb9daed055ef27593eb | 6732f5aba14fcce584e8803db7ccf3c6b6a4dd8f | /test/unit_test/test_json_api_request.py | f49b2259cfe32cc0de09c0a3820d2c66dbf3bfd3 | [] | no_license | ventaquil/json-api-smart | 7dfdf23ac91fb4f848121a46566d754cc2457aac | 7dc664c18479791a0556eec565ee9e937482c580 | refs/heads/master | 2022-11-23T23:12:05.820378 | 2020-08-01T14:54:08 | 2020-08-01T14:54:08 | 284,279,866 | 0 | 0 | null | 2020-08-01T14:51:41 | 2020-08-01T14:51:41 | null | UTF-8 | Python | false | false | 2,718 | py | from unittest.mock import Mock, patch
import requests_mock
from src.json_api_request import JsonApiRequest
import json
@patch("src.json_api_request.JsonApiCallContext")
def test_find_returns_build_type_from_request(json_api_call_context_mock):
with requests_mock.Mocker() as m:
m.get("http://base_url.de/ar... | [
"peter.laudel@gmail.com"
] | peter.laudel@gmail.com |
8a212c64dfea9859cd41cea1386e1802076720e3 | 2e3420550bbc78509e53abb2e4ecec534a8600ee | /Questao10/richardson.py | de3919c62e33c300f704839a71afda9eb596243a | [] | no_license | EMachad0/P1ANN | 15532236f1f95d9dab0e3f0bcee27b82c4b2c562 | f3ef0820f321e0d6fbffedfd14e0c52f907807f0 | refs/heads/master | 2022-12-07T02:11:57.918980 | 2020-08-19T20:26:40 | 2020-08-19T20:26:40 | 288,514,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | from math import *
def fk(x, h, n, p):
# I'm recursive :)
if n == 1:
return df(x, h)
n -= 1
return (2 ** (n * p) * fk(x, h/2, n, p) - fk(x, h, n, p)) / (2 ** (n * p) - 1)
fs = ["cos(x**x)",
"sin(x)",
"x**(cos(x))",
"e**(-x**2)"]
dfs = ["(f(p)-f(p-h))/h",
"(f(p+h)-f(p-h))/(2*h)... | [
"elitonmahcadod200@gmail.com"
] | elitonmahcadod200@gmail.com |
6177c3e5145dab0ebb77f902ac0a558478083544 | 1ee2cd179e9eb2ec7541dec5b14ce993624181b8 | /openrasp_iast/plugin/scanner/directory_basic.py | 4883ffe987a3f1031767825e28eed46ad47c6f17 | [
"Apache-2.0"
] | permissive | Ze4lfRoG/openrasp-iast | 0c8492d5c9fbe0c5b3d994f8aa703628361dd405 | 0fd4cdaae642a759cffe214de51c392b75aa828e | refs/heads/master | 2020-10-01T09:05:36.359241 | 2019-12-11T12:06:43 | 2019-12-11T12:06:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""
Copyright 2017-2019 Baidu Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by... | [
"350905402@qq.com"
] | 350905402@qq.com |
3fb18c3471e9347c1454d23b38bb0318930d0646 | 625a24dd7e5955a6aee5f079104643c702d1ccf0 | /test_rpn.py | 8f6ab44c695e937b0e82bb0e74fd40c8a26c4ad6 | [] | no_license | issaelam/csprag-f19-rpn | 867ecb844552b789cb38c868ceaffcdcec4693ae | 01949f414b90506f8d9feb6dee567dbadac47b20 | refs/heads/master | 2020-09-02T11:54:35.681251 | 2019-11-03T14:15:48 | 2019-11-03T14:15:48 | 219,215,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import unittest
import rpn
class TestBasics(unittest.TestCase):
def test_add(self):
result = rpn.calculate("1 1 +")
self.assertEqual(2, result)
def test_subtract(self):
result = rpn.calculate("5 3 -")
self.assertEqual(2, result)
def test_multiply(self):
result = rpn... | [
"issaelam@umich.edu"
] | issaelam@umich.edu |
22344bf97357534acdd377ef55d44b05eb0b9b1e | 533e4099e396c2d1135b08477e0c3c46aa1847df | /learning_log/learning_logs/admin.py | 7175813b5fb9d4ff6a56f5abc8f8c8b824a6c1cc | [] | no_license | Lancelot0902/Python-program | 1bbe4b549525a724a61a5e113337edc890cd071f | 84a07af3f450fa21edd5f68378d171dd3cc84928 | refs/heads/master | 2020-08-12T14:50:54.662820 | 2019-11-19T13:08:37 | 2019-11-19T13:08:37 | 214,785,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from learning_logs.models import Topic,Entry
from learning_logs.models import Topic
admin.site.register(Topic)
admin.site.register(Entry)
# Register your models here.
| [
"877675145@qq.com"
] | 877675145@qq.com |
420e1eeb908c981764e313bb26175b98853cb34a | e2d7d1c41e37f0b4bdb95933b3ba23aba9fbaa27 | /Notes.txt | a38bee18e1349cfcd1f04dcfbaf279dd300780cc | [] | no_license | Keshav-Bachu/Reinforcement_Learning_Model | 6d9f3563bbffea0d4a944303f26aba70d7825dd6 | d577edac20dbfde91eb60298fdd5105bd353580f | refs/heads/master | 2020-03-29T07:46:01.178797 | 2018-12-03T06:04:49 | 2018-12-03T06:04:49 | 149,678,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | txt | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 21 08:44:54 2018
@author: keshavbachu
"""
class Qnetwork():
def __init__(self,h_size):
#The network recieves a frame from the game, flattened into an array.
#It then resizes it and processes it through four convolutional layers.... | [
"keshavbachu@gmail.com"
] | keshavbachu@gmail.com |
c5203e6ce03d1cd022d854fd04fea546f5d2afbb | 3a2726e08f9069bc07dc7659c353d2f1c059a6af | /nas4candle/candle/Combo/problems/problem_large_10.py | ad49db2d09d963dbda143101a71b55518ddab475 | [
"BSD-3-Clause"
] | permissive | bigwater/nas4candle | fe3b3ffeaebb46d2ad8c027f774b4873209c2aeb | 318959424cc66819c816054a87bd1cb5d426e2e7 | refs/heads/master | 2022-01-08T19:01:38.520321 | 2019-05-02T17:32:41 | 2019-05-02T17:32:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | from nas4candle.nasapi.benchmark import Problem
from nas4candle.candle.Combo.models.candle_mlp_large import create_structure
# We create our Problem object with the Problem class, you don't have to name your Problem object 'Problem' it can be any name you want. You can also define different problems in the same module... | [
"scrlnas2019@gmail.com"
] | scrlnas2019@gmail.com |
395dac819262f385d12130046669a66a9e9543b6 | 076773bd4620e3a6d48ff2feab52ebb4e75b88c9 | /sending sms to different customers at ones using a for loop(creating lists,list of dictonaries).py | de5b6ee5f352e36cdafac469822fbd47cc1eb081 | [] | no_license | marybahati/PYTHON | 24203475b3c9a9ff8865c06783841e0366f95166 | d89e3b6bec8850b6098f53383c3cba80879ca36e | refs/heads/master | 2022-12-03T09:53:44.171718 | 2019-07-23T21:09:36 | 2019-07-23T21:09:36 | 193,958,665 | 0 | 0 | null | 2022-11-22T03:56:26 | 2019-06-26T18:34:02 | Python | UTF-8 | Python | false | false | 2,212 | py | Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 22:20:52) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> customer1={"name":"sharon","balance":400}
>>> customer2={"name":"eva","balance":2500}
>>> customer3={"name":"mercy","balance":300}
>>> customer4=... | [
"bahatimary745@gmail.com"
] | bahatimary745@gmail.com |
cad384be9aede5c74227c0ca4d556d1ada8cbe9a | 772e04b18f36fe1bffb05c16ef4eff3ba765fd13 | /gcnvisualizer/test/test_visualizer.py | 853d514babfbb1580b6492b0b4ad3a106332f9ae | [
"LicenseRef-scancode-other-permissive"
] | permissive | clinfo/kGCN | 3c74f552dd9d71d470a3173012b01733a1262688 | 32328d5a41e6ed7491b3edb705ff94658fc95d3f | refs/heads/master | 2023-08-16T19:43:17.149381 | 2023-08-03T00:08:11 | 2023-08-03T00:08:11 | 194,075,235 | 110 | 38 | NOASSERTION | 2022-02-04T17:09:55 | 2019-06-27T10:31:57 | Python | UTF-8 | Python | false | false | 503 | py | import unittest
import numpy as np
import pytest
from gcnvisualizer import GCNVisualizer
def test_load_normal_pickle_file(multi_modal_profeat):
for filename in multi_modal_profeat:
g = GCNVisualizer(filename, loglevel='ERROR')
assert ['smiles', 'feature',
'adjacency', 'check_scor... | [
"kojima.ryosuke.8e@kyoto-u.ac.jp"
] | kojima.ryosuke.8e@kyoto-u.ac.jp |
e45a726c5c6c4a6a720449e4eb2e4e791dea81b2 | a3b7b3c319706f6b50b9516fed851ef0d7abe971 | /.debris/2019-05-01 07.35.25.00/PgFunctions.py | 47df0c95e73d92ea640ad59cdca2881afb25854c | [] | no_license | graeca/pg-ocr | c8b46aa227dd4a76915f4718ce3ae577ea915a80 | 53ce27feb378973a3cdc77b318838c479af1805d | refs/heads/master | 2021-10-13T11:27:06.708513 | 2019-07-17T16:28:54 | 2019-07-17T16:28:54 | 182,812,117 | 0 | 0 | null | 2021-10-12T22:54:24 | 2019-04-22T15:08:33 | Jupyter Notebook | UTF-8 | Python | false | false | 12,587 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 9 15:19:21 2019
@author: ainok
"""
import cv2 as cv2
import numpy as np
from matplotlib import pyplot as plt
import glob, os
import re
from pathlib import Path
def createPadding(img, margin):
w=img.shape[1]
#print(w)
for i in range(10):
img = np.ins... | [
"evagelosvar@gmail.com"
] | evagelosvar@gmail.com |
ca837dfcbf930d6469d02412264df601a0216855 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_347/ch1_2020_03_11_20_09_49_458556.py | a589fa5640321f7bdfd640839fc404d8e838e5a3 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | def calcula_valor_devido (c, t, i):
M = c*((1+i)**t)
return M | [
"you@example.com"
] | you@example.com |
4941f9ebcf4458f99db5d63c738817d92fa69967 | 5e557741c8867bca4c4bcf2d5e67409211d059a3 | /.circleci/cimodel/data/pytorch_build_data.py | e2172b660e3114b5e40a445762f40a2702cc4f22 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | Pandinosaurus/pytorch | a2bb724cfc548f0f2278b5af2fd8b1d2758adb76 | bb8978f605e203fbb780f03010fefbece35ac51c | refs/heads/master | 2023-05-02T20:07:23.577610 | 2021-11-05T14:01:30 | 2021-11-05T14:04:40 | 119,666,381 | 2 | 0 | NOASSERTION | 2021-11-05T19:55:56 | 2018-01-31T09:37:34 | C++ | UTF-8 | Python | false | false | 9,147 | py | from cimodel.lib.conf_tree import ConfigNode, X, XImportant
CONFIG_TREE_DATA = [
("xenial", [
("gcc", [
("5.4", [ # All this subtree rebases to master and then build
("3.6", [
("important", [X(True)]),
]),
]),
# TODO:... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
44a9455dc95a0c5fc72de765d0a3d877d796be68 | e888abf88ecfd52d071bd9e8543a927adcfeb515 | /free_lenta/settings.py | 04c30232950a6dc08f365e62c7c5849be3478dc3 | [] | no_license | freelenta/free-lenta | 09431c8bd646761e7cdc5093727a6600863843ab | b393879315ef6abbffceb715da0584acd28c8bdb | refs/heads/master | 2021-01-01T05:32:32.765368 | 2014-06-13T18:16:48 | 2014-06-13T18:16:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | """
Django settings for free_lenta project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)... | [
"sokolovbiotech@gmail.com"
] | sokolovbiotech@gmail.com |
cc3c1c7ee4ce12b2a208ca471b5b1cbe7ea9dc29 | b19abe46b187cc2887bef27eedeae3af74f2e373 | /MN(+AS)/models/__init__.py | 8a3fc1aa6d2c2b455fc26f3c98d806e4ddd726f9 | [] | no_license | DeepLearnXMU/PSSAttention | 4c22a3e37d48c991017d9d9bf1d4b5cdf6167001 | 7e23d8d1b6305c2f77e526b2bcef72dbbcf29d21 | refs/heads/master | 2022-02-13T01:51:56.754195 | 2022-02-04T15:50:24 | 2022-02-04T15:50:24 | 189,739,771 | 93 | 19 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # coding=utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import thumt.models.BL_MN
import thumt.models.FINAL_BL_MN
def get_model(name):
if name == "BL_MN":
return thumt.models.BL_MN.BL_MN
elif name == "FINAL_BL_MN":
return thu... | [
"noreply@github.com"
] | DeepLearnXMU.noreply@github.com |
a709bad42f707666ce609d13d44be5d5d8b8f734 | 0cd57b4784780098da1030f5af2f99517d0b4e1a | /pipeline/UserModel.py | 4717d9eef0521786c6d11fc41a6ab85ef681b21b | [] | no_license | TBruyn/Modeling-and-Data-Analysis-in-Complex-Networks | fe17605d2c267edd862738b33c2d3079383d78b0 | d91fd46428de4c4f7e7e00debdedf7890174c212 | refs/heads/master | 2021-01-26T00:43:03.012282 | 2020-04-21T11:40:30 | 2020-04-21T11:40:30 | 243,244,941 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | import GraphLoader
import json
import networkx as nx
import numpy as np
import random
import pprint
import os
import time
current_number_of_visitors = 991
entry_pages = json.loads(open('pipeline/entry_pages.json', 'r').read())
class UserModel:
def __init__(self, graph):
self.graph = graph
def ra... | [
"timtbruyn@gmail.com"
] | timtbruyn@gmail.com |
182933ad1e32acc47eb2cfc12c855e4c86b85ade | e116a28a8e4d07bb4de1812fde957a38155eb6df | /polar_test2.py | 0ee481b4a0480d2965c11c666d56aaca4fe2291a | [] | no_license | gl-coding/EasyPyEcharts | 5582ddf6be3158f13663778c1038767a87756216 | f9dbe8ad7389a6e2629643c9b7af7b9dc3bfccd5 | refs/heads/master | 2020-09-29T20:48:46.260306 | 2019-12-10T12:52:24 | 2019-12-10T12:52:24 | 227,119,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | #encoding=utf-8
from pyecharts import Polar
radius =['周一', '周二', '周三', '周四', '周五', '周六', '周日']
polar =Polar("极坐标系-堆叠柱状图示例", width=1200, height=600)
polar.add("", [1, 2, 3, 4, 3, 5, 1], radius_data=radius, type='barAngle', is_stack=True)
polar.add("", [2, 4, 6, 1, 2, 3, 1], radius_data=radius, type='barAngle', is_stack=... | [
"1451607278@qq.com"
] | 1451607278@qq.com |
bae46eca925d4eec064cfa40ac5ad479eccddd16 | 6a01a9287a4c23c7f11b7c5399cfb96bbe42eba8 | /python/scripts/get_nearest_k_features.py | 068a702adc3492255203e07630813f3fd49b6ade | [
"MIT"
] | permissive | xguse/gmm-to-gff-transcripts-vs-snps | 3c25bf2752aee76174d5dab92060fe7269caf99f | 75337135ab8ff6d840af3cfccfe6404a06777a54 | refs/heads/master | 2021-01-19T01:50:33.473897 | 2016-08-02T20:31:18 | 2016-08-02T20:31:18 | 54,731,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | """For each SNP file, produce a bed representing the nearest k gene or mapped transcript features and its distance from the SNP."""
import pybedtools as pbt
import pandas as pd
k_number = snakemake.params.k_number
snp_beds = snakemake.input.snp_beds
gene_model_subtracted = snakemake.input.gene_model_subtracted
gene_... | [
"wadunn83@gmail.com"
] | wadunn83@gmail.com |
ce4d1a0078a611ab60cd674de235313bd91706a0 | 22f539bf2a49d8134812ee6be153cc886c13b24f | /Python_3/coursera_form/coursera_form/settings.py | 6bece5dbe4ae07e747d5e076fa3a46f544867dee | [] | no_license | momsspaghettti/coursera-programming-in-python | ba21c49aa9499560942be00d92af0f1e06b01912 | e5a5445312d84ccbf3a93676162b513b265681a8 | refs/heads/master | 2021-08-08T06:26:28.573308 | 2021-06-28T17:56:52 | 2021-06-28T17:56:52 | 188,097,701 | 14 | 17 | null | 2021-06-10T21:35:14 | 2019-05-22T19:03:15 | Python | UTF-8 | Python | false | false | 3,203 | py | """
Django settings for coursera_form project.
Generated by 'django-admin startproject' using Django 2.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import... | [
"ivan.samoilov.1999@yandex.ru"
] | ivan.samoilov.1999@yandex.ru |
e08d6246e043f965cb48fe53ece42737d84fe2c7 | 68036b3b5c4083b55218b678ef4eaa3818252f75 | /electrostatics.py | 7ecb30dbe19583bc3e298270bfe50a9c60bb995f | [] | no_license | pyproblems/book | 2a46688eb874133fb7033a41f46c5c02baf686b3 | 8ee638ed0bbd44549da421260fb0a6da3c32dec9 | refs/heads/master | 2023-08-03T13:16:27.048096 | 2021-09-29T18:15:34 | 2021-09-29T18:15:34 | 291,084,427 | 4 | 1 | null | 2020-10-30T17:16:03 | 2020-08-28T15:42:40 | Jupyter Notebook | UTF-8 | Python | false | false | 2,141 | py | # -*- coding: utf-8 -*-
"""This module defines some essential functions for the two notebooks."""
import time
import numpy as np
k_e = 1 / (4 * np.pi * 8.8541878128e-12)
def E(x, y, q, r):
"""Electric field.
Args:
x (float): X position(s).
y (float): Y position(s).
q (float): Charge... | [
"lloyd@ltj.me.uk"
] | lloyd@ltj.me.uk |
e306115abcfd5059eac290a453f3b6fe5a1f0982 | cf4d4c2a30806105248a920f43658e65306220bb | /46Hash.py | 633fc571e3174ed37bfe99491609a47c1ab18ee5 | [] | no_license | 121121lol/python-qs | 6714dcb8b3af4dc438330e6e9f8d14901db5746b | 841783574deade0b027ba83426aa7086ce7f22fa | refs/heads/master | 2022-11-29T22:58:59.128694 | 2020-08-15T14:32:27 | 2020-08-15T14:32:27 | 287,461,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import hashlib
def hash_file(filename):
h = hashlib.sha1()
with open(filename,'rb') as file:
chunk = 0
while chunk != b'':
chunk = file.read(1024)
h.update(chunk)
return h.hexdigest()
message = hash_file("track1.mp3")
print(message) | [
"noreply@github.com"
] | 121121lol.noreply@github.com |
bc0e60af0d5ae9372d357a3e7e260497d2f7cb40 | 4fc9ffd554298ab03e59b511d5258535972ef88f | /pms/clinical/migrations/0002_labreport_status.py | 583be7b6953f37f9f51a07237d294fd051642b93 | [] | no_license | lasith98/wecare | 83670b1034ac57ceb832ef5ecaf90b553e55debb | 4d5fb6e8028f809ed786177da66f993e44517480 | refs/heads/main | 2023-04-11T00:49:48.378576 | 2021-04-19T19:53:40 | 2021-04-19T19:53:40 | 340,083,660 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.1.6 on 2021-04-15 11:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clinical', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='labreport',
name='status',
... | [
"lasithhasana9@gmail.com"
] | lasithhasana9@gmail.com |
82a6f0b1e2bc37b275cd9f5a9eca19836159da3b | 07095cba7db2ede53214cc43c6c16ee6817c7da0 | /1-modulo-Intro-Python/datos/numpy/operador_ternario.py | 9cf2e14fa7e057567801e495220cd1501d7b91f8 | [] | no_license | carlosjoset/data-science-desafio | 39a2b07be7eee1c64634870c41bee3a55ee9fdd9 | 69a4e93c56ab81183527a3c8b362267d2b2c2987 | refs/heads/master | 2022-04-10T17:57:02.962638 | 2020-03-06T22:28:05 | 2020-03-06T22:28:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import numpy as np
# retorna un nuevo numpy array con valores reasignados
# np.where(una condiciones, se cumple, no se cumple)
notas = np.array([4.5, 6.6, 7.0, 2.0, 3.6, 4.6, 5.6, 5.8, 2.5])
notas.mean()
# Out[76]: 4.688888888888889
notas_bin = np.where(notas >= notas.mean(), 1, 0)
# Out[78]: array([0, 1, 1, 0, 0, ... | [
"lporras16@gmail.com"
] | lporras16@gmail.com |
4857c5fd7f25a1b346614f3d7fdb81c556a078c3 | ee6dd131bf143baa9d84521e089ca930abfa4ce4 | /src/pyfmu/fmi2/slave.py | b57fbabccc3ee1ffb7c022dcdb84133c81ece34f | [] | no_license | manasdas17/pyfmu | eed4eb40324e698918086085254e9fef6f57a130 | fc9bd0f17c0f2945a05727bab78c5225d566d8d8 | refs/heads/master | 2023-02-05T06:15:19.665417 | 2020-12-14T11:39:28 | 2020-12-14T11:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,270 | py | from __future__ import annotations
from typing import List, Tuple, Optional, Literal, Callable
from uuid import uuid4
from pyfmu.fmi2.exception import SlaveAttributeError
from pyfmu.fmi2.logging import Fmi2LoggerBase, FMI2PrintLogger
from pyfmu.fmi2.types import (
Fmi2Status,
Fmi2Value_T,
Fmi2Status_T,
... | [
"clegaard@outlook.com"
] | clegaard@outlook.com |
c8828896c602e3fc526f1c2bd72f9c19201ff0f0 | 725b019934fb9230c4039bc369b1685477bb2a35 | /family/migrations/0002_auto_20191004_1857.py | 6caafe0cdced4892326b84aedf3b02823be77fc4 | [] | no_license | IMRAN104/hams-django | cd726069ca670b9ce78a19211e214b5b8153f1cc | be12ef158850476f0a37e883447f1a34c9f3052e | refs/heads/master | 2020-07-30T07:33:12.284849 | 2020-02-18T06:11:42 | 2020-02-18T06:11:42 | 210,136,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | # Generated by Django 2.2.5 on 2019-10-04 12:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('family', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='family',
... | [
"omeca13@gmail.com"
] | omeca13@gmail.com |
ae5f6a56b1dd9225cfb080b788cdc31d7483c321 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_mc1.py | fa05bea2ae6ea09939c9d07048036355cd040bf2 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,305 | py | from xcp2k.inputsection import InputSection
from _avbmc1 import _avbmc1
from _move_probabilities1 import _move_probabilities1
from _move_updates1 import _move_updates1
from _max_displacements1 import _max_displacements1
class _mc1(InputSection):
def __init__(self):
InputSection.__init__(self)
self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b81ec6831b002501041bfbdfa535ca459f6e59e9 | 56fc520e02e948a72ffe1d8fa5dcdc331cc0376b | /read_plate.py | 9e6704b9f33f986cc385a33c09d3eef282a2c754 | [] | no_license | Imposter/CSCI4220U_FinalProject | 21453fcc906e2d69dd5a178fce1efbf650e008b8 | 8edec45fcaff6865edb2437069a4a3b07a24ea1c | refs/heads/master | 2020-05-05T05:57:38.127137 | 2019-04-06T00:15:51 | 2019-04-06T00:15:51 | 179,770,427 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | """
License Plate Recognition
CSCI4220U: Computer Vision - Final Project
Authors: Eyaz Rehman (100584735), Rishabh Patel (100583380)
Date: April 5th, 2019
"""
import cv2
import numpy as np
from find_plate import find_plates
from segment_characters import find_characters
from ocr import OCR
from imutils import resize
... | [
"scrappycocos@hotmail.com"
] | scrappycocos@hotmail.com |
a8ea7377742c365751ae429fa8b49dbf096e62aa | 06ce3845c976a589be13ac81ca2dfe8475cca2b2 | /old/test_EXSY.py | ba0a8b21e199971dd04d44a5ff7da8cfa61180e2 | [] | no_license | santimaldo/Bruker | feefe15909adbf6a506c40429bce0da5d1833e8a | a4ef677d2471c03800574fc5657ee35021e27135 | refs/heads/master | 2023-08-13T20:55:29.886359 | 2023-07-21T01:00:04 | 2023-07-21T01:00:04 | 200,155,543 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,188 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 7 22:00:55 2020
@author: santi
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.signal import savgol_filter
from scipy.ndimage.filters import maximum_filter
from scipy.ndimage.morphology import generate_binary_structure, binary_erosion
#------------... | [
"santimaldonadoochoa@gmail.com"
] | santimaldonadoochoa@gmail.com |
9fb9fc214255db4d526057385f0521a8acb7109e | a4ac13bf840b6591ce9eec224f5926181624cb55 | /crypt.py | 0a991fd3fb926e0d6117edd5becfd82e359bfacd | [] | no_license | master801/Innocent-Fille-MPK | c729d9d673e26ca0302903457d92beee90482b49 | 522a100f2a1ac79fc496669747843ccf3147845d | refs/heads/master | 2023-07-01T10:42:38.912143 | 2021-08-09T01:41:16 | 2021-08-09T01:41:16 | 394,111,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!/usr/bin/env python3
import zlib
def decrypt_entry(data: bytes):
# TODO
return data
def encrypt_entry(data: bytes):
# TODO
return data
def is_encrypted(data: bytes):
# TODO
return False
def is_compressed(data: bytes):
return data[:0x2] == b'\x78\x9C'
def decompress(data: bytes):... | [
"master801@users.noreply.github.com"
] | master801@users.noreply.github.com |
01c988d748aab051fbe7f0defccb3d10859b7b1e | 488dbc496c55ad5a775d9dcbf3fe0f44b4b198b5 | /project.py | a70ff36904044ed332670947ed3f6a806582bef0 | [] | no_license | siloni07/Catalog-item-project | 804b0e2403076832f7a554af4e35a75dddfb75f7 | 2e59e8a5713556a664a47b0105a1a8977b4c881a | refs/heads/master | 2020-06-21T06:49:21.097681 | 2019-07-19T19:45:14 | 2019-07-19T19:45:14 | 197,373,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,592 | py | import requests
from flask import make_response
import json
import httplib2
from oauth2client.client import FlowExchangeError
from oauth2client.client import flow_from_clientsecrets
from database_setup import Base, Catalog, CatalogItem, User
from flask_httpauth import HTTPBasicAuth
from sqlalchemy.orm import sessionmak... | [
"silonirs@gmail.com"
] | silonirs@gmail.com |
b9d8f783de1cbe1c4088bba5d1b6822b8742917c | 4772c9d6c39b3888c939826d6f728e4a00938537 | /lfmr.py | e5f1ecc692999c6a0071acb424ff3e4718c549f1 | [] | no_license | Praveenstein/Intern_Assignment | d8603b95a3a7634cb28f7a7f62dcfcb67a0aa483 | e8fe8e0d6c26aed7951e9b0ede94af065c89d2f7 | refs/heads/master | 2022-12-06T08:21:21.858355 | 2020-08-27T13:06:53 | 2020-08-27T13:06:53 | 285,256,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from functools import reduce
def main():
#lambda function to find the square of a number
square=lambda x: x**2
print(square(5))
#filter function to remove odd values in a list
lis=[1,2,3,4,5,6,7,8,9,10]
new_lis=list(filter(lambda x: x%2 == 0, lis))
print(new_lis)
#use of map fun... | [
"noreply@github.com"
] | Praveenstein.noreply@github.com |
4eced8ea40a44c5213b1226f8d085f04e888c087 | fd19a87fcaed13a36c820f156df079981ef8cfd5 | /exponent.py | 7ecf48abfd73c9f203d81bc1d4ac4efecd2fe8b1 | [] | no_license | jhardingsd/python-2020 | 5ba48b1a086f35f74527b87ca806009263526e52 | ad79d2e32f63a5c86ffac8aff49836ed1f9b981a | refs/heads/master | 2022-12-15T19:39:03.217859 | 2020-09-10T01:28:42 | 2020-09-10T01:28:42 | 290,886,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | number = 2
exponent = 2
product = 1
for each_Pass in range(exponent):
product = product * number
print(product,'', end ='')
| [
"jhardingsd@gmail.com"
] | jhardingsd@gmail.com |
e9418ebaad3d4ae906853a3aff5909044e325261 | 91c45ff5a74b827ba244de20fe27408a9e4481c4 | /final_subtraction_quiz.py | 2c02004d2f2d561363eece6b105d4c8f4a0d3e05 | [] | no_license | Teddytmetalz/subtractionquiz1 | e5a1f52ce4deaca156b2ad9d00a7f91639e2e609 | 0038a87dea637f3fde210cf0aa6c35c54f507c59 | refs/heads/master | 2021-04-15T13:07:28.854546 | 2018-03-23T13:18:32 | 2018-03-23T13:18:32 | 126,487,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import random
import time
# count the number of the correct answers
correctcount = 0
# count the total number of questions
count = 0
# constant
number_of_questions = 10
# get start
startTime = time.time()
while count < number_of_questions:
#two random integers
num1 = random.randint(0, 10)
num2... | [
"noreply@github.com"
] | Teddytmetalz.noreply@github.com |
532c3eceacb56c836bfc5e3f90d7a178fc0c160d | d3b3e46e3985cadb09936996a6549fd6e77f3851 | /utilities.py | b99d8ce3be85a0bf32c7c4e360ec30e25a945186 | [] | no_license | Grozby/AL326G | baac7becac1d1a30219bd6ac6b962dd0d39b3177 | 30a4b3f88151e3a04c6d4ca177e169c04011e3a3 | refs/heads/master | 2021-10-27T21:04:44.439096 | 2019-04-19T19:02:57 | 2019-04-19T19:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import matplotlib.pyplot as mplt
def factorize(n):
factors = []
for i in range(1, n + 1):
if int(n/i) == n/i:
factors.append([i, int(n/i)])
return factors
def showimage(image):
"""displays a single image in SciView"""
mplt.figure()
mplt.imshow(image)
mplt.show() | [
"matteo.biasielli@mail.polimi.it"
] | matteo.biasielli@mail.polimi.it |
9c1e7be9edf9942f893030ed4955e91530284ec0 | 4a065dce45e1492fd7090411e12986202f2dd44e | /image_processing.py | d041e104405d87c50a3b4b86c3d65766dbb45fd8 | [] | no_license | charuj/diab_retin | 07259b85c9771ae1f377f89fa924f89b62616007 | 6fc07b675e0697b581d553b83e64bd914dfb8110 | refs/heads/master | 2021-01-11T03:31:51.239492 | 2016-11-17T22:54:03 | 2016-11-17T22:54:03 | 68,947,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py |
'''
Mac terminal script to reduce image sizes:
-get to the directory where the images are (using cd)
sips -Z 100 *.jpeg
- sips is the command being used
-Z tells it to maintain the aspect ratio
- 100 is the new size of the image
- *.jpeg instructs the computer to downsize every image ending in jpeg
'''
import n... | [
"clmjaiswal@gmail.com"
] | clmjaiswal@gmail.com |
f4fd6672d70923d43d31ac47e197341fd4adff0a | 0132c46e1bcd4cbbad5eb63b6e1e3745dc16b9bf | /virtual/bin/django-admin | 3e8902e758c864f89ff09f73f6f54d26d461bd4e | [] | no_license | costamay/Bara-Blog | 17cb4115bbe7fcb2bbce0a3fccf1232f36bc2963 | 79f4598af7f5ef461bb0c9701245fabbc111f040 | refs/heads/development | 2022-11-27T13:57:03.109645 | 2020-08-05T16:25:18 | 2020-08-05T16:25:18 | 275,866,945 | 0 | 0 | null | 2020-06-29T16:34:18 | 2020-06-29T16:17:35 | Python | UTF-8 | Python | false | false | 315 | #!/home/moringa/Documents/django-projects/Bara-Blog/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"costamay"
] | costamay | |
57abb1d492da22ca8039ba1f34f17f15d3e3ae53 | de626f1892619968efbaa22ea26079ee2269e799 | /test/test_Master_dialog.py | 02100573c7b18bcfb48fb78df5fb2f3d2c296df2 | [] | no_license | gerardoros/CartograficoQgisPlugin | 7e8724cec0469d0494090b3557e9d4e967935121 | 844fa1052f435478e2e946099d7dbd6b1b97c311 | refs/heads/master | 2023-04-04T08:06:30.967894 | 2021-04-07T14:15:37 | 2021-04-07T14:15:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | # coding=utf-8
"""Dialog test.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
__author__ = 'Mas... | [
"roslop_1841@hotmail.com"
] | roslop_1841@hotmail.com |
a96cb429f9ca4140e68c19d023448121c5c2e1c3 | 3ac84fa46db498e914f6e1aaf2eff490a63807a1 | /devstack/python-keystoneclient/keystoneclient/tests/auth/test_identity_common.py | 4a0cf572983e9f76f36dece4f158b8966f464bf9 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | onsoku/horizon_review | 3c5f1a8f863142f3f724f59771ad39604bca4c20 | 80cca0badc61b4754ef2c10f23a0ee48cd227445 | refs/heads/master | 2020-05-20T11:11:25.625186 | 2015-01-21T01:01:59 | 2015-01-21T01:01:59 | 29,002,325 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,422 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"onsoku@onsoku.sakura.ne.j"
] | onsoku@onsoku.sakura.ne.j |
20753a5eec6cbef1d2f88ca4dca223a00463326f | ef9dfb78938ecf500f2378a84eca8051255a836c | /star-travel/venv/bin/pycodestyle | 93fb5f501bc9e2c6985163ea18cf05d0f8008eee | [] | no_license | lesage20/djangoinitiation | cd11ed6a1cb16356075f4af3be8a93db31ba8c9f | 818e3593d16c1fac5b2741605a4675d7833c18b2 | refs/heads/master | 2021-02-16T18:24:02.846455 | 2020-03-11T04:44:24 | 2020-03-11T04:44:24 | 245,033,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/Users/nan/Desktop/star-travel/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pycodestyle import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(_main())
| [
"angezanou00@gmail.com"
] | angezanou00@gmail.com | |
20b1801175bc4ba61a0f456454a4b37b260c5e9c | f1ff65235142c14c3c027cf5ff300a926c50a071 | /center/admin.py | e2a57be8e034fa3c2ad93391203bd16cf7d50984 | [] | no_license | Shehab-Magdy/Django-MyOnlineStore | 15a51843266e8afecb32437aa0b7d0b556d12d1c | 062dd9379be96a30959bab62fc70c2adeca3ca41 | refs/heads/master | 2020-11-23T21:09:39.018599 | 2020-01-25T11:11:10 | 2020-01-25T11:11:10 | 227,821,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from django.contrib import admin
from .models import Category, Product, Like, Account
from django.contrib.auth.admin import UserAdmin
# Register your models here.
admin.site.register(Category)
admin.site.register(Product)
class AccountAdmin(UserAdmin):
list_display=('email','username','date_joined','last_login','i... | [
"cegres1@hotmail.com"
] | cegres1@hotmail.com |
b26103ab46dc18e9fbbd785126f2ce5eecec5845 | 4d1e8f320ef3480300734fdbd5a8db74e7fbaf15 | /material/frontend/views/__init__.py | f05e68547701f87c80c31bfe835757d26d6ae1a2 | [
"Apache-2.0"
] | permissive | kaajavi/itsventory | c956e727f32530d1ef10455eec1a3ed0c32ed487 | 0543f402e124828c2af662f73361c68fc45002a2 | refs/heads/master | 2020-03-16T12:34:52.955622 | 2018-05-08T22:15:33 | 2018-05-08T22:15:33 | 132,670,159 | 0 | 0 | Apache-2.0 | 2018-05-08T22:16:54 | 2018-05-08T22:04:58 | CSS | UTF-8 | Python | false | false | 343 | py | from .create import CreateModelView
from .delete import DeleteModelView
from .detail import DetailModelView
from .list import ListModelView
from .update import UpdateModelView
from .viewset import ModelViewSet
__all__ = [
'CreateModelView', 'ListModelView', 'UpdateModelView',
'DeleteModelView', 'DetailModelVi... | [
"javierguignard@gmail.com"
] | javierguignard@gmail.com |
df052ef6da6da5333f04bee7a2281b062e7a0b9e | 47660118ba7ac2e8c908d783497bed029eeda3e3 | /2019/day_14.py | 2929cb0cf46869e3f4aa1009071a07dad716a4b4 | [] | no_license | conorpbrady/advent_of_code | c9a11e0c71d7ff2b38e20094c4f463e9acf6bb57 | 87552edbf0cde0445eeb23563d50503ae2f8918a | refs/heads/master | 2020-12-13T21:43:17.697335 | 2020-02-15T00:30:48 | 2020-02-15T00:30:48 | 234,539,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | import math
class Reaction:
def split_equation(self, s):
i = s.find(" => ")
l = s[:i]
r = s[i+4:]
return l, r
def split_coeff(self, s):
l = s.split()
return (int(l[0]), l[1])
def split_reactants(self, s):
f_list = []
r_list = s.split(', ')
... | [
"conorpbrady@gmail.com"
] | conorpbrady@gmail.com |
5cd0af956746fdf41b72a09364359383e2e3f0ef | bbdd52993d4b9a07216ac60e1f5fe7853959f93b | /demo/innerPark/main.py | 0a5b5441c914111c4b427823a254a09e1dbabbba | [] | no_license | htfei/py_base | 1b07e8aac6bf8ff7f11483d4d8253f1ca1818f63 | 739a384aae7fa1fdf295f5527a96725d77fba528 | refs/heads/master | 2022-01-27T05:48:43.379959 | 2019-08-18T14:26:44 | 2019-08-18T14:26:44 | 119,955,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # coding=utf-8
'''
# 0、Python语言HelloWorld
print("hello python!")
# 1、定义变量
a = 2
b = 3
c = a+b
print(c)
# 2、判断语句
if c > 6:
print("你好!")
elif c < 6:
print("hello python!" )
# 3、循环
for i in range(0, 3):
print("nihao {0},{1}".format(i,"gepi"))
# 4、定义函数
# 5、面向对象
# 6、引入Python文件1
import mylib
h = mylib.Hello('... | [
"flyte2012@163.com"
] | flyte2012@163.com |
eb03def41e508f407282c5c9cd1659be83d4a274 | 5e30515112038a29daa13f25c23cfb1df7ff7fe0 | /15_TheCapStone/inference_midas.py | c60229ebcac1cfc171e674ccf37e84fc7f93d783 | [
"MIT"
] | permissive | nikshrimali/TSAI_EVA | ab365ac7a17c88b61f1d6d811132b73e6fb60778 | 1724ea28764416c294f68fe8ef1e664935202ae0 | refs/heads/master | 2023-02-02T10:44:37.175506 | 2020-12-27T03:30:33 | 2020-12-27T03:30:33 | 287,570,874 | 0 | 3 | null | 2020-09-09T04:56:25 | 2020-08-14T15:55:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,390 | py | import os
import glob
import torch
from models_all.midas.utils import *
import cv2
from torchvision.transforms import Compose
from midas.midas_net import MidasNet
from midas.transforms import Resize, NormalizeImage, PrepareForNet
os.chdir(r"D:\Python Projects\EVA\15_TheCapStone\models_all\midas")
def run(input_path,... | [
"nshrimali21@gmail.com"
] | nshrimali21@gmail.com |
808d17aebe999b1dba0d19734a917f65313edf28 | cdec1b5c5d6830e9636378400441686db8ccd95c | /Codes/networkx.py | f2875652fa5e695f8215c2d6b51c5a440c5a84ae | [] | no_license | cansyl/Isoform-spesific-PI3K-inhibitor-analysis | 491d404b2c74238b9964fa86fc6716beca42b18e | 5c0b9a7ce1d965ddc6e6f3890fade0f810e64899 | refs/heads/master | 2021-09-08T21:42:23.763422 | 2021-09-06T08:36:51 | 2021-09-06T08:36:51 | 206,241,593 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import networkx as nx
import sys
import argparse
parser = argparse.ArgumentParser(description='Calculate centrality metrics for PCST .sif network')
args = parser.parse_args()
parser.add_argument('-sif','--siffile', help='SIF, Network file. Can be output from OmicsIntegrator',required=True)
parser.add_argument('-o','--o... | [
"noreply@github.com"
] | cansyl.noreply@github.com |
9d67bb08e90b77fca7e88d0b87b6d516b67c9573 | 33c88441ac68e8c0d35c22ff6e2b7ffbf7179444 | /src/raw_img.py | 44933fcdece9a36e4ae8dc415d4df855fb4fae00 | [] | no_license | faujpli/zae_test | cf2ba198edc5c37f166595b2c7bf67b498d07e7e | 4baca40615ce987f9c156b99a6593631cd9f3e21 | refs/heads/master | 2020-03-12T00:05:16.648839 | 2018-06-08T13:40:06 | 2018-06-08T13:40:06 | 130,340,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,613 | py | '''
Created on Mar 9, 2018
@author: jingpeng
'''
import numpy as np
import matplotlib.pyplot as plt
import cv2
import time
from skimage import exposure
import scipy.misc
from setup import *
from matching import segment_modules
# compute the image quality based on its sharpness
def compute_quality(img):
m,n = im... | [
"jingpeng.li@fau.de"
] | jingpeng.li@fau.de |
6b7e9fcc5d4e182b99bfb7c105327e72b40b1170 | ae582ba0af41e0e809bf01fe1dbbb369cded223b | /.flask_testes/lib/python3.7/struct.py | 4336eaf338b0afa22a155abfcf54eb2377f81b8b | [] | no_license | FelipeEmerim/flask_testes | 49304223437d1b29cc25059f649329979e45a013 | 5950b8913199420d2b0044828e62b7f4c7285aae | refs/heads/master | 2020-03-22T07:51:01.073991 | 2018-07-19T13:46:30 | 2018-07-19T13:46:30 | 139,728,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | /home/emerim/.pyenv/versions/3.7.0/lib/python3.7/struct.py | [
"lip.emerim@gmail.com"
] | lip.emerim@gmail.com |
9eb258cdc6b65a9919a795440b6beb5e84713442 | bdd40ea113fdf2f04ef7d61a096a575322928d1d | /Rupesh/opencv/Opencv_Python/Probabilistic_hough_line_L4_6.py | dd657873e7607cacae08499456287fe764d0fb17 | [] | no_license | rupesh7399/rupesh | 3eebf924d33790c29636ad59433e10444b74bc2f | 9b746acf37ab357c147cdada1de5458c5fc64f53 | refs/heads/master | 2020-12-22T05:01:29.176696 | 2020-03-03T10:32:36 | 2020-03-03T10:32:36 | 202,111,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | import cv2
import numpy as np
# Grayscale and Canny Edges extracted
image = cv2.imread('images/soduku.jpg')
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(gray, 100, 170, apertureSize = 3)
# Again we use the same rho and theta accuracies
# However, we specific a minimum vote (pts along line) of 100
... | [
"rupesh7399@gmail.com"
] | rupesh7399@gmail.com |
700d87cb74a2cd087f84aba3b9e72437ec8f0300 | 8dbb7d4a57a29550568ea9b005ade6542bb546fd | /baidu-spider/setting.py | 6b7cf57e85f3e0f1b010ad7af1e0b45f29d2f094 | [] | no_license | kalicc/feapder_project | 96e4b0d575d61967fff445d62267abe0d1b0d7af | 19820eb7da8f9cec32a11bdcfc47232917743896 | refs/heads/master | 2023-08-05T00:44:36.822548 | 2021-09-24T10:02:53 | 2021-09-24T10:02:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,628 | py | # -*- coding: utf-8 -*-
"""爬虫配置文件"""
# import os
# import sys
#
# MYSQL
MYSQL_IP = "localhost"
MYSQL_PORT = 3306
MYSQL_DB = "feapder"
MYSQL_USER_NAME = "feapder"
MYSQL_USER_PASS = "feapder123"
#
# # MONGODB
# MONGO_IP = os.getenv("MONGO_IP", "localhost")
# MONGO_PORT = int(os.getenv("MONGO_PORT", 27017))
# MONGO_DB = o... | [
"boris@bzkj.tech"
] | boris@bzkj.tech |
94a71e9a1cd844f036ee97547f4bbee604826f1e | 0bbf41e3bcaecaed1f91ccbf8c6afc47abe2b9cb | /age_calculator.py | d7bd2c2f8a8a73b131e27277b2a64df82a91d596 | [
"MIT"
] | permissive | armedev/Basics_python | 7706f63361f9cc9e5625070e285e0feb5bc68078 | 3eb175dfcc3489b14f6f98c1f8e63010f670d86c | refs/heads/master | 2022-03-24T12:29:35.520267 | 2019-10-23T12:59:35 | 2019-10-23T12:59:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | #age_calculator_and_voter_predictor
ww = int(input("your date of birth:> "))
if ww in range(0, 5000):
print(ww, "-birth year")
if ww <= 2019:
age = 2019 - int(ww)
else:
age = 0.1
if age == 1:
yr = "year"
print("you have completed your", age, yr)
elif age == 0:
... | [
"arbazahmed7672"
] | arbazahmed7672 |
cf7cc762a91e412a454f0eecae8e043c0037e9e6 | 01d7b673a01d097f4c6643ba6e25e1d291d0ee01 | /Homework 3/fileprob.py | d2da14fbb86aba417df51d18237a749fdc9ef9c7 | [] | no_license | KomyoSanzo/Processing-Language-Natural | c7baf03ad8aca3c9ba36336df4f575988c97fb8f | f89a0c9073a768337807311ee1bb633147294c02 | refs/heads/master | 2021-01-10T16:46:43.754589 | 2016-04-30T03:35:29 | 2016-04-30T03:35:29 | 53,104,449 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | #!/usr/bin/python
# Sample program for hw-lm
# CS465 at Johns Hopkins University.
# Converted to python by Eric Perlman <eric@cs.jhu.edu>
# Updated by Jason Baldridge <jbaldrid@mail.utexas.edu> for use in NLP
# course at UT Austin. (9/9/2008)
# Modified by Mozhi Zhang <mzhang29@jhu.edu> to add the new log linear mo... | [
"wwangsta@gmail.com"
] | wwangsta@gmail.com |
ad17af3de70a96211a6b7c29e6538fc80f86a7c2 | 231bb8ee7a41c6522b186e9b875cce9d6f21575d | /Problem 2( GC content).py | 251d16bd0036cadf8a390303641b85209638b779 | [] | no_license | Fathu1998/DNA-string-Complement_and_GC_content | b6d26e27a8d3208ffade89162f64d8ceef4872ca | 528b3a04f0575297104b5b6c4ce351ce17df701c | refs/heads/master | 2021-03-03T20:26:22.577244 | 2020-03-15T15:38:28 | 2020-03-15T15:38:28 | 245,985,551 | 0 | 0 | null | 2020-03-09T08:50:36 | 2020-03-09T08:50:36 | null | UTF-8 | Python | false | false | 260 | py | DNA=input("Enter the DNA sequence/sequences")
G=C=0
for i in DNA:
if i=="G":
G=G+1
if i=="C":
C=C+1
GC_percent=(G+C)*100/len(DNA)
print("The GC% of the given DNA sequence is calculated to be" ,GC_percent)
| [
"noreply@github.com"
] | Fathu1998.noreply@github.com |
636d1ce57b8bab3e8a414c97c5c669ec29525873 | 72852e07bb30adbee608275d6048b2121a5b9d82 | /algorithms/problem_0923/leetcode1.py | 72ed6b267b3710694b4c0b138370af274cbdb672 | [] | no_license | drlongle/leetcode | e172ae29ea63911ccc3afb815f6dbff041609939 | 8e61ddf06fb3a4fb4a4e3d8466f3367ee1f27e13 | refs/heads/master | 2023-01-08T16:26:12.370098 | 2023-01-03T09:08:24 | 2023-01-03T09:08:24 | 81,335,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | class Solution(object):
def threeSumMulti(self, A, target):
MOD = 10**9 + 7
ans = 0
A.sort()
for i, x in enumerate(A):
# We'll try to find the number of i < j < k
# with A[j] + A[k] == T, where T = target - A[i].
# The below is a "two sum with mu... | [
"drlongle@gmail.com"
] | drlongle@gmail.com |
c624db327e351b58c163be9c5581a3b6da482442 | cc75f278846363dfa23d35e0a580cf2bfde700d1 | /pytorch3d/io/mtl_io.py | f194b976b437de447635a34d0df6897064ca736f | [
"BSD-3-Clause"
] | permissive | 2429581027/pytorch3d | 78a0da94484f09f778a867d897e38905f355b60f | 5d65a0cf8c9a1fb755fd09ce098bcedb0c670d80 | refs/heads/master | 2022-12-25T12:42:44.861890 | 2020-10-06T22:53:45 | 2020-10-06T22:55:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,197 | py | # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
"""This module implements utility functions for loading .mtl files and textures."""
import os
import warnings
from typing import Dict, List, Optional, Tuple
import numpy as np
import torch
import torch.nn.functional as F
from pytorch3d.io.utils i... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e4274d2937a984ca11f5a7c0f1d24179b955a7dd | b74e34c58a363c7514c0eb243dbd1eb33abef939 | /消费群组代码/数据处理代码/mePy/behavior/LibsvmTest.py | ef7f95783dac7cacb0bc6d69b84508ef66ff1363 | [] | no_license | cathyxl/Project-Consumer-Groups | c49330bb52447ee2f2fcd1596d4976b850487f11 | ee23d4ca003d3e4d083541efdeb7c70deb2fd791 | refs/heads/master | 2021-09-10T20:06:00.321862 | 2018-04-01T08:25:34 | 2018-04-01T08:25:34 | 90,232,933 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | "测试Libsvm包"
from svmutil import *
import csv
PATH = 'D:\\Consume Group\\experiment\\csv_12_18\\'
trainfile = PATH + 'train_processed\\train_feature_train_o.csv'
testfile = PATH + 'processed_feature\\3_features.csv'
def read_svm_train_data(train_file):
labels = []
train = []
with open(train_file) as ftr:
... | [
"237768202@qq.com"
] | 237768202@qq.com |
dbbdd80325b36ade3a92fc51452029f8d9e7b58e | d4ca03693383a5bc20bcdf7b7d552bba1d5467ff | /prepare_3comp.py | c3f7453dccf62501b6eac3430daf838f8eb00c62 | [] | no_license | samhaug/beamform_code | abaa1c723fec6143523b4bf8c05e7daa2655584d | 3bb201356056c1ee91a141b057ff7c666171de2a | refs/heads/master | 2023-01-19T22:15:02.272484 | 2020-11-24T23:05:47 | 2020-11-24T23:05:47 | 289,100,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,717 | py | import obspy
from os.path import isdir
from subprocess import call
from obspy.taup import TauPyModel
import numpy as np
from matplotlib import pyplot as plt
model = TauPyModel(model='prem')
if not isdir("./z_comp"):
call("mkdir ./z_comp",shell=True)
if not isdir("./e_comp"):
call("mkdir ./e_comp",shell=True)
i... | [
"samhaug@umich.edu"
] | samhaug@umich.edu |
378f25c491719cd94e303ae0346ba2c59e22b785 | db4e4bc5c3626da0063508350862ccfebca7022a | /scripts/1.py | 622d07d00cfbb585da84b6e566ec1545b8ee80a7 | [] | no_license | MuzaffarSoliyev/music | 69fd25bc012e57f8b4b407e2f73d421491da6616 | 2e696639a0212f137eaa0b90c7e4451f96ccb9e1 | refs/heads/master | 2020-03-17T19:34:11.595586 | 2018-05-17T21:10:06 | 2018-05-17T21:10:06 | 133,866,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,531 | py | import gc
import os
import ast
import sys
import configparser
import librosa
import graphviz
import numpy as np
import pygame
from tkinter import *
from PIL import Image
import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import train_test_split
from sklearn.metrics... | [
"muzaffar_soliyev@mail.ru"
] | muzaffar_soliyev@mail.ru |
4657907d92c2d3cfce0d9eba8af849e653c57d19 | fd9d43f9a2826c1c985472d1067317c8d399d3e2 | /qa/rpc-tests/test_framework/util.py | ed2771d4601b389047fc4c84faef3b5ffeda8fc0 | [
"MIT"
] | permissive | Bankitt-Official/bankitt | 006cd394c202ad1f58d253fc4fc2f8c4d1db03a0 | ba6ec5c2d7099eeafab972634e9dddd676b0503f | refs/heads/master | 2020-03-07T11:08:23.628577 | 2018-06-09T09:40:25 | 2018-06-09T09:40:25 | 127,448,326 | 0 | 1 | MIT | 2018-05-12T06:14:49 | 2018-03-30T16:16:35 | C++ | UTF-8 | Python | false | false | 21,631 | py | # Copyright (c) 2014-2015 The Bitcoin Core developers
# Copyright (c) 2014-2017 The Bankitt Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helpful routines for regression testing
#
# Add python-bitcoinrp... | [
"you@example.com"
] | you@example.com |
fd63524205e878b38ec89f3dc9234285d4d205c8 | db24aad1b8e813a23688cfef4603978e3356b155 | /fastagram/posts/models/__init__.py | 678b999d2e2f24295eb5a61c01ff7b53a8c99bf2 | [] | no_license | yevgnenll/fastagram | b251a9f5ce1b6b30c09c3d5ab3d23a7388a35509 | 0923588e2d6b1e8a2e15bde0e130e64765bcc0ed | refs/heads/develop | 2021-01-10T01:14:16.196153 | 2016-04-06T09:22:18 | 2016-04-06T09:22:18 | 54,695,513 | 2 | 1 | null | 2016-04-06T09:22:18 | 2016-03-25T04:57:31 | Python | UTF-8 | Python | false | false | 75 | py | from .post import Post
from .comment import Comment
from .like import Like
| [
"yevgnenll@gmail.com"
] | yevgnenll@gmail.com |
7de8fb97bfda1fbea1f83d3bc24dd88497e0a7b5 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_None/model_control_one_enabled_None_ConstantTrend_Seasonal_Minute_LSTM.py | aac22081d0e2dc667f76605a2ce93909efa6bbb6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 163 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['None'] , ['ConstantTrend'] , ['Seasonal_Minute'] , ['LSTM'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
b644afc68ff6f1165731f049805fffcf796fa801 | 4fbb26ab080a1c2da2511f461b205778fbbd5371 | /SConstruct | 9e0eb5d4ea2d6ddf517c2e1b9685cd61f7637ab5 | [
"MIT"
] | permissive | jorgeacortes/cpp-tdd-boilerplate | b1dcd9ae36c5019f7b891f6a3e7f42ae967ebf55 | e0755485cd518cae2db1c9f8fa0eb5400db4f7bb | refs/heads/master | 2021-02-28T15:56:12.425366 | 2020-08-15T09:09:31 | 2020-08-15T09:09:31 | 245,710,734 | 0 | 0 | MIT | 2020-08-15T09:09:32 | 2020-03-07T21:51:20 | Python | UTF-8 | Python | false | false | 287 | #!python
# Scons build system
# Launching a script to be able to build in a variant dir.
import sys
import os
cwd = os.getcwd() # Exporting SCons launch directory
# Default options
#SetOption('silent','yes')
SConscript('project.scons', variant_dir='build', duplicate=0, exports='cwd')
| [
"jorgeacortes@users.noreply.github.com"
] | jorgeacortes@users.noreply.github.com | |
7579afdc211671b68087eccbc1c6af6919ff700c | b65331c9102294897bc883858052cdfc7f16eb82 | /science/4_maxtrices.py | 9f6803ce30efaf77fd2a21e4bf43f34856f026a1 | [] | no_license | Seanistar/Carmen | ecd4bcc9d238ba6bdf5efa3c872c4e2416e26da0 | 39d23bb1883b4821346319952824b394fc775a23 | refs/heads/master | 2020-05-25T14:57:10.654789 | 2016-12-06T04:19:15 | 2016-12-06T04:19:15 | 70,120,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # functions for working with matrices
#
def shape(A):
num_rows = len(A)
num_cols = len(A[0]) if A else 0
return num_rows, num_cols
def make_matrix(num_rows, num_cols, entry_fn):
return [[entry_fn(i, j) for j in range(num_cols)]
for i in range(num_rows)]
def matrix_add(A, B):
if shape(... | [
"seanistar@gmail.com"
] | seanistar@gmail.com |
7f7a5339e93a8e6c7dc50c9a9674e968f50a253d | af6bba388a4a14878d49198f244db15b1fbd4107 | /django_proyect/django_proyect/django_proyect/ven/bin/wheel | 2e360caa1334f2f6840f3d5448db590d284414de | [] | no_license | migueljimenezjc/django-boards | 6ea80d07f7d7d1b6f7ce7761a79f8f0aedeefbe1 | 4af8becd856117e8885cca0cd4f3692a56cf3512 | refs/heads/master | 2020-04-07T22:51:01.482182 | 2018-11-23T05:59:25 | 2018-11-23T05:59:25 | 158,787,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/Users/migueljc/django_proyect/django_proyect/django_proyect/ven/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"miguel.jimenez.contreras@hotmail.com"
] | miguel.jimenez.contreras@hotmail.com | |
3494dd013fb5bf92aae2de7a8709a810974e7e13 | 923db33b9fc1a19c9128b3ed459a43b132a62de9 | /rl/core.py | b8aed0727206b5d2415ae29fae1574183966704d | [] | no_license | Fan-Lu/Memory-Q-Network | 5fc38bbe56f065c63b91ff7f05c099047db60ec8 | ff631842c42452460eb676ee4a6597178cdc0fa6 | refs/heads/master | 2021-05-11T19:36:49.198727 | 2018-01-15T01:18:01 | 2018-01-15T01:18:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,717 | py | # -*- coding: utf-8 -*-
import warnings
from copy import deepcopy
import numpy as np
from keras.callbacks import History
from rl.callbacks import TestLogger, TrainEpisodeLogger, TrainIntervalLogger, Visualizer, CallbackList
import time
class Agent(object):
"""Abstract base class for all implemented agents.
... | [
"phillip.martin012@gmail.com"
] | phillip.martin012@gmail.com |
a3c3350d331393ea83eede2ee19ca9d984c1bfd0 | 589385876626ffdf0e3a960a191eed9b90fa6eb2 | /trunk/aztk/web/user_homepage.py | 0caf42cd3ffc7a4a1681b32a784c6440e5ed2011 | [
"BSD-3-Clause"
] | permissive | BGCX261/zoto-server-svn-to-git | bb7545852bd52d6626f3b2b9c0b1d5834eb08201 | 73abf60264ae5a6b610d19e25be833f0754b160e | refs/heads/master | 2021-01-21T23:04:02.366636 | 2015-08-25T15:16:12 | 2015-08-25T15:16:12 | 41,602,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,309 | py | """
dyn_pages/user_homepage.py
Author: Trey Stout
Date Added: ?
User homepage. Also the starting point for all user interior pages.
"""
## STD LIBS
## OUR LIBS
from zoto_base_page import zoto_base_page
from dyn_image_handler import dyn_image_handler
from user_albums import user_albums
from user_galleries import us... | [
"you@example.com"
] | you@example.com |
7e19b1f65c28d7e8d33d9f9df1406f25cab5200c | fb652a77dd6dba0c971ac052271e1e03ff7c0d6e | /settings/migrations/0008_auto_20181113_0656.py | 9d9fe0d0ca6b8a4d8782e2b78f2ff35543fb2503 | [] | no_license | ryosuwito/mt-commerce | 5fa8419650d8c089bc8baf75322389141b4522af | 90359dada36ab903dbf30f3ab6616a3c4ed3f655 | refs/heads/master | 2022-12-11T05:22:31.037960 | 2019-03-07T10:59:58 | 2019-03-07T10:59:58 | 169,371,940 | 0 | 0 | null | 2022-12-08T01:21:07 | 2019-02-06T07:56:27 | HTML | UTF-8 | Python | false | false | 592 | py | # Generated by Django 2.0.8 on 2018-11-13 06:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('settings', '0007_auto_20181113_0655'),
]
operations = [
migrations.AlterField(
model_name='footerlink',
name='addr',... | [
"ryo@ryolaptop.ryosuwito.com"
] | ryo@ryolaptop.ryosuwito.com |
e665003a52abaad2e29156ec090c509b0c5759f6 | e2ca5913252a7ff0d59d15bfefe22c87536d68fb | /venv/Scripts/easy_install-3.7-script.py | 12eda0b77eb3be0c1ee59c3898afbf47c87c6add | [] | no_license | ACAA06/traveler | 74ae2792d1991233bc9d764b7538255f3cdc5a75 | 264cda3fd5fa64caef939c73221b7d7cb77c0a8f | refs/heads/master | 2022-07-15T10:34:53.354080 | 2020-05-11T18:20:36 | 2020-05-11T18:20:36 | 263,122,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!D:\academics\endsemopenlab\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"clementjoe99@gmail.com"
] | clementjoe99@gmail.com |
1055e5be5726757fa80bb3ebe93883dab06b38ae | f8ca9769a359795dc649c46e299cd9b3bfca1864 | /forum/spiders/cancer_cancerforums_spider.py | f3a2c67fe128c84d117d7c3248a56d9a73bcdde2 | [] | no_license | florencefantine/ehealth_scraper | d4093a67543f653de200e6610eaaf65842aa322f | 886ed12d0a605584796dea11b532883c1e86d09a | refs/heads/master | 2021-01-10T11:39:58.270130 | 2015-11-24T22:09:34 | 2015-11-24T22:09:34 | 45,852,359 | 1 | 6 | null | 2015-11-24T20:52:28 | 2015-11-09T16:51:54 | Python | UTF-8 | Python | false | false | 3,237 | py | # -*- coding: utf-8 -*-
import scrapy
import hashlib
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors import LinkExtractor
from scrapy.selector import Selector
from forum.items import PostItemsList
import re
from bs4 import BeautifulSoup
import logging
import string
imp... | [
"joyce@selfcarecatalysts.com"
] | joyce@selfcarecatalysts.com |
631e47868021d1bce89292c230803398fd53ffc7 | ff8a16483ccd71fcb05b6d9b8174e4b037dc7c3a | /KnightTour.py | 12ca45e5e411f1fb893b1e513eea38688d2f19b4 | [] | no_license | Mihyar-30614/Backtracking_Algorithm | 9543051d195b4adca6e5518e0ff73ecbfdadc223 | f159a3392bf59e88b1c8317a8df6ee539f1f39e1 | refs/heads/master | 2020-11-29T02:52:18.694158 | 2019-12-28T04:57:19 | 2019-12-28T04:57:19 | 230,000,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | # Cheesboard size
size = 8
# Helper Function to print Solution
def printSolution(board):
for i in range(size):
for j in range(size):
print(str(board[i][j]).zfill(2), end=' ')
print()
# Helper function to check if i,j are in n*n board
def isSafe(board, new_x, new_y):
if (new_x >= 0 ... | [
"eng.mihyear@gmail.com"
] | eng.mihyear@gmail.com |
62d19f421d2dd886221143b7b6571930a7ba1a9d | 940ad5e16ede0c344066c8f41f8b9788061bb0ec | /ABC064/a.py | 070c897bf5f4382877ef61cc0306a02253741854 | [] | no_license | niwanowa/AtCoder | 03fe69c97d5503aabb5a3a42ee40c9824b128289 | f4218cf7e13d026a2a439a82340e208c10f5cef5 | refs/heads/master | 2021-07-24T05:23:40.624506 | 2020-05-12T12:36:01 | 2020-05-12T12:36:01 | 167,095,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | r, g, b = map(int, input().split())
if (4*100+g*10+b) % 4 == 0:
print("YES")
else:
print("NO") | [
"be_girl@outlook.jp"
] | be_girl@outlook.jp |
af067fb2a0ba3b52e560e01b6981692f5a0250ec | 80b09d3113d130ef1015bf07a42bf48f5f07ff86 | /strings.py | 5825711c6803cb53ecf365ae3d945f1ca17a2ccc | [] | no_license | neelkanthk/pythonpractice | df33eef806ef47f53394619559e47d5e588e4b35 | b7160bb96f518a22d83e681e68fd68ba69bbb39e | refs/heads/master | 2020-04-03T07:26:32.530829 | 2018-10-29T18:51:44 | 2018-10-29T18:51:44 | 155,102,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # string operations
firstname = "Neelkanth"
lastname = "Kaushik"
fullname = firstname + " " + lastname # concatenate
print len(fullname) # string length
print firstname.lower() # convert to lower case
print lastname.upper() # convert to upper case
print fullname.strip("N") # remove char from last or start
print fullna... | [
"neelkanthkaushik2014@gmail.com"
] | neelkanthkaushik2014@gmail.com |
e383b84ceea267035e9ef73eafa68ff3e951079b | a6170d9d555ea3864a2e6fed054ae1af07393751 | /lab_03/fft/fft.py | 928247596b4274b52eb3cd129f39b86e41fc39e2 | [] | no_license | svinkapeppa/comp_math | c179f86be07d3b28e7061a65107b8f3b323ecbed | 8e87822389c3040e4fb6dc46c6e9e38a38fad6d5 | refs/heads/master | 2020-04-02T10:52:58.496614 | 2018-12-13T14:31:02 | 2018-12-13T14:31:02 | 154,359,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | import argparse
from utils import czt
def transform(input_path, output_path):
data = []
with open(input_path) as fd:
for line in fd:
data.append(line.strip().split())
data = [float(item) for row in data for item in row]
with open(output_path, 'w') as fd:
for item in czt(... | [
"erubanenko@gmail.com"
] | erubanenko@gmail.com |
792fba203b2bf6fd8ce56981e0f9ed7dc868c823 | 4e879e994720100a9354895af2bb9be33b38a42b | /xUdemy_tkinter/Sect3_1stTkinterApp/45_HelloWorld_01.py | 6391cf50cb181338076904a71e1464d8797f5147 | [] | no_license | pepitogrilho/learning_python | 80314ec97091238ed5cc3ed47422d2e6073a3280 | bbdc78a9a0513c13d991701859bcfe7a8e614a49 | refs/heads/master | 2023-04-09T15:07:08.866721 | 2023-04-02T18:45:47 | 2023-04-02T18:45:47 | 230,527,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | # -*- coding: utf-8 -*-
"""
"""
import tkinter as tk
from tkinter import ttk
root = tk.Tk()
root.mainloop()
| [
"pepitogrilho@gmail.com"
] | pepitogrilho@gmail.com |
770dd8f7e0374c04f25a59af4dcd0b8a8d34cff5 | 3491031eba6fdbd4dcd1c03b5ff2a95223c2b2ba | /allfiles/Kap5/1dheatv4.py | e97693f29df0879bb72b840e97ad7ab421ec27ba | [] | no_license | mdruger/tkt4140 | 4cb758f0f28634899ac704ad00a556730e3e5122 | dcbef70125141ec77e3e418ddc4f14e19b8a5ff0 | refs/heads/master | 2020-06-12T02:15:35.409603 | 2014-12-29T12:34:30 | 2014-12-29T12:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,810 | py | # The equation solved is the parabolic equaiton
#
# du d du
# -- = k -- --
# dt dx dx
#
# along with boundary conditions
import matplotlib.pyplot as plt
import matplotlib
import numpy as np
import scipy as sc
import scipy.sparse
import scipy.sparse.linalg
import time
from numpy import newaxi... | [
"leif.r.hellevik@ntnu.no"
] | leif.r.hellevik@ntnu.no |
9618d0ea8bcd0e39563734aa75c10cfbf72a6dde | bbd69601912a3361d788efd03a47f9d4e3bac09e | /unittests/test_propgriddefs.py | ba6c67748213bd2fab4de8c1bcd982fff4d23034 | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 1,278 | py | import unittest
from unittests import wtc
import wx
import wx.propgrid as pg
#---------------------------------------------------------------------------
class propgriddefs_Tests(wtc.WidgetTestCase):
def test_propgriddefs1(self):
pg.PG_INVALID_VALUE
pg.PG_DONT_RECURSE
pg.PG_BASE_OCT
... | [
"robin@alldunn.com"
] | robin@alldunn.com |
53a4aac191b28eea03daa7302e8977d24061472a | e8cac4db53b22a28f7421ede9089bd3d4df81c82 | /TaobaoSdk/Domain/AuthorizeMessage.py | 3d3a557b07f3221566eec45fb68865e80848f9d1 | [] | no_license | wangyu0248/TaobaoOpenPythonSDK | af14e84e2bada920b1e9b75cb12d9c9a15a5a1bd | 814efaf6e681c6112976c58ec457c46d58bcc95f | refs/heads/master | 2021-01-19T05:29:07.234794 | 2012-06-21T09:31:27 | 2012-06-21T09:31:27 | 4,738,026 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,921 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 增量API
# @author wuliang@maimiaotech.com
# @date 2012-06-09 16:55:43
# @version: 0.0.16
from datetime import datetime
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.rea... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
36f68e24f00be8957d914c829267f443aa391fd7 | 6e373b40393fb56be4437c37b9bfd218841333a8 | /Level_8/Lecture_8/Lecture_8/urls.py | 7ab7ccb82c8b8800412050eedcb9ac79244bbb63 | [] | no_license | mahto4you/Django-Framework | 6e56ac21fc76b6d0352f004a5969f9d4331defe4 | ee38453d9eceea93e2c5f3cb6895eb0dce24dc2b | refs/heads/master | 2023-01-22T01:39:21.734613 | 2020-12-04T03:01:17 | 2020-12-04T03:01:17 | 318,383,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """Lecture_8 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"mahto4you@gmail.com"
] | mahto4you@gmail.com |
39e9192043571cd8f92f301ed58923d316e6ea5b | 15863dafe261decf655286de2fcc6e67cadef3d8 | /website/apps/advisor_portal/views/loan_profile_v1.py | 22f8087c08cbb5b4ecde950fc3832e48e7998731 | [] | no_license | protoprojects/worksample | 5aa833570a39d5c61e0c658a968f28140694c567 | f1a8cd8268d032ea8321e1588e226da09925b7aa | refs/heads/master | 2021-06-26T17:34:10.847038 | 2017-09-14T00:14:03 | 2017-09-14T00:14:03 | 103,463,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,040 | py | import logging
import datetime
from django.db.models import Prefetch, BooleanField, Case, Value, When, Q
from django.http import Http404
from rest_framework import viewsets, decorators, status, filters
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framew... | [
"dev@divethree.com"
] | dev@divethree.com |
c34bbcd9379d789cc7232e1d7875e51b44d1eb37 | 89616cc19e98adba8b895efc6be5f2f971d46095 | /Paying_the_Minimum.py | 671e37a5ea69c6d6d4b303bc31fee3ad213ca935 | [] | no_license | alangm7/Learn_Python_MIT_course_EdX | 419cebcf6badd31e7c078af2c00d1e374ed5301d | 96d9fe23c134290571ad69adfe9685854fabe10e | refs/heads/master | 2021-01-17T17:48:36.152311 | 2016-08-08T17:48:41 | 2016-08-08T17:48:41 | 61,170,376 | 1 | 0 | null | 2016-07-27T20:21:09 | 2016-06-15T02:14:31 | Python | UTF-8 | Python | false | false | 717 | py | """Write a program to calculate the credit card balance after one year if a person
only pays the minimum monthly payment required by the credit card company each month."""
balance = 4842
annualInterestRate = 0.2
monthlyPaymentRate = 0.04
minPayment = ''
totalPaid = 0
month = 1
while month <= 12:
minPayment = mo... | [
"noreply@github.com"
] | alangm7.noreply@github.com |
c6be3b672181c172c8e313aaa5c7103906d40ec9 | 30554467bd73d9df8da66ae497b1f1fff17ecf00 | /all_tests_time.py | 9fd7fcd7cf7a524691e2c39e7864bd29606ffac2 | [] | no_license | wm0562/webAutomation | e38a8a5693906902acd3439626c9f1013c10303f | 1c814aec56c3533e49ab7fa7a468c6a3e8adea22 | refs/heads/master | 2020-08-27T06:35:45.645169 | 2020-05-25T07:14:20 | 2020-05-25T07:14:20 | 217,271,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # coding:utf-8
import HTMLTestRunner
import unittest
import os
import time
listaa = 'E:\\20190611\\python\\Python27\\Lib\\unittest\\untitled\\test_case'
def creatsuite1():
testunit = unittest.TestSuite()
discover = unittest.defaultTestLoader.discover(listaa, pattern='start_*.py', top_level_dir=None)
for te... | [
"1455448378@qq.com"
] | 1455448378@qq.com |
18001c5a5d6ca46f07163777075ca1e3bc06b94a | 362ae35a6be9fa575030cafcaddcec2cfde6112f | /groupbuying/models.py | bb0753306dd5adace1f7e5f2dc9c637f3f3b6b1d | [] | no_license | JUKOOK/DB_project_moaU | 197585648dae1d0a5578973d06ded6a0685cc2d7 | 28a2ba6ee22c8b2955964235ee7a3c4c7c11e3df | refs/heads/master | 2021-04-03T08:56:05.893364 | 2018-06-21T04:24:44 | 2018-06-21T04:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | from __future__ import unicode_literals
from imagekit.models import ProcessedImageField
from imagekit.processors import ResizeToFill
from django.contrib.auth.models import User
from django.db import models
import datetime
import os
#http://hjh5488.tistory.com/12
def set_filename_format(now, instance, filename):
... | [
"noreply@github.com"
] | JUKOOK.noreply@github.com |
40d1e25bc0c5d3dca3d376dbfa1cda50082c6f1e | 5a41707da9763a9e9b41a9bfb6caf1c87f7e6816 | /eklentiler/tr.py | 83ce14244f5d31c1036df56c116ca463e0b8cbbe | [] | no_license | kizilsancakailesi/ahmetkaya | 6d14bde53010dda41a50c13921c50b1ec7915804 | 2317dac92b6931a9364986d714e6d1994b052af8 | refs/heads/main | 2023-08-11T10:46:55.884293 | 2021-09-23T22:13:34 | 2021-09-23T22:13:34 | 409,739,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | import os
from config import ASSISTANT_NAME
HELP_TEXT =f"**SETTINGS** \n\n`1) Botumuzu Gruba ekleyin ve yönetici yapın` \n2) **Add** @{ASSISTANT_NAME} **Grubunuza** \n\n**COMMANDS** \n\n- `/vizyon` **: Yanıt verdiğiniz video dosyasını seste oynatır.** \n- `/durvizyon` **: Akışı durdur**"
START_TEXT = '👋 `Hey My Name... | [
"noreply@github.com"
] | kizilsancakailesi.noreply@github.com |
6038afd572bebeb6555821f05e0710b04f59d809 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_3/wllgar015/question3.py | 73caabd33916af860b5d886602e949a64214f59d | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | #question 3
message=input("Enter the message:\n")
repeat=eval(input("Enter the message repeat count:\n"))
frame=eval(input("Enter the frame thickness:\n"))
def awesome(message, repeat, frame):
#Frame 1 is two characters greater than the input string
#Printing the string messages would work quite well.
#Th... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
513654fb878d5d60ea233b97c3d338cfa5f2e9d1 | 1e7cf1927e31410a81c46e7fc474dd01b76065aa | /hello.py | e68f1245460b252e7de2a005486956a88db52042 | [] | no_license | bytewing/TestProject | de92054413e7583e2016186e00e7a8d898a47882 | 778f273acde4550668718a3dbdde0eeed5457cb6 | refs/heads/master | 2020-12-25T18:32:01.489437 | 2013-10-25T15:45:25 | 2013-10-25T15:45:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #@author
print("Hello, world, foobar!")
print("Added second line")
print("Added third line")
| [
"palghat5@yahoo.com"
] | palghat5@yahoo.com |
53fbc822653686579c37de3cd611696e748a5c09 | 60881f0700857739a18b0bd57178296ef6f33845 | /Web/article.py | be8468a2affd0777827954e8386f35d07787b283 | [] | no_license | MagicalLas/WebCroller | 51ccd7499f76584161c2d181c517b37d109bd048 | 156bffa305329c1d97702ed556ac807f8a970c64 | refs/heads/master | 2022-01-29T09:45:07.623818 | 2019-07-03T06:51:12 | 2019-07-03T06:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import json
import os.path
class Article(object):
def __init__(self, blog_id, first_article_id, no):
self.name = f"{blog_id}-{first_article_id}-{no}"
self.blog = blog_id
self.first = first_article_id
self.no = int(no)
self.now = 1
@property
def progress(self):
... | [
"haho013039@gmail.com"
] | haho013039@gmail.com |
b4efc36351dcb2e025c1f119f5ff933374b05d18 | d69e6fa9c659c896dfae09196d0a5795709d169e | /unisan/penelitiankompetitif/urls.py | 8a85819a8021a9313ebdf08c047c3aaeae3ff5ab | [
"Apache-2.0"
] | permissive | kurniantoska/ichsan_proj | 3be7e4fd233c18955ea54a905b8c8442af8ebe8c | f79cbcb896df902e129dcdb2affc89dc4f3844ef | refs/heads/master | 2022-12-05T21:18:46.605502 | 2019-07-25T14:47:42 | 2019-07-25T14:47:42 | 101,473,964 | 0 | 0 | Apache-2.0 | 2022-12-04T04:39:44 | 2017-08-26T08:41:46 | HTML | UTF-8 | Python | false | false | 420 | py | from django.urls import path
from django.views.generic import TemplateView
from penelitiankompetitif.views import IsiDataDosen
app_name = 'pen_komp'
urlpatterns = [
path(
'penelitian_kompetitif/',
TemplateView.as_view(template_name='home_penelitian.html'),
name='home_pen'
),
path(
... | [
"alternative.xen.sakura@gmail.com"
] | alternative.xen.sakura@gmail.com |
1bf4f9d648cd3cf3e5bbe19c856fae2872eaeedf | 2c57bcab9bd78c1382690b1c809315c113ba9353 | /download_main.py | a0a8bccb9d6436494391aa018de38d6763140b72 | [] | no_license | DL-03/Launcher_Myndustry_DL | 324bbfb38a8cfb611c4ae5814786749d0ee8e654 | 76a95cec688b17211e328ae7b42363f87207549f | refs/heads/master | 2023-02-19T17:00:23.015249 | 2021-01-24T20:51:50 | 2021-01-24T20:51:50 | 325,632,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | import time
import PySimpleGUI as sg
from urllib import request
import os
load = os.getcwd()
y = open( load + '\\num.txt', 'r' ).readline()
save = open( f'{load}\\save.txt', 'r' ).readline()
sg.one_line_progress_meter(f'Downloading {y}', 0, 2, 'key','Подождите, скачивание файлов из интернета будут проводица в ... | [
"noreply@github.com"
] | DL-03.noreply@github.com |
2945bd43ce3eb68f057fe466e6172a171fa02d17 | c10121b33f2c2e2f5abe1499691d5d0cb18219ba | /lessons/ex25.py | 1afce7e2bf709e30c943fa6a02844466a41b33e3 | [] | no_license | denver/learn_python | 9782b9d42c895b56700149574daba03719605148 | 7dfc21ca52e8dbfe1e588da84f63727ee29e3661 | refs/heads/master | 2020-04-10T10:04:20.324942 | 2015-10-17T18:46:25 | 2015-10-17T18:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | #learn python the hard way example 25
def break_words(stuff):
"""This function will break up words for us."""
words = stuff.split(' ')
return words
def sort_words(words):
"""Sorts the words."""
return sorted(words)
def print_first_word(words):
"""Print the first word after popping it off."""
word = words.pop... | [
"denver.peterson@gmail.com"
] | denver.peterson@gmail.com |
deb7b7f4dfdf2710af17469506b61251b7c10a45 | 7ed34770064d3ee7e5fbbb65873de54fce7a7da0 | /second_project/second_project/settings.py | 303865567d8bb1299b791b8f1714f5aff8551bd6 | [] | no_license | Vamsichowdhury/models | c8f078179901a01ae7dc4aafefadac01f49be701 | bc3057d974ae05f48f2154b0a85789d576f73650 | refs/heads/master | 2020-04-11T15:40:36.952487 | 2018-12-15T11:36:36 | 2018-12-15T11:36:36 | 161,899,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | """
Django settings for second_project project.
Generated by 'django-admin startproject' using Django 2.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impor... | [
"vamsichowdhury@gmail.com"
] | vamsichowdhury@gmail.com |
a1c41c69498157a0a988fb9273012070ddde4885 | acd5c39fa9f041793faabc8f3742e79dd5c1994f | /aboutme/urls.py | 622c4fe78e506495674964d01a67b15c5718e32d | [] | no_license | jakem91/collab-website | 6e884f3b931f021a586cf305d1fdd5780dbd3b35 | 3d3340d5fd9c84b0bab47a0db5243586c8bd0851 | refs/heads/main | 2023-02-03T06:02:46.225749 | 2020-11-28T21:16:50 | 2020-11-28T21:16:50 | 316,829,494 | 0 | 0 | null | 2020-11-28T22:01:20 | 2020-11-28T22:01:20 | null | UTF-8 | Python | false | false | 121 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.aboutme, name='aboutme'),
]
| [
"steveyburns@hotmail.com"
] | steveyburns@hotmail.com |
3562329aabb2e30dbc9414a3712de5d7d02fb243 | e0d9a87b0fb3a207d118421c43af70e0e2b22ba2 | /S5644/code.py | 55938d98efd2339b933e1f8451ed5b89c3e75762 | [
"MIT"
] | permissive | DokySp/acmicpc-practice | f20c9341aa114d8c7f5d733ba888925052d81768 | 2fa967ad4cd30797f195796f1371f7017cbc06c5 | refs/heads/master | 2023-04-08T08:17:46.890732 | 2023-04-04T08:06:23 | 2023-04-04T08:06:23 | 252,925,188 | 0 | 0 | MIT | 2020-04-04T06:30:52 | 2020-04-04T06:21:27 | null | UTF-8 | Python | false | false | 3,762 | py | import math
import sys
sys.stdin = open("sample.txt", "r")
class Dirr:
up = 1
right = 2
down = 3
left = 4
T = int(input())
for ttttt in range(T):
M, A = input().split()
M = int(M)
A = int(A)
pmove = []
ploc = [[0, 0], [9, 9]]
aploc = []
aprange = []
appower = [... | [
"uhug@naver.com"
] | uhug@naver.com |
ca85e7f42f83e71dcfbd85aea093539662402707 | bac4daf67a7cb5f613846325b844d02d387965d5 | /sum_row_elements.py | fd06c0657d4e2537a01690ea2ae9c773e2bf9af3 | [] | no_license | NHTdz/baitapthem | 52391bb3d313e3235a174c1ba022bab5f247b32d | 5c452b40088e996d19040ea9a7d42cf24b2ca45a | refs/heads/master | 2023-08-29T23:17:37.229009 | 2021-10-22T06:02:44 | 2021-10-22T06:02:44 | 398,396,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import random
import numpy as np
def matrix(m,n):
lst = [[random.randint(1,10) for e in range(n)]for e in range(m)]
lst = np.array(lst)
return lst
def sum_row_elements(a,m):
sum = [0,]
for i in range(m):
sum += a[i]
return sum
m = int(input("Nhập số hàng: "))
n = int(input("Nhập số cột: ... | [
"thangnguyen130703@gmail.com"
] | thangnguyen130703@gmail.com |
2e2fc4e9afbe3e966998d5ddebe6210973b507bb | 7b7c81e39169b7769d2b14618b7fb8f3ef5ea1dc | /tests/MMApp/test_app_admin.py | 7767db100b4a4c0e69fbca15dd345f704f20759c | [] | no_license | tkincaid/tkincaid.github.com | cf349c143056b847c8281d8d363b686a679f6499 | 8a9ab9ea4a061573328b5fcca6706536062e3be5 | refs/heads/master | 2016-09-05T09:24:48.325828 | 2014-09-24T16:49:14 | 2014-09-24T16:49:14 | 21,217,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,436 | py | import unittest
import json
from mock import patch
from config.engine import EngConfig
from common.wrappers import database
from MMApp.entities.user import UserModel
from MMApp.entities.admin import AdminAccessError
class TestAdminBlueprint(unittest.TestCase):
def setUp(self):
self.addCleanup(self.stopPatc... | [
"tom.kincaid@datarobot.com"
] | tom.kincaid@datarobot.com |
be2f33435c3fe867fe75bf726865ef3314474322 | 7d5f3221a2f141ff91eb003fe444af78bf6af077 | /week6/movie.py | 61378f4dbdd9bc2b8ba7fcc993d59ad0ccf49609 | [] | no_license | kkashev/hackbulgaria | abaddbe476ceaa6fb2eb4e981b70be7d95f76943 | ada2a73a311e9af8f7427971241c3a25828ae9e6 | refs/heads/master | 2021-01-21T17:42:03.996637 | 2014-12-08T16:36:10 | 2014-12-08T16:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from connection import Base
from sqlalchemy import Column, Integer, String, Float
class Movie(Base):
__tablename__ = "movies"
id = Column(Integer, primary_key=True)
name = Column(String)
rating = Column(Float)
def __str__(self):
return "{} - {} - {}".format(self.id, self.name, self.rating... | [
"kkashev@gmail.com"
] | kkashev@gmail.com |
dc11c2a9a91ce330d48bdf58adb1905e8abc7e5f | 219b7903ad9b16acb4790f561952021e60f23abe | /giftexchange/admin.py | 671384fdd7635bf9f0761dcda08bdcce3a118864 | [] | no_license | astromitts/gifterator3000 | 40663de82526ef874c05d9385f53e6c2e3cb1625 | 64a8c420eb7b729c96861aa430f7f15cbe499d3d | refs/heads/master | 2023-01-28T06:47:09.110323 | 2020-12-04T01:43:53 | 2020-12-04T01:43:53 | 293,815,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from django.contrib import admin
from giftexchange.models import (
GiftExchange,
Participant,
AppUser,
ExchangeAssignment,
AppInvitation,
MagicLink
)
class ParticipantInline(admin.TabularInline):
model = Participant
fields = ['appuser']
class GiftExchangeAdmin(admin.ModelAdmin):
inli... | [
"morinbe@gmail.com"
] | morinbe@gmail.com |
ed6deb8cf63883ec1dce2f0f037fd6877ffbaea1 | c8c9278ffb74da44789b310540693c66468b998c | /shop/urls.py | 87f494b760e5ec8a18cf0fe7c69c724930fc0633 | [] | no_license | danielspring-crypto/ekit | bdfcec4b2ce8e36bb9e692f7a825bfce0bbf4166 | 560f6fa5522e1cb4a2cf30325b2b1b07beceea3d | refs/heads/main | 2023-01-28T00:20:22.058791 | 2020-12-07T08:33:06 | 2020-12-07T08:33:06 | 319,253,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from django.urls import path
from .import views
app_name = 'shop'
urlpatterns = [
path('', views.product_list, name='product_list'),
path('<slug:category_slug>/', views.product_list, name='product_list_by_category'),
path('<int:id>/<slug:slug>/', views.product_detail, name='product_detail'),
] | [
"borncode3@gmail.com"
] | borncode3@gmail.com |
4193d0bff10f9cc050ef484fe5020c35f4d6a393 | f925df02921953acda77cd415762d690fcca020e | /SoundNet-tensorflow/main.py | 3af8b8f79c1a53a65d1d4e4f080d2cee52e96148 | [
"MIT"
] | permissive | vinitra/music-score-gen | 11b77464e0eae95e74b967a66d795fd80cc0c368 | 2eb37d20a4ad77994b43bfaa9f415af4817e578a | refs/heads/master | 2020-03-10T15:28:48.111674 | 2018-05-12T04:41:14 | 2018-05-12T04:41:14 | 129,449,500 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,394 | py | # TensorFlow version of NIPS2016 soundnet
# Required package: librosa: A python package for music and audio analysis.
# $ pip install librosa
from ops import batch_norm, conv2d, relu, maxpool
from util import preprocess, load_from_list, load_audio
from model import Model
from glob import glob
import tensorflow as tf
... | [
"kayleeburns@berkeley.edu"
] | kayleeburns@berkeley.edu |
7cbf9742fce46306b45b1a55e6f3897b5222fef8 | 76d725c5c49060d22282159f1aeba5e41ebd2a6c | /kingdom_api/api/schemas/user.py | 387a6da0e416e593b90de79a42cda865a29cd1ea | [] | no_license | AlexKupreev/kingdom-api | 91eec48492fbd93c80bafaf93e13f4fd856442d6 | 48408f43cbbeed035ed30c29c8c8f13c8886e949 | refs/heads/master | 2023-01-02T15:28:45.014765 | 2020-10-04T05:22:33 | 2020-10-04T05:22:33 | 288,093,898 | 0 | 0 | null | 2020-10-04T05:22:34 | 2020-08-17T05:46:22 | Python | UTF-8 | Python | false | false | 681 | py | from kingdom_api.models import User
from kingdom_api.extensions import ma, db
from flask_security import hash_password
class HashedPassword(ma.Field):
"""Password field that deserializes to a Version object."""
def _deserialize(self, value, *args, **kwargs):
return hash_password(value)
def _seri... | [
"agkupreev@gmail.com"
] | agkupreev@gmail.com |
201b2218e8b32914f9c15ce300bbf0e5f67dc4a5 | cb455b1f1b086ba3d9f8479686b9dbfb34b5fb45 | /tk5.py | 6222f87b1143cbec394c3746dfd11fdeaa27c5c7 | [] | no_license | lv0817/TKinter | a17ebc6f6df71f48c305a050e3e1ff6b262c5afc | f5720b1491fc20433147f9be1a6e838528e7f40d | refs/heads/master | 2021-05-09T08:31:00.385396 | 2018-02-01T06:10:28 | 2018-02-01T06:10:28 | 119,396,317 | 1 | 0 | null | 2018-02-01T06:10:29 | 2018-01-29T14:52:14 | Python | UTF-8 | Python | false | false | 674 | py | from tkinter import *
'''
以后一定要注意多看官方文档
'''
root = Tk()
v = IntVar()
Radiobutton(root,text='one',variable = v,value=2).pack(anchor='w')
Radiobutton(root,text='two',variable = v,value=2).pack(anchor='w')
Radiobutton(root,text='three',variable = v,value=3).pack(anchor='w')
#三个value的值不同,三个按钮才可以互斥
#当选中一个按钮的时候,会吧这个按钮的值交给v... | [
"412435484@qq.com"
] | 412435484@qq.com |
2bdcf0d2360b2138a878f8f56df0bafff715dcb6 | 50f10b7ef7e42a5998a8e61bdcb2728b23629198 | /skills.py | 1cc2b2cc96258af1e6869366c6f62a33a46e37cb | [] | no_license | ltaziri/skills-dictionaries | fd1b9446aa3b77bb41aa1d123dc0cced2fee616e | 3bdaf1b46388414cf05800bce65e6685f65b4c1a | refs/heads/master | 2021-01-10T07:36:19.392184 | 2016-01-17T00:42:19 | 2016-01-17T00:42:19 | 49,797,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,897 | py | """Skills-dictionaries.
IMPORTANT: these problems are meant to be solved using dictionaries and sets.
"""
def without_duplicates(words):
"""Given a list of words, return the list with duplicates removed.
For example:
>>> sorted(without_duplicates(
... ["rose", "is", "a", "rose", "is",... | [
"ltaziri@Elizabeth-Taziris-MacBook-Pro.local"
] | ltaziri@Elizabeth-Taziris-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.